Skip to content

Commit

Permalink
Update IC commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gix-bot authored May 6, 2024
1 parent 8513d59 commit 5ad07c8
Show file tree
Hide file tree
Showing 40 changed files with 608 additions and 28 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 c3c5dc8 (2024-03-15 tags: release-2024-03-14_23-01-p2p) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) '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 869840deaf (2024-04-29) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
type EthereumNetwork = variant {
// The public Ethereum mainnet.
Mainnet;
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 @@ -28,6 +28,7 @@ export const idlFactory = ({ IDL }) => {
'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)),
'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
'log_visibility' : IDL.Opt(log_visibility),
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
'memory_allocation' : IDL.Opt(IDL.Nat),
'compute_allocation' : IDL.Opt(IDL.Nat),
});
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 @@ -10,6 +10,7 @@ export interface CanisterSettings {
controllers: [] | [Array<Principal>];
reserved_cycles_limit: [] | [bigint];
log_visibility: [] | [log_visibility];
wasm_memory_limit: [] | [bigint];
memory_allocation: [] | [bigint];
compute_allocation: [] | [bigint];
}
Expand Down
3 changes: 2 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 c3c5dc8 (2024-03-15 tags: release-2024-03-14_23-01-p2p) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) 'rs/nns/cmc/cmc.did' by import-candid
type Cycles = nat;
type BlockIndex = nat64;
type log_visibility = variant {
Expand All @@ -13,6 +13,7 @@ type CanisterSettings = record {
freezing_threshold : opt nat;
reserved_cycles_limit: opt nat;
log_visibility : opt log_visibility;
wasm_memory_limit: opt nat;
};
type Subaccount = opt blob;
type Memo = opt blob;
Expand Down
1 change: 1 addition & 0 deletions packages/cmc/candid/cmc.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const idlFactory = ({ IDL }) => {
'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)),
'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
'log_visibility' : IDL.Opt(log_visibility),
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
'memory_allocation' : IDL.Opt(IDL.Nat),
'compute_allocation' : IDL.Opt(IDL.Nat),
});
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 c0dc8b76c4 (2024-03-25) 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) '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 c0dc8b76c4 (2024-03-25) 'rs/rosetta-api/icp_ledger/ledger.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) '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 c0dc8b76c4 (2024-03-25) 'rs/rosetta-api/icrc1/index-ng/index-ng.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) '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 c0dc8b76c4 (2024-03-25) 'rs/rosetta-api/icrc1/index/index.did' by import-candid
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) 'rs/rosetta-api/icrc1/index/index.did' by import-candid
type TxId = nat;

