saito-wasm 0.2.226 → 0.2.227

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.2.226"
3
+ version = "0.2.227"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -9,7 +9,7 @@ crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
11
  saito-core = { path = "../saito-core" }
12
- wasm-bindgen = { version = "=0.2.92" }
12
+ wasm-bindgen = { version = "=0.2.92" , features = ["serde-serialize"]}
13
13
  wasm-bindgen-futures = "=0.4.42"
14
14
  serde = { version = "=1.0.204", features = ["derive"] }
15
15
  serde-wasm-bindgen = { version = "=0.6.5" }
package/package.json CHANGED
@@ -1,15 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.226",
4
- "files": [
5
- "pkg/web/**/*",
6
- "pkg/node/**/*",
7
- "package.json",
8
- "Cargo.toml",
9
- "tsconfig.json",
10
- "webpack.config.js",
11
- "webpack.prod.config.js"
12
- ],
3
+ "version": "0.2.227",
13
4
  "description": "js wrappings around saito-core using wasm",
14
5
  "repository": {
15
6
  "type": "git",
@@ -18,16 +9,17 @@
18
9
  "scripts": {
19
10
  "test": "./node_modules/.bin/jest",
20
11
  "start": "ts-node-dev index.ts",
12
+ "fix-wasm-pack-output": "node ./scripts/fix-wasm-pack-output.js",
21
13
  "build-prod": "cross-env WASM_BINDGEN_WEAKREF=1 npm run build-web-prod && npm run build-nodejs-prod",
22
14
  "build-profile": "cross-env WASM_BINDGEN_WEAKREF=1 npm run build-web-profile && npm run build-nodejs-profile",
23
15
  "build": "cross-env WASM_BINDGEN_WEAKREF=1 npm run build-web && npm run build-nodejs",
24
16
  "serve": "webpack-dev-server",
25
- "build-web": "wasm-pack build --target web --out-dir ./pkg/web --out-name index --dev && node ./scripts/fix-wasm-pack-output.js web",
26
- "build-nodejs": "wasm-pack build --target nodejs --out-dir ./pkg/node --out-name index --dev && node ./scripts/fix-wasm-pack-output.js node",
27
- "build-web-prod": "wasm-pack build --target web --out-dir ./pkg/web --out-name index --release && node ./scripts/fix-wasm-pack-output.js web",
28
- "build-nodejs-prod": "wasm-pack build --target nodejs --out-dir ./pkg/node --out-name index --release && node ./scripts/fix-wasm-pack-output.js node",
29
- "build-web-profile": "wasm-pack build --target web --out-dir ./pkg/web --out-name index --profiling && node ./scripts/fix-wasm-pack-output.js web",
30
- "build-nodejs-profile": "wasm-pack build --target nodejs --out-dir ./pkg/node --out-name index --profiling && node ./scripts/fix-wasm-pack-output.js node"
17
+ "build-web": "wasm-pack build --target web --out-dir ./pkg/web --out-name index --dev && npm run fix-wasm-pack-output",
18
+ "build-nodejs": "wasm-pack build --target nodejs --out-dir ./pkg/node --out-name index --dev",
19
+ "build-web-prod": "wasm-pack build --target web --out-dir ./pkg/web --out-name index --release && npm run fix-wasm-pack-output",
20
+ "build-nodejs-prod": "wasm-pack build --target nodejs --out-dir ./pkg/node --out-name index --release",
21
+ "build-web-profile": "wasm-pack build --target web --out-dir ./pkg/web --out-name index --profiling && npm run fix-wasm-pack-output",
22
+ "build-nodejs-profile": "wasm-pack build --target nodejs --out-dir ./pkg/node --out-name index --profiling"
31
23
  },
32
24
  "author": "",
33
25
  "license": "ISC",
@@ -1,153 +1,110 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} slip1_utxo_key
5
- * @param {string} slip2_utxo_key
6
- * @param {string} slip3_utxo_key
7
- * @param {Uint8Array} tx_msg
8
- * @returns {Promise<WasmTransaction>}
9
- */
10
- export function create_atomize_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
11
- /**
12
- * @param {string} public_key
13
- * @returns {Promise<void>}
14
- */
15
- export function process_stun_peer(public_key: string): Promise<void>;
16
- /**
17
- * @param {bigint} amt
18
- * @param {string} slip1_utxo_key
19
- * @param {string} slip2_utxo_key
20
- * @param {string} slip3_utxo_key
21
- * @param {string} recipient_public_key
22
- * @param {Uint8Array} tx_msg
23
- * @returns {Promise<WasmTransaction>}
4
+ * @returns {Promise<WasmWallet>}
24
5
  */
