saito-wasm 0.2.174 → 0.2.175

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,48 +1,23 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {Uint8Array} buffer
5
- * @param {Uint8Array} hash
6
- * @param {bigint} block_id
7
- * @param {bigint} peer_index
8
- * @returns {Promise<void>}
9
- */
10
- export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
11
- /**
12
- * @param {Uint8Array} buffer
13
- * @param {number} msg_index
14
- * @param {bigint} peer_index
15
- * @returns {Promise<void>}
4
+ * @returns {Promise<string>}
16
5
  */
17
- export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
6
+ export function get_latest_block_hash(): Promise<string>;
18
7
  /**
19
8
  * @param {string} public_key
20
- * @param {bigint} amount
21
- * @param {bigint} fee
22
- * @param {boolean} force_merge
23
- * @returns {Promise<WasmTransaction>}
9
+ * @returns {Promise<Array<any>>}
24
10
  */
25
- export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
11
+ export function get_account_slips(public_key: string): Promise<Array<any>>;
26
12
  /**
27
- * @param {number} major
28
- * @param {number} minor
29
- * @param {number} patch
13
+ * @param {bigint} peer_index
30
14
  * @returns {Promise<void>}
31
15
  */
32
- export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
33
- /**
34
- * @returns {Promise<string>}
35
- */
36
- export function get_stats(): Promise<string>;
37
- /**
38
- * @returns {Promise<string>}
39
- */
40
- export function get_peer_stats(): Promise<string>;
16
+ export function process_peer_disconnection(peer_index: bigint): Promise<void>;
41
17
  /**
42
- * @param {string} key
43
- * @returns {boolean}
18
+ * @returns {Promise<any>}
44
19
  */
45
- export function is_valid_public_key(key: string): boolean;
20
+ export function get_confirmations(): Promise<any>;
46
21
  /**
47
22
  * @param {bigint} amt
48
23
  * @param {string} slip1_utxo_key
@@ -54,10 +29,29 @@ export function is_valid_public_key(key: string): boolean;
54
29
  */
55
30
  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>;
56
31
  /**
57
- * @param {bigint} peer_index
32
+ * @param {string} config_json
33
+ * @param {string} private_key
34
+ * @param {number} log_level_num
35
+ * @param {bigint} hasten_multiplier
36
+ * @param {boolean} delete_old_blocks
37
+ * @returns {Promise<any>}
38
+ */
39
+ export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
40
+ /**
41
+ * @param {WasmTransaction} tx
58
42
  * @returns {Promise<void>}
59
43
  */
60
- export function process_peer_disconnection(peer_index: bigint): Promise<void>;
44
+ export function propagate_transaction(tx: WasmTransaction): Promise<void>;
45
+ /**
46
+ * @param {Array<any>} keys
47
+ * @returns {Promise<WasmBalanceSnapshot>}
48
+ */
49
+ export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
50
+ /**
51
+ * @param {Uint8Array} buffer
52
+ * @returns {string}
53
+ */
54
+ export function hash(buffer: Uint8Array): string;
61
55
  /**
62
56
  * @param {string} nft_id_hex
63
57
  * @param {Uint8Array} tx_msg
@@ -65,39 +59,63 @@ export function process_peer_disconnection(peer_index: bigint): Promise<void>;
65
59
  */
66
60
  export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
67
61
  /**
68
- * @param {string} private_key
69
- * @returns {string}
62
+ * @param {Uint8Array} buffer
63
+ * @param {Uint8Array} hash
64
+ * @param {bigint} block_id
65
+ * @param {bigint} peer_index
66
+ * @returns {Promise<void>}
70
67
  */
71
- export function generate_public_key(private_key: string): string;
68
+ export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
72
69
  /**
70
+ * @param {Uint8Array} hash
71
+ * @param {bigint} block_id
73
72
  * @param {bigint} peer_index
74
- * @param {string} public_key
75
73
  * @returns {Promise<void>}
76
74
  */
77
- export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
75
+ export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
78
76
  /**
79
- * @param {Array<any>} keys
80
- * @returns {Promise<WasmBalanceSnapshot>}
77
+ * @param {number} major
78
+ * @param {number} minor
79
+ * @param {number} patch
80
+ * @returns {Promise<void>}
81
81
  */
82
- export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
82
+ export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
83
83
  /**
84
- * @returns {Promise<WasmWallet>}
84
+ * @param {WasmBalanceSnapshot} snapshot
85
+ * @returns {Promise<void>}
85
86
  */
