@swapkit/core 1.0.0-rc.91 → 1.0.0-rc.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +246 -227
- package/dist/index.es.js.map +1 -1
- package/package.json +13 -11
- package/src/client/types.ts +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { BinanceToolbox } from '@swapkit/toolbox-cosmos';
|
|
|
6
6
|
import type { BSCToolbox } from '@swapkit/toolbox-evm';
|
|
7
7
|
import type { BTCToolbox } from '@swapkit/toolbox-utxo';
|
|
8
8
|
import { Chain } from '@swapkit/types';
|
|
9
|
+
import type { ChainflipToolbox } from '@swapkit/toolbox-substrate';
|
|
9
10
|
import type { DepositParam } from '@swapkit/toolbox-cosmos';
|
|
10
11
|
import type { DOGEToolbox } from '@swapkit/toolbox-utxo';
|
|
11
12
|
import type { ETHToolbox } from '@swapkit/toolbox-evm';
|
|
@@ -17,6 +18,7 @@ import type { KujiraToolbox } from '@swapkit/toolbox-cosmos';
|
|
|
17
18
|
import type { LTCToolbox } from '@swapkit/toolbox-utxo';
|
|
18
19
|
import type { MATICToolbox } from '@swapkit/toolbox-evm';
|
|
19
20
|
import type { OPToolbox } from '@swapkit/toolbox-evm';
|
|
21
|
+
import type { PolkadotToolbox } from '@swapkit/toolbox-substrate';
|
|
20
22
|
import type { QuoteRoute } from '@swapkit/helpers';
|
|
21
23
|
import type { SwapKitNumber } from '@swapkit/helpers';
|
|
22
24
|
import type { ThorchainToolboxType } from '@swapkit/toolbox-cosmos';
|
|
@@ -57,6 +59,8 @@ export declare type EVMWallet<T extends typeof AVAXToolbox | typeof BSCToolbox |
|
|
|
57
59
|
transfer: (params: CoreTxParams) => Promise<string>;
|
|
58
60
|
};
|
|
59
61
|
|
|
62
|
+
export declare type SubstrateBasedWallet<T extends typeof PolkadotToolbox | typeof ChainflipToolbox> = Awaited<ReturnType<T>>;
|
|
63
|
+
|
|
60
64
|
export declare class SwapKitCore<T = ''> {
|
|
61
65
|
|
|
62
66
|
connectedChains: Wallet;
|
|
@@ -208,6 +212,8 @@ export declare type WalletMethods = {
|
|
|
208
212
|
[Chain.Dogecoin]: UTXOWallet<typeof DOGEToolbox> | null;
|
|
209
213
|
[Chain.Ethereum]: EVMWallet<typeof ETHToolbox> | null;
|
|
210
214
|
[Chain.Kujira]: CosmosBasedWallet<typeof KujiraToolbox> | null;
|
|
215
|
+
[Chain.Polkadot]: SubstrateBasedWallet<typeof PolkadotToolbox> | null;
|
|
216
|
+
[Chain.Chainflip]: SubstrateBasedWallet<typeof ChainflipToolbox> | null;
|
|
211
217
|
[Chain.Litecoin]: UTXOWallet<typeof LTCToolbox> | null;
|
|
212
218
|
[Chain.Maya]: ThorchainWallet | null;
|
|
213
219
|
[Chain.Optimism]: EVMWallet<typeof OPToolbox> | null;
|