@junobuild/functions 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/canisters/_canister.d.ts +17 -0
  2. package/canisters/_constants.d.ts +3 -0
  3. package/canisters/ckbtc/index.d.ts +1 -0
  4. package/canisters/ckbtc/index.js +2 -0
  5. package/canisters/cketh/index.d.ts +1 -0
  6. package/canisters/cketh/index.js +2 -0
  7. package/canisters/cketh/index.js.map +7 -0
  8. package/canisters/cmc/cmc.canister.d.ts +28 -0
  9. package/canisters/cmc/index.d.ts +2 -0
  10. package/canisters/cmc/index.js +2 -0
  11. package/canisters/cmc/index.js.map +7 -0
  12. package/canisters/declarations/_idl.d.ts +16 -0
  13. package/canisters/declarations/_types.d.ts +16 -0
  14. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  15. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
  16. package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  17. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
  18. package/canisters/declarations/cketh/minter.did.d.ts +893 -0
  19. package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
  20. package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  21. package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
  22. package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  23. package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
  24. package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  25. package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
  26. package/canisters/declarations/index.d.ts +2 -0
  27. package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  28. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
  29. package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  30. package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
  31. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  32. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
  33. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  34. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
  35. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  36. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
  37. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  38. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
  39. package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  40. package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
  41. package/canisters/declarations/nns/governance.did.d.ts +1254 -0
  42. package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
  43. package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  44. package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
  45. package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  46. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
  47. package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  48. package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
  49. package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  50. package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
  51. package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  52. package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
  53. package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  54. package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
  55. package/canisters/ic-management/index.d.ts +1 -0
  56. package/canisters/ic-management/index.js +2 -0
  57. package/canisters/ic-management/index.js.map +7 -0
  58. package/canisters/index.d.ts +1 -0
  59. package/canisters/index.js +2 -0
  60. package/canisters/index.js.map +7 -0
  61. package/canisters/ledger/icp/index.d.ts +2 -0
  62. package/canisters/ledger/icp/index.js +2 -0
  63. package/canisters/ledger/icp/index.js.map +7 -0
  64. package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
  65. package/canisters/ledger/icrc/index.d.ts +3 -0
  66. package/canisters/ledger/icrc/index.js +2 -0
  67. package/canisters/ledger/icrc/index.js.map +7 -0
  68. package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
  69. package/canisters/ledger/icrc/schemas.d.ts +11 -0
  70. package/canisters/nns/index.d.ts +1 -0
  71. package/canisters/nns/index.js +2 -0
  72. package/canisters/nns/index.js.map +7 -0
  73. package/canisters/schemas.d.ts +11 -0
  74. package/canisters/sns/index.d.ts +1 -0
  75. package/canisters/sns/index.js +2 -0
  76. package/canisters/sns/index.js.map +7 -0
  77. package/chunk-4C666HHU.js +2 -0
  78. package/chunk-4C666HHU.js.map +7 -0
  79. package/chunk-5NZMOUKF.js +2 -0
  80. package/chunk-5NZMOUKF.js.map +7 -0
  81. package/chunk-BXZ5PSUW.js +2 -0
  82. package/chunk-BXZ5PSUW.js.map +7 -0
  83. package/chunk-EMQQE34V.js +2 -0
  84. package/chunk-EMQQE34V.js.map +7 -0
  85. package/chunk-HANEPD6T.js +2 -0
  86. package/chunk-HANEPD6T.js.map +7 -0
  87. package/chunk-TZVF5LQY.js +2 -0
  88. package/chunk-TZVF5LQY.js.map +7 -0
  89. package/ic-cdk.js +1 -1
  90. package/ic-cdk.js.map +4 -4
  91. package/index.js +1 -1
  92. package/index.js.map +1 -1
  93. package/package.json +39 -2
  94. package/sdk.js +1 -1
  95. package/sdk.js.map +1 -1
  96. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  97. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
  98. package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  99. package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
  100. package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
  101. package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
  102. package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  103. package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
  104. package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  105. package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
  106. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  107. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
  108. package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  109. package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
  110. package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  111. package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
  112. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  113. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
  114. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  115. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
  116. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  117. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
  118. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  119. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
  120. package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  121. package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
  122. package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
  123. package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
  124. package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  125. package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
  126. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  127. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
  128. package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  129. package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
  130. package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  131. package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
  132. package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  133. package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
  134. package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  135. package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
  136. package/global.d.js +0 -1
  137. /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
