saito-wasm 0.2.165 → 0.2.167

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.
@@ -1,117 +1,117 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @returns {Promise<string>}
5
- */
6
- export function get_latest_block_hash(): Promise<string>;
7
- /**
8
- * @returns {Promise<WasmWallet>}
4
+ * @returns {Promise<boolean>}
9
5
  */
10
- export function get_wallet(): Promise<WasmWallet>;
6
+ export function produce_block_with_gt(): Promise<boolean>;
11
7
  /**
12
- * @param {string} nft_id_hex
13
- * @param {Uint8Array} tx_msg
14
- * @returns {Promise<WasmTransaction>}
8
+ * @param {bigint} duration_in_ms
9
+ * @returns {Promise<void>}
15
10
  */
16
- export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
11
+ export function process_timer_event(duration_in_ms: bigint): Promise<void>;
17
12
  /**
18
- * @param {bigint} num
19
- * @param {bigint} deposit
20
- * @param {Uint8Array} tx_msg
13
+ * @param {Array<any>} public_keys
14
+ * @param {BigUint64Array} amounts
21
15
  * @param {bigint} fee
22
- * @param {string} recipient_public_key
23
- * @param {string} nft_type
16
+ * @param {boolean} _force_merge
24
17
  * @returns {Promise<WasmTransaction>}
25
18
  */
26
- export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
19
+ export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
27
20
  /**
28
- * @param {string} key
29
- * @returns {boolean}
21
+ * @returns {Promise<boolean>}
30
22
  */
31
- export function is_valid_public_key(key: string): boolean;
23
+ export function produce_block_without_gt(): Promise<boolean>;
32
24
  /**
33
- * @returns {Promise<string>}
25
+ * @param {Uint8Array} buffer
26
+ * @param {number} msg_index
27
+ * @param {bigint} peer_index
28
+ * @returns {Promise<void>}
34
29
  */
35
- export function get_congestion_stats(): Promise<string>;
30
+ export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
36
31
  /**
37
- * @param {Array<any>} public_keys
38
- * @param {BigUint64Array} amounts
39
- * @param {bigint} fee
40
- * @param {boolean} _force_merge
41
- * @returns {Promise<WasmTransaction>}
32
+ * @param {number} major
33
+ * @param {number} minor
34
+ * @param {number} patch
35
+ * @returns {Promise<void>}
42
36
  */
43
- export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
37
+ export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
44
38
  /**
39
+ * @param {Uint8Array} hash
40
+ * @param {bigint} block_id
41
+ * @param {bigint} peer_index
45
42
  * @returns {Promise<void>}
46
43
  */
47
- export function start_from_received_ghost_chain(): Promise<void>;
44
+ export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
48
45
  /**
49
- * @returns {Promise<WasmBlockchain>}
46
+ * @param {string} block_hash
47
+ * @returns {Promise<WasmBlock>}
50
48
  */
51
- export function get_blockchain(): Promise<WasmBlockchain>;
49
+ export function get_block(block_hash: string): Promise<WasmBlock>;
52
50
  /**
53
- * @param {Array<any>} keys
54
- * @returns {Promise<WasmBalanceSnapshot>}
51
+ * @param {string} private_key
52
+ * @returns {string}
55
53
  */
56
- export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
54
+ export function generate_public_key(private_key: string): string;
57
55
  /**
58
- * @returns {Promise<any>}
56
+ * @returns {Promise<Array<any>>}
59
57
  */
60
- export function get_confirmations(): Promise<any>;
58
+ export function get_nft_list(): Promise<Array<any>>;
61
59
  /**
62
- * @returns {Promise<Array<any>>}
60
+ * @param {Uint8Array} buffer
61
+ * @param {string} signature
62
+ * @param {string} public_key
63
+ * @returns {boolean}
63
64
  */
64
- export function get_peers(): Promise<Array<any>>;
65
+ export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
65
66
  /**
66
- * @param {bigint} peer_index
67
- * @param {string} ip
68
- * @returns {Promise<void>}
67
+ * @returns {Promise<string>}
69
68
  */
70
- export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
69
+ export function get_stats(): Promise<string>;
70
+ /**
71
+ * @returns {Promise<any>}
72
+ */
73
+ export function get_confirmations(): Promise<any>;
74
+ /**
75
+ * @returns {Promise<string>}
76
+ */
77
+ export function get_latest_block_hash(): Promise<string>;
71
78
  /**
72
79
  * @param {Uint8Array} buffer
73
80
  * @returns {string}
74
81
  */
