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