saito-wasm 0.2.175 → 0.2.176
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 +150 -151
- package/pkg/node/index.js +358 -358
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +111 -111
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +262 -263
- package/pkg/web/index.js +362 -362
- 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-c6993c19012bb0e6 → saito-wasm-2d0d837f15b87abe}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-c6993c19012bb0e6 → saito-wasm-2d0d837f15b87abe}/js/msg_handler.js +0 -0
package/pkg/web/index.d.ts
CHANGED
|
@@ -1,121 +1,91 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @
|
|
5
|
-
*/
|
|
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
|
|
4
|
+
* @param {bigint} duration_in_ms
|
|
14
5
|
* @returns {Promise<void>}
|
|
15
6
|
*/
|
|
16
|
-
export function
|
|
7
|
+
export function process_timer_event(duration_in_ms: bigint): Promise<void>;
|
|
17
8
|
/**
|
|
18
|
-
* @returns {Promise<
|
|
9
|
+
* @returns {Promise<bigint>}
|
|
19
10
|
*/
|
|
20
|
-
export function
|
|
11
|
+
export function get_next_peer_index(): Promise<bigint>;
|
|
21
12
|
/**
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {string} slip1_utxo_key
|
|
24
|
-
* @param {string} slip2_utxo_key
|
|
25
|
-
* @param {string} slip3_utxo_key
|
|
26
|
-
* @param {string} recipient_public_key
|
|
13
|
+
* @param {string} nft_id_hex
|
|
27
14
|
* @param {Uint8Array} tx_msg
|
|
28
15
|
* @returns {Promise<WasmTransaction>}
|
|
29
16
|
*/
|
|
30
|
-
export function
|
|
31
|
-
/**
|
|
32
|
-
* @param {string} config_json
|
|
33
|
-
* @param {string} private_key
|
|
34
|
-
* @param {number} log_level_num
|
|
35
|
-
* @param {bigint} hasten_multiplier
|
|
36
|
-
* @param {boolean} delete_old_blocks
|
|
37
|
-
* @returns {Promise<any>}
|
|
38
|
-
*/
|
|
39
|
-
export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
|
|
17
|
+
export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
40
18
|
/**
|
|
41
|
-
* @param {WasmTransaction} tx
|
|
42
19
|
* @returns {Promise<void>}
|
|
43
20
|
*/
|
|
44
|
-
export function
|
|
21
|
+
export function disable_producing_blocks_by_timer(): Promise<void>;
|
|
45
22
|
/**
|
|
46
|
-
* @
|
|
47
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
23
|
+
* @returns {Promise<Array<any>>}
|
|
48
24
|
*/
|
|
49
|
-
export function
|
|
25
|
+
export function get_mempool_txs(): Promise<Array<any>>;
|
|
50
26
|
/**
|
|
51
27
|
* @param {Uint8Array} buffer
|
|
52
|
-
* @
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @param {string} nft_id_hex
|
|
57
|
-
* @param {Uint8Array} tx_msg
|
|
58
|
-
* @returns {Promise<WasmTransaction>}
|
|
28
|
+
* @param {number} msg_index
|
|
29
|
+
* @param {bigint} peer_index
|
|
30
|
+
* @returns {Promise<void>}
|
|
59
31
|
*/
|
|
60
|
-
export function
|
|
32
|
+
export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
61
33
|
/**
|
|
62
|
-
* @param {Uint8Array} buffer
|
|
63
|
-
* @param {Uint8Array} hash
|
|
64
|
-
* @param {bigint} block_id
|
|
65
34
|
* @param {bigint} peer_index
|
|
35
|
+
* @param {string} ip
|
|
66
36
|
* @returns {Promise<void>}
|
|
67
37
|
*/
|
|
68
|
-
export function
|
|
38
|
+
export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
|
|
69
39
|
/**
|
|
70
|
-
* @param {Uint8Array} hash
|
|
71
|
-
* @param {bigint} block_id
|
|
72
40
|
* @param {bigint} peer_index
|
|
41
|
+
* @param {string} public_key
|
|
73
42
|
* @returns {Promise<void>}
|
|
74
43
|
*/
|
|
75
|
-
export function
|
|
44
|
+
export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
|
|
76
45
|
/**
|
|
77
|
-
* @
|
|
78
|
-
* @param {number} minor
|
|
79
|
-
* @param {number} patch
|
|
80
|
-
* @returns {Promise<void>}
|
|
46
|
+
* @returns {Promise<WasmWallet>}
|
|
81
47
|
*/
|
|
82
|
-
export function
|
|
48
|
+
export function get_wallet(): Promise<WasmWallet>;
|
|
83
49
|
/**
|
|
84
|
-
* @param {
|
|
85
|
-
* @
|
|
50
|
+
* @param {string} slip1_utxo_key
|
|
51
|
+
* @param {string} slip2_utxo_key
|
|
52
|
+
* @param {string} slip3_utxo_key
|
|
53
|
+
* @returns {Promise<WasmTransaction>}
|
|
86
54
|
*/
|
|
87
|
-
export function
|
|
55
|
+
export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string): Promise<WasmTransaction>;
|
|
88
56
|
/**
|
|
89
|
-
* @
|
|
90
|
-
* @returns {string}
|
|
57
|
+
* @returns {Promise<string>}
|
|
91
58
|
*/
|
|
92
|
-
export function
|
|
59
|
+
export function get_peer_stats(): Promise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* @param {WasmTransaction} tx
|
|
62
|
+
* @returns {Promise<void>}
|
|
63
|
+
*/
|
|
64
|
+
export function propagate_transaction(tx: WasmTransaction): Promise<void>;
|
|
93
65
|
/**
|
|
94
66
|
* @param {Uint8Array} buffer
|
|
95
|
-
* @
|
|
96
|
-
* @param {string} public_key
|
|
97
|
-
* @returns {boolean}
|
|
67
|
+
* @returns {string}
|
|
98
68
|
*/
|
|
99
|
-
export function
|
|
69
|
+
export function hash(buffer: Uint8Array): string;
|
|
100
70
|
/**
|
|
101
71
|
* @param {Uint8Array} buffer
|
|
72
|
+
* @param {number} msg_index
|
|
102
73
|
* @param {bigint} peer_index
|
|
103
74
|
* @returns {Promise<void>}
|
|
104
75
|
*/
|
|
105
|
-
export function
|
|
76
|
+
export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
106
77
|
/**
|
|
107
|
-
* @param {
|
|
78
|
+
* @param {Uint8Array} buffer
|
|
79
|
+
* @param {number} msg_index
|
|
80
|
+
* @param {bigint} peer_index
|
|
108
81
|
* @returns {Promise<void>}
|
|
109
82
|
*/
|
|
110
|
-
export function
|
|
111
|
-
/**
|
|
112
|
-
* @returns {Promise<bigint>}
|
|
113
|
-
*/
|
|
114
|
-
export function get_next_peer_index(): Promise<bigint>;
|
|
83
|
+
export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
115
84
|
/**
|
|
116
|
-
* @
|
|
85
|
+
* @param {bigint} peer_index
|
|
86
|
+
* @returns {Promise<void>}
|
|
117
87
|
*/
|
|
118
|
-
export function
|
|
88
|
+
export function process_peer_disconnection(peer_index: bigint): Promise<void>;
|
|
119
89
|
/**
|
|
120
90
|
* @param {bigint} num
|
|
121
91
|
* @param {bigint} deposit
|
|
@@ -127,144 +97,151 @@ export function get_congestion_stats(): Promise<string>;
|
|
|
127
97
|
*/
|
|
128
98
|
export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
|
|
129
99
|
/**
|
|
130
|
-
* @
|
|
100
|
+
* @param {Array<any>} public_keys
|
|
101
|
+
* @param {BigUint64Array} amounts
|
|
102
|
+
* @param {bigint} fee
|
|
103
|
+
* @param {boolean} _force_merge
|
|
104
|
+
* @returns {Promise<WasmTransaction>}
|
|
131
105
|
*/
|
|
132
|
-
export function
|
|
106
|
+
export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
|
|
133
107
|
/**
|
|
134
|
-
* @returns {Promise<
|
|
108
|
+
* @returns {Promise<any>}
|
|
135
109
|
*/
|
|
136
|
-
export function
|
|
110
|
+
export function get_confirmations(): Promise<any>;
|
|
137
111
|
/**
|
|
138
|
-
* @param {bigint} duration_in_ms
|
|
139
112
|
* @returns {Promise<void>}
|
|
140
113
|
*/
|
|
141
|
-
export function
|
|
114
|
+
export function start_from_received_ghost_chain(): Promise<void>;
|
|
142
115
|
/**
|
|
143
|
-
* @
|
|
144
|
-
* @param {string} ip
|
|
145
|
-
* @returns {Promise<void>}
|
|
116
|
+
* @returns {Promise<string>}
|
|
146
117
|
*/
|
|
147
|
-
export function
|
|
118
|
+
export function get_latest_block_hash(): Promise<string>;
|
|
148
119
|
/**
|
|
149
|
-
* @
|
|
150
|
-
* @returns {Promise<void>}
|
|
120
|
+
* @returns {Promise<boolean>}
|
|
151
121
|
*/
|
|
152
|
-
export function
|
|
122
|
+
export function produce_block_without_gt(): Promise<boolean>;
|
|
153
123
|
/**
|
|
154
124
|
* @param {bigint} peer_index
|
|
155
125
|
* @returns {Promise<WasmPeer | undefined>}
|
|
156
126
|
*/
|
|
157
127
|
export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
|
|
158
128
|
/**
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {number} msg_index
|
|
161
|
-
* @param {bigint} peer_index
|
|
162
|
-
* @returns {Promise<void>}
|
|
163
|
-
*/
|
|
164
|
-
export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
165
|
-
/**
|
|
166
|
-
* @param {string} slip1_utxo_key
|
|
167
|
-
* @param {string} slip2_utxo_key
|
|
168
|
-
* @param {string} slip3_utxo_key
|
|
169
|
-
* @param {Uint8Array} tx_msg
|
|
170
|
-
* @returns {Promise<WasmTransaction>}
|
|
171
|
-
*/
|
|
172
|
-
export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
173
|
-
/**
|
|
174
|
-
* @param {Uint8Array} buffer
|
|
129
|
+
* @param {string} config_json
|
|
175
130
|
* @param {string} private_key
|
|
176
|
-
* @
|
|
131
|
+
* @param {number} log_level_num
|
|
132
|
+
* @param {bigint} hasten_multiplier
|
|
133
|
+
* @param {boolean} delete_old_blocks
|
|
134
|
+
* @returns {Promise<any>}
|
|
177
135
|
*/
|
|
178
|
-
export function
|
|
136
|
+
export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
|
|
179
137
|
/**
|
|
180
|
-
* @
|
|
181
|
-
* @returns {boolean}
|
|
138
|
+
* @returns {Promise<WasmBlockchain>}
|
|
182
139
|
*/
|
|
183
|
-
export function
|
|
140
|
+
export function get_blockchain(): Promise<WasmBlockchain>;
|
|
184
141
|
/**
|
|
185
|
-
* @
|
|
142
|
+
* @param {bigint} threshold
|
|
143
|
+
* @returns {Promise<void>}
|
|
186
144
|
*/
|
|
187
|
-
export function
|
|
145
|
+
export function write_issuance_file(threshold: bigint): Promise<void>;
|
|
188
146
|
/**
|
|
189
|
-
* @param {string}
|
|
190
|
-
* @returns {Promise<
|
|
147
|
+
* @param {string} public_key
|
|
148
|
+
* @returns {Promise<Array<any>>}
|
|
191
149
|
*/
|
|
192
|
-
export function
|
|
150
|
+
export function get_account_slips(public_key: string): Promise<Array<any>>;
|
|
193
151
|
/**
|
|
194
152
|
* @param {bigint} peer_index
|
|
195
|
-
* @param {string} public_key
|
|
196
153
|
* @returns {Promise<void>}
|
|
197
154
|
*/
|
|
198
|
-
export function
|
|
155
|
+
export function remove_stun_peer(peer_index: bigint): Promise<void>;
|
|
199
156
|
/**
|
|
200
157
|
* @param {Uint8Array} buffer
|
|
201
|
-
* @param {
|
|
158
|
+
* @param {Uint8Array} hash
|
|
159
|
+
* @param {bigint} block_id
|
|
202
160
|
* @param {bigint} peer_index
|
|
203
161
|
* @returns {Promise<void>}
|
|
204
162
|
*/
|
|
205
|
-
export function
|
|
206
|
-
/**
|
|
207
|
-
* @returns {Promise<WasmBlockchain>}
|
|
208
|
-
*/
|
|
209
|
-
export function get_blockchain(): Promise<WasmBlockchain>;
|
|
210
|
-
/**
|
|
211
|
-
* @returns {Promise<void>}
|
|
212
|
-
*/
|
|
213
|
-
export function disable_producing_blocks_by_timer(): Promise<void>;
|
|
163
|
+
export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
214
164
|
/**
|
|
215
|
-
* @
|
|
165
|
+
* @param {string} slip1_utxo_key
|
|
166
|
+
* @param {string} slip2_utxo_key
|
|
167
|
+
* @param {string} slip3_utxo_key
|
|
168
|
+
* @param {number} left_count
|
|
169
|
+
* @param {number} right_count
|
|
170
|
+
* @param {Uint8Array} tx_msg
|
|
171
|
+
* @returns {Promise<WasmTransaction>}
|
|
216
172
|
*/
|
|
217
|
-
export function
|
|
173
|
+
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>;
|
|
218
174
|
/**
|
|
219
175
|
* @returns {Promise<Array<any>>}
|
|
220
176
|
*/
|
|
221
177
|
export function get_nft_list(): Promise<Array<any>>;
|
|
222
178
|
/**
|
|
223
|
-
* @returns {Promise<
|
|
224
|
-
*/
|
|
225
|
-
export function get_peers(): Promise<Array<any>>;
|
|
226
|
-
/**
|
|
227
|
-
* @param {bigint} peer_index
|
|
228
|
-
* @returns {Promise<void>}
|
|
179
|
+
* @returns {Promise<string>}
|
|
229
180
|
*/
|
|
230
|
-
export function
|
|
181
|
+
export function get_stats(): Promise<string>;
|
|
231
182
|
/**
|
|
232
|
-
* @param {
|
|
233
|
-
* @param {number}
|
|
234
|
-
* @param {
|
|
183
|
+
* @param {number} major
|
|
184
|
+
* @param {number} minor
|
|
185
|
+
* @param {number} patch
|
|
235
186
|
* @returns {Promise<void>}
|
|
236
187
|
*/
|
|
237
|
-
export function
|
|
188
|
+
export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
|
|
238
189
|
/**
|
|
239
|
-
* @returns {Promise<
|
|
190
|
+
* @returns {Promise<string>}
|
|
240
191
|
*/
|
|
241
|
-
export function
|
|
192
|
+
export function get_congestion_stats(): Promise<string>;
|
|
242
193
|
/**
|
|
194
|
+
* @param {bigint} amt
|
|
243
195
|
* @param {string} slip1_utxo_key
|
|
244
196
|
* @param {string} slip2_utxo_key
|
|
245
197
|
* @param {string} slip3_utxo_key
|
|
246
|
-
* @param {
|
|
247
|
-
* @param {number} right_count
|
|
198
|
+
* @param {string} recipient_public_key
|
|
248
199
|
* @param {Uint8Array} tx_msg
|
|
249
200
|
* @returns {Promise<WasmTransaction>}
|
|
250
201
|
*/
|
|
251
|
-
export function
|
|
202
|
+
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>;
|
|
203
|
+
/**
|
|
204
|
+
* @param {Uint8Array} buffer
|
|
205
|
+
* @param {string} private_key
|
|
206
|
+
* @returns {string}
|
|
207
|
+
*/
|
|
208
|
+
export function sign_buffer(buffer: Uint8Array, private_key: string): string;
|
|
252
209
|
/**
|
|
210
|
+
* @param {string} block_hash
|
|
211
|
+
* @returns {Promise<WasmBlock>}
|
|
212
|
+
*/
|
|
213
|
+
export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
214
|
+
/**
|
|
215
|
+
* @param {string} private_key
|
|
253
216
|
* @returns {string}
|
|
254
217
|
*/
|
|
255
|
-
export function
|
|
218
|
+
export function generate_public_key(private_key: string): string;
|
|
256
219
|
/**
|
|
257
|
-
* @
|
|
220
|
+
* @param {Uint8Array} buffer
|
|
221
|
+
* @param {string} signature
|
|
222
|
+
* @param {string} public_key
|
|
223
|
+
* @returns {boolean}
|
|
258
224
|
*/
|
|
259
|
-
export function
|
|
225
|
+
export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
|
|
226
|
+
/**
|
|
227
|
+
* @param {Uint8Array} buffer
|
|
228
|
+
* @param {bigint} peer_index
|
|
229
|
+
* @returns {Promise<void>}
|
|
230
|
+
*/
|
|
231
|
+
export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* @returns {Promise<Array<any>>}
|
|
234
|
+
*/
|
|
235
|
+
export function get_peers(): Promise<Array<any>>;
|
|
236
|
+
/**
|
|
237
|
+
* @returns {Promise<boolean>}
|
|
238
|
+
*/
|
|
239
|
+
export function produce_block_with_gt(): Promise<boolean>;
|
|
260
240
|
/**
|
|
261
|
-
* @param {
|
|
262
|
-
* @
|
|
263
|
-
* @param {bigint} fee
|
|
264
|
-
* @param {boolean} _force_merge
|
|
265
|
-
* @returns {Promise<WasmTransaction>}
|
|
241
|
+
* @param {string} key
|
|
242
|
+
* @returns {boolean}
|
|
266
243
|
*/
|
|
267
|
-
export function
|
|
244
|
+
export function is_valid_public_key(key: string): boolean;
|
|
268
245
|
/**
|
|
269
246
|
* @param {string} public_key
|
|
270
247
|
* @param {bigint} amount
|
|
@@ -274,9 +251,31 @@ export function create_transaction_with_multiple_payments(public_keys: Array<any
|
|
|
274
251
|
*/
|
|
275
252
|
export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
|
|
276
253
|
/**
|
|
277
|
-
* @
|
|
254
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
255
|
+
* @returns {Promise<void>}
|
|
278
256
|
*/
|
|
279
|
-
export function
|
|
257
|
+
export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
|
|
258
|
+
/**
|
|
259
|
+
* @returns {string}
|
|
260
|
+
*/
|
|
261
|
+
export function generate_private_key(): string;
|
|
262
|
+
/**
|
|
263
|
+
* @param {bigint} current_time
|
|
264
|
+
* @returns {Promise<void>}
|
|
265
|
+
*/
|
|
266
|
+
export function process_stat_interval(current_time: bigint): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
* @param {Array<any>} keys
|
|
269
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
270
|
+
*/
|
|
271
|
+
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
272
|
+
/**
|
|
273
|
+
* @param {Uint8Array} hash
|
|
274
|
+
* @param {bigint} block_id
|
|
275
|
+
* @param {bigint} peer_index
|
|
276
|
+
* @returns {Promise<void>}
|
|
277
|
+
*/
|
|
278
|
+
export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
280
279
|
/**
|
|
281
280
|
*/
|
|
282
281
|
export class SaitoWasm {
|
|
@@ -992,8 +991,25 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
992
991
|
|
|
993
992
|
export interface InitOutput {
|
|
994
993
|
readonly memory: WebAssembly.Memory;
|
|
994
|
+
readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
|
|
995
|
+
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
996
|
+
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
997
|
+
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
998
|
+
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
999
|
+
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
1000
|
+
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
1001
|
+
readonly wasmconsensusvalues_it_index: (a: number) => number;
|
|
1002
|
+
readonly wasmconsensusvalues_it_num: (a: number) => number;
|
|
1003
|
+
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
1004
|
+
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
1005
|
+
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
1006
|
+
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
1007
|
+
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1008
|
+
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
1009
|
+
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
995
1010
|
readonly __wbg_wasmstats_free: (a: number) => void;
|
|
996
1011
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
1012
|
+
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
997
1013
|
readonly __wbg_wasmtransaction_free: (a: number) => void;
|
|
998
1014
|
readonly wasmblock_avg_fee_per_byte: (a: number) => number;
|
|
999
1015
|
readonly wasmblock_avg_income: (a: number) => number;
|
|
@@ -1051,6 +1067,9 @@ export interface InitOutput {
|
|
|
1051
1067
|
readonly wasmblock_total_rebroadcast_slips: (a: number) => number;
|
|
1052
1068
|
readonly wasmblock_total_work: (a: number) => number;
|
|
1053
1069
|
readonly wasmblock_treasury: (a: number) => number;
|
|
1070
|
+
readonly wasmhop_from: (a: number, b: number) => void;
|
|
1071
|
+
readonly wasmhop_sig: (a: number, b: number) => void;
|
|
1072
|
+
readonly wasmhop_to: (a: number, b: number) => void;
|
|
1054
1073
|
readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
|
|
1055
1074
|
readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
|
|
1056
1075
|
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
@@ -1076,33 +1095,10 @@ export interface InitOutput {
|
|
|
1076
1095
|
readonly wasmtransaction_to: (a: number) => number;
|
|
1077
1096
|
readonly wasmtransaction_total_fees: (a: number) => number;
|
|
1078
1097
|
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
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;
|
|
1083
1098
|
readonly __wbg_wasmnft_free: (a: number) => void;
|
|
1084
|
-
readonly
|
|
1085
|
-
readonly
|
|
1086
|
-
readonly
|
|
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;
|
|
1099
|
+
readonly __wbg_wasmslip_free: (a: number) => void;
|
|
1100
|
+
readonly __wbg_wasmwallet_free: (a: number) => void;
|
|
1101
|
+
readonly __wbg_wasmwalletslip_free: (a: number) => void;
|
|
1106
1102
|
readonly wasmnft_id: (a: number) => number;
|
|
1107
1103
|
readonly wasmnft_new: () => number;
|
|
1108
1104
|
readonly wasmnft_set_id: (a: number, b: number) => void;
|
|
@@ -1114,35 +1110,77 @@ export interface InitOutput {
|
|
|
1114
1110
|
readonly wasmnft_slip2: (a: number) => number;
|
|
1115
1111
|
readonly wasmnft_slip3: (a: number) => number;
|
|
1116
1112
|
readonly wasmnft_tx_sig: (a: number) => number;
|
|
1117
|
-
readonly
|
|
1118
|
-
readonly
|
|
1119
|
-
readonly
|
|
1120
|
-
readonly
|
|
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
|
|
1138
|
-
readonly
|
|
1139
|
-
readonly
|
|
1113
|
+
readonly wasmslip_amount: (a: number) => number;
|
|
1114
|
+
readonly wasmslip_block_id: (a: number) => number;
|
|
1115
|
+
readonly wasmslip_new: () => number;
|
|
1116
|
+
readonly wasmslip_parse_slip_from_utxokey: (a: number) => number;
|
|
1117
|
+
readonly wasmslip_public_key: (a: number) => number;
|
|
1118
|
+
readonly wasmslip_set_amount: (a: number, b: number) => void;
|
|
1119
|
+
readonly wasmslip_set_block_id: (a: number, b: number) => void;
|
|
1120
|
+
readonly wasmslip_set_public_key: (a: number, b: number) => void;
|
|
1121
|
+
readonly wasmslip_set_slip_index: (a: number, b: number) => void;
|
|
1122
|
+
readonly wasmslip_set_slip_type: (a: number, b: number) => void;
|
|
1123
|
+
readonly wasmslip_set_tx_ordinal: (a: number, b: number) => void;
|
|
1124
|
+
readonly wasmslip_set_utxo_key: (a: number, b: number) => void;
|
|
1125
|
+
readonly wasmslip_slip_index: (a: number) => number;
|
|
1126
|
+
readonly wasmslip_slip_type: (a: number) => number;
|
|
1127
|
+
readonly wasmslip_tx_ordinal: (a: number) => number;
|
|
1128
|
+
readonly wasmslip_utxo_key: (a: number) => number;
|
|
1129
|
+
readonly wasmwallet_add_nft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
1130
|
+
readonly wasmwallet_add_slip: (a: number, b: number) => number;
|
|
1131
|
+
readonly wasmwallet_add_to_pending: (a: number, b: number) => number;
|
|
1132
|
+
readonly wasmwallet_get_balance: (a: number) => number;
|
|
1133
|
+
readonly wasmwallet_get_key_list: (a: number) => number;
|
|
1134
|
+
readonly wasmwallet_get_pending_txs: (a: number) => number;
|
|
1135
|
+
readonly wasmwallet_get_private_key: (a: number) => number;
|
|
1136
|
+
readonly wasmwallet_get_public_key: (a: number) => number;
|
|
1137
|
+
readonly wasmwallet_get_slips: (a: number) => number;
|
|
1138
|
+
readonly wasmwallet_load: (a: number) => number;
|
|
1139
|
+
readonly wasmwallet_reset: (a: number, b: number) => number;
|
|
1140
|
+
readonly wasmwallet_save: (a: number) => number;
|
|
1141
|
+
readonly wasmwallet_set_key_list: (a: number, b: number) => number;
|
|
1142
|
+
readonly wasmwallet_set_private_key: (a: number, b: number) => number;
|
|
1143
|
+
readonly wasmwallet_set_public_key: (a: number, b: number) => number;
|
|
1144
|
+
readonly wasmwalletslip_get_slip_index: (a: number) => number;
|
|
1145
|
+
readonly wasmwalletslip_get_slip_type: (a: number) => number;
|
|
1146
|
+
readonly wasmwalletslip_get_utxokey: (a: number) => number;
|
|
1147
|
+
readonly wasmwalletslip_is_lc: (a: number) => number;
|
|
1148
|
+
readonly wasmwalletslip_is_spent: (a: number) => number;
|
|
1149
|
+
readonly wasmwalletslip_new_: () => number;
|
|
1150
|
+
readonly wasmwalletslip_set_lc: (a: number, b: number) => void;
|
|
1151
|
+
readonly wasmwalletslip_set_slip_index: (a: number, b: number) => void;
|
|
1152
|
+
readonly wasmwalletslip_set_slip_type: (a: number, b: number) => void;
|
|
1153
|
+
readonly wasmwalletslip_set_spent: (a: number, b: number) => void;
|
|
1154
|
+
readonly wasmwalletslip_set_utxokey: (a: number, b: number) => void;
|
|
1155
|
+
readonly wasmwalletslip_set_amount: (a: number, b: number) => void;
|
|
1156
|
+
readonly wasmwalletslip_set_block_id: (a: number, b: number) => void;
|
|
1157
|
+
readonly wasmwalletslip_set_tx_ordinal: (a: number, b: number) => void;
|
|
1158
|
+
readonly wasmwalletslip_get_amount: (a: number) => number;
|
|
1159
|
+
readonly wasmwalletslip_get_block_id: (a: number) => number;
|
|
1160
|
+
readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
|
|
1161
|
+
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
1162
|
+
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
1163
|
+
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
1164
|
+
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
1165
|
+
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
1166
|
+
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
1167
|
+
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
1168
|
+
readonly wasmconfiguration_new: () => number;
|
|
1169
|
+
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
1170
|
+
readonly wasmpeer_get_peer_index: (a: number) => number;
|
|
1171
|
+
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
1172
|
+
readonly wasmpeer_get_services: (a: number) => number;
|
|
1173
|
+
readonly wasmpeer_get_status: (a: number) => number;
|
|
1174
|
+
readonly wasmpeer_get_sync_type: (a: number) => number;
|
|
1175
|
+
readonly wasmpeer_has_service: (a: number, b: number) => number;
|
|
1176
|
+
readonly wasmpeer_new: (a: number) => number;
|
|
1177
|
+
readonly wasmpeer_set_services: (a: number, b: number) => void;
|
|
1140
1178
|
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
1141
1179
|
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
1142
1180
|
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
1143
1181
|
readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1144
1182
|
readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1145
|
-
readonly create_remove_bound_transaction: (a: number, b: number, c: number
|
|
1183
|
+
readonly create_remove_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1146
1184
|
readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1147
1185
|
readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1148
1186
|
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -1198,67 +1236,28 @@ export interface InitOutput {
|
|
|
1198
1236
|
readonly wasmpeerservicelist_new: () => number;
|
|
1199
1237
|
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
1200
1238
|
readonly write_issuance_file: (a: number) => number;
|
|
1201
|
-
readonly
|
|
1202
|
-
readonly
|
|
1203
|
-
readonly
|
|
1204
|
-
readonly
|
|
1205
|
-
readonly
|
|
1206
|
-
readonly
|
|
1207
|
-
readonly
|
|
1208
|
-
readonly
|
|
1209
|
-
readonly
|
|
1210
|
-
readonly
|
|
1211
|
-
readonly
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly
|
|
1214
|
-
readonly
|
|
1215
|
-
readonly
|
|
1216
|
-
readonly
|
|
1217
|
-
readonly
|
|
1218
|
-
readonly
|
|
1219
|
-
readonly
|
|
1220
|
-
readonly
|
|
1221
|
-
readonly
|
|
1222
|
-
readonly
|
|
1223
|
-
readonly wasmslip_set_slip_type: (a: number, b: number) => void;
|
|
1224
|
-
readonly wasmslip_set_tx_ordinal: (a: number, b: number) => void;
|
|
1225
|
-
readonly wasmslip_set_utxo_key: (a: number, b: number) => void;
|
|
1226
|
-
readonly wasmslip_slip_index: (a: number) => number;
|
|
1227
|
-
readonly wasmslip_slip_type: (a: number) => number;
|
|
1228
|
-
readonly wasmslip_tx_ordinal: (a: number) => number;
|
|
1229
|
-
readonly wasmslip_utxo_key: (a: number) => number;
|
|
1230
|
-
readonly wasmwallet_add_nft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
1231
|
-
readonly wasmwallet_add_slip: (a: number, b: number) => number;
|
|
1232
|
-
readonly wasmwallet_add_to_pending: (a: number, b: number) => number;
|
|
1233
|
-
readonly wasmwallet_get_balance: (a: number) => number;
|
|
1234
|
-
readonly wasmwallet_get_key_list: (a: number) => number;
|
|
1235
|
-
readonly wasmwallet_get_pending_txs: (a: number) => number;
|
|
1236
|
-
readonly wasmwallet_get_private_key: (a: number) => number;
|
|
1237
|
-
readonly wasmwallet_get_public_key: (a: number) => number;
|
|
1238
|
-
readonly wasmwallet_get_slips: (a: number) => number;
|
|
1239
|
-
readonly wasmwallet_load: (a: number) => number;
|
|
1240
|
-
readonly wasmwallet_reset: (a: number, b: number) => number;
|
|
1241
|
-
readonly wasmwallet_save: (a: number) => number;
|
|
1242
|
-
readonly wasmwallet_set_key_list: (a: number, b: number) => number;
|
|
1243
|
-
readonly wasmwallet_set_private_key: (a: number, b: number) => number;
|
|
1244
|
-
readonly wasmwallet_set_public_key: (a: number, b: number) => number;
|
|
1245
|
-
readonly wasmwalletslip_get_slip_index: (a: number) => number;
|
|
1246
|
-
readonly wasmwalletslip_get_slip_type: (a: number) => number;
|
|
1247
|
-
readonly wasmwalletslip_get_utxokey: (a: number) => number;
|
|
1248
|
-
readonly wasmwalletslip_is_lc: (a: number) => number;
|
|
1249
|
-
readonly wasmwalletslip_is_spent: (a: number) => number;
|
|
1250
|
-
readonly wasmwalletslip_new_: () => number;
|
|
1251
|
-
readonly wasmwalletslip_set_lc: (a: number, b: number) => void;
|
|
1252
|
-
readonly wasmwalletslip_set_slip_index: (a: number, b: number) => void;
|
|
1253
|
-
readonly wasmwalletslip_set_slip_type: (a: number, b: number) => void;
|
|
1254
|
-
readonly wasmwalletslip_set_spent: (a: number, b: number) => void;
|
|
1255
|
-
readonly wasmwalletslip_set_utxokey: (a: number, b: number) => void;
|
|
1256
|
-
readonly wasmwalletslip_set_amount: (a: number, b: number) => void;
|
|
1257
|
-
readonly wasmwalletslip_set_block_id: (a: number, b: number) => void;
|
|
1258
|
-
readonly wasmwalletslip_set_tx_ordinal: (a: number, b: number) => void;
|
|
1259
|
-
readonly wasmwalletslip_get_amount: (a: number) => number;
|
|
1260
|
-
readonly wasmwalletslip_get_block_id: (a: number) => number;
|
|
1261
|
-
readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
|
|
1239
|
+
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
1240
|
+
readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
|
|
1241
|
+
readonly wasmblockchain_get_fork_id: (a: number) => number;
|
|
1242
|
+
readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
|
|
1243
|
+
readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
|
|
1244
|
+
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
1245
|
+
readonly wasmblockchain_get_last_block_hash: (a: number) => number;
|
|
1246
|
+
readonly wasmblockchain_get_last_block_id: (a: number) => number;
|
|
1247
|
+
readonly wasmblockchain_get_last_burnfee: (a: number) => number;
|
|
1248
|
+
readonly wasmblockchain_get_last_timestamp: (a: number) => number;
|
|
1249
|
+
readonly wasmblockchain_get_latest_block_id: (a: number) => number;
|
|
1250
|
+
readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
|
|
1251
|
+
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
1252
|
+
readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
|
|
1253
|
+
readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
|
|
1254
|
+
readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
|
|
1255
|
+
readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
|
|
1256
|
+
readonly wasmblockchain_is_slip_spendable: (a: number, b: number) => number;
|
|
1257
|
+
readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
|
|
1258
|
+
readonly wasmblockchain_reset: (a: number) => number;
|
|
1259
|
+
readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
|
|
1260
|
+
readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
|
|
1262
1261
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
1263
1262
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
1264
1263
|
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|