From 9c0a5f61f3825b867c1ce3ae2fc4fab6b97c3de9 Mon Sep 17 00:00:00 2001 From: sa-github-api <138766536+sa-github-api@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:29:27 +0100 Subject: [PATCH] Update Candid Files (#748) # 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.certified.idl.js | 7 +++++++ packages/cketh/candid/minter.d.ts | 3 +++ packages/cketh/candid/minter.did | 11 ++++++++++- packages/cketh/candid/minter.idl.js | 7 +++++++ packages/cketh/candid/orchestrator.did | 2 +- packages/cmc/candid/cmc.did | 2 +- packages/ledger-icp/candid/index.did | 2 +- packages/ledger-icp/candid/ledger.did | 2 +- packages/ledger-icrc/candid/icrc_index-ng.did | 2 +- packages/ledger-icrc/candid/icrc_index.did | 2 +- packages/ledger-icrc/candid/icrc_ledger.did | 2 +- packages/nns/candid/genesis_token.did | 2 +- packages/nns/candid/governance.certified.idl.js | 3 +++ packages/nns/candid/governance.d.ts | 2 ++ packages/nns/candid/governance.did | 4 +++- packages/nns/candid/governance.idl.js | 3 +++ packages/nns/candid/governance_test.certified.idl.js | 3 +++ packages/nns/candid/governance_test.d.ts | 2 ++ packages/nns/candid/governance_test.did | 4 +++- packages/nns/candid/governance_test.idl.js | 3 +++ packages/nns/candid/sns_wasm.did | 2 +- packages/sns/candid/sns_governance.certified.idl.js | 12 ++++++++++-- packages/sns/candid/sns_governance.d.ts | 6 +++++- packages/sns/candid/sns_governance.did | 9 +++++++-- packages/sns/candid/sns_governance.idl.js | 12 ++++++++++-- .../sns/candid/sns_governance_test.certified.idl.js | 12 ++++++++++-- packages/sns/candid/sns_governance_test.d.ts | 6 +++++- packages/sns/candid/sns_governance_test.did | 9 +++++++-- packages/sns/candid/sns_governance_test.idl.js | 12 ++++++++++-- packages/sns/candid/sns_root.did | 2 +- packages/sns/candid/sns_swap.did | 2 +- 32 files changed, 125 insertions(+), 29 deletions(-) diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index d90421c0..9ef8b460 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) '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.certified.idl.js b/packages/cketh/candid/minter.certified.idl.js index f7b5eefe..f905b330 100644 --- a/packages/cketh/candid/minter.certified.idl.js +++ b/packages/cketh/candid/minter.certified.idl.js @@ -6,6 +6,7 @@ export const idlFactory = ({ IDL }) => { 'Latest' : IDL.Null, }); const UpgradeArg = IDL.Record({ + 'deposit_with_subaccount_helper_contract_address' : IDL.Opt(IDL.Text), 'next_transaction_nonce' : IDL.Opt(IDL.Nat), 'evm_rpc_id' : IDL.Opt(IDL.Principal), 'ledger_suite_orchestrator_id' : IDL.Opt(IDL.Principal), @@ -13,6 +14,7 @@ export const idlFactory = ({ IDL }) => { 'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_contract_address' : IDL.Opt(IDL.Text), 'minimum_withdrawal_amount' : IDL.Opt(IDL.Nat), + 'last_deposit_with_subaccount_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_block_height' : IDL.Opt(BlockTag), }); const EthereumNetwork = IDL.Variant({ @@ -149,6 +151,9 @@ export const idlFactory = ({ IDL }) => { 'address' : IDL.Text, 'ckerc20_token_symbol' : IDL.Text, }), + 'SyncedDepositWithSubaccountToBlock' : IDL.Record({ + 'block_number' : IDL.Nat, + }), 'QuarantinedDeposit' : IDL.Record({ 'event_source' : EventSource }), 'SyncedToBlock' : IDL.Record({ 'block_number' : IDL.Nat }), 'AcceptedDeposit' : IDL.Record({ @@ -412,6 +417,7 @@ export const init = ({ IDL }) => { 'Latest' : IDL.Null, }); const UpgradeArg = IDL.Record({ + 'deposit_with_subaccount_helper_contract_address' : IDL.Opt(IDL.Text), 'next_transaction_nonce' : IDL.Opt(IDL.Nat), 'evm_rpc_id' : IDL.Opt(IDL.Principal), 'ledger_suite_orchestrator_id' : IDL.Opt(IDL.Principal), @@ -419,6 +425,7 @@ export const init = ({ IDL }) => { 'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_contract_address' : IDL.Opt(IDL.Text), 'minimum_withdrawal_amount' : IDL.Opt(IDL.Nat), + 'last_deposit_with_subaccount_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_block_height' : IDL.Opt(BlockTag), }); const EthereumNetwork = IDL.Variant({ diff --git a/packages/cketh/candid/minter.d.ts b/packages/cketh/candid/minter.d.ts index 2fe44a74..77b6c25b 100644 --- a/packages/cketh/candid/minter.d.ts +++ b/packages/cketh/candid/minter.d.ts @@ -92,6 +92,7 @@ export interface Event { ckerc20_token_symbol: string; }; } + | { SyncedDepositWithSubaccountToBlock: { block_number: bigint } } | { QuarantinedDeposit: { event_source: EventSource } } | { SyncedToBlock: { block_number: bigint } } | { @@ -324,6 +325,7 @@ export interface UnsignedTransaction { }>; } export interface UpgradeArg { + deposit_with_subaccount_helper_contract_address: [] | [string]; next_transaction_nonce: [] | [bigint]; evm_rpc_id: [] | [Principal]; ledger_suite_orchestrator_id: [] | [Principal]; @@ -331,6 +333,7 @@ export interface UpgradeArg { last_erc20_scraped_block_number: [] | [bigint]; ethereum_contract_address: [] | [string]; minimum_withdrawal_amount: [] | [bigint]; + last_deposit_with_subaccount_scraped_block_number: [] | [bigint]; ethereum_block_height: [] | [BlockTag]; } export interface WithdrawErc20Arg { diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index e34104d9..a0705c80 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid type EthereumNetwork = variant { // The public Ethereum mainnet. Mainnet; @@ -111,6 +111,12 @@ type UpgradeArg = record { // The principal of the EVM RPC canister that handles the communication // with the Ethereum blockchain. evm_rpc_id : opt principal; + + // Change the deposit with subaccount helper smart contract address. + deposit_with_subaccount_helper_contract_address : opt text; + + // Change the last scraped block number of the deposit with subaccount helper smart contract. + last_deposit_with_subaccount_scraped_block_number : opt nat; }; type MinterArg = variant { UpgradeArg : UpgradeArg; InitArg : InitArg }; @@ -450,6 +456,9 @@ type Event = record { SyncedErc20ToBlock : record { block_number : nat; }; + SyncedDepositWithSubaccountToBlock : record { + block_number : nat; + }; AcceptedEthWithdrawalRequest : record { withdrawal_amount : nat; destination : text; diff --git a/packages/cketh/candid/minter.idl.js b/packages/cketh/candid/minter.idl.js index 4d22a05a..48ff9024 100644 --- a/packages/cketh/candid/minter.idl.js +++ b/packages/cketh/candid/minter.idl.js @@ -6,6 +6,7 @@ export const idlFactory = ({ IDL }) => { 'Latest' : IDL.Null, }); const UpgradeArg = IDL.Record({ + 'deposit_with_subaccount_helper_contract_address' : IDL.Opt(IDL.Text), 'next_transaction_nonce' : IDL.Opt(IDL.Nat), 'evm_rpc_id' : IDL.Opt(IDL.Principal), 'ledger_suite_orchestrator_id' : IDL.Opt(IDL.Principal), @@ -13,6 +14,7 @@ export const idlFactory = ({ IDL }) => { 'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_contract_address' : IDL.Opt(IDL.Text), 'minimum_withdrawal_amount' : IDL.Opt(IDL.Nat), + 'last_deposit_with_subaccount_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_block_height' : IDL.Opt(BlockTag), }); const EthereumNetwork = IDL.Variant({ @@ -149,6 +151,9 @@ export const idlFactory = ({ IDL }) => { 'address' : IDL.Text, 'ckerc20_token_symbol' : IDL.Text, }), + 'SyncedDepositWithSubaccountToBlock' : IDL.Record({ + 'block_number' : IDL.Nat, + }), 'QuarantinedDeposit' : IDL.Record({ 'event_source' : EventSource }), 'SyncedToBlock' : IDL.Record({ 'block_number' : IDL.Nat }), 'AcceptedDeposit' : IDL.Record({ @@ -412,6 +417,7 @@ export const init = ({ IDL }) => { 'Latest' : IDL.Null, }); const UpgradeArg = IDL.Record({ + 'deposit_with_subaccount_helper_contract_address' : IDL.Opt(IDL.Text), 'next_transaction_nonce' : IDL.Opt(IDL.Nat), 'evm_rpc_id' : IDL.Opt(IDL.Principal), 'ledger_suite_orchestrator_id' : IDL.Opt(IDL.Principal), @@ -419,6 +425,7 @@ export const init = ({ IDL }) => { 'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_contract_address' : IDL.Opt(IDL.Text), 'minimum_withdrawal_amount' : IDL.Opt(IDL.Nat), + 'last_deposit_with_subaccount_scraped_block_number' : IDL.Opt(IDL.Nat), 'ethereum_block_height' : IDL.Opt(BlockTag), }); const EthereumNetwork = IDL.Variant({ diff --git a/packages/cketh/candid/orchestrator.did b/packages/cketh/candid/orchestrator.did index 09875fd4..10ecc8c2 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) '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 71cfcfbc..526d535b 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/cmc/cmc.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/nns/cmc/cmc.did' by import-candid type Cycles = nat; type BlockIndex = nat64; type log_visibility = variant { diff --git a/packages/ledger-icp/candid/index.did b/packages/ledger-icp/candid/index.did index 2c637f37..df13b44a 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icp/index/index.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/ledger_suite/icp/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.did b/packages/ledger-icp/candid/ledger.did index 679242c8..ade6c698 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icp/ledger.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/ledger_suite/icp/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. diff --git a/packages/ledger-icrc/candid/icrc_index-ng.did b/packages/ledger-icrc/candid/icrc_index-ng.did index 451d4773..52ea9400 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 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/ledger_suite/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 5dd1942c..9f812e44 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 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icrc1/index/index.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/ledger_suite/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.did b/packages/ledger-icrc/candid/icrc_ledger.did index 7a5f033f..ba0173ae 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 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid type BlockIndex = nat; type Subaccount = blob; // Number of nanoseconds since the UNIX epoch in UTC timezone. diff --git a/packages/nns/candid/genesis_token.did b/packages/nns/candid/genesis_token.did index 0bf23e6a..cceaa4ac 100644 --- a/packages/nns/candid/genesis_token.did +++ b/packages/nns/candid/genesis_token.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/gtc/canister/gtc.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) '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 af8c5106..281961a3 100644 --- a/packages/nns/candid/governance.certified.idl.js +++ b/packages/nns/candid/governance.certified.idl.js @@ -561,6 +561,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -712,6 +713,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'reward_status' : IDL.Int32, 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -1528,6 +1530,7 @@ export const init = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), diff --git a/packages/nns/candid/governance.d.ts b/packages/nns/candid/governance.d.ts index 2fab082e..37ad9014 100644 --- a/packages/nns/candid/governance.d.ts +++ b/packages/nns/candid/governance.d.ts @@ -684,6 +684,7 @@ export interface ProposalData { reject_cost_e8s: bigint; derived_proposal_information: [] | [DerivedProposalInformation]; latest_tally: [] | [Tally]; + total_potential_voting_power: [] | [bigint]; sns_token_swap_lifecycle: [] | [number]; decided_timestamp_seconds: bigint; proposal: [] | [Proposal]; @@ -708,6 +709,7 @@ export interface ProposalInfo { reject_cost_e8s: bigint; derived_proposal_information: [] | [DerivedProposalInformation]; latest_tally: [] | [Tally]; + total_potential_voting_power: [] | [bigint]; reward_status: number; decided_timestamp_seconds: bigint; proposal: [] | [Proposal]; diff --git a/packages/nns/candid/governance.did b/packages/nns/candid/governance.did index a71d5bf4..c0c9eed5 100644 --- a/packages/nns/candid/governance.did +++ b/packages/nns/candid/governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/nns/governance/canister/governance.did' by import-candid type AccountIdentifier = record { hash : blob; }; @@ -812,6 +812,7 @@ type ProposalData = record { wait_for_quiet_state : opt WaitForQuietState; executed_timestamp_seconds : nat64; original_total_community_fund_maturity_e8s_equivalent : opt nat64; + total_potential_voting_power : opt nat64; }; type ProposalInfo = record { @@ -832,6 +833,7 @@ type ProposalInfo = record { proposal : opt Proposal; proposer : opt NeuronId; executed_timestamp_seconds : nat64; + total_potential_voting_power : opt nat64; }; type RegisterVote = record { diff --git a/packages/nns/candid/governance.idl.js b/packages/nns/candid/governance.idl.js index 494dc3f5..1cca40ac 100644 --- a/packages/nns/candid/governance.idl.js +++ b/packages/nns/candid/governance.idl.js @@ -561,6 +561,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -712,6 +713,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'reward_status' : IDL.Int32, 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -1544,6 +1546,7 @@ export const init = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), diff --git a/packages/nns/candid/governance_test.certified.idl.js b/packages/nns/candid/governance_test.certified.idl.js index 3049fcd0..7ad32be6 100644 --- a/packages/nns/candid/governance_test.certified.idl.js +++ b/packages/nns/candid/governance_test.certified.idl.js @@ -561,6 +561,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -712,6 +713,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'reward_status' : IDL.Int32, 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -1529,6 +1531,7 @@ export const init = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), diff --git a/packages/nns/candid/governance_test.d.ts b/packages/nns/candid/governance_test.d.ts index d018b28d..9b728508 100644 --- a/packages/nns/candid/governance_test.d.ts +++ b/packages/nns/candid/governance_test.d.ts @@ -684,6 +684,7 @@ export interface ProposalData { reject_cost_e8s: bigint; derived_proposal_information: [] | [DerivedProposalInformation]; latest_tally: [] | [Tally]; + total_potential_voting_power: [] | [bigint]; sns_token_swap_lifecycle: [] | [number]; decided_timestamp_seconds: bigint; proposal: [] | [Proposal]; @@ -708,6 +709,7 @@ export interface ProposalInfo { reject_cost_e8s: bigint; derived_proposal_information: [] | [DerivedProposalInformation]; latest_tally: [] | [Tally]; + total_potential_voting_power: [] | [bigint]; reward_status: number; decided_timestamp_seconds: bigint; proposal: [] | [Proposal]; diff --git a/packages/nns/candid/governance_test.did b/packages/nns/candid/governance_test.did index 3239f022..7e2728b9 100644 --- a/packages/nns/candid/governance_test.did +++ b/packages/nns/candid/governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/nns/governance/canister/governance_test.did' by import-candid type AccountIdentifier = record { hash : blob; }; @@ -814,6 +814,7 @@ type ProposalData = record { wait_for_quiet_state : opt WaitForQuietState; executed_timestamp_seconds : nat64; original_total_community_fund_maturity_e8s_equivalent : opt nat64; + total_potential_voting_power : opt nat64; }; type ProposalInfo = record { @@ -834,6 +835,7 @@ type ProposalInfo = record { proposal : opt Proposal; proposer : opt NeuronId; executed_timestamp_seconds : nat64; + total_potential_voting_power : opt nat64; }; type RegisterVote = record { diff --git a/packages/nns/candid/governance_test.idl.js b/packages/nns/candid/governance_test.idl.js index 676c05a1..9c4e8fd3 100644 --- a/packages/nns/candid/governance_test.idl.js +++ b/packages/nns/candid/governance_test.idl.js @@ -561,6 +561,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -712,6 +713,7 @@ export const idlFactory = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'reward_status' : IDL.Int32, 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), @@ -1545,6 +1547,7 @@ export const init = ({ IDL }) => { 'reject_cost_e8s' : IDL.Nat64, 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation), 'latest_tally' : IDL.Opt(Tally), + 'total_potential_voting_power' : IDL.Opt(IDL.Nat64), 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32), 'decided_timestamp_seconds' : IDL.Nat64, 'proposal' : IDL.Opt(Proposal), diff --git a/packages/nns/candid/sns_wasm.did b/packages/nns/candid/sns_wasm.did index 0ff66fc9..9acde42f 100644 --- a/packages/nns/candid/sns_wasm.did +++ b/packages/nns/candid/sns_wasm.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm; diff --git a/packages/sns/candid/sns_governance.certified.idl.js b/packages/sns/candid/sns_governance.certified.idl.js index c9c70ac6..57067b2d 100644 --- a/packages/sns/candid/sns_governance.certified.idl.js +++ b/packages/sns/candid/sns_governance.certified.idl.js @@ -93,6 +93,10 @@ export const idlFactory = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -100,7 +104,7 @@ export const idlFactory = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), @@ -758,6 +762,10 @@ export const init = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -765,7 +773,7 @@ export const init = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), diff --git a/packages/sns/candid/sns_governance.d.ts b/packages/sns/candid/sns_governance.d.ts index 5e74a053..ffb59adb 100644 --- a/packages/sns/candid/sns_governance.d.ts +++ b/packages/sns/candid/sns_governance.d.ts @@ -548,6 +548,10 @@ export interface Tally { total: bigint; timestamp_seconds: bigint; } +export interface TargetVersionReset { + old_target_version: [] | [Version]; + new_target_version: [] | [Version]; +} export interface TargetVersionSet { old_target_version: [] | [Version]; new_target_version: [] | [Version]; @@ -584,7 +588,7 @@ export interface UpgradeJournalEntry { | { UpgradeOutcome: UpgradeOutcome } | { UpgradeStarted: UpgradeStarted } | { UpgradeStepsRefreshed: UpgradeStepsRefreshed } - | { TargetVersionReset: TargetVersionSet }, + | { TargetVersionReset: TargetVersionReset }, ]; timestamp_seconds: [] | [bigint]; } diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index 7864908e..8109b158 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/sns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -725,7 +725,7 @@ type UpgradeJournalEntry = record { event : opt variant { UpgradeStepsRefreshed : UpgradeStepsRefreshed; TargetVersionSet : TargetVersionSet; - TargetVersionReset : TargetVersionSet; + TargetVersionReset : TargetVersionReset; UpgradeStarted : UpgradeStarted; UpgradeOutcome : UpgradeOutcome; }; @@ -741,6 +741,11 @@ type TargetVersionSet = record { old_target_version : opt Version; }; +type TargetVersionReset = record { + new_target_version : opt Version; + old_target_version : opt Version; +}; + type UpgradeStarted = record { current_version : opt Version; expected_version : opt Version; diff --git a/packages/sns/candid/sns_governance.idl.js b/packages/sns/candid/sns_governance.idl.js index 67b9e043..eea6036c 100644 --- a/packages/sns/candid/sns_governance.idl.js +++ b/packages/sns/candid/sns_governance.idl.js @@ -93,6 +93,10 @@ export const idlFactory = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -100,7 +104,7 @@ export const idlFactory = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), @@ -766,6 +770,10 @@ export const init = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -773,7 +781,7 @@ export const init = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), diff --git a/packages/sns/candid/sns_governance_test.certified.idl.js b/packages/sns/candid/sns_governance_test.certified.idl.js index 591d19f3..ae0e278a 100644 --- a/packages/sns/candid/sns_governance_test.certified.idl.js +++ b/packages/sns/candid/sns_governance_test.certified.idl.js @@ -93,6 +93,10 @@ export const idlFactory = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -100,7 +104,7 @@ export const idlFactory = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), @@ -781,6 +785,10 @@ export const init = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -788,7 +796,7 @@ export const init = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), diff --git a/packages/sns/candid/sns_governance_test.d.ts b/packages/sns/candid/sns_governance_test.d.ts index e76c069c..757ea010 100644 --- a/packages/sns/candid/sns_governance_test.d.ts +++ b/packages/sns/candid/sns_governance_test.d.ts @@ -563,6 +563,10 @@ export interface Tally { total: bigint; timestamp_seconds: bigint; } +export interface TargetVersionReset { + old_target_version: [] | [Version]; + new_target_version: [] | [Version]; +} export interface TargetVersionSet { old_target_version: [] | [Version]; new_target_version: [] | [Version]; @@ -599,7 +603,7 @@ export interface UpgradeJournalEntry { | { UpgradeOutcome: UpgradeOutcome } | { UpgradeStarted: UpgradeStarted } | { UpgradeStepsRefreshed: UpgradeStepsRefreshed } - | { TargetVersionReset: TargetVersionSet }, + | { TargetVersionReset: TargetVersionReset }, ]; timestamp_seconds: [] | [bigint]; } diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index b574fab2..346e8ea5 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 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/sns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -739,7 +739,7 @@ type UpgradeJournalEntry = record { event : opt variant { UpgradeStepsRefreshed : UpgradeStepsRefreshed; TargetVersionSet : TargetVersionSet; - TargetVersionReset : TargetVersionSet; + TargetVersionReset : TargetVersionReset; UpgradeStarted : UpgradeStarted; UpgradeOutcome : UpgradeOutcome; }; @@ -755,6 +755,11 @@ type TargetVersionSet = record { old_target_version : opt Version; }; +type TargetVersionReset = record { + new_target_version : opt Version; + old_target_version : opt Version; +}; + type UpgradeStarted = record { current_version : opt Version; expected_version : opt Version; diff --git a/packages/sns/candid/sns_governance_test.idl.js b/packages/sns/candid/sns_governance_test.idl.js index 31d3da71..df9b28e0 100644 --- a/packages/sns/candid/sns_governance_test.idl.js +++ b/packages/sns/candid/sns_governance_test.idl.js @@ -93,6 +93,10 @@ export const idlFactory = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -100,7 +104,7 @@ export const idlFactory = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), @@ -789,6 +793,10 @@ export const init = ({ IDL }) => { const UpgradeStepsRefreshed = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), }); + const TargetVersionReset = IDL.Record({ + 'old_target_version' : IDL.Opt(Version), + 'new_target_version' : IDL.Opt(Version), + }); const UpgradeJournalEntry = IDL.Record({ 'event' : IDL.Opt( IDL.Variant({ @@ -796,7 +804,7 @@ export const init = ({ IDL }) => { 'UpgradeOutcome' : UpgradeOutcome, 'UpgradeStarted' : UpgradeStarted, 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed, - 'TargetVersionReset' : TargetVersionSet, + 'TargetVersionReset' : TargetVersionReset, }) ), 'timestamp_seconds' : IDL.Opt(IDL.Nat64), diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index a476119f..4e93c33e 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/sns/root/canister/root.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/sns/root/canister/root.did' by import-candid type CanisterCallError = record { code : opt int32; description : text; diff --git a/packages/sns/candid/sns_swap.did b/packages/sns/candid/sns_swap.did index 6a537551..1c9063e7 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/sns/swap/canister/swap.did' by import-candid +// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/sns/swap/canister/swap.did' by import-candid type BuyerState = record { icp : opt TransferableAmount; has_created_neuron_recipes : opt bool;