├── .dockerignore ├── .github ├── ISSUE_TEMPLATE │ ├── bug-report.md │ ├── feature.md │ └── help.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml ├── release-drafter.yml └── workflows │ ├── ci.yml │ ├── code_lint.yml │ ├── integration-test.yml │ ├── pr_lint.yml │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── SECURITY.md ├── clippy.toml ├── common ├── Cargo.toml └── src │ ├── address.rs │ ├── hash.rs │ ├── lazy.rs │ ├── lib.rs │ └── utils.rs ├── core ├── ckb-client │ ├── Cargo.toml │ └── src │ │ ├── client.rs │ │ ├── error.rs │ │ └── lib.rs ├── cli │ ├── Cargo.toml │ └── src │ │ ├── config.rs │ │ └── lib.rs ├── rpc │ ├── README.md │ ├── core │ │ ├── Cargo.toml │ │ └── src │ │ │ ├── error.rs │ │ │ ├── impl.rs │ │ │ ├── impl │ │ │ ├── adjust_account.rs │ │ │ ├── build_tx.rs │ │ │ ├── operation.rs │ │ │ ├── query.rs │ │ │ ├── utils.rs │ │ │ └── utils_types.rs │ │ │ ├── lib.rs │ │ │ └── tests │ │ │ ├── mod.rs │ │ │ ├── operation_test.rs │ │ │ ├── query_test.rs │ │ │ ├── rpc_test.rs │ │ │ └── utils_test.rs │ └── types │ │ ├── Cargo.toml │ │ └── src │ │ ├── consts.rs │ │ ├── error.rs │ │ ├── indexer.rs │ │ ├── lazy.rs │ │ ├── lib.rs │ │ └── uints.rs ├── service │ ├── Cargo.toml │ └── src │ │ └── lib.rs ├── storage │ ├── Cargo.toml │ ├── benches │ │ └── snowflake_bench.rs │ └── src │ │ ├── error.rs │ │ ├── lib.rs │ │ └── relational │ │ ├── fetch.rs │ │ ├── insert.rs │ │ ├── mod.rs │ │ ├── remove.rs │ │ ├── snowflake.rs │ │ └── tests │ │ ├── fetch_mod_test.rs │ │ ├── get_block_test.rs │ │ ├── get_cell_test.rs │ │ ├── get_historical_live_cells_test.rs │ │ ├── get_tx_test.rs │ │ ├── mod.rs │ │ ├── other_test.rs │ │ └── single_sql_test.rs └── synchronization │ ├── Cargo.toml │ ├── README.md │ └── src │ ├── lib.rs │ ├── sql.rs │ ├── task.rs │ └── tests │ ├── mod.rs │ └── sync_test.rs ├── db ├── db-sqlx │ ├── Cargo.toml │ └── src │ │ ├── lib.rs │ │ └── page.rs └── xsql-test │ ├── Cargo.toml │ └── src │ ├── lib.rs │ └── sql.rs ├── devtools ├── config │ ├── docker_compose_config.toml │ ├── mainnet_config.toml │ └── testnet_config.toml ├── create_table │ ├── create.py │ ├── create_sqlite_table.sql │ └── create_table.sql ├── my-postgres.conf └── test_data │ └── blocks │ ├── 0.json │ ├── 1.json │ ├── 10.json │ ├── 11.json │ ├── 12.json │ ├── 13.json │ ├── 14.json │ ├── 15.json │ ├── 2.json │ ├── 3.json │ ├── 4.json │ ├── 5.json │ ├── 6.json │ ├── 7.json │ ├── 8.json │ └── 9.json ├── docker-compose.yml ├── docs ├── assets │ └── sync_flow.jpg ├── config.md ├── layout.md ├── migration.md └── setup.md ├── free-space └── .gitkeep ├── integration ├── Cargo.lock ├── Cargo.toml ├── README.md ├── dev_chain │ ├── dev │ │ ├── ckb-miner.toml │ │ ├── ckb.toml │ │ ├── default.db-options │ │ └── specs │ │ │ ├── cells │ │ │ ├── anyone_can_pay │ │ │ ├── ckb-cheque-script │ │ │ ├── secp256k1_keccak256_sighash_all_acpl │ │ │ └── simple_udt │ │ │ └── dev.toml │ └── devnet_config.toml └── src │ ├── const_definition.rs │ ├── main.rs │ ├── tests │ ├── build_adjust_account_transaction.rs │ ├── build_dao_related_transaction.rs │ ├── build_simple_transfer_transaction.rs │ ├── build_sudt_issue_transaction.rs │ ├── build_transfer_transaction_ckb.rs │ ├── build_transfer_transaction_ckb_pw.rs │ ├── build_transfer_transaction_udt.rs │ ├── exec_instructions.rs │ ├── get_balance.rs │ └── mod.rs │ └── utils │ ├── address.rs │ ├── instruction.rs │ ├── mod.rs │ ├── rpc_client.rs │ └── signer.rs ├── logger ├── Cargo.toml └── src │ ├── date_fixed_roller.rs │ └── lib.rs ├── protocol ├── Cargo.toml └── src │ ├── db.rs │ └── lib.rs ├── rust-toolchain ├── rustfmt.toml ├── src └── main.rs └── tests ├── Cargo.lock ├── Cargo.toml ├── README.md └── tests ├── rpc ├── build_adjust_account_transaction.rs ├── build_dao_deposit_transaction.rs ├── build_dao_withdraw_transaction.rs ├── build_simple_transfer_transaction.rs ├── build_sudt_issue_transaction.rs ├── build_transfer_transaction.rs ├── common.rs ├── get_account_info.rs ├── get_balance.rs ├── get_block_info.rs ├── get_cells.rs ├── get_cells_capacity.rs ├── get_db.rs ├── get_mercury_info.rs ├── get_spent_transaction.rs ├── get_sync_state.rs ├── get_tip.rs ├── get_transaction_info.rs ├── get_transactions.rs ├── mod.rs └── query_transactions.rs └── test.rs /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/ISSUE_TEMPLATE/bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/ISSUE_TEMPLATE/feature.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/help.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/ISSUE_TEMPLATE/help.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/code_lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/workflows/code_lint.yml -------------------------------------------------------------------------------- /.github/workflows/integration-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/workflows/integration-test.yml -------------------------------------------------------------------------------- /.github/workflows/pr_lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/workflows/pr_lint.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/SECURITY.md -------------------------------------------------------------------------------- /clippy.toml: -------------------------------------------------------------------------------- 1 | too-many-arguments-threshold = 16 2 | -------------------------------------------------------------------------------- /common/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/common/Cargo.toml -------------------------------------------------------------------------------- /common/src/address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/common/src/address.rs -------------------------------------------------------------------------------- /common/src/hash.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/common/src/hash.rs -------------------------------------------------------------------------------- /common/src/lazy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/common/src/lazy.rs -------------------------------------------------------------------------------- /common/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/common/src/lib.rs -------------------------------------------------------------------------------- /common/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/common/src/utils.rs -------------------------------------------------------------------------------- /core/ckb-client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/ckb-client/Cargo.toml -------------------------------------------------------------------------------- /core/ckb-client/src/client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/ckb-client/src/client.rs -------------------------------------------------------------------------------- /core/ckb-client/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/ckb-client/src/error.rs -------------------------------------------------------------------------------- /core/ckb-client/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/ckb-client/src/lib.rs -------------------------------------------------------------------------------- /core/cli/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/cli/Cargo.toml -------------------------------------------------------------------------------- /core/cli/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/cli/src/config.rs -------------------------------------------------------------------------------- /core/cli/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/cli/src/lib.rs -------------------------------------------------------------------------------- /core/rpc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/README.md -------------------------------------------------------------------------------- /core/rpc/core/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/Cargo.toml -------------------------------------------------------------------------------- /core/rpc/core/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/error.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl/adjust_account.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl/adjust_account.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl/build_tx.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl/build_tx.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl/operation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl/operation.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl/query.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl/query.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl/utils.rs -------------------------------------------------------------------------------- /core/rpc/core/src/impl/utils_types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/impl/utils_types.rs -------------------------------------------------------------------------------- /core/rpc/core/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/lib.rs -------------------------------------------------------------------------------- /core/rpc/core/src/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/tests/mod.rs -------------------------------------------------------------------------------- /core/rpc/core/src/tests/operation_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/tests/operation_test.rs -------------------------------------------------------------------------------- /core/rpc/core/src/tests/query_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/tests/query_test.rs -------------------------------------------------------------------------------- /core/rpc/core/src/tests/rpc_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/tests/rpc_test.rs -------------------------------------------------------------------------------- /core/rpc/core/src/tests/utils_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/core/src/tests/utils_test.rs -------------------------------------------------------------------------------- /core/rpc/types/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/Cargo.toml -------------------------------------------------------------------------------- /core/rpc/types/src/consts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/src/consts.rs -------------------------------------------------------------------------------- /core/rpc/types/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/src/error.rs -------------------------------------------------------------------------------- /core/rpc/types/src/indexer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/src/indexer.rs -------------------------------------------------------------------------------- /core/rpc/types/src/lazy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/src/lazy.rs -------------------------------------------------------------------------------- /core/rpc/types/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/src/lib.rs -------------------------------------------------------------------------------- /core/rpc/types/src/uints.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/rpc/types/src/uints.rs -------------------------------------------------------------------------------- /core/service/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/service/Cargo.toml -------------------------------------------------------------------------------- /core/service/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/service/src/lib.rs -------------------------------------------------------------------------------- /core/storage/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/Cargo.toml -------------------------------------------------------------------------------- /core/storage/benches/snowflake_bench.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/benches/snowflake_bench.rs -------------------------------------------------------------------------------- /core/storage/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/error.rs -------------------------------------------------------------------------------- /core/storage/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/lib.rs -------------------------------------------------------------------------------- /core/storage/src/relational/fetch.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/fetch.rs -------------------------------------------------------------------------------- /core/storage/src/relational/insert.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/insert.rs -------------------------------------------------------------------------------- /core/storage/src/relational/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/mod.rs -------------------------------------------------------------------------------- /core/storage/src/relational/remove.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/remove.rs -------------------------------------------------------------------------------- /core/storage/src/relational/snowflake.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/snowflake.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/fetch_mod_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/fetch_mod_test.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/get_block_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/get_block_test.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/get_cell_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/get_cell_test.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/get_historical_live_cells_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/get_historical_live_cells_test.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/get_tx_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/get_tx_test.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/mod.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/other_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/other_test.rs -------------------------------------------------------------------------------- /core/storage/src/relational/tests/single_sql_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/storage/src/relational/tests/single_sql_test.rs -------------------------------------------------------------------------------- /core/synchronization/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/Cargo.toml -------------------------------------------------------------------------------- /core/synchronization/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/README.md -------------------------------------------------------------------------------- /core/synchronization/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/src/lib.rs -------------------------------------------------------------------------------- /core/synchronization/src/sql.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/src/sql.rs -------------------------------------------------------------------------------- /core/synchronization/src/task.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/src/task.rs -------------------------------------------------------------------------------- /core/synchronization/src/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/src/tests/mod.rs -------------------------------------------------------------------------------- /core/synchronization/src/tests/sync_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/core/synchronization/src/tests/sync_test.rs -------------------------------------------------------------------------------- /db/db-sqlx/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/db/db-sqlx/Cargo.toml -------------------------------------------------------------------------------- /db/db-sqlx/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/db/db-sqlx/src/lib.rs -------------------------------------------------------------------------------- /db/db-sqlx/src/page.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/db/db-sqlx/src/page.rs -------------------------------------------------------------------------------- /db/xsql-test/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/db/xsql-test/Cargo.toml -------------------------------------------------------------------------------- /db/xsql-test/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/db/xsql-test/src/lib.rs -------------------------------------------------------------------------------- /db/xsql-test/src/sql.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/db/xsql-test/src/sql.rs -------------------------------------------------------------------------------- /devtools/config/docker_compose_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/config/docker_compose_config.toml -------------------------------------------------------------------------------- /devtools/config/mainnet_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/config/mainnet_config.toml -------------------------------------------------------------------------------- /devtools/config/testnet_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/config/testnet_config.toml -------------------------------------------------------------------------------- /devtools/create_table/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/create_table/create.py -------------------------------------------------------------------------------- /devtools/create_table/create_sqlite_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/create_table/create_sqlite_table.sql -------------------------------------------------------------------------------- /devtools/create_table/create_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/create_table/create_table.sql -------------------------------------------------------------------------------- /devtools/my-postgres.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/my-postgres.conf -------------------------------------------------------------------------------- /devtools/test_data/blocks/0.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/0.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/1.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/10.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/10.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/11.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/11.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/12.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/12.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/13.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/13.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/14.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/15.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/15.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/2.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/3.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/4.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/5.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/5.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/6.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/6.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/7.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/7.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/8.json -------------------------------------------------------------------------------- /devtools/test_data/blocks/9.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/devtools/test_data/blocks/9.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/assets/sync_flow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/docs/assets/sync_flow.jpg -------------------------------------------------------------------------------- /docs/config.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/docs/config.md -------------------------------------------------------------------------------- /docs/layout.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/docs/layout.md -------------------------------------------------------------------------------- /docs/migration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/docs/migration.md -------------------------------------------------------------------------------- /docs/setup.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/docs/setup.md -------------------------------------------------------------------------------- /free-space/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /integration/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/Cargo.lock -------------------------------------------------------------------------------- /integration/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/Cargo.toml -------------------------------------------------------------------------------- /integration/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/README.md -------------------------------------------------------------------------------- /integration/dev_chain/dev/ckb-miner.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/ckb-miner.toml -------------------------------------------------------------------------------- /integration/dev_chain/dev/ckb.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/ckb.toml -------------------------------------------------------------------------------- /integration/dev_chain/dev/default.db-options: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/default.db-options -------------------------------------------------------------------------------- /integration/dev_chain/dev/specs/cells/anyone_can_pay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/specs/cells/anyone_can_pay -------------------------------------------------------------------------------- /integration/dev_chain/dev/specs/cells/ckb-cheque-script: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/specs/cells/ckb-cheque-script -------------------------------------------------------------------------------- /integration/dev_chain/dev/specs/cells/secp256k1_keccak256_sighash_all_acpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/specs/cells/secp256k1_keccak256_sighash_all_acpl -------------------------------------------------------------------------------- /integration/dev_chain/dev/specs/cells/simple_udt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/specs/cells/simple_udt -------------------------------------------------------------------------------- /integration/dev_chain/dev/specs/dev.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/dev/specs/dev.toml -------------------------------------------------------------------------------- /integration/dev_chain/devnet_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/dev_chain/devnet_config.toml -------------------------------------------------------------------------------- /integration/src/const_definition.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/const_definition.rs -------------------------------------------------------------------------------- /integration/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/main.rs -------------------------------------------------------------------------------- /integration/src/tests/build_adjust_account_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_adjust_account_transaction.rs -------------------------------------------------------------------------------- /integration/src/tests/build_dao_related_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_dao_related_transaction.rs -------------------------------------------------------------------------------- /integration/src/tests/build_simple_transfer_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_simple_transfer_transaction.rs -------------------------------------------------------------------------------- /integration/src/tests/build_sudt_issue_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_sudt_issue_transaction.rs -------------------------------------------------------------------------------- /integration/src/tests/build_transfer_transaction_ckb.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_transfer_transaction_ckb.rs -------------------------------------------------------------------------------- /integration/src/tests/build_transfer_transaction_ckb_pw.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_transfer_transaction_ckb_pw.rs -------------------------------------------------------------------------------- /integration/src/tests/build_transfer_transaction_udt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/build_transfer_transaction_udt.rs -------------------------------------------------------------------------------- /integration/src/tests/exec_instructions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/exec_instructions.rs -------------------------------------------------------------------------------- /integration/src/tests/get_balance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/get_balance.rs -------------------------------------------------------------------------------- /integration/src/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/tests/mod.rs -------------------------------------------------------------------------------- /integration/src/utils/address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/utils/address.rs -------------------------------------------------------------------------------- /integration/src/utils/instruction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/utils/instruction.rs -------------------------------------------------------------------------------- /integration/src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/utils/mod.rs -------------------------------------------------------------------------------- /integration/src/utils/rpc_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/utils/rpc_client.rs -------------------------------------------------------------------------------- /integration/src/utils/signer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/integration/src/utils/signer.rs -------------------------------------------------------------------------------- /logger/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/logger/Cargo.toml -------------------------------------------------------------------------------- /logger/src/date_fixed_roller.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/logger/src/date_fixed_roller.rs -------------------------------------------------------------------------------- /logger/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/logger/src/lib.rs -------------------------------------------------------------------------------- /protocol/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/protocol/Cargo.toml -------------------------------------------------------------------------------- /protocol/src/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/protocol/src/db.rs -------------------------------------------------------------------------------- /protocol/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod db; 2 | -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | 1.60.0 2 | -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/src/main.rs -------------------------------------------------------------------------------- /tests/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/Cargo.lock -------------------------------------------------------------------------------- /tests/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/Cargo.toml -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/tests/rpc/build_adjust_account_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/build_adjust_account_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/build_dao_deposit_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/build_dao_deposit_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/build_dao_withdraw_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/build_dao_withdraw_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/build_simple_transfer_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/build_simple_transfer_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/build_sudt_issue_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/build_sudt_issue_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/build_transfer_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/build_transfer_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/common.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_account_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_account_info.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_balance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_balance.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_block_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_block_info.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_cells.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_cells.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_cells_capacity.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_cells_capacity.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_db.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_mercury_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_mercury_info.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_spent_transaction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_spent_transaction.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_sync_state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_sync_state.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_tip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_tip.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_transaction_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_transaction_info.rs -------------------------------------------------------------------------------- /tests/tests/rpc/get_transactions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/get_transactions.rs -------------------------------------------------------------------------------- /tests/tests/rpc/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/mod.rs -------------------------------------------------------------------------------- /tests/tests/rpc/query_transactions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nervosnetwork/mercury/HEAD/tests/tests/rpc/query_transactions.rs -------------------------------------------------------------------------------- /tests/tests/test.rs: -------------------------------------------------------------------------------- 1 | mod rpc; 2 | --------------------------------------------------------------------------------