75
82
  export function hash(buffer: Uint8Array): string;
76
83
  /**
77
- * @param {Uint8Array} buffer
78
- * @param {Uint8Array} hash
79
- * @param {bigint} block_id
80
- * @param {bigint} peer_index
81
- * @returns {Promise<void>}
84
+ * @returns {Promise<string>}
82
85
  */
83
- export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
86
+ export function get_peer_stats(): Promise<string>;
84
87
  /**
85
88
  * @param {bigint} peer_index
89
+ * @param {string} public_key
86
90
  * @returns {Promise<void>}
87
91
  */
88
- export function process_peer_disconnection(peer_index: bigint): Promise<void>;
92
+ export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
89
93
  /**
90
- * @param {bigint} peer_index
91
- * @returns {Promise<WasmPeer | undefined>}
94
+ * @returns {Promise<WasmWallet>}
92
95
  */
93
- export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
96
+ export function get_wallet(): Promise<WasmWallet>;
94
97
  /**
95
98
  * @param {Uint8Array} buffer
96
- * @param {number} msg_index
97
99
  * @param {bigint} peer_index
98
100
  * @returns {Promise<void>}
99
101
  */
100
- export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
102
+ export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
101
103
  /**
102
- * @returns {Promise<void>}
104
+ * @returns {Promise<bigint>}
103
105
  */
104
- export function disable_producing_blocks_by_timer(): Promise<void>;
106
+ export function get_next_peer_index(): Promise<bigint>;
105
107
  /**
106
- * @param {bigint} duration_in_ms
107
- * @returns {Promise<void>}
108
+ * @returns {Promise<Array<any>>}
108
109
  */
109
- export function process_timer_event(duration_in_ms: bigint): Promise<void>;
110
+ export function get_peers(): Promise<Array<any>>;
110
111
  /**
111
- * @param {string} block_hash
112
- * @returns {Promise<WasmBlock>}
112
+ * @returns {Promise<WasmBlockchain>}
113
113
  */
114
- export function get_block(block_hash: string): Promise<WasmBlock>;
114
+ export function get_blockchain(): Promise<WasmBlockchain>;
115
115
  /**
116
116
  * @param {bigint} threshold
117
117
  * @returns {Promise<void>}
@@ -123,112 +123,71 @@ export function write_issuance_file(threshold: bigint): Promise<void>;
123
123
  * @param {bigint} peer_index
124
124
  * @returns {Promise<void>}
125
125
  */
126
- export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
127
- /**
128
- * @returns {Promise<string>}
129
- */
130
- export function get_peer_stats(): Promise<string>;
131
- /**
132
- * @returns {Promise<Array<any>>}
133
- */
134
- export function get_mempool_txs(): Promise<Array<any>>;
126
+ export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
135
127
  /**
136
- * @param {string} public_key
137
- * @param {bigint} amount
138
- * @param {bigint} fee
139
- * @param {boolean} force_merge
128
+ * @param {string} nft_id_hex
129
+ * @param {Uint8Array} tx_msg
140
130
  * @returns {Promise<WasmTransaction>}
141
131
  */
142
- export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
143
- /**
144
- * @returns {Promise<boolean>}
145
- */
146
- export function produce_block_without_gt(): Promise<boolean>;
147
- /**
148
- * @param {Uint8Array} buffer
149
- * @param {string} private_key
150
- * @returns {string}
151
- */
152
- export function sign_buffer(buffer: Uint8Array, private_key: string): string;
132
+ export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
153
133
  /**
154
134
  * @returns {string}
155
135
  */
156
136
  export function generate_private_key(): string;
157
137
  /**
158
- * @param {Uint8Array} hash
159
- * @param {bigint} block_id
160
138
  * @param {bigint} peer_index
161
139
  * @returns {Promise<void>}
162
140
  */
163
- export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
141
+ export function remove_stun_peer(peer_index: bigint): Promise<void>;
164
142
  /**
165
- * @param {bigint} peer_index
143
+ * @param {WasmBalanceSnapshot} snapshot
166
144
  * @returns {Promise<void>}
167
145
  */
