@junobuild/functions 0.5.3 → 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 (79) 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/cmc/cmc.did.idl.d.ts +1 -1
  11. package/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  12. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  13. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.d.ts +26 -0
  14. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  15. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.d.ts +13 -0
  16. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  17. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +21 -4
  18. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  19. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +1 -0
  20. package/canisters/declarations/nns/governance.did.d.ts +54 -30
  21. package/canisters/declarations/nns/governance.did.idl.d.ts +6 -3
  22. package/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  23. package/canisters/declarations/nns/governance_test.did.idl.d.ts +6 -3
  24. package/{src/canisters/declarations/sns/sns_root.did.d.ts → canisters/declarations/sns/root.did.d.ts} +12 -0
  25. package/canisters/declarations/sns/{sns_root.did.idl.d.ts → root.did.idl.d.ts} +5 -1
  26. package/canisters/ic-management/index.js +1 -1
  27. package/canisters/ledger/icp/index.js +1 -1
  28. package/canisters/ledger/icrc/index.d.ts +1 -1
  29. package/canisters/ledger/icrc/index.js +1 -1
  30. package/canisters/ledger/icrc/schemas.d.ts +1 -1
  31. package/canisters/nns/index.js +1 -1
  32. package/canisters/schemas.d.ts +1 -1
  33. package/canisters/sns/index.js +1 -1
  34. package/chunk-CAQXR2VB.js +2 -0
  35. package/chunk-CAQXR2VB.js.map +7 -0
  36. package/package.json +5 -5
  37. package/schemas/satellite.d.ts +1 -1
  38. package/sdk/schemas/controllers.d.ts +1 -1
  39. package/sdk/schemas/db.d.ts +6 -6
  40. package/sdk/schemas/params.d.ts +1 -1
  41. package/sdk/schemas/storage.d.ts +6 -6
  42. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  43. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +44 -22
  44. package/src/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  45. package/src/canisters/declarations/ckbtc/minter.did.idl.js +14 -0
  46. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  47. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +6 -2
  48. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  49. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.js +116 -0
  50. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  51. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.js +34 -0
  52. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  53. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +150 -35
  54. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  55. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +12 -0
  56. package/src/canisters/declarations/nns/governance.did.d.ts +54 -30
  57. package/src/canisters/declarations/nns/governance.did.idl.js +87 -17
  58. package/src/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  59. package/src/canisters/declarations/nns/governance_test.did.idl.js +87 -17
  60. package/{canisters/declarations/sns/sns_root.did.d.ts → src/canisters/declarations/sns/root.did.d.ts} +12 -0
  61. package/src/canisters/declarations/sns/{sns_root.did.idl.js → root.did.idl.js} +38 -8
  62. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  63. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +0 -44
  64. package/chunk-HANEPD6T.js +0 -2
  65. package/chunk-HANEPD6T.js.map +0 -7
  66. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  67. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +0 -274
  68. /package/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  69. /package/canisters/declarations/sns/{sns_governance.did.idl.d.ts → governance.did.idl.d.ts} +0 -0
  70. /package/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  71. /package/canisters/declarations/sns/{sns_governance_test.did.idl.d.ts → governance_test.did.idl.d.ts} +0 -0
  72. /package/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  73. /package/canisters/declarations/sns/{sns_swap.did.idl.d.ts → swap.did.idl.d.ts} +0 -0
  74. /package/src/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  75. /package/src/canisters/declarations/sns/{sns_governance.did.idl.js → governance.did.idl.js} +0 -0
  76. /package/src/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  77. /package/src/canisters/declarations/sns/{sns_governance_test.did.idl.js → governance_test.did.idl.js} +0 -0
  78. /package/src/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  79. /package/src/canisters/declarations/sns/{sns_swap.did.idl.js → swap.did.idl.js} +0 -0
