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