@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 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLockTimePageLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useLockTimePageLogic.ts"],"names":[],"mappings":"AAMA,wBAAgB,oBAAoB;;;;;;;;;EAoCnC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=useSecurityCardLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSecurityCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSecurityCardLogic.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Inscription, SignedData, SignPsbtParams } from '@unisat/wallet-shared';
|
|
3
|
-
export declare enum SendCAT721ScreenStep {
|
|
4
|
-
PREPARE = 0,
|
|
5
|
-
SIGN_COMMIT = 1,
|
|
6
|
-
WAITING = 2,
|
|
7
|
-
SIGN_REVEAL = 3
|
|
8
|
-
}
|
|
9
|
-
export declare function useSendCAT721ScreenLogic(): {
|
|
10
|
-
version: import("@unisat/wallet-shared").CAT_VERSION;
|
|
11
|
-
localId: string;
|
|
12
|
-
collectionInfo: import("@unisat/wallet-shared").CAT721CollectionInfo;
|
|
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
|
-
error: string;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
step: SendCAT721ScreenStep;
|
|
26
|
-
showMergeBTCUTXOPopover: boolean;
|
|
27
|
-
setShowMergeBTCUTXOPopover: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
28
|
-
onClickNext: () => Promise<void>;
|
|
29
|
-
onClickBack: () => void;
|
|
30
|
-
onSignCommitPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
31
|
-
onSignCommitPsbtHandleCancel: () => void;
|
|
32
|
-
onSignCommitPsbtHandleBack: () => void;
|
|
33
|
-
signCommitPsbtParams: SignPsbtParams;
|
|
34
|
-
onSignRevealPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
35
|
-
onSignRevealPsbtHandleCancel: () => void;
|
|
36
|
-
onSignRevealPsbtHandleBack: () => void;
|
|
37
|
-
signRevealPsbtParams: SignPsbtParams;
|
|
38
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=useSendCAT721ScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSendCAT721ScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSendCAT721ScreenLogic.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAA;AAO3F,oBAAY,oBAAoB;IAC9B,OAAO,IAAI;IACX,WAAW,IAAI;IACf,OAAO,IAAI;IACX,WAAW,IAAI;CAChB;AACD,wBAAgB,wBAAwB;;;;;iBAS3B,MAAM;gBACP,MAAM;sBACA,WAAW;;;iBAFhB,MAAM;gBACP,MAAM;sBACA,WAAW;;;;;;;;;iDAsF+B,UAAU,EAAE;;;;iDAqCZ,UAAU,EAAE;;;;;EAyDvE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Inscription } from '@unisat/wallet-shared';
|
|
3
|
-
export declare function useSendOrdinalsInscriptionScreenLogic(): {
|
|
4
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
5
|
-
onAddressInputChange: (val: any) => void;
|
|
6
|
-
toInfo: {
|
|
7
|
-
address: string;
|
|
8
|
-
domain: string;
|
|
9
|
-
};
|
|
10
|
-
outputValue: number;
|
|
11
|
-
enableRBF: boolean;
|
|
12
|
-
setEnableRBF: (value: boolean) => void;
|
|
13
|
-
minOutputValue: number;
|
|
14
|
-
defaultOutputValue: number;
|
|
15
|
-
setOutputValue: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
16
|
-
inscriptions: Inscription[];
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
error: string;
|
|
19
|
-
onClickBack: () => void;
|
|
20
|
-
onClickNext: () => void;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=useSendOrdinalsInscriptionScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSendOrdinalsInscriptionScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSendOrdinalsInscriptionScreenLogic.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAcnD,wBAAgB,qCAAqC;;;;;;;;;0BA2CjB,OAAO;;;;;;;;;EA8F1C"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Inscription } from '@unisat/wallet-shared';
|
|
3
|
-
export declare function useSendRunesScreenLogic(): {
|
|
4
|
-
runeInfo: import("@unisat/wallet-shared").RuneInfo;
|
|
5
|
-
inputAmount: string;
|
|
6
|
-
totalBalanceStr: string;
|
|
7
|
-
availableBalanceStr: string;
|
|
8
|
-
setInputAmount: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
toInfo: {
|
|
11
|
-
address: string;
|
|
12
|
-
domain: string;
|
|
13
|
-
inscription?: Inscription;
|
|
14
|
-
};
|
|
15
|
-
setToInfo: import("react").Dispatch<import("react").SetStateAction<{
|
|
16
|
-
address: string;
|
|
17
|
-
domain: string;
|
|
18
|
-
inscription?: Inscription;
|
|
19
|
-
}>>;
|
|
20
|
-
error: string;
|
|
21
|
-
defaultOutputValue: number;
|
|
22
|
-
minOutputValue: number;
|
|
23
|
-
setOutputValue: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
24
|
-
enableRBF: boolean;
|
|
25
|
-
setEnableRBF: (value: boolean) => void;
|
|
26
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
27
|
-
onClickBack: () => void;
|
|
28
|
-
onClickNext: () => void;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=useSendRunesScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSendRunesScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSendRunesScreenLogic.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAcnD,wBAAgB,uBAAuB;;;;;;;;iBAa1B,MAAM;gBACP,MAAM;sBACA,WAAW;;;iBAFhB,MAAM;gBACP,MAAM;sBACA,WAAW;;;;;;;0BA+GO,OAAO;;;;EA+C1C"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export interface SettingsItemType {
|
|
2
|
-
key: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
desc?: string;
|
|
6
|
-
danger?: boolean;
|
|
7
|
-
right: boolean;
|
|
8
|
-
icon?: string;
|
|
9
|
-
badge?: string;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function useSettingsTabScreenLogic(): {
|
|
13
|
-
settings_connectedSites: SettingsItemType;
|
|
14
|
-
settings_addressBook: SettingsItemType;
|
|
15
|
-
settings_addressType: SettingsItemType;
|
|
16
|
-
settings_advanced: {
|
|
17
|
-
key: string;
|
|
18
|
-
label: string;
|
|
19
|
-
value: string;
|
|
20
|
-
desc: string;
|
|
21
|
-
right: boolean;
|
|
22
|
-
icon: string;
|
|
23
|
-
onClick: () => void;
|
|
24
|
-
};
|
|
25
|
-
settings_feedback: {
|
|
26
|
-
key: string;
|
|
27
|
-
label: string;
|
|
28
|
-
value: string;
|
|
29
|
-
desc: string;
|
|
30
|
-
route: string;
|
|
31
|
-
right: boolean;
|
|
32
|
-
icon: string;
|
|
33
|
-
onClick: () => void;
|
|
34
|
-
};
|
|
35
|
-
settings_rateus: {
|
|
36
|
-
key: string;
|
|
37
|
-
label: string;
|
|
38
|
-
value: string;
|
|
39
|
-
desc: string;
|
|
40
|
-
route: string;
|
|
41
|
-
right: boolean;
|
|
42
|
-
icon: string;
|
|
43
|
-
onClick: () => void;
|
|
44
|
-
};
|
|
45
|
-
settings_aboutus: {
|
|
46
|
-
key: string;
|
|
47
|
-
label: string;
|
|
48
|
-
value: string;
|
|
49
|
-
desc: string;
|
|
50
|
-
right: boolean;
|
|
51
|
-
icon: string;
|
|
52
|
-
badge: string;
|
|
53
|
-
onClick: () => void;
|
|
54
|
-
};
|
|
55
|
-
settings_lockwallet: {
|
|
56
|
-
key: string;
|
|
57
|
-
label: string;
|
|
58
|
-
value: string;
|
|
59
|
-
desc: string;
|
|
60
|
-
right: boolean;
|
|
61
|
-
onClick: () => void;
|
|
62
|
-
};
|
|
63
|
-
settings_expandview: {
|
|
64
|
-
key: string;
|
|
65
|
-
label: string;
|
|
66
|
-
value: string;
|
|
67
|
-
desc: string;
|
|
68
|
-
right: boolean;
|
|
69
|
-
onClick: () => void;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=useSettingsTabScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSettingsTabScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSettingsTabScreenLogic.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgMxC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SignedMessage, ToSignMessage } from '@unisat/wallet-shared';
|
|
3
|
-
export interface SignMessageProps {
|
|
4
|
-
header?: React.ReactNode;
|
|
5
|
-
params: {
|
|
6
|
-
data: {
|
|
7
|
-
toSignMessages: ToSignMessage[];
|
|
8
|
-
};
|
|
9
|
-
session?: {
|
|
10
|
-
origin: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
handleCancel?: () => void;
|
|
16
|
-
handleConfirm?: (signedMessages: SignedMessage[]) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare function useSignMessageLogic(props: SignMessageProps): {
|
|
19
|
-
loading: boolean;
|
|
20
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
21
|
-
session: {
|
|
22
|
-
origin: string;
|
|
23
|
-
icon: string;
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
isKeystoneSigning: boolean;
|
|
27
|
-
isColdWalletSigning: boolean;
|
|
28
|
-
showMultiSignView: boolean;
|
|
29
|
-
disclaimerVisible: boolean;
|
|
30
|
-
toSignMessages: ToSignMessage[];
|
|
31
|
-
currentToSignMessage: ToSignMessage;
|
|
32
|
-
isScammer: boolean;
|
|
33
|
-
allowQuickMultiSign: boolean;
|
|
34
|
-
isAllSigned: boolean;
|
|
35
|
-
signedCount: number;
|
|
36
|
-
multiSignList: {
|
|
37
|
-
index: number;
|
|
38
|
-
title: string;
|
|
39
|
-
buttonText: string;
|
|
40
|
-
buttonPreset: string;
|
|
41
|
-
onClick: () => void;
|
|
42
|
-
}[];
|
|
43
|
-
onClickBack: () => void;
|
|
44
|
-
onClickSign: () => void;
|
|
45
|
-
onQuickMultiSign: () => Promise<void>;
|
|
46
|
-
onTryMultiSign: () => Promise<void>;
|
|
47
|
-
onTrustSite: () => Promise<void>;
|
|
48
|
-
onKeystoneSigningSuccess: (data: SignedMessage) => void;
|
|
49
|
-
onKeystoneSigningBack: () => void;
|
|
50
|
-
onColdWalletSigningSuccess: (data: SignedMessage) => void;
|
|
51
|
-
onColdWalletSigningBack: () => void;
|
|
52
|
-
onDisclaimerModalClose: () => void;
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=useSignMessageLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSignMessageLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSignMessageLogic.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAa,aAAa,EAAiB,MAAM,uBAAuB,CAAA;AAM9F,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,cAAc,EAAE,aAAa,EAAE,CAAA;SAChC,CAAA;QACD,OAAO,CAAC,EAAE;YACR,MAAM,EAAE,MAAM,CAAA;YACd,IAAI,EAAE,MAAM,CAAA;YACZ,IAAI,EAAE,MAAM,CAAA;SACb,CAAA;KACF,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,aAAa,CAAC,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,KAAK,IAAI,CAAA;CAC1D;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAoNjB,aAAa;;uCAUX,aAAa;;;EAwDxD"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ToSignInput } from '@unisat/keyring-service/types';
|
|
3
|
-
import { ApprovalSession, ContractResult, DecodedPsbt, LocalPsbtSummary, SignedData, TickPriceItem, ToSignData } from '@unisat/wallet-shared';
|
|
4
|
-
interface InscriptionInfo {
|
|
5
|
-
id: string;
|
|
6
|
-
isSent: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface TxInfo {
|
|
9
|
-
changedBalance: number;
|
|
10
|
-
changedInscriptions: InscriptionInfo[];
|
|
11
|
-
rawtx: string;
|
|
12
|
-
psbtHex: string;
|
|
13
|
-
toSignInputs: ToSignInput[];
|
|
14
|
-
txError: string;
|
|
15
|
-
decodedPsbt: DecodedPsbt;
|
|
16
|
-
contractResults: ContractResult[];
|
|
17
|
-
}
|
|
18
|
-
export declare const initTxInfo: TxInfo;
|
|
19
|
-
export interface SignPsbtProps {
|
|
20
|
-
header?: React.ReactNode;
|
|
21
|
-
params: {
|
|
22
|
-
data: {
|
|
23
|
-
toSignDatas: ToSignData[];
|
|
24
|
-
};
|
|
25
|
-
session?: ApprovalSession;
|
|
26
|
-
};
|
|
27
|
-
handleCancel?: () => void;
|
|
28
|
-
handleConfirm?: (signedDatas: SignedData[]) => void;
|
|
29
|
-
fromApproval?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function useSignPsbtLogic(props: SignPsbtProps): {
|
|
32
|
-
isPsbtRiskPopoverVisible: boolean;
|
|
33
|
-
contractPopoverData: any;
|
|
34
|
-
setContractPopoverData: import("react").Dispatch<any>;
|
|
35
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
36
|
-
brc20PriceMap: Record<string, TickPriceItem>;
|
|
37
|
-
runesPriceMap: Record<string, TickPriceItem>;
|
|
38
|
-
session: ApprovalSession;
|
|
39
|
-
isPsbtSigning: boolean;
|
|
40
|
-
isKeystoneSigning: boolean;
|
|
41
|
-
isColdWalletSigning: boolean;
|
|
42
|
-
showMultiSignView: boolean;
|
|
43
|
-
showLoading: boolean;
|
|
44
|
-
disclaimerVisible: boolean;
|
|
45
|
-
localPsbtSummary: LocalPsbtSummary;
|
|
46
|
-
toSignDatas: ToSignData[];
|
|
47
|
-
currentToSignData: ToSignData;
|
|
48
|
-
currentDecodedPsbt: DecodedPsbt;
|
|
49
|
-
networkFee: string;
|
|
50
|
-
isValid: boolean;
|
|
51
|
-
hasRisk: boolean;
|
|
52
|
-
showFeeSection: boolean;
|
|
53
|
-
isScammer: boolean;
|
|
54
|
-
allowQuickMultiSign: boolean;
|
|
55
|
-
isAllSigned: boolean;
|
|
56
|
-
signedCount: number;
|
|
57
|
-
multiSignList: {
|
|
58
|
-
index: number;
|
|
59
|
-
buttonText: string;
|
|
60
|
-
buttonPreset: string;
|
|
61
|
-
psbtInfo: import("@unisat/wallet-shared").PsbtLocalInfo;
|
|
62
|
-
onClick: () => void;
|
|
63
|
-
}[];
|
|
64
|
-
backButtonText: string;
|
|
65
|
-
onClickBack: () => void;
|
|
66
|
-
onClickSign: () => void;
|
|
67
|
-
onQuickMultiSign: () => Promise<void>;
|
|
68
|
-
onTryMultiSign: () => Promise<void>;
|
|
69
|
-
onTrustSite: () => Promise<void>;
|
|
70
|
-
onKeystoneSigningSuccess: (data: SignedData) => void;
|
|
71
|
-
onKeystoneSigningBack: () => void;
|
|
72
|
-
onColdWalletSigningSuccess: (data: {
|
|
73
|
-
psbtHex: string;
|
|
74
|
-
rawtx: string;
|
|
75
|
-
}) => void;
|
|
76
|
-
onColdWalletSigningBack: () => void;
|
|
77
|
-
onRiskPopoverConfirm: () => void;
|
|
78
|
-
onRiskPopoverClose: () => void;
|
|
79
|
-
onDisclaimerModalClose: () => void;
|
|
80
|
-
};
|
|
81
|
-
export {};
|
|
82
|
-
//# sourceMappingURL=useSignPsbtLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSignPsbtLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSignPsbtLogic.ts"],"names":[],"mappings":";AACA,OAAO,EAAe,WAAW,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EACL,eAAe,EACf,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,UAAU,EAEV,aAAa,EACb,UAAU,EAEX,MAAM,uBAAuB,CAAA;AAO9B,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,MAAM;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,mBAAmB,EAAE,eAAe,EAAE,CAAA;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,WAAW,CAAA;IACxB,eAAe,EAAE,cAAc,EAAE,CAAA;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,MAuBxB,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,WAAW,EAAE,UAAU,EAAE,CAAA;SAC1B,CAAA;QACD,OAAO,CAAC,EAAE,eAAe,CAAA;KAC1B,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAyVX,UAAU;;uCAUR;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;;;;;EAwF7E"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Inscription } from '@unisat/wallet-shared';
|
|
2
|
-
export declare function useSplitOrdinalsInscriptionScreenLogic(): {
|
|
3
|
-
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
4
|
-
inscriptions: Inscription[];
|
|
5
|
-
minOutputValue: number;
|
|
6
|
-
splitedCount: number;
|
|
7
|
-
enableRBF: boolean;
|
|
8
|
-
setEnableRBF: (value: boolean) => void;
|
|
9
|
-
error: string;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
onOutputValueChange: (value: number) => void;
|
|
12
|
-
onClickBack: () => void;
|
|
13
|
-
onClickNext: () => void;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useSplitOrdinalsInscriptionScreenLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSplitOrdinalsInscriptionScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAWnD,wBAAgB,sCAAsC;;;;;;0BAsClB,OAAO;;;iCA+BL,MAAM;;;EA4B3C"}
|