@unisat/wallet-state 1.2.0 → 1.2.1
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/lib/index.d.mts +9 -1
- package/lib/index.d.ts +2827 -31
- package/lib/index.js +229 -101
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +231 -104
- package/lib/index.mjs.map +1 -1
- package/lib/types/index.d.ts +34 -3
- package/package.json +3 -3
- package/src/context/NavigationContext.tsx +1 -0
- package/src/hooks/accounts.ts +7 -2
- package/src/hooks/transactions.ts +52 -8
- package/src/hooks/ui.ts +77 -65
- package/src/ui-hooks/useAddressTypeScreenLogic.ts +22 -8
- package/src/ui-hooks/useAlkanesNFTScreenLogic.ts +3 -2
- package/src/ui-hooks/useAlkanesTokenScreenLogic.ts +4 -2
- package/src/ui-hooks/useBRC20TokenScreenLogic.ts +4 -1
- package/src/ui-hooks/useCAT20TokenScreenLogic.ts +11 -2
- package/src/ui-hooks/useCAT721NFTScreenLogic.ts +3 -1
- package/src/ui-hooks/useOrdinalsInscriptionScreenLogic.ts +3 -2
- package/src/ui-hooks/useRunesTokenScreenLogic.ts +4 -2
- package/src/ui-hooks/useSendOrdinalsInscriptionScreenLogic.ts +2 -5
- package/src/ui-hooks/useSettingsTabScreenLogic.ts +18 -3
- package/src/ui-hooks/useSignMessageLogic.ts +37 -16
- package/src/ui-hooks/useSignPsbtLogic.ts +31 -15
- package/lib/actions/global.d.ts +0 -2
- package/lib/actions/global.d.ts.map +0 -1
- package/lib/context/ApprovalContext.d.ts +0 -9
- package/lib/context/ApprovalContext.d.ts.map +0 -1
- package/lib/context/DeviceContext.d.ts +0 -17
- package/lib/context/DeviceContext.d.ts.map +0 -1
- package/lib/context/I18nContext.d.ts +0 -13
- package/lib/context/I18nContext.d.ts.map +0 -1
- package/lib/context/NavigationContext.d.ts +0 -218
- package/lib/context/NavigationContext.d.ts.map +0 -1
- package/lib/context/PriceContext.d.ts +0 -13
- package/lib/context/PriceContext.d.ts.map +0 -1
- package/lib/context/StorageContext.d.ts +0 -60
- package/lib/context/StorageContext.d.ts.map +0 -1
- package/lib/context/ToolsContext.d.ts +0 -17
- package/lib/context/ToolsContext.d.ts.map +0 -1
- package/lib/context/WalletContext.d.ts +0 -493
- package/lib/context/WalletContext.d.ts.map +0 -1
- package/lib/context/index.d.ts +0 -9
- package/lib/context/index.d.ts.map +0 -1
- package/lib/hooks/accounts.d.ts +0 -34
- package/lib/hooks/accounts.d.ts.map +0 -1
- package/lib/hooks/base.d.ts +0 -14
- package/lib/hooks/base.d.ts.map +0 -1
- package/lib/hooks/browser.d.ts +0 -32
- package/lib/hooks/browser.d.ts.map +0 -1
- package/lib/hooks/discovery.d.ts +0 -17
- package/lib/hooks/discovery.d.ts.map +0 -1
- package/lib/hooks/global.d.ts +0 -43
- package/lib/hooks/global.d.ts.map +0 -1
- package/lib/hooks/index.d.ts +0 -10
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/keyrings.d.ts +0 -5
- package/lib/hooks/keyrings.d.ts.map +0 -1
- package/lib/hooks/settings.d.ts +0 -43
- package/lib/hooks/settings.d.ts.map +0 -1
- package/lib/hooks/transactions.d.ts +0 -67
- package/lib/hooks/transactions.d.ts.map +0 -1
- package/lib/hooks/ui.d.ts +0 -112
- package/lib/hooks/ui.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/reducers/accounts.d.ts +0 -49
- package/lib/reducers/accounts.d.ts.map +0 -1
- package/lib/reducers/browser.d.ts +0 -49
- package/lib/reducers/browser.d.ts.map +0 -1
- package/lib/reducers/discovery.d.ts +0 -22
- package/lib/reducers/discovery.d.ts.map +0 -1
- package/lib/reducers/global.d.ts +0 -35
- package/lib/reducers/global.d.ts.map +0 -1
- package/lib/reducers/index.d.ts +0 -9
- package/lib/reducers/index.d.ts.map +0 -1
- package/lib/reducers/keyrings.d.ts +0 -10
- package/lib/reducers/keyrings.d.ts.map +0 -1
- package/lib/reducers/settings.d.ts +0 -16
- package/lib/reducers/settings.d.ts.map +0 -1
- package/lib/reducers/transactions.d.ts +0 -61
- package/lib/reducers/transactions.d.ts.map +0 -1
- package/lib/reducers/ui.d.ts +0 -55
- package/lib/reducers/ui.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/ui.d.ts +0 -31
- package/lib/types/ui.d.ts.map +0 -1
- package/lib/ui-hooks/index.d.ts +0 -55
- package/lib/ui-hooks/index.d.ts.map +0 -1
- package/lib/ui-hooks/useActionOverviewSectionLogic.d.ts +0 -12
- package/lib/ui-hooks/useActionOverviewSectionLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAddressTypeScreenLogic.d.ts +0 -19
- package/lib/ui-hooks/useAddressTypeScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAlkanesBalanceCardLogic.d.ts +0 -19
- package/lib/ui-hooks/useAlkanesBalanceCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAlkanesCollectionListLogic.d.ts +0 -11
- package/lib/ui-hooks/useAlkanesCollectionListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAlkanesListLogic.d.ts +0 -14
- package/lib/ui-hooks/useAlkanesListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAlkanesNFTListLogic.d.ts +0 -11
- package/lib/ui-hooks/useAlkanesNFTListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAlkanesNFTScreenLogic.d.ts +0 -9
- package/lib/ui-hooks/useAlkanesNFTScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAlkanesTokenScreenLogic.d.ts +0 -22
- package/lib/ui-hooks/useAlkanesTokenScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAmountInputLogic.d.ts +0 -22
- package/lib/ui-hooks/useAmountInputLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useAnnouncementCardLogic.d.ts +0 -11
- package/lib/ui-hooks/useAnnouncementCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20BalanceCardLogic.d.ts +0 -26
- package/lib/ui-hooks/useBRC20BalanceCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20InscribeTransferLogic.d.ts +0 -103
- package/lib/ui-hooks/useBRC20InscribeTransferLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20ListLogic.d.ts +0 -14
- package/lib/ui-hooks/useBRC20ListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20ProgListLogic.d.ts +0 -14
- package/lib/ui-hooks/useBRC20ProgListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20SendScreenLogic.d.ts +0 -67
- package/lib/ui-hooks/useBRC20SendScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20SingleStepScreenLogic.d.ts +0 -36
- package/lib/ui-hooks/useBRC20SingleStepScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBRC20TokenScreenLogic.d.ts +0 -75
- package/lib/ui-hooks/useBRC20TokenScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBalanceCardLogic.d.ts +0 -26
- package/lib/ui-hooks/useBalanceCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useBtcDisplayLogic.d.ts +0 -5
- package/lib/ui-hooks/useBtcDisplayLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCAT20BalanceCardLogic.d.ts +0 -20
- package/lib/ui-hooks/useCAT20BalanceCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCAT20ListLogic.d.ts +0 -14
- package/lib/ui-hooks/useCAT20ListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCAT20TokenScreenLogic.d.ts +0 -19
- package/lib/ui-hooks/useCAT20TokenScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCAT721ListLogic.d.ts +0 -11
- package/lib/ui-hooks/useCAT721ListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCAT721NFTScreenLogic.d.ts +0 -9
- package/lib/ui-hooks/useCAT721NFTScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCreatePasswordScreenLogic.d.ts +0 -27
- package/lib/ui-hooks/useCreatePasswordScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useCreateWalletLogicImportWordsStep.d.ts +0 -78
- package/lib/ui-hooks/useCreateWalletLogicImportWordsStep.d.ts.map +0 -1
- package/lib/ui-hooks/useEditAccountNameScreenLogic.d.ts +0 -18
- package/lib/ui-hooks/useEditAccountNameScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useEditContactScreenLogic.d.ts +0 -24
- package/lib/ui-hooks/useEditContactScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useEditWalletNameScreenLogic.d.ts +0 -15
- package/lib/ui-hooks/useEditWalletNameScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useExportMnemonicsScreenLogic.d.ts +0 -18
- package/lib/ui-hooks/useExportMnemonicsScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useExportPrivateKeyScreenLogic.d.ts +0 -17
- package/lib/ui-hooks/useExportPrivateKeyScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useFeeRateBarLogic.d.ts +0 -34
- package/lib/ui-hooks/useFeeRateBarLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useInfiniteList.d.ts +0 -19
- package/lib/ui-hooks/useInfiniteList.d.ts.map +0 -1
- package/lib/ui-hooks/useInscriptionListLogic.d.ts +0 -11
- package/lib/ui-hooks/useInscriptionListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useLockTimePageLogic.d.ts +0 -11
- package/lib/ui-hooks/useLockTimePageLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useNotificationsLogic.d.ts +0 -14
- package/lib/ui-hooks/useNotificationsLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useOrdinalsInscriptionScreenLogic.d.ts +0 -27
- package/lib/ui-hooks/useOrdinalsInscriptionScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useRunesBalanceCardLogic.d.ts +0 -19
- package/lib/ui-hooks/useRunesBalanceCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useRunesListLogic.d.ts +0 -14
- package/lib/ui-hooks/useRunesListLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useRunesTokenScreenLogic.d.ts +0 -22
- package/lib/ui-hooks/useRunesTokenScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSecurityCardLogic.d.ts +0 -1
- package/lib/ui-hooks/useSecurityCardLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSendAlkanesNFTScreenLogic.d.ts +0 -32
- package/lib/ui-hooks/useSendAlkanesNFTScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSendAlkanesScreenLogic.d.ts +0 -37
- package/lib/ui-hooks/useSendAlkanesScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSendCAT20ScreenLogic.d.ts +0 -44
- package/lib/ui-hooks/useSendCAT20ScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSendCAT721ScreenLogic.d.ts +0 -40
- package/lib/ui-hooks/useSendCAT721ScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSendOrdinalsInscriptionScreenLogic.d.ts +0 -22
- package/lib/ui-hooks/useSendOrdinalsInscriptionScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSendRunesScreenLogic.d.ts +0 -30
- package/lib/ui-hooks/useSendRunesScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSettingsTabScreenLogic.d.ts +0 -72
- package/lib/ui-hooks/useSettingsTabScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSignMessageLogic.d.ts +0 -54
- package/lib/ui-hooks/useSignMessageLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSignPsbtLogic.d.ts +0 -82
- package/lib/ui-hooks/useSignPsbtLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.d.ts +0 -15
- package/lib/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useTxConfirmScreenLogic.d.ts +0 -8
- package/lib/ui-hooks/useTxConfirmScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useTxCreateScreenLogic.d.ts +0 -28
- package/lib/ui-hooks/useTxCreateScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useTxFailScreenLogic.d.ts +0 -7
- package/lib/ui-hooks/useTxFailScreenLogic.d.ts.map +0 -1
- package/lib/ui-hooks/useTxSuccessScreenLogic.d.ts +0 -8
- package/lib/ui-hooks/useTxSuccessScreenLogic.d.ts.map +0 -1
- package/lib/updater/accounts.d.ts +0 -2
- package/lib/updater/accounts.d.ts.map +0 -1
- package/lib/updater/index.d.ts +0 -2
- package/lib/updater/index.d.ts.map +0 -1
- package/lib/utils/bitcoin-utils.d.ts +0 -7
- package/lib/utils/bitcoin-utils.d.ts.map +0 -1
- package/lib/utils/eventBus.d.ts +0 -12
- package/lib/utils/eventBus.d.ts.map +0 -1
- package/lib/utils/password-utils.d.ts +0 -12
- package/lib/utils/password-utils.d.ts.map +0 -1
- package/lib/utils/ui-utils.d.ts +0 -4
- package/lib/utils/ui-utils.d.ts.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TickPriceItem, TokenBalance } from '@unisat/wallet-shared';
|
|
2
|
-
export declare function useBRC20ProgListLogic(): {
|
|
3
|
-
items: TokenBalance[];
|
|
4
|
-
total: number;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
onRefresh: () => Promise<void>;
|
|
8
|
-
onLoadMore: () => void;
|
|
9
|
-
onClickItem: (item: TokenBalance) => void;
|
|
10
|
-
priceMap: {
|
|
11
|
-
[key: string]: TickPriceItem;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=useBRC20ProgListLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBRC20ProgListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20ProgListLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAcnE,wBAAgB,qBAAqB;;;;;;;wBA6DR,YAAY;;;;EAKxC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { RawTxInfo, SignPsbtParams, TokenBalance, TokenInfo, TokenTransfer } from '@unisat/wallet-shared';
|
|
2
|
-
export declare enum BRC20SendTabKey {
|
|
3
|
-
STEP1 = 0,
|
|
4
|
-
STEP2 = 1,
|
|
5
|
-
STEP3 = 2
|
|
6
|
-
}
|
|
7
|
-
export interface ContextData {
|
|
8
|
-
tabKey: BRC20SendTabKey;
|
|
9
|
-
tokenBalance: TokenBalance;
|
|
10
|
-
transferAmount: string;
|
|
11
|
-
transferableList: TokenTransfer[];
|
|
12
|
-
inscriptionIdSet: Set<string>;
|
|
13
|
-
receiver: string;
|
|
14
|
-
enableRBF: boolean;
|
|
15
|
-
rawTxInfo: RawTxInfo;
|
|
16
|
-
tokenInfo: TokenInfo;
|
|
17
|
-
}
|
|
18
|
-
export interface UpdateContextDataParams {
|
|
19
|
-
tabKey?: BRC20SendTabKey;
|
|
20
|
-
tokenBalance?: TokenBalance;
|
|
21
|
-
transferAmount?: string;
|
|
22
|
-
transferableList?: TokenTransfer[];
|
|
23
|
-
inscriptionIdSet?: Set<string>;
|
|
24
|
-
receiver?: string;
|
|
25
|
-
enableRBF?: boolean;
|
|
26
|
-
rawTxInfo?: RawTxInfo;
|
|
27
|
-
}
|
|
28
|
-
export interface BRC20SendStepParams {
|
|
29
|
-
contextData: ContextData;
|
|
30
|
-
updateContextData: (params: UpdateContextDataParams) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare function useBRC20SendScreenLogic(): {
|
|
33
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
34
|
-
contextData: ContextData;
|
|
35
|
-
updateContextData: (params: UpdateContextDataParams) => void;
|
|
36
|
-
onHeaderBack: () => void;
|
|
37
|
-
onTabClick: (key: string) => void;
|
|
38
|
-
};
|
|
39
|
-
export declare function useBRC20SendScreenLogicStep1({ contextData, updateContextData, }: BRC20SendStepParams): {
|
|
40
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
tokenBalance: TokenBalance;
|
|
43
|
-
onClickNext: () => void;
|
|
44
|
-
};
|
|
45
|
-
export declare function useBRC20SendScreenLogicStep2({ contextData, updateContextData, }: BRC20SendStepParams): {
|
|
46
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
47
|
-
disabled: boolean;
|
|
48
|
-
onStep2ClickNext: () => Promise<void>;
|
|
49
|
-
onStep2ClickBack: () => Promise<void>;
|
|
50
|
-
};
|
|
51
|
-
export declare function useBRC20SendScreenLogicStep3({ contextData, updateContextData, }: BRC20SendStepParams): {
|
|
52
|
-
signPsbtParams: SignPsbtParams;
|
|
53
|
-
onSignPsbtConfirm: (res: any) => Promise<void>;
|
|
54
|
-
};
|
|
55
|
-
export declare function useTransferableListLogic({ contextData, updateContextData }: BRC20SendStepParams): {
|
|
56
|
-
items: TokenTransfer[];
|
|
57
|
-
selectedCount: number;
|
|
58
|
-
allSelected: boolean;
|
|
59
|
-
loading: boolean;
|
|
60
|
-
loadingLump: boolean;
|
|
61
|
-
onClickItem: (item: TokenTransfer) => void;
|
|
62
|
-
onCheckBoxChange: (e: any) => void;
|
|
63
|
-
onClickCheckBoxInMobile: () => void;
|
|
64
|
-
onClickRefresh: () => void;
|
|
65
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=useBRC20SendScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBRC20SendScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20SendScreenLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,EACd,YAAY,EACZ,SAAS,EACT,aAAa,EACd,MAAM,uBAAuB,CAAA;AAc9B,oBAAY,eAAe;IACzB,KAAK,IAAA;IACL,KAAK,IAAA;IACL,KAAK,IAAA;CACN;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,aAAa,EAAE,CAAA;IACjC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,aAAa,EAAE,CAAA;IAClC,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,WAAW,CAAA;IACxB,iBAAiB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAA;CAC7D;AAED,wBAAgB,uBAAuB;;;gCAkCU,uBAAuB;;sBAuB7C,MAAM;EAmBhC;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,WAAW,EACX,iBAAiB,GAClB,EAAE,mBAAmB;;;;;EA4BrB;AACD,wBAAgB,4BAA4B,CAAC,EAC3C,WAAW,EACX,iBAAiB,GAClB,EAAE,mBAAmB;;;;;EA0ErB;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,WAAW,EACX,iBAAiB,GAClB,EAAE,mBAAmB;;;EA8CrB;AAED,wBAAgB,wBAAwB,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,mBAAmB;;;;;;wBAyCnE,aAAa;;;;;EAwFzC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Inscription, SignPsbtParams, SignPsbtResult } from '@unisat/wallet-shared';
|
|
3
|
-
export declare enum BRC20SingleStepKey {
|
|
4
|
-
STEP1 = "STEP1",
|
|
5
|
-
STEP2 = "STEP2",
|
|
6
|
-
STEP3 = "STEP3"
|
|
7
|
-
}
|
|
8
|
-
export declare function useBRC20SingleStepScreenLogic(): {
|
|
9
|
-
signPsbtParamsStep2: SignPsbtParams;
|
|
10
|
-
signPsbtParamsStep3: SignPsbtParams;
|
|
11
|
-
availableBalance: string;
|
|
12
|
-
tokenBalance: import("@unisat/wallet-shared").TokenBalance;
|
|
13
|
-
tokenInfo: import("@unisat/wallet-shared").TokenInfo;
|
|
14
|
-
inputAmount: string;
|
|
15
|
-
setInputAmount: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
error: string;
|
|
18
|
-
toInfo: {
|
|
19
|
-
address: string;
|
|
20
|
-
domain: string;
|
|
21
|
-
inscription?: Inscription;
|
|
22
|
-
};
|
|
23
|
-
setToInfo: import("react").Dispatch<import("react").SetStateAction<{
|
|
24
|
-
address: string;
|
|
25
|
-
domain: string;
|
|
26
|
-
inscription?: Inscription;
|
|
27
|
-
}>>;
|
|
28
|
-
step: BRC20SingleStepKey;
|
|
29
|
-
onClickBack: () => void;
|
|
30
|
-
onClickConfirmStep1: () => Promise<void>;
|
|
31
|
-
onClickConfirmStep2: (signPsbtResult: SignPsbtResult) => Promise<void>;
|
|
32
|
-
onClickConfirmStep3: (signPsbtResult: SignPsbtResult) => Promise<void>;
|
|
33
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
34
|
-
tools: import("src/context").ToolsContextType;
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=useBRC20SingleStepScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBRC20SingleStepScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20SingleStepScreenLogic.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAA;AAM/F,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,wBAAgB,6BAA6B;;;;;;;;;;;iBAchC,MAAM;gBACP,MAAM;sBACA,WAAW;;;iBAFhB,MAAM;gBACP,MAAM;sBACA,WAAW;;;;;;;;;EAkL5B"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AddressTokenSummary, Inscription } from '@unisat/wallet-shared';
|
|
3
|
-
export declare enum BRC20TokenScreenTabKey {
|
|
4
|
-
DETAILS = "details",
|
|
5
|
-
HISTORY = "history"
|
|
6
|
-
}
|
|
7
|
-
export interface BRC20OutWalletBalanceItem {
|
|
8
|
-
key: 'wallet' | 'swap' | 'prog';
|
|
9
|
-
label: string;
|
|
10
|
-
amount: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function useBRC20TokenHistoryLogic(props: {
|
|
13
|
-
ticker: string;
|
|
14
|
-
displayName?: string;
|
|
15
|
-
}): {
|
|
16
|
-
displayItems: {
|
|
17
|
-
date: string;
|
|
18
|
-
items: {
|
|
19
|
-
key: string;
|
|
20
|
-
icon: string;
|
|
21
|
-
mainTitle: string;
|
|
22
|
-
subTitle: string;
|
|
23
|
-
amount: string;
|
|
24
|
-
pending: boolean;
|
|
25
|
-
txid: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[];
|
|
28
|
-
isFailed: boolean;
|
|
29
|
-
isEmpty: boolean;
|
|
30
|
-
isLoading: boolean;
|
|
31
|
-
};
|
|
32
|
-
export declare function useBRC20TokenScreenLogic(): {
|
|
33
|
-
totalBalance: string;
|
|
34
|
-
onSwapBalance: string;
|
|
35
|
-
onProgBalance: string;
|
|
36
|
-
inWalletBalance: string;
|
|
37
|
-
outWalletBalanceItems: BRC20OutWalletBalanceItem[];
|
|
38
|
-
enableHistory: boolean;
|
|
39
|
-
enableTrade: boolean;
|
|
40
|
-
enableMint: boolean;
|
|
41
|
-
enableTransfer: boolean;
|
|
42
|
-
loading: boolean;
|
|
43
|
-
tokenSummary: AddressTokenSummary;
|
|
44
|
-
deployInscription: Inscription;
|
|
45
|
-
activeTab: BRC20TokenScreenTabKey;
|
|
46
|
-
setActiveTab: import("react").Dispatch<import("react").SetStateAction<BRC20TokenScreenTabKey>>;
|
|
47
|
-
tabItems: {
|
|
48
|
-
key: BRC20TokenScreenTabKey;
|
|
49
|
-
label: string;
|
|
50
|
-
}[];
|
|
51
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
52
|
-
ticker: string;
|
|
53
|
-
chain: import("@unisat/wallet-shared").TypeChain;
|
|
54
|
-
tools: import("..").ToolsContextType;
|
|
55
|
-
isBrc20Prog: boolean;
|
|
56
|
-
iconInfo: {
|
|
57
|
-
iconUrl: string;
|
|
58
|
-
iconShortName: string;
|
|
59
|
-
};
|
|
60
|
-
showProgBalance: boolean;
|
|
61
|
-
showSwapBalance: boolean;
|
|
62
|
-
onClickWrapBrc20Prog: () => void;
|
|
63
|
-
onClickUnwrapBrc20Prog: () => void;
|
|
64
|
-
onClickSendBrc20Prog: () => void;
|
|
65
|
-
onClickSwapInSwap: () => void;
|
|
66
|
-
onClickAddLiquidityInSwap: () => void;
|
|
67
|
-
onClickWrapInSwap: () => void;
|
|
68
|
-
onClickUnwrapInSwap: () => void;
|
|
69
|
-
onClickSendInSwap: () => void;
|
|
70
|
-
onClickMint: () => void;
|
|
71
|
-
onClickSend: () => void;
|
|
72
|
-
onClickTrade: () => void;
|
|
73
|
-
onClickSingleStepSend: () => void;
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=useBRC20TokenScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBRC20TokenScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20TokenScreenLogic.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAoB,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAoB1F,oBAAY,sBAAsB;IAChC,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;EAyIxF;AAED,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4TvC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useBalanceCardLogic(): {
|
|
3
|
-
totalBalance: number;
|
|
4
|
-
availableBalance: number;
|
|
5
|
-
unavailableBalance: number;
|
|
6
|
-
totalAmount: string;
|
|
7
|
-
availableAmount: string;
|
|
8
|
-
unavailableAmount: string;
|
|
9
|
-
totalAmountMainPart: string;
|
|
10
|
-
totalAmountSubPart: string;
|
|
11
|
-
balanceValue: string;
|
|
12
|
-
unavailableTipText: string;
|
|
13
|
-
isCurrentChainBalance: boolean;
|
|
14
|
-
showUtxoToolButton: boolean;
|
|
15
|
-
handleUnlock: (e?: React.MouseEvent) => void;
|
|
16
|
-
isDetailExpanded: boolean;
|
|
17
|
-
handleExpandToggle: () => void;
|
|
18
|
-
isBalanceHidden: boolean;
|
|
19
|
-
handleHiddenToggle: (e?: React.MouseEvent) => void;
|
|
20
|
-
refreshBalance: (e?: React.MouseEvent) => void;
|
|
21
|
-
btcUnit: string;
|
|
22
|
-
isBtcMainnet: boolean;
|
|
23
|
-
chain: import("@unisat/wallet-shared").TypeChain;
|
|
24
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=useBalanceCardLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBalanceCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBalanceCardLogic.ts"],"names":[],"mappings":";AAkBA,wBAAgB,mBAAmB;;;;;;;;;;;;;uBAwGP,gBAAgB;;;;6BA7EV,gBAAgB;yBAmDzC,gBAAgB;;;;;EAmExB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBtcDisplayLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBtcDisplayLogic.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM;;;EAYjD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CAT20Balance, TickPriceItem } from '@unisat/wallet-shared';
|
|
2
|
-
export interface CAT20BalanceCardProps {
|
|
3
|
-
tokenBalance: CAT20Balance;
|
|
4
|
-
onClick?: () => void;
|
|
5
|
-
showPrice?: boolean;
|
|
6
|
-
price?: TickPriceItem;
|
|
7
|
-
}
|
|
8
|
-
export declare function useCAT20BalanceCardLogic(props: CAT20BalanceCardProps): {
|
|
9
|
-
tokenBalance: CAT20Balance;
|
|
10
|
-
balance: BigNumber;
|
|
11
|
-
balanceStr: string;
|
|
12
|
-
price: TickPriceItem;
|
|
13
|
-
showPrice: boolean;
|
|
14
|
-
iconInfo: {
|
|
15
|
-
iconUrl: string;
|
|
16
|
-
iconShortName: string;
|
|
17
|
-
};
|
|
18
|
-
onClick: () => void;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=useCAT20BalanceCardLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCAT20BalanceCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCAT20BalanceCardLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGnE,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,qBAAqB;;;;;;;;;;;EAuBpE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CAT20Balance, CAT_VERSION, TickPriceItem } from '@unisat/wallet-shared';
|
|
2
|
-
export declare function useCAT20ListLogic(version: CAT_VERSION): {
|
|
3
|
-
tokens: CAT20Balance[];
|
|
4
|
-
total: number;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
onRefresh: () => Promise<void>;
|
|
8
|
-
onLoadMore: () => void;
|
|
9
|
-
onClickItem: (item: CAT20Balance) => void;
|
|
10
|
-
priceMap: {
|
|
11
|
-
[key: string]: TickPriceItem;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=useCAT20ListLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCAT20ListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCAT20ListLogic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAchF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW;;;;;;;wBA6DzB,YAAY;;;;EAKxC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AddressCAT20TokenSummary } from '@unisat/wallet-shared';
|
|
2
|
-
export declare function useCAT20TokenScreenLogic(): {
|
|
3
|
-
tokenSummary: AddressCAT20TokenSummary;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
tokenUrl: string;
|
|
6
|
-
enableTransfer: boolean;
|
|
7
|
-
enableTrade: boolean;
|
|
8
|
-
iconInfo: {
|
|
9
|
-
iconUrl: string;
|
|
10
|
-
iconShortName: string;
|
|
11
|
-
};
|
|
12
|
-
onClickMerge: (e: any) => void;
|
|
13
|
-
onClickSend: (e: any) => void;
|
|
14
|
-
onClickTrade: (e: any) => void;
|
|
15
|
-
onClickBack: () => void;
|
|
16
|
-
onClickViewOnExplorer: (e: any) => void;
|
|
17
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=useCAT20TokenScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCAT20TokenScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCAT20TokenScreenLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAe,MAAM,uBAAuB,CAAA;AAc7E,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;EA+GvC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CAT721Balance, CAT_VERSION } from '@unisat/wallet-shared';
|
|
2
|
-
export declare function useCAT721ListLogic(version: CAT_VERSION): {
|
|
3
|
-
tokens: CAT721Balance[];
|
|
4
|
-
total: number;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
onRefresh: () => Promise<void>;
|
|
8
|
-
onLoadMore: () => void;
|
|
9
|
-
onClickItem: (item: CAT721Balance) => void;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useCAT721ListLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCAT721ListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCAT721ListLogic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAclE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW;;;;;;;wBA8C1B,aAAa;EAKzC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function useCAT721NFTScreenLogic(): {
|
|
2
|
-
collectionInfo: import("@unisat/wallet-shared").CAT721CollectionInfo;
|
|
3
|
-
localId: string;
|
|
4
|
-
version: import("@unisat/wallet-shared").CAT_VERSION;
|
|
5
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
6
|
-
onClickBack: () => void;
|
|
7
|
-
onClickSend: () => void;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=useCAT721NFTScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCAT721NFTScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCAT721NFTScreenLogic.ts"],"names":[],"mappings":"AAGA,wBAAgB,uBAAuB;;;;;;;EAiCtC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare function useCreatePasswordScreenLogic(): {
|
|
2
|
-
disabled: boolean;
|
|
3
|
-
strongTextRenderData: {
|
|
4
|
-
text: any;
|
|
5
|
-
color: string;
|
|
6
|
-
tip: any;
|
|
7
|
-
} | {
|
|
8
|
-
text: any;
|
|
9
|
-
color: string;
|
|
10
|
-
tip?: undefined;
|
|
11
|
-
};
|
|
12
|
-
matchTextRenderData: {
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
onClickConfirm: () => void;
|
|
16
|
-
onPasswordChange: (e: string | {
|
|
17
|
-
target: {
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
}) => void;
|
|
21
|
-
onConfirmPasswordChange: (e: string | {
|
|
22
|
-
target: {
|
|
23
|
-
value: string;
|
|
24
|
-
};
|
|
25
|
-
}) => void;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=useCreatePasswordScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreatePasswordScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCreatePasswordScreenLogic.ts"],"names":[],"mappings":"AAIA,wBAAgB,4BAA4B;;;;;;;;;;;;;;;0BAqEb,MAAM,GAAG;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;iCAK/B,MAAM,GAAG;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;EAa3E"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { RestoreWalletType, WordsType } from '@unisat/wallet-shared';
|
|
2
|
-
import { AddressType } from '@unisat/wallet-types';
|
|
3
|
-
export declare enum TabType {
|
|
4
|
-
STEP1 = "STEP1",
|
|
5
|
-
STEP2 = "STEP2",
|
|
6
|
-
CHOOSE_ADDRESS_TYPE = "CHOOSE_ADDRESS_TYPE"
|
|
7
|
-
}
|
|
8
|
-
export interface ContextData {
|
|
9
|
-
mnemonics: string;
|
|
10
|
-
hdPath: string;
|
|
11
|
-
passphrase: string;
|
|
12
|
-
addressType: AddressType;
|
|
13
|
-
step1Completed: boolean;
|
|
14
|
-
tabType: TabType;
|
|
15
|
-
restoreWalletType: RestoreWalletType;
|
|
16
|
-
isRestore: boolean;
|
|
17
|
-
isCustom: boolean;
|
|
18
|
-
customHdPath: string;
|
|
19
|
-
addressTypeIndex: number;
|
|
20
|
-
wordsType: WordsType;
|
|
21
|
-
walletName?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface UpdateContextDataParams {
|
|
24
|
-
mnemonics?: string;
|
|
25
|
-
hdPath?: string;
|
|
26
|
-
passphrase?: string;
|
|
27
|
-
addressType?: AddressType;
|
|
28
|
-
step1Completed?: boolean;
|
|
29
|
-
tabType?: TabType;
|
|
30
|
-
restoreWalletType?: RestoreWalletType;
|
|
31
|
-
isCustom?: boolean;
|
|
32
|
-
customHdPath?: string;
|
|
33
|
-
addressTypeIndex?: number;
|
|
34
|
-
wordsType?: WordsType;
|
|
35
|
-
walletName?: string;
|
|
36
|
-
}
|
|
37
|
-
interface WordsItem {
|
|
38
|
-
key: WordsType;
|
|
39
|
-
label: string;
|
|
40
|
-
count: number;
|
|
41
|
-
}
|
|
42
|
-
interface CreateWalletLogicParams {
|
|
43
|
-
contextData: ContextData;
|
|
44
|
-
updateContextData: (params: UpdateContextDataParams) => void;
|
|
45
|
-
}
|
|
46
|
-
export declare function useCreateWalletLogicImportWordsStep(params: CreateWalletLogicParams): {
|
|
47
|
-
wordsItems: WordsItem[];
|
|
48
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
inputWords: string[];
|
|
51
|
-
inputWordsText: string;
|
|
52
|
-
onHandleEventPaste: (event: any, index: number) => void;
|
|
53
|
-
onClickNext: () => Promise<void>;
|
|
54
|
-
onClickWordsItem: (wordsItem: WordsItem) => void;
|
|
55
|
-
inputWordsError: boolean;
|
|
56
|
-
onInputWordsTextChange: (e: {
|
|
57
|
-
target: {
|
|
58
|
-
value: string;
|
|
59
|
-
};
|
|
60
|
-
} | string) => void;
|
|
61
|
-
onInputWordsChange: (e: {
|
|
62
|
-
target: {
|
|
63
|
-
value: string;
|
|
64
|
-
};
|
|
65
|
-
} | string, index: number) => void;
|
|
66
|
-
loading: boolean;
|
|
67
|
-
enablePhrase: boolean;
|
|
68
|
-
walletName: string;
|
|
69
|
-
onInputWalletNameChange: (e: {
|
|
70
|
-
target: {
|
|
71
|
-
value: string;
|
|
72
|
-
};
|
|
73
|
-
} | string) => void;
|
|
74
|
-
enteredWordsCount: number;
|
|
75
|
-
shouldEnteredWordsCount: number;
|
|
76
|
-
};
|
|
77
|
-
export {};
|
|
78
|
-
//# sourceMappingURL=useCreateWalletLogicImportWordsStep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateWalletLogicImportWordsStep.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCreateWalletLogicImportWordsStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,iBAAiB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAOlD,oBAAY,OAAO;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,mBAAmB,wBAAwB;CAC5C;AASD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,cAAc,EAAE,OAAO,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,SAAS,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,UAAU,SAAS;IACjB,GAAG,EAAE,SAAS,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAcD,UAAU,uBAAuB;IAC/B,WAAW,EAAE,WAAW,CAAA;IACxB,iBAAiB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAA;CAC7D;AAMD,wBAAgB,mCAAmC,CAAC,MAAM,EAAE,uBAAuB;;;;;;4CAiHvC,MAAM;;kCA+EX,SAAS;;gCAlGX;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;4BAS1C;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM,SAAS,MAAM;;;;iCA2BhD;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;;;EAyF3E"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Account } from '@unisat/wallet-shared';
|
|
3
|
-
export declare function useEditAccountNameScreenLogic(): {
|
|
4
|
-
alianName: string;
|
|
5
|
-
handleOnClick: () => Promise<void>;
|
|
6
|
-
handleOnKeyUp: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
7
|
-
isValidName: boolean;
|
|
8
|
-
truncatedTitle: string;
|
|
9
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
10
|
-
account: Account;
|
|
11
|
-
onInputChange: (e: {
|
|
12
|
-
target: {
|
|
13
|
-
value: string;
|
|
14
|
-
};
|
|
15
|
-
} | string) => void;
|
|
16
|
-
onClickBack: () => void;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=useEditAccountNameScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditAccountNameScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useEditAccountNameScreenLogic.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAyB,MAAM,uBAAuB,CAAA;AAOtE,wBAAgB,6BAA6B;;;uBAqBjB,mBAAmB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;;;;;uBAqB3D;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;;EAqBjE"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChainType } from '@unisat/wallet-types';
|
|
2
|
-
export declare function useEditContactScreenLogic(): {
|
|
3
|
-
name: string;
|
|
4
|
-
contactAddress: string;
|
|
5
|
-
chainType: ChainType;
|
|
6
|
-
error: string;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
handleNameChange: (e: {
|
|
9
|
-
target: {
|
|
10
|
-
value: string;
|
|
11
|
-
};
|
|
12
|
-
} | string) => void;
|
|
13
|
-
handleAddressChange: (e: {
|
|
14
|
-
target: {
|
|
15
|
-
value: string;
|
|
16
|
-
};
|
|
17
|
-
} | string) => void;
|
|
18
|
-
handleSubmit: () => Promise<void>;
|
|
19
|
-
handleDelete: () => Promise<void>;
|
|
20
|
-
onClickBack: () => void;
|
|
21
|
-
address: string;
|
|
22
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=useEditContactScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditContactScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useEditContactScreenLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAKhD,wBAAgB,yBAAyB;;;;;;0BAoIV;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;6BAjBnC;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;;;;;;EAwCvE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useEditWalletNameScreenLogic(): {
|
|
3
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
4
|
-
keyring: import("@unisat/wallet-shared").WalletKeyring;
|
|
5
|
-
isValidName: boolean;
|
|
6
|
-
truncatedTitle: string;
|
|
7
|
-
handleOnClick: () => Promise<void>;
|
|
8
|
-
handleOnKeyUp: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
9
|
-
onInputChange: (e: {
|
|
10
|
-
target: {
|
|
11
|
-
value: string;
|
|
12
|
-
};
|
|
13
|
-
} | string) => void;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useEditWalletNameScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditWalletNameScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useEditWalletNameScreenLogic.ts"],"names":[],"mappings":";AAKA,wBAAgB,4BAA4B;;;;;;uBAkBhB,mBAAmB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;uBAoB3D;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;EAgBjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
export declare function useExportMnemonicsScreenLogic(): {
|
|
4
|
-
words: string[];
|
|
5
|
-
pathName: string;
|
|
6
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
7
|
-
setPassword: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
btnClick: () => Promise<void>;
|
|
10
|
-
handleOnKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
11
|
-
mnemonic: string;
|
|
12
|
-
passphrase: string;
|
|
13
|
-
error: string;
|
|
14
|
-
copy: (str: string) => void;
|
|
15
|
-
keyring: import("@unisat/wallet-shared").WalletKeyring;
|
|
16
|
-
onClickBack: () => void;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=useExportMnemonicsScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExportMnemonicsScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useExportMnemonicsScreenLogic.ts"],"names":[],"mappings":";;AAKA,wBAAgB,6BAA6B;;;;;;;uBA4BjB,mBAAmB,CAAC,gBAAgB,CAAC;;;;gBAe5C,MAAM;;;EA0B1B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
export declare function useExportPrivateKeyScreenLogic(): {
|
|
4
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
5
|
-
setPassword: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
btnClick: () => Promise<void>;
|
|
8
|
-
handleOnKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
9
|
-
privateKey: {
|
|
10
|
-
hex: string;
|
|
11
|
-
wif: string;
|
|
12
|
-
};
|
|
13
|
-
error: string;
|
|
14
|
-
copy: (str: string) => void;
|
|
15
|
-
onClickBack: () => void;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useExportPrivateKeyScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExportPrivateKeyScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useExportPrivateKeyScreenLogic.ts"],"names":[],"mappings":";;AAIA,wBAAgB,8BAA8B;;;;;uBAyBlB,mBAAmB,CAAC,gBAAgB,CAAC;;;;;;gBAe5C,MAAM;;EAmB1B"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare enum FeeRateType {
|
|
3
|
-
SLOW = 0,
|
|
4
|
-
AVG = 1,
|
|
5
|
-
FAST = 2,
|
|
6
|
-
CUSTOM = 3
|
|
7
|
-
}
|
|
8
|
-
interface FeeOption {
|
|
9
|
-
type?: FeeRateType;
|
|
10
|
-
title: string;
|
|
11
|
-
desc?: string;
|
|
12
|
-
feeRate: number;
|
|
13
|
-
}
|
|
14
|
-
export declare function useFeeRateBarLogic({ readonly }: {
|
|
15
|
-
readonly?: boolean;
|
|
16
|
-
}): {
|
|
17
|
-
feeOptions: FeeOption[];
|
|
18
|
-
feeOptionIndex: number;
|
|
19
|
-
setFeeOptionIndex: (index: number) => Promise<void>;
|
|
20
|
-
feeRateInputVal: string;
|
|
21
|
-
adjustFeeRateInput: (inputVal: string) => void;
|
|
22
|
-
isCustomOption: (option: FeeOption) => boolean;
|
|
23
|
-
fontSize: string;
|
|
24
|
-
isSpecialLocale: boolean;
|
|
25
|
-
toggleLowFeeRate: () => Promise<void>;
|
|
26
|
-
showCustomInput: boolean;
|
|
27
|
-
toggleCustomInput: (show: boolean) => void;
|
|
28
|
-
supportLowFeeMode: boolean;
|
|
29
|
-
showLowFeeModeTipsPopover: boolean;
|
|
30
|
-
setShowLowFeeModeTipsPopover: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
31
|
-
isSub1FeeOptionOn: boolean;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=useFeeRateBarLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFeeRateBarLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useFeeRateBarLogic.ts"],"names":[],"mappings":";AAKA,aAAK,WAAW;IACd,IAAI,IAAA;IACJ,GAAG,IAAA;IACH,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AA4FD,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE;;;+BAuIrD,MAAM;;mCAjET,MAAM;6BAqDyB,SAAS;;;;;8BAwC5C,OAAO;;;;;EA8BjB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface UseInfiniteListOptions<T> {
|
|
2
|
-
fetcher: (page: number, pageSize: number) => Promise<{
|
|
3
|
-
list: T[];
|
|
4
|
-
total: number;
|
|
5
|
-
}>;
|
|
6
|
-
pageSize?: number;
|
|
7
|
-
dependencies?: any[];
|
|
8
|
-
}
|
|
9
|
-
export declare function useInfiniteList<T>({ fetcher, pageSize, dependencies, }: UseInfiniteListOptions<T>): {
|
|
10
|
-
data: T[];
|
|
11
|
-
total: number;
|
|
12
|
-
loading: boolean;
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
page: number;
|
|
15
|
-
onRefresh: () => Promise<void>;
|
|
16
|
-
onLoadMore: () => void;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=useInfiniteList.d.ts.map
|