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

Update Candid Files #721

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) '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 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) '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 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
type OrchestratorArg = variant {
UpgradeArg : UpgradeArg;
InitArg : InitArg;
Expand Down
1 change: 1 addition & 0 deletions packages/cmc/candid/cmc.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const idlFactory = ({ IDL }) => {
[],
),
'get_build_metadata' : IDL.Func([], [IDL.Text], []),
'get_default_subnets' : IDL.Func([], [IDL.Vec(IDL.Principal)], []),
'get_icp_xdr_conversion_rate' : IDL.Func(
[],
[IcpXdrConversionRateResponse],
Expand Down
1 change: 1 addition & 0 deletions packages/cmc/candid/cmc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export type log_visibility = { controllers: null } | { public: null };
export interface _SERVICE {
create_canister: ActorMethod<[CreateCanisterArg], CreateCanisterResult>;
get_build_metadata: ActorMethod<[], string>;
get_default_subnets: ActorMethod<[], Array<Principal>>;
get_icp_xdr_conversion_rate: ActorMethod<[], IcpXdrConversionRateResponse>;
get_principals_authorized_to_create_canisters_to_subnets: ActorMethod<
[],
Expand Down
4 changes: 3 additions & 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 0441f40 (2024-09-18 tags: release-2024-09-19_01-31-base) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/nns/cmc/cmc.did' by import-candid
type Cycles = nat;
type BlockIndex = nat64;
type log_visibility = variant {
Expand Down Expand Up @@ -236,5 +236,7 @@ service : (opt CyclesCanisterInitPayload) -> {
// to create canisters.
get_principals_authorized_to_create_canisters_to_subnets : () -> (PrincipalsAuthorizedToCreateCanistersToSubnetsResponse) query;

get_default_subnets: () -> (vec principal) query;

get_build_metadata : () -> (text) query;
};
1 change: 1 addition & 0 deletions packages/cmc/candid/cmc.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const idlFactory = ({ IDL }) => {
[],
),
'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),
'get_default_subnets' : IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
'get_icp_xdr_conversion_rate' : IDL.Func(
[],
[IcpXdrConversionRateResponse],
Expand Down
45 changes: 45 additions & 0 deletions packages/ic-management/candid/ic-management.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const idlFactory = ({ IDL }) => {
'canister_id' : IDL.Principal,
}),
});
const snapshot_id = IDL.Vec(IDL.Nat8);
const change_details = IDL.Variant({
'creation' : IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) }),
'code_deployment' : IDL.Record({
Expand All @@ -82,6 +83,11 @@ export const idlFactory = ({ IDL }) => {
}),
'module_hash' : IDL.Vec(IDL.Nat8),
}),
'load_snapshot' : IDL.Record({
'canister_version' : IDL.Nat64,
'taken_at_timestamp' : IDL.Nat64,
'snapshot_id' : snapshot_id,
}),
'controllers_change' : IDL.Record({
'controllers' : IDL.Vec(IDL.Principal),
}),
Expand Down Expand Up @@ -148,6 +154,10 @@ export const idlFactory = ({ IDL }) => {
});
const create_canister_result = IDL.Record({ 'canister_id' : canister_id });
const delete_canister_args = IDL.Record({ 'canister_id' : canister_id });
const delete_canister_snapshot_args = IDL.Record({
'canister_id' : canister_id,
'snapshot_id' : snapshot_id,
});
const deposit_cycles_args = IDL.Record({ 'canister_id' : canister_id });
const ecdsa_curve = IDL.Variant({ 'secp256k1' : IDL.Null });
const ecdsa_public_key_args = IDL.Record({
Expand Down Expand Up @@ -230,6 +240,20 @@ export const idlFactory = ({ IDL }) => {
'canister_id' : canister_id,
'sender_canister_version' : IDL.Opt(IDL.Nat64),
});
const list_canister_snapshots_args = IDL.Record({
'canister_id' : canister_id,
});
const snapshot = IDL.Record({
'id' : snapshot_id,
'total_size' : IDL.Nat64,
'taken_at_timestamp' : IDL.Nat64,
});
const list_canister_snapshots_result = IDL.Vec(snapshot);
const load_canister_snapshot_args = IDL.Record({
'canister_id' : canister_id,
'sender_canister_version' : IDL.Opt(IDL.Nat64),
'snapshot_id' : snapshot_id,
});
const node_metrics_history_args = IDL.Record({
'start_at_timestamp_nanos' : IDL.Nat64,
'subnet_id' : IDL.Principal,
Expand Down Expand Up @@ -298,6 +322,11 @@ export const idlFactory = ({ IDL }) => {
const stop_canister_args = IDL.Record({ 'canister_id' : canister_id });
const stored_chunks_args = IDL.Record({ 'canister_id' : canister_id });
const stored_chunks_result = IDL.Vec(chunk_hash);
const take_canister_snapshot_args = IDL.Record({
'replace_snapshot' : IDL.Opt(snapshot_id),
'canister_id' : canister_id,
});
const take_canister_snapshot_result = snapshot;
const uninstall_code_args = IDL.Record({
'canister_id' : canister_id,
'sender_canister_version' : IDL.Opt(IDL.Nat64),
Expand Down Expand Up @@ -355,6 +384,11 @@ export const idlFactory = ({ IDL }) => {
[],
),
'delete_canister' : IDL.Func([delete_canister_args], [], []),
'delete_canister_snapshot' : IDL.Func(
[delete_canister_snapshot_args],
[],
[],
),
'deposit_cycles' : IDL.Func([deposit_cycles_args], [], []),
'ecdsa_public_key' : IDL.Func(
[ecdsa_public_key_args],
Expand All @@ -369,6 +403,12 @@ export const idlFactory = ({ IDL }) => {
'http_request' : IDL.Func([http_request_args], [http_request_result], []),
'install_chunked_code' : IDL.Func([install_chunked_code_args], [], []),
'install_code' : IDL.Func([install_code_args], [], []),
'list_canister_snapshots' : IDL.Func(
[list_canister_snapshots_args],
[list_canister_snapshots_result],
[],
),
'load_canister_snapshot' : IDL.Func([load_canister_snapshot_args], [], []),
'node_metrics_history' : IDL.Func(
[node_metrics_history_args],
[node_metrics_history_result],
Expand Down Expand Up @@ -407,6 +447,11 @@ export const idlFactory = ({ IDL }) => {
[stored_chunks_result],
[],
),
'take_canister_snapshot' : IDL.Func(
[take_canister_snapshot_args],
[take_canister_snapshot_result],
[],
),
'uninstall_code' : IDL.Func([uninstall_code_args], [], []),
'update_settings' : IDL.Func([update_settings_args], [], []),
'upload_chunk' : IDL.Func([upload_chunk_args], [upload_chunk_result], []),
Expand Down
44 changes: 44 additions & 0 deletions packages/ic-management/candid/ic-management.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ export type change_details =
module_hash: Uint8Array | number[];
};
}
| {
load_snapshot: {
canister_version: bigint;
taken_at_timestamp: bigint;
snapshot_id: snapshot_id;
};
}
| { controllers_change: { controllers: Array<Principal> } }
| { code_uninstall: null };
export type change_origin =
Expand Down Expand Up @@ -154,6 +161,10 @@ export interface definite_canister_settings {
export interface delete_canister_args {
canister_id: canister_id;
}
export interface delete_canister_snapshot_args {
canister_id: canister_id;
snapshot_id: snapshot_id;
}
export interface deposit_cycles_args {
canister_id: canister_id;
}
Expand Down Expand Up @@ -208,6 +219,15 @@ export interface install_code_args {
canister_id: canister_id;
sender_canister_version: [] | [bigint];
}
export interface list_canister_snapshots_args {
canister_id: canister_id;
}
export type list_canister_snapshots_result = Array<snapshot>;
export interface load_canister_snapshot_args {
canister_id: canister_id;
sender_canister_version: [] | [bigint];
snapshot_id: snapshot_id;
}
export type log_visibility = { controllers: null } | { public: null };
export type millisatoshi_per_byte = bigint;
export interface node_metrics {
Expand Down Expand Up @@ -268,6 +288,12 @@ export interface sign_with_schnorr_args {
export interface sign_with_schnorr_result {
signature: Uint8Array | number[];
}
export interface snapshot {
id: snapshot_id;
total_size: bigint;
taken_at_timestamp: bigint;
}
export type snapshot_id = Uint8Array | number[];
export interface start_canister_args {
canister_id: canister_id;
}
Expand All @@ -278,6 +304,11 @@ export interface stored_chunks_args {
canister_id: canister_id;
}
export type stored_chunks_result = Array<chunk_hash>;
export interface take_canister_snapshot_args {
replace_snapshot: [] | [snapshot_id];
canister_id: canister_id;
}
export type take_canister_snapshot_result = snapshot;
export interface uninstall_code_args {
canister_id: canister_id;
sender_canister_version: [] | [bigint];
Expand Down Expand Up @@ -324,6 +355,10 @@ export interface _SERVICE {
clear_chunk_store: ActorMethod<[clear_chunk_store_args], undefined>;
create_canister: ActorMethod<[create_canister_args], create_canister_result>;
delete_canister: ActorMethod<[delete_canister_args], undefined>;
delete_canister_snapshot: ActorMethod<
[delete_canister_snapshot_args],
undefined
>;
deposit_cycles: ActorMethod<[deposit_cycles_args], undefined>;
ecdsa_public_key: ActorMethod<
[ecdsa_public_key_args],
Expand All @@ -336,6 +371,11 @@ export interface _SERVICE {
http_request: ActorMethod<[http_request_args], http_request_result>;
install_chunked_code: ActorMethod<[install_chunked_code_args], undefined>;
install_code: ActorMethod<[install_code_args], undefined>;
list_canister_snapshots: ActorMethod<
[list_canister_snapshots_args],
list_canister_snapshots_result
>;
load_canister_snapshot: ActorMethod<[load_canister_snapshot_args], undefined>;
node_metrics_history: ActorMethod<
[node_metrics_history_args],
node_metrics_history_result
Expand All @@ -361,6 +401,10 @@ export interface _SERVICE {
start_canister: ActorMethod<[start_canister_args], undefined>;
stop_canister: ActorMethod<[stop_canister_args], undefined>;
stored_chunks: ActorMethod<[stored_chunks_args], stored_chunks_result>;
take_canister_snapshot: ActorMethod<
[take_canister_snapshot_args],
take_canister_snapshot_result
>;
uninstall_code: ActorMethod<[uninstall_code_args], undefined>;
update_settings: ActorMethod<[update_settings_args], undefined>;
upload_chunk: ActorMethod<[upload_chunk_args], upload_chunk_result>;
Expand Down
44 changes: 43 additions & 1 deletion packages/ic-management/candid/ic-management.did
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from dfinity/interface-spec commit 45a23a737ec37cb8c9b098e377af857b4b55abda for file 'spec/_attachments/ic.did'
// Generated from dfinity/interface-spec commit ac416ec82cd9fae4825824fea639f7ae32aec594 for file 'spec/_attachments/ic.did'
type canister_id = principal;
type wasm_module = blob;
type snapshot_id = blob;

type log_visibility = variant {
controllers;
Expand Down Expand Up @@ -46,6 +47,11 @@ type change_details = variant {
mode : variant { install; reinstall; upgrade };
module_hash : blob;
};
load_snapshot : record {
canister_version : nat64;
snapshot_id : snapshot_id;
taken_at_timestamp : nat64;
};
controllers_change : record {
controllers : vec principal;
};
Expand Down Expand Up @@ -359,6 +365,36 @@ type stored_chunks_result = vec chunk_hash;

type upload_chunk_result = chunk_hash;

type snapshot = record {
id : snapshot_id;
taken_at_timestamp : nat64;
total_size : nat64;
};

type take_canister_snapshot_args = record {
canister_id : canister_id;
replace_snapshot : opt snapshot_id;
};

type take_canister_snapshot_result = snapshot;

type load_canister_snapshot_args = record {
canister_id : canister_id;
snapshot_id : snapshot_id;
sender_canister_version : opt nat64;
};

type list_canister_snapshots_args = record {
canister_id : canister_id;
};

type list_canister_snapshots_result = vec snapshot;

type delete_canister_snapshot_args = record {
canister_id : canister_id;
snapshot_id : snapshot_id;
};

type fetch_canister_logs_args = record {
canister_id : canister_id;
};
Expand Down Expand Up @@ -413,6 +449,12 @@ service ic : {
provisional_create_canister_with_cycles : (provisional_create_canister_with_cycles_args) -> (provisional_create_canister_with_cycles_result);
provisional_top_up_canister : (provisional_top_up_canister_args) -> ();

// Canister snapshots
take_canister_snapshot : (take_canister_snapshot_args) -> (take_canister_snapshot_result);
load_canister_snapshot : (load_canister_snapshot_args) -> ();
list_canister_snapshots : (list_canister_snapshots_args) -> (list_canister_snapshots_result);
delete_canister_snapshot : (delete_canister_snapshot_args) -> ();

// canister logging
fetch_canister_logs : (fetch_canister_logs_args) -> (fetch_canister_logs_result) query;
};
Loading
Loading