saito-wasm 0.2.170 → 0.2.172
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 +163 -146
- package/pkg/node/index.js +354 -326
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +46 -42
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +209 -188
- package/pkg/web/index.js +346 -318
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +46 -42
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-110f636d48c332b6 → saito-wasm-d2385e3b1368ba5c}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-110f636d48c332b6 → saito-wasm-d2385e3b1368ba5c}/js/msg_handler.js +0 -0
package/pkg/web/index.d.ts
CHANGED
|
@@ -1,167 +1,149 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @
|
|
4
|
+
* @returns {Promise<Array<any>>}
|
|
5
|
+
*/
|
|
6
|
+
export function get_mempool_txs(): Promise<Array<any>>;
|
|
7
|
+
/**
|
|
5
8
|
* @param {bigint} peer_index
|
|
6
9
|
* @returns {Promise<void>}
|
|
7
10
|
*/
|
|
8
|
-
export function
|
|
11
|
+
export function remove_stun_peer(peer_index: bigint): Promise<void>;
|
|
9
12
|
/**
|
|
10
|
-
* @param {string}
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {
|
|
13
|
+
* @param {string} public_key
|
|
14
|
+
* @param {bigint} amount
|
|
15
|
+
* @param {bigint} fee
|
|
16
|
+
* @param {boolean} force_merge
|
|
13
17
|
* @returns {Promise<WasmTransaction>}
|
|
14
18
|
*/
|
|
15
|
-
export function
|
|
19
|
+
export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
|
|
16
20
|
/**
|
|
17
|
-
* @param {
|
|
18
|
-
* @
|
|
19
|
-
* @param {bigint} block_id
|
|
20
|
-
* @param {bigint} peer_index
|
|
21
|
-
* @returns {Promise<void>}
|
|
21
|
+
* @param {Array<any>} keys
|
|
22
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
22
23
|
*/
|
|
23
|
-
export function
|
|
24
|
+
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
24
25
|
/**
|
|
25
26
|
* @param {bigint} peer_index
|
|
26
27
|
* @returns {Promise<WasmPeer | undefined>}
|
|
27
28
|
*/
|
|
28
29
|
export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
|
|
29
30
|
/**
|
|
30
|
-
* @
|
|
31
|
-
* @returns {Promise<WasmBlock>}
|
|
32
|
-
*/
|
|
33
|
-
export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
34
|
-
/**
|
|
35
|
-
* @returns {Promise<Array<any>>}
|
|
31
|
+
* @returns {Promise<string>}
|
|
36
32
|
*/
|
|
37
|
-
export function
|
|
33
|
+
export function get_stats(): Promise<string>;
|
|
38
34
|
/**
|
|
39
|
-
* @param {
|
|
40
|
-
* @
|
|
41
|
-
* @returns {Promise<void>}
|
|
35
|
+
* @param {Uint8Array} buffer
|
|
36
|
+
* @returns {string}
|
|
42
37
|
*/
|
|
43
|
-
export function
|
|
38
|
+
export function hash(buffer: Uint8Array): string;
|
|
44
39
|
/**
|
|
45
40
|
* @param {string} key
|
|
46
41
|
* @returns {boolean}
|
|
47
42
|
*/
|
|
48
43
|
export function is_valid_public_key(key: string): boolean;
|
|
49
44
|
/**
|
|
50
|
-
* @returns {Promise<string>}
|
|
51
|
-
*/
|
|
52
|
-
export function get_stats(): Promise<string>;
|
|
53
|
-
/**
|
|
54
45
|
* @param {Uint8Array} buffer
|
|
55
|
-
* @param {string}
|
|
56
|
-
* @
|
|
46
|
+
* @param {string} signature
|
|
47
|
+
* @param {string} public_key
|
|
48
|
+
* @returns {boolean}
|
|
57
49
|
*/
|
|
58
|
-
export function
|
|
50
|
+
export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
|
|
59
51
|
/**
|
|
60
52
|
* @param {bigint} peer_index
|
|
53
|
+
* @param {string} ip
|
|
61
54
|
* @returns {Promise<void>}
|
|
62
55
|
*/
|
|
63
|
-
export function
|
|
56
|
+
export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
|
|
64
57
|
/**
|
|
65
|
-
* @
|
|
58
|
+
* @param {bigint} threshold
|
|
59
|
+
* @returns {Promise<void>}
|
|
66
60
|
*/
|
|
67
|
-
export function
|
|
61
|
+
export function write_issuance_file(threshold: bigint): Promise<void>;
|
|
68
62
|
/**
|
|
69
|
-
* @returns {
|
|
63
|
+
* @returns {string}
|
|
70
64
|
*/
|
|
71
|
-
export function
|
|
65
|
+
export function generate_private_key(): string;
|
|
72
66
|
/**
|
|
73
|
-
* @
|
|
67
|
+
* @param {Uint8Array} buffer
|
|
68
|
+
* @param {string} private_key
|
|
69
|
+
* @returns {string}
|
|
74
70
|
*/
|
|
75
|
-
export function
|
|
71
|
+
export function sign_buffer(buffer: Uint8Array, private_key: string): string;
|
|
76
72
|
/**
|
|
77
|
-
* @
|
|
78
|
-
* @param {string} slip2_utxo_key
|
|
79
|
-
* @param {string} slip3_utxo_key
|
|
80
|
-
* @param {number} left_count
|
|
81
|
-
* @param {number} right_count
|
|
82
|
-
* @param {Uint8Array} tx_msg
|
|
83
|
-
* @returns {Promise<WasmTransaction>}
|
|
73
|
+
* @returns {Promise<string>}
|
|
84
74
|
*/
|
|
85
|
-
export function
|
|
75
|
+
export function get_peer_stats(): Promise<string>;
|
|
86
76
|
/**
|
|
87
|
-
* @
|
|
88
|
-
* @param {string} slip1_utxo_key
|
|
89
|
-
* @param {string} slip2_utxo_key
|
|
90
|
-
* @param {string} slip3_utxo_key
|
|
91
|
-
* @param {string} recipient_public_key
|
|
92
|
-
* @param {Uint8Array} tx_msg
|
|
93
|
-
* @returns {Promise<WasmTransaction>}
|
|
77
|
+
* @returns {Promise<WasmBlockchain>}
|
|
94
78
|
*/
|
|
95
|
-
export function
|
|
79
|
+
export function get_blockchain(): Promise<WasmBlockchain>;
|
|
96
80
|
/**
|
|
97
|
-
* @
|
|
81
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
82
|
+
* @returns {Promise<void>}
|
|
98
83
|
*/
|
|
99
|
-
export function
|
|
84
|
+
export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
|
|
100
85
|
/**
|
|
101
|
-
* @returns {Promise<
|
|
86
|
+
* @returns {Promise<void>}
|
|
102
87
|
*/
|
|
103
|
-
export function
|
|
88
|
+
export function start_from_received_ghost_chain(): Promise<void>;
|
|
104
89
|
/**
|
|
105
90
|
* @returns {Promise<string>}
|
|
106
91
|
*/
|
|
107
|
-
export function
|
|
92
|
+
export function get_congestion_stats(): Promise<string>;
|
|
108
93
|
/**
|
|
109
94
|
* @returns {Promise<Array<any>>}
|
|
110
95
|
*/
|
|
111
96
|
export function get_peers(): Promise<Array<any>>;
|
|
112
97
|
/**
|
|
113
98
|
* @param {Uint8Array} buffer
|
|
114
|
-
* @param {
|
|
99
|
+
* @param {Uint8Array} hash
|
|
100
|
+
* @param {bigint} block_id
|
|
115
101
|
* @param {bigint} peer_index
|
|
116
102
|
* @returns {Promise<void>}
|
|
117
103
|
*/
|
|
118
|
-
export function
|
|
119
|
-
/**
|
|
120
|
-
* @param {string} private_key
|
|
121
|
-
* @returns {string}
|
|
122
|
-
*/
|
|
123
|
-
export function generate_public_key(private_key: string): string;
|
|
124
|
-
/**
|
|
125
|
-
* @param {WasmTransaction} tx
|
|
126
|
-
* @returns {Promise<void>}
|
|
127
|
-
*/
|
|
128
|
-
export function propagate_transaction(tx: WasmTransaction): Promise<void>;
|
|
104
|
+
export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
129
105
|
/**
|
|
130
|
-
* @param {
|
|
131
|
-
* @returns {Promise<
|
|
106
|
+
* @param {string} public_key
|
|
107
|
+
* @returns {Promise<Array<any>>}
|
|
132
108
|
*/
|
|
133
|
-
export function
|
|
109
|
+
export function get_account_slips(public_key: string): Promise<Array<any>>;
|
|
134
110
|
/**
|
|
135
|
-
* @
|
|
136
|
-
* @param {Uint8Array} tx_msg
|
|
137
|
-
* @returns {Promise<WasmTransaction>}
|
|
111
|
+
* @returns {Promise<WasmWallet>}
|
|
138
112
|
*/
|
|
139
|
-
export function
|
|
113
|
+
export function get_wallet(): Promise<WasmWallet>;
|
|
140
114
|
/**
|
|
115
|
+
* @param {Uint8Array} hash
|
|
116
|
+
* @param {bigint} block_id
|
|
141
117
|
* @param {bigint} peer_index
|
|
142
|
-
* @param {string} ip
|
|
143
118
|
* @returns {Promise<void>}
|
|
144
119
|
*/
|
|
145
|
-
export function
|
|
120
|
+
export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
146
121
|
/**
|
|
147
|
-
* @param {
|
|
148
|
-
* @param {
|
|
122
|
+
* @param {bigint} num
|
|
123
|
+
* @param {bigint} deposit
|
|
124
|
+
* @param {Uint8Array} tx_msg
|
|
149
125
|
* @param {bigint} fee
|
|
150
|
-
* @param {
|
|
126
|
+
* @param {string} recipient_public_key
|
|
127
|
+
* @param {string} nft_type
|
|
151
128
|
* @returns {Promise<WasmTransaction>}
|
|
152
129
|
*/
|
|
153
|
-
export function
|
|
130
|
+
export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
|
|
154
131
|
/**
|
|
155
|
-
* @param {Uint8Array}
|
|
156
|
-
* @param {
|
|
132
|
+
* @param {Uint8Array} buffer
|
|
133
|
+
* @param {number} msg_index
|
|
157
134
|
* @param {bigint} peer_index
|
|
158
135
|
* @returns {Promise<void>}
|
|
159
136
|
*/
|
|
160
|
-
export function
|
|
137
|
+
export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
161
138
|
/**
|
|
162
|
-
* @
|
|
139
|
+
* @param {string} config_json
|
|
140
|
+
* @param {string} private_key
|
|
141
|
+
* @param {number} log_level_num
|
|
142
|
+
* @param {bigint} hasten_multiplier
|
|
143
|
+
* @param {boolean} delete_old_blocks
|
|
144
|
+
* @returns {Promise<any>}
|
|
163
145
|
*/
|
|
164
|
-
export function
|
|
146
|
+
export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
|
|
165
147
|
/**
|
|
166
148
|
* @returns {Promise<boolean>}
|
|
167
149
|
*/
|
|
@@ -170,112 +152,130 @@ export function produce_block_with_gt(): Promise<boolean>;
|
|
|
170
152
|
* @param {bigint} peer_index
|
|
171
153
|
* @returns {Promise<void>}
|
|
172
154
|
*/
|
|
173
|
-
export function
|
|
174
|
-
/**
|
|
175
|
-
* @returns {string}
|
|
176
|
-
*/
|
|
177
|
-
export function generate_private_key(): string;
|
|
155
|
+
export function process_peer_disconnection(peer_index: bigint): Promise<void>;
|
|
178
156
|
/**
|
|
179
|
-
* @returns {Promise<
|
|
157
|
+
* @returns {Promise<bigint>}
|
|
180
158
|
*/
|
|
181
|
-
export function
|
|
159
|
+
export function get_next_peer_index(): Promise<bigint>;
|
|
182
160
|
/**
|
|
183
|
-
* @param {string}
|
|
184
|
-
* @param {
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {boolean} force_merge
|
|
161
|
+
* @param {string} slip1_utxo_key
|
|
162
|
+
* @param {string} slip2_utxo_key
|
|
163
|
+
* @param {string} slip3_utxo_key
|
|
187
164
|
* @returns {Promise<WasmTransaction>}
|
|
188
165
|
*/
|
|
189
|
-
export function
|
|
166
|
+
export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string): Promise<WasmTransaction>;
|
|
190
167
|
/**
|
|
191
|
-
* @param {
|
|
192
|
-
* @
|
|
168
|
+
* @param {number} major
|
|
169
|
+
* @param {number} minor
|
|
170
|
+
* @param {number} patch
|
|
171
|
+
* @returns {Promise<void>}
|
|
193
172
|
*/
|
|
194
|
-
export function
|
|
173
|
+
export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
|
|
195
174
|
/**
|
|
196
|
-
* @
|
|
197
|
-
* @param {bigint} deposit
|
|
198
|
-
* @param {Uint8Array} tx_msg
|
|
199
|
-
* @param {bigint} fee
|
|
200
|
-
* @param {string} recipient_public_key
|
|
201
|
-
* @param {string} nft_type
|
|
202
|
-
* @returns {Promise<WasmTransaction>}
|
|
175
|
+
* @returns {Promise<Array<any>>}
|
|
203
176
|
*/
|
|
204
|
-
export function
|
|
177
|
+
export function get_nft_list(): Promise<Array<any>>;
|
|
205
178
|
/**
|
|
206
|
-
* @
|
|
207
|
-
* @returns {Promise<void>}
|
|
179
|
+
* @returns {Promise<any>}
|
|
208
180
|
*/
|
|
209
|
-
export function
|
|
181
|
+
export function get_confirmations(): Promise<any>;
|
|
210
182
|
/**
|
|
183
|
+
* @param {Uint8Array} buffer
|
|
184
|
+
* @param {number} msg_index
|
|
185
|
+
* @param {bigint} peer_index
|
|
211
186
|
* @returns {Promise<void>}
|
|
212
187
|
*/
|
|
213
|
-
export function
|
|
188
|
+
export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
214
189
|
/**
|
|
215
190
|
* @param {Uint8Array} buffer
|
|
216
|
-
* @param {number} msg_index
|
|
217
191
|
* @param {bigint} peer_index
|
|
218
192
|
* @returns {Promise<void>}
|
|
219
193
|
*/
|
|
220
|
-
export function
|
|
194
|
+
export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
|
|
221
195
|
/**
|
|
222
|
-
* @param {bigint}
|
|
223
|
-
* @
|
|
196
|
+
* @param {bigint} amt
|
|
197
|
+
* @param {string} slip1_utxo_key
|
|
198
|
+
* @param {string} slip2_utxo_key
|
|
199
|
+
* @param {string} slip3_utxo_key
|
|
200
|
+
* @param {string} recipient_public_key
|
|
201
|
+
* @param {Uint8Array} tx_msg
|
|
202
|
+
* @returns {Promise<WasmTransaction>}
|
|
224
203
|
*/
|
|
225
|
-
export function
|
|
204
|
+
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>;
|
|
226
205
|
/**
|
|
227
206
|
* @returns {Promise<boolean>}
|
|
228
207
|
*/
|
|
229
208
|
export function produce_block_without_gt(): Promise<boolean>;
|
|
230
209
|
/**
|
|
231
|
-
* @param {
|
|
210
|
+
* @param {string} private_key
|
|
211
|
+
* @returns {string}
|
|
212
|
+
*/
|
|
213
|
+
export function generate_public_key(private_key: string): string;
|
|
214
|
+
/**
|
|
215
|
+
* @returns {Promise<string>}
|
|
216
|
+
*/
|
|
217
|
+
export function get_latest_block_hash(): Promise<string>;
|
|
218
|
+
/**
|
|
232
219
|
* @returns {Promise<void>}
|
|
233
220
|
*/
|
|
234
|
-
export function
|
|
221
|
+
export function disable_producing_blocks_by_timer(): Promise<void>;
|
|
235
222
|
/**
|
|
236
|
-
* @param {
|
|
237
|
-
* @
|
|
238
|
-
* @param {string} public_key
|
|
239
|
-
* @returns {boolean}
|
|
223
|
+
* @param {WasmTransaction} tx
|
|
224
|
+
* @returns {Promise<void>}
|
|
240
225
|
*/
|
|
241
|
-
export function
|
|
226
|
+
export function propagate_transaction(tx: WasmTransaction): Promise<void>;
|
|
242
227
|
/**
|
|
243
|
-
* @param {
|
|
244
|
-
* @param {
|
|
245
|
-
* @param {number} patch
|
|
228
|
+
* @param {bigint} peer_index
|
|
229
|
+
* @param {string} public_key
|
|
246
230
|
* @returns {Promise<void>}
|
|
247
231
|
*/
|
|
248
|
-
export function
|
|
232
|
+
export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
|
|
249
233
|
/**
|
|
250
|
-
* @param {
|
|
234
|
+
* @param {string} nft_id_hex
|
|
235
|
+
* @param {Uint8Array} tx_msg
|
|
236
|
+
* @returns {Promise<WasmTransaction>}
|
|
237
|
+
*/
|
|
238
|
+
export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
239
|
+
/**
|
|
240
|
+
* @param {bigint} current_time
|
|
251
241
|
* @returns {Promise<void>}
|
|
252
242
|
*/
|
|
253
|
-
export function
|
|
243
|
+
export function process_stat_interval(current_time: bigint): Promise<void>;
|
|
254
244
|
/**
|
|
255
|
-
* @
|
|
245
|
+
* @param {string} slip1_utxo_key
|
|
246
|
+
* @param {string} slip2_utxo_key
|
|
247
|
+
* @param {string} slip3_utxo_key
|
|
248
|
+
* @param {number} left_count
|
|
249
|
+
* @param {number} right_count
|
|
250
|
+
* @param {Uint8Array} tx_msg
|
|
251
|
+
* @returns {Promise<WasmTransaction>}
|
|
256
252
|
*/
|
|
257
|
-
export function
|
|
253
|
+
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>;
|
|
258
254
|
/**
|
|
259
|
-
* @param {
|
|
260
|
-
* @
|
|
255
|
+
* @param {Array<any>} public_keys
|
|
256
|
+
* @param {BigUint64Array} amounts
|
|
257
|
+
* @param {bigint} fee
|
|
258
|
+
* @param {boolean} _force_merge
|
|
259
|
+
* @returns {Promise<WasmTransaction>}
|
|
261
260
|
*/
|
|
262
|
-
export function
|
|
261
|
+
export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
|
|
263
262
|
/**
|
|
264
|
-
* @param {
|
|
265
|
-
* @
|
|
266
|
-
* @param {number} log_level_num
|
|
267
|
-
* @param {bigint} hasten_multiplier
|
|
268
|
-
* @param {boolean} delete_old_blocks
|
|
269
|
-
* @returns {Promise<any>}
|
|
263
|
+
* @param {bigint} duration_in_ms
|
|
264
|
+
* @returns {Promise<void>}
|
|
270
265
|
*/
|
|
271
|
-
export function
|
|
266
|
+
export function process_timer_event(duration_in_ms: bigint): Promise<void>;
|
|
272
267
|
/**
|
|
273
268
|
* @param {Uint8Array} buffer
|
|
274
269
|
* @param {number} msg_index
|
|
275
270
|
* @param {bigint} peer_index
|
|
276
271
|
* @returns {Promise<void>}
|
|
277
272
|
*/
|
|
278
|
-
export function
|
|
273
|
+
export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* @param {string} block_hash
|
|
276
|
+
* @returns {Promise<WasmBlock>}
|
|
277
|
+
*/
|
|
278
|
+
export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
279
279
|
/**
|
|
280
280
|
*/
|
|
281
281
|
export class SaitoWasm {
|
|
@@ -498,6 +498,11 @@ export class WasmBlockchain {
|
|
|
498
498
|
*/
|
|
499
499
|
get_last_block_id(): Promise<bigint>;
|
|
500
500
|
/**
|
|
501
|
+
* @param {string} utxokey_hex
|
|
502
|
+
* @returns {Promise<boolean>}
|
|
503
|
+
*/
|
|
504
|
+
is_slip_spendable(utxokey_hex: string): Promise<boolean>;
|
|
505
|
+
/**
|
|
501
506
|
* @param {Function} reorg_cb
|
|
502
507
|
* @param {Function} add_block_cb
|
|
503
508
|
* @param {Function} confirm_cb
|
|
@@ -726,6 +731,11 @@ export class WasmPeerServiceList {
|
|
|
726
731
|
export class WasmSlip {
|
|
727
732
|
free(): void;
|
|
728
733
|
/**
|
|
734
|
+
* @param {string} key_hex
|
|
735
|
+
* @returns {WasmSlip | undefined}
|
|
736
|
+
*/
|
|
737
|
+
static parse_slip_from_utxokey(key_hex: string): WasmSlip | undefined;
|
|
738
|
+
/**
|
|
729
739
|
*/
|
|
730
740
|
constructor();
|
|
731
741
|
/**
|
|
@@ -773,6 +783,13 @@ export class WasmTransaction {
|
|
|
773
783
|
*/
|
|
774
784
|
add_from_slip(slip: WasmSlip): void;
|
|
775
785
|
/**
|
|
786
|
+
* @returns {Uint8Array}
|
|
787
|
+
*/
|
|
788
|
+
get_hash_for_signature(): Uint8Array;
|
|
789
|
+
/**
|
|
790
|
+
*/
|
|
791
|
+
generate_hash_for_signature(): void;
|
|
792
|
+
/**
|
|
776
793
|
*/
|
|
777
794
|
constructor();
|
|
778
795
|
/**
|
|
@@ -1007,9 +1024,7 @@ export interface InitOutput {
|
|
|
1007
1024
|
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1008
1025
|
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
1009
1026
|
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
1010
|
-
readonly __wbg_wasmstats_free: (a: number) => void;
|
|
1011
1027
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
1012
|
-
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
1013
1028
|
readonly __wbg_wasmtransaction_free: (a: number) => void;
|
|
1014
1029
|
readonly wasmblock_avg_fee_per_byte: (a: number) => number;
|
|
1015
1030
|
readonly wasmblock_avg_income: (a: number) => number;
|
|
@@ -1067,31 +1082,13 @@ export interface InitOutput {
|
|
|
1067
1082
|
readonly wasmblock_total_rebroadcast_slips: (a: number) => number;
|
|
1068
1083
|
readonly wasmblock_total_work: (a: number) => number;
|
|
1069
1084
|
readonly wasmblock_treasury: (a: number) => number;
|
|
1070
|
-
readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
|
|
1071
|
-
readonly wasmblockchain_get_fork_id: (a: number) => number;
|
|
1072
|
-
readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
|
|
1073
|
-
readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
|
|
1074
|
-
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
1075
|
-
readonly wasmblockchain_get_last_block_hash: (a: number) => number;
|
|
1076
|
-
readonly wasmblockchain_get_last_block_id: (a: number) => number;
|
|
1077
|
-
readonly wasmblockchain_get_last_burnfee: (a: number) => number;
|
|
1078
|
-
readonly wasmblockchain_get_last_timestamp: (a: number) => number;
|
|
1079
|
-
readonly wasmblockchain_get_latest_block_id: (a: number) => number;
|
|
1080
|
-
readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
|
|
1081
|
-
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
1082
|
-
readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
|
|
1083
|
-
readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
|
|
1084
|
-
readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
|
|
1085
|
-
readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
|
|
1086
|
-
readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
|
|
1087
|
-
readonly wasmblockchain_reset: (a: number) => number;
|
|
1088
|
-
readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
|
|
1089
|
-
readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
|
|
1090
1085
|
readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
|
|
1091
1086
|
readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
|
|
1092
1087
|
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
1093
1088
|
readonly wasmtransaction_from: (a: number) => number;
|
|
1089
|
+
readonly wasmtransaction_generate_hash_for_signature: (a: number) => void;
|
|
1094
1090
|
readonly wasmtransaction_get_data: (a: number) => number;
|
|
1091
|
+
readonly wasmtransaction_get_hash_for_signature: (a: number) => number;
|
|
1095
1092
|
readonly wasmtransaction_get_routing_path: (a: number) => number;
|
|
1096
1093
|
readonly wasmtransaction_get_timestamp: (a: number) => number;
|
|
1097
1094
|
readonly wasmtransaction_get_txs_replacements: (a: number) => number;
|
|
@@ -1111,7 +1108,8 @@ export interface InitOutput {
|
|
|
1111
1108
|
readonly wasmtransaction_total_fees: (a: number) => number;
|
|
1112
1109
|
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
1113
1110
|
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
1114
|
-
readonly
|
|
1111
|
+
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
1112
|
+
readonly __wbg_wasmnft_free: (a: number) => void;
|
|
1115
1113
|
readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1116
1114
|
readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1117
1115
|
readonly create_remove_bound_transaction: (a: number, b: number, c: number) => number;
|
|
@@ -1160,25 +1158,27 @@ export interface InitOutput {
|
|
|
1160
1158
|
readonly start_from_received_ghost_chain: () => number;
|
|
1161
1159
|
readonly update_from_balance_snapshot: (a: number) => number;
|
|
1162
1160
|
readonly verify_signature: (a: number, b: number, c: number) => number;
|
|
1163
|
-
readonly
|
|
1164
|
-
readonly
|
|
1165
|
-
readonly
|
|
1166
|
-
readonly
|
|
1167
|
-
readonly
|
|
1168
|
-
readonly
|
|
1169
|
-
readonly
|
|
1170
|
-
readonly
|
|
1171
|
-
readonly
|
|
1172
|
-
readonly
|
|
1173
|
-
readonly
|
|
1174
|
-
readonly
|
|
1175
|
-
readonly
|
|
1176
|
-
readonly
|
|
1177
|
-
readonly
|
|
1178
|
-
readonly
|
|
1179
|
-
readonly
|
|
1180
|
-
readonly
|
|
1181
|
-
readonly
|
|
1161
|
+
readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
|
|
1162
|
+
readonly wasmblockchain_get_fork_id: (a: number) => number;
|
|
1163
|
+
readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
|
|
1164
|
+
readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
|
|
1165
|
+
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
1166
|
+
readonly wasmblockchain_get_last_block_hash: (a: number) => number;
|
|
1167
|
+
readonly wasmblockchain_get_last_block_id: (a: number) => number;
|
|
1168
|
+
readonly wasmblockchain_get_last_burnfee: (a: number) => number;
|
|
1169
|
+
readonly wasmblockchain_get_last_timestamp: (a: number) => number;
|
|
1170
|
+
readonly wasmblockchain_get_latest_block_id: (a: number) => number;
|
|
1171
|
+
readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
|
|
1172
|
+
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
1173
|
+
readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
|
|
1174
|
+
readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
|
|
1175
|
+
readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
|
|
1176
|
+
readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
|
|
1177
|
+
readonly wasmblockchain_is_slip_spendable: (a: number, b: number) => number;
|
|
1178
|
+
readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
|
|
1179
|
+
readonly wasmblockchain_reset: (a: number) => number;
|
|
1180
|
+
readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
|
|
1181
|
+
readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
|
|
1182
1182
|
readonly wasmnft_id: (a: number) => number;
|
|
1183
1183
|
readonly wasmnft_new: () => number;
|
|
1184
1184
|
readonly wasmnft_set_id: (a: number, b: number) => void;
|
|
@@ -1190,9 +1190,29 @@ export interface InitOutput {
|
|
|
1190
1190
|
readonly wasmnft_slip2: (a: number) => number;
|
|
1191
1191
|
readonly wasmnft_slip3: (a: number) => number;
|
|
1192
1192
|
readonly wasmnft_tx_sig: (a: number) => number;
|
|
1193
|
+
readonly write_issuance_file: (a: number) => number;
|
|
1194
|
+
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
1195
|
+
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
1196
|
+
readonly __wbg_wasmslip_free: (a: number) => void;
|
|
1197
|
+
readonly __wbg_wasmwallet_free: (a: number) => void;
|
|
1198
|
+
readonly __wbg_wasmwalletslip_free: (a: number) => void;
|
|
1199
|
+
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
1200
|
+
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
1201
|
+
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
1202
|
+
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
1203
|
+
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
1204
|
+
readonly wasmpeer_get_peer_index: (a: number) => number;
|
|
1205
|
+
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
1206
|
+
readonly wasmpeer_get_services: (a: number) => number;
|
|
1207
|
+
readonly wasmpeer_get_status: (a: number) => number;
|
|
1208
|
+
readonly wasmpeer_get_sync_type: (a: number) => number;
|
|
1209
|
+
readonly wasmpeer_has_service: (a: number, b: number) => number;
|
|
1210
|
+
readonly wasmpeer_new: (a: number) => number;
|
|
1211
|
+
readonly wasmpeer_set_services: (a: number, b: number) => void;
|
|
1193
1212
|
readonly wasmslip_amount: (a: number) => number;
|
|
1194
1213
|
readonly wasmslip_block_id: (a: number) => number;
|
|
1195
1214
|
readonly wasmslip_new: () => number;
|
|
1215
|
+
readonly wasmslip_parse_slip_from_utxokey: (a: number) => number;
|
|
1196
1216
|
readonly wasmslip_public_key: (a: number) => number;
|
|
1197
1217
|
readonly wasmslip_set_amount: (a: number, b: number) => void;
|
|
1198
1218
|
readonly wasmslip_set_block_id: (a: number, b: number) => void;
|
|
@@ -1237,6 +1257,7 @@ export interface InitOutput {
|
|
|
1237
1257
|
readonly wasmwalletslip_get_amount: (a: number) => number;
|
|
1238
1258
|
readonly wasmwalletslip_get_block_id: (a: number) => number;
|
|
1239
1259
|
readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
|
|
1260
|
+
readonly __wbg_wasmstats_free: (a: number) => void;
|
|
1240
1261
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
1241
1262
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
1242
1263
|
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|