Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contract upgrade and database meta management support #556

Merged
merged 59 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3c03fd0
feat: add doc store
imotai Jun 13, 2023
bf6b69b
Merge remote-tracking branch 'origin/main'
imotai Jun 14, 2023
50dd93a
Merge remote-tracking branch 'origin/main'
imotai Jun 19, 2023
99d8aad
Merge remote-tracking branch 'origin/main'
imotai Jun 21, 2023
ea84758
Merge remote-tracking branch 'origin/main'
imotai Jun 23, 2023
3dc6d3a
Merge remote-tracking branch 'origin/main'
imotai Jun 25, 2023
954d205
Merge remote-tracking branch 'origin/main'
imotai Jun 26, 2023
a70c835
Merge remote-tracking branch 'origin/main'
imotai Jun 29, 2023
4da2934
Merge remote-tracking branch 'origin/main'
imotai Jun 29, 2023
e2938c9
Merge remote-tracking branch 'origin/main'
imotai Jul 2, 2023
afaaa0c
Merge remote-tracking branch 'origin/main'
imotai Jul 3, 2023
3851509
Merge remote-tracking branch 'origin/main'
imotai Jul 4, 2023
20e1d28
Merge remote-tracking branch 'origin/main'
imotai Jul 4, 2023
0cc9a4f
feat: add doc order and event recover
imotai Jul 4, 2023
533b73c
feat: add recover
imotai Jul 4, 2023
f5e37a3
feat: add start block
imotai Jul 4, 2023
411f565
fix: fix the recover bug
imotai Jul 5, 2023
a85e395
fix: merge from main
imotai Jul 5, 2023
51decb5
fix: remove unused module
imotai Jul 5, 2023
89ea4bd
fix: remove docker cd
imotai Jul 5, 2023
a963378
fix: print the test environment output log
imotai Jul 5, 2023
604b0bf
fix: start localnet for every step
imotai Jul 5, 2023
da81bc9
fix: add cd for cargo test
imotai Jul 5, 2023
d2744c1
feat: remove kill process
imotai Jul 5, 2023
149070c
feat: update start local net
imotai Jul 5, 2023
26856d0
fix: fix the test case
imotai Jul 5, 2023
8567eff
fix: fix the java ut case
imotai Jul 5, 2023
7e85e26
feat: add types , events and interface
imotai Jul 6, 2023
5609495
fix: merge from upstream
imotai Jul 6, 2023
8cdc834
feat: add description to the database
imotai Jul 6, 2023
b4bbb53
feat: impl the interface
imotai Jul 7, 2023
81d280f
feat: add network register test
imotai Jul 7, 2023
ce0b335
feat: adjust the struct
imotai Jul 7, 2023
f8ad271
test: add exeception test
imotai Jul 7, 2023
3bc0414
test: add get network test
imotai Jul 7, 2023
ac3f7e7
feat: add get database
imotai Jul 7, 2023
ea67aca
feat: update the architecture
imotai Jul 8, 2023
4b4b3ea
test: add create database and create collection test
imotai Jul 8, 2023
6b4e293
test: add test file
imotai Jul 8, 2023
a5a3615
fix: adjust the image size
imotai Jul 8, 2023
1b85c2f
test: add transfer test
imotai Jul 8, 2023
5b2049a
test: add transfer database test
imotai Jul 8, 2023
74758ba
feat: add license to collection
imotai Jul 8, 2023
8f66f1d
fix: remove agent from arweave-rs
imotai Jul 8, 2023
456a6b0
feat: update metastore
imotai Jul 8, 2023
442bc63
test: add register a lot of network
imotai Jul 8, 2023
8578a90
test: add register data network test
imotai Jul 9, 2023
52a9960
test: add get state
imotai Jul 9, 2023
0eb6c2b
test: add metstore test case
imotai Jul 9, 2023
a107498
fix: remove unused code
imotai Jul 9, 2023
6124c32
feat: add fork network method
imotai Jul 9, 2023
f875189
test: fix the recover case
imotai Jul 9, 2023
ad4f4c8
fix: remove unused the library
imotai Jul 9, 2023
a41f69a
fix: fix the compile error
imotai Jul 9, 2023
366906b
test: adjust the ci order
imotai Jul 9, 2023
d412252
test: add sleep
imotai Jul 9, 2023
9929b91
test: add sleep
imotai Jul 9, 2023
cca7320
feat: add echo to show start script information
imotai Jul 9, 2023
872a816
fix: remove some cases temporary
imotai Jul 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,15 @@ jobs:
- uses: taiki-e/install-action@nextest
- name: Setup Build env
run: |
sudo apt-get install protobuf-compiler
protoc --version
ROOT_DIR=`pwd`
sudo apt-get install protobuf-compiler
cd ${ROOT_DIR}/metadata && yarn install
cd ${ROOT_DIR}/metadata && npx hardhat compile --force && echo "return code $?"
ls ${ROOT_DIR}/metadata
cd ${ROOT_DIR}/metadata && npx hardhat test && echo "return code $?"
cd ${ROOT_DIR}/metadata && npx hardhat test
test -e ${ROOT_DIR}/metadata/artifacts/contracts/DB3MetaStore.sol/DB3MetaStore.json && cp -f ${ROOT_DIR}/metadata/artifacts/contracts/DB3MetaStore.sol/DB3MetaStore.json ${ROOT_DIR}/abi/
cd ${ROOT_DIR} && cargo build
cd ${ROOT_DIR}/tools && bash start_localnet.sh
sleep 2
export RUST_BACKTRACE=1
- name: Run Typescript sdk test
run: |
ROOT_DIR=`pwd`
Expand All @@ -71,6 +69,7 @@ jobs:
cd ${ROOT_DIR}/java && mvn test
- name: Run rust test with coverage
run: |
export RUST_BACKTRACE=1
cargo llvm-cov nextest --workspace --exclude merkdb --lcov --output-path lcov.info --no-fail-fast
- uses: codecov/codecov-action@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ members = [
"src/crypto",
"src/proto",
"src/error",
"src/types",
"src/base",
"src/storage",
"src/node",
Expand All @@ -17,6 +16,6 @@ fastcrypto = {git = "https://github.com/MystenLabs/fastcrypto", rev = "306465d4f
ethers = {git="https://github.com/imotai/ethers-rs", rev="d526191b7972e8cf4412fee8b71cbf42e0ce7995"}
tonic = {git="https://github.com/hyperium/tonic", rev="ae7580160431cd25c1eecda4c85014ef6ce8d93f"}
tonic-web = {git="https://github.com/hyperium/tonic", rev="ae7580160431cd25c1eecda4c85014ef6ce8d93f"}
arweave-rs = {git="https://github.com/imotai/arweave-rs", rev="4bdb736c565dbce0f3ff698f0265e7e781cca1d6"}
arweave-rs = {git="https://github.com/imotai/arweave-rs", rev="c46183c4cef05004685e53a869606d18abcbcdf2"}
ejdb2rs = {git="https://github.com/imotai/ejdb2rs", rev="dfe9a00c66986c072b8375ce68086b9c98ded4fe"}
serde_json= "1.0"
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ DB3 Network is a Lightweight, *Permanent* JSON document database for Web3. It is
1. Using DB3 Network as a JSON document database.
2. Periodically rolling up the JSON document to the [Arweave](https://www.arweave.org/) at a very low cost.


# Have a try

## Set up self-hosted Node
Expand Down Expand Up @@ -102,8 +101,20 @@ The DB3 Network has two roles:
To prevent tampering, every
JSON document must be signed by its owner. Only the owner can update or delete the JSON document.
<p align="center">
<img width="500px" src="./docs/images/db3_arch.png" align="center"/>
<img width="800px" src="./docs/images/db3_arch.png"/>

## The Plan to support public chain list

| Public Chains | Testnet | Mainnet |
|----------|:-------------:|:------:|
| Arweave | :heavy_check_mark: | :heavy_check_mark:|
| Polygon | :heavy_check_mark: [Mumbai](https://mumbai.polygonscan.com/address/0xb9709cE5E749b80978182db1bEdfb8c7340039A9) | :soon: |
| Zksync | :soon: | :soon: |
| Scroll | :soon: | :soon: |
| Arbitrum | :soon: | :soon: |
| Optimism | :soon: | :soon: |

If you want us to support the other public chains, just give us an [issue](https://github.com/dbpunk-labs/db3/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.md&title=)

# What can we build with the db3 network?

Expand Down