@cofhe/react 0.0.0-alpha-20260526073024 → 0.0.0-alpha-20260527080106
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/dist/{chunk-4TO677XK.cjs → chunk-KDQU3H3X.cjs} +5 -7
- package/dist/chunk-KDQU3H3X.cjs.map +1 -0
- package/dist/{chunk-3XYBVWCD.js → chunk-ZIOLHMRJ.js} +4 -6
- package/dist/{chunk-3XYBVWCD.js.map → chunk-ZIOLHMRJ.js.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/ui-base.cjs +360 -360
- package/dist/ui-base.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-4TO677XK.cjs.map +0 -1
|
@@ -2842,7 +2842,7 @@ var useTransactionStore = _zustand.create.call(void 0, )(
|
|
|
2842
2842
|
);
|
|
2843
2843
|
|
|
2844
2844
|
// src/hooks/useCofheEncrypt.ts
|
|
2845
|
-
var import_ts_essentials5 = __toESM(require_dist());
|
|
2845
|
+
var import_ts_essentials5 = __toESM(require_dist(), 1);
|
|
2846
2846
|
|
|
2847
2847
|
|
|
2848
2848
|
|
|
@@ -3636,7 +3636,7 @@ function useCofheTokenTransfer(writeMutationOptions) {
|
|
|
3636
3636
|
// src/hooks/useCofheTokenShield.ts
|
|
3637
3637
|
|
|
3638
3638
|
|
|
3639
|
-
var import_ts_essentials7 = __toESM(require_dist());
|
|
3639
|
+
var import_ts_essentials7 = __toESM(require_dist(), 1);
|
|
3640
3640
|
function getCofheTokenShieldCallArgs(params) {
|
|
3641
3641
|
const { token, amount, account } = params;
|
|
3642
3642
|
const tokenAddress = token.address;
|
|
@@ -4255,9 +4255,9 @@ function useCofheTokenClaimable({ accountAddress: account, token }, queryOptions
|
|
|
4255
4255
|
}
|
|
4256
4256
|
|
|
4257
4257
|
// src/hooks/useCofheTokenClaimUnshielded.ts
|
|
4258
|
+
var import_ts_essentials12 = __toESM(require_dist(), 1);
|
|
4258
4259
|
|
|
4259
4260
|
|
|
4260
|
-
var import_ts_essentials12 = __toESM(require_dist(), 1);
|
|
4261
4261
|
function getCofheTokenClaimUnshieldedCallArgs(params) {
|
|
4262
4262
|
const { token, account, claim } = params;
|
|
4263
4263
|
const tokenAddress = token.address;
|
|
@@ -4317,7 +4317,6 @@ function useCofheTokenClaimUnshielded(options) {
|
|
|
4317
4317
|
(0, import_ts_essentials12.assert)(chainId, "Chain ID is required for dual claim");
|
|
4318
4318
|
(0, import_ts_essentials12.assert)(account, "Wallet account is required for dual claim");
|
|
4319
4319
|
(0, import_ts_essentials12.assert)(isTokenConfidentialityTypeClaimable(confidentialityType), "dual claim type must be claimable");
|
|
4320
|
-
input.token.extensions.fhenix.confidentialityType;
|
|
4321
4320
|
const claims = await fetchUnshieldClaims({
|
|
4322
4321
|
publicClient,
|
|
4323
4322
|
token: input.token,
|
|
@@ -4329,7 +4328,6 @@ function useCofheTokenClaimUnshielded(options) {
|
|
|
4329
4328
|
const submitted = [];
|
|
4330
4329
|
for (const claim of pendingClaims) {
|
|
4331
4330
|
try {
|
|
4332
|
-
input.token;
|
|
4333
4331
|
const decryptResult = await client.decryptForTx(claim.ctHash).setChainId(chainId).setAccount(account).withoutPermit().execute();
|
|
4334
4332
|
const callArgs = getCofheTokenClaimUnshieldedCallArgs({
|
|
4335
4333
|
token: input.token,
|
|
@@ -4752,7 +4750,7 @@ function useCofheTokensWithExistingEncryptedBalances({ chainId: _chainId, accoun
|
|
|
4752
4750
|
|
|
4753
4751
|
|
|
4754
4752
|
// src/hooks/useCofheTokenPublicBalance.ts
|
|
4755
|
-
var import_ts_essentials16 = __toESM(require_dist()
|
|
4753
|
+
var import_ts_essentials16 = __toESM(require_dist());
|
|
4756
4754
|
|
|
4757
4755
|
|
|
4758
4756
|
function constructPublicTokenBalanceQueryKey({
|
|
@@ -5973,4 +5971,4 @@ function useReschedulableTimeout(callback, defaultTimeout) {
|
|
|
5973
5971
|
|
|
5974
5972
|
|
|
5975
5973
|
exports.__toESM = __toESM; exports.useInternalQueryClient = useInternalQueryClient; exports.useCofheClient = useCofheClient; exports.useInternalQueries = useInternalQueries; exports.useCofheAutoConnect = useCofheAutoConnect; exports.cofheLogger = cofheLogger; exports.createCofheConfig = createCofheConfig; exports.require_dist = require_dist; exports.CofheProvider = CofheProvider; exports.useCofheContext = useCofheContext; exports.cn = cn; exports.ETH_ADDRESS_LOWERCASE = ETH_ADDRESS_LOWERCASE; exports.isTokenOperationSupported = isTokenOperationSupported; exports.getTokenConfidentialityLabel = getTokenConfidentialityLabel; exports.DEFAULT_TOKEN_BY_CHAIN_ID = DEFAULT_TOKEN_BY_CHAIN_ID; exports.getBlockExplorerUrl = getBlockExplorerUrl; exports.getBlockExplorerTxUrl = getBlockExplorerTxUrl; exports.getBlockExplorerAddressUrl = getBlockExplorerAddressUrl; exports.getBlockExplorerTokenUrl = getBlockExplorerTokenUrl; exports.isEthPair = isEthPair; exports.isWrappedEthToken = isWrappedEthToken; exports.FheTypesList = FheTypesList; exports.truncateHash = truncateHash; exports.truncateAddress = truncateAddress; exports.sanitizeNumericInput = sanitizeNumericInput; exports.formatRelativeTime = formatRelativeTime; exports.formatExpirationLabel = formatExpirationLabel; exports.cofheHumanizeViemError = cofheHumanizeViemError; exports.useCofheConnection = useCofheConnection; exports.useCofheIsConnected = useCofheIsConnected; exports.useCofheAccount = useCofheAccount; exports.useCofheChainId = useCofheChainId; exports.useCofhePublicClient = useCofhePublicClient; exports.useCofheWalletClient = useCofheWalletClient; exports.getTokenContractConfig = getTokenContractConfig; exports.useResolvedCofheToken = useResolvedCofheToken; exports.useCofheActivePermit = useCofheActivePermit; exports.useCofheActivePermitHash = useCofheActivePermitHash; exports.useCofheAllPermits = useCofheAllPermits; exports.useCofhePermit = useCofhePermit; exports.useCofheRemovePermit = useCofheRemovePermit; exports.useCofheSelectPermit = useCofheSelectPermit; exports.invalidateQueriesWithContext = invalidateQueriesWithContext; exports.constructCofheReadContractQueryForInvalidation = constructCofheReadContractQueryForInvalidation; exports.useCofheEnabled = useCofheEnabled; exports.useCustomTokensStore = useCustomTokensStore; exports.useCofheTokenLists = useCofheTokenLists; exports.useCofheTokens = useCofheTokens; exports.useCofheToken = useCofheToken; exports.formatTokenAmount = formatTokenAmount; exports.unitToWei = unitToWei; exports.formatUsdAmount = formatUsdAmount; exports.useCofheReadContractAndDecrypt = useCofheReadContractAndDecrypt; exports.useCofheTokenDecryptedBalance = useCofheTokenDecryptedBalance; exports.TransactionStatus = TransactionStatus; exports.TransactionActionType = TransactionActionType; exports.actionToString = actionToString; exports.statusToString = statusToString; exports.useTransactionStore = useTransactionStore; exports.getStepConfig = getStepConfig; exports.useCofheEncrypt = useCofheEncrypt; exports.useCofheWriteContract = useCofheWriteContract; exports.useCofheEncryptAndWriteContract = useCofheEncryptAndWriteContract; exports.usePortalModals = usePortalModals; exports.usePortalStatuses = usePortalStatuses; exports.usePortalUI = usePortalUI; exports.usePortalUIMaxContentHeight = usePortalUIMaxContentHeight; exports.usePortalNavigation = usePortalNavigation; exports.usePortalCurrentPage = usePortalCurrentPage; exports.HashLink = HashLink; exports.CopyButton = CopyButton; exports.ToastPrimitiveBase = ToastPrimitiveBase; exports.ToastPrimitive = ToastPrimitive; exports.usePortalToasts = usePortalToasts; exports.useTransactionGlobalLifecycle = useTransactionGlobalLifecycle; exports.useCofheTokenTransfer = useCofheTokenTransfer; exports.useCofheTokenApprove = useCofheTokenApprove; exports.getCofheTokenShieldCallArgs = getCofheTokenShieldCallArgs; exports.useCofheTokenShield = useCofheTokenShield; exports.useStoredTransactions = useStoredTransactions; exports.useOnceTransactionMined = useOnceTransactionMined; exports.getCofheTokenUnshieldCallArgs = getCofheTokenUnshieldCallArgs; exports.useCofheTokenUnshield = useCofheTokenUnshield; exports.useDecryptionWatchersStore = useDecryptionWatchersStore; exports.constructUnshieldClaimsQueryKeyForInvalidation = constructUnshieldClaimsQueryKeyForInvalidation; exports.useCofheTokenClaimable = useCofheTokenClaimable; exports.getCofheTokenClaimUnshieldedCallArgs = getCofheTokenClaimUnshieldedCallArgs; exports.useCofheTokenClaimUnshielded = useCofheTokenClaimUnshielded; exports.useCofheTokensClaimable = useCofheTokensClaimable; exports.useCofheTokensWithExistingEncryptedBalances = useCofheTokensWithExistingEncryptedBalances; exports.constructPublicTokenBalanceQueryKeyForInvalidation = constructPublicTokenBalanceQueryKeyForInvalidation; exports.getPublicTokenBalanceSource = getPublicTokenBalanceSource; exports.useCofheTokenPublicBalance = useCofheTokenPublicBalance; exports.useTokensWithPublicBalances = useTokensWithPublicBalances; exports.useCofheSimulateWriteContract = useCofheSimulateWriteContract; exports.usePermitDuration = usePermitDuration; exports.usePortalPersisted = usePortalPersisted; exports.useCofheCreatePermit = useCofheCreatePermit; exports.usePermitForm = usePermitForm; exports.useCofheNavigateToCreatePermit = useCofheNavigateToCreatePermit; exports.usePermitsList = usePermitsList; exports.useReceivePermit = useReceivePermit; exports.useCopyFeedback = useCopyFeedback; exports.usePermitDetailsAndActions = usePermitDetailsAndActions; exports.useTransactionReceiptsByHash = useTransactionReceiptsByHash; exports.useReschedulableTimeout = useReschedulableTimeout; exports.TMP_WBTC_ON_MAINNET = TMP_WBTC_ON_MAINNET; exports.useCoingeckoUsdPrice = useCoingeckoUsdPrice; exports.useCoingeckoContractMarketChartRange = useCoingeckoContractMarketChartRange; exports.constructTokenAllowanceQueryKeyForInvalidation = constructTokenAllowanceQueryKeyForInvalidation; exports.useTokenAllowance = useTokenAllowance;
|
|
5976
|
-
//# sourceMappingURL=chunk-
|
|
5974
|
+
//# sourceMappingURL=chunk-KDQU3H3X.cjs.map
|