saito-wasm 0.2.173 → 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.
@@ -3,34 +3,55 @@
3
3
  /**
4
4
  * @returns {Promise<string>}
5
5
  */
6
- export function get_peer_stats(): Promise<string>;
6
+ export function get_latest_block_hash(): Promise<string>;
7
+ /**
8
+ * @param {string} public_key
9
+ * @returns {Promise<Array<any>>}
10
+ */
11
+ export function get_account_slips(public_key: string): Promise<Array<any>>;
12
+ /**
13
+ * @param {bigint} peer_index
14
+ * @returns {Promise<void>}
15
+ */
16
+ export function process_peer_disconnection(peer_index: bigint): Promise<void>;
17
+ /**
18
+ * @returns {Promise<any>}
19
+ */
20
+ export function get_confirmations(): Promise<any>;
7
21
  /**
22
+ * @param {bigint} amt
8
23
  * @param {string} slip1_utxo_key
9
24
  * @param {string} slip2_utxo_key
10
25
  * @param {string} slip3_utxo_key
11
- * @param {number} left_count
12
- * @param {number} right_count
26
+ * @param {string} recipient_public_key
13
27
  * @param {Uint8Array} tx_msg
14
28
  * @returns {Promise<WasmTransaction>}
15
29
  */
16
- 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>;
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>;
17
31
  /**
18
- * @param {Uint8Array} buffer
19
- * @param {bigint} peer_index
20
- * @returns {Promise<void>}
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>}
21
38
  */
22
- export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
39
+ export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
23
40
  /**
24
- * @param {number} major
25
- * @param {number} minor
26
- * @param {number} patch
41
+ * @param {WasmTransaction} tx
27
42
  * @returns {Promise<void>}
28
43
  */
29
- export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
44
+ export function propagate_transaction(tx: WasmTransaction): Promise<void>;
30
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
31
52
  * @returns {string}
32
53
  */
33
- export function generate_private_key(): string;
54
+ export function hash(buffer: Uint8Array): string;
34
55
  /**
35
56
  * @param {string} nft_id_hex
36
57
  * @param {Uint8Array} tx_msg
@@ -38,13 +59,13 @@ export function generate_private_key(): string;
38
59
  */
39
60
  export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
40
61
  /**
41
- * @returns {Promise<boolean>}
42
- */
43
- export function produce_block_with_gt(): Promise<boolean>;
44
- /**
45
- * @returns {Promise<Array<any>>}
62
+ * @param {Uint8Array} buffer
63
+ * @param {Uint8Array} hash
64
+ * @param {bigint} block_id
65
+ * @param {bigint} peer_index
66
+ * @returns {Promise<void>}
46
67
  */
47
- export function get_nft_list(): Promise<Array<any>>;
68
+ export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
48
69
  /**
49
70
  * @param {Uint8Array} hash
50
71
  * @param {bigint} block_id
@@ -53,15 +74,48 @@ export function get_nft_list(): Promise<Array<any>>;
53
74
  */
54
75
  export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
55
76
  /**
56
- * @returns {Promise<WasmBlockchain>}
77
+ * @param {number} major
78
+ * @param {number} minor
79
+ * @param {number} patch
80
+ * @returns {Promise<void>}
57
81
  */
58
- export function get_blockchain(): Promise<WasmBlockchain>;
82
+ export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
59
83
  /**
60
- * @param {bigint} peer_index
84
+ * @param {WasmBalanceSnapshot} snapshot
85
+ * @returns {Promise<void>}
86
+ */
87
+ export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
88
+ /**
89
+ * @param {string} private_key
90
+ * @returns {string}
91
+ */
92
+ export function generate_public_key(private_key: string): string;
93
+ /**
94
+ * @param {Uint8Array} buffer
95
+ * @param {string} signature
61
96
  * @param {string} public_key
97
+ * @returns {boolean}
98
+ */
99
+ export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
100
+ /**
101
+ * @param {Uint8Array} buffer
102
+ * @param {bigint} peer_index
62
103
  * @returns {Promise<void>}
63
104
  */
64
- export function process_stun_peer(peer_index: bigint, public_key: string): 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>;
65
119
  /**
66
120
  * @param {bigint} num
67
121
  * @param {bigint} deposit
@@ -73,110 +127,75 @@ export function process_stun_peer(peer_index: bigint, public_key: string): Promi
73
127
  */
74
128
  export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
75
129
  /**
76
- * @param {WasmBalanceSnapshot} snapshot
77
- * @returns {Promise<void>}
78
- */
79
- export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
80
- /**
81
- * @returns {Promise<string>}
130
+ * @returns {Promise<Array<any>>}
82
131
  */
83
- export function get_latest_block_hash(): Promise<string>;
132
+ export function get_mempool_txs(): Promise<Array<any>>;
84
133
  /**
85
- * @param {Array<any>} keys
86
- * @returns {Promise<WasmBalanceSnapshot>}
134
+ * @returns {Promise<void>}
87
135
  */
