saito-wasm 0.2.176 → 0.2.178
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 +138 -137
- package/pkg/node/index.js +324 -324
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +101 -101
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +239 -238
- package/pkg/web/index.js +322 -322
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +101 -101
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-2d0d837f15b87abe → saito-wasm-aa917f543b5208b0}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-2d0d837f15b87abe → saito-wasm-aa917f543b5208b0}/js/msg_handler.js +0 -0
package/pkg/web/index.d.ts
CHANGED
|
@@ -1,130 +1,160 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {bigint}
|
|
4
|
+
* @param {bigint} threshold
|
|
5
5
|
* @returns {Promise<void>}
|
|
6
6
|
*/
|
|
7
|
-
export function
|
|
8
|
-
/**
|
|
9
|
-
* @returns {Promise<bigint>}
|
|
10
|
-
*/
|
|
11
|
-
export function get_next_peer_index(): Promise<bigint>;
|
|
7
|
+
export function write_issuance_file(threshold: bigint): Promise<void>;
|
|
12
8
|
/**
|
|
13
|
-
* @param {
|
|
9
|
+
* @param {bigint} num
|
|
10
|
+
* @param {bigint} deposit
|
|
14
11
|
* @param {Uint8Array} tx_msg
|
|
12
|
+
* @param {bigint} fee
|
|
13
|
+
* @param {string} recipient_public_key
|
|
14
|
+
* @param {string} nft_type
|
|
15
15
|
* @returns {Promise<WasmTransaction>}
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
|
|
18
18
|
/**
|
|
19
|
-
* @returns {Promise<
|
|
19
|
+
* @returns {Promise<boolean>}
|
|
20
20
|
*/
|
|
21
|
-
export function
|
|
21
|
+
export function produce_block_with_gt(): Promise<boolean>;
|
|
22
22
|
/**
|
|
23
|
-
* @
|
|
23
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
24
|
+
* @returns {Promise<void>}
|
|
24
25
|
*/
|
|
25
|
-
export function
|
|
26
|
+
export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
|
|
26
27
|
/**
|
|
27
|
-
* @
|
|
28
|
-
* @param {number} msg_index
|
|
29
|
-
* @param {bigint} peer_index
|
|
30
|
-
* @returns {Promise<void>}
|
|
28
|
+
* @returns {Promise<WasmWallet>}
|
|
31
29
|
*/
|
|
32
|
-
export function
|
|
30
|
+
export function get_wallet(): Promise<WasmWallet>;
|
|
33
31
|
/**
|
|
32
|
+
* @param {Uint8Array} hash
|
|
33
|
+
* @param {bigint} block_id
|
|
34
34
|
* @param {bigint} peer_index
|
|
35
|
-
* @param {string} ip
|
|
36
35
|
* @returns {Promise<void>}
|
|
37
36
|
*/
|
|
38
|
-
export function
|
|
37
|
+
export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
39
38
|
/**
|
|
39
|
+
* @param {Uint8Array} buffer
|
|
40
|
+
* @param {number} msg_index
|
|
40
41
|
* @param {bigint} peer_index
|
|
41
|
-
* @param {string} public_key
|
|
42
42
|
* @returns {Promise<void>}
|
|
43
43
|
*/
|
|
44
|
-
export function
|
|
44
|
+
export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
45
45
|
/**
|
|
46
|
-
* @
|
|
46
|
+
* @param {Array<any>} public_keys
|
|
47
|
+
* @param {BigUint64Array} amounts
|
|
48
|
+
* @param {bigint} fee
|
|
49
|
+
* @param {boolean} _force_merge
|
|
50
|
+
* @returns {Promise<WasmTransaction>}
|
|
47
51
|
*/
|
|
48
|
-
export function
|
|
52
|
+
export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
|
|
49
53
|
/**
|
|
50
|
-
* @
|
|
51
|
-
* @param {string} slip2_utxo_key
|
|
52
|
-
* @param {string} slip3_utxo_key
|
|
53
|
-
* @returns {Promise<WasmTransaction>}
|
|
54
|
+
* @returns {string}
|
|
54
55
|
*/
|
|
55
|
-
export function
|
|
56
|
+
export function generate_private_key(): string;
|
|
56
57
|
/**
|
|
57
58
|
* @returns {Promise<string>}
|
|
58
59
|
*/
|
|
59
60
|
export function get_peer_stats(): Promise<string>;
|
|
60
61
|
/**
|
|
61
|
-
* @param {WasmTransaction} tx
|
|
62
62
|
* @returns {Promise<void>}
|
|
63
63
|
*/
|
|
64
|
-
export function
|
|
64
|
+
export function disable_producing_blocks_by_timer(): Promise<void>;
|
|
65
65
|
/**
|
|
66
66
|
* @param {Uint8Array} buffer
|
|
67
|
-
* @
|
|
67
|
+
* @param {bigint} peer_index
|
|
68
|
+
* @returns {Promise<void>}
|
|
68
69
|
*/
|
|
69
|
-
export function
|
|
70
|
+
export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
|
|
70
71
|
/**
|
|
71
|
-
* @param {Uint8Array} buffer
|
|
72
|
-
* @param {number} msg_index
|
|
73
72
|
* @param {bigint} peer_index
|
|
74
73
|
* @returns {Promise<void>}
|
|
75
74
|
*/
|
|
76
|
-
export function
|
|
75
|
+
export function remove_stun_peer(peer_index: bigint): Promise<void>;
|
|
77
76
|
/**
|
|
78
77
|
* @param {Uint8Array} buffer
|
|
79
78
|
* @param {number} msg_index
|
|
80
79
|
* @param {bigint} peer_index
|
|
81
80
|
* @returns {Promise<void>}
|
|
82
81
|
*/
|
|
83
|
-
export function
|
|
82
|
+
export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* @returns {Promise<bigint>}
|
|
85
|
+
*/
|
|
86
|
+
export function get_next_peer_index(): Promise<bigint>;
|
|
87
|
+
/**
|
|
88
|
+
* @param {string} block_hash
|
|
89
|
+
* @returns {Promise<WasmBlock>}
|
|
90
|
+
*/
|
|
91
|
+
export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
92
|
+
/**
|
|
93
|
+
* @returns {Promise<string>}
|
|
94
|
+
*/
|
|
95
|
+
export function get_congestion_stats(): Promise<string>;
|
|
96
|
+
/**
|
|
97
|
+
* @param {string} nft_id_hex
|
|
98
|
+
* @param {Uint8Array} tx_msg
|
|
99
|
+
* @returns {Promise<WasmTransaction>}
|
|
100
|
+
*/
|
|
101
|
+
export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
84
102
|
/**
|
|
85
103
|
* @param {bigint} peer_index
|
|
86
104
|
* @returns {Promise<void>}
|
|
87
105
|
*/
|
|
88
106
|
export function process_peer_disconnection(peer_index: bigint): Promise<void>;
|
|
89
107
|
/**
|
|
90
|
-
* @param {
|
|
91
|
-
* @
|
|
92
|
-
* @param {Uint8Array} tx_msg
|
|
93
|
-
* @param {bigint} fee
|
|
94
|
-
* @param {string} recipient_public_key
|
|
95
|
-
* @param {string} nft_type
|
|
96
|
-
* @returns {Promise<WasmTransaction>}
|
|
108
|
+
* @param {WasmTransaction} tx
|
|
109
|
+
* @returns {Promise<void>}
|
|
97
110
|
*/
|
|
98
|
-
export function
|
|
111
|
+
export function propagate_transaction(tx: WasmTransaction): Promise<void>;
|
|
99
112
|
/**
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {
|
|
113
|
+
* @param {string} public_key
|
|
114
|
+
* @param {bigint} amount
|
|
102
115
|
* @param {bigint} fee
|
|
103
|
-
* @param {boolean}
|
|
116
|
+
* @param {boolean} force_merge
|
|
104
117
|
* @returns {Promise<WasmTransaction>}
|
|
105
118
|
*/
|
|
106
|
-
export function
|
|
119
|
+
export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
|
|
107
120
|
/**
|
|
108
121
|
* @returns {Promise<any>}
|
|
109
122
|
*/
|
|
110
123
|
export function get_confirmations(): Promise<any>;
|
|
111
124
|
/**
|
|
125
|
+
* @param {bigint} peer_index
|
|
126
|
+
* @param {string} public_key
|
|
112
127
|
* @returns {Promise<void>}
|
|
113
128
|
*/
|
|
114
|
-
export function
|
|
129
|
+
export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
|
|
115
130
|
/**
|
|
116
|
-
* @
|
|
131
|
+
* @param {string} private_key
|
|
132
|
+
* @returns {string}
|
|
117
133
|
*/
|
|
118
|
-
export function
|
|
134
|
+
export function generate_public_key(private_key: string): string;
|
|
119
135
|
/**
|
|
120
|
-
* @
|
|
136
|
+
* @param {Uint8Array} buffer
|
|
137
|
+
* @param {string} signature
|
|
138
|
+
* @param {string} public_key
|
|
139
|
+
* @returns {boolean}
|
|
121
140
|
*/
|
|
122
|
-
export function
|
|
141
|
+
export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* @param {Uint8Array} buffer
|
|
144
|
+
* @param {string} private_key
|
|
145
|
+
* @returns {string}
|
|
146
|
+
*/
|
|
147
|
+
export function sign_buffer(buffer: Uint8Array, private_key: string): string;
|
|
148
|
+
/**
|
|
149
|
+
* @returns {Promise<Array<any>>}
|
|
150
|
+
*/
|
|
151
|
+
export function get_peers(): Promise<Array<any>>;
|
|
123
152
|
/**
|
|
124
153
|
* @param {bigint} peer_index
|
|
125
|
-
* @
|
|
154
|
+
* @param {string} ip
|
|
155
|
+
* @returns {Promise<void>}
|
|
126
156
|
*/
|
|
127
|
-
export function
|
|
157
|
+
export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
|
|
128
158
|
/**
|
|
129
159
|
* @param {string} config_json
|
|
130
160
|
* @param {string} private_key
|
|
@@ -135,61 +165,65 @@ export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
|
|
|
135
165
|
*/
|
|
136
166
|
export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
|
|
137
167
|
/**
|
|
138
|
-
* @
|
|
168
|
+
* @param {Array<any>} keys
|
|
169
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
139
170
|
*/
|
|
140
|
-
export function
|
|
171
|
+
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
141
172
|
/**
|
|
142
|
-
* @param {
|
|
173
|
+
* @param {Uint8Array} buffer
|
|
174
|
+
* @param {number} msg_index
|
|
175
|
+
* @param {bigint} peer_index
|
|
143
176
|
* @returns {Promise<void>}
|
|
144
177
|
*/
|
|
145
|
-
export function
|
|
178
|
+
export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
146
179
|
/**
|
|
147
|
-
* @
|
|
148
|
-
* @returns {Promise<Array<any>>}
|
|
180
|
+
* @returns {Promise<string>}
|
|
149
181
|
*/
|
|
150
|
-
export function
|
|
182
|
+
export function get_latest_block_hash(): Promise<string>;
|
|
151
183
|
/**
|
|
152
184
|
* @param {bigint} peer_index
|
|
153
|
-
* @returns {Promise<
|
|
185
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
154
186
|
*/
|
|
155
|
-
export function
|
|
187
|
+
export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
|
|
156
188
|
/**
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {Uint8Array} hash
|
|
159
|
-
* @param {bigint} block_id
|
|
160
|
-
* @param {bigint} peer_index
|
|
189
|
+
* @param {bigint} current_time
|
|
161
190
|
* @returns {Promise<void>}
|
|
162
191
|
*/
|
|
163
|
-
export function
|
|
192
|
+
export function process_stat_interval(current_time: bigint): Promise<void>;
|
|
164
193
|
/**
|
|
165
194
|
* @param {string} slip1_utxo_key
|
|
166
195
|
* @param {string} slip2_utxo_key
|
|
167
196
|
* @param {string} slip3_utxo_key
|
|
168
|
-
* @param {number} left_count
|
|
169
|
-
* @param {number} right_count
|
|
170
197
|
* @param {Uint8Array} tx_msg
|
|
171
198
|
* @returns {Promise<WasmTransaction>}
|
|
172
199
|
*/
|
|
173
|
-
export function
|
|
174
|
-
/**
|
|
175
|
-
* @returns {Promise<Array<any>>}
|
|
176
|
-
*/
|
|
177
|
-
export function get_nft_list(): Promise<Array<any>>;
|
|
200
|
+
export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
178
201
|
/**
|
|
179
202
|
* @returns {Promise<string>}
|
|
180
203
|
*/
|
|
181
204
|
export function get_stats(): Promise<string>;
|
|
182
205
|
/**
|
|
183
|
-
* @param {
|
|
184
|
-
* @param {
|
|
185
|
-
* @param {
|
|
206
|
+
* @param {Uint8Array} buffer
|
|
207
|
+
* @param {Uint8Array} hash
|
|
208
|
+
* @param {bigint} block_id
|
|
209
|
+
* @param {bigint} peer_index
|
|
186
210
|
* @returns {Promise<void>}
|
|
187
211
|
*/
|
|
188
|
-
export function
|
|
212
|
+
export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
189
213
|
/**
|
|
190
|
-
* @
|
|
214
|
+
* @param {string} public_key
|
|
215
|
+
* @returns {Promise<Array<any>>}
|
|
191
216
|
*/
|
|
192
|
-
export function
|
|
217
|
+
export function get_account_slips(public_key: string): Promise<Array<any>>;
|
|
218
|
+
/**
|
|
219
|
+
* @param {Uint8Array} buffer
|
|
220
|
+
* @returns {string}
|
|
221
|
+
*/
|
|
222
|
+
export function hash(buffer: Uint8Array): string;
|
|
223
|
+
/**
|
|
224
|
+
* @returns {Promise<WasmBlockchain>}
|
|
225
|
+
*/
|
|
226
|
+
export function get_blockchain(): Promise<WasmBlockchain>;
|
|
193
227
|
/**
|
|
194
228
|
* @param {bigint} amt
|
|
195
229
|
* @param {string} slip1_utxo_key
|
|
@@ -201,81 +235,48 @@ export function get_congestion_stats(): Promise<string>;
|
|
|
201
235
|
*/
|
|
202
236
|
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
237
|
/**
|
|
204
|
-
* @
|
|
205
|
-
* @param {string} private_key
|
|
206
|
-
* @returns {string}
|
|
207
|
-
*/
|
|
208
|
-
export function sign_buffer(buffer: Uint8Array, private_key: string): string;
|
|
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
|
|
216
|
-
* @returns {string}
|
|
217
|
-
*/
|
|
218
|
-
export function generate_public_key(private_key: string): string;
|
|
219
|
-
/**
|
|
220
|
-
* @param {Uint8Array} buffer
|
|
221
|
-
* @param {string} signature
|
|
222
|
-
* @param {string} public_key
|
|
223
|
-
* @returns {boolean}
|
|
238
|
+
* @returns {Promise<Array<any>>}
|
|
224
239
|
*/
|
|
225
|
-
export function
|
|
240
|
+
export function get_nft_list(): Promise<Array<any>>;
|
|
226
241
|
/**
|
|
227
|
-
* @param {
|
|
228
|
-
* @param {
|
|
242
|
+
* @param {number} major
|
|
243
|
+
* @param {number} minor
|
|
244
|
+
* @param {number} patch
|
|
229
245
|
* @returns {Promise<void>}
|
|
230
246
|
*/
|
|
231
|
-
export function
|
|
232
|
-
/**
|
|
233
|
-
* @returns {Promise<Array<any>>}
|
|
234
|
-
*/
|
|
235
|
-
export function get_peers(): Promise<Array<any>>;
|
|
247
|
+
export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
|
|
236
248
|
/**
|
|
237
249
|
* @returns {Promise<boolean>}
|
|
238
250
|
*/
|
|
239
|
-
export function
|
|
240
|
-
/**
|
|
241
|
-
* @param {string} key
|
|
242
|
-
* @returns {boolean}
|
|
243
|
-
*/
|
|
244
|
-
export function is_valid_public_key(key: string): boolean;
|
|
251
|
+
export function produce_block_without_gt(): Promise<boolean>;
|
|
245
252
|
/**
|
|
246
|
-
* @param {string}
|
|
247
|
-
* @param {
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {
|
|
253
|
+
* @param {string} slip1_utxo_key
|
|
254
|
+
* @param {string} slip2_utxo_key
|
|
255
|
+
* @param {string} slip3_utxo_key
|
|
256
|
+
* @param {number} left_count
|
|
257
|
+
* @param {number} right_count
|
|
258
|
+
* @param {Uint8Array} tx_msg
|
|
250
259
|
* @returns {Promise<WasmTransaction>}
|
|
251
260
|
*/
|
|
252
|
-
export function
|
|
261
|
+
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>;
|
|
253
262
|
/**
|
|
254
|
-
* @param {
|
|
263
|
+
* @param {bigint} duration_in_ms
|
|
255
264
|
* @returns {Promise<void>}
|
|
256
265
|
*/
|
|
257
|
-
export function
|
|
266
|
+
export function process_timer_event(duration_in_ms: bigint): Promise<void>;
|
|
258
267
|
/**
|
|
259
|
-
* @
|
|
268
|
+
* @param {string} key
|
|
269
|
+
* @returns {boolean}
|
|
260
270
|
*/
|
|
261
|
-
export function
|
|
271
|
+
export function is_valid_public_key(key: string): boolean;
|
|
262
272
|
/**
|
|
263
|
-
* @param {bigint} current_time
|
|
264
273
|
* @returns {Promise<void>}
|
|
265
274
|
*/
|
|
266
|
-
export function
|
|
267
|
-
/**
|
|
268
|
-
* @param {Array<any>} keys
|
|
269
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
270
|
-
*/
|
|
271
|
-
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
275
|
+
export function start_from_received_ghost_chain(): Promise<void>;
|
|
272
276
|
/**
|
|
273
|
-
* @
|
|
274
|
-
* @param {bigint} block_id
|
|
275
|
-
* @param {bigint} peer_index
|
|
276
|
-
* @returns {Promise<void>}
|
|
277
|
+
* @returns {Promise<Array<any>>}
|
|
277
278
|
*/
|
|
278
|
-
export function
|
|
279
|
+
export function get_mempool_txs(): Promise<Array<any>>;
|
|
279
280
|
/**
|
|
280
281
|
*/
|
|
281
282
|
export class SaitoWasm {
|
|
@@ -991,7 +992,31 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
991
992
|
|
|
992
993
|
export interface InitOutput {
|
|
993
994
|
readonly memory: WebAssembly.Memory;
|
|
995
|
+
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
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;
|
|
994
1018
|
readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
|
|
1019
|
+
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
995
1020
|
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
996
1021
|
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
997
1022
|
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
@@ -1006,10 +1031,11 @@ export interface InitOutput {
|
|
|
1006
1031
|
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
1007
1032
|
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1008
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;
|
|
1009
1037
|
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
1010
|
-
readonly __wbg_wasmstats_free: (a: number) => void;
|
|
1011
1038
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
1012
|
-
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
1013
1039
|
readonly __wbg_wasmtransaction_free: (a: number) => void;
|
|
1014
1040
|
readonly wasmblock_avg_fee_per_byte: (a: number) => number;
|
|
1015
1041
|
readonly wasmblock_avg_income: (a: number) => number;
|
|
@@ -1067,9 +1093,6 @@ export interface InitOutput {
|
|
|
1067
1093
|
readonly wasmblock_total_rebroadcast_slips: (a: number) => number;
|
|
1068
1094
|
readonly wasmblock_total_work: (a: number) => number;
|
|
1069
1095
|
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;
|
|
1073
1096
|
readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
|
|
1074
1097
|
readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
|
|
1075
1098
|
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
@@ -1095,92 +1118,20 @@ export interface InitOutput {
|
|
|
1095
1118
|
readonly wasmtransaction_to: (a: number) => number;
|
|
1096
1119
|
readonly wasmtransaction_total_fees: (a: number) => number;
|
|
1097
1120
|
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
1098
|
-
readonly __wbg_wasmnft_free: (a: 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;
|
|
1102
|
-
readonly wasmnft_id: (a: number) => number;
|
|
1103
|
-
readonly wasmnft_new: () => number;
|
|
1104
|
-
readonly wasmnft_set_id: (a: number, b: number) => void;
|
|
1105
|
-
readonly wasmnft_set_slip1: (a: number, b: number) => void;
|
|
1106
|
-
readonly wasmnft_set_slip2: (a: number, b: number) => void;
|
|
1107
|
-
readonly wasmnft_set_slip3: (a: number, b: number) => void;
|
|
1108
|
-
readonly wasmnft_set_tx_sig: (a: number, b: number) => void;
|
|
1109
|
-
readonly wasmnft_slip1: (a: number) => number;
|
|
1110
|
-
readonly wasmnft_slip2: (a: number) => number;
|
|
1111
|
-
readonly wasmnft_slip3: (a: number) => number;
|
|
1112
|
-
readonly wasmnft_tx_sig: (a: number) => number;
|
|
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
1121
|
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
1162
1122
|
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
1163
|
-
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
1164
1123
|
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
1165
1124
|
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
1166
1125
|
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
1167
1126
|
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
1168
1127
|
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;
|
|
1178
1128
|
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
1129
|
+
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
1179
1130
|
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
1180
1131
|
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
1181
1132
|
readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1182
1133
|
readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1183
|
-
readonly create_remove_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1134
|
+
readonly create_remove_bound_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
1184
1135
|
readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1185
1136
|
readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1186
1137
|
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -1226,6 +1177,15 @@ export interface InitOutput {
|
|
|
1226
1177
|
readonly start_from_received_ghost_chain: () => number;
|
|
1227
1178
|
readonly update_from_balance_snapshot: (a: number) => number;
|
|
1228
1179
|
readonly verify_signature: (a: number, b: number, c: number) => number;
|
|
1180
|
+
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
1181
|
+
readonly wasmpeer_get_peer_index: (a: number) => number;
|
|
1182
|
+
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
1183
|
+
readonly wasmpeer_get_services: (a: number) => number;
|
|
1184
|
+
readonly wasmpeer_get_status: (a: number) => number;
|
|
1185
|
+
readonly wasmpeer_get_sync_type: (a: number) => number;
|
|
1186
|
+
readonly wasmpeer_has_service: (a: number, b: number) => number;
|
|
1187
|
+
readonly wasmpeer_new: (a: number) => number;
|
|
1188
|
+
readonly wasmpeer_set_services: (a: number, b: number) => void;
|
|
1229
1189
|
readonly wasmpeerservice_get_domain: (a: number) => number;
|
|
1230
1190
|
readonly wasmpeerservice_get_name: (a: number) => number;
|
|
1231
1191
|
readonly wasmpeerservice_get_service: (a: number) => number;
|
|
@@ -1236,28 +1196,69 @@ export interface InitOutput {
|
|
|
1236
1196
|
readonly wasmpeerservicelist_new: () => number;
|
|
1237
1197
|
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
1238
1198
|
readonly write_issuance_file: (a: number) => number;
|
|
1239
|
-
readonly
|
|
1240
|
-
readonly
|
|
1241
|
-
readonly
|
|
1242
|
-
readonly
|
|
1243
|
-
readonly
|
|
1244
|
-
readonly
|
|
1245
|
-
readonly
|
|
1246
|
-
readonly
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly
|
|
1249
|
-
readonly
|
|
1250
|
-
readonly
|
|
1251
|
-
readonly
|
|
1252
|
-
readonly
|
|
1253
|
-
readonly
|
|
1254
|
-
readonly
|
|
1255
|
-
readonly
|
|
1256
|
-
readonly
|
|
1257
|
-
readonly
|
|
1258
|
-
readonly
|
|
1259
|
-
readonly
|
|
1260
|
-
readonly
|
|
1199
|
+
readonly __wbg_wasmnft_free: (a: number) => void;
|
|
1200
|
+
readonly __wbg_wasmslip_free: (a: number) => void;
|
|
1201
|
+
readonly __wbg_wasmwallet_free: (a: number) => void;
|
|
1202
|
+
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
|
+
readonly wasmslip_amount: (a: number) => number;
|
|
1215
|
+
readonly wasmslip_block_id: (a: number) => number;
|
|
1216
|
+
readonly wasmslip_new: () => number;
|
|
1217
|
+
readonly wasmslip_parse_slip_from_utxokey: (a: number) => number;
|
|
1218
|
+
readonly wasmslip_public_key: (a: number) => number;
|
|
1219
|
+
readonly wasmslip_set_amount: (a: number, b: number) => void;
|
|
1220
|
+
readonly wasmslip_set_block_id: (a: number, b: number) => void;
|
|
1221
|
+
readonly wasmslip_set_public_key: (a: number, b: number) => void;
|
|
1222
|
+
readonly wasmslip_set_slip_index: (a: number, b: number) => void;
|
|
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;
|
|
1261
1262
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
1262
1263
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
1263
1264
|
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|