@lendasat/lendaswap-sdk 0.1.3 → 0.1.4

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.
Binary file
@@ -0,0 +1,185 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_tokeninfo_free: (a: number, b: number) => void;
5
+ export const __wbg_get_tokeninfo_tokenId: (a: number) => [number, number];
6
+ export const __wbg_set_tokeninfo_tokenId: (a: number, b: number, c: number) => void;
7
+ export const __wbg_get_tokeninfo_symbol: (a: number) => [number, number];
8
+ export const __wbg_set_tokeninfo_symbol: (a: number, b: number, c: number) => void;
9
+ export const __wbg_get_tokeninfo_chain: (a: number) => number;
10
+ export const __wbg_set_tokeninfo_chain: (a: number, b: number) => void;
11
+ export const __wbg_get_tokeninfo_name: (a: number) => [number, number];
12
+ export const __wbg_set_tokeninfo_name: (a: number, b: number, c: number) => void;
13
+ export const __wbg_get_tokeninfo_decimals: (a: number) => number;
14
+ export const __wbg_set_tokeninfo_decimals: (a: number, b: number) => void;
15
+ export const __wbg_assetpair_free: (a: number, b: number) => void;
16
+ export const __wbg_get_assetpair_source: (a: number) => number;
17
+ export const __wbg_set_assetpair_source: (a: number, b: number) => void;
18
+ export const __wbg_get_assetpair_target: (a: number) => number;
19
+ export const __wbg_set_assetpair_target: (a: number, b: number) => void;
20
+ export const __wbg_quoteresponse_free: (a: number, b: number) => void;
21
+ export const __wbg_get_quoteresponse_exchangeRate: (a: number) => [number, number];
22
+ export const __wbg_set_quoteresponse_exchangeRate: (a: number, b: number, c: number) => void;
23
+ export const __wbg_get_quoteresponse_protocolFeeRate: (a: number) => number;
24
+ export const __wbg_set_quoteresponse_protocolFeeRate: (a: number, b: number) => void;
25
+ export const __wbg_get_quoteresponse_minAmount: (a: number) => bigint;
26
+ export const __wbg_set_quoteresponse_minAmount: (a: number, b: bigint) => void;
27
+ export const __wbg_get_quoteresponse_maxAmount: (a: number) => bigint;
28
+ export const __wbg_set_quoteresponse_maxAmount: (a: number, b: bigint) => void;
29
+ export const __wbg_estimatevtxoswapresponse_free: (a: number, b: number) => void;
30
+ export const __wbg_get_estimatevtxoswapresponse_feeSats: (a: number) => bigint;
31
+ export const __wbg_set_estimatevtxoswapresponse_feeSats: (a: number, b: bigint) => void;
32
+ export const __wbg_get_estimatevtxoswapresponse_totalInputSats: (a: number) => bigint;
33
+ export const __wbg_set_estimatevtxoswapresponse_totalInputSats: (a: number, b: bigint) => void;
34
+ export const __wbg_get_estimatevtxoswapresponse_outputSats: (a: number) => bigint;
35
+ export const __wbg_set_estimatevtxoswapresponse_outputSats: (a: number, b: bigint) => void;
36
+ export const __wbg_get_estimatevtxoswapresponse_vtxoCount: (a: number) => number;
37
+ export const __wbg_set_estimatevtxoswapresponse_vtxoCount: (a: number, b: number) => void;
38
+ export const __wbg_vtxoswapresponse_free: (a: number, b: number) => void;
39
+ export const __wbg_get_vtxoswapresponse_id: (a: number) => [number, number];
40
+ export const __wbg_set_vtxoswapresponse_id: (a: number, b: number, c: number) => void;
41
+ export const __wbg_get_vtxoswapresponse_status: (a: number) => [number, number];
42
+ export const __wbg_set_vtxoswapresponse_status: (a: number, b: number, c: number) => void;
43
+ export const __wbg_get_vtxoswapresponse_createdAt: (a: number) => [number, number];
44
+ export const __wbg_set_vtxoswapresponse_createdAt: (a: number, b: number, c: number) => void;
45
+ export const __wbg_get_vtxoswapresponse_clientVhtlcAddress: (a: number) => [number, number];
46
+ export const __wbg_set_vtxoswapresponse_clientVhtlcAddress: (a: number, b: number, c: number) => void;
47
+ export const __wbg_get_vtxoswapresponse_clientPk: (a: number) => [number, number];
48
+ export const __wbg_set_vtxoswapresponse_clientPk: (a: number, b: number, c: number) => void;
49
+ export const __wbg_get_vtxoswapresponse_serverVhtlcAddress: (a: number) => [number, number];
50
+ export const __wbg_set_vtxoswapresponse_serverVhtlcAddress: (a: number, b: number, c: number) => void;
51
+ export const __wbg_get_vtxoswapresponse_serverFundAmountSats: (a: number) => bigint;
52
+ export const __wbg_set_vtxoswapresponse_serverFundAmountSats: (a: number, b: bigint) => void;
53
+ export const __wbg_get_vtxoswapresponse_serverPk: (a: number) => [number, number];
54
+ export const __wbg_set_vtxoswapresponse_serverPk: (a: number, b: number, c: number) => void;
55
+ export const __wbg_get_vtxoswapresponse_serverLocktime: (a: number) => bigint;
56
+ export const __wbg_set_vtxoswapresponse_serverLocktime: (a: number, b: bigint) => void;
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;
69
+ export const __wbg_get_vtxoswapresponse_network: (a: number) => [number, number];
70
+ export const __wbg_set_vtxoswapresponse_network: (a: number, b: number, c: number) => void;
71
+ export const __wbg_createvtxoswapresult_free: (a: number, b: number) => void;
72
+ export const __wbg_get_createvtxoswapresult_response: (a: number) => number;
73
+ export const __wbg_set_createvtxoswapresult_response: (a: number, b: number) => void;
74
+ export const __wbg_get_createvtxoswapresult_swapParams: (a: number) => number;
75
+ export const __wbg_set_createvtxoswapresult_swapParams: (a: number, b: number) => void;
76
+ 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];
78
+ export const client_init: (a: number, b: number, c: number) => any;
79
+ 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
+ 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;
81
+ export const client_createEvmToLightningSwap: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
82
+ export const client_getAssetPairs: (a: number) => any;
83
+ export const client_getTokens: (a: number) => any;
84
+ export const client_getQuote: (a: number, b: number, c: number, d: number, e: number, f: bigint) => any;
85
+ export const client_getSwap: (a: number, b: number, c: number) => any;
86
+ export const client_listAll: (a: number) => any;
87
+ export const client_claimGelato: (a: number, b: number, c: number, d: number, e: number) => any;
88
+ export const client_amountsForSwap: (a: number, b: number, c: number) => any;
89
+ export const client_claimVhtlc: (a: number, b: number, c: number) => any;
90
+ export const client_refundVhtlc: (a: number, b: number, c: number, d: number, e: number) => any;
91
+ export const client_getVersion: (a: number) => any;
92
+ export const client_recoverSwaps: (a: number) => any;
93
+ export const client_getMnemonic: (a: number) => any;
94
+ export const client_getUserIdXpub: (a: number) => any;
95
+ export const client_clearSwapStorage: (a: number) => any;
96
+ export const client_deleteSwap: (a: number, b: number, c: number) => any;
97
+ export const client_estimateVtxoSwap: (a: number, b: number, c: number) => any;
98
+ export const client_createVtxoSwap: (a: number, b: number, c: number) => any;
99
+ export const client_getVtxoSwap: (a: number, b: number, c: number) => any;
100
+ export const client_claimVtxoSwap: (a: number, b: number, c: number, d: number, e: number) => any;
101
+ export const client_refundVtxoSwap: (a: number, b: number, c: number, d: number, e: number) => any;
102
+ export const __wbg_set_quoteresponse_networkFee: (a: number, b: bigint) => void;
103
+ export const __wbg_set_quoteresponse_protocolFee: (a: number, b: bigint) => void;
104
+ export const __wbg_set_vtxoswapresponse_clientFundAmountSats: (a: number, b: bigint) => void;
105
+ export const __wbg_set_vtxoswapresponse_clientLocktime: (a: number, b: bigint) => void;
106
+ export const __wbg_set_vtxoswapresponse_clientUnilateralClaimDelay: (a: number, b: bigint) => void;
107
+ export const __wbg_set_vtxoswapresponse_clientUnilateralRefundDelay: (a: number, b: bigint) => void;
108
+ export const __wbg_set_vtxoswapresponse_clientUnilateralRefundWithoutReceiverDelay: (a: number, b: bigint) => void;
109
+ export const __wbg_get_quoteresponse_networkFee: (a: number) => bigint;
110
+ export const __wbg_get_quoteresponse_protocolFee: (a: number) => bigint;
111
+ export const __wbg_get_vtxoswapresponse_clientFundAmountSats: (a: number) => bigint;
112
+ export const __wbg_get_vtxoswapresponse_clientLocktime: (a: number) => bigint;
113
+ export const __wbg_get_vtxoswapresponse_clientUnilateralClaimDelay: (a: number) => bigint;
114
+ export const __wbg_get_vtxoswapresponse_clientUnilateralRefundDelay: (a: number) => bigint;
115
+ export const __wbg_get_vtxoswapresponse_clientUnilateralRefundWithoutReceiverDelay: (a: number) => bigint;
116
+ export const __wbg_jswalletstorageprovider_free: (a: number, b: number) => void;
117
+ export const jswalletstorageprovider_new: (a: any, b: any, c: any, d: any) => number;
118
+ export const __wbg_jsswapstorageprovider_free: (a: number, b: number) => void;
119
+ export const jsswapstorageprovider_new: (a: any, b: any, c: any, d: any, e: any) => number;
120
+ export const initialize: () => void;
121
+ export const setLogLevel: (a: number, b: number) => [number, number];
122
+ export const getLogLevel: () => [number, number];
123
+ export const __wbg_tokenid_free: (a: number, b: number) => void;
124
+ export const tokenid_toString: (a: number) => [number, number];
125
+ export const tokenid_fromString: (a: number, b: number) => [number, number, number];
126
+ export const __wbg_version_free: (a: number, b: number) => void;
127
+ export const __wbg_get_version_tag: (a: number) => [number, number];
128
+ export const __wbg_set_version_tag: (a: number, b: number, c: number) => void;
129
+ export const __wbg_get_version_commitHash: (a: number) => [number, number];
130
+ export const __wbg_set_version_commitHash: (a: number, b: number, c: number) => void;
131
+ export const __wbg_swapparams_free: (a: number, b: number) => void;
132
+ export const __wbg_get_swapparams_own_sk: (a: number) => [number, number];
133
+ export const __wbg_set_swapparams_own_sk: (a: number, b: number, c: number) => void;
134
+ export const __wbg_get_swapparams_own_pk: (a: number) => [number, number];
135
+ export const __wbg_set_swapparams_own_pk: (a: number, b: number, c: number) => void;
136
+ export const __wbg_get_swapparams_preimage: (a: number) => [number, number];
137
+ export const __wbg_set_swapparams_preimage: (a: number, b: number, c: number) => void;
138
+ export const __wbg_get_swapparams_preimage_hash: (a: number) => [number, number];
139
+ export const __wbg_set_swapparams_preimage_hash: (a: number, b: number, c: number) => void;
140
+ export const __wbg_get_swapparams_user_id: (a: number) => [number, number];
141
+ export const __wbg_set_swapparams_user_id: (a: number, b: number, c: number) => void;
142
+ export const __wbg_get_swapparams_key_index: (a: number) => number;
143
+ export const __wbg_set_swapparams_key_index: (a: number, b: number) => void;
144
+ export const __wbg_vhtlcamounts_free: (a: number, b: number) => void;
145
+ export const __wbg_get_vhtlcamounts_spendable: (a: number) => bigint;
146
+ export const __wbg_set_vhtlcamounts_spendable: (a: number, b: bigint) => void;
147
+ export const __wbg_get_vhtlcamounts_spent: (a: number) => bigint;
148
+ export const __wbg_set_vhtlcamounts_spent: (a: number, b: bigint) => void;
149
+ export const __wbg_get_vhtlcamounts_recoverable: (a: number) => bigint;
150
+ export const __wbg_set_vhtlcamounts_recoverable: (a: number, b: bigint) => void;
151
+ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
152
+ export const intounderlyingsink_write: (a: number, b: any) => any;
153
+ export const intounderlyingsink_close: (a: number) => any;
154
+ export const intounderlyingsink_abort: (a: number, b: any) => any;
155
+ export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
156
+ export const intounderlyingsource_pull: (a: number, b: any) => any;
157
+ export const intounderlyingsource_cancel: (a: number) => void;
158
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
159
+ export const intounderlyingbytesource_type: (a: number) => number;
160
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
161
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
162
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
163
+ export const intounderlyingbytesource_cancel: (a: number) => void;
164
+ export const rustsecp256k1_v0_11_context_create: (a: number) => number;
165
+ export const rustsecp256k1_v0_11_context_destroy: (a: number) => void;
166
+ export const rustsecp256k1_v0_11_default_illegal_callback_fn: (a: number, b: number) => void;
167
+ export const rustsecp256k1_v0_11_default_error_callback_fn: (a: number, b: number) => void;
168
+ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
169
+ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
170
+ export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
171
+ export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
172
+ export const wasm_bindgen__convert__closures_____invoke__h49d21def8d7e8715: (a: number, b: number) => void;
173
+ export const wasm_bindgen__closure__destroy__h19250ab695821211: (a: number, b: number) => void;
174
+ export const wasm_bindgen__convert__closures_____invoke__hf86cb6f5b134f7f7: (a: number, b: number, c: any) => void;
175
+ export const wasm_bindgen__closure__destroy__h5b1ee57da9b2ce1f: (a: number, b: number) => void;
176
+ export const wasm_bindgen__convert__closures_____invoke__h68e6792a5299b78b: (a: number, b: number, c: any, d: any) => void;
177
+ export const __wbindgen_malloc: (a: number, b: number) => number;
178
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
179
+ export const __wbindgen_exn_store: (a: number) => void;
180
+ export const __externref_table_alloc: () => number;
181
+ export const __wbindgen_externrefs: WebAssembly.Table;
182
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
183
+ export const __externref_drop_slice: (a: number, b: number) => void;
184
+ export const __externref_table_dealloc: (a: number) => void;
185
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "lendaswap-wasm-sdk",
3
+ "type": "module",
4
+ "description": "Lendaswap Client SDK - WASM bindings",
5
+ "version": "0.1.0",
6
+ "license": "MIT",
7
+ "files": [
8
+ "lendaswap_wasm_sdk_bg.wasm",
9
+ "lendaswap_wasm_sdk.js",
10
+ "lendaswap_wasm_sdk.d.ts"
11
+ ],
12
+ "main": "lendaswap_wasm_sdk.js",
13
+ "types": "lendaswap_wasm_sdk.d.ts",
14
+ "sideEffects": [
15
+ "./snippets/*"
16
+ ]
17
+ }