@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.
Files changed (137) hide show
  1. package/canisters/_canister.d.ts +17 -0
  2. package/canisters/_constants.d.ts +3 -0
  3. package/canisters/ckbtc/index.d.ts +1 -0
  4. package/canisters/ckbtc/index.js +2 -0
  5. package/canisters/cketh/index.d.ts +1 -0
  6. package/canisters/cketh/index.js +2 -0
  7. package/canisters/cketh/index.js.map +7 -0
  8. package/canisters/cmc/cmc.canister.d.ts +28 -0
  9. package/canisters/cmc/index.d.ts +2 -0
  10. package/canisters/cmc/index.js +2 -0
  11. package/canisters/cmc/index.js.map +7 -0
  12. package/canisters/declarations/_idl.d.ts +16 -0
  13. package/canisters/declarations/_types.d.ts +16 -0
  14. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  15. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
  16. package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  17. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
  18. package/canisters/declarations/cketh/minter.did.d.ts +893 -0
  19. package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
  20. package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  21. package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
  22. package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  23. package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
  24. package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  25. package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
  26. package/canisters/declarations/index.d.ts +2 -0
  27. package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  28. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
  29. package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  30. package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
  31. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  32. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
  33. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  34. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
  35. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  36. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
  37. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  38. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
  39. package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  40. package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
  41. package/canisters/declarations/nns/governance.did.d.ts +1254 -0
  42. package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
  43. package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  44. package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
  45. package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  46. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
  47. package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  48. package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
  49. package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  50. package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
  51. package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  52. package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
  53. package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  54. package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
  55. package/canisters/ic-management/index.d.ts +1 -0
  56. package/canisters/ic-management/index.js +2 -0
  57. package/canisters/ic-management/index.js.map +7 -0
  58. package/canisters/index.d.ts +1 -0
  59. package/canisters/index.js +2 -0
  60. package/canisters/index.js.map +7 -0
  61. package/canisters/ledger/icp/index.d.ts +2 -0
  62. package/canisters/ledger/icp/index.js +2 -0
  63. package/canisters/ledger/icp/index.js.map +7 -0
  64. package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
  65. package/canisters/ledger/icrc/index.d.ts +3 -0
  66. package/canisters/ledger/icrc/index.js +2 -0
  67. package/canisters/ledger/icrc/index.js.map +7 -0
  68. package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
  69. package/canisters/ledger/icrc/schemas.d.ts +11 -0
  70. package/canisters/nns/index.d.ts +1 -0
  71. package/canisters/nns/index.js +2 -0
  72. package/canisters/nns/index.js.map +7 -0
  73. package/canisters/schemas.d.ts +11 -0
  74. package/canisters/sns/index.d.ts +1 -0
  75. package/canisters/sns/index.js +2 -0
  76. package/canisters/sns/index.js.map +7 -0
  77. package/chunk-4C666HHU.js +2 -0
  78. package/chunk-4C666HHU.js.map +7 -0
  79. package/chunk-5NZMOUKF.js +2 -0
  80. package/chunk-5NZMOUKF.js.map +7 -0
  81. package/chunk-BXZ5PSUW.js +2 -0
  82. package/chunk-BXZ5PSUW.js.map +7 -0
  83. package/chunk-EMQQE34V.js +2 -0
  84. package/chunk-EMQQE34V.js.map +7 -0
  85. package/chunk-HANEPD6T.js +2 -0
  86. package/chunk-HANEPD6T.js.map +7 -0
  87. package/chunk-TZVF5LQY.js +2 -0
  88. package/chunk-TZVF5LQY.js.map +7 -0
  89. package/ic-cdk.js +1 -1
  90. package/ic-cdk.js.map +4 -4
  91. package/index.js +1 -1
  92. package/index.js.map +1 -1
  93. package/package.json +39 -2
  94. package/sdk.js +1 -1
  95. package/sdk.js.map +1 -1
  96. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  97. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
  98. package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  99. package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
  100. package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
  101. package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
  102. package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  103. package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
  104. package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  105. package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
  106. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  107. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
  108. package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  109. package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
  110. package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  111. package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
  112. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  113. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
  114. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  115. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
  116. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  117. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
  118. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  119. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
  120. package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  121. package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
  122. package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
  123. package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
  124. package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  125. package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
  126. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  127. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
  128. package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  129. package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
  130. package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  131. package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
  132. package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  133. package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
  134. package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  135. package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
  136. package/global.d.js +0 -1
  137. /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';