@swapkit/core 1.0.0-rc.9 → 1.0.0-rc.91

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.d.ts CHANGED
@@ -17,7 +17,7 @@ import type { KujiraToolbox } from '@swapkit/toolbox-cosmos';
17
17
  import type { LTCToolbox } from '@swapkit/toolbox-utxo';
18
18
  import type { MATICToolbox } from '@swapkit/toolbox-evm';
19
19
  import type { OPToolbox } from '@swapkit/toolbox-evm';
20
- import type { QuoteRoute } from '@swapkit/api';
20
+ import type { QuoteRoute } from '@swapkit/helpers';
21
21
  import type { SwapKitNumber } from '@swapkit/helpers';
22
22
  import type { ThorchainToolboxType } from '@swapkit/toolbox-cosmos';
23
23
  import type { ThornameRegisterParam } from '@swapkit/helpers';
@@ -69,9 +69,9 @@ export declare class SwapKitCore<T = ''> {
69
69
  getExplorerTxUrl: (chain: Chain, txHash: string) => string;
70
70
  getWallet: <T_1 extends Chain>(chain: Chain) => WalletMethods[T_1];
71
71
  getExplorerAddressUrl: (chain: Chain, address: string) => string;
72
- getBalance: (chain: Chain, refresh?: boolean) => Promise<AssetValue[]>;
72
+ getBalance: (chain: Chain, potentialScamFilter?: boolean) => Promise<AssetValue[]>;
73
73
  swap: ({ streamSwap, recipient, route, feeOptionKey }: SwapParams) => Promise<string>;
74
- getWalletByChain: (chain: Chain) => Promise<{
74
+ getWalletByChain: (chain: Chain, potentialScamFilter?: boolean) => Promise<{
75
75
  address?: string | undefined;
76
76
  balance?: AssetValue[] | undefined;
77
77
  walletType?: WalletOption | undefined;
@@ -98,8 +98,7 @@ export declare class SwapKitCore<T = ''> {
98
98
  runeTx: string;
99
99
  assetTx: string;
100
100
  }>;
101
- addLiquidity: ({ poolIdentifier, runeAssetValue, assetValue, runeAddr, assetAddr, isPendingSymmAsset, mode, }: {
102
- poolIdentifier: string;
101
+ addLiquidity: ({ runeAssetValue, assetValue, runeAddr, assetAddr, isPendingSymmAsset, mode, }: {
103
102
  runeAssetValue: AssetValue;
104
103
  assetValue: AssetValue;
105
104
  isPendingSymmAsset?: boolean | undefined;
@@ -110,6 +109,12 @@ export declare class SwapKitCore<T = ''> {
110
109
  runeTx: string | undefined;
111
110
  assetTx: string | undefined;
112
111
  }>;
112
+ addLiquidityPart: ({ assetValue, poolAddress, address, symmetric, }: {
113
+ assetValue: AssetValue;
114
+ address?: string | undefined;
115
+ poolAddress: string;
116
+ symmetric: boolean;
117
+ }) => Promise<string>;
113
118
  withdraw: ({ memo, assetValue, percent, from, to, }: {
114
119
  memo?: string | undefined;
115
120
  assetValue: AssetValue;
@@ -160,6 +165,7 @@ export declare class SwapKitCore<T = ''> {
160
165
  connectXDEFI: (_chains: Chain[]) => Promise<void>;
161
166
  connectEVMWallet: (_chains: Chain[] | Chain, _wallet: EVMWalletOptions) => Promise<void>;
162
167
  connectWalletconnect: (_chains: Chain[], _options?: any) => Promise<void>;
168
+ connectKeepkey: (_chains: Chain[], _derivationPath: number[][]) => Promise<string>;
163
169
  connectKeystore: (_chains: Chain[], _phrase: string) => Promise<void>;
164
170
  connectLedger: (_chains: Chain, _derivationPath: number[]) => Promise<void>;
165
171
  connectTrezor: (_chains: Chain, _derivationPath: number[]) => Promise<void>;