25
- 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>;
6
+ export function get_wallet(): Promise<WasmWallet>;
26
7
  /**
27
- * @param {bigint} threshold
28
8
  * @returns {Promise<void>}
29
9
  */
30
- export function write_issuance_file(threshold: bigint): Promise<void>;
10
+ export function disable_producing_blocks_by_timer(): Promise<void>;
31
11
  /**
32
- * @param {WasmNetworkPeer} peer
12
+ * @param {Uint8Array} hash
13
+ * @param {bigint} block_id
14
+ * @param {bigint} peer_id
33
15
  * @returns {Promise<void>}
34
16
  */
35
- export function process_new_peer(peer: WasmNetworkPeer): Promise<void>;
17
+ export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, peer_id: bigint): Promise<void>;
36
18
  /**
37
- * @param {bigint} num
38
- * @param {bigint} deposit
39
- * @param {Uint8Array} tx_msg
40
- * @param {bigint} _fee
41
- * @param {string} recipient_public_key
42
- * @param {string} nft_type
43
- * @returns {Promise<WasmTransaction>}
19
+ * @param {string} config_json
20
+ * @param {string} private_key
21
+ * @param {number} log_level_num
22
+ * @param {bigint} hasten_multiplier
23
+ * @param {boolean} delete_old_blocks
24
+ * @returns {Promise<any>}
44
25
  */
45
- export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, _fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
26
+ export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
46
27
  /**
47
28
  * @param {string} private_key
48
29
  * @returns {string}
49
30
  */
50
31
  export function generate_public_key(private_key: string): string;
51
32
  /**
52
- * @returns {Promise<string>}
53
- */
54
- export function get_congestion_stats(): Promise<string>;
55
- /**
56
- * @param {Array<any>} public_keys
57
- * @param {BigUint64Array} amounts
58
- * @param {bigint} fee
59
- * @param {boolean} _force_merge
60
- * @returns {Promise<WasmTransaction>}
33
+ * @returns {string}
61
34
  */
62
- export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
35
+ export function generate_private_key(): string;
63
36
  /**
64
37
  * @param {Uint8Array} buffer
65
- * @param {string} private_key
66
- * @returns {string}
38
+ * @param {string} signature
39
+ * @param {string} public_key
40
+ * @returns {boolean}
67
41
  */
68
- export function sign_buffer(buffer: Uint8Array, private_key: string): string;
42
+ export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
69
43
  /**
70
- * @param {Uint8Array} hash
71
- * @param {bigint} block_id
72
- * @param {string} key
44
+ * @param {WasmBalanceSnapshot} snapshot
73
45
  * @returns {Promise<void>}
74
46
  */
75
- export function process_failed_block_fetch(hash: Uint8Array, block_id: bigint, key: string): Promise<void>;
47
+ export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
76
48
  /**
77
- * @returns {Promise<void>}
49
+ * @returns {Promise<WasmBlockchain>}
78
50
  */
79
- export function disable_producing_blocks_by_timer(): Promise<void>;
51
+ export function get_blockchain(): Promise<WasmBlockchain>;
80
52
  /**
81
- * @param {bigint} current_time
53
+ * @param {bigint} duration_in_ms
82
54
  * @returns {Promise<void>}
83
55
  */
84
- export function process_stat_interval(current_time: bigint): Promise<void>;
56
+ export function process_timer_event(duration_in_ms: bigint): Promise<void>;
85
57
  /**
86
- * @param {bigint} duration_in_ms
58
+ * @param {bigint} current_time
87
59
  * @returns {Promise<void>}
88
60
  */
89
- export function process_timer_event(duration_in_ms: bigint): Promise<void>;
61
+ export function process_stat_interval(current_time: bigint): Promise<void>;
90
62
  /**
91
- * @param {string} public_key
92
- * @param {bigint} amount
93
- * @param {bigint} fee
94
- * @param {boolean} force_merge
95
- * @returns {Promise<WasmTransaction>}
63
+ * @returns {Promise<Array<any>>}
96
64
  */
97
- export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
65
+ export function get_nft_list(): Promise<Array<any>>;
98
66
  /**
99
- * @param {string} public_key
67
+ * @param {bigint} peer_id
100
68
  * @returns {Promise<void>}
101
69
  */
102
- export function remove_stun_peer(public_key: string): Promise<void>;
70
+ export function process_peer_disconnection(peer_id: bigint): Promise<void>;
103
71
  /**
104
72
  * @param {Uint8Array} buffer
105
73
  * @param {Uint8Array} hash
106
74
  * @param {bigint} block_id
107
- * @param {string} key
75
+ * @param {bigint} peer_id
108
76
  * @returns {Promise<void>}
109
77
  */
