@junobuild/functions 0.8.4 → 0.9.0-next-2026-04-20
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/ckbtc/index.js +1 -1
- package/canisters/cketh/index.js +1 -1
- package/canisters/cmc/cmc.canister.d.ts +6 -6
- package/canisters/cmc/index.d.ts +1 -0
- package/canisters/cmc/index.js +1 -1
- package/canisters/cmc/index.js.map +4 -4
- package/canisters/cmc/schema.d.ts +92 -0
- package/canisters/declarations/_idl.d.ts +2 -1
- package/canisters/declarations/_types.d.ts +2 -1
- package/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
- package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +2 -0
- package/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
- package/canisters/declarations/ckbtc/minter.did.idl.d.ts +9 -0
- package/canisters/declarations/cketh/minter.did.d.ts +140 -0
- package/canisters/declarations/cketh/minter.did.idl.d.ts +8 -0
- package/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
- package/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.d.ts +82 -0
- package/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
- package/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
- package/canisters/declarations/ledger-icp/index.did.idl.d.ts +5 -1
- package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
- package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
- package/canisters/declarations/nns/governance.did.d.ts +100 -0
- package/canisters/declarations/nns/governance.did.idl.d.ts +11 -0
- package/canisters/declarations/nns/governance_test.did.d.ts +100 -0
- package/canisters/declarations/nns/governance_test.did.idl.d.ts +11 -0
- package/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
- package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +1 -0
- package/canisters/declarations/sns/governance.did.d.ts +4 -0
- package/canisters/declarations/sns/governance.did.idl.d.ts +1 -0
- package/canisters/declarations/sns/governance_test.did.d.ts +4 -0
- package/canisters/declarations/sns/governance_test.did.idl.d.ts +1 -0
- package/canisters/ic-management/index.js +1 -1
- package/canisters/index.d.ts +1 -1
- package/canisters/index.js +1 -1
- package/canisters/ledger/cycles/index.d.ts +1 -0
- package/canisters/ledger/cycles/index.js +2 -0
- package/canisters/ledger/cycles/index.js.map +7 -0
- package/canisters/ledger/icp/index.d.ts +1 -0
- package/canisters/ledger/icp/index.js +1 -1
- package/canisters/ledger/icp/index.js.map +4 -4
- package/canisters/ledger/icp/ledger.canister.d.ts +6 -6
- package/canisters/ledger/icp/schema.d.ts +152 -0
- package/canisters/ledger/icrc/index.d.ts +1 -1
- package/canisters/ledger/icrc/index.js +1 -1
- package/canisters/ledger/icrc/index.js.map +4 -4
- package/canisters/ledger/icrc/ledger.canister.d.ts +22 -14
- package/canisters/ledger/icrc/schema.d.ts +507 -0
- package/canisters/nns/index.js +1 -1
- package/canisters/sns/index.js +1 -1
- package/chunk-I3WMKZTG.js +2 -0
- package/chunk-I3WMKZTG.js.map +7 -0
- package/{chunk-X3EF7OU6.js → chunk-JI3RCRR6.js} +1 -1
- package/{chunk-X3EF7OU6.js.map → chunk-JI3RCRR6.js.map} +1 -1
- package/package.json +10 -6
- package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
- package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +16 -0
- package/src/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
- package/src/canisters/declarations/ckbtc/minter.did.idl.js +118 -0
- package/src/canisters/declarations/cketh/minter.did.d.ts +140 -0
- package/src/canisters/declarations/cketh/minter.did.idl.js +78 -0
- package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
- package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.js +806 -0
- package/src/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
- package/src/canisters/declarations/ic-management/ic-management.did.idl.js +32 -8
- package/src/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
- package/src/canisters/declarations/ledger-icp/index.did.idl.js +32 -5
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +2 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +2 -0
- package/src/canisters/declarations/nns/governance.did.d.ts +100 -0
- package/src/canisters/declarations/nns/governance.did.idl.js +132 -0
- package/src/canisters/declarations/nns/governance_test.did.d.ts +100 -0
- package/src/canisters/declarations/nns/governance_test.did.idl.js +132 -0
- package/src/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
- package/src/canisters/declarations/nns/sns_wasm.did.idl.js +8 -0
- package/src/canisters/declarations/sns/governance.did.d.ts +4 -0
- package/src/canisters/declarations/sns/governance.did.idl.js +12 -0
- package/src/canisters/declarations/sns/governance_test.did.d.ts +4 -0
- package/src/canisters/declarations/sns/governance_test.did.idl.js +12 -0
- package/canisters/ledger/icrc/schemas.d.ts +0 -11
- package/chunk-I4MVAQHI.js +0 -2
- package/chunk-I4MVAQHI.js.map +0 -7
- /package/canisters/{schemas.d.ts → schema.d.ts} +0 -0
|
@@ -155,13 +155,25 @@ export type change_details = {
|
|
|
155
155
|
'snapshot_id' : snapshot_id,
|
|
156
156
|
}
|
|
157
157
|
} |
|
|
158
|
+
{
|
|
159
|
+
'rename_canister' : {
|
|
160
|
+
'rename_to' : {
|
|
161
|
+
'canister_id' : canister_id,
|
|
162
|
+
'version' : bigint,
|
|
163
|
+
'total_num_changes' : bigint,
|
|
164
|
+
},
|
|
165
|
+
'canister_id' : canister_id,
|
|
166
|
+
'requested_by' : Principal,
|
|
167
|
+
'total_num_changes' : bigint,
|
|
168
|
+
}
|
|
169
|
+
} |
|
|
158
170
|
{ 'controllers_change' : { 'controllers' : Array<Principal> } } |
|
|
159
171
|
{ 'code_uninstall' : null };
|
|
160
172
|
export type change_origin = { 'from_user' : { 'user_id' : Principal } } |
|
|
161
173
|
{
|
|
162
174
|
'from_canister' : {
|
|
163
175
|
'canister_version' : [] | [bigint],
|
|
164
|
-
'canister_id' :
|
|
176
|
+
'canister_id' : canister_id,
|
|
165
177
|
}
|
|
166
178
|
};
|
|
167
179
|
export interface chunk_hash { 'hash' : Uint8Array }
|
|
@@ -207,8 +219,10 @@ export interface http_header { 'value' : string, 'name' : string }
|
|
|
207
219
|
export interface http_request_args {
|
|
208
220
|
'url' : string,
|
|
209
221
|
'method' : { 'get' : null } |
|
|
222
|
+
{ 'put' : null } |
|
|
210
223
|
{ 'head' : null } |
|
|
211
|
-
{ 'post' : null }
|
|
224
|
+
{ 'post' : null } |
|
|
225
|
+
{ 'delete' : null },
|
|
212
226
|
'max_response_bytes' : [] | [bigint],
|
|
213
227
|
'body' : [] | [Uint8Array],
|
|
214
228
|
'transform' : [] | [
|
|
@@ -366,7 +380,7 @@ export interface uninstall_code_args {
|
|
|
366
380
|
'sender_canister_version' : [] | [bigint],
|
|
367
381
|
}
|
|
368
382
|
export interface update_settings_args {
|
|
369
|
-
'canister_id' :
|
|
383
|
+
'canister_id' : canister_id,
|
|
370
384
|
'settings' : canister_settings,
|
|
371
385
|
'sender_canister_version' : [] | [bigint],
|
|
372
386
|
}
|
|
@@ -405,7 +419,7 @@ export interface upload_canister_snapshot_metadata_response {
|
|
|
405
419
|
}
|
|
406
420
|
export interface upload_chunk_args {
|
|
407
421
|
'chunk' : Uint8Array,
|
|
408
|
-
'canister_id' :
|
|
422
|
+
'canister_id' : canister_id,
|
|
409
423
|
}
|
|
410
424
|
export type upload_chunk_result = chunk_hash;
|
|
411
425
|
export interface utxo {
|
|
@@ -70,7 +70,7 @@ export const change_origin = IDL.Variant({
|
|
|
70
70
|
from_user: IDL.Record({user_id: IDL.Principal}),
|
|
71
71
|
from_canister: IDL.Record({
|
|
72
72
|
canister_version: IDL.Opt(IDL.Nat64),
|
|
73
|
-
canister_id:
|
|
73
|
+
canister_id: canister_id
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
export const snapshot_id = IDL.Vec(IDL.Nat8);
|
|
@@ -97,6 +97,16 @@ export const change_details = IDL.Variant({
|
|
|
97
97
|
taken_at_timestamp: IDL.Nat64,
|
|
98
98
|
snapshot_id: snapshot_id
|
|
99
99
|
}),
|
|
100
|
+
rename_canister: IDL.Record({
|
|
101
|
+
rename_to: IDL.Record({
|
|
102
|
+
canister_id: canister_id,
|
|
103
|
+
version: IDL.Nat64,
|
|
104
|
+
total_num_changes: IDL.Nat64
|
|
105
|
+
}),
|
|
106
|
+
canister_id: canister_id,
|
|
107
|
+
requested_by: IDL.Principal,
|
|
108
|
+
total_num_changes: IDL.Nat64
|
|
109
|
+
}),
|
|
100
110
|
controllers_change: IDL.Record({controllers: IDL.Vec(IDL.Principal)}),
|
|
101
111
|
code_uninstall: IDL.Null
|
|
102
112
|
});
|
|
@@ -232,8 +242,10 @@ export const http_request_args = IDL.Record({
|
|
|
232
242
|
url: IDL.Text,
|
|
233
243
|
method: IDL.Variant({
|
|
234
244
|
get: IDL.Null,
|
|
245
|
+
put: IDL.Null,
|
|
235
246
|
head: IDL.Null,
|
|
236
|
-
post: IDL.Null
|
|
247
|
+
post: IDL.Null,
|
|
248
|
+
delete: IDL.Null
|
|
237
249
|
}),
|
|
238
250
|
max_response_bytes: IDL.Opt(IDL.Nat64),
|
|
239
251
|
body: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -427,7 +439,7 @@ export const uninstall_code_args = IDL.Record({
|
|
|
427
439
|
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
428
440
|
});
|
|
429
441
|
export const update_settings_args = IDL.Record({
|
|
430
|
-
canister_id:
|
|
442
|
+
canister_id: canister_id,
|
|
431
443
|
settings: canister_settings,
|
|
432
444
|
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
433
445
|
});
|
|
@@ -472,7 +484,7 @@ export const upload_canister_snapshot_metadata_response = IDL.Record({
|
|
|
472
484
|
});
|
|
473
485
|
export const upload_chunk_args = IDL.Record({
|
|
474
486
|
chunk: IDL.Vec(IDL.Nat8),
|
|
475
|
-
canister_id:
|
|
487
|
+
canister_id: canister_id
|
|
476
488
|
});
|
|
477
489
|
export const upload_chunk_result = chunk_hash;
|
|
478
490
|
export const vetkd_curve = IDL.Variant({bls12_381_g2: IDL.Null});
|
|
@@ -644,7 +656,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
644
656
|
from_user: IDL.Record({user_id: IDL.Principal}),
|
|
645
657
|
from_canister: IDL.Record({
|
|
646
658
|
canister_version: IDL.Opt(IDL.Nat64),
|
|
647
|
-
canister_id:
|
|
659
|
+
canister_id: canister_id
|
|
648
660
|
})
|
|
649
661
|
});
|
|
650
662
|
const snapshot_id = IDL.Vec(IDL.Nat8);
|
|
@@ -671,6 +683,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
671
683
|
taken_at_timestamp: IDL.Nat64,
|
|
672
684
|
snapshot_id: snapshot_id
|
|
673
685
|
}),
|
|
686
|
+
rename_canister: IDL.Record({
|
|
687
|
+
rename_to: IDL.Record({
|
|
688
|
+
canister_id: canister_id,
|
|
689
|
+
version: IDL.Nat64,
|
|
690
|
+
total_num_changes: IDL.Nat64
|
|
691
|
+
}),
|
|
692
|
+
canister_id: canister_id,
|
|
693
|
+
requested_by: IDL.Principal,
|
|
694
|
+
total_num_changes: IDL.Nat64
|
|
695
|
+
}),
|
|
674
696
|
controllers_change: IDL.Record({
|
|
675
697
|
controllers: IDL.Vec(IDL.Principal)
|
|
676
698
|
}),
|
|
@@ -797,8 +819,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
797
819
|
url: IDL.Text,
|
|
798
820
|
method: IDL.Variant({
|
|
799
821
|
get: IDL.Null,
|
|
822
|
+
put: IDL.Null,
|
|
800
823
|
head: IDL.Null,
|
|
801
|
-
post: IDL.Null
|
|
824
|
+
post: IDL.Null,
|
|
825
|
+
delete: IDL.Null
|
|
802
826
|
}),
|
|
803
827
|
max_response_bytes: IDL.Opt(IDL.Nat64),
|
|
804
828
|
body: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -1001,7 +1025,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
1001
1025
|
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1002
1026
|
});
|
|
1003
1027
|
const update_settings_args = IDL.Record({
|
|
1004
|
-
canister_id:
|
|
1028
|
+
canister_id: canister_id,
|
|
1005
1029
|
settings: canister_settings,
|
|
1006
1030
|
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1007
1031
|
});
|
|
@@ -1046,7 +1070,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
1046
1070
|
});
|
|
1047
1071
|
const upload_chunk_args = IDL.Record({
|
|
1048
1072
|
chunk: IDL.Vec(IDL.Nat8),
|
|
1049
|
-
canister_id:
|
|
1073
|
+
canister_id: canister_id
|
|
1050
1074
|
});
|
|
1051
1075
|
const upload_chunk_result = chunk_hash;
|
|
1052
1076
|
const vetkd_curve = IDL.Variant({bls12_381_g2: IDL.Null});
|
|
@@ -59,7 +59,17 @@ export interface HttpResponse {
|
|
|
59
59
|
'headers' : Array<[string, string]>,
|
|
60
60
|
'status_code' : number,
|
|
61
61
|
}
|
|
62
|
-
export
|
|
62
|
+
export type IndexArg = { 'Upgrade' : UpgradeArg } |
|
|
63
|
+
{ 'Init' : InitArg };
|
|
64
|
+
export interface InitArg {
|
|
65
|
+
'ledger_id' : Principal,
|
|
66
|
+
/**
|
|
67
|
+
* The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
|
|
68
|
+
* responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
|
|
69
|
+
* A higher values means that it takes longer for new blocks to show up in the index.
|
|
70
|
+
*/
|
|
71
|
+
'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
|
|
72
|
+
}
|
|
63
73
|
export type Operation = {
|
|
64
74
|
'Approve' : {
|
|
65
75
|
'fee' : Tokens,
|
|
@@ -97,6 +107,15 @@ export interface TransactionWithId {
|
|
|
97
107
|
'id' : bigint,
|
|
98
108
|
'transaction' : Transaction,
|
|
99
109
|
}
|
|
110
|
+
export interface UpgradeArg {
|
|
111
|
+
'ledger_id' : [] | [Principal],
|
|
112
|
+
/**
|
|
113
|
+
* The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
|
|
114
|
+
* responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
|
|
115
|
+
* A higher values means that it takes longer for new blocks to show up in the index.
|
|
116
|
+
*/
|
|
117
|
+
'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
|
|
118
|
+
}
|
|
100
119
|
export interface _SERVICE {
|
|
101
120
|
'get_account_identifier_balance' : ActorMethod<[string], bigint>,
|
|
102
121
|
'get_account_identifier_transactions' : ActorMethod<
|
|
@@ -8,7 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
import {IDL} from '@icp-sdk/core/candid';
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const UpgradeArg = IDL.Record({
|
|
12
|
+
ledger_id: IDL.Opt(IDL.Principal),
|
|
13
|
+
retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
|
|
14
|
+
});
|
|
15
|
+
export const InitArg = IDL.Record({
|
|
16
|
+
ledger_id: IDL.Principal,
|
|
17
|
+
retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
|
|
18
|
+
});
|
|
19
|
+
export const IndexArg = IDL.Variant({
|
|
20
|
+
Upgrade: UpgradeArg,
|
|
21
|
+
Init: InitArg
|
|
22
|
+
});
|
|
12
23
|
export const GetAccountIdentifierTransactionsArgs = IDL.Record({
|
|
13
24
|
max_results: IDL.Nat64,
|
|
14
25
|
start: IDL.Opt(IDL.Nat64),
|
|
@@ -111,10 +122,18 @@ export const idlService = IDL.Service({
|
|
|
111
122
|
status: IDL.Func([], [Status], ['query'])
|
|
112
123
|
});
|
|
113
124
|
|
|
114
|
-
export const idlInitArgs = [
|
|
125
|
+
export const idlInitArgs = [IDL.Opt(IndexArg)];
|
|
115
126
|
|
|
116
127
|
export const idlFactory = ({IDL}) => {
|
|
117
|
-
const
|
|
128
|
+
const UpgradeArg = IDL.Record({
|
|
129
|
+
ledger_id: IDL.Opt(IDL.Principal),
|
|
130
|
+
retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
|
|
131
|
+
});
|
|
132
|
+
const InitArg = IDL.Record({
|
|
133
|
+
ledger_id: IDL.Principal,
|
|
134
|
+
retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
|
|
135
|
+
});
|
|
136
|
+
const IndexArg = IDL.Variant({Upgrade: UpgradeArg, Init: InitArg});
|
|
118
137
|
const GetAccountIdentifierTransactionsArgs = IDL.Record({
|
|
119
138
|
max_results: IDL.Nat64,
|
|
120
139
|
start: IDL.Opt(IDL.Nat64),
|
|
@@ -219,7 +238,15 @@ export const idlFactory = ({IDL}) => {
|
|
|
219
238
|
};
|
|
220
239
|
|
|
221
240
|
export const init = ({IDL}) => {
|
|
222
|
-
const
|
|
241
|
+
const UpgradeArg = IDL.Record({
|
|
242
|
+
ledger_id: IDL.Opt(IDL.Principal),
|
|
243
|
+
retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
|
|
244
|
+
});
|
|
245
|
+
const InitArg = IDL.Record({
|
|
246
|
+
ledger_id: IDL.Principal,
|
|
247
|
+
retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
|
|
248
|
+
});
|
|
249
|
+
const IndexArg = IDL.Variant({Upgrade: UpgradeArg, Init: InitArg});
|
|
223
250
|
|
|
224
|
-
return [
|
|
251
|
+
return [IDL.Opt(IndexArg)];
|
|
225
252
|
};
|
|
@@ -60,6 +60,7 @@ export const Approve = IDL.Record({
|
|
|
60
60
|
});
|
|
61
61
|
export const FeeCollector = IDL.Record({
|
|
62
62
|
ts: IDL.Opt(IDL.Nat64),
|
|
63
|
+
mthd: IDL.Opt(IDL.Text),
|
|
63
64
|
fee_collector: IDL.Opt(Account),
|
|
64
65
|
caller: IDL.Opt(IDL.Principal)
|
|
65
66
|
});
|
|
@@ -191,6 +192,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
191
192
|
});
|
|
192
193
|
const FeeCollector = IDL.Record({
|
|
193
194
|
ts: IDL.Opt(IDL.Nat64),
|
|
195
|
+
mthd: IDL.Opt(IDL.Text),
|
|
194
196
|
fee_collector: IDL.Opt(Account),
|
|
195
197
|
caller: IDL.Opt(IDL.Principal)
|
|
196
198
|
});
|
|
@@ -150,6 +150,7 @@ export const Approve = IDL.Record({
|
|
|
150
150
|
});
|
|
151
151
|
export const FeeCollector = IDL.Record({
|
|
152
152
|
ts: IDL.Opt(IDL.Nat64),
|
|
153
|
+
mthd: IDL.Opt(IDL.Text),
|
|
153
154
|
fee_collector: IDL.Opt(Account),
|
|
154
155
|
caller: IDL.Opt(IDL.Principal)
|
|
155
156
|
});
|
|
@@ -575,6 +576,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
575
576
|
});
|
|
576
577
|
const FeeCollector = IDL.Record({
|
|
577
578
|
ts: IDL.Opt(IDL.Nat64),
|
|
579
|
+
mthd: IDL.Opt(IDL.Text),
|
|
578
580
|
fee_collector: IDL.Opt(Account),
|
|
579
581
|
caller: IDL.Opt(IDL.Principal)
|
|
580
582
|
});
|
|
@@ -18,9 +18,12 @@ export interface AccountIdentifier { 'hash' : Uint8Array }
|
|
|
18
18
|
export type Action = { 'RegisterKnownNeuron' : KnownNeuron } |
|
|
19
19
|
{ 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
|
|
20
20
|
{ 'ManageNeuron' : ManageNeuronProposal } |
|
|
21
|
+
{ 'LoadCanisterSnapshot' : LoadCanisterSnapshot } |
|
|
22
|
+
{ 'BlessAlternativeGuestOsVersion' : BlessAlternativeGuestOsVersion } |
|
|
21
23
|
{ 'UpdateCanisterSettings' : UpdateCanisterSettings } |
|
|
22
24
|
{ 'InstallCode' : InstallCode } |
|
|
23
25
|
{ 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
|
|
26
|
+
{ 'TakeCanisterSnapshot' : TakeCanisterSnapshot } |
|
|
24
27
|
{ 'StopOrStartCanister' : StopOrStartCanister } |
|
|
25
28
|
{ 'CreateServiceNervousSystem' : CreateServiceNervousSystem } |
|
|
26
29
|
{ 'ExecuteNnsFunction' : ExecuteNnsFunction } |
|
|
@@ -42,6 +45,29 @@ export interface BallotInfo {
|
|
|
42
45
|
'vote' : number,
|
|
43
46
|
'proposal_id' : [] | [ProposalId],
|
|
44
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Declares an approved set of alternative replica virtual machine software for
|
|
50
|
+
* disaster recovery purposes.
|
|
51
|
+
*/
|
|
52
|
+
export interface BlessAlternativeGuestOsVersion {
|
|
53
|
+
/**
|
|
54
|
+
* Hexadecimal fingerprint of the recovery rootfs.
|
|
55
|
+
* Must contain only hexadecimal characters (0-9, A-F, a-f).
|
|
56
|
+
*/
|
|
57
|
+
'rootfs_hash' : [] | [string],
|
|
58
|
+
/**
|
|
59
|
+
* AMD Secure Processor chip IDs that are allowed to run this software.
|
|
60
|
+
* Each chip ID must be exactly 64 bytes.
|
|
61
|
+
*/
|
|
62
|
+
'chip_ids' : [] | [Array<Uint8Array>],
|
|
63
|
+
/**
|
|
64
|
+
* The version being replaced by this (alternative version) must match this
|
|
65
|
+
* field (or one of the possibilities therein).
|
|
66
|
+
*
|
|
67
|
+
* (Here, we refer to the version being replaced as the "base" version.)
|
|
68
|
+
*/
|
|
69
|
+
'base_guest_launch_measurements' : [] | [GuestLaunchMeasurements],
|
|
70
|
+
}
|
|
45
71
|
export type By = { 'NeuronIdOrSubaccount' : {} } |
|
|
46
72
|
{ 'MemoAndController' : ClaimOrRefreshNeuronFromAccount } |
|
|
47
73
|
{ 'Memo' : bigint };
|
|
@@ -122,6 +148,42 @@ export interface Committed_1 {
|
|
|
122
148
|
export interface Configure { 'operation' : [] | [Operation] }
|
|
123
149
|
export interface Controllers { 'controllers' : Array<Principal> }
|
|
124
150
|
export interface Countries { 'iso_codes' : Array<string> }
|
|
151
|
+
/**
|
|
152
|
+
* Request to create a new neuron using ICRC-2 transfer_from.
|
|
153
|
+
* The caller must have previously approved the governance canister to spend the specified amount.
|
|
154
|
+
*/
|
|
155
|
+
export interface CreateNeuronRequest {
|
|
156
|
+
/**
|
|
157
|
+
* The controller of the new neuron. Defaults to the caller.
|
|
158
|
+
*/
|
|
159
|
+
'controller' : [] | [Principal],
|
|
160
|
+
/**
|
|
161
|
+
* The subaccount of the caller to transfer ICP from. Defaults to the default subaccount.
|
|
162
|
+
*/
|
|
163
|
+
'source_subaccount' : [] | [Uint8Array],
|
|
164
|
+
/**
|
|
165
|
+
* The dissolve delay in seconds. Defaults to 7 days. Clamped to [0, 8 years].
|
|
166
|
+
*/
|
|
167
|
+
'dissolve_delay_seconds' : [] | [bigint],
|
|
168
|
+
/**
|
|
169
|
+
* Whether to automatically stake maturity. Defaults to false.
|
|
170
|
+
*/
|
|
171
|
+
'auto_stake_maturity' : [] | [boolean],
|
|
172
|
+
/**
|
|
173
|
+
* Required. The amount of ICP to stake in e8s.
|
|
174
|
+
*/
|
|
175
|
+
'amount_e8s' : [] | [bigint],
|
|
176
|
+
/**
|
|
177
|
+
* The followees to set for the new neuron. Defaults to the network's default followees.
|
|
178
|
+
*/
|
|
179
|
+
'followees' : [] | [SetFollowing],
|
|
180
|
+
/**
|
|
181
|
+
* Whether the neuron should start dissolving immediately. Defaults to false.
|
|
182
|
+
*/
|
|
183
|
+
'dissolving' : [] | [boolean],
|
|
184
|
+
}
|
|
185
|
+
export type CreateNeuronResponse = { 'Ok' : CreatedNeuron } |
|
|
186
|
+
{ 'Err' : GovernanceError };
|
|
125
187
|
export interface CreateServiceNervousSystem {
|
|
126
188
|
'url' : [] | [string],
|
|
127
189
|
'governance_parameters' : [] | [GovernanceParameters],
|
|
@@ -134,6 +196,10 @@ export interface CreateServiceNervousSystem {
|
|
|
134
196
|
'swap_parameters' : [] | [SwapParameters],
|
|
135
197
|
'initial_token_distribution' : [] | [InitialTokenDistribution],
|
|
136
198
|
}
|
|
199
|
+
export interface CreatedNeuron { 'neuron_id' : [] | [NeuronId] }
|
|
200
|
+
export interface CustomProposalCriticality {
|
|
201
|
+
'additional_critical_native_action_ids' : [] | [BigUint64Array],
|
|
202
|
+
}
|
|
137
203
|
export interface DateRangeFilter {
|
|
138
204
|
'start_timestamp_seconds' : [] | [bigint],
|
|
139
205
|
'end_timestamp_seconds' : [] | [bigint],
|
|
@@ -319,9 +385,29 @@ export interface GovernanceParameters {
|
|
|
319
385
|
'neuron_minimum_stake' : [] | [Tokens],
|
|
320
386
|
'proposal_wait_for_quiet_deadline_increase' : [] | [Duration],
|
|
321
387
|
'proposal_initial_voting_period' : [] | [Duration],
|
|
388
|
+
'custom_proposal_criticality' : [] | [CustomProposalCriticality],
|
|
322
389
|
'proposal_rejection_fee' : [] | [Tokens],
|
|
323
390
|
'voting_reward_parameters' : [] | [VotingRewardParameters],
|
|
324
391
|
}
|
|
392
|
+
export interface GuestLaunchMeasurement {
|
|
393
|
+
/**
|
|
394
|
+
* Metadata associated with the measurement.
|
|
395
|
+
*/
|
|
396
|
+
'metadata' : [] | [GuestLaunchMeasurementMetadata],
|
|
397
|
+
/**
|
|
398
|
+
* SEV-SNP measurement (48 bytes).
|
|
399
|
+
*/
|
|
400
|
+
'measurement' : [] | [Uint8Array],
|
|
401
|
+
}
|
|
402
|
+
export interface GuestLaunchMeasurementMetadata {
|
|
403
|
+
/**
|
|
404
|
+
* Kernel command line used for this measurement.
|
|
405
|
+
*/
|
|
406
|
+
'kernel_cmdline' : [] | [string],
|
|
407
|
+
}
|
|
408
|
+
export interface GuestLaunchMeasurements {
|
|
409
|
+
'guest_launch_measurements' : [] | [Array<GuestLaunchMeasurement>],
|
|
410
|
+
}
|
|
325
411
|
export interface IdealMatchedParticipationFunction {
|
|
326
412
|
'serialized_representation' : [] | [string],
|
|
327
413
|
}
|
|
@@ -473,6 +559,10 @@ export interface ListProposalInfoRequest {
|
|
|
473
559
|
export interface ListProposalInfoResponse {
|
|
474
560
|
'proposal_info' : Array<ProposalInfo>,
|
|
475
561
|
}
|
|
562
|
+
export interface LoadCanisterSnapshot {
|
|
563
|
+
'canister_id' : [] | [Principal],
|
|
564
|
+
'snapshot_id' : [] | [Uint8Array],
|
|
565
|
+
}
|
|
476
566
|
export interface MakeProposalRequest {
|
|
477
567
|
'url' : string,
|
|
478
568
|
'title' : [] | [string],
|
|
@@ -892,9 +982,12 @@ export interface Proposal {
|
|
|
892
982
|
export type ProposalActionRequest = { 'RegisterKnownNeuron' : KnownNeuron } |
|
|
893
983
|
{ 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
|
|
894
984
|
{ 'ManageNeuron' : ManageNeuronRequest } |
|
|
985
|
+
{ 'LoadCanisterSnapshot' : LoadCanisterSnapshot } |
|
|
986
|
+
{ 'BlessAlternativeGuestOsVersion' : BlessAlternativeGuestOsVersion } |
|
|
895
987
|
{ 'UpdateCanisterSettings' : UpdateCanisterSettings } |
|
|
896
988
|
{ 'InstallCode' : InstallCodeRequest } |
|
|
897
989
|
{ 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
|
|
990
|
+
{ 'TakeCanisterSnapshot' : TakeCanisterSnapshot } |
|
|
898
991
|
{ 'StopOrStartCanister' : StopOrStartCanister } |
|
|
899
992
|
{ 'CreateServiceNervousSystem' : CreateServiceNervousSystem } |
|
|
900
993
|
{ 'ExecuteNnsFunction' : ExecuteNnsFunction } |
|
|
@@ -1021,6 +1114,8 @@ export type SelfDescribingValue = { 'Int' : bigint } |
|
|
|
1021
1114
|
{ 'Map' : Array<[string, SelfDescribingValue]> } |
|
|
1022
1115
|
{ 'Nat' : bigint } |
|
|
1023
1116
|
{ 'Blob' : Uint8Array } |
|
|
1117
|
+
{ 'Bool' : boolean } |
|
|
1118
|
+
{ 'Null' : null } |
|
|
1024
1119
|
{ 'Text' : string } |
|
|
1025
1120
|
{ 'Array' : Array<SelfDescribingValue> };
|
|
1026
1121
|
export interface SetDefaultFollowees {
|
|
@@ -1101,6 +1196,10 @@ export interface SwapParticipationLimits {
|
|
|
1101
1196
|
'min_direct_participation_icp_e8s' : [] | [bigint],
|
|
1102
1197
|
'max_direct_participation_icp_e8s' : [] | [bigint],
|
|
1103
1198
|
}
|
|
1199
|
+
export interface TakeCanisterSnapshot {
|
|
1200
|
+
'replace_snapshot' : [] | [Uint8Array],
|
|
1201
|
+
'canister_id' : [] | [Principal],
|
|
1202
|
+
}
|
|
1104
1203
|
export interface Tally {
|
|
1105
1204
|
'no' : bigint,
|
|
1106
1205
|
'yes' : bigint,
|
|
@@ -1206,6 +1305,7 @@ export interface _SERVICE {
|
|
|
1206
1305
|
[ClaimOrRefreshNeuronFromAccount],
|
|
1207
1306
|
ClaimOrRefreshNeuronFromAccountResponse
|
|
1208
1307
|
>,
|
|
1308
|
+
'create_neuron' : ActorMethod<[CreateNeuronRequest], CreateNeuronResponse>,
|
|
1209
1309
|
'get_build_metadata' : ActorMethod<[], string>,
|
|
1210
1310
|
'get_full_neuron' : ActorMethod<[bigint], Result_2>,
|
|
1211
1311
|
'get_full_neuron_by_id_or_subaccount' : ActorMethod<
|