@web3jskit/walletkit 0.1.6 → 0.1.7
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/package.json +46 -0
- package/dist/src/assets/svg/dataBase.d.ts +4 -0
- package/dist/src/assets/svg/dataBase.js +5 -0
- package/dist/src/assets/svg/dataBase.js.map +1 -0
- package/dist/src/assets/svg/metaMaskWallet.d.ts +1 -0
- package/dist/src/assets/svg/metaMaskWallet.js +35 -0
- package/dist/src/assets/svg/metaMaskWallet.js.map +1 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +1 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.js +13 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.js.map +1 -0
- package/dist/src/components/ConnectButton/index.d.ts +8 -0
- package/dist/src/components/ConnectButton/index.js +16 -0
- package/dist/src/components/ConnectButton/index.js.map +1 -0
- package/dist/src/components/Connecting/index.d.ts +6 -0
- package/dist/src/components/Connecting/index.js +11 -0
- package/dist/src/components/Connecting/index.js.map +1 -0
- package/dist/src/components/Connecting/style.d.ts +2 -0
- package/dist/src/components/Connecting/style.js +52 -0
- package/dist/src/components/Connecting/style.js.map +1 -0
- package/dist/src/components/GetWallet/index.d.ts +7 -0
- package/dist/src/components/GetWallet/index.js +21 -0
- package/dist/src/components/GetWallet/index.js.map +1 -0
- package/dist/src/components/GetWallet/style.d.ts +2 -0
- package/dist/src/components/GetWallet/style.js +117 -0
- package/dist/src/components/GetWallet/style.js.map +1 -0
- package/dist/src/components/Header/ModalHeader.d.ts +8 -0
- package/dist/src/components/Header/ModalHeader.js +9 -0
- package/dist/src/components/Header/ModalHeader.js.map +1 -0
- package/dist/src/components/Header/style.d.ts +2 -0
- package/dist/src/components/Header/style.js +74 -0
- package/dist/src/components/Header/style.js.map +1 -0
- package/dist/src/components/Icon/index.d.ts +23 -0
- package/dist/src/components/Icon/index.js +48 -0
- package/dist/src/components/Icon/index.js.map +1 -0
- package/dist/src/components/Introduce/index.d.ts +6 -0
- package/dist/src/components/Introduce/index.js +11 -0
- package/dist/src/components/Introduce/index.js.map +1 -0
- package/dist/src/components/Introduce/style.d.ts +2 -0
- package/dist/src/components/Introduce/style.js +97 -0
- package/dist/src/components/Introduce/style.js.map +1 -0
- package/dist/src/components/Modal/ConnectModal.d.ts +7 -0
- package/dist/src/components/Modal/ConnectModal.js +121 -0
- package/dist/src/components/Modal/ConnectModal.js.map +1 -0
- package/dist/src/components/Modal/WalletInfoModal.d.ts +1 -0
- package/dist/src/components/Modal/WalletInfoModal.js +46 -0
- package/dist/src/components/Modal/WalletInfoModal.js.map +1 -0
- package/dist/src/components/Modal/index.d.ts +13 -0
- package/dist/src/components/Modal/index.js +52 -0
- package/dist/src/components/Modal/index.js.map +1 -0
- package/dist/src/components/Modal/style.d.ts +5 -0
- package/dist/src/components/Modal/style.js +187 -0
- package/dist/src/components/Modal/style.js.map +1 -0
- package/dist/src/components/SVGs/backArrowSvg.d.ts +2 -0
- package/dist/src/components/SVGs/backArrowSvg.js +4 -0
- package/dist/src/components/SVGs/backArrowSvg.js.map +1 -0
- package/dist/src/components/SVGs/closeSvg.d.ts +2 -0
- package/dist/src/components/SVGs/closeSvg.js +4 -0
- package/dist/src/components/SVGs/closeSvg.js.map +1 -0
- package/dist/src/components/SVGs/copiedSvg.d.ts +2 -0
- package/dist/src/components/SVGs/copiedSvg.js +4 -0
- package/dist/src/components/SVGs/copiedSvg.js.map +1 -0
- package/dist/src/components/SVGs/copySvg.d.ts +2 -0
- package/dist/src/components/SVGs/copySvg.js +4 -0
- package/dist/src/components/SVGs/copySvg.js.map +1 -0
- package/dist/src/components/SVGs/exitSvg.d.ts +2 -0
- package/dist/src/components/SVGs/exitSvg.js +4 -0
- package/dist/src/components/SVGs/exitSvg.js.map +1 -0
- package/dist/src/components/SVGs/spinSvg.d.ts +4 -0
- package/dist/src/components/SVGs/spinSvg.js +4 -0
- package/dist/src/components/SVGs/spinSvg.js.map +1 -0
- package/dist/src/components/SVGs/vectorSvg.d.ts +2 -0
- package/dist/src/components/SVGs/vectorSvg.js +4 -0
- package/dist/src/components/SVGs/vectorSvg.js.map +1 -0
- package/dist/src/components/Text/index.d.ts +18 -0
- package/dist/src/components/Text/index.js +32 -0
- package/dist/src/components/Text/index.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +12 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js +59 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +13 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.js +42 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +8 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js +13 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/index.d.ts +16 -0
- package/dist/src/components/WalletKitProvider/index.js +14 -0
- package/dist/src/components/WalletKitProvider/index.js.map +1 -0
- package/dist/src/components/WalletList/index.d.ts +8 -0
- package/dist/src/components/WalletList/index.js +15 -0
- package/dist/src/components/WalletList/index.js.map +1 -0
- package/dist/src/components/WalletList/style.d.ts +2 -0
- package/dist/src/components/WalletList/style.js +102 -0
- package/dist/src/components/WalletList/style.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/index.d.ts +12 -0
- package/dist/src/components/WalletTriggerButton/index.js +32 -0
- package/dist/src/components/WalletTriggerButton/index.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/style.d.ts +2 -0
- package/dist/src/components/WalletTriggerButton/style.js +63 -0
- package/dist/src/components/WalletTriggerButton/style.js.map +1 -0
- package/dist/src/errors/index.d.ts +2 -0
- package/dist/src/errors/index.js +6 -0
- package/dist/src/errors/index.js.map +1 -0
- package/dist/src/hooks/useWalletKit.d.ts +73 -0
- package/dist/src/hooks/useWalletKit.js +38 -0
- package/dist/src/hooks/useWalletKit.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/locals/i18n.d.ts +2 -0
- package/dist/src/locals/i18n.js +17 -0
- package/dist/src/locals/i18n.js.map +1 -0
- package/dist/src/locals/languages/en.json +30 -0
- package/dist/src/locals/languages/zh.json +30 -0
- package/dist/src/locals/resources.d.ts +66 -0
- package/dist/src/locals/resources.js +11 -0
- package/dist/src/locals/resources.js.map +1 -0
- package/dist/src/modals/connectModal/index.d.ts +0 -0
- package/dist/src/modals/connectModal/index.js +2 -0
- package/dist/src/modals/connectModal/index.js.map +1 -0
- package/dist/src/stores/SlotsWalletStore.d.ts +18 -0
- package/dist/src/stores/SlotsWalletStore.js +33 -0
- package/dist/src/stores/SlotsWalletStore.js.map +1 -0
- package/dist/src/stores/index.d.ts +27 -0
- package/dist/src/stores/index.js +25 -0
- package/dist/src/stores/index.js.map +1 -0
- package/dist/src/stores/modalStore.d.ts +17 -0
- package/dist/src/stores/modalStore.js +41 -0
- package/dist/src/stores/modalStore.js.map +1 -0
- package/dist/src/styled/index.d.ts +17 -0
- package/dist/src/styled/index.js +76 -0
- package/dist/src/styled/index.js.map +1 -0
- package/dist/src/test/getwalletprovider.test.d.ts +1 -0
- package/dist/src/test/getwalletprovider.test.js +10 -0
- package/dist/src/test/getwalletprovider.test.js.map +1 -0
- package/dist/src/test/setup.d.ts +1 -0
- package/dist/src/test/setup.js +7 -0
- package/dist/src/test/setup.js.map +1 -0
- package/dist/src/theme/index.d.ts +53 -0
- package/dist/src/theme/index.js +133 -0
- package/dist/src/theme/index.js.map +1 -0
- package/dist/src/types/configType.d.ts +2 -0
- package/dist/src/types/configType.js +2 -0
- package/dist/src/types/configType.js.map +1 -0
- package/dist/src/types/error.d.ts +7 -0
- package/dist/src/types/error.js +5 -0
- package/dist/src/types/error.js.map +1 -0
- package/dist/src/types/slotsType.d.ts +23 -0
- package/dist/src/types/slotsType.js +2 -0
- package/dist/src/types/slotsType.js.map +1 -0
- package/dist/src/types/store.d.ts +2 -0
- package/dist/src/types/store.js +2 -0
- package/dist/src/types/store.js.map +1 -0
- package/dist/src/utils/formatter.d.ts +1 -0
- package/dist/src/utils/formatter.js +6 -0
- package/dist/src/utils/formatter.js.map +1 -0
- package/dist/src/utils/generateAvatar.d.ts +4 -0
- package/dist/src/utils/generateAvatar.js +32 -0
- package/dist/src/utils/generateAvatar.js.map +1 -0
- package/dist/src/wallets/GelWallet/index.d.ts +0 -0
- package/dist/src/wallets/GelWallet/index.js +2 -0
- package/dist/src/wallets/GelWallet/index.js.map +1 -0
- package/dist/src/wallets/SlotsWallets/index.d.ts +3 -0
- package/dist/src/wallets/SlotsWallets/index.js +26 -0
- package/dist/src/wallets/SlotsWallets/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type WalletHelperState } from '@web3jskit/wallethelper';
|
|
2
|
+
import { type WalletKitState } from '../stores';
|
|
3
|
+
import type { Connector } from '@web3jskit/wallethelper/dist/src/core/types/connector';
|
|
4
|
+
type WalletKitStoreState = WalletHelperState & WalletKitState;
|
|
5
|
+
type WalletKit = WalletKitStoreState & {
|
|
6
|
+
connect: () => Promise<Connector>;
|
|
7
|
+
showWalletInfo: () => void;
|
|
8
|
+
closeWalletInfo: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const useWalletKit: () => {
|
|
11
|
+
connect: () => Promise<unknown>;
|
|
12
|
+
showWalletInfo: () => void;
|
|
13
|
+
closeWalletInfo: () => void;
|
|
14
|
+
isConnecting: {
|
|
15
|
+
icon: string;
|
|
16
|
+
name: string;
|
|
17
|
+
} | boolean;
|
|
18
|
+
supportWallets: import("@web3jskit/wallethelper").SupportWallet[];
|
|
19
|
+
setSupportWallets: (wallets: import("@web3jskit/wallethelper").SupportWallet[]) => void;
|
|
20
|
+
connectors: Connector[];
|
|
21
|
+
getConnectors: () => any[];
|
|
22
|
+
currentConnector: Connector | null;
|
|
23
|
+
currentConnectorName: string;
|
|
24
|
+
getCurrentConnector: () => Connector | null;
|
|
25
|
+
setCurrentConnector: (connector: Connector) => void;
|
|
26
|
+
provider: any;
|
|
27
|
+
getProvider: () => Promise<any>;
|
|
28
|
+
setProvider: (provider: any) => void;
|
|
29
|
+
currentChainType: import("@web3jskit/type").ChainType;
|
|
30
|
+
getCurrentChainType: () => import("@web3jskit/type").ChainType;
|
|
31
|
+
setChainType: (chainType: import("@web3jskit/type").ChainType) => void;
|
|
32
|
+
currentNetworkId: number;
|
|
33
|
+
currentNetwork: import("@web3jskit/wallethelper").NetworkInfo | null;
|
|
34
|
+
getCurrentNetwork: () => import("@web3jskit/wallethelper").NetworkInfo | null;
|
|
35
|
+
setCurrentNetwork: (network: import("@web3jskit/wallethelper").NetworkInfo) => void;
|
|
36
|
+
connectStatus: import("@web3jskit/wallethelper").ConnectStatus;
|
|
37
|
+
getConnectStatus: () => import("@web3jskit/wallethelper").ConnectStatus;
|
|
38
|
+
setConnectStatus: (status: import("@web3jskit/wallethelper").ConnectStatus) => void;
|
|
39
|
+
walletAddress: string;
|
|
40
|
+
getWalletAddress: () => string;
|
|
41
|
+
setWalletAddress: (address: string) => void;
|
|
42
|
+
resetStatus: () => void;
|
|
43
|
+
getConnectorProxy: () => any;
|
|
44
|
+
disconnect: () => Promise<void>;
|
|
45
|
+
signMessage: (message: string) => Promise<any>;
|
|
46
|
+
signTransaction: (transaction: any) => Promise<any>;
|
|
47
|
+
sendTransaction: (transaction: any) => Promise<any>;
|
|
48
|
+
waitForTransactionReceipt: (hash: string, timeout?: number) => Promise<any>;
|
|
49
|
+
readContract: (params: import("@web3jskit/wallethelper/dist/src/core/types/connector").IContractOptions) => Promise<any>;
|
|
50
|
+
writeContract: (params: import("@web3jskit/wallethelper/dist/src/core/types/connector").IContractOptions) => Promise<any>;
|
|
51
|
+
multipleRequest: (requests: {
|
|
52
|
+
method: string;
|
|
53
|
+
params?: any[];
|
|
54
|
+
}[]) => Promise<any[]>;
|
|
55
|
+
multicall: (requests: import("@web3jskit/wallethelper/dist/src/core/types/connector").IContractOptions[]) => Promise<any[]>;
|
|
56
|
+
switchNetwork: (chainId: number) => Promise<any>;
|
|
57
|
+
chains: Array<any>;
|
|
58
|
+
setChains: (chains: Array<any>) => void;
|
|
59
|
+
language: import("..").Locals;
|
|
60
|
+
setLanguage: (language: import("..").Locals) => void;
|
|
61
|
+
theme: import("..").Theme;
|
|
62
|
+
toggleTheme: () => void;
|
|
63
|
+
avatar: {
|
|
64
|
+
text: string;
|
|
65
|
+
bg: string;
|
|
66
|
+
} | null;
|
|
67
|
+
setAvatar: (avatar: {
|
|
68
|
+
text: string;
|
|
69
|
+
bg: string;
|
|
70
|
+
}) => void;
|
|
71
|
+
};
|
|
72
|
+
export declare const getWalletKit: () => WalletKit;
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { walletHelperStore } from '@web3jskit/wallethelper';
|
|
2
|
+
import { walletKitStore } from '../stores';
|
|
3
|
+
import { useModalStore } from '../stores/modalStore';
|
|
4
|
+
const enhancedWalletKit = (walletKit) => {
|
|
5
|
+
const { connect, showWalletInfoModal, closeWalletInfoModal } = useModalStore.getState();
|
|
6
|
+
const showWalletInfo = () => {
|
|
7
|
+
if (walletKit.currentConnector) {
|
|
8
|
+
showWalletInfoModal();
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const closeWalletInfo = () => {
|
|
12
|
+
closeWalletInfoModal();
|
|
13
|
+
};
|
|
14
|
+
return {
|
|
15
|
+
...walletKit,
|
|
16
|
+
connect,
|
|
17
|
+
showWalletInfo,
|
|
18
|
+
closeWalletInfo
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export const useWalletKit = () => {
|
|
22
|
+
const walletHelperStates = walletHelperStore((states) => states);
|
|
23
|
+
const walletKitStates = walletKitStore((states) => states);
|
|
24
|
+
return enhancedWalletKit({
|
|
25
|
+
...walletHelperStates,
|
|
26
|
+
...walletKitStates
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export const getWalletKit = () => {
|
|
30
|
+
const walletHelperStates = walletHelperStore.getState();
|
|
31
|
+
const walletKitStates = walletKitStore.getState();
|
|
32
|
+
const exportStates = enhancedWalletKit({
|
|
33
|
+
...walletHelperStates,
|
|
34
|
+
...walletKitStates
|
|
35
|
+
});
|
|
36
|
+
return exportStates;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=useWalletKit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletKit.js","sourceRoot":"","sources":["../../../src/hooks/useWalletKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAuB,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAWrD,MAAM,iBAAiB,GAAG,CAAC,SAA8B,EAAE,EAAE;IAC5D,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC;IACxF,MAAM,cAAc,GAAG,GAAG,EAAE;QAC3B,IAAI,SAAS,CAAC,gBAAgB,EAAE,CAAC;YAChC,mBAAmB,EAAE,CAAC;QACvB,CAAC;IACF,CAAC,CAAC;IACF,MAAM,eAAe,GAAG,GAAG,EAAE;QAC5B,oBAAoB,EAAE,CAAC;IACxB,CAAC,CAAC;IACF,OAAO;QACN,GAAG,SAAS;QACZ,OAAO;QACP,cAAc;QACd,eAAe;KACf,CAAC;AACH,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAEtE,MAAM,eAAe,GAAG,cAAc,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAEhE,OAAO,iBAAiB,CAAC;QACxB,GAAG,kBAAkB;QAErB,GAAG,eAAe;KACL,CAAC,CAAC;AACjB,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IACxD,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,EAAE,CAAC;IAElD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACtC,GAAG,kBAAkB;QACrB,GAAG,eAAe;KACL,CAAC,CAAC;IAEhB,OAAO,YAAyB,CAAC;AAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { SupportWallet, SupportedNetworks } from '@web3jskit/wallethelper';
|
|
2
|
+
export * from './components/WalletKitProvider';
|
|
3
|
+
export * from './components/ConnectButton';
|
|
4
|
+
export * from './types/configType';
|
|
5
|
+
export * from './types/slotsType';
|
|
6
|
+
export { createSlots } from './wallets/SlotsWallets/index';
|
|
7
|
+
export { WalletSlotTriggerButton } from './components/WalletTriggerButton/index';
|
|
8
|
+
export { useWalletKit, getWalletKit } from './hooks/useWalletKit';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { SupportWallet, SupportedNetworks } from '@web3jskit/wallethelper';
|
|
2
|
+
export * from './components/WalletKitProvider';
|
|
3
|
+
export * from './components/ConnectButton';
|
|
4
|
+
export * from './types/configType';
|
|
5
|
+
export * from './types/slotsType';
|
|
6
|
+
export { createSlots } from './wallets/SlotsWallets/index';
|
|
7
|
+
export { WalletSlotTriggerButton } from './components/WalletTriggerButton/index';
|
|
8
|
+
export { useWalletKit, getWalletKit } from './hooks/useWalletKit';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
|
+
import { resources } from './resources';
|
|
4
|
+
i18n.use(initReactI18next).init({
|
|
5
|
+
resources,
|
|
6
|
+
react: {
|
|
7
|
+
useSuspense: true
|
|
8
|
+
},
|
|
9
|
+
fallbackLng: 'en',
|
|
10
|
+
preload: ['zh-CN', 'en', 'zh', 'en-US'],
|
|
11
|
+
keySeparator: false,
|
|
12
|
+
interpolation: {
|
|
13
|
+
escapeValue: false
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export default i18n;
|
|
17
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/locals/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;IAC/B,SAAS;IACT,KAAK,EAAE;QACN,WAAW,EAAE,IAAI;KACjB;IACD,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC;IACvC,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE;QACd,WAAW,EAAE,KAAK;KAClB;CACD,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "wallet",
|
|
3
|
+
"connectWallet": "Connect Wallet",
|
|
4
|
+
"introduceQuestion": "What is a wallet?",
|
|
5
|
+
"introduceAnswer": "Your Digital Asset Home",
|
|
6
|
+
"introduceDetail": "Wallets are used to send, receive, store, and display digital assets such as Ethereum and NFTs.",
|
|
7
|
+
"getWallet": "Get Wallet",
|
|
8
|
+
"learnMore": "Learn More",
|
|
9
|
+
"getWalletTitle": "Get a wallet",
|
|
10
|
+
"getWalletTips": "Mobile Wallet and Expansion,",
|
|
11
|
+
"getWalletQuestion": "Isn't that what you're looking for?",
|
|
12
|
+
"getWalletAnswer": "Select a wallet on the left to start using different wallet providers.",
|
|
13
|
+
"forChrome": "for Chrome",
|
|
14
|
+
"chromeDescription": "Access your wallet directly from your favorite web browser.",
|
|
15
|
+
"addToChrome": "Add to Chrome",
|
|
16
|
+
"forMobile": "for Mobile",
|
|
17
|
+
"mobileDescription": "Explore the world of Ethereum with a mobile wallet.",
|
|
18
|
+
"getMobileApp": "Get the App",
|
|
19
|
+
"getAppTip": "Scan with your phone to download for iOS or Android",
|
|
20
|
+
"get": "Get",
|
|
21
|
+
"continue": "Continue",
|
|
22
|
+
"opening": "Opening",
|
|
23
|
+
"confirmConnection": "Confirm connection in extension",
|
|
24
|
+
"copyAddress": "Copy Address",
|
|
25
|
+
"copied": "Copied!",
|
|
26
|
+
"disConnect": "Disconnect",
|
|
27
|
+
"installed": "Installed",
|
|
28
|
+
"run": "Run",
|
|
29
|
+
"more": "More"
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "钱包",
|
|
3
|
+
"connectWallet": "连接钱包",
|
|
4
|
+
"introduceQuestion": "什么是钱包?",
|
|
5
|
+
"introduceAnswer": "您的数字资产之家",
|
|
6
|
+
"introduceDetail": "钱包用于发送、接收、存储和展示数字资产,例如以太坊和 NFT。",
|
|
7
|
+
"getWallet": "获取钱包",
|
|
8
|
+
"learnMore": "了解更多",
|
|
9
|
+
"getWalletTitle": "获取钱包",
|
|
10
|
+
"getWalletTips": "移动钱包和扩展程序",
|
|
11
|
+
"getWalletQuestion": "不是你要找的吗?",
|
|
12
|
+
"getWalletAnswer": "在左侧选择一个钱包以开始使用不同的钱包提供商。",
|
|
13
|
+
"forChrome": "为 Chrome",
|
|
14
|
+
"chromeDescription": "从您最喜欢的网络浏览器直接访问您的钱包。",
|
|
15
|
+
"addToChrome": "添加到 Chrome",
|
|
16
|
+
"forMobile": "用于移动",
|
|
17
|
+
"mobileDescription": "使用移动钱包探索以太坊的世界。",
|
|
18
|
+
"getMobileApp": "获取应用",
|
|
19
|
+
"getAppTip": "用手机扫描下载 iOS 或 Android",
|
|
20
|
+
"get": "获取",
|
|
21
|
+
"continue": "继续",
|
|
22
|
+
"opening": "打开",
|
|
23
|
+
"confirmConnection": "在扩展程序中确认连接",
|
|
24
|
+
"copyAddress": "复制地址",
|
|
25
|
+
"copied": "已复制!",
|
|
26
|
+
"disConnect": "断开连接",
|
|
27
|
+
"installed": "已安装",
|
|
28
|
+
"run": "流行",
|
|
29
|
+
"more": "更多"
|
|
30
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const resources: {
|
|
2
|
+
en: {
|
|
3
|
+
translation: {
|
|
4
|
+
title: string;
|
|
5
|
+
connectWallet: string;
|
|
6
|
+
introduceQuestion: string;
|
|
7
|
+
introduceAnswer: string;
|
|
8
|
+
introduceDetail: string;
|
|
9
|
+
getWallet: string;
|
|
10
|
+
learnMore: string;
|
|
11
|
+
getWalletTitle: string;
|
|
12
|
+
getWalletTips: string;
|
|
13
|
+
getWalletQuestion: string;
|
|
14
|
+
getWalletAnswer: string;
|
|
15
|
+
forChrome: string;
|
|
16
|
+
chromeDescription: string;
|
|
17
|
+
addToChrome: string;
|
|
18
|
+
forMobile: string;
|
|
19
|
+
mobileDescription: string;
|
|
20
|
+
getMobileApp: string;
|
|
21
|
+
getAppTip: string;
|
|
22
|
+
get: string;
|
|
23
|
+
continue: string;
|
|
24
|
+
opening: string;
|
|
25
|
+
confirmConnection: string;
|
|
26
|
+
copyAddress: string;
|
|
27
|
+
copied: string;
|
|
28
|
+
disConnect: string;
|
|
29
|
+
installed: string;
|
|
30
|
+
run: string;
|
|
31
|
+
more: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
zh: {
|
|
35
|
+
translation: {
|
|
36
|
+
title: string;
|
|
37
|
+
connectWallet: string;
|
|
38
|
+
introduceQuestion: string;
|
|
39
|
+
introduceAnswer: string;
|
|
40
|
+
introduceDetail: string;
|
|
41
|
+
getWallet: string;
|
|
42
|
+
learnMore: string;
|
|
43
|
+
getWalletTitle: string;
|
|
44
|
+
getWalletTips: string;
|
|
45
|
+
getWalletQuestion: string;
|
|
46
|
+
getWalletAnswer: string;
|
|
47
|
+
forChrome: string;
|
|
48
|
+
chromeDescription: string;
|
|
49
|
+
addToChrome: string;
|
|
50
|
+
forMobile: string;
|
|
51
|
+
mobileDescription: string;
|
|
52
|
+
getMobileApp: string;
|
|
53
|
+
getAppTip: string;
|
|
54
|
+
get: string;
|
|
55
|
+
continue: string;
|
|
56
|
+
opening: string;
|
|
57
|
+
confirmConnection: string;
|
|
58
|
+
copyAddress: string;
|
|
59
|
+
copied: string;
|
|
60
|
+
disConnect: string;
|
|
61
|
+
installed: string;
|
|
62
|
+
run: string;
|
|
63
|
+
more: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/locals/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrC,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,EAAE,EAAE;QACH,WAAW,EAAE,EAAE;KACf;IACD,EAAE,EAAE;QACH,WAAW,EAAE,EAAE;KACf;CACD,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modals/connectModal/index.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ISlotsConnector } from '../types/slotsType';
|
|
2
|
+
export interface ISlotsWallets {
|
|
3
|
+
walletConnectors: {
|
|
4
|
+
[key: string]: ISlotsConnector;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
declare const useSlotsWalletStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ISlotsWallets>, "persist"> & {
|
|
8
|
+
persist: {
|
|
9
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<ISlotsWallets, unknown>>) => void;
|
|
10
|
+
clearStorage: () => void;
|
|
11
|
+
rehydrate: () => Promise<void> | void;
|
|
12
|
+
hasHydrated: () => boolean;
|
|
13
|
+
onHydrate: (fn: (state: ISlotsWallets) => void) => () => void;
|
|
14
|
+
onFinishHydration: (fn: (state: ISlotsWallets) => void) => () => void;
|
|
15
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<ISlotsWallets, unknown>>;
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
export default useSlotsWalletStore;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
2
|
+
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
3
|
+
const useSlotsWalletStore = create(persist((set, get) => ({
|
|
4
|
+
walletConnectors: {},
|
|
5
|
+
addConnector({ walletName, walletIcon, connector, uuid, connectorNamespace }) {
|
|
6
|
+
return set(state => {
|
|
7
|
+
return {
|
|
8
|
+
walletConnectors: {
|
|
9
|
+
...state.walletConnectors,
|
|
10
|
+
[uuid]: { walletName, walletIcon, connector, uuid, connectorNamespace }
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
removeConnector(uuid) {
|
|
16
|
+
return set(state => {
|
|
17
|
+
if (get().walletConnectors[uuid]) {
|
|
18
|
+
return {
|
|
19
|
+
walletConnectors: Object.fromEntries(Object.entries(state.walletConnectors).filter(([k]) => k !== uuid))
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return { walletConnectors: { ...state.walletConnectors } };
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
clearConnectors() {
|
|
26
|
+
return set(() => ({ walletConnectors: {} }));
|
|
27
|
+
}
|
|
28
|
+
}), {
|
|
29
|
+
name: 'WALLET_KIT_SLOTS',
|
|
30
|
+
storage: createJSONStorage(() => localStorage)
|
|
31
|
+
}));
|
|
32
|
+
export default useSlotsWalletStore;
|
|
33
|
+
//# sourceMappingURL=SlotsWalletStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlotsWalletStore.js","sourceRoot":"","sources":["../../../src/stores/SlotsWalletStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAShE,MAAM,mBAAmB,GAAG,MAAM,CACjC,OAAO,CACN,CAAC,GAAG,EAAE,GAAwB,EAAE,EAAE,CAAC,CAAC;IACnC,gBAAgB,EAAE,EAAE;IACpB,YAAY,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAmB;QAC5F,OAAO,GAAG,CAAC,KAAK,CAAC,EAAE;YAClB,OAAO;gBACN,gBAAgB,EAAE;oBACjB,GAAG,KAAK,CAAC,gBAAgB;oBACzB,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE;iBACvE;aACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,eAAe,CAAC,IAAY;QAC3B,OAAO,GAAG,CAAC,KAAK,CAAC,EAAE;YAClB,IAAI,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClC,OAAO;oBACN,gBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;iBACxG,CAAC;YACH,CAAC;YACD,OAAO,EAAE,gBAAgB,EAAE,EAAE,GAAG,KAAK,CAAC,gBAAgB,EAAE,EAAE,CAAC;QAC5D,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,eAAe;QACd,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;CACD,CAAC,EACF;IACC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;CAC9C,CACD,CACD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Locals, Theme } from '../types/configType';
|
|
2
|
+
type Avatar = {
|
|
3
|
+
text: string;
|
|
4
|
+
bg: string;
|
|
5
|
+
};
|
|
6
|
+
export interface WalletKitState {
|
|
7
|
+
chains: Array<any>;
|
|
8
|
+
setChains: (chains: Array<any>) => void;
|
|
9
|
+
language: Locals;
|
|
10
|
+
setLanguage: (language: Locals) => void;
|
|
11
|
+
theme: Theme;
|
|
12
|
+
toggleTheme: () => void;
|
|
13
|
+
avatar: Avatar | null;
|
|
14
|
+
setAvatar: (avatar: Avatar) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const walletKitStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WalletKitState>, "persist"> & {
|
|
17
|
+
persist: {
|
|
18
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<WalletKitState, unknown>>) => void;
|
|
19
|
+
clearStorage: () => void;
|
|
20
|
+
rehydrate: () => Promise<void> | void;
|
|
21
|
+
hasHydrated: () => boolean;
|
|
22
|
+
onHydrate: (fn: (state: WalletKitState) => void) => () => void;
|
|
23
|
+
onFinishHydration: (fn: (state: WalletKitState) => void) => () => void;
|
|
24
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<WalletKitState, unknown>>;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
2
|
+
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
3
|
+
export const walletKitStore = create()(persist((set, get) => ({
|
|
4
|
+
chains: [],
|
|
5
|
+
setChains(chains) {
|
|
6
|
+
return set(() => ({ chains }));
|
|
7
|
+
},
|
|
8
|
+
language: 'en',
|
|
9
|
+
setLanguage(language) {
|
|
10
|
+
return set(() => ({ language }));
|
|
11
|
+
},
|
|
12
|
+
theme: 'lightMode',
|
|
13
|
+
toggleTheme() {
|
|
14
|
+
const { theme } = get();
|
|
15
|
+
return set(() => ({ theme: theme === 'darkMode' ? 'lightMode' : 'darkMode' }));
|
|
16
|
+
},
|
|
17
|
+
avatar: null,
|
|
18
|
+
setAvatar(avatar) {
|
|
19
|
+
return set(() => ({ avatar }));
|
|
20
|
+
}
|
|
21
|
+
}), {
|
|
22
|
+
name: 'WALLET_KIT_STORE',
|
|
23
|
+
storage: createJSONStorage(() => localStorage)
|
|
24
|
+
}));
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAsBhE,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,EAAkB,CACrD,OAAO,CACN,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IACd,MAAM,EAAE,EAAE;IACV,SAAS,CAAC,MAAkB;QAC3B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,QAAQ,EAAE,IAAI;IACd,WAAW,CAAC,QAAgB;QAC3B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,EAAE,WAAW;IAClB,WAAW;QACV,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,EAAE,CAAC;QACxB,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAChF,CAAC;IAED,MAAM,EAAE,IAAI;IACZ,SAAS,CAAC,MAAc;QACvB,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;CACD,CAAC,EACF;IACC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;CAC9C,CACD,CACD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoreSet, StoreGet } from '../types/store';
|
|
2
|
+
interface ConnectModalData {
|
|
3
|
+
onError: (error: any) => void;
|
|
4
|
+
onConnect: (address: string) => void;
|
|
5
|
+
}
|
|
6
|
+
declare class ModalStore {
|
|
7
|
+
private readonly set;
|
|
8
|
+
private readonly get;
|
|
9
|
+
constructor(set: StoreSet<ModalStore>, get: StoreGet<ModalStore>);
|
|
10
|
+
connectModalData?: ConnectModalData;
|
|
11
|
+
isShowWalletInfoModal: boolean;
|
|
12
|
+
readonly connect: () => Promise<unknown>;
|
|
13
|
+
readonly showWalletInfoModal: () => void;
|
|
14
|
+
readonly closeWalletInfoModal: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const useModalStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ModalStore>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
2
|
+
class ModalStore {
|
|
3
|
+
constructor(set, get) {
|
|
4
|
+
this.set = set;
|
|
5
|
+
this.get = get;
|
|
6
|
+
this.isShowWalletInfoModal = false;
|
|
7
|
+
this.connect = () => {
|
|
8
|
+
return new Promise((resolve, reject) => {
|
|
9
|
+
const close = () => {
|
|
10
|
+
this.set({
|
|
11
|
+
connectModalData: undefined
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
this.set({
|
|
15
|
+
connectModalData: {
|
|
16
|
+
onError: (error) => {
|
|
17
|
+
close();
|
|
18
|
+
reject(error);
|
|
19
|
+
},
|
|
20
|
+
onConnect: (address) => {
|
|
21
|
+
close();
|
|
22
|
+
resolve(address);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
this.showWalletInfoModal = () => {
|
|
29
|
+
this.set({
|
|
30
|
+
isShowWalletInfoModal: true
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
this.closeWalletInfoModal = () => {
|
|
34
|
+
this.set({
|
|
35
|
+
isShowWalletInfoModal: false
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export const useModalStore = create((set, get) => new ModalStore(set, get));
|
|
41
|
+
//# sourceMappingURL=modalStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modalStore.js","sourceRoot":"","sources":["../../../src/stores/modalStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AASjC,MAAM,UAAU;IACf,YACkB,GAAyB,EAEzB,GAAyB;QAFzB,QAAG,GAAH,GAAG,CAAsB;QAEzB,QAAG,GAAH,GAAG,CAAsB;QAG3C,0BAAqB,GAAY,KAAK,CAAC;QAE9B,YAAO,GAAG,GAAG,EAAE;YAGvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACtC,MAAM,KAAK,GAAG,GAAG,EAAE;oBAClB,IAAI,CAAC,GAAG,CAAC;wBACR,gBAAgB,EAAE,SAAS;qBAC3B,CAAC,CAAC;gBACJ,CAAC,CAAC;gBACF,IAAI,CAAC,GAAG,CAAC;oBACR,gBAAgB,EAAE;wBACjB,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE;4BACvB,KAAK,EAAE,CAAC;4BACR,MAAM,CAAC,KAAK,CAAC,CAAC;wBACf,CAAC;wBACD,SAAS,EAAE,CAAC,OAAe,EAAE,EAAE;4BAC9B,KAAK,EAAE,CAAC;4BACR,OAAO,CAAC,OAAO,CAAC,CAAC;wBAClB,CAAC;qBACD;iBACD,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC;QACO,wBAAmB,GAAG,GAAG,EAAE;YACnC,IAAI,CAAC,GAAG,CAAC;gBACR,qBAAqB,EAAE,IAAI;aAC3B,CAAC,CAAC;QACJ,CAAC,CAAC;QACO,yBAAoB,GAAG,GAAG,EAAE;YACpC,IAAI,CAAC,GAAG,CAAC;gBACR,qBAAqB,EAAE,KAAK;aAC5B,CAAC,CAAC;QACJ,CAAC,CAAC;IApCC,CAAC;CAqCJ;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAa,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const FlexBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const FlexCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const FlexAICenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const FlexJCCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const FlexJCSpaceBetween: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const FlexJCEnd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const FlexJCStart: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const FlexWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const FlexCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const FlexColAIEnd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export declare const FlexColJCEnd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const FlexCenterCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export declare const FlexJCCenterCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export declare const FlexJCSBCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
export declare const FlexJCSBCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const FlexAICenterCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const SlotWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { styled } from 'styled-components';
|
|
2
|
+
export const FlexBox = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
position: relative;
|
|
5
|
+
`;
|
|
6
|
+
export const FlexCenter = styled.div `
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
`;
|
|
11
|
+
export const FlexAICenter = styled.div `
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
`;
|
|
15
|
+
export const FlexJCCenter = styled.div `
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
`;
|
|
19
|
+
export const FlexJCSpaceBetween = styled.div `
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
`;
|
|
23
|
+
export const FlexJCEnd = styled.div `
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: flex-end;
|
|
26
|
+
`;
|
|
27
|
+
export const FlexJCStart = styled.div `
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
`;
|
|
31
|
+
export const FlexWrap = styled.div `
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
`;
|
|
35
|
+
export const FlexCol = styled.div `
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
`;
|
|
39
|
+
export const FlexColAIEnd = styled.div `
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
align-items: end;
|
|
43
|
+
`;
|
|
44
|
+
export const FlexColJCEnd = styled.div `
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
justify-content: end;
|
|
48
|
+
`;
|
|
49
|
+
export const FlexCenterCol = styled.div `
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
`;
|
|
55
|
+
export const FlexJCCenterCol = styled.div `
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
`;
|
|
60
|
+
export const FlexJCSBCol = styled.div `
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
`;
|
|
65
|
+
export const FlexJCSBCenter = styled.div `
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
`;
|
|
70
|
+
export const FlexAICenterCol = styled.div `
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
`;
|
|
75
|
+
export const SlotWrapper = styled.div ``;
|
|
76
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGhC,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAInC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGrC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGrC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG3C,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGlC,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGpC,CAAC;AACF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGjC,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGhC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIrC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIrC,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKtC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIpC,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIvC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { describe, it } from 'vitest';
|
|
2
|
+
describe('getInjectedProvider', () => {
|
|
3
|
+
it('metamask provider', () => {
|
|
4
|
+
console.log('connector');
|
|
5
|
+
});
|
|
6
|
+
it('getInjectedConnector', () => {
|
|
7
|
+
console.log('connector');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=getwalletprovider.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getwalletprovider.test.js","sourceRoot":"","sources":["../../../src/test/getwalletprovider.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACtC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC5B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC/B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|