110
- export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, key: string): Promise<void>;
78
+ export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, block_id: bigint, peer_id: bigint): Promise<void>;
111
79
  /**
112
- * @param {string} public_key
113
- * @returns {Promise<Array<any>>}
114
- */
115
- export function get_account_slips(public_key: string): Promise<Array<any>>;
116
- /**
117
- * @returns {Promise<Array<any>>}
80
+ * @param {bigint} peer_id
81
+ * @param {boolean} initiate_handshake
82
+ * @returns {Promise<void>}
118
83
  */
119
- export function get_nft_list(): Promise<Array<any>>;
84
+ export function process_new_peer(peer_id: bigint, initiate_handshake: boolean): Promise<void>;
120
85
  /**
121
- * @param {string} config_json
122
- * @param {string} private_key
123
- * @param {number} log_level_num
124
- * @param {bigint} hasten_multiplier
125
- * @param {boolean} delete_old_blocks
126
- * @returns {Promise<any>}
86
+ * @param {Uint8Array} buffer
87
+ * @returns {string}
127
88
  */
128
- export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
89
+ export function hash(buffer: Uint8Array): string;
129
90
  /**
130
- * @returns {Promise<any>}
91
+ * @returns {WasmNetwork}
131
92
  */
132
- export function get_confirmations(): Promise<any>;
93
+ export function get_network(): WasmNetwork;
133
94
  /**
134
- * @param {string} key
95
+ * @param {bigint} threshold
135
96
  * @returns {Promise<void>}
136
97
  */
137
- export function process_peer_disconnection(key: string): Promise<void>;
138
- /**
139
- * @param {Uint8Array} buffer
140
- * @returns {string}
141
- */
142
- export function hash(buffer: Uint8Array): string;
98
+ export function write_issuance_file(threshold: bigint): Promise<void>;
143
99
  /**
144
- * @returns {Promise<WasmBlockchain>}
100
+ * @param {string} key
101
+ * @returns {boolean}
145
102
  */
146
- export function get_blockchain(): Promise<WasmBlockchain>;
103
+ export function isPublicKey(key: string): boolean;
147
104
  /**
148
- * @returns {Promise<WasmWallet>}
105
+ * @returns {Promise<Array<any>>}
149
106
  */
150
- export function get_wallet(): Promise<WasmWallet>;
107
+ export function get_mempool_txs(): Promise<Array<any>>;
151
108
  /**
152
109
  * @param {Array<any>} keys
153
110
  * @returns {Promise<WasmBalanceSnapshot>}
@@ -158,73 +115,46 @@ export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnaps
158
115
  */
159
116
  export function produce_block_with_gt(): Promise<boolean>;
160
117
  /**
161
- * @param {string} block_hash
162
- * @returns {Promise<WasmBlock>}
118
+ * @param {string | undefined} [url]
119
+ * @returns {Promise<WasmNetworkPeer>}
163
120
  */
164
- export function get_block(block_hash: string): Promise<WasmBlock>;
121
+ export function create_network_peer(url?: string): Promise<WasmNetworkPeer>;
165
122
  /**
166
- * @returns {string}
123
+ * @param {string} public_key
124
+ * @returns {Promise<Array<any>>}
167
125
  */
168
- export function generate_private_key(): string;
126
+ export function get_account_slips(public_key: string): Promise<Array<any>>;
169
127
  /**
170
- * @returns {Promise<string>}
128
+ * @param {Uint8Array} buffer
129
+ * @param {string} private_key
130
+ * @returns {string}
171
131
  */
172
- export function get_latest_block_hash(): Promise<string>;
132
+ export function sign_buffer(buffer: Uint8Array, private_key: string): string;
173
133
  /**
174
- * @param {Uint8Array} buffer
175
- * @param {string} signature
134
+ * @param {bigint} peer_id
176
135
  * @param {string} public_key
177
- * @returns {boolean}
136
+ * @returns {Promise<void>}
178
137
  */
179
- export function verify_signature(buffer: Uint8Array, signature: string, public_key: string): boolean;
138
+ export function remove_stun_peer(peer_id: bigint, public_key: string): Promise<void>;
180
139
  /**
181
- * @param {string} key
182
- * @returns {boolean}
140
+ * @param {bigint} peer_id
141
+ * @param {string} public_key
142
+ * @returns {Promise<void>}
183
143
  */
184
- export function isPublicKey(key: string): boolean;
144
+ export function process_stun_peer(peer_id: bigint, public_key: string): Promise<void>;
185
145
  /**
186
146
  * @returns {Promise<boolean>}
187
147
  */
