@swapkit/sdk 4.0.1 → 4.0.2
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/index.cjs +2 -2
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.cjs.map +3 -3
- package/dist/plugins.js +2 -2
- package/dist/plugins.js.map +3 -3
- package/dist/types/index.d.ts +660 -784
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +2 -2
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +13 -29
package/dist/types/index.d.ts
CHANGED
|
@@ -23,6 +23,13 @@ import { xamanWallet } from "@swapkit/wallets/xaman";
|
|
|
23
23
|
export * from "@swapkit/core";
|
|
24
24
|
export * from "@swapkit/helpers";
|
|
25
25
|
export * from "@swapkit/helpers/api";
|
|
26
|
+
export * from "@swapkit/plugins";
|
|
27
|
+
export * from "@swapkit/plugins/chainflip";
|
|
28
|
+
export * from "@swapkit/plugins/evm";
|
|
29
|
+
export * from "@swapkit/plugins/near";
|
|
30
|
+
export * from "@swapkit/plugins/radix";
|
|
31
|
+
export * from "@swapkit/plugins/solana";
|
|
32
|
+
export * from "@swapkit/plugins/thorchain";
|
|
26
33
|
export * from "@swapkit/toolboxes";
|
|
27
34
|
export * from "@swapkit/toolboxes/cosmos";
|
|
28
35
|
export * from "@swapkit/toolboxes/evm";
|
|
@@ -30,28 +37,21 @@ export * from "@swapkit/toolboxes/radix";
|
|
|
30
37
|
export * from "@swapkit/toolboxes/solana";
|
|
31
38
|
export * from "@swapkit/toolboxes/substrate";
|
|
32
39
|
export * from "@swapkit/toolboxes/utxo";
|
|
33
|
-
export * from "@swapkit/plugins";
|
|
34
|
-
export * from "@swapkit/plugins/chainflip";
|
|
35
|
-
export * from "@swapkit/plugins/evm";
|
|
36
|
-
export * from "@swapkit/plugins/radix";
|
|
37
|
-
export * from "@swapkit/plugins/thorchain";
|
|
38
|
-
export * from "@swapkit/plugins/solana";
|
|
39
|
-
export * from "@swapkit/plugins/near";
|
|
40
40
|
export * from "@swapkit/wallets";
|
|
41
41
|
export { bitgetWallet, coinbaseWallet, ctrlWallet, evmWallet, exodusWallet, keepkeyWallet, keepkeyBexWallet, keplrWallet, keystoreWallet, ledgerWallet, okxWallet, onekeyWallet, phantomWallet, polkadotWallet, radixWallet, talismanWallet, trezorWallet, tronlinkWallet, vultisigWallet, walletconnectWallet, xamanWallet, };
|
|
42
42
|
export declare const defaultPlugins: {
|
|
43
43
|
near: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
44
44
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
45
45
|
} & {
|
|
46
|
-
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/server").QuoteResponseRoute>): Promise<string>;
|
|
47
46
|
nearNames: {
|
|
48
|
-
resolve(name: string): Promise<string | null>;
|
|
49
|
-
isAvailable(name: string): Promise<boolean>;
|
|
50
47
|
getInfo(name: string): Promise<import("@swapkit/plugins/near").NearAccountInfo | null>;
|
|
48
|
+
isAvailable(name: string): Promise<boolean>;
|
|
51
49
|
lookupNames(accountId: string): Promise<string[]>;
|
|
52
50
|
register(params: import("@swapkit/plugins/near").NearNameRegistrationParams): Promise<string>;
|
|
51
|
+
resolve(name: string): Promise<string | null>;
|
|
53
52
|
transfer(name: string, newOwner: string): Promise<string>;
|
|
54
53
|
};
|
|
54
|
+
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/server").QuoteResponseRoute>): Promise<string>;
|
|
55
55
|
};
|
|
56
56
|
solana: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
57
57
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
@@ -61,22 +61,26 @@ export declare const defaultPlugins: {
|
|
|
61
61
|
radix: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
62
62
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
63
63
|
} & {
|
|
64
|
-
swap: ({ route: { tx, sellAmount, sellAsset }
|
|
64
|
+
swap: ({ route: { tx, sellAmount, sellAsset } }: import("@swapkit/helpers").SwapParams<"radix", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
65
65
|
};
|
|
66
66
|
thorchain: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
67
67
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
68
68
|
} & {
|
|
69
69
|
addLiquidity: ({ baseAssetValue, assetValue, baseAssetAddr, assetAddr, isPendingSymmAsset, mode, }: import("@swapkit/plugins").AddLiquidityParams) => Promise<{
|
|
70
|
-
baseAssetTx: string | undefined;
|
|
71
70
|
assetTx: string | undefined;
|
|
71
|
+
baseAssetTx: string | undefined;
|
|
72
72
|
}>;
|
|
73
|
-
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric
|
|
73
|
+
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric }: import("@swapkit/plugins").AddLiquidityPartParams) => Promise<string>;
|
|
74
74
|
approveAssetValue: ({ assetValue }: {
|
|
75
75
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
76
76
|
}) => Promise<string | boolean | Promise<string>>;
|
|
77
|
+
claimTcy: ({ chain, thorAddress }: {
|
|
78
|
+
chain: import("@swapkit/helpers").Chain;
|
|
79
|
+
thorAddress: string;
|
|
80
|
+
}) => Promise<string>;
|
|
77
81
|
createLiquidity: ({ baseAssetValue, assetValue }: import("@swapkit/plugins").CreateLiquidityParams) => Promise<{
|
|
78
|
-
baseAssetTx: string | undefined;
|
|
79
82
|
assetTx: string | undefined;
|
|
83
|
+
baseAssetTx: string | undefined;
|
|
80
84
|
}>;
|
|
81
85
|
deposit: ({ assetValue, recipient, router, ...rest }: import("@swapkit/plugins").CoreTxParams & {
|
|
82
86
|
router?: string;
|
|
@@ -98,10 +102,6 @@ export declare const defaultPlugins: {
|
|
|
98
102
|
name: string;
|
|
99
103
|
ownerAddress: string;
|
|
100
104
|
}) => Promise<string>;
|
|
101
|
-
claimTcy: ({ chain, thorAddress }: {
|
|
102
|
-
chain: import("@swapkit/helpers").Chain;
|
|
103
|
-
thorAddress: string;
|
|
104
|
-
}) => Promise<string>;
|
|
105
105
|
stakeTcyAction: (params: {
|
|
106
106
|
type: "unstake";
|
|
107
107
|
unstakeBps: number;
|
|
@@ -109,23 +109,27 @@ export declare const defaultPlugins: {
|
|
|
109
109
|
type: "stake";
|
|
110
110
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
111
111
|
}) => Promise<string>;
|
|
112
|
-
swap: ({ feeOptionKey, route
|
|
112
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
113
113
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
114
114
|
};
|
|
115
115
|
mayachain: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
116
116
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
117
117
|
} & {
|
|
118
118
|
addLiquidity: ({ baseAssetValue, assetValue, baseAssetAddr, assetAddr, isPendingSymmAsset, mode, }: import("@swapkit/plugins").AddLiquidityParams) => Promise<{
|
|
119
|
-
baseAssetTx: string | undefined;
|
|
120
119
|
assetTx: string | undefined;
|
|
120
|
+
baseAssetTx: string | undefined;
|
|
121
121
|
}>;
|
|
122
|
-
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric
|
|
122
|
+
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric }: import("@swapkit/plugins").AddLiquidityPartParams) => Promise<string>;
|
|
123
123
|
approveAssetValue: ({ assetValue }: {
|
|
124
124
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
125
125
|
}) => Promise<string | boolean | Promise<string>>;
|
|
126
|
+
claimTcy: ({ chain, thorAddress }: {
|
|
127
|
+
chain: import("@swapkit/helpers").Chain;
|
|
128
|
+
thorAddress: string;
|
|
129
|
+
}) => Promise<string>;
|
|
126
130
|
createLiquidity: ({ baseAssetValue, assetValue }: import("@swapkit/plugins").CreateLiquidityParams) => Promise<{
|
|
127
|
-
baseAssetTx: string | undefined;
|
|
128
131
|
assetTx: string | undefined;
|
|
132
|
+
baseAssetTx: string | undefined;
|
|
129
133
|
}>;
|
|
130
134
|
deposit: ({ assetValue, recipient, router, ...rest }: import("@swapkit/plugins").CoreTxParams & {
|
|
131
135
|
router?: string;
|
|
@@ -147,10 +151,6 @@ export declare const defaultPlugins: {
|
|
|
147
151
|
name: string;
|
|
148
152
|
ownerAddress: string;
|
|
149
153
|
}) => Promise<string>;
|
|
150
|
-
claimTcy: ({ chain, thorAddress }: {
|
|
151
|
-
chain: import("@swapkit/helpers").Chain;
|
|
152
|
-
thorAddress: string;
|
|
153
|
-
}) => Promise<string>;
|
|
154
154
|
stakeTcyAction: (params: {
|
|
155
155
|
type: "unstake";
|
|
156
156
|
unstakeBps: number;
|
|
@@ -158,21 +158,21 @@ export declare const defaultPlugins: {
|
|
|
158
158
|
type: "stake";
|
|
159
159
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
160
160
|
}) => Promise<string>;
|
|
161
|
-
swap: ({ feeOptionKey, route
|
|
161
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
162
162
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
163
163
|
};
|
|
164
164
|
evm: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
165
165
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
166
166
|
} & {
|
|
167
|
-
approveAssetValue: ({ assetValue, spenderAddress
|
|
167
|
+
approveAssetValue: ({ assetValue, spenderAddress }: {
|
|
168
168
|
spenderAddress: string;
|
|
169
169
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
170
170
|
}) => Promise<string> | Promise<boolean>;
|
|
171
|
-
isAssetValueApproved: ({ assetValue, spenderAddress
|
|
171
|
+
isAssetValueApproved: ({ assetValue, spenderAddress }: {
|
|
172
172
|
spenderAddress: string;
|
|
173
173
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
174
174
|
}) => Promise<string> | Promise<boolean>;
|
|
175
|
-
swap: ({ route: { tx, sellAsset }, feeOptionKey
|
|
175
|
+
swap: ({ route: { tx, sellAsset }, feeOptionKey }: import("@swapkit/helpers").SwapParams<"evm", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
176
176
|
};
|
|
177
177
|
chainflip: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
178
178
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
@@ -209,7 +209,7 @@ export declare const defaultWallets: {
|
|
|
209
209
|
connectWallet: (connectParams: {
|
|
210
210
|
addChain: import("@swapkit/helpers").AddChainType;
|
|
211
211
|
}) => (chains: import("@swapkit/helpers").Chain[], derivationPath: import("@swapkit/helpers").DerivationPathArray) => Promise<boolean>;
|
|
212
|
-
supportedChains: (import("@swapkit/helpers").Chain.Arbitrum | import("@swapkit/helpers").Chain.Aurora | import("@swapkit/helpers").Chain.Avalanche | import("@swapkit/helpers").Chain.Base | import("@swapkit/helpers").Chain.BinanceSmartChain | import("@swapkit/helpers").Chain.Bitcoin | import("@swapkit/helpers").Chain.BitcoinCash | import("@swapkit/helpers").Chain.Dash | import("@swapkit/helpers").Chain.Dogecoin | import("@swapkit/helpers").Chain.Ethereum | import("@swapkit/helpers").Chain.Gnosis | import("@swapkit/helpers").Chain.Litecoin | import("@swapkit/helpers").Chain.Optimism | import("@swapkit/helpers").Chain.Polygon)[];
|
|
212
|
+
supportedChains: (import("@swapkit/helpers").Chain.Arbitrum | import("@swapkit/helpers").Chain.Aurora | import("@swapkit/helpers").Chain.Avalanche | import("@swapkit/helpers").Chain.Base | import("@swapkit/helpers").Chain.BinanceSmartChain | import("@swapkit/helpers").Chain.Bitcoin | import("@swapkit/helpers").Chain.BitcoinCash | import("@swapkit/helpers").Chain.Dash | import("@swapkit/helpers").Chain.Dogecoin | import("@swapkit/helpers").Chain.Ethereum | import("@swapkit/helpers").Chain.Gnosis | import("@swapkit/helpers").Chain.Litecoin | import("@swapkit/helpers").Chain.Optimism | import("@swapkit/helpers").Chain.Polygon | import("@swapkit/helpers").Chain.Zcash)[];
|
|
213
213
|
};
|
|
214
214
|
connectTalisman: {
|
|
215
215
|
connectWallet: (connectParams: {
|
|
@@ -251,7 +251,7 @@ export declare const defaultWallets: {
|
|
|
251
251
|
connectWallet: (connectParams: {
|
|
252
252
|
addChain: import("@swapkit/helpers").AddChainType;
|
|
253
253
|
}) => (chains: import("@swapkit/helpers").Chain[], derivationPath?: import("@swapkit/helpers").DerivationPathArray | undefined) => Promise<boolean>;
|
|
254
|
-
supportedChains: (import("@swapkit/helpers").Chain.Arbitrum | import("@swapkit/helpers").Chain.Aurora | import("@swapkit/helpers").Chain.Avalanche | import("@swapkit/helpers").Chain.Base | import("@swapkit/helpers").Chain.BinanceSmartChain | import("@swapkit/helpers").Chain.Bitcoin | import("@swapkit/helpers").Chain.BitcoinCash | import("@swapkit/helpers").Chain.Cosmos | import("@swapkit/helpers").Chain.Dash | import("@swapkit/helpers").Chain.Dogecoin | import("@swapkit/helpers").Chain.Ethereum | import("@swapkit/helpers").Chain.Gnosis | import("@swapkit/helpers").Chain.Litecoin | import("@swapkit/helpers").Chain.Near | import("@swapkit/helpers").Chain.Optimism | import("@swapkit/helpers").Chain.Polygon | import("@swapkit/helpers").Chain.Ripple | import("@swapkit/helpers").Chain.THORChain | import("@swapkit/helpers").Chain.Tron)[];
|
|
254
|
+
supportedChains: (import("@swapkit/helpers").Chain.Arbitrum | import("@swapkit/helpers").Chain.Aurora | import("@swapkit/helpers").Chain.Avalanche | import("@swapkit/helpers").Chain.Base | import("@swapkit/helpers").Chain.BinanceSmartChain | import("@swapkit/helpers").Chain.Bitcoin | import("@swapkit/helpers").Chain.BitcoinCash | import("@swapkit/helpers").Chain.Cosmos | import("@swapkit/helpers").Chain.Dash | import("@swapkit/helpers").Chain.Dogecoin | import("@swapkit/helpers").Chain.Ethereum | import("@swapkit/helpers").Chain.Gnosis | import("@swapkit/helpers").Chain.Litecoin | import("@swapkit/helpers").Chain.Near | import("@swapkit/helpers").Chain.Optimism | import("@swapkit/helpers").Chain.Polygon | import("@swapkit/helpers").Chain.Ripple | import("@swapkit/helpers").Chain.THORChain | import("@swapkit/helpers").Chain.Tron | import("@swapkit/helpers").Chain.Zcash)[];
|
|
255
255
|
};
|
|
256
256
|
connectKeystore: {
|
|
257
257
|
connectWallet: (connectParams: {
|
|
@@ -342,15 +342,15 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
342
342
|
near: {
|
|
343
343
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
344
344
|
} & {
|
|
345
|
-
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/server").QuoteResponseRoute>): Promise<string>;
|
|
346
345
|
nearNames: {
|
|
347
|
-
resolve(name: string): Promise<string | null>;
|
|
348
|
-
isAvailable(name: string): Promise<boolean>;
|
|
349
346
|
getInfo(name: string): Promise<import("@swapkit/plugins/near").NearAccountInfo | null>;
|
|
347
|
+
isAvailable(name: string): Promise<boolean>;
|
|
350
348
|
lookupNames(accountId: string): Promise<string[]>;
|
|
351
349
|
register(params: import("@swapkit/plugins/near").NearNameRegistrationParams): Promise<string>;
|
|
350
|
+
resolve(name: string): Promise<string | null>;
|
|
352
351
|
transfer(name: string, newOwner: string): Promise<string>;
|
|
353
352
|
};
|
|
353
|
+
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/server").QuoteResponseRoute>): Promise<string>;
|
|
354
354
|
};
|
|
355
355
|
solana: {
|
|
356
356
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
@@ -360,22 +360,26 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
360
360
|
radix: {
|
|
361
361
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
362
362
|
} & {
|
|
363
|
-
swap: ({ route: { tx, sellAmount, sellAsset }
|
|
363
|
+
swap: ({ route: { tx, sellAmount, sellAsset } }: import("@swapkit/helpers").SwapParams<"radix", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
364
364
|
};
|
|
365
365
|
thorchain: {
|
|
366
366
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
367
367
|
} & {
|
|
368
368
|
addLiquidity: ({ baseAssetValue, assetValue, baseAssetAddr, assetAddr, isPendingSymmAsset, mode, }: import("@swapkit/plugins").AddLiquidityParams) => Promise<{
|
|
369
|
-
baseAssetTx: string | undefined;
|
|
370
369
|
assetTx: string | undefined;
|
|
370
|
+
baseAssetTx: string | undefined;
|
|
371
371
|
}>;
|
|
372
|
-
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric
|
|
372
|
+
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric }: import("@swapkit/plugins").AddLiquidityPartParams) => Promise<string>;
|
|
373
373
|
approveAssetValue: ({ assetValue }: {
|
|
374
374
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
375
375
|
}) => Promise<string | boolean | Promise<string>>;
|
|
376
|
+
claimTcy: ({ chain, thorAddress }: {
|
|
377
|
+
chain: import("@swapkit/helpers").Chain;
|
|
378
|
+
thorAddress: string;
|
|
379
|
+
}) => Promise<string>;
|
|
376
380
|
createLiquidity: ({ baseAssetValue, assetValue }: import("@swapkit/plugins").CreateLiquidityParams) => Promise<{
|
|
377
|
-
baseAssetTx: string | undefined;
|
|
378
381
|
assetTx: string | undefined;
|
|
382
|
+
baseAssetTx: string | undefined;
|
|
379
383
|
}>;
|
|
380
384
|
deposit: ({ assetValue, recipient, router, ...rest }: import("@swapkit/plugins").CoreTxParams & {
|
|
381
385
|
router?: string;
|
|
@@ -397,10 +401,6 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
397
401
|
name: string;
|
|
398
402
|
ownerAddress: string;
|
|
399
403
|
}) => Promise<string>;
|
|
400
|
-
claimTcy: ({ chain, thorAddress }: {
|
|
401
|
-
chain: import("@swapkit/helpers").Chain;
|
|
402
|
-
thorAddress: string;
|
|
403
|
-
}) => Promise<string>;
|
|
404
404
|
stakeTcyAction: (params: {
|
|
405
405
|
type: "unstake";
|
|
406
406
|
unstakeBps: number;
|
|
@@ -408,23 +408,27 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
408
408
|
type: "stake";
|
|
409
409
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
410
410
|
}) => Promise<string>;
|
|
411
|
-
swap: ({ feeOptionKey, route
|
|
411
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
412
412
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
413
413
|
};
|
|
414
414
|
mayachain: {
|
|
415
415
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
416
416
|
} & {
|
|
417
417
|
addLiquidity: ({ baseAssetValue, assetValue, baseAssetAddr, assetAddr, isPendingSymmAsset, mode, }: import("@swapkit/plugins").AddLiquidityParams) => Promise<{
|
|
418
|
-
baseAssetTx: string | undefined;
|
|
419
418
|
assetTx: string | undefined;
|
|
419
|
+
baseAssetTx: string | undefined;
|
|
420
420
|
}>;
|
|
421
|
-
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric
|
|
421
|
+
addLiquidityPart: ({ assetValue, poolAddress, address, symmetric }: import("@swapkit/plugins").AddLiquidityPartParams) => Promise<string>;
|
|
422
422
|
approveAssetValue: ({ assetValue }: {
|
|
423
423
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
424
424
|
}) => Promise<string | boolean | Promise<string>>;
|
|
425
|
+
claimTcy: ({ chain, thorAddress }: {
|
|
426
|
+
chain: import("@swapkit/helpers").Chain;
|
|
427
|
+
thorAddress: string;
|
|
428
|
+
}) => Promise<string>;
|
|
425
429
|
createLiquidity: ({ baseAssetValue, assetValue }: import("@swapkit/plugins").CreateLiquidityParams) => Promise<{
|
|
426
|
-
baseAssetTx: string | undefined;
|
|
427
430
|
assetTx: string | undefined;
|
|
431
|
+
baseAssetTx: string | undefined;
|
|
428
432
|
}>;
|
|
429
433
|
deposit: ({ assetValue, recipient, router, ...rest }: import("@swapkit/plugins").CoreTxParams & {
|
|
430
434
|
router?: string;
|
|
@@ -446,10 +450,6 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
446
450
|
name: string;
|
|
447
451
|
ownerAddress: string;
|
|
448
452
|
}) => Promise<string>;
|
|
449
|
-
claimTcy: ({ chain, thorAddress }: {
|
|
450
|
-
chain: import("@swapkit/helpers").Chain;
|
|
451
|
-
thorAddress: string;
|
|
452
|
-
}) => Promise<string>;
|
|
453
453
|
stakeTcyAction: (params: {
|
|
454
454
|
type: "unstake";
|
|
455
455
|
unstakeBps: number;
|
|
@@ -457,21 +457,21 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
457
457
|
type: "stake";
|
|
458
458
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
459
459
|
}) => Promise<string>;
|
|
460
|
-
swap: ({ feeOptionKey, route
|
|
460
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
461
461
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
462
462
|
};
|
|
463
463
|
evm: {
|
|
464
464
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
465
465
|
} & {
|
|
466
|
-
approveAssetValue: ({ assetValue, spenderAddress
|
|
466
|
+
approveAssetValue: ({ assetValue, spenderAddress }: {
|
|
467
467
|
spenderAddress: string;
|
|
468
468
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
469
469
|
}) => Promise<string> | Promise<boolean>;
|
|
470
|
-
isAssetValueApproved: ({ assetValue, spenderAddress
|
|
470
|
+
isAssetValueApproved: ({ assetValue, spenderAddress }: {
|
|
471
471
|
spenderAddress: string;
|
|
472
472
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
473
473
|
}) => Promise<string> | Promise<boolean>;
|
|
474
|
-
swap: ({ route: { tx, sellAsset }, feeOptionKey
|
|
474
|
+
swap: ({ route: { tx, sellAsset }, feeOptionKey }: import("@swapkit/helpers").SwapParams<"evm", import("@swapkit/server").QuoteResponseRoute>) => Promise<string>;
|
|
475
475
|
};
|
|
476
476
|
chainflip: {
|
|
477
477
|
supportedSwapkitProviders: import("@swapkit/helpers").ProviderName[];
|
|
@@ -531,6 +531,7 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
531
531
|
connectCoinbaseWallet: (chains: import("@swapkit/helpers").Chain[]) => Promise<boolean>;
|
|
532
532
|
connectBitget: (chains: import("@swapkit/helpers").Chain[]) => Promise<boolean>;
|
|
533
533
|
} & {
|
|
534
|
+
approveAssetValue: (assetValue: import("@swapkit/helpers").AssetValue, contractAddress: string) => Promise<string>;
|
|
534
535
|
disconnectAll: () => void;
|
|
535
536
|
disconnectChain: <T_1 extends import("@swapkit/helpers").Chain>(chain: T_1) => void;
|
|
536
537
|
estimateTransactionFee: <P extends "near" | "solana" | "radix" | "thorchain" | "mayachain" | "evm" | "chainflip", T_1 extends "transfer" | "approve" | "swap">({ type, feeOptionKey, params, }: {
|
|
@@ -545,134 +546,134 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
545
546
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
546
547
|
};
|
|
547
548
|
swap: import("@swapkit/helpers").GenericSwapParams<{
|
|
548
|
-
providers: import("@swapkit/helpers").ProviderName[];
|
|
549
|
-
sellAsset: string;
|
|
550
|
-
sellAmount: string;
|
|
551
549
|
buyAsset: string;
|
|
550
|
+
destinationAddress: string;
|
|
552
551
|
expectedBuyAmount: string;
|
|
553
552
|
expectedBuyAmountMaxSlippage: string;
|
|
554
|
-
sourceAddress: string;
|
|
555
|
-
destinationAddress: string;
|
|
556
553
|
fees: {
|
|
557
|
-
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
558
554
|
amount: string;
|
|
559
555
|
asset: string;
|
|
560
556
|
chain: string;
|
|
561
557
|
protocol: import("@swapkit/helpers").ProviderName;
|
|
558
|
+
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
562
559
|
}[];
|
|
563
|
-
totalSlippageBps: number;
|
|
564
560
|
legs: {
|
|
565
|
-
provider: import("@swapkit/helpers").ProviderName;
|
|
566
|
-
sellAsset: string;
|
|
567
|
-
sellAmount: string;
|
|
568
|
-
buyAsset: string;
|
|
569
561
|
buyAmount: string;
|
|
570
562
|
buyAmountMaxSlippage: string;
|
|
563
|
+
buyAsset: string;
|
|
564
|
+
provider: import("@swapkit/helpers").ProviderName;
|
|
565
|
+
sellAmount: string;
|
|
566
|
+
sellAsset: string;
|
|
571
567
|
fees?: {
|
|
572
|
-
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
573
568
|
amount: string;
|
|
574
569
|
asset: string;
|
|
575
570
|
chain: string;
|
|
576
571
|
protocol: import("@swapkit/helpers").ProviderName;
|
|
572
|
+
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
577
573
|
}[] | undefined;
|
|
578
574
|
}[];
|
|
579
|
-
warnings: {
|
|
580
|
-
code: import("@swapkit/helpers").WarningCodeEnum;
|
|
581
|
-
display: string;
|
|
582
|
-
tooltip?: string | undefined;
|
|
583
|
-
}[];
|
|
584
575
|
meta: {
|
|
585
576
|
tags: import("@swapkit/server").PriorityLabel[];
|
|
586
577
|
assets?: {
|
|
587
578
|
asset: string;
|
|
588
|
-
price: number;
|
|
589
579
|
image: string;
|
|
580
|
+
price: number;
|
|
590
581
|
}[] | undefined;
|
|
591
|
-
streamingInterval?: number | undefined;
|
|
592
582
|
maxStreamingQuantity?: number | undefined;
|
|
593
|
-
|
|
594
|
-
approvalAddress?: string | undefined;
|
|
583
|
+
streamingInterval?: number | undefined;
|
|
595
584
|
affiliate?: string | undefined;
|
|
596
585
|
affiliateFee?: string | undefined;
|
|
597
|
-
|
|
586
|
+
approvalAddress?: string | undefined;
|
|
598
587
|
chainflip?: {
|
|
599
588
|
destinationAddress: string;
|
|
600
|
-
sellAsset: {
|
|
601
|
-
chain: string;
|
|
602
|
-
asset: string;
|
|
603
|
-
};
|
|
604
589
|
buyAsset: {
|
|
590
|
+
asset: string;
|
|
605
591
|
chain: string;
|
|
592
|
+
};
|
|
593
|
+
sellAsset: {
|
|
606
594
|
asset: string;
|
|
595
|
+
chain: string;
|
|
607
596
|
};
|
|
608
|
-
channelMetadata?: {
|
|
609
|
-
cfParameters?: string | undefined;
|
|
610
|
-
gasBudget?: string | undefined;
|
|
611
|
-
message?: string | undefined;
|
|
612
|
-
} | undefined;
|
|
613
597
|
affiliateFees?: {
|
|
614
598
|
brokerAddress: string;
|
|
615
599
|
feeBps: number;
|
|
616
600
|
}[] | undefined;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
601
|
+
brokerCommissionBps?: number | undefined;
|
|
602
|
+
channelMetadata?: {
|
|
603
|
+
cfParameters?: string | undefined;
|
|
604
|
+
gasBudget?: string | undefined;
|
|
605
|
+
message?: string | undefined;
|
|
621
606
|
} | undefined;
|
|
622
607
|
dcaParameters?: {
|
|
623
608
|
chunkInterval?: number | undefined;
|
|
624
609
|
numberOfChunks?: number | undefined;
|
|
625
610
|
} | undefined;
|
|
626
|
-
brokerCommissionBps?: number | undefined;
|
|
627
611
|
maxBoostFeeBps?: number | undefined;
|
|
612
|
+
refundParameters?: {
|
|
613
|
+
minPrice?: string | undefined;
|
|
614
|
+
refundAddress?: string | undefined;
|
|
615
|
+
retryDuration?: number | undefined;
|
|
616
|
+
} | undefined;
|
|
628
617
|
} | undefined;
|
|
629
618
|
near?: {
|
|
630
619
|
destinationAddress: string;
|
|
631
|
-
sellAsset: string;
|
|
632
620
|
buyAsset: string;
|
|
633
|
-
sourceAddress: string;
|
|
634
621
|
sellAmount: string;
|
|
622
|
+
sellAsset: string;
|
|
635
623
|
slippage: number;
|
|
624
|
+
sourceAddress: string;
|
|
636
625
|
affiliateFees?: {
|
|
637
|
-
nearId: string;
|
|
638
626
|
feeBps: number;
|
|
627
|
+
nearId: string;
|
|
639
628
|
} | undefined;
|
|
640
629
|
} | undefined;
|
|
630
|
+
priceImpact?: number | undefined;
|
|
641
631
|
referrer?: string | undefined;
|
|
632
|
+
txType?: import("@swapkit/server").RouteQuoteTxType | undefined;
|
|
642
633
|
};
|
|
643
|
-
|
|
644
|
-
|
|
634
|
+
providers: import("@swapkit/helpers").ProviderName[];
|
|
635
|
+
sellAmount: string;
|
|
636
|
+
sellAsset: string;
|
|
637
|
+
sourceAddress: string;
|
|
638
|
+
totalSlippageBps: number;
|
|
639
|
+
warnings: {
|
|
640
|
+
code: import("@swapkit/helpers").WarningCodeEnum;
|
|
641
|
+
display: string;
|
|
642
|
+
tooltip?: string | undefined;
|
|
643
|
+
}[];
|
|
644
|
+
estimatedTime?: {
|
|
645
|
+
total: number;
|
|
646
|
+
inbound?: number | undefined;
|
|
647
|
+
outbound?: number | undefined;
|
|
648
|
+
swap?: number | undefined;
|
|
649
|
+
} | undefined;
|
|
645
650
|
expiration?: string | undefined;
|
|
651
|
+
inboundAddress?: string | undefined;
|
|
646
652
|
memo?: string | undefined;
|
|
647
|
-
|
|
653
|
+
targetAddress?: string | undefined;
|
|
648
654
|
tx?: string | {
|
|
649
|
-
|
|
655
|
+
data: string;
|
|
650
656
|
from: string;
|
|
657
|
+
to: string;
|
|
651
658
|
value: string;
|
|
652
|
-
data: string;
|
|
653
659
|
} | {
|
|
654
|
-
memo: string;
|
|
655
660
|
accountNumber: number;
|
|
656
|
-
sequence: number;
|
|
657
661
|
chainId: import("@swapkit/helpers").ChainId;
|
|
658
|
-
msgs: {
|
|
659
|
-
typeUrl: string;
|
|
660
|
-
value: unknown;
|
|
661
|
-
}[];
|
|
662
662
|
fee: {
|
|
663
663
|
amount: {
|
|
664
|
-
denom: string;
|
|
665
664
|
amount: string;
|
|
665
|
+
denom: string;
|
|
666
666
|
}[];
|
|
667
667
|
gas: string;
|
|
668
668
|
};
|
|
669
|
+
memo: string;
|
|
670
|
+
msgs: {
|
|
671
|
+
typeUrl: string;
|
|
672
|
+
value: unknown;
|
|
673
|
+
}[];
|
|
674
|
+
sequence: number;
|
|
669
675
|
} | undefined;
|
|
670
|
-
|
|
671
|
-
total: number;
|
|
672
|
-
inbound?: number | undefined;
|
|
673
|
-
swap?: number | undefined;
|
|
674
|
-
outbound?: number | undefined;
|
|
675
|
-
} | undefined;
|
|
676
|
+
txType?: import("@swapkit/server").RouteQuoteTxType | undefined;
|
|
676
677
|
}> & {
|
|
677
678
|
pluginName?: P | undefined;
|
|
678
679
|
} & {
|
|
@@ -684,24 +685,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
684
685
|
getAddress: <T_1 extends import("@swapkit/helpers").Chain>(chain: T_1) => string;
|
|
685
686
|
getAllWallets: () => {
|
|
686
687
|
ARB: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Arbitrum> & {
|
|
687
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
688
688
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
689
|
-
|
|
690
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
691
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
692
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
693
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
694
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
695
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
696
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
689
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
697
690
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
698
691
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
699
692
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
700
|
-
|
|
693
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
694
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
701
695
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
702
696
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
703
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
704
697
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
698
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
699
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
700
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
705
701
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
706
702
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
707
703
|
funcName?: string;
|
|
@@ -715,7 +711,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
715
711
|
maxFeePerGas?: bigint;
|
|
716
712
|
maxPriorityFeePerGas?: bigint;
|
|
717
713
|
}; }>;
|
|
718
|
-
|
|
714
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
715
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
716
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
717
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
718
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
719
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
719
720
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
720
721
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
721
722
|
}) => Promise<string>;
|
|
@@ -724,24 +725,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
724
725
|
validateAddress: (address: string) => boolean;
|
|
725
726
|
};
|
|
726
727
|
AURORA: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Aurora> & {
|
|
727
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
728
728
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
729
|
-
|
|
730
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
731
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
732
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
733
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
734
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
735
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
736
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
729
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
737
730
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
738
731
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
739
732
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
740
|
-
|
|
733
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
734
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
741
735
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
742
736
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
743
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
744
737
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
738
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
739
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
740
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
745
741
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
746
742
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
747
743
|
funcName?: string;
|
|
@@ -755,7 +751,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
755
751
|
maxFeePerGas?: bigint;
|
|
756
752
|
maxPriorityFeePerGas?: bigint;
|
|
757
753
|
}; }>;
|
|
758
|
-
|
|
754
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
755
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
756
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
757
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
758
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
759
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
759
760
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
760
761
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
761
762
|
}) => Promise<string>;
|
|
@@ -764,24 +765,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
764
765
|
validateAddress: (address: string) => boolean;
|
|
765
766
|
};
|
|
766
767
|
AVAX: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Avalanche> & {
|
|
767
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
768
768
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
769
|
-
|
|
770
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
771
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
772
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
773
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
774
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
775
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
776
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
769
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
777
770
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
778
771
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
779
772
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
780
|
-
|
|
773
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
774
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
781
775
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
782
776
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
783
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
784
777
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
778
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
779
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
780
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
785
781
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
786
782
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
787
783
|
funcName?: string;
|
|
@@ -795,7 +791,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
795
791
|
maxFeePerGas?: bigint;
|
|
796
792
|
maxPriorityFeePerGas?: bigint;
|
|
797
793
|
}; }>;
|
|
798
|
-
|
|
794
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
795
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
796
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
797
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
798
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
799
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
799
800
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
800
801
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
801
802
|
}) => Promise<string>;
|
|
@@ -804,24 +805,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
804
805
|
validateAddress: (address: string) => boolean;
|
|
805
806
|
};
|
|
806
807
|
BASE: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Base> & {
|
|
807
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
808
808
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
809
|
-
|
|
810
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
811
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
812
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
813
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
814
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
815
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
816
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
809
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
817
810
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
818
811
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
819
812
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
820
|
-
|
|
813
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
814
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
821
815
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
822
816
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
823
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
824
817
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
818
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
819
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
820
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
825
821
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
826
822
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
827
823
|
funcName?: string;
|
|
@@ -835,7 +831,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
835
831
|
maxFeePerGas?: bigint;
|
|
836
832
|
maxPriorityFeePerGas?: bigint;
|
|
837
833
|
}; }>;
|
|
838
|
-
|
|
834
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
835
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
836
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
837
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
838
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
839
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
839
840
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
840
841
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
841
842
|
}) => Promise<string>;
|
|
@@ -844,24 +845,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
844
845
|
validateAddress: (address: string) => boolean;
|
|
845
846
|
};
|
|
846
847
|
BERA: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Berachain> & {
|
|
847
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
848
848
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
849
|
-
|
|
850
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
851
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
852
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
853
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
854
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
855
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
856
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
849
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
857
850
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
858
851
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
859
852
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
860
|
-
|
|
853
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
854
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
861
855
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
862
856
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
863
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
864
857
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
858
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
859
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
860
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
865
861
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
866
862
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
867
863
|
funcName?: string;
|
|
@@ -875,7 +871,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
875
871
|
maxFeePerGas?: bigint;
|
|
876
872
|
maxPriorityFeePerGas?: bigint;
|
|
877
873
|
}; }>;
|
|
878
|
-
|
|
874
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
875
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
876
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
877
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
878
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
879
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
879
880
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
880
881
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
881
882
|
}) => Promise<string>;
|
|
@@ -884,24 +885,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
884
885
|
validateAddress: (address: string) => boolean;
|
|
885
886
|
};
|
|
886
887
|
BSC: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.BinanceSmartChain> & {
|
|
887
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
888
888
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
889
|
-
|
|
890
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
891
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
892
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
893
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
894
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
895
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
896
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
889
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
897
890
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
898
891
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
899
892
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
900
|
-
|
|
893
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
894
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
901
895
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
902
896
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
903
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
904
897
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
898
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
899
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
900
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
905
901
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
906
902
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
907
903
|
funcName?: string;
|
|
@@ -915,7 +911,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
915
911
|
maxFeePerGas?: bigint;
|
|
916
912
|
maxPriorityFeePerGas?: bigint;
|
|
917
913
|
}; }>;
|
|
918
|
-
|
|
914
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
915
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
916
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
917
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
918
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
919
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
919
920
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
920
921
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
921
922
|
}) => Promise<string>;
|
|
@@ -924,34 +925,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
924
925
|
validateAddress: (address: string) => boolean;
|
|
925
926
|
};
|
|
926
927
|
BTC: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Bitcoin> & {
|
|
927
|
-
accumulative:
|
|
928
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
929
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
930
|
-
changeAddress?: string;
|
|
931
|
-
}) => {
|
|
932
|
-
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
933
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
934
|
-
fee: number;
|
|
935
|
-
} | {
|
|
936
|
-
fee: number;
|
|
937
|
-
inputs?: undefined;
|
|
938
|
-
outputs?: undefined;
|
|
939
|
-
};
|
|
940
|
-
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
941
|
-
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
942
|
-
getAddress: () => Promise<string | undefined>;
|
|
943
|
-
validateAddress: (address: string) => boolean;
|
|
928
|
+
accumulative: typeof import("@swapkit/server").accumulative;
|
|
944
929
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
945
|
-
|
|
946
|
-
psbt: import("bitcoinjs-lib").Psbt;
|
|
947
|
-
utxos: import("@swapkit/server").UTXOType[];
|
|
948
|
-
inputs: import("@swapkit/server").UTXOType[];
|
|
949
|
-
}>;
|
|
930
|
+
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
950
931
|
createKeysForPath: (params: {
|
|
951
932
|
wif?: string;
|
|
952
933
|
phrase?: string;
|
|
953
934
|
derivationPath?: string;
|
|
954
935
|
}) => import("ecpair").ECPairInterface;
|
|
936
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
937
|
+
psbt: import("bitcoinjs-lib").Psbt;
|
|
938
|
+
utxos: import("@swapkit/server").UTXOType[];
|
|
939
|
+
inputs: import("@swapkit/server").UTXOType[];
|
|
940
|
+
}>;
|
|
941
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
942
|
+
from: string;
|
|
943
|
+
memo?: string;
|
|
944
|
+
feeRate?: number;
|
|
945
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
946
|
+
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
947
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
948
|
+
estimateTransactionFee: (params: {
|
|
949
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
950
|
+
recipient: string;
|
|
951
|
+
sender: string;
|
|
952
|
+
memo?: string;
|
|
953
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
954
|
+
feeRate?: number;
|
|
955
|
+
fetchTxHex?: boolean;
|
|
956
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
957
|
+
getAddress: () => Promise<string | undefined>;
|
|
958
|
+
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
959
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
955
960
|
getFeeRates: () => Promise<{
|
|
956
961
|
average: number;
|
|
957
962
|
fast: number;
|
|
@@ -961,47 +966,27 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
961
966
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
962
967
|
feeRate?: number;
|
|
963
968
|
}) => Promise<{
|
|
969
|
+
fee: number;
|
|
964
970
|
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
965
971
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
966
|
-
fee: number;
|
|
967
972
|
} | {
|
|
968
973
|
fee: number;
|
|
969
974
|
inputs?: undefined;
|
|
970
975
|
outputs?: undefined;
|
|
971
976
|
}>;
|
|
972
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
973
977
|
getPrivateKeyFromMnemonic: (params: {
|
|
974
978
|
phrase: string;
|
|
975
979
|
derivationPath: string;
|
|
976
980
|
}) => string;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
980
|
-
recipient: string;
|
|
981
|
-
sender: string;
|
|
982
|
-
memo?: string;
|
|
983
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
984
|
-
feeRate?: number;
|
|
985
|
-
fetchTxHex?: boolean;
|
|
986
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
987
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
988
|
-
from: string;
|
|
989
|
-
memo?: string;
|
|
990
|
-
feeRate?: number;
|
|
991
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
992
|
-
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
993
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
981
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
982
|
+
validateAddress: (address: string) => boolean;
|
|
994
983
|
};
|
|
995
984
|
BCH: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.BitcoinCash> & {
|
|
996
|
-
getAddress: () => Promise<string | undefined>;
|
|
997
985
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
998
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
999
|
-
builder: import("@swapkit/server").TransactionBuilderType;
|
|
1000
|
-
utxos: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1001
|
-
}>;
|
|
1002
986
|
buildTx: ({ assetValue, recipient, memo, feeRate, sender, setSigHashType, }: import("@swapkit/server").UTXOBuildTxParams & {
|
|
1003
987
|
setSigHashType?: boolean;
|
|
1004
988
|
}) => Promise<{
|
|
989
|
+
inputs: import("@swapkit/server").UTXOType[];
|
|
1005
990
|
psbt: import("bitcoinjs-lib").Psbt;
|
|
1006
991
|
utxos: {
|
|
1007
992
|
address: string;
|
|
@@ -1010,12 +995,16 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1010
995
|
txHex: string | undefined;
|
|
1011
996
|
value: number;
|
|
1012
997
|
witnessUtxo: {
|
|
1013
|
-
value: number;
|
|
1014
998
|
script: Buffer<ArrayBuffer>;
|
|
999
|
+
value: number;
|
|
1015
1000
|
};
|
|
1016
1001
|
}[];
|
|
1017
|
-
inputs: import("@swapkit/server").UTXOType[];
|
|
1018
1002
|
}>;
|
|
1003
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1004
|
+
builder: import("@swapkit/server").TransactionBuilderType;
|
|
1005
|
+
utxos: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1006
|
+
}>;
|
|
1007
|
+
getAddress: () => Promise<string | undefined>;
|
|
1019
1008
|
getAddressFromKeys: (keys: {
|
|
1020
1009
|
getAddress: (index?: number) => string;
|
|
1021
1010
|
}) => string;
|
|
@@ -1027,34 +1016,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1027
1016
|
}>;
|
|
1028
1017
|
stripPrefix: typeof import("@swapkit/server").stripPrefix;
|
|
1029
1018
|
stripToCashAddress: typeof import("@swapkit/server").stripToCashAddress;
|
|
1030
|
-
validateAddress: typeof import("@swapkit/server").bchValidateAddress;
|
|
1031
1019
|
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
1035
|
-
changeAddress?: string;
|
|
1036
|
-
}) => {
|
|
1037
|
-
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1038
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1039
|
-
fee: number;
|
|
1040
|
-
} | {
|
|
1041
|
-
fee: number;
|
|
1042
|
-
inputs?: undefined;
|
|
1043
|
-
outputs?: undefined;
|
|
1044
|
-
};
|
|
1020
|
+
validateAddress: typeof import("@swapkit/server").bchValidateAddress;
|
|
1021
|
+
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1045
1022
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1046
1023
|
createKeysForPath: (params: {
|
|
1047
1024
|
wif?: string;
|
|
1048
1025
|
phrase?: string;
|
|
1049
1026
|
derivationPath?: string;
|
|
1050
1027
|
}) => import("@swapkit/server").BchECPair;
|
|
1028
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1029
|
+
from: string;
|
|
1030
|
+
memo?: string;
|
|
1031
|
+
feeRate?: number;
|
|
1032
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1033
|
+
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1034
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1035
|
+
estimateTransactionFee: (params: {
|
|
1036
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1037
|
+
recipient: string;
|
|
1038
|
+
sender: string;
|
|
1039
|
+
memo?: string;
|
|
1040
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1041
|
+
feeRate?: number;
|
|
1042
|
+
fetchTxHex?: boolean;
|
|
1043
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1051
1044
|
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/server").UTXOBuildTxParams, "feeRate"> & {
|
|
1052
1045
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1053
1046
|
feeRate?: number;
|
|
1054
1047
|
}) => Promise<{
|
|
1048
|
+
fee: number;
|
|
1055
1049
|
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1056
1050
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1057
|
-
fee: number;
|
|
1058
1051
|
} | {
|
|
1059
1052
|
fee: number;
|
|
1060
1053
|
inputs?: undefined;
|
|
@@ -1064,70 +1057,31 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1064
1057
|
phrase: string;
|
|
1065
1058
|
derivationPath: string;
|
|
1066
1059
|
}) => string;
|
|
1067
|
-
estimateTransactionFee: (params: {
|
|
1068
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1069
|
-
recipient: string;
|
|
1070
|
-
sender: string;
|
|
1071
|
-
memo?: string;
|
|
1072
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1073
|
-
feeRate?: number;
|
|
1074
|
-
fetchTxHex?: boolean;
|
|
1075
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1076
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1077
|
-
from: string;
|
|
1078
|
-
memo?: string;
|
|
1079
|
-
feeRate?: number;
|
|
1080
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1081
|
-
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1082
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1083
1060
|
};
|
|
1084
1061
|
GAIA: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Cosmos> & {
|
|
1085
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1086
|
-
getAddress: () => Promise<string | undefined>;
|
|
1087
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1088
|
-
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1089
|
-
getSignerFromPhrase: ({ phrase, derivationPath, }: {
|
|
1090
|
-
phrase: string;
|
|
1091
|
-
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1092
|
-
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1093
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1094
1062
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1095
|
-
|
|
1096
|
-
getPubKey: () => Promise<string>;
|
|
1097
|
-
getFees: () => Promise<{
|
|
1098
|
-
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1099
|
-
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1100
|
-
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1101
|
-
}>;
|
|
1063
|
+
createTransaction: typeof import("@swapkit/server").cosmosCreateTransaction;
|
|
1102
1064
|
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1065
|
+
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1066
|
+
getAddress: () => Promise<string | undefined>;
|
|
1067
|
+
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1103
1068
|
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1104
1069
|
denom: string;
|
|
1105
1070
|
amount: string;
|
|
1106
1071
|
}[]>;
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
amount: {
|
|
1112
|
-
denom: string;
|
|
1113
|
-
amount: string;
|
|
1114
|
-
}[];
|
|
1115
|
-
gas: string;
|
|
1116
|
-
};
|
|
1117
|
-
memo: string;
|
|
1118
|
-
sequence: number;
|
|
1119
|
-
msgs: {
|
|
1120
|
-
typeUrl: string;
|
|
1121
|
-
value: {
|
|
1122
|
-
fromAddress: string;
|
|
1123
|
-
toAddress: string;
|
|
1124
|
-
amount: {
|
|
1125
|
-
amount: string;
|
|
1126
|
-
denom: string;
|
|
1127
|
-
}[];
|
|
1128
|
-
};
|
|
1129
|
-
}[];
|
|
1072
|
+
getFees: () => Promise<{
|
|
1073
|
+
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1074
|
+
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1075
|
+
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1130
1076
|
}>;
|
|
1077
|
+
getPubKey: () => Promise<string>;
|
|
1078
|
+
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1079
|
+
phrase: string;
|
|
1080
|
+
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1081
|
+
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1082
|
+
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1083
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1084
|
+
validateAddress: (address: string) => boolean;
|
|
1131
1085
|
verifySignature: ({ signature, message, address, }: {
|
|
1132
1086
|
signature: string;
|
|
1133
1087
|
message: string;
|
|
@@ -1135,34 +1089,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1135
1089
|
}) => Promise<boolean>;
|
|
1136
1090
|
};
|
|
1137
1091
|
DASH: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Dash> & {
|
|
1138
|
-
accumulative:
|
|
1139
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1140
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
1141
|
-
changeAddress?: string;
|
|
1142
|
-
}) => {
|
|
1143
|
-
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1144
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1145
|
-
fee: number;
|
|
1146
|
-
} | {
|
|
1147
|
-
fee: number;
|
|
1148
|
-
inputs?: undefined;
|
|
1149
|
-
outputs?: undefined;
|
|
1150
|
-
};
|
|
1151
|
-
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1152
|
-
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1153
|
-
getAddress: () => Promise<string | undefined>;
|
|
1154
|
-
validateAddress: (address: string) => boolean;
|
|
1092
|
+
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1155
1093
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
1156
|
-
|
|
1157
|
-
psbt: import("bitcoinjs-lib").Psbt;
|
|
1158
|
-
utxos: import("@swapkit/server").UTXOType[];
|
|
1159
|
-
inputs: import("@swapkit/server").UTXOType[];
|
|
1160
|
-
}>;
|
|
1094
|
+
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1161
1095
|
createKeysForPath: (params: {
|
|
1162
1096
|
wif?: string;
|
|
1163
1097
|
phrase?: string;
|
|
1164
1098
|
derivationPath?: string;
|
|
1165
1099
|
}) => import("ecpair").ECPairInterface;
|
|
1100
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1101
|
+
psbt: import("bitcoinjs-lib").Psbt;
|
|
1102
|
+
utxos: import("@swapkit/server").UTXOType[];
|
|
1103
|
+
inputs: import("@swapkit/server").UTXOType[];
|
|
1104
|
+
}>;
|
|
1105
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1106
|
+
from: string;
|
|
1107
|
+
memo?: string;
|
|
1108
|
+
feeRate?: number;
|
|
1109
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1110
|
+
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1111
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1112
|
+
estimateTransactionFee: (params: {
|
|
1113
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1114
|
+
recipient: string;
|
|
1115
|
+
sender: string;
|
|
1116
|
+
memo?: string;
|
|
1117
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1118
|
+
feeRate?: number;
|
|
1119
|
+
fetchTxHex?: boolean;
|
|
1120
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1121
|
+
getAddress: () => Promise<string | undefined>;
|
|
1122
|
+
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1123
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1166
1124
|
getFeeRates: () => Promise<{
|
|
1167
1125
|
average: number;
|
|
1168
1126
|
fast: number;
|
|
@@ -1172,20 +1130,42 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1172
1130
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1173
1131
|
feeRate?: number;
|
|
1174
1132
|
}) => Promise<{
|
|
1133
|
+
fee: number;
|
|
1175
1134
|
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1176
1135
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1177
|
-
fee: number;
|
|
1178
1136
|
} | {
|
|
1179
1137
|
fee: number;
|
|
1180
1138
|
inputs?: undefined;
|
|
1181
1139
|
outputs?: undefined;
|
|
1182
1140
|
}>;
|
|
1183
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
1184
1141
|
getPrivateKeyFromMnemonic: (params: {
|
|
1185
1142
|
phrase: string;
|
|
1186
1143
|
derivationPath: string;
|
|
1187
1144
|
}) => string;
|
|
1188
|
-
|
|
1145
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
1146
|
+
validateAddress: (address: string) => boolean;
|
|
1147
|
+
};
|
|
1148
|
+
DOGE: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Dogecoin> & {
|
|
1149
|
+
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1150
|
+
broadcastTx: (txHash: string) => Promise<string>;
|
|
1151
|
+
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1152
|
+
createKeysForPath: (params: {
|
|
1153
|
+
wif?: string;
|
|
1154
|
+
phrase?: string;
|
|
1155
|
+
derivationPath?: string;
|
|
1156
|
+
}) => import("ecpair").ECPairInterface;
|
|
1157
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1158
|
+
psbt: import("bitcoinjs-lib").Psbt;
|
|
1159
|
+
utxos: import("@swapkit/server").UTXOType[];
|
|
1160
|
+
inputs: import("@swapkit/server").UTXOType[];
|
|
1161
|
+
}>;
|
|
1162
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1163
|
+
from: string;
|
|
1164
|
+
memo?: string;
|
|
1165
|
+
feeRate?: number;
|
|
1166
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1167
|
+
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1168
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1189
1169
|
estimateTransactionFee: (params: {
|
|
1190
1170
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1191
1171
|
recipient: string;
|
|
@@ -1195,43 +1175,9 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1195
1175
|
feeRate?: number;
|
|
1196
1176
|
fetchTxHex?: boolean;
|
|
1197
1177
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1198
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1199
|
-
from: string;
|
|
1200
|
-
memo?: string;
|
|
1201
|
-
feeRate?: number;
|
|
1202
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1203
|
-
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1204
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1205
|
-
};
|
|
1206
|
-
DOGE: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Dogecoin> & {
|
|
1207
|
-
accumulative: ({ inputs, outputs, feeRate: initialFeeRate, chain, changeAddress, }: import("@swapkit/server").UTXOCalculateTxSizeParams & {
|
|
1208
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1209
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
1210
|
-
changeAddress?: string;
|
|
1211
|
-
}) => {
|
|
1212
|
-
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1213
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1214
|
-
fee: number;
|
|
1215
|
-
} | {
|
|
1216
|
-
fee: number;
|
|
1217
|
-
inputs?: undefined;
|
|
1218
|
-
outputs?: undefined;
|
|
1219
|
-
};
|
|
1220
|
-
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1221
|
-
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1222
1178
|
getAddress: () => Promise<string | undefined>;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1226
|
-
psbt: import("bitcoinjs-lib").Psbt;
|
|
1227
|
-
utxos: import("@swapkit/server").UTXOType[];
|
|
1228
|
-
inputs: import("@swapkit/server").UTXOType[];
|
|
1229
|
-
}>;
|
|
1230
|
-
createKeysForPath: (params: {
|
|
1231
|
-
wif?: string;
|
|
1232
|
-
phrase?: string;
|
|
1233
|
-
derivationPath?: string;
|
|
1234
|
-
}) => import("ecpair").ECPairInterface;
|
|
1179
|
+
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1180
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1235
1181
|
getFeeRates: () => Promise<{
|
|
1236
1182
|
average: number;
|
|
1237
1183
|
fast: number;
|
|
@@ -1241,60 +1187,39 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1241
1187
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1242
1188
|
feeRate?: number;
|
|
1243
1189
|
}) => Promise<{
|
|
1190
|
+
fee: number;
|
|
1244
1191
|
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1245
1192
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1246
|
-
fee: number;
|
|
1247
1193
|
} | {
|
|
1248
1194
|
fee: number;
|
|
1249
1195
|
inputs?: undefined;
|
|
1250
1196
|
outputs?: undefined;
|
|
1251
1197
|
}>;
|
|
1252
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
1253
1198
|
getPrivateKeyFromMnemonic: (params: {
|
|
1254
1199
|
phrase: string;
|
|
1255
1200
|
derivationPath: string;
|
|
1256
1201
|
}) => string;
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1260
|
-
recipient: string;
|
|
1261
|
-
sender: string;
|
|
1262
|
-
memo?: string;
|
|
1263
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1264
|
-
feeRate?: number;
|
|
1265
|
-
fetchTxHex?: boolean;
|
|
1266
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1267
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1268
|
-
from: string;
|
|
1269
|
-
memo?: string;
|
|
1270
|
-
feeRate?: number;
|
|
1271
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1272
|
-
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1273
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1202
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
1203
|
+
validateAddress: (address: string) => boolean;
|
|
1274
1204
|
};
|
|
1275
1205
|
ETH: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Ethereum> & {
|
|
1276
1206
|
multicall: (callTuples: {
|
|
1277
1207
|
address: string;
|
|
1278
1208
|
data: string;
|
|
1279
1209
|
}[], multicallAddress?: string, funcName?: string, feeOptionKey?: import("@swapkit/helpers").FeeOption) => Promise<string>;
|
|
1280
|
-
getNetworkParams: () => undefined;
|
|
1281
1210
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1282
|
-
|
|
1283
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1284
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1285
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
1286
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1287
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1288
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1289
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1211
|
+
getNetworkParams: () => undefined;
|
|
1290
1212
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
1291
1213
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
1292
1214
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1293
|
-
|
|
1215
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1216
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1294
1217
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1295
1218
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1296
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1297
1219
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1220
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1221
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1222
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1298
1223
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
1299
1224
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1300
1225
|
funcName?: string;
|
|
@@ -1308,7 +1233,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1308
1233
|
maxFeePerGas?: bigint;
|
|
1309
1234
|
maxPriorityFeePerGas?: bigint;
|
|
1310
1235
|
}; }>;
|
|
1311
|
-
|
|
1236
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1237
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1238
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
1239
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1240
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1241
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
1312
1242
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1313
1243
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1314
1244
|
}) => Promise<string>;
|
|
@@ -1318,24 +1248,19 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1318
1248
|
};
|
|
1319
1249
|
FIAT: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Fiat>;
|
|
1320
1250
|
GNO: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Gnosis> & {
|
|
1321
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1322
1251
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1323
|
-
|
|
1324
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1325
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1326
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
1327
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1328
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1329
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1330
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1252
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1331
1253
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
1332
1254
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
1333
1255
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1334
|
-
|
|
1256
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1257
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1335
1258
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1336
1259
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1337
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1338
1260
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1261
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1262
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1263
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1339
1264
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
1340
1265
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1341
1266
|
funcName?: string;
|
|
@@ -1349,7 +1274,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1349
1274
|
maxFeePerGas?: bigint;
|
|
1350
1275
|
maxPriorityFeePerGas?: bigint;
|
|
1351
1276
|
}; }>;
|
|
1352
|
-
|
|
1277
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1278
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1279
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
1280
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1281
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1282
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
1353
1283
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1354
1284
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1355
1285
|
}) => Promise<string>;
|
|
@@ -1358,52 +1288,29 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1358
1288
|
validateAddress: (address: string) => boolean;
|
|
1359
1289
|
};
|
|
1360
1290
|
KUJI: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Kujira> & {
|
|
1361
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1362
|
-
getAddress: () => Promise<string | undefined>;
|
|
1363
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1364
|
-
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1365
|
-
getSignerFromPhrase: ({ phrase, derivationPath, }: {
|
|
1366
|
-
phrase: string;
|
|
1367
|
-
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1368
|
-
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1369
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1370
1291
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1371
|
-
|
|
1372
|
-
getPubKey: () => Promise<string>;
|
|
1373
|
-
getFees: () => Promise<{
|
|
1374
|
-
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1375
|
-
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1376
|
-
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1377
|
-
}>;
|
|
1292
|
+
createTransaction: typeof import("@swapkit/server").cosmosCreateTransaction;
|
|
1378
1293
|
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1294
|
+
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1295
|
+
getAddress: () => Promise<string | undefined>;
|
|
1296
|
+
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1379
1297
|
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1380
1298
|
denom: string;
|
|
1381
1299
|
amount: string;
|
|
1382
1300
|
}[]>;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
amount: {
|
|
1388
|
-
denom: string;
|
|
1389
|
-
amount: string;
|
|
1390
|
-
}[];
|
|
1391
|
-
gas: string;
|
|
1392
|
-
};
|
|
1393
|
-
memo: string;
|
|
1394
|
-
sequence: number;
|
|
1395
|
-
msgs: {
|
|
1396
|
-
typeUrl: string;
|
|
1397
|
-
value: {
|
|
1398
|
-
fromAddress: string;
|
|
1399
|
-
toAddress: string;
|
|
1400
|
-
amount: {
|
|
1401
|
-
amount: string;
|
|
1402
|
-
denom: string;
|
|
1403
|
-
}[];
|
|
1404
|
-
};
|
|
1405
|
-
}[];
|
|
1301
|
+
getFees: () => Promise<{
|
|
1302
|
+
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1303
|
+
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1304
|
+
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1406
1305
|
}>;
|
|
1306
|
+
getPubKey: () => Promise<string>;
|
|
1307
|
+
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1308
|
+
phrase: string;
|
|
1309
|
+
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1310
|
+
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1311
|
+
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1312
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1313
|
+
validateAddress: (address: string) => boolean;
|
|
1407
1314
|
verifySignature: ({ signature, message, address, }: {
|
|
1408
1315
|
signature: string;
|
|
1409
1316
|
message: string;
|
|
@@ -1411,34 +1318,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1411
1318
|
}) => Promise<boolean>;
|
|
1412
1319
|
};
|
|
1413
1320
|
LTC: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Litecoin> & {
|
|
1414
|
-
accumulative:
|
|
1415
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1416
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
1417
|
-
changeAddress?: string;
|
|
1418
|
-
}) => {
|
|
1419
|
-
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1420
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
1421
|
-
fee: number;
|
|
1422
|
-
} | {
|
|
1423
|
-
fee: number;
|
|
1424
|
-
inputs?: undefined;
|
|
1425
|
-
outputs?: undefined;
|
|
1426
|
-
};
|
|
1427
|
-
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1428
|
-
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1429
|
-
getAddress: () => Promise<string | undefined>;
|
|
1430
|
-
validateAddress: (address: string) => boolean;
|
|
1321
|
+
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1431
1322
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
1432
|
-
|
|
1433
|
-
psbt: import("bitcoinjs-lib").Psbt;
|
|
1434
|
-
utxos: import("@swapkit/server").UTXOType[];
|
|
1435
|
-
inputs: import("@swapkit/server").UTXOType[];
|
|
1436
|
-
}>;
|
|
1323
|
+
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1437
1324
|
createKeysForPath: (params: {
|
|
1438
1325
|
wif?: string;
|
|
1439
1326
|
phrase?: string;
|
|
1440
1327
|
derivationPath?: string;
|
|
1441
1328
|
}) => import("ecpair").ECPairInterface;
|
|
1329
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1330
|
+
psbt: import("bitcoinjs-lib").Psbt;
|
|
1331
|
+
utxos: import("@swapkit/server").UTXOType[];
|
|
1332
|
+
inputs: import("@swapkit/server").UTXOType[];
|
|
1333
|
+
}>;
|
|
1334
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1335
|
+
from: string;
|
|
1336
|
+
memo?: string;
|
|
1337
|
+
feeRate?: number;
|
|
1338
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1339
|
+
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1340
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1341
|
+
estimateTransactionFee: (params: {
|
|
1342
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1343
|
+
recipient: string;
|
|
1344
|
+
sender: string;
|
|
1345
|
+
memo?: string;
|
|
1346
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1347
|
+
feeRate?: number;
|
|
1348
|
+
fetchTxHex?: boolean;
|
|
1349
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1350
|
+
getAddress: () => Promise<string | undefined>;
|
|
1351
|
+
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1352
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1442
1353
|
getFeeRates: () => Promise<{
|
|
1443
1354
|
average: number;
|
|
1444
1355
|
fast: number;
|
|
@@ -1448,36 +1359,20 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1448
1359
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1449
1360
|
feeRate?: number;
|
|
1450
1361
|
}) => Promise<{
|
|
1362
|
+
fee: number;
|
|
1451
1363
|
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
1452
1364
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1453
|
-
fee: number;
|
|
1454
1365
|
} | {
|
|
1455
1366
|
fee: number;
|
|
1456
1367
|
inputs?: undefined;
|
|
1457
1368
|
outputs?: undefined;
|
|
1458
1369
|
}>;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
}) => string
|
|
1464
|
-
|
|
1465
|
-
estimateTransactionFee: (params: {
|
|
1466
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1467
|
-
recipient: string;
|
|
1468
|
-
sender: string;
|
|
1469
|
-
memo?: string;
|
|
1470
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1471
|
-
feeRate?: number;
|
|
1472
|
-
fetchTxHex?: boolean;
|
|
1473
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1474
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1475
|
-
from: string;
|
|
1476
|
-
memo?: string;
|
|
1477
|
-
feeRate?: number;
|
|
1478
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1479
|
-
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1480
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1370
|
+
getPrivateKeyFromMnemonic: (params: {
|
|
1371
|
+
phrase: string;
|
|
1372
|
+
derivationPath: string;
|
|
1373
|
+
}) => string;
|
|
1374
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
1375
|
+
validateAddress: (address: string) => boolean;
|
|
1481
1376
|
};
|
|
1482
1377
|
MAYA: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Maya> & {
|
|
1483
1378
|
broadcastMultisigTx: (tx: string, signers: import("@swapkit/server").MultiSigSigner[], membersPubKeys: string[], threshold: number, bodyBytes: Uint8Array) => Promise<string>;
|
|
@@ -1487,36 +1382,36 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1487
1382
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1488
1383
|
memo?: string;
|
|
1489
1384
|
}) => {
|
|
1490
|
-
type: "thorchain/
|
|
1385
|
+
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
1491
1386
|
value: {
|
|
1492
|
-
|
|
1493
|
-
to_address: string | undefined;
|
|
1494
|
-
amount: {
|
|
1387
|
+
coins: {
|
|
1495
1388
|
amount: string;
|
|
1496
|
-
|
|
1389
|
+
asset: string;
|
|
1497
1390
|
}[];
|
|
1391
|
+
memo: string;
|
|
1392
|
+
signer: string;
|
|
1498
1393
|
};
|
|
1499
1394
|
} | {
|
|
1500
|
-
type: "thorchain/
|
|
1395
|
+
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1501
1396
|
value: {
|
|
1502
|
-
|
|
1397
|
+
amount: {
|
|
1503
1398
|
amount: string;
|
|
1504
|
-
|
|
1399
|
+
denom: string;
|
|
1505
1400
|
}[];
|
|
1506
|
-
|
|
1507
|
-
|
|
1401
|
+
from_address: string;
|
|
1402
|
+
to_address: string | undefined;
|
|
1508
1403
|
};
|
|
1509
1404
|
};
|
|
1510
1405
|
buildEncodedTxBody: typeof import("@swapkit/server").buildEncodedTxBody;
|
|
1511
1406
|
convertToSignable: (msg: {
|
|
1512
1407
|
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1513
1408
|
value: {
|
|
1514
|
-
from_address: string;
|
|
1515
|
-
to_address: string | undefined;
|
|
1516
1409
|
amount: {
|
|
1517
1410
|
amount: string;
|
|
1518
1411
|
denom: string;
|
|
1519
1412
|
}[];
|
|
1413
|
+
from_address: string;
|
|
1414
|
+
to_address: string | undefined;
|
|
1520
1415
|
};
|
|
1521
1416
|
} | {
|
|
1522
1417
|
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
@@ -1525,40 +1420,47 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1525
1420
|
amount: string;
|
|
1526
1421
|
asset: string;
|
|
1527
1422
|
}[];
|
|
1528
|
-
signer: string;
|
|
1529
1423
|
memo: string;
|
|
1424
|
+
signer: string;
|
|
1530
1425
|
};
|
|
1531
1426
|
}, chain: import("@swapkit/helpers").Chain.THORChain | import("@swapkit/helpers").Chain.Maya) => Promise<import("@cosmjs/proto-signing").EncodeObject>;
|
|
1532
1427
|
createDefaultAminoTypes: () => Promise<import("@cosmjs/stargate").AminoTypes>;
|
|
1533
1428
|
createDefaultRegistry: typeof import("@swapkit/server").createDefaultRegistry;
|
|
1534
1429
|
createMultisig: (pubKeys: string[], threshold: number, noSortPubKeys?: boolean) => Promise<import("@cosmjs/amino").MultisigThresholdPubkey>;
|
|
1535
1430
|
createTransaction: (params: import("@swapkit/server").ThorchainCreateTransactionParams) => Promise<{
|
|
1536
|
-
chainId: import("@swapkit/helpers").ChainId;
|
|
1537
1431
|
accountNumber: number;
|
|
1538
|
-
|
|
1432
|
+
chainId: import("@swapkit/helpers").ChainId;
|
|
1433
|
+
fee: {
|
|
1434
|
+
amount: {
|
|
1435
|
+
amount: string;
|
|
1436
|
+
denom: string;
|
|
1437
|
+
}[];
|
|
1438
|
+
gas: string;
|
|
1439
|
+
};
|
|
1440
|
+
memo: string;
|
|
1539
1441
|
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
1540
1442
|
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1541
1443
|
value: {
|
|
1542
|
-
from_address: string;
|
|
1543
|
-
to_address: string | undefined;
|
|
1544
1444
|
amount: {
|
|
1545
1445
|
amount: string;
|
|
1546
1446
|
denom: string;
|
|
1547
1447
|
}[];
|
|
1448
|
+
from_address: string;
|
|
1449
|
+
to_address: string | undefined;
|
|
1548
1450
|
};
|
|
1549
1451
|
})[];
|
|
1452
|
+
sequence: number;
|
|
1453
|
+
}> | Promise<{
|
|
1454
|
+
accountNumber: number;
|
|
1455
|
+
chainId: import("@swapkit/helpers").ChainId;
|
|
1550
1456
|
fee: {
|
|
1551
1457
|
amount: {
|
|
1552
|
-
denom: string;
|
|
1553
1458
|
amount: string;
|
|
1459
|
+
denom: string;
|
|
1554
1460
|
}[];
|
|
1555
1461
|
gas: string;
|
|
1556
1462
|
};
|
|
1557
1463
|
memo: string;
|
|
1558
|
-
}> | Promise<{
|
|
1559
|
-
chainId: import("@swapkit/helpers").ChainId;
|
|
1560
|
-
accountNumber: number;
|
|
1561
|
-
sequence: number;
|
|
1562
1464
|
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
1563
1465
|
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
1564
1466
|
value: {
|
|
@@ -1566,18 +1468,11 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1566
1468
|
amount: string;
|
|
1567
1469
|
asset: string;
|
|
1568
1470
|
}[];
|
|
1569
|
-
signer: string;
|
|
1570
1471
|
memo: string;
|
|
1472
|
+
signer: string;
|
|
1571
1473
|
};
|
|
1572
1474
|
})[];
|
|
1573
|
-
|
|
1574
|
-
amount: {
|
|
1575
|
-
denom: string;
|
|
1576
|
-
amount: string;
|
|
1577
|
-
}[];
|
|
1578
|
-
gas: string;
|
|
1579
|
-
};
|
|
1580
|
-
memo: string;
|
|
1475
|
+
sequence: number;
|
|
1581
1476
|
}>;
|
|
1582
1477
|
deposit: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
1583
1478
|
recipient?: string;
|
|
@@ -1589,38 +1484,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1589
1484
|
}>;
|
|
1590
1485
|
importSignature: (signature: string) => Uint8Array<ArrayBufferLike>;
|
|
1591
1486
|
parseAminoMessageForDirectSigning: typeof import("@swapkit/server").parseAminoMessageForDirectSigning;
|
|
1487
|
+
pubkeyToAddress: (pubkey: import("@cosmjs/amino").Pubkey) => Promise<string>;
|
|
1592
1488
|
secp256k1HdWalletFromMnemonic: (mnemonic: string, index?: number) => Promise<import("@cosmjs/amino").Secp256k1HdWallet>;
|
|
1593
|
-
signMultisigTx: ({ wallet, tx
|
|
1489
|
+
signMultisigTx: ({ wallet, tx }: {
|
|
1594
1490
|
wallet: import("@cosmjs/amino").Secp256k1HdWallet;
|
|
1595
1491
|
tx: string | import("@swapkit/server").MultisigTx;
|
|
1596
1492
|
}) => Promise<{
|
|
1597
|
-
signature: string;
|
|
1598
1493
|
bodyBytes: Uint8Array<ArrayBufferLike>;
|
|
1494
|
+
signature: string;
|
|
1599
1495
|
}>;
|
|
1600
|
-
signWithPrivateKey: ({ privateKey, message
|
|
1496
|
+
signWithPrivateKey: ({ privateKey, message }: {
|
|
1601
1497
|
privateKey: Uint8Array;
|
|
1602
1498
|
message: string;
|
|
1603
1499
|
}) => Promise<string>;
|
|
1604
1500
|
transfer: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
1605
1501
|
recipient?: string;
|
|
1606
1502
|
}) => Promise<string>;
|
|
1607
|
-
|
|
1608
|
-
|
|
1503
|
+
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1504
|
+
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1609
1505
|
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1506
|
+
getAddress: () => Promise<string | undefined>;
|
|
1610
1507
|
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1611
|
-
|
|
1508
|
+
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1509
|
+
denom: string;
|
|
1510
|
+
amount: string;
|
|
1511
|
+
}[]>;
|
|
1512
|
+
getPubKey: () => Promise<string>;
|
|
1513
|
+
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1612
1514
|
phrase: string;
|
|
1613
1515
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1614
1516
|
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1615
1517
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1616
|
-
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1617
1518
|
validateAddress: (address: string) => boolean;
|
|
1618
|
-
getPubKey: () => Promise<string>;
|
|
1619
|
-
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1620
|
-
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1621
|
-
denom: string;
|
|
1622
|
-
amount: string;
|
|
1623
|
-
}[]>;
|
|
1624
1519
|
verifySignature: ({ signature, message, address, }: {
|
|
1625
1520
|
signature: string;
|
|
1626
1521
|
message: string;
|
|
@@ -1629,52 +1524,29 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1629
1524
|
};
|
|
1630
1525
|
NEAR: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Near> & import("@swapkit/toolboxes/near").NearToolbox;
|
|
1631
1526
|
NOBLE: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Noble> & {
|
|
1632
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1633
|
-
getAddress: () => Promise<string | undefined>;
|
|
1634
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1635
|
-
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1636
|
-
getSignerFromPhrase: ({ phrase, derivationPath, }: {
|
|
1637
|
-
phrase: string;
|
|
1638
|
-
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1639
|
-
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1640
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1641
1527
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1642
|
-
|
|
1643
|
-
getPubKey: () => Promise<string>;
|
|
1644
|
-
getFees: () => Promise<{
|
|
1645
|
-
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1646
|
-
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1647
|
-
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1648
|
-
}>;
|
|
1528
|
+
createTransaction: typeof import("@swapkit/server").cosmosCreateTransaction;
|
|
1649
1529
|
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1530
|
+
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1531
|
+
getAddress: () => Promise<string | undefined>;
|
|
1532
|
+
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1650
1533
|
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1651
1534
|
denom: string;
|
|
1652
1535
|
amount: string;
|
|
1653
1536
|
}[]>;
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
amount: {
|
|
1659
|
-
denom: string;
|
|
1660
|
-
amount: string;
|
|
1661
|
-
}[];
|
|
1662
|
-
gas: string;
|
|
1663
|
-
};
|
|
1664
|
-
memo: string;
|
|
1665
|
-
sequence: number;
|
|
1666
|
-
msgs: {
|
|
1667
|
-
typeUrl: string;
|
|
1668
|
-
value: {
|
|
1669
|
-
fromAddress: string;
|
|
1670
|
-
toAddress: string;
|
|
1671
|
-
amount: {
|
|
1672
|
-
amount: string;
|
|
1673
|
-
denom: string;
|
|
1674
|
-
}[];
|
|
1675
|
-
};
|
|
1676
|
-
}[];
|
|
1537
|
+
getFees: () => Promise<{
|
|
1538
|
+
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1539
|
+
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1540
|
+
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1677
1541
|
}>;
|
|
1542
|
+
getPubKey: () => Promise<string>;
|
|
1543
|
+
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1544
|
+
phrase: string;
|
|
1545
|
+
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1546
|
+
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1547
|
+
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1548
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1549
|
+
validateAddress: (address: string) => boolean;
|
|
1678
1550
|
verifySignature: ({ signature, message, address, }: {
|
|
1679
1551
|
signature: string;
|
|
1680
1552
|
message: string;
|
|
@@ -1682,6 +1554,26 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1682
1554
|
}) => Promise<boolean>;
|
|
1683
1555
|
};
|
|
1684
1556
|
OP: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Optimism> & {
|
|
1557
|
+
estimateGasPrices: Promise<{
|
|
1558
|
+
average: {
|
|
1559
|
+
l1GasPrice?: bigint;
|
|
1560
|
+
gasPrice?: bigint;
|
|
1561
|
+
maxFeePerGas?: bigint;
|
|
1562
|
+
maxPriorityFeePerGas?: bigint;
|
|
1563
|
+
};
|
|
1564
|
+
fast: {
|
|
1565
|
+
l1GasPrice?: bigint;
|
|
1566
|
+
gasPrice?: bigint;
|
|
1567
|
+
maxFeePerGas?: bigint;
|
|
1568
|
+
maxPriorityFeePerGas?: bigint;
|
|
1569
|
+
};
|
|
1570
|
+
fastest: {
|
|
1571
|
+
l1GasPrice?: bigint;
|
|
1572
|
+
gasPrice?: bigint;
|
|
1573
|
+
maxFeePerGas?: bigint;
|
|
1574
|
+
maxPriorityFeePerGas?: bigint;
|
|
1575
|
+
};
|
|
1576
|
+
}>;
|
|
1685
1577
|
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
1686
1578
|
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
1687
1579
|
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
@@ -1689,32 +1581,27 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1689
1581
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1690
1582
|
getL1GasPrice: () => bigint | undefined;
|
|
1691
1583
|
getNetworkParams: () => {
|
|
1584
|
+
blockExplorerUrls: string[];
|
|
1692
1585
|
chainId: import("@swapkit/helpers").ChainId;
|
|
1693
1586
|
chainName: string;
|
|
1694
1587
|
nativeCurrency: {
|
|
1588
|
+
decimals: number;
|
|
1695
1589
|
name: string;
|
|
1696
1590
|
symbol: import("@swapkit/helpers").Chain;
|
|
1697
|
-
decimals: number;
|
|
1698
1591
|
};
|
|
1699
1592
|
rpcUrls: string[];
|
|
1700
|
-
blockExplorerUrls: string[];
|
|
1701
1593
|
};
|
|
1702
|
-
getAddress: () => Promise<string> | undefined;
|
|
1703
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1704
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1705
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
1706
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1707
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1708
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1709
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1710
1594
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
1711
1595
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
1712
1596
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1713
|
-
|
|
1597
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1598
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1714
1599
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1715
1600
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1716
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1717
1601
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1602
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1603
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1604
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1718
1605
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
1719
1606
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1720
1607
|
funcName?: string;
|
|
@@ -1722,13 +1609,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1722
1609
|
txOverrides?: import("@swapkit/server").EVMTxParams;
|
|
1723
1610
|
data?: string;
|
|
1724
1611
|
}) => Promise<bigint>;
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}
|
|
1731
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount, }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
1612
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1613
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1614
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
1615
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1616
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1617
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
1732
1618
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1733
1619
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1734
1620
|
}) => Promise<string>;
|
|
@@ -1738,67 +1624,62 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1738
1624
|
};
|
|
1739
1625
|
DOT: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Polkadot> & {
|
|
1740
1626
|
api: import("@polkadot/api").ApiPromise;
|
|
1741
|
-
|
|
1742
|
-
gasAsset: import("@swapkit/helpers").AssetValue;
|
|
1743
|
-
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1744
|
-
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1627
|
+
broadcast: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1745
1628
|
convertAddress: (address: string, newPrefix: number) => string;
|
|
1746
|
-
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1747
1629
|
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
1748
|
-
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
1749
1630
|
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api-base/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined;
|
|
1750
|
-
|
|
1751
|
-
|
|
1631
|
+
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1632
|
+
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1752
1633
|
estimateTransactionFee: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<import("@swapkit/helpers").AssetValue | undefined>;
|
|
1634
|
+
gasAsset: import("@swapkit/helpers").AssetValue;
|
|
1635
|
+
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
1636
|
+
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1637
|
+
network: import("@swapkit/server").SubstrateNetwork;
|
|
1753
1638
|
sign: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api-base/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
1754
|
-
broadcast: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1755
1639
|
signAndBroadcast: ({ tx, callback, address, }: {
|
|
1756
1640
|
tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">;
|
|
1757
1641
|
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
1758
1642
|
address?: string;
|
|
1759
1643
|
}) => string | Promise<string> | Promise<() => void>;
|
|
1644
|
+
transfer: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<string | undefined>;
|
|
1645
|
+
validateAddress: (address: string) => boolean;
|
|
1760
1646
|
};
|
|
1761
1647
|
FLIP: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Chainflip> & {
|
|
1762
1648
|
api: import("@polkadot/api").ApiPromise;
|
|
1763
|
-
|
|
1764
|
-
gasAsset: import("@swapkit/helpers").AssetValue;
|
|
1765
|
-
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1766
|
-
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1649
|
+
broadcast: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1767
1650
|
convertAddress: (address: string, newPrefix: number) => string;
|
|
1768
|
-
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1769
1651
|
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
1770
|
-
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
1771
1652
|
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api-base/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined;
|
|
1772
|
-
|
|
1773
|
-
|
|
1653
|
+
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1654
|
+
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1774
1655
|
estimateTransactionFee: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<import("@swapkit/helpers").AssetValue | undefined>;
|
|
1656
|
+
gasAsset: import("@swapkit/helpers").AssetValue;
|
|
1657
|
+
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
1658
|
+
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1659
|
+
network: import("@swapkit/server").SubstrateNetwork;
|
|
1775
1660
|
sign: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api-base/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
1776
|
-
broadcast: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1777
1661
|
signAndBroadcast: ({ tx, callback, address, }: {
|
|
1778
1662
|
tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">;
|
|
1779
1663
|
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
1780
1664
|
address?: string;
|
|
1781
1665
|
}) => string | Promise<string> | Promise<() => void>;
|
|
1666
|
+
transfer: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<string | undefined>;
|
|
1667
|
+
validateAddress: (address: string) => boolean;
|
|
1782
1668
|
};
|
|
1783
1669
|
POL: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Polygon> & {
|
|
1784
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1785
1670
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1786
|
-
|
|
1787
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1788
|
-
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1789
|
-
chain: import("@swapkit/helpers").EVMChain;
|
|
1790
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1791
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1792
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1793
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1671
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1794
1672
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
1795
1673
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
1796
1674
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1797
|
-
|
|
1675
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
1676
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1798
1677
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1799
1678
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1800
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1801
1679
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1680
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1681
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1682
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
1802
1683
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
1803
1684
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1804
1685
|
funcName?: string;
|
|
@@ -1812,7 +1693,12 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1812
1693
|
maxFeePerGas?: bigint;
|
|
1813
1694
|
maxPriorityFeePerGas?: bigint;
|
|
1814
1695
|
}; }>;
|
|
1815
|
-
|
|
1696
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1697
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1698
|
+
chain: import("@swapkit/helpers").EVMChain;
|
|
1699
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1700
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1701
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
1816
1702
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1817
1703
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1818
1704
|
}) => Promise<string>;
|
|
@@ -1824,35 +1710,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1824
1710
|
getAddress: () => string;
|
|
1825
1711
|
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1826
1712
|
networkApi: import("@radixdlt/babylon-gateway-api-sdk").GatewayApiClient;
|
|
1827
|
-
validateAddress: typeof import("@swapkit/server").radixValidateAddress;
|
|
1828
1713
|
signAndBroadcast: (params: any) => Promise<string>;
|
|
1714
|
+
validateAddress: typeof import("@swapkit/server").radixValidateAddress;
|
|
1829
1715
|
};
|
|
1830
1716
|
XRP: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Ripple> & {
|
|
1831
|
-
|
|
1832
|
-
tx_blob: string;
|
|
1833
|
-
hash: string;
|
|
1834
|
-
}> | undefined;
|
|
1717
|
+
broadcastTransaction: (signedTxHex: string) => Promise<string>;
|
|
1835
1718
|
createSigner: (phrase: string) => import("@swapkit/helpers").ChainSigner<import("xrpl").Transaction, {
|
|
1836
1719
|
tx_blob: string;
|
|
1837
1720
|
hash: string;
|
|
1838
1721
|
}>;
|
|
1839
|
-
getAddress: () => Promise<string>;
|
|
1840
|
-
validateAddress: typeof import("@swapkit/toolboxes/ripple").rippleValidateAddress;
|
|
1841
|
-
getBalance: (address?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1842
1722
|
createTransaction: ({ assetValue, recipient, memo, sender, }: {
|
|
1843
1723
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1844
1724
|
recipient: string;
|
|
1845
1725
|
sender?: string;
|
|
1846
1726
|
memo?: string;
|
|
1847
1727
|
}) => Promise<import("xrpl").Payment>;
|
|
1848
|
-
|
|
1728
|
+
disconnect: () => Promise<void>;
|
|
1729
|
+
estimateTransactionFee: () => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1730
|
+
getAddress: () => string | Promise<string>;
|
|
1731
|
+
getBalance: (address?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1732
|
+
signer: import("@swapkit/helpers").ChainSigner<import("xrpl").Transaction, {
|
|
1733
|
+
tx_blob: string;
|
|
1734
|
+
hash: string;
|
|
1735
|
+
}> | undefined;
|
|
1736
|
+
signTransaction: (tx: import("xrpl").Transaction) => {
|
|
1737
|
+
tx_blob: string;
|
|
1738
|
+
hash: string;
|
|
1739
|
+
} | Promise<{
|
|
1849
1740
|
tx_blob: string;
|
|
1850
1741
|
hash: string;
|
|
1851
1742
|
}>;
|
|
1852
|
-
broadcastTransaction: (signedTxHex: string) => Promise<string>;
|
|
1853
1743
|
transfer: (params: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1854
|
-
|
|
1855
|
-
disconnect: () => Promise<void>;
|
|
1744
|
+
validateAddress: typeof import("@swapkit/toolboxes/ripple").rippleValidateAddress;
|
|
1856
1745
|
};
|
|
1857
1746
|
THOR: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.THORChain> & {
|
|
1858
1747
|
broadcastMultisigTx: (tx: string, signers: import("@swapkit/server").MultiSigSigner[], membersPubKeys: string[], threshold: number, bodyBytes: Uint8Array) => Promise<string>;
|
|
@@ -1862,36 +1751,36 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1862
1751
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1863
1752
|
memo?: string;
|
|
1864
1753
|
}) => {
|
|
1865
|
-
type: "thorchain/
|
|
1754
|
+
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
1866
1755
|
value: {
|
|
1867
|
-
|
|
1868
|
-
to_address: string | undefined;
|
|
1869
|
-
amount: {
|
|
1756
|
+
coins: {
|
|
1870
1757
|
amount: string;
|
|
1871
|
-
|
|
1758
|
+
asset: string;
|
|
1872
1759
|
}[];
|
|
1760
|
+
memo: string;
|
|
1761
|
+
signer: string;
|
|
1873
1762
|
};
|
|
1874
1763
|
} | {
|
|
1875
|
-
type: "thorchain/
|
|
1764
|
+
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1876
1765
|
value: {
|
|
1877
|
-
|
|
1766
|
+
amount: {
|
|
1878
1767
|
amount: string;
|
|
1879
|
-
|
|
1768
|
+
denom: string;
|
|
1880
1769
|
}[];
|
|
1881
|
-
|
|
1882
|
-
|
|
1770
|
+
from_address: string;
|
|
1771
|
+
to_address: string | undefined;
|
|
1883
1772
|
};
|
|
1884
1773
|
};
|
|
1885
1774
|
buildEncodedTxBody: typeof import("@swapkit/server").buildEncodedTxBody;
|
|
1886
1775
|
convertToSignable: (msg: {
|
|
1887
1776
|
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1888
1777
|
value: {
|
|
1889
|
-
from_address: string;
|
|
1890
|
-
to_address: string | undefined;
|
|
1891
1778
|
amount: {
|
|
1892
1779
|
amount: string;
|
|
1893
1780
|
denom: string;
|
|
1894
1781
|
}[];
|
|
1782
|
+
from_address: string;
|
|
1783
|
+
to_address: string | undefined;
|
|
1895
1784
|
};
|
|
1896
1785
|
} | {
|
|
1897
1786
|
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
@@ -1900,40 +1789,47 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1900
1789
|
amount: string;
|
|
1901
1790
|
asset: string;
|
|
1902
1791
|
}[];
|
|
1903
|
-
signer: string;
|
|
1904
1792
|
memo: string;
|
|
1793
|
+
signer: string;
|
|
1905
1794
|
};
|
|
1906
1795
|
}, chain: import("@swapkit/helpers").Chain.THORChain | import("@swapkit/helpers").Chain.Maya) => Promise<import("@cosmjs/proto-signing").EncodeObject>;
|
|
1907
1796
|
createDefaultAminoTypes: () => Promise<import("@cosmjs/stargate").AminoTypes>;
|
|
1908
1797
|
createDefaultRegistry: typeof import("@swapkit/server").createDefaultRegistry;
|
|
1909
1798
|
createMultisig: (pubKeys: string[], threshold: number, noSortPubKeys?: boolean) => Promise<import("@cosmjs/amino").MultisigThresholdPubkey>;
|
|
1910
1799
|
createTransaction: (params: import("@swapkit/server").ThorchainCreateTransactionParams) => Promise<{
|
|
1911
|
-
chainId: import("@swapkit/helpers").ChainId;
|
|
1912
1800
|
accountNumber: number;
|
|
1913
|
-
|
|
1801
|
+
chainId: import("@swapkit/helpers").ChainId;
|
|
1802
|
+
fee: {
|
|
1803
|
+
amount: {
|
|
1804
|
+
amount: string;
|
|
1805
|
+
denom: string;
|
|
1806
|
+
}[];
|
|
1807
|
+
gas: string;
|
|
1808
|
+
};
|
|
1809
|
+
memo: string;
|
|
1914
1810
|
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
1915
1811
|
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1916
1812
|
value: {
|
|
1917
|
-
from_address: string;
|
|
1918
|
-
to_address: string | undefined;
|
|
1919
1813
|
amount: {
|
|
1920
1814
|
amount: string;
|
|
1921
1815
|
denom: string;
|
|
1922
1816
|
}[];
|
|
1817
|
+
from_address: string;
|
|
1818
|
+
to_address: string | undefined;
|
|
1923
1819
|
};
|
|
1924
1820
|
})[];
|
|
1821
|
+
sequence: number;
|
|
1822
|
+
}> | Promise<{
|
|
1823
|
+
accountNumber: number;
|
|
1824
|
+
chainId: import("@swapkit/helpers").ChainId;
|
|
1925
1825
|
fee: {
|
|
1926
1826
|
amount: {
|
|
1927
|
-
denom: string;
|
|
1928
1827
|
amount: string;
|
|
1828
|
+
denom: string;
|
|
1929
1829
|
}[];
|
|
1930
1830
|
gas: string;
|
|
1931
1831
|
};
|
|
1932
1832
|
memo: string;
|
|
1933
|
-
}> | Promise<{
|
|
1934
|
-
chainId: import("@swapkit/helpers").ChainId;
|
|
1935
|
-
accountNumber: number;
|
|
1936
|
-
sequence: number;
|
|
1937
1833
|
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
1938
1834
|
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
1939
1835
|
value: {
|
|
@@ -1941,18 +1837,11 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1941
1837
|
amount: string;
|
|
1942
1838
|
asset: string;
|
|
1943
1839
|
}[];
|
|
1944
|
-
signer: string;
|
|
1945
1840
|
memo: string;
|
|
1841
|
+
signer: string;
|
|
1946
1842
|
};
|
|
1947
1843
|
})[];
|
|
1948
|
-
|
|
1949
|
-
amount: {
|
|
1950
|
-
denom: string;
|
|
1951
|
-
amount: string;
|
|
1952
|
-
}[];
|
|
1953
|
-
gas: string;
|
|
1954
|
-
};
|
|
1955
|
-
memo: string;
|
|
1844
|
+
sequence: number;
|
|
1956
1845
|
}>;
|
|
1957
1846
|
deposit: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
1958
1847
|
recipient?: string;
|
|
@@ -1964,38 +1853,38 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
1964
1853
|
}>;
|
|
1965
1854
|
importSignature: (signature: string) => Uint8Array<ArrayBufferLike>;
|
|
1966
1855
|
parseAminoMessageForDirectSigning: typeof import("@swapkit/server").parseAminoMessageForDirectSigning;
|
|
1856
|
+
pubkeyToAddress: (pubkey: import("@cosmjs/amino").Pubkey) => Promise<string>;
|
|
1967
1857
|
secp256k1HdWalletFromMnemonic: (mnemonic: string, index?: number) => Promise<import("@cosmjs/amino").Secp256k1HdWallet>;
|
|
1968
|
-
signMultisigTx: ({ wallet, tx
|
|
1858
|
+
signMultisigTx: ({ wallet, tx }: {
|
|
1969
1859
|
wallet: import("@cosmjs/amino").Secp256k1HdWallet;
|
|
1970
1860
|
tx: string | import("@swapkit/server").MultisigTx;
|
|
1971
1861
|
}) => Promise<{
|
|
1972
|
-
signature: string;
|
|
1973
1862
|
bodyBytes: Uint8Array<ArrayBufferLike>;
|
|
1863
|
+
signature: string;
|
|
1974
1864
|
}>;
|
|
1975
|
-
signWithPrivateKey: ({ privateKey, message
|
|
1865
|
+
signWithPrivateKey: ({ privateKey, message }: {
|
|
1976
1866
|
privateKey: Uint8Array;
|
|
1977
1867
|
message: string;
|
|
1978
1868
|
}) => Promise<string>;
|
|
1979
1869
|
transfer: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
1980
1870
|
recipient?: string;
|
|
1981
1871
|
}) => Promise<string>;
|
|
1982
|
-
|
|
1983
|
-
|
|
1872
|
+
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1873
|
+
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1984
1874
|
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1875
|
+
getAddress: () => Promise<string | undefined>;
|
|
1985
1876
|
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1986
|
-
|
|
1877
|
+
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1878
|
+
denom: string;
|
|
1879
|
+
amount: string;
|
|
1880
|
+
}[]>;
|
|
1881
|
+
getPubKey: () => Promise<string>;
|
|
1882
|
+
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1987
1883
|
phrase: string;
|
|
1988
1884
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1989
1885
|
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1990
1886
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1991
|
-
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1992
1887
|
validateAddress: (address: string) => boolean;
|
|
1993
|
-
getPubKey: () => Promise<string>;
|
|
1994
|
-
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1995
|
-
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1996
|
-
denom: string;
|
|
1997
|
-
amount: string;
|
|
1998
|
-
}[]>;
|
|
1999
1888
|
verifySignature: ({ signature, message, address, }: {
|
|
2000
1889
|
signature: string;
|
|
2001
1890
|
message: string;
|
|
@@ -2003,24 +1892,24 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
2003
1892
|
}) => Promise<boolean>;
|
|
2004
1893
|
};
|
|
2005
1894
|
SOL: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Solana> & {
|
|
2006
|
-
|
|
2007
|
-
getAddress: () => string;
|
|
1895
|
+
broadcastTransaction: (transaction: import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction) => Promise<string>;
|
|
2008
1896
|
createKeysForPath: typeof import("@swapkit/server").createKeysForPath;
|
|
2009
|
-
|
|
2010
|
-
getPubkeyFromAddress: (address: string) => Promise<import("@solana/web3.js").PublicKey>;
|
|
2011
|
-
createTransaction: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender, }: import("@swapkit/server").SolanaCreateTransactionParams) => Promise<import("@solana/web3.js").Transaction>;
|
|
1897
|
+
createTransaction: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender }: import("@swapkit/server").SolanaCreateTransactionParams) => Promise<import("@solana/web3.js").Transaction>;
|
|
2012
1898
|
createTransactionFromInstructions: ({ instructions, }: {
|
|
2013
1899
|
instructions: import("@solana/web3.js").TransactionInstruction[];
|
|
2014
1900
|
isProgramDerivedAddress?: boolean;
|
|
2015
1901
|
}) => Promise<import("@solana/web3.js").Transaction>;
|
|
2016
|
-
getBalance: (addressParam?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2017
|
-
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress }: import("@swapkit/server").SolanaTransferParams) => Promise<string>;
|
|
2018
|
-
broadcastTransaction: (transaction: import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction) => Promise<string>;
|
|
2019
|
-
getAddressValidator: typeof import("@swapkit/server").getSolanaAddressValidator;
|
|
2020
|
-
signTransaction: (transaction: import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction) => Promise<import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction>;
|
|
2021
1902
|
estimateTransactionFee: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender, }: Omit<import("@swapkit/helpers").GenericCreateTransactionParams, "feeRate"> & {
|
|
2022
1903
|
isProgramDerivedAddress?: boolean;
|
|
2023
1904
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1905
|
+
getAddress: () => string;
|
|
1906
|
+
getAddressFromPubKey: (publicKey: import("@solana/web3.js").PublicKey) => string;
|
|
1907
|
+
getAddressValidator: typeof import("@swapkit/server").getSolanaAddressValidator;
|
|
1908
|
+
getBalance: (addressParam?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1909
|
+
getConnection: () => Promise<import("@solana/web3.js").Connection>;
|
|
1910
|
+
getPubkeyFromAddress: (address: string) => Promise<import("@solana/web3.js").PublicKey>;
|
|
1911
|
+
signTransaction: (transaction: import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction) => Promise<import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction>;
|
|
1912
|
+
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress }: import("@swapkit/server").SolanaTransferParams) => Promise<string>;
|
|
2024
1913
|
};
|
|
2025
1914
|
TRON: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Tron> & {
|
|
2026
1915
|
tronWeb: import("tronweb").TronWeb;
|
|
@@ -2039,38 +1928,43 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
2039
1928
|
getApprovedAmount: (params: import("@swapkit/toolboxes/tron").TronApprovedParams) => Promise<bigint>;
|
|
2040
1929
|
};
|
|
2041
1930
|
ZEC: import("@swapkit/helpers").ChainWallet<import("@swapkit/helpers").Chain.Zcash> & {
|
|
2042
|
-
|
|
1931
|
+
createKeysForPath: ({ phrase, derivationPath, }: {
|
|
1932
|
+
phrase: string;
|
|
1933
|
+
derivationPath?: string;
|
|
1934
|
+
}) => import("@bitgo/utxo-lib").ECPairInterface;
|
|
2043
1935
|
createTransaction: (buildTxParams: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
2044
1936
|
inputs: import("@swapkit/server").UTXOType[];
|
|
2045
1937
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
2046
1938
|
psbt: import("@bitgo/utxo-lib/dist/src/bitgo").ZcashPsbt;
|
|
2047
1939
|
}>;
|
|
2048
|
-
createKeysForPath: ({ phrase, derivationPath, }: {
|
|
2049
|
-
phrase: string;
|
|
2050
|
-
derivationPath?: string;
|
|
2051
|
-
}) => import("@bitgo/utxo-lib").ECPairInterface;
|
|
2052
1940
|
getPrivateKeyFromMnemonic: ({ phrase, derivationPath, }: {
|
|
2053
1941
|
phrase: string;
|
|
2054
1942
|
derivationPath: string;
|
|
2055
1943
|
}) => string;
|
|
1944
|
+
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
2056
1945
|
validateAddress: typeof import("@swapkit/server").validateZcashAddress;
|
|
2057
|
-
accumulative:
|
|
2058
|
-
|
|
2059
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
2060
|
-
changeAddress?: string;
|
|
2061
|
-
}) => {
|
|
2062
|
-
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
2063
|
-
outputs: import("@swapkit/server").TargetOutput[];
|
|
2064
|
-
fee: number;
|
|
2065
|
-
} | {
|
|
2066
|
-
fee: number;
|
|
2067
|
-
inputs?: undefined;
|
|
2068
|
-
outputs?: undefined;
|
|
2069
|
-
};
|
|
1946
|
+
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1947
|
+
broadcastTx: (txHash: string) => Promise<string>;
|
|
2070
1948
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
2071
|
-
|
|
1949
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1950
|
+
from: string;
|
|
1951
|
+
memo?: string;
|
|
1952
|
+
feeRate?: number;
|
|
1953
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1954
|
+
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
1955
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1956
|
+
estimateTransactionFee: (params: {
|
|
1957
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1958
|
+
recipient: string;
|
|
1959
|
+
sender: string;
|
|
1960
|
+
memo?: string;
|
|
1961
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1962
|
+
feeRate?: number;
|
|
1963
|
+
fetchTxHex?: boolean;
|
|
1964
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2072
1965
|
getAddress: () => Promise<string | undefined>;
|
|
2073
|
-
|
|
1966
|
+
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("@swapkit/server").BchECPair) => string;
|
|
1967
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2074
1968
|
getFeeRates: () => Promise<{
|
|
2075
1969
|
average: number;
|
|
2076
1970
|
fast: number;
|
|
@@ -2080,31 +1974,14 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
2080
1974
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2081
1975
|
feeRate?: number;
|
|
2082
1976
|
}) => Promise<{
|
|
1977
|
+
fee: number;
|
|
2083
1978
|
inputs: (import("@swapkit/server").UTXOType | import("@swapkit/server").UTXOInputWithScriptType)[];
|
|
2084
1979
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
2085
|
-
fee: number;
|
|
2086
1980
|
} | {
|
|
2087
1981
|
fee: number;
|
|
2088
1982
|
inputs?: undefined;
|
|
2089
1983
|
outputs?: undefined;
|
|
2090
1984
|
}>;
|
|
2091
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2092
|
-
estimateTransactionFee: (params: {
|
|
2093
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
2094
|
-
recipient: string;
|
|
2095
|
-
sender: string;
|
|
2096
|
-
memo?: string;
|
|
2097
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2098
|
-
feeRate?: number;
|
|
2099
|
-
fetchTxHex?: boolean;
|
|
2100
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2101
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
2102
|
-
from: string;
|
|
2103
|
-
memo?: string;
|
|
2104
|
-
feeRate?: number;
|
|
2105
|
-
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2106
|
-
recipients?: number | import("@swapkit/server").TargetOutput[];
|
|
2107
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2108
1985
|
};
|
|
2109
1986
|
};
|
|
2110
1987
|
getBalance: <T_1 extends import("@swapkit/helpers").Chain, R extends boolean>(chain: T_1, refresh?: R) => import("@swapkit/helpers").ConditionalAssetValueReturn<R>;
|
|
@@ -2112,141 +1989,140 @@ export declare function createSwapKit(config?: Parameters<typeof SwapKit>[0]): {
|
|
|
2112
1989
|
getWalletWithBalance: <T_1 extends import("@swapkit/helpers").Chain>(chain: T_1, scamFilter?: boolean) => Promise<ReturnType<(<T_2 extends import("@swapkit/helpers").Chain>(chain: T_2) => import("@swapkit/toolboxes").FullWallet[T_2])> & {
|
|
2113
1990
|
balance: import("@swapkit/helpers").AssetValue[];
|
|
2114
1991
|
}>;
|
|
2115
|
-
approveAssetValue: (assetValue: import("@swapkit/helpers").AssetValue, contractAddress: string) => Promise<string>;
|
|
2116
1992
|
isAssetValueApproved: (assetValue: import("@swapkit/helpers").AssetValue, contractAddress: string) => Promise<boolean>;
|
|
2117
1993
|
signMessage: ({ chain, message }: {
|
|
2118
1994
|
chain: import("@swapkit/helpers").Chain;
|
|
2119
1995
|
message: string;
|
|
2120
1996
|
}) => Promise<string> | undefined;
|
|
2121
1997
|
swap: <T_1 extends "near" | "solana" | "radix" | "thorchain" | "mayachain" | "evm" | "chainflip">({ route, pluginName, ...rest }: import("@swapkit/helpers").SwapParams<T_1, {
|
|
2122
|
-
providers: import("@swapkit/helpers").ProviderName[];
|
|
2123
|
-
sellAsset: string;
|
|
2124
|
-
sellAmount: string;
|
|
2125
1998
|
buyAsset: string;
|
|
1999
|
+
destinationAddress: string;
|
|
2126
2000
|
expectedBuyAmount: string;
|
|
2127
2001
|
expectedBuyAmountMaxSlippage: string;
|
|
2128
|
-
sourceAddress: string;
|
|
2129
|
-
destinationAddress: string;
|
|
2130
2002
|
fees: {
|
|
2131
|
-
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
2132
2003
|
amount: string;
|
|
2133
2004
|
asset: string;
|
|
2134
2005
|
chain: string;
|
|
2135
2006
|
protocol: import("@swapkit/helpers").ProviderName;
|
|
2007
|
+
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
2136
2008
|
}[];
|
|
2137
|
-
totalSlippageBps: number;
|
|
2138
2009
|
legs: {
|
|
2139
|
-
provider: import("@swapkit/helpers").ProviderName;
|
|
2140
|
-
sellAsset: string;
|
|
2141
|
-
sellAmount: string;
|
|
2142
|
-
buyAsset: string;
|
|
2143
2010
|
buyAmount: string;
|
|
2144
2011
|
buyAmountMaxSlippage: string;
|
|
2012
|
+
buyAsset: string;
|
|
2013
|
+
provider: import("@swapkit/helpers").ProviderName;
|
|
2014
|
+
sellAmount: string;
|
|
2015
|
+
sellAsset: string;
|
|
2145
2016
|
fees?: {
|
|
2146
|
-
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
2147
2017
|
amount: string;
|
|
2148
2018
|
asset: string;
|
|
2149
2019
|
chain: string;
|
|
2150
2020
|
protocol: import("@swapkit/helpers").ProviderName;
|
|
2021
|
+
type: import("@swapkit/helpers").FeeTypeEnum;
|
|
2151
2022
|
}[] | undefined;
|
|
2152
2023
|
}[];
|
|
2153
|
-
warnings: {
|
|
2154
|
-
code: import("@swapkit/helpers").WarningCodeEnum;
|
|
2155
|
-
display: string;
|
|
2156
|
-
tooltip?: string | undefined;
|
|
2157
|
-
}[];
|
|
2158
2024
|
meta: {
|
|
2159
2025
|
tags: import("@swapkit/server").PriorityLabel[];
|
|
2160
2026
|
assets?: {
|
|
2161
2027
|
asset: string;
|
|
2162
|
-
price: number;
|
|
2163
2028
|
image: string;
|
|
2029
|
+
price: number;
|
|
2164
2030
|
}[] | undefined;
|
|
2165
|
-
streamingInterval?: number | undefined;
|
|
2166
2031
|
maxStreamingQuantity?: number | undefined;
|
|
2167
|
-
|
|
2168
|
-
approvalAddress?: string | undefined;
|
|
2032
|
+
streamingInterval?: number | undefined;
|
|
2169
2033
|
affiliate?: string | undefined;
|
|
2170
2034
|
affiliateFee?: string | undefined;
|
|
2171
|
-
|
|
2035
|
+
approvalAddress?: string | undefined;
|
|
2172
2036
|
chainflip?: {
|
|
2173
2037
|
destinationAddress: string;
|
|
2174
|
-
sellAsset: {
|
|
2175
|
-
chain: string;
|
|
2176
|
-
asset: string;
|
|
2177
|
-
};
|
|
2178
2038
|
buyAsset: {
|
|
2039
|
+
asset: string;
|
|
2179
2040
|
chain: string;
|
|
2041
|
+
};
|
|
2042
|
+
sellAsset: {
|
|
2180
2043
|
asset: string;
|
|
2044
|
+
chain: string;
|
|
2181
2045
|
};
|
|
2182
|
-
channelMetadata?: {
|
|
2183
|
-
cfParameters?: string | undefined;
|
|
2184
|
-
gasBudget?: string | undefined;
|
|
2185
|
-
message?: string | undefined;
|
|
2186
|
-
} | undefined;
|
|
2187
2046
|
affiliateFees?: {
|
|
2188
2047
|
brokerAddress: string;
|
|
2189
2048
|
feeBps: number;
|
|
2190
2049
|
}[] | undefined;
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2050
|
+
brokerCommissionBps?: number | undefined;
|
|
2051
|
+
channelMetadata?: {
|
|
2052
|
+
cfParameters?: string | undefined;
|
|
2053
|
+
gasBudget?: string | undefined;
|
|
2054
|
+
message?: string | undefined;
|
|
2195
2055
|
} | undefined;
|
|
2196
2056
|
dcaParameters?: {
|
|
2197
2057
|
chunkInterval?: number | undefined;
|
|
2198
2058
|
numberOfChunks?: number | undefined;
|
|
2199
2059
|
} | undefined;
|
|
2200
|
-
brokerCommissionBps?: number | undefined;
|
|
2201
2060
|
maxBoostFeeBps?: number | undefined;
|
|
2061
|
+
refundParameters?: {
|
|
2062
|
+
minPrice?: string | undefined;
|
|
2063
|
+
refundAddress?: string | undefined;
|
|
2064
|
+
retryDuration?: number | undefined;
|
|
2065
|
+
} | undefined;
|
|
2202
2066
|
} | undefined;
|
|
2203
2067
|
near?: {
|
|
2204
2068
|
destinationAddress: string;
|
|
2205
|
-
sellAsset: string;
|
|
2206
2069
|
buyAsset: string;
|
|
2207
|
-
sourceAddress: string;
|
|
2208
2070
|
sellAmount: string;
|
|
2071
|
+
sellAsset: string;
|
|
2209
2072
|
slippage: number;
|
|
2073
|
+
sourceAddress: string;
|
|
2210
2074
|
affiliateFees?: {
|
|
2211
|
-
nearId: string;
|
|
2212
2075
|
feeBps: number;
|
|
2076
|
+
nearId: string;
|
|
2213
2077
|
} | undefined;
|
|
2214
2078
|
} | undefined;
|
|
2079
|
+
priceImpact?: number | undefined;
|
|
2215
2080
|
referrer?: string | undefined;
|
|
2081
|
+
txType?: import("@swapkit/server").RouteQuoteTxType | undefined;
|
|
2216
2082
|
};
|
|
2217
|
-
|
|
2218
|
-
|
|
2083
|
+
providers: import("@swapkit/helpers").ProviderName[];
|
|
2084
|
+
sellAmount: string;
|
|
2085
|
+
sellAsset: string;
|
|
2086
|
+
sourceAddress: string;
|
|
2087
|
+
totalSlippageBps: number;
|
|
2088
|
+
warnings: {
|
|
2089
|
+
code: import("@swapkit/helpers").WarningCodeEnum;
|
|
2090
|
+
display: string;
|
|
2091
|
+
tooltip?: string | undefined;
|
|
2092
|
+
}[];
|
|
2093
|
+
estimatedTime?: {
|
|
2094
|
+
total: number;
|
|
2095
|
+
inbound?: number | undefined;
|
|
2096
|
+
outbound?: number | undefined;
|
|
2097
|
+
swap?: number | undefined;
|
|
2098
|
+
} | undefined;
|
|
2219
2099
|
expiration?: string | undefined;
|
|
2100
|
+
inboundAddress?: string | undefined;
|
|
2220
2101
|
memo?: string | undefined;
|
|
2221
|
-
|
|
2102
|
+
targetAddress?: string | undefined;
|
|
2222
2103
|
tx?: string | {
|
|
2223
|
-
|
|
2104
|
+
data: string;
|
|
2224
2105
|
from: string;
|
|
2106
|
+
to: string;
|
|
2225
2107
|
value: string;
|
|
2226
|
-
data: string;
|
|
2227
2108
|
} | {
|
|
2228
|
-
memo: string;
|
|
2229
2109
|
accountNumber: number;
|
|
2230
|
-
sequence: number;
|
|
2231
2110
|
chainId: import("@swapkit/helpers").ChainId;
|
|
2232
|
-
msgs: {
|
|
2233
|
-
typeUrl: string;
|
|
2234
|
-
value: unknown;
|
|
2235
|
-
}[];
|
|
2236
2111
|
fee: {
|
|
2237
2112
|
amount: {
|
|
2238
|
-
denom: string;
|
|
2239
2113
|
amount: string;
|
|
2114
|
+
denom: string;
|
|
2240
2115
|
}[];
|
|
2241
2116
|
gas: string;
|
|
2242
2117
|
};
|
|
2118
|
+
memo: string;
|
|
2119
|
+
msgs: {
|
|
2120
|
+
typeUrl: string;
|
|
2121
|
+
value: unknown;
|
|
2122
|
+
}[];
|
|
2123
|
+
sequence: number;
|
|
2243
2124
|
} | undefined;
|
|
2244
|
-
|
|
2245
|
-
total: number;
|
|
2246
|
-
inbound?: number | undefined;
|
|
2247
|
-
swap?: number | undefined;
|
|
2248
|
-
outbound?: number | undefined;
|
|
2249
|
-
} | undefined;
|
|
2125
|
+
txType?: import("@swapkit/server").RouteQuoteTxType | undefined;
|
|
2250
2126
|
}>) => any;
|
|
2251
2127
|
transfer: ({ assetValue, ...params }: import("@swapkit/helpers").GenericTransferParams | import("@swapkit/server").EVMTransferParams) => Promise<string | undefined>;
|
|
2252
2128
|
verifyMessage: ({ address, chain, message, signature, }: {
|