@dodoex/widgets 3.0.2-zetachain.40 → 3.0.2-zetachain.42
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/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{helper-hJqIANCn.js → helper-CutrqiT5.js} +1 -1
- package/dist/{helper-Bsj-ZnhJ.cjs → helper-DxJQg90K.cjs} +1 -1
- package/dist/{index-DC7uN4Ky.cjs → index-CUOc2hQi.cjs} +2 -2
- package/dist/index-CorXaUEa.cjs +31 -0
- package/dist/{index-CcZF1rNM.js → index-D1aC-SvH.js} +4 -4
- package/dist/index-DjCjb7no.js +31 -0
- package/dist/index-DrWCy010.js +12 -0
- package/dist/{index-D92qATSf.cjs → index-cem997J4.cjs} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +1 -1
- package/dist/types/components/Widget/index.d.ts +1 -2
- package/dist/types/hooks/ConnectWallet/index.d.ts +0 -2
- package/dist/types/hooks/Submission/useExecution.d.ts +1 -1
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
- package/dist/types/index.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +2 -3
- package/package.json +4 -7
- package/dist/28442382d977858a.svg +0 -9
- package/dist/assets/bundle-DSSoJu9z.css +0 -297
- package/dist/ed726d76d93d4899.svg +0 -10
- package/dist/index-BLKT38Xv.js +0 -31
- package/dist/index-D0C9Tiu3.js +0 -12
- package/dist/index-DtsGXsi7.cjs +0 -31
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -4
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
- package/dist/types/components/SwitchChainDialog/index.d.ts +0 -6
- package/dist/types/hooks/Chain/useChainList.test.d.ts +0 -1
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
- package/dist/types/hooks/ConnectWallet/useAccountByChainId.d.ts +0 -13
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
- package/dist/types/hooks/ConnectWallet/web3.d.ts +0 -10
- package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +0 -1
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import { Actions, Connector } from '@web3-react/types';
|
|
3
|
-
export default class JsonRpcConnector extends Connector {
|
|
4
|
-
customProvider: JsonRpcProvider;
|
|
5
|
-
constructor(actions: Actions, customProvider: JsonRpcProvider, onError?: (error: Error) => void);
|
|
6
|
-
private activateAccounts;
|
|
7
|
-
connectEagerly(): Promise<void>;
|
|
8
|
-
activate(): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param chainId
|
|
5
|
-
* @returns
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare function useAppKitAccountByChainId(chainId: ChainId | undefined): {
|
|
9
|
-
appKitAccount: import("@reown/appkit-controllers").UseAppKitAccountReturn | undefined;
|
|
10
|
-
namespace: import("@reown/appkit-common").ChainNamespace | undefined;
|
|
11
|
-
targetCaipNetwork: import("@reown/appkit-common").AppKitNetwork | undefined;
|
|
12
|
-
account: string | undefined;
|
|
13
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Provider as Eip1193Provider } from '@web3-react/types';
|
|
2
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
|
-
import { ChainId } from '@dodoex/api';
|
|
4
|
-
import { Web3Connection } from './web3';
|
|
5
|
-
import { WalletType } from '../../constants/wallet';
|
|
6
|
-
export interface Web3ConnectorsProps {
|
|
7
|
-
provider?: Eip1193Provider | JsonRpcProvider;
|
|
8
|
-
jsonRpcUrlMap?: {
|
|
9
|
-
[chainId: number]: string[];
|
|
10
|
-
};
|
|
11
|
-
defaultChainId?: ChainId;
|
|
12
|
-
}
|
|
13
|
-
export declare function useWeb3Connectors({ provider, jsonRpcUrlMap: jsonRpcUrlMapProps, defaultChainId, }: Web3ConnectorsProps): {
|
|
14
|
-
connectors: Web3Connection[];
|
|
15
|
-
key: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function connectToWallet(type: WalletType, chainId: number | undefined, onError: (error: Error) => void): Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Web3ReactHooks } from '@web3-react/core';
|
|
2
|
-
import { Connector, Provider as Eip1193Provider } from '@web3-react/types';
|
|
3
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
4
|
-
import { ChainId } from '@dodoex/api';
|
|
5
|
-
export type Web3Connection = [Connector, Web3ReactHooks];
|
|
6
|
-
export declare function getConnectionFromProvider(onError: (error: Error) => void, provider?: JsonRpcProvider | Eip1193Provider): Web3Connection | undefined;
|
|
7
|
-
export declare function getConnectionFromWalletConnect(useDefault: boolean, jsonRpcUrlMap: {
|
|
8
|
-
[chainId: number]: string[];
|
|
9
|
-
}, defaultChainId: ChainId | undefined, onError: (error: Error) => void): Web3Connection;
|
|
10
|
-
export declare function getConnectionFromMetaMask(onError: (error: Error) => void): Web3Connection;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|