Skip to content

Commit

Permalink
Update Candid Files (with manual fix) (#739)
Browse files Browse the repository at this point in the history
# 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.

---------

Signed-off-by: David Dal Busco <[email protected]>
Co-authored-by: gix-bot <[email protected]>
Co-authored-by: David Dal Busco <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 6c79ecc commit 8d19d8d
Show file tree
Hide file tree
Showing 27 changed files with 123 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/ckbtc/candid/minter.did
Original file line number Diff line number Diff line change
@@ -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 };

Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/minter.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CkErc20Token>];
Expand Down
6 changes: 5 additions & 1 deletion packages/cketh/candid/minter.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
};


Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/minter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
2 changes: 1 addition & 1 deletion packages/cketh/candid/orchestrator.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions packages/cketh/src/minter.canister.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActorSubclass<CkETHMinterService>>();
Expand Down
2 changes: 1 addition & 1 deletion packages/cmc/candid/cmc.did
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/candid/index.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/candid/ledger.did
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_index-ng.did
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_index.did
Original file line number Diff line number Diff line change
@@ -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 };
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_ledger.did
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/genesis_token.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/governance.did
Original file line number Diff line number Diff line change
@@ -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;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/governance_test.did
Original file line number Diff line number Diff line change
@@ -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;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/sns_wasm.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
13 changes: 13 additions & 0 deletions packages/sns/candid/sns_governance.certified.idl.js
Original file line number Diff line number Diff line change
@@ -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),
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -594,6 +600,7 @@ export const idlFactory = ({ IDL }) => {
[GetSnsInitializationParametersResponse],
[],
),
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
'get_upgrade_journal' : IDL.Func(
[GetUpgradeJournalRequest],
[GetUpgradeJournalResponse],
Expand All @@ -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),
Expand Down Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions packages/sns/candid/sns_governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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];
Expand Down Expand Up @@ -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];
}
Expand Down Expand Up @@ -615,6 +623,7 @@ export interface _SERVICE {
[{}],
GetSnsInitializationParametersResponse
>;
get_timers: ActorMethod<[{}], GetTimersResponse>;
get_upgrade_journal: ActorMethod<
[GetUpgradeJournalRequest],
GetUpgradeJournalResponse
Expand All @@ -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;
Expand Down
14 changes: 13 additions & 1 deletion packages/sns/candid/sns_governance.did
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
13 changes: 13 additions & 0 deletions packages/sns/candid/sns_governance.idl.js
Original file line number Diff line number Diff line change
@@ -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),
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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],
Expand All @@ -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),
Expand Down Expand Up @@ -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)
Expand Down
13 changes: 13 additions & 0 deletions packages/sns/candid/sns_governance_test.certified.idl.js
Original file line number Diff line number Diff line change
@@ -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),
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -615,6 +621,7 @@ export const idlFactory = ({ IDL }) => {
[GetSnsInitializationParametersResponse],
[],
),
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
'get_upgrade_journal' : IDL.Func(
[GetUpgradeJournalRequest],
[GetUpgradeJournalResponse],
Expand All @@ -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),
Expand Down Expand Up @@ -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)
Expand Down
Loading

0 comments on commit 8d19d8d

Please sign in to comment.