@swapkit/sdk 4.2.10 → 4.5.22
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/LICENSE +246 -0
- package/dist/chunk-1m30h0t9.js +1 -0
- package/dist/core.cjs +0 -3
- package/dist/core.js +0 -3
- package/dist/index.cjs +1 -4
- package/dist/index.js +1 -4
- package/dist/plugins.cjs +1 -4
- package/dist/plugins.js +1 -4
- package/dist/server.cjs +0 -3
- package/dist/server.js +0 -3
- package/dist/types/index.d.ts +1024 -563
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +2 -0
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +0 -1
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/wallets.cjs +1 -4
- package/dist/wallets.js +1 -4
- package/package.json +16 -30
- package/dist/chunk-84ny82sx.js +0 -4
- package/dist/chunk-84ny82sx.js.map +0 -9
- package/dist/core.cjs.map +0 -10
- package/dist/core.js.map +0 -10
- package/dist/index.cjs.map +0 -10
- package/dist/index.js.map +0 -10
- package/dist/plugins.cjs.map +0 -10
- package/dist/plugins.js.map +0 -10
- package/dist/server.cjs.map +0 -10
- package/dist/server.js.map +0 -10
- package/dist/wallets.cjs.map +0 -10
- package/dist/wallets.js.map +0 -10
- package/src/core.ts +0 -1
- package/src/index.ts +0 -131
- package/src/plugins.ts +0 -7
- package/src/server.ts +0 -1
- package/src/wallets.ts +0 -23
package/dist/types/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { okxWallet } from "@swapkit/wallets/okx";
|
|
|
15
15
|
import { onekeyWallet } from "@swapkit/wallets/onekey";
|
|
16
16
|
import { passkeysWallet } from "@swapkit/wallets/passkeys";
|
|
17
17
|
import { phantomWallet } from "@swapkit/wallets/phantom";
|
|
18
|
-
import { polkadotWallet } from "@swapkit/wallets/polkadotjs";
|
|
19
18
|
import { radixWallet } from "@swapkit/wallets/radix";
|
|
20
19
|
import { talismanWallet } from "@swapkit/wallets/talisman";
|
|
21
20
|
import { trezorWallet } from "@swapkit/wallets/trezor";
|
|
@@ -29,16 +28,17 @@ export * from "@swapkit/helpers/api";
|
|
|
29
28
|
export * from "@swapkit/plugins";
|
|
30
29
|
export * from "@swapkit/plugins/chainflip";
|
|
31
30
|
export * from "@swapkit/plugins/evm";
|
|
31
|
+
export * from "@swapkit/plugins/harbor";
|
|
32
32
|
export * from "@swapkit/plugins/near";
|
|
33
33
|
export * from "@swapkit/plugins/radix";
|
|
34
34
|
export * from "@swapkit/plugins/solana";
|
|
35
|
+
export * from "@swapkit/plugins/swapkit";
|
|
35
36
|
export * from "@swapkit/plugins/thorchain";
|
|
36
37
|
export * from "@swapkit/toolboxes";
|
|
37
38
|
export * from "@swapkit/toolboxes/cosmos";
|
|
38
39
|
export * from "@swapkit/toolboxes/evm";
|
|
39
40
|
export * from "@swapkit/toolboxes/radix";
|
|
40
41
|
export * from "@swapkit/toolboxes/solana";
|
|
41
|
-
export * from "@swapkit/toolboxes/substrate";
|
|
42
42
|
export * from "@swapkit/toolboxes/utxo";
|
|
43
43
|
export * from "@swapkit/wallets";
|
|
44
44
|
declare const exodusWallet: {
|
|
@@ -46,29 +46,61 @@ declare const exodusWallet: {
|
|
|
46
46
|
connectWallet: (connectParams: {
|
|
47
47
|
addChain: import("@swapkit/helpers").AddChainType;
|
|
48
48
|
}) => (chains: import("@swapkit/types").Chain[], paramWallet?: import("@passkeys/core").Wallet | undefined) => Promise<boolean>;
|
|
49
|
-
supportedChains: (import("@swapkit/types").Chain.Arbitrum | import("@swapkit/types").Chain.Aurora | import("@swapkit/types").Chain.Avalanche | import("@swapkit/types").Chain.Base | import("@swapkit/types").Chain.Berachain | import("@swapkit/types").Chain.BinanceSmartChain | import("@swapkit/types").Chain.Bitcoin | import("@swapkit/types").Chain.Botanix | import("@swapkit/types").Chain.Core | import("@swapkit/types").Chain.Corn | import("@swapkit/types").Chain.Cronos | import("@swapkit/types").Chain.Ethereum | import("@swapkit/types").Chain.Gnosis | import("@swapkit/types").Chain.Hyperevm | import("@swapkit/types").Chain.Monad | import("@swapkit/types").Chain.Optimism | import("@swapkit/types").Chain.Polygon | import("@swapkit/types").Chain.Solana | import("@swapkit/types").Chain.Sonic | import("@swapkit/types").Chain.Unichain | import("@swapkit/types").Chain.XLayer)[];
|
|
49
|
+
supportedChains: (import("@swapkit/types").Chain.Adi | import("@swapkit/types").Chain.Arbitrum | import("@swapkit/types").Chain.Aurora | import("@swapkit/types").Chain.Avalanche | import("@swapkit/types").Chain.Base | import("@swapkit/types").Chain.Berachain | import("@swapkit/types").Chain.BinanceSmartChain | import("@swapkit/types").Chain.Bitcoin | import("@swapkit/types").Chain.Botanix | import("@swapkit/types").Chain.Core | import("@swapkit/types").Chain.Corn | import("@swapkit/types").Chain.Cronos | import("@swapkit/types").Chain.Ethereum | import("@swapkit/types").Chain.Gnosis | import("@swapkit/types").Chain.Hyperevm | import("@swapkit/types").Chain.Monad | import("@swapkit/types").Chain.Optimism | import("@swapkit/types").Chain.Polygon | import("@swapkit/types").Chain.Solana | import("@swapkit/types").Chain.Sonic | import("@swapkit/types").Chain.Unichain | import("@swapkit/types").Chain.XLayer)[];
|
|
50
50
|
};
|
|
51
51
|
connectPasskeys: {
|
|
52
52
|
connectWallet: (connectParams: {
|
|
53
53
|
addChain: import("@swapkit/helpers").AddChainType;
|
|
54
54
|
}) => (chains: import("@swapkit/types").Chain[], paramWallet?: import("@passkeys/core").Wallet | undefined) => Promise<boolean>;
|
|
55
|
-
supportedChains: (import("@swapkit/types").Chain.Arbitrum | import("@swapkit/types").Chain.Aurora | import("@swapkit/types").Chain.Avalanche | import("@swapkit/types").Chain.Base | import("@swapkit/types").Chain.Berachain | import("@swapkit/types").Chain.BinanceSmartChain | import("@swapkit/types").Chain.Bitcoin | import("@swapkit/types").Chain.Botanix | import("@swapkit/types").Chain.Core | import("@swapkit/types").Chain.Corn | import("@swapkit/types").Chain.Cronos | import("@swapkit/types").Chain.Ethereum | import("@swapkit/types").Chain.Gnosis | import("@swapkit/types").Chain.Hyperevm | import("@swapkit/types").Chain.Monad | import("@swapkit/types").Chain.Optimism | import("@swapkit/types").Chain.Polygon | import("@swapkit/types").Chain.Solana | import("@swapkit/types").Chain.Sonic | import("@swapkit/types").Chain.Unichain | import("@swapkit/types").Chain.XLayer)[];
|
|
55
|
+
supportedChains: (import("@swapkit/types").Chain.Adi | import("@swapkit/types").Chain.Arbitrum | import("@swapkit/types").Chain.Aurora | import("@swapkit/types").Chain.Avalanche | import("@swapkit/types").Chain.Base | import("@swapkit/types").Chain.Berachain | import("@swapkit/types").Chain.BinanceSmartChain | import("@swapkit/types").Chain.Bitcoin | import("@swapkit/types").Chain.Botanix | import("@swapkit/types").Chain.Core | import("@swapkit/types").Chain.Corn | import("@swapkit/types").Chain.Cronos | import("@swapkit/types").Chain.Ethereum | import("@swapkit/types").Chain.Gnosis | import("@swapkit/types").Chain.Hyperevm | import("@swapkit/types").Chain.Monad | import("@swapkit/types").Chain.Optimism | import("@swapkit/types").Chain.Polygon | import("@swapkit/types").Chain.Solana | import("@swapkit/types").Chain.Sonic | import("@swapkit/types").Chain.Unichain | import("@swapkit/types").Chain.XLayer)[];
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
export { bitgetWallet, coinbaseWallet, ctrlWallet, evmWallet, exodusWallet, keepkeyBexWallet, keepkeyWallet, keplrWallet, keystoreWallet, ledgerWallet, okxWallet, onekeyWallet, passkeysWallet, phantomWallet,
|
|
58
|
+
export { bitgetWallet, coinbaseWallet, ctrlWallet, evmWallet, exodusWallet, keepkeyBexWallet, keepkeyWallet, keplrWallet, keystoreWallet, ledgerWallet, okxWallet, onekeyWallet, passkeysWallet, phantomWallet, radixWallet, talismanWallet, trezorWallet, tronlinkWallet, vultisigWallet, walletSelectorWallet, walletconnectWallet, xamanWallet, };
|
|
59
59
|
export declare const defaultPlugins: {
|
|
60
|
+
harbor: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
61
|
+
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.HARBOR];
|
|
62
|
+
} & {
|
|
63
|
+
approveAssetValue: (params: {
|
|
64
|
+
spenderAddress: string;
|
|
65
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
66
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
67
|
+
}) => Promise<string | boolean>;
|
|
68
|
+
isAssetValueApproved: (params: {
|
|
69
|
+
spenderAddress: string;
|
|
70
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
71
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
72
|
+
}) => Promise<string | boolean>;
|
|
73
|
+
swap: ({ route: { tx, sellAsset, memo, targetAddress, sellAmount }, feeOptionKey, }: import("@swapkit/helpers").SwapParams<"harbor", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
74
|
+
};
|
|
75
|
+
swapkit: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
76
|
+
supportedSwapkitProviders: never[];
|
|
77
|
+
} & {
|
|
78
|
+
approveAssetValue: (params: {
|
|
79
|
+
spenderAddress: string;
|
|
80
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
81
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
82
|
+
}) => Promise<string | boolean>;
|
|
83
|
+
isAssetValueApproved: (params: {
|
|
84
|
+
spenderAddress: string;
|
|
85
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
86
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
87
|
+
}) => Promise<string | boolean>;
|
|
88
|
+
swap: ({ route }: import("@swapkit/helpers").SwapParams<"swapkit", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
89
|
+
};
|
|
60
90
|
garden: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
61
91
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.GARDEN];
|
|
62
92
|
} & {
|
|
63
|
-
approveAssetValue: (
|
|
93
|
+
approveAssetValue: (params: {
|
|
64
94
|
spenderAddress: string;
|
|
65
95
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
66
|
-
|
|
67
|
-
|
|
96
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
97
|
+
}) => Promise<string | boolean>;
|
|
98
|
+
isAssetValueApproved: (params: {
|
|
68
99
|
spenderAddress: string;
|
|
69
100
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
70
|
-
|
|
71
|
-
|
|
101
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
102
|
+
}) => Promise<string | boolean>;
|
|
103
|
+
swap: ({ route }: import("@swapkit/helpers").SwapParams<"garden", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
72
104
|
};
|
|
73
105
|
near: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
74
106
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.NEAR];
|
|
@@ -81,17 +113,18 @@ export declare const defaultPlugins: {
|
|
|
81
113
|
resolve(name: string): Promise<string | null>;
|
|
82
114
|
transfer(name: string, newOwner: string): Promise<string>;
|
|
83
115
|
};
|
|
84
|
-
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/
|
|
116
|
+
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/helpers").QuoteResponseRoute>): Promise<any>;
|
|
117
|
+
swapWithUtxos(swapParams: import("@swapkit/plugins/near").SwapWithUtxosParams): Promise<string>;
|
|
85
118
|
};
|
|
86
119
|
solana: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
87
120
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.JUPITER];
|
|
88
121
|
} & {
|
|
89
|
-
swap: ({ route }: import("@swapkit/helpers").SwapParams<"solana", import("@swapkit/
|
|
122
|
+
swap: ({ route }: import("@swapkit/helpers").SwapParams<"solana", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
90
123
|
};
|
|
91
124
|
radix: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
92
|
-
supportedSwapkitProviders: readonly [
|
|
125
|
+
supportedSwapkitProviders: readonly [];
|
|
93
126
|
} & {
|
|
94
|
-
swap: ({ route: { tx, sellAmount, sellAsset } }: import("@swapkit/helpers").SwapParams<"radix", import("@swapkit/
|
|
127
|
+
swap: ({ route: { tx, sellAmount, sellAsset } }: import("@swapkit/helpers").SwapParams<"radix", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
95
128
|
};
|
|
96
129
|
thorchain: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
97
130
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.THORCHAIN, import("@swapkit/helpers").ProviderName.THORCHAIN_STREAMING];
|
|
@@ -120,7 +153,7 @@ export declare const defaultPlugins: {
|
|
|
120
153
|
memo: string;
|
|
121
154
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
122
155
|
}) => Promise<string>;
|
|
123
|
-
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/
|
|
156
|
+
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/helpers").InboundAddressesItem>;
|
|
124
157
|
isAssetValueApproved: ({ assetValue }: {
|
|
125
158
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
126
159
|
}) => Promise<string | boolean | Promise<boolean>>;
|
|
@@ -139,7 +172,7 @@ export declare const defaultPlugins: {
|
|
|
139
172
|
type: "stake";
|
|
140
173
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
141
174
|
}) => Promise<string>;
|
|
142
|
-
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/
|
|
175
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
143
176
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
144
177
|
};
|
|
145
178
|
mayachain: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
@@ -169,7 +202,7 @@ export declare const defaultPlugins: {
|
|
|
169
202
|
memo: string;
|
|
170
203
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
171
204
|
}) => Promise<string>;
|
|
172
|
-
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/
|
|
205
|
+
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/helpers").InboundAddressesItem>;
|
|
173
206
|
isAssetValueApproved: ({ assetValue }: {
|
|
174
207
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
175
208
|
}) => Promise<string | boolean | Promise<boolean>>;
|
|
@@ -188,21 +221,23 @@ export declare const defaultPlugins: {
|
|
|
188
221
|
type: "stake";
|
|
189
222
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
190
223
|
}) => Promise<string>;
|
|
191
|
-
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/
|
|
224
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
192
225
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
193
226
|
};
|
|
194
227
|
evm: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
195
|
-
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.
|
|
228
|
+
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.OKX, import("@swapkit/helpers").ProviderName.ONEINCH, import("@swapkit/helpers").ProviderName.PANCAKESWAP, import("@swapkit/helpers").ProviderName.SUSHISWAP_V2, import("@swapkit/helpers").ProviderName.TRADERJOE_V2, import("@swapkit/helpers").ProviderName.UNISWAP_V2, import("@swapkit/helpers").ProviderName.UNISWAP_V3];
|
|
196
229
|
} & {
|
|
197
|
-
approveAssetValue: (
|
|
230
|
+
approveAssetValue: (params: {
|
|
198
231
|
spenderAddress: string;
|
|
199
232
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
200
|
-
|
|
201
|
-
|
|
233
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
234
|
+
}) => Promise<string | boolean>;
|
|
235
|
+
isAssetValueApproved: (params: {
|
|
202
236
|
spenderAddress: string;
|
|
203
237
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
204
|
-
|
|
205
|
-
|
|
238
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
239
|
+
}) => Promise<string | boolean>;
|
|
240
|
+
swap: ({ route: { tx, sellAsset }, feeOptionKey }: import("@swapkit/helpers").SwapParams<"evm", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
206
241
|
};
|
|
207
242
|
chainflip: (pluginParams: import("@swapkit/plugins").SwapKitPluginParams) => {
|
|
208
243
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.CHAINFLIP, import("@swapkit/helpers").ProviderName.CHAINFLIP_STREAMING];
|
|
@@ -216,18 +251,50 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
216
251
|
plugins?: Plugins;
|
|
217
252
|
wallets?: Wallets;
|
|
218
253
|
}): {
|
|
254
|
+
harbor: {
|
|
255
|
+
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.HARBOR];
|
|
256
|
+
} & {
|
|
257
|
+
approveAssetValue: (params: {
|
|
258
|
+
spenderAddress: string;
|
|
259
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
260
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
261
|
+
}) => Promise<string | boolean>;
|
|
262
|
+
isAssetValueApproved: (params: {
|
|
263
|
+
spenderAddress: string;
|
|
264
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
265
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
266
|
+
}) => Promise<string | boolean>;
|
|
267
|
+
swap: ({ route: { tx, sellAsset, memo, targetAddress, sellAmount }, feeOptionKey, }: import("@swapkit/helpers").SwapParams<"harbor", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
268
|
+
};
|
|
269
|
+
swapkit: {
|
|
270
|
+
supportedSwapkitProviders: never[];
|
|
271
|
+
} & {
|
|
272
|
+
approveAssetValue: (params: {
|
|
273
|
+
spenderAddress: string;
|
|
274
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
275
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
276
|
+
}) => Promise<string | boolean>;
|
|
277
|
+
isAssetValueApproved: (params: {
|
|
278
|
+
spenderAddress: string;
|
|
279
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
280
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
281
|
+
}) => Promise<string | boolean>;
|
|
282
|
+
swap: ({ route }: import("@swapkit/helpers").SwapParams<"swapkit", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
283
|
+
};
|
|
219
284
|
garden: {
|
|
220
285
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.GARDEN];
|
|
221
286
|
} & {
|
|
222
|
-
approveAssetValue: (
|
|
287
|
+
approveAssetValue: (params: {
|
|
223
288
|
spenderAddress: string;
|
|
224
289
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
225
|
-
|
|
226
|
-
|
|
290
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
291
|
+
}) => Promise<string | boolean>;
|
|
292
|
+
isAssetValueApproved: (params: {
|
|
227
293
|
spenderAddress: string;
|
|
228
294
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
229
|
-
|
|
230
|
-
|
|
295
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
296
|
+
}) => Promise<string | boolean>;
|
|
297
|
+
swap: ({ route }: import("@swapkit/helpers").SwapParams<"garden", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
231
298
|
};
|
|
232
299
|
near: {
|
|
233
300
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.NEAR];
|
|
@@ -240,17 +307,18 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
240
307
|
resolve(name: string): Promise<string | null>;
|
|
241
308
|
transfer(name: string, newOwner: string): Promise<string>;
|
|
242
309
|
};
|
|
243
|
-
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/
|
|
310
|
+
swap(swapParams: import("@swapkit/helpers").SwapParams<"near", import("@swapkit/helpers").QuoteResponseRoute>): Promise<any>;
|
|
311
|
+
swapWithUtxos(swapParams: import("@swapkit/plugins/near").SwapWithUtxosParams): Promise<string>;
|
|
244
312
|
};
|
|
245
313
|
solana: {
|
|
246
314
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.JUPITER];
|
|
247
315
|
} & {
|
|
248
|
-
swap: ({ route }: import("@swapkit/helpers").SwapParams<"solana", import("@swapkit/
|
|
316
|
+
swap: ({ route }: import("@swapkit/helpers").SwapParams<"solana", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
249
317
|
};
|
|
250
318
|
radix: {
|
|
251
|
-
supportedSwapkitProviders: readonly [
|
|
319
|
+
supportedSwapkitProviders: readonly [];
|
|
252
320
|
} & {
|
|
253
|
-
swap: ({ route: { tx, sellAmount, sellAsset } }: import("@swapkit/helpers").SwapParams<"radix", import("@swapkit/
|
|
321
|
+
swap: ({ route: { tx, sellAmount, sellAsset } }: import("@swapkit/helpers").SwapParams<"radix", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
254
322
|
};
|
|
255
323
|
thorchain: {
|
|
256
324
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.THORCHAIN, import("@swapkit/helpers").ProviderName.THORCHAIN_STREAMING];
|
|
@@ -279,7 +347,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
279
347
|
memo: string;
|
|
280
348
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
281
349
|
}) => Promise<string>;
|
|
282
|
-
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/
|
|
350
|
+
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/helpers").InboundAddressesItem>;
|
|
283
351
|
isAssetValueApproved: ({ assetValue }: {
|
|
284
352
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
285
353
|
}) => Promise<string | boolean | Promise<boolean>>;
|
|
@@ -298,7 +366,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
298
366
|
type: "stake";
|
|
299
367
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
300
368
|
}) => Promise<string>;
|
|
301
|
-
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/
|
|
369
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
302
370
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
303
371
|
};
|
|
304
372
|
mayachain: {
|
|
@@ -328,7 +396,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
328
396
|
memo: string;
|
|
329
397
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
330
398
|
}) => Promise<string>;
|
|
331
|
-
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/
|
|
399
|
+
getInboundDataByChain: <T extends import("@swapkit/types").Chain>(chain: T) => Promise<import("@swapkit/helpers").InboundAddressesItem>;
|
|
332
400
|
isAssetValueApproved: ({ assetValue }: {
|
|
333
401
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
334
402
|
}) => Promise<string | boolean | Promise<boolean>>;
|
|
@@ -347,21 +415,23 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
347
415
|
type: "stake";
|
|
348
416
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
349
417
|
}) => Promise<string>;
|
|
350
|
-
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/
|
|
418
|
+
swap: ({ feeOptionKey, route }: import("@swapkit/helpers").SwapParams<"thorchain" | "mayachain", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
351
419
|
withdraw: ({ memo, assetValue, percent, from, to }: import("@swapkit/plugins").WithdrawParams) => Promise<string>;
|
|
352
420
|
};
|
|
353
421
|
evm: {
|
|
354
|
-
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.
|
|
422
|
+
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.OKX, import("@swapkit/helpers").ProviderName.ONEINCH, import("@swapkit/helpers").ProviderName.PANCAKESWAP, import("@swapkit/helpers").ProviderName.SUSHISWAP_V2, import("@swapkit/helpers").ProviderName.TRADERJOE_V2, import("@swapkit/helpers").ProviderName.UNISWAP_V2, import("@swapkit/helpers").ProviderName.UNISWAP_V3];
|
|
355
423
|
} & {
|
|
356
|
-
approveAssetValue: (
|
|
424
|
+
approveAssetValue: (params: {
|
|
357
425
|
spenderAddress: string;
|
|
358
426
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
359
|
-
|
|
360
|
-
|
|
427
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
428
|
+
}) => Promise<string | boolean>;
|
|
429
|
+
isAssetValueApproved: (params: {
|
|
361
430
|
spenderAddress: string;
|
|
362
431
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
363
|
-
|
|
364
|
-
|
|
432
|
+
route?: import("@swapkit/helpers").QuoteResponseRoute;
|
|
433
|
+
}) => Promise<string | boolean>;
|
|
434
|
+
swap: ({ route: { tx, sellAsset }, feeOptionKey }: import("@swapkit/helpers").SwapParams<"evm", import("@swapkit/helpers").QuoteResponseRoute>) => Promise<string>;
|
|
365
435
|
};
|
|
366
436
|
chainflip: {
|
|
367
437
|
supportedSwapkitProviders: readonly [import("@swapkit/helpers").ProviderName.CHAINFLIP, import("@swapkit/helpers").ProviderName.CHAINFLIP_STREAMING];
|
|
@@ -374,7 +444,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
374
444
|
approveAssetValue: (assetValue: import("@swapkit/helpers").AssetValue, contractAddress: string) => Promise<string>;
|
|
375
445
|
disconnectAll: () => void;
|
|
376
446
|
disconnectChain: <T_1 extends import("@swapkit/types").Chain>(chain: T_1) => void;
|
|
377
|
-
estimateTransactionFee: <P extends "garden" | "near" | "solana" | "radix" | "thorchain" | "mayachain" | "evm" | "chainflip", T_1 extends "transfer" | "approve" | "swap">({ type, feeOptionKey, params, }: {
|
|
447
|
+
estimateTransactionFee: <P extends "harbor" | "swapkit" | "garden" | "near" | "solana" | "radix" | "thorchain" | "mayachain" | "evm" | "chainflip", T_1 extends "transfer" | "approve" | "swap">({ type, feeOptionKey, params, }: {
|
|
378
448
|
type: T_1;
|
|
379
449
|
params: {
|
|
380
450
|
transfer: import("@swapkit/server").EVMTransferParams | (import("@swapkit/helpers").GenericTransferParams & {
|
|
@@ -413,7 +483,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
413
483
|
}[] | undefined;
|
|
414
484
|
}[];
|
|
415
485
|
meta: {
|
|
416
|
-
tags: import("@swapkit/
|
|
486
|
+
tags: import("@swapkit/helpers").PriorityLabel[];
|
|
417
487
|
assets?: {
|
|
418
488
|
asset: string;
|
|
419
489
|
image: string;
|
|
@@ -481,7 +551,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
481
551
|
} | undefined;
|
|
482
552
|
priceImpact?: number | undefined;
|
|
483
553
|
referrer?: string | undefined;
|
|
484
|
-
txType?: import("@swapkit/
|
|
554
|
+
txType?: import("@swapkit/helpers").RouteQuoteTxType | undefined;
|
|
485
555
|
};
|
|
486
556
|
providers: import("@swapkit/helpers").ProviderName[];
|
|
487
557
|
routeId: string;
|
|
@@ -522,21 +592,126 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
522
592
|
memo: string;
|
|
523
593
|
msgs: {
|
|
524
594
|
typeUrl: string;
|
|
525
|
-
value:
|
|
595
|
+
value: {
|
|
596
|
+
typeUrl: string;
|
|
597
|
+
value: {
|
|
598
|
+
amount: {
|
|
599
|
+
amount: string;
|
|
600
|
+
denom: string;
|
|
601
|
+
}[];
|
|
602
|
+
fromAddress: string;
|
|
603
|
+
toAddress: string;
|
|
604
|
+
};
|
|
605
|
+
} | {
|
|
606
|
+
typeUrl: string;
|
|
607
|
+
value: {
|
|
608
|
+
coins: {
|
|
609
|
+
amount: string;
|
|
610
|
+
asset: {
|
|
611
|
+
chain: string;
|
|
612
|
+
symbol: string;
|
|
613
|
+
synth: boolean;
|
|
614
|
+
ticker: string;
|
|
615
|
+
};
|
|
616
|
+
}[];
|
|
617
|
+
memo: string;
|
|
618
|
+
signer: string;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
526
621
|
}[];
|
|
527
622
|
sequence: number;
|
|
528
|
-
} |
|
|
529
|
-
|
|
623
|
+
} | {
|
|
624
|
+
raw_data: {
|
|
625
|
+
contract: any;
|
|
626
|
+
expiration: number;
|
|
627
|
+
ref_block_bytes: string;
|
|
628
|
+
ref_block_hash: string;
|
|
629
|
+
timestamp: number;
|
|
630
|
+
};
|
|
631
|
+
raw_data_hex: string;
|
|
632
|
+
txID: string;
|
|
633
|
+
visible: boolean;
|
|
634
|
+
} | {
|
|
635
|
+
calldata: string[];
|
|
636
|
+
contractAddress: string;
|
|
637
|
+
entrypoint: string;
|
|
638
|
+
}[] | {
|
|
639
|
+
address: string;
|
|
640
|
+
amount: string;
|
|
641
|
+
payload?: string | undefined;
|
|
642
|
+
stateInit?: string | undefined;
|
|
643
|
+
}[] | undefined;
|
|
644
|
+
txType?: import("@swapkit/helpers").RouteQuoteTxType | undefined;
|
|
530
645
|
}> & {
|
|
531
646
|
pluginName?: P | undefined;
|
|
647
|
+
useApiTx?: boolean;
|
|
532
648
|
} & {
|
|
533
649
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
534
650
|
};
|
|
535
651
|
}[T_1];
|
|
536
652
|
feeOptionKey: import("@swapkit/helpers").FeeOption;
|
|
537
|
-
}) => Promise<import("@swapkit/helpers").AssetValue
|
|
653
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
538
654
|
getAddress: <T_1 extends import("@swapkit/types").Chain>(chain: T_1) => string;
|
|
539
655
|
getAllWallets: () => {
|
|
656
|
+
ADI: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Adi> & {
|
|
657
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
658
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
659
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
660
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
661
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/server").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
662
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
663
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
664
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
665
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/server").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
666
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/server").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
667
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/server").EstimateCallParams) => Promise<bigint>;
|
|
668
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/server").EVMTransferParams & {
|
|
669
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
670
|
+
funcName?: string;
|
|
671
|
+
funcParams?: unknown[];
|
|
672
|
+
txOverrides?: import("@swapkit/server").EVMTxParams;
|
|
673
|
+
data?: string;
|
|
674
|
+
}) => Promise<bigint>;
|
|
675
|
+
estimateGasPrices: () => Promise<{ [key_2 in import("@swapkit/helpers").FeeOption]: {
|
|
676
|
+
l1GasPrice?: bigint;
|
|
677
|
+
gasPrice?: bigint;
|
|
678
|
+
maxFeePerGas?: bigint;
|
|
679
|
+
maxPriorityFeePerGas?: bigint;
|
|
680
|
+
}; }>;
|
|
681
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
682
|
+
feeOption: import("@swapkit/helpers").FeeOption;
|
|
683
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
684
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
685
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
686
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
687
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").IsApprovedParams) => Promise<boolean>;
|
|
688
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
689
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
690
|
+
}) => Promise<string>;
|
|
691
|
+
signAuthorization: ((params: {
|
|
692
|
+
address: string;
|
|
693
|
+
nonce?: number | bigint;
|
|
694
|
+
chainId?: bigint;
|
|
695
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
696
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
697
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
698
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
699
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
700
|
+
};
|
|
701
|
+
APT: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Aptos> & {
|
|
702
|
+
broadcastTransaction: ({ senderAuthenticator, transaction, }: {
|
|
703
|
+
senderAuthenticator: Awaited<ReturnType<(transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/index").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>>>;
|
|
704
|
+
transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/index").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>;
|
|
705
|
+
}) => Promise<string>;
|
|
706
|
+
createTransaction: ({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/index").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>;
|
|
707
|
+
estimateTransactionFee: (params?: import("@swapkit/toolboxes/aptos/index").AptosCreateTransactionParams) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
708
|
+
getAddress: () => Promise<"" | `0x${string}`>;
|
|
709
|
+
getBalance: (targetAddress?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
710
|
+
signAndBroadcastTransaction: (transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/index").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<string>;
|
|
711
|
+
signTransaction: (transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/index").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>;
|
|
712
|
+
transfer: ({ assetValue, maxGasAmount, recipient }: import("@swapkit/toolboxes/aptos/index").AptosTransferParams) => Promise<string>;
|
|
713
|
+
validateAddress: typeof import("@swapkit/toolboxes/aptos/index").validateAptosAddress;
|
|
714
|
+
};
|
|
540
715
|
ARB: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Arbitrum> & {
|
|
541
716
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
542
717
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
@@ -562,9 +737,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
562
737
|
maxFeePerGas?: bigint;
|
|
563
738
|
maxPriorityFeePerGas?: bigint;
|
|
564
739
|
}; }>;
|
|
565
|
-
estimateTransactionFee: ({ feeOption,
|
|
740
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
566
741
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
567
|
-
chain: import("@swapkit/types").EVMChain;
|
|
568
742
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
569
743
|
getAddress: () => string | Promise<string> | undefined;
|
|
570
744
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -573,9 +747,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
573
747
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
574
748
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
575
749
|
}) => Promise<string>;
|
|
750
|
+
signAuthorization: ((params: {
|
|
751
|
+
address: string;
|
|
752
|
+
nonce?: number | bigint;
|
|
753
|
+
chainId?: bigint;
|
|
754
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
576
755
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
756
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
577
757
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
578
|
-
validateAddress: (
|
|
758
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
579
759
|
};
|
|
580
760
|
AURORA: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Aurora> & {
|
|
581
761
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -602,9 +782,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
602
782
|
maxFeePerGas?: bigint;
|
|
603
783
|
maxPriorityFeePerGas?: bigint;
|
|
604
784
|
}; }>;
|
|
605
|
-
estimateTransactionFee: ({ feeOption,
|
|
785
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
606
786
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
607
|
-
chain: import("@swapkit/types").EVMChain;
|
|
608
787
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
609
788
|
getAddress: () => string | Promise<string> | undefined;
|
|
610
789
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -613,9 +792,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
613
792
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
614
793
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
615
794
|
}) => Promise<string>;
|
|
795
|
+
signAuthorization: ((params: {
|
|
796
|
+
address: string;
|
|
797
|
+
nonce?: number | bigint;
|
|
798
|
+
chainId?: bigint;
|
|
799
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
616
800
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
801
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
617
802
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
618
|
-
validateAddress: (
|
|
803
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
619
804
|
};
|
|
620
805
|
AVAX: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Avalanche> & {
|
|
621
806
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -642,9 +827,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
642
827
|
maxFeePerGas?: bigint;
|
|
643
828
|
maxPriorityFeePerGas?: bigint;
|
|
644
829
|
}; }>;
|
|
645
|
-
estimateTransactionFee: ({ feeOption,
|
|
830
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
646
831
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
647
|
-
chain: import("@swapkit/types").EVMChain;
|
|
648
832
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
649
833
|
getAddress: () => string | Promise<string> | undefined;
|
|
650
834
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -653,9 +837,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
653
837
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
654
838
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
655
839
|
}) => Promise<string>;
|
|
840
|
+
signAuthorization: ((params: {
|
|
841
|
+
address: string;
|
|
842
|
+
nonce?: number | bigint;
|
|
843
|
+
chainId?: bigint;
|
|
844
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
656
845
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
846
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
657
847
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
658
|
-
validateAddress: (
|
|
848
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
659
849
|
};
|
|
660
850
|
BASE: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Base> & {
|
|
661
851
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -682,9 +872,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
682
872
|
maxFeePerGas?: bigint;
|
|
683
873
|
maxPriorityFeePerGas?: bigint;
|
|
684
874
|
}; }>;
|
|
685
|
-
estimateTransactionFee: ({ feeOption,
|
|
875
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
686
876
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
687
|
-
chain: import("@swapkit/types").EVMChain;
|
|
688
877
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
689
878
|
getAddress: () => string | Promise<string> | undefined;
|
|
690
879
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -693,9 +882,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
693
882
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
694
883
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
695
884
|
}) => Promise<string>;
|
|
885
|
+
signAuthorization: ((params: {
|
|
886
|
+
address: string;
|
|
887
|
+
nonce?: number | bigint;
|
|
888
|
+
chainId?: bigint;
|
|
889
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
696
890
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
891
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
697
892
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
698
|
-
validateAddress: (
|
|
893
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
699
894
|
};
|
|
700
895
|
BERA: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Berachain> & {
|
|
701
896
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -722,9 +917,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
722
917
|
maxFeePerGas?: bigint;
|
|
723
918
|
maxPriorityFeePerGas?: bigint;
|
|
724
919
|
}; }>;
|
|
725
|
-
estimateTransactionFee: ({ feeOption,
|
|
920
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
726
921
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
727
|
-
chain: import("@swapkit/types").EVMChain;
|
|
728
922
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
729
923
|
getAddress: () => string | Promise<string> | undefined;
|
|
730
924
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -733,9 +927,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
733
927
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
734
928
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
735
929
|
}) => Promise<string>;
|
|
930
|
+
signAuthorization: ((params: {
|
|
931
|
+
address: string;
|
|
932
|
+
nonce?: number | bigint;
|
|
933
|
+
chainId?: bigint;
|
|
934
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
736
935
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
936
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
737
937
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
738
|
-
validateAddress: (
|
|
938
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
739
939
|
};
|
|
740
940
|
BSC: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.BinanceSmartChain> & {
|
|
741
941
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -762,9 +962,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
762
962
|
maxFeePerGas?: bigint;
|
|
763
963
|
maxPriorityFeePerGas?: bigint;
|
|
764
964
|
}; }>;
|
|
765
|
-
estimateTransactionFee: ({ feeOption,
|
|
965
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
766
966
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
767
|
-
chain: import("@swapkit/types").EVMChain;
|
|
768
967
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
769
968
|
getAddress: () => string | Promise<string> | undefined;
|
|
770
969
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -773,24 +972,56 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
773
972
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
774
973
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
775
974
|
}) => Promise<string>;
|
|
975
|
+
signAuthorization: ((params: {
|
|
976
|
+
address: string;
|
|
977
|
+
nonce?: number | bigint;
|
|
978
|
+
chainId?: bigint;
|
|
979
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
776
980
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
981
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
777
982
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
778
|
-
validateAddress: (
|
|
983
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
779
984
|
};
|
|
780
985
|
BTC: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Bitcoin> & {
|
|
781
986
|
accumulative: typeof import("@swapkit/server").accumulative;
|
|
782
987
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
988
|
+
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/server").RBFTransactionParams) => Promise<{
|
|
989
|
+
newFee: number;
|
|
990
|
+
originalFee: number;
|
|
991
|
+
txid: string;
|
|
992
|
+
}>;
|
|
783
993
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
784
994
|
createKeysForPath: (params: {
|
|
785
995
|
wif?: string;
|
|
786
996
|
phrase?: string;
|
|
787
997
|
derivationPath?: string;
|
|
788
|
-
}) =>
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
998
|
+
}) => {
|
|
999
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1000
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1001
|
+
};
|
|
1002
|
+
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/server").RBFTransactionParams) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1003
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
792
1004
|
inputs: import("@swapkit/server").UTXOType[];
|
|
1005
|
+
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1006
|
+
utxos: {
|
|
1007
|
+
address: string;
|
|
1008
|
+
hash: string;
|
|
1009
|
+
index: number;
|
|
1010
|
+
txHex: string | undefined;
|
|
1011
|
+
value: number;
|
|
1012
|
+
witnessUtxo: {
|
|
1013
|
+
script: Buffer<ArrayBuffer>;
|
|
1014
|
+
value: number;
|
|
1015
|
+
};
|
|
1016
|
+
}[];
|
|
793
1017
|
}>;
|
|
1018
|
+
deriveAddressAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => {
|
|
1019
|
+
address: string;
|
|
1020
|
+
change: boolean;
|
|
1021
|
+
index: number;
|
|
1022
|
+
pubkey: string;
|
|
1023
|
+
} | undefined;
|
|
1024
|
+
derivePrivateKeyAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
794
1025
|
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
795
1026
|
from: string;
|
|
796
1027
|
memo?: string;
|
|
@@ -807,9 +1038,12 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
807
1038
|
feeRate?: number;
|
|
808
1039
|
fetchTxHex?: boolean;
|
|
809
1040
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
810
|
-
getAddress: () => Promise<string | undefined>;
|
|
811
|
-
getAddressFromKeys: (keys:
|
|
1041
|
+
getAddress: () => string | Promise<string> | Promise<undefined>;
|
|
1042
|
+
getAddressFromKeys: (keys: {
|
|
1043
|
+
publicKey: Uint8Array;
|
|
1044
|
+
}) => string;
|
|
812
1045
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1046
|
+
getExtendedPublicKey: () => string | undefined;
|
|
813
1047
|
getFeeRates: () => Promise<{
|
|
814
1048
|
average: number;
|
|
815
1049
|
fast: number;
|
|
@@ -820,27 +1054,61 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
820
1054
|
feeRate?: number;
|
|
821
1055
|
}) => Promise<{
|
|
822
1056
|
fee: number;
|
|
823
|
-
inputs:
|
|
1057
|
+
inputs: {
|
|
1058
|
+
address: string;
|
|
1059
|
+
hash: string;
|
|
1060
|
+
index: number;
|
|
1061
|
+
txHex: string | undefined;
|
|
1062
|
+
value: number;
|
|
1063
|
+
witnessUtxo: {
|
|
1064
|
+
script: Buffer<ArrayBuffer>;
|
|
1065
|
+
value: number;
|
|
1066
|
+
};
|
|
1067
|
+
}[];
|
|
824
1068
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
825
1069
|
} | {
|
|
826
1070
|
fee: number;
|
|
827
1071
|
inputs?: undefined;
|
|
828
1072
|
outputs?: undefined;
|
|
829
1073
|
}>;
|
|
1074
|
+
getNetworkForChain: () => import("@swapkit/utxo-signer").BTCNetwork;
|
|
830
1075
|
getPrivateKeyFromMnemonic: (params: {
|
|
831
1076
|
phrase: string;
|
|
832
1077
|
derivationPath: string;
|
|
833
1078
|
}) => string;
|
|
834
|
-
|
|
1079
|
+
isRBFEnabled: (txid: string) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").RBFStatusResult>;
|
|
1080
|
+
keys: {
|
|
1081
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1082
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
resolveDerivationIndex: ({ address, gapLimit }: import("@swapkit/server").ResolveDerivationParams) => {
|
|
1085
|
+
change: boolean;
|
|
1086
|
+
index: number;
|
|
1087
|
+
} | undefined;
|
|
1088
|
+
signAndBroadcastTransaction: (tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>) => Promise<string>;
|
|
1089
|
+
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
1090
|
+
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1091
|
+
inputDerivations: import("@swapkit/server").InputDerivation[];
|
|
1092
|
+
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1093
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/server").UTXOTransferParams & {
|
|
1094
|
+
enableRBF?: boolean;
|
|
1095
|
+
}) => Promise<string>;
|
|
1096
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
1097
|
+
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1098
|
+
recipient: string;
|
|
1099
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1100
|
+
memo?: string;
|
|
1101
|
+
feeRate?: number;
|
|
1102
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1103
|
+
changeAddress?: string;
|
|
1104
|
+
}) => Promise<string>;
|
|
835
1105
|
validateAddress: (address: string) => boolean;
|
|
836
1106
|
};
|
|
837
1107
|
BCH: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.BitcoinCash> & {
|
|
838
1108
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
839
|
-
buildTx: ({ assetValue, recipient, memo, feeRate, sender
|
|
840
|
-
setSigHashType?: boolean;
|
|
841
|
-
}) => Promise<{
|
|
1109
|
+
buildTx: ({ assetValue, recipient, memo, feeRate, sender }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
842
1110
|
inputs: import("@swapkit/server").UTXOType[];
|
|
843
|
-
|
|
1111
|
+
tx: import("@swapkit/utxo-signer").Transaction;
|
|
844
1112
|
utxos: {
|
|
845
1113
|
address: string;
|
|
846
1114
|
hash: string;
|
|
@@ -854,12 +1122,23 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
854
1122
|
}[];
|
|
855
1123
|
}>;
|
|
856
1124
|
createTransaction: ({ assetValue, recipient, memo, feeRate, sender }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
857
|
-
|
|
858
|
-
|
|
1125
|
+
inputs: import("@swapkit/server").UTXOType[];
|
|
1126
|
+
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1127
|
+
utxos: {
|
|
1128
|
+
address: string;
|
|
1129
|
+
hash: string;
|
|
1130
|
+
index: number;
|
|
1131
|
+
txHex: string | undefined;
|
|
1132
|
+
value: number;
|
|
1133
|
+
witnessUtxo: {
|
|
1134
|
+
script: Buffer<ArrayBuffer>;
|
|
1135
|
+
value: number;
|
|
1136
|
+
};
|
|
1137
|
+
}[];
|
|
859
1138
|
}>;
|
|
860
1139
|
getAddress: () => Promise<string | undefined>;
|
|
861
1140
|
getAddressFromKeys: (keys: {
|
|
862
|
-
|
|
1141
|
+
publicKey: Uint8Array;
|
|
863
1142
|
}) => string;
|
|
864
1143
|
getBalance: (address: string, _scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
865
1144
|
getFeeRates: () => Promise<{
|
|
@@ -870,14 +1149,30 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
870
1149
|
stripPrefix: typeof import("@swapkit/server").stripPrefix;
|
|
871
1150
|
stripToCashAddress: typeof import("@swapkit/server").stripToCashAddress;
|
|
872
1151
|
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
873
|
-
validateAddress: typeof import("@swapkit/server").
|
|
1152
|
+
validateAddress: typeof import("@swapkit/server").validateBchAddress;
|
|
874
1153
|
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1154
|
+
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/server").RBFTransactionParams) => Promise<{
|
|
1155
|
+
newFee: number;
|
|
1156
|
+
originalFee: number;
|
|
1157
|
+
txid: string;
|
|
1158
|
+
}>;
|
|
875
1159
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
876
1160
|
createKeysForPath: (params: {
|
|
877
1161
|
wif?: string;
|
|
878
1162
|
phrase?: string;
|
|
879
1163
|
derivationPath?: string;
|
|
880
|
-
}) =>
|
|
1164
|
+
}) => {
|
|
1165
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1166
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1167
|
+
};
|
|
1168
|
+
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/server").RBFTransactionParams) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1169
|
+
deriveAddressAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => {
|
|
1170
|
+
address: string;
|
|
1171
|
+
change: boolean;
|
|
1172
|
+
index: number;
|
|
1173
|
+
pubkey: string;
|
|
1174
|
+
} | undefined;
|
|
1175
|
+
derivePrivateKeyAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
881
1176
|
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
882
1177
|
from: string;
|
|
883
1178
|
memo?: string;
|
|
@@ -894,22 +1189,57 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
894
1189
|
feeRate?: number;
|
|
895
1190
|
fetchTxHex?: boolean;
|
|
896
1191
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1192
|
+
getExtendedPublicKey: () => string | undefined;
|
|
897
1193
|
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/server").UTXOBuildTxParams, "feeRate"> & {
|
|
898
1194
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
899
1195
|
feeRate?: number;
|
|
900
1196
|
}) => Promise<{
|
|
901
1197
|
fee: number;
|
|
902
|
-
inputs:
|
|
1198
|
+
inputs: {
|
|
1199
|
+
address: string;
|
|
1200
|
+
hash: string;
|
|
1201
|
+
index: number;
|
|
1202
|
+
txHex: string | undefined;
|
|
1203
|
+
value: number;
|
|
1204
|
+
witnessUtxo: {
|
|
1205
|
+
script: Buffer<ArrayBuffer>;
|
|
1206
|
+
value: number;
|
|
1207
|
+
};
|
|
1208
|
+
}[];
|
|
903
1209
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
904
1210
|
} | {
|
|
905
1211
|
fee: number;
|
|
906
1212
|
inputs?: undefined;
|
|
907
1213
|
outputs?: undefined;
|
|
908
1214
|
}>;
|
|
1215
|
+
getNetworkForChain: () => import("@swapkit/utxo-signer").BTCNetwork;
|
|
909
1216
|
getPrivateKeyFromMnemonic: (params: {
|
|
910
1217
|
phrase: string;
|
|
911
1218
|
derivationPath: string;
|
|
912
1219
|
}) => string;
|
|
1220
|
+
isRBFEnabled: (txid: string) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").RBFStatusResult>;
|
|
1221
|
+
keys: {
|
|
1222
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1223
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1224
|
+
} | undefined;
|
|
1225
|
+
resolveDerivationIndex: ({ address, gapLimit }: import("@swapkit/server").ResolveDerivationParams) => {
|
|
1226
|
+
change: boolean;
|
|
1227
|
+
index: number;
|
|
1228
|
+
} | undefined;
|
|
1229
|
+
signAndBroadcastTransaction: (tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>) => Promise<string>;
|
|
1230
|
+
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
1231
|
+
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1232
|
+
inputDerivations: import("@swapkit/server").InputDerivation[];
|
|
1233
|
+
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1234
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
1235
|
+
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1236
|
+
recipient: string;
|
|
1237
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1238
|
+
memo?: string;
|
|
1239
|
+
feeRate?: number;
|
|
1240
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1241
|
+
changeAddress?: string;
|
|
1242
|
+
}) => Promise<string>;
|
|
913
1243
|
};
|
|
914
1244
|
BOTANIX: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Botanix> & {
|
|
915
1245
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -936,9 +1266,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
936
1266
|
maxFeePerGas?: bigint;
|
|
937
1267
|
maxPriorityFeePerGas?: bigint;
|
|
938
1268
|
}; }>;
|
|
939
|
-
estimateTransactionFee: ({ feeOption,
|
|
1269
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
940
1270
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
941
|
-
chain: import("@swapkit/types").EVMChain;
|
|
942
1271
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
943
1272
|
getAddress: () => string | Promise<string> | undefined;
|
|
944
1273
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -947,49 +1276,48 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
947
1276
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
948
1277
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
949
1278
|
}) => Promise<string>;
|
|
1279
|
+
signAuthorization: ((params: {
|
|
1280
|
+
address: string;
|
|
1281
|
+
nonce?: number | bigint;
|
|
1282
|
+
chainId?: bigint;
|
|
1283
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
950
1284
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1285
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
951
1286
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
952
|
-
validateAddress: (
|
|
1287
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
953
1288
|
};
|
|
954
1289
|
ADA: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Cardano> & {
|
|
955
|
-
createTransaction: ({ recipient, assetValue, memo, }: {
|
|
956
|
-
|
|
957
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
958
|
-
memo?: string;
|
|
959
|
-
}) => Promise<{
|
|
960
|
-
tx: import("@meshsdk/core").Transaction;
|
|
1290
|
+
createTransaction: ({ sender, recipient, assetValue, memo, pureLovelaceOnly, }: import("@swapkit/server").CardanoCreateTransactionParams) => Promise<{
|
|
1291
|
+
tx: import("@stricahq/typhonjs").Transaction;
|
|
961
1292
|
unsignedTx: string;
|
|
962
1293
|
}>;
|
|
963
|
-
estimateTransactionFee: () => Promise<import("@swapkit/helpers").AssetValue>;
|
|
964
|
-
getAddress: () => string
|
|
1294
|
+
estimateTransactionFee: (params?: import("@swapkit/server").CardanoCreateTransactionParams) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1295
|
+
getAddress: () => Promise<string>;
|
|
965
1296
|
getBalance: (addressParam?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
memo?: string;
|
|
971
|
-
}) => Promise<string>;
|
|
972
|
-
validateAddress: (address: string) => boolean;
|
|
1297
|
+
signAndBroadcastTransaction: (txInput: string) => Promise<string>;
|
|
1298
|
+
signTransaction: (tx: string) => Promise<string>;
|
|
1299
|
+
transfer: ({ recipient, assetValue, memo }: import("@swapkit/server").CardanoTransferParams) => Promise<string>;
|
|
1300
|
+
validateAddress: typeof import("@swapkit/server").validateCardanoAddress;
|
|
973
1301
|
};
|
|
974
1302
|
FLIP: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Chainflip> & {
|
|
975
|
-
api: import("@polkadot/api").ApiPromise;
|
|
976
1303
|
broadcast: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
977
1304
|
convertAddress: (address: string, newPrefix: number) => string;
|
|
978
1305
|
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
979
|
-
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined
|
|
1306
|
+
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => Promise<import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined>;
|
|
980
1307
|
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
981
1308
|
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
982
|
-
estimateTransactionFee: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<import("@swapkit/helpers").AssetValue
|
|
1309
|
+
estimateTransactionFee: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
983
1310
|
gasAsset: import("@swapkit/helpers").AssetValue;
|
|
984
|
-
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined
|
|
985
|
-
|
|
1311
|
+
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => Promise<string | undefined>;
|
|
1312
|
+
getApi: () => Promise<import("@polkadot/api").ApiPromise>;
|
|
1313
|
+
getBalance: (targetAddress?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
986
1314
|
network: import("@swapkit/server").SubstrateNetwork;
|
|
987
1315
|
sign: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
988
1316
|
signAndBroadcast: ({ tx, callback, address, }: {
|
|
989
1317
|
tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">;
|
|
990
1318
|
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
991
1319
|
address?: string;
|
|
992
|
-
}) =>
|
|
1320
|
+
}) => Promise<string | (() => void)>;
|
|
993
1321
|
transfer: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<string>;
|
|
994
1322
|
validateAddress: (address: string) => boolean;
|
|
995
1323
|
};
|
|
@@ -1018,9 +1346,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1018
1346
|
maxFeePerGas?: bigint;
|
|
1019
1347
|
maxPriorityFeePerGas?: bigint;
|
|
1020
1348
|
}; }>;
|
|
1021
|
-
estimateTransactionFee: ({ feeOption,
|
|
1349
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1022
1350
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1023
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1024
1351
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1025
1352
|
getAddress: () => string | Promise<string> | undefined;
|
|
1026
1353
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1029,9 +1356,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1029
1356
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1030
1357
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1031
1358
|
}) => Promise<string>;
|
|
1359
|
+
signAuthorization: ((params: {
|
|
1360
|
+
address: string;
|
|
1361
|
+
nonce?: number | bigint;
|
|
1362
|
+
chainId?: bigint;
|
|
1363
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1032
1364
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1365
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1033
1366
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1034
|
-
validateAddress: (
|
|
1367
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1035
1368
|
};
|
|
1036
1369
|
CORN: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Corn> & {
|
|
1037
1370
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -1058,9 +1391,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1058
1391
|
maxFeePerGas?: bigint;
|
|
1059
1392
|
maxPriorityFeePerGas?: bigint;
|
|
1060
1393
|
}; }>;
|
|
1061
|
-
estimateTransactionFee: ({ feeOption,
|
|
1394
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1062
1395
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1063
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1064
1396
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1065
1397
|
getAddress: () => string | Promise<string> | undefined;
|
|
1066
1398
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1069,9 +1401,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1069
1401
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1070
1402
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1071
1403
|
}) => Promise<string>;
|
|
1404
|
+
signAuthorization: ((params: {
|
|
1405
|
+
address: string;
|
|
1406
|
+
nonce?: number | bigint;
|
|
1407
|
+
chainId?: bigint;
|
|
1408
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1072
1409
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1410
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1073
1411
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1074
|
-
validateAddress: (
|
|
1412
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1075
1413
|
};
|
|
1076
1414
|
GAIA: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Cosmos> & {
|
|
1077
1415
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
@@ -1095,10 +1433,9 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1095
1433
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1096
1434
|
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
1097
1435
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
}) => Promise<string>;
|
|
1436
|
+
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
1437
|
+
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
1438
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1102
1439
|
validateAddress: (address: string) => boolean;
|
|
1103
1440
|
verifySignature: ({ signature, message, address, }: {
|
|
1104
1441
|
signature: string;
|
|
@@ -1131,9 +1468,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1131
1468
|
maxFeePerGas?: bigint;
|
|
1132
1469
|
maxPriorityFeePerGas?: bigint;
|
|
1133
1470
|
}; }>;
|
|
1134
|
-
estimateTransactionFee: ({ feeOption,
|
|
1471
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1135
1472
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1136
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1137
1473
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1138
1474
|
getAddress: () => string | Promise<string> | undefined;
|
|
1139
1475
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1142,24 +1478,56 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1142
1478
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1143
1479
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1144
1480
|
}) => Promise<string>;
|
|
1481
|
+
signAuthorization: ((params: {
|
|
1482
|
+
address: string;
|
|
1483
|
+
nonce?: number | bigint;
|
|
1484
|
+
chainId?: bigint;
|
|
1485
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1145
1486
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1487
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1146
1488
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1147
|
-
validateAddress: (
|
|
1489
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1148
1490
|
};
|
|
1149
1491
|
DASH: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Dash> & {
|
|
1150
1492
|
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1151
1493
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
1494
|
+
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/server").RBFTransactionParams) => Promise<{
|
|
1495
|
+
newFee: number;
|
|
1496
|
+
originalFee: number;
|
|
1497
|
+
txid: string;
|
|
1498
|
+
}>;
|
|
1152
1499
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1153
1500
|
createKeysForPath: (params: {
|
|
1154
1501
|
wif?: string;
|
|
1155
1502
|
phrase?: string;
|
|
1156
1503
|
derivationPath?: string;
|
|
1157
|
-
}) =>
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1504
|
+
}) => {
|
|
1505
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1506
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1507
|
+
};
|
|
1508
|
+
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/server").RBFTransactionParams) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1509
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1161
1510
|
inputs: import("@swapkit/server").UTXOType[];
|
|
1511
|
+
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1512
|
+
utxos: {
|
|
1513
|
+
address: string;
|
|
1514
|
+
hash: string;
|
|
1515
|
+
index: number;
|
|
1516
|
+
txHex: string | undefined;
|
|
1517
|
+
value: number;
|
|
1518
|
+
witnessUtxo: {
|
|
1519
|
+
script: Buffer<ArrayBuffer>;
|
|
1520
|
+
value: number;
|
|
1521
|
+
};
|
|
1522
|
+
}[];
|
|
1162
1523
|
}>;
|
|
1524
|
+
deriveAddressAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => {
|
|
1525
|
+
address: string;
|
|
1526
|
+
change: boolean;
|
|
1527
|
+
index: number;
|
|
1528
|
+
pubkey: string;
|
|
1529
|
+
} | undefined;
|
|
1530
|
+
derivePrivateKeyAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
1163
1531
|
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1164
1532
|
from: string;
|
|
1165
1533
|
memo?: string;
|
|
@@ -1176,9 +1544,12 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1176
1544
|
feeRate?: number;
|
|
1177
1545
|
fetchTxHex?: boolean;
|
|
1178
1546
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1179
|
-
getAddress: () => Promise<string | undefined>;
|
|
1180
|
-
getAddressFromKeys: (keys:
|
|
1547
|
+
getAddress: () => string | Promise<string> | Promise<undefined>;
|
|
1548
|
+
getAddressFromKeys: (keys: {
|
|
1549
|
+
publicKey: Uint8Array;
|
|
1550
|
+
}) => string;
|
|
1181
1551
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1552
|
+
getExtendedPublicKey: () => string | undefined;
|
|
1182
1553
|
getFeeRates: () => Promise<{
|
|
1183
1554
|
average: number;
|
|
1184
1555
|
fast: number;
|
|
@@ -1189,34 +1560,96 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1189
1560
|
feeRate?: number;
|
|
1190
1561
|
}) => Promise<{
|
|
1191
1562
|
fee: number;
|
|
1192
|
-
inputs:
|
|
1563
|
+
inputs: {
|
|
1564
|
+
address: string;
|
|
1565
|
+
hash: string;
|
|
1566
|
+
index: number;
|
|
1567
|
+
txHex: string | undefined;
|
|
1568
|
+
value: number;
|
|
1569
|
+
witnessUtxo: {
|
|
1570
|
+
script: Buffer<ArrayBuffer>;
|
|
1571
|
+
value: number;
|
|
1572
|
+
};
|
|
1573
|
+
}[];
|
|
1193
1574
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1194
1575
|
} | {
|
|
1195
1576
|
fee: number;
|
|
1196
1577
|
inputs?: undefined;
|
|
1197
1578
|
outputs?: undefined;
|
|
1198
1579
|
}>;
|
|
1580
|
+
getNetworkForChain: () => import("@swapkit/utxo-signer").BTCNetwork;
|
|
1199
1581
|
getPrivateKeyFromMnemonic: (params: {
|
|
1200
1582
|
phrase: string;
|
|
1201
1583
|
derivationPath: string;
|
|
1202
1584
|
}) => string;
|
|
1203
|
-
|
|
1585
|
+
isRBFEnabled: (txid: string) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").RBFStatusResult>;
|
|
1586
|
+
keys: {
|
|
1587
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1588
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1589
|
+
} | undefined;
|
|
1590
|
+
resolveDerivationIndex: ({ address, gapLimit }: import("@swapkit/server").ResolveDerivationParams) => {
|
|
1591
|
+
change: boolean;
|
|
1592
|
+
index: number;
|
|
1593
|
+
} | undefined;
|
|
1594
|
+
signAndBroadcastTransaction: (tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>) => Promise<string>;
|
|
1595
|
+
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
1596
|
+
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1597
|
+
inputDerivations: import("@swapkit/server").InputDerivation[];
|
|
1598
|
+
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1599
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/server").UTXOTransferParams & {
|
|
1600
|
+
enableRBF?: boolean;
|
|
1601
|
+
}) => Promise<string>;
|
|
1602
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
1603
|
+
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1604
|
+
recipient: string;
|
|
1605
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1606
|
+
memo?: string;
|
|
1607
|
+
feeRate?: number;
|
|
1608
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1609
|
+
changeAddress?: string;
|
|
1610
|
+
}) => Promise<string>;
|
|
1204
1611
|
validateAddress: (address: string) => boolean;
|
|
1205
1612
|
};
|
|
1206
1613
|
DOGE: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Dogecoin> & {
|
|
1207
1614
|
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1208
1615
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
1616
|
+
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/server").RBFTransactionParams) => Promise<{
|
|
1617
|
+
newFee: number;
|
|
1618
|
+
originalFee: number;
|
|
1619
|
+
txid: string;
|
|
1620
|
+
}>;
|
|
1209
1621
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1210
1622
|
createKeysForPath: (params: {
|
|
1211
1623
|
wif?: string;
|
|
1212
1624
|
phrase?: string;
|
|
1213
1625
|
derivationPath?: string;
|
|
1214
|
-
}) =>
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1626
|
+
}) => {
|
|
1627
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1628
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1629
|
+
};
|
|
1630
|
+
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/server").RBFTransactionParams) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1631
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1218
1632
|
inputs: import("@swapkit/server").UTXOType[];
|
|
1633
|
+
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1634
|
+
utxos: {
|
|
1635
|
+
address: string;
|
|
1636
|
+
hash: string;
|
|
1637
|
+
index: number;
|
|
1638
|
+
txHex: string | undefined;
|
|
1639
|
+
value: number;
|
|
1640
|
+
witnessUtxo: {
|
|
1641
|
+
script: Buffer<ArrayBuffer>;
|
|
1642
|
+
value: number;
|
|
1643
|
+
};
|
|
1644
|
+
}[];
|
|
1219
1645
|
}>;
|
|
1646
|
+
deriveAddressAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => {
|
|
1647
|
+
address: string;
|
|
1648
|
+
change: boolean;
|
|
1649
|
+
index: number;
|
|
1650
|
+
pubkey: string;
|
|
1651
|
+
} | undefined;
|
|
1652
|
+
derivePrivateKeyAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
1220
1653
|
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1221
1654
|
from: string;
|
|
1222
1655
|
memo?: string;
|
|
@@ -1233,9 +1666,12 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1233
1666
|
feeRate?: number;
|
|
1234
1667
|
fetchTxHex?: boolean;
|
|
1235
1668
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1236
|
-
getAddress: () => Promise<string | undefined>;
|
|
1237
|
-
getAddressFromKeys: (keys:
|
|
1669
|
+
getAddress: () => string | Promise<string> | Promise<undefined>;
|
|
1670
|
+
getAddressFromKeys: (keys: {
|
|
1671
|
+
publicKey: Uint8Array;
|
|
1672
|
+
}) => string;
|
|
1238
1673
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1674
|
+
getExtendedPublicKey: () => string | undefined;
|
|
1239
1675
|
getFeeRates: () => Promise<{
|
|
1240
1676
|
average: number;
|
|
1241
1677
|
fast: number;
|
|
@@ -1246,26 +1682,62 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1246
1682
|
feeRate?: number;
|
|
1247
1683
|
}) => Promise<{
|
|
1248
1684
|
fee: number;
|
|
1249
|
-
inputs:
|
|
1685
|
+
inputs: {
|
|
1686
|
+
address: string;
|
|
1687
|
+
hash: string;
|
|
1688
|
+
index: number;
|
|
1689
|
+
txHex: string | undefined;
|
|
1690
|
+
value: number;
|
|
1691
|
+
witnessUtxo: {
|
|
1692
|
+
script: Buffer<ArrayBuffer>;
|
|
1693
|
+
value: number;
|
|
1694
|
+
};
|
|
1695
|
+
}[];
|
|
1250
1696
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1251
1697
|
} | {
|
|
1252
1698
|
fee: number;
|
|
1253
1699
|
inputs?: undefined;
|
|
1254
1700
|
outputs?: undefined;
|
|
1255
1701
|
}>;
|
|
1702
|
+
getNetworkForChain: () => import("@swapkit/utxo-signer").BTCNetwork;
|
|
1256
1703
|
getPrivateKeyFromMnemonic: (params: {
|
|
1257
1704
|
phrase: string;
|
|
1258
1705
|
derivationPath: string;
|
|
1259
1706
|
}) => string;
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1707
|
+
isRBFEnabled: (txid: string) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").RBFStatusResult>;
|
|
1708
|
+
keys: {
|
|
1709
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1710
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1711
|
+
} | undefined;
|
|
1712
|
+
resolveDerivationIndex: ({ address, gapLimit }: import("@swapkit/server").ResolveDerivationParams) => {
|
|
1713
|
+
change: boolean;
|
|
1714
|
+
index: number;
|
|
1715
|
+
} | undefined;
|
|
1716
|
+
signAndBroadcastTransaction: (tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>) => Promise<string>;
|
|
1717
|
+
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
1718
|
+
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1719
|
+
inputDerivations: import("@swapkit/server").InputDerivation[];
|
|
1720
|
+
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1721
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/server").UTXOTransferParams & {
|
|
1722
|
+
enableRBF?: boolean;
|
|
1723
|
+
}) => Promise<string>;
|
|
1724
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
1725
|
+
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1726
|
+
recipient: string;
|
|
1727
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1728
|
+
memo?: string;
|
|
1729
|
+
feeRate?: number;
|
|
1730
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1731
|
+
changeAddress?: string;
|
|
1732
|
+
}) => Promise<string>;
|
|
1733
|
+
validateAddress: (address: string) => boolean;
|
|
1734
|
+
};
|
|
1735
|
+
ETH: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Ethereum> & {
|
|
1736
|
+
multicall: (callTuples: {
|
|
1737
|
+
address: string;
|
|
1738
|
+
data: string;
|
|
1739
|
+
}[], multicallAddress?: string, funcName?: string, feeOptionKey?: import("@swapkit/helpers").FeeOption) => Promise<string>;
|
|
1740
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
1269
1741
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
1270
1742
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1271
1743
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/server").CallParams) => Promise<T_1>;
|
|
@@ -1289,9 +1761,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1289
1761
|
maxFeePerGas?: bigint;
|
|
1290
1762
|
maxPriorityFeePerGas?: bigint;
|
|
1291
1763
|
}; }>;
|
|
1292
|
-
estimateTransactionFee: ({ feeOption,
|
|
1764
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1293
1765
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1294
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1295
1766
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1296
1767
|
getAddress: () => string | Promise<string> | undefined;
|
|
1297
1768
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1300,9 +1771,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1300
1771
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1301
1772
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1302
1773
|
}) => Promise<string>;
|
|
1774
|
+
signAuthorization: ((params: {
|
|
1775
|
+
address: string;
|
|
1776
|
+
nonce?: number | bigint;
|
|
1777
|
+
chainId?: bigint;
|
|
1778
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1303
1779
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1780
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1304
1781
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1305
|
-
validateAddress: (
|
|
1782
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1306
1783
|
};
|
|
1307
1784
|
GNO: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Gnosis> & {
|
|
1308
1785
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -1329,9 +1806,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1329
1806
|
maxFeePerGas?: bigint;
|
|
1330
1807
|
maxPriorityFeePerGas?: bigint;
|
|
1331
1808
|
}; }>;
|
|
1332
|
-
estimateTransactionFee: ({ feeOption,
|
|
1809
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1333
1810
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1334
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1335
1811
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1336
1812
|
getAddress: () => string | Promise<string> | undefined;
|
|
1337
1813
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1340,9 +1816,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1340
1816
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1341
1817
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1342
1818
|
}) => Promise<string>;
|
|
1819
|
+
signAuthorization: ((params: {
|
|
1820
|
+
address: string;
|
|
1821
|
+
nonce?: number | bigint;
|
|
1822
|
+
chainId?: bigint;
|
|
1823
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1343
1824
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1825
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1344
1826
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1345
|
-
validateAddress: (
|
|
1827
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1346
1828
|
};
|
|
1347
1829
|
HARBOR: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Harbor> & {
|
|
1348
1830
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
@@ -1366,10 +1848,9 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1366
1848
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1367
1849
|
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
1368
1850
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
}) => Promise<string>;
|
|
1851
|
+
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
1852
|
+
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
1853
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1373
1854
|
validateAddress: (address: string) => boolean;
|
|
1374
1855
|
verifySignature: ({ signature, message, address, }: {
|
|
1375
1856
|
signature: string;
|
|
@@ -1402,9 +1883,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1402
1883
|
maxFeePerGas?: bigint;
|
|
1403
1884
|
maxPriorityFeePerGas?: bigint;
|
|
1404
1885
|
}; }>;
|
|
1405
|
-
estimateTransactionFee: ({ feeOption,
|
|
1886
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1406
1887
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1407
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1408
1888
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1409
1889
|
getAddress: () => string | Promise<string> | undefined;
|
|
1410
1890
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1413,9 +1893,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1413
1893
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1414
1894
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1415
1895
|
}) => Promise<string>;
|
|
1896
|
+
signAuthorization: ((params: {
|
|
1897
|
+
address: string;
|
|
1898
|
+
nonce?: number | bigint;
|
|
1899
|
+
chainId?: bigint;
|
|
1900
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1416
1901
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1902
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1417
1903
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1418
|
-
validateAddress: (
|
|
1904
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1419
1905
|
};
|
|
1420
1906
|
KUJI: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Kujira> & {
|
|
1421
1907
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
@@ -1439,10 +1925,9 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1439
1925
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1440
1926
|
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
1441
1927
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
}) => Promise<string>;
|
|
1928
|
+
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
1929
|
+
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
1930
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1446
1931
|
validateAddress: (address: string) => boolean;
|
|
1447
1932
|
verifySignature: ({ signature, message, address, }: {
|
|
1448
1933
|
signature: string;
|
|
@@ -1453,17 +1938,43 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1453
1938
|
LTC: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Litecoin> & {
|
|
1454
1939
|
accumulative: typeof import("@swapkit/server").accumulative;
|
|
1455
1940
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
1941
|
+
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/server").RBFTransactionParams) => Promise<{
|
|
1942
|
+
newFee: number;
|
|
1943
|
+
originalFee: number;
|
|
1944
|
+
txid: string;
|
|
1945
|
+
}>;
|
|
1456
1946
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
1457
1947
|
createKeysForPath: (params: {
|
|
1458
1948
|
wif?: string;
|
|
1459
1949
|
phrase?: string;
|
|
1460
1950
|
derivationPath?: string;
|
|
1461
|
-
}) =>
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1951
|
+
}) => {
|
|
1952
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
1953
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
1954
|
+
};
|
|
1955
|
+
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/server").RBFTransactionParams) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1956
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
1465
1957
|
inputs: import("@swapkit/server").UTXOType[];
|
|
1958
|
+
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1959
|
+
utxos: {
|
|
1960
|
+
address: string;
|
|
1961
|
+
hash: string;
|
|
1962
|
+
index: number;
|
|
1963
|
+
txHex: string | undefined;
|
|
1964
|
+
value: number;
|
|
1965
|
+
witnessUtxo: {
|
|
1966
|
+
script: Buffer<ArrayBuffer>;
|
|
1967
|
+
value: number;
|
|
1968
|
+
};
|
|
1969
|
+
}[];
|
|
1466
1970
|
}>;
|
|
1971
|
+
deriveAddressAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => {
|
|
1972
|
+
address: string;
|
|
1973
|
+
change: boolean;
|
|
1974
|
+
index: number;
|
|
1975
|
+
pubkey: string;
|
|
1976
|
+
} | undefined;
|
|
1977
|
+
derivePrivateKeyAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
1467
1978
|
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1468
1979
|
from: string;
|
|
1469
1980
|
memo?: string;
|
|
@@ -1480,9 +1991,12 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1480
1991
|
feeRate?: number;
|
|
1481
1992
|
fetchTxHex?: boolean;
|
|
1482
1993
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1483
|
-
getAddress: () => Promise<string | undefined>;
|
|
1484
|
-
getAddressFromKeys: (keys:
|
|
1994
|
+
getAddress: () => string | Promise<string> | Promise<undefined>;
|
|
1995
|
+
getAddressFromKeys: (keys: {
|
|
1996
|
+
publicKey: Uint8Array;
|
|
1997
|
+
}) => string;
|
|
1485
1998
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1999
|
+
getExtendedPublicKey: () => string | undefined;
|
|
1486
2000
|
getFeeRates: () => Promise<{
|
|
1487
2001
|
average: number;
|
|
1488
2002
|
fast: number;
|
|
@@ -1493,169 +2007,57 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1493
2007
|
feeRate?: number;
|
|
1494
2008
|
}) => Promise<{
|
|
1495
2009
|
fee: number;
|
|
1496
|
-
inputs:
|
|
2010
|
+
inputs: {
|
|
2011
|
+
address: string;
|
|
2012
|
+
hash: string;
|
|
2013
|
+
index: number;
|
|
2014
|
+
txHex: string | undefined;
|
|
2015
|
+
value: number;
|
|
2016
|
+
witnessUtxo: {
|
|
2017
|
+
script: Buffer<ArrayBuffer>;
|
|
2018
|
+
value: number;
|
|
2019
|
+
};
|
|
2020
|
+
}[];
|
|
1497
2021
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
1498
2022
|
} | {
|
|
1499
2023
|
fee: number;
|
|
1500
2024
|
inputs?: undefined;
|
|
1501
2025
|
outputs?: undefined;
|
|
1502
2026
|
}>;
|
|
2027
|
+
getNetworkForChain: () => import("@swapkit/utxo-signer").BTCNetwork;
|
|
1503
2028
|
getPrivateKeyFromMnemonic: (params: {
|
|
1504
2029
|
phrase: string;
|
|
1505
2030
|
derivationPath: string;
|
|
1506
2031
|
}) => string;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
2032
|
+
isRBFEnabled: (txid: string) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").RBFStatusResult>;
|
|
2033
|
+
keys: {
|
|
2034
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
2035
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
2036
|
+
} | undefined;
|
|
2037
|
+
resolveDerivationIndex: ({ address, gapLimit }: import("@swapkit/server").ResolveDerivationParams) => {
|
|
2038
|
+
change: boolean;
|
|
2039
|
+
index: number;
|
|
2040
|
+
} | undefined;
|
|
2041
|
+
signAndBroadcastTransaction: (tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>) => Promise<string>;
|
|
2042
|
+
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
2043
|
+
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
2044
|
+
inputDerivations: import("@swapkit/server").InputDerivation[];
|
|
2045
|
+
}) => import("@swapkit/utxo-signer").Transaction;
|
|
2046
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/server").UTXOTransferParams & {
|
|
2047
|
+
enableRBF?: boolean;
|
|
2048
|
+
}) => Promise<string>;
|
|
2049
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
2050
|
+
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
2051
|
+
recipient: string;
|
|
1515
2052
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1516
2053
|
memo?: string;
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
coins: {
|
|
1521
|
-
amount: string;
|
|
1522
|
-
asset: string;
|
|
1523
|
-
}[];
|
|
1524
|
-
memo: string;
|
|
1525
|
-
signer: string;
|
|
1526
|
-
};
|
|
1527
|
-
} | {
|
|
1528
|
-
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1529
|
-
value: {
|
|
1530
|
-
amount: {
|
|
1531
|
-
amount: string;
|
|
1532
|
-
denom: string;
|
|
1533
|
-
}[];
|
|
1534
|
-
from_address: string;
|
|
1535
|
-
to_address: string | undefined;
|
|
1536
|
-
};
|
|
1537
|
-
};
|
|
1538
|
-
buildEncodedTxBody: typeof import("@swapkit/server").buildEncodedTxBody;
|
|
1539
|
-
convertToSignable: (msg: {
|
|
1540
|
-
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1541
|
-
value: {
|
|
1542
|
-
amount: {
|
|
1543
|
-
amount: string;
|
|
1544
|
-
denom: string;
|
|
1545
|
-
}[];
|
|
1546
|
-
from_address: string;
|
|
1547
|
-
to_address: string | undefined;
|
|
1548
|
-
};
|
|
1549
|
-
} | {
|
|
1550
|
-
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
1551
|
-
value: {
|
|
1552
|
-
coins: {
|
|
1553
|
-
amount: string;
|
|
1554
|
-
asset: string;
|
|
1555
|
-
}[];
|
|
1556
|
-
memo: string;
|
|
1557
|
-
signer: string;
|
|
1558
|
-
};
|
|
1559
|
-
}, chain: import("@swapkit/types").TCLikeChain) => Promise<import("@cosmjs/proto-signing/build").EncodeObject>;
|
|
1560
|
-
createDefaultAminoTypes: () => Promise<import("@cosmjs/stargate/build").AminoTypes>;
|
|
1561
|
-
createDefaultRegistry: typeof import("@swapkit/server").createDefaultRegistry;
|
|
1562
|
-
createMultisig: (pubKeys: string[], threshold: number, noSortPubKeys?: boolean) => Promise<import("@cosmjs/amino/build").MultisigThresholdPubkey>;
|
|
1563
|
-
createTransaction: (params: import("@swapkit/server").ThorchainCreateTransactionParams) => Promise<{
|
|
1564
|
-
accountNumber: number;
|
|
1565
|
-
chainId: import("@swapkit/types").ChainId.Maya | import("@swapkit/types").ChainId.THORChain;
|
|
1566
|
-
fee: {
|
|
1567
|
-
amount: {
|
|
1568
|
-
amount: string;
|
|
1569
|
-
denom: string;
|
|
1570
|
-
}[];
|
|
1571
|
-
gas: string;
|
|
1572
|
-
};
|
|
1573
|
-
memo: string;
|
|
1574
|
-
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
1575
|
-
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
1576
|
-
value: {
|
|
1577
|
-
amount: {
|
|
1578
|
-
amount: string;
|
|
1579
|
-
denom: string;
|
|
1580
|
-
}[];
|
|
1581
|
-
from_address: string;
|
|
1582
|
-
to_address: string | undefined;
|
|
1583
|
-
};
|
|
1584
|
-
})[];
|
|
1585
|
-
sequence: number;
|
|
1586
|
-
}> | Promise<{
|
|
1587
|
-
accountNumber: number;
|
|
1588
|
-
chainId: import("@swapkit/types").ChainId.Maya | import("@swapkit/types").ChainId.THORChain;
|
|
1589
|
-
fee: {
|
|
1590
|
-
amount: {
|
|
1591
|
-
amount: string;
|
|
1592
|
-
denom: string;
|
|
1593
|
-
}[];
|
|
1594
|
-
gas: string;
|
|
1595
|
-
};
|
|
1596
|
-
memo: string;
|
|
1597
|
-
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
1598
|
-
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
1599
|
-
value: {
|
|
1600
|
-
coins: {
|
|
1601
|
-
amount: string;
|
|
1602
|
-
asset: string;
|
|
1603
|
-
}[];
|
|
1604
|
-
memo: string;
|
|
1605
|
-
signer: string;
|
|
1606
|
-
};
|
|
1607
|
-
})[];
|
|
1608
|
-
sequence: number;
|
|
1609
|
-
}>;
|
|
1610
|
-
deposit: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
1611
|
-
recipient?: string;
|
|
1612
|
-
}) => Promise<string>;
|
|
1613
|
-
getFees: () => Promise<{
|
|
1614
|
-
average: import("@swapkit/helpers").SwapKitNumber;
|
|
1615
|
-
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
1616
|
-
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
1617
|
-
}>;
|
|
1618
|
-
importSignature: (signature: string) => Uint8Array<ArrayBufferLike>;
|
|
1619
|
-
parseAminoMessageForDirectSigning: typeof import("@swapkit/server").parseAminoMessageForDirectSigning;
|
|
1620
|
-
pubkeyToAddress: (pubkey: import("@cosmjs/amino/build").Pubkey) => Promise<string>;
|
|
1621
|
-
secp256k1HdWalletFromMnemonic: (mnemonic: string, index?: number) => Promise<import("@cosmjs/amino/build").Secp256k1HdWallet>;
|
|
1622
|
-
signMultisigTx: ({ wallet, tx }: {
|
|
1623
|
-
wallet: import("@cosmjs/amino/build").Secp256k1HdWallet;
|
|
1624
|
-
tx: string | import("@swapkit/server").MultisigTx;
|
|
1625
|
-
}) => Promise<{
|
|
1626
|
-
bodyBytes: Uint8Array<ArrayBufferLike>;
|
|
1627
|
-
signature: string;
|
|
1628
|
-
}>;
|
|
1629
|
-
signWithPrivateKey: ({ privateKey, message }: {
|
|
1630
|
-
privateKey: Uint8Array;
|
|
1631
|
-
message: string;
|
|
1632
|
-
}) => Promise<string>;
|
|
1633
|
-
transfer: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
1634
|
-
recipient?: string;
|
|
2054
|
+
feeRate?: number;
|
|
2055
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2056
|
+
changeAddress?: string;
|
|
1635
2057
|
}) => Promise<string>;
|
|
1636
|
-
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1637
|
-
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
1638
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate/build").Account | null>;
|
|
1639
|
-
getAddress: () => Promise<string | undefined>;
|
|
1640
|
-
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1641
|
-
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1642
|
-
denom: string;
|
|
1643
|
-
amount: string;
|
|
1644
|
-
}[]>;
|
|
1645
|
-
getPubKey: () => Promise<string>;
|
|
1646
|
-
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1647
|
-
phrase: string;
|
|
1648
|
-
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1649
|
-
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
1650
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
1651
|
-
signTransaction: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1652
2058
|
validateAddress: (address: string) => boolean;
|
|
1653
|
-
verifySignature: ({ signature, message, address, }: {
|
|
1654
|
-
signature: string;
|
|
1655
|
-
message: string;
|
|
1656
|
-
address: string;
|
|
1657
|
-
}) => Promise<boolean>;
|
|
1658
2059
|
};
|
|
2060
|
+
MAYA: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Maya> & import("@swapkit/server").ThorchainWallet;
|
|
1659
2061
|
MEGAETH: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.MegaETH> & {
|
|
1660
2062
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
1661
2063
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").IsApprovedParams) => Promise<bigint>;
|
|
@@ -1681,9 +2083,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1681
2083
|
maxFeePerGas?: bigint;
|
|
1682
2084
|
maxPriorityFeePerGas?: bigint;
|
|
1683
2085
|
}; }>;
|
|
1684
|
-
estimateTransactionFee: ({ feeOption,
|
|
2086
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1685
2087
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1686
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1687
2088
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1688
2089
|
getAddress: () => string | Promise<string> | undefined;
|
|
1689
2090
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1692,9 +2093,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1692
2093
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1693
2094
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1694
2095
|
}) => Promise<string>;
|
|
2096
|
+
signAuthorization: ((params: {
|
|
2097
|
+
address: string;
|
|
2098
|
+
nonce?: number | bigint;
|
|
2099
|
+
chainId?: bigint;
|
|
2100
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1695
2101
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2102
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1696
2103
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1697
|
-
validateAddress: (
|
|
2104
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1698
2105
|
};
|
|
1699
2106
|
MONAD: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Monad> & {
|
|
1700
2107
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -1721,9 +2128,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1721
2128
|
maxFeePerGas?: bigint;
|
|
1722
2129
|
maxPriorityFeePerGas?: bigint;
|
|
1723
2130
|
}; }>;
|
|
1724
|
-
estimateTransactionFee: ({ feeOption,
|
|
2131
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1725
2132
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1726
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1727
2133
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1728
2134
|
getAddress: () => string | Promise<string> | undefined;
|
|
1729
2135
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1732,33 +2138,40 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1732
2138
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1733
2139
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1734
2140
|
}) => Promise<string>;
|
|
2141
|
+
signAuthorization: ((params: {
|
|
2142
|
+
address: string;
|
|
2143
|
+
nonce?: number | bigint;
|
|
2144
|
+
chainId?: bigint;
|
|
2145
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1735
2146
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2147
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1736
2148
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1737
|
-
validateAddress: (
|
|
2149
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1738
2150
|
};
|
|
1739
2151
|
NEAR: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Near> & {
|
|
1740
2152
|
broadcastTransaction: (signedTransaction: import("@near-js/transactions").SignedTransaction) => Promise<any>;
|
|
1741
|
-
callFunction: (params: import("@swapkit/
|
|
1742
|
-
createAction: (params: import("@swapkit/
|
|
1743
|
-
createContract: <T_1 extends import("@near-js/accounts").Contract = import("@near-js/accounts").Contract>(contractInterface: import("@swapkit/
|
|
1744
|
-
createContractFunctionCall: (
|
|
2153
|
+
callFunction: (params: import("@swapkit/server").NearFunctionCallParams) => Promise<string>;
|
|
2154
|
+
createAction: (params: import("@swapkit/server").CreateActionParams) => Promise<import("@near-js/transactions").Action>;
|
|
2155
|
+
createContract: <T_1 extends import("@near-js/accounts").Contract = import("@near-js/accounts").Contract>(contractInterface: import("@swapkit/server").NearContractInterface) => Promise<T_1>;
|
|
2156
|
+
createContractFunctionCall: ({ args, attachedDeposit, contractId, gas, methodName, sender: accountId, }: import("@swapkit/server").ContractFunctionCallParams) => Promise<import("@near-js/transactions").Transaction>;
|
|
1745
2157
|
createSubAccount: (subAccountId: string, publicKey: string, initialBalance: string) => Promise<string>;
|
|
1746
|
-
createTransaction: (
|
|
1747
|
-
estimateGas: (params: import("@swapkit/
|
|
1748
|
-
|
|
1749
|
-
|
|
2158
|
+
createTransaction: ({ recipient, assetValue, memo, attachedDeposit, sender, functionCall, }: import("@swapkit/server").NearCreateTransactionParams) => Promise<import("@near-js/transactions").Transaction>;
|
|
2159
|
+
estimateGas: (params: import("@swapkit/server").NearGasEstimateParams, account?: import("@near-js/accounts").Account) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2160
|
+
estimateGasLimit: (params: import("@swapkit/server").NearGasEstimateParams, account?: import("@near-js/accounts").Account) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2161
|
+
estimateTransactionFee: (params: import("@swapkit/server").NearTransferParams | import("@swapkit/server").NearGasEstimateParams) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2162
|
+
executeBatchTransaction: (batch: import("@swapkit/server").BatchTransaction) => Promise<string>;
|
|
1750
2163
|
getAddress: () => Promise<string>;
|
|
1751
2164
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1752
2165
|
getGasPrice: () => Promise<string>;
|
|
2166
|
+
getNearProvider: () => Promise<import("@near-js/providers").JsonRpcProvider>;
|
|
1753
2167
|
getPublicKey: () => Promise<string>;
|
|
1754
|
-
getSignerFromPhrase:
|
|
1755
|
-
getSignerFromPrivateKey: typeof import("@swapkit/
|
|
1756
|
-
provider: import("@near-js/providers").JsonRpcProvider;
|
|
2168
|
+
getSignerFromPhrase: typeof import("@swapkit/server").getNearSignerFromPhrase;
|
|
2169
|
+
getSignerFromPrivateKey: typeof import("@swapkit/server").getNearSignerFromPrivateKey;
|
|
1757
2170
|
serializeTransaction: (transaction: import("@near-js/transactions").Transaction) => string;
|
|
1758
|
-
|
|
2171
|
+
signAndBroadcastTransaction: (transaction: import("@near-js/transactions").Transaction) => Promise<any>;
|
|
1759
2172
|
signTransaction: (transaction: import("@near-js/transactions").Transaction) => Promise<import("@near-js/transactions").SignedTransaction>;
|
|
1760
|
-
transfer: (params: import("@swapkit/
|
|
1761
|
-
validateAddress: (
|
|
2173
|
+
transfer: (params: import("@swapkit/server").NearTransferParams) => Promise<any>;
|
|
2174
|
+
validateAddress: typeof import("@swapkit/server").validateNearAddress;
|
|
1762
2175
|
};
|
|
1763
2176
|
NOBLE: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Noble> & {
|
|
1764
2177
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
@@ -1782,10 +2195,9 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1782
2195
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1783
2196
|
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
1784
2197
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
}) => Promise<string>;
|
|
2198
|
+
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
2199
|
+
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
2200
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1789
2201
|
validateAddress: (address: string) => boolean;
|
|
1790
2202
|
verifySignature: ({ signature, message, address, }: {
|
|
1791
2203
|
signature: string;
|
|
@@ -1794,7 +2206,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1794
2206
|
}) => Promise<boolean>;
|
|
1795
2207
|
};
|
|
1796
2208
|
OP: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Optimism> & {
|
|
1797
|
-
estimateGasPrices: Promise<{
|
|
2209
|
+
estimateGasPrices: () => Promise<{
|
|
1798
2210
|
average: {
|
|
1799
2211
|
l1GasPrice?: bigint;
|
|
1800
2212
|
gasPrice?: bigint;
|
|
@@ -1816,7 +2228,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1816
2228
|
}>;
|
|
1817
2229
|
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
1818
2230
|
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
1819
|
-
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<
|
|
2231
|
+
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
1820
2232
|
estimateTotalGasCost: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
1821
2233
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1822
2234
|
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
@@ -1838,9 +2250,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1838
2250
|
txOverrides?: import("@swapkit/server").EVMTxParams;
|
|
1839
2251
|
data?: string;
|
|
1840
2252
|
}) => Promise<bigint>;
|
|
1841
|
-
estimateTransactionFee: ({ feeOption,
|
|
2253
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1842
2254
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1843
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1844
2255
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1845
2256
|
getAddress: () => string | Promise<string> | undefined;
|
|
1846
2257
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
@@ -1848,29 +2259,35 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1848
2259
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1849
2260
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1850
2261
|
}) => Promise<string>;
|
|
2262
|
+
signAuthorization: ((params: {
|
|
2263
|
+
address: string;
|
|
2264
|
+
nonce?: number | bigint;
|
|
2265
|
+
chainId?: bigint;
|
|
2266
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1851
2267
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2268
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1852
2269
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1853
|
-
validateAddress: (
|
|
2270
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1854
2271
|
};
|
|
1855
2272
|
DOT: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Polkadot> & {
|
|
1856
|
-
api: import("@polkadot/api").ApiPromise;
|
|
1857
2273
|
broadcast: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1858
2274
|
convertAddress: (address: string, newPrefix: number) => string;
|
|
1859
2275
|
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
1860
|
-
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined
|
|
2276
|
+
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => Promise<import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined>;
|
|
1861
2277
|
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1862
2278
|
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1863
|
-
estimateTransactionFee: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<import("@swapkit/helpers").AssetValue
|
|
2279
|
+
estimateTransactionFee: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1864
2280
|
gasAsset: import("@swapkit/helpers").AssetValue;
|
|
1865
|
-
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined
|
|
1866
|
-
|
|
2281
|
+
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => Promise<string | undefined>;
|
|
2282
|
+
getApi: () => Promise<import("@polkadot/api").ApiPromise>;
|
|
2283
|
+
getBalance: (targetAddress?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1867
2284
|
network: import("@swapkit/server").SubstrateNetwork;
|
|
1868
2285
|
sign: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
1869
2286
|
signAndBroadcast: ({ tx, callback, address, }: {
|
|
1870
2287
|
tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">;
|
|
1871
2288
|
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
1872
2289
|
address?: string;
|
|
1873
|
-
}) =>
|
|
2290
|
+
}) => Promise<string | (() => void)>;
|
|
1874
2291
|
transfer: (params: import("@swapkit/server").SubstrateTransferParams) => Promise<string>;
|
|
1875
2292
|
validateAddress: (address: string) => boolean;
|
|
1876
2293
|
};
|
|
@@ -1899,9 +2316,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1899
2316
|
maxFeePerGas?: bigint;
|
|
1900
2317
|
maxPriorityFeePerGas?: bigint;
|
|
1901
2318
|
}; }>;
|
|
1902
|
-
estimateTransactionFee: ({ feeOption,
|
|
2319
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
1903
2320
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
1904
|
-
chain: import("@swapkit/types").EVMChain;
|
|
1905
2321
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1906
2322
|
getAddress: () => string | Promise<string> | undefined;
|
|
1907
2323
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -1910,16 +2326,22 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1910
2326
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
1911
2327
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
1912
2328
|
}) => Promise<string>;
|
|
2329
|
+
signAuthorization: ((params: {
|
|
2330
|
+
address: string;
|
|
2331
|
+
nonce?: number | bigint;
|
|
2332
|
+
chainId?: bigint;
|
|
2333
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1913
2334
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2335
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1914
2336
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
1915
|
-
validateAddress: (
|
|
2337
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
1916
2338
|
};
|
|
1917
2339
|
XRD: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Radix> & {
|
|
1918
2340
|
getAddress: () => string;
|
|
1919
2341
|
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1920
2342
|
networkApi: import("@radixdlt/babylon-gateway-api-sdk").GatewayApiClient;
|
|
1921
2343
|
signAndBroadcast: (params: any) => Promise<string>;
|
|
1922
|
-
validateAddress: typeof import("@swapkit/server").
|
|
2344
|
+
validateAddress: typeof import("@swapkit/server").validateRadixAddress;
|
|
1923
2345
|
};
|
|
1924
2346
|
XRP: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Ripple> & {
|
|
1925
2347
|
broadcastTransaction: (signedTxHex: string) => Promise<string>;
|
|
@@ -1927,20 +2349,27 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1927
2349
|
tx_blob: string;
|
|
1928
2350
|
hash: string;
|
|
1929
2351
|
}>;
|
|
1930
|
-
createTransaction: ({ assetValue, recipient, memo, sender, }: {
|
|
2352
|
+
createTransaction: ({ assetValue, recipient, memo, sender, destinationTag, extendBySeconds, }: {
|
|
1931
2353
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1932
2354
|
recipient: string;
|
|
1933
2355
|
sender?: string;
|
|
1934
2356
|
memo?: string;
|
|
2357
|
+
destinationTag?: number;
|
|
2358
|
+
extendBySeconds?: number;
|
|
1935
2359
|
}) => Promise<import("xrpl").Payment>;
|
|
1936
|
-
disconnect: () =>
|
|
2360
|
+
disconnect: () => void;
|
|
1937
2361
|
estimateTransactionFee: () => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1938
2362
|
getAddress: () => string | Promise<string>;
|
|
1939
|
-
getBalance: (
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
2363
|
+
getBalance: (checkAddress?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2364
|
+
getTrustLines: (address?: string) => Promise<import("@swapkit/server").TrustLineInfo[]>;
|
|
2365
|
+
hasTrustLine: ({ address, currency, issuer, }: {
|
|
2366
|
+
address?: string;
|
|
2367
|
+
currency: string;
|
|
2368
|
+
issuer: string;
|
|
2369
|
+
}) => Promise<boolean>;
|
|
2370
|
+
setTrustLine: ({ currency, issuer, limit, sender }: import("@swapkit/server").TrustLineParams) => Promise<import("xrpl").Transaction>;
|
|
2371
|
+
setTrustLineAndBroadcast: (params: import("@swapkit/server").TrustLineParams) => Promise<string>;
|
|
2372
|
+
signAndBroadcastTransaction: (tx: import("xrpl").Transaction) => Promise<string>;
|
|
1944
2373
|
signTransaction: (tx: import("xrpl").Transaction) => {
|
|
1945
2374
|
tx_blob: string;
|
|
1946
2375
|
hash: string;
|
|
@@ -1949,7 +2378,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1949
2378
|
hash: string;
|
|
1950
2379
|
}>;
|
|
1951
2380
|
transfer: (params: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
1952
|
-
validateAddress: typeof import("@swapkit/
|
|
2381
|
+
validateAddress: typeof import("@swapkit/server").validateRippleAddress;
|
|
1953
2382
|
};
|
|
1954
2383
|
SOL: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Solana> & {
|
|
1955
2384
|
broadcastTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<string>;
|
|
@@ -1962,14 +2391,16 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1962
2391
|
estimateTransactionFee: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender, }: Omit<import("@swapkit/helpers").GenericCreateTransactionParams, "feeRate"> & {
|
|
1963
2392
|
isProgramDerivedAddress?: boolean;
|
|
1964
2393
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1965
|
-
getAddress: () => string
|
|
2394
|
+
getAddress: () => Promise<string>;
|
|
1966
2395
|
getAddressFromPubKey: (publicKey: import("@solana/web3.js/lib").PublicKey) => string;
|
|
1967
|
-
|
|
1968
|
-
|
|
2396
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2397
|
+
getBalanceFromRPC: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1969
2398
|
getConnection: () => Promise<import("@solana/web3.js/lib").Connection>;
|
|
1970
|
-
getPubkeyFromAddress: (address: string) =>
|
|
2399
|
+
getPubkeyFromAddress: (address: string) => import("@solana/web3.js/lib").PublicKey;
|
|
2400
|
+
signAndBroadcastTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<string>;
|
|
1971
2401
|
signTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction>;
|
|
1972
2402
|
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress }: import("@swapkit/server").SolanaTransferParams) => Promise<string>;
|
|
2403
|
+
validateAddress: typeof import("@swapkit/server").validateSolanaAddress;
|
|
1973
2404
|
};
|
|
1974
2405
|
SONIC: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Sonic> & {
|
|
1975
2406
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -1996,9 +2427,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
1996
2427
|
maxFeePerGas?: bigint;
|
|
1997
2428
|
maxPriorityFeePerGas?: bigint;
|
|
1998
2429
|
}; }>;
|
|
1999
|
-
estimateTransactionFee: ({ feeOption,
|
|
2430
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
2000
2431
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
2001
|
-
chain: import("@swapkit/types").EVMChain;
|
|
2002
2432
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2003
2433
|
getAddress: () => string | Promise<string> | undefined;
|
|
2004
2434
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -2007,198 +2437,109 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2007
2437
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
2008
2438
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2009
2439
|
}) => Promise<string>;
|
|
2440
|
+
signAuthorization: ((params: {
|
|
2441
|
+
address: string;
|
|
2442
|
+
nonce?: number | bigint;
|
|
2443
|
+
chainId?: bigint;
|
|
2444
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2010
2445
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2446
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2011
2447
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
2012
|
-
validateAddress: (
|
|
2448
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
2449
|
+
};
|
|
2450
|
+
XLM: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Stellar> & {
|
|
2451
|
+
broadcastTransaction: (signedTransaction: {
|
|
2452
|
+
toXDR: () => string;
|
|
2453
|
+
}) => Promise<string>;
|
|
2454
|
+
createTransaction: ({ recipient, assetValue, memo, sender }: import("@swapkit/toolboxes/stellar/index").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction<import("@stellar/stellar-sdk").Memo<import("@stellar/stellar-sdk").MemoType>, import("@stellar/stellar-sdk").Operation[]>>;
|
|
2455
|
+
estimateTransactionFee: () => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2456
|
+
getAddress: () => Promise<string>;
|
|
2457
|
+
getBalance: (checkAddress?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2458
|
+
signAndBroadcastTransaction: (transaction: {
|
|
2459
|
+
toXDR: () => string;
|
|
2460
|
+
}) => Promise<string>;
|
|
2461
|
+
signTransaction: (transaction: {
|
|
2462
|
+
toXDR: () => string;
|
|
2463
|
+
}) => Promise<import("@stellar/stellar-sdk").Transaction<import("@stellar/stellar-sdk").Memo<import("@stellar/stellar-sdk").MemoType>, import("@stellar/stellar-sdk").Operation[]> | import("@stellar/stellar-sdk").FeeBumpTransaction>;
|
|
2464
|
+
transfer: ({ recipient, assetValue, memo }: import("@swapkit/toolboxes/stellar/index").StellarTransferParams) => Promise<string>;
|
|
2465
|
+
validateAddress: typeof import("@swapkit/toolboxes/stellar/index").validateStellarAddress;
|
|
2466
|
+
};
|
|
2467
|
+
STRK: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Starknet> & {
|
|
2468
|
+
broadcastTransaction: (calls: import("starknet").Call[]) => Promise<string>;
|
|
2469
|
+
createKeysForPath: typeof import("@swapkit/server").starknetCreateKeysForPath;
|
|
2470
|
+
createTransaction: ({ recipient, assetValue }: import("@swapkit/server").StarknetCreateTransactionParams) => Promise<import("starknet").Call[]>;
|
|
2471
|
+
deployAccount: () => Promise<string>;
|
|
2472
|
+
estimateTransactionFee: ({ recipient, assetValue, sender, }: import("@swapkit/server").StarknetTransferParams & {
|
|
2473
|
+
sender?: string;
|
|
2474
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2475
|
+
getAddress: () => Promise<string>;
|
|
2476
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2477
|
+
getProvider: () => Promise<import("starknet").Provider>;
|
|
2478
|
+
isAccountDeployed: (address?: string) => Promise<boolean>;
|
|
2479
|
+
signAndBroadcastTransaction: (calls: import("starknet").Call[]) => Promise<string>;
|
|
2480
|
+
signMessage: (typedData: import("starknet").TypedData) => Promise<string[]>;
|
|
2481
|
+
transfer: ({ recipient, assetValue, memo }: import("@swapkit/server").StarknetTransferParams) => Promise<string>;
|
|
2482
|
+
validateAddress: typeof import("@swapkit/server").validateStarknetAddress;
|
|
2013
2483
|
};
|
|
2014
2484
|
SUI: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Sui> & {
|
|
2015
|
-
|
|
2485
|
+
broadcastTransaction: (signedTransaction: {
|
|
2486
|
+
bytes: string;
|
|
2487
|
+
signature: string;
|
|
2488
|
+
}) => Promise<string>;
|
|
2489
|
+
createTransaction: ({ recipient, assetValue, gasBudget, sender }: import("@swapkit/server").SuiCreateTransactionParams) => Promise<{
|
|
2016
2490
|
tx: import("@mysten/sui/transactions").Transaction;
|
|
2017
2491
|
txBytes: Uint8Array<ArrayBuffer>;
|
|
2018
2492
|
}>;
|
|
2019
|
-
estimateTransactionFee: (params?: import("@swapkit/
|
|
2020
|
-
getAddress: () => string
|
|
2493
|
+
estimateTransactionFee: (params?: import("@swapkit/server").SuiCreateTransactionParams) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2494
|
+
getAddress: () => Promise<string>;
|
|
2021
2495
|
getBalance: (targetAddress?: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2022
|
-
|
|
2496
|
+
signAndBroadcastTransaction: (transaction: import("@mysten/sui/transactions").Transaction | Uint8Array<ArrayBuffer> | string) => Promise<string>;
|
|
2497
|
+
signTransaction: (params: Uint8Array<ArrayBuffer> | import("@swapkit/server").SuiCreateTransactionParams | Awaited<ReturnType<({ recipient, assetValue, gasBudget, sender }: import("@swapkit/server").SuiCreateTransactionParams) => Promise<{
|
|
2023
2498
|
tx: import("@mysten/sui/transactions").Transaction;
|
|
2024
2499
|
txBytes: Uint8Array<ArrayBuffer>;
|
|
2025
|
-
}>>>) => Promise<
|
|
2026
|
-
|
|
2027
|
-
validateAddress: (address: string) => boolean;
|
|
2028
|
-
};
|
|
2029
|
-
THOR: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.THORChain> & {
|
|
2030
|
-
broadcastMultisigTx: (tx: string, signers: import("@swapkit/server").MultiSigSigner[], membersPubKeys: string[], threshold: number, bodyBytes: Uint8Array) => Promise<string>;
|
|
2031
|
-
buildAminoMsg: ({ sender, recipient, assetValue, memo, }: {
|
|
2032
|
-
sender: string;
|
|
2033
|
-
recipient?: string;
|
|
2034
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
2035
|
-
memo?: string;
|
|
2036
|
-
}) => {
|
|
2037
|
-
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
2038
|
-
value: {
|
|
2039
|
-
coins: {
|
|
2040
|
-
amount: string;
|
|
2041
|
-
asset: string;
|
|
2042
|
-
}[];
|
|
2043
|
-
memo: string;
|
|
2044
|
-
signer: string;
|
|
2045
|
-
};
|
|
2046
|
-
} | {
|
|
2047
|
-
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
2048
|
-
value: {
|
|
2049
|
-
amount: {
|
|
2050
|
-
amount: string;
|
|
2051
|
-
denom: string;
|
|
2052
|
-
}[];
|
|
2053
|
-
from_address: string;
|
|
2054
|
-
to_address: string | undefined;
|
|
2055
|
-
};
|
|
2056
|
-
};
|
|
2057
|
-
buildEncodedTxBody: typeof import("@swapkit/server").buildEncodedTxBody;
|
|
2058
|
-
convertToSignable: (msg: {
|
|
2059
|
-
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
2060
|
-
value: {
|
|
2061
|
-
amount: {
|
|
2062
|
-
amount: string;
|
|
2063
|
-
denom: string;
|
|
2064
|
-
}[];
|
|
2065
|
-
from_address: string;
|
|
2066
|
-
to_address: string | undefined;
|
|
2067
|
-
};
|
|
2068
|
-
} | {
|
|
2069
|
-
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
2070
|
-
value: {
|
|
2071
|
-
coins: {
|
|
2072
|
-
amount: string;
|
|
2073
|
-
asset: string;
|
|
2074
|
-
}[];
|
|
2075
|
-
memo: string;
|
|
2076
|
-
signer: string;
|
|
2077
|
-
};
|
|
2078
|
-
}, chain: import("@swapkit/types").TCLikeChain) => Promise<import("@cosmjs/proto-signing/build").EncodeObject>;
|
|
2079
|
-
createDefaultAminoTypes: () => Promise<import("@cosmjs/stargate/build").AminoTypes>;
|
|
2080
|
-
createDefaultRegistry: typeof import("@swapkit/server").createDefaultRegistry;
|
|
2081
|
-
createMultisig: (pubKeys: string[], threshold: number, noSortPubKeys?: boolean) => Promise<import("@cosmjs/amino/build").MultisigThresholdPubkey>;
|
|
2082
|
-
createTransaction: (params: import("@swapkit/server").ThorchainCreateTransactionParams) => Promise<{
|
|
2083
|
-
accountNumber: number;
|
|
2084
|
-
chainId: import("@swapkit/types").ChainId.Maya | import("@swapkit/types").ChainId.THORChain;
|
|
2085
|
-
fee: {
|
|
2086
|
-
amount: {
|
|
2087
|
-
amount: string;
|
|
2088
|
-
denom: string;
|
|
2089
|
-
}[];
|
|
2090
|
-
gas: string;
|
|
2091
|
-
};
|
|
2092
|
-
memo: string;
|
|
2093
|
-
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
2094
|
-
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
2095
|
-
value: {
|
|
2096
|
-
amount: {
|
|
2097
|
-
amount: string;
|
|
2098
|
-
denom: string;
|
|
2099
|
-
}[];
|
|
2100
|
-
from_address: string;
|
|
2101
|
-
to_address: string | undefined;
|
|
2102
|
-
};
|
|
2103
|
-
})[];
|
|
2104
|
-
sequence: number;
|
|
2105
|
-
}> | Promise<{
|
|
2106
|
-
accountNumber: number;
|
|
2107
|
-
chainId: import("@swapkit/types").ChainId.Maya | import("@swapkit/types").ChainId.THORChain;
|
|
2108
|
-
fee: {
|
|
2109
|
-
amount: {
|
|
2110
|
-
amount: string;
|
|
2111
|
-
denom: string;
|
|
2112
|
-
}[];
|
|
2113
|
-
gas: string;
|
|
2114
|
-
};
|
|
2115
|
-
memo: string;
|
|
2116
|
-
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
2117
|
-
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
2118
|
-
value: {
|
|
2119
|
-
coins: {
|
|
2120
|
-
amount: string;
|
|
2121
|
-
asset: string;
|
|
2122
|
-
}[];
|
|
2123
|
-
memo: string;
|
|
2124
|
-
signer: string;
|
|
2125
|
-
};
|
|
2126
|
-
})[];
|
|
2127
|
-
sequence: number;
|
|
2128
|
-
}>;
|
|
2129
|
-
deposit: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
2130
|
-
recipient?: string;
|
|
2131
|
-
}) => Promise<string>;
|
|
2132
|
-
getFees: () => Promise<{
|
|
2133
|
-
average: import("@swapkit/helpers").SwapKitNumber;
|
|
2134
|
-
fast: import("@swapkit/helpers").SwapKitNumber;
|
|
2135
|
-
fastest: import("@swapkit/helpers").SwapKitNumber;
|
|
2136
|
-
}>;
|
|
2137
|
-
importSignature: (signature: string) => Uint8Array<ArrayBufferLike>;
|
|
2138
|
-
parseAminoMessageForDirectSigning: typeof import("@swapkit/server").parseAminoMessageForDirectSigning;
|
|
2139
|
-
pubkeyToAddress: (pubkey: import("@cosmjs/amino/build").Pubkey) => Promise<string>;
|
|
2140
|
-
secp256k1HdWalletFromMnemonic: (mnemonic: string, index?: number) => Promise<import("@cosmjs/amino/build").Secp256k1HdWallet>;
|
|
2141
|
-
signMultisigTx: ({ wallet, tx }: {
|
|
2142
|
-
wallet: import("@cosmjs/amino/build").Secp256k1HdWallet;
|
|
2143
|
-
tx: string | import("@swapkit/server").MultisigTx;
|
|
2144
|
-
}) => Promise<{
|
|
2145
|
-
bodyBytes: Uint8Array<ArrayBufferLike>;
|
|
2500
|
+
}>>>) => Promise<{
|
|
2501
|
+
bytes: string;
|
|
2146
2502
|
signature: string;
|
|
2147
|
-
}>;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
message: string;
|
|
2151
|
-
}) => Promise<string>;
|
|
2152
|
-
transfer: ({ assetValue, memo, recipient, }: Omit<import("@swapkit/helpers").GenericTransferParams, "recipient"> & {
|
|
2153
|
-
recipient?: string;
|
|
2154
|
-
}) => Promise<string>;
|
|
2155
|
-
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
2156
|
-
fetchFeeRateFromSwapKit: typeof import("@swapkit/server").fetchFeeRateFromSwapKit;
|
|
2157
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate/build").Account | null>;
|
|
2158
|
-
getAddress: () => Promise<string | undefined>;
|
|
2159
|
-
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2160
|
-
getBalanceAsDenoms: (address: string) => Promise<{
|
|
2161
|
-
denom: string;
|
|
2162
|
-
amount: string;
|
|
2163
|
-
}[]>;
|
|
2164
|
-
getPubKey: () => Promise<string>;
|
|
2165
|
-
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
2166
|
-
phrase: string;
|
|
2167
|
-
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
2168
|
-
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
2169
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
2170
|
-
signTransaction: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
2171
|
-
validateAddress: (address: string) => boolean;
|
|
2172
|
-
verifySignature: ({ signature, message, address, }: {
|
|
2173
|
-
signature: string;
|
|
2174
|
-
message: string;
|
|
2175
|
-
address: string;
|
|
2176
|
-
}) => Promise<boolean>;
|
|
2503
|
+
} | import("@mysten/sui/cryptography").SignatureWithBytes>;
|
|
2504
|
+
transfer: ({ assetValue, gasBudget, recipient }: import("@swapkit/server").SuiTransferParams) => Promise<string>;
|
|
2505
|
+
validateAddress: typeof import("@swapkit/server").validateSuiAddress;
|
|
2177
2506
|
};
|
|
2507
|
+
THOR: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.THORChain> & import("@swapkit/server").ThorchainWallet;
|
|
2178
2508
|
TON: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Ton> & {
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2509
|
+
broadcastTransaction: (transferCell: import("@ton/ton/dist").Cell) => Promise<string>;
|
|
2510
|
+
createTransaction: ({ sender, ...params }: import("@swapkit/helpers").GenericTransferParams & {
|
|
2511
|
+
sender?: string;
|
|
2512
|
+
}) => Promise<import("@swapkit/server").TONTransactionMessage[]>;
|
|
2513
|
+
estimateTransactionFee: ({ sender, ...params }: import("@swapkit/helpers").GenericTransferParams & {
|
|
2514
|
+
sender?: string;
|
|
2515
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2516
|
+
getAddress: () => Promise<string>;
|
|
2517
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2518
|
+
getJettonWalletAddress: ({ jettonMasterAddress, ownerAddress, }: {
|
|
2519
|
+
jettonMasterAddress: string;
|
|
2520
|
+
ownerAddress: string;
|
|
2521
|
+
}) => Promise<import("@ton/ton/dist").Address>;
|
|
2522
|
+
sign: (messages: import("@swapkit/server").TONTransactionMessage[]) => Promise<import("@ton/ton/dist").Cell>;
|
|
2523
|
+
signAndBroadcastTransaction: (messages: import("@swapkit/server").TONTransactionMessage[]) => Promise<string>;
|
|
2524
|
+
transfer: ({ assetValue, recipient, memo }: import("@swapkit/helpers").GenericTransferParams) => Promise<string>;
|
|
2525
|
+
validateAddress: typeof import("@swapkit/server").validateTonAddress;
|
|
2186
2526
|
};
|
|
2187
2527
|
TRON: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Tron> & {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
transfer: (params: import("@swapkit/toolboxes/tron").TronTransferParams) => Promise<string>;
|
|
2193
|
-
estimateTransactionFee: (params: import("@swapkit/toolboxes/tron").TronTransferParams & {
|
|
2528
|
+
approve: ({ assetAddress, spenderAddress, amount, from }: import("@swapkit/server").TronApproveParams) => Promise<string>;
|
|
2529
|
+
broadcastTransaction: typeof import("node_modules/@swapkit/toolboxes/dist/types/tron/helpers/trongrid").broadcastTronTransaction;
|
|
2530
|
+
createTransaction: ({ recipient, assetValue, memo, sender, expiration }: import("@swapkit/server").TronCreateTransactionParams) => Promise<import("@swapkit/server").TronTransaction>;
|
|
2531
|
+
estimateTransactionFee: ({ assetValue, recipient, sender }: import("@swapkit/server").TronTransferParams & {
|
|
2194
2532
|
sender?: string;
|
|
2195
2533
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
isApproved: (
|
|
2201
|
-
|
|
2534
|
+
getAddress: () => Promise<string>;
|
|
2535
|
+
getApprovedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/server").TronApprovedParams) => Promise<bigint>;
|
|
2536
|
+
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2537
|
+
getRpcUrl: () => Promise<string>;
|
|
2538
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/server").TronIsApprovedParams) => Promise<boolean>;
|
|
2539
|
+
signAndBroadcastTransaction: (transaction: import("@swapkit/server").TronTransaction) => Promise<string>;
|
|
2540
|
+
signTransaction: (transaction: import("@swapkit/server").TronTransaction) => Promise<import("@swapkit/server").TronSignedTransaction>;
|
|
2541
|
+
transfer: ({ recipient, assetValue, memo, expiration }: import("@swapkit/server").TronTransferParams) => Promise<string>;
|
|
2542
|
+
validateAddress: typeof import("node_modules/@swapkit/toolboxes/dist/types/tron/helpers/utils").isValidTronAddress;
|
|
2202
2543
|
};
|
|
2203
2544
|
UNI: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Unichain> & {
|
|
2204
2545
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -2225,9 +2566,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2225
2566
|
maxFeePerGas?: bigint;
|
|
2226
2567
|
maxPriorityFeePerGas?: bigint;
|
|
2227
2568
|
}; }>;
|
|
2228
|
-
estimateTransactionFee: ({ feeOption,
|
|
2569
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
2229
2570
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
2230
|
-
chain: import("@swapkit/types").EVMChain;
|
|
2231
2571
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2232
2572
|
getAddress: () => string | Promise<string> | undefined;
|
|
2233
2573
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -2236,9 +2576,15 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2236
2576
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
2237
2577
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2238
2578
|
}) => Promise<string>;
|
|
2579
|
+
signAuthorization: ((params: {
|
|
2580
|
+
address: string;
|
|
2581
|
+
nonce?: number | bigint;
|
|
2582
|
+
chainId?: bigint;
|
|
2583
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2239
2584
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2585
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2240
2586
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
2241
|
-
validateAddress: (
|
|
2587
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
2242
2588
|
};
|
|
2243
2589
|
XLAYER: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.XLayer> & {
|
|
2244
2590
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/server").ApproveParams) => Promise<string>;
|
|
@@ -2265,9 +2611,8 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2265
2611
|
maxFeePerGas?: bigint;
|
|
2266
2612
|
maxPriorityFeePerGas?: bigint;
|
|
2267
2613
|
}; }>;
|
|
2268
|
-
estimateTransactionFee: ({ feeOption,
|
|
2614
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/server").EIP1559TxParams & {
|
|
2269
2615
|
feeOption: import("@swapkit/helpers").FeeOption;
|
|
2270
|
-
chain: import("@swapkit/types").EVMChain;
|
|
2271
2616
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2272
2617
|
getAddress: () => string | Promise<string> | undefined;
|
|
2273
2618
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
@@ -2276,29 +2621,53 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2276
2621
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/server").EVMTxParams & {
|
|
2277
2622
|
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2278
2623
|
}) => Promise<string>;
|
|
2624
|
+
signAuthorization: ((params: {
|
|
2625
|
+
address: string;
|
|
2626
|
+
nonce?: number | bigint;
|
|
2627
|
+
chainId?: bigint;
|
|
2628
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2279
2629
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2630
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/server").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2280
2631
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
2281
|
-
validateAddress: (
|
|
2632
|
+
validateAddress: typeof import("@swapkit/server").validateEVMAddress;
|
|
2282
2633
|
};
|
|
2283
2634
|
ZEC: import("@swapkit/helpers").ChainWallet<import("@swapkit/types").Chain.Zcash> & {
|
|
2284
2635
|
createKeysForPath: ({ phrase, derivationPath, }: {
|
|
2285
2636
|
phrase: string;
|
|
2286
2637
|
derivationPath?: string;
|
|
2287
|
-
}) =>
|
|
2638
|
+
}) => {
|
|
2639
|
+
privateKey: Uint8Array<ArrayBufferLike>;
|
|
2640
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
2641
|
+
};
|
|
2288
2642
|
createTransaction: (buildTxParams: import("@swapkit/server").UTXOBuildTxParams) => Promise<{
|
|
2289
2643
|
inputs: import("@swapkit/server").UTXOType[];
|
|
2290
2644
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
2291
|
-
|
|
2645
|
+
tx: import("@swapkit/utxo-signer").ZcashTransaction;
|
|
2292
2646
|
}>;
|
|
2293
2647
|
getPrivateKeyFromMnemonic: ({ phrase, derivationPath, }: {
|
|
2294
2648
|
phrase: string;
|
|
2295
2649
|
derivationPath: string;
|
|
2296
2650
|
}) => string;
|
|
2651
|
+
signAndBroadcastTransaction: (tx: import("@swapkit/utxo-signer").ZcashTransaction | import("@swapkit/utxo-signer").PCZT) => Promise<string>;
|
|
2652
|
+
signTransaction: (tx: import("@swapkit/utxo-signer").ZcashTransaction | import("@swapkit/utxo-signer").PCZT) => Promise<import("@swapkit/utxo-signer").ZcashTransaction>;
|
|
2297
2653
|
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: import("@swapkit/server").UTXOTransferParams) => Promise<string>;
|
|
2298
2654
|
validateAddress: typeof import("@swapkit/server").validateZcashAddress;
|
|
2299
2655
|
accumulative: typeof import("@swapkit/server").accumulative;
|
|
2300
2656
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
2657
|
+
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/server").RBFTransactionParams) => Promise<{
|
|
2658
|
+
newFee: number;
|
|
2659
|
+
originalFee: number;
|
|
2660
|
+
txid: string;
|
|
2661
|
+
}>;
|
|
2301
2662
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("@swapkit/server").UTXOCalculateTxSizeParams) => number;
|
|
2663
|
+
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/server").RBFTransactionParams) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
2664
|
+
deriveAddressAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => {
|
|
2665
|
+
address: string;
|
|
2666
|
+
change: boolean;
|
|
2667
|
+
index: number;
|
|
2668
|
+
pubkey: string;
|
|
2669
|
+
} | undefined;
|
|
2670
|
+
derivePrivateKeyAtIndex: ({ index, change }: import("@swapkit/server").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
2302
2671
|
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
2303
2672
|
from: string;
|
|
2304
2673
|
memo?: string;
|
|
@@ -2315,9 +2684,12 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2315
2684
|
feeRate?: number;
|
|
2316
2685
|
fetchTxHex?: boolean;
|
|
2317
2686
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2318
|
-
getAddress: () => Promise<string | undefined>;
|
|
2319
|
-
getAddressFromKeys: (keys:
|
|
2687
|
+
getAddress: () => string | Promise<string> | Promise<undefined>;
|
|
2688
|
+
getAddressFromKeys: (keys: {
|
|
2689
|
+
publicKey: Uint8Array;
|
|
2690
|
+
}) => string;
|
|
2320
2691
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2692
|
+
getExtendedPublicKey: () => string | undefined;
|
|
2321
2693
|
getFeeRates: () => Promise<{
|
|
2322
2694
|
average: number;
|
|
2323
2695
|
fast: number;
|
|
@@ -2328,13 +2700,46 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2328
2700
|
feeRate?: number;
|
|
2329
2701
|
}) => Promise<{
|
|
2330
2702
|
fee: number;
|
|
2331
|
-
inputs:
|
|
2703
|
+
inputs: {
|
|
2704
|
+
address: string;
|
|
2705
|
+
hash: string;
|
|
2706
|
+
index: number;
|
|
2707
|
+
txHex: string | undefined;
|
|
2708
|
+
value: number;
|
|
2709
|
+
witnessUtxo: {
|
|
2710
|
+
script: Buffer<ArrayBuffer>;
|
|
2711
|
+
value: number;
|
|
2712
|
+
};
|
|
2713
|
+
}[];
|
|
2332
2714
|
outputs: import("@swapkit/server").TargetOutput[];
|
|
2333
2715
|
} | {
|
|
2334
2716
|
fee: number;
|
|
2335
2717
|
inputs?: undefined;
|
|
2336
2718
|
outputs?: undefined;
|
|
2337
2719
|
}>;
|
|
2720
|
+
getNetworkForChain: () => import("@swapkit/utxo-signer").BTCNetwork;
|
|
2721
|
+
isRBFEnabled: (txid: string) => Promise<import("node_modules/@swapkit/toolboxes/dist/types/utxo/toolbox/utxo").RBFStatusResult>;
|
|
2722
|
+
keys: {
|
|
2723
|
+
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
2724
|
+
publicKey: Uint8Array<ArrayBufferLike>;
|
|
2725
|
+
} | undefined;
|
|
2726
|
+
resolveDerivationIndex: ({ address, gapLimit }: import("@swapkit/server").ResolveDerivationParams) => {
|
|
2727
|
+
change: boolean;
|
|
2728
|
+
index: number;
|
|
2729
|
+
} | undefined;
|
|
2730
|
+
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
2731
|
+
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
2732
|
+
inputDerivations: import("@swapkit/server").InputDerivation[];
|
|
2733
|
+
}) => import("@swapkit/utxo-signer").Transaction;
|
|
2734
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
2735
|
+
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
2736
|
+
recipient: string;
|
|
2737
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
2738
|
+
memo?: string;
|
|
2739
|
+
feeRate?: number;
|
|
2740
|
+
feeOptionKey?: import("@swapkit/helpers").FeeOption;
|
|
2741
|
+
changeAddress?: string;
|
|
2742
|
+
}) => Promise<string>;
|
|
2338
2743
|
};
|
|
2339
2744
|
};
|
|
2340
2745
|
getBalance: <T_1 extends import("@swapkit/types").Chain, R extends boolean>(chain: T_1, refresh?: R) => import("@swapkit/helpers").ConditionalAssetValueReturn<R>;
|
|
@@ -2345,7 +2750,14 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2345
2750
|
chain: import("@swapkit/types").Chain;
|
|
2346
2751
|
message: string;
|
|
2347
2752
|
}) => Promise<string> | undefined;
|
|
2348
|
-
|
|
2753
|
+
signTypedData: ({ chain, domain, primaryType, types, value, }: {
|
|
2754
|
+
chain: import("@swapkit/types").Chain;
|
|
2755
|
+
domain: Record<string, unknown>;
|
|
2756
|
+
primaryType?: string;
|
|
2757
|
+
types: Record<string, import("ethers").TypedDataField[]>;
|
|
2758
|
+
value: Record<string, unknown>;
|
|
2759
|
+
}) => Promise<string>;
|
|
2760
|
+
swap: <T_1 extends "harbor" | "swapkit" | "garden" | "near" | "solana" | "radix" | "thorchain" | "mayachain" | "evm" | "chainflip">({ route, pluginName, ...rest }: import("@swapkit/helpers").SwapParams<T_1, {
|
|
2349
2761
|
buyAsset: string;
|
|
2350
2762
|
destinationAddress: string;
|
|
2351
2763
|
expectedBuyAmount: string;
|
|
@@ -2373,7 +2785,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2373
2785
|
}[] | undefined;
|
|
2374
2786
|
}[];
|
|
2375
2787
|
meta: {
|
|
2376
|
-
tags: import("@swapkit/
|
|
2788
|
+
tags: import("@swapkit/helpers").PriorityLabel[];
|
|
2377
2789
|
assets?: {
|
|
2378
2790
|
asset: string;
|
|
2379
2791
|
image: string;
|
|
@@ -2441,7 +2853,7 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2441
2853
|
} | undefined;
|
|
2442
2854
|
priceImpact?: number | undefined;
|
|
2443
2855
|
referrer?: string | undefined;
|
|
2444
|
-
txType?: import("@swapkit/
|
|
2856
|
+
txType?: import("@swapkit/helpers").RouteQuoteTxType | undefined;
|
|
2445
2857
|
};
|
|
2446
2858
|
providers: import("@swapkit/helpers").ProviderName[];
|
|
2447
2859
|
routeId: string;
|
|
@@ -2482,13 +2894,62 @@ export declare function createSwapKit<Plugins extends ReturnType<typeof createPl
|
|
|
2482
2894
|
memo: string;
|
|
2483
2895
|
msgs: {
|
|
2484
2896
|
typeUrl: string;
|
|
2485
|
-
value:
|
|
2897
|
+
value: {
|
|
2898
|
+
typeUrl: string;
|
|
2899
|
+
value: {
|
|
2900
|
+
amount: {
|
|
2901
|
+
amount: string;
|
|
2902
|
+
denom: string;
|
|
2903
|
+
}[];
|
|
2904
|
+
fromAddress: string;
|
|
2905
|
+
toAddress: string;
|
|
2906
|
+
};
|
|
2907
|
+
} | {
|
|
2908
|
+
typeUrl: string;
|
|
2909
|
+
value: {
|
|
2910
|
+
coins: {
|
|
2911
|
+
amount: string;
|
|
2912
|
+
asset: {
|
|
2913
|
+
chain: string;
|
|
2914
|
+
symbol: string;
|
|
2915
|
+
synth: boolean;
|
|
2916
|
+
ticker: string;
|
|
2917
|
+
};
|
|
2918
|
+
}[];
|
|
2919
|
+
memo: string;
|
|
2920
|
+
signer: string;
|
|
2921
|
+
};
|
|
2922
|
+
};
|
|
2486
2923
|
}[];
|
|
2487
2924
|
sequence: number;
|
|
2488
|
-
} |
|
|
2489
|
-
|
|
2925
|
+
} | {
|
|
2926
|
+
raw_data: {
|
|
2927
|
+
contract: any;
|
|
2928
|
+
expiration: number;
|
|
2929
|
+
ref_block_bytes: string;
|
|
2930
|
+
ref_block_hash: string;
|
|
2931
|
+
timestamp: number;
|
|
2932
|
+
};
|
|
2933
|
+
raw_data_hex: string;
|
|
2934
|
+
txID: string;
|
|
2935
|
+
visible: boolean;
|
|
2936
|
+
} | {
|
|
2937
|
+
calldata: string[];
|
|
2938
|
+
contractAddress: string;
|
|
2939
|
+
entrypoint: string;
|
|
2940
|
+
}[] | {
|
|
2941
|
+
address: string;
|
|
2942
|
+
amount: string;
|
|
2943
|
+
payload?: string | undefined;
|
|
2944
|
+
stateInit?: string | undefined;
|
|
2945
|
+
}[] | undefined;
|
|
2946
|
+
txType?: import("@swapkit/helpers").RouteQuoteTxType | undefined;
|
|
2490
2947
|
}>) => any;
|
|
2491
2948
|
transfer: ({ assetValue, ...params }: import("@swapkit/helpers").GenericTransferParams | import("@swapkit/server").EVMTransferParams) => Promise<string>;
|
|
2949
|
+
validateAddress: ({ address, chain }: {
|
|
2950
|
+
address: string;
|
|
2951
|
+
chain: import("@swapkit/types").Chain;
|
|
2952
|
+
}) => Promise<boolean>;
|
|
2492
2953
|
verifyMessage: ({ address, chain, message, signature, }: {
|
|
2493
2954
|
chain: import("@swapkit/types").Chain;
|
|
2494
2955
|
signature: string;
|