86
- export function get_wallet(): Promise<WasmWallet>;
87
+ export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
87
88
  /**
88
- * @param {string} config_json
89
89
  * @param {string} private_key
90
- * @param {number} log_level_num
91
- * @param {bigint} hasten_multiplier
92
- * @param {boolean} delete_old_blocks
93
- * @returns {Promise<any>}
90
+ * @returns {string}
94
91
  */
95
- export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
92
+ export function generate_public_key(private_key: string): string;
93
+ /**
94
+ * @param {Uint8Array} buffer
95
+ * @param {string} signature
96
+ * @param {string} public_key
97
+ * @returns {boolean}
98
+ */
99
+ export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
96
100
  /**
101
+ * @param {Uint8Array} buffer
97
102
  * @param {bigint} peer_index
98
103
  * @returns {Promise<void>}
99
104
  */
100
- export function remove_stun_peer(peer_index: bigint): Promise<void>;
105
+ export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
106
+ /**
107
+ * @param {bigint} threshold
108
+ * @returns {Promise<void>}
109
+ */
110
+ export function write_issuance_file(threshold: bigint): Promise<void>;
111
+ /**
112
+ * @returns {Promise<bigint>}
113
+ */
114
+ export function get_next_peer_index(): Promise<bigint>;
115
+ /**
116
+ * @returns {Promise<string>}
117
+ */
118
+ export function get_congestion_stats(): Promise<string>;
101
119
  /**
102
120
  * @param {bigint} num
103
121
  * @param {bigint} deposit
@@ -109,55 +127,49 @@ export function remove_stun_peer(peer_index: bigint): Promise<void>;
109
127
  */
110
128
  export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
111
129
  /**
112
- * @param {string} slip1_utxo_key
113
- * @param {string} slip2_utxo_key
114
- * @param {string} slip3_utxo_key
115
- * @returns {Promise<WasmTransaction>}
130
+ * @returns {Promise<Array<any>>}
116
131
  */
117
- export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string): Promise<WasmTransaction>;
132
+ export function get_mempool_txs(): Promise<Array<any>>;
118
133
  /**
119
- * @param {bigint} current_time
120
134
  * @returns {Promise<void>}
121
135
  */
122
- export function process_stat_interval(current_time: bigint): Promise<void>;
123
- /**
124
- * @param {Array<any>} public_keys
125
- * @param {BigUint64Array} amounts
126
- * @param {bigint} fee
127
- * @param {boolean} _force_merge
128
- * @returns {Promise<WasmTransaction>}
129
- */
130
- export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
131
- /**
132
- * @returns {Promise<bigint>}
133
- */
134
- export function get_next_peer_index(): Promise<bigint>;
136
+ export function start_from_received_ghost_chain(): Promise<void>;
135
137
  /**
136
138
  * @param {bigint} duration_in_ms
137
139
  * @returns {Promise<void>}
138
140
  */
139
141
  export function process_timer_event(duration_in_ms: bigint): Promise<void>;
140
142
  /**
141
- * @returns {Promise<any>}
143
+ * @param {bigint} peer_index
144
+ * @param {string} ip
145
+ * @returns {Promise<void>}
142
146
  */
143
- export function get_confirmations(): Promise<any>;
147
+ export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
144
148
  /**
145
- * @param {Uint8Array} buffer
146
- * @param {bigint} peer_index
149
+ * @param {bigint} current_time
147
150
  * @returns {Promise<void>}
148
151
  */
149
- export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
152
+ export function process_stat_interval(current_time: bigint): Promise<void>;
153
+ /**
154
+ * @param {bigint} peer_index
155
+ * @returns {Promise<WasmPeer | undefined>}
156
+ */
157
+ export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
150
158
  /**
151
159
  * @param {Uint8Array} buffer
152
160
  * @param {number} msg_index
153
161
  * @param {bigint} peer_index
154
162
  * @returns {Promise<void>}
155
163
  */
156
- export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
164
+ export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
157
165
  /**
158
- * @returns {Promise<Array<any>>}
166
+ * @param {string} slip1_utxo_key
167
+ * @param {string} slip2_utxo_key
168
+ * @param {string} slip3_utxo_key
169
+ * @param {Uint8Array} tx_msg
170
+ * @returns {Promise<WasmTransaction>}
159
171
  */
