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