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

Conversation

imotai
Copy link
Contributor

@imotai imotai commented Jul 6, 2023

This PR has three critical goals

  • upgradeable contract
  • support database and collection metadata management
  • production level
    • Register network test
    • Create database test
    • Create a collection test
    • Transfer data network test
    • Update rollup node test
    • Update rollup steps test
    • transfer database test

PR-Codex overview

This PR focuses on removing unused code and dependencies, updating dependencies, and making minor code improvements.

Detailed summary

  • Removed unused code and dependencies.
  • Updated dependencies.
  • Made minor code improvements.
  • Added support for @openzeppelin/contracts-upgradeable in package.json.
  • Cleaned up formatting and removed unnecessary comments.
  • Updated network support plan in README.md.
  • Added a new library Types.sol in the metadata/contracts/libraries directory.

The following files were skipped due to too many changes: src/node/Cargo.toml, metadata/test/db3_metastore_network_create_db_test.ts, src/node/src/rollup_executor.rs, src/crypto/src/db3_address.rs, metadata/test/db3_metastore_network_update_rollup_node.ts, metadata/test/db3_metastore_network_update_rollup_steps.ts, metadata/test/db3_metastore_network_transfer_database_test.ts, src/node/src/ar_toolbox.rs, metadata/test/db3_metastore_network_transfer_network.ts, metadata/contracts/libraries/Events.sol, src/sdk/src/sdk_test.rs, metadata/test/db3_metastore_network_register_test.ts, metadata/contracts/interfaces/IDB3MetaStore.sol, src/storage/src/meta_store_client.rs, src/node/src/recover.rs, abi/DB3MetaStore.json, metadata/test/db3_metastore_network_create_collection_test.ts, metadata/contracts/DB3MetaStore.sol, src/crypto/src/id.rs, metadata/yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@imotai imotai changed the title Support contract upgrade and database meta management contract upgrade and database meta management support Jul 6, 2023
@imotai imotai linked an issue Jul 8, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #556 (872a816) into main (4667bd8) will decrease coverage by 6.28%.
The diff coverage is 4.13%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #556      +/-   ##
==========================================
- Coverage   59.54%   53.27%   -6.28%     
==========================================
  Files          52       37      -15     
  Lines        7755     6204    -1551     
  Branches       61       61              
==========================================
- Hits         4618     3305    -1313     
+ Misses       3137     2899     -238     
Flag Coverage Δ
rust 53.27% <4.13%> (-6.28%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/crypto/src/id.rs 47.36% <0.00%> (-37.18%) ⬇️
src/node/src/indexer_impl.rs 0.00% <ø> (ø)
src/node/src/recover.rs 0.00% <0.00%> (-74.86%) ⬇️
src/sdk/src/store_sdk_v2.rs 97.54% <ø> (ø)
src/storage/src/meta_store_client.rs 8.47% <2.77%> (-43.43%) ⬇️
src/node/src/rollup_executor.rs 29.31% <7.69%> (-1.64%) ⬇️
src/node/src/ar_toolbox.rs 80.47% <33.33%> (-0.72%) ⬇️
src/crypto/src/db3_address.rs 39.34% <100.00%> (-3.19%) ⬇️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@imotai imotai merged commit 2dd6abd into dbpunk-labs:main Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multi-chain metadata support
2 participants