160
- export function get_nft_list(): Promise<Array<any>>;
172
+ export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
161
173
  /**
162
174
  * @param {Uint8Array} buffer
163
175
  * @param {string} private_key
@@ -165,48 +177,36 @@ export function get_nft_list(): Promise<Array<any>>;
165
177
  */
166
178
  export function sign_buffer(buffer: Uint8Array, private_key: string): string;
167
179
  /**
168
- * @param {WasmBalanceSnapshot} snapshot
169
- * @returns {Promise<void>}
170
- */
171
- export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
172
- /**
173
- * @param {WasmTransaction} tx
174
- * @returns {Promise<void>}
175
- */
176
- export function propagate_transaction(tx: WasmTransaction): Promise<void>;
177
- /**
178
- * @returns {Promise<string>}
180
+ * @param {string} key
181
+ * @returns {boolean}
179
182
  */
180
- export function get_latest_block_hash(): Promise<string>;
183
+ export function is_valid_public_key(key: string): boolean;
181
184
  /**
182
- * @returns {Promise<boolean>}
185
+ * @returns {Promise<WasmWallet>}
183
186
  */
184
- export function produce_block_with_gt(): Promise<boolean>;
187
+ export function get_wallet(): Promise<WasmWallet>;
185
188
  /**
186
- * @returns {Promise<boolean>}
189
+ * @param {string} block_hash
190
+ * @returns {Promise<WasmBlock>}
187
191
  */
188
- export function produce_block_without_gt(): Promise<boolean>;
192
+ export function get_block(block_hash: string): Promise<WasmBlock>;
189
193
  /**
190
- * @param {Uint8Array} buffer
191
- * @param {string} signature
194
+ * @param {bigint} peer_index
192
195
  * @param {string} public_key
193
- * @returns {boolean}
194
- */
195
- export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
196
- /**
197
- * @returns {string}
196
+ * @returns {Promise<void>}
198
197
  */
199
- export function generate_private_key(): string;
198
+ export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
200
199
  /**
201
- * @param {bigint} threshold
200
+ * @param {Uint8Array} buffer
201
+ * @param {number} msg_index
202
+ * @param {bigint} peer_index
202
203
  * @returns {Promise<void>}
203
204
  */
204
- export function write_issuance_file(threshold: bigint): Promise<void>;
205
+ export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
205
206
  /**
206
- * @param {Uint8Array} buffer
207
- * @returns {string}
207
+ * @returns {Promise<WasmBlockchain>}
208
208
  */
209
- export function hash(buffer: Uint8Array): string;
209
+ export function get_blockchain(): Promise<WasmBlockchain>;
210
210
  /**
211
211
  * @returns {Promise<void>}
212
212
  */
@@ -214,30 +214,31 @@ export function disable_producing_blocks_by_timer(): Promise<void>;
214
214
  /**
215
215
  * @returns {Promise<string>}
216
216
  */
217
- export function get_congestion_stats(): Promise<string>;
217
+ export function get_stats(): Promise<string>;
218
218
  /**
219
- * @param {Uint8Array} hash
220
- * @param {bigint} block_id
221
- * @param {bigint} peer_index
222
- * @returns {Promise<void>}
219
+ * @returns {Promise<Array<any>>}
223
220
  */
224
- export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
221
+ export function get_nft_list(): Promise<Array<any>>;
225
222
  /**
226
- * @returns {Promise<WasmBlockchain>}
223
+ * @returns {Promise<Array<any>>}
227
224
  */
228
- export function get_blockchain(): Promise<WasmBlockchain>;
225
+ export function get_peers(): Promise<Array<any>>;
229
226
  /**
227
+ * @param {bigint} peer_index
230
228
  * @returns {Promise<void>}
231
229
  */
232
- export function start_from_received_ghost_chain(): Promise<void>;
230
+ export function remove_stun_peer(peer_index: bigint): Promise<void>;
233
231
  /**
234
- * @returns {Promise<Array<any>>}
232
+ * @param {Uint8Array} buffer
233
+ * @param {number} msg_index
234
+ * @param {bigint} peer_index
235
+ * @returns {Promise<void>}
235
236
  */
236
- export function get_mempool_txs(): Promise<Array<any>>;
237
+ export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
237
238
  /**
238
- * @returns {Promise<Array<any>>}
239
+ * @returns {Promise<boolean>}
239
240
  */
