Skip to content

Commit

Permalink
Update Candid Files (#720)
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.

Co-authored-by: gix-bot <[email protected]>
  • Loading branch information
sa-github-api and gix-bot authored Sep 24, 2024
1 parent bd1269b commit c8bc175
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 23 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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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
2 changes: 1 addition & 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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
type EthereumNetwork = variant {
// The public Ethereum mainnet.
Mainnet;
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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
type OrchestratorArg = variant {
UpgradeArg : UpgradeArg;
InitArg : InitArg;
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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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;
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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/rosetta-api/icp_ledger/ledger.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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.
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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/rosetta-api/icrc1/index-ng/index-ng.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/rosetta-api/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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/rosetta-api/icrc1/index/index.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/rosetta-api/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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/rosetta-api/icrc1/ledger/ledger.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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.
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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/nns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) '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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
2 changes: 2 additions & 0 deletions packages/sns/candid/sns_governance.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -966,6 +967,7 @@ export const init = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down
1 change: 1 addition & 0 deletions packages/sns/candid/sns_governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export interface Governance {
proposals: Array<[bigint, ProposalData]>;
in_flight_commands: Array<[string, NeuronInFlightCommand]>;
sns_metadata: [] | [ManageSnsMetadata];
migrated_root_wasm_memory_limit: [] | [boolean];
neurons: Array<[string, Neuron]>;
genesis_timestamp_seconds: bigint;
}
Expand Down
3 changes: 2 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 afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/sns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/sns/governance/canister/governance.did' by import-candid
type Account = record {
owner : opt principal;
subaccount : opt Subaccount;
Expand Down Expand Up @@ -284,6 +284,7 @@ type Governance = record {
sns_metadata : opt ManageSnsMetadata;
neurons : vec record { text; Neuron };
genesis_timestamp_seconds : nat64;
migrated_root_wasm_memory_limit : opt bool;
};

type GovernanceCachedMetrics = record {
Expand Down
2 changes: 2 additions & 0 deletions packages/sns/candid/sns_governance.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -974,6 +975,7 @@ export const init = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down
2 changes: 2 additions & 0 deletions packages/sns/candid/sns_governance_test.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -980,6 +981,7 @@ export const init = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down
1 change: 1 addition & 0 deletions packages/sns/candid/sns_governance_test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export interface Governance {
proposals: Array<[bigint, ProposalData]>;
in_flight_commands: Array<[string, NeuronInFlightCommand]>;
sns_metadata: [] | [ManageSnsMetadata];
migrated_root_wasm_memory_limit: [] | [boolean];
neurons: Array<[string, Neuron]>;
genesis_timestamp_seconds: bigint;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/sns/candid/sns_governance_test.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
type Account = record {
owner : opt principal;
subaccount : opt Subaccount;
Expand Down Expand Up @@ -293,6 +293,7 @@ type Governance = record {
sns_metadata : opt ManageSnsMetadata;
neurons : vec record { text; Neuron };
genesis_timestamp_seconds : nat64;
migrated_root_wasm_memory_limit : opt bool;
};

type GovernanceCachedMetrics = record {
Expand Down
2 changes: 2 additions & 0 deletions packages/sns/candid/sns_governance_test.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -988,6 +989,7 @@ export const init = ({ IDL }) => {
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
'genesis_timestamp_seconds' : IDL.Nat64,
});
Expand Down
2 changes: 0 additions & 2 deletions packages/sns/candid/sns_root.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export const idlFactory = ({ IDL }) => {
const SnsRootCanister = IDL.Record({
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
'testflight' : IDL.Bool,
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'archive_canister_ids' : IDL.Vec(IDL.Principal),
'governance_canister_id' : IDL.Opt(IDL.Principal),
'index_canister_id' : IDL.Opt(IDL.Principal),
Expand Down Expand Up @@ -169,7 +168,6 @@ export const init = ({ IDL }) => {
const SnsRootCanister = IDL.Record({
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
'testflight' : IDL.Bool,
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'archive_canister_ids' : IDL.Vec(IDL.Principal),
'governance_canister_id' : IDL.Opt(IDL.Principal),
'index_canister_id' : IDL.Opt(IDL.Principal),
Expand Down
1 change: 0 additions & 1 deletion packages/sns/candid/sns_root.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export interface SetDappControllersResponse {
export interface SnsRootCanister {
dapp_canister_ids: Array<Principal>;
testflight: boolean;
latest_ledger_archive_poll_timestamp_seconds: [] | [bigint];
archive_canister_ids: Array<Principal>;
governance_canister_id: [] | [Principal];
index_canister_id: [] | [Principal];
Expand Down
3 changes: 1 addition & 2 deletions packages/sns/candid/sns_root.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/sns/root/canister/root.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/sns/root/canister/root.did' by import-candid
type CanisterCallError = record {
code : opt int32;
description : text;
Expand Down Expand Up @@ -140,7 +140,6 @@ type SetDappControllersResponse = record {
type SnsRootCanister = record {
dapp_canister_ids : vec principal;
testflight : bool;
latest_ledger_archive_poll_timestamp_seconds : opt nat64;
archive_canister_ids : vec principal;
governance_canister_id : opt principal;
index_canister_id : opt principal;
Expand Down
2 changes: 0 additions & 2 deletions packages/sns/candid/sns_root.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export const idlFactory = ({ IDL }) => {
const SnsRootCanister = IDL.Record({
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
'testflight' : IDL.Bool,
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'archive_canister_ids' : IDL.Vec(IDL.Principal),
'governance_canister_id' : IDL.Opt(IDL.Principal),
'index_canister_id' : IDL.Opt(IDL.Principal),
Expand Down Expand Up @@ -169,7 +168,6 @@ export const init = ({ IDL }) => {
const SnsRootCanister = IDL.Record({
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
'testflight' : IDL.Bool,
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'archive_canister_ids' : IDL.Vec(IDL.Principal),
'governance_canister_id' : IDL.Opt(IDL.Principal),
'index_canister_id' : IDL.Opt(IDL.Principal),
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/candid/sns_swap.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit afe1a18 (2024-09-11 tags: release-2024-09-12_01-30-base) 'rs/sns/swap/canister/swap.did' by import-candid
// Generated from IC repo commit 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/sns/swap/canister/swap.did' by import-candid
type BuyerState = record {
icp : opt TransferableAmount;
has_created_neuron_recipes : opt bool;
Expand Down

0 comments on commit c8bc175

Please sign in to comment.