diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index 0726a626..72d1832a 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 15134ac2..d97e9222 100644 --- a/packages/cketh/candid/minter.certified.idl.js +++ b/packages/cketh/candid/minter.certified.idl.js @@ -241,6 +241,7 @@ export const idlFactory = ({ IDL }) => { 'eth_balance' : IDL.Opt(IDL.Nat), 'eth_helper_contract_address' : IDL.Opt(IDL.Text), 'last_observed_block_number' : IDL.Opt(IDL.Nat), + 'evm_rpc_id' : IDL.Opt(IDL.Principal), 'erc20_helper_contract_address' : IDL.Opt(IDL.Text), 'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat), 'supported_ckerc20_tokens' : IDL.Opt(IDL.Vec(CkErc20Token)), diff --git a/packages/cketh/candid/minter.d.ts b/packages/cketh/candid/minter.d.ts index d2260257..8b3093a3 100644 --- a/packages/cketh/candid/minter.d.ts +++ b/packages/cketh/candid/minter.d.ts @@ -240,6 +240,7 @@ export interface MinterInfo { eth_balance: [] | [bigint]; eth_helper_contract_address: [] | [string]; last_observed_block_number: [] | [bigint]; + evm_rpc_id: [] | [Principal]; erc20_helper_contract_address: [] | [string]; last_erc20_scraped_block_number: [] | [bigint]; supported_ckerc20_tokens: [] | [Array]; diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index 20083f57..d44588a1 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid type EthereumNetwork = variant { // The public Ethereum mainnet. Mainnet; @@ -196,6 +196,10 @@ type MinterInfo = record { // Canister ID of the ckETH ledger. cketh_ledger_id: opt principal; + + // Canister ID of the EVM RPC canister that handles the communication + // with the Ethereum blockchain. + evm_rpc_id : opt principal; }; diff --git a/packages/cketh/candid/minter.idl.js b/packages/cketh/candid/minter.idl.js index 0922b075..26f6c1f1 100644 --- a/packages/cketh/candid/minter.idl.js +++ b/packages/cketh/candid/minter.idl.js @@ -241,6 +241,7 @@ export const idlFactory = ({ IDL }) => { 'eth_balance' : IDL.Opt(IDL.Nat), 'eth_helper_contract_address' : IDL.Opt(IDL.Text), 'last_observed_block_number' : IDL.Opt(IDL.Nat), + 'evm_rpc_id' : IDL.Opt(IDL.Principal), 'erc20_helper_contract_address' : IDL.Opt(IDL.Text), 'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat), 'supported_ckerc20_tokens' : IDL.Opt(IDL.Vec(CkErc20Token)), diff --git a/packages/cketh/candid/orchestrator.did b/packages/cketh/candid/orchestrator.did index 90fe9a2c..0676916e 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid type OrchestratorArg = variant { UpgradeArg : UpgradeArg; InitArg : InitArg; diff --git a/packages/cketh/src/minter.canister.spec.ts b/packages/cketh/src/minter.canister.spec.ts index 81df5267..b82ea662 100644 --- a/packages/cketh/src/minter.canister.spec.ts +++ b/packages/cketh/src/minter.canister.spec.ts @@ -741,6 +741,9 @@ describe("ckETH minter canister", () => { supported_ckerc20_tokens: [], last_erc20_scraped_block_number: [5892643n], last_eth_scraped_block_number: [5892601n], + evm_rpc_id: toNullable( + Principal.fromText("7hfb6-caaaa-aaaar-qadga-cai"), + ), }; const service = mock>(); diff --git a/packages/cmc/candid/cmc.did b/packages/cmc/candid/cmc.did index 9269d7b3..f832eea7 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/cmc/cmc.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 a32d73e4..f1c8b701 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icp/index/index.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 1c0f095d..68426db6 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icp/ledger.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 dbf29f92..a027b904 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 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 ffd5ee45..e0b4feef 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 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icrc1/index/index.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 ddd596fc..fe906a63 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 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 2e9cf85c..88ef73cb 100644 --- a/packages/nns/candid/genesis_token.did +++ b/packages/nns/candid/genesis_token.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/gtc/canister/gtc.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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.did b/packages/nns/candid/governance.did index 73bcf257..d5fff586 100644 --- a/packages/nns/candid/governance.did +++ b/packages/nns/candid/governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance.did' by import-candid type AccountIdentifier = record { hash : blob; }; diff --git a/packages/nns/candid/governance_test.did b/packages/nns/candid/governance_test.did index 2b696b4a..440b4b2d 100644 --- a/packages/nns/candid/governance_test.did +++ b/packages/nns/candid/governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance_test.did' by import-candid type AccountIdentifier = record { hash : blob; }; diff --git a/packages/nns/candid/sns_wasm.did b/packages/nns/candid/sns_wasm.did index 6d5c5639..c61a1886 100644 --- a/packages/nns/candid/sns_wasm.did +++ b/packages/nns/candid/sns_wasm.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 cab6d053..9428ddca 100644 --- a/packages/sns/candid/sns_governance.certified.idl.js +++ b/packages/sns/candid/sns_governance.certified.idl.js @@ -1,5 +1,9 @@ /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance.did */ export const idlFactory = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -363,6 +367,7 @@ export const idlFactory = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) @@ -470,6 +475,7 @@ export const idlFactory = ({ IDL }) => { const GetSnsInitializationParametersResponse = IDL.Record({ 'sns_initialization_parameters' : IDL.Text, }); + const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) }); const GetUpgradeJournalRequest = IDL.Record({}); const GetUpgradeJournalResponse = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), @@ -594,6 +600,7 @@ export const idlFactory = ({ IDL }) => { [GetSnsInitializationParametersResponse], [], ), + 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []), 'get_upgrade_journal' : IDL.Func( [GetUpgradeJournalRequest], [GetUpgradeJournalResponse], @@ -607,10 +614,15 @@ export const idlFactory = ({ IDL }) => { 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []), 'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), + 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []), 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []), }); }; export const init = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -974,6 +986,7 @@ export const init = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) diff --git a/packages/sns/candid/sns_governance.d.ts b/packages/sns/candid/sns_governance.d.ts index 146a5f91..502e5eb3 100644 --- a/packages/sns/candid/sns_governance.d.ts +++ b/packages/sns/candid/sns_governance.d.ts @@ -222,6 +222,9 @@ export interface GetRunningSnsVersionResponse { export interface GetSnsInitializationParametersResponse { sns_initialization_parameters: string; } +export interface GetTimersResponse { + timers: [] | [Timers]; +} export type GetUpgradeJournalRequest = {}; export interface GetUpgradeJournalResponse { upgrade_steps: [] | [Versions]; @@ -230,6 +233,7 @@ export interface GetUpgradeJournalResponse { } export interface Governance { root_canister_id: [] | [Principal]; + timers: [] | [Timers]; cached_upgrade_steps: [] | [CachedUpgradeSteps]; id_to_nervous_system_functions: Array<[bigint, NervousSystemFunction]>; metrics: [] | [GovernanceCachedMetrics]; @@ -542,6 +546,10 @@ export interface Tally { total: bigint; timestamp_seconds: bigint; } +export interface Timers { + last_spawned_timestamp_seconds: [] | [bigint]; + last_reset_timestamp_seconds: [] | [bigint]; +} export interface Tokens { e8s: [] | [bigint]; } @@ -615,6 +623,7 @@ export interface _SERVICE { [{}], GetSnsInitializationParametersResponse >; + get_timers: ActorMethod<[{}], GetTimersResponse>; get_upgrade_journal: ActorMethod< [GetUpgradeJournalRequest], GetUpgradeJournalResponse @@ -626,6 +635,7 @@ export interface _SERVICE { list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>; list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>; manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>; + reset_timers: ActorMethod<[{}], {}>; set_mode: ActorMethod<[SetMode], {}>; } export declare const idlFactory: IDL.InterfaceFactory; diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index 072f7f83..b4368899 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/sns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -292,6 +292,16 @@ type Governance = record { neurons : vec record { text; Neuron }; genesis_timestamp_seconds : nat64; target_version: opt Version; + timers : opt Timers; +}; + +type Timers = record { + last_reset_timestamp_seconds : opt nat64; + last_spawned_timestamp_seconds : opt nat64; +}; + +type GetTimersResponse = record { + timers : opt Timers; }; type GovernanceCachedMetrics = record { @@ -741,4 +751,6 @@ service : (Governance) -> { list_proposals : (ListProposals) -> (ListProposalsResponse) query; manage_neuron : (ManageNeuron) -> (ManageNeuronResponse); set_mode : (SetMode) -> (record {}); + reset_timers : (record {}) -> (record {}); + get_timers : (record {}) -> (GetTimersResponse) query; } diff --git a/packages/sns/candid/sns_governance.idl.js b/packages/sns/candid/sns_governance.idl.js index 8d19e727..796ee636 100644 --- a/packages/sns/candid/sns_governance.idl.js +++ b/packages/sns/candid/sns_governance.idl.js @@ -1,5 +1,9 @@ /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance.did */ export const idlFactory = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -363,6 +367,7 @@ export const idlFactory = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) @@ -470,6 +475,7 @@ export const idlFactory = ({ IDL }) => { const GetSnsInitializationParametersResponse = IDL.Record({ 'sns_initialization_parameters' : IDL.Text, }); + const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) }); const GetUpgradeJournalRequest = IDL.Record({}); const GetUpgradeJournalResponse = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), @@ -598,6 +604,7 @@ export const idlFactory = ({ IDL }) => { [GetSnsInitializationParametersResponse], ['query'], ), + 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']), 'get_upgrade_journal' : IDL.Func( [GetUpgradeJournalRequest], [GetUpgradeJournalResponse], @@ -615,10 +622,15 @@ export const idlFactory = ({ IDL }) => { ['query'], ), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), + 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []), 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []), }); }; export const init = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -982,6 +994,7 @@ export const init = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) diff --git a/packages/sns/candid/sns_governance_test.certified.idl.js b/packages/sns/candid/sns_governance_test.certified.idl.js index 5d2e21da..a639a6cc 100644 --- a/packages/sns/candid/sns_governance_test.certified.idl.js +++ b/packages/sns/candid/sns_governance_test.certified.idl.js @@ -1,5 +1,9 @@ /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance_test.did */ export const idlFactory = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -363,6 +367,7 @@ export const idlFactory = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) @@ -481,6 +486,7 @@ export const idlFactory = ({ IDL }) => { const GetSnsInitializationParametersResponse = IDL.Record({ 'sns_initialization_parameters' : IDL.Text, }); + const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) }); const GetUpgradeJournalRequest = IDL.Record({}); const GetUpgradeJournalResponse = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), @@ -615,6 +621,7 @@ export const idlFactory = ({ IDL }) => { [GetSnsInitializationParametersResponse], [], ), + 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []), 'get_upgrade_journal' : IDL.Func( [GetUpgradeJournalRequest], [GetUpgradeJournalResponse], @@ -629,11 +636,16 @@ export const idlFactory = ({ IDL }) => { 'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), 'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []), + 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []), 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []), 'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []), }); }; export const init = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -997,6 +1009,7 @@ export const init = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) diff --git a/packages/sns/candid/sns_governance_test.d.ts b/packages/sns/candid/sns_governance_test.d.ts index 47e847b4..f9373ecf 100644 --- a/packages/sns/candid/sns_governance_test.d.ts +++ b/packages/sns/candid/sns_governance_test.d.ts @@ -233,6 +233,9 @@ export interface GetRunningSnsVersionResponse { export interface GetSnsInitializationParametersResponse { sns_initialization_parameters: string; } +export interface GetTimersResponse { + timers: [] | [Timers]; +} export type GetUpgradeJournalRequest = {}; export interface GetUpgradeJournalResponse { upgrade_steps: [] | [Versions]; @@ -241,6 +244,7 @@ export interface GetUpgradeJournalResponse { } export interface Governance { root_canister_id: [] | [Principal]; + timers: [] | [Timers]; cached_upgrade_steps: [] | [CachedUpgradeSteps]; id_to_nervous_system_functions: Array<[bigint, NervousSystemFunction]>; metrics: [] | [GovernanceCachedMetrics]; @@ -557,6 +561,10 @@ export interface Tally { total: bigint; timestamp_seconds: bigint; } +export interface Timers { + last_spawned_timestamp_seconds: [] | [bigint]; + last_reset_timestamp_seconds: [] | [bigint]; +} export interface Tokens { e8s: [] | [bigint]; } @@ -635,6 +643,7 @@ export interface _SERVICE { [{}], GetSnsInitializationParametersResponse >; + get_timers: ActorMethod<[{}], GetTimersResponse>; get_upgrade_journal: ActorMethod< [GetUpgradeJournalRequest], GetUpgradeJournalResponse @@ -647,6 +656,7 @@ export interface _SERVICE { list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>; manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>; mint_tokens: ActorMethod<[MintTokensRequest], {}>; + reset_timers: ActorMethod<[{}], {}>; set_mode: ActorMethod<[SetMode], {}>; update_neuron: ActorMethod<[Neuron], [] | [GovernanceError]>; } diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index 092437a4..00252864 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 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/sns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount; @@ -301,6 +301,16 @@ type Governance = record { neurons : vec record { text; Neuron }; genesis_timestamp_seconds : nat64; target_version: opt Version; + timers : opt Timers; +}; + +type Timers = record { + last_reset_timestamp_seconds : opt nat64; + last_spawned_timestamp_seconds : opt nat64; +}; + +type GetTimersResponse = record { + timers : opt Timers; }; type GovernanceCachedMetrics = record { @@ -762,4 +772,6 @@ service : (Governance) -> { set_mode : (SetMode) -> (record {}); update_neuron : (Neuron) -> (opt GovernanceError); advance_target_version : (AdvanceTargetVersionRequest) -> (AdvanceTargetVersionResponse); + reset_timers : (record {}) -> (record {}); + get_timers : (record {}) -> (GetTimersResponse) query; } diff --git a/packages/sns/candid/sns_governance_test.idl.js b/packages/sns/candid/sns_governance_test.idl.js index 70e98d54..815bce1a 100644 --- a/packages/sns/candid/sns_governance_test.idl.js +++ b/packages/sns/candid/sns_governance_test.idl.js @@ -1,5 +1,9 @@ /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance_test.did */ export const idlFactory = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -363,6 +367,7 @@ export const idlFactory = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) @@ -481,6 +486,7 @@ export const idlFactory = ({ IDL }) => { const GetSnsInitializationParametersResponse = IDL.Record({ 'sns_initialization_parameters' : IDL.Text, }); + const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) }); const GetUpgradeJournalRequest = IDL.Record({}); const GetUpgradeJournalResponse = IDL.Record({ 'upgrade_steps' : IDL.Opt(Versions), @@ -619,6 +625,7 @@ export const idlFactory = ({ IDL }) => { [GetSnsInitializationParametersResponse], ['query'], ), + 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']), 'get_upgrade_journal' : IDL.Func( [GetUpgradeJournalRequest], [GetUpgradeJournalResponse], @@ -637,11 +644,16 @@ export const idlFactory = ({ IDL }) => { ), 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []), 'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []), + 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []), 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []), 'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []), }); }; export const init = ({ IDL }) => { + const Timers = IDL.Record({ + 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64), + 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64), + }); const Version = IDL.Record({ 'archive_wasm_hash' : IDL.Vec(IDL.Nat8), 'root_wasm_hash' : IDL.Vec(IDL.Nat8), @@ -1005,6 +1017,7 @@ export const init = ({ IDL }) => { }); const Governance = IDL.Record({ 'root_canister_id' : IDL.Opt(IDL.Principal), + 'timers' : IDL.Opt(Timers), 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps), 'id_to_nervous_system_functions' : IDL.Vec( IDL.Tuple(IDL.Nat64, NervousSystemFunction) diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index 4f1c12ec..8d1f49f2 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/sns/root/canister/root.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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 89fd1719..b65e9d3b 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/sns/swap/canister/swap.did' by import-candid +// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/sns/swap/canister/swap.did' by import-candid type BuyerState = record { icp : opt TransferableAmount; has_created_neuron_recipes : opt bool;