240
- export function get_peers(): Promise<Array<any>>;
241
+ export function produce_block_with_gt(): Promise<boolean>;
241
242
  /**
242
243
  * @param {string} slip1_utxo_key
243
244
  * @param {string} slip2_utxo_key
@@ -249,33 +250,33 @@ export function get_peers(): Promise<Array<any>>;
249
250
  */
250
251
  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>;
251
252
  /**
252
- * @param {string} public_key
253
- * @returns {Promise<Array<any>>}
253
+ * @returns {string}
254
254
  */
255
- export function get_account_slips(public_key: string): Promise<Array<any>>;
255
+ export function generate_private_key(): string;
256
256
  /**
257
- * @param {string} block_hash
258
- * @returns {Promise<WasmBlock>}
257
+ * @returns {Promise<string>}
259
258
  */
260
- export function get_block(block_hash: string): Promise<WasmBlock>;
259
+ export function get_peer_stats(): Promise<string>;
261
260
  /**
262
- * @param {bigint} peer_index
263
- * @returns {Promise<WasmPeer | undefined>}
261
+ * @param {Array<any>} public_keys
262
+ * @param {BigUint64Array} amounts
263
+ * @param {bigint} fee
264
+ * @param {boolean} _force_merge
265
+ * @returns {Promise<WasmTransaction>}
264
266
  */
265
- export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
267
+ export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
266
268
  /**
267
- * @param {bigint} peer_index
268
- * @param {string} ip
269
- * @returns {Promise<void>}
269
+ * @param {string} public_key
270
+ * @param {bigint} amount
271
+ * @param {bigint} fee
272
+ * @param {boolean} force_merge
273
+ * @returns {Promise<WasmTransaction>}
270
274
  */
271
- export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
275
+ export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
272
276
  /**
273
- * @param {Uint8Array} buffer
274
- * @param {number} msg_index
275
- * @param {bigint} peer_index
276
- * @returns {Promise<void>}
277
+ * @returns {Promise<boolean>}
277
278
  */
278
- export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
279
+ export function produce_block_without_gt(): Promise<boolean>;
279
280
  /**
280
281
  */