168
- export function remove_stun_peer(peer_index: bigint): Promise<void>;
146
+ export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
169
147
  /**
170
148
  * @returns {Promise<string>}
171
149
  */
172
- export function get_stats(): Promise<string>;
173
- /**
174
- * @param {string} public_key
175
- * @returns {Promise<Array<any>>}
176
- */
177
- export function get_account_slips(public_key: string): Promise<Array<any>>;
150
+ export function get_congestion_stats(): Promise<string>;
178
151
  /**
179
152
  * @param {Uint8Array} buffer
180
- * @param {number} msg_index
153
+ * @param {Uint8Array} hash
154
+ * @param {bigint} block_id
181
155
  * @param {bigint} peer_index
182
156
  * @returns {Promise<void>}
183
157
  */
184
- export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
185
- /**
186
- * @param {string} config_json
187
- * @param {string} private_key
188
- * @param {number} log_level_num
189
- * @param {bigint} hasten_multiplier
190
- * @param {boolean} delete_old_blocks
191
- * @returns {Promise<any>}
192
- */
193
- export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
194
- /**
195
- * @param {string} private_key
196
- * @returns {string}
197
- */
198
- export function generate_public_key(private_key: string): string;
158
+ export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
199
159
  /**
200
- * @returns {Promise<bigint>}
160
+ * @param {string} slip1_utxo_key
161
+ * @param {string} slip2_utxo_key
162
+ * @param {string} slip3_utxo_key
163
+ * @returns {Promise<WasmTransaction>}
201
164
  */
202
- export function get_next_peer_index(): Promise<bigint>;
165
+ export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string): Promise<WasmTransaction>;
203
166
  /**
204
- * @param {WasmTransaction} tx
205
167
  * @returns {Promise<void>}
206
168
  */
207
- export function propagate_transaction(tx: WasmTransaction): Promise<void>;
169
+ export function disable_producing_blocks_by_timer(): Promise<void>;
208
170
  /**
209
- * @param {Uint8Array} buffer
210
- * @param {string} signature
211
171
  * @param {string} public_key
212
- * @returns {boolean}
172
+ * @param {bigint} amount
173
+ * @param {bigint} fee
174
+ * @param {boolean} force_merge
175
+ * @returns {Promise<WasmTransaction>}
213
176
  */
214
- export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
177
+ export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
215
178
  /**
216
- * @param {number} major
217
- * @param {number} minor
218
- * @param {number} patch
219
- * @returns {Promise<void>}
179
+ * @returns {Promise<Array<any>>}
220
180
  */
221
- export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
181
+ export function get_mempool_txs(): Promise<Array<any>>;
222
182
  /**
223
- * @param {bigint} peer_index
224
- * @param {string} public_key
225
183
  * @returns {Promise<void>}
226
184
  */
227
- export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
185
+ export function start_from_received_ghost_chain(): Promise<void>;
228
186
  /**
229
- * @returns {Promise<boolean>}
187
+ * @param {bigint} peer_index
188
+ * @returns {Promise<WasmPeer | undefined>}
230
189
  */
231
- export function produce_block_with_gt(): Promise<boolean>;
190
+ export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
232
191
  /**
233
192
  * @param {bigint} amt
234
193
  * @param {string} slip1_utxo_key
@@ -240,6 +199,25 @@ export function produce_block_with_gt(): Promise<boolean>;
240
199
  */
241
200
  export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, recipient_public_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
242
201
  /**
202
+ * @param {string} key
203
+ * @returns {boolean}
204
+ */
205
+ export function is_valid_public_key(key: string): boolean;
206
+ /**
207
+ * @param {Array<any>} keys
208
+ * @returns {Promise<WasmBalanceSnapshot>}
209
+ */
210
+ export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
211
+ /**
212
+ * @param {string} config_json
213
+ * @param {string} private_key
214
+ * @param {number} log_level_num
215
+ * @param {bigint} hasten_multiplier
216
+ * @param {boolean} delete_old_blocks
217
+ * @returns {Promise<any>}
218
+ */
219
+ export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
220
+ /**
243
221
  * @param {string} slip1_utxo_key
244
222
  * @param {string} slip2_utxo_key
245
223
  * @param {string} slip3_utxo_key
@@ -251,25 +229,54 @@ export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: strin
251
229
  export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, left_count: number, right_count: number, tx_msg: Uint8Array): Promise<WasmTransaction>;
252
230
  /**
253
231
  * @param {Uint8Array} buffer
232
+ * @param {number} msg_index
254
233
  * @param {bigint} peer_index
255
234
  * @returns {Promise<void>}
256
235
  */
