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