88
- export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
136
+ export function start_from_received_ghost_chain(): Promise<void>;
89
137
  /**
90
- * @returns {Promise<string>}
138
+ * @param {bigint} duration_in_ms
139
+ * @returns {Promise<void>}
91
140
  */
92
- export function get_stats(): Promise<string>;
141
+ export function process_timer_event(duration_in_ms: bigint): Promise<void>;
93
142
  /**
94
- * @param {Uint8Array} buffer
95
- * @returns {string}
143
+ * @param {bigint} peer_index
144
+ * @param {string} ip
145
+ * @returns {Promise<void>}
96
146
  */
97
- export function hash(buffer: Uint8Array): string;
147
+ export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
98
148
  /**
99
- * @returns {Promise<string>}
149
+ * @param {bigint} current_time
150
+ * @returns {Promise<void>}
100
151
  */
101
- export function get_congestion_stats(): Promise<string>;
152
+ export function process_stat_interval(current_time: bigint): Promise<void>;
102
153
  /**
103
- * @param {Uint8Array} buffer
104
- * @param {Uint8Array} hash
105
- * @param {bigint} block_id
106
154
  * @param {bigint} peer_index
107
- * @returns {Promise<void>}
155
+ * @returns {Promise<WasmPeer | undefined>}
108
156
  */
109
- export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
157
+ export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
110
158
  /**
111
159
  * @param {Uint8Array} buffer
112
160
  * @param {number} msg_index
113
161
  * @param {bigint} peer_index
114
162
  * @returns {Promise<void>}
115
163
  */
116
- export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
117
- /**
118
- * @param {string} slip1_utxo_key
119
- * @param {string} slip2_utxo_key
120
- * @param {string} slip3_utxo_key
121
- * @returns {Promise<WasmTransaction>}
122
- */
123
- export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string): Promise<WasmTransaction>;
164
+ export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
124
165
  /**
125
- * @param {bigint} amt
126
166
  * @param {string} slip1_utxo_key
127
167
  * @param {string} slip2_utxo_key
128
168
  * @param {string} slip3_utxo_key
129
- * @param {string} recipient_public_key
130
169
  * @param {Uint8Array} tx_msg
131
170
  * @returns {Promise<WasmTransaction>}
132
171
  */
133
- 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>;
172
+ export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
134
173
  /**
135
- * @param {bigint} peer_index
136
- * @returns {Promise<void>}
137
- */
138
- export function process_peer_disconnection(peer_index: bigint): Promise<void>;
139
- /**
140
- * @returns {Promise<bigint>}
174
+ * @param {Uint8Array} buffer
175
+ * @param {string} private_key
176
+ * @returns {string}
141
177
  */
142
- export function get_next_peer_index(): Promise<bigint>;
178
+ export function sign_buffer(buffer: Uint8Array, private_key: string): string;
143
179
  /**
144
- * @param {string} public_key
145
- * @param {bigint} amount
146
- * @param {bigint} fee
147
- * @param {boolean} force_merge
148
- * @returns {Promise<WasmTransaction>}
180
+ * @param {string} key
181
+ * @returns {boolean}
149
182
  */
150
- export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
183
+ export function is_valid_public_key(key: string): boolean;
151
184
  /**
152
- * @param {Uint8Array} buffer
153
- * @param {string} signature
154
- * @param {string} public_key
155
- * @returns {boolean}
185
+ * @returns {Promise<WasmWallet>}
156
186
  */
157
- export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
187
+ export function get_wallet(): Promise<WasmWallet>;
158
188
  /**
159
- * @returns {Promise<void>}
189
+ * @param {string} block_hash
190
+ * @returns {Promise<WasmBlock>}
160
191
  */
161
- export function start_from_received_ghost_chain(): Promise<void>;
192
+ export function get_block(block_hash: string): Promise<WasmBlock>;
162
193
  /**
163
194
  * @param {bigint} peer_index
195
+ * @param {string} public_key
164
196
  * @returns {Promise<void>}
165
197
  */
166
- export function remove_stun_peer(peer_index: bigint): Promise<void>;
167
- /**
168
- * @param {string} config_json
169
- * @param {string} private_key
170
- * @param {number} log_level_num
171
- * @param {bigint} hasten_multiplier
172
- * @param {boolean} delete_old_blocks
173
- * @returns {Promise<any>}
174
- */
175
- export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
176
- /**
177
- * @returns {Promise<WasmWallet>}
178
- */
179
- export function get_wallet(): Promise<WasmWallet>;
198
+ export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
180
199
  /**
181
200
  * @param {Uint8Array} buffer
182
201
  * @param {number} msg_index
@@ -185,64 +204,59 @@ export function get_wallet(): Promise<WasmWallet>;
185
204
  */
186
205
  export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