188
148
  export function produce_block_without_gt(): Promise<boolean>;
189
149
  /**
190
- * @returns {WasmNetwork}
191
- */
192
- export function get_network(): WasmNetwork;
193
- /**
194
- * @param {string} slip1_utxo_key
195
- * @param {string} slip2_utxo_key
196
- * @param {string} slip3_utxo_key
197
- * @param {Uint8Array} tx_msg
198
- * @returns {Promise<WasmTransaction>}
150
+ * @param {string} block_hash
151
+ * @returns {Promise<WasmBlock>}
199
152
  */
200
- export function create_remove_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
153
+ export function get_block(block_hash: string): Promise<WasmBlock>;
201
154
  /**
202
155
  * @returns {Promise<string>}
203
156
  */
204
- export function get_stats(): Promise<string>;
205
- /**
206
- * @returns {Promise<void>}
207
- */
208
- export function start_from_received_ghost_chain(): Promise<void>;
209
- /**
210
- * @param {string} slip1_utxo_key
211
- * @param {string} slip2_utxo_key
212
- * @param {string} slip3_utxo_key
213
- * @param {number} left_count
214
- * @param {number} right_count
215
- * @param {Uint8Array} tx_msg
216
- * @returns {Promise<WasmTransaction>}
217
- */
218
- 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>;
219
- /**
220
- * @param {WasmBalanceSnapshot} snapshot
221
- * @returns {Promise<void>}
222
- */
223
- export function update_from_balance_snapshot(snapshot: WasmBalanceSnapshot): Promise<void>;
224
- /**
225
- * @returns {Promise<Array<any>>}
226
- */
227
- export function get_mempool_txs(): Promise<Array<any>>;
157
+ export function get_latest_block_hash(): Promise<string>;
228
158
  /**
229
159
  * @param {Uint8Array} buffer
230
160
  * @param {WasmNetworkPeer} peer
@@ -232,12 +162,6 @@ export function get_mempool_txs(): Promise<Array<any>>;
232
162
  */
233
163
  export function process_msg_buffer_from_peer(buffer: Uint8Array, peer: WasmNetworkPeer): Promise<Uint8Array>;
234
164
  /**
235
- * @param {string} nft_id_hex
236
- * @param {Uint8Array} tx_msg
237
- * @returns {Promise<WasmTransaction>}
238
- */
239
- export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
240
- /**
241
165
  */
