@junobuild/functions 0.4.1 → 0.5.1-next-2025-11-29
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 +43 -6
- 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,344 @@
|
|
|
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 type AccountIdentifier = string;
|
|
14
|
+
export type BlockIndex = bigint;
|
|
15
|
+
export interface CanisterSettings {
|
|
16
|
+
'freezing_threshold' : [] | [bigint],
|
|
17
|
+
'wasm_memory_threshold' : [] | [bigint],
|
|
18
|
+
'environment_variables' : [] | [Array<environment_variable>],
|
|
19
|
+
'controllers' : [] | [Array<Principal>],
|
|
20
|
+
'reserved_cycles_limit' : [] | [bigint],
|
|
21
|
+
'log_visibility' : [] | [log_visibility],
|
|
22
|
+
'log_memory_limit' : [] | [bigint],
|
|
23
|
+
'wasm_memory_limit' : [] | [bigint],
|
|
24
|
+
'memory_allocation' : [] | [bigint],
|
|
25
|
+
'compute_allocation' : [] | [bigint],
|
|
26
|
+
}
|
|
27
|
+
export type ChangeSubnetTypeAssignmentArgs = { 'Add' : SubnetListWithType } |
|
|
28
|
+
{ 'Remove' : SubnetListWithType };
|
|
29
|
+
/**
|
|
30
|
+
* The argument of the [create_canister] method.
|
|
31
|
+
*/
|
|
32
|
+
export interface CreateCanisterArg {
|
|
33
|
+
/**
|
|
34
|
+
* Optional instructions to select on which subnet the new canister will be created on.
|
|
35
|
+
*/
|
|
36
|
+
'subnet_selection' : [] | [SubnetSelection],
|
|
37
|
+
/**
|
|
38
|
+
* Optional canister settings that, if set, are applied to the newly created canister.
|
|
39
|
+
* If not specified, the caller is the controller of the canister and the other settings are set to default values.
|
|
40
|
+
*/
|
|
41
|
+
'settings' : [] | [CanisterSettings],
|
|
42
|
+
/**
|
|
43
|
+
* An optional subnet type that, if set, determines what type of subnet
|
|
44
|
+
* the new canister will be created on.
|
|
45
|
+
* Deprecated. Use subnet_selection instead.
|
|
46
|
+
*/
|
|
47
|
+
'subnet_type' : [] | [string],
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Canister creation failed and the cycles attached to the call were returned to the calling canister.
|
|
51
|
+
* A small fee may be charged.
|
|
52
|
+
*/
|
|
53
|
+
export type CreateCanisterError = {
|
|
54
|
+
'Refunded' : {
|
|
55
|
+
/**
|
|
56
|
+
* The reason why creating a canister failed.
|
|
57
|
+
*/
|
|
58
|
+
'create_error' : string,
|
|
59
|
+
/**
|
|
60
|
+
* The amount of cycles returned to the calling canister
|
|
61
|
+
*/
|
|
62
|
+
'refund_amount' : bigint,
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export type CreateCanisterResult = {
|
|
66
|
+
/**
|
|
67
|
+
* The principal of the newly created canister.
|
|
68
|
+
*/
|
|
69
|
+
'Ok' : Principal
|
|
70
|
+
} |
|
|
71
|
+
{ 'Err' : CreateCanisterError };
|
|
72
|
+
export type Cycles = bigint;
|
|
73
|
+
export interface CyclesCanisterInitPayload {
|
|
74
|
+
'exchange_rate_canister' : [] | [ExchangeRateCanister],
|
|
75
|
+
'cycles_ledger_canister_id' : [] | [Principal],
|
|
76
|
+
'last_purged_notification' : [] | [bigint],
|
|
77
|
+
'governance_canister_id' : [] | [Principal],
|
|
78
|
+
'minting_account_id' : [] | [AccountIdentifier],
|
|
79
|
+
'ledger_canister_id' : [] | [Principal],
|
|
80
|
+
}
|
|
81
|
+
export type ExchangeRateCanister = {
|
|
82
|
+
/**
|
|
83
|
+
* / Enables the exchange rate canister with the given canister ID.
|
|
84
|
+
*/
|
|
85
|
+
'Set' : Principal
|
|
86
|
+
} |
|
|
87
|
+
{
|
|
88
|
+
/**
|
|
89
|
+
* / Disable the exchange rate canister.
|
|
90
|
+
*/
|
|
91
|
+
'Unset' : null
|
|
92
|
+
};
|
|
93
|
+
export interface IcpXdrConversionRate {
|
|
94
|
+
/**
|
|
95
|
+
* The number of 10,000ths of IMF SDR (currency code XDR) that corresponds
|
|
96
|
+
* to 1 ICP. This value reflects the current market price of one ICP token.
|
|
97
|
+
*/
|
|
98
|
+
'xdr_permyriad_per_icp' : bigint,
|
|
99
|
+
/**
|
|
100
|
+
* The time for which the market data was queried, expressed in UNIX epoch
|
|
101
|
+
* time in seconds.
|
|
102
|
+
*/
|
|
103
|
+
'timestamp_seconds' : bigint,
|
|
104
|
+
}
|
|
105
|
+
export interface IcpXdrConversionRateResponse {
|
|
106
|
+
/**
|
|
107
|
+
* System certificate as specified in
|
|
108
|
+
* https://internetcomputer.org/docs/interface-spec/index.html#certification-encoding
|
|
109
|
+
*/
|
|
110
|
+
'certificate' : Uint8Array,
|
|
111
|
+
/**
|
|
112
|
+
* The latest ICP/XDR conversion rate.
|
|
113
|
+
*/
|
|
114
|
+
'data' : IcpXdrConversionRate,
|
|
115
|
+
/**
|
|
116
|
+
* CBOR-serialized hash tree as specified in
|
|
117
|
+
* https://internetcomputer.org/docs/interface-spec/index.html#certification-encoding
|
|
118
|
+
* The hash tree is used for certification and hash the following structure:
|
|
119
|
+
* ```
|
|
120
|
+
* *
|
|
121
|
+
* |
|
|
122
|
+
* +-- ICP_XDR_CONVERSION_RATE -- [ Candid encoded IcpXdrConversionRate ]
|
|
123
|
+
* |
|
|
124
|
+
* `-- AVERAGE_ICP_XDR_CONVERSION_RATE -- [ Candid encoded IcpXdrConversionRate ]
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
'hash_tree' : Uint8Array,
|
|
128
|
+
}
|
|
129
|
+
export type Memo = [] | [Uint8Array];
|
|
130
|
+
/**
|
|
131
|
+
* The argument of the [notify_create_canister] method.
|
|
132
|
+
*/
|
|
133
|
+
export interface NotifyCreateCanisterArg {
|
|
134
|
+
/**
|
|
135
|
+
* The controller of canister to create.
|
|
136
|
+
*/
|
|
137
|
+
'controller' : Principal,
|
|
138
|
+
/**
|
|
139
|
+
* Index of the block on the ICP ledger that contains the payment.
|
|
140
|
+
*/
|
|
141
|
+
'block_index' : BlockIndex,
|
|
142
|
+
/**
|
|
143
|
+
* Optional instructions to select on which subnet the new canister will be created on.
|
|
144
|
+
* vec may contain no more than one element.
|
|
145
|
+
*/
|
|
146
|
+
'subnet_selection' : [] | [SubnetSelection],
|
|
147
|
+
/**
|
|
148
|
+
* Optional canister settings that, if set, are applied to the newly created canister.
|
|
149
|
+
* If not specified, the caller is the controller of the canister and the other settings are set to default values.
|
|
150
|
+
*/
|
|
151
|
+
'settings' : [] | [CanisterSettings],
|
|
152
|
+
/**
|
|
153
|
+
* An optional subnet type that, if set, determines what type of subnet
|
|
154
|
+
* the new canister will be created on.
|
|
155
|
+
* Deprecated. Use subnet_selection instead.
|
|
156
|
+
*/
|
|
157
|
+
'subnet_type' : [] | [string],
|
|
158
|
+
}
|
|
159
|
+
export type NotifyCreateCanisterResult = {
|
|
160
|
+
/**
|
|
161
|
+
* The principal of the newly created canister.
|
|
162
|
+
*/
|
|
163
|
+
'Ok' : Principal
|
|
164
|
+
} |
|
|
165
|
+
{ 'Err' : NotifyError };
|
|
166
|
+
export type NotifyError = {
|
|
167
|
+
/**
|
|
168
|
+
* The payment processing failed and the payment was returned the caller.
|
|
169
|
+
* This is a non-retriable error.
|
|
170
|
+
*/
|
|
171
|
+
'Refunded' : {
|
|
172
|
+
/**
|
|
173
|
+
* The index of the block containing the refund.
|
|
174
|
+
*/
|
|
175
|
+
'block_index' : [] | [BlockIndex],
|
|
176
|
+
/**
|
|
177
|
+
* The reason for the refund.
|
|
178
|
+
*/
|
|
179
|
+
'reason' : string,
|
|
180
|
+
}
|
|
181
|
+
} |
|
|
182
|
+
{
|
|
183
|
+
/**
|
|
184
|
+
* The transaction does not satisfy the cycle minting canister payment protocol.
|
|
185
|
+
* The text contains the description of the problem.
|
|
186
|
+
* This is a non-retriable error.
|
|
187
|
+
*/
|
|
188
|
+
'InvalidTransaction' : string
|
|
189
|
+
} |
|
|
190
|
+
{
|
|
191
|
+
/**
|
|
192
|
+
* Other error.
|
|
193
|
+
*/
|
|
194
|
+
'Other' : { 'error_message' : string, 'error_code' : bigint }
|
|
195
|
+
} |
|
|
196
|
+
{
|
|
197
|
+
/**
|
|
198
|
+
* The same payment is already being processed by a concurrent request.
|
|
199
|
+
* This is a retriable error.
|
|
200
|
+
*/
|
|
201
|
+
'Processing' : null
|
|
202
|
+
} |
|
|
203
|
+
{
|
|
204
|
+
/**
|
|
205
|
+
* The payment was too old to be processed.
|
|
206
|
+
* The value of the variant is the oldest block index that can still be processed.
|
|
207
|
+
* This a non-retriable error.
|
|
208
|
+
*/
|
|
209
|
+
'TransactionTooOld' : BlockIndex
|
|
210
|
+
};
|
|
211
|
+
export interface NotifyMintCyclesArg {
|
|
212
|
+
'block_index' : BlockIndex,
|
|
213
|
+
'deposit_memo' : Memo,
|
|
214
|
+
'to_subaccount' : Subaccount,
|
|
215
|
+
}
|
|
216
|
+
export type NotifyMintCyclesResult = { 'Ok' : NotifyMintCyclesSuccess } |
|
|
217
|
+
{ 'Err' : NotifyError };
|
|
218
|
+
export interface NotifyMintCyclesSuccess {
|
|
219
|
+
/**
|
|
220
|
+
* New balance of the cycles ledger account
|
|
221
|
+
*/
|
|
222
|
+
'balance' : bigint,
|
|
223
|
+
/**
|
|
224
|
+
* Cycles ledger block index of deposit
|
|
225
|
+
*/
|
|
226
|
+
'block_index' : bigint,
|
|
227
|
+
/**
|
|
228
|
+
* Amount of cycles that were minted and deposited to the cycles ledger
|
|
229
|
+
*/
|
|
230
|
+
'minted' : bigint,
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The argument of the [notify_top_up] method.
|
|
234
|
+
*/
|
|
235
|
+
export interface NotifyTopUpArg {
|
|
236
|
+
/**
|
|
237
|
+
* Index of the block on the ICP ledger that contains the payment.
|
|
238
|
+
*/
|
|
239
|
+
'block_index' : BlockIndex,
|
|
240
|
+
/**
|
|
241
|
+
* The canister to top up.
|
|
242
|
+
*/
|
|
243
|
+
'canister_id' : Principal,
|
|
244
|
+
}
|
|
245
|
+
export type NotifyTopUpResult = {
|
|
246
|
+
/**
|
|
247
|
+
* The amount of cycles sent to the specified canister.
|
|
248
|
+
*/
|
|
249
|
+
'Ok' : Cycles
|
|
250
|
+
} |
|
|
251
|
+
{ 'Err' : NotifyError };
|
|
252
|
+
export interface PrincipalsAuthorizedToCreateCanistersToSubnetsResponse {
|
|
253
|
+
'data' : Array<[Principal, Array<Principal>]>,
|
|
254
|
+
}
|
|
255
|
+
export interface SetAuthorizedSubnetworkListArgs {
|
|
256
|
+
'who' : [] | [Principal],
|
|
257
|
+
'subnets' : Array<Principal>,
|
|
258
|
+
}
|
|
259
|
+
export type Subaccount = [] | [Uint8Array];
|
|
260
|
+
export interface SubnetFilter { 'subnet_type' : [] | [string] }
|
|
261
|
+
export interface SubnetListWithType {
|
|
262
|
+
'subnets' : Array<Principal>,
|
|
263
|
+
'subnet_type' : string,
|
|
264
|
+
}
|
|
265
|
+
export type SubnetSelection = {
|
|
266
|
+
/**
|
|
267
|
+
* / Choose a random subnet that fulfills the specified properties
|
|
268
|
+
*/
|
|
269
|
+
'Filter' : SubnetFilter
|
|
270
|
+
} |
|
|
271
|
+
{
|
|
272
|
+
/**
|
|
273
|
+
* / Choose a specific subnet
|
|
274
|
+
*/
|
|
275
|
+
'Subnet' : { 'subnet' : Principal }
|
|
276
|
+
};
|
|
277
|
+
export interface SubnetTypesToSubnetsResponse {
|
|
278
|
+
'data' : Array<[string, Array<Principal>]>,
|
|
279
|
+
}
|
|
280
|
+
export type UpdateSubnetTypeArgs = { 'Add' : string } |
|
|
281
|
+
{ 'Remove' : string };
|
|
282
|
+
export interface environment_variable { 'value' : string, 'name' : string }
|
|
283
|
+
export type log_visibility = { 'controllers' : null } |
|
|
284
|
+
{ 'public' : null } |
|
|
285
|
+
{ 'allowed_viewers' : Array<Principal> };
|
|
286
|
+
export interface _SERVICE {
|
|
287
|
+
'change_subnet_type_assignment' : ActorMethod<
|
|
288
|
+
[ChangeSubnetTypeAssignmentArgs],
|
|
289
|
+
undefined
|
|
290
|
+
>,
|
|
291
|
+
/**
|
|
292
|
+
* Creates a canister using the cycles attached to the function call.
|
|
293
|
+
*/
|
|
294
|
+
'create_canister' : ActorMethod<[CreateCanisterArg], CreateCanisterResult>,
|
|
295
|
+
'get_build_metadata' : ActorMethod<[], string>,
|
|
296
|
+
'get_default_subnets' : ActorMethod<[], Array<Principal>>,
|
|
297
|
+
/**
|
|
298
|
+
* Returns the ICP/XDR conversion rate.
|
|
299
|
+
*/
|
|
300
|
+
'get_icp_xdr_conversion_rate' : ActorMethod<[], IcpXdrConversionRateResponse>,
|
|
301
|
+
/**
|
|
302
|
+
* Returns the mapping from principals to subnets in which they are authorized
|
|
303
|
+
* to create canisters.
|
|
304
|
+
*/
|
|
305
|
+
'get_principals_authorized_to_create_canisters_to_subnets' : ActorMethod<
|
|
306
|
+
[],
|
|
307
|
+
PrincipalsAuthorizedToCreateCanistersToSubnetsResponse
|
|
308
|
+
>,
|
|
309
|
+
/**
|
|
310
|
+
* Returns the current mapping of subnet types to subnets.
|
|
311
|
+
*/
|
|
312
|
+
'get_subnet_types_to_subnets' : ActorMethod<[], SubnetTypesToSubnetsResponse>,
|
|
313
|
+
/**
|
|
314
|
+
* Prompts the cycles minting canister to process a payment for canister creation.
|
|
315
|
+
*/
|
|
316
|
+
'notify_create_canister' : ActorMethod<
|
|
317
|
+
[NotifyCreateCanisterArg],
|
|
318
|
+
NotifyCreateCanisterResult
|
|
319
|
+
>,
|
|
320
|
+
/**
|
|
321
|
+
* Mints cycles and deposits them to the cycles ledger
|
|
322
|
+
*/
|
|
323
|
+
'notify_mint_cycles' : ActorMethod<
|
|
324
|
+
[NotifyMintCyclesArg],
|
|
325
|
+
NotifyMintCyclesResult
|
|
326
|
+
>,
|
|
327
|
+
/**
|
|
328
|
+
* Prompts the cycles minting canister to process a payment by converting ICP
|
|
329
|
+
* into cycles and sending the cycles the specified canister.
|
|
330
|
+
*/
|
|
331
|
+
'notify_top_up' : ActorMethod<[NotifyTopUpArg], NotifyTopUpResult>,
|
|
332
|
+
/**
|
|
333
|
+
* Below are methods that can only be called by other NNS canisters.
|
|
334
|
+
*/
|
|
335
|
+
'set_authorized_subnetwork_list' : ActorMethod<
|
|
336
|
+
[SetAuthorizedSubnetworkListArgs],
|
|
337
|
+
undefined
|
|
338
|
+
>,
|
|
339
|
+
'update_subnet_type' : ActorMethod<[UpdateSubnetTypeArgs], undefined>,
|
|
340
|
+
}
|
|
341
|
+
export declare const idlService: IDL.ServiceClass;
|
|
342
|
+
export declare const idlInitArgs: IDL.Type[];
|
|
343
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
344
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const ExchangeRateCanister: IDL.VariantClass;
|
|
2
|
+
export const AccountIdentifier: IDL.TextClass;
|
|
3
|
+
export const CyclesCanisterInitPayload: IDL.RecordClass;
|
|
4
|
+
export const SubnetListWithType: IDL.RecordClass;
|
|
5
|
+
export const ChangeSubnetTypeAssignmentArgs: IDL.VariantClass;
|
|
6
|
+
export const SubnetFilter: IDL.RecordClass;
|
|
7
|
+
export const SubnetSelection: IDL.VariantClass;
|
|
8
|
+
export const environment_variable: IDL.RecordClass;
|
|
9
|
+
export const log_visibility: IDL.VariantClass;
|
|
10
|
+
export const CanisterSettings: IDL.RecordClass;
|
|
11
|
+
export const CreateCanisterArg: IDL.RecordClass;
|
|
12
|
+
export const CreateCanisterError: IDL.VariantClass;
|
|
13
|
+
export const CreateCanisterResult: IDL.VariantClass;
|
|
14
|
+
export const IcpXdrConversionRate: IDL.RecordClass;
|
|
15
|
+
export const IcpXdrConversionRateResponse: IDL.RecordClass;
|
|
16
|
+
export const PrincipalsAuthorizedToCreateCanistersToSubnetsResponse: IDL.RecordClass;
|
|
17
|
+
export const SubnetTypesToSubnetsResponse: IDL.RecordClass;
|
|
18
|
+
export const BlockIndex: IDL.FixedNatClass;
|
|
19
|
+
export const NotifyCreateCanisterArg: IDL.RecordClass;
|
|
20
|
+
export const NotifyError: IDL.VariantClass;
|
|
21
|
+
export const NotifyCreateCanisterResult: IDL.VariantClass;
|
|
22
|
+
export const Memo: IDL.OptClass<(number | bigint)[]>;
|
|
23
|
+
export const Subaccount: IDL.OptClass<(number | bigint)[]>;
|
|
24
|
+
export const NotifyMintCyclesArg: IDL.RecordClass;
|
|
25
|
+
export const NotifyMintCyclesSuccess: IDL.RecordClass;
|
|
26
|
+
export const NotifyMintCyclesResult: IDL.VariantClass;
|
|
27
|
+
export const NotifyTopUpArg: IDL.RecordClass;
|
|
28
|
+
export const Cycles: IDL.NatClass;
|
|
29
|
+
export const NotifyTopUpResult: IDL.VariantClass;
|
|
30
|
+
export const SetAuthorizedSubnetworkListArgs: IDL.RecordClass;
|
|
31
|
+
export const UpdateSubnetTypeArgs: IDL.VariantClass;
|
|
32
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
33
|
+
change_subnet_type_assignment: IDL.FuncClass<[IDL.VariantClass], []>;
|
|
34
|
+
create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
35
|
+
get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
36
|
+
get_default_subnets: IDL.FuncClass<[], [IDL.VecClass<import("@dfinity/principal").Principal>]>;
|
|
37
|
+
get_icp_xdr_conversion_rate: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
38
|
+
get_principals_authorized_to_create_canisters_to_subnets: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
39
|
+
get_subnet_types_to_subnets: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
40
|
+
notify_create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
41
|
+
notify_mint_cycles: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
42
|
+
notify_top_up: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
43
|
+
set_authorized_subnetwork_list: IDL.FuncClass<[IDL.RecordClass], []>;
|
|
44
|
+
update_subnet_type: IDL.FuncClass<[IDL.VariantClass], []>;
|
|
45
|
+
}>;
|
|
46
|
+
export const idlInitArgs: IDL.OptClass<Record<string, any>>[];
|
|
47
|
+
export function idlFactory({ IDL }: {
|
|
48
|
+
IDL: any;
|
|
49
|
+
}): any;
|
|
50
|
+
export function init({ IDL }: {
|
|
51
|
+
IDL: any;
|
|
52
|
+
}): any[];
|
|
53
|
+
import { IDL } from '@icp-sdk/core/candid';
|