257
- export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
236
+ export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
258
237
  /**
238
+ * @param {string} public_key
259
239
  * @returns {Promise<Array<any>>}
260
240
  */
261
- export function get_nft_list(): Promise<Array<any>>;
241
+ export function get_account_slips(public_key: string): Promise<Array<any>>;
262
242
  /**
263
- * @param {WasmBalanceSnapshot} snapshot
243
+ * @param {WasmTransaction} tx
264
244
  * @returns {Promise<void>}
265
245
  */
266
- export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
246
+ export function propagate_transaction(tx: WasmTransaction): Promise<void>;
247
+ /**
248
+ * @param {bigint} peer_index
249
+ * @param {string} ip
250
+ * @returns {Promise<void>}
251
+ */
252
+ export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
267
253
  /**
268
254
  * @param {bigint} current_time
269
255
  * @returns {Promise<void>}
270
256
  */
271
257
  export function process_stat_interval(current_time: bigint): Promise<void>;
272
258
  /**
259
+ * @param {bigint} peer_index
260
+ * @returns {Promise<void>}
261
+ */
262
+ export function process_peer_disconnection(peer_index: bigint): Promise<void>;
263
+ /**
264
+ * @param {bigint} num
265
+ * @param {bigint} deposit
266
+ * @param {Uint8Array} tx_msg
267
+ * @param {bigint} fee
268
+ * @param {string} recipient_public_key
269
+ * @param {string} nft_type
270
+ * @returns {Promise<WasmTransaction>}
271
+ */
272
+ export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
273
+ /**
274
+ * @param {Uint8Array} buffer
275
+ * @param {string} private_key
276
+ * @returns {string}
277
+ */
278
+ export function sign_buffer(buffer: Uint8Array, private_key: string): string;
279
+ /**
273
280
  */
