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 IC Candid Files #530

Merged
merged 2 commits into from
Jan 29, 2024
Merged
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
7 changes: 7 additions & 0 deletions packages/ckbtc/candid/minter.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export const idlFactory = ({ IDL }) => {
'stopping' : IDL.Null,
'running' : IDL.Null,
});
const QueryStats = IDL.Record({
'response_payload_bytes_total' : IDL.Nat,
'num_instructions_total' : IDL.Nat,
'num_calls_total' : IDL.Nat,
'request_payload_bytes_total' : IDL.Nat,
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
'controllers' : IDL.Vec(IDL.Principal),
Expand All @@ -48,6 +54,7 @@ export const idlFactory = ({ IDL }) => {
const CanisterStatusResponse = IDL.Record({
'status' : CanisterStatusType,
'memory_size' : IDL.Nat,
'_stats' : QueryStats,
'cycles' : IDL.Nat,
'settings' : DefiniteCanisterSettings,
'idle_cycles_burned_per_day' : IDL.Nat,
Expand Down
7 changes: 7 additions & 0 deletions packages/ckbtc/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface CanisterStatusResponse {
memory_size: bigint;
cycles: bigint;
settings: DefiniteCanisterSettings;
query_stats: QueryStats;
idle_cycles_burned_per_day: bigint;
module_hash: [] | [Uint8Array | number[]];
}
Expand Down Expand Up @@ -141,6 +142,12 @@ export interface PendingUtxo {
value: bigint;
outpoint: { txid: Uint8Array | number[]; vout: number };
}
export interface QueryStats {
response_payload_bytes_total: bigint;
num_instructions_total: bigint;
num_calls_total: bigint;
request_payload_bytes_total: bigint;
}
export interface ReimbursedDeposit {
account: Account;
mint_block_index: bigint;
Expand Down
14 changes: 11 additions & 3 deletions packages/ckbtc/candid/minter.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a8e25a31a (2023-12-12) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) '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 All @@ -9,6 +9,14 @@ type CanisterStatusResponse = record {
settings : DefiniteCanisterSettings;
idle_cycles_burned_per_day : nat;
module_hash : opt vec nat8;
query_stats : QueryStats;
};

type QueryStats = record {
response_payload_bytes_total : nat;
num_instructions_total : nat;
num_calls_total : nat;
request_payload_bytes_total : nat;
};

type CanisterStatusType = variant { stopped; stopping; running };
Expand All @@ -23,14 +31,14 @@ type DefiniteCanisterSettings = record {
type RetrieveBtcArgs = record {
// The address to which the ckBTC minter should deposit BTC.
address : text;
// The amount of BTC in Satoshis that the client wants to withdraw.
// The amount of ckBTC in Satoshis that the client wants to withdraw.
amount : nat64;
};

type RetrieveBtcWithApprovalArgs = record {
// The address to which the ckBTC minter should deposit BTC.
address : text;
// The amount of BTC in Satoshis that the client wants to withdraw.
// The amount of ckBTC in Satoshis that the client wants to withdraw.
amount : nat64;
// The subaccount to burn ckBTC from.
from_subaccount : opt blob;
Expand Down
7 changes: 7 additions & 0 deletions packages/ckbtc/candid/minter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@ export const idlFactory = ({ IDL }) => {
'memory_allocation' : IDL.Nat,
'compute_allocation' : IDL.Nat,
});
const QueryStats = IDL.Record({
'response_payload_bytes_total' : IDL.Nat,
'num_instructions_total' : IDL.Nat,
'num_calls_total' : IDL.Nat,
'request_payload_bytes_total' : IDL.Nat,
});
const CanisterStatusResponse = IDL.Record({
'status' : CanisterStatusType,
'memory_size' : IDL.Nat,
'cycles' : IDL.Nat,
'settings' : DefiniteCanisterSettings,
'query_stats' : QueryStats,
'idle_cycles_burned_per_day' : IDL.Nat,
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
});
Expand Down
7 changes: 7 additions & 0 deletions packages/cketh/candid/minter.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export const idlFactory = ({ IDL }) => {
'stopping' : IDL.Null,
'running' : IDL.Null,
});
const QueryStats = IDL.Record({
'response_payload_bytes_total' : IDL.Nat,
'num_instructions_total' : IDL.Nat,
'num_calls_total' : IDL.Nat,
'request_payload_bytes_total' : IDL.Nat,
});
const DefiniteCanisterSettings = IDL.Record({
'freezing_threshold' : IDL.Nat,
'controllers' : IDL.Vec(IDL.Principal),
Expand All @@ -49,6 +55,7 @@ export const idlFactory = ({ IDL }) => {
const CanisterStatusResponse = IDL.Record({
'status' : CanisterStatusType,
'memory_size' : IDL.Nat,
'_stats' : QueryStats,
'cycles' : IDL.Nat,
'settings' : DefiniteCanisterSettings,
'idle_cycles_burned_per_day' : IDL.Nat,
Expand Down
7 changes: 7 additions & 0 deletions packages/cketh/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface CanisterStatusResponse {
memory_size: bigint;
cycles: bigint;
settings: DefiniteCanisterSettings;
query_stats: QueryStats;
idle_cycles_burned_per_day: bigint;
module_hash: [] | [Uint8Array | number[]];
}
Expand Down Expand Up @@ -112,6 +113,12 @@ export interface InitArg {
ethereum_block_height: BlockTag;
}
export type MinterArg = { UpgradeArg: UpgradeArg } | { InitArg: InitArg };
export interface QueryStats {
response_payload_bytes_total: bigint;
num_instructions_total: bigint;
num_calls_total: bigint;
request_payload_bytes_total: bigint;
}
export interface RetrieveEthRequest {
block_index: bigint;
}
Expand Down
10 changes: 9 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 19e3dc486 (2024-01-02) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
type EthereumNetwork = variant {
// The public Ethereum mainnet.
Mainnet;
Expand All @@ -7,6 +7,7 @@ type EthereumNetwork = variant {
};

type CanisterStatusResponse = record {
query_stats : QueryStats;
status : CanisterStatusType;
memory_size : nat;
cycles : nat;
Expand All @@ -24,6 +25,13 @@ type DefiniteCanisterSettings = record {
compute_allocation : nat;
};

type QueryStats = record {
response_payload_bytes_total : nat;
num_instructions_total : nat;
num_calls_total : nat;
request_payload_bytes_total : nat;
};

type BlockTag = variant {
/// The latest mined block.
Latest;
Expand Down
7 changes: 7 additions & 0 deletions packages/cketh/candid/minter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,18 @@ export const idlFactory = ({ IDL }) => {
'memory_allocation' : IDL.Nat,
'compute_allocation' : IDL.Nat,
});
const QueryStats = IDL.Record({
'response_payload_bytes_total' : IDL.Nat,
'num_instructions_total' : IDL.Nat,
'num_calls_total' : IDL.Nat,
'request_payload_bytes_total' : IDL.Nat,
});
const CanisterStatusResponse = IDL.Record({
'status' : CanisterStatusType,
'memory_size' : IDL.Nat,
'cycles' : IDL.Nat,
'settings' : DefiniteCanisterSettings,
'query_stats' : QueryStats,
'idle_cycles_burned_per_day' : IDL.Nat,
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
});
Expand Down
5 changes: 5 additions & 0 deletions packages/cmc/candid/cmc.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ export const idlFactory = ({ IDL }) => {
'Filter' : SubnetFilter,
'Subnet' : IDL.Record({ 'subnet' : IDL.Principal }),
});
const log_visibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
});
const CanisterSettings = IDL.Record({
'controller' : IDL.Opt(IDL.Principal),
'freezing_threshold' : IDL.Opt(IDL.Nat),
'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)),
'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
'log_visibility' : IDL.Opt(log_visibility),
'memory_allocation' : IDL.Opt(IDL.Nat),
'compute_allocation' : IDL.Opt(IDL.Nat),
});
Expand Down
2 changes: 2 additions & 0 deletions packages/cmc/candid/cmc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface CanisterSettings {
freezing_threshold: [] | [bigint];
controllers: [] | [Array<Principal>];
reserved_cycles_limit: [] | [bigint];
log_visibility: [] | [log_visibility];
memory_allocation: [] | [bigint];
compute_allocation: [] | [bigint];
}
Expand Down Expand Up @@ -93,6 +94,7 @@ export type SubnetSelection =
export interface SubnetTypesToSubnetsResponse {
data: Array<[string, Array<Principal>]>;
}
export type log_visibility = { controllers: null } | { public: null };
export interface _SERVICE {
create_canister: ActorMethod<[CreateCanisterArg], CreateCanisterResult>;
get_build_metadata: ActorMethod<[], string>;
Expand Down
7 changes: 6 additions & 1 deletion packages/cmc/candid/cmc.did
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// Generated from IC repo commit d970aa69a9 (2024-01-17) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) 'rs/nns/cmc/cmc.did' by import-candid
type Cycles = nat;
type BlockIndex = nat64;
type log_visibility = variant {
controllers;
public;
};
type CanisterSettings = record {
controller : opt principal;
controllers : opt vec principal;
compute_allocation : opt nat;
memory_allocation : opt nat;
freezing_threshold : opt nat;
reserved_cycles_limit: opt nat;
log_visibility : opt log_visibility;
};
type Subaccount = opt blob;
type Memo = opt blob;
Expand Down
5 changes: 5 additions & 0 deletions packages/cmc/candid/cmc.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ export const idlFactory = ({ IDL }) => {
'Filter' : SubnetFilter,
'Subnet' : IDL.Record({ 'subnet' : IDL.Principal }),
});
const log_visibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
});
const CanisterSettings = IDL.Record({
'controller' : IDL.Opt(IDL.Principal),
'freezing_threshold' : IDL.Opt(IDL.Nat),
'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)),
'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
'log_visibility' : IDL.Opt(log_visibility),
'memory_allocation' : IDL.Opt(IDL.Nat),
'compute_allocation' : IDL.Opt(IDL.Nat),
});
Expand Down
13 changes: 6 additions & 7 deletions packages/ledger-icp/candid/index.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ export const idlFactory = ({ IDL }) => {
'fee' : Tokens,
'from' : IDL.Text,
'allowance' : Tokens,
'expected_allowance' : IDL.Opt(Tokens),
'expires_at' : IDL.Opt(TimeStamp),
'spender' : IDL.Text,
}),
'Burn' : IDL.Record({ 'from' : IDL.Text, 'amount' : Tokens }),
'Mint' : IDL.Record({ 'to' : IDL.Text, 'amount' : Tokens }),
'Transfer' : IDL.Record({
'to' : IDL.Text,
'fee' : Tokens,
'Burn' : IDL.Record({
'from' : IDL.Text,
'amount' : Tokens,
'spender' : IDL.Opt(IDL.Text),
}),
'TransferFrom' : IDL.Record({
'Mint' : IDL.Record({ 'to' : IDL.Text, 'amount' : Tokens }),
'Transfer' : IDL.Record({
'to' : IDL.Text,
'fee' : Tokens,
'from' : IDL.Text,
'amount' : Tokens,
'spender' : IDL.Text,
'spender' : IDL.Opt(IDL.Text),
}),
});
const Transaction = IDL.Record({
Expand Down
15 changes: 5 additions & 10 deletions packages/ledger-icp/candid/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,22 @@ export type Operation =
fee: Tokens;
from: string;
allowance: Tokens;
expected_allowance: [] | [Tokens];
expires_at: [] | [TimeStamp];
spender: string;
};
}
| { Burn: { from: string; amount: Tokens } }
| { Mint: { to: string; amount: Tokens } }
| {
Transfer: {
to: string;
fee: Tokens;
from: string;
amount: Tokens;
};
Burn: { from: string; amount: Tokens; spender: [] | [string] };
}
| { Mint: { to: string; amount: Tokens } }
| {
TransferFrom: {
Transfer: {
to: string;
fee: Tokens;
from: string;
amount: Tokens;
spender: string;
spender: [] | [string];
};
};
export interface Status {
Expand Down
16 changes: 5 additions & 11 deletions 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 b501a71346fa465cb5d7817c895295150979c180 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid
// Generated from IC repo commit 044cfd5 (2024-01-25 tags: release-2024-01-25_14-09+p2p-con) '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 Expand Up @@ -41,17 +41,11 @@ type Operation = variant {
allowance : Tokens;
expires_at : opt TimeStamp;
spender : text;
expected_allowance : opt Tokens;
};
Burn : record { from : text; amount : Tokens };
Burn : record { from : text; amount : Tokens; spender : opt text };
Mint : record { to : text; amount : Tokens };
Transfer : record { to : text; fee : Tokens; from : text; amount : Tokens };
TransferFrom : record {
to : text;
fee : Tokens;
from : text;
amount : Tokens;
spender : text;
};
Transfer : record { to : text; fee : Tokens; from : text; amount : Tokens; spender : opt text };
};
type GetAccountIdentifierTransactionsResult = variant {
Ok : GetAccountIdentifierTransactionsResponse;
Expand All @@ -78,4 +72,4 @@ service : (InitArg) -> {
ledger_id : () -> (principal) query;
status : () -> (Status) query;
icrc1_balance_of : (Account) -> (nat64) query;
}
}
13 changes: 6 additions & 7 deletions packages/ledger-icp/candid/index.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ export const idlFactory = ({ IDL }) => {
'fee' : Tokens,
'from' : IDL.Text,
'allowance' : Tokens,
'expected_allowance' : IDL.Opt(Tokens),
'expires_at' : IDL.Opt(TimeStamp),
'spender' : IDL.Text,
}),
'Burn' : IDL.Record({ 'from' : IDL.Text, 'amount' : Tokens }),
'Mint' : IDL.Record({ 'to' : IDL.Text, 'amount' : Tokens }),
'Transfer' : IDL.Record({
'to' : IDL.Text,
'fee' : Tokens,
'Burn' : IDL.Record({
'from' : IDL.Text,
'amount' : Tokens,
'spender' : IDL.Opt(IDL.Text),
}),
'TransferFrom' : IDL.Record({
'Mint' : IDL.Record({ 'to' : IDL.Text, 'amount' : Tokens }),
'Transfer' : IDL.Record({
'to' : IDL.Text,
'fee' : Tokens,
'from' : IDL.Text,
'amount' : Tokens,
'spender' : IDL.Text,
'spender' : IDL.Opt(IDL.Text),
}),
});
const Transaction = IDL.Record({
Expand Down
Loading
Loading