@junobuild/functions 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canisters/_canister.d.ts +17 -0
- package/canisters/_constants.d.ts +3 -0
- package/canisters/ckbtc/index.d.ts +1 -0
- package/canisters/ckbtc/index.js +2 -0
- package/canisters/cketh/index.d.ts +1 -0
- package/canisters/cketh/index.js +2 -0
- package/canisters/cketh/index.js.map +7 -0
- package/canisters/cmc/cmc.canister.d.ts +28 -0
- package/canisters/cmc/index.d.ts +2 -0
- package/canisters/cmc/index.js +2 -0
- package/canisters/cmc/index.js.map +7 -0
- package/canisters/declarations/_idl.d.ts +16 -0
- package/canisters/declarations/_types.d.ts +16 -0
- package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
- package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
- package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
- package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
- package/canisters/declarations/cketh/minter.did.d.ts +893 -0
- package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
- package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
- package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
- package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
- package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
- package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
- package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
- package/canisters/declarations/index.d.ts +2 -0
- package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
- package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
- package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
- package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
- package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
- package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
- package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
- package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
- package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
- package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
- package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
- package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
- package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
- package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
- package/canisters/declarations/nns/governance.did.d.ts +1254 -0
- package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
- package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
- package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
- package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
- package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
- package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
- package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
- package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
- package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
- package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
- package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
- package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
- package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
- package/canisters/ic-management/index.d.ts +1 -0
- package/canisters/ic-management/index.js +2 -0
- package/canisters/ic-management/index.js.map +7 -0
- package/canisters/index.d.ts +1 -0
- package/canisters/index.js +2 -0
- package/canisters/index.js.map +7 -0
- package/canisters/ledger/icp/index.d.ts +2 -0
- package/canisters/ledger/icp/index.js +2 -0
- package/canisters/ledger/icp/index.js.map +7 -0
- package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
- package/canisters/ledger/icrc/index.d.ts +3 -0
- package/canisters/ledger/icrc/index.js +2 -0
- package/canisters/ledger/icrc/index.js.map +7 -0
- package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
- package/canisters/ledger/icrc/schemas.d.ts +11 -0
- package/canisters/nns/index.d.ts +1 -0
- package/canisters/nns/index.js +2 -0
- package/canisters/nns/index.js.map +7 -0
- package/canisters/schemas.d.ts +11 -0
- package/canisters/sns/index.d.ts +1 -0
- package/canisters/sns/index.js +2 -0
- package/canisters/sns/index.js.map +7 -0
- package/chunk-4C666HHU.js +2 -0
- package/chunk-4C666HHU.js.map +7 -0
- package/chunk-5NZMOUKF.js +2 -0
- package/chunk-5NZMOUKF.js.map +7 -0
- package/chunk-BXZ5PSUW.js +2 -0
- package/chunk-BXZ5PSUW.js.map +7 -0
- package/chunk-EMQQE34V.js +2 -0
- package/chunk-EMQQE34V.js.map +7 -0
- package/chunk-HANEPD6T.js +2 -0
- package/chunk-HANEPD6T.js.map +7 -0
- package/chunk-TZVF5LQY.js +2 -0
- package/chunk-TZVF5LQY.js.map +7 -0
- package/ic-cdk.js +1 -1
- package/ic-cdk.js.map +4 -4
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +39 -2
- package/sdk.js +1 -1
- package/sdk.js.map +1 -1
- package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
- package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
- package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
- package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
- package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
- package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
- package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
- package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
- package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
- package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
- package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
- package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
- package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
- package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
- package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
- package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
- package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
- package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
- package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
- package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
- package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
- package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
- package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
- package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
- package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
- package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
- package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
- package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
- package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
- package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
- package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
- package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
- package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
- package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
- package/global.d.js +0 -1
- /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const BlockTag: IDL.VariantClass;
|
|
2
|
+
export const UpgradeArg: IDL.RecordClass;
|
|
3
|
+
export const EthereumNetwork: IDL.VariantClass;
|
|
4
|
+
export const InitArg: IDL.RecordClass;
|
|
5
|
+
export const MinterArg: IDL.VariantClass;
|
|
6
|
+
export const AddCkErc20Token: IDL.RecordClass;
|
|
7
|
+
export const Eip1559TransactionPriceArg: IDL.RecordClass;
|
|
8
|
+
export const Eip1559TransactionPrice: IDL.RecordClass;
|
|
9
|
+
export const CanisterStatusType: IDL.VariantClass;
|
|
10
|
+
export const LogVisibility: IDL.VariantClass;
|
|
11
|
+
export const DefiniteCanisterSettings: IDL.RecordClass;
|
|
12
|
+
export const QueryStats: IDL.RecordClass;
|
|
13
|
+
export const CanisterStatusResponse: IDL.RecordClass;
|
|
14
|
+
export const Subaccount: IDL.VecClass<number | bigint>;
|
|
15
|
+
export const EventSource: IDL.RecordClass;
|
|
16
|
+
export const UnsignedTransaction: IDL.RecordClass;
|
|
17
|
+
export const ReimbursementIndex: IDL.VariantClass;
|
|
18
|
+
export const TransactionReceipt: IDL.RecordClass;
|
|
19
|
+
export const Event: IDL.RecordClass;
|
|
20
|
+
export const CkErc20Token: IDL.RecordClass;
|
|
21
|
+
export const GasFeeEstimate: IDL.RecordClass;
|
|
22
|
+
export const MinterInfo: IDL.RecordClass;
|
|
23
|
+
export const EthTransaction: IDL.RecordClass;
|
|
24
|
+
export const TxFinalizedStatus: IDL.VariantClass;
|
|
25
|
+
export const RetrieveEthStatus: IDL.VariantClass;
|
|
26
|
+
export const WithdrawErc20Arg: IDL.RecordClass;
|
|
27
|
+
export const RetrieveErc20Request: IDL.RecordClass;
|
|
28
|
+
export const LedgerError: IDL.VariantClass;
|
|
29
|
+
export const WithdrawErc20Error: IDL.VariantClass;
|
|
30
|
+
export const WithdrawalArg: IDL.RecordClass;
|
|
31
|
+
export const RetrieveEthRequest: IDL.RecordClass;
|
|
32
|
+
export const WithdrawalError: IDL.VariantClass;
|
|
33
|
+
export const Account: IDL.RecordClass;
|
|
34
|
+
export const WithdrawalSearchParameter: IDL.VariantClass;
|
|
35
|
+
export const WithdrawalStatus: IDL.VariantClass;
|
|
36
|
+
export const WithdrawalDetail: IDL.RecordClass;
|
|
37
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
38
|
+
add_ckerc20_token: IDL.FuncClass<[IDL.RecordClass], []>;
|
|
39
|
+
eip_1559_transaction_price: IDL.FuncClass<[IDL.OptClass<Record<string, any>>], [IDL.RecordClass]>;
|
|
40
|
+
get_canister_status: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
41
|
+
get_events: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
42
|
+
get_minter_info: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
43
|
+
is_address_blocked: IDL.FuncClass<[IDL.TextClass], [IDL.BoolClass]>;
|
|
44
|
+
minter_address: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
45
|
+
retrieve_eth_status: IDL.FuncClass<[IDL.FixedNatClass], [IDL.VariantClass]>;
|
|
46
|
+
smart_contract_address: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
47
|
+
withdraw_erc20: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
48
|
+
withdraw_eth: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
49
|
+
withdrawal_status: IDL.FuncClass<[IDL.VariantClass], [IDL.VecClass<Record<string, any>>]>;
|
|
50
|
+
}>;
|
|
51
|
+
export const idlInitArgs: IDL.VariantClass[];
|
|
52
|
+
export function idlFactory({ IDL }: {
|
|
53
|
+
IDL: any;
|
|
54
|
+
}): any;
|
|
55
|
+
export function init({ IDL }: {
|
|
56
|
+
IDL: any;
|
|
57
|
+
}): any[];
|
|
58
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
+
|
|
9
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
10
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
11
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
12
|
+
|
|
13
|
+
export interface AddErc20Arg {
|
|
14
|
+
'contract' : Erc20Contract,
|
|
15
|
+
'ledger_init_arg' : LedgerInitArg,
|
|
16
|
+
}
|
|
17
|
+
export interface CanisterStatusResponse {
|
|
18
|
+
'status' : CanisterStatusType,
|
|
19
|
+
'memory_size' : bigint,
|
|
20
|
+
'cycles' : bigint,
|
|
21
|
+
'settings' : DefiniteCanisterSettings,
|
|
22
|
+
'query_stats' : QueryStats,
|
|
23
|
+
'idle_cycles_burned_per_day' : bigint,
|
|
24
|
+
'module_hash' : [] | [Uint8Array],
|
|
25
|
+
'reserved_cycles' : bigint,
|
|
26
|
+
}
|
|
27
|
+
export type CanisterStatusType = { 'stopped' : null } |
|
|
28
|
+
{ 'stopping' : null } |
|
|
29
|
+
{ 'running' : null };
|
|
30
|
+
export interface CyclesManagement {
|
|
31
|
+
/**
|
|
32
|
+
* Number of cycles to add to a canister managed by the orchestrator whose cycles balance is running low.
|
|
33
|
+
*/
|
|
34
|
+
'cycles_top_up_increment' : bigint,
|
|
35
|
+
/**
|
|
36
|
+
* Number of cycles when creating a new ICRC1 ledger canister.
|
|
37
|
+
*/
|
|
38
|
+
'cycles_for_ledger_creation' : bigint,
|
|
39
|
+
/**
|
|
40
|
+
* Number of cycles when creating a new ICRC1 archive canister.
|
|
41
|
+
*/
|
|
42
|
+
'cycles_for_archive_creation' : bigint,
|
|
43
|
+
/**
|
|
44
|
+
* Number of cycles when creating a new ICRC1 index canister.
|
|
45
|
+
*/
|
|
46
|
+
'cycles_for_index_creation' : bigint,
|
|
47
|
+
}
|
|
48
|
+
export interface DefiniteCanisterSettings {
|
|
49
|
+
'freezing_threshold' : bigint,
|
|
50
|
+
'controllers' : Array<Principal>,
|
|
51
|
+
'reserved_cycles_limit' : bigint,
|
|
52
|
+
'log_visibility' : LogVisibility,
|
|
53
|
+
'wasm_memory_limit' : bigint,
|
|
54
|
+
'memory_allocation' : bigint,
|
|
55
|
+
'compute_allocation' : bigint,
|
|
56
|
+
}
|
|
57
|
+
export interface Erc20Contract { 'chain_id' : bigint, 'address' : string }
|
|
58
|
+
export interface InitArg {
|
|
59
|
+
/**
|
|
60
|
+
* Controls the cycles management of the canisters managed by the orchestrator.
|
|
61
|
+
*/
|
|
62
|
+
'cycles_management' : [] | [CyclesManagement],
|
|
63
|
+
/**
|
|
64
|
+
* All canisters that will be spawned off by the orchestrator will be controlled by the orchestrator
|
|
65
|
+
* and *additionally* by the following controllers.
|
|
66
|
+
*/
|
|
67
|
+
'more_controller_ids' : Array<Principal>,
|
|
68
|
+
/**
|
|
69
|
+
* Canister ID of the minter that will be notified when new ERC-20 tokens are added.
|
|
70
|
+
*/
|
|
71
|
+
'minter_id' : [] | [Principal],
|
|
72
|
+
}
|
|
73
|
+
export interface InstalledCanister {
|
|
74
|
+
'canister_id' : Principal,
|
|
75
|
+
'installed_wasm_hash' : string,
|
|
76
|
+
}
|
|
77
|
+
export interface InstalledLedgerSuite {
|
|
78
|
+
/**
|
|
79
|
+
* Token symbol on the ledger
|
|
80
|
+
*/
|
|
81
|
+
'token_symbol' : string,
|
|
82
|
+
/**
|
|
83
|
+
* Ledger canister
|
|
84
|
+
*/
|
|
85
|
+
'ledger' : InstalledCanister,
|
|
86
|
+
/**
|
|
87
|
+
* Index canister
|
|
88
|
+
*/
|
|
89
|
+
'index' : InstalledCanister,
|
|
90
|
+
/**
|
|
91
|
+
* List of archive canister ids
|
|
92
|
+
*/
|
|
93
|
+
'archives' : [] | [Array<Principal>],
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* ICRC1 ledger initialization argument that will be used when the orchestrator spawns a new ledger canister.
|
|
97
|
+
* Other fields, such as `archive_options`, needed to initialize a new ledger will be set by the orchestrator.
|
|
98
|
+
*/
|
|
99
|
+
export interface LedgerInitArg {
|
|
100
|
+
'decimals' : number,
|
|
101
|
+
'token_symbol' : string,
|
|
102
|
+
'transfer_fee' : bigint,
|
|
103
|
+
'token_logo' : string,
|
|
104
|
+
'token_name' : string,
|
|
105
|
+
}
|
|
106
|
+
export interface LedgerSuiteVersion {
|
|
107
|
+
/**
|
|
108
|
+
* Hexadecimal encoding of the SHA2-256 archive compressed wasm hash, e.g.,
|
|
109
|
+
* "e59ec306ef67d0ec2e8919e8f6366aff31c666346e238d07d52f616bef61ccab".
|
|
110
|
+
*/
|
|
111
|
+
'archive_compressed_wasm_hash' : string,
|
|
112
|
+
/**
|
|
113
|
+
* Hexadecimal encoding of the SHA2-256 ledger compressed wasm hash, e.g.,
|
|
114
|
+
* "3148f7a9f1b0ee39262c8abe3b08813480cf78551eee5a60ab1cf38433b5d9b0".
|
|
115
|
+
* This exact version will be used to spawn off a new ledger canister when an ERC-20 token is added.
|
|
116
|
+
*/
|
|
117
|
+
'ledger_compressed_wasm_hash' : string,
|
|
118
|
+
/**
|
|
119
|
+
* Hexadecimal encoding of the SHA2-256 index compressed wasm hash, e.g.,
|
|
120
|
+
* "3a6d39b5e94cdef5203bca62720e75a28cd071ff434d22b9746403ac7ae59614".
|
|
121
|
+
* This exact version will be used to spawn off a new index canister when an ERC-20 token is added.
|
|
122
|
+
*/
|
|
123
|
+
'index_compressed_wasm_hash' : string,
|
|
124
|
+
}
|
|
125
|
+
export type LogVisibility = { 'controllers' : null } |
|
|
126
|
+
{ 'public' : null } |
|
|
127
|
+
{ 'allowed_viewers' : Array<Principal> };
|
|
128
|
+
export interface ManagedCanisterIds {
|
|
129
|
+
'ledger' : [] | [Principal],
|
|
130
|
+
'index' : [] | [Principal],
|
|
131
|
+
'archives' : Array<Principal>,
|
|
132
|
+
}
|
|
133
|
+
export type ManagedCanisterStatus = {
|
|
134
|
+
/**
|
|
135
|
+
* Canister created with the given principal but wasm module is not yet installed.
|
|
136
|
+
*/
|
|
137
|
+
'Created' : { 'canister_id' : Principal }
|
|
138
|
+
} |
|
|
139
|
+
{
|
|
140
|
+
/**
|
|
141
|
+
* Canister created and wasm module installed.
|
|
142
|
+
* The wasm_hash reflects the installed wasm module by the orchestrator
|
|
143
|
+
* but *may differ* from the one being currently deployed (if another controller did an upgrade)
|
|
144
|
+
*/
|
|
145
|
+
'Installed' : { 'canister_id' : Principal, 'installed_wasm_hash' : string }
|
|
146
|
+
};
|
|
147
|
+
export interface ManagedCanisters {
|
|
148
|
+
/**
|
|
149
|
+
* Corresponding ERC20 contract
|
|
150
|
+
*/
|
|
151
|
+
'erc20_contract' : Erc20Contract,
|
|
152
|
+
/**
|
|
153
|
+
* Status of the ledger canister
|
|
154
|
+
*/
|
|
155
|
+
'ledger' : [] | [ManagedCanisterStatus],
|
|
156
|
+
/**
|
|
157
|
+
* Status of the index canister
|
|
158
|
+
*/
|
|
159
|
+
'index' : [] | [ManagedCanisterStatus],
|
|
160
|
+
/**
|
|
161
|
+
* List of archive canister ids
|
|
162
|
+
*/
|
|
163
|
+
'archives' : Array<Principal>,
|
|
164
|
+
/**
|
|
165
|
+
* ckERC20 Token symbol
|
|
166
|
+
*/
|
|
167
|
+
'ckerc20_token_symbol' : string,
|
|
168
|
+
}
|
|
169
|
+
export interface ManagedLedgerSuite {
|
|
170
|
+
/**
|
|
171
|
+
* Token symbol
|
|
172
|
+
*/
|
|
173
|
+
'token_symbol' : string,
|
|
174
|
+
/**
|
|
175
|
+
* Status of the ledger canister
|
|
176
|
+
*/
|
|
177
|
+
'ledger' : [] | [ManagedCanisterStatus],
|
|
178
|
+
/**
|
|
179
|
+
* Status of the index canister
|
|
180
|
+
*/
|
|
181
|
+
'index' : [] | [ManagedCanisterStatus],
|
|
182
|
+
/**
|
|
183
|
+
* List of archive canister ids
|
|
184
|
+
*/
|
|
185
|
+
'archives' : Array<Principal>,
|
|
186
|
+
}
|
|
187
|
+
export type OrchestratorArg = { 'UpgradeArg' : UpgradeArg } |
|
|
188
|
+
{ 'InitArg' : InitArg } |
|
|
189
|
+
{ 'AddErc20Arg' : AddErc20Arg };
|
|
190
|
+
export interface OrchestratorInfo {
|
|
191
|
+
/**
|
|
192
|
+
* Cycle management parameters.
|
|
193
|
+
*/
|
|
194
|
+
'cycles_management' : CyclesManagement,
|
|
195
|
+
/**
|
|
196
|
+
* List of managed canisters data for each ERC20 contract.
|
|
197
|
+
*/
|
|
198
|
+
'managed_canisters' : Array<ManagedCanisters>,
|
|
199
|
+
/**
|
|
200
|
+
* List of managed ledger suites that were not initially installed by the orchestrator.
|
|
201
|
+
* Those ledger suites are *NOT* necessarily ckERC20 tokens.
|
|
202
|
+
*/
|
|
203
|
+
'managed_pre_existing_ledger_suites' : [] | [Array<ManagedLedgerSuite>],
|
|
204
|
+
/**
|
|
205
|
+
* Additional controllers that new canisters will be spawned with.
|
|
206
|
+
*/
|
|
207
|
+
'more_controller_ids' : Array<Principal>,
|
|
208
|
+
/**
|
|
209
|
+
* Ledger suite version that will be used to spawn off a new ledger suite (ledger and index canisters) when an ERC-20 token is added.
|
|
210
|
+
*/
|
|
211
|
+
'ledger_suite_version' : [] | [LedgerSuiteVersion],
|
|
212
|
+
/**
|
|
213
|
+
* ckETH minter canister id.
|
|
214
|
+
*/
|
|
215
|
+
'minter_id' : [] | [Principal],
|
|
216
|
+
}
|
|
217
|
+
export interface QueryStats {
|
|
218
|
+
'response_payload_bytes_total' : bigint,
|
|
219
|
+
'num_instructions_total' : bigint,
|
|
220
|
+
'num_calls_total' : bigint,
|
|
221
|
+
'request_payload_bytes_total' : bigint,
|
|
222
|
+
}
|
|
223
|
+
export interface UpdateCyclesManagement {
|
|
224
|
+
/**
|
|
225
|
+
* Change the number of cycles to add to a canister managed by the orchestrator whose cycles balance is running low.
|
|
226
|
+
*/
|
|
227
|
+
'cycles_top_up_increment' : [] | [bigint],
|
|
228
|
+
/**
|
|
229
|
+
* Change the number of cycles when creating a new ICRC1 ledger canister.
|
|
230
|
+
* Previously created canisters are not affected.
|
|
231
|
+
*/
|
|
232
|
+
'cycles_for_ledger_creation' : [] | [bigint],
|
|
233
|
+
/**
|
|
234
|
+
* Change the number of cycles when creating a new ICRC1 archive canister.
|
|
235
|
+
* Previously created canisters are not affected.
|
|
236
|
+
*/
|
|
237
|
+
'cycles_for_archive_creation' : [] | [bigint],
|
|
238
|
+
/**
|
|
239
|
+
* Change the number of cycles when creating a new ICRC1 index canister.
|
|
240
|
+
* Previously created canisters are not affected.
|
|
241
|
+
*/
|
|
242
|
+
'cycles_for_index_creation' : [] | [bigint],
|
|
243
|
+
}
|
|
244
|
+
export interface UpgradeArg {
|
|
245
|
+
/**
|
|
246
|
+
* Add already installed ledger suites to the canisters managed by the orchestrator.
|
|
247
|
+
* Those ledger suites are *NOT* necessarily ckERC20 tokens.
|
|
248
|
+
* This assumes that the orchestrator is a controller of all the canisters in the list.
|
|
249
|
+
*/
|
|
250
|
+
'manage_ledger_suites' : [] | [Array<InstalledLedgerSuite>],
|
|
251
|
+
/**
|
|
252
|
+
* Update the cycles management of the canisters managed by the orchestrator.
|
|
253
|
+
*/
|
|
254
|
+
'cycles_management' : [] | [UpdateCyclesManagement],
|
|
255
|
+
/**
|
|
256
|
+
* Hexadecimal encoding of the SHA2-256 archive compressed wasm hash, e.g.,
|
|
257
|
+
* "b24812976b2cc64f12faf813cf592631f3062bfda837334f77ab807361d64e82".
|
|
258
|
+
* This exact version will be used for upgrading all existing archive canisters managed by the orchestrator.
|
|
259
|
+
* Leaving this field empty will not upgrade the archive canisters.
|
|
260
|
+
*/
|
|
261
|
+
'archive_compressed_wasm_hash' : [] | [string],
|
|
262
|
+
/**
|
|
263
|
+
* Hexadecimal encoding of the SHA-1 git commit hash used for this upgrade, e.g.,
|
|
264
|
+
* "51d01d3936498d4010de54505d6433e9ad5cc62b", corresponding to a git revision in the
|
|
265
|
+
* [IC repository](https://github.com/dfinity/ic).
|
|
266
|
+
* If this field is present, the orchestrator will register all embedded wasms (ledger, index, and archive) in its stable memory,
|
|
267
|
+
* so that those exact wasms can be used to upgrade managed canisters as specified below.
|
|
268
|
+
*/
|
|
269
|
+
'git_commit_hash' : [] | [string],
|
|
270
|
+
/**
|
|
271
|
+
* Hexadecimal encoding of the SHA2-256 ledger compressed wasm hash, e.g.,
|
|
272
|
+
* "3148f7a9f1b0ee39262c8abe3b08813480cf78551eee5a60ab1cf38433b5d9b0".
|
|
273
|
+
* This exact version will be used for upgrading all existing ledger canisters managed by the orchestrator.
|
|
274
|
+
* Leaving this field empty will not upgrade the ledger canisters.
|
|
275
|
+
*/
|
|
276
|
+
'ledger_compressed_wasm_hash' : [] | [string],
|
|
277
|
+
/**
|
|
278
|
+
* Hexadecimal encoding of the SHA2-256 index compressed wasm hash, e.g.,
|
|
279
|
+
* "3a6d39b5e94cdef5203bca62720e75a28cd071ff434d22b9746403ac7ae59614".
|
|
280
|
+
* This exact version will be used for upgrading all existing index canisters managed by the orchestrator.
|
|
281
|
+
* Leaving this field empty will not upgrade the index canisters.
|
|
282
|
+
*/
|
|
283
|
+
'index_compressed_wasm_hash' : [] | [string],
|
|
284
|
+
}
|
|
285
|
+
export interface _SERVICE {
|
|
286
|
+
/**
|
|
287
|
+
* Managed canister IDs for a given ERC20 contract
|
|
288
|
+
*/
|
|
289
|
+
'canister_ids' : ActorMethod<[Erc20Contract], [] | [ManagedCanisterIds]>,
|
|
290
|
+
/**
|
|
291
|
+
* Retrieve the status of the canister.
|
|
292
|
+
*/
|
|
293
|
+
'get_canister_status' : ActorMethod<[], CanisterStatusResponse>,
|
|
294
|
+
/**
|
|
295
|
+
* Return internal orchestrator parameters
|
|
296
|
+
*/
|
|
297
|
+
'get_orchestrator_info' : ActorMethod<[], OrchestratorInfo>,
|
|
298
|
+
}
|
|
299
|
+
export declare const idlService: IDL.ServiceClass;
|
|
300
|
+
export declare const idlInitArgs: IDL.Type[];
|
|
301
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
302
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const InstalledCanister: IDL.RecordClass;
|
|
2
|
+
export const InstalledLedgerSuite: IDL.RecordClass;
|
|
3
|
+
export const UpdateCyclesManagement: IDL.RecordClass;
|
|
4
|
+
export const UpgradeArg: IDL.RecordClass;
|
|
5
|
+
export const CyclesManagement: IDL.RecordClass;
|
|
6
|
+
export const InitArg: IDL.RecordClass;
|
|
7
|
+
export const Erc20Contract: IDL.RecordClass;
|
|
8
|
+
export const LedgerInitArg: IDL.RecordClass;
|
|
9
|
+
export const AddErc20Arg: IDL.RecordClass;
|
|
10
|
+
export const OrchestratorArg: IDL.VariantClass;
|
|
11
|
+
export const ManagedCanisterIds: IDL.RecordClass;
|
|
12
|
+
export const CanisterStatusType: IDL.VariantClass;
|
|
13
|
+
export const LogVisibility: IDL.VariantClass;
|
|
14
|
+
export const DefiniteCanisterSettings: IDL.RecordClass;
|
|
15
|
+
export const QueryStats: IDL.RecordClass;
|
|
16
|
+
export const CanisterStatusResponse: IDL.RecordClass;
|
|
17
|
+
export const ManagedCanisterStatus: IDL.VariantClass;
|
|
18
|
+
export const ManagedCanisters: IDL.RecordClass;
|
|
19
|
+
export const ManagedLedgerSuite: IDL.RecordClass;
|
|
20
|
+
export const LedgerSuiteVersion: IDL.RecordClass;
|
|
21
|
+
export const OrchestratorInfo: IDL.RecordClass;
|
|
22
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
23
|
+
canister_ids: IDL.FuncClass<[IDL.RecordClass], [IDL.OptClass<Record<string, any>>]>;
|
|
24
|
+
get_canister_status: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
25
|
+
get_orchestrator_info: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
26
|
+
}>;
|
|
27
|
+
export const idlInitArgs: IDL.VariantClass[];
|
|
28
|
+
export function idlFactory({ IDL }: {
|
|
29
|
+
IDL: any;
|
|
30
|
+
}): any;
|
|
31
|
+
export function init({ IDL }: {
|
|
32
|
+
IDL: any;
|
|
33
|
+
}): any[];
|
|
34
|
+
import { IDL } from '@icp-sdk/core/candid';
|