@unisat/wallet-state 1.1.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.
Files changed (45) hide show
  1. package/lib/index.d.mts +87 -18
  2. package/lib/index.d.ts +87 -18
  3. package/lib/index.js +516 -175
  4. package/lib/index.js.map +1 -1
  5. package/lib/index.mjs +514 -178
  6. package/lib/index.mjs.map +1 -1
  7. package/lib/types/index.d.mts +6 -2
  8. package/lib/types/index.d.ts +6 -2
  9. package/lib/types/index.js +7 -1
  10. package/lib/types/index.js.map +1 -1
  11. package/lib/types/index.mjs +7 -2
  12. package/lib/types/index.mjs.map +1 -1
  13. package/package.json +4 -4
  14. package/src/context/NavigationContext.tsx +1 -0
  15. package/src/context/WalletContext.tsx +56 -23
  16. package/src/hooks/accounts.ts +7 -2
  17. package/src/hooks/settings.ts +10 -0
  18. package/src/hooks/transactions.ts +75 -10
  19. package/src/hooks/ui.ts +83 -63
  20. package/src/reducers/accounts.ts +3 -0
  21. package/src/reducers/ui.ts +21 -0
  22. package/src/types/ui.ts +6 -1
  23. package/src/ui-hooks/useAddressTypeScreenLogic.ts +22 -8
  24. package/src/ui-hooks/useAlkanesNFTScreenLogic.ts +3 -2
  25. package/src/ui-hooks/useAlkanesTokenScreenLogic.ts +12 -2
  26. package/src/ui-hooks/useBRC20InscribeTransferLogic.ts +30 -10
  27. package/src/ui-hooks/useBRC20ListLogic.ts +6 -2
  28. package/src/ui-hooks/useBRC20ProgListLogic.ts +7 -3
  29. package/src/ui-hooks/useBRC20SendScreenLogic.ts +19 -6
  30. package/src/ui-hooks/useBRC20TokenScreenLogic.ts +48 -25
  31. package/src/ui-hooks/useCAT20TokenScreenLogic.ts +16 -2
  32. package/src/ui-hooks/useCAT721NFTScreenLogic.ts +3 -1
  33. package/src/ui-hooks/useEditAccountNameScreenLogic.ts +4 -4
  34. package/src/ui-hooks/useEditWalletNameScreenLogic.ts +5 -3
  35. package/src/ui-hooks/useOrdinalsInscriptionScreenLogic.ts +3 -2
  36. package/src/ui-hooks/useRunesTokenScreenLogic.ts +11 -2
  37. package/src/ui-hooks/useSendAlkanesNFTScreenLogic.ts +24 -2
  38. package/src/ui-hooks/useSendAlkanesScreenLogic.ts +17 -1
  39. package/src/ui-hooks/useSendOrdinalsInscriptionScreenLogic.ts +17 -5
  40. package/src/ui-hooks/useSendRunesScreenLogic.ts +18 -1
  41. package/src/ui-hooks/useSettingsTabScreenLogic.ts +18 -3
  42. package/src/ui-hooks/useSignMessageLogic.ts +37 -16
  43. package/src/ui-hooks/useSignPsbtLogic.ts +31 -15
  44. package/src/ui-hooks/useSplitOrdinalsInscriptionScreenLogic.ts +15 -1
  45. package/src/ui-hooks/useTxCreateScreenLogic.ts +17 -1
package/lib/index.d.mts CHANGED
@@ -2,11 +2,11 @@ import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/con
2
2
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
3
3
  import * as redux from 'redux';
4
4
  import * as _unisat_wallet_shared from '@unisat/wallet-shared';
5
- import { AppInfo, Inscription, WalletKeyring, WalletConfig, UnspentOutput, Account, BitcoinBalanceV2, TxHistoryItem, AppSummary, InscriptionSummary, AddressSummary, TokenBalance, TokenInfo, RuneBalance, RuneInfo, AlkanesBalance, AlkanesInfo, CAT_VERSION, CAT20Balance, CAT20TokenInfo, CAT721CollectionInfo, BabylonTxInfo, ToSignData, CoinPrice, VersionDetail, BitcoinBalance, SignedData, ToSignMessage, SignedMessage, ConnectedSite, FeeSummary, TickPriceItem, InscribeOrder, TokenTransfer, DecodedPsbt, LocalPsbtSummary, AddressTokenSummary, UTXO_Detail, UTXO, WebsiteResult, SignPsbtOptions, ToSignInput, AddressFlagType, CosmosSignDataType, AddressRunesTokenSummary, AddressCAT20TokenSummary, AddressCAT20UtxoSummary, CAT20MergeOrder, CAT721Balance, AddressCAT721CollectionSummary, BtcChannelItem, BabylonAddressSummary, CosmosBalance, AddressAlkanesTokenSummary, AlkanesCollection, BRC20HistoryItem, RateUsStatus, Announcement, StoredNotification, DummyTxType, ToAddressInfo, RawTxInfo, SignPsbtParams, SignPsbtResult, WordsType, RestoreWalletType, ApprovalSession, PsbtActionInfo } from '@unisat/wallet-shared';
5
+ import { AppInfo, Inscription, WalletKeyring, WalletConfig, UnspentOutput, Account, BitcoinBalanceV2, TxHistoryItem, AppSummary, InscriptionSummary, AddressSummary, TokenBalance, TokenInfo, RuneBalance, RuneInfo, AlkanesBalance, AlkanesInfo, CAT_VERSION, CAT20Balance, CAT20TokenInfo, CAT721CollectionInfo, BabylonTxInfo, ToSignData, CoinPrice, VersionDetail, BitcoinBalance, SignedData, ToSignMessage, SignedMessage, ConnectedSite, FeeSummary, TickPriceItem, InscribeOrder, TokenTransfer, DecodedPsbt, LocalPsbtSummary, AddressTokenSummary, UTXO_Detail, UTXO, WebsiteResult, SignPsbtOptions, ToSignInput, AddressFlagType, CosmosSignDataType, AddressRunesTokenSummary, AddressCAT20TokenSummary, AddressCAT20UtxoSummary, CAT20MergeOrder, AppExtra, CAT721Balance, AddressCAT721CollectionSummary, BtcChannelItem, BabylonAddressSummary, CosmosBalance, AddressAlkanesTokenSummary, AlkanesCollection, BRC20HistoryItem, RateUsStatus, Announcement, StoredNotification, DummyTxType, ToAddressInfo, RawTxInfo, SignPsbtParams, SignPsbtResult, WordsType, RestoreWalletType, ApprovalSession, PsbtActionInfo } from '@unisat/wallet-shared';
6
6
  export { PsbtLocalInfo } from '@unisat/wallet-shared';
