@unisat/wallet-state 1.1.0 → 1.2.0
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/actions/global.d.ts +2 -0
- package/lib/actions/global.d.ts.map +1 -0
- package/lib/context/ApprovalContext.d.ts +9 -0
- package/lib/context/ApprovalContext.d.ts.map +1 -0
- package/lib/context/DeviceContext.d.ts +17 -0
- package/lib/context/DeviceContext.d.ts.map +1 -0
- package/lib/context/I18nContext.d.ts +13 -0
- package/lib/context/I18nContext.d.ts.map +1 -0
- package/lib/context/NavigationContext.d.ts +218 -0
- package/lib/context/NavigationContext.d.ts.map +1 -0
- package/lib/context/PriceContext.d.ts +13 -0
- package/lib/context/PriceContext.d.ts.map +1 -0
- package/lib/context/StorageContext.d.ts +60 -0
- package/lib/context/StorageContext.d.ts.map +1 -0
- package/lib/context/ToolsContext.d.ts +17 -0
- package/lib/context/ToolsContext.d.ts.map +1 -0
- package/lib/context/WalletContext.d.ts +493 -0
- package/lib/context/WalletContext.d.ts.map +1 -0
- package/lib/context/index.d.ts +9 -0
- package/lib/context/index.d.ts.map +1 -0
- package/lib/hooks/accounts.d.ts +34 -0
- package/lib/hooks/accounts.d.ts.map +1 -0
- package/lib/hooks/base.d.ts +14 -0
- package/lib/hooks/base.d.ts.map +1 -0
- package/lib/hooks/browser.d.ts +32 -0
- package/lib/hooks/browser.d.ts.map +1 -0
- package/lib/hooks/discovery.d.ts +17 -0
- package/lib/hooks/discovery.d.ts.map +1 -0
- package/lib/hooks/global.d.ts +43 -0
- package/lib/hooks/global.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +10 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/keyrings.d.ts +5 -0
- package/lib/hooks/keyrings.d.ts.map +1 -0
- package/lib/hooks/settings.d.ts +43 -0
- package/lib/hooks/settings.d.ts.map +1 -0
- package/lib/hooks/transactions.d.ts +67 -0
- package/lib/hooks/transactions.d.ts.map +1 -0
- package/lib/hooks/ui.d.ts +112 -0
- package/lib/hooks/ui.d.ts.map +1 -0
- package/lib/index.d.mts +79 -18
- package/lib/index.d.ts +31 -2758
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +291 -78
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +289 -80
- package/lib/index.mjs.map +1 -1
- package/lib/reducers/accounts.d.ts +49 -0
- package/lib/reducers/accounts.d.ts.map +1 -0
- package/lib/reducers/browser.d.ts +49 -0
- package/lib/reducers/browser.d.ts.map +1 -0
- package/lib/reducers/discovery.d.ts +22 -0
- package/lib/reducers/discovery.d.ts.map +1 -0
- package/lib/reducers/global.d.ts +35 -0
- package/lib/reducers/global.d.ts.map +1 -0
- package/lib/reducers/index.d.ts +9 -0
- package/lib/reducers/index.d.ts.map +1 -0
- package/lib/reducers/keyrings.d.ts +10 -0
- package/lib/reducers/keyrings.d.ts.map +1 -0
- package/lib/reducers/settings.d.ts +16 -0
- package/lib/reducers/settings.d.ts.map +1 -0
- package/lib/reducers/transactions.d.ts +61 -0
- package/lib/reducers/transactions.d.ts.map +1 -0
- package/lib/reducers/ui.d.ts +55 -0
- package/lib/reducers/ui.d.ts.map +1 -0
- package/lib/types/index.d.mts +6 -2
- package/lib/types/index.d.ts +3 -30
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +7 -1
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +7 -2
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/ui.d.ts +31 -0
- package/lib/types/ui.d.ts.map +1 -0
- package/lib/ui-hooks/index.d.ts +55 -0
- package/lib/ui-hooks/index.d.ts.map +1 -0
- package/lib/ui-hooks/useActionOverviewSectionLogic.d.ts +12 -0
- package/lib/ui-hooks/useActionOverviewSectionLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAddressTypeScreenLogic.d.ts +19 -0
- package/lib/ui-hooks/useAddressTypeScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAlkanesBalanceCardLogic.d.ts +19 -0
- package/lib/ui-hooks/useAlkanesBalanceCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAlkanesCollectionListLogic.d.ts +11 -0
- package/lib/ui-hooks/useAlkanesCollectionListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAlkanesListLogic.d.ts +14 -0
- package/lib/ui-hooks/useAlkanesListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAlkanesNFTListLogic.d.ts +11 -0
- package/lib/ui-hooks/useAlkanesNFTListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAlkanesNFTScreenLogic.d.ts +9 -0
- package/lib/ui-hooks/useAlkanesNFTScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAlkanesTokenScreenLogic.d.ts +22 -0
- package/lib/ui-hooks/useAlkanesTokenScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAmountInputLogic.d.ts +22 -0
- package/lib/ui-hooks/useAmountInputLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useAnnouncementCardLogic.d.ts +11 -0
- package/lib/ui-hooks/useAnnouncementCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20BalanceCardLogic.d.ts +26 -0
- package/lib/ui-hooks/useBRC20BalanceCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20InscribeTransferLogic.d.ts +103 -0
- package/lib/ui-hooks/useBRC20InscribeTransferLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20ListLogic.d.ts +14 -0
- package/lib/ui-hooks/useBRC20ListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20ProgListLogic.d.ts +14 -0
- package/lib/ui-hooks/useBRC20ProgListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20SendScreenLogic.d.ts +67 -0
- package/lib/ui-hooks/useBRC20SendScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20SingleStepScreenLogic.d.ts +36 -0
- package/lib/ui-hooks/useBRC20SingleStepScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBRC20TokenScreenLogic.d.ts +75 -0
- package/lib/ui-hooks/useBRC20TokenScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBalanceCardLogic.d.ts +26 -0
- package/lib/ui-hooks/useBalanceCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useBtcDisplayLogic.d.ts +5 -0
- package/lib/ui-hooks/useBtcDisplayLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCAT20BalanceCardLogic.d.ts +20 -0
- package/lib/ui-hooks/useCAT20BalanceCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCAT20ListLogic.d.ts +14 -0
- package/lib/ui-hooks/useCAT20ListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCAT20TokenScreenLogic.d.ts +19 -0
- package/lib/ui-hooks/useCAT20TokenScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCAT721ListLogic.d.ts +11 -0
- package/lib/ui-hooks/useCAT721ListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCAT721NFTScreenLogic.d.ts +9 -0
- package/lib/ui-hooks/useCAT721NFTScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCreatePasswordScreenLogic.d.ts +27 -0
- package/lib/ui-hooks/useCreatePasswordScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useCreateWalletLogicImportWordsStep.d.ts +78 -0
- package/lib/ui-hooks/useCreateWalletLogicImportWordsStep.d.ts.map +1 -0
- package/lib/ui-hooks/useEditAccountNameScreenLogic.d.ts +18 -0
- package/lib/ui-hooks/useEditAccountNameScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useEditContactScreenLogic.d.ts +24 -0
- package/lib/ui-hooks/useEditContactScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useEditWalletNameScreenLogic.d.ts +15 -0
- package/lib/ui-hooks/useEditWalletNameScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useExportMnemonicsScreenLogic.d.ts +18 -0
- package/lib/ui-hooks/useExportMnemonicsScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useExportPrivateKeyScreenLogic.d.ts +17 -0
- package/lib/ui-hooks/useExportPrivateKeyScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useFeeRateBarLogic.d.ts +34 -0
- package/lib/ui-hooks/useFeeRateBarLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useInfiniteList.d.ts +19 -0
- package/lib/ui-hooks/useInfiniteList.d.ts.map +1 -0
- package/lib/ui-hooks/useInscriptionListLogic.d.ts +11 -0
- package/lib/ui-hooks/useInscriptionListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useLockTimePageLogic.d.ts +11 -0
- package/lib/ui-hooks/useLockTimePageLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useNotificationsLogic.d.ts +14 -0
- package/lib/ui-hooks/useNotificationsLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useOrdinalsInscriptionScreenLogic.d.ts +27 -0
- package/lib/ui-hooks/useOrdinalsInscriptionScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useRunesBalanceCardLogic.d.ts +19 -0
- package/lib/ui-hooks/useRunesBalanceCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useRunesListLogic.d.ts +14 -0
- package/lib/ui-hooks/useRunesListLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useRunesTokenScreenLogic.d.ts +22 -0
- package/lib/ui-hooks/useRunesTokenScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSecurityCardLogic.d.ts +1 -0
- package/lib/ui-hooks/useSecurityCardLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSendAlkanesNFTScreenLogic.d.ts +32 -0
- package/lib/ui-hooks/useSendAlkanesNFTScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSendAlkanesScreenLogic.d.ts +37 -0
- package/lib/ui-hooks/useSendAlkanesScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSendCAT20ScreenLogic.d.ts +44 -0
- package/lib/ui-hooks/useSendCAT20ScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSendCAT721ScreenLogic.d.ts +40 -0
- package/lib/ui-hooks/useSendCAT721ScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSendOrdinalsInscriptionScreenLogic.d.ts +22 -0
- package/lib/ui-hooks/useSendOrdinalsInscriptionScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSendRunesScreenLogic.d.ts +30 -0
- package/lib/ui-hooks/useSendRunesScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSettingsTabScreenLogic.d.ts +72 -0
- package/lib/ui-hooks/useSettingsTabScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSignMessageLogic.d.ts +54 -0
- package/lib/ui-hooks/useSignMessageLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSignPsbtLogic.d.ts +82 -0
- package/lib/ui-hooks/useSignPsbtLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.d.ts +15 -0
- package/lib/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useTxConfirmScreenLogic.d.ts +8 -0
- package/lib/ui-hooks/useTxConfirmScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useTxCreateScreenLogic.d.ts +28 -0
- package/lib/ui-hooks/useTxCreateScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useTxFailScreenLogic.d.ts +7 -0
- package/lib/ui-hooks/useTxFailScreenLogic.d.ts.map +1 -0
- package/lib/ui-hooks/useTxSuccessScreenLogic.d.ts +8 -0
- package/lib/ui-hooks/useTxSuccessScreenLogic.d.ts.map +1 -0
- package/lib/updater/accounts.d.ts +2 -0
- package/lib/updater/accounts.d.ts.map +1 -0
- package/lib/updater/index.d.ts +2 -0
- package/lib/updater/index.d.ts.map +1 -0
- package/lib/utils/bitcoin-utils.d.ts +7 -0
- package/lib/utils/bitcoin-utils.d.ts.map +1 -0
- package/lib/utils/eventBus.d.ts +12 -0
- package/lib/utils/eventBus.d.ts.map +1 -0
- package/lib/utils/password-utils.d.ts +12 -0
- package/lib/utils/password-utils.d.ts.map +1 -0
- package/lib/utils/ui-utils.d.ts +4 -0
- package/lib/utils/ui-utils.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/context/WalletContext.tsx +56 -23
- package/src/hooks/settings.ts +10 -0
- package/src/hooks/transactions.ts +23 -2
- package/src/hooks/ui.ts +9 -1
- package/src/reducers/accounts.ts +3 -0
- package/src/reducers/ui.ts +21 -0
- package/src/types/ui.ts +6 -1
- package/src/ui-hooks/useAlkanesTokenScreenLogic.ts +8 -0
- package/src/ui-hooks/useBRC20InscribeTransferLogic.ts +30 -10
- package/src/ui-hooks/useBRC20ListLogic.ts +6 -2
- package/src/ui-hooks/useBRC20ProgListLogic.ts +7 -3
- package/src/ui-hooks/useBRC20SendScreenLogic.ts +19 -6
- package/src/ui-hooks/useBRC20TokenScreenLogic.ts +44 -24
- package/src/ui-hooks/useCAT20TokenScreenLogic.ts +5 -0
- package/src/ui-hooks/useEditAccountNameScreenLogic.ts +4 -4
- package/src/ui-hooks/useEditWalletNameScreenLogic.ts +5 -3
- package/src/ui-hooks/useRunesTokenScreenLogic.ts +7 -0
- package/src/ui-hooks/useSendAlkanesNFTScreenLogic.ts +24 -2
- package/src/ui-hooks/useSendAlkanesScreenLogic.ts +17 -1
- package/src/ui-hooks/useSendOrdinalsInscriptionScreenLogic.ts +15 -0
- package/src/ui-hooks/useSendRunesScreenLogic.ts +18 -1
- package/src/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.ts +15 -1
- package/src/ui-hooks/useTxCreateScreenLogic.ts +17 -1
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCAT721NFTScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useCAT721NFTScreenLogic.ts"],"names":[],"mappings":"AAGA,wBAAgB,uBAAuB;;;;;;;EAiCtC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useInfiniteList.ts"],"names":[],"mappings":"AAEA,UAAU,sBAAsB,CAAC,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAA;CACrB;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,EACjC,OAAO,EACP,QAAa,EACb,YAAiB,GAClB,EAAE,sBAAsB,CAAC,CAAC,CAAC;;;;;;;;EAwE3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Inscription } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useInscriptionListLogic(): {
|
|
3
|
+
items: Inscription[];
|
|
4
|
+
total: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onLoadMore: () => void;
|
|
9
|
+
onClickItem: (item: Inscription) => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useInscriptionListLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInscriptionListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useInscriptionListLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAcnD,wBAAgB,uBAAuB;;;;;;;wBA6CV,WAAW;EAQvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function useLockTimePageLogic(): {
|
|
2
|
+
autoLockTimeId: number;
|
|
3
|
+
autoLockTimes: {
|
|
4
|
+
id: number;
|
|
5
|
+
time: number;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
handleSelectOption: (option: any) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useLockTimePageLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLockTimePageLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useLockTimePageLogic.ts"],"names":[],"mappings":"AAMA,wBAAgB,oBAAoB;;;;;;;;;EAoCnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoredNotification } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useUnreadNotificationsCount(): number;
|
|
3
|
+
export declare function useNotificationsLogic(): {
|
|
4
|
+
notifications: StoredNotification[];
|
|
5
|
+
loading: boolean;
|
|
6
|
+
unreadCount: number;
|
|
7
|
+
handleReadNotification: (id: string) => Promise<void>;
|
|
8
|
+
handleReadAll: () => Promise<void>;
|
|
9
|
+
handleDeleteNotification: (id: string) => Promise<void>;
|
|
10
|
+
fetchNotifications: () => Promise<void>;
|
|
11
|
+
handleCardClick: (notification: StoredNotification) => Promise<void>;
|
|
12
|
+
formatTime: (timestamp: number) => string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useNotificationsLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNotificationsLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useNotificationsLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAIhF,wBAAgB,2BAA2B,WAkB1C;AAED,wBAAgB,qBAAqB;;;;iCAwBtB,MAAM;;mCAmBN,MAAM;;oCAU0B,kBAAkB;4BAYhC,MAAM;EAyBtC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Inscription } from '@unisat/wallet-shared';
|
|
3
|
+
declare enum TabKey {
|
|
4
|
+
DETAILS = "DETAILS",
|
|
5
|
+
PROVENANCE = "PROVENANCE"
|
|
6
|
+
}
|
|
7
|
+
export declare function useOrdinalsInscriptionScreenLogic(): {
|
|
8
|
+
inscription: Inscription;
|
|
9
|
+
isLoadingDetails: boolean;
|
|
10
|
+
isInitialLoading: boolean;
|
|
11
|
+
isNeedToSplit: boolean;
|
|
12
|
+
isMultiStuck: boolean;
|
|
13
|
+
tabKey: TabKey;
|
|
14
|
+
setTabKey: import("react").Dispatch<import("react").SetStateAction<TabKey>>;
|
|
15
|
+
TabKey: typeof TabKey;
|
|
16
|
+
resetState: () => void;
|
|
17
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
18
|
+
inscriptionId: string;
|
|
19
|
+
onClickSend: () => void;
|
|
20
|
+
onClickSplit: () => void;
|
|
21
|
+
isUnconfirmed: boolean;
|
|
22
|
+
withSend: boolean;
|
|
23
|
+
shouldShowTabs: boolean;
|
|
24
|
+
nav: import("src/context").NavigationContextType;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=useOrdinalsInscriptionScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOrdinalsInscriptionScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useOrdinalsInscriptionScreenLogic.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOnD,aAAK,MAAM;IACT,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AACD,wBAAgB,iCAAiC;;;;;;;;;;;;;;;;;;EAsHhD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RuneBalance, TickPriceItem } from '@unisat/wallet-shared';
|
|
2
|
+
export interface RunesBalanceCardProps {
|
|
3
|
+
tokenBalance: RuneBalance;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
price?: TickPriceItem;
|
|
6
|
+
}
|
|
7
|
+
export declare function useRunesBalanceCardLogic(props: RunesBalanceCardProps): {
|
|
8
|
+
tokenBalance: RuneBalance;
|
|
9
|
+
balance: BigNumber;
|
|
10
|
+
balanceStr: string;
|
|
11
|
+
showPrice: boolean;
|
|
12
|
+
price: TickPriceItem;
|
|
13
|
+
iconInfo: {
|
|
14
|
+
iconUrl: string;
|
|
15
|
+
iconShortName: string;
|
|
16
|
+
};
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useRunesBalanceCardLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRunesBalanceCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useRunesBalanceCardLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGlE,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AACD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,qBAAqB;;;;;;;;;;;EAkCpE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RuneBalance, TickPriceItem } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useRunesListLogic(): {
|
|
3
|
+
items: RuneBalance[];
|
|
4
|
+
total: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onLoadMore: () => void;
|
|
9
|
+
onClickItem: (item: RuneBalance) => void;
|
|
10
|
+
priceMap: {
|
|
11
|
+
[key: string]: TickPriceItem;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useRunesListLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRunesListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useRunesListLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAalE,wBAAgB,iBAAiB;;;;;;;wBAuDJ,WAAW;;;;EAKvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AddressRunesTokenSummary } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useRunesTokenScreenLogic(): {
|
|
3
|
+
runeid: string;
|
|
4
|
+
tokenSummary: AddressRunesTokenSummary;
|
|
5
|
+
iconInfo: {
|
|
6
|
+
iconUrl: string;
|
|
7
|
+
iconShortName: string;
|
|
8
|
+
};
|
|
9
|
+
loading: boolean;
|
|
10
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
11
|
+
enableMint: boolean;
|
|
12
|
+
onClickMint: () => void;
|
|
13
|
+
tools: import("src/context").ToolsContextType;
|
|
14
|
+
ordinalsWebsite: string;
|
|
15
|
+
txExplorerUrl: string;
|
|
16
|
+
enableTransfer: boolean;
|
|
17
|
+
onClickSend: () => void;
|
|
18
|
+
enableTrade: boolean;
|
|
19
|
+
onClickTrade: () => void;
|
|
20
|
+
onClickViewOnExplorer: () => void;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useRunesTokenScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRunesTokenScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useRunesTokenScreenLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAgBhE,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;;;;EA2IvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=useSecurityCardLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSecurityCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSecurityCardLogic.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Inscription, SignedData, SignPsbtParams } from '@unisat/wallet-shared';
|
|
3
|
+
export declare enum SendAlkanesNFTScreenStep {
|
|
4
|
+
CREATE_TX = 0,
|
|
5
|
+
SIGN_TX = 1
|
|
6
|
+
}
|
|
7
|
+
export declare function useSendAlkanesNFTScreenLogic(): {
|
|
8
|
+
step: number;
|
|
9
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
10
|
+
alkanesInfo: import("@unisat/wallet-shared").AlkanesInfo;
|
|
11
|
+
toInfo: {
|
|
12
|
+
address: string;
|
|
13
|
+
domain: string;
|
|
14
|
+
inscription?: Inscription;
|
|
15
|
+
};
|
|
16
|
+
enableRBF: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
error: string;
|
|
19
|
+
setToInfo: import("react").Dispatch<import("react").SetStateAction<{
|
|
20
|
+
address: string;
|
|
21
|
+
domain: string;
|
|
22
|
+
inscription?: Inscription;
|
|
23
|
+
}>>;
|
|
24
|
+
setEnableRBF: (value: boolean) => void;
|
|
25
|
+
onCreateTxHandleConfirm: () => Promise<void>;
|
|
26
|
+
onCreateTxHandleBack: () => void;
|
|
27
|
+
onSignPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
28
|
+
onSignPsbtHandleCancel: () => void;
|
|
29
|
+
onSignPsbtHandleBack: () => void;
|
|
30
|
+
signPsbtParams: SignPsbtParams;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useSendAlkanesNFTScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSendAlkanesNFTScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSendAlkanesNFTScreenLogic.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAA;AAW3F,oBAAY,wBAAwB;IAClC,SAAS,IAAI;IACb,OAAO,IAAI;CACZ;AACD,wBAAgB,4BAA4B;;;;;iBAU/B,MAAM;gBACP,MAAM;sBACA,WAAW;;;;;;iBAFhB,MAAM;gBACP,MAAM;sBACA,WAAW;;0BA4GO,OAAO;;;2CA9BW,UAAU,EAAE;;;;EAsDjE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Inscription, SignedData, SignPsbtParams } from '@unisat/wallet-shared';
|
|
3
|
+
export declare enum SendAlkanesScreenStep {
|
|
4
|
+
CREATE_TX = 0,
|
|
5
|
+
SIGN_TX = 1
|
|
6
|
+
}
|
|
7
|
+
export declare function useSendAlkanesScreenLogic(): {
|
|
8
|
+
step: SendAlkanesScreenStep;
|
|
9
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
10
|
+
tokenBalance: import("@unisat/wallet-shared").AlkanesBalance;
|
|
11
|
+
tokenInfo: import("@unisat/wallet-shared").AlkanesInfo;
|
|
12
|
+
toInfo: {
|
|
13
|
+
address: string;
|
|
14
|
+
domain: string;
|
|
15
|
+
inscription?: Inscription;
|
|
16
|
+
};
|
|
17
|
+
totalBalanceStr: string;
|
|
18
|
+
availableBalanceStr: string;
|
|
19
|
+
inputAmount: string;
|
|
20
|
+
enableRBF: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
error: string;
|
|
23
|
+
setToInfo: import("react").Dispatch<import("react").SetStateAction<{
|
|
24
|
+
address: string;
|
|
25
|
+
domain: string;
|
|
26
|
+
inscription?: Inscription;
|
|
27
|
+
}>>;
|
|
28
|
+
setInputAmount: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
29
|
+
setEnableRBF: (value: boolean) => void;
|
|
30
|
+
onClickBack: () => void;
|
|
31
|
+
onClickNext: () => Promise<void>;
|
|
32
|
+
onSignPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
33
|
+
onSignPsbtHandleCancel: () => void;
|
|
34
|
+
onSignPsbtHandleBack: () => void;
|
|
35
|
+
signPsbtParams: SignPsbtParams;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=useSendAlkanesScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSendAlkanesScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSendAlkanesScreenLogic.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAA;AAW3F,oBAAY,qBAAqB;IAC/B,SAAS,IAAI;IACb,OAAO,IAAI;CACZ;AAED,wBAAgB,yBAAyB;;;;;;iBAa5B,MAAM;gBACP,MAAM;sBACA,WAAW;;;;;;;;;iBAFhB,MAAM;gBACP,MAAM;sBACA,WAAW;;;0BA+IO,OAAO;;;2CAxBW,UAAU,EAAE;;;;EAwDjE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Inscription, SignedData, SignPsbtParams } from '@unisat/wallet-shared';
|
|
3
|
+
export declare enum SendCAT20ScreenStep {
|
|
4
|
+
PREPARE = 0,
|
|
5
|
+
SIGN_COMMIT = 1,
|
|
6
|
+
WAITING = 2,
|
|
7
|
+
SIGN_REVEAL = 3
|
|
8
|
+
}
|
|
9
|
+
export declare function useSendCAT20ScreenLogic(): {
|
|
10
|
+
cat20Info: import("@unisat/wallet-shared").CAT20TokenInfo;
|
|
11
|
+
cat20Balance: import("@unisat/wallet-shared").CAT20Balance;
|
|
12
|
+
availableTokenAmount: string;
|
|
13
|
+
toInfo: {
|
|
14
|
+
address: string;
|
|
15
|
+
domain: string;
|
|
16
|
+
inscription?: Inscription;
|
|
17
|
+
};
|
|
18
|
+
setToInfo: import("react").Dispatch<import("react").SetStateAction<{
|
|
19
|
+
address: string;
|
|
20
|
+
domain: string;
|
|
21
|
+
inscription?: Inscription;
|
|
22
|
+
}>>;
|
|
23
|
+
inputAmount: string;
|
|
24
|
+
setInputAmount: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
25
|
+
error: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
step: SendCAT20ScreenStep;
|
|
28
|
+
showMergeBTCUTXOPopover: boolean;
|
|
29
|
+
setShowMergeBTCUTXOPopover: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
30
|
+
shouldShowMerge: boolean;
|
|
31
|
+
onClickNext: () => Promise<void>;
|
|
32
|
+
onClickBack: () => void;
|
|
33
|
+
onSignCommitPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
34
|
+
onSignCommitPsbtHandleCancel: () => void;
|
|
35
|
+
onSignCommitPsbtHandleBack: () => void;
|
|
36
|
+
signCommitPsbtParams: SignPsbtParams;
|
|
37
|
+
onSignRevealPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
38
|
+
onSignRevealPsbtHandleCancel: () => void;
|
|
39
|
+
onSignRevealPsbtHandleBack: () => void;
|
|
40
|
+
signRevealPsbtParams: SignPsbtParams;
|
|
41
|
+
onClickMergeUTXO: () => void;
|
|
42
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=useSendCAT20ScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSendCAT20ScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSendCAT20ScreenLogic.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,WAAW,EACX,UAAU,EACV,cAAc,EAEf,MAAM,uBAAuB,CAAA;AAU9B,oBAAY,mBAAmB;IAC7B,OAAO,IAAI;IACX,WAAW,IAAI;IACf,OAAO,IAAI;IACX,WAAW,IAAI;CAChB;AAED,wBAAgB,uBAAuB;;;;;iBAc1B,MAAM;gBACP,MAAM;sBACA,WAAW;;;iBAFhB,MAAM;gBACP,MAAM;sBACA,WAAW;;;;;;;;;;;;iDAiJ+B,UAAU,EAAE;;;;iDAqCZ,UAAU,EAAE;;;;;;EA0EvE"}
|