@lendasat/lendaswap-sdk 0.1.7 → 0.1.65
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/dist/api.d.ts +138 -160
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +174 -113
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/price-calculations.d.ts +135 -0
- package/dist/price-calculations.d.ts.map +1 -0
- package/dist/price-calculations.js +171 -0
- package/dist/price-calculations.js.map +1 -0
- package/dist/price-calculations.test.d.ts +2 -0
- package/dist/price-calculations.test.d.ts.map +1 -0
- package/dist/price-calculations.test.js +173 -0
- package/dist/price-calculations.test.js.map +1 -0
- package/dist/price-feed.d.ts +3 -0
- package/dist/price-feed.d.ts.map +1 -1
- package/dist/price-feed.js.map +1 -1
- package/dist/storage/dexieSwapStorage.d.ts +12 -10
- package/dist/storage/dexieSwapStorage.d.ts.map +1 -1
- package/dist/storage/dexieSwapStorage.js +63 -2
- package/dist/storage/dexieSwapStorage.js.map +1 -1
- package/dist/storage/dexieVtxoSwapStorage.d.ts +105 -0
- package/dist/storage/dexieVtxoSwapStorage.d.ts.map +1 -0
- package/dist/storage/dexieVtxoSwapStorage.js +149 -0
- package/dist/storage/dexieVtxoSwapStorage.js.map +1 -0
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +2 -0
- package/dist/storage/index.js.map +1 -1
- package/dist/usd-price.d.ts.map +1 -1
- package/dist/usd-price.js +1 -0
- package/dist/usd-price.js.map +1 -1
- package/package.json +1 -1
- package/wasm/lendaswap_wasm_sdk.d.ts +361 -43
- package/wasm/lendaswap_wasm_sdk_bg.js +2499 -483
- package/wasm/lendaswap_wasm_sdk_bg.wasm +0 -0
- package/wasm/lendaswap_wasm_sdk_bg.wasm.d.ts +259 -65
|
Binary file
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const swapStatusToString: (a: number) => [number, number];
|
|
4
5
|
export const __wbg_tokeninfo_free: (a: number, b: number) => void;
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
6
|
+
export const __wbg_get_tokeninfo_token_id: (a: number) => number;
|
|
7
|
+
export const __wbg_set_tokeninfo_token_id: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_get_tokeninfo_symbol: (a: number) => [number, number];
|
|
8
9
|
export const __wbg_set_tokeninfo_symbol: (a: number, b: number, c: number) => void;
|
|
9
10
|
export const __wbg_get_tokeninfo_chain: (a: number) => number;
|
|
@@ -22,59 +23,147 @@ export const __wbg_get_quoteresponse_exchangeRate: (a: number) => [number, numbe
|
|
|
22
23
|
export const __wbg_set_quoteresponse_exchangeRate: (a: number, b: number, c: number) => void;
|
|
23
24
|
export const __wbg_get_quoteresponse_protocolFeeRate: (a: number) => number;
|
|
24
25
|
export const __wbg_set_quoteresponse_protocolFeeRate: (a: number, b: number) => void;
|
|
25
|
-
export const __wbg_get_quoteresponse_maxAmount: (a: number) => bigint;
|
|
26
|
-
export const __wbg_set_quoteresponse_maxAmount: (a: number, b: bigint) => void;
|
|
27
26
|
export const __wbg_estimatevtxoswapresponse_free: (a: number, b: number) => void;
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const __wbg_get_estimatevtxoswapresponse_totalInputSats: (a: number) => bigint;
|
|
31
|
-
export const __wbg_set_estimatevtxoswapresponse_totalInputSats: (a: number, b: bigint) => void;
|
|
32
|
-
export const __wbg_get_estimatevtxoswapresponse_outputSats: (a: number) => bigint;
|
|
33
|
-
export const __wbg_set_estimatevtxoswapresponse_outputSats: (a: number, b: bigint) => void;
|
|
34
|
-
export const __wbg_get_estimatevtxoswapresponse_vtxoCount: (a: number) => number;
|
|
35
|
-
export const __wbg_set_estimatevtxoswapresponse_vtxoCount: (a: number, b: number) => void;
|
|
36
|
-
export const __wbg_get_estimatevtxoswapresponse_expectedVtxoExpiry: (a: number) => bigint;
|
|
37
|
-
export const __wbg_set_estimatevtxoswapresponse_expectedVtxoExpiry: (a: number, b: bigint) => void;
|
|
27
|
+
export const __wbg_get_estimatevtxoswapresponse_vtxo_count: (a: number) => number;
|
|
28
|
+
export const __wbg_set_estimatevtxoswapresponse_vtxo_count: (a: number, b: number) => void;
|
|
38
29
|
export const __wbg_vtxoswapresponse_free: (a: number, b: number) => void;
|
|
39
30
|
export const __wbg_get_vtxoswapresponse_id: (a: number) => [number, number];
|
|
40
31
|
export const __wbg_set_vtxoswapresponse_id: (a: number, b: number, c: number) => void;
|
|
41
32
|
export const __wbg_get_vtxoswapresponse_status: (a: number) => [number, number];
|
|
42
33
|
export const __wbg_set_vtxoswapresponse_status: (a: number, b: number, c: number) => void;
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
57
|
-
export const __wbg_get_vtxoswapresponse_serverUnilateralClaimDelay: (a: number) => bigint;
|
|
58
|
-
export const __wbg_set_vtxoswapresponse_serverUnilateralClaimDelay: (a: number, b: bigint) => void;
|
|
59
|
-
export const __wbg_get_vtxoswapresponse_serverUnilateralRefundDelay: (a: number) => bigint;
|
|
60
|
-
export const __wbg_set_vtxoswapresponse_serverUnilateralRefundDelay: (a: number, b: bigint) => void;
|
|
61
|
-
export const __wbg_get_vtxoswapresponse_serverUnilateralRefundWithoutReceiverDelay: (a: number) => bigint;
|
|
62
|
-
export const __wbg_set_vtxoswapresponse_serverUnilateralRefundWithoutReceiverDelay: (a: number, b: bigint) => void;
|
|
63
|
-
export const __wbg_get_vtxoswapresponse_arkadeServerPk: (a: number) => [number, number];
|
|
64
|
-
export const __wbg_set_vtxoswapresponse_arkadeServerPk: (a: number, b: number, c: number) => void;
|
|
65
|
-
export const __wbg_get_vtxoswapresponse_preimageHash: (a: number) => [number, number];
|
|
66
|
-
export const __wbg_set_vtxoswapresponse_preimageHash: (a: number, b: number, c: number) => void;
|
|
67
|
-
export const __wbg_get_vtxoswapresponse_feeSats: (a: number) => bigint;
|
|
68
|
-
export const __wbg_set_vtxoswapresponse_feeSats: (a: number, b: bigint) => void;
|
|
34
|
+
export const __wbg_get_vtxoswapresponse_created_at: (a: number) => [number, number];
|
|
35
|
+
export const __wbg_set_vtxoswapresponse_created_at: (a: number, b: number, c: number) => void;
|
|
36
|
+
export const __wbg_get_vtxoswapresponse_client_vhtlc_address: (a: number) => [number, number];
|
|
37
|
+
export const __wbg_get_vtxoswapresponse_client_pk: (a: number) => [number, number];
|
|
38
|
+
export const __wbg_get_vtxoswapresponse_server_vhtlc_address: (a: number) => [number, number];
|
|
39
|
+
export const __wbg_get_vtxoswapresponse_server_pk: (a: number) => [number, number];
|
|
40
|
+
export const __wbg_get_vtxoswapresponse_server_unilateral_refund_delay: (a: number) => bigint;
|
|
41
|
+
export const __wbg_set_vtxoswapresponse_server_unilateral_refund_delay: (a: number, b: bigint) => void;
|
|
42
|
+
export const __wbg_get_vtxoswapresponse_server_unilateral_refund_without_receiver_delay: (a: number) => bigint;
|
|
43
|
+
export const __wbg_set_vtxoswapresponse_server_unilateral_refund_without_receiver_delay: (a: number, b: bigint) => void;
|
|
44
|
+
export const __wbg_get_vtxoswapresponse_arkade_server_pk: (a: number) => [number, number];
|
|
45
|
+
export const __wbg_get_vtxoswapresponse_preimage_hash: (a: number) => [number, number];
|
|
46
|
+
export const __wbg_get_vtxoswapresponse_fee_sats: (a: number) => bigint;
|
|
47
|
+
export const __wbg_set_vtxoswapresponse_fee_sats: (a: number, b: bigint) => void;
|
|
69
48
|
export const __wbg_get_vtxoswapresponse_network: (a: number) => [number, number];
|
|
70
|
-
export const
|
|
49
|
+
export const __wbg_btctoevmswapresponse_free: (a: number, b: number) => void;
|
|
50
|
+
export const __wbg_get_btctoevmswapresponse_id: (a: number) => [number, number];
|
|
51
|
+
export const __wbg_set_btctoevmswapresponse_id: (a: number, b: number, c: number) => void;
|
|
52
|
+
export const __wbg_get_btctoevmswapresponse_hash_lock: (a: number) => [number, number];
|
|
53
|
+
export const __wbg_get_btctoevmswapresponse_asset_amount: (a: number) => number;
|
|
54
|
+
export const __wbg_set_btctoevmswapresponse_asset_amount: (a: number, b: number) => void;
|
|
55
|
+
export const __wbg_get_btctoevmswapresponse_sender_pk: (a: number) => [number, number];
|
|
56
|
+
export const __wbg_get_btctoevmswapresponse_receiver_pk: (a: number) => [number, number];
|
|
57
|
+
export const __wbg_get_btctoevmswapresponse_server_pk: (a: number) => [number, number];
|
|
58
|
+
export const __wbg_get_btctoevmswapresponse_refund_locktime: (a: number) => number;
|
|
59
|
+
export const __wbg_set_btctoevmswapresponse_refund_locktime: (a: number, b: number) => void;
|
|
60
|
+
export const __wbg_get_btctoevmswapresponse_network: (a: number) => number;
|
|
61
|
+
export const __wbg_set_btctoevmswapresponse_network: (a: number, b: number) => void;
|
|
62
|
+
export const __wbg_get_btctoevmswapresponse_created_at: (a: number) => [number, number];
|
|
63
|
+
export const __wbg_get_btctoevmswapresponse_htlc_address_evm: (a: number) => [number, number];
|
|
64
|
+
export const __wbg_get_btctoevmswapresponse_htlc_address_arkade: (a: number) => [number, number];
|
|
65
|
+
export const __wbg_get_btctoevmswapresponse_user_address_evm: (a: number) => [number, number];
|
|
66
|
+
export const __wbg_get_btctoevmswapresponse_ln_invoice: (a: number) => [number, number];
|
|
67
|
+
export const __wbg_get_btctoevmswapresponse_source_token: (a: number) => number;
|
|
68
|
+
export const __wbg_set_btctoevmswapresponse_source_token: (a: number, b: number) => void;
|
|
69
|
+
export const __wbg_get_btctoevmswapresponse_bitcoin_htlc_claim_txid: (a: number) => [number, number];
|
|
70
|
+
export const __wbg_set_btctoevmswapresponse_bitcoin_htlc_claim_txid: (a: number, b: number, c: number) => void;
|
|
71
|
+
export const __wbg_evmtobtcswapresponse_free: (a: number, b: number) => void;
|
|
72
|
+
export const __wbg_get_evmtobtcswapresponse_id: (a: number) => [number, number];
|
|
73
|
+
export const __wbg_get_evmtobtcswapresponse_status: (a: number) => number;
|
|
74
|
+
export const __wbg_set_evmtobtcswapresponse_status: (a: number, b: number) => void;
|
|
75
|
+
export const __wbg_get_evmtobtcswapresponse_hash_lock: (a: number) => [number, number];
|
|
76
|
+
export const __wbg_get_evmtobtcswapresponse_sender_pk: (a: number) => [number, number];
|
|
77
|
+
export const __wbg_get_evmtobtcswapresponse_receiver_pk: (a: number) => [number, number];
|
|
78
|
+
export const __wbg_get_evmtobtcswapresponse_server_pk: (a: number) => [number, number];
|
|
79
|
+
export const __wbg_set_evmtobtcswapresponse_server_pk: (a: number, b: number, c: number) => void;
|
|
80
|
+
export const __wbg_get_evmtobtcswapresponse_network: (a: number) => number;
|
|
81
|
+
export const __wbg_set_evmtobtcswapresponse_network: (a: number, b: number) => void;
|
|
82
|
+
export const __wbg_get_evmtobtcswapresponse_created_at: (a: number) => [number, number];
|
|
83
|
+
export const __wbg_set_evmtobtcswapresponse_created_at: (a: number, b: number, c: number) => void;
|
|
84
|
+
export const __wbg_get_evmtobtcswapresponse_htlc_address_evm: (a: number) => [number, number];
|
|
85
|
+
export const __wbg_set_evmtobtcswapresponse_htlc_address_evm: (a: number, b: number, c: number) => void;
|
|
86
|
+
export const __wbg_get_evmtobtcswapresponse_htlc_address_arkade: (a: number) => [number, number];
|
|
87
|
+
export const __wbg_set_evmtobtcswapresponse_htlc_address_arkade: (a: number, b: number, c: number) => void;
|
|
88
|
+
export const __wbg_get_evmtobtcswapresponse_user_address_evm: (a: number) => [number, number];
|
|
89
|
+
export const __wbg_set_evmtobtcswapresponse_user_address_evm: (a: number, b: number, c: number) => void;
|
|
90
|
+
export const __wbg_get_evmtobtcswapresponse_ln_invoice: (a: number) => [number, number];
|
|
91
|
+
export const __wbg_set_evmtobtcswapresponse_ln_invoice: (a: number, b: number, c: number) => void;
|
|
92
|
+
export const __wbg_get_evmtobtcswapresponse_create_swap_tx: (a: number) => [number, number];
|
|
93
|
+
export const __wbg_set_evmtobtcswapresponse_create_swap_tx: (a: number, b: number, c: number) => void;
|
|
94
|
+
export const __wbg_get_evmtobtcswapresponse_approve_tx: (a: number) => [number, number];
|
|
95
|
+
export const __wbg_set_evmtobtcswapresponse_approve_tx: (a: number, b: number, c: number) => void;
|
|
96
|
+
export const __wbg_get_evmtobtcswapresponse_gelato_forwarder_address: (a: number) => [number, number];
|
|
97
|
+
export const __wbg_set_evmtobtcswapresponse_gelato_forwarder_address: (a: number, b: number, c: number) => void;
|
|
98
|
+
export const __wbg_get_evmtobtcswapresponse_gelato_user_nonce: (a: number) => [number, number];
|
|
99
|
+
export const __wbg_set_evmtobtcswapresponse_gelato_user_nonce: (a: number, b: number, c: number) => void;
|
|
100
|
+
export const __wbg_get_evmtobtcswapresponse_gelato_user_deadline: (a: number) => [number, number];
|
|
101
|
+
export const __wbg_set_evmtobtcswapresponse_gelato_user_deadline: (a: number, b: number, c: number) => void;
|
|
102
|
+
export const __wbg_get_evmtobtcswapresponse_source_token_address: (a: number) => [number, number];
|
|
103
|
+
export const __wbg_set_evmtobtcswapresponse_source_token_address: (a: number, b: number, c: number) => void;
|
|
104
|
+
export const __wbg_btctoarkadeswapresponse_free: (a: number, b: number) => void;
|
|
105
|
+
export const __wbg_get_btctoarkadeswapresponse_id: (a: number) => [number, number];
|
|
106
|
+
export const __wbg_set_btctoarkadeswapresponse_id: (a: number, b: number, c: number) => void;
|
|
107
|
+
export const __wbg_get_btctoarkadeswapresponse_status: (a: number) => number;
|
|
108
|
+
export const __wbg_set_btctoarkadeswapresponse_status: (a: number, b: number) => void;
|
|
109
|
+
export const __wbg_get_btctoarkadeswapresponse_btc_htlc_address: (a: number) => [number, number];
|
|
110
|
+
export const __wbg_set_btctoarkadeswapresponse_btc_htlc_address: (a: number, b: number, c: number) => void;
|
|
111
|
+
export const __wbg_get_btctoarkadeswapresponse_asset_amount: (a: number) => bigint;
|
|
112
|
+
export const __wbg_set_btctoarkadeswapresponse_asset_amount: (a: number, b: bigint) => void;
|
|
113
|
+
export const __wbg_get_btctoarkadeswapresponse_sats_receive: (a: number) => bigint;
|
|
114
|
+
export const __wbg_set_btctoarkadeswapresponse_sats_receive: (a: number, b: bigint) => void;
|
|
115
|
+
export const __wbg_get_btctoarkadeswapresponse_fee_sats: (a: number) => bigint;
|
|
116
|
+
export const __wbg_set_btctoarkadeswapresponse_fee_sats: (a: number, b: bigint) => void;
|
|
117
|
+
export const __wbg_get_btctoarkadeswapresponse_hash_lock: (a: number) => [number, number];
|
|
118
|
+
export const __wbg_set_btctoarkadeswapresponse_hash_lock: (a: number, b: number, c: number) => void;
|
|
119
|
+
export const __wbg_get_btctoarkadeswapresponse_btc_refund_locktime: (a: number) => bigint;
|
|
120
|
+
export const __wbg_set_btctoarkadeswapresponse_btc_refund_locktime: (a: number, b: bigint) => void;
|
|
121
|
+
export const __wbg_get_btctoarkadeswapresponse_arkade_vhtlc_address: (a: number) => [number, number];
|
|
122
|
+
export const __wbg_set_btctoarkadeswapresponse_arkade_vhtlc_address: (a: number, b: number, c: number) => void;
|
|
123
|
+
export const __wbg_get_btctoarkadeswapresponse_target_arkade_address: (a: number) => [number, number];
|
|
124
|
+
export const __wbg_set_btctoarkadeswapresponse_target_arkade_address: (a: number, b: number, c: number) => void;
|
|
125
|
+
export const __wbg_get_btctoarkadeswapresponse_btc_fund_txid: (a: number) => [number, number];
|
|
126
|
+
export const __wbg_set_btctoarkadeswapresponse_btc_fund_txid: (a: number, b: number, c: number) => void;
|
|
127
|
+
export const __wbg_get_btctoarkadeswapresponse_btc_claim_txid: (a: number) => [number, number];
|
|
128
|
+
export const __wbg_set_btctoarkadeswapresponse_btc_claim_txid: (a: number, b: number, c: number) => void;
|
|
129
|
+
export const __wbg_get_btctoarkadeswapresponse_arkade_fund_txid: (a: number) => [number, number];
|
|
130
|
+
export const __wbg_set_btctoarkadeswapresponse_arkade_fund_txid: (a: number, b: number, c: number) => void;
|
|
131
|
+
export const __wbg_get_btctoarkadeswapresponse_arkade_claim_txid: (a: number) => [number, number];
|
|
132
|
+
export const __wbg_set_btctoarkadeswapresponse_arkade_claim_txid: (a: number, b: number, c: number) => void;
|
|
133
|
+
export const __wbg_get_btctoarkadeswapresponse_network: (a: number) => [number, number];
|
|
134
|
+
export const __wbg_set_btctoarkadeswapresponse_network: (a: number, b: number, c: number) => void;
|
|
135
|
+
export const __wbg_get_btctoarkadeswapresponse_created_at: (a: number) => [number, number];
|
|
136
|
+
export const __wbg_set_btctoarkadeswapresponse_created_at: (a: number, b: number, c: number) => void;
|
|
137
|
+
export const __wbg_get_btctoarkadeswapresponse_server_vhtlc_pk: (a: number) => [number, number];
|
|
138
|
+
export const __wbg_set_btctoarkadeswapresponse_server_vhtlc_pk: (a: number, b: number, c: number) => void;
|
|
139
|
+
export const __wbg_get_btctoarkadeswapresponse_arkade_server_pk: (a: number) => [number, number];
|
|
140
|
+
export const __wbg_set_btctoarkadeswapresponse_arkade_server_pk: (a: number, b: number, c: number) => void;
|
|
141
|
+
export const __wbg_get_btctoarkadeswapresponse_vhtlc_refund_locktime: (a: number) => bigint;
|
|
142
|
+
export const __wbg_set_btctoarkadeswapresponse_vhtlc_refund_locktime: (a: number, b: bigint) => void;
|
|
143
|
+
export const __wbg_get_btctoarkadeswapresponse_unilateral_claim_delay: (a: number) => bigint;
|
|
144
|
+
export const __wbg_set_btctoarkadeswapresponse_unilateral_claim_delay: (a: number, b: bigint) => void;
|
|
145
|
+
export const __wbg_get_btctoarkadeswapresponse_unilateral_refund_delay: (a: number) => bigint;
|
|
146
|
+
export const __wbg_set_btctoarkadeswapresponse_unilateral_refund_delay: (a: number, b: bigint) => void;
|
|
147
|
+
export const __wbg_get_btctoarkadeswapresponse_unilateral_refund_without_receiver_delay: (a: number) => bigint;
|
|
148
|
+
export const __wbg_set_btctoarkadeswapresponse_unilateral_refund_without_receiver_delay: (a: number, b: bigint) => void;
|
|
149
|
+
export const __wbg_get_btctoarkadeswapresponse_source_token: (a: number) => number;
|
|
150
|
+
export const __wbg_set_btctoarkadeswapresponse_source_token: (a: number, b: number) => void;
|
|
151
|
+
export const __wbg_get_btctoarkadeswapresponse_target_token: (a: number) => number;
|
|
152
|
+
export const __wbg_set_btctoarkadeswapresponse_target_token: (a: number, b: number) => void;
|
|
71
153
|
export const __wbg_createvtxoswapresult_free: (a: number, b: number) => void;
|
|
72
154
|
export const __wbg_get_createvtxoswapresult_response: (a: number) => number;
|
|
73
155
|
export const __wbg_set_createvtxoswapresult_response: (a: number, b: number) => void;
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
156
|
+
export const __wbg_get_createvtxoswapresult_swap_params: (a: number) => number;
|
|
157
|
+
export const __wbg_set_createvtxoswapresult_swap_params: (a: number, b: number) => void;
|
|
158
|
+
export const __wbg_extendedvtxoswapstoragedata_free: (a: number, b: number) => void;
|
|
159
|
+
export const __wbg_extendedswapstoragedata_free: (a: number, b: number) => void;
|
|
160
|
+
export const extendedswapstoragedata_swapType: (a: number) => number;
|
|
161
|
+
export const extendedswapstoragedata_btcToEvmResponse: (a: number) => number;
|
|
162
|
+
export const extendedswapstoragedata_evmToBtcResponse: (a: number) => number;
|
|
163
|
+
export const extendedswapstoragedata_btcToArkadeResponse: (a: number) => number;
|
|
164
|
+
export const extendedswapstoragedata_swapParams: (a: number) => number;
|
|
76
165
|
export const __wbg_client_free: (a: number, b: number) => void;
|
|
77
|
-
export const client_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
166
|
+
export const client_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => [number, number, number];
|
|
78
167
|
export const client_init: (a: number, b: number, c: number) => any;
|
|
79
168
|
export const client_createArkadeToEvmSwap: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
|
|
80
169
|
export const client_createEvmToArkadeSwap: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
@@ -88,48 +177,133 @@ export const client_claimGelato: (a: number, b: number, c: number, d: number, e:
|
|
|
88
177
|
export const client_amountsForSwap: (a: number, b: number, c: number) => any;
|
|
89
178
|
export const client_claimVhtlc: (a: number, b: number, c: number) => any;
|
|
90
179
|
export const client_refundVhtlc: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
180
|
+
export const client_createBitcoinToArkadeSwap: (a: number, b: number, c: number, d: bigint, e: number, f: number) => any;
|
|
181
|
+
export const client_claimBtcToArkadeVhtlc: (a: number, b: number, c: number) => any;
|
|
182
|
+
export const client_refundOnchainHtlc: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
91
183
|
export const client_getVersion: (a: number) => any;
|
|
92
184
|
export const client_recoverSwaps: (a: number) => any;
|
|
93
185
|
export const client_getMnemonic: (a: number) => any;
|
|
94
186
|
export const client_getUserIdXpub: (a: number) => any;
|
|
95
187
|
export const client_clearSwapStorage: (a: number) => any;
|
|
96
188
|
export const client_deleteSwap: (a: number, b: number, c: number) => any;
|
|
189
|
+
export const client_getCorruptedSwapIds: (a: number) => [number, number];
|
|
190
|
+
export const client_deleteCorruptedSwaps: (a: number) => any;
|
|
97
191
|
export const client_estimateVtxoSwap: (a: number, b: number, c: number) => any;
|
|
98
192
|
export const client_createVtxoSwap: (a: number, b: number, c: number) => any;
|
|
99
193
|
export const client_getVtxoSwap: (a: number, b: number, c: number) => any;
|
|
100
194
|
export const client_claimVtxoSwap: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
101
195
|
export const client_refundVtxoSwap: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
196
|
+
export const client_listAllVtxoSwaps: (a: number) => any;
|
|
197
|
+
export const __wbg_set_vtxoswapresponse_client_vhtlc_address: (a: number, b: number, c: number) => void;
|
|
198
|
+
export const __wbg_set_vtxoswapresponse_client_pk: (a: number, b: number, c: number) => void;
|
|
199
|
+
export const __wbg_set_vtxoswapresponse_server_vhtlc_address: (a: number, b: number, c: number) => void;
|
|
200
|
+
export const __wbg_set_vtxoswapresponse_server_pk: (a: number, b: number, c: number) => void;
|
|
201
|
+
export const __wbg_set_vtxoswapresponse_arkade_server_pk: (a: number, b: number, c: number) => void;
|
|
202
|
+
export const __wbg_set_vtxoswapresponse_preimage_hash: (a: number, b: number, c: number) => void;
|
|
203
|
+
export const __wbg_set_vtxoswapresponse_network: (a: number, b: number, c: number) => void;
|
|
204
|
+
export const __wbg_set_evmtobtcswapresponse_id: (a: number, b: number, c: number) => void;
|
|
205
|
+
export const __wbg_set_evmtobtcswapresponse_hash_lock: (a: number, b: number, c: number) => void;
|
|
206
|
+
export const __wbg_set_evmtobtcswapresponse_sender_pk: (a: number, b: number, c: number) => void;
|
|
207
|
+
export const __wbg_set_evmtobtcswapresponse_receiver_pk: (a: number, b: number, c: number) => void;
|
|
208
|
+
export const __wbg_set_btctoevmswapresponse_hash_lock: (a: number, b: number, c: number) => void;
|
|
209
|
+
export const __wbg_set_btctoevmswapresponse_sender_pk: (a: number, b: number, c: number) => void;
|
|
210
|
+
export const __wbg_set_btctoevmswapresponse_receiver_pk: (a: number, b: number, c: number) => void;
|
|
211
|
+
export const __wbg_set_btctoevmswapresponse_server_pk: (a: number, b: number, c: number) => void;
|
|
212
|
+
export const __wbg_set_btctoevmswapresponse_created_at: (a: number, b: number, c: number) => void;
|
|
213
|
+
export const __wbg_set_btctoevmswapresponse_htlc_address_evm: (a: number, b: number, c: number) => void;
|
|
214
|
+
export const __wbg_set_btctoevmswapresponse_htlc_address_arkade: (a: number, b: number, c: number) => void;
|
|
215
|
+
export const __wbg_set_btctoevmswapresponse_user_address_evm: (a: number, b: number, c: number) => void;
|
|
216
|
+
export const __wbg_set_btctoevmswapresponse_ln_invoice: (a: number, b: number, c: number) => void;
|
|
217
|
+
export const __wbg_set_btctoevmswapresponse_status: (a: number, b: number) => void;
|
|
218
|
+
export const __wbg_get_btctoevmswapresponse_status: (a: number) => number;
|
|
102
219
|
export const __wbg_set_quoteresponse_networkFee: (a: number, b: bigint) => void;
|
|
103
220
|
export const __wbg_set_quoteresponse_protocolFee: (a: number, b: bigint) => void;
|
|
104
221
|
export const __wbg_set_quoteresponse_minAmount: (a: number, b: bigint) => void;
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
109
|
-
export const
|
|
222
|
+
export const __wbg_set_vtxoswapresponse_client_fund_amount_sats: (a: number, b: bigint) => void;
|
|
223
|
+
export const __wbg_set_vtxoswapresponse_client_locktime: (a: number, b: bigint) => void;
|
|
224
|
+
export const __wbg_set_vtxoswapresponse_client_unilateral_claim_delay: (a: number, b: bigint) => void;
|
|
225
|
+
export const __wbg_set_vtxoswapresponse_client_unilateral_refund_delay: (a: number, b: bigint) => void;
|
|
226
|
+
export const __wbg_set_vtxoswapresponse_client_unilateral_refund_without_receiver_delay: (a: number, b: bigint) => void;
|
|
227
|
+
export const __wbg_set_estimatevtxoswapresponse_fee_sats: (a: number, b: bigint) => void;
|
|
228
|
+
export const __wbg_set_estimatevtxoswapresponse_output_sats: (a: number, b: bigint) => void;
|
|
229
|
+
export const __wbg_set_estimatevtxoswapresponse_expected_vtxo_expiry: (a: number, b: bigint) => void;
|
|
230
|
+
export const __wbg_set_quoteresponse_maxAmount: (a: number, b: bigint) => void;
|
|
231
|
+
export const __wbg_set_vtxoswapresponse_server_fund_amount_sats: (a: number, b: bigint) => void;
|
|
232
|
+
export const __wbg_set_evmtobtcswapresponse_fee_sats: (a: number, b: bigint) => void;
|
|
233
|
+
export const __wbg_set_evmtobtcswapresponse_asset_amount: (a: number, b: number) => void;
|
|
234
|
+
export const __wbg_set_evmtobtcswapresponse_refund_locktime: (a: number, b: number) => void;
|
|
235
|
+
export const __wbg_set_evmtobtcswapresponse_unilateral_claim_delay: (a: number, b: bigint) => void;
|
|
236
|
+
export const __wbg_set_evmtobtcswapresponse_unilateral_refund_delay: (a: number, b: bigint) => void;
|
|
237
|
+
export const __wbg_set_evmtobtcswapresponse_unilateral_refund_without_receiver_delay: (a: number, b: bigint) => void;
|
|
238
|
+
export const __wbg_set_evmtobtcswapresponse_sats_receive: (a: number, b: bigint) => void;
|
|
239
|
+
export const __wbg_set_btctoevmswapresponse_fee_sats: (a: number, b: bigint) => void;
|
|
240
|
+
export const __wbg_set_estimatevtxoswapresponse_total_input_sats: (a: number, b: bigint) => void;
|
|
241
|
+
export const __wbg_set_btctoevmswapresponse_unilateral_claim_delay: (a: number, b: bigint) => void;
|
|
242
|
+
export const __wbg_set_btctoevmswapresponse_unilateral_refund_delay: (a: number, b: bigint) => void;
|
|
243
|
+
export const __wbg_set_btctoevmswapresponse_unilateral_refund_without_receiver_delay: (a: number, b: bigint) => void;
|
|
244
|
+
export const __wbg_set_btctoevmswapresponse_sats_receive: (a: number, b: bigint) => void;
|
|
245
|
+
export const __wbg_set_vtxoswapresponse_server_locktime: (a: number, b: bigint) => void;
|
|
246
|
+
export const __wbg_set_vtxoswapresponse_server_unilateral_claim_delay: (a: number, b: bigint) => void;
|
|
247
|
+
export const __wbg_set_evmtobtcswapresponse_user_address_arkade: (a: number, b: number, c: number) => void;
|
|
248
|
+
export const __wbg_set_evmtobtcswapresponse_bitcoin_htlc_fund_txid: (a: number, b: number, c: number) => void;
|
|
249
|
+
export const __wbg_set_evmtobtcswapresponse_bitcoin_htlc_claim_txid: (a: number, b: number, c: number) => void;
|
|
250
|
+
export const __wbg_set_evmtobtcswapresponse_evm_htlc_claim_txid: (a: number, b: number, c: number) => void;
|
|
251
|
+
export const __wbg_set_btctoevmswapresponse_bitcoin_htlc_fund_txid: (a: number, b: number, c: number) => void;
|
|
252
|
+
export const __wbg_set_btctoevmswapresponse_evm_htlc_claim_txid: (a: number, b: number, c: number) => void;
|
|
253
|
+
export const __wbg_set_btctoevmswapresponse_evm_htlc_fund_txid: (a: number, b: number, c: number) => void;
|
|
254
|
+
export const __wbg_set_evmtobtcswapresponse_evm_htlc_fund_txid: (a: number, b: number, c: number) => void;
|
|
255
|
+
export const __wbg_get_evmtobtcswapresponse_user_address_arkade: (a: number) => [number, number];
|
|
256
|
+
export const __wbg_get_evmtobtcswapresponse_bitcoin_htlc_fund_txid: (a: number) => [number, number];
|
|
257
|
+
export const __wbg_get_evmtobtcswapresponse_bitcoin_htlc_claim_txid: (a: number) => [number, number];
|
|
258
|
+
export const __wbg_get_evmtobtcswapresponse_evm_htlc_claim_txid: (a: number) => [number, number];
|
|
259
|
+
export const __wbg_get_btctoevmswapresponse_bitcoin_htlc_fund_txid: (a: number) => [number, number];
|
|
260
|
+
export const __wbg_get_btctoevmswapresponse_evm_htlc_claim_txid: (a: number) => [number, number];
|
|
261
|
+
export const __wbg_get_btctoevmswapresponse_evm_htlc_fund_txid: (a: number) => [number, number];
|
|
262
|
+
export const __wbg_get_evmtobtcswapresponse_evm_htlc_fund_txid: (a: number) => [number, number];
|
|
263
|
+
export const __wbg_get_evmtobtcswapresponse_refund_locktime: (a: number) => number;
|
|
264
|
+
export const __wbg_get_extendedvtxoswapstoragedata_swap_params: (a: number) => number;
|
|
265
|
+
export const __wbg_get_extendedvtxoswapstoragedata_response: (a: number) => number;
|
|
110
266
|
export const __wbg_get_quoteresponse_networkFee: (a: number) => bigint;
|
|
111
267
|
export const __wbg_get_quoteresponse_protocolFee: (a: number) => bigint;
|
|
112
268
|
export const __wbg_get_quoteresponse_minAmount: (a: number) => bigint;
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
117
|
-
export const
|
|
269
|
+
export const __wbg_get_vtxoswapresponse_client_fund_amount_sats: (a: number) => bigint;
|
|
270
|
+
export const __wbg_get_vtxoswapresponse_client_locktime: (a: number) => bigint;
|
|
271
|
+
export const __wbg_get_vtxoswapresponse_client_unilateral_claim_delay: (a: number) => bigint;
|
|
272
|
+
export const __wbg_get_vtxoswapresponse_client_unilateral_refund_delay: (a: number) => bigint;
|
|
273
|
+
export const __wbg_get_vtxoswapresponse_client_unilateral_refund_without_receiver_delay: (a: number) => bigint;
|
|
274
|
+
export const __wbg_get_estimatevtxoswapresponse_fee_sats: (a: number) => bigint;
|
|
275
|
+
export const __wbg_get_estimatevtxoswapresponse_output_sats: (a: number) => bigint;
|
|
276
|
+
export const __wbg_get_estimatevtxoswapresponse_expected_vtxo_expiry: (a: number) => bigint;
|
|
277
|
+
export const __wbg_get_quoteresponse_maxAmount: (a: number) => bigint;
|
|
278
|
+
export const __wbg_get_vtxoswapresponse_server_fund_amount_sats: (a: number) => bigint;
|
|
279
|
+
export const __wbg_get_evmtobtcswapresponse_fee_sats: (a: number) => bigint;
|
|
280
|
+
export const __wbg_get_evmtobtcswapresponse_asset_amount: (a: number) => number;
|
|
281
|
+
export const __wbg_get_evmtobtcswapresponse_unilateral_claim_delay: (a: number) => bigint;
|
|
282
|
+
export const __wbg_get_evmtobtcswapresponse_unilateral_refund_delay: (a: number) => bigint;
|
|
283
|
+
export const __wbg_get_evmtobtcswapresponse_unilateral_refund_without_receiver_delay: (a: number) => bigint;
|
|
284
|
+
export const __wbg_get_evmtobtcswapresponse_sats_receive: (a: number) => bigint;
|
|
285
|
+
export const __wbg_get_btctoevmswapresponse_fee_sats: (a: number) => bigint;
|
|
286
|
+
export const __wbg_get_estimatevtxoswapresponse_total_input_sats: (a: number) => bigint;
|
|
287
|
+
export const __wbg_get_btctoevmswapresponse_unilateral_claim_delay: (a: number) => bigint;
|
|
288
|
+
export const __wbg_get_btctoevmswapresponse_unilateral_refund_delay: (a: number) => bigint;
|
|
289
|
+
export const __wbg_get_btctoevmswapresponse_unilateral_refund_without_receiver_delay: (a: number) => bigint;
|
|
290
|
+
export const __wbg_get_btctoevmswapresponse_sats_receive: (a: number) => bigint;
|
|
291
|
+
export const __wbg_get_vtxoswapresponse_server_locktime: (a: number) => bigint;
|
|
292
|
+
export const __wbg_get_vtxoswapresponse_server_unilateral_claim_delay: (a: number) => bigint;
|
|
293
|
+
export const __wbg_set_evmtobtcswapresponse_source_token: (a: number, b: number) => void;
|
|
294
|
+
export const __wbg_set_evmtobtcswapresponse_target_token: (a: number, b: number) => void;
|
|
295
|
+
export const __wbg_set_btctoevmswapresponse_target_token: (a: number, b: number) => void;
|
|
296
|
+
export const __wbg_set_extendedvtxoswapstoragedata_response: (a: number, b: number) => void;
|
|
297
|
+
export const __wbg_set_extendedvtxoswapstoragedata_swap_params: (a: number, b: number) => void;
|
|
298
|
+
export const __wbg_get_evmtobtcswapresponse_source_token: (a: number) => number;
|
|
299
|
+
export const __wbg_get_evmtobtcswapresponse_target_token: (a: number) => number;
|
|
300
|
+
export const __wbg_get_btctoevmswapresponse_target_token: (a: number) => number;
|
|
118
301
|
export const __wbg_jswalletstorageprovider_free: (a: number, b: number) => void;
|
|
119
302
|
export const jswalletstorageprovider_new: (a: any, b: any, c: any, d: any) => number;
|
|
120
303
|
export const __wbg_jsswapstorageprovider_free: (a: number, b: number) => void;
|
|
121
304
|
export const jsswapstorageprovider_new: (a: any, b: any, c: any, d: any, e: any) => number;
|
|
122
|
-
export const
|
|
123
|
-
export const
|
|
124
|
-
export const getLogLevel: () => [number, number];
|
|
125
|
-
export const __wbg_tokenid_free: (a: number, b: number) => void;
|
|
126
|
-
export const tokenid_toString: (a: number) => [number, number];
|
|
127
|
-
export const tokenid_fromString: (a: number, b: number) => [number, number, number];
|
|
128
|
-
export const __wbg_version_free: (a: number, b: number) => void;
|
|
129
|
-
export const __wbg_get_version_tag: (a: number) => [number, number];
|
|
130
|
-
export const __wbg_set_version_tag: (a: number, b: number, c: number) => void;
|
|
131
|
-
export const __wbg_get_version_commitHash: (a: number) => [number, number];
|
|
132
|
-
export const __wbg_set_version_commitHash: (a: number, b: number, c: number) => void;
|
|
305
|
+
export const __wbg_jsvtxoswapstorageprovider_free: (a: number, b: number) => void;
|
|
306
|
+
export const jsvtxoswapstorageprovider_new: (a: any, b: any, c: any, d: any, e: any) => number;
|
|
133
307
|
export const __wbg_swapparams_free: (a: number, b: number) => void;
|
|
134
308
|
export const __wbg_get_swapparams_own_sk: (a: number) => [number, number];
|
|
135
309
|
export const __wbg_set_swapparams_own_sk: (a: number, b: number, c: number) => void;
|
|
@@ -150,6 +324,26 @@ export const __wbg_get_vhtlcamounts_spent: (a: number) => bigint;
|
|
|
150
324
|
export const __wbg_set_vhtlcamounts_spent: (a: number, b: bigint) => void;
|
|
151
325
|
export const __wbg_get_vhtlcamounts_recoverable: (a: number) => bigint;
|
|
152
326
|
export const __wbg_set_vhtlcamounts_recoverable: (a: number, b: bigint) => void;
|
|
327
|
+
export const initialize: () => void;
|
|
328
|
+
export const setLogLevel: (a: number, b: number) => [number, number];
|
|
329
|
+
export const getLogLevel: () => [number, number];
|
|
330
|
+
export const __wbg_tokenid_free: (a: number, b: number) => void;
|
|
331
|
+
export const tokenid_btcLightning: () => number;
|
|
332
|
+
export const tokenid_btcOnchain: () => number;
|
|
333
|
+
export const tokenid_btcArkade: () => number;
|
|
334
|
+
export const tokenid_toString: (a: number) => [number, number];
|
|
335
|
+
export const tokenid_fromString: (a: number, b: number) => [number, number, number];
|
|
336
|
+
export const tokenid_equals: (a: number, b: number) => number;
|
|
337
|
+
export const tokenid_isArkade: (a: number) => number;
|
|
338
|
+
export const tokenid_isLightning: (a: number) => number;
|
|
339
|
+
export const tokenid_isBtcOnchain: (a: number) => number;
|
|
340
|
+
export const tokenid_isBtc: (a: number) => number;
|
|
341
|
+
export const tokenid_isEvmToken: (a: number) => number;
|
|
342
|
+
export const __wbg_version_free: (a: number, b: number) => void;
|
|
343
|
+
export const __wbg_get_version_tag: (a: number) => [number, number];
|
|
344
|
+
export const __wbg_set_version_tag: (a: number, b: number, c: number) => void;
|
|
345
|
+
export const __wbg_get_version_commitHash: (a: number) => [number, number];
|
|
346
|
+
export const __wbg_set_version_commitHash: (a: number, b: number, c: number) => void;
|
|
153
347
|
export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
154
348
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
155
349
|
export const intounderlyingsink_close: (a: number) => any;
|