From e0c76067eec35ab8ac43f6492b5cf8d057518fa7 Mon Sep 17 00:00:00 2001 From: sa-github-api <138766536+sa-github-api@users.noreply.github.com> Date: Mon, 26 Aug 2024 02:54:04 -0500 Subject: [PATCH] Update Candid Files (#702) # Motivation The canisters APIs have been updated. # Changes * Updated the candid interface files for the canisters used in this library. * Updated the javascript bindings for the latest candid interfaces. # Tests - [ ] Please check the API updates for any breaking changes that affect our code. Co-authored-by: gix-bot --- packages/ckbtc/candid/minter.did | 2 +- packages/cketh/candid/minter.did | 2 +- packages/cketh/candid/orchestrator.did | 2 +- packages/cmc/candid/cmc.did | 2 +- .../candid/ic-management.certified.idl.js | 26 ++++++-- .../ic-management/candid/ic-management.d.ts | 25 ++++++-- .../ic-management/candid/ic-management.did | 60 ++++++++++++------- .../ic-management/candid/ic-management.idl.js | 26 ++++++-- packages/ledger-icp/candid/index.did | 2 +- .../ledger-icp/candid/ledger.certified.idl.js | 2 - packages/ledger-icp/candid/ledger.d.ts | 1 - packages/ledger-icp/candid/ledger.did | 3 +- packages/ledger-icp/candid/ledger.idl.js | 2 - packages/ledger-icrc/candid/icrc_index-ng.did | 2 +- packages/ledger-icrc/candid/icrc_index.did | 2 +- .../candid/icrc_ledger.certified.idl.js | 2 - packages/ledger-icrc/candid/icrc_ledger.d.ts | 1 - packages/ledger-icrc/candid/icrc_ledger.did | 3 +- .../ledger-icrc/candid/icrc_ledger.idl.js | 2 - packages/nns/candid/genesis_token.did | 2 +- .../nns/candid/governance.certified.idl.js | 15 +++++ packages/nns/candid/governance.d.ts | 14 +++++ packages/nns/candid/governance.did | 15 ++++- packages/nns/candid/governance.idl.js | 15 +++++ .../candid/governance_test.certified.idl.js | 15 +++++ packages/nns/candid/governance_test.d.ts | 14 +++++ packages/nns/candid/governance_test.did | 15 ++++- packages/nns/candid/governance_test.idl.js | 15 +++++ packages/nns/candid/sns_wasm.certified.idl.js | 16 ----- packages/nns/candid/sns_wasm.d.ts | 18 ------ packages/nns/candid/sns_wasm.did | 16 +---- packages/nns/candid/sns_wasm.idl.js | 16 ----- packages/sns/candid/sns_governance.did | 2 +- packages/sns/candid/sns_governance_test.did | 2 +- packages/sns/candid/sns_root.certified.idl.js | 6 ++ packages/sns/candid/sns_root.d.ts | 3 + packages/sns/candid/sns_root.did | 5 +- packages/sns/candid/sns_root.idl.js | 6 ++ packages/sns/candid/sns_swap.certified.idl.js | 49 +++++---------- packages/sns/candid/sns_swap.d.ts | 9 ++- packages/sns/candid/sns_swap.did | 9 +-- packages/sns/candid/sns_swap.idl.js | 49 +++++---------- 42 files changed, 289 insertions(+), 204 deletions(-) diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index 1dca3538..31996799 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid // Represents an account on the ckBTC ledger. type Account = record { owner : principal; subaccount : opt blob }; diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index 5c5698de..692c4904 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid type EthereumNetwork = variant { // The public Ethereum mainnet. Mainnet; diff --git a/packages/cketh/candid/orchestrator.did b/packages/cketh/candid/orchestrator.did index 0536da2d..82de2e1d 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid type OrchestratorArg = variant { UpgradeArg : UpgradeArg; InitArg : InitArg; diff --git a/packages/cmc/candid/cmc.did b/packages/cmc/candid/cmc.did index f9ed21d6..36e6b7a2 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/nns/cmc/cmc.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/nns/cmc/cmc.did' by import-candid type Cycles = nat; type BlockIndex = nat64; type log_visibility = variant { diff --git a/packages/ic-management/candid/ic-management.certified.idl.js b/packages/ic-management/candid/ic-management.certified.idl.js index 7ac2af46..706c7d32 100644 --- a/packages/ic-management/candid/ic-management.certified.idl.js +++ b/packages/ic-management/candid/ic-management.certified.idl.js @@ -18,6 +18,17 @@ export const idlFactory = ({ IDL }) => { 'min_confirmations' : IDL.Opt(IDL.Nat32), }); const bitcoin_get_balance_query_result = satoshi; + const bitcoin_block_height = IDL.Nat32; + const bitcoin_get_block_headers_args = IDL.Record({ + 'start_height' : bitcoin_block_height, + 'end_height' : IDL.Opt(bitcoin_block_height), + 'network' : bitcoin_network, + }); + const bitcoin_block_header = IDL.Vec(IDL.Nat8); + const bitcoin_get_block_headers_result = IDL.Record({ + 'tip_height' : bitcoin_block_height, + 'block_headers' : IDL.Vec(bitcoin_block_header), + }); const bitcoin_get_current_fee_percentiles_args = IDL.Record({ 'network' : bitcoin_network, }); @@ -35,7 +46,7 @@ export const idlFactory = ({ IDL }) => { ), 'address' : bitcoin_address, }); - const block_hash = IDL.Vec(IDL.Nat8); + const bitcoin_block_hash = IDL.Vec(IDL.Nat8); const outpoint = IDL.Record({ 'txid' : IDL.Vec(IDL.Nat8), 'vout' : IDL.Nat32, @@ -47,8 +58,8 @@ export const idlFactory = ({ IDL }) => { }); const bitcoin_get_utxos_result = IDL.Record({ 'next_page' : IDL.Opt(IDL.Vec(IDL.Nat8)), - 'tip_height' : IDL.Nat32, - 'tip_block_hash' : block_hash, + 'tip_height' : bitcoin_block_height, + 'tip_block_hash' : bitcoin_block_hash, 'utxos' : IDL.Vec(utxo), }); const bitcoin_get_utxos_query_args = IDL.Record({ @@ -63,8 +74,8 @@ export const idlFactory = ({ IDL }) => { }); const bitcoin_get_utxos_query_result = IDL.Record({ 'next_page' : IDL.Opt(IDL.Vec(IDL.Nat8)), - 'tip_height' : IDL.Nat32, - 'tip_block_hash' : block_hash, + 'tip_height' : bitcoin_block_height, + 'tip_block_hash' : bitcoin_block_hash, 'utxos' : IDL.Vec(utxo), }); const bitcoin_send_transaction_args = IDL.Record({ @@ -334,6 +345,11 @@ export const idlFactory = ({ IDL }) => { [bitcoin_get_balance_query_result], [], ), + 'bitcoin_get_block_headers' : IDL.Func( + [bitcoin_get_block_headers_args], + [bitcoin_get_block_headers_result], + [], + ), 'bitcoin_get_current_fee_percentiles' : IDL.Func( [bitcoin_get_current_fee_percentiles_args], [bitcoin_get_current_fee_percentiles_result], diff --git a/packages/ic-management/candid/ic-management.d.ts b/packages/ic-management/candid/ic-management.d.ts index bc34f19d..c4990b9c 100644 --- a/packages/ic-management/candid/ic-management.d.ts +++ b/packages/ic-management/candid/ic-management.d.ts @@ -3,6 +3,9 @@ import type { IDL } from "@dfinity/candid"; import type { Principal } from "@dfinity/principal"; export type bitcoin_address = string; +export type bitcoin_block_hash = Uint8Array | number[]; +export type bitcoin_block_header = Uint8Array | number[]; +export type bitcoin_block_height = number; export interface bitcoin_get_balance_args { network: bitcoin_network; address: bitcoin_address; @@ -15,6 +18,15 @@ export interface bitcoin_get_balance_query_args { } export type bitcoin_get_balance_query_result = satoshi; export type bitcoin_get_balance_result = satoshi; +export interface bitcoin_get_block_headers_args { + start_height: bitcoin_block_height; + end_height: [] | [bitcoin_block_height]; + network: bitcoin_network; +} +export interface bitcoin_get_block_headers_result { + tip_height: bitcoin_block_height; + block_headers: Array; +} export interface bitcoin_get_current_fee_percentiles_args { network: bitcoin_network; } @@ -37,14 +49,14 @@ export interface bitcoin_get_utxos_query_args { } export interface bitcoin_get_utxos_query_result { next_page: [] | [Uint8Array | number[]]; - tip_height: number; - tip_block_hash: block_hash; + tip_height: bitcoin_block_height; + tip_block_hash: bitcoin_block_hash; utxos: Array; } export interface bitcoin_get_utxos_result { next_page: [] | [Uint8Array | number[]]; - tip_height: number; - tip_block_hash: block_hash; + tip_height: bitcoin_block_height; + tip_block_hash: bitcoin_block_hash; utxos: Array; } export type bitcoin_network = { mainnet: null } | { testnet: null }; @@ -52,7 +64,6 @@ export interface bitcoin_send_transaction_args { transaction: Uint8Array | number[]; network: bitcoin_network; } -export type block_hash = Uint8Array | number[]; export type canister_id = Principal; export interface canister_info_args { canister_id: canister_id; @@ -315,6 +326,10 @@ export interface _SERVICE { [bitcoin_get_balance_query_args], bitcoin_get_balance_query_result >; + bitcoin_get_block_headers: ActorMethod< + [bitcoin_get_block_headers_args], + bitcoin_get_block_headers_result + >; bitcoin_get_current_fee_percentiles: ActorMethod< [bitcoin_get_current_fee_percentiles_args], bitcoin_get_current_fee_percentiles_result diff --git a/packages/ic-management/candid/ic-management.did b/packages/ic-management/candid/ic-management.did index 20a76d9a..53b4010c 100644 --- a/packages/ic-management/candid/ic-management.did +++ b/packages/ic-management/candid/ic-management.did @@ -1,4 +1,4 @@ -// Generated from dfinity/interface-spec commit 99bc27cb00159f4413c320d68c76baec4b230644 for file 'spec/_attachments/ic.did' +// Generated from dfinity/interface-spec commit 0a50e0c1eac44dbc0c02116ff110096a17c4c022 for file 'spec/_attachments/ic.did' type canister_id = principal; type wasm_module = blob; @@ -91,7 +91,13 @@ type bitcoin_network = variant { type bitcoin_address = text; -type block_hash = blob; +type bitcoin_block_hash = blob; + +type bitcoin_block_header = blob; + +type millisatoshi_per_byte = nat64; + +type bitcoin_block_height = nat32; type outpoint = record { txid : blob; @@ -113,6 +119,13 @@ type bitcoin_get_utxos_args = record { }; }; +type bitcoin_get_utxos_result = record { + utxos : vec utxo; + tip_block_hash : bitcoin_block_hash; + tip_height : bitcoin_block_height; + next_page : opt blob; +}; + type bitcoin_get_utxos_query_args = record { address : bitcoin_address; network : bitcoin_network; @@ -122,21 +135,10 @@ type bitcoin_get_utxos_query_args = record { }; }; -type bitcoin_get_current_fee_percentiles_args = record { - network : bitcoin_network; -}; - -type bitcoin_get_utxos_result = record { - utxos : vec utxo; - tip_block_hash : block_hash; - tip_height : nat32; - next_page : opt blob; -}; - type bitcoin_get_utxos_query_result = record { utxos : vec utxo; - tip_block_hash : block_hash; - tip_height : nat32; + tip_block_hash : bitcoin_block_hash; + tip_height : bitcoin_block_height; next_page : opt blob; }; @@ -146,18 +148,37 @@ type bitcoin_get_balance_args = record { min_confirmations : opt nat32; }; +type bitcoin_get_balance_result = satoshi; + type bitcoin_get_balance_query_args = record { address : bitcoin_address; network : bitcoin_network; min_confirmations : opt nat32; }; +type bitcoin_get_balance_query_result = satoshi; + +type bitcoin_get_current_fee_percentiles_args = record { + network : bitcoin_network; +}; + +type bitcoin_get_current_fee_percentiles_result = vec millisatoshi_per_byte; + type bitcoin_send_transaction_args = record { transaction : blob; network : bitcoin_network; }; -type millisatoshi_per_byte = nat64; +type bitcoin_get_block_headers_args = record { + start_height : bitcoin_block_height; + end_height : opt bitcoin_block_height; + network: bitcoin_network; +}; + +type bitcoin_get_block_headers_result = record { + tip_height : bitcoin_block_height; + block_headers : vec bitcoin_block_header; +}; type node_metrics = record { node_id : principal; @@ -362,12 +383,6 @@ type stored_chunks_result = vec chunk_hash; type upload_chunk_result = chunk_hash; -type bitcoin_get_balance_result = satoshi; - -type bitcoin_get_balance_query_result = satoshi; - -type bitcoin_get_current_fee_percentiles_result = vec millisatoshi_per_byte; - type fetch_canister_logs_args = record { canister_id : canister_id; }; @@ -415,6 +430,7 @@ service ic : { bitcoin_get_utxos_query : (bitcoin_get_utxos_query_args) -> (bitcoin_get_utxos_query_result) query; bitcoin_send_transaction : (bitcoin_send_transaction_args) -> (); bitcoin_get_current_fee_percentiles : (bitcoin_get_current_fee_percentiles_args) -> (bitcoin_get_current_fee_percentiles_result); + bitcoin_get_block_headers : (bitcoin_get_block_headers_args) -> (bitcoin_get_block_headers_result); // metrics interface node_metrics_history : (node_metrics_history_args) -> (node_metrics_history_result); diff --git a/packages/ic-management/candid/ic-management.idl.js b/packages/ic-management/candid/ic-management.idl.js index 137981b1..f7efe2bb 100644 --- a/packages/ic-management/candid/ic-management.idl.js +++ b/packages/ic-management/candid/ic-management.idl.js @@ -18,6 +18,17 @@ export const idlFactory = ({ IDL }) => { 'min_confirmations' : IDL.Opt(IDL.Nat32), }); const bitcoin_get_balance_query_result = satoshi; + const bitcoin_block_height = IDL.Nat32; + const bitcoin_get_block_headers_args = IDL.Record({ + 'start_height' : bitcoin_block_height, + 'end_height' : IDL.Opt(bitcoin_block_height), + 'network' : bitcoin_network, + }); + const bitcoin_block_header = IDL.Vec(IDL.Nat8); + const bitcoin_get_block_headers_result = IDL.Record({ + 'tip_height' : bitcoin_block_height, + 'block_headers' : IDL.Vec(bitcoin_block_header), + }); const bitcoin_get_current_fee_percentiles_args = IDL.Record({ 'network' : bitcoin_network, }); @@ -35,7 +46,7 @@ export const idlFactory = ({ IDL }) => { ), 'address' : bitcoin_address, }); - const block_hash = IDL.Vec(IDL.Nat8); + const bitcoin_block_hash = IDL.Vec(IDL.Nat8); const outpoint = IDL.Record({ 'txid' : IDL.Vec(IDL.Nat8), 'vout' : IDL.Nat32, @@ -47,8 +58,8 @@ export const idlFactory = ({ IDL }) => { }); const bitcoin_get_utxos_result = IDL.Record({ 'next_page' : IDL.Opt(IDL.Vec(IDL.Nat8)), - 'tip_height' : IDL.Nat32, - 'tip_block_hash' : block_hash, + 'tip_height' : bitcoin_block_height, + 'tip_block_hash' : bitcoin_block_hash, 'utxos' : IDL.Vec(utxo), }); const bitcoin_get_utxos_query_args = IDL.Record({ @@ -63,8 +74,8 @@ export const idlFactory = ({ IDL }) => { }); const bitcoin_get_utxos_query_result = IDL.Record({ 'next_page' : IDL.Opt(IDL.Vec(IDL.Nat8)), - 'tip_height' : IDL.Nat32, - 'tip_block_hash' : block_hash, + 'tip_height' : bitcoin_block_height, + 'tip_block_hash' : bitcoin_block_hash, 'utxos' : IDL.Vec(utxo), }); const bitcoin_send_transaction_args = IDL.Record({ @@ -334,6 +345,11 @@ export const idlFactory = ({ IDL }) => { [bitcoin_get_balance_query_result], ['query'], ), + 'bitcoin_get_block_headers' : IDL.Func( + [bitcoin_get_block_headers_args], + [bitcoin_get_block_headers_result], + [], + ), 'bitcoin_get_current_fee_percentiles' : IDL.Func( [bitcoin_get_current_fee_percentiles_args], [bitcoin_get_current_fee_percentiles_result], diff --git a/packages/ledger-icp/candid/index.did b/packages/ledger-icp/candid/index.did index 81ac35c2..50f98b03 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid type Account = record { owner : principal; subaccount : opt vec nat8 }; type GetAccountIdentifierTransactionsArgs = record { max_results : nat64; diff --git a/packages/ledger-icp/candid/ledger.certified.idl.js b/packages/ledger-icp/candid/ledger.certified.idl.js index 55db885b..5348ff13 100644 --- a/packages/ledger-icp/candid/ledger.certified.idl.js +++ b/packages/ledger-icp/candid/ledger.certified.idl.js @@ -7,7 +7,6 @@ export const idlFactory = ({ IDL }) => { }); const FeatureFlags = IDL.Record({ 'icrc2' : IDL.Bool }); const UpgradeArgs = IDL.Record({ - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'icrc1_minting_account' : IDL.Opt(Account), 'feature_flags' : IDL.Opt(FeatureFlags), }); @@ -370,7 +369,6 @@ export const init = ({ IDL }) => { }); const FeatureFlags = IDL.Record({ 'icrc2' : IDL.Bool }); const UpgradeArgs = IDL.Record({ - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'icrc1_minting_account' : IDL.Opt(Account), 'feature_flags' : IDL.Opt(FeatureFlags), }); diff --git a/packages/ledger-icp/candid/ledger.d.ts b/packages/ledger-icp/candid/ledger.d.ts index e791c183..9dfbd223 100644 --- a/packages/ledger-icp/candid/ledger.d.ts +++ b/packages/ledger-icp/candid/ledger.d.ts @@ -257,7 +257,6 @@ export type TransferFromResult = | { Err: TransferFromError }; export type TransferResult = { Ok: BlockIndex } | { Err: TransferError }; export interface UpgradeArgs { - maximum_number_of_accounts: [] | [bigint]; icrc1_minting_account: [] | [Account]; feature_flags: [] | [FeatureFlags]; } diff --git a/packages/ledger-icp/candid/ledger.did b/packages/ledger-icp/candid/ledger.did index d6ee3a84..e3ec8994 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icp_ledger/ledger.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/rosetta-api/icp_ledger/ledger.did' by import-candid // This is the official Ledger interface that is guaranteed to be backward compatible. // Amount of tokens, measured in 10^-8 of a token. @@ -351,7 +351,6 @@ type Value = variant { }; type UpgradeArgs = record { - maximum_number_of_accounts : opt nat64; icrc1_minting_account : opt Account; feature_flags : opt FeatureFlags; }; diff --git a/packages/ledger-icp/candid/ledger.idl.js b/packages/ledger-icp/candid/ledger.idl.js index ed83f8a0..8cd7c5b4 100644 --- a/packages/ledger-icp/candid/ledger.idl.js +++ b/packages/ledger-icp/candid/ledger.idl.js @@ -7,7 +7,6 @@ export const idlFactory = ({ IDL }) => { }); const FeatureFlags = IDL.Record({ 'icrc2' : IDL.Bool }); const UpgradeArgs = IDL.Record({ - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'icrc1_minting_account' : IDL.Opt(Account), 'feature_flags' : IDL.Opt(FeatureFlags), }); @@ -390,7 +389,6 @@ export const init = ({ IDL }) => { }); const FeatureFlags = IDL.Record({ 'icrc2' : IDL.Bool }); const UpgradeArgs = IDL.Record({ - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'icrc1_minting_account' : IDL.Opt(Account), 'feature_flags' : IDL.Opt(FeatureFlags), }); diff --git a/packages/ledger-icrc/candid/icrc_index-ng.did b/packages/ledger-icrc/candid/icrc_index-ng.did index bde19a57..88a8fd58 100644 --- a/packages/ledger-icrc/candid/icrc_index-ng.did +++ b/packages/ledger-icrc/candid/icrc_index-ng.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icrc1/index-ng/index-ng.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/rosetta-api/icrc1/index-ng/index-ng.did' by import-candid type Tokens = nat; type InitArg = record { diff --git a/packages/ledger-icrc/candid/icrc_index.did b/packages/ledger-icrc/candid/icrc_index.did index 7c0c9d17..d0f495a7 100644 --- a/packages/ledger-icrc/candid/icrc_index.did +++ b/packages/ledger-icrc/candid/icrc_index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icrc1/index/index.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/rosetta-api/icrc1/index/index.did' by import-candid type TxId = nat; type Account = record { owner : principal; subaccount : opt blob }; diff --git a/packages/ledger-icrc/candid/icrc_ledger.certified.idl.js b/packages/ledger-icrc/candid/icrc_ledger.certified.idl.js index 1e02981c..e7e8f66a 100644 --- a/packages/ledger-icrc/candid/icrc_ledger.certified.idl.js +++ b/packages/ledger-icrc/candid/icrc_ledger.certified.idl.js @@ -34,7 +34,6 @@ export const idlFactory = ({ IDL }) => { 'token_symbol' : IDL.Opt(IDL.Text), 'transfer_fee' : IDL.Opt(IDL.Nat), 'metadata' : IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, MetadataValue))), - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'accounts_overflow_trim_quantity' : IDL.Opt(IDL.Nat64), 'change_fee_collector' : IDL.Opt(ChangeFeeCollector), 'max_memo_length' : IDL.Opt(IDL.Nat16), @@ -440,7 +439,6 @@ export const init = ({ IDL }) => { 'token_symbol' : IDL.Opt(IDL.Text), 'transfer_fee' : IDL.Opt(IDL.Nat), 'metadata' : IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, MetadataValue))), - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'accounts_overflow_trim_quantity' : IDL.Opt(IDL.Nat64), 'change_fee_collector' : IDL.Opt(ChangeFeeCollector), 'max_memo_length' : IDL.Opt(IDL.Nat16), diff --git a/packages/ledger-icrc/candid/icrc_ledger.d.ts b/packages/ledger-icrc/candid/icrc_ledger.d.ts index 173a4048..e97db623 100644 --- a/packages/ledger-icrc/candid/icrc_ledger.d.ts +++ b/packages/ledger-icrc/candid/icrc_ledger.d.ts @@ -269,7 +269,6 @@ export interface UpgradeArgs { token_symbol: [] | [string]; transfer_fee: [] | [bigint]; metadata: [] | [Array<[string, MetadataValue]>]; - maximum_number_of_accounts: [] | [bigint]; accounts_overflow_trim_quantity: [] | [bigint]; change_fee_collector: [] | [ChangeFeeCollector]; max_memo_length: [] | [number]; diff --git a/packages/ledger-icrc/candid/icrc_ledger.did b/packages/ledger-icrc/candid/icrc_ledger.did index d3b9f1bb..7882bf16 100644 --- a/packages/ledger-icrc/candid/icrc_ledger.did +++ b/packages/ledger-icrc/candid/icrc_ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icrc1/ledger/ledger.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/rosetta-api/icrc1/ledger/ledger.did' by import-candid type BlockIndex = nat; type Subaccount = blob; // Number of nanoseconds since the UNIX epoch in UTC timezone. @@ -145,7 +145,6 @@ type UpgradeArgs = record { change_fee_collector : opt ChangeFeeCollector; max_memo_length : opt nat16; feature_flags : opt FeatureFlags; - maximum_number_of_accounts: opt nat64; accounts_overflow_trim_quantity: opt nat64; change_archive_options : opt ChangeArchiveOptions; }; diff --git a/packages/ledger-icrc/candid/icrc_ledger.idl.js b/packages/ledger-icrc/candid/icrc_ledger.idl.js index 2e36e6c2..53948489 100644 --- a/packages/ledger-icrc/candid/icrc_ledger.idl.js +++ b/packages/ledger-icrc/candid/icrc_ledger.idl.js @@ -34,7 +34,6 @@ export const idlFactory = ({ IDL }) => { 'token_symbol' : IDL.Opt(IDL.Text), 'transfer_fee' : IDL.Opt(IDL.Nat), 'metadata' : IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, MetadataValue))), - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'accounts_overflow_trim_quantity' : IDL.Opt(IDL.Nat64), 'change_fee_collector' : IDL.Opt(ChangeFeeCollector), 'max_memo_length' : IDL.Opt(IDL.Nat16), @@ -452,7 +451,6 @@ export const init = ({ IDL }) => { 'token_symbol' : IDL.Opt(IDL.Text), 'transfer_fee' : IDL.Opt(IDL.Nat), 'metadata' : IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, MetadataValue))), - 'maximum_number_of_accounts' : IDL.Opt(IDL.Nat64), 'accounts_overflow_trim_quantity' : IDL.Opt(IDL.Nat64), 'change_fee_collector' : IDL.Opt(ChangeFeeCollector), 'max_memo_length' : IDL.Opt(IDL.Nat16), diff --git a/packages/nns/candid/genesis_token.did b/packages/nns/candid/genesis_token.did index 6be1a978..cb66da43 100644 --- a/packages/nns/candid/genesis_token.did +++ b/packages/nns/candid/genesis_token.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/nns/gtc/canister/gtc.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/nns/gtc/canister/gtc.did' by import-candid type AccountState = record { authenticated_principal_id : opt principal; successfully_transferred_neurons : vec TransferredNeuron; diff --git a/packages/nns/candid/governance.certified.idl.js b/packages/nns/candid/governance.certified.idl.js index 789b21e0..b8e52c8e 100644 --- a/packages/nns/candid/governance.certified.idl.js +++ b/packages/nns/candid/governance.certified.idl.js @@ -741,6 +741,16 @@ export const idlFactory = ({ IDL }) => { 'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)), 'full_neurons' : IDL.Vec(Neuron), }); + const DateRangeFilter = IDL.Record({ + 'start_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); + const ListNodeProviderRewardsRequest = IDL.Record({ + 'date_filter' : IDL.Opt(DateRangeFilter), + }); + const ListNodeProviderRewardsResponse = IDL.Record({ + 'rewards' : IDL.Vec(MonthlyNodeProviderRewards), + }); const ListNodeProvidersResponse = IDL.Record({ 'node_providers' : IDL.Vec(NodeProvider), }); @@ -936,6 +946,11 @@ export const idlFactory = ({ IDL }) => { 'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []), 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []), 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []), + 'list_node_provider_rewards' : IDL.Func( + [ListNodeProviderRewardsRequest], + [ListNodeProviderRewardsResponse], + [], + ), 'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []), 'list_proposals' : IDL.Func( [ListProposalInfo], diff --git a/packages/nns/candid/governance.d.ts b/packages/nns/candid/governance.d.ts index 8ba0c2c2..d23b0bb0 100644 --- a/packages/nns/candid/governance.d.ts +++ b/packages/nns/candid/governance.d.ts @@ -166,6 +166,10 @@ export interface CreateServiceNervousSystem { swap_parameters: [] | [SwapParameters]; initial_token_distribution: [] | [InitialTokenDistribution]; } +export interface DateRangeFilter { + start_timestamp_seconds: [] | [bigint]; + end_timestamp_seconds: [] | [bigint]; +} export interface Decimal { human_readable: [] | [string]; } @@ -363,6 +367,12 @@ export interface ListNeuronsResponse { neuron_infos: Array<[bigint, NeuronInfo]>; full_neurons: Array; } +export interface ListNodeProviderRewardsRequest { + date_filter: [] | [DateRangeFilter]; +} +export interface ListNodeProviderRewardsResponse { + rewards: Array; +} export interface ListNodeProvidersResponse { node_providers: Array; } @@ -927,6 +937,10 @@ export interface _SERVICE { get_restore_aging_summary: ActorMethod<[], RestoreAgingSummary>; list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>; list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>; + list_node_provider_rewards: ActorMethod< + [ListNodeProviderRewardsRequest], + ListNodeProviderRewardsResponse + >; list_node_providers: ActorMethod<[], ListNodeProvidersResponse>; list_proposals: ActorMethod<[ListProposalInfo], ListProposalInfoResponse>; manage_neuron: ActorMethod<[ManageNeuronRequest], ManageNeuronResponse>; diff --git a/packages/nns/candid/governance.did b/packages/nns/candid/governance.did index 2b3a7045..2dc69747 100644 --- a/packages/nns/candid/governance.did +++ b/packages/nns/candid/governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 8e149ef621 (2024-08-16) 'rs/nns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/nns/governance/canister/governance.did' by import-candid type AccountIdentifier = record { hash : blob }; type Action = variant { RegisterKnownNeuron : KnownNeuron; @@ -138,6 +138,10 @@ type CreateServiceNervousSystem = record { swap_parameters : opt SwapParameters; initial_token_distribution : opt InitialTokenDistribution; }; +type DateRangeFilter = record { + start_timestamp_seconds : opt nat64; + end_timestamp_seconds : opt nat64; +}; type Decimal = record { human_readable : opt text }; type DerivedProposalInformation = record { swap_background_information : opt SwapBackgroundInformation; @@ -302,6 +306,12 @@ type ListNeuronsResponse = record { neuron_infos : vec record { nat64; NeuronInfo }; full_neurons : vec Neuron; }; +type ListNodeProviderRewardsRequest = record { + date_filter : opt DateRangeFilter; +}; +type ListNodeProviderRewardsResponse = record { + rewards : vec MonthlyNodeProviderRewards; +}; type ListNodeProvidersResponse = record { node_providers : vec NodeProvider }; type ListProposalInfo = record { include_reward_status : vec int32; @@ -800,6 +810,9 @@ service : (Governance) -> { get_restore_aging_summary : () -> (RestoreAgingSummary) query; list_known_neurons : () -> (ListKnownNeuronsResponse) query; list_neurons : (ListNeurons) -> (ListNeuronsResponse) query; + list_node_provider_rewards : (ListNodeProviderRewardsRequest) -> ( + ListNodeProviderRewardsResponse, + ) query; list_node_providers : () -> (ListNodeProvidersResponse) query; list_proposals : (ListProposalInfo) -> (ListProposalInfoResponse) query; manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse); diff --git a/packages/nns/candid/governance.idl.js b/packages/nns/candid/governance.idl.js index 187bd523..f162cc85 100644 --- a/packages/nns/candid/governance.idl.js +++ b/packages/nns/candid/governance.idl.js @@ -741,6 +741,16 @@ export const idlFactory = ({ IDL }) => { 'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)), 'full_neurons' : IDL.Vec(Neuron), }); + const DateRangeFilter = IDL.Record({ + 'start_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); + const ListNodeProviderRewardsRequest = IDL.Record({ + 'date_filter' : IDL.Opt(DateRangeFilter), + }); + const ListNodeProviderRewardsResponse = IDL.Record({ + 'rewards' : IDL.Vec(MonthlyNodeProviderRewards), + }); const ListNodeProvidersResponse = IDL.Record({ 'node_providers' : IDL.Vec(NodeProvider), }); @@ -948,6 +958,11 @@ export const idlFactory = ({ IDL }) => { ), 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']), 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']), + 'list_node_provider_rewards' : IDL.Func( + [ListNodeProviderRewardsRequest], + [ListNodeProviderRewardsResponse], + ['query'], + ), 'list_node_providers' : IDL.Func( [], [ListNodeProvidersResponse], diff --git a/packages/nns/candid/governance_test.certified.idl.js b/packages/nns/candid/governance_test.certified.idl.js index 21540f52..522a0afa 100644 --- a/packages/nns/candid/governance_test.certified.idl.js +++ b/packages/nns/candid/governance_test.certified.idl.js @@ -741,6 +741,16 @@ export const idlFactory = ({ IDL }) => { 'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)), 'full_neurons' : IDL.Vec(Neuron), }); + const DateRangeFilter = IDL.Record({ + 'start_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); + const ListNodeProviderRewardsRequest = IDL.Record({ + 'date_filter' : IDL.Opt(DateRangeFilter), + }); + const ListNodeProviderRewardsResponse = IDL.Record({ + 'rewards' : IDL.Vec(MonthlyNodeProviderRewards), + }); const ListNodeProvidersResponse = IDL.Record({ 'node_providers' : IDL.Vec(NodeProvider), }); @@ -936,6 +946,11 @@ export const idlFactory = ({ IDL }) => { 'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []), 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []), 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []), + 'list_node_provider_rewards' : IDL.Func( + [ListNodeProviderRewardsRequest], + [ListNodeProviderRewardsResponse], + [], + ), 'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []), 'list_proposals' : IDL.Func( [ListProposalInfo], diff --git a/packages/nns/candid/governance_test.d.ts b/packages/nns/candid/governance_test.d.ts index 84433d02..032100fb 100644 --- a/packages/nns/candid/governance_test.d.ts +++ b/packages/nns/candid/governance_test.d.ts @@ -166,6 +166,10 @@ export interface CreateServiceNervousSystem { swap_parameters: [] | [SwapParameters]; initial_token_distribution: [] | [InitialTokenDistribution]; } +export interface DateRangeFilter { + start_timestamp_seconds: [] | [bigint]; + end_timestamp_seconds: [] | [bigint]; +} export interface Decimal { human_readable: [] | [string]; } @@ -363,6 +367,12 @@ export interface ListNeuronsResponse { neuron_infos: Array<[bigint, NeuronInfo]>; full_neurons: Array; } +export interface ListNodeProviderRewardsRequest { + date_filter: [] | [DateRangeFilter]; +} +export interface ListNodeProviderRewardsResponse { + rewards: Array; +} export interface ListNodeProvidersResponse { node_providers: Array; } @@ -927,6 +937,10 @@ export interface _SERVICE { get_restore_aging_summary: ActorMethod<[], RestoreAgingSummary>; list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>; list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>; + list_node_provider_rewards: ActorMethod< + [ListNodeProviderRewardsRequest], + ListNodeProviderRewardsResponse + >; list_node_providers: ActorMethod<[], ListNodeProvidersResponse>; list_proposals: ActorMethod<[ListProposalInfo], ListProposalInfoResponse>; manage_neuron: ActorMethod<[ManageNeuronRequest], ManageNeuronResponse>; diff --git a/packages/nns/candid/governance_test.did b/packages/nns/candid/governance_test.did index d0e06681..69fec8f3 100644 --- a/packages/nns/candid/governance_test.did +++ b/packages/nns/candid/governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 8e149ef621 (2024-08-16) 'rs/nns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/nns/governance/canister/governance_test.did' by import-candid type AccountIdentifier = record { hash : blob }; type Action = variant { RegisterKnownNeuron : KnownNeuron; @@ -138,6 +138,10 @@ type CreateServiceNervousSystem = record { swap_parameters : opt SwapParameters; initial_token_distribution : opt InitialTokenDistribution; }; +type DateRangeFilter = record { + start_timestamp_seconds : opt nat64; + end_timestamp_seconds : opt nat64; +}; type Decimal = record { human_readable : opt text }; type DerivedProposalInformation = record { swap_background_information : opt SwapBackgroundInformation; @@ -302,6 +306,12 @@ type ListNeuronsResponse = record { neuron_infos : vec record { nat64; NeuronInfo }; full_neurons : vec Neuron; }; +type ListNodeProviderRewardsRequest = record { + date_filter : opt DateRangeFilter; +}; +type ListNodeProviderRewardsResponse = record { + rewards : vec MonthlyNodeProviderRewards; +}; type ListNodeProvidersResponse = record { node_providers : vec NodeProvider }; type ListProposalInfo = record { include_reward_status : vec int32; @@ -800,6 +810,9 @@ service : (Governance) -> { get_restore_aging_summary : () -> (RestoreAgingSummary) query; list_known_neurons : () -> (ListKnownNeuronsResponse) query; list_neurons : (ListNeurons) -> (ListNeuronsResponse) query; + list_node_provider_rewards : (ListNodeProviderRewardsRequest) -> ( + ListNodeProviderRewardsResponse, + ) query; list_node_providers : () -> (ListNodeProvidersResponse) query; list_proposals : (ListProposalInfo) -> (ListProposalInfoResponse) query; manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse); diff --git a/packages/nns/candid/governance_test.idl.js b/packages/nns/candid/governance_test.idl.js index c4b09cd2..483e7d89 100644 --- a/packages/nns/candid/governance_test.idl.js +++ b/packages/nns/candid/governance_test.idl.js @@ -741,6 +741,16 @@ export const idlFactory = ({ IDL }) => { 'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)), 'full_neurons' : IDL.Vec(Neuron), }); + const DateRangeFilter = IDL.Record({ + 'start_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); + const ListNodeProviderRewardsRequest = IDL.Record({ + 'date_filter' : IDL.Opt(DateRangeFilter), + }); + const ListNodeProviderRewardsResponse = IDL.Record({ + 'rewards' : IDL.Vec(MonthlyNodeProviderRewards), + }); const ListNodeProvidersResponse = IDL.Record({ 'node_providers' : IDL.Vec(NodeProvider), }); @@ -948,6 +958,11 @@ export const idlFactory = ({ IDL }) => { ), 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']), 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']), + 'list_node_provider_rewards' : IDL.Func( + [ListNodeProviderRewardsRequest], + [ListNodeProviderRewardsResponse], + ['query'], + ), 'list_node_providers' : IDL.Func( [], [ListNodeProvidersResponse], diff --git a/packages/nns/candid/sns_wasm.certified.idl.js b/packages/nns/candid/sns_wasm.certified.idl.js index 0c9d5d3b..ae2518b9 100644 --- a/packages/nns/candid/sns_wasm.certified.idl.js +++ b/packages/nns/candid/sns_wasm.certified.idl.js @@ -44,21 +44,6 @@ export const idlFactory = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const CfNeuron = IDL.Record({ - 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), - 'nns_neuron_id' : IDL.Nat64, - 'amount_icp_e8s' : IDL.Nat64, - }); - const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'hotkey_principal' : IDL.Text, - 'cf_neurons' : IDL.Vec(CfNeuron), - }); - const NeuronsFundParticipants = IDL.Record({ - 'participants' : IDL.Vec(CfParticipant), - }); const TreasuryDistribution = IDL.Record({ 'total_e8s' : IDL.Nat64 }); const NeuronDistribution = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -119,7 +104,6 @@ export const idlFactory = ({ IDL }) => { 'neurons_fund_participation_constraints' : IDL.Opt( NeuronsFundParticipationConstraints ), - 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants), 'max_age_bonus_percentage' : IDL.Opt(IDL.Nat64), 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution), 'reward_rate_transition_duration_seconds' : IDL.Opt(IDL.Nat64), diff --git a/packages/nns/candid/sns_wasm.d.ts b/packages/nns/candid/sns_wasm.d.ts index e2587473..253c9fa8 100644 --- a/packages/nns/candid/sns_wasm.d.ts +++ b/packages/nns/candid/sns_wasm.d.ts @@ -15,17 +15,6 @@ export interface AirdropDistribution { export interface Canister { id: [] | [Principal]; } -export interface CfNeuron { - has_created_neuron_recipes: [] | [boolean]; - hotkeys: [] | [Principals]; - nns_neuron_id: bigint; - amount_icp_e8s: bigint; -} -export interface CfParticipant { - controller: [] | [Principal]; - hotkey_principal: string; - cf_neurons: Array; -} export interface Countries { iso_codes: Array; } @@ -155,9 +144,6 @@ export interface NeuronDistribution { stake_e8s: bigint; vesting_period_seconds: [] | [bigint]; } -export interface NeuronsFundParticipants { - participants: Array; -} export interface NeuronsFundParticipationConstraints { coefficient_intervals: Array; max_neurons_fund_participation_icp_e8s: [] | [bigint]; @@ -177,9 +163,6 @@ export interface PrettySnsVersion { governance_wasm_hash: string; index_wasm_hash: string; } -export interface Principals { - principals: Array; -} export type Result = { Error: SnsWasmError } | { Hash: Uint8Array | number[] }; export type Result_1 = { Ok: Ok } | { Error: SnsWasmError }; export interface SnsCanisterIds { @@ -221,7 +204,6 @@ export interface SnsInitPayload { neurons_fund_participation_constraints: | [] | [NeuronsFundParticipationConstraints]; - neurons_fund_participants: [] | [NeuronsFundParticipants]; max_age_bonus_percentage: [] | [bigint]; initial_token_distribution: [] | [InitialTokenDistribution]; reward_rate_transition_duration_seconds: [] | [bigint]; diff --git a/packages/nns/candid/sns_wasm.did b/packages/nns/candid/sns_wasm.did index 0cdeb05e..6f1f3bf1 100644 --- a/packages/nns/candid/sns_wasm.did +++ b/packages/nns/candid/sns_wasm.did @@ -1,19 +1,8 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm }; type AddWasmResponse = record { result : opt Result }; type AirdropDistribution = record { airdrop_neurons : vec NeuronDistribution }; type Canister = record { id : opt principal }; -type CfNeuron = record { - has_created_neuron_recipes : opt bool; - hotkeys : opt Principals; - nns_neuron_id : nat64; - amount_icp_e8s : nat64; -}; -type CfParticipant = record { - controller : opt principal; - hotkey_principal : text; - cf_neurons : vec CfNeuron; -}; type Countries = record { iso_codes : vec text }; type DappCanisters = record { canisters : vec Canister }; type DappCanistersTransferResult = record { @@ -112,7 +101,6 @@ type NeuronDistribution = record { stake_e8s : nat64; vesting_period_seconds : opt nat64; }; -type NeuronsFundParticipants = record { participants : vec CfParticipant }; type NeuronsFundParticipationConstraints = record { coefficient_intervals : vec LinearScalingCoefficient; max_neurons_fund_participation_icp_e8s : opt nat64; @@ -128,7 +116,6 @@ type PrettySnsVersion = record { governance_wasm_hash : text; index_wasm_hash : text; }; -type Principals = record { principals : vec principal }; type Result = variant { Error : SnsWasmError; Hash : blob }; type Result_1 = variant { Ok : Ok; Error : SnsWasmError }; type SnsCanisterIds = record { @@ -166,7 +153,6 @@ type SnsInitPayload = record { transaction_fee_e8s : opt nat64; dapp_canisters : opt DappCanisters; neurons_fund_participation_constraints : opt NeuronsFundParticipationConstraints; - neurons_fund_participants : opt NeuronsFundParticipants; max_age_bonus_percentage : opt nat64; initial_token_distribution : opt InitialTokenDistribution; reward_rate_transition_duration_seconds : opt nat64; diff --git a/packages/nns/candid/sns_wasm.idl.js b/packages/nns/candid/sns_wasm.idl.js index c8c1303e..bd8f27d7 100644 --- a/packages/nns/candid/sns_wasm.idl.js +++ b/packages/nns/candid/sns_wasm.idl.js @@ -44,21 +44,6 @@ export const idlFactory = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const CfNeuron = IDL.Record({ - 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), - 'nns_neuron_id' : IDL.Nat64, - 'amount_icp_e8s' : IDL.Nat64, - }); - const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'hotkey_principal' : IDL.Text, - 'cf_neurons' : IDL.Vec(CfNeuron), - }); - const NeuronsFundParticipants = IDL.Record({ - 'participants' : IDL.Vec(CfParticipant), - }); const TreasuryDistribution = IDL.Record({ 'total_e8s' : IDL.Nat64 }); const NeuronDistribution = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), @@ -119,7 +104,6 @@ export const idlFactory = ({ IDL }) => { 'neurons_fund_participation_constraints' : IDL.Opt( NeuronsFundParticipationConstraints ), - 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants), 'max_age_bonus_percentage' : IDL.Opt(IDL.Nat64), 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution), 'reward_rate_transition_duration_seconds' : IDL.Opt(IDL.Nat64), diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index 98c6276d..6b7e3c4f 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount }; type Action = variant { ManageNervousSystemParameters : NervousSystemParameters; diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index 19e40d40..54cf1a74 100644 --- a/packages/sns/candid/sns_governance_test.did +++ b/packages/sns/candid/sns_governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount }; type Action = variant { ManageNervousSystemParameters : NervousSystemParameters; diff --git a/packages/sns/candid/sns_root.certified.idl.js b/packages/sns/candid/sns_root.certified.idl.js index 70b8e579..2ecd76d4 100644 --- a/packages/sns/candid/sns_root.certified.idl.js +++ b/packages/sns/candid/sns_root.certified.idl.js @@ -16,10 +16,16 @@ export const idlFactory = ({ IDL }) => { 'stopping' : IDL.Null, 'running' : IDL.Null, }); + const LogVisibility = IDL.Variant({ + 'controllers' : IDL.Null, + 'public' : IDL.Null, + }); const DefiniteCanisterSettings = IDL.Record({ 'freezing_threshold' : IDL.Opt(IDL.Nat), 'controllers' : IDL.Vec(IDL.Principal), 'reserved_cycles_limit' : IDL.Opt(IDL.Nat), + 'log_visibility' : IDL.Opt(LogVisibility), + 'wasm_memory_limit' : IDL.Opt(IDL.Nat), 'memory_allocation' : IDL.Opt(IDL.Nat), 'compute_allocation' : IDL.Opt(IDL.Nat), }); diff --git a/packages/sns/candid/sns_root.d.ts b/packages/sns/candid/sns_root.d.ts index 93503eaa..727d2dad 100644 --- a/packages/sns/candid/sns_root.d.ts +++ b/packages/sns/candid/sns_root.d.ts @@ -51,6 +51,8 @@ export interface DefiniteCanisterSettings { freezing_threshold: [] | [bigint]; controllers: Array; reserved_cycles_limit: [] | [bigint]; + log_visibility: [] | [LogVisibility]; + wasm_memory_limit: [] | [bigint]; memory_allocation: [] | [bigint]; compute_allocation: [] | [bigint]; } @@ -85,6 +87,7 @@ export interface ListSnsCanistersResponse { dapps: Array; archives: Array; } +export type LogVisibility = { controllers: null } | { public: null }; export interface ManageDappCanisterSettingsRequest { freezing_threshold: [] | [bigint]; canister_ids: Array; diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index ac580a3a..877d10d8 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/root/canister/root.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/root/canister/root.did' by import-candid type CanisterCallError = record { code : opt int32; description : text }; type CanisterIdRecord = record { canister_id : principal }; type CanisterInstallMode = variant { reinstall; upgrade; install }; @@ -37,6 +37,8 @@ type DefiniteCanisterSettings = record { freezing_threshold : opt nat; controllers : vec principal; reserved_cycles_limit : opt nat; + log_visibility : opt LogVisibility; + wasm_memory_limit : opt nat; memory_allocation : opt nat; compute_allocation : opt nat; }; @@ -69,6 +71,7 @@ type ListSnsCanistersResponse = record { dapps : vec principal; archives : vec principal; }; +type LogVisibility = variant { controllers; public }; type ManageDappCanisterSettingsRequest = record { freezing_threshold : opt nat64; canister_ids : vec principal; diff --git a/packages/sns/candid/sns_root.idl.js b/packages/sns/candid/sns_root.idl.js index d3b3dc03..38599e26 100644 --- a/packages/sns/candid/sns_root.idl.js +++ b/packages/sns/candid/sns_root.idl.js @@ -16,10 +16,16 @@ export const idlFactory = ({ IDL }) => { 'stopping' : IDL.Null, 'running' : IDL.Null, }); + const LogVisibility = IDL.Variant({ + 'controllers' : IDL.Null, + 'public' : IDL.Null, + }); const DefiniteCanisterSettings = IDL.Record({ 'freezing_threshold' : IDL.Opt(IDL.Nat), 'controllers' : IDL.Vec(IDL.Principal), 'reserved_cycles_limit' : IDL.Opt(IDL.Nat), + 'log_visibility' : IDL.Opt(LogVisibility), + 'wasm_memory_limit' : IDL.Opt(IDL.Nat), 'memory_allocation' : IDL.Opt(IDL.Nat), 'compute_allocation' : IDL.Opt(IDL.Nat), }); diff --git a/packages/sns/candid/sns_swap.certified.idl.js b/packages/sns/candid/sns_swap.certified.idl.js index d7af7497..dfc2e79c 100644 --- a/packages/sns/candid/sns_swap.certified.idl.js +++ b/packages/sns/candid/sns_swap.certified.idl.js @@ -22,21 +22,6 @@ export const idlFactory = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const CfNeuron = IDL.Record({ - 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), - 'nns_neuron_id' : IDL.Nat64, - 'amount_icp_e8s' : IDL.Nat64, - }); - const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'hotkey_principal' : IDL.Text, - 'cf_neurons' : IDL.Vec(CfNeuron), - }); - const NeuronsFundParticipants = IDL.Record({ - 'cf_participants' : IDL.Vec(CfParticipant), - }); const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) }); const Init = IDL.Record({ 'nns_proposal_id' : IDL.Opt(IDL.Nat64), @@ -61,7 +46,6 @@ export const idlFactory = ({ IDL }) => { 'neurons_fund_participation_constraints' : IDL.Opt( NeuronsFundParticipationConstraints ), - 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants), 'should_auto_finalize' : IDL.Opt(IDL.Bool), 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64), 'sns_governance_canister_id' : IDL.Text, @@ -243,6 +227,7 @@ export const idlFactory = ({ IDL }) => { 'memo' : IDL.Nat64, 'followees' : IDL.Vec(NeuronId), }); + const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); const CfInvestment = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, @@ -260,6 +245,17 @@ export const idlFactory = ({ IDL }) => { 'neuron_attributes' : IDL.Opt(NeuronAttributes), 'investor' : IDL.Opt(Investor), }); + const CfNeuron = IDL.Record({ + 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), + 'hotkeys' : IDL.Opt(Principals), + 'nns_neuron_id' : IDL.Nat64, + 'amount_icp_e8s' : IDL.Nat64, + }); + const CfParticipant = IDL.Record({ + 'controller' : IDL.Opt(IDL.Principal), + 'hotkey_principal' : IDL.Text, + 'cf_neurons' : IDL.Vec(CfNeuron), + }); const Swap = IDL.Record({ 'auto_finalize_swap_response' : IDL.Opt(FinalizeSwapResponse), 'neuron_recipes' : IDL.Vec(SnsNeuronRecipe), @@ -298,6 +294,9 @@ export const idlFactory = ({ IDL }) => { 'offset' : IDL.Opt(IDL.Nat64), 'limit' : IDL.Opt(IDL.Nat32), }); + const ListCommunityFundParticipantsResponse = IDL.Record({ + 'cf_participants' : IDL.Vec(CfParticipant), + }); const ListDirectParticipantsRequest = IDL.Record({ 'offset' : IDL.Opt(IDL.Nat32), 'limit' : IDL.Opt(IDL.Nat32), @@ -382,7 +381,7 @@ export const idlFactory = ({ IDL }) => { 'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], []), 'list_community_fund_participants' : IDL.Func( [ListCommunityFundParticipantsRequest], - [NeuronsFundParticipants], + [ListCommunityFundParticipantsResponse], [], ), 'list_direct_participants' : IDL.Func( @@ -431,21 +430,6 @@ export const init = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const CfNeuron = IDL.Record({ - 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), - 'nns_neuron_id' : IDL.Nat64, - 'amount_icp_e8s' : IDL.Nat64, - }); - const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'hotkey_principal' : IDL.Text, - 'cf_neurons' : IDL.Vec(CfNeuron), - }); - const NeuronsFundParticipants = IDL.Record({ - 'cf_participants' : IDL.Vec(CfParticipant), - }); const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) }); const Init = IDL.Record({ 'nns_proposal_id' : IDL.Opt(IDL.Nat64), @@ -470,7 +454,6 @@ export const init = ({ IDL }) => { 'neurons_fund_participation_constraints' : IDL.Opt( NeuronsFundParticipationConstraints ), - 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants), 'should_auto_finalize' : IDL.Opt(IDL.Bool), 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64), 'sns_governance_canister_id' : IDL.Text, diff --git a/packages/sns/candid/sns_swap.d.ts b/packages/sns/candid/sns_swap.d.ts index 6059831a..50c611d2 100644 --- a/packages/sns/candid/sns_swap.d.ts +++ b/packages/sns/candid/sns_swap.d.ts @@ -175,7 +175,6 @@ export interface Init { neurons_fund_participation_constraints: | [] | [NeuronsFundParticipationConstraints]; - neurons_fund_participants: [] | [NeuronsFundParticipants]; should_auto_finalize: [] | [boolean]; max_participant_icp_e8s: [] | [bigint]; sns_governance_canister_id: string; @@ -202,6 +201,9 @@ export interface ListCommunityFundParticipantsRequest { offset: [] | [bigint]; limit: [] | [number]; } +export interface ListCommunityFundParticipantsResponse { + cf_participants: Array; +} export interface ListDirectParticipantsRequest { offset: [] | [number]; limit: [] | [number]; @@ -228,9 +230,6 @@ export interface NeuronBasketConstructionParameters { export interface NeuronId { id: Uint8Array | number[]; } -export interface NeuronsFundParticipants { - cf_participants: Array; -} export interface NeuronsFundParticipationConstraints { coefficient_intervals: Array; max_neurons_fund_participation_icp_e8s: [] | [bigint]; @@ -379,7 +378,7 @@ export interface _SERVICE { get_state: ActorMethod<[{}], GetStateResponse>; list_community_fund_participants: ActorMethod< [ListCommunityFundParticipantsRequest], - NeuronsFundParticipants + ListCommunityFundParticipantsResponse >; list_direct_participants: ActorMethod< [ListDirectParticipantsRequest], diff --git a/packages/sns/candid/sns_swap.did b/packages/sns/candid/sns_swap.did index 46f4c325..c13e02f5 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/swap/canister/swap.did' by import-candid +// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/swap/canister/swap.did' by import-candid type BuyerState = record { icp : opt TransferableAmount; has_created_neuron_recipes : opt bool; @@ -122,7 +122,6 @@ type Init = record { icp_ledger_canister_id : text; sns_ledger_canister_id : text; neurons_fund_participation_constraints : opt NeuronsFundParticipationConstraints; - neurons_fund_participants : opt NeuronsFundParticipants; should_auto_finalize : opt bool; max_participant_icp_e8s : opt nat64; sns_governance_canister_id : text; @@ -150,6 +149,9 @@ type ListCommunityFundParticipantsRequest = record { offset : opt nat64; limit : opt nat32; }; +type ListCommunityFundParticipantsResponse = record { + cf_participants : vec CfParticipant; +}; type ListDirectParticipantsRequest = record { offset : opt nat32; limit : opt nat32; @@ -172,7 +174,6 @@ type NeuronBasketConstructionParameters = record { count : nat64; }; type NeuronId = record { id : blob }; -type NeuronsFundParticipants = record { cf_participants : vec CfParticipant }; type NeuronsFundParticipationConstraints = record { coefficient_intervals : vec LinearScalingCoefficient; max_neurons_fund_participation_icp_e8s : opt nat64; @@ -297,7 +298,7 @@ service : (Init) -> { get_sale_parameters : (record {}) -> (GetSaleParametersResponse) query; get_state : (record {}) -> (GetStateResponse) query; list_community_fund_participants : (ListCommunityFundParticipantsRequest) -> ( - NeuronsFundParticipants, + ListCommunityFundParticipantsResponse, ) query; list_direct_participants : (ListDirectParticipantsRequest) -> ( ListDirectParticipantsResponse, diff --git a/packages/sns/candid/sns_swap.idl.js b/packages/sns/candid/sns_swap.idl.js index 4f4eed26..79a89eda 100644 --- a/packages/sns/candid/sns_swap.idl.js +++ b/packages/sns/candid/sns_swap.idl.js @@ -22,21 +22,6 @@ export const idlFactory = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const CfNeuron = IDL.Record({ - 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), - 'nns_neuron_id' : IDL.Nat64, - 'amount_icp_e8s' : IDL.Nat64, - }); - const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'hotkey_principal' : IDL.Text, - 'cf_neurons' : IDL.Vec(CfNeuron), - }); - const NeuronsFundParticipants = IDL.Record({ - 'cf_participants' : IDL.Vec(CfParticipant), - }); const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) }); const Init = IDL.Record({ 'nns_proposal_id' : IDL.Opt(IDL.Nat64), @@ -61,7 +46,6 @@ export const idlFactory = ({ IDL }) => { 'neurons_fund_participation_constraints' : IDL.Opt( NeuronsFundParticipationConstraints ), - 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants), 'should_auto_finalize' : IDL.Opt(IDL.Bool), 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64), 'sns_governance_canister_id' : IDL.Text, @@ -243,6 +227,7 @@ export const idlFactory = ({ IDL }) => { 'memo' : IDL.Nat64, 'followees' : IDL.Vec(NeuronId), }); + const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); const CfInvestment = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, @@ -260,6 +245,17 @@ export const idlFactory = ({ IDL }) => { 'neuron_attributes' : IDL.Opt(NeuronAttributes), 'investor' : IDL.Opt(Investor), }); + const CfNeuron = IDL.Record({ + 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), + 'hotkeys' : IDL.Opt(Principals), + 'nns_neuron_id' : IDL.Nat64, + 'amount_icp_e8s' : IDL.Nat64, + }); + const CfParticipant = IDL.Record({ + 'controller' : IDL.Opt(IDL.Principal), + 'hotkey_principal' : IDL.Text, + 'cf_neurons' : IDL.Vec(CfNeuron), + }); const Swap = IDL.Record({ 'auto_finalize_swap_response' : IDL.Opt(FinalizeSwapResponse), 'neuron_recipes' : IDL.Vec(SnsNeuronRecipe), @@ -298,6 +294,9 @@ export const idlFactory = ({ IDL }) => { 'offset' : IDL.Opt(IDL.Nat64), 'limit' : IDL.Opt(IDL.Nat32), }); + const ListCommunityFundParticipantsResponse = IDL.Record({ + 'cf_participants' : IDL.Vec(CfParticipant), + }); const ListDirectParticipantsRequest = IDL.Record({ 'offset' : IDL.Opt(IDL.Nat32), 'limit' : IDL.Opt(IDL.Nat32), @@ -390,7 +389,7 @@ export const idlFactory = ({ IDL }) => { 'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], ['query']), 'list_community_fund_participants' : IDL.Func( [ListCommunityFundParticipantsRequest], - [NeuronsFundParticipants], + [ListCommunityFundParticipantsResponse], ['query'], ), 'list_direct_participants' : IDL.Func( @@ -439,21 +438,6 @@ export const init = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const CfNeuron = IDL.Record({ - 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), - 'nns_neuron_id' : IDL.Nat64, - 'amount_icp_e8s' : IDL.Nat64, - }); - const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'hotkey_principal' : IDL.Text, - 'cf_neurons' : IDL.Vec(CfNeuron), - }); - const NeuronsFundParticipants = IDL.Record({ - 'cf_participants' : IDL.Vec(CfParticipant), - }); const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) }); const Init = IDL.Record({ 'nns_proposal_id' : IDL.Opt(IDL.Nat64), @@ -478,7 +462,6 @@ export const init = ({ IDL }) => { 'neurons_fund_participation_constraints' : IDL.Opt( NeuronsFundParticipationConstraints ), - 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants), 'should_auto_finalize' : IDL.Opt(IDL.Bool), 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64), 'sns_governance_canister_id' : IDL.Text,