Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bot: Update Candid Files #846

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/ckbtc/candid/minter.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const idlFactory = ({ IDL }) => {
const LogVisibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down Expand Up @@ -166,6 +167,10 @@ export const idlFactory = ({ IDL }) => {
}),
'checked_utxo_v2' : IDL.Record({ 'utxo' : Utxo, 'account' : Account }),
'ignored_utxo' : IDL.Record({ 'utxo' : Utxo }),
'checked_utxo_mint_unknown' : IDL.Record({
'utxo' : Utxo,
'account' : Account,
}),
'reimbursed_failed_deposit' : IDL.Record({
'burn_block_index' : IDL.Nat64,
'mint_block_index' : IDL.Nat64,
Expand Down
6 changes: 5 additions & 1 deletion packages/ckbtc/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export type EventType =
}
| { checked_utxo_v2: { utxo: Utxo; account: Account } }
| { ignored_utxo: { utxo: Utxo } }
| { checked_utxo_mint_unknown: { utxo: Utxo; account: Account } }
| {
reimbursed_failed_deposit: {
burn_block_index: bigint;
Expand All @@ -145,7 +146,10 @@ export interface InitArgs {
min_confirmations: [] | [number];
kyt_fee: [] | [bigint];
}
export type LogVisibility = { controllers: null } | { public: null };
export type LogVisibility =
| { controllers: null }
| { public: null }
| { allowed_viewers: Array<Principal> };
export type MinterArg = { Upgrade: [] | [UpgradeArgs] } | { Init: InitArgs };
export interface MinterInfo {
retrieve_btc_min_amount: bigint;
Expand Down
7 changes: 6 additions & 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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 Expand Up @@ -35,6 +35,7 @@ type DefiniteCanisterSettings = record {
type LogVisibility = variant {
controllers;
public;
allowed_viewers : vec principal;
};

type RetrieveBtcArgs = record {
Expand Down Expand Up @@ -400,6 +401,10 @@ type EventType = variant {
utxo : Utxo;
account : Account;
};
checked_utxo_mint_unknown : record {
utxo : Utxo;
account : Account;
};
ignored_utxo : record { utxo: Utxo; };
suspended_utxo : record { utxo: Utxo; account: Account; reason: SuspendedReason };
retrieve_btc_kyt_failed : record {
Expand Down
5 changes: 5 additions & 0 deletions packages/ckbtc/candid/minter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const idlFactory = ({ IDL }) => {
const LogVisibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down Expand Up @@ -166,6 +167,10 @@ export const idlFactory = ({ IDL }) => {
}),
'checked_utxo_v2' : IDL.Record({ 'utxo' : Utxo, 'account' : Account }),
'ignored_utxo' : IDL.Record({ 'utxo' : Utxo }),
'checked_utxo_mint_unknown' : IDL.Record({
'utxo' : Utxo,
'account' : Account,
}),
'reimbursed_failed_deposit' : IDL.Record({
'burn_block_index' : IDL.Nat64,
'mint_block_index' : IDL.Nat64,
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 @@ -59,6 +59,7 @@ export const idlFactory = ({ IDL }) => {
const LogVisibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down
5 changes: 4 additions & 1 deletion packages/cketh/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ export type LedgerError =
failed_burn_amount: bigint;
};
};
export type LogVisibility = { controllers: null } | { public: null };
export type LogVisibility =
| { controllers: null }
| { public: null }
| { allowed_viewers: Array<Principal> };
export type MinterArg = { UpgradeArg: UpgradeArg } | { InitArg: InitArg };
export interface MinterInfo {
deposit_with_subaccount_helper_contract_address: [] | [string];
Expand Down
3 changes: 2 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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
type EthereumNetwork = variant {
// The public Ethereum mainnet.
Mainnet;
Expand Down Expand Up @@ -34,6 +34,7 @@ type DefiniteCanisterSettings = record {
type LogVisibility = variant {
controllers;
public;
allowed_viewers : vec principal;
};

type QueryStats = record {
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 @@ -59,6 +59,7 @@ export const idlFactory = ({ IDL }) => {
const LogVisibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/orchestrator.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const idlFactory = ({ IDL }) => {
const LogVisibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down
5 changes: 4 additions & 1 deletion packages/cketh/candid/orchestrator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export interface LedgerSuiteVersion {
ledger_compressed_wasm_hash: string;
index_compressed_wasm_hash: string;
}
export type LogVisibility = { controllers: null } | { public: null };
export type LogVisibility =
| { controllers: null }
| { public: null }
| { allowed_viewers: Array<Principal> };
export interface ManagedCanisterIds {
ledger: [] | [Principal];
index: [] | [Principal];
Expand Down
3 changes: 2 additions & 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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
type OrchestratorArg = variant {
UpgradeArg : UpgradeArg;
InitArg : InitArg;
Expand Down Expand Up @@ -233,6 +233,7 @@ type DefiniteCanisterSettings = record {
type LogVisibility = variant {
controllers;
public;
allowed_viewers : vec principal;
};

type QueryStats = record {
Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/orchestrator.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const idlFactory = ({ IDL }) => {
const LogVisibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icp/index/index.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icp/ledger.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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_ledger.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/gtc/canister/gtc.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/governance/canister/governance_test.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
34 changes: 34 additions & 0 deletions packages/sns/candid/sns_governance.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => {
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
});
const Topic = IDL.Variant({
'DappCanisterManagement' : IDL.Null,
'DaoCommunitySettings' : IDL.Null,
'ApplicationBusinessLogic' : IDL.Null,
'CriticalDappOperations' : IDL.Null,
'TreasuryAssetManagement' : IDL.Null,
'Governance' : IDL.Null,
'SnsFrameworkManagement' : IDL.Null,
});
const GenericNervousSystemFunction = IDL.Record({
'topic' : IDL.Opt(Topic),
'validator_canister_id' : IDL.Opt(IDL.Principal),
'target_canister_id' : IDL.Opt(IDL.Principal),
'validator_method_name' : IDL.Opt(IDL.Text),
Expand Down Expand Up @@ -604,6 +614,19 @@ export const idlFactory = ({ IDL }) => {
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
'proposals' : IDL.Vec(ProposalData),
});
const ListTopicsRequest = IDL.Record({});
const TopicInfo = IDL.Record({
'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
'topic' : IDL.Opt(Topic),
'is_critical' : IDL.Opt(IDL.Bool),
'name' : IDL.Opt(IDL.Text),
'description' : IDL.Opt(IDL.Text),
'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
});
const ListTopicsResponse = IDL.Record({
'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
'topics' : IDL.Opt(IDL.Vec(TopicInfo)),
});
const StakeMaturity = IDL.Record({
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
});
Expand Down Expand Up @@ -714,6 +737,7 @@ export const idlFactory = ({ IDL }) => {
),
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []),
'list_topics' : IDL.Func([ListTopicsRequest], [ListTopicsResponse], []),
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
Expand All @@ -739,7 +763,17 @@ export const init = ({ IDL }) => {
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
});
const Topic = IDL.Variant({
'DappCanisterManagement' : IDL.Null,
'DaoCommunitySettings' : IDL.Null,
'ApplicationBusinessLogic' : IDL.Null,
'CriticalDappOperations' : IDL.Null,
'TreasuryAssetManagement' : IDL.Null,
'Governance' : IDL.Null,
'SnsFrameworkManagement' : IDL.Null,
});
const GenericNervousSystemFunction = IDL.Record({
'topic' : IDL.Opt(Topic),
'validator_canister_id' : IDL.Opt(IDL.Principal),
'target_canister_id' : IDL.Opt(IDL.Principal),
'validator_method_name' : IDL.Opt(IDL.Text),
Expand Down
23 changes: 23 additions & 0 deletions packages/sns/candid/sns_governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export type FunctionType =
| { NativeNervousSystemFunction: {} }
| { GenericNervousSystemFunction: GenericNervousSystemFunction };
export interface GenericNervousSystemFunction {
topic: [] | [Topic];
validator_canister_id: [] | [Principal];
target_canister_id: [] | [Principal];
validator_method_name: [] | [string];
Expand Down Expand Up @@ -332,6 +333,11 @@ export interface ListProposalsResponse {
include_ballots_by_caller: [] | [boolean];
proposals: Array<ProposalData>;
}
export type ListTopicsRequest = {};
export interface ListTopicsResponse {
uncategorized_functions: [] | [Array<NervousSystemFunction>];
topics: [] | [Array<TopicInfo>];
}
export interface ManageDappCanisterSettings {
freezing_threshold: [] | [bigint];
wasm_memory_threshold: [] | [bigint];
Expand Down Expand Up @@ -617,6 +623,22 @@ export interface Timers {
export interface Tokens {
e8s: [] | [bigint];
}
export type Topic =
| { DappCanisterManagement: null }
| { DaoCommunitySettings: null }
| { ApplicationBusinessLogic: null }
| { CriticalDappOperations: null }
| { TreasuryAssetManagement: null }
| { Governance: null }
| { SnsFrameworkManagement: null };
export interface TopicInfo {
native_functions: [] | [Array<NervousSystemFunction>];
topic: [] | [Topic];
is_critical: [] | [boolean];
name: [] | [string];
description: [] | [string];
custom_functions: [] | [Array<NervousSystemFunction>];
}
export interface TransferSnsTreasuryFunds {
from_treasury: number;
to_principal: [] | [Principal];
Expand Down Expand Up @@ -743,6 +765,7 @@ export interface _SERVICE {
>;
list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>;
list_topics: ActorMethod<[ListTopicsRequest], ListTopicsResponse>;
manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
reset_timers: ActorMethod<[{}], {}>;
set_mode: ActorMethod<[SetMode], {}>;
Expand Down
29 changes: 28 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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/sns/governance/canister/governance.did' by import-candid
type Account = record {
owner : opt principal;
subaccount : opt Subaccount;
Expand Down Expand Up @@ -227,6 +227,7 @@ type GenericNervousSystemFunction = record {
target_canister_id : opt principal;
validator_method_name : opt text;
target_method_name : opt text;
topic: opt Topic;
};

type GetMaturityModulationResponse = record {
Expand Down Expand Up @@ -840,6 +841,31 @@ type GetUpgradeJournalResponse = record {
upgrade_journal_entry_count: opt nat64;
};

type Topic = variant {
DaoCommunitySettings;
SnsFrameworkManagement;
DappCanisterManagement;
ApplicationBusinessLogic;
Governance;
TreasuryAssetManagement;
CriticalDappOperations;
};

type TopicInfo = record {
topic : opt Topic;
name : opt text;
description : opt text;
native_functions : opt vec NervousSystemFunction;
custom_functions : opt vec NervousSystemFunction;
is_critical : opt bool;
};

type ListTopicsRequest = record {};
type ListTopicsResponse = record {
topics: opt vec TopicInfo;
uncategorized_functions: opt vec NervousSystemFunction
};

service : (Governance) -> {
claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
fail_stuck_upgrade_in_progress : (record {}) -> (record {});
Expand All @@ -858,6 +884,7 @@ service : (Governance) -> {
list_nervous_system_functions : () -> (ListNervousSystemFunctionsResponse) query;
list_neurons : (ListNeurons) -> (ListNeuronsResponse) query;
list_proposals : (ListProposals) -> (ListProposalsResponse) query;
list_topics : (ListTopicsRequest) -> (ListTopicsResponse) query;
manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
set_mode : (SetMode) -> (record {});
reset_timers : (record {}) -> (record {});
Expand Down
Loading