@@ -0,0 +1,106 @@
1
+ export const SubAccount: IDL.VecClass<number | bigint>;
2
+ export const Account: IDL.RecordClass;
3
+ export const FeatureFlags: IDL.RecordClass;
4
+ export const UpgradeArgs: IDL.RecordClass;
5
+ export const Tokens: IDL.RecordClass;
6
+ export const TextAccountIdentifier: IDL.TextClass;
7
+ export const Duration: IDL.RecordClass;
8
+ export const ArchiveOptions: IDL.RecordClass;
9
+ export const InitArgs: IDL.RecordClass;
10
+ export const LedgerCanisterPayload: IDL.VariantClass;
11
+ export const AccountIdentifier: IDL.VecClass<number | bigint>;
12
+ export const AccountBalanceArgs: IDL.RecordClass;
13
+ export const AccountBalanceArgsDfx: IDL.RecordClass;
14
+ export const Archive: IDL.RecordClass;
15
+ export const Archives: IDL.RecordClass;
16
+ export const GetAllowancesArgs: IDL.RecordClass;
17
+ export const Allowances: IDL.VecClass<Record<string, any>>;
18
+ export const Icrc1Tokens: IDL.NatClass;
19
+ export const Value: IDL.VariantClass;
20
+ export const Icrc1Timestamp: IDL.FixedNatClass;
21
+ export const TransferArg: IDL.RecordClass;
22
+ export const Icrc1BlockIndex: IDL.NatClass;
23
+ export const Icrc1TransferError: IDL.VariantClass;
24
+ export const Icrc1TransferResult: IDL.VariantClass;
25
+ export const icrc21_consent_message_metadata: IDL.RecordClass;
26
+ export const icrc21_consent_message_spec: IDL.RecordClass;
27
+ export const icrc21_consent_message_request: IDL.RecordClass;
28
+ export const Icrc21Value: IDL.VariantClass;
29
+ export const FieldsDisplay: IDL.RecordClass;
30
+ export const icrc21_consent_message: IDL.VariantClass;
31
+ export const icrc21_consent_info: IDL.RecordClass;
32
+ export const icrc21_error_info: IDL.RecordClass;
33
+ export const icrc21_error: IDL.VariantClass;
34
+ export const icrc21_consent_message_response: IDL.VariantClass;
35
+ export const AllowanceArgs: IDL.RecordClass;
36
+ export const Allowance: IDL.RecordClass;
37
+ export const ApproveArgs: IDL.RecordClass;
38
+ export const ApproveError: IDL.VariantClass;
39
+ export const ApproveResult: IDL.VariantClass;
40
+ export const TransferFromArgs: IDL.RecordClass;
41
+ export const TransferFromError: IDL.VariantClass;
42
+ export const TransferFromResult: IDL.VariantClass;
43
+ export const BlockIndex: IDL.FixedNatClass;
44
+ export const GetBlocksArgs: IDL.RecordClass;
45
+ export const Memo: IDL.FixedNatClass;
46
+ export const TimeStamp: IDL.RecordClass;
47
+ export const Operation: IDL.VariantClass;
48
+ export const Transaction: IDL.RecordClass;
49
+ export const Block: IDL.RecordClass;
50
+ export const BlockRange: IDL.RecordClass;
51
+ export const QueryArchiveError: IDL.VariantClass;
52
+ export const QueryArchiveResult: IDL.VariantClass;
53
+ export const QueryArchiveFn: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
54
+ export const ArchivedBlocksRange: IDL.RecordClass;
55
+ export const QueryBlocksResponse: IDL.RecordClass;
56
+ export const ArchivedEncodedBlocksRange: IDL.RecordClass;
57
+ export const QueryEncodedBlocksResponse: IDL.RecordClass;
58
+ export const RemoveApprovalArgs: IDL.RecordClass;
59
+ export const SendArgs: IDL.RecordClass;
60
+ export const TipOfChainRes: IDL.RecordClass;
61
+ export const TransferArgs: IDL.RecordClass;
62
+ export const TransferError: IDL.VariantClass;
63
+ export const TransferResult: IDL.VariantClass;
64
+ export const TransferFeeArg: IDL.RecordClass;
65
+ export const TransferFee: IDL.RecordClass;
66
+ export const idlService: IDL.ServiceClass<string, {
67
+ account_balance: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
68
+ account_balance_dfx: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
69
+ account_identifier: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<number | bigint>]>;
70
+ archives: IDL.FuncClass<[], [IDL.RecordClass]>;
71
+ decimals: IDL.FuncClass<[], [IDL.RecordClass]>;
72
+ get_allowances: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
73
+ icrc10_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
74
+ icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
75
+ icrc1_decimals: IDL.FuncClass<[], [IDL.FixedNatClass]>;
76
+ icrc1_fee: IDL.FuncClass<[], [IDL.NatClass]>;
77
+ icrc1_metadata: IDL.FuncClass<[], [IDL.VecClass<any[]>]>;
78
+ icrc1_minting_account: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
79
+ icrc1_name: IDL.FuncClass<[], [IDL.TextClass]>;
80
+ icrc1_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
81
+ icrc1_symbol: IDL.FuncClass<[], [IDL.TextClass]>;
82
+ icrc1_total_supply: IDL.FuncClass<[], [IDL.NatClass]>;
83
+ icrc1_transfer: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
84
+ icrc21_canister_call_consent_message: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
85
+ icrc2_allowance: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
86
+ icrc2_approve: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
87
+ icrc2_transfer_from: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
88
+ is_ledger_ready: IDL.FuncClass<[], [IDL.BoolClass]>;
89
+ name: IDL.FuncClass<[], [IDL.RecordClass]>;
90
+ query_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
91
+ query_encoded_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
92
+ remove_approval: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
93
+ send_dfx: IDL.FuncClass<[IDL.RecordClass], [IDL.FixedNatClass]>;
94
+ symbol: IDL.FuncClass<[], [IDL.RecordClass]>;
95
+ tip_of_chain: IDL.FuncClass<[], [IDL.RecordClass]>;
96
+ transfer: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
97
+ transfer_fee: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
98
+ }>;
99
+ export const idlInitArgs: IDL.VariantClass[];
100
+ export function idlFactory({ IDL }: {
101
+ IDL: any;
102
+ }): any;
103
+ export function init({ IDL }: {
104
+ IDL: any;
105
+ }): any[];
106
+ import { IDL } from '@icp-sdk/core/candid';
@@ -0,0 +1,148 @@
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[];
@@ -0,0 +1,44 @@
1
+ export const Value: IDL.RecClass<any>;
2
+ export const UpgradeArg: IDL.RecordClass;
3
+ export const InitArg: IDL.RecordClass;
4
+ export const IndexArg: IDL.VariantClass;
5
+ export const BlockIndex: IDL.NatClass;
6
+ export const SubAccount: IDL.VecClass<number | bigint>;
7
+ export const Account: IDL.RecordClass;
8
+ export const GetAccountTransactionsArgs: IDL.RecordClass;
9
+ export const Tokens: IDL.NatClass;
10
+ export const Burn: IDL.RecordClass;
11
+ export const Mint: IDL.RecordClass;
12
+ export const Approve: IDL.RecordClass;
13
+ export const Transfer: IDL.RecordClass;
14
+ export const Transaction: IDL.RecordClass;
15
+ export const TransactionWithId: IDL.RecordClass;
16
+ export const GetTransactions: IDL.RecordClass;
17
+ export const GetTransactionsErr: IDL.RecordClass;
18
+ export const GetTransactionsResult: IDL.VariantClass;
19
+ export const GetBlocksRequest: IDL.RecordClass;
20
+ export const Map: IDL.VecClass<any[]>;
21
+ export const Block: IDL.RecClass<any>;
22
+ export const GetBlocksResponse: IDL.RecordClass;
23
+ export const FeeCollectorRanges: IDL.RecordClass;
24
+ export const ListSubaccountsArgs: IDL.RecordClass;
25
+ export const Status: IDL.RecordClass;
26
+ export const idlService: IDL.ServiceClass<string, {
27
+ get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
28
+ get_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
29
+ get_fee_collectors_ranges: IDL.FuncClass<[], [IDL.RecordClass]>;
30
+ icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
31
+ ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
32
+ list_subaccounts: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<(number | bigint)[]>]>;
33
+ status: IDL.FuncClass<[], [IDL.RecordClass]>;
34
+ }>;
35
+ export const idlInitArgs: IDL.OptClass<{
36
+ [x: string]: any;
37
+ }>[];
38
+ export function idlFactory({ IDL }: {
39
+ IDL: any;
40
+ }): any;
41
+ export function init({ IDL }: {
42
+ IDL: any;
43
+ }): any[];
44
+ import { IDL } from '@icp-sdk/core/candid';
@@ -0,0 +1,102 @@
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' : [] | [Uint8Array],
16
+ }
17
+ export interface Approve {
18
+ 'fee' : [] | [bigint],
19
+ 'from' : Account,
20
+ 'memo' : [] | [Uint8Array],
21
+ 'created_at_time' : [] | [bigint],
22
+ 'amount' : bigint,
23
+ 'expected_allowance' : [] | [bigint],
24
+ 'expires_at' : [] | [bigint],
25
+ 'spender' : Account,
26
+ }
27
+ export interface Burn {
28
+ 'from' : Account,
29
+ 'memo' : [] | [Uint8Array],
30
+ 'created_at_time' : [] | [bigint],
31
+ 'amount' : bigint,
32
+ 'spender' : [] | [Account],
33
+ }
34
+ export interface GetAccountTransactionsArgs {
35
+ /**
36
+ * Maximum number of transactions to fetch.
37
+ */
38
+ 'max_results' : bigint,
39
+ /**
40
+ * The txid of the last transaction seen by the client.
41
+ * If None then the results will start from the most recent
42
+ * txid.
43
+ */
44
+ 'start' : [] | [TxId],
45
+ 'account' : Account,
46
+ }
47
+ export interface GetTransactions {
48
+ 'transactions' : Array<TransactionWithId>,
49
+ /**
50
+ * The txid of the oldest transaction the account has
51
+ */
52
+ 'oldest_tx_id' : [] | [TxId],
53
+ }
54
+ export interface GetTransactionsErr { 'message' : string }
55
+ export type GetTransactionsResult = { 'Ok' : GetTransactions } |
56
+ { 'Err' : GetTransactionsErr };
57
+ /**
58
+ * The initialization parameters of the Index canister.
59
+ */
60
+ export interface InitArgs { 'ledger_id' : Principal }
61
+ export interface ListSubaccountsArgs {
62
+ 'owner' : Principal,
63
+ 'start' : [] | [SubAccount],
64
+ }
65
+ export interface Mint {
66
+ 'to' : Account,
67
+ 'memo' : [] | [Uint8Array],
68
+ 'created_at_time' : [] | [bigint],
69
+ 'amount' : bigint,
70
+ }
71
+ export type SubAccount = Uint8Array;
72
+ export interface Transaction {
73
+ 'burn' : [] | [Burn],
74
+ 'kind' : string,
75
+ 'mint' : [] | [Mint],
76
+ 'approve' : [] | [Approve],
77
+ 'timestamp' : bigint,
78
+ 'transfer' : [] | [Transfer],
79
+ }
80
+ export interface TransactionWithId { 'id' : TxId, 'transaction' : Transaction }
81
+ export interface Transfer {
82
+ 'to' : Account,
83
+ 'fee' : [] | [bigint],
84
+ 'from' : Account,
85
+ 'memo' : [] | [Uint8Array],
86
+ 'created_at_time' : [] | [bigint],
87
+ 'amount' : bigint,
88
+ 'spender' : [] | [Account],
89
+ }
90
+ export type TxId = bigint;
91
+ export interface _SERVICE {
92
+ 'get_account_transactions' : ActorMethod<
93
+ [GetAccountTransactionsArgs],
94
+ GetTransactionsResult
95
+ >,
96
+ 'ledger_id' : ActorMethod<[], Principal>,
97
+ 'list_subaccounts' : ActorMethod<[ListSubaccountsArgs], Array<SubAccount>>,
98
+ }
99
+ export declare const idlService: IDL.ServiceClass;
100
+ export declare const idlInitArgs: IDL.Type[];
101
+ export declare const idlFactory: IDL.InterfaceFactory;
102
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -0,0 +1,28 @@
1
+ export const InitArgs: IDL.RecordClass;
2
+ export const TxId: IDL.NatClass;
3
+ export const Account: IDL.RecordClass;
4
+ export const GetAccountTransactionsArgs: IDL.RecordClass;
5
+ export const Burn: IDL.RecordClass;
6
+ export const Mint: IDL.RecordClass;
7
+ export const Approve: IDL.RecordClass;
8
+ export const Transfer: IDL.RecordClass;
9
+ export const Transaction: IDL.RecordClass;
10
+ export const TransactionWithId: IDL.RecordClass;
11
+ export const GetTransactions: IDL.RecordClass;
12
+ export const GetTransactionsErr: IDL.RecordClass;
13
+ export const GetTransactionsResult: IDL.VariantClass;
14
+ export const SubAccount: IDL.VecClass<number | bigint>;
15
+ export const ListSubaccountsArgs: IDL.RecordClass;
16
+ export const idlService: IDL.ServiceClass<string, {
17
+ get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
18
+ ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
19
+ list_subaccounts: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<(number | bigint)[]>]>;
20
+ }>;
21
+ export const idlInitArgs: IDL.RecordClass[];
22
+ export function idlFactory({ IDL }: {
23
+ IDL: any;
24
+ }): any;
25
+ export function init({ IDL }: {
26
+ IDL: any;
27
+ }): any[];
28
+ import { IDL } from '@icp-sdk/core/candid';