274
281
  export class SaitoWasm {
275
282
  free(): void;
@@ -967,34 +974,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
967
974
 
968
975
  export interface InitOutput {
969
976
  readonly memory: WebAssembly.Memory;
970
- readonly __wbg_wasmhop_free: (a: number) => void;
971
- readonly __wbg_wasmstats_free: (a: number) => void;
972
- readonly wasmhop_from: (a: number, b: number) => void;
973
- readonly wasmhop_sig: (a: number, b: number) => void;
974
- readonly wasmhop_to: (a: number, b: number) => void;
975
- readonly __wbg_wasmtransaction_free: (a: number) => void;
976
- readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
977
- readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
978
- readonly wasmtransaction_deserialize: (a: number, b: number) => void;
979
- readonly wasmtransaction_from: (a: number) => number;
980
- readonly wasmtransaction_get_data: (a: number) => number;
981
- readonly wasmtransaction_get_routing_path: (a: number) => number;
982
- readonly wasmtransaction_get_timestamp: (a: number) => number;
983
- readonly wasmtransaction_get_txs_replacements: (a: number) => number;
984
- readonly wasmtransaction_get_type: (a: number) => number;
985
- readonly wasmtransaction_is_from: (a: number, b: number) => number;
986
- readonly wasmtransaction_is_to: (a: number, b: number) => number;
987
- readonly wasmtransaction_new: () => number;
988
- readonly wasmtransaction_serialize: (a: number) => number;
989
- readonly wasmtransaction_set_data: (a: number, b: number) => void;
990
- readonly wasmtransaction_set_signature: (a: number, b: number) => void;
991
- readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
992
- readonly wasmtransaction_set_txs_replacements: (a: number, b: number) => void;
993
- readonly wasmtransaction_set_type: (a: number, b: number) => void;
994
- readonly wasmtransaction_sign: (a: number) => number;
995
- readonly wasmtransaction_signature: (a: number) => number;
996
- readonly wasmtransaction_to: (a: number) => number;
997
- readonly wasmtransaction_total_fees: (a: number) => number;
998
977
  readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
999
978
  readonly __wbg_wasmconfiguration_free: (a: number) => void;
1000
979
  readonly __wbg_wasmnft_free: (a: number) => void;
@@ -1014,6 +993,11 @@ export interface InitOutput {
1014
993
  readonly wasmnft_slip2: (a: number) => number;
1015
994
  readonly wasmnft_slip3: (a: number) => number;
1016
995
  readonly wasmnft_tx_sig: (a: number) => number;
996
+ readonly __wbg_wasmhop_free: (a: number) => void;
997
+ readonly __wbg_wasmstats_free: (a: number) => void;
998
+ readonly wasmhop_from: (a: number, b: number) => void;
999
+ readonly wasmhop_sig: (a: number, b: number) => void;
1000
+ readonly wasmhop_to: (a: number, b: number) => void;
1017
1001
  readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
1018
1002
  readonly wasmconsensusvalues_avg_income: (a: number) => number;
1019
1003
  readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
@@ -1030,87 +1014,29 @@ export interface InitOutput {
1030
1014
  readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
1031
1015
  readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
1032
1016
  readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
1033
- readonly __wbg_saitowasm_free: (a: number) => void;
1034
- readonly __wbg_wasmblockchain_free: (a: number) => void;
1035
- readonly __wbg_wasmpeerservice_free: (a: number) => void;
1036
- readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
1037
- readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1038
- readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
1039
- readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1040
- readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1041
- readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
1042
- readonly create_transaction_with_multiple_payments: (a: number, b: number, c: number, d: number) => number;
1043
- readonly disable_producing_blocks_by_timer: () => number;
1044
- readonly generate_private_key: () => number;
1045
- readonly generate_public_key: (a: number, b: number) => void;
1046
- readonly get_account_slips: (a: number) => number;
1047
- readonly get_balance_snapshot: (a: number) => number;
1048
- readonly get_block: (a: number) => number;
1049
- readonly get_blockchain: () => number;
1050
- readonly get_confirmations: () => number;
1051
- readonly get_congestion_stats: () => number;
1052
- readonly get_latest_block_hash: () => number;
1053
- readonly get_mempool_txs: () => number;
1054
- readonly get_next_peer_index: () => number;
1055
- readonly get_nft_list: () => number;
1056
- readonly get_peer: (a: number) => number;
1057
- readonly get_peer_stats: () => number;
1058
- readonly get_peers: () => number;
1059
- readonly get_stats: () => number;
1060
- readonly get_wallet: () => number;
1061
- readonly hash: (a: number) => number;
1062
- readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
1063
- readonly is_valid_public_key: (a: number) => number;
1064
- readonly process_failed_block_fetch: (a: number, b: number, c: number) => number;
1065
- readonly process_fetched_block: (a: number, b: number, c: number, d: number) => number;
1066
- readonly process_msg_buffer_from_peer: (a: number, b: number) => number;
1067
- readonly process_new_peer: (a: number, b: number) => number;
1068
- readonly process_peer_disconnection: (a: number) => number;
1069
- readonly process_stat_interval: (a: number) => number;
1070
- readonly process_stun_peer: (a: number, b: number) => number;
1071
- readonly process_timer_event: (a: number) => number;
1072
- readonly produce_block_with_gt: () => number;
1073
- readonly produce_block_without_gt: () => number;
1074
- readonly propagate_transaction: (a: number) => number;
1075
- readonly remove_stun_peer: (a: number) => number;
1076
- readonly send_api_call: (a: number, b: number, c: number) => number;
1077
- readonly send_api_error: (a: number, b: number, c: number) => number;
1078
- readonly send_api_success: (a: number, b: number, c: number) => number;
1079
- readonly set_wallet_version: (a: number, b: number, c: number) => number;
1080
- readonly sign_buffer: (a: number, b: number, c: number) => void;
1081
- readonly start_from_received_ghost_chain: () => number;
1082
- readonly update_from_balance_snapshot: (a: number) => number;
1083
- readonly verify_signature: (a: number, b: number, c: number) => number;
1084
- readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
1085
- readonly wasmblockchain_get_fork_id: (a: number) => number;
1086
- readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
1087
- readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
1088
- readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
1089
- readonly wasmblockchain_get_last_block_hash: (a: number) => number;
1090
- readonly wasmblockchain_get_last_block_id: (a: number) => number;
1091
- readonly wasmblockchain_get_last_burnfee: (a: number) => number;
1092
- readonly wasmblockchain_get_last_timestamp: (a: number) => number;
1093
- readonly wasmblockchain_get_latest_block_id: (a: number) => number;
1094
- readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
1095
- readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
1096
- readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
1097
- readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
1098
- readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
1099
- readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
1100
- readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
1101
- readonly wasmblockchain_reset: (a: number) => number;
1102
- readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
1103
- readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
1104
- readonly wasmpeerservice_get_domain: (a: number) => number;
1105
- readonly wasmpeerservice_get_name: (a: number) => number;
1106
- readonly wasmpeerservice_get_service: (a: number) => number;
1107
- readonly wasmpeerservice_new: () => number;
1108
- readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
1109
- readonly wasmpeerservice_set_name: (a: number, b: number) => void;
1110
- readonly wasmpeerservice_set_service: (a: number, b: number) => void;
1111
- readonly wasmpeerservicelist_new: () => number;
1112
- readonly wasmpeerservicelist_push: (a: number, b: number) => void;
1113
- readonly write_issuance_file: (a: number) => number;
1017
+ readonly __wbg_wasmtransaction_free: (a: number) => void;
1018
+ readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
1019
+ readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
1020
+ readonly wasmtransaction_deserialize: (a: number, b: number) => void;
1021
+ readonly wasmtransaction_from: (a: number) => number;
1022
+ readonly wasmtransaction_get_data: (a: number) => number;
1023
+ readonly wasmtransaction_get_routing_path: (a: number) => number;
1024
+ readonly wasmtransaction_get_timestamp: (a: number) => number;
1025
+ readonly wasmtransaction_get_txs_replacements: (a: number) => number;
1026
+ readonly wasmtransaction_get_type: (a: number) => number;
1027
+ readonly wasmtransaction_is_from: (a: number, b: number) => number;
1028
+ readonly wasmtransaction_is_to: (a: number, b: number) => number;
1029
+ readonly wasmtransaction_new: () => number;
1030
+ readonly wasmtransaction_serialize: (a: number) => number;
1031
+ readonly wasmtransaction_set_data: (a: number, b: number) => void;
1032
+ readonly wasmtransaction_set_signature: (a: number, b: number) => void;
1033
+ readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
1034
+ readonly wasmtransaction_set_txs_replacements: (a: number, b: number) => void;
1035
+ readonly wasmtransaction_set_type: (a: number, b: number) => void;
1036
+ readonly wasmtransaction_sign: (a: number) => number;
1037
+ readonly wasmtransaction_signature: (a: number) => number;
1038
+ readonly wasmtransaction_to: (a: number) => number;
1039
+ readonly wasmtransaction_total_fees: (a: number) => number;
1114
1040
  readonly __wbg_wasmblock_free: (a: number) => void;
1115
1041
  readonly __wbg_wasmpeer_free: (a: number) => void;
1116
1042
  readonly __wbg_wasmslip_free: (a: number) => void;
@@ -1229,6 +1155,88 @@ export interface InitOutput {
1229
1155
  readonly wasmwalletslip_get_amount: (a: number) => number;
1230
1156
  readonly wasmwalletslip_get_block_id: (a: number) => number;
1231
1157
  readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
1158
+ readonly __wbg_saitowasm_free: (a: number) => void;
1159
+ readonly __wbg_wasmblockchain_free: (a: number) => void;
1160
+ readonly __wbg_wasmpeerservice_free: (a: number) => void;
1161
+ readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
1162
+ readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1163
+ readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
1164
+ readonly create_remove_bound_transaction: (a: number, b: number, c: number) => number;
1165
+ readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1166
+ readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1167
+ readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
1168
+ readonly create_transaction_with_multiple_payments: (a: number, b: number, c: number, d: number) => number;
1169
+ readonly disable_producing_blocks_by_timer: () => number;
1170
+ readonly generate_private_key: () => number;
1171
+ readonly generate_public_key: (a: number, b: number) => void;
1172
+ readonly get_account_slips: (a: number) => number;
1173
+ readonly get_balance_snapshot: (a: number) => number;
1174
+ readonly get_block: (a: number) => number;
1175
+ readonly get_blockchain: () => number;
1176
+ readonly get_confirmations: () => number;
1177
+ readonly get_congestion_stats: () => number;
1178
+ readonly get_latest_block_hash: () => number;
1179
+ readonly get_mempool_txs: () => number;
1180
+ readonly get_next_peer_index: () => number;
1181
+ readonly get_nft_list: () => number;
1182
+ readonly get_peer: (a: number) => number;
1183
+ readonly get_peer_stats: () => number;
1184
+ readonly get_peers: () => number;
1185
+ readonly get_stats: () => number;
1186
+ readonly get_wallet: () => number;
1187
+ readonly hash: (a: number) => number;
1188
+ readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
1189
+ readonly is_valid_public_key: (a: number) => number;
1190
+ readonly process_failed_block_fetch: (a: number, b: number, c: number) => number;
1191
+ readonly process_fetched_block: (a: number, b: number, c: number, d: number) => number;
1192
+ readonly process_msg_buffer_from_peer: (a: number, b: number) => number;
1193
+ readonly process_new_peer: (a: number, b: number) => number;
1194
+ readonly process_peer_disconnection: (a: number) => number;
1195
+ readonly process_stat_interval: (a: number) => number;
1196
+ readonly process_stun_peer: (a: number, b: number) => number;
1197
+ readonly process_timer_event: (a: number) => number;
1198
+ readonly produce_block_with_gt: () => number;
1199
+ readonly produce_block_without_gt: () => number;
1200
+ readonly propagate_transaction: (a: number) => number;
1201
+ readonly remove_stun_peer: (a: number) => number;
1202
+ readonly send_api_call: (a: number, b: number, c: number) => number;
1203
+ readonly send_api_error: (a: number, b: number, c: number) => number;
1204
+ readonly send_api_success: (a: number, b: number, c: number) => number;
1205
+ readonly set_wallet_version: (a: number, b: number, c: number) => number;
1206
+ readonly sign_buffer: (a: number, b: number, c: number) => void;
1207
+ readonly start_from_received_ghost_chain: () => number;
1208
+ readonly update_from_balance_snapshot: (a: number) => number;
1209
+ readonly verify_signature: (a: number, b: number, c: number) => number;
1210
+ readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
1211
+ readonly wasmblockchain_get_fork_id: (a: number) => number;
1212
+ readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
1213
+ readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
1214
+ readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
1215
+ readonly wasmblockchain_get_last_block_hash: (a: number) => number;
1216
+ readonly wasmblockchain_get_last_block_id: (a: number) => number;
1217
+ readonly wasmblockchain_get_last_burnfee: (a: number) => number;
1218
+ readonly wasmblockchain_get_last_timestamp: (a: number) => number;
1219
+ readonly wasmblockchain_get_latest_block_id: (a: number) => number;
1220
+ readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
1221
+ readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
1222
+ readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
1223
+ readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
1224
+ readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
1225
+ readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
1226
+ readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
1227
+ readonly wasmblockchain_reset: (a: number) => number;
1228
+ readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
1229
+ readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
1230
+ readonly wasmpeerservice_get_domain: (a: number) => number;
1231
+ readonly wasmpeerservice_get_name: (a: number) => number;
1232
+ readonly wasmpeerservice_get_service: (a: number) => number;
1233
+ readonly wasmpeerservice_new: () => number;
1234
+ readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
1235
+ readonly wasmpeerservice_set_name: (a: number, b: number) => void;
1236
+ readonly wasmpeerservice_set_service: (a: number, b: number) => void;
1237
+ readonly wasmpeerservicelist_new: () => number;
1238
+ readonly wasmpeerservicelist_push: (a: number, b: number) => void;
1239
+ readonly write_issuance_file: (a: number) => number;
1232
1240
  readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
1233
1241
  readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
1234
1242
  readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -1236,11 +1244,11 @@ export interface InitOutput {
1236
1244
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1237
1245
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1238
1246
  readonly __wbindgen_export_2: WebAssembly.Table;
1239
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf760697bf54687ef: (a: number, b: number, c: number) => void;
1247
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18f9d53151d93e96: (a: number, b: number, c: number) => void;
1240
1248
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1241
1249
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1242
1250
  readonly __wbindgen_exn_store: (a: number) => void;
1243
- readonly wasm_bindgen__convert__closures__invoke2_mut__hbc768321d477e205: (a: number, b: number, c: number, d: number) => void;
1251
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h58ba5fc31ee09770: (a: number, b: number, c: number, d: number) => void;
1244
1252
  }
1245
1253
 
1246
1254
  export type SyncInitInput = BufferSource | WebAssembly.Module;