@junobuild/functions 0.5.4 → 0.5.5-next-2026-01-16

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 (71) hide show
  1. package/canisters/ckbtc/index.js +1 -1
  2. package/canisters/cketh/index.js +1 -1
  3. package/canisters/cmc/index.js +1 -1
  4. package/canisters/declarations/_idl.d.ts +5 -5
  5. package/canisters/declarations/_types.d.ts +5 -5
  6. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  7. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +3 -2
  8. package/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  9. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +1 -0
  10. package/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  11. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  12. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.d.ts +26 -0
  13. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  14. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.d.ts +13 -0
  15. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  16. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +21 -4
  17. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  18. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +1 -0
  19. package/canisters/declarations/nns/governance.did.d.ts +54 -30
  20. package/canisters/declarations/nns/governance.did.idl.d.ts +6 -3
  21. package/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  22. package/canisters/declarations/nns/governance_test.did.idl.d.ts +6 -3
  23. package/{src/canisters/declarations/sns/sns_root.did.d.ts → canisters/declarations/sns/root.did.d.ts} +12 -0
  24. package/canisters/declarations/sns/{sns_root.did.idl.d.ts → root.did.idl.d.ts} +5 -1
  25. package/canisters/ic-management/index.js +1 -1
  26. package/canisters/ledger/icp/index.js +1 -1
  27. package/canisters/ledger/icrc/index.d.ts +1 -1
  28. package/canisters/ledger/icrc/index.js +1 -1
  29. package/canisters/nns/index.js +1 -1
  30. package/canisters/sns/index.js +1 -1
  31. package/chunk-CAQXR2VB.js +2 -0
  32. package/chunk-CAQXR2VB.js.map +7 -0
  33. package/package.json +5 -5
  34. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  35. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +44 -22
  36. package/src/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  37. package/src/canisters/declarations/ckbtc/minter.did.idl.js +14 -0
  38. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  39. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +6 -2
  40. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  41. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.js +116 -0
  42. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  43. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.js +34 -0
  44. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  45. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +150 -35
  46. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  47. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +12 -0
  48. package/src/canisters/declarations/nns/governance.did.d.ts +54 -30
  49. package/src/canisters/declarations/nns/governance.did.idl.js +87 -17
  50. package/src/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  51. package/src/canisters/declarations/nns/governance_test.did.idl.js +87 -17
  52. package/{canisters/declarations/sns/sns_root.did.d.ts → src/canisters/declarations/sns/root.did.d.ts} +12 -0
  53. package/src/canisters/declarations/sns/{sns_root.did.idl.js → root.did.idl.js} +38 -8
  54. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  55. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +0 -44
  56. package/chunk-HANEPD6T.js +0 -2
  57. package/chunk-HANEPD6T.js.map +0 -7
  58. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  59. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +0 -274
  60. /package/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  61. /package/canisters/declarations/sns/{sns_governance.did.idl.d.ts → governance.did.idl.d.ts} +0 -0
  62. /package/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  63. /package/canisters/declarations/sns/{sns_governance_test.did.idl.d.ts → governance_test.did.idl.d.ts} +0 -0
  64. /package/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  65. /package/canisters/declarations/sns/{sns_swap.did.idl.d.ts → swap.did.idl.d.ts} +0 -0
  66. /package/src/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  67. /package/src/canisters/declarations/sns/{sns_governance.did.idl.js → governance.did.idl.js} +0 -0
  68. /package/src/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  69. /package/src/canisters/declarations/sns/{sns_governance_test.did.idl.js → governance_test.did.idl.js} +0 -0
  70. /package/src/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  71. /package/src/canisters/declarations/sns/{sns_swap.did.idl.js → swap.did.idl.js} +0 -0
@@ -8,47 +8,68 @@
8
8
 
9
9
  import {IDL} from '@icp-sdk/core/candid';
10
10
 
11
- export const InitArgs = IDL.Record({ledger_id: IDL.Principal});
12
- export const TxId = IDL.Nat;
11
+ export const Value = IDL.Rec();
12
+ export const UpgradeArg = IDL.Record({
13
+ ledger_id: IDL.Opt(IDL.Principal),
14
+ retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
15
+ });
16
+ export const InitArg = IDL.Record({
17
+ ledger_id: IDL.Principal,
18
+ retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
19
+ });
20
+ export const IndexArg = IDL.Variant({
21
+ Upgrade: UpgradeArg,
22
+ Init: InitArg
23
+ });
24
+ export const BlockIndex = IDL.Nat;
25
+ export const SubAccount = IDL.Vec(IDL.Nat8);
13
26
  export const Account = IDL.Record({
14
27
  owner: IDL.Principal,
15
- subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
28
+ subaccount: IDL.Opt(SubAccount)
16
29
  });