type Account = record { owner : principal; subaccount : opt blob };
Expand Down
78 changes: 78 additions & 0 deletions packages/ledger-icrc/candid/icrc_ledger.certified.idl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/ledger-icrc/candid/icrc_ledger.did */
export const idlFactory = ({ IDL }) => {
const GetBlocksResult = IDL.Rec();
const ICRC3Value = IDL.Rec();
const Value = IDL.Rec();
const ChangeArchiveOptions = IDL.Record({
'num_blocks_to_archive' : IDL.Opt(IDL.Nat64),
'max_transactions_per_response' : IDL.Opt(IDL.Nat64),
'trigger_threshold' : IDL.Opt(IDL.Nat64),
'more_controller_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
'max_message_size_bytes' : IDL.Opt(IDL.Nat64),
'cycles_for_archive_creation' : IDL.Opt(IDL.Nat64),
'node_max_memory_size_bytes' : IDL.Opt(IDL.Nat64),
'controller_id' : IDL.Opt(IDL.Principal),
});
const MetadataValue = IDL.Variant({
'Int' : IDL.Int,
'Nat' : IDL.Nat,
Expand All @@ -18,6 +30,7 @@ export const idlFactory = ({ IDL }) => {
});
const FeatureFlags = IDL.Record({ 'icrc2' : IDL.Bool });
const UpgradeArgs = IDL.Record({
'change_archive_options' : IDL.Opt(ChangeArchiveOptions),
'token_symbol' : IDL.Opt(IDL.Text),
'transfer_fee' : IDL.Opt(IDL.Nat),
'metadata' : IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, MetadataValue))),
Expand Down Expand Up @@ -254,6 +267,44 @@ export const idlFactory = ({ IDL }) => {
'Ok' : BlockIndex,
'Err' : TransferFromError,
});
const GetArchivesArgs = IDL.Record({ 'from' : IDL.Opt(IDL.Principal) });
const GetArchivesResult = IDL.Vec(
IDL.Record({
'end' : IDL.Nat,
'canister_id' : IDL.Principal,
'start' : IDL.Nat,
})
);
ICRC3Value.fill(
IDL.Variant({
'Int' : IDL.Int,
'Map' : IDL.Vec(IDL.Tuple(IDL.Text, ICRC3Value)),
'Nat' : IDL.Nat,
'Blob' : IDL.Vec(IDL.Nat8),
'Text' : IDL.Text,
'Array' : IDL.Vec(ICRC3Value),
})
);
GetBlocksResult.fill(
IDL.Record({
'log_length' : IDL.Nat,
'blocks' : IDL.Vec(IDL.Record({ 'id' : IDL.Nat, 'block' : ICRC3Value })),
'archived_blocks' : IDL.Vec(
IDL.Record({
'args' : IDL.Vec(GetBlocksArgs),
'callback' : IDL.Func(
[IDL.Vec(GetBlocksArgs)],
[GetBlocksResult],
[],
),
})
),
})
);
const ICRC3DataCertificate = IDL.Record({
'certificate' : IDL.Vec(IDL.Nat8),
'hash_tree' : IDL.Vec(IDL.Nat8),
});
return IDL.Service({
'archives' : IDL.Func([], [IDL.Vec(ArchiveInfo)], []),
'get_blocks' : IDL.Func([GetBlocksArgs], [GetBlocksResponse], []),
Expand Down Expand Up @@ -284,9 +335,35 @@ export const idlFactory = ({ IDL }) => {
[TransferFromResult],
[],
),
'icrc3_get_archives' : IDL.Func([GetArchivesArgs], [GetArchivesResult], []),
'icrc3_get_blocks' : IDL.Func(
[IDL.Vec(GetBlocksArgs)],
[GetBlocksResult],
[],
),
'icrc3_get_tip_certificate' : IDL.Func(
[],
[IDL.Opt(ICRC3DataCertificate)],
[],
),
'icrc3_supported_block_types' : IDL.Func(
[],
[IDL.Vec(IDL.Record({ 'url' : IDL.Text, 'block_type' : IDL.Text }))],
[],
),
});
};
export const init = ({ IDL }) => {
const ChangeArchiveOptions = IDL.Record({
'num_blocks_to_archive' : IDL.Opt(IDL.Nat64),
'max_transactions_per_response' : IDL.Opt(IDL.Nat64),
'trigger_threshold' : IDL.Opt(IDL.Nat64),
'more_controller_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
'max_message_size_bytes' : IDL.Opt(IDL.Nat64),
'cycles_for_archive_creation' : IDL.Opt(IDL.Nat64),
'node_max_memory_size_bytes' : IDL.Opt(IDL.Nat64),
'controller_id' : IDL.Opt(IDL.Principal),
});
const MetadataValue = IDL.Variant({
'Int' : IDL.Int,
'Nat' : IDL.Nat,
Expand All @@ -304,6 +381,7 @@ export const init = ({ IDL }) => {
});
const FeatureFlags = IDL.Record({ 'icrc2' : IDL.Bool });
const UpgradeArgs = IDL.Record({
'change_archive_options' : IDL.Opt(ChangeArchiveOptions),
'token_symbol' : IDL.Opt(IDL.Text),
'transfer_fee' : IDL.Opt(IDL.Nat),
'metadata' : IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, MetadataValue))),
Expand Down
45 changes: 45 additions & 0 deletions packages/ledger-icrc/candid/icrc_ledger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ export interface Burn {
amount: bigint;
spender: [] | [Account];
}
export interface ChangeArchiveOptions {
num_blocks_to_archive: [] | [bigint];
max_transactions_per_response: [] | [bigint];
trigger_threshold: [] | [bigint];
more_controller_ids: [] | [Array<Principal>];
max_message_size_bytes: [] | [bigint];
cycles_for_archive_creation: [] | [bigint];
node_max_memory_size_bytes: [] | [bigint];
controller_id: [] | [Principal];
}
export type ChangeFeeCollector = { SetTo: Account } | { Unset: null };
export interface DataCertificate {
certificate: [] | [Uint8Array | number[]];
Expand All @@ -73,6 +83,14 @@ export type Duration = bigint;
export interface FeatureFlags {
icrc2: boolean;
}
export interface GetArchivesArgs {
from: [] | [Principal];
}
export type GetArchivesResult = Array<{
end: bigint;
canister_id: Principal;
start: bigint;
}>;
export interface GetBlocksArgs {
start: BlockIndex;
length: bigint;
Expand All @@ -88,6 +106,14 @@ export interface GetBlocksResponse {
length: bigint;
}>;
}
export interface GetBlocksResult {
log_length: bigint;
blocks: Array<{ id: bigint; block: ICRC3Value }>;
archived_blocks: Array<{
args: Array<GetBlocksArgs>;
callback: [Principal, string];
}>;
}
export interface GetTransactionsRequest {
start: TxIndex;
length: bigint;
Expand All @@ -113,6 +139,17 @@ export interface HttpResponse {
headers: Array<[string, string]>;
status_code: number;
}
export interface ICRC3DataCertificate {
certificate: Uint8Array | number[];
hash_tree: Uint8Array | number[];
}
export type ICRC3Value =
| { Int: bigint }
| { Map: Array<[string, ICRC3Value]> }
| { Nat: bigint }
| { Blob: Uint8Array | number[] }
| { Text: string }
| { Array: Array<ICRC3Value> };
export interface InitArgs {
decimals: [] | [number];
token_symbol: string;
Expand Down Expand Up @@ -228,6 +265,7 @@ export type TransferFromResult =
export type TransferResult = { Ok: BlockIndex } | { Err: TransferError };
export type TxIndex = bigint;
export interface UpgradeArgs {
change_archive_options: [] | [ChangeArchiveOptions];
token_symbol: [] | [string];
transfer_fee: [] | [bigint];
metadata: [] | [Array<[string, MetadataValue]>];
Expand Down Expand Up @@ -267,6 +305,13 @@ export interface _SERVICE {
icrc2_allowance: ActorMethod<[AllowanceArgs], Allowance>;
icrc2_approve: ActorMethod<[ApproveArgs], ApproveResult>;
icrc2_transfer_from: ActorMethod<[TransferFromArgs], TransferFromResult>;
icrc3_get_archives: ActorMethod<[GetArchivesArgs], GetArchivesResult>;
icrc3_get_blocks: ActorMethod<[Array<GetBlocksArgs>], GetBlocksResult>;
icrc3_get_tip_certificate: ActorMethod<[], [] | [ICRC3DataCertificate]>;
icrc3_supported_block_types: ActorMethod<
[],
Array<{ url: string; block_type: string }>
>;
}
export declare const idlFactory: IDL.InterfaceFactory;
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
Loading

0 comments on commit 5ad07c8

Please sign in to comment.