saito-wasm 0.2.161 → 0.2.162
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 +263 -263
- package/pkg/node/index.js +1129 -1130
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +216 -216
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +478 -478
- package/pkg/web/index.js +1105 -1106
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +216 -216
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-7abf862820f718f5 → saito-wasm-4fafc63e3cd3af2c}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-7abf862820f718f5 → saito-wasm-4fafc63e3cd3af2c}/js/msg_handler.js +0 -0
package/pkg/web/index.d.ts
CHANGED
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string}
|
|
5
|
-
* @
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
* @param {string} public_key
|
|
5
|
+
* @returns {Promise<Array<any>>}
|
|
6
|
+
*/
|
|
7
|
+
export function get_account_slips(public_key: string): Promise<Array<any>>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {bigint} peer_index
|
|
10
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
11
|
+
*/
|
|
12
|
+
export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
|
|
13
|
+
/**
|
|
9
14
|
* @returns {Promise<any>}
|
|
10
15
|
*/
|
|
11
|
-
export function
|
|
16
|
+
export function get_confirmations(): Promise<any>;
|
|
12
17
|
/**
|
|
13
|
-
* @param {
|
|
14
|
-
* @param {
|
|
15
|
-
* @param {bigint}
|
|
16
|
-
* @
|
|
17
|
-
* @returns {Promise<WasmTransaction>}
|
|
18
|
+
* @param {Uint8Array} buffer
|
|
19
|
+
* @param {number} msg_index
|
|
20
|
+
* @param {bigint} peer_index
|
|
21
|
+
* @returns {Promise<void>}
|
|
18
22
|
*/
|
|
19
|
-
export function
|
|
23
|
+
export function send_api_error(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
20
24
|
/**
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {
|
|
24
|
-
* @
|
|
25
|
-
* @returns {Promise<WasmTransaction>}
|
|
25
|
+
* @param {number} major
|
|
26
|
+
* @param {number} minor
|
|
27
|
+
* @param {number} patch
|
|
28
|
+
* @returns {Promise<void>}
|
|
26
29
|
*/
|
|
27
|
-
export function
|
|
30
|
+
export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* @param {string} block_hash
|
|
33
|
+
* @returns {Promise<WasmBlock>}
|
|
34
|
+
*/
|
|
35
|
+
export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
28
36
|
/**
|
|
29
37
|
* @param {bigint} num
|
|
30
38
|
* @param {bigint} deposit
|
|
@@ -36,25 +44,31 @@ export function create_transaction_with_multiple_payments(public_keys: Array<any
|
|
|
36
44
|
*/
|
|
37
45
|
export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
|
|
38
46
|
/**
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {string}
|
|
41
|
-
* @param {
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {
|
|
44
|
-
* @
|
|
45
|
-
* @returns {Promise<WasmTransaction>}
|
|
47
|
+
* @param {string} config_json
|
|
48
|
+
* @param {string} private_key
|
|
49
|
+
* @param {number} log_level_num
|
|
50
|
+
* @param {bigint} hasten_multiplier
|
|
51
|
+
* @param {boolean} delete_old_blocks
|
|
52
|
+
* @returns {Promise<any>}
|
|
46
53
|
*/
|
|
47
|
-
export function
|
|
54
|
+
export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
|
|
48
55
|
/**
|
|
49
|
-
* @param {
|
|
50
|
-
* @param {string}
|
|
51
|
-
* @param {string}
|
|
52
|
-
* @
|
|
53
|
-
* @param {number} right_count
|
|
54
|
-
* @param {Uint8Array} tx_msg
|
|
55
|
-
* @returns {Promise<WasmTransaction>}
|
|
56
|
+
* @param {Uint8Array} buffer
|
|
57
|
+
* @param {string} signature
|
|
58
|
+
* @param {string} public_key
|
|
59
|
+
* @returns {boolean}
|
|
56
60
|
*/
|
|
57
|
-
export function
|
|
61
|
+
export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @returns {Promise<string>}
|
|
64
|
+
*/
|
|
65
|
+
export function get_stats(): Promise<string>;
|
|
66
|
+
/**
|
|
67
|
+
* @param {bigint} peer_index
|
|
68
|
+
* @param {string} public_key
|
|
69
|
+
* @returns {Promise<void>}
|
|
70
|
+
*/
|
|
71
|
+
export function process_stun_peer(peer_index: bigint, public_key: string): Promise<void>;
|
|
58
72
|
/**
|
|
59
73
|
* @param {string} nft_id_hex
|
|
60
74
|
* @param {Uint8Array} tx_msg
|
|
@@ -62,18 +76,14 @@ export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utx
|
|
|
62
76
|
*/
|
|
63
77
|
export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
64
78
|
/**
|
|
65
|
-
* @
|
|
66
|
-
|
|
67
|
-
export function get_nft_list(): Promise<Array<any>>;
|
|
68
|
-
/**
|
|
69
|
-
* @returns {Promise<string>}
|
|
79
|
+
* @param {WasmTransaction} tx
|
|
80
|
+
* @returns {Promise<void>}
|
|
70
81
|
*/
|
|
71
|
-
export function
|
|
82
|
+
export function propagate_transaction(tx: WasmTransaction): Promise<void>;
|
|
72
83
|
/**
|
|
73
|
-
* @
|
|
74
|
-
* @returns {Promise<WasmBlock>}
|
|
84
|
+
* @returns {Promise<Array<any>>}
|
|
75
85
|
*/
|
|
76
|
-
export function
|
|
86
|
+
export function get_nft_list(): Promise<Array<any>>;
|
|
77
87
|
/**
|
|
78
88
|
* @param {bigint} peer_index
|
|
79
89
|
* @param {string} ip
|
|
@@ -81,194 +91,184 @@ export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
|
81
91
|
*/
|
|
82
92
|
export function process_new_peer(peer_index: bigint, ip: string): Promise<void>;
|
|
83
93
|
/**
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {string} public_key
|
|
94
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
86
95
|
* @returns {Promise<void>}
|
|
87
96
|
*/
|
|
88
|
-
export function
|
|
97
|
+
export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
|
|
89
98
|
/**
|
|
90
99
|
* @param {bigint} peer_index
|
|
91
100
|
* @returns {Promise<void>}
|
|
92
101
|
*/
|
|
93
102
|
export function remove_stun_peer(peer_index: bigint): Promise<void>;
|
|
94
103
|
/**
|
|
95
|
-
* @
|
|
104
|
+
* @param {bigint} amt
|
|
105
|
+
* @param {string} slip1_utxo_key
|
|
106
|
+
* @param {string} slip2_utxo_key
|
|
107
|
+
* @param {string} slip3_utxo_key
|
|
108
|
+
* @param {string} recipient_public_key
|
|
109
|
+
* @param {Uint8Array} tx_msg
|
|
110
|
+
* @returns {Promise<WasmTransaction>}
|
|
96
111
|
*/
|
|
97
|
-
export function
|
|
112
|
+
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>;
|
|
98
113
|
/**
|
|
99
|
-
* @param {
|
|
100
|
-
* @
|
|
114
|
+
* @param {Uint8Array} buffer
|
|
115
|
+
* @param {string} private_key
|
|
116
|
+
* @returns {string}
|
|
101
117
|
*/
|
|
102
|
-
export function
|
|
118
|
+
export function sign_buffer(buffer: Uint8Array, private_key: string): string;
|
|
103
119
|
/**
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {bigint} peer_index
|
|
120
|
+
* @param {bigint} duration_in_ms
|
|
106
121
|
* @returns {Promise<void>}
|
|
107
122
|
*/
|
|
108
|
-
export function
|
|
123
|
+
export function process_timer_event(duration_in_ms: bigint): Promise<void>;
|
|
109
124
|
/**
|
|
110
|
-
* @
|
|
111
|
-
* @param {Uint8Array} hash
|
|
112
|
-
* @param {bigint} block_id
|
|
113
|
-
* @param {bigint} peer_index
|
|
114
|
-
* @returns {Promise<void>}
|
|
125
|
+
* @returns {Promise<string>}
|
|
115
126
|
*/
|
|
116
|
-
export function
|
|
127
|
+
export function get_peer_stats(): Promise<string>;
|
|
117
128
|
/**
|
|
118
|
-
* @
|
|
119
|
-
* @param {bigint} block_id
|
|
120
|
-
* @param {bigint} peer_index
|
|
121
|
-
* @returns {Promise<void>}
|
|
129
|
+
* @returns {Promise<string>}
|
|
122
130
|
*/
|
|
123
|
-
export function
|
|
131
|
+
export function get_congestion_stats(): Promise<string>;
|
|
124
132
|
/**
|
|
125
|
-
* @param {bigint}
|
|
133
|
+
* @param {bigint} threshold
|
|
126
134
|
* @returns {Promise<void>}
|
|
127
135
|
*/
|
|
128
|
-
export function
|
|
136
|
+
export function write_issuance_file(threshold: bigint): Promise<void>;
|
|
129
137
|
/**
|
|
130
|
-
* @
|
|
131
|
-
* @returns {Promise<void>}
|
|
138
|
+
* @returns {Promise<bigint>}
|
|
132
139
|
*/
|
|
133
|
-
export function
|
|
140
|
+
export function get_next_peer_index(): Promise<bigint>;
|
|
134
141
|
/**
|
|
135
|
-
* @
|
|
136
|
-
* @returns {string}
|
|
142
|
+
* @returns {Promise<string>}
|
|
137
143
|
*/
|
|
138
|
-
export function
|
|
144
|
+
export function get_latest_block_hash(): Promise<string>;
|
|
139
145
|
/**
|
|
140
146
|
* @param {Uint8Array} buffer
|
|
141
|
-
* @param {
|
|
142
|
-
* @
|
|
147
|
+
* @param {number} msg_index
|
|
148
|
+
* @param {bigint} peer_index
|
|
149
|
+
* @returns {Promise<void>}
|
|
143
150
|
*/
|
|
144
|
-
export function
|
|
151
|
+
export function send_api_success(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
145
152
|
/**
|
|
146
|
-
* @
|
|
147
|
-
* @param {string} signature
|
|
148
|
-
* @param {string} public_key
|
|
149
|
-
* @returns {boolean}
|
|
153
|
+
* @returns {Promise<boolean>}
|
|
150
154
|
*/
|
|
151
|
-
export function
|
|
155
|
+
export function produce_block_with_gt(): Promise<boolean>;
|
|
152
156
|
/**
|
|
153
|
-
* @
|
|
157
|
+
* @param {string} slip1_utxo_key
|
|
158
|
+
* @param {string} slip2_utxo_key
|
|
159
|
+
* @param {string} slip3_utxo_key
|
|
160
|
+
* @param {number} left_count
|
|
161
|
+
* @param {number} right_count
|
|
162
|
+
* @param {Uint8Array} tx_msg
|
|
163
|
+
* @returns {Promise<WasmTransaction>}
|
|
154
164
|
*/
|
|
155
|
-
export function
|
|
165
|
+
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>;
|
|
156
166
|
/**
|
|
157
167
|
* @param {bigint} peer_index
|
|
158
|
-
* @returns {Promise<
|
|
168
|
+
* @returns {Promise<void>}
|
|
159
169
|
*/
|
|
160
|
-
export function
|
|
170
|
+
export function process_peer_disconnection(peer_index: bigint): Promise<void>;
|
|
161
171
|
/**
|
|
162
172
|
* @param {string} public_key
|
|
163
|
-
* @
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* @param {Array<any>} keys
|
|
168
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
169
|
-
*/
|
|
170
|
-
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
171
|
-
/**
|
|
172
|
-
* @param {WasmBalanceSnapshot} snapshot
|
|
173
|
-
* @returns {Promise<void>}
|
|
173
|
+
* @param {bigint} amount
|
|
174
|
+
* @param {bigint} fee
|
|
175
|
+
* @param {boolean} force_merge
|
|
176
|
+
* @returns {Promise<WasmTransaction>}
|
|
174
177
|
*/
|
|
175
|
-
export function
|
|
178
|
+
export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
|
|
176
179
|
/**
|
|
177
|
-
* @returns {
|
|
180
|
+
* @returns {Promise<boolean>}
|
|
178
181
|
*/
|
|
179
|
-
export function
|
|
182
|
+
export function produce_block_without_gt(): Promise<boolean>;
|
|
180
183
|
/**
|
|
181
184
|
* @param {string} private_key
|
|
182
185
|
* @returns {string}
|
|
183
186
|
*/
|
|
184
187
|
export function generate_public_key(private_key: string): string;
|
|
185
188
|
/**
|
|
186
|
-
* @
|
|
187
|
-
* @returns {Promise<void>}
|
|
189
|
+
* @returns {Promise<WasmWallet>}
|
|
188
190
|
*/
|
|
189
|
-
export function
|
|
191
|
+
export function get_wallet(): Promise<WasmWallet>;
|
|
190
192
|
/**
|
|
191
|
-
* @
|
|
192
|
-
* @param {number} msg_index
|
|
193
|
-
* @param {bigint} peer_index
|
|
194
|
-
* @returns {Promise<void>}
|
|
193
|
+
* @returns {Promise<Array<any>>}
|
|
195
194
|
*/
|
|
196
|
-
export function
|
|
195
|
+
export function get_mempool_txs(): Promise<Array<any>>;
|
|
197
196
|
/**
|
|
198
|
-
* @param {Uint8Array} buffer
|
|
199
|
-
* @param {number} msg_index
|
|
200
|
-
* @param {bigint} peer_index
|
|
201
197
|
* @returns {Promise<void>}
|
|
202
198
|
*/
|
|
203
|
-
export function
|
|
199
|
+
export function start_from_received_ghost_chain(): Promise<void>;
|
|
204
200
|
/**
|
|
205
|
-
* @param {
|
|
206
|
-
* @param {number} msg_index
|
|
207
|
-
* @param {bigint} peer_index
|
|
201
|
+
* @param {bigint} current_time
|
|
208
202
|
* @returns {Promise<void>}
|
|
209
203
|
*/
|
|
210
|
-
export function
|
|
204
|
+
export function process_stat_interval(current_time: bigint): Promise<void>;
|
|
211
205
|
/**
|
|
212
|
-
* @returns {
|
|
206
|
+
* @returns {string}
|
|
213
207
|
*/
|
|
214
|
-
export function
|
|
208
|
+
export function generate_private_key(): string;
|
|
215
209
|
/**
|
|
216
|
-
* @
|
|
210
|
+
* @param {Uint8Array} buffer
|
|
211
|
+
* @param {Uint8Array} hash
|
|
212
|
+
* @param {bigint} block_id
|
|
213
|
+
* @param {bigint} peer_index
|
|
214
|
+
* @returns {Promise<void>}
|
|
217
215
|
*/
|
|
218
|
-
export function
|
|
216
|
+
export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
219
217
|
/**
|
|
220
218
|
* @returns {Promise<Array<any>>}
|
|
221
219
|
*/
|
|
222
|
-
export function
|
|
220
|
+
export function get_peers(): Promise<Array<any>>;
|
|
223
221
|
/**
|
|
224
|
-
* @param {
|
|
225
|
-
* @param {
|
|
226
|
-
* @param {number} patch
|
|
222
|
+
* @param {Uint8Array} buffer
|
|
223
|
+
* @param {bigint} peer_index
|
|
227
224
|
* @returns {Promise<void>}
|
|
228
225
|
*/
|
|
229
|
-
export function
|
|
226
|
+
export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: bigint): Promise<void>;
|
|
230
227
|
/**
|
|
231
228
|
* @param {string} key
|
|
232
229
|
* @returns {boolean}
|
|
233
230
|
*/
|
|
234
231
|
export function is_valid_public_key(key: string): boolean;
|
|
235
232
|
/**
|
|
236
|
-
* @param {
|
|
237
|
-
* @
|
|
233
|
+
* @param {Array<any>} public_keys
|
|
234
|
+
* @param {BigUint64Array} amounts
|
|
235
|
+
* @param {bigint} fee
|
|
236
|
+
* @param {boolean} _force_merge
|
|
237
|
+
* @returns {Promise<WasmTransaction>}
|
|
238
238
|
*/
|
|
239
|
-
export function
|
|
239
|
+
export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
|
|
240
240
|
/**
|
|
241
|
-
* @returns {Promise<
|
|
241
|
+
* @returns {Promise<WasmBlockchain>}
|
|
242
242
|
*/
|
|
243
|
-
export function
|
|
244
|
-
/**
|
|
245
|
-
* @returns {Promise<boolean>}
|
|
246
|
-
*/
|
|
247
|
-
export function produce_block_with_gt(): Promise<boolean>;
|
|
248
|
-
/**
|
|
249
|
-
* @returns {Promise<boolean>}
|
|
250
|
-
*/
|
|
251
|
-
export function produce_block_without_gt(): Promise<boolean>;
|
|
243
|
+
export function get_blockchain(): Promise<WasmBlockchain>;
|
|
252
244
|
/**
|
|
253
|
-
* @returns {Promise<
|
|
245
|
+
* @returns {Promise<void>}
|
|
254
246
|
*/
|
|
255
|
-
export function
|
|
247
|
+
export function disable_producing_blocks_by_timer(): Promise<void>;
|
|
256
248
|
/**
|
|
257
|
-
* @
|
|
249
|
+
* @param {Uint8Array} buffer
|
|
250
|
+
* @returns {string}
|
|
258
251
|
*/
|
|
259
|
-
export function
|
|
252
|
+
export function hash(buffer: Uint8Array): string;
|
|
260
253
|
/**
|
|
261
|
-
* @
|
|
254
|
+
* @param {Uint8Array} hash
|
|
255
|
+
* @param {bigint} block_id
|
|
256
|
+
* @param {bigint} peer_index
|
|
257
|
+
* @returns {Promise<void>}
|
|
262
258
|
*/
|
|
263
|
-
export function
|
|
259
|
+
export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_index: bigint): Promise<void>;
|
|
264
260
|
/**
|
|
265
|
-
* @
|
|
261
|
+
* @param {Uint8Array} buffer
|
|
262
|
+
* @param {number} msg_index
|
|
263
|
+
* @param {bigint} peer_index
|
|
264
|
+
* @returns {Promise<void>}
|
|
266
265
|
*/
|
|
267
|
-
export function
|
|
266
|
+
export function send_api_call(buffer: Uint8Array, msg_index: number, peer_index: bigint): Promise<void>;
|
|
268
267
|
/**
|
|
269
|
-
* @
|
|
268
|
+
* @param {Array<any>} keys
|
|
269
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
270
270
|
*/
|
|
271
|
-
export function
|
|
271
|
+
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
272
272
|
/**
|
|
273
273
|
*/
|
|
274
274
|
export class SaitoWasm {
|
|
@@ -279,18 +279,18 @@ export class SaitoWasm {
|
|
|
279
279
|
export class WasmBalanceSnapshot {
|
|
280
280
|
free(): void;
|
|
281
281
|
/**
|
|
282
|
-
* @
|
|
282
|
+
* @param {string} str
|
|
283
|
+
* @returns {WasmBalanceSnapshot}
|
|
283
284
|
*/
|
|
284
|
-
|
|
285
|
+
static from_string(str: string): WasmBalanceSnapshot;
|
|
285
286
|
/**
|
|
286
287
|
* @returns {Array<any>}
|
|
287
288
|
*/
|
|
288
289
|
get_entries(): Array<any>;
|
|
289
290
|
/**
|
|
290
|
-
* @
|
|
291
|
-
* @returns {WasmBalanceSnapshot}
|
|
291
|
+
* @returns {string}
|
|
292
292
|
*/
|
|
293
|
-
|
|
293
|
+
get_file_name(): string;
|
|
294
294
|
/**
|
|
295
295
|
* @returns {string}
|
|
296
296
|
*/
|
|
@@ -301,13 +301,6 @@ export class WasmBalanceSnapshot {
|
|
|
301
301
|
export class WasmBlock {
|
|
302
302
|
free(): void;
|
|
303
303
|
/**
|
|
304
|
-
*/
|
|
305
|
-
constructor();
|
|
306
|
-
/**
|
|
307
|
-
* @returns {Uint8Array}
|
|
308
|
-
*/
|
|
309
|
-
serialize(): Uint8Array;
|
|
310
|
-
/**
|
|
311
304
|
* @param {Uint8Array} buffer
|
|
312
305
|
* @returns {any}
|
|
313
306
|
*/
|
|
@@ -323,6 +316,13 @@ export class WasmBlock {
|
|
|
323
316
|
*/
|
|
324
317
|
generate_lite_block(keylist: Array<any>): WasmBlock;
|
|
325
318
|
/**
|
|
319
|
+
*/
|
|
320
|
+
constructor();
|
|
321
|
+
/**
|
|
322
|
+
* @returns {Uint8Array}
|
|
323
|
+
*/
|
|
324
|
+
serialize(): Uint8Array;
|
|
325
|
+
/**
|
|
326
326
|
*/
|
|
327
327
|
readonly avg_fee_per_byte: bigint;
|
|
328
328
|
/**
|
|
@@ -469,22 +469,38 @@ export class WasmBlock {
|
|
|
469
469
|
export class WasmBlockchain {
|
|
470
470
|
free(): void;
|
|
471
471
|
/**
|
|
472
|
+
* @returns {Promise<string>}
|
|
473
|
+
*/
|
|
474
|
+
get_fork_id(): Promise<string>;
|
|
475
|
+
/**
|
|
476
|
+
* @param {string} hash
|
|
472
477
|
* @returns {Promise<void>}
|
|
473
478
|
*/
|
|
474
|
-
|
|
479
|
+
set_fork_id(hash: string): Promise<void>;
|
|
480
|
+
/**
|
|
481
|
+
* @param {bigint} block_id
|
|
482
|
+
* @returns {Promise<Array<any>>}
|
|
483
|
+
*/
|
|
484
|
+
get_hashes_at_id(block_id: bigint): Promise<Array<any>>;
|
|
475
485
|
/**
|
|
476
486
|
* @returns {Promise<bigint>}
|
|
477
487
|
*/
|
|
478
|
-
|
|
488
|
+
get_last_burnfee(): Promise<bigint>;
|
|
479
489
|
/**
|
|
480
490
|
* @returns {Promise<bigint>}
|
|
481
491
|
*/
|
|
482
|
-
|
|
492
|
+
get_last_block_id(): Promise<bigint>;
|
|
483
493
|
/**
|
|
484
|
-
* @param {
|
|
485
|
-
* @
|
|
494
|
+
* @param {Function} reorg_cb
|
|
495
|
+
* @param {Function} add_block_cb
|
|
496
|
+
* @param {Function} confirm_cb
|
|
497
|
+
* @returns {Promise<void>}
|
|
486
498
|
*/
|
|
487
|
-
|
|
499
|
+
register_callback(reorg_cb: Function, add_block_cb: Function, confirm_cb: Function): Promise<void>;
|
|
500
|
+
/**
|
|
501
|
+
* @returns {Promise<bigint>}
|
|
502
|
+
*/
|
|
503
|
+
get_last_timestamp(): Promise<bigint>;
|
|
488
504
|
/**
|
|
489
505
|
* @returns {Promise<string>}
|
|
490
506
|
*/
|
|
@@ -492,7 +508,7 @@ export class WasmBlockchain {
|
|
|
492
508
|
/**
|
|
493
509
|
* @returns {Promise<bigint>}
|
|
494
510
|
*/
|
|
495
|
-
|
|
511
|
+
get_latest_block_id(): Promise<bigint>;
|
|
496
512
|
/**
|
|
497
513
|
* @returns {Promise<bigint>}
|
|
498
514
|
*/
|
|
@@ -504,28 +520,16 @@ export class WasmBlockchain {
|
|
|
504
520
|
/**
|
|
505
521
|
* @returns {Promise<bigint>}
|
|
506
522
|
*/
|
|
507
|
-
|
|
523
|
+
get_prune_after_blocks(): Promise<bigint>;
|
|
508
524
|
/**
|
|
525
|
+
* @param {bigint} id
|
|
509
526
|
* @returns {Promise<string>}
|
|
510
527
|
*/
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @returns {Promise<bigint>}
|
|
514
|
-
*/
|
|
515
|
-
get_lowest_acceptable_block_id(): Promise<bigint>;
|
|
528
|
+
get_longest_chain_hash_at(id: bigint): Promise<string>;
|
|
516
529
|
/**
|
|
517
530
|
* @returns {Promise<bigint>}
|
|
518
531
|
*/
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* @returns {Promise<string>}
|
|
522
|
-
*/
|
|
523
|
-
get_fork_id(): Promise<string>;
|
|
524
|
-
/**
|
|
525
|
-
* @param {string} hash
|
|
526
|
-
* @returns {Promise<void>}
|
|
527
|
-
*/
|
|
528
|
-
set_fork_id(hash: string): Promise<void>;
|
|
532
|
+
get_block_confirmation_limit(): Promise<bigint>;
|
|
529
533
|
/**
|
|
530
534
|
* @param {bigint} block_id
|
|
531
535
|
* @returns {Promise<string>}
|
|
@@ -533,29 +537,25 @@ export class WasmBlockchain {
|
|
|
533
537
|
get_longest_chain_hash_at_id(block_id: bigint): Promise<string>;
|
|
534
538
|
/**
|
|
535
539
|
* @param {bigint} block_id
|
|
536
|
-
* @returns {Promise<Array<any>>}
|
|
537
|
-
*/
|
|
538
|
-
get_hashes_at_id(block_id: bigint): Promise<Array<any>>;
|
|
539
|
-
/**
|
|
540
|
-
* @param {bigint} block_id
|
|
541
540
|
* @returns {Promise<void>}
|
|
542
541
|
*/
|
|
543
542
|
set_safe_to_prune_transaction(block_id: bigint): Promise<void>;
|
|
544
543
|
/**
|
|
545
544
|
* @returns {Promise<bigint>}
|
|
546
545
|
*/
|
|
547
|
-
|
|
546
|
+
get_lowest_acceptable_block_id(): Promise<bigint>;
|
|
548
547
|
/**
|
|
549
548
|
* @returns {Promise<bigint>}
|
|
550
549
|
*/
|
|
551
|
-
|
|
550
|
+
get_lowest_acceptable_timestamp(): Promise<bigint>;
|
|
551
|
+
/**
|
|
552
|
+
* @returns {Promise<string>}
|
|
553
|
+
*/
|
|
554
|
+
get_lowest_acceptable_block_hash(): Promise<string>;
|
|
552
555
|
/**
|
|
553
|
-
* @param {Function} reorg_cb
|
|
554
|
-
* @param {Function} add_block_cb
|
|
555
|
-
* @param {Function} confirm_cb
|
|
556
556
|
* @returns {Promise<void>}
|
|
557
557
|
*/
|
|
558
|
-
|
|
558
|
+
reset(): Promise<void>;
|
|
559
559
|
}
|
|
560
560
|
/**
|
|
561
561
|
*/
|
|
@@ -658,15 +658,15 @@ export class WasmNFT {
|
|
|
658
658
|
export class WasmPeer {
|
|
659
659
|
free(): void;
|
|
660
660
|
/**
|
|
661
|
-
* @param {bigint} peer_index
|
|
662
|
-
*/
|
|
663
|
-
constructor(peer_index: bigint);
|
|
664
|
-
/**
|
|
665
661
|
* @param {string} service
|
|
666
662
|
* @returns {boolean}
|
|
667
663
|
*/
|
|
668
664
|
has_service(service: string): boolean;
|
|
669
665
|
/**
|
|
666
|
+
* @param {bigint} peer_index
|
|
667
|
+
*/
|
|
668
|
+
constructor(peer_index: bigint);
|
|
669
|
+
/**
|
|
670
670
|
*/
|
|
671
671
|
readonly key_list: Array<any>;
|
|
672
672
|
/**
|
|
@@ -707,12 +707,12 @@ export class WasmPeerService {
|
|
|
707
707
|
export class WasmPeerServiceList {
|
|
708
708
|
free(): void;
|
|
709
709
|
/**
|
|
710
|
-
* @param {WasmPeerService} service
|
|
711
710
|
*/
|
|
712
|
-
|
|
711
|
+
constructor();
|
|
713
712
|
/**
|
|
713
|
+
* @param {WasmPeerService} service
|
|
714
714
|
*/
|
|
715
|
-
|
|
715
|
+
push(service: WasmPeerService): void;
|
|
716
716
|
}
|
|
717
717
|
/**
|
|
718
718
|
*/
|
|
@@ -753,40 +753,40 @@ export class WasmStats {
|
|
|
753
753
|
export class WasmTransaction {
|
|
754
754
|
free(): void;
|
|
755
755
|
/**
|
|
756
|
-
*/
|
|
757
|
-
constructor();
|
|
758
|
-
/**
|
|
759
756
|
* @param {WasmSlip} slip
|
|
760
757
|
*/
|
|
761
758
|
add_to_slip(slip: WasmSlip): void;
|
|
762
759
|
/**
|
|
760
|
+
* @param {Uint8Array} buffer
|
|
761
|
+
* @returns {WasmTransaction}
|
|
762
|
+
*/
|
|
763
|
+
static deserialize(buffer: Uint8Array): WasmTransaction;
|
|
764
|
+
/**
|
|
763
765
|
* @param {WasmSlip} slip
|
|
764
766
|
*/
|
|
765
767
|
add_from_slip(slip: WasmSlip): void;
|
|
766
768
|
/**
|
|
767
|
-
* @param {string} key
|
|
768
|
-
* @returns {boolean}
|
|
769
769
|
*/
|
|
770
|
-
|
|
770
|
+
constructor();
|
|
771
|
+
/**
|
|
772
|
+
* @returns {Promise<void>}
|
|
773
|
+
*/
|
|
774
|
+
sign(): Promise<void>;
|
|
771
775
|
/**
|
|
772
776
|
* @param {string} key
|
|
773
777
|
* @returns {boolean}
|
|
774
778
|
*/
|
|
775
779
|
is_to(key: string): boolean;
|
|
776
780
|
/**
|
|
777
|
-
* @
|
|
781
|
+
* @param {string} key
|
|
782
|
+
* @returns {boolean}
|
|
778
783
|
*/
|
|
779
|
-
|
|
784
|
+
is_from(key: string): boolean;
|
|
780
785
|
/**
|
|
781
786
|
* @returns {Uint8Array}
|
|
782
787
|
*/
|
|
783
788
|
serialize(): Uint8Array;
|
|
784
789
|
/**
|
|
785
|
-
* @param {Uint8Array} buffer
|
|
786
|
-
* @returns {WasmTransaction}
|
|
787
|
-
*/
|
|
788
|
-
static deserialize(buffer: Uint8Array): WasmTransaction;
|
|
789
|
-
/**
|
|
790
790
|
*/
|
|
791
791
|
data: Uint8Array;
|
|
792
792
|
/**
|
|
@@ -819,18 +819,23 @@ export class WasmTransaction {
|
|
|
819
819
|
export class WasmWallet {
|
|
820
820
|
free(): void;
|
|
821
821
|
/**
|
|
822
|
-
* @returns {Promise<
|
|
822
|
+
* @returns {Promise<bigint>}
|
|
823
823
|
*/
|
|
824
|
-
|
|
824
|
+
get_balance(): Promise<bigint>;
|
|
825
825
|
/**
|
|
826
|
-
* @
|
|
826
|
+
* @returns {Promise<Array<any>>}
|
|
827
|
+
*/
|
|
828
|
+
get_key_list(): Promise<Array<any>>;
|
|
829
|
+
/**
|
|
830
|
+
* @param {Array<any>} key_list
|
|
827
831
|
* @returns {Promise<void>}
|
|
828
832
|
*/
|
|
829
|
-
|
|
833
|
+
set_key_list(key_list: Array<any>): Promise<void>;
|
|
830
834
|
/**
|
|
835
|
+
* @param {WasmTransaction} tx
|
|
831
836
|
* @returns {Promise<void>}
|
|
832
837
|
*/
|
|
833
|
-
|
|
838
|
+
add_to_pending(tx: WasmTransaction): Promise<void>;
|
|
834
839
|
/**
|
|
835
840
|
* @returns {Promise<string>}
|
|
836
841
|
*/
|
|
@@ -841,6 +846,10 @@ export class WasmWallet {
|
|
|
841
846
|
*/
|
|
842
847
|
set_public_key(key: string): Promise<void>;
|
|
843
848
|
/**
|
|
849
|
+
* @returns {Promise<Array<any>>}
|
|
850
|
+
*/
|
|
851
|
+
get_pending_txs(): Promise<Array<any>>;
|
|
852
|
+
/**
|
|
844
853
|
* @returns {Promise<string>}
|
|
845
854
|
*/
|
|
846
855
|
get_private_key(): Promise<string>;
|
|
@@ -850,36 +859,18 @@ export class WasmWallet {
|
|
|
850
859
|
*/
|
|
851
860
|
set_private_key(key: string): Promise<void>;
|
|
852
861
|
/**
|
|
853
|
-
* @returns {Promise<bigint>}
|
|
854
|
-
*/
|
|
855
|
-
get_balance(): Promise<bigint>;
|
|
856
|
-
/**
|
|
857
|
-
* @returns {Promise<Array<any>>}
|
|
858
|
-
*/
|
|
859
|
-
get_pending_txs(): Promise<Array<any>>;
|
|
860
|
-
/**
|
|
861
|
-
* @returns {Promise<Array<any>>}
|
|
862
|
-
*/
|
|
863
|
-
get_slips(): Promise<Array<any>>;
|
|
864
|
-
/**
|
|
865
|
-
* @param {WasmWalletSlip} slip
|
|
866
862
|
* @returns {Promise<void>}
|
|
867
863
|
*/
|
|
868
|
-
|
|
864
|
+
load(): Promise<void>;
|
|
869
865
|
/**
|
|
870
|
-
* @param {WasmTransaction} tx
|
|
871
866
|
* @returns {Promise<void>}
|
|
872
867
|
*/
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* @returns {Promise<Array<any>>}
|
|
876
|
-
*/
|
|
877
|
-
get_key_list(): Promise<Array<any>>;
|
|
868
|
+
save(): Promise<void>;
|
|
878
869
|
/**
|
|
879
|
-
* @param {
|
|
870
|
+
* @param {boolean} keep_keys
|
|
880
871
|
* @returns {Promise<void>}
|
|
881
872
|
*/
|
|
882
|
-
|
|
873
|
+
reset(keep_keys: boolean): Promise<void>;
|
|
883
874
|
/**
|
|
884
875
|
* @param {string} slip1_hex
|
|
885
876
|
* @param {string} slip2_hex
|
|
@@ -889,19 +880,20 @@ export class WasmWallet {
|
|
|
889
880
|
* @returns {Promise<void>}
|
|
890
881
|
*/
|
|
891
882
|
add_nft(slip1_hex: string, slip2_hex: string, slip3_hex: string, id_hex: string, sig_hex: string): Promise<void>;
|
|
892
|
-
}
|
|
893
883
|
/**
|
|
884
|
+
* @param {WasmWalletSlip} slip
|
|
885
|
+
* @returns {Promise<void>}
|
|
894
886
|
*/
|
|
895
|
-
|
|
896
|
-
free(): void;
|
|
887
|
+
add_slip(slip: WasmWalletSlip): Promise<void>;
|
|
897
888
|
/**
|
|
898
|
-
* @returns {
|
|
889
|
+
* @returns {Promise<Array<any>>}
|
|
899
890
|
*/
|
|
900
|
-
|
|
891
|
+
get_slips(): Promise<Array<any>>;
|
|
892
|
+
}
|
|
901
893
|
/**
|
|
902
|
-
* @param {string} key
|
|
903
894
|
*/
|
|
904
|
-
|
|
895
|
+
export class WasmWalletSlip {
|
|
896
|
+
free(): void;
|
|
905
897
|
/**
|
|
906
898
|
* @returns {bigint}
|
|
907
899
|
*/
|
|
@@ -911,6 +903,14 @@ export class WasmWalletSlip {
|
|
|
911
903
|
*/
|
|
912
904
|
set_amount(amount: bigint): void;
|
|
913
905
|
/**
|
|
906
|
+
* @returns {string}
|
|
907
|
+
*/
|
|
908
|
+
get_utxokey(): string;
|
|
909
|
+
/**
|
|
910
|
+
* @param {string} key
|
|
911
|
+
*/
|
|
912
|
+
set_utxokey(key: string): void;
|
|
913
|
+
/**
|
|
914
914
|
* @returns {bigint}
|
|
915
915
|
*/
|
|
916
916
|
get_block_id(): bigint;
|
|
@@ -919,29 +919,32 @@ export class WasmWalletSlip {
|
|
|
919
919
|
*/
|
|
920
920
|
set_block_id(block_id: bigint): void;
|
|
921
921
|
/**
|
|
922
|
-
* @returns {
|
|
922
|
+
* @returns {number}
|
|
923
923
|
*/
|
|
924
|
-
|
|
924
|
+
get_slip_type(): number;
|
|
925
925
|
/**
|
|
926
|
-
* @param {
|
|
926
|
+
* @param {number} slip_type
|
|
927
927
|
*/
|
|
928
|
-
|
|
928
|
+
set_slip_type(slip_type: number): void;
|
|
929
929
|
/**
|
|
930
930
|
* @returns {number}
|
|
931
931
|
*/
|
|
932
932
|
get_slip_index(): number;
|
|
933
933
|
/**
|
|
934
|
+
* @returns {bigint}
|
|
935
|
+
*/
|
|
936
|
+
get_tx_ordinal(): bigint;
|
|
937
|
+
/**
|
|
934
938
|
* @param {number} index
|
|
935
939
|
*/
|
|
936
940
|
set_slip_index(index: number): void;
|
|
937
941
|
/**
|
|
938
|
-
* @
|
|
942
|
+
* @param {bigint} ordinal
|
|
939
943
|
*/
|
|
940
|
-
|
|
944
|
+
set_tx_ordinal(ordinal: bigint): void;
|
|
941
945
|
/**
|
|
942
|
-
* @param {boolean} spent
|
|
943
946
|
*/
|
|
944
|
-
|
|
947
|
+
constructor();
|
|
945
948
|
/**
|
|
946
949
|
* @returns {boolean}
|
|
947
950
|
*/
|
|
@@ -951,296 +954,293 @@ export class WasmWalletSlip {
|
|
|
951
954
|
*/
|
|
952
955
|
set_lc(lc: boolean): void;
|
|
953
956
|
/**
|
|
954
|
-
* @returns {
|
|
955
|
-
*/
|
|
956
|
-
get_slip_type(): number;
|
|
957
|
-
/**
|
|
958
|
-
* @param {number} slip_type
|
|
957
|
+
* @returns {boolean}
|
|
959
958
|
*/
|
|
960
|
-
|
|
959
|
+
is_spent(): boolean;
|
|
961
960
|
/**
|
|
961
|
+
* @param {boolean} spent
|
|
962
962
|
*/
|
|
963
|
-
|
|
963
|
+
set_spent(spent: boolean): void;
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
967
967
|
|
|
968
968
|
export interface InitOutput {
|
|
969
969
|
readonly memory: WebAssembly.Memory;
|
|
970
|
-
readonly __wbg_wasmstats_free: (a: number) => void;
|
|
971
|
-
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
972
|
-
readonly wasmconfiguration_new: () => number;
|
|
973
970
|
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
971
|
+
readonly __wbg_wasmstats_free: (a: number) => void;
|
|
974
972
|
readonly wasmhop_from: (a: number, b: number) => void;
|
|
975
973
|
readonly wasmhop_sig: (a: number, b: number) => void;
|
|
976
974
|
readonly wasmhop_to: (a: number, b: number) => void;
|
|
975
|
+
readonly __wbg_wasmtransaction_free: (a: number) => void;
|
|
976
|
+
readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
|
|
977
|
+
readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
|
|
978
|
+
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
979
|
+
readonly wasmtransaction_from: (a: number) => number;
|
|
980
|
+
readonly wasmtransaction_get_data: (a: number) => number;
|
|
981
|
+
readonly wasmtransaction_get_routing_path: (a: number) => number;
|
|
982
|
+
readonly wasmtransaction_get_timestamp: (a: number) => number;
|
|
983
|
+
readonly wasmtransaction_get_txs_replacements: (a: number) => number;
|
|
984
|
+
readonly wasmtransaction_get_type: (a: number) => number;
|
|
985
|
+
readonly wasmtransaction_is_from: (a: number, b: number) => number;
|
|
986
|
+
readonly wasmtransaction_is_to: (a: number, b: number) => number;
|
|
987
|
+
readonly wasmtransaction_new: () => number;
|
|
988
|
+
readonly wasmtransaction_serialize: (a: number) => number;
|
|
989
|
+
readonly wasmtransaction_set_data: (a: number, b: number) => void;
|
|
990
|
+
readonly wasmtransaction_set_signature: (a: number, b: number) => void;
|
|
991
|
+
readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
|
|
992
|
+
readonly wasmtransaction_set_txs_replacements: (a: number, b: number) => void;
|
|
993
|
+
readonly wasmtransaction_set_type: (a: number, b: number) => void;
|
|
994
|
+
readonly wasmtransaction_sign: (a: number) => number;
|
|
995
|
+
readonly wasmtransaction_signature: (a: number) => number;
|
|
996
|
+
readonly wasmtransaction_to: (a: number) => number;
|
|
997
|
+
readonly wasmtransaction_total_fees: (a: number) => number;
|
|
998
|
+
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
999
|
+
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
977
1000
|
readonly __wbg_wasmnft_free: (a: number) => void;
|
|
978
|
-
readonly
|
|
1001
|
+
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
1002
|
+
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
1003
|
+
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
1004
|
+
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
1005
|
+
readonly wasmconfiguration_new: () => number;
|
|
979
1006
|
readonly wasmnft_id: (a: number) => number;
|
|
1007
|
+
readonly wasmnft_new: () => number;
|
|
980
1008
|
readonly wasmnft_set_id: (a: number, b: number) => void;
|
|
981
|
-
readonly
|
|
1009
|
+
readonly wasmnft_set_slip1: (a: number, b: number) => void;
|
|
1010
|
+
readonly wasmnft_set_slip2: (a: number, b: number) => void;
|
|
1011
|
+
readonly wasmnft_set_slip3: (a: number, b: number) => void;
|
|
982
1012
|
readonly wasmnft_set_tx_sig: (a: number, b: number) => void;
|
|
983
1013
|
readonly wasmnft_slip1: (a: number) => number;
|
|
984
|
-
readonly wasmnft_set_slip1: (a: number, b: number) => void;
|
|
985
1014
|
readonly wasmnft_slip2: (a: number) => number;
|
|
986
|
-
readonly wasmnft_set_slip2: (a: number, b: number) => void;
|
|
987
1015
|
readonly wasmnft_slip3: (a: number) => number;
|
|
988
|
-
readonly
|
|
989
|
-
readonly
|
|
990
|
-
readonly
|
|
991
|
-
readonly
|
|
992
|
-
readonly
|
|
993
|
-
readonly
|
|
994
|
-
readonly
|
|
995
|
-
readonly
|
|
996
|
-
readonly
|
|
997
|
-
readonly
|
|
998
|
-
readonly
|
|
999
|
-
readonly
|
|
1016
|
+
readonly wasmnft_tx_sig: (a: number) => number;
|
|
1017
|
+
readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
|
|
1018
|
+
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
1019
|
+
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
1020
|
+
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
1021
|
+
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
1022
|
+
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
1023
|
+
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
1024
|
+
readonly wasmconsensusvalues_it_index: (a: number) => number;
|
|
1025
|
+
readonly wasmconsensusvalues_it_num: (a: number) => number;
|
|
1026
|
+
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
1027
|
+
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
1028
|
+
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
1029
|
+
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
1030
|
+
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1031
|
+
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
1032
|
+
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
1033
|
+
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
1034
|
+
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
1000
1035
|
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
1001
|
-
readonly
|
|
1002
|
-
readonly
|
|
1003
|
-
readonly
|
|
1004
|
-
readonly
|
|
1036
|
+
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
1037
|
+
readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1038
|
+
readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1039
|
+
readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1040
|
+
readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1041
|
+
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
1042
|
+
readonly create_transaction_with_multiple_payments: (a: number, b: number, c: number, d: number) => number;
|
|
1043
|
+
readonly disable_producing_blocks_by_timer: () => number;
|
|
1044
|
+
readonly generate_private_key: () => number;
|
|
1045
|
+
readonly generate_public_key: (a: number, b: number) => void;
|
|
1046
|
+
readonly get_account_slips: (a: number) => number;
|
|
1047
|
+
readonly get_balance_snapshot: (a: number) => number;
|
|
1048
|
+
readonly get_block: (a: number) => number;
|
|
1049
|
+
readonly get_blockchain: () => number;
|
|
1050
|
+
readonly get_confirmations: () => number;
|
|
1051
|
+
readonly get_congestion_stats: () => number;
|
|
1052
|
+
readonly get_latest_block_hash: () => number;
|
|
1053
|
+
readonly get_mempool_txs: () => number;
|
|
1054
|
+
readonly get_next_peer_index: () => number;
|
|
1055
|
+
readonly get_nft_list: () => number;
|
|
1056
|
+
readonly get_peer: (a: number) => number;
|
|
1057
|
+
readonly get_peer_stats: () => number;
|
|
1058
|
+
readonly get_peers: () => number;
|
|
1059
|
+
readonly get_stats: () => number;
|
|
1060
|
+
readonly get_wallet: () => number;
|
|
1061
|
+
readonly hash: (a: number) => number;
|
|
1062
|
+
readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1063
|
+
readonly is_valid_public_key: (a: number) => number;
|
|
1064
|
+
readonly process_failed_block_fetch: (a: number, b: number, c: number) => number;
|
|
1065
|
+
readonly process_fetched_block: (a: number, b: number, c: number, d: number) => number;
|
|
1066
|
+
readonly process_msg_buffer_from_peer: (a: number, b: number) => number;
|
|
1067
|
+
readonly process_new_peer: (a: number, b: number) => number;
|
|
1068
|
+
readonly process_peer_disconnection: (a: number) => number;
|
|
1069
|
+
readonly process_stat_interval: (a: number) => number;
|
|
1070
|
+
readonly process_stun_peer: (a: number, b: number) => number;
|
|
1071
|
+
readonly process_timer_event: (a: number) => number;
|
|
1072
|
+
readonly produce_block_with_gt: () => number;
|
|
1073
|
+
readonly produce_block_without_gt: () => number;
|
|
1074
|
+
readonly propagate_transaction: (a: number) => number;
|
|
1075
|
+
readonly remove_stun_peer: (a: number) => number;
|
|
1076
|
+
readonly send_api_call: (a: number, b: number, c: number) => number;
|
|
1077
|
+
readonly send_api_error: (a: number, b: number, c: number) => number;
|
|
1078
|
+
readonly send_api_success: (a: number, b: number, c: number) => number;
|
|
1079
|
+
readonly set_wallet_version: (a: number, b: number, c: number) => number;
|
|
1080
|
+
readonly sign_buffer: (a: number, b: number, c: number) => void;
|
|
1081
|
+
readonly start_from_received_ghost_chain: () => number;
|
|
1082
|
+
readonly update_from_balance_snapshot: (a: number) => number;
|
|
1083
|
+
readonly verify_signature: (a: number, b: number, c: number) => number;
|
|
1084
|
+
readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
|
|
1085
|
+
readonly wasmblockchain_get_fork_id: (a: number) => number;
|
|
1086
|
+
readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
|
|
1087
|
+
readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
|
|
1088
|
+
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
1089
|
+
readonly wasmblockchain_get_last_block_hash: (a: number) => number;
|
|
1090
|
+
readonly wasmblockchain_get_last_block_id: (a: number) => number;
|
|
1091
|
+
readonly wasmblockchain_get_last_burnfee: (a: number) => number;
|
|
1092
|
+
readonly wasmblockchain_get_last_timestamp: (a: number) => number;
|
|
1093
|
+
readonly wasmblockchain_get_latest_block_id: (a: number) => number;
|
|
1094
|
+
readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
|
|
1095
|
+
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
1096
|
+
readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
|
|
1097
|
+
readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
|
|
1098
|
+
readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
|
|
1099
|
+
readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
|
|
1100
|
+
readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
|
|
1101
|
+
readonly wasmblockchain_reset: (a: number) => number;
|
|
1102
|
+
readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
|
|
1103
|
+
readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
|
|
1104
|
+
readonly wasmpeerservice_get_domain: (a: number) => number;
|
|
1005
1105
|
readonly wasmpeerservice_get_name: (a: number) => number;
|
|
1106
|
+
readonly wasmpeerservice_get_service: (a: number) => number;
|
|
1107
|
+
readonly wasmpeerservice_new: () => number;
|
|
1006
1108
|
readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
|
|
1007
|
-
readonly
|
|
1008
|
-
readonly
|
|
1109
|
+
readonly wasmpeerservice_set_name: (a: number, b: number) => void;
|
|
1110
|
+
readonly wasmpeerservice_set_service: (a: number, b: number) => void;
|
|
1009
1111
|
readonly wasmpeerservicelist_new: () => number;
|
|
1112
|
+
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
1113
|
+
readonly write_issuance_file: (a: number) => number;
|
|
1010
1114
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
1011
|
-
readonly
|
|
1012
|
-
readonly
|
|
1115
|
+
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
1116
|
+
readonly __wbg_wasmslip_free: (a: number) => void;
|
|
1117
|
+
readonly __wbg_wasmwallet_free: (a: number) => void;
|
|
1118
|
+
readonly __wbg_wasmwalletslip_free: (a: number) => void;
|
|
1013
1119
|
readonly wasmblock_avg_fee_per_byte: (a: number) => number;
|
|
1120
|
+
readonly wasmblock_avg_income: (a: number) => number;
|
|
1121
|
+
readonly wasmblock_avg_nolan_rebroadcast_per_block: (a: number) => number;
|
|
1122
|
+
readonly wasmblock_avg_payout_atr: (a: number) => number;
|
|
1123
|
+
readonly wasmblock_avg_payout_graveyard: (a: number) => number;
|
|
1124
|
+
readonly wasmblock_avg_payout_mining: (a: number) => number;
|
|
1125
|
+
readonly wasmblock_avg_payout_routing: (a: number) => number;
|
|
1126
|
+
readonly wasmblock_avg_payout_treasury: (a: number) => number;
|
|
1127
|
+
readonly wasmblock_avg_total_fees_atr: (a: number) => number;
|
|
1128
|
+
readonly wasmblock_avg_total_fees_new: (a: number) => number;
|
|
1014
1129
|
readonly wasmblock_burnfee: (a: number) => number;
|
|
1015
|
-
readonly
|
|
1016
|
-
readonly wasmblock_total_fees_cumulative: (a: number) => number;
|
|
1130
|
+
readonly wasmblock_deserialize: (a: number, b: number, c: number) => void;
|
|
1017
1131
|
readonly wasmblock_difficulty: (a: number) => number;
|
|
1018
|
-
readonly
|
|
1019
|
-
readonly
|
|
1020
|
-
readonly
|
|
1021
|
-
readonly
|
|
1022
|
-
readonly
|
|
1132
|
+
readonly wasmblock_fee_per_byte: (a: number) => number;
|
|
1133
|
+
readonly wasmblock_fee_transaction_index: (a: number) => number;
|
|
1134
|
+
readonly wasmblock_force_loaded: (a: number) => number;
|
|
1135
|
+
readonly wasmblock_generate_lite_block: (a: number, b: number) => number;
|
|
1136
|
+
readonly wasmblock_get_creator: (a: number) => number;
|
|
1137
|
+
readonly wasmblock_get_file_name: (a: number) => number;
|
|
1138
|
+
readonly wasmblock_get_hash: (a: number) => number;
|
|
1023
1139
|
readonly wasmblock_get_id: (a: number) => number;
|
|
1024
|
-
readonly wasmblock_set_id: (a: number, b: number) => void;
|
|
1025
|
-
readonly wasmblock_get_timestamp: (a: number) => number;
|
|
1026
|
-
readonly wasmblock_set_timestamp: (a: number, b: number) => void;
|
|
1027
1140
|
readonly wasmblock_get_previous_block_hash: (a: number) => number;
|
|
1028
|
-
readonly
|
|
1029
|
-
readonly
|
|
1030
|
-
readonly wasmblock_get_creator: (a: number) => number;
|
|
1141
|
+
readonly wasmblock_get_timestamp: (a: number) => number;
|
|
1142
|
+
readonly wasmblock_get_transactions: (a: number) => number;
|
|
1031
1143
|
readonly wasmblock_get_type: (a: number) => number;
|
|
1032
|
-
readonly
|
|
1033
|
-
readonly
|
|
1144
|
+
readonly wasmblock_golden_ticket_index: (a: number) => number;
|
|
1145
|
+
readonly wasmblock_graveyard: (a: number) => number;
|
|
1146
|
+
readonly wasmblock_has_fee_transaction: (a: number) => number;
|
|
1147
|
+
readonly wasmblock_has_golden_ticket: (a: number) => number;
|
|
1148
|
+
readonly wasmblock_has_issuance_transaction: (a: number) => number;
|
|
1149
|
+
readonly wasmblock_has_keylist_txs: (a: number, b: number) => number;
|
|
1150
|
+
readonly wasmblock_has_staking_transaction: (a: number) => number;
|
|
1034
1151
|
readonly wasmblock_in_longest_chain: (a: number) => number;
|
|
1035
|
-
readonly
|
|
1036
|
-
readonly
|
|
1152
|
+
readonly wasmblock_issuance_transaction_index: (a: number) => number;
|
|
1153
|
+
readonly wasmblock_new: () => number;
|
|
1154
|
+
readonly wasmblock_previous_block_unpaid: (a: number) => number;
|
|
1155
|
+
readonly wasmblock_rebroadcast_hash: (a: number) => number;
|
|
1037
1156
|
readonly wasmblock_serialize: (a: number) => number;
|
|
1038
|
-
readonly
|
|
1039
|
-
readonly
|
|
1040
|
-
readonly
|
|
1041
|
-
readonly
|
|
1042
|
-
readonly
|
|
1043
|
-
readonly
|
|
1157
|
+
readonly wasmblock_set_creator: (a: number, b: number) => void;
|
|
1158
|
+
readonly wasmblock_set_id: (a: number, b: number) => void;
|
|
1159
|
+
readonly wasmblock_set_previous_block_hash: (a: number, b: number) => void;
|
|
1160
|
+
readonly wasmblock_set_timestamp: (a: number, b: number) => void;
|
|
1161
|
+
readonly wasmblock_set_type: (a: number, b: number) => void;
|
|
1162
|
+
readonly wasmblock_total_fees: (a: number) => number;
|
|
1044
1163
|
readonly wasmblock_total_fees_atr: (a: number) => number;
|
|
1045
|
-
readonly
|
|
1046
|
-
readonly
|
|
1047
|
-
readonly
|
|
1164
|
+
readonly wasmblock_total_fees_cumulative: (a: number) => number;
|
|
1165
|
+
readonly wasmblock_total_fees_new: (a: number) => number;
|
|
1166
|
+
readonly wasmblock_total_payout_atr: (a: number) => number;
|
|
1167
|
+
readonly wasmblock_total_payout_graveyard: (a: number) => number;
|
|
1048
1168
|
readonly wasmblock_total_payout_mining: (a: number) => number;
|
|
1169
|
+
readonly wasmblock_total_payout_routing: (a: number) => number;
|
|
1049
1170
|
readonly wasmblock_total_payout_treasury: (a: number) => number;
|
|
1050
|
-
readonly
|
|
1051
|
-
readonly
|
|
1052
|
-
readonly wasmblock_avg_payout_treasury: (a: number) => number;
|
|
1053
|
-
readonly wasmblock_avg_payout_graveyard: (a: number) => number;
|
|
1054
|
-
readonly wasmblock_avg_payout_atr: (a: number) => number;
|
|
1055
|
-
readonly wasmblock_fee_per_byte: (a: number) => number;
|
|
1056
|
-
readonly wasmblock_previous_block_unpaid: (a: number) => number;
|
|
1171
|
+
readonly wasmblock_total_rebroadcast_nolan: (a: number) => number;
|
|
1172
|
+
readonly wasmblock_total_rebroadcast_slips: (a: number) => number;
|
|
1057
1173
|
readonly wasmblock_total_work: (a: number) => number;
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly
|
|
1060
|
-
readonly
|
|
1061
|
-
readonly
|
|
1062
|
-
readonly
|
|
1063
|
-
readonly
|
|
1064
|
-
readonly
|
|
1065
|
-
readonly
|
|
1066
|
-
readonly
|
|
1067
|
-
readonly
|
|
1068
|
-
readonly wasmconsensusvalues_it_num: (a: number) => number;
|
|
1069
|
-
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
1070
|
-
readonly wasmconsensusvalues_it_index: (a: number) => number;
|
|
1071
|
-
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
1072
|
-
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
1073
|
-
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
1074
|
-
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
1075
|
-
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
1076
|
-
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1077
|
-
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
1078
|
-
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
1079
|
-
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
1080
|
-
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
1081
|
-
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
1082
|
-
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
1083
|
-
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
1084
|
-
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
1085
|
-
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
1086
|
-
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
1087
|
-
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
1088
|
-
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
1089
|
-
readonly __wbg_wasmslip_free: (a: number) => void;
|
|
1174
|
+
readonly wasmblock_treasury: (a: number) => number;
|
|
1175
|
+
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
1176
|
+
readonly wasmpeer_get_peer_index: (a: number) => number;
|
|
1177
|
+
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
1178
|
+
readonly wasmpeer_get_services: (a: number) => number;
|
|
1179
|
+
readonly wasmpeer_get_status: (a: number) => number;
|
|
1180
|
+
readonly wasmpeer_get_sync_type: (a: number) => number;
|
|
1181
|
+
readonly wasmpeer_has_service: (a: number, b: number) => number;
|
|
1182
|
+
readonly wasmpeer_new: (a: number) => number;
|
|
1183
|
+
readonly wasmpeer_set_services: (a: number, b: number) => void;
|
|
1090
1184
|
readonly wasmslip_amount: (a: number) => number;
|
|
1091
|
-
readonly
|
|
1092
|
-
readonly
|
|
1093
|
-
readonly wasmslip_set_slip_type: (a: number, b: number) => void;
|
|
1185
|
+
readonly wasmslip_block_id: (a: number) => number;
|
|
1186
|
+
readonly wasmslip_new: () => number;
|
|
1094
1187
|
readonly wasmslip_public_key: (a: number) => number;
|
|
1188
|
+
readonly wasmslip_set_amount: (a: number, b: number) => void;
|
|
1189
|
+
readonly wasmslip_set_block_id: (a: number, b: number) => void;
|
|
1095
1190
|
readonly wasmslip_set_public_key: (a: number, b: number) => void;
|
|
1096
|
-
readonly wasmslip_slip_index: (a: number) => number;
|
|
1097
1191
|
readonly wasmslip_set_slip_index: (a: number, b: number) => void;
|
|
1098
|
-
readonly
|
|
1099
|
-
readonly wasmslip_set_block_id: (a: number, b: number) => void;
|
|
1100
|
-
readonly wasmslip_tx_ordinal: (a: number) => number;
|
|
1192
|
+
readonly wasmslip_set_slip_type: (a: number, b: number) => void;
|
|
1101
1193
|
readonly wasmslip_set_tx_ordinal: (a: number, b: number) => void;
|
|
1102
1194
|
readonly wasmslip_set_utxo_key: (a: number, b: number) => void;
|
|
1195
|
+
readonly wasmslip_slip_index: (a: number) => number;
|
|
1196
|
+
readonly wasmslip_slip_type: (a: number) => number;
|
|
1197
|
+
readonly wasmslip_tx_ordinal: (a: number) => number;
|
|
1103
1198
|
readonly wasmslip_utxo_key: (a: number) => number;
|
|
1104
|
-
readonly
|
|
1105
|
-
readonly __wbg_wasmwallet_free: (a: number) => void;
|
|
1106
|
-
readonly __wbg_wasmwalletslip_free: (a: number) => void;
|
|
1107
|
-
readonly wasmwallet_save: (a: number) => number;
|
|
1108
|
-
readonly wasmwallet_reset: (a: number, b: number) => number;
|
|
1109
|
-
readonly wasmwallet_load: (a: number) => number;
|
|
1110
|
-
readonly wasmwallet_get_public_key: (a: number) => number;
|
|
1111
|
-
readonly wasmwallet_set_public_key: (a: number, b: number) => number;
|
|
1112
|
-
readonly wasmwallet_get_private_key: (a: number) => number;
|
|
1113
|
-
readonly wasmwallet_set_private_key: (a: number, b: number) => number;
|
|
1114
|
-
readonly wasmwallet_get_balance: (a: number) => number;
|
|
1115
|
-
readonly wasmwallet_get_pending_txs: (a: number) => number;
|
|
1116
|
-
readonly wasmwallet_get_slips: (a: number) => number;
|
|
1199
|
+
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;
|
|
1117
1200
|
readonly wasmwallet_add_slip: (a: number, b: number) => number;
|
|
1118
1201
|
readonly wasmwallet_add_to_pending: (a: number, b: number) => number;
|
|
1202
|
+
readonly wasmwallet_get_balance: (a: number) => number;
|
|
1119
1203
|
readonly wasmwallet_get_key_list: (a: number) => number;
|
|
1204
|
+
readonly wasmwallet_get_pending_txs: (a: number) => number;
|
|
1205
|
+
readonly wasmwallet_get_private_key: (a: number) => number;
|
|
1206
|
+
readonly wasmwallet_get_public_key: (a: number) => number;
|
|
1207
|
+
readonly wasmwallet_get_slips: (a: number) => number;
|
|
1208
|
+
readonly wasmwallet_load: (a: number) => number;
|
|
1209
|
+
readonly wasmwallet_reset: (a: number, b: number) => number;
|
|
1210
|
+
readonly wasmwallet_save: (a: number) => number;
|
|
1120
1211
|
readonly wasmwallet_set_key_list: (a: number, b: number) => number;
|
|
1121
|
-
readonly
|
|
1122
|
-
readonly
|
|
1123
|
-
readonly wasmwalletslip_set_utxokey: (a: number, b: number) => void;
|
|
1212
|
+
readonly wasmwallet_set_private_key: (a: number, b: number) => number;
|
|
1213
|
+
readonly wasmwallet_set_public_key: (a: number, b: number) => number;
|
|
1124
1214
|
readonly wasmwalletslip_get_slip_index: (a: number) => number;
|
|
1125
|
-
readonly
|
|
1126
|
-
readonly
|
|
1127
|
-
readonly wasmwalletslip_set_spent: (a: number, b: number) => void;
|
|
1215
|
+
readonly wasmwalletslip_get_slip_type: (a: number) => number;
|
|
1216
|
+
readonly wasmwalletslip_get_utxokey: (a: number) => number;
|
|
1128
1217
|
readonly wasmwalletslip_is_lc: (a: number) => number;
|
|
1218
|
+
readonly wasmwalletslip_is_spent: (a: number) => number;
|
|
1219
|
+
readonly wasmwalletslip_new_: () => number;
|
|
1129
1220
|
readonly wasmwalletslip_set_lc: (a: number, b: number) => void;
|
|
1130
|
-
readonly
|
|
1221
|
+
readonly wasmwalletslip_set_slip_index: (a: number, b: number) => void;
|
|
1131
1222
|
readonly wasmwalletslip_set_slip_type: (a: number, b: number) => void;
|
|
1132
|
-
readonly
|
|
1223
|
+
readonly wasmwalletslip_set_spent: (a: number, b: number) => void;
|
|
1224
|
+
readonly wasmwalletslip_set_utxokey: (a: number, b: number) => void;
|
|
1133
1225
|
readonly wasmwalletslip_set_amount: (a: number, b: number) => void;
|
|
1134
1226
|
readonly wasmwalletslip_set_block_id: (a: number, b: number) => void;
|
|
1135
1227
|
readonly wasmwalletslip_set_tx_ordinal: (a: number, b: number) => void;
|
|
1228
|
+
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
1136
1229
|
readonly wasmwalletslip_get_amount: (a: number) => number;
|
|
1137
1230
|
readonly wasmwalletslip_get_block_id: (a: number) => number;
|
|
1138
1231
|
readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
|
|
1139
|
-
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
1140
|
-
readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1141
|
-
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
1142
|
-
readonly create_transaction_with_multiple_payments: (a: number, b: number, c: number, d: number) => number;
|
|
1143
|
-
readonly create_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1144
|
-
readonly create_send_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1145
|
-
readonly create_split_bound_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1146
|
-
readonly create_merge_bound_transaction: (a: number, b: number, c: number) => number;
|
|
1147
|
-
readonly get_nft_list: () => number;
|
|
1148
|
-
readonly get_latest_block_hash: () => number;
|
|
1149
|
-
readonly get_block: (a: number) => number;
|
|
1150
|
-
readonly process_new_peer: (a: number, b: number) => number;
|
|
1151
|
-
readonly process_stun_peer: (a: number, b: number) => number;
|
|
1152
|
-
readonly remove_stun_peer: (a: number) => number;
|
|
1153
|
-
readonly get_next_peer_index: () => number;
|
|
1154
|
-
readonly process_peer_disconnection: (a: number) => number;
|
|
1155
|
-
readonly process_msg_buffer_from_peer: (a: number, b: number) => number;
|
|
1156
|
-
readonly process_fetched_block: (a: number, b: number, c: number, d: number) => number;
|
|
1157
|
-
readonly process_failed_block_fetch: (a: number, b: number, c: number) => number;
|
|
1158
|
-
readonly process_timer_event: (a: number) => number;
|
|
1159
|
-
readonly process_stat_interval: (a: number) => number;
|
|
1160
|
-
readonly hash: (a: number) => number;
|
|
1161
|
-
readonly sign_buffer: (a: number, b: number, c: number) => void;
|
|
1162
|
-
readonly verify_signature: (a: number, b: number, c: number) => number;
|
|
1163
|
-
readonly get_peers: () => number;
|
|
1164
|
-
readonly get_peer: (a: number) => number;
|
|
1165
|
-
readonly get_account_slips: (a: number) => number;
|
|
1166
|
-
readonly get_balance_snapshot: (a: number) => number;
|
|
1167
|
-
readonly update_from_balance_snapshot: (a: number) => number;
|
|
1168
|
-
readonly generate_private_key: () => number;
|
|
1169
|
-
readonly generate_public_key: (a: number, b: number) => void;
|
|
1170
|
-
readonly propagate_transaction: (a: number) => number;
|
|
1171
|
-
readonly send_api_call: (a: number, b: number, c: number) => number;
|
|
1172
|
-
readonly send_api_success: (a: number, b: number, c: number) => number;
|
|
1173
|
-
readonly send_api_error: (a: number, b: number, c: number) => number;
|
|
1174
|
-
readonly get_wallet: () => number;
|
|
1175
|
-
readonly get_blockchain: () => number;
|
|
1176
|
-
readonly get_mempool_txs: () => number;
|
|
1177
|
-
readonly set_wallet_version: (a: number, b: number, c: number) => number;
|
|
1178
|
-
readonly is_valid_public_key: (a: number) => number;
|
|
1179
|
-
readonly write_issuance_file: (a: number) => number;
|
|
1180
|
-
readonly disable_producing_blocks_by_timer: () => number;
|
|
1181
|
-
readonly produce_block_with_gt: () => number;
|
|
1182
|
-
readonly produce_block_without_gt: () => number;
|
|
1183
|
-
readonly get_stats: () => number;
|
|
1184
|
-
readonly get_peer_stats: () => number;
|
|
1185
|
-
readonly get_congestion_stats: () => number;
|
|
1186
|
-
readonly get_confirmations: () => number;
|
|
1187
|
-
readonly start_from_received_ghost_chain: () => number;
|
|
1188
|
-
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
1189
|
-
readonly wasmblockchain_reset: (a: number) => number;
|
|
1190
|
-
readonly wasmblockchain_get_last_block_id: (a: number) => number;
|
|
1191
|
-
readonly wasmblockchain_get_last_timestamp: (a: number) => number;
|
|
1192
|
-
readonly wasmblockchain_get_longest_chain_hash_at: (a: number, b: number) => number;
|
|
1193
|
-
readonly wasmblockchain_get_last_block_hash: (a: number) => number;
|
|
1194
|
-
readonly wasmblockchain_get_last_burnfee: (a: number) => number;
|
|
1195
|
-
readonly wasmblockchain_get_genesis_block_id: (a: number) => number;
|
|
1196
|
-
readonly wasmblockchain_get_genesis_timestamp: (a: number) => number;
|
|
1197
|
-
readonly wasmblockchain_get_lowest_acceptable_timestamp: (a: number) => number;
|
|
1198
|
-
readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
|
|
1199
|
-
readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
|
|
1200
|
-
readonly wasmblockchain_get_latest_block_id: (a: number) => number;
|
|
1201
|
-
readonly wasmblockchain_get_fork_id: (a: number) => number;
|
|
1202
|
-
readonly wasmblockchain_set_fork_id: (a: number, b: number) => number;
|
|
1203
|
-
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
1204
|
-
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
1205
|
-
readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
|
|
1206
|
-
readonly wasmblockchain_get_prune_after_blocks: (a: number) => number;
|
|
1207
|
-
readonly wasmblockchain_get_block_confirmation_limit: (a: number) => number;
|
|
1208
|
-
readonly wasmblockchain_register_callback: (a: number, b: number, c: number, d: number) => number;
|
|
1209
|
-
readonly __wbg_wasmtransaction_free: (a: number) => void;
|
|
1210
|
-
readonly wasmtransaction_new: () => number;
|
|
1211
|
-
readonly wasmtransaction_signature: (a: number) => number;
|
|
1212
|
-
readonly wasmtransaction_get_routing_path: (a: number) => number;
|
|
1213
|
-
readonly wasmtransaction_set_signature: (a: number, b: number) => void;
|
|
1214
|
-
readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
|
|
1215
|
-
readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
|
|
1216
|
-
readonly wasmtransaction_get_txs_replacements: (a: number) => number;
|
|
1217
|
-
readonly wasmtransaction_set_txs_replacements: (a: number, b: number) => void;
|
|
1218
|
-
readonly wasmtransaction_to: (a: number) => number;
|
|
1219
|
-
readonly wasmtransaction_from: (a: number) => number;
|
|
1220
|
-
readonly wasmtransaction_is_from: (a: number, b: number) => number;
|
|
1221
|
-
readonly wasmtransaction_is_to: (a: number, b: number) => number;
|
|
1222
|
-
readonly wasmtransaction_get_data: (a: number) => number;
|
|
1223
|
-
readonly wasmtransaction_set_data: (a: number, b: number) => void;
|
|
1224
|
-
readonly wasmtransaction_get_timestamp: (a: number) => number;
|
|
1225
|
-
readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
|
|
1226
|
-
readonly wasmtransaction_sign: (a: number) => number;
|
|
1227
|
-
readonly wasmtransaction_get_type: (a: number) => number;
|
|
1228
|
-
readonly wasmtransaction_set_type: (a: number, b: number) => void;
|
|
1229
|
-
readonly wasmtransaction_total_fees: (a: number) => number;
|
|
1230
|
-
readonly wasmtransaction_serialize: (a: number) => number;
|
|
1231
|
-
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
1232
1232
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
1233
1233
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
1234
|
-
readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
1235
1234
|
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
1235
|
+
readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
1236
1236
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1237
1237
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1238
1238
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
1239
|
-
readonly
|
|
1239
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf760697bf54687ef: (a: number, b: number, c: number) => void;
|
|
1240
1240
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1241
1241
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1242
1242
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1243
|
-
readonly
|
|
1243
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__hbc768321d477e205: (a: number, b: number, c: number, d: number) => void;
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|