17
30
  export const GetAccountTransactionsArgs = IDL.Record({
18
31
  max_results: IDL.Nat,
19
- start: IDL.Opt(TxId),
32
+ start: IDL.Opt(BlockIndex),
20
33
  account: Account
21
34
  });
35
+ export const Tokens = IDL.Nat;
22
36
  export const Burn = IDL.Record({
37
+ fee: IDL.Opt(IDL.Nat),
23
38
  from: Account,
24
39
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
25
40
  created_at_time: IDL.Opt(IDL.Nat64),
26
- amount: IDL.Nat,
41
+ amount: Tokens,
27
42
  spender: IDL.Opt(Account)
28
43
  });
29
44
  export const Mint = IDL.Record({
30
45
  to: Account,
46
+ fee: IDL.Opt(IDL.Nat),
31
47
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
32
48
  created_at_time: IDL.Opt(IDL.Nat64),
33
- amount: IDL.Nat
49
+ amount: Tokens
34
50
  });
35
51
  export const Approve = IDL.Record({
36
- fee: IDL.Opt(IDL.Nat),
52
+ fee: IDL.Opt(Tokens),
37
53
  from: Account,
38
54
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
39
55
  created_at_time: IDL.Opt(IDL.Nat64),
40
- amount: IDL.Nat,
41
- expected_allowance: IDL.Opt(IDL.Nat),
56
+ amount: Tokens,
57
+ expected_allowance: IDL.Opt(Tokens),
42
58
  expires_at: IDL.Opt(IDL.Nat64),
43
59
  spender: Account
44
60
  });
61
+ export const FeeCollector = IDL.Record({
62
+ ts: IDL.Opt(IDL.Nat64),
63
+ fee_collector: IDL.Opt(Account),
64
+ caller: IDL.Opt(IDL.Principal)
65
+ });
45
66
  export const Transfer = IDL.Record({
46
67
  to: Account,
47
- fee: IDL.Opt(IDL.Nat),
68
+ fee: IDL.Opt(Tokens),
48
69
  from: Account,
49
70
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
50
71
  created_at_time: IDL.Opt(IDL.Nat64),
51
- amount: IDL.Nat,
72
+ amount: Tokens,
52
73
  spender: IDL.Opt(Account)
53
74
  });
54
75
  export const Transaction = IDL.Record({
@@ -56,78 +77,130 @@ export const Transaction = IDL.Record({
56
77
  kind: IDL.Text,
57
78
  mint: IDL.Opt(Mint),
58
79
  approve: IDL.Opt(Approve),
80
+ fee_collector: IDL.Opt(FeeCollector),
59
81
  timestamp: IDL.Nat64,
60
82
  transfer: IDL.Opt(Transfer)
61
83
  });
62
84
  export const TransactionWithId = IDL.Record({
63
- id: TxId,
85
+ id: BlockIndex,
64
86
  transaction: Transaction
65
87
  });
66
88
  export const GetTransactions = IDL.Record({
89
+ balance: Tokens,
67
90
  transactions: IDL.Vec(TransactionWithId),
68
- oldest_tx_id: IDL.Opt(TxId)
91
+ oldest_tx_id: IDL.Opt(BlockIndex)
69
92
  });
70
93
  export const GetTransactionsErr = IDL.Record({message: IDL.Text});
71
94
  export const GetTransactionsResult = IDL.Variant({
72
95
  Ok: GetTransactions,
73
96
  Err: GetTransactionsErr
74
97
  });
75
- export const SubAccount = IDL.Vec(IDL.Nat8);
98
+ export const GetBlocksRequest = IDL.Record({
99
+ start: IDL.Nat,
100
+ length: IDL.Nat
101
+ });
102
+ export const Map = IDL.Vec(IDL.Tuple(IDL.Text, Value));
103
+ Value.fill(
104
+ IDL.Variant({
105
+ Int: IDL.Int,
106
+ Map: Map,
107
+ Nat: IDL.Nat,
108
+ Nat64: IDL.Nat64,
109
+ Blob: IDL.Vec(IDL.Nat8),
110
+ Text: IDL.Text,
111
+ Array: IDL.Vec(Value)
112
+ })
113
+ );
114
+ export const Block = Value;
115
+ export const GetBlocksResponse = IDL.Record({
116
+ blocks: IDL.Vec(Block),
117
+ chain_length: IDL.Nat64
118
+ });
119
+ export const FeeCollectorRanges = IDL.Record({
120
+ ranges: IDL.Vec(IDL.Tuple(Account, IDL.Vec(IDL.Tuple(BlockIndex, BlockIndex))))
121
+ });
76
122
  export const ListSubaccountsArgs = IDL.Record({
77
123
  owner: IDL.Principal,
78
124
  start: IDL.Opt(SubAccount)
79
125
  });
126
+ export const Status = IDL.Record({num_blocks_synced: BlockIndex});
80
127
 
81
128
  export const idlService = IDL.Service({
82
- get_account_transactions: IDL.Func([GetAccountTransactionsArgs], [GetTransactionsResult], []),
129
+ get_account_transactions: IDL.Func(
130
+ [GetAccountTransactionsArgs],
131
+ [GetTransactionsResult],
132
+ ['query']
133
+ ),
134
+ get_blocks: IDL.Func([GetBlocksRequest], [GetBlocksResponse], ['query']),
135
+ get_fee_collectors_ranges: IDL.Func([], [FeeCollectorRanges], ['query']),
136
+ icrc1_balance_of: IDL.Func([Account], [Tokens], ['query']),
83
137
  ledger_id: IDL.Func([], [IDL.Principal], ['query']),
84
- list_subaccounts: IDL.Func([ListSubaccountsArgs], [IDL.Vec(SubAccount)], ['query'])
138
+ list_subaccounts: IDL.Func([ListSubaccountsArgs], [IDL.Vec(SubAccount)], ['query']),
139
+ status: IDL.Func([], [Status], ['query'])
85
140
  });
86
141
 
87
- export const idlInitArgs = [InitArgs];
142
+ export const idlInitArgs = [IDL.Opt(IndexArg)];
88
143
 
89
144
  export const idlFactory = ({IDL}) => {
90
- const InitArgs = IDL.Record({ledger_id: IDL.Principal});
91
- const TxId = IDL.Nat;
145
+ const Value = IDL.Rec();
146
+ const UpgradeArg = IDL.Record({
147
+ ledger_id: IDL.Opt(IDL.Principal),
148
+ retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
149
+ });
150
+ const InitArg = IDL.Record({
151
+ ledger_id: IDL.Principal,
152
+ retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
153
+ });
154
+ const IndexArg = IDL.Variant({Upgrade: UpgradeArg, Init: InitArg});
155
+ const BlockIndex = IDL.Nat;
156
+ const SubAccount = IDL.Vec(IDL.Nat8);
92
157
  const Account = IDL.Record({
93
158
  owner: IDL.Principal,
94
- subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
159
+ subaccount: IDL.Opt(SubAccount)
95
160
  });
96
161
  const GetAccountTransactionsArgs = IDL.Record({
97
162
  max_results: IDL.Nat,
98
- start: IDL.Opt(TxId),
163
+ start: IDL.Opt(BlockIndex),
99
164
  account: Account
100
165
  });
166
+ const Tokens = IDL.Nat;
101
167
  const Burn = IDL.Record({
168
+ fee: IDL.Opt(IDL.Nat),
102
169
  from: Account,
103
170
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
104
171
  created_at_time: IDL.Opt(IDL.Nat64),
105
- amount: IDL.Nat,
172
+ amount: Tokens,
106
173
  spender: IDL.Opt(Account)
107
174
  });
108
175
  const Mint = IDL.Record({
109
176
  to: Account,
177
+ fee: IDL.Opt(IDL.Nat),
110
178
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
111
179
  created_at_time: IDL.Opt(IDL.Nat64),
112
- amount: IDL.Nat
180
+ amount: Tokens
113
181
  });
114
182
  const Approve = IDL.Record({
115
- fee: IDL.Opt(IDL.Nat),
183
+ fee: IDL.Opt(Tokens),
116
184
  from: Account,
117
185
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
118
186
  created_at_time: IDL.Opt(IDL.Nat64),
119
- amount: IDL.Nat,
120
- expected_allowance: IDL.Opt(IDL.Nat),
187
+ amount: Tokens,
188
+ expected_allowance: IDL.Opt(Tokens),
121
189
  expires_at: IDL.Opt(IDL.Nat64),
122
190
  spender: Account
123
191
  });
192
+ const FeeCollector = IDL.Record({
193
+ ts: IDL.Opt(IDL.Nat64),
194
+ fee_collector: IDL.Opt(Account),
195
+ caller: IDL.Opt(IDL.Principal)
196
+ });
124
197
  const Transfer = IDL.Record({
125
198
  to: Account,
126
- fee: IDL.Opt(IDL.Nat),
199
+ fee: IDL.Opt(Tokens),
127
200
  from: Account,
128
201
  memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
129
202
  created_at_time: IDL.Opt(IDL.Nat64),
130
- amount: IDL.Nat,
203
+ amount: Tokens,
131
204
  spender: IDL.Opt(Account)
132
205
  });
133
206
  const Transaction = IDL.Record({
@@ -135,37 +208,79 @@ export const idlFactory = ({IDL}) => {
135
208
  kind: IDL.Text,
136
209
  mint: IDL.Opt(Mint),
137
210
  approve: IDL.Opt(Approve),
211
+ fee_collector: IDL.Opt(FeeCollector),
138
212
  timestamp: IDL.Nat64,
139
213
  transfer: IDL.Opt(Transfer)
140
214
  });
141
215
  const TransactionWithId = IDL.Record({
142
- id: TxId,
216
+ id: BlockIndex,
143
217
  transaction: Transaction
144
218
  });
145
219
  const GetTransactions = IDL.Record({
220
+ balance: Tokens,
146
221
  transactions: IDL.Vec(TransactionWithId),
147
- oldest_tx_id: IDL.Opt(TxId)
222
+ oldest_tx_id: IDL.Opt(BlockIndex)
148
223
  });
149
224
  const GetTransactionsErr = IDL.Record({message: IDL.Text});
150
225
  const GetTransactionsResult = IDL.Variant({
151
226
  Ok: GetTransactions,
152
227
  Err: GetTransactionsErr
153
228
  });
154
- const SubAccount = IDL.Vec(IDL.Nat8);
229
+ const GetBlocksRequest = IDL.Record({
230
+ start: IDL.Nat,
231
+ length: IDL.Nat
232
+ });
233
+ const Map = IDL.Vec(IDL.Tuple(IDL.Text, Value));
234
+ Value.fill(
235
+ IDL.Variant({
236
+ Int: IDL.Int,
237
+ Map: Map,
238
+ Nat: IDL.Nat,
239
+ Nat64: IDL.Nat64,
240
+ Blob: IDL.Vec(IDL.Nat8),
241
+ Text: IDL.Text,
242
+ Array: IDL.Vec(Value)
243
+ })
244
+ );
245
+ const Block = Value;
246
+ const GetBlocksResponse = IDL.Record({
247
+ blocks: IDL.Vec(Block),
248
+ chain_length: IDL.Nat64
249
+ });
250
+ const FeeCollectorRanges = IDL.Record({
251
+ ranges: IDL.Vec(IDL.Tuple(Account, IDL.Vec(IDL.Tuple(BlockIndex, BlockIndex))))
252
+ });
155
253
  const ListSubaccountsArgs = IDL.Record({
156
254
  owner: IDL.Principal,
157
255
  start: IDL.Opt(SubAccount)
158
256
  });
257
+ const Status = IDL.Record({num_blocks_synced: BlockIndex});
159
258
 
160
259
  return IDL.Service({
161
- get_account_transactions: IDL.Func([GetAccountTransactionsArgs], [GetTransactionsResult], []),
260
+ get_account_transactions: IDL.Func(
261
+ [GetAccountTransactionsArgs],
262
+ [GetTransactionsResult],
263
+ ['query']
264
+ ),
265
+ get_blocks: IDL.Func([GetBlocksRequest], [GetBlocksResponse], ['query']),
266
+ get_fee_collectors_ranges: IDL.Func([], [FeeCollectorRanges], ['query']),
267
+ icrc1_balance_of: IDL.Func([Account], [Tokens], ['query']),
162
268
  ledger_id: IDL.Func([], [IDL.Principal], ['query']),
163
- list_subaccounts: IDL.Func([ListSubaccountsArgs], [IDL.Vec(SubAccount)], ['query'])
269
+ list_subaccounts: IDL.Func([ListSubaccountsArgs], [IDL.Vec(SubAccount)], ['query']),
270
+ status: IDL.Func([], [Status], ['query'])
164
271
  });
165
272
  };
166
273
 
167
274
  export const init = ({IDL}) => {
168
- const InitArgs = IDL.Record({ledger_id: IDL.Principal});
275
+ const UpgradeArg = IDL.Record({
276
+ ledger_id: IDL.Opt(IDL.Principal),
277
+ retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
278
+ });
279
+ const InitArg = IDL.Record({
280
+ ledger_id: IDL.Principal,
281
+ retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
282
+ });
283
+ const IndexArg = IDL.Variant({Upgrade: UpgradeArg, Init: InitArg});
169
284
 
170
- return [InitArgs];
285
+ return [IDL.Opt(IndexArg)];
171
286
  };
@@ -120,6 +120,11 @@ export interface DataCertificate {
120
120
  */
121
121
  export type Duration = bigint;
122
122
  export interface FeatureFlags { 'icrc2' : boolean }
123
+ export interface FeeCollector {
124
+ 'ts' : [] | [bigint],
125
+ 'fee_collector' : [] | [Account],
126
+ 'caller' : [] | [Principal],
127
+ }
123
128
  export interface FieldsDisplay {
124
129
  'fields' : Array<[string, Icrc21Value]>,
125
130
  'intent' : string,
@@ -396,6 +401,7 @@ export interface Transaction {
396
401
  'kind' : string,
397
402
  'mint' : [] | [Mint],
398
403
  'approve' : [] | [Approve],
404
+ 'fee_collector' : [] | [FeeCollector],
399
405
  'timestamp' : Timestamp,
400
406
  'transfer' : [] | [Transfer],
401
407
  }
@@ -148,6 +148,11 @@ export const Approve = IDL.Record({
148
148
  expires_at: IDL.Opt(Timestamp),
149
149
  spender: Account
150
150
  });
151
+ export const FeeCollector = IDL.Record({
152
+ ts: IDL.Opt(IDL.Nat64),
153
+ fee_collector: IDL.Opt(Account),
154
+ caller: IDL.Opt(IDL.Principal)
155
+ });
151
156
  export const Transfer = IDL.Record({
152
157
  to: Account,
153
158
  fee: IDL.Opt(IDL.Nat),
@@ -162,6 +167,7 @@ export const Transaction = IDL.Record({
162
167
  kind: IDL.Text,
163
168
  mint: IDL.Opt(Mint),
164
169
  approve: IDL.Opt(Approve),
170
+ fee_collector: IDL.Opt(FeeCollector),
165
171
  timestamp: Timestamp,
166
172
  transfer: IDL.Opt(Transfer)
167
173
  });
@@ -567,6 +573,11 @@ export const idlFactory = ({IDL}) => {
567
573
  expires_at: IDL.Opt(Timestamp),
568
574
  spender: Account
569
575
  });
576
+ const FeeCollector = IDL.Record({
577
+ ts: IDL.Opt(IDL.Nat64),
578
+ fee_collector: IDL.Opt(Account),
579
+ caller: IDL.Opt(IDL.Principal)
580
+ });
570
581
  const Transfer = IDL.Record({
571
582
  to: Account,
572
583
  fee: IDL.Opt(IDL.Nat),
@@ -581,6 +592,7 @@ export const idlFactory = ({IDL}) => {
581
592
  kind: IDL.Text,
582
593
  mint: IDL.Opt(Mint),
583
594
  approve: IDL.Opt(Approve),
595
+ fee_collector: IDL.Opt(FeeCollector),
584
596
  timestamp: Timestamp,
585
597
  transfer: IDL.Opt(Transfer)
586
598
  });
@@ -17,7 +17,7 @@ export interface Account {
17
17
  export interface AccountIdentifier { 'hash' : Uint8Array }
18
18
  export type Action = { 'RegisterKnownNeuron' : KnownNeuron } |
19
19
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
20
- { 'ManageNeuron' : ManageNeuron } |
20
+ { 'ManageNeuron' : ManageNeuronProposal } |
21
21
  { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
22
22
  { 'InstallCode' : InstallCode } |
23
23
  { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
@@ -84,24 +84,6 @@ export interface ClaimOrRefreshNeuronFromAccountResponse {
84
84
  export interface ClaimOrRefreshResponse {
85
85
  'refreshed_neuron_id' : [] | [NeuronId],
86
86
  }
87
- /**
88
- * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
89
- */
90
- export type Command = { 'Spawn' : Spawn } |
91
- { 'Split' : Split } |
92
- { 'Follow' : Follow } |
93
- { 'DisburseMaturity' : DisburseMaturity } |
94
- { 'RefreshVotingPower' : RefreshVotingPower } |
95
- { 'ClaimOrRefresh' : ClaimOrRefresh } |
96
- { 'Configure' : Configure } |
97
- { 'RegisterVote' : RegisterVote } |
98
- { 'Merge' : Merge } |
99
- { 'DisburseToNeuron' : DisburseToNeuron } |
100
- { 'SetFollowing' : SetFollowing } |
101
- { 'MakeProposal' : Proposal } |
102
- { 'StakeMaturity' : StakeMaturity } |
103
- { 'MergeMaturity' : MergeMaturity } |
104
- { 'Disburse' : Disburse };
105
87
  export type Command_1 = { 'Error' : GovernanceError } |
106
88
  { 'Spawn' : SpawnResponse } |
107
89
  { 'Split' : SpawnResponse } |
@@ -245,6 +227,9 @@ export interface GetNeuronsFundAuditInfoRequest {
245
227
  'nns_proposal_id' : [] | [ProposalId],
246
228
  }
247
229
  export interface GetNeuronsFundAuditInfoResponse { 'result' : [] | [Result_6] }
230
+ export interface GetPendingProposalsRequest {
231
+ 'return_self_describing_action' : [] | [boolean],
232
+ }
248
233
  export interface GlobalTimeOfDay {
249
234
  'seconds_after_utc_midnight' : [] | [bigint],
250
235
  }
@@ -370,12 +355,16 @@ export interface KnownNeuron {
370
355
  export interface KnownNeuronData {
371
356
  'name' : string,
372
357
  /**
373
- * The first `opt` makes it so that the field can be renamed/deprecated in the future, and
374
- * the second `opt` makes it so that an older client not recognizing a new variant can still
375
- * get the rest of the `vec`.
358
+ * Topics that the known neuron is committed to always vote on.
359
+ * Note regarding the type: the first `opt` makes it so that the field can be renamed/deprecated
360
+ * in the future, and the second `opt` makes it so that an older client not recognizing a new
361
+ * variant can still get the rest of the `vec`.
376
362
  */
377
363
  'committed_topics' : [] | [Array<[] | [TopicToFollow]>],
378
364
  'description' : [] | [string],
365
+ /**
366
+ * Links related to the known neuron. Can be links to social URLs (OpenChat, X, etc.), or a homepage.
367
+ */
379
368
  'links' : [] | [Array<string>],
380
369
  }
381
370
  export interface LedgerParameters {
@@ -472,6 +461,7 @@ export interface ListNodeProvidersResponse {
472
461
  'node_providers' : Array<NodeProvider>,
473
462
  }
474
463
  export interface ListProposalInfoRequest {
464
+ 'return_self_describing_action' : [] | [boolean],
475
465
  'include_reward_status' : Int32Array,
476
466
  'omit_large_fields' : [] | [boolean],
477
467
  'before_proposal' : [] | [ProposalId],
@@ -494,18 +484,36 @@ export interface MakeProposalResponse {
494
484
  'proposal_id' : [] | [ProposalId],
495
485
  }
496
486
  /**
497
- * Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
498
- * similar to that, but not actually exactly equivalent.)
487
+ * KEEP THIS IN SYNC WITH COMMAND!
488
+ */
489
+ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
490
+ { 'Split' : Split } |
491
+ { 'Follow' : Follow } |
492
+ { 'DisburseMaturity' : DisburseMaturity } |
493
+ { 'RefreshVotingPower' : RefreshVotingPower } |
494
+ { 'ClaimOrRefresh' : ClaimOrRefresh } |
495
+ { 'Configure' : Configure } |
496
+ { 'RegisterVote' : RegisterVote } |
497
+ { 'Merge' : Merge } |
498
+ { 'DisburseToNeuron' : DisburseToNeuron } |
499
+ { 'SetFollowing' : SetFollowing } |
500
+ { 'MakeProposal' : MakeProposalRequest } |
501
+ { 'StakeMaturity' : StakeMaturity } |
502
+ { 'MergeMaturity' : MergeMaturity } |
503
+ { 'Disburse' : Disburse };
504
+ /**
505
+ * Not to be confused with ManageNeuronRequest. This is only used to represent a manage neuron proposal.
506
+ * (Yes, this is very structurally similar to that, but not actually exactly equivalent)
499
507
  */
500
- export interface ManageNeuron {
508
+ export interface ManageNeuronProposal {
501
509
  'id' : [] | [NeuronId],
502
- 'command' : [] | [Command],
510
+ 'command' : [] | [ManageNeuronProposalCommand],
503
511
  'neuron_id_or_subaccount' : [] | [NeuronIdOrSubaccount],
504
512
  }
505
513
  /**
506
- * KEEP THIS IN SYNC WITH COMMAND!
514
+ * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
507
515
  */
508
- export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
516
+ export type ManageNeuronProposalCommand = { 'Spawn' : Spawn } |
509
517
  { 'Split' : Split } |
510
518
  { 'Follow' : Follow } |
511
519
  { 'DisburseMaturity' : DisburseMaturity } |
@@ -516,7 +524,7 @@ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
516
524
  { 'Merge' : Merge } |
517
525
  { 'DisburseToNeuron' : DisburseToNeuron } |
518
526
  { 'SetFollowing' : SetFollowing } |
519
- { 'MakeProposal' : MakeProposalRequest } |
527
+ { 'MakeProposal' : Proposal } |
520
528
  { 'StakeMaturity' : StakeMaturity } |
521
529
  { 'MergeMaturity' : MergeMaturity } |
522
530
  { 'Disburse' : Disburse };
@@ -567,6 +575,7 @@ export interface MergeResponse {
567
575
  'source_neuron_info' : [] | [NeuronInfo],
568
576
  }
569
577
  export interface MonthlyNodeProviderRewards {
578
+ 'algorithm_version' : [] | [number],
570
579
  'minimum_xdr_permyriad_per_icp' : [] | [bigint],
571
580
  'end_date' : [] | [DateUtc],
572
581
  'registry_version' : [] | [bigint],
@@ -878,6 +887,7 @@ export interface Proposal {
878
887
  'title' : [] | [string],
879
888
  'action' : [] | [Action],
880
889
  'summary' : string,
890
+ 'self_describing_action' : [] | [SelfDescribingProposalAction],
881
891
  }
882
892
  export type ProposalActionRequest = { 'RegisterKnownNeuron' : KnownNeuron } |
883
893
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
@@ -1002,6 +1012,17 @@ export interface RewardNodeProviders {
1002
1012
  }
1003
1013
  export interface RewardToAccount { 'to_account' : [] | [AccountIdentifier] }
1004
1014
  export interface RewardToNeuron { 'dissolve_delay_seconds' : bigint }
1015
+ export interface SelfDescribingProposalAction {
1016
+ 'type_description' : [] | [string],
1017
+ 'type_name' : [] | [string],
1018
+ 'value' : [] | [SelfDescribingValue],
1019
+ }
1020
+ export type SelfDescribingValue = { 'Int' : bigint } |
1021
+ { 'Map' : Array<[string, SelfDescribingValue]> } |
1022
+ { 'Nat' : bigint } |
1023
+ { 'Blob' : Uint8Array } |
1024
+ { 'Text' : string } |
1025
+ { 'Array' : Array<SelfDescribingValue> };
1005
1026
  export interface SetDefaultFollowees {
1006
1027
  'default_followees' : Array<[number, Followees]>,
1007
1028
  }
@@ -1214,7 +1235,10 @@ export interface _SERVICE {
1214
1235
  GetNeuronsFundAuditInfoResponse
1215
1236
  >,
1216
1237
  'get_node_provider_by_caller' : ActorMethod<[null], Result_7>,
1217
- 'get_pending_proposals' : ActorMethod<[], Array<ProposalInfo>>,
1238
+ 'get_pending_proposals' : ActorMethod<
1239
+ [[] | [GetPendingProposalsRequest]],
1240
+ Array<ProposalInfo>
1241
+ >,
1218
1242
  'get_proposal_info' : ActorMethod<[bigint], [] | [ProposalInfo]>,
1219
1243
  'get_restore_aging_summary' : ActorMethod<[], RestoreAgingSummary>,
1220
1244
  'list_known_neurons' : ActorMethod<[], ListKnownNeuronsResponse>,