Skip to content

Commit

Permalink
chore(ICRC_Index): FI-1468: Remove old ICRC index canister (#3286)
Browse files Browse the repository at this point in the history
The old ICRC index canister, which stores the blocks on the heap (as
opposed to the `index-ng` canister which stores the blocks in stable
memory), is deprecated. To avoid confusion, remove it from the
repository.

---------

Co-authored-by: IDX GitHub Automation <[email protected]>
  • Loading branch information
mbjorkqvist and IDX GitHub Automation authored Dec 27, 2024
1 parent baaf256 commit 575ca53
Show file tree
Hide file tree
Showing 19 changed files with 71 additions and 2,038 deletions.
35 changes: 0 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ members = [
"rs/rosetta-api/icp/ledger_canister_blocks_synchronizer",
"rs/rosetta-api/icp/ledger_canister_blocks_synchronizer/test_utils",
"rs/ledger_suite/icrc1",
"rs/ledger_suite/icrc1/index",
"rs/ledger_suite/icrc1/index-ng",
"rs/ledger_suite/icrc1/ledger",
"rs/ledger_suite/tests/sm-tests",
Expand Down
1 change: 0 additions & 1 deletion publish/canisters/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ CANISTERS = {
"ic-ckbtc-minter_debug.wasm.gz": "//rs/bitcoin/ckbtc/minter:ckbtc_minter_debug",
"ic-ckbtc-kyt.wasm.gz": "//rs/bitcoin/ckbtc/kyt:kyt_canister",
"ic-cketh-minter.wasm.gz": "//rs/ethereum/cketh/minter:cketh_minter",
"ic-icrc1-index.wasm.gz": "//rs/ledger_suite/icrc1/index:index_canister",
"ic-icrc1-index-ng.wasm.gz": "//rs/ledger_suite/icrc1/index-ng:index_ng_canister",
"ic-icrc1-index-ng-u256.wasm.gz": "//rs/ledger_suite/icrc1/index-ng:index_ng_canister_u256",
"ic-icrc1-ledger.wasm.gz": "//rs/ledger_suite/icrc1/ledger:ledger_canister",
Expand Down
9 changes: 4 additions & 5 deletions rs/bitcoin/ckbtc/mainnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Root canister id: `r7inp-6aaaa-aaaaa-aaabq-cai`.
Subnet: `pzp6e-ekpqk-3c5x7-2h6so-njoeq-mt45d-h3h6c-q3mxf-vpeq5-fk5o7-yae`


## Installing the minter ([`mqygn-kiaaa-aaaar-qaadq-cai`](https://dashboard.internetcomputer.org/canister/mqygn-kiaaa-aaaar-qaadq-cai))

Notes on init args:
Expand Down Expand Up @@ -81,7 +80,7 @@ Notes on init args:
* The transfer fee is 10 ckBTC Satoshis.
* There are no initial balances: the minter is responsible for minting all ckBTC.
* Archive max memory size is 3 GiB, or 3_221_225_472 bytes. We can afford to use that much memory because archives store transactions in stable memory.
* The `max_memo_length` was last udpated to 80 in [NNS proposal 123422](https://dashboard.internetcomputer.org/proposal/123422).
* The `max_memo_length` was last updated to 80 in [NNS proposal 123422](https://dashboard.internetcomputer.org/proposal/123422).

The metadata contains the official ckBTC logo.

Expand Down Expand Up @@ -138,7 +137,7 @@ bazel build //rs/registry/admin:ic-admin
Encoding the init args:

```shell
didc encode -d ../../../ledger_suite/icrc1/index/index.did -t '(InitArgs)' '(record { ledger_id = principal "mxzaz-hqaaa-aaaar-qaada-cai" })' | xxd -r -p > index_arg.bin
didc encode -d ../../../ledger_suite/icrc1/index-ng/index-ng.did -t '(opt IndexArg)' '(opt variant { Init = record { ledger_id = principal "mxzaz-hqaaa-aaaar-qaada-cai" } })' | xxd -r -p > index_arg.bin
```

Submitting the install proposal:
Expand All @@ -156,7 +155,7 @@ bazel build //rs/registry/admin:ic-admin
--proposer $NEURON_ID \
--canister-id n5wcd-faaaa-aaaar-qaaea-cai \
--mode install \
--wasm-module-path ./ic-icrc1-index.wasm.gz \
--wasm-module-path ./ic-icrc1-index-ng.wasm.gz \
--wasm-module-sha256 $WASM_SHA256 \
--arg index_arg.bin \
--summary-file ./index_proposal.md
Expand All @@ -177,7 +176,7 @@ bazel build //rs/registry/admin:ic-admin
--proposer $NEURON_ID \
--canister-id n5wcd-faaaa-aaaar-qaaea-cai \
--mode upgrade \
--wasm-module-path ./ic-icrc1-index.wasm.gz \
--wasm-module-path ./ic-icrc1-index-ng.wasm.gz \
--wasm-module-sha256 $WASM_SHA256 \
--summary-file ./index_upgrade.md
```
Expand Down
6 changes: 3 additions & 3 deletions rs/bitcoin/ckbtc/mainnet/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"index": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/index:index_canister"
"bazel build //rs/ledger_suite/icrc1/index-ng:index_ng_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/index/index_canister.wasm",
"candid": "../../../ledger_suite/icrc1/index/index.did",
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/index-ng/index_ng_canister.wasm",
"candid": "../../../ledger_suite/icrc1/index-ng/index-ng.did",
"shrink": false
},
"btc_checker": {
Expand Down
118 changes: 59 additions & 59 deletions rs/bitcoin/ckbtc/staging/dfx.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
{
"version": 1,
"dfx": "0.12.1",
"canisters": {
"minter": {
"type": "custom",
"build": [
"bazel build //rs/bitcoin/ckbtc/minter:ckbtc_minter"
],
"wasm": "../../../../bazel-bin/rs/bitcoin/ckbtc/minter/ckbtc_minter.wasm",
"candid": "../minter/ckbtc_minter.did",
"shrink": false
},
"ledger": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/ledger:ledger_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/ledger/ledger_canister.wasm",
"candid": "../../../ledger_suite/icrc1/ledger/ledger.did",
"shrink": false
},
"archive": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/archive:archive_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/archive/archive_canister.wasm",
"candid": "../../../ledger_suite/icrc1/archive/archive.did",
"shrink": false
},
"index": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/index:index_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/index/index_canister.wasm",
"candid": "../../../ledger_suite/icrc1/index/index.did",
"shrink": false
},
"kyt": {
"type": "custom",
"build": [
"bazel build //rs/bitcoin/ckbtc/kyt:kyt_canister"
],
"wasm": "../../../../bazel-bin/rs/bitcoin/ckbtc/kyt/kyt_canister.wasm",
"candid": "../kyt/kyt.did",
"shrink": false
}
"version": 1,
"dfx": "0.12.1",
"canisters": {
"minter": {
"type": "custom",
"build": [
"bazel build //rs/bitcoin/ckbtc/minter:ckbtc_minter"
],
"wasm": "../../../../bazel-bin/rs/bitcoin/ckbtc/minter/ckbtc_minter.wasm",
"candid": "../minter/ckbtc_minter.did",
"shrink": false
},
"defaults": {
"build": {
"packtool": "",
"args": ""
}
"ledger": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/ledger:ledger_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/ledger/ledger_canister.wasm",
"candid": "../../../ledger_suite/icrc1/ledger/ledger.did",
"shrink": false
},
"networks": {
"local": {
"bind": "127.0.0.1:8000",
"type": "ephemeral"
}
"archive": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/archive:archive_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/archive/archive_canister.wasm",
"candid": "../../../ledger_suite/icrc1/archive/archive.did",
"shrink": false
},
"index": {
"type": "custom",
"build": [
"bazel build //rs/ledger_suite/icrc1/index-ng:index_ng_canister"
],
"wasm": "../../../../bazel-bin/rs/ledger_suite/icrc1/index-ng/index_ng_canister.wasm",
"candid": "../../../ledger_suite/icrc1/index-ng/index-ng.did",
"shrink": false
},
"kyt": {
"type": "custom",
"build": [
"bazel build //rs/bitcoin/ckbtc/kyt:kyt_canister"
],
"wasm": "../../../../bazel-bin/rs/bitcoin/ckbtc/kyt/kyt_canister.wasm",
"candid": "../kyt/kyt.did",
"shrink": false
}
},
"defaults": {
"build": {
"packtool": "",
"args": ""
}
},
"networks": {
"local": {
"bind": "127.0.0.1:8000",
"type": "ephemeral"
}
}
}
}
4 changes: 0 additions & 4 deletions rs/ledger_suite/icrc1/index-ng/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,13 @@ rust_test(
],
crate_features = conf["crate_features"],
data = [
"//rs/ledger_suite/icrc1/index:index_canister.wasm",
] + [
conf["index_wasm"],
conf["ledger_wasm"],
],
env = {
"RUST_TEST_THREADS": "4",
"CARGO_MANIFEST_DIR": "rs/ledger_suite/icrc1/index-ng",
"IC_ICRC1_INDEX_NG_WASM_PATH": "$(rootpath " + conf["index_wasm"] + ")",
"IC_ICRC1_INDEX_WASM_PATH": "$(rootpath //rs/ledger_suite/icrc1/index:index_canister.wasm)",
"IC_ICRC1_LEDGER_WASM_PATH": "$(rootpath " + conf["ledger_wasm"] + ")",
},
extra_srcs = ["tests/common/mod.rs"],
Expand All @@ -119,7 +116,6 @@ rust_test(
"//rs/ledger_suite/common/ledger_canister_core",
"//rs/ledger_suite/common/ledger_core",
"//rs/ledger_suite/icrc1",
"//rs/ledger_suite/icrc1/index",
"//rs/ledger_suite/icrc1/ledger",
"//rs/ledger_suite/icrc1/test_utils",
"//rs/ledger_suite/icrc1/tokens_u64",
Expand Down
1 change: 0 additions & 1 deletion rs/ledger_suite/icrc1/index-ng/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ serde_json = { workspace = true }
candid_parser = { workspace = true }
ic-agent = { workspace = true }
ic-base-types = { path = "../../../types/base_types" }
ic-icrc1-index = { path = "../index" }
ic-icrc1-ledger = { path = "../ledger" }
ic-ledger-suite-state-machine-tests = { path = "../../tests/sm-tests" }
ic-icrc1-test-utils = { path = "../test_utils" }
Expand Down
Loading

0 comments on commit 575ca53

Please sign in to comment.