@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,19 @@
|
|
|
1
|
+
import { AlkanesBalance, TickPriceItem } from '@unisat/wallet-shared';
|
|
2
|
+
export interface AlkanesBalanceCardProps {
|
|
3
|
+
tokenBalance: AlkanesBalance;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
price?: TickPriceItem;
|
|
6
|
+
}
|
|
7
|
+
export declare function useAlkanesBalanceCardLogic(props: AlkanesBalanceCardProps): {
|
|
8
|
+
tokenBalance: AlkanesBalance;
|
|
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=useAlkanesBalanceCardLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlkanesBalanceCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAlkanesBalanceCardLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGrE,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,cAAc,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AACD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,uBAAuB;;;;;;;;;;;EA+BxE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AlkanesCollection } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useAlkanesCollectionListLogic(): {
|
|
3
|
+
items: AlkanesCollection[];
|
|
4
|
+
total: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onLoadMore: () => void;
|
|
9
|
+
onClickItem: (item: AlkanesCollection) => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useAlkanesCollectionListLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlkanesCollectionListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAlkanesCollectionListLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAezD,wBAAgB,6BAA6B;;;;;;;wBA+ChB,iBAAiB;EAK7C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AlkanesBalance, TickPriceItem } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useAlkanesListLogic(): {
|
|
3
|
+
items: AlkanesBalance[];
|
|
4
|
+
total: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onLoadMore: () => void;
|
|
9
|
+
onClickItem: (item: AlkanesBalance) => void;
|
|
10
|
+
priceMap: {
|
|
11
|
+
[key: string]: TickPriceItem;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useAlkanesListLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlkanesListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAlkanesListLogic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAcrE,wBAAgB,mBAAmB;;;;;;;wBA+CN,cAAc;;;;EAK1C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AlkanesInfo } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useAlkanesNFTListLogic(collectionId: string): {
|
|
3
|
+
items: AlkanesInfo[];
|
|
4
|
+
total: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onLoadMore: () => void;
|
|
9
|
+
onClickItem: (item: AlkanesInfo) => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useAlkanesNFTListLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlkanesNFTListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAlkanesNFTListLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAKnD,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM;;;;;;;wBA+B9B,WAAW;EAKvC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useAlkanesNFTScreenLogic(): {
|
|
2
|
+
alkanesInfo: import("@unisat/wallet-shared").AlkanesInfo;
|
|
3
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
4
|
+
availableUtxo: number;
|
|
5
|
+
onClickBack: () => void;
|
|
6
|
+
onClickSend: () => void;
|
|
7
|
+
disabledSend: boolean;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useAlkanesNFTScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlkanesNFTScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAlkanesNFTScreenLogic.ts"],"names":[],"mappings":"AAIA,wBAAgB,wBAAwB;;;;;;;EAwCvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AddressAlkanesTokenSummary } from '@unisat/wallet-shared';
|
|
3
|
+
export declare function useAlkanesTokenScreenLogic(): {
|
|
4
|
+
tokenSummary: AddressAlkanesTokenSummary;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
enableMint: boolean;
|
|
7
|
+
enableTransfer: boolean;
|
|
8
|
+
enableTrade: boolean;
|
|
9
|
+
warning: boolean;
|
|
10
|
+
setWarning: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
11
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
12
|
+
tools: import("..").ToolsContextType;
|
|
13
|
+
onClickMint: () => void;
|
|
14
|
+
onClickSend: () => void;
|
|
15
|
+
onClickTrade: () => void;
|
|
16
|
+
onClickViewOnExplorer: () => void;
|
|
17
|
+
iconInfo: {
|
|
18
|
+
iconUrl: string;
|
|
19
|
+
iconShortName: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useAlkanesTokenScreenLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlkanesTokenScreenLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAlkanesTokenScreenLogic.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AAYlE,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;EA2HzC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface AmountInputProps {
|
|
2
|
+
}
|
|
3
|
+
export declare function useAmountInputLogic(props: {
|
|
4
|
+
value?: string;
|
|
5
|
+
runesDecimal?: number;
|
|
6
|
+
disableDecimal?: boolean;
|
|
7
|
+
enableBrc20Decimal?: boolean;
|
|
8
|
+
onAmountInputChange?: (amount: string) => void;
|
|
9
|
+
min?: number;
|
|
10
|
+
step?: number;
|
|
11
|
+
}): {
|
|
12
|
+
handleInputAmount: (e: {
|
|
13
|
+
target: {
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
} | string) => void;
|
|
17
|
+
handleStepUp: () => void;
|
|
18
|
+
handleStepDown: () => void;
|
|
19
|
+
handleReset: () => void;
|
|
20
|
+
inputValue: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useAmountInputLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAmountInputLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAmountInputLogic.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;CAAG;AAEpC,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAE9C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;2BAkBO;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM;;;;;EAgD7C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Announcement } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useAnnouncementCardLogic(): {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
validAnnouncements: Announcement[];
|
|
5
|
+
current: Announcement;
|
|
6
|
+
activeIndex: number;
|
|
7
|
+
handleDotClick: (index: number) => void;
|
|
8
|
+
handleDismissAll: () => Promise<void>;
|
|
9
|
+
isLinkable: (announcement: Announcement) => boolean;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useAnnouncementCardLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnnouncementCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useAnnouncementCardLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,uBAAuB,CAAA;AAM1E,wBAAgB,wBAAwB;;;;;4BAyDK,MAAM;;+BAYH,YAAY;EAe3D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TickPriceItem, TokenBalance } from '@unisat/wallet-shared';
|
|
2
|
+
export interface BRC20BalanceCardProps {
|
|
3
|
+
tokenBalance: TokenBalance;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
price?: TickPriceItem;
|
|
6
|
+
}
|
|
7
|
+
export declare function useBRC20BalanceCardLogic(props: BRC20BalanceCardProps): {
|
|
8
|
+
ticker: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
selfMint: boolean;
|
|
11
|
+
tag: string;
|
|
12
|
+
iconInfo: {
|
|
13
|
+
iconUrl: string;
|
|
14
|
+
iconShortName: string;
|
|
15
|
+
};
|
|
16
|
+
totalBalance: string;
|
|
17
|
+
hasOutWalletBalance: boolean;
|
|
18
|
+
onProgBalance: string;
|
|
19
|
+
inWalletBalance: string;
|
|
20
|
+
onSwapBalance: string;
|
|
21
|
+
price: TickPriceItem;
|
|
22
|
+
showPrice: boolean;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useBRC20BalanceCardLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBRC20BalanceCardLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20BalanceCardLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAMxF,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AACD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;EAuGpE"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InscribeOrder, SignedData, SignPsbtParams, TokenBalance, TokenInfo, ToSignData } from '@unisat/wallet-shared';
|
|
3
|
+
declare enum Step {
|
|
4
|
+
STEP1 = 0,
|
|
5
|
+
STEP2 = 1,
|
|
6
|
+
STEP3 = 2,
|
|
7
|
+
STEP4 = 3
|
|
8
|
+
}
|
|
9
|
+
interface ContextData {
|
|
10
|
+
step: Step;
|
|
11
|
+
ticker: string;
|
|
12
|
+
session?: any;
|
|
13
|
+
tokenBalance?: TokenBalance;
|
|
14
|
+
order?: InscribeOrder;
|
|
15
|
+
toSignData?: ToSignData;
|
|
16
|
+
amount?: string;
|
|
17
|
+
isApproval: boolean;
|
|
18
|
+
tokenInfo?: TokenInfo;
|
|
19
|
+
amountEditable?: boolean;
|
|
20
|
+
enableRBF: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface UpdateContextDataParams {
|
|
23
|
+
step?: Step;
|
|
24
|
+
ticket?: string;
|
|
25
|
+
session?: any;
|
|
26
|
+
tokenBalance?: TokenBalance;
|
|
27
|
+
order?: InscribeOrder;
|
|
28
|
+
toSignData?: ToSignData;
|
|
29
|
+
amount?: string;
|
|
30
|
+
tokenInfo?: TokenInfo;
|
|
31
|
+
amountEditable?: boolean;
|
|
32
|
+
enableRBF?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface BRC20InscribeTransferParams {
|
|
35
|
+
contextData: ContextData;
|
|
36
|
+
updateContextData: (params: UpdateContextDataParams) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare function useBRC20InscribeTransferLogic(): {
|
|
39
|
+
contextData: ContextData;
|
|
40
|
+
updateContextData: (params: UpdateContextDataParams) => void;
|
|
41
|
+
};
|
|
42
|
+
export declare function useBRC20InscribeTransferLogicStep1(params: BRC20InscribeTransferParams): {
|
|
43
|
+
onClickInscribe: () => Promise<void>;
|
|
44
|
+
loading: boolean;
|
|
45
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
46
|
+
nav: import("src/context").NavigationContextType;
|
|
47
|
+
inputAmount: string;
|
|
48
|
+
inputError: string;
|
|
49
|
+
setInputAmount: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
50
|
+
inputDisabled: boolean;
|
|
51
|
+
inputErrorAvailable: string;
|
|
52
|
+
defaultOutputValue: number;
|
|
53
|
+
setOutputValue: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
enableRBF: boolean;
|
|
56
|
+
setEnableRBF: (value: boolean) => void;
|
|
57
|
+
loadingOnly: boolean;
|
|
58
|
+
handleCancel: () => void;
|
|
59
|
+
};
|
|
60
|
+
export declare function useBRC20InscribeTransferLogicStep2(params: BRC20InscribeTransferParams): {
|
|
61
|
+
isEmpty: boolean;
|
|
62
|
+
networkFee: string;
|
|
63
|
+
outputValue: string;
|
|
64
|
+
minerFee: string;
|
|
65
|
+
originServiceFee: string;
|
|
66
|
+
serviceFee: string;
|
|
67
|
+
totalFee: string;
|
|
68
|
+
btcUnit: string;
|
|
69
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
70
|
+
session: any;
|
|
71
|
+
amount: string;
|
|
72
|
+
tokenBalance: TokenBalance;
|
|
73
|
+
order?: undefined;
|
|
74
|
+
toSignData?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
networkFee: string;
|
|
77
|
+
outputValue: string;
|
|
78
|
+
minerFee: string;
|
|
79
|
+
originServiceFee: string;
|
|
80
|
+
serviceFee: string;
|
|
81
|
+
totalFee: string;
|
|
82
|
+
btcUnit: string;
|
|
83
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
84
|
+
session: any;
|
|
85
|
+
amount: string;
|
|
86
|
+
tokenBalance: TokenBalance;
|
|
87
|
+
order: InscribeOrder;
|
|
88
|
+
toSignData: ToSignData;
|
|
89
|
+
isEmpty?: undefined;
|
|
90
|
+
};
|
|
91
|
+
export declare function useBRC20InscribeTransferLogicStep3(params: BRC20InscribeTransferParams): {
|
|
92
|
+
signPsbtParams: SignPsbtParams;
|
|
93
|
+
onSignPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
|
|
94
|
+
onSignPsbtHandleCancel: () => void;
|
|
95
|
+
onHeaderBack: () => void;
|
|
96
|
+
};
|
|
97
|
+
export declare function useBRC20InscribeTransferLogicStep4(params: BRC20InscribeTransferParams): {
|
|
98
|
+
t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
|
|
99
|
+
result: any;
|
|
100
|
+
onClickConfirm: () => void;
|
|
101
|
+
};
|
|
102
|
+
export {};
|
|
103
|
+
//# sourceMappingURL=useBRC20InscribeTransferLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBRC20InscribeTransferLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20InscribeTransferLogic.ts"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,UAAU,EACX,MAAM,uBAAuB,CAAA;AAe9B,aAAK,IAAI;IACP,KAAK,IAAA;IACL,KAAK,IAAA;IACL,KAAK,IAAA;IACL,KAAK,IAAA;CACN;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,WAAW,CAAA;IACxB,iBAAiB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAA;CAC7D;AAED,wBAAgB,6BAA6B;;gCAUI,uBAAuB;EAOvE;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,2BAA2B;;;;;;;;;;;;;;0BAkK5D,OAAO;;;EAOhC;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDrF;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,2BAA2B;;2CAwBhC,UAAU,EAAE;;;EAyBjE;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,2BAA2B;;;;EA4DrF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TickPriceItem, TokenBalance } from '@unisat/wallet-shared';
|
|
2
|
+
export declare function useBRC20ListLogic(): {
|
|
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=useBRC20ListLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBRC20ListLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBRC20ListLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAanE,wBAAgB,iBAAiB;;;;;;;wBA4DJ,YAAY;;;;EAKxC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBtcDisplayLogic.d.ts","sourceRoot":"","sources":["../../src/ui-hooks/useBtcDisplayLogic.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM;;;EAYjD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|