242
166
  export class SaitoWasm {
243
167
  free(): void;
@@ -526,6 +450,10 @@ export class WasmBlockchain {
526
450
  */
527
451
  get_lowest_acceptable_block_hash(): Promise<string>;
528
452
  /**
453
+ * @returns {any}
454
+ */
455
+ get(): any;
456
+ /**
529
457
  * @returns {Promise<void>}
530
458
  */
531
459
  reset(): Promise<void>;
@@ -631,6 +559,11 @@ export class WasmNFT {
631
559
  export class WasmNetwork {
632
560
  free(): void;
633
561
  /**
562
+ * @param {bigint} peer_id
563
+ * @returns {Promise<WasmPeer | undefined>}
564
+ */
565
+ getPeerByPeerId(peer_id: bigint): Promise<WasmPeer | undefined>;
566
+ /**
634
567
  * @param {WasmTransaction} wtx
635
568
  * @returns {Promise<void>}
636
569
  */
@@ -650,6 +583,9 @@ export class WasmNetwork {
650
583
  /**
651
584
  */
652
585
  readonly api: WasmNetworkApi;
586
+ /**
587
+ */
588
+ readonly peers: WasmPeers;
653
589
  }
654
590
  /**
655
591
  */
@@ -682,21 +618,21 @@ export class WasmNetworkApi {
682
618
  export class WasmNetworkPeer {
683
619
  free(): void;
684
620
  /**
685
- * @returns {string}
621
+ * @returns {Promise<string>}
686
622
  */
687
- get_public_key(): string;
623
+ get_public_key(): Promise<string>;
688
624
  /**
689
- * @returns {Promise<Uint8Array>}
625
+ * @returns {bigint}
690
626
  */
691
- get_handshake_challenge_buffer(): Promise<Uint8Array>;
627
+ get_id(): bigint;
692
628
  /**
693
- * @returns {string}
629
+ * @returns {Promise<string>}
694
630
  */
695
- get_url(): string;
631
+ get_url(): Promise<string>;
696
632
  /**
697
- * @param {string | undefined} [url]
633
+ * @param {bigint} peer_id
698
634
  */
699
- constructor(url?: string);
635
+ constructor(peer_id: bigint);
700
636
  }
701
637
  /**
702
638
  */
@@ -708,6 +644,9 @@ export class WasmPeer {
708
644
  */
709
645
  has_service(service: string): boolean;
710
646
  /**
647
+ */
648
+ readonly id: bigint;
649
+ /**
711
650
  */
712
651
  readonly key_list: Array<any>;
713
652
  /**
@@ -754,6 +693,16 @@ export class WasmPeerServiceList {
754
693
  }
755
694
  /**
756
695
  */
696
+ export class WasmPeers {
697
+ free(): void;
698
+ /**
699
+ * @param {string | undefined} [public_key]
700
+ * @returns {any}
701
+ */
702
+ get(public_key?: string): any;
703
+ }
704
+ /**
705
+ */
757
706
  export class WasmSlip {
758
707
  free(): void;
759
708
  /**
@@ -788,11 +737,6 @@ export class WasmSlip {
788
737
  }
789
738
  /**
790
739
  */
791
- export class WasmStats {
792
- free(): void;
793
- }
794
- /**
795
- */
796
740
  export class WasmTransaction {
797
741
  free(): void;
798
742
  /**
@@ -909,6 +853,14 @@ export class WasmWallet {
909
853
  */
910
854
  set_private_key(key: string): Promise<void>;
911
855
  /**
856
+ * @param {string} public_key
857
+ * @param {bigint} amount
858
+ * @param {bigint} fee
859
+ * @param {boolean} force_merge
860
+ * @returns {Promise<WasmTransaction>}
861
+ */
862
+ createTransaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
863
+ /**
912
864
  * @returns {Promise<object>}
913
865
  */
914
866
  getWalletVersion(): Promise<object>;
@@ -920,6 +872,70 @@ export class WasmWallet {
920
872
  */
921
873
  setWalletVersion(major: number, minor: number, patch: number): Promise<void>;
922
874
  /**
875
+ * @param {bigint} num
876
+ * @param {bigint} deposit
877
+ * @param {Uint8Array} tx_msg
878
+ * @param {bigint} _fee
879
+ * @param {string} recipient_public_key
880
+ * @param {string} nft_type
881
+ * @returns {Promise<WasmTransaction>}
882
+ */
883
+ createBoundTransaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, _fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
884
+ /**
885
+ * @param {bigint} amt
886
+ * @param {string} slip1
887
+ * @param {string} slip2
888
+ * @param {string} slip3
889
+ * @param {string} recipient
890
+ * @param {Uint8Array} tx_msg
891
+ * @returns {Promise<WasmTransaction>}
892
+ */
893
+ createSendBoundTransaction(amt: bigint, slip1: string, slip2: string, slip3: string, recipient: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
894
+ /**
895
+ * @param {string} nft_id_hex
896
+ * @param {Uint8Array} tx_msg
897
+ * @returns {Promise<WasmTransaction>}
898
+ */
899
+ createMergeBoundTransaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
900
+ /**
901
+ * @param {string} slip1
902
+ * @param {string} slip2
903
+ * @param {string} slip3
904
+ * @param {number} left
905
+ * @param {number} right
906
+ * @param {Uint8Array} tx_msg
907
+ * @returns {Promise<WasmTransaction>}
908
+ */
909
+ createSplitBoundTransaction(slip1: string, slip2: string, slip3: string, left: number, right: number, tx_msg: Uint8Array): Promise<WasmTransaction>;
910
+ /**
911
+ * @param {string} slip1_utxo_key
912
+ * @param {string} slip2_utxo_key
913
+ * @param {string} slip3_utxo_key
914
+ * @param {Uint8Array} tx_msg
915
+ * @returns {Promise<WasmTransaction>}
916
+ */
917
+ createRemoveBoundTransaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
918
+ /**
919
+ * @param {string} slip1_utxo_key
920
+ * @param {string} slip2_utxo_key
921
+ * @param {string} slip3_utxo_key
922
+ * @param {Uint8Array} tx_msg
923
+ * @returns {Promise<WasmTransaction>}
924
+ */
925
+ createAtomizeBoundTransaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
926
+ /**
927
+ * @returns {any}
928
+ */
929
+ get(): any;
930
+ /**
931
+ * @param {Array<any>} public_keys
932
+ * @param {BigUint64Array} amounts
933
+ * @param {bigint} fee
934
+ * @param {boolean} _force_merge
935
+ * @returns {Promise<WasmTransaction>}
936
+ */
937
+ createTransactionWithMultiplePayments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
938
+ /**
923
939
  * @returns {Promise<void>}
924
940
  */
925
941
  load(): Promise<void>;