7
7
  import * as _unisat_wallet_types from '@unisat/wallet-types';
8
8
  import { ChainType, NetworkType, AddressType } from '@unisat/wallet-types';
9
- import { AssetTabKey, OrdinalsAssetTabKey, CATAssetTabKey, AlkanesAssetTabKey, NavigationSource, TabOption } from './types/index.mjs';
9
+ import { AssetTabKey, OrdinalsAssetTabKey, CATAssetTabKey, AlkanesAssetTabKey, MoreAssetTabKey, NavigationSource, TabOption } from './types/index.mjs';
10
10
  import * as react from 'react';
11
11
  import react__default, { ReactNode } from 'react';
12
12
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -89,6 +89,7 @@ interface UIState {
89
89
  ordinalsAssetTabKey: OrdinalsAssetTabKey;
90
90
  catAssetTabKey: CATAssetTabKey;
91
91
  alkanesAssetTabKey: AlkanesAssetTabKey;
92
+ moreAssetTabKey: MoreAssetTabKey;
92
93
  uiTxCreateScreen: {
93
94
  toInfo: {
94
95
  address: string;
@@ -96,6 +97,7 @@ interface UIState {
96
97
  inscription?: Inscription;
97
98
  };
98
99
  inputAmount: string;
100
+ enableRBF: boolean;
99
101
  };
100
102
  addressInput: {
101
103
  address: string;
@@ -340,6 +342,7 @@ type RouteParamList = {
340
342
  };
341
343
  CreateSimpleWalletScreen: undefined;
342
344
  CreateWatchWalletScreen: undefined;
345
+ CreateReadonlyWalletScreen: undefined;
343
346
  CreateColdWalletScreen: {
344
347
  fromUnlock?: boolean;
345
348
  };
@@ -722,6 +725,7 @@ interface WalletController {
722
725
  amount: number;
723
726
  btcUtxos: UnspentOutput[];
724
727
  feeRate: number;
728
+ enableRBF?: boolean;
725
729
  memo?: string;
726
730
  memos?: string[];
727
731
  }): Promise<ToSignData>;
@@ -729,6 +733,7 @@ interface WalletController {
729
733
  to: string;
730
734
  btcUtxos: UnspentOutput[];
731
735
  feeRate: number;
736
+ enableRBF?: boolean;
732
737
  }): Promise<ToSignData>;
733
738
  createSendInscriptionPsbt(data: {
734
739
  to: string;
@@ -736,18 +741,21 @@ interface WalletController {
736
741
  feeRate: number;
737
742
  outputValue?: number;
738
743
  btcUtxos: UnspentOutput[];
744
+ enableRBF?: boolean;
739
745
  }): Promise<ToSignData>;
740
746
  createSendMultipleInscriptionsPsbt(data: {
741
747
  to: string;
742
748
  inscriptionIds: string[];
743
749
  feeRate: number;
744
750
  btcUtxos: UnspentOutput[];
751
+ enableRBF?: boolean;
745
752
  }): Promise<ToSignData>;
746
753
  createSplitInscriptionPsbt(data: {
747
754
  inscriptionId: string;
748
755
  feeRate: number;
749
756
  outputValue: number;
750
757
  btcUtxos: UnspentOutput[];
758
+ enableRBF?: boolean;
751
759
  }): Promise<ToSignData>;
752
760
  pushTx(rawtx: string): Promise<string>;
753
761
  queryDomainInfo(domain: string): Promise<Inscription>;
@@ -801,19 +809,33 @@ interface WalletController {
801
809
  total: number;
802
810
  list: Inscription[];
803
811
  }>;
804
- getBRC20List(address: string, currentPage: number, pageSize: number): Promise<{
812
+ getBRC20List({ address, currentPage, pageSize, }: {
813
+ address: string;
814
+ currentPage: number;
815
+ pageSize: number;
816
+ }): Promise<{
805
817
  currentPage: number;
806
818
  pageSize: number;
807
819
  total: number;
808
820
  list: TokenBalance[];
809
821
  }>;
810
- getBRC20ProgList(address: string, currentPage: number, pageSize: number): Promise<{
822
+ getBRC20ProgList({ address, currentPage, pageSize, }: {
823
+ address: string;
824
+ currentPage: number;
825
+ pageSize: number;
826
+ }): Promise<{
811
827
  currentPage: number;
812
828
  pageSize: number;
813
829
  total: number;
814
830
  list: TokenBalance[];
815
831
  }>;
816
- getBRC20TransferableList(address: string, ticker: string, currentPage: number, pageSize: number): Promise<{
832
+ getBRC20TransferableList({ address, ticker, tickerHex, currentPage, pageSize, }: {
833
+ address: string;
834
+ ticker: string;
835
+ tickerHex: string;
836
+ currentPage: number;
837
+ pageSize: number;
838
+ }): Promise<{
817
839
  currentPage: number;
818
840
  pageSize: number;
819
841
  total: number;
@@ -825,7 +847,10 @@ interface WalletController {
825
847
  total: number;
826
848
  list: Inscription[];
827
849
  }>;
828
- getBRC20Summary(address: string, ticker: string): Promise<AddressTokenSummary>;
850
+ getBRC20Summary({ address, ticker, }: {
851
+ address: string;
852
+ ticker: string;
853
+ }): Promise<AddressTokenSummary>;
829
854
  expireUICachedData(address: string): Promise<void>;
830
855
  getWalletConfig(): Promise<WalletConfig>;
831
856
  getSkippedVersion(): Promise<string>;
@@ -896,6 +921,7 @@ interface WalletController {
896
921
  btcUtxos?: UnspentOutput[];
897
922
  assetUtxos?: UnspentOutput[];
898
923
  outputValue?: number;
924
+ enableRBF?: boolean;
899
925
  }): Promise<ToSignData>;
900
926
  setAutoLockTimeId(timeId: number): Promise<void>;
901
927
  getAutoLockTimeId(): Promise<number>;
@@ -931,6 +957,7 @@ interface WalletController {
931
957
  tab: string;
932
958
  items: AppInfo[];
933
959
  }[]>;
960
+ getAppExtra(id: string | number, locale?: string): Promise<AppExtra>;
934
961
  getBannerList(): Promise<{
935
962
  id: string;
936
963
  img: string;
@@ -1008,7 +1035,7 @@ interface WalletController {
1008
1035
  createSendBTCOffsetPsbt(tos: {
1009
1036
  address: string;
1010
1037
  satoshis: number;
1011
- }[], feeRate: number): Promise<ToSignData>;
1038
+ }[], feeRate: number, enableRBF?: boolean): Promise<ToSignData>;
1012
1039
  getAlkanesList(address: string, currentPage: number, pageSize: number): Promise<{
1013
1040
  currentPage: number;
1014
1041
  pageSize: number;
@@ -1023,6 +1050,7 @@ interface WalletController {
1023
1050
  amount: string;
1024
1051
  feeRate: number;
1025
1052
  type: 'ft' | 'nft';
1053
+ enableRBF?: boolean;
1026
1054
  }): Promise<ToSignData>;
1027
1055
  getAlkanesCollectionList(address: string, currentPage: number, pageSize: number): Promise<{
1028
1056
  list: AlkanesCollection[];
@@ -1054,6 +1082,8 @@ interface WalletController {
1054
1082
  getNotificationUnreadCount(): Promise<number>;
1055
1083
  getAcceptLowFeeMode(): Promise<boolean>;
1056
1084
  setAcceptLowFeeMode(accept: boolean): Promise<void>;
1085
+ getEnableRBF(): Promise<boolean>;
1086
+ setEnableRBF(enableRBF: boolean): Promise<void>;
1057
1087
  createTmpKeyringWithPublicKey(publicKey: string, addressType: AddressType): Promise<WalletKeyring>;
1058
1088
  createKeyringWithPublicKey(data: string, addressType: AddressType): Promise<void>;
1059
1089
  createTmpKeyringWithAddress(address: string): Promise<WalletKeyring>;
@@ -1071,6 +1101,7 @@ declare const useWallet: () => WalletController;
1071
1101
  declare function useAccountsState(): AppState['accounts'];
1072
1102
  declare function useCurrentAccount(): Account;
1073
1103
  declare function useCurrentAddress(): string;
1104
+ declare function useCurrentAccountCapabilities(): _unisat_wallet_shared.AccountCapabilities;
1074
1105
  declare function useAccounts(): Account[];
1075
1106
  declare function useAccountBalance(): _unisat_wallet_shared.BitcoinBalanceV2;
1076
1107
  declare function useAddressSummary(): _unisat_wallet_shared.AddressSummary;
@@ -1185,6 +1216,8 @@ declare function useGetTxExplorerUrlCallback(): (txid: string) => string;
1185
1216
  declare function useAddressExplorerUrl(address: string): string;
1186
1217
  declare function useCAT20TokenInfoExplorerUrl(version: CAT_VERSION, tokenId: string): string;
1187
1218
  declare function useBRC20TokenInfoExplorerUrl(ticker: string): string;
1219
+ declare function useRunesTokenInfoExplorerUrl(runeId: string): string;
1220
+ declare function useAlkanesTokenInfoExplorerUrl(alkaneId: string): string;
1188
1221
  declare function useUnisatWebsite(): string;
1189
1222
  declare function useIconBaseUrl(): string;
1190
1223
  declare function useOrdinalsWebsite(): string;
@@ -1211,18 +1244,20 @@ declare function useSetDeveloperModeCallback(): (developerMode: boolean) => Prom
1211
1244
 
1212
1245
  declare function useTransactionsState(): AppState['transactions'];
1213
1246
  declare function useBitcoinTx(): BitcoinTx;
1214
- declare function usePrepareSendBTCCallback(): ({ toAddressInfo, toAmount, feeRate, memo, memos, disableAutoAdjust, }: {
1247
+ declare function usePrepareSendBTCCallback(): ({ toAddressInfo, toAmount, feeRate, memo, memos, disableAutoAdjust, enableRBF, }: {
1215
1248
  toAddressInfo: ToAddressInfo;
1216
1249
  toAmount: number;
1217
1250
  feeRate?: number;
1218
1251
  memo?: string;
1219
1252
  memos?: string[];
1220
1253
  disableAutoAdjust?: boolean;
1254
+ enableRBF?: boolean;
1221
1255
  }) => Promise<ToSignData>;
1222
- declare function usePrepareSendBypassHeadOffsetsCallback(): ({ toAddressInfo, toAmount, feeRate, }: {
1256
+ declare function usePrepareSendBypassHeadOffsetsCallback(): ({ toAddressInfo, toAmount, feeRate, enableRBF, }: {
1223
1257
  toAddressInfo: ToAddressInfo;
1224
1258
  toAmount: number;
1225
1259
  feeRate: number;
1260
+ enableRBF?: boolean;
1226
1261
  }) => Promise<ToSignData>;
1227
1262
  declare function usePushBitcoinTxCallback(): (rawtx: string) => Promise<{
1228
1263
  success: boolean;
@@ -1230,21 +1265,24 @@ declare function usePushBitcoinTxCallback(): (rawtx: string) => Promise<{
1230
1265
  error: string;
1231
1266
  }>;
1232
1267
  declare function useOrdinalsTx(): OrdinalsTx;
1233
- declare function usePrepareSendOrdinalsInscriptionCallback(): ({ toAddressInfo, inscriptionId, feeRate, outputValue, }: {
1268
+ declare function usePrepareSendOrdinalsInscriptionCallback(): ({ toAddressInfo, inscriptionId, feeRate, outputValue, enableRBF, }: {
1234
1269
  toAddressInfo: ToAddressInfo;
1235
1270
  inscriptionId: string;
1236
1271
  feeRate?: number;
1237
1272
  outputValue?: number;
1273
+ enableRBF?: boolean;
1238
1274
  }) => Promise<ToSignData>;
1239
- declare function usePrepareSendOrdinalsInscriptionsCallback(): ({ toAddressInfo, inscriptionIds, feeRate, }: {
1275
+ declare function usePrepareSendOrdinalsInscriptionsCallback(): ({ toAddressInfo, inscriptionIds, feeRate, enableRBF, }: {
1240
1276
  toAddressInfo: ToAddressInfo;
1241
1277
  inscriptionIds: string[];
1242
1278
  feeRate?: number;
1279
+ enableRBF?: boolean;
1243
1280
  }) => Promise<ToSignData>;
1244
- declare function useCreateSplitTxCallback(): ({ inscriptionId, feeRate, outputValue, }: {
1281
+ declare function useCreateSplitTxCallback(): ({ inscriptionId, feeRate, outputValue, enableRBF, }: {
1245
1282
  inscriptionId: string;
1246
1283
  feeRate: number;
1247
1284
  outputValue: number;
1285
+ enableRBF?: boolean;
1248
1286
  }) => Promise<ToSignData>;
1249
1287
  declare function usePushOrdinalsTxCallback(): (rawtx: string) => Promise<{
1250
1288
  success: boolean;
@@ -1258,21 +1296,23 @@ declare function useSetSpendUnavailableUtxosCallback(): (utxos: UnspentOutput[])
1258
1296
  declare function useSafeBalance(): string;
1259
1297
  declare function useAssetUtxosRunes(): UnspentOutput[];
1260
1298
  declare function useFetchAssetUtxosRunesCallback(): (rune: string) => Promise<UnspentOutput[]>;
1261
- declare function usePrepareSendRunesCallback(): ({ toAddressInfo, runeid, runeAmount, outputValue, feeRate, }: {
1299
+ declare function usePrepareSendRunesCallback(): ({ toAddressInfo, runeid, runeAmount, outputValue, feeRate, enableRBF, }: {
1262
1300
  toAddressInfo: ToAddressInfo;
1263
1301
  runeid: string;
1264
1302
  runeAmount: string;
1265
1303
  outputValue?: number;
1266
1304
  feeRate: number;
1305
+ enableRBF?: boolean;
1267
1306
  }) => Promise<ToSignData>;
1268
1307
  declare function useRunesTx(): RunesTx;
1269
- declare function usePrepareSendAlkanesCallback(): (toAddressInfo: ToAddressInfo, alkaneid: string, amount: string, feeRate: number, type: 'ft' | 'nft') => Promise<ToSignData>;
1308
+ declare function usePrepareSendAlkanesCallback(): (toAddressInfo: ToAddressInfo, alkaneid: string, amount: string, feeRate: number, type: 'ft' | 'nft', enableRBF?: boolean) => Promise<ToSignData>;
1270
1309
 
1271
1310
  declare function useUIState(): AppState['ui'];
1272
1311
  declare function useAssetTabKey(): AssetTabKey;
1273
1312
  declare function useOrdinalsAssetTabKey(): OrdinalsAssetTabKey;
1274
1313
  declare function useCATAssetTabKey(): CATAssetTabKey;
1275
1314
  declare function useAlkanesAssetTabKey(): AlkanesAssetTabKey;
1315
+ declare function useMoreAssetTabKey(): MoreAssetTabKey;
1276
1316
  declare function useUiTxCreateScreen(): {
1277
1317
  toInfo: {
1278
1318
  address: string;
@@ -1280,14 +1320,16 @@ declare function useUiTxCreateScreen(): {
1280
1320
  inscription?: Inscription;
1281
1321
  };
1282
1322
  inputAmount: string;
1323
+ enableRBF: boolean;
1283
1324
  };
1284
- declare function useUpdateUiTxCreateScreen(): ({ toInfo, inputAmount, }: {
1325
+ declare function useUpdateUiTxCreateScreen(): ({ toInfo, inputAmount, enableRBF, }: {
1285
1326
  toInfo?: {
1286
1327
  address: string;
1287
1328
  domain: string;
1288
1329
  inscription?: Inscription;
1289
1330
  };
1290
1331
  inputAmount?: string;
1332
+ enableRBF?: boolean;
1291
1333
  }) => void;
1292
1334
  declare function useFeeRateBar(): {
1293
1335
  feeRate: number;
@@ -1479,6 +1521,7 @@ interface ContextData$2 {
1479
1521
  transferableList: TokenTransfer[];
1480
1522
  inscriptionIdSet: Set<string>;
1481
1523
  receiver: string;
1524
+ enableRBF: boolean;
1482
1525
  rawTxInfo: RawTxInfo;
1483
1526
  tokenInfo: TokenInfo;
1484
1527
  }
@@ -1489,6 +1532,7 @@ interface UpdateContextDataParams$2 {
1489
1532
  transferableList?: TokenTransfer[];
1490
1533
  inscriptionIdSet?: Set<string>;
1491
1534
  receiver?: string;
1535
+ enableRBF?: boolean;
1492
1536
  rawTxInfo?: RawTxInfo;
1493
1537
  }
1494
1538
  interface BRC20SendStepParams {
@@ -1600,7 +1644,6 @@ declare function useBRC20TokenScreenLogic(): {
1600
1644
  onProgBalance: string;
1601
1645
  inWalletBalance: string;
1602
1646
  outWalletBalanceItems: BRC20OutWalletBalanceItem[];
1603
- hasOutWalletBalance: boolean;
1604
1647
  enableHistory: boolean;
1605
1648
  enableTrade: boolean;
1606
1649
  enableMint: boolean;
@@ -1623,12 +1666,13 @@ declare function useBRC20TokenScreenLogic(): {
1623
1666
  iconUrl: string;
1624
1667
  iconShortName: string;
1625
1668
  };
1669
+ showProgBalance: boolean;
1670
+ showSwapBalance: boolean;
1626
1671
  onClickWrapBrc20Prog: () => void;
1627
1672
  onClickUnwrapBrc20Prog: () => void;
1628
1673
  onClickSendBrc20Prog: () => void;
1629
1674
  onClickSwapInSwap: () => void;
1630
1675
  onClickAddLiquidityInSwap: () => void;
1631
- onClickRemoveLiquidityInSwap: () => void;
1632
1676
  onClickWrapInSwap: () => void;
1633
1677
  onClickUnwrapInSwap: () => void;
1634
1678
  onClickSendInSwap: () => void;
@@ -1716,6 +1760,8 @@ declare function useSendOrdinalsInscriptionScreenLogic(): {
1716
1760
  domain: string;
1717
1761
  };
1718
1762
  outputValue: number;
1763
+ enableRBF: boolean;
1764
+ setEnableRBF: (value: boolean) => void;
1719
1765
  minOutputValue: number;
1720
1766
  defaultOutputValue: number;
1721
1767
  setOutputValue: react.Dispatch<react.SetStateAction<number>>;
@@ -1739,6 +1785,8 @@ declare function useTxCreateScreenLogic(): {
1739
1785
  inputAmount: string;
1740
1786
  onAmountInputChange: (amount: any) => void;
1741
1787
  onAmountMaxClick: () => void;
1788
+ enableRBF: boolean;
1789
+ onRBFChange: (value: boolean) => void;
1742
1790
  showUnavailable: boolean;
1743
1791
  availableAmount: string;
1744
1792
  unavailableAmount: string;
@@ -1769,6 +1817,7 @@ interface ContextData$1 {
1769
1817
  isApproval: boolean;
1770
1818
  tokenInfo?: TokenInfo;
1771
1819
  amountEditable?: boolean;
1820
+ enableRBF: boolean;
1772
1821
  }
1773
1822
  interface UpdateContextDataParams$1 {
1774
1823
  step?: Step;
@@ -1780,6 +1829,7 @@ interface UpdateContextDataParams$1 {
1780
1829
  amount?: string;
1781
1830
  tokenInfo?: TokenInfo;
1782
1831
  amountEditable?: boolean;
1832
+ enableRBF?: boolean;
1783
1833
  }
1784
1834
  interface BRC20InscribeTransferParams {
1785
1835
  contextData: ContextData$1;
@@ -1802,6 +1852,8 @@ declare function useBRC20InscribeTransferLogicStep1(params: BRC20InscribeTransfe
1802
1852
  defaultOutputValue: number;
1803
1853
  setOutputValue: react.Dispatch<react.SetStateAction<number>>;
1804
1854
  disabled: boolean;
1855
+ enableRBF: boolean;
1856
+ setEnableRBF: (value: boolean) => void;
1805
1857
  loadingOnly: boolean;
1806
1858
  handleCancel: () => void;
1807
1859
  };
@@ -1870,6 +1922,7 @@ declare function useAlkanesTokenScreenLogic(): {
1870
1922
  onClickMint: () => void;
1871
1923
  onClickSend: () => void;
1872
1924
  onClickTrade: () => void;
1925
+ onClickViewOnExplorer: () => void;
1873
1926
  iconInfo: {
1874
1927
  iconUrl: string;
1875
1928
  iconShortName: string;
@@ -1993,6 +2046,7 @@ declare function useRunesTokenScreenLogic(): {
1993
2046
  onClickSend: () => void;
1994
2047
  enableTrade: boolean;
1995
2048
  onClickTrade: () => void;
2049
+ onClickViewOnExplorer: () => void;
1996
2050
  };
1997
2051
 
1998
2052
  interface BRC20BalanceCardProps {
@@ -2072,6 +2126,8 @@ declare function useSendRunesScreenLogic(): {
2072
2126
  defaultOutputValue: number;
2073
2127
  minOutputValue: number;
2074
2128
  setOutputValue: react.Dispatch<react.SetStateAction<number>>;
2129
+ enableRBF: boolean;
2130
+ setEnableRBF: (value: boolean) => void;
2075
2131
  t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
2076
2132
  onClickBack: () => void;
2077
2133
  onClickNext: () => void;
@@ -2293,6 +2349,7 @@ declare function useCAT20TokenScreenLogic(): {
2293
2349
  loading: boolean;
2294
2350
  tokenUrl: string;
2295
2351
  enableTransfer: boolean;
2352
+ enableMerge: boolean;
2296
2353
  enableTrade: boolean;
2297
2354
  iconInfo: {
2298
2355
  iconUrl: string;
@@ -2302,6 +2359,7 @@ declare function useCAT20TokenScreenLogic(): {
2302
2359
  onClickSend: (e: any) => void;
2303
2360
  onClickTrade: (e: any) => void;
2304
2361
  onClickBack: () => void;
2362
+ onClickViewOnExplorer: (e: any) => void;
2305
2363
  t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
2306
2364
  };
2307
2365
 
@@ -2310,6 +2368,8 @@ declare function useSplitOrdinalsInscriptionScreenLogic(): {
2310
2368
  inscriptions: Inscription[];
2311
2369
  minOutputValue: number;
2312
2370
  splitedCount: number;
2371
+ enableRBF: boolean;
2372
+ setEnableRBF: (value: boolean) => void;
2313
2373
  error: string;
2314
2374
  disabled: boolean;
2315
2375
  onOutputValueChange: (value: number) => void;
@@ -2357,6 +2417,7 @@ declare function useSendAlkanesNFTScreenLogic(): {
2357
2417
  domain: string;
2358
2418
  inscription?: Inscription;
2359
2419
  };
2420
+ enableRBF: boolean;
2360
2421
  disabled: boolean;
2361
2422
  error: string;
2362
2423
  setToInfo: react.Dispatch<react.SetStateAction<{
@@ -2364,6 +2425,7 @@ declare function useSendAlkanesNFTScreenLogic(): {
2364
2425
  domain: string;
2365
2426
  inscription?: Inscription;
2366
2427
  }>>;
2428
+ setEnableRBF: (value: boolean) => void;
2367
2429
  onCreateTxHandleConfirm: () => Promise<void>;
2368
2430
  onCreateTxHandleBack: () => void;
2369
2431
  onSignPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
@@ -2389,6 +2451,7 @@ declare function useSendAlkanesScreenLogic(): {
2389
2451
  totalBalanceStr: string;
2390
2452
  availableBalanceStr: string;
2391
2453
  inputAmount: string;
2454
+ enableRBF: boolean;
2392
2455
  disabled: boolean;
2393
2456
  error: string;
2394
2457
  setToInfo: react.Dispatch<react.SetStateAction<{
@@ -2397,6 +2460,7 @@ declare function useSendAlkanesScreenLogic(): {
2397
2460
  inscription?: Inscription;
2398
2461
  }>>;
2399
2462
  setInputAmount: react.Dispatch<react.SetStateAction<string>>;
2463
+ setEnableRBF: (value: boolean) => void;
2400
2464
  onClickBack: () => void;
2401
2465
  onClickNext: () => Promise<void>;
2402
2466
  onSignPsbtHandleConfirm: (signedDatas: SignedData[]) => Promise<void>;
@@ -2467,6 +2531,7 @@ declare function useCAT721NFTScreenLogic(): {
2467
2531
  t: (key: string, substitutions?: string | string[] | Record<string, string | number>) => string;
2468
2532
  onClickBack: () => void;
2469
2533
  onClickSend: () => void;
2534
+ disabledSend: boolean;
2470
2535
  };
2471
2536
 
2472
2537
  interface SignMessageProps {
@@ -2518,6 +2583,8 @@ declare function useSignMessageLogic(props: SignMessageProps): {
2518
2583
  onKeystoneSigningBack: () => void;
2519
2584
  onColdWalletSigningSuccess: (data: SignedMessage) => void;
2520
2585
  onColdWalletSigningBack: () => void;
2586
+ readonlySignature: string;
2587
+ setReadonlySignature: react.Dispatch<react.SetStateAction<string>>;
2521
2588
  onDisclaimerModalClose: () => void;
2522
2589
  };
2523
2590
 
@@ -2551,6 +2618,8 @@ declare function useSignPsbtLogic(props: SignPsbtProps): {
2551
2618
  toSignDatas: ToSignData[];
2552
2619
  currentToSignData: ToSignData;
2553
2620
  currentDecodedPsbt: DecodedPsbt;
2621
+ readonlySignedPsbtHex: string;
2622
+ setReadonlySignedPsbtHex: react.Dispatch<react.SetStateAction<string>>;
2554
2623
  networkFee: string;
2555
2624
  isValid: boolean;
2556
2625
  hasRisk: boolean;
@@ -2755,4 +2824,4 @@ type AppStore = ReturnType<typeof createAppStore>;
2755
2824
  type AppState = ReturnType<AppStore['getState']>;
2756
2825
  type AppDispatch = AppStore['dispatch'];
2757
2826
 
2758
- export { AccountUpdater, ActionOverviewSectionProps, AlkanesAssetTabKey, AlkanesBalanceCardProps, AppDispatch, AppState, AppStore, ApprovalContext, ApprovalContextType, AssetTabKey, BRC20BalanceCardProps, BRC20InscribeTransferParams, BRC20OutWalletBalanceItem, BRC20SendStepParams, BRC20SendTabKey, BRC20SingleStepKey, BRC20TokenScreenTabKey, CAT20BalanceCardProps, CATAssetTabKey, ContextData$2 as ContextData, DeviceContext, DeviceContextType, I18nContext, I18nContextType, NavigationContext, NavigationContextType, NavigationSource, OrdinalsAssetTabKey, PriceProvider, RouteTypes, RunesBalanceCardProps, SendAlkanesNFTScreenStep, SendAlkanesScreenStep, SendCAT20ScreenStep, SendCAT721ScreenStep, SettingsItemType, SignMessageProps, SignPsbtProps, StorageContext, StorageContextType, TabOption, ToolsContext, ToolsContextType, UpdateContextDataParams$2 as UpdateContextDataParams, WalletProvider, WalletTabScreenTabKey, accountActions, browserActions, createAppStore, createStorageProvider, discoveryActions, getSupportedAssets, globalActions, keyringsActions, settingsActions, transactionsActions, uiActions, uiEventBus, useAccountAddress, useAccountBalance, useAccountInscriptions, useAccounts, useAccountsState, useActionOverviewSectionLogic, useAddressExplorerUrl, useAddressInput, useAddressSummary, useAddressTips, useAddressTypeScreenLogic, useAlkanesAssetTabKey, useAlkanesBalanceCardLogic, useAlkanesCollectionListLogic, useAlkanesIconInfo, useAlkanesListLogic, useAlkanesMarketPlaceWebsite, useAlkanesNFTListLogic, useAlkanesNFTScreenLogic, useAlkanesTokenScreenLogic, useAmountInput, useAmountInputLogic, useAnnouncementCardLogic, useAppDispatch, useAppList, useAppSelector, useAppSummary, useApproval, useAssetTabKey, useAssetUtxosRunes, useAsyncEffect, useAutoLockTimeId, useBRC20BalanceCardLogic, useBRC20IconInfo, useBRC20InscribeTransferLogic, useBRC20InscribeTransferLogicStep1, useBRC20InscribeTransferLogicStep2, useBRC20InscribeTransferLogicStep3, useBRC20InscribeTransferLogicStep4, useBRC20ListLogic, useBRC20MarketPlaceWebsite, useBRC20ProgListLogic, useBRC20SendScreenLogic, useBRC20SendScreenLogicStep1, useBRC20SendScreenLogicStep2, useBRC20SendScreenLogicStep3, useBRC20SingleStepScreenLogic, useBRC20TokenHistoryLogic, useBRC20TokenInfoExplorerUrl, useBRC20TokenScreenLogic, useBTCUnit, useBabylonConfig, useBackRefresh, useBalanceCardDetailExpanded, useBalanceCardLogic, useBannerList, useBitcoinTx, useBooted, useBrowserState, useBtcDisplayLogic, useCAT20BalanceCardLogic, useCAT20IconInfo, useCAT20ListLogic, useCAT20MarketPlaceWebsite, useCAT20TokenInfoExplorerUrl, useCAT20TokenScreenLogic, useCAT721ListLogic, useCAT721NFTContentBaseUrl, useCAT721NFTScreenLogic, useCATAssetTabKey, useChain, useChainType, useChangeAddressFlagCallback, useChangeChainTypeCallback, useChangeLocaleCallback, useChangeNetworkTypeCallback, useCreateAccountCallback, useCreateColdWalletCallback, useCreatePasswordScreenLogic, useCreateSplitTxCallback, useCreateWalletLogicImportWordsStep, useCurrentAccount, useCurrentAddress, useCurrentKeyring, useDeveloperMode, useDevice, useDiscoveryState, useEditAccountNameScreenLogic, useEditContactScreenLogic, useEditWalletNameScreenLogic, useExportMnemonicsScreenLogic, useExportPrivateKeyScreenLogic, useFeeRateBar, useFeeRateBarLogic, useFetchAssetUtxosRunesCallback, useFetchBalanceCallback, useFetchUtxosCallback, useGetTxExplorerUrlCallback, useGlobalState, useGoBackRefresh, useHasBiometricsKey, useHasNewBanner, useHistory, useI18n, useIconBaseUrl, useImportAccountCallback, useImportAccountsFromKeystoneCallback, useInfiniteListScrollOffset, useInfiniteListScrollState, useInscriptionListLogic, useInscriptionSummary, useIsBiometricsSupported, useIsInExpandView, useIsKeystoneWallet, useIsMainnetChain, useIsReady, useIsRefresh, useIsScrollViewBot, useIsScrollViewTop, useIsUnlockTimeRefres, useIsUnlocked, useKeyrings, useKeyringsState, useLastFetchInfo, useLayerState, useLocale, useLockCallback, useLockTimePageLogic, useLockedOverlayVisible, useModelPopover, useNavigation, useNetworkType, useNotificationsLogic, useOrdinalsAssetTabKey, useOrdinalsInscriptionScreenLogic, useOrdinalsTx, useOrdinalsWebsite, usePrepareSendAlkanesCallback, usePrepareSendBTCCallback, usePrepareSendBypassHeadOffsetsCallback, usePrepareSendOrdinalsInscriptionCallback, usePrepareSendOrdinalsInscriptionsCallback, usePrepareSendRunesCallback, usePrice, usePushBitcoinTxCallback, usePushOrdinalsTxCallback, useReadApp, useReadTab, useReloadAccounts, useResetAddressInput, useResetAmountInput, useResetFeeRateBar, useResetTxState, useResetUiTxCreateScreen, useRunesBalanceCardLogic, useRunesIconInfo, useRunesInscribeUrl, useRunesListLogic, useRunesMarketUrl, useRunesTokenScreenLogic, useRunesTx, useSafeBalance, useScreenState, useSendAlkanesNFTScreenLogic, useSendAlkanesScreenLogic, useSendCAT20ScreenLogic, useSendCAT721ScreenLogic, useSendOrdinalsInscriptionScreenLogic, useSendRunesScreenLogic, useSetCurrentAccountCallback, useSetDeveloperModeCallback, useSetLockedOverlayVisibleCallback, useSetSpendUnavailableUtxosCallback, useSetTabCallback, useSettingsState, useSettingsTabScreenLogic, useSignMessageLogic, useSignPsbtLogic, useSkipVersionCallback, useSpendUnavailableUtxos, useSplitOrdinalsInscriptionScreenLogic, useStorage, useSupportedAssets, useSwitchChainModalVisible, useTab, useThrottle, useToggleBalanceCardDetailExpanded, useTools, useTransactionsState, useTransferableListLogic, useTxConfirmScreenLogic, useTxCreateScreenLogic, useTxExplorerUrl, useTxFailScreenLogic, useTxSuccessScreenLogic, useUIState, useUiTxCreateScreen, useUnisatWebsite, useUnlockCallback, useUnlockRead, useUnlockRefresh, useUnreadAppSummary, useUnreadNotificationsCount, useUpdateAddressInput, useUpdateAmountInput, useUpdateFeeRateBar, useUpdateScreenStateCallback, useUpdateUiTxCreateScreen, useUtxos, useVersionInfo, useWallRefresh, useWallTabFocusRefresh, useWallTabRefresh, useWallet, useWalletConfig, useWalletTabScreenState, useWalletTopTabScreenState };
2827
+ export { AccountUpdater, ActionOverviewSectionProps, AlkanesAssetTabKey, AlkanesBalanceCardProps, AppDispatch, AppState, AppStore, ApprovalContext, ApprovalContextType, AssetTabKey, BRC20BalanceCardProps, BRC20InscribeTransferParams, BRC20OutWalletBalanceItem, BRC20SendStepParams, BRC20SendTabKey, BRC20SingleStepKey, BRC20TokenScreenTabKey, CAT20BalanceCardProps, CATAssetTabKey, ContextData$2 as ContextData, DeviceContext, DeviceContextType, I18nContext, I18nContextType, MoreAssetTabKey, NavigationContext, NavigationContextType, NavigationSource, OrdinalsAssetTabKey, PriceProvider, RouteTypes, RunesBalanceCardProps, SendAlkanesNFTScreenStep, SendAlkanesScreenStep, SendCAT20ScreenStep, SendCAT721ScreenStep, SettingsItemType, SignMessageProps, SignPsbtProps, StorageContext, StorageContextType, TabOption, ToolsContext, ToolsContextType, UpdateContextDataParams$2 as UpdateContextDataParams, WalletProvider, WalletTabScreenTabKey, accountActions, browserActions, createAppStore, createStorageProvider, discoveryActions, getSupportedAssets, globalActions, keyringsActions, settingsActions, transactionsActions, uiActions, uiEventBus, useAccountAddress, useAccountBalance, useAccountInscriptions, useAccounts, useAccountsState, useActionOverviewSectionLogic, useAddressExplorerUrl, useAddressInput, useAddressSummary, useAddressTips, useAddressTypeScreenLogic, useAlkanesAssetTabKey, useAlkanesBalanceCardLogic, useAlkanesCollectionListLogic, useAlkanesIconInfo, useAlkanesListLogic, useAlkanesMarketPlaceWebsite, useAlkanesNFTListLogic, useAlkanesNFTScreenLogic, useAlkanesTokenInfoExplorerUrl, useAlkanesTokenScreenLogic, useAmountInput, useAmountInputLogic, useAnnouncementCardLogic, useAppDispatch, useAppList, useAppSelector, useAppSummary, useApproval, useAssetTabKey, useAssetUtxosRunes, useAsyncEffect, useAutoLockTimeId, useBRC20BalanceCardLogic, useBRC20IconInfo, useBRC20InscribeTransferLogic, useBRC20InscribeTransferLogicStep1, useBRC20InscribeTransferLogicStep2, useBRC20InscribeTransferLogicStep3, useBRC20InscribeTransferLogicStep4, useBRC20ListLogic, useBRC20MarketPlaceWebsite, useBRC20ProgListLogic, useBRC20SendScreenLogic, useBRC20SendScreenLogicStep1, useBRC20SendScreenLogicStep2, useBRC20SendScreenLogicStep3, useBRC20SingleStepScreenLogic, useBRC20TokenHistoryLogic, useBRC20TokenInfoExplorerUrl, useBRC20TokenScreenLogic, useBTCUnit, useBabylonConfig, useBackRefresh, useBalanceCardDetailExpanded, useBalanceCardLogic, useBannerList, useBitcoinTx, useBooted, useBrowserState, useBtcDisplayLogic, useCAT20BalanceCardLogic, useCAT20IconInfo, useCAT20ListLogic, useCAT20MarketPlaceWebsite, useCAT20TokenInfoExplorerUrl, useCAT20TokenScreenLogic, useCAT721ListLogic, useCAT721NFTContentBaseUrl, useCAT721NFTScreenLogic, useCATAssetTabKey, useChain, useChainType, useChangeAddressFlagCallback, useChangeChainTypeCallback, useChangeLocaleCallback, useChangeNetworkTypeCallback, useCreateAccountCallback, useCreateColdWalletCallback, useCreatePasswordScreenLogic, useCreateSplitTxCallback, useCreateWalletLogicImportWordsStep, useCurrentAccount, useCurrentAccountCapabilities, useCurrentAddress, useCurrentKeyring, useDeveloperMode, useDevice, useDiscoveryState, useEditAccountNameScreenLogic, useEditContactScreenLogic, useEditWalletNameScreenLogic, useExportMnemonicsScreenLogic, useExportPrivateKeyScreenLogic, useFeeRateBar, useFeeRateBarLogic, useFetchAssetUtxosRunesCallback, useFetchBalanceCallback, useFetchUtxosCallback, useGetTxExplorerUrlCallback, useGlobalState, useGoBackRefresh, useHasBiometricsKey, useHasNewBanner, useHistory, useI18n, useIconBaseUrl, useImportAccountCallback, useImportAccountsFromKeystoneCallback, useInfiniteListScrollOffset, useInfiniteListScrollState, useInscriptionListLogic, useInscriptionSummary, useIsBiometricsSupported, useIsInExpandView, useIsKeystoneWallet, useIsMainnetChain, useIsReady, useIsRefresh, useIsScrollViewBot, useIsScrollViewTop, useIsUnlockTimeRefres, useIsUnlocked, useKeyrings, useKeyringsState, useLastFetchInfo, useLayerState, useLocale, useLockCallback, useLockTimePageLogic, useLockedOverlayVisible, useModelPopover, useMoreAssetTabKey, useNavigation, useNetworkType, useNotificationsLogic, useOrdinalsAssetTabKey, useOrdinalsInscriptionScreenLogic, useOrdinalsTx, useOrdinalsWebsite, usePrepareSendAlkanesCallback, usePrepareSendBTCCallback, usePrepareSendBypassHeadOffsetsCallback, usePrepareSendOrdinalsInscriptionCallback, usePrepareSendOrdinalsInscriptionsCallback, usePrepareSendRunesCallback, usePrice, usePushBitcoinTxCallback, usePushOrdinalsTxCallback, useReadApp, useReadTab, useReloadAccounts, useResetAddressInput, useResetAmountInput, useResetFeeRateBar, useResetTxState, useResetUiTxCreateScreen, useRunesBalanceCardLogic, useRunesIconInfo, useRunesInscribeUrl, useRunesListLogic, useRunesMarketUrl, useRunesTokenInfoExplorerUrl, useRunesTokenScreenLogic, useRunesTx, useSafeBalance, useScreenState, useSendAlkanesNFTScreenLogic, useSendAlkanesScreenLogic, useSendCAT20ScreenLogic, useSendCAT721ScreenLogic, useSendOrdinalsInscriptionScreenLogic, useSendRunesScreenLogic, useSetCurrentAccountCallback, useSetDeveloperModeCallback, useSetLockedOverlayVisibleCallback, useSetSpendUnavailableUtxosCallback, useSetTabCallback, useSettingsState, useSettingsTabScreenLogic, useSignMessageLogic, useSignPsbtLogic, useSkipVersionCallback, useSpendUnavailableUtxos, useSplitOrdinalsInscriptionScreenLogic, useStorage, useSupportedAssets, useSwitchChainModalVisible, useTab, useThrottle, useToggleBalanceCardDetailExpanded, useTools, useTransactionsState, useTransferableListLogic, useTxConfirmScreenLogic, useTxCreateScreenLogic, useTxExplorerUrl, useTxFailScreenLogic, useTxSuccessScreenLogic, useUIState, useUiTxCreateScreen, useUnisatWebsite, useUnlockCallback, useUnlockRead, useUnlockRefresh, useUnreadAppSummary, useUnreadNotificationsCount, useUpdateAddressInput, useUpdateAmountInput, useUpdateFeeRateBar, useUpdateScreenStateCallback, useUpdateUiTxCreateScreen, useUtxos, useVersionInfo, useWallRefresh, useWallTabFocusRefresh, useWallTabRefresh, useWallet, useWalletConfig, useWalletTabScreenState, useWalletTopTabScreenState };