187
206
  /**
188
- * @returns {Promise<any>}
189
- */
190
- export function get_confirmations(): Promise<any>;
191
- /**
192
- * @returns {Promise<Array<any>>}
193
- */
194
- export function get_mempool_txs(): Promise<Array<any>>;
195
- /**
196
- * @param {WasmTransaction} tx
197
- * @returns {Promise<void>}
207
+ * @returns {Promise<WasmBlockchain>}
198
208
  */
199
- export function propagate_transaction(tx: WasmTransaction): Promise<void>;
209
+ export function get_blockchain(): Promise<WasmBlockchain>;
200
210
  /**
201
211
  * @returns {Promise<void>}
202
212
  */
203
213
  export function disable_producing_blocks_by_timer(): Promise<void>;
204
214
  /**
205
- * @param {bigint} peer_index
206
- * @param {string} ip
207
- * @returns {Promise<void>}
215
+ * @returns {Promise<string>}
208
216
  */
209
- export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
217
+ export function get_stats(): Promise<string>;
210
218
  /**
211
- * @param {bigint} peer_index
212
- * @returns {Promise<WasmPeer | undefined>}
219
+ * @returns {Promise<Array<any>>}
213
220
  */
214
- export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
221
+ export function get_nft_list(): Promise<Array<any>>;
215
222
  /**
216
- * @param {string} key
217
- * @returns {boolean}
223
+ * @returns {Promise<Array<any>>}
218
224
  */
219
- export function is_valid_public_key(key: string): boolean;
225
+ export function get_peers(): Promise<Array<any>>;
220
226
  /**
221
- * @param {bigint} duration_in_ms
227
+ * @param {bigint} peer_index
222
228
  * @returns {Promise<void>}
223
229
  */
224
- export function process_timer_event(duration_in_ms: bigint): Promise<void>;
230
+ export function remove_stun_peer(peer_index: bigint): Promise<void>;
225
231
  /**
226
- * @param {bigint} threshold
232
+ * @param {Uint8Array} buffer
233
+ * @param {number} msg_index
234
+ * @param {bigint} peer_index
227
235
  * @returns {Promise<void>}
228
236
  */
229
- export function write_issuance_file(threshold: bigint): Promise<void>;
237
+ export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
230
238
  /**
231
- * @returns {Promise<Array<any>>}
239
+ * @returns {Promise<boolean>}
232
240
  */
233
- export function get_peers(): Promise<Array<any>>;
241
+ export function produce_block_with_gt(): Promise<boolean>;
234
242
  /**
235
- * @param {Uint8Array} buffer
236
- * @param {number} msg_index
237
- * @param {bigint} peer_index
238
- * @returns {Promise<void>}
243
+ * @param {string} slip1_utxo_key
244
+ * @param {string} slip2_utxo_key
245
+ * @param {string} slip3_utxo_key
246
+ * @param {number} left_count
247
+ * @param {number} right_count
248
+ * @param {Uint8Array} tx_msg
249
+ * @returns {Promise<WasmTransaction>}
239
250
  */
240
- export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
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>;
241
252
  /**
242
- * @param {bigint} current_time
243
- * @returns {Promise<void>}
253
+ * @returns {string}
244
254
  */
245
- export function process_stat_interval(current_time: bigint): Promise<void>;
255
+ export function generate_private_key(): string;
256
+ /**
257
+ * @returns {Promise<string>}
258
+ */
259
+ export function get_peer_stats(): Promise<string>;
246
260
  /**
247
261
  * @param {Array<any>} public_keys
248
262
  * @param {BigUint64Array} amounts
@@ -252,30 +266,17 @@ export function process_stat_interval(current_time: bigint): Promise<void>;
252
266
  */
253
267
  export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
254
268
  /**
255
- * @returns {Promise<boolean>}
256
- */
257
- export function produce_block_without_gt(): Promise<boolean>;
258
- /**
259
269
  * @param {string} public_key
260
- * @returns {Promise<Array<any>>}
261
- */
262
- export function get_account_slips(public_key: string): Promise<Array<any>>;
263
- /**
264
- * @param {Uint8Array} buffer
265
- * @param {string} private_key
266
- * @returns {string}
267
- */
268
- export function sign_buffer(buffer: Uint8Array, private_key: string): string;
269
- /**
270
- * @param {string} private_key
271
- * @returns {string}
270
+ * @param {bigint} amount
271
+ * @param {bigint} fee
272
+ * @param {boolean} force_merge
273
+ * @returns {Promise<WasmTransaction>}
272
274
  */
273
- export function generate_public_key(private_key: string): string;
275
+ export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
274
276
  /**
275
- * @param {string} block_hash
276
- * @returns {Promise<WasmBlock>}
277
+ * @returns {Promise<boolean>}
277
278
  */
278
- export function get_block(block_hash: string): Promise<WasmBlock>;
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;