@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,147 @@
1
+ export const bitcoin_network: IDL.VariantClass;
2
+ export const bitcoin_address: IDL.TextClass;
3
+ export const bitcoin_get_balance_args: IDL.RecordClass;
4
+ export const satoshi: IDL.FixedNatClass;
5
+ export const bitcoin_get_balance_result: IDL.FixedNatClass;
6
+ export const bitcoin_block_height: IDL.FixedNatClass;
7
+ export const bitcoin_get_block_headers_args: IDL.RecordClass;
8
+ export const bitcoin_block_header: IDL.VecClass<number | bigint>;
9
+ export const bitcoin_get_block_headers_result: IDL.RecordClass;
10
+ export const bitcoin_get_current_fee_percentiles_args: IDL.RecordClass;
11
+ export const millisatoshi_per_byte: IDL.FixedNatClass;
12
+ export const bitcoin_get_current_fee_percentiles_result: IDL.VecClass<number | bigint>;
13
+ export const bitcoin_get_utxos_args: IDL.RecordClass;
14
+ export const bitcoin_block_hash: IDL.VecClass<number | bigint>;
15
+ export const outpoint: IDL.RecordClass;
16
+ export const utxo: IDL.RecordClass;
17
+ export const bitcoin_get_utxos_result: IDL.RecordClass;
18
+ export const bitcoin_send_transaction_args: IDL.RecordClass;
19
+ export const canister_id: IDL.PrincipalClass;
20
+ export const canister_info_args: IDL.RecordClass;
21
+ export const change_origin: IDL.VariantClass;
22
+ export const snapshot_id: IDL.VecClass<number | bigint>;
23
+ export const change_details: IDL.VariantClass;
24
+ export const change: IDL.RecordClass;
25
+ export const canister_info_result: IDL.RecordClass;
26
+ export const canister_metadata_args: IDL.RecordClass;
27
+ export const canister_metadata_result: IDL.RecordClass;
28
+ export const canister_status_args: IDL.RecordClass;
29
+ export const environment_variable: IDL.RecordClass;
30
+ export const log_visibility: IDL.VariantClass;
31
+ export const definite_canister_settings: IDL.RecordClass;
32
+ export const canister_status_result: IDL.RecordClass;
33
+ export const clear_chunk_store_args: IDL.RecordClass;
34
+ export const canister_settings: IDL.RecordClass;
35
+ export const create_canister_args: IDL.RecordClass;
36
+ export const create_canister_result: IDL.RecordClass;
37
+ export const delete_canister_args: IDL.RecordClass;
38
+ export const delete_canister_snapshot_args: IDL.RecordClass;
39
+ export const deposit_cycles_args: IDL.RecordClass;
40
+ export const ecdsa_curve: IDL.VariantClass;
41
+ export const ecdsa_public_key_args: IDL.RecordClass;
42
+ export const ecdsa_public_key_result: IDL.RecordClass;
43
+ export const fetch_canister_logs_args: IDL.RecordClass;
44
+ export const canister_log_record: IDL.RecordClass;
45
+ export const fetch_canister_logs_result: IDL.RecordClass;
46
+ export const http_header: IDL.RecordClass;
47
+ export const http_request_result: IDL.RecordClass;
48
+ export const http_request_args: IDL.RecordClass;
49
+ export const canister_install_mode: IDL.VariantClass;
50
+ export const chunk_hash: IDL.RecordClass;
51
+ export const install_chunked_code_args: IDL.RecordClass;
52
+ export const wasm_module: IDL.VecClass<number | bigint>;
53
+ export const install_code_args: IDL.RecordClass;
54
+ export const list_canister_snapshots_args: IDL.RecordClass;
55
+ export const snapshot: IDL.RecordClass;
56
+ export const list_canister_snapshots_result: IDL.VecClass<Record<string, any>>;
57
+ export const load_canister_snapshot_args: IDL.RecordClass;
58
+ export const node_metrics_history_args: IDL.RecordClass;
59
+ export const node_metrics: IDL.RecordClass;
60
+ export const node_metrics_history_result: IDL.VecClass<Record<string, any>>;
61
+ export const provisional_create_canister_with_cycles_args: IDL.RecordClass;
62
+ export const provisional_create_canister_with_cycles_result: IDL.RecordClass;
63
+ export const provisional_top_up_canister_args: IDL.RecordClass;
64
+ export const raw_rand_result: IDL.VecClass<number | bigint>;
65
+ export const read_canister_snapshot_data_args: IDL.RecordClass;
66
+ export const read_canister_snapshot_data_response: IDL.RecordClass;
67
+ export const read_canister_snapshot_metadata_args: IDL.RecordClass;
68
+ export const read_canister_snapshot_metadata_response: IDL.RecordClass;
69
+ export const schnorr_algorithm: IDL.VariantClass;
70
+ export const schnorr_public_key_args: IDL.RecordClass;
71
+ export const schnorr_public_key_result: IDL.RecordClass;
72
+ export const sign_with_ecdsa_args: IDL.RecordClass;
73
+ export const sign_with_ecdsa_result: IDL.RecordClass;
74
+ export const schnorr_aux: IDL.VariantClass;
75
+ export const sign_with_schnorr_args: IDL.RecordClass;
76
+ export const sign_with_schnorr_result: IDL.RecordClass;
77
+ export const start_canister_args: IDL.RecordClass;
78
+ export const stop_canister_args: IDL.RecordClass;
79
+ export const stored_chunks_args: IDL.RecordClass;
80
+ export const stored_chunks_result: IDL.VecClass<Record<string, any>>;
81
+ export const subnet_info_args: IDL.RecordClass;
82
+ export const subnet_info_result: IDL.RecordClass;
83
+ export const take_canister_snapshot_args: IDL.RecordClass;
84
+ export const take_canister_snapshot_result: IDL.RecordClass;
85
+ export const uninstall_code_args: IDL.RecordClass;
86
+ export const update_settings_args: IDL.RecordClass;
87
+ export const upload_canister_snapshot_data_args: IDL.RecordClass;
88
+ export const upload_canister_snapshot_metadata_args: IDL.RecordClass;
89
+ export const upload_canister_snapshot_metadata_response: IDL.RecordClass;
90
+ export const upload_chunk_args: IDL.RecordClass;
91
+ export const upload_chunk_result: IDL.RecordClass;
92
+ export const vetkd_curve: IDL.VariantClass;
93
+ export const vetkd_derive_key_args: IDL.RecordClass;
94
+ export const vetkd_derive_key_result: IDL.RecordClass;
95
+ export const vetkd_public_key_args: IDL.RecordClass;
96
+ export const vetkd_public_key_result: IDL.RecordClass;
97
+ export const idlService: IDL.ServiceClass<string, {
98
+ bitcoin_get_balance: IDL.FuncClass<[IDL.RecordClass], [IDL.FixedNatClass]>;
99
+ bitcoin_get_block_headers: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
100
+ bitcoin_get_current_fee_percentiles: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<number | bigint>]>;
101
+ bitcoin_get_utxos: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
102
+ bitcoin_send_transaction: IDL.FuncClass<[IDL.RecordClass], []>;
103
+ canister_info: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
104
+ canister_metadata: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
105
+ canister_status: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
106
+ clear_chunk_store: IDL.FuncClass<[IDL.RecordClass], []>;
107
+ create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
108
+ delete_canister: IDL.FuncClass<[IDL.RecordClass], []>;
109
+ delete_canister_snapshot: IDL.FuncClass<[IDL.RecordClass], []>;
110
+ deposit_cycles: IDL.FuncClass<[IDL.RecordClass], []>;
111
+ ecdsa_public_key: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
112
+ fetch_canister_logs: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
113
+ http_request: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
114
+ install_chunked_code: IDL.FuncClass<[IDL.RecordClass], []>;
115
+ install_code: IDL.FuncClass<[IDL.RecordClass], []>;
116
+ list_canister_snapshots: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
117
+ load_canister_snapshot: IDL.FuncClass<[IDL.RecordClass], []>;
118
+ node_metrics_history: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
119
+ provisional_create_canister_with_cycles: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
120
+ provisional_top_up_canister: IDL.FuncClass<[IDL.RecordClass], []>;
121
+ raw_rand: IDL.FuncClass<[], [IDL.VecClass<number | bigint>]>;
122
+ read_canister_snapshot_data: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
123
+ read_canister_snapshot_metadata: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
124
+ schnorr_public_key: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
125
+ sign_with_ecdsa: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
126
+ sign_with_schnorr: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
127
+ start_canister: IDL.FuncClass<[IDL.RecordClass], []>;
128
+ stop_canister: IDL.FuncClass<[IDL.RecordClass], []>;
129
+ stored_chunks: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
130
+ subnet_info: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
131
+ take_canister_snapshot: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
132
+ uninstall_code: IDL.FuncClass<[IDL.RecordClass], []>;
133
+ update_settings: IDL.FuncClass<[IDL.RecordClass], []>;
134
+ upload_canister_snapshot_data: IDL.FuncClass<[IDL.RecordClass], []>;
135
+ upload_canister_snapshot_metadata: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
136
+ upload_chunk: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
137
+ vetkd_derive_key: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
138
+ vetkd_public_key: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
139
+ }>;
140
+ export const idlInitArgs: any[];
141
+ export function idlFactory({ IDL }: {
142
+ IDL: any;
143
+ }): any;
144
+ export function init({ IDL }: {
145
+ IDL: any;
146
+ }): never[];
147
+ import { IDL } from '@icp-sdk/core/candid';
@@ -0,0 +1,2 @@
1
+ export * from './_idl';
2
+ export type * from './_types';
@@ -0,0 +1,119 @@
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 GetAccountIdentifierTransactionsArgs {
18
+ 'max_results' : bigint,
19
+ 'start' : [] | [bigint],
20
+ 'account_identifier' : string,
21
+ }
22
+ export interface GetAccountIdentifierTransactionsError { 'message' : string }
23
+ export interface GetAccountIdentifierTransactionsResponse {
24
+ 'balance' : bigint,
25
+ 'transactions' : Array<TransactionWithId>,
26
+ 'oldest_tx_id' : [] | [bigint],
27
+ }
28
+ export type GetAccountIdentifierTransactionsResult = {
29
+ 'Ok' : GetAccountIdentifierTransactionsResponse
30
+ } |
31
+ { 'Err' : GetAccountIdentifierTransactionsError };
32
+ export interface GetAccountTransactionsArgs {
33
+ /**
34
+ * Maximum number of transactions to fetch.
35
+ */
36
+ 'max_results' : bigint,
37
+ /**
38
+ * The txid of the last transaction seen by the client.
39
+ * If None then the results will start from the most recent
40
+ * txid. If set then the results will start from the next
41
+ * most recent txid after start (start won't be included).
42
+ */
43
+ 'start' : [] | [bigint],
44
+ 'account' : Account,
45
+ }
46
+ export interface GetBlocksRequest { 'start' : bigint, 'length' : bigint }
47
+ export interface GetBlocksResponse {
48
+ 'blocks' : Array<Uint8Array>,
49
+ 'chain_length' : bigint,
50
+ }
51
+ export interface HttpRequest {
52
+ 'url' : string,
53
+ 'method' : string,
54
+ 'body' : Uint8Array,
55
+ 'headers' : Array<[string, string]>,
56
+ }
57
+ export interface HttpResponse {
58
+ 'body' : Uint8Array,
59
+ 'headers' : Array<[string, string]>,
60
+ 'status_code' : number,
61
+ }
62
+ export interface InitArg { 'ledger_id' : Principal }
63
+ export type Operation = {
64
+ 'Approve' : {
65
+ 'fee' : Tokens,
66
+ 'from' : string,
67
+ 'allowance' : Tokens,
68
+ 'expected_allowance' : [] | [Tokens],
69
+ 'expires_at' : [] | [TimeStamp],
70
+ 'spender' : string,
71
+ }
72
+ } |
73
+ {
74
+ 'Burn' : { 'from' : string, 'amount' : Tokens, 'spender' : [] | [string] }
75
+ } |
76
+ { 'Mint' : { 'to' : string, 'amount' : Tokens } } |
77
+ {
78
+ 'Transfer' : {
79
+ 'to' : string,
80
+ 'fee' : Tokens,
81
+ 'from' : string,
82
+ 'amount' : Tokens,
83
+ 'spender' : [] | [string],
84
+ }
85
+ };
86
+ export interface Status { 'num_blocks_synced' : bigint }
87
+ export interface TimeStamp { 'timestamp_nanos' : bigint }
88
+ export interface Tokens { 'e8s' : bigint }
89
+ export interface Transaction {
90
+ 'memo' : bigint,
91
+ 'icrc1_memo' : [] | [Uint8Array],
92
+ 'operation' : Operation,
93
+ 'timestamp' : [] | [TimeStamp],
94
+ 'created_at_time' : [] | [TimeStamp],
95
+ }
96
+ export interface TransactionWithId {
97
+ 'id' : bigint,
98
+ 'transaction' : Transaction,
99
+ }
100
+ export interface _SERVICE {
101
+ 'get_account_identifier_balance' : ActorMethod<[string], bigint>,
102
+ 'get_account_identifier_transactions' : ActorMethod<
103
+ [GetAccountIdentifierTransactionsArgs],
104
+ GetAccountIdentifierTransactionsResult
105
+ >,
106
+ 'get_account_transactions' : ActorMethod<
107
+ [GetAccountTransactionsArgs],
108
+ GetAccountIdentifierTransactionsResult
109
+ >,
110
+ 'get_blocks' : ActorMethod<[GetBlocksRequest], GetBlocksResponse>,
111
+ 'http_request' : ActorMethod<[HttpRequest], HttpResponse>,
112
+ 'icrc1_balance_of' : ActorMethod<[Account], bigint>,
113
+ 'ledger_id' : ActorMethod<[], Principal>,
114
+ 'status' : ActorMethod<[], Status>,
115
+ }
116
+ export declare const idlService: IDL.ServiceClass;
117
+ export declare const idlInitArgs: IDL.Type[];
118
+ export declare const idlFactory: IDL.InterfaceFactory;
119
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -0,0 +1,35 @@
1
+ export const InitArg: IDL.RecordClass;
2
+ export const GetAccountIdentifierTransactionsArgs: IDL.RecordClass;
3
+ export const Tokens: IDL.RecordClass;
4
+ export const TimeStamp: IDL.RecordClass;
5
+ export const Operation: IDL.VariantClass;
6
+ export const Transaction: IDL.RecordClass;
7
+ export const TransactionWithId: IDL.RecordClass;
8
+ export const GetAccountIdentifierTransactionsResponse: IDL.RecordClass;
9
+ export const GetAccountIdentifierTransactionsError: IDL.RecordClass;
10
+ export const GetAccountIdentifierTransactionsResult: IDL.VariantClass;
11
+ export const Account: IDL.RecordClass;
12
+ export const GetAccountTransactionsArgs: IDL.RecordClass;
13
+ export const GetBlocksRequest: IDL.RecordClass;
14
+ export const GetBlocksResponse: IDL.RecordClass;
15
+ export const HttpRequest: IDL.RecordClass;
16
+ export const HttpResponse: IDL.RecordClass;
17
+ export const Status: IDL.RecordClass;
18
+ export const idlService: IDL.ServiceClass<string, {
19
+ get_account_identifier_balance: IDL.FuncClass<[IDL.TextClass], [IDL.FixedNatClass]>;
20
+ get_account_identifier_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
21
+ get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
22
+ get_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
23
+ http_request: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
24
+ icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.FixedNatClass]>;
25
+ ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
26
+ status: IDL.FuncClass<[], [IDL.RecordClass]>;
27
+ }>;
28
+ export const idlInitArgs: IDL.RecordClass[];
29
+ export function idlFactory({ IDL }: {
30
+ IDL: any;
31
+ }): any;
32
+ export function init({ IDL }: {
33
+ IDL: any;
34
+ }): any[];
35
+ import { IDL } from '@icp-sdk/core/candid';