281
282
  export class SaitoWasm {
@@ -991,39 +992,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
991
992
 
992
993
  export interface InitOutput {
993
994
  readonly memory: WebAssembly.Memory;
994
- readonly __wbg_wasmconfiguration_free: (a: number) => void;
995
- readonly __wbg_wasmhop_free: (a: number) => void;
996
- readonly __wbg_wasmpeerservice_free: (a: number) => void;
997
- readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
998
- readonly wasmconfiguration_new: () => number;
999
- readonly wasmhop_from: (a: number, b: number) => void;
1000
- readonly wasmhop_sig: (a: number, b: number) => void;
1001
- readonly wasmhop_to: (a: number, b: number) => void;
1002
- readonly wasmpeerservice_get_domain: (a: number) => number;
1003
- readonly wasmpeerservice_get_name: (a: number) => number;
1004
- readonly wasmpeerservice_get_service: (a: number) => number;
1005
- readonly wasmpeerservice_new: () => number;
1006
- readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
1007
- readonly wasmpeerservice_set_name: (a: number, b: number) => void;
1008
- readonly wasmpeerservice_set_service: (a: number, b: number) => void;
1009
- readonly wasmpeerservicelist_new: () => number;
1010
- readonly wasmpeerservicelist_push: (a: number, b: number) => void;
1011
- readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
1012
- readonly wasmconsensusvalues_avg_income: (a: number) => number;
1013
- readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
1014
- readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
1015
- readonly wasmconsensusvalues_ft_index: (a: number) => number;
1016
- readonly wasmconsensusvalues_ft_num: (a: number) => number;
1017
- readonly wasmconsensusvalues_gt_index: (a: number) => number;
1018
- readonly wasmconsensusvalues_it_index: (a: number) => number;
1019
- readonly wasmconsensusvalues_it_num: (a: number) => number;
1020
- readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
1021
- readonly wasmconsensusvalues_total_fees: (a: number) => number;
1022
- readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
1023
- readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
1024
- readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
1025
- readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
1026
- readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
995
+ readonly __wbg_wasmstats_free: (a: number) => void;
1027
996
  readonly __wbg_wasmblock_free: (a: number) => void;
1028
997
  readonly __wbg_wasmtransaction_free: (a: number) => void;
1029
998
  readonly wasmblock_avg_fee_per_byte: (a: number) => number;
@@ -1107,12 +1076,73 @@ export interface InitOutput {
1107
1076
  readonly wasmtransaction_to: (a: number) => number;
1108
1077
  readonly wasmtransaction_total_fees: (a: number) => number;
1109
1078
  readonly wasmblock_avg_total_fees: (a: number) => number;
1110
- readonly __wbg_saitowasm_free: (a: number) => void;
1111
- readonly __wbg_wasmblockchain_free: (a: number) => void;
1079
+ readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
1080
+ readonly __wbg_wasmconfiguration_free: (a: number) => void;
1081
+ readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
1082
+ readonly __wbg_wasmhop_free: (a: number) => void;
1112
1083
  readonly __wbg_wasmnft_free: (a: number) => void;
1084
+ readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
1085
+ readonly wasmbalancesnapshot_get_entries: (a: number) => number;
1086
+ readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
1087
+ readonly wasmbalancesnapshot_to_string: (a: number) => number;
1088
+ readonly wasmconfiguration_new: () => number;
1089
+ readonly wasmconsensusvalues_avg_income: (a: number) => number;
1090
+ readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
1091
+ readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
1092
+ readonly wasmconsensusvalues_ft_index: (a: number) => number;
1093
+ readonly wasmconsensusvalues_ft_num: (a: number) => number;
1094
+ readonly wasmconsensusvalues_gt_index: (a: number) => number;
1095
+ readonly wasmconsensusvalues_it_index: (a: number) => number;
1096
+ readonly wasmconsensusvalues_it_num: (a: number) => number;
1097
+ readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
1098
+ readonly wasmconsensusvalues_total_fees: (a: number) => number;
1099
+ readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
1100
+ readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
1101
+ readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
1102
+ readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
1103
+ readonly wasmhop_from: (a: number, b: number) => void;
1104
+ readonly wasmhop_sig: (a: number, b: number) => void;
1105
+ readonly wasmhop_to: (a: number, b: number) => void;
1106
+ readonly wasmnft_id: (a: number) => number;
1107
+ readonly wasmnft_new: () => number;
1108
+ readonly wasmnft_set_id: (a: number, b: number) => void;
1109
+ readonly wasmnft_set_slip1: (a: number, b: number) => void;
1110
+ readonly wasmnft_set_slip2: (a: number, b: number) => void;
1111
+ readonly wasmnft_set_slip3: (a: number, b: number) => void;
1112
+ readonly wasmnft_set_tx_sig: (a: number, b: number) => void;
1113
+ readonly wasmnft_slip1: (a: number) => number;
1114
+ readonly wasmnft_slip2: (a: number) => number;
1115
+ readonly wasmnft_slip3: (a: number) => number;
1116
+ readonly wasmnft_tx_sig: (a: number) => number;
1117
+ readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
1118
+ readonly __wbg_wasmblockchain_free: (a: number) => void;
1119
+ readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
1120
+ readonly wasmblockchain_get_fork_id: (a: number) => number;
1121
+ readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
1122
+ readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
1123
+ readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
1124
+ readonly wasmblockchain_get_last_block_hash: (a: number) => number;
1125
+ readonly wasmblockchain_get_last_block_id: (a: number) => number;
1126
+ readonly wasmblockchain_get_last_burnfee: (a: number) => number;
1127
+ readonly wasmblockchain_get_last_timestamp: (a: number) => number;
1128
+ readonly wasmblockchain_get_latest_block_id: (a: number) => number;
1129
+ readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
1130
+ readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
1131
+ readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
1132
+ readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
1133
+ readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
1134
+ readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
1135
+ readonly wasmblockchain_is_slip_spendable: (a: number, b: number) => number;
1136
+ readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
1137
+ readonly wasmblockchain_reset: (a: number) => number;
1138
+ readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
1139
+ readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
1140
+ readonly __wbg_saitowasm_free: (a: number) => void;
1141
+ readonly __wbg_wasmpeerservice_free: (a: number) => void;
1142
+ readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
1113
1143
  readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1114
1144
  readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
1115
- readonly create_remove_bound_transaction: (a: number, b: number, c: number) => number;
1145
+ readonly create_remove_bound_transaction: (a: number, b: number, c: number, d: number) => number;
1116
1146
  readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1117
1147
  readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1118
1148
  readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
@@ -1158,48 +1188,20 @@ export interface InitOutput {
1158
1188
  readonly start_from_received_ghost_chain: () => number;
1159
1189
  readonly update_from_balance_snapshot: (a: number) => number;
1160
1190
  readonly verify_signature: (a: number, b: number, c: number) => number;
1161
- readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
1162
- readonly wasmblockchain_get_fork_id: (a: number) => number;
1163
- readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
1164
- readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
1165
- readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
1166
- readonly wasmblockchain_get_last_block_hash: (a: number) => number;
1167
- readonly wasmblockchain_get_last_block_id: (a: number) => number;
1168
- readonly wasmblockchain_get_last_burnfee: (a: number) => number;
1169
- readonly wasmblockchain_get_last_timestamp: (a: number) => number;
1170
- readonly wasmblockchain_get_latest_block_id: (a: number) => number;
1171
- readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
1172
- readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
1173
- readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
1174
- readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
1175
- readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
1176
- readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
1177
- readonly wasmblockchain_is_slip_spendable: (a: number, b: number) => number;
1178
- readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
1179
- readonly wasmblockchain_reset: (a: number) => number;
1180
- readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
1181
- readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
1182
- readonly wasmnft_id: (a: number) => number;
1183
- readonly wasmnft_new: () => number;
1184
- readonly wasmnft_set_id: (a: number, b: number) => void;
1185
- readonly wasmnft_set_slip1: (a: number, b: number) => void;
1186
- readonly wasmnft_set_slip2: (a: number, b: number) => void;
1187
- readonly wasmnft_set_slip3: (a: number, b: number) => void;
1188
- readonly wasmnft_set_tx_sig: (a: number, b: number) => void;
1189
- readonly wasmnft_slip1: (a: number) => number;
1190
- readonly wasmnft_slip2: (a: number) => number;
1191
- readonly wasmnft_slip3: (a: number) => number;
1192
- readonly wasmnft_tx_sig: (a: number) => number;
1191
+ readonly wasmpeerservice_get_domain: (a: number) => number;
1192
+ readonly wasmpeerservice_get_name: (a: number) => number;
1193
+ readonly wasmpeerservice_get_service: (a: number) => number;
1194
+ readonly wasmpeerservice_new: () => number;
1195
+ readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
1196
+ readonly wasmpeerservice_set_name: (a: number, b: number) => void;
1197
+ readonly wasmpeerservice_set_service: (a: number, b: number) => void;
1198
+ readonly wasmpeerservicelist_new: () => number;
1199
+ readonly wasmpeerservicelist_push: (a: number, b: number) => void;
1193
1200
  readonly write_issuance_file: (a: number) => number;
1194
- readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
1195
1201
  readonly __wbg_wasmpeer_free: (a: number) => void;
1196
1202
  readonly __wbg_wasmslip_free: (a: number) => void;
1197
1203
  readonly __wbg_wasmwallet_free: (a: number) => void;
1198
1204
  readonly __wbg_wasmwalletslip_free: (a: number) => void;
1199
- readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
1200
- readonly wasmbalancesnapshot_get_entries: (a: number) => number;
1201
- readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
1202
- readonly wasmbalancesnapshot_to_string: (a: number) => number;
1203
1205
  readonly wasmpeer_get_key_list: (a: number) => number;
1204
1206
  readonly wasmpeer_get_peer_index: (a: number) => number;
1205
1207
  readonly wasmpeer_get_public_key: (a: number) => number;
@@ -1257,7 +1259,6 @@ export interface InitOutput {
1257
1259
  readonly wasmwalletslip_get_amount: (a: number) => number;
1258
1260
  readonly wasmwalletslip_get_block_id: (a: number) => number;
1259
1261
  readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
1260
- readonly __wbg_wasmstats_free: (a: number) => void;
1261
1262
  readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
1262
1263
  readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
1263
1264
  readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -1265,11 +1266,11 @@ export interface InitOutput {
1265
1266
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1266
1267
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1267
1268
  readonly __wbindgen_export_2: WebAssembly.Table;
1268
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18f9d53151d93e96: (a: number, b: number, c: number) => void;
1269
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f20d323127f6aa2: (a: number, b: number, c: number) => void;
1269
1270
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1270
1271
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1271
1272
  readonly __wbindgen_exn_store: (a: number) => void;
1272
- readonly wasm_bindgen__convert__closures__invoke2_mut__h58ba5fc31ee09770: (a: number, b: number, c: number, d: number) => void;
1273
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h67b6352f6b82f267: (a: number, b: number, c: number, d: number) => void;
1273
1274
  }
1274
1275
 
1275
1276
  export type SyncInitInput = BufferSource | WebAssembly.Module;