@@ -1,148 +0,0 @@
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 Account {
14
- 'owner' : Principal,
15
- 'subaccount' : [] | [SubAccount],
16
- }
17
- export interface Approve {
18
- 'fee' : [] | [Tokens],
19
- 'from' : Account,
20
- 'memo' : [] | [Uint8Array],
21
- 'created_at_time' : [] | [bigint],
22
- 'amount' : Tokens,
23
- 'expected_allowance' : [] | [Tokens],
24
- 'expires_at' : [] | [bigint],
25
- 'spender' : Account,
26
- }
27
- export type Block = Value;
28
- export type BlockIndex = bigint;
29
- export interface Burn {
30
- 'fee' : [] | [bigint],
31
- 'from' : Account,
32
- 'memo' : [] | [Uint8Array],
33
- 'created_at_time' : [] | [bigint],
34
- 'amount' : Tokens,
35
- 'spender' : [] | [Account],
36
- }
37
- export interface FeeCollectorRanges {
38
- 'ranges' : Array<[Account, Array<[BlockIndex, BlockIndex]>]>,
39
- }
40
- export interface GetAccountTransactionsArgs {
41
- /**
42
- * Maximum number of transactions to fetch.
43
- */
44
- 'max_results' : bigint,
45
- /**
46
- * The txid of the last transaction seen by the client.
47
- * If None then the results will start from the most recent
48
- * txid. If set then the results will start from the next
49
- * most recent txid after start (start won't be included).
50
- */
51
- 'start' : [] | [BlockIndex],
52
- 'account' : Account,
53
- }
54
- export interface GetBlocksRequest { 'start' : bigint, 'length' : bigint }
55
- export interface GetBlocksResponse {
56
- 'blocks' : Array<Block>,
57
- 'chain_length' : bigint,
58
- }
59
- export interface GetTransactions {
60
- 'balance' : Tokens,
61
- 'transactions' : Array<TransactionWithId>,
62
- /**
63
- * The txid of the oldest transaction the account has
64
- */
65
- 'oldest_tx_id' : [] | [BlockIndex],
66
- }
67
- export interface GetTransactionsErr { 'message' : string }
68
- export type GetTransactionsResult = { 'Ok' : GetTransactions } |
69
- { 'Err' : GetTransactionsErr };
70
- export type IndexArg = { 'Upgrade' : UpgradeArg } |
71
- { 'Init' : InitArg };
72
- export interface InitArg {
73
- 'ledger_id' : Principal,
74
- /**
75
- * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
76
- * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
77
- * A higher values means that it takes longer for new blocks to show up in the index.
78
- */
79
- 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
80
- }
81
- export interface ListSubaccountsArgs {
82
- 'owner' : Principal,
83
- 'start' : [] | [SubAccount],
84
- }
85
- export type Map = Array<[string, Value]>;
86
- export interface Mint {
87
- 'to' : Account,
88
- 'fee' : [] | [bigint],
89
- 'memo' : [] | [Uint8Array],
90
- 'created_at_time' : [] | [bigint],
91
- 'amount' : Tokens,
92
- }
93
- export interface Status { 'num_blocks_synced' : BlockIndex }
94
- export type SubAccount = Uint8Array;
95
- export type Tokens = bigint;
96
- export interface Transaction {
97
- 'burn' : [] | [Burn],
98
- 'kind' : string,
99
- 'mint' : [] | [Mint],
100
- 'approve' : [] | [Approve],
101
- 'timestamp' : bigint,
102
- 'transfer' : [] | [Transfer],
103
- }
104
- export interface TransactionWithId {
105
- 'id' : BlockIndex,
106
- 'transaction' : Transaction,
107
- }
108
- export interface Transfer {
109
- 'to' : Account,
110
- 'fee' : [] | [Tokens],
111
- 'from' : Account,
112
- 'memo' : [] | [Uint8Array],
113
- 'created_at_time' : [] | [bigint],
114
- 'amount' : Tokens,
115
- 'spender' : [] | [Account],
116
- }
117
- export interface UpgradeArg {
118
- 'ledger_id' : [] | [Principal],
119
- /**
120
- * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
121
- * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
122
- * A higher values means that it takes longer for new blocks to show up in the index.
123
- */
124
- 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
125
- }
126
- export type Value = { 'Int' : bigint } |
127
- { 'Map' : Map } |
128
- { 'Nat' : bigint } |
129
- { 'Nat64' : bigint } |
130
- { 'Blob' : Uint8Array } |
131
- { 'Text' : string } |
132
- { 'Array' : Array<Value> };
133
- export interface _SERVICE {
134
- 'get_account_transactions' : ActorMethod<
135
- [GetAccountTransactionsArgs],
136
- GetTransactionsResult
137
- >,
138
- 'get_blocks' : ActorMethod<[GetBlocksRequest], GetBlocksResponse>,
139
- 'get_fee_collectors_ranges' : ActorMethod<[], FeeCollectorRanges>,
140
- 'icrc1_balance_of' : ActorMethod<[Account], Tokens>,
141
- 'ledger_id' : ActorMethod<[], Principal>,
142
- 'list_subaccounts' : ActorMethod<[ListSubaccountsArgs], Array<SubAccount>>,
143
- 'status' : ActorMethod<[], Status>,
144
- }
145
- export declare const idlService: IDL.ServiceClass;
146
- export declare const idlInitArgs: IDL.Type[];
147
- export declare const idlFactory: IDL.InterfaceFactory;
148
- export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,274 +0,0 @@
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 {IDL} from '@icp-sdk/core/candid';
10
-
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);
26
- export const Account = IDL.Record({
27
- owner: IDL.Principal,
28
- subaccount: IDL.Opt(SubAccount)
29
- });
30
- export const GetAccountTransactionsArgs = IDL.Record({
31
- max_results: IDL.Nat,
32
- start: IDL.Opt(BlockIndex),
33
- account: Account
34
- });
35
- export const Tokens = IDL.Nat;
36
- export const Burn = IDL.Record({
37
- fee: IDL.Opt(IDL.Nat),
38
- from: Account,
39
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
40
- created_at_time: IDL.Opt(IDL.Nat64),
41
- amount: Tokens,
42
- spender: IDL.Opt(Account)
43
- });
44
- export const Mint = IDL.Record({
45
- to: Account,
46
- fee: IDL.Opt(IDL.Nat),
47
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
48
- created_at_time: IDL.Opt(IDL.Nat64),
49
- amount: Tokens
50
- });
51
- export const Approve = IDL.Record({
52
- fee: IDL.Opt(Tokens),
53
- from: Account,
54
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
55
- created_at_time: IDL.Opt(IDL.Nat64),
56
- amount: Tokens,
57
- expected_allowance: IDL.Opt(Tokens),
58
- expires_at: IDL.Opt(IDL.Nat64),
59
- spender: Account
60
- });
61
- export const Transfer = IDL.Record({
62
- to: Account,
63
- fee: IDL.Opt(Tokens),
64
- from: Account,
65
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
66
- created_at_time: IDL.Opt(IDL.Nat64),
67
- amount: Tokens,
68
- spender: IDL.Opt(Account)
69
- });
70
- export const Transaction = IDL.Record({
71
- burn: IDL.Opt(Burn),
72
- kind: IDL.Text,
73
- mint: IDL.Opt(Mint),
74
- approve: IDL.Opt(Approve),
75
- timestamp: IDL.Nat64,
76
- transfer: IDL.Opt(Transfer)
77
- });
78
- export const TransactionWithId = IDL.Record({
79
- id: BlockIndex,
80
- transaction: Transaction
81
- });
82
- export const GetTransactions = IDL.Record({
83
- balance: Tokens,
84
- transactions: IDL.Vec(TransactionWithId),
85
- oldest_tx_id: IDL.Opt(BlockIndex)
86
- });
87
- export const GetTransactionsErr = IDL.Record({message: IDL.Text});
88
- export const GetTransactionsResult = IDL.Variant({
89
- Ok: GetTransactions,
90
- Err: GetTransactionsErr
91
- });
92
- export const GetBlocksRequest = IDL.Record({
93
- start: IDL.Nat,
94
- length: IDL.Nat
95
- });
96
- export const Map = IDL.Vec(IDL.Tuple(IDL.Text, Value));
97
- Value.fill(
98
- IDL.Variant({
99
- Int: IDL.Int,
100
- Map: Map,
101
- Nat: IDL.Nat,
102
- Nat64: IDL.Nat64,
103
- Blob: IDL.Vec(IDL.Nat8),
104
- Text: IDL.Text,
105
- Array: IDL.Vec(Value)
106
- })
107
- );
108
- export const Block = Value;
109
- export const GetBlocksResponse = IDL.Record({
110
- blocks: IDL.Vec(Block),
111
- chain_length: IDL.Nat64
112
- });
113
- export const FeeCollectorRanges = IDL.Record({
114
- ranges: IDL.Vec(IDL.Tuple(Account, IDL.Vec(IDL.Tuple(BlockIndex, BlockIndex))))
115
- });
116
- export const ListSubaccountsArgs = IDL.Record({
117
- owner: IDL.Principal,
118
- start: IDL.Opt(SubAccount)
119
- });
120
- export const Status = IDL.Record({num_blocks_synced: BlockIndex});
121
-
122
- export const idlService = IDL.Service({
123
- get_account_transactions: IDL.Func(
124
- [GetAccountTransactionsArgs],
125
- [GetTransactionsResult],
126
- ['query']
127
- ),
128
- get_blocks: IDL.Func([GetBlocksRequest], [GetBlocksResponse], ['query']),
129
- get_fee_collectors_ranges: IDL.Func([], [FeeCollectorRanges], ['query']),
130
- icrc1_balance_of: IDL.Func([Account], [Tokens], ['query']),
131
- ledger_id: IDL.Func([], [IDL.Principal], ['query']),
132
- list_subaccounts: IDL.Func([ListSubaccountsArgs], [IDL.Vec(SubAccount)], ['query']),
133
- status: IDL.Func([], [Status], ['query'])
134
- });
135
-
136
- export const idlInitArgs = [IDL.Opt(IndexArg)];
137
-
138
- export const idlFactory = ({IDL}) => {
139
- const Value = IDL.Rec();
140
- const UpgradeArg = IDL.Record({
141
- ledger_id: IDL.Opt(IDL.Principal),
142
- retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
143
- });
144
- const InitArg = IDL.Record({
145
- ledger_id: IDL.Principal,
146
- retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
147
- });
148
- const IndexArg = IDL.Variant({Upgrade: UpgradeArg, Init: InitArg});
149
- const BlockIndex = IDL.Nat;
150
- const SubAccount = IDL.Vec(IDL.Nat8);
151
- const Account = IDL.Record({
152
- owner: IDL.Principal,
153
- subaccount: IDL.Opt(SubAccount)
154
- });
155
- const GetAccountTransactionsArgs = IDL.Record({
156
- max_results: IDL.Nat,
157
- start: IDL.Opt(BlockIndex),
158
- account: Account
159
- });
160
- const Tokens = IDL.Nat;
161
- const Burn = IDL.Record({
162
- fee: IDL.Opt(IDL.Nat),
163
- from: Account,
164
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
165
- created_at_time: IDL.Opt(IDL.Nat64),
166
- amount: Tokens,
167
- spender: IDL.Opt(Account)
168
- });
169
- const Mint = IDL.Record({
170
- to: Account,
171
- fee: IDL.Opt(IDL.Nat),
172
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
173
- created_at_time: IDL.Opt(IDL.Nat64),
174
- amount: Tokens
175
- });
176
- const Approve = IDL.Record({
177
- fee: IDL.Opt(Tokens),
178
- from: Account,
179
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
180
- created_at_time: IDL.Opt(IDL.Nat64),
181
- amount: Tokens,
182
- expected_allowance: IDL.Opt(Tokens),
183
- expires_at: IDL.Opt(IDL.Nat64),
184
- spender: Account
185
- });
186
- const Transfer = IDL.Record({
187
- to: Account,
188
- fee: IDL.Opt(Tokens),
189
- from: Account,
190
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
191
- created_at_time: IDL.Opt(IDL.Nat64),
192
- amount: Tokens,
193
- spender: IDL.Opt(Account)
194
- });
195
- const Transaction = IDL.Record({
196
- burn: IDL.Opt(Burn),
197
- kind: IDL.Text,
198
- mint: IDL.Opt(Mint),
199
- approve: IDL.Opt(Approve),
200
- timestamp: IDL.Nat64,
201
- transfer: IDL.Opt(Transfer)
202
- });
203
- const TransactionWithId = IDL.Record({
204
- id: BlockIndex,
205
- transaction: Transaction
206
- });
207
- const GetTransactions = IDL.Record({
208
- balance: Tokens,
209
- transactions: IDL.Vec(TransactionWithId),
210
- oldest_tx_id: IDL.Opt(BlockIndex)
211
- });
212
- const GetTransactionsErr = IDL.Record({message: IDL.Text});
213
- const GetTransactionsResult = IDL.Variant({
214
- Ok: GetTransactions,
215
- Err: GetTransactionsErr
216
- });
217
- const GetBlocksRequest = IDL.Record({
218
- start: IDL.Nat,
219
- length: IDL.Nat
220
- });
221
- const Map = IDL.Vec(IDL.Tuple(IDL.Text, Value));
222
- Value.fill(
223
- IDL.Variant({
224
- Int: IDL.Int,
225
- Map: Map,
226
- Nat: IDL.Nat,
227
- Nat64: IDL.Nat64,
228
- Blob: IDL.Vec(IDL.Nat8),
229
- Text: IDL.Text,
230
- Array: IDL.Vec(Value)
231
- })
232
- );
233
- const Block = Value;
234
- const GetBlocksResponse = IDL.Record({
235
- blocks: IDL.Vec(Block),
236
- chain_length: IDL.Nat64
237
- });
238
- const FeeCollectorRanges = IDL.Record({
239
- ranges: IDL.Vec(IDL.Tuple(Account, IDL.Vec(IDL.Tuple(BlockIndex, BlockIndex))))
240
- });
241
- const ListSubaccountsArgs = IDL.Record({
242
- owner: IDL.Principal,
243
- start: IDL.Opt(SubAccount)
244
- });
245
- const Status = IDL.Record({num_blocks_synced: BlockIndex});
246
-
247
- return IDL.Service({
248
- get_account_transactions: IDL.Func(
249
- [GetAccountTransactionsArgs],
250
- [GetTransactionsResult],
251
- ['query']
252
- ),
253
- get_blocks: IDL.Func([GetBlocksRequest], [GetBlocksResponse], ['query']),
254
- get_fee_collectors_ranges: IDL.Func([], [FeeCollectorRanges], ['query']),
255
- icrc1_balance_of: IDL.Func([Account], [Tokens], ['query']),
256
- ledger_id: IDL.Func([], [IDL.Principal], ['query']),
257
- list_subaccounts: IDL.Func([ListSubaccountsArgs], [IDL.Vec(SubAccount)], ['query']),
258
- status: IDL.Func([], [Status], ['query'])
259
- });
260
- };
261
-
262
- export const init = ({IDL}) => {
263
- const UpgradeArg = IDL.Record({
264
- ledger_id: IDL.Opt(IDL.Principal),
265
- retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
266
- });
267
- const InitArg = IDL.Record({
268
- ledger_id: IDL.Principal,
269
- retrieve_blocks_from_ledger_interval_seconds: IDL.Opt(IDL.Nat64)
270
- });
271
- const IndexArg = IDL.Variant({Upgrade: UpgradeArg, Init: InitArg});
272
-
273
- return [IDL.Opt(IndexArg)];
274
- };