@argent/x-shared 1.68.0 → 1.69.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/dist/index.cjs +1 -1
- package/dist/index.js +28 -23
- package/dist/src/currencyFetchService/CurrencyFetchService.cjs +1 -0
- package/dist/src/currencyFetchService/CurrencyFetchService.d.ts +9 -0
- package/dist/src/currencyFetchService/CurrencyFetchService.js +19 -0
- package/dist/src/currencyFetchService/ICurrencyFetchService.d.ts +4 -0
- package/dist/src/currencyFetchService/index.d.ts +3 -0
- package/dist/src/currencyFetchService/types.ts.cjs +1 -0
- package/dist/src/currencyFetchService/types.ts.d.ts +51 -0
- package/dist/src/currencyFetchService/types.ts.js +13 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("./src/bigdecimal/index.cjs"),se=require("./src/errors/baseErrors.cjs"),ie=require("./src/accountNameGenerator/index.cjs"),T=require("./src/account/account.model.cjs"),P=require("./src/account/accountv4.cjs"),H=require("./src/account/preferences.model.cjs"),k=require("./src/backend/schema.cjs"),y=require("./src/backend/sessionKeys/schema.cjs"),oe=require("./src/cache/CacheService.cjs"),e=require("./src/chains/starknet/address.cjs"),l=require("./src/chains/starknet/addressDomain.cjs"),L=require("./src/chains/starknet/addressInput.cjs"),C=require("./src/chains/starknet/argentName.cjs"),ce=require("./src/chains/starknet/cairoVersionSchema.cjs"),S=require("./src/chains/starknet/constants.cjs"),x=require("./src/chains/starknet/getAddressFromArgentName.cjs"),E=require("./src/chains/starknet/getAddressFromStarkName.cjs"),W=require("./src/chains/starknet/network.cjs"),me=require("./src/chains/starknet/services/address/StarknetAddressService.cjs"),R=require("./src/chains/starknet/services/deploymentData/constants.cjs"),B=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),g=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),m=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),D=require("./src/chains/starknet/starknetId.cjs"),de=require("./src/http/DateService.cjs"),Se=require("./src/http/HttpError.cjs"),le=require("./src/http/HttpService.cjs"),ue=require("./src/http/IHttpService.cjs"),he=require("./src/http/SWRService.cjs"),I=require("./src/http/fetcher.cjs"),M=require("./src/http/time.cjs"),ge=require("./src/knownDapps/KnownDappsBackendService.cjs"),v=require("./src/knownDapps/schema.cjs"),U=require("./src/knownDapps/utils/getDapplandUrl.cjs"),Ae=require("./src/nameResolution/ResolveNameService.cjs"),u=require("./src/nameResolution/schema.cjs"),pe=require("./src/nfts/BackendNftService.cjs"),G=require("./src/nfts/utils.cjs"),Te=require("./src/onchainRecovery/OnchainRecoveryService.cjs"),c=require("./src/onchainRecovery/schema.cjs"),ke=require("./src/platform/isBraveBrowser.cjs"),h=require("./src/platform/isBrowser.cjs"),ye=require("./src/signer/seedphrase.cjs"),z=require("./src/signer/multisigner.cjs"),Ce=require("./src/signer/mergeOwnerGuardianSignatures.cjs"),i=require("./src/staking/schema.cjs"),j=require("./src/storage/utils.cjs"),K=require("./src/storage/base.cjs"),F=require("./src/tokens/balances.cjs"),Ee=require("./src/tokens/constants.cjs"),De=require("./src/tokens/convertCurrencyValueToTokenAmount.cjs"),ve=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),Fe=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),be=require("./src/tokens/ensureDecimals.cjs"),qe=require("./src/tokens/isUnlimitedAmount.cjs"),fe=require("./src/tokens/prettifyCurrencyValue.cjs"),$=require("./src/tokens/prettifyTokenAmount.cjs"),Ne=require("./src/tokens/getCurrencySymbol.cjs"),Pe=require("./src/tokens/service/implementation.cjs"),X=require("./src/tokens/service/tokenError.cjs"),a=require("./src/tokens/service/types/backend.model.cjs"),s=require("./src/tokens/service/types/defiPosition.model.cjs"),Re=require("./src/tokens/service/types/defiPositionType.model.cjs"),Y=require("./src/tokens/service/types/unclaimedRewards.model.cjs"),d=require("./src/tokens/service/types/webToken.model.cjs"),A=require("./src/tokens/utils.cjs"),w=require("./src/transactions/amount.cjs"),_=require("./src/transactions/buildTransactions.cjs"),Z=require("./src/transactions/errors.cjs"),V=require("./src/transactions/estimate/argentMaxFee.cjs"),Q=require("./src/transactions/estimate/error.cjs"),Be=require("./src/transactions/estimate/model.cjs"),n=require("./src/transactions/estimate/utils.cjs"),o=require("./src/transactions/estimate/utilsV2.cjs"),J=require("./src/transactions/findTransfersAndApprovals.cjs"),Ie=require("./src/transactions/getPrettyRcpError.cjs"),p=require("./src/transactions/getTransactionVersion.cjs"),we=require("./src/transactions/service/implementation.cjs"),_e=require("./src/transactions/service/types.cjs"),Ve=require("./src/transactions/transactionReviewTypes.cjs"),ee=require("./src/transactions/transactionVersion.cjs"),ae=require("./src/transactions/txv3.cjs"),O=require("./src/transactions/transactionExecuteTypes.cjs"),Oe=require("./src/utils/address.cjs"),He=require("./src/utils/arrays.cjs"),b=require("./src/utils/avatarImage.cjs"),q=require("./src/utils/base58.cjs"),Le=require("./src/utils/bigNumber.cjs"),xe=require("./src/utils/daysBetween.cjs"),We=require("./src/utils/env.cjs"),te=require("./src/utils/hex.cjs"),Me=require("./src/utils/id.cjs"),Ue=require("./src/utils/initials.cjs"),Ge=require("./src/utils/isContractDeployed.cjs"),ze=require("./src/utils/nonNullable.cjs"),je=require("./src/utils/number/isAllowedAddressHexInputValue.cjs"),Ke=require("./src/utils/number/isAllowedNumericInputValue.cjs"),$e=require("./src/utils/number/isNumeric.cjs"),f=require("./src/utils/number/prettifyNumber.cjs"),Xe=require("./src/utils/number/abbreviateNumber.cjs"),re=require("./src/utils/parseAmount.cjs"),Ye=require("./src/utils/pluralise.cjs"),Ze=require("./src/utils/readFileAsString.cjs"),N=require("./src/utils/schemas.cjs"),r=require("./src/utils/starknet/starknet.cjs"),t=require("./src/utils/starknet/starknetSchemas.cjs"),Qe=require("./src/utils/transactions.cjs"),Je=require("./src/utils/url/urlWithQuery.cjs"),ea=require("./src/utils/voidify.cjs"),aa=require("./src/utils/bips.cjs"),ta=require("./src/utils/retryUntilInitialised.cjs");exports.bigDecimal=ne;exports.BaseError=se.BaseError;exports.AccountNameGenerator=ie.AccountNameGenerator;exports.AddSmartAccountResponseSchema=T.AddSmartAccountResponseSchema;exports.AddSmartAcountRequestSchema=T.AddSmartAcountRequestSchema;exports.BackendAccountSchema=T.BackendAccountSchema;exports.baseWalletAccountSchema=T.baseWalletAccountSchema;exports.isAccountV4=P.isAccountV4;exports.isAccountV5=P.isAccountV5;exports.isAccountV6=P.isAccountV6;exports.preferencesEndpointPayload=H.preferencesEndpointPayload;exports.preferencesSchema=H.preferencesSchema;exports.argentBackendNetworkIdSchema=k.argentBackendNetworkIdSchema;exports.argentNetworkIdSchema=k.argentNetworkIdSchema;exports.isArgentBackendNetworkId=k.isArgentBackendNetworkId;exports.isArgentNetworkId=k.isArgentNetworkId;exports.backendSessionAllowedMethodSchema=y.backendSessionAllowedMethodSchema;exports.backendSessionMetadataSchema=y.backendSessionMetadataSchema;exports.backendSessionSchema=y.backendSessionSchema;exports.backendSessionTxFeeSchema=y.backendSessionTxFeeSchema;exports.CacheService=oe.CacheService;exports.addressOrEmptyUndefinedSchema=e.addressOrEmptyUndefinedSchema;exports.addressSchema=e.addressSchema;exports.addressSchemaArgentBackend=e.addressSchemaArgentBackend;exports.addressSchemaBase=e.addressSchemaBase;exports.addressSchemaLooseLength=e.addressSchemaLooseLength;exports.addressSchemaStrictLength=e.addressSchemaStrictLength;exports.formatFullAddress=e.formatFullAddress;exports.formatTruncatedAddress=e.formatTruncatedAddress;exports.formatTruncatedSignerKey=e.formatTruncatedSignerKey;exports.formatTruncatedString=e.formatTruncatedString;exports.getAddressOrEmptyUndefinedSchema=e.getAddressOrEmptyUndefinedSchema;exports.getAddressSchema=e.getAddressSchema;exports.getAddressSchemaArgentBackend=e.getAddressSchemaArgentBackend;exports.getAddressSchemaBase=e.getAddressSchemaBase;exports.getAddressSchemaLooseLength=e.getAddressSchemaLooseLength;exports.getAddressSchemaStrictLength=e.getAddressSchemaStrictLength;exports.getAddressValidationSchemas=e.getAddressValidationSchemas;exports.getValidChecksumAddressSchema=e.getValidChecksumAddressSchema;exports.getValidateAddressRangeSchema=e.getValidateAddressRangeSchema;exports.includesAddress=e.includesAddress;exports.isAddress=e.isAddress;exports.isBase58Address=e.isBase58Address;exports.isEqualAddress=e.isEqualAddress;exports.isValidAddress=e.isValidAddress;exports.isValidHexString=e.isValidHexString;exports.isZeroAddress=e.isZeroAddress;exports.normalizeAddress=e.normalizeAddress;exports.normalizeAddressForCompare=e.normalizeAddressForCompare;exports.validChecksumAddressSchema=e.validChecksumAddressSchema;exports.validateAddressRangeSchema=e.validateAddressRangeSchema;exports.addressOrDomainInputSchema=l.addressOrDomainInputSchema;exports.addressOrDomainSchema=l.addressOrDomainSchema;exports.isEqualStarknetDomainName=l.isEqualStarknetDomainName;exports.isStarknetDomainName=l.isStarknetDomainName;exports.normalizeAddressOrDomain=l.normalizeAddressOrDomain;exports.starknetDomainNameSchema=l.starknetDomainNameSchema;exports.addressInputCharactersAndLengthSchema=L.addressInputCharactersAndLengthSchema;exports.addressInputSchema=L.addressInputSchema;exports.argentNameSchema=C.argentNameSchema;exports.isArgentName=C.isArgentName;exports.isEqualArgentName=C.isEqualArgentName;exports.normalizeArgentName=C.normalizeArgentName;exports.cairoVersionSchema=ce.cairoVersionSchema;exports.ETH_TOKEN_ADDRESS=S.ETH_TOKEN_ADDRESS;exports.STANDARD_DEVNET_ACCOUNT_CLASS_HASH=S.STANDARD_DEVNET_ACCOUNT_CLASS_HASH;exports.STRK_TOKEN_ADDRESS=S.STRK_TOKEN_ADDRESS;exports.TXV1_ACCOUNT_CLASS_HASH=S.TXV1_ACCOUNT_CLASS_HASH;exports.TXV1_MULTISIG_CLASS_HASH=S.TXV1_MULTISIG_CLASS_HASH;exports.TXV3_ACCOUNT_CLASS_HASH=S.TXV3_ACCOUNT_CLASS_HASH;exports.TXV3_MULTISIG_CLASS_HASH=S.TXV3_MULTISIG_CLASS_HASH;exports.apiWalletResponseSchema=x.apiWalletResponseSchema;exports.getAddressFromArgentName=x.getAddressFromArgentName;exports.getAddressFromStarkName=E.getAddressFromStarkName;exports.getCallFromStarkName=E.getCallFromStarkName;exports.getStarknetIdContractAddressFromNetworkId=E.getStarknetIdContractAddressFromNetworkId;exports.starkNameToCallDataDomain=E.starkNameToCallDataDomain;exports.getArgentNetwork=W.getArgentNetwork;exports.getChainIdFromNetworkId=W.getChainIdFromNetworkId;exports.StarknetAddressService=me.StarknetAddressService;exports.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES=R.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES;exports.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES=R.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES;exports.C0_PROXY_CONTRACT_CLASS_HASHES=R.C0_PROXY_CONTRACT_CLASS_HASHES;exports.constructorCallDataSchemaC0=B.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=B.constructorCallDataSchemaC1V1;exports.implementationSchema=B.implementationSchema;exports.buildConstructorCalldata=g.buildConstructorCalldata;exports.findImplementationForAccount=g.findImplementationForAccount;exports.getAccountContractAddress=g.getAccountContractAddress;exports.getAccountDeploymentPayload=g.getAccountDeploymentPayload;exports.isEqualImplementation=g.isEqualImplementation;exports.getAccountVersionByClasshash=m.getAccountVersionByClasshash;exports.getArgentAccountClassHashes=m.getArgentAccountClassHashes;exports.getArgentAccountClassHashesWithTxV3Support=m.getArgentAccountClassHashesWithTxV3Support;exports.getArgentAccountWithMultiSignerClassHashes=m.getArgentAccountWithMultiSignerClassHashes;exports.getLastCairo0ArgentAccountClassHash=m.getLastCairo0ArgentAccountClassHash;exports.getLatestArgentAccountClassHash=m.getLatestArgentAccountClassHash;exports.getLatestArgentMultisigClassHash=m.getLatestArgentMultisigClassHash;exports.getLatestLedgerAccountClassHash=m.getLatestLedgerAccountClassHash;exports.getLedgerAccountClassHashes=m.getLedgerAccountClassHashes;exports.isEqualStarknetId=D.isEqualStarknetId;exports.isStarknetId=D.isStarknetId;exports.normalizeStarknetId=D.normalizeStarknetId;exports.starknetIdSchema=D.starknetIdSchema;exports.DateService=de.DateService;exports.HttpError=Se.HttpError;exports.HTTPService=le.HTTPService;Object.defineProperty(exports,"HTTP_ERROR_MESSAGE",{enumerable:!0,get:()=>ue.HTTP_ERROR_MESSAGE});exports.SWRService=he.SWRService;exports.fetchData=I.fetchData;exports.fetcherError=I.fetcherError;exports.postData=I.postData;exports.getBackendTimeNowSeconds=M.getBackendTimeNowSeconds;exports.getBackendTimeSeconds=M.getBackendTimeSeconds;exports.KnownDappsBackendService=ge.KnownDappsBackendService;exports.dappContractSchema=v.dappContractSchema;exports.dappLinkSchema=v.dappLinkSchema;exports.knownDappSchema=v.knownDappSchema;exports.knownDappsSchema=v.knownDappsSchema;exports.getDapplandLinkForDapp=U.getDapplandLinkForDapp;exports.getDapplandUrlForDapp=U.getDapplandUrlForDapp;exports.ResolveNameService=Ae.ResolveNameService;exports.nameProviderResolutionSchema=u.nameProviderResolutionSchema;exports.nameResolutionAddressSchema=u.nameResolutionAddressSchema;exports.nameResolutionAddressesSchema=u.nameResolutionAddressesSchema;exports.nameResolutionStarknetIdSchema=u.nameResolutionStarknetIdSchema;exports.nameResolutionStarknetIdsSchema=u.nameResolutionStarknetIdsSchema;exports.providersNamesSchema=u.providersNamesSchema;exports.BackendNftService=pe.BackendNftService;exports.equalNft=G.equalNft;exports.getNftPicture=G.getNftPicture;exports.OnchainRecoveryService=Te.OnchainRecoveryService;Object.defineProperty(exports,"RecoveryStatusEnum",{enumerable:!0,get:()=>c.RecoveryStatusEnum});Object.defineProperty(exports,"StartOnchainRecoveryErrorStatusEnum",{enumerable:!0,get:()=>c.StartOnchainRecoveryErrorStatusEnum});exports.activeOnchainRecoverySchema=c.activeOnchainRecoverySchema;exports.onchainRecoverySchema=c.onchainRecoverySchema;exports.recoveryBaseSchema=c.recoveryBaseSchema;exports.recoveryBodySchema=c.recoveryBodySchema;exports.recoveryStatusSchema=c.recoveryStatusSchema;exports.startOnchainRecoveryErrorSchema=c.startOnchainRecoveryErrorSchema;exports.startOnchainRecoveryErrorStatusSchema=c.startOnchainRecoveryErrorStatusSchema;exports.startOnchainRecoverySchema=c.startOnchainRecoverySchema;exports.isBraveBrowser=ke.isBraveBrowser;exports.getUAParserResult=h.getUAParserResult;exports.isBrowser=h.isBrowser;exports.isChromeBrowser=h.isChromeBrowser;exports.isEdgeBrowser=h.isEdgeBrowser;exports.isFirefoxBrowser=h.isFirefoxBrowser;exports.isSafariBrowser=h.isSafariBrowser;exports.seedphraseSchema=ye.seedphraseSchema;Object.defineProperty(exports,"MultiSigner",{enumerable:!0,get:()=>z.MultiSigner});exports.getSignerForMultiSigner=z.getSignerForMultiSigner;exports.mergeOwnerGuardianSignatures=Ce.mergeOwnerGuardianSignatures;exports.buildSellOptsSchema=i.buildSellOptsSchema;exports.investmentMetaSchema=i.investmentMetaSchema;exports.investmentSchema=i.investmentSchema;exports.investmentsResponseSchema=i.investmentsResponseSchema;exports.lendingInvestmentSchema=i.lendingInvestmentSchema;exports.liquidStakingInvestmentSchema=i.liquidStakingInvestmentSchema;exports.stakerInfoSchema=i.stakerInfoSchema;exports.stakingActionSchema=i.stakingActionSchema;exports.strkDelegatedStakingInvestmentSchema=i.strkDelegatedStakingInvestmentSchema;exports.strkStakingCalldataResponseSchema=i.strkStakingCalldataResponseSchema;exports.strkStakingCalldataSchema=i.strkStakingCalldataSchema;exports.containsValue=j.containsValue;exports.replaceValueRecursively=j.replaceValueRecursively;exports.mergeArrayStableWith=K.mergeArrayStableWith;exports.optionsWithDefaults=K.optionsWithDefaults;exports.getTokenBalance=F.getTokenBalance;exports.getTokens=F.getTokens;exports.getTokensBalances=F.getTokensBalances;exports.useToken=F.useToken;exports.DEFAULT_TOKEN_DECIMALS=Ee.DEFAULT_TOKEN_DECIMALS;exports.convertCurrencyValueToTokenAmount=De.convertCurrencyValueToTokenAmount;exports.convertTokenAmountToCurrencyValue=ve.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=Fe.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=be.ensureDecimals;exports.isUnlimitedAmount=qe.isUnlimitedAmount;exports.prettifyCurrencyValue=fe.prettifyCurrencyValue;exports.PRETTY_UNLIMITED=$.PRETTY_UNLIMITED;exports.prettifyTokenAmount=$.prettifyTokenAmount;exports.getCurrencySymbol=Ne.getCurrencySymbol;exports.TokenServiceWeb=Pe.TokenServiceWeb;Object.defineProperty(exports,"TOKEN_ERROR_MESSAGES",{enumerable:!0,get:()=>X.TOKEN_ERROR_MESSAGES});exports.TokenError=X.TokenError;exports.apiAccountTokenBalancesSchema=a.apiAccountTokenBalancesSchema;exports.apiAirdropSchema=a.apiAirdropSchema;exports.apiCollateralizedDebtPositionSchema=a.apiCollateralizedDebtPositionSchema;exports.apiCollateralizedDebtPositionsSchema=a.apiCollateralizedDebtPositionsSchema;exports.apiConcentratedLiquidityPositionSchema=a.apiConcentratedLiquidityPositionSchema;exports.apiConcentratedLiquidityPositionsSchema=a.apiConcentratedLiquidityPositionsSchema;exports.apiDefiDecompositionProduct=a.apiDefiDecompositionProduct;exports.apiDefiDecompositionProducts=a.apiDefiDecompositionProducts;exports.apiDefiDecompositionSchema=a.apiDefiDecompositionSchema;exports.apiDefiDecompositionToken=a.apiDefiDecompositionToken;exports.apiDefiPositionSchema=a.apiDefiPositionSchema;exports.apiDefiPositionsSchema=a.apiDefiPositionsSchema;exports.apiDelegatedTokensArraySchema=a.apiDelegatedTokensArraySchema;exports.apiDelegatedTokensSchema=a.apiDelegatedTokensSchema;exports.apiPriceDataResponseSchema=a.apiPriceDataResponseSchema;exports.apiPriceDetailsSchema=a.apiPriceDetailsSchema;exports.apiStakingPositionSchema=a.apiStakingPositionSchema;exports.apiStakingPositionsSchema=a.apiStakingPositionsSchema;exports.apiStrkDelegatedStakingPositionsSchema=a.apiStrkDelegatedStakingPositionsSchema;exports.apiStrkDelegatedStakingSchema=a.apiStrkDelegatedStakingSchema;exports.apiTokenInfoResponseSchema=a.apiTokenInfoResponseSchema;exports.apiTokenInfoSchema=a.apiTokenInfoSchema;exports.apiTokensInfoResponseSchema=a.apiTokensInfoResponseSchema;exports.apiUnclaimedRewardsSchema=a.apiUnclaimedRewardsSchema;exports.collateralizedDebtGroupSchema=s.collateralizedDebtGroupSchema;exports.collateralizedDebtPositionSchema=s.collateralizedDebtPositionSchema;exports.collateralizedDebtPositionsSchema=s.collateralizedDebtPositionsSchema;exports.concentratedLiquidityPositionSchema=s.concentratedLiquidityPositionSchema;exports.concentratedLiquidityPositionsSchema=s.concentratedLiquidityPositionsSchema;exports.defiDappsProductsSchema=s.defiDappsProductsSchema;exports.defiPositionSchema=s.defiPositionSchema;exports.defiProductSchema=s.defiProductSchema;exports.defiProductsSchema=s.defiProductsSchema;exports.delegatedTokensArraySchema=s.delegatedTokensArraySchema;exports.delegatedTokensSchema=s.delegatedTokensSchema;exports.productGroupsSchema=s.productGroupsSchema;exports.stakingPositionSchema=s.stakingPositionSchema;exports.stakingPositionsSchema=s.stakingPositionsSchema;exports.strkDelegatedStakingPositionArraySchema=s.strkDelegatedStakingPositionArraySchema;exports.strkDelegatedStakingPositionSchema=s.strkDelegatedStakingPositionSchema;exports.defiPositionTypeSchema=Re.defiPositionTypeSchema;exports.airdropSchema=Y.airdropSchema;exports.unclaimedRewardsSchema=Y.unclaimedRewardsSchema;exports.webBaseTokenSchema=d.webBaseTokenSchema;exports.webBaseTokenWithBalanceSchema=d.webBaseTokenWithBalanceSchema;exports.webTokenInfoDetailsSchema=d.webTokenInfoDetailsSchema;exports.webTokenPriceDetailsSchema=d.webTokenPriceDetailsSchema;exports.webTokenSchema=d.webTokenSchema;exports.webTokenWithBalanceAndPriceSchema=d.webTokenWithBalanceAndPriceSchema;exports.webTokenWithBalanceSchema=d.webTokenWithBalanceSchema;exports.webTokenWithPriceSchema=d.webTokenWithPriceSchema;exports.webTokensWithBalanceAndPriceSchema=d.webTokensWithBalanceAndPriceSchema;exports.isCollateralizedDebtPosition=A.isCollateralizedDebtPosition;exports.isConcentratedLiquidityPosition=A.isConcentratedLiquidityPosition;exports.isDelegatedTokens=A.isDelegatedTokens;exports.isStaking=A.isStaking;exports.isStrkDelegatedStaking=A.isStrkDelegatedStaking;exports.inputAmountSchema=w.inputAmountSchema;exports.isValidInputAmount=w.isValidInputAmount;exports.parseAmount=w.parseAmount;exports.erc20TransferTransaction=_.erc20TransferTransaction;exports.erc721SafeTransferFromTransaction=_.erc721SafeTransferFromTransaction;exports.erc721TransferFromTransaction=_.erc721TransferFromTransaction;exports.getMessageFromTrpcError=Z.getMessageFromTrpcError;exports.trpcErrorSchema=Z.trpcErrorSchema;exports.FEE_OVERHEAD=V.FEE_OVERHEAD;exports.argentMaxFee=V.argentMaxFee;exports.modifySnjsFeeOverhead=V.modifySnjsFeeOverhead;Object.defineProperty(exports,"ESTIMATE_ERROR_MESSAGES",{enumerable:!0,get:()=>Q.ESTIMATE_ERROR_MESSAGES});exports.EstimateError=Q.EstimateError;exports.transactionReviewTransactionsSchema=Be.transactionReviewTransactionsSchema;exports.buildDummyTx=n.buildDummyTx;exports.calculateCubeRootAdjustment=n.calculateCubeRootAdjustment;exports.calculateNonLinearAdjustment=n.calculateNonLinearAdjustment;exports.calculateSqrtAdjustment=n.calculateSqrtAdjustment;exports.castFeeEstimation=n.castFeeEstimation;exports.estimatedFeeToMaxFeeTotal=n.estimatedFeeToMaxFeeTotal;exports.estimatedFeeToMaxResourceBounds=n.estimatedFeeToMaxResourceBounds;exports.estimatedFeeToTotal=n.estimatedFeeToTotal;exports.estimatedFeesToMaxFeeTotal=n.estimatedFeesToMaxFeeTotal;exports.estimatedFeesToTotal=n.estimatedFeesToTotal;exports.getEstimatedFeeFromBulkSimulation=n.getEstimatedFeeFromBulkSimulation;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFee=n.getEstimatedFeeFromSimulationAndRespectWatermarkFee;exports.getPayloadFromTransaction=n.getPayloadFromTransaction;exports.getWatermarkedMaxFeeTotal=n.getWatermarkedMaxFeeTotal;exports.isFRI=n.isFRI;exports.isWEI=n.isWEI;exports.multiplyBigIntByFloat=n.multiplyBigIntByFloat;exports.toMax=n.toMax;exports.tokensRequireTxV3Support=n.tokensRequireTxV3Support;exports.unitToFeeTokenAddress=n.unitToFeeTokenAddress;exports.estimatedFeesToMaxFeeTotalV2=o.estimatedFeesToMaxFeeTotalV2;exports.estimatedFeesToTotalV2=o.estimatedFeesToTotalV2;exports.filterPaymasterEstimatedFees=o.filterPaymasterEstimatedFees;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2=o.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2;exports.getNativeEstimatedFeeByFeeToken=o.getNativeEstimatedFeeByFeeToken;exports.getNativeEstimatedFeeByTxVersion=o.getNativeEstimatedFeeByTxVersion;exports.getNativeEstimatedFeeForAccount=o.getNativeEstimatedFeeForAccount;exports.getNativeEstimatedFees=o.getNativeEstimatedFees;exports.getNativeFeeFromSimulation=o.getNativeFeeFromSimulation;exports.getNativeFeeTokenAddress=o.getNativeFeeTokenAddress;exports.getPaymasterFeeFromSimulation=o.getPaymasterFeeFromSimulation;exports.EventsBySelector=J.EventsBySelector;exports.findTransfersAndApprovals=J.findTransfersAndApprovals;exports.getPrettyRpcError=Ie.getPrettyRpcError;exports.getAccountTxVersion=p.getAccountTxVersion;exports.getSimulationTxVersionFromFeeToken=p.getSimulationTxVersionFromFeeToken;exports.getTxVersionForDeclareContract=p.getTxVersionForDeclareContract;exports.getTxVersionFromFeeToken=p.getTxVersionFromFeeToken;exports.getTxVersionFromFeeTokenForDeclareContract=p.getTxVersionFromFeeTokenForDeclareContract;exports.TransactionReviewServiceWeb=we.TransactionReviewServiceWeb;exports.transactionReviewWarningSchema=_e.transactionReviewWarningSchema;exports.apiTransactionReviewActivityType=Ve.apiTransactionReviewActivityType;exports.denyTxV3=ee.denyTxV3;exports.txVersionSchema=ee.txVersionSchema;exports.classHashSupportsTxV3=ae.classHashSupportsTxV3;exports.feeTokenNeedsTxV3Support=ae.feeTokenNeedsTxV3Support;exports.transactionExecutionResponseSchema=O.transactionExecutionResponseSchema;exports.transactionPromotionPrizeSchema=O.transactionPromotionPrizeSchema;exports.transactionPromotionSchema=O.transactionPromotionSchema;exports.formatAddress=Oe.formatAddress;exports.ensureArray=He.ensureArray;exports.generateAvatarImage=b.generateAvatarImage;exports.getColor=b.getColor;exports.getNetworkAccountImageUrl=b.getNetworkAccountImageUrl;exports.stripAddressZeroPadding=b.stripAddressZeroPadding;exports.decodeBase58=q.decodeBase58;exports.decodeBase58Array=q.decodeBase58Array;exports.encodeBase58=q.encodeBase58;exports.encodeBase58Array=q.encodeBase58Array;exports.bigNumberSchema=Le.bigNumberSchema;exports.daysBetween=xe.daysBetween;exports.isFeatureEnabled=We.isFeatureEnabled;exports.hexSchema=te.hexSchema;exports.hexSchemaBase=te.hexSchemaBase;exports.id=Me.id;exports.getInitials=Ue.getInitials;exports.isContractDeployed=Ge.isContractDeployed;exports.nonNullable=ze.nonNullable;exports.isAllowedAddressHexInputValue=je.isAllowedAddressHexInputValue;exports.isAllowedNumericInputValue=Ke.isAllowedNumericInputValue;exports.isNumeric=$e.isNumeric;exports.prettifyCurrencyNumber=f.prettifyCurrencyNumber;exports.prettifyNumber=f.prettifyNumber;exports.prettifyNumberConfig=f.prettifyNumberConfig;exports.prettifyTokenNumber=f.prettifyTokenNumber;exports.abbreviateNumber=Xe.abbreviateNumber;exports.getUint256CalldataFromBN=re.getUint256CalldataFromBN;exports.parseAmountValue=re.parseAmountValue;exports.pluralise=Ye.pluralise;exports.readFileAsString=Ze.readFileAsString;exports.booleanToStringSchema=N.booleanToStringSchema;exports.createSchemaWithWarnings=N.createSchemaWithWarnings;exports.safeParseAndWarn=N.safeParseAndWarn;exports.stringToBooleanSchema=N.stringToBooleanSchema;exports.addOwnersCalldataSchema=r.addOwnersCalldataSchema;exports.addPluginCalldataSchema=r.addPluginCalldataSchema;exports.bigNumberishSchema=r.bigNumberishSchema;exports.callDetailsSchema=r.callDetailsSchema;exports.callSchema=r.callSchema;exports.calldataSchema=r.calldataSchema;exports.changeGuardianCalldataSchema=r.changeGuardianCalldataSchema;exports.changeThresholdCalldataSchema=r.changeThresholdCalldataSchema;exports.escapeGuardianCalldataSchema=r.escapeGuardianCalldataSchema;exports.executeOnPluginCalldataSchema=r.executeOnPluginCalldataSchema;exports.feltSchema=r.feltSchema;exports.looseCalldataSchema=r.looseCalldataSchema;exports.multiTypeSchema=r.multiTypeSchema;exports.rawArgsArraySchema=r.rawArgsArraySchema;exports.rawArgsObjectSchema=r.rawArgsObjectSchema;exports.rawArgsSchema=r.rawArgsSchema;exports.removeOwnersCalldataSchema=r.removeOwnersCalldataSchema;exports.removePluginCalldataSchema=r.removePluginCalldataSchema;exports.replaceSignerCalldataSchema=r.replaceSignerCalldataSchema;exports.transferCalldataSchema=r.transferCalldataSchema;exports.typedDataSchema=r.typedDataSchema;exports.uint256Schema=r.uint256Schema;exports.abiEntrySchema=t.abiEntrySchema;exports.abiSchema=t.abiSchema;exports.builtinsSchema=t.builtinsSchema;exports.byteCodeSchema=t.byteCodeSchema;exports.cairo1EventSchema=t.cairo1EventSchema;exports.cairoAssemblySchema=t.cairoAssemblySchema;exports.compiledContractClassSchema=t.compiledContractClassSchema;exports.compiledSierraCasmSchema=t.compiledSierraCasmSchema;exports.compiledSierraSchema=t.compiledSierraSchema;exports.compressedProgramSchema=t.compressedProgramSchema;exports.contractEntryPointFieldsSchema=t.contractEntryPointFieldsSchema;exports.entryPointsByTypeSchema=t.entryPointsByTypeSchema;exports.eventAbiSchema=t.eventAbiSchema;exports.eventEntrySchema=t.eventEntrySchema;exports.functionAbiSchema=t.functionAbiSchema;exports.functionAbiTypeSchema=t.functionAbiTypeSchema;exports.legacyContractClassSchema=t.legacyContractClassSchema;exports.legacyEventSchema=t.legacyEventSchema;exports.programSchema=t.programSchema;exports.pythonicHintsSchema=t.pythonicHintsSchema;exports.sierraContractEntryPointFieldsSchema=t.sierraContractEntryPointFieldsSchema;exports.sierraEntryPointsByTypeSchema=t.sierraEntryPointsByTypeSchema;exports.sierraProgramDebugInfoSchema=t.sierraProgramDebugInfoSchema;exports.structAbiSchema=t.structAbiSchema;exports.entryPointToHumanReadable=Qe.entryPointToHumanReadable;exports.urlWithQuery=Je.urlWithQuery;exports.voidify=ea.voidify;exports.bipsToPercent=aa.bipsToPercent;exports.retryUntilInitialised=ta.retryUntilInitialised;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("./src/bigdecimal/index.cjs"),ie=require("./src/errors/baseErrors.cjs"),oe=require("./src/accountNameGenerator/index.cjs"),T=require("./src/account/account.model.cjs"),P=require("./src/account/accountv4.cjs"),H=require("./src/account/preferences.model.cjs"),k=require("./src/backend/schema.cjs"),y=require("./src/backend/sessionKeys/schema.cjs"),ce=require("./src/cache/CacheService.cjs"),e=require("./src/chains/starknet/address.cjs"),l=require("./src/chains/starknet/addressDomain.cjs"),L=require("./src/chains/starknet/addressInput.cjs"),C=require("./src/chains/starknet/argentName.cjs"),me=require("./src/chains/starknet/cairoVersionSchema.cjs"),d=require("./src/chains/starknet/constants.cjs"),x=require("./src/chains/starknet/getAddressFromArgentName.cjs"),D=require("./src/chains/starknet/getAddressFromStarkName.cjs"),W=require("./src/chains/starknet/network.cjs"),Se=require("./src/chains/starknet/services/address/StarknetAddressService.cjs"),R=require("./src/chains/starknet/services/deploymentData/constants.cjs"),B=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),g=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),m=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),E=require("./src/chains/starknet/starknetId.cjs"),de=require("./src/http/DateService.cjs"),le=require("./src/http/HttpError.cjs"),ue=require("./src/http/HttpService.cjs"),he=require("./src/http/IHttpService.cjs"),ge=require("./src/http/SWRService.cjs"),I=require("./src/http/fetcher.cjs"),M=require("./src/http/time.cjs"),Ae=require("./src/knownDapps/KnownDappsBackendService.cjs"),v=require("./src/knownDapps/schema.cjs"),U=require("./src/knownDapps/utils/getDapplandUrl.cjs"),pe=require("./src/nameResolution/ResolveNameService.cjs"),u=require("./src/nameResolution/schema.cjs"),Te=require("./src/nfts/BackendNftService.cjs"),G=require("./src/nfts/utils.cjs"),ke=require("./src/onchainRecovery/OnchainRecoveryService.cjs"),c=require("./src/onchainRecovery/schema.cjs"),ye=require("./src/platform/isBraveBrowser.cjs"),h=require("./src/platform/isBrowser.cjs"),Ce=require("./src/signer/seedphrase.cjs"),z=require("./src/signer/multisigner.cjs"),De=require("./src/signer/mergeOwnerGuardianSignatures.cjs"),i=require("./src/staking/schema.cjs"),j=require("./src/storage/utils.cjs"),K=require("./src/storage/base.cjs"),F=require("./src/tokens/balances.cjs"),Ee=require("./src/tokens/constants.cjs"),ve=require("./src/tokens/convertCurrencyValueToTokenAmount.cjs"),Fe=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),qe=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),be=require("./src/tokens/ensureDecimals.cjs"),fe=require("./src/tokens/isUnlimitedAmount.cjs"),Ne=require("./src/tokens/prettifyCurrencyValue.cjs"),$=require("./src/tokens/prettifyTokenAmount.cjs"),Pe=require("./src/tokens/getCurrencySymbol.cjs"),Re=require("./src/tokens/service/implementation.cjs"),X=require("./src/tokens/service/tokenError.cjs"),a=require("./src/tokens/service/types/backend.model.cjs"),s=require("./src/tokens/service/types/defiPosition.model.cjs"),Be=require("./src/tokens/service/types/defiPositionType.model.cjs"),Y=require("./src/tokens/service/types/unclaimedRewards.model.cjs"),S=require("./src/tokens/service/types/webToken.model.cjs"),A=require("./src/tokens/utils.cjs"),w=require("./src/transactions/amount.cjs"),_=require("./src/transactions/buildTransactions.cjs"),Z=require("./src/transactions/errors.cjs"),V=require("./src/transactions/estimate/argentMaxFee.cjs"),Q=require("./src/transactions/estimate/error.cjs"),Ie=require("./src/transactions/estimate/model.cjs"),n=require("./src/transactions/estimate/utils.cjs"),o=require("./src/transactions/estimate/utilsV2.cjs"),J=require("./src/transactions/findTransfersAndApprovals.cjs"),we=require("./src/transactions/getPrettyRcpError.cjs"),p=require("./src/transactions/getTransactionVersion.cjs"),_e=require("./src/transactions/service/implementation.cjs"),Ve=require("./src/transactions/service/types.cjs"),Oe=require("./src/transactions/transactionReviewTypes.cjs"),ee=require("./src/transactions/transactionVersion.cjs"),ae=require("./src/transactions/txv3.cjs"),O=require("./src/transactions/transactionExecuteTypes.cjs"),He=require("./src/utils/address.cjs"),Le=require("./src/utils/arrays.cjs"),q=require("./src/utils/avatarImage.cjs"),b=require("./src/utils/base58.cjs"),xe=require("./src/utils/bigNumber.cjs"),We=require("./src/utils/daysBetween.cjs"),Me=require("./src/utils/env.cjs"),te=require("./src/utils/hex.cjs"),Ue=require("./src/utils/id.cjs"),Ge=require("./src/utils/initials.cjs"),ze=require("./src/utils/isContractDeployed.cjs"),je=require("./src/utils/nonNullable.cjs"),Ke=require("./src/utils/number/isAllowedAddressHexInputValue.cjs"),$e=require("./src/utils/number/isAllowedNumericInputValue.cjs"),Xe=require("./src/utils/number/isNumeric.cjs"),f=require("./src/utils/number/prettifyNumber.cjs"),Ye=require("./src/utils/number/abbreviateNumber.cjs"),re=require("./src/utils/parseAmount.cjs"),Ze=require("./src/utils/pluralise.cjs"),Qe=require("./src/utils/readFileAsString.cjs"),N=require("./src/utils/schemas.cjs"),r=require("./src/utils/starknet/starknet.cjs"),t=require("./src/utils/starknet/starknetSchemas.cjs"),Je=require("./src/utils/transactions.cjs"),ea=require("./src/utils/url/urlWithQuery.cjs"),aa=require("./src/utils/voidify.cjs"),ta=require("./src/utils/bips.cjs"),ra=require("./src/utils/retryUntilInitialised.cjs"),na=require("./src/currencyFetchService/CurrencyFetchService.cjs"),ne=require("./src/currencyFetchService/types.ts.cjs");exports.bigDecimal=se;exports.BaseError=ie.BaseError;exports.AccountNameGenerator=oe.AccountNameGenerator;exports.AddSmartAccountResponseSchema=T.AddSmartAccountResponseSchema;exports.AddSmartAcountRequestSchema=T.AddSmartAcountRequestSchema;exports.BackendAccountSchema=T.BackendAccountSchema;exports.baseWalletAccountSchema=T.baseWalletAccountSchema;exports.isAccountV4=P.isAccountV4;exports.isAccountV5=P.isAccountV5;exports.isAccountV6=P.isAccountV6;exports.preferencesEndpointPayload=H.preferencesEndpointPayload;exports.preferencesSchema=H.preferencesSchema;exports.argentBackendNetworkIdSchema=k.argentBackendNetworkIdSchema;exports.argentNetworkIdSchema=k.argentNetworkIdSchema;exports.isArgentBackendNetworkId=k.isArgentBackendNetworkId;exports.isArgentNetworkId=k.isArgentNetworkId;exports.backendSessionAllowedMethodSchema=y.backendSessionAllowedMethodSchema;exports.backendSessionMetadataSchema=y.backendSessionMetadataSchema;exports.backendSessionSchema=y.backendSessionSchema;exports.backendSessionTxFeeSchema=y.backendSessionTxFeeSchema;exports.CacheService=ce.CacheService;exports.addressOrEmptyUndefinedSchema=e.addressOrEmptyUndefinedSchema;exports.addressSchema=e.addressSchema;exports.addressSchemaArgentBackend=e.addressSchemaArgentBackend;exports.addressSchemaBase=e.addressSchemaBase;exports.addressSchemaLooseLength=e.addressSchemaLooseLength;exports.addressSchemaStrictLength=e.addressSchemaStrictLength;exports.formatFullAddress=e.formatFullAddress;exports.formatTruncatedAddress=e.formatTruncatedAddress;exports.formatTruncatedSignerKey=e.formatTruncatedSignerKey;exports.formatTruncatedString=e.formatTruncatedString;exports.getAddressOrEmptyUndefinedSchema=e.getAddressOrEmptyUndefinedSchema;exports.getAddressSchema=e.getAddressSchema;exports.getAddressSchemaArgentBackend=e.getAddressSchemaArgentBackend;exports.getAddressSchemaBase=e.getAddressSchemaBase;exports.getAddressSchemaLooseLength=e.getAddressSchemaLooseLength;exports.getAddressSchemaStrictLength=e.getAddressSchemaStrictLength;exports.getAddressValidationSchemas=e.getAddressValidationSchemas;exports.getValidChecksumAddressSchema=e.getValidChecksumAddressSchema;exports.getValidateAddressRangeSchema=e.getValidateAddressRangeSchema;exports.includesAddress=e.includesAddress;exports.isAddress=e.isAddress;exports.isBase58Address=e.isBase58Address;exports.isEqualAddress=e.isEqualAddress;exports.isValidAddress=e.isValidAddress;exports.isValidHexString=e.isValidHexString;exports.isZeroAddress=e.isZeroAddress;exports.normalizeAddress=e.normalizeAddress;exports.normalizeAddressForCompare=e.normalizeAddressForCompare;exports.validChecksumAddressSchema=e.validChecksumAddressSchema;exports.validateAddressRangeSchema=e.validateAddressRangeSchema;exports.addressOrDomainInputSchema=l.addressOrDomainInputSchema;exports.addressOrDomainSchema=l.addressOrDomainSchema;exports.isEqualStarknetDomainName=l.isEqualStarknetDomainName;exports.isStarknetDomainName=l.isStarknetDomainName;exports.normalizeAddressOrDomain=l.normalizeAddressOrDomain;exports.starknetDomainNameSchema=l.starknetDomainNameSchema;exports.addressInputCharactersAndLengthSchema=L.addressInputCharactersAndLengthSchema;exports.addressInputSchema=L.addressInputSchema;exports.argentNameSchema=C.argentNameSchema;exports.isArgentName=C.isArgentName;exports.isEqualArgentName=C.isEqualArgentName;exports.normalizeArgentName=C.normalizeArgentName;exports.cairoVersionSchema=me.cairoVersionSchema;exports.ETH_TOKEN_ADDRESS=d.ETH_TOKEN_ADDRESS;exports.STANDARD_DEVNET_ACCOUNT_CLASS_HASH=d.STANDARD_DEVNET_ACCOUNT_CLASS_HASH;exports.STRK_TOKEN_ADDRESS=d.STRK_TOKEN_ADDRESS;exports.TXV1_ACCOUNT_CLASS_HASH=d.TXV1_ACCOUNT_CLASS_HASH;exports.TXV1_MULTISIG_CLASS_HASH=d.TXV1_MULTISIG_CLASS_HASH;exports.TXV3_ACCOUNT_CLASS_HASH=d.TXV3_ACCOUNT_CLASS_HASH;exports.TXV3_MULTISIG_CLASS_HASH=d.TXV3_MULTISIG_CLASS_HASH;exports.apiWalletResponseSchema=x.apiWalletResponseSchema;exports.getAddressFromArgentName=x.getAddressFromArgentName;exports.getAddressFromStarkName=D.getAddressFromStarkName;exports.getCallFromStarkName=D.getCallFromStarkName;exports.getStarknetIdContractAddressFromNetworkId=D.getStarknetIdContractAddressFromNetworkId;exports.starkNameToCallDataDomain=D.starkNameToCallDataDomain;exports.getArgentNetwork=W.getArgentNetwork;exports.getChainIdFromNetworkId=W.getChainIdFromNetworkId;exports.StarknetAddressService=Se.StarknetAddressService;exports.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES=R.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES;exports.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES=R.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES;exports.C0_PROXY_CONTRACT_CLASS_HASHES=R.C0_PROXY_CONTRACT_CLASS_HASHES;exports.constructorCallDataSchemaC0=B.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=B.constructorCallDataSchemaC1V1;exports.implementationSchema=B.implementationSchema;exports.buildConstructorCalldata=g.buildConstructorCalldata;exports.findImplementationForAccount=g.findImplementationForAccount;exports.getAccountContractAddress=g.getAccountContractAddress;exports.getAccountDeploymentPayload=g.getAccountDeploymentPayload;exports.isEqualImplementation=g.isEqualImplementation;exports.getAccountVersionByClasshash=m.getAccountVersionByClasshash;exports.getArgentAccountClassHashes=m.getArgentAccountClassHashes;exports.getArgentAccountClassHashesWithTxV3Support=m.getArgentAccountClassHashesWithTxV3Support;exports.getArgentAccountWithMultiSignerClassHashes=m.getArgentAccountWithMultiSignerClassHashes;exports.getLastCairo0ArgentAccountClassHash=m.getLastCairo0ArgentAccountClassHash;exports.getLatestArgentAccountClassHash=m.getLatestArgentAccountClassHash;exports.getLatestArgentMultisigClassHash=m.getLatestArgentMultisigClassHash;exports.getLatestLedgerAccountClassHash=m.getLatestLedgerAccountClassHash;exports.getLedgerAccountClassHashes=m.getLedgerAccountClassHashes;exports.isEqualStarknetId=E.isEqualStarknetId;exports.isStarknetId=E.isStarknetId;exports.normalizeStarknetId=E.normalizeStarknetId;exports.starknetIdSchema=E.starknetIdSchema;exports.DateService=de.DateService;exports.HttpError=le.HttpError;exports.HTTPService=ue.HTTPService;Object.defineProperty(exports,"HTTP_ERROR_MESSAGE",{enumerable:!0,get:()=>he.HTTP_ERROR_MESSAGE});exports.SWRService=ge.SWRService;exports.fetchData=I.fetchData;exports.fetcherError=I.fetcherError;exports.postData=I.postData;exports.getBackendTimeNowSeconds=M.getBackendTimeNowSeconds;exports.getBackendTimeSeconds=M.getBackendTimeSeconds;exports.KnownDappsBackendService=Ae.KnownDappsBackendService;exports.dappContractSchema=v.dappContractSchema;exports.dappLinkSchema=v.dappLinkSchema;exports.knownDappSchema=v.knownDappSchema;exports.knownDappsSchema=v.knownDappsSchema;exports.getDapplandLinkForDapp=U.getDapplandLinkForDapp;exports.getDapplandUrlForDapp=U.getDapplandUrlForDapp;exports.ResolveNameService=pe.ResolveNameService;exports.nameProviderResolutionSchema=u.nameProviderResolutionSchema;exports.nameResolutionAddressSchema=u.nameResolutionAddressSchema;exports.nameResolutionAddressesSchema=u.nameResolutionAddressesSchema;exports.nameResolutionStarknetIdSchema=u.nameResolutionStarknetIdSchema;exports.nameResolutionStarknetIdsSchema=u.nameResolutionStarknetIdsSchema;exports.providersNamesSchema=u.providersNamesSchema;exports.BackendNftService=Te.BackendNftService;exports.equalNft=G.equalNft;exports.getNftPicture=G.getNftPicture;exports.OnchainRecoveryService=ke.OnchainRecoveryService;Object.defineProperty(exports,"RecoveryStatusEnum",{enumerable:!0,get:()=>c.RecoveryStatusEnum});Object.defineProperty(exports,"StartOnchainRecoveryErrorStatusEnum",{enumerable:!0,get:()=>c.StartOnchainRecoveryErrorStatusEnum});exports.activeOnchainRecoverySchema=c.activeOnchainRecoverySchema;exports.onchainRecoverySchema=c.onchainRecoverySchema;exports.recoveryBaseSchema=c.recoveryBaseSchema;exports.recoveryBodySchema=c.recoveryBodySchema;exports.recoveryStatusSchema=c.recoveryStatusSchema;exports.startOnchainRecoveryErrorSchema=c.startOnchainRecoveryErrorSchema;exports.startOnchainRecoveryErrorStatusSchema=c.startOnchainRecoveryErrorStatusSchema;exports.startOnchainRecoverySchema=c.startOnchainRecoverySchema;exports.isBraveBrowser=ye.isBraveBrowser;exports.getUAParserResult=h.getUAParserResult;exports.isBrowser=h.isBrowser;exports.isChromeBrowser=h.isChromeBrowser;exports.isEdgeBrowser=h.isEdgeBrowser;exports.isFirefoxBrowser=h.isFirefoxBrowser;exports.isSafariBrowser=h.isSafariBrowser;exports.seedphraseSchema=Ce.seedphraseSchema;Object.defineProperty(exports,"MultiSigner",{enumerable:!0,get:()=>z.MultiSigner});exports.getSignerForMultiSigner=z.getSignerForMultiSigner;exports.mergeOwnerGuardianSignatures=De.mergeOwnerGuardianSignatures;exports.buildSellOptsSchema=i.buildSellOptsSchema;exports.investmentMetaSchema=i.investmentMetaSchema;exports.investmentSchema=i.investmentSchema;exports.investmentsResponseSchema=i.investmentsResponseSchema;exports.lendingInvestmentSchema=i.lendingInvestmentSchema;exports.liquidStakingInvestmentSchema=i.liquidStakingInvestmentSchema;exports.stakerInfoSchema=i.stakerInfoSchema;exports.stakingActionSchema=i.stakingActionSchema;exports.strkDelegatedStakingInvestmentSchema=i.strkDelegatedStakingInvestmentSchema;exports.strkStakingCalldataResponseSchema=i.strkStakingCalldataResponseSchema;exports.strkStakingCalldataSchema=i.strkStakingCalldataSchema;exports.containsValue=j.containsValue;exports.replaceValueRecursively=j.replaceValueRecursively;exports.mergeArrayStableWith=K.mergeArrayStableWith;exports.optionsWithDefaults=K.optionsWithDefaults;exports.getTokenBalance=F.getTokenBalance;exports.getTokens=F.getTokens;exports.getTokensBalances=F.getTokensBalances;exports.useToken=F.useToken;exports.DEFAULT_TOKEN_DECIMALS=Ee.DEFAULT_TOKEN_DECIMALS;exports.convertCurrencyValueToTokenAmount=ve.convertCurrencyValueToTokenAmount;exports.convertTokenAmountToCurrencyValue=Fe.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=qe.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=be.ensureDecimals;exports.isUnlimitedAmount=fe.isUnlimitedAmount;exports.prettifyCurrencyValue=Ne.prettifyCurrencyValue;exports.PRETTY_UNLIMITED=$.PRETTY_UNLIMITED;exports.prettifyTokenAmount=$.prettifyTokenAmount;exports.getCurrencySymbol=Pe.getCurrencySymbol;exports.TokenServiceWeb=Re.TokenServiceWeb;Object.defineProperty(exports,"TOKEN_ERROR_MESSAGES",{enumerable:!0,get:()=>X.TOKEN_ERROR_MESSAGES});exports.TokenError=X.TokenError;exports.apiAccountTokenBalancesSchema=a.apiAccountTokenBalancesSchema;exports.apiAirdropSchema=a.apiAirdropSchema;exports.apiCollateralizedDebtPositionSchema=a.apiCollateralizedDebtPositionSchema;exports.apiCollateralizedDebtPositionsSchema=a.apiCollateralizedDebtPositionsSchema;exports.apiConcentratedLiquidityPositionSchema=a.apiConcentratedLiquidityPositionSchema;exports.apiConcentratedLiquidityPositionsSchema=a.apiConcentratedLiquidityPositionsSchema;exports.apiDefiDecompositionProduct=a.apiDefiDecompositionProduct;exports.apiDefiDecompositionProducts=a.apiDefiDecompositionProducts;exports.apiDefiDecompositionSchema=a.apiDefiDecompositionSchema;exports.apiDefiDecompositionToken=a.apiDefiDecompositionToken;exports.apiDefiPositionSchema=a.apiDefiPositionSchema;exports.apiDefiPositionsSchema=a.apiDefiPositionsSchema;exports.apiDelegatedTokensArraySchema=a.apiDelegatedTokensArraySchema;exports.apiDelegatedTokensSchema=a.apiDelegatedTokensSchema;exports.apiPriceDataResponseSchema=a.apiPriceDataResponseSchema;exports.apiPriceDetailsSchema=a.apiPriceDetailsSchema;exports.apiStakingPositionSchema=a.apiStakingPositionSchema;exports.apiStakingPositionsSchema=a.apiStakingPositionsSchema;exports.apiStrkDelegatedStakingPositionsSchema=a.apiStrkDelegatedStakingPositionsSchema;exports.apiStrkDelegatedStakingSchema=a.apiStrkDelegatedStakingSchema;exports.apiTokenInfoResponseSchema=a.apiTokenInfoResponseSchema;exports.apiTokenInfoSchema=a.apiTokenInfoSchema;exports.apiTokensInfoResponseSchema=a.apiTokensInfoResponseSchema;exports.apiUnclaimedRewardsSchema=a.apiUnclaimedRewardsSchema;exports.collateralizedDebtGroupSchema=s.collateralizedDebtGroupSchema;exports.collateralizedDebtPositionSchema=s.collateralizedDebtPositionSchema;exports.collateralizedDebtPositionsSchema=s.collateralizedDebtPositionsSchema;exports.concentratedLiquidityPositionSchema=s.concentratedLiquidityPositionSchema;exports.concentratedLiquidityPositionsSchema=s.concentratedLiquidityPositionsSchema;exports.defiDappsProductsSchema=s.defiDappsProductsSchema;exports.defiPositionSchema=s.defiPositionSchema;exports.defiProductSchema=s.defiProductSchema;exports.defiProductsSchema=s.defiProductsSchema;exports.delegatedTokensArraySchema=s.delegatedTokensArraySchema;exports.delegatedTokensSchema=s.delegatedTokensSchema;exports.productGroupsSchema=s.productGroupsSchema;exports.stakingPositionSchema=s.stakingPositionSchema;exports.stakingPositionsSchema=s.stakingPositionsSchema;exports.strkDelegatedStakingPositionArraySchema=s.strkDelegatedStakingPositionArraySchema;exports.strkDelegatedStakingPositionSchema=s.strkDelegatedStakingPositionSchema;exports.defiPositionTypeSchema=Be.defiPositionTypeSchema;exports.airdropSchema=Y.airdropSchema;exports.unclaimedRewardsSchema=Y.unclaimedRewardsSchema;exports.webBaseTokenSchema=S.webBaseTokenSchema;exports.webBaseTokenWithBalanceSchema=S.webBaseTokenWithBalanceSchema;exports.webTokenInfoDetailsSchema=S.webTokenInfoDetailsSchema;exports.webTokenPriceDetailsSchema=S.webTokenPriceDetailsSchema;exports.webTokenSchema=S.webTokenSchema;exports.webTokenWithBalanceAndPriceSchema=S.webTokenWithBalanceAndPriceSchema;exports.webTokenWithBalanceSchema=S.webTokenWithBalanceSchema;exports.webTokenWithPriceSchema=S.webTokenWithPriceSchema;exports.webTokensWithBalanceAndPriceSchema=S.webTokensWithBalanceAndPriceSchema;exports.isCollateralizedDebtPosition=A.isCollateralizedDebtPosition;exports.isConcentratedLiquidityPosition=A.isConcentratedLiquidityPosition;exports.isDelegatedTokens=A.isDelegatedTokens;exports.isStaking=A.isStaking;exports.isStrkDelegatedStaking=A.isStrkDelegatedStaking;exports.inputAmountSchema=w.inputAmountSchema;exports.isValidInputAmount=w.isValidInputAmount;exports.parseAmount=w.parseAmount;exports.erc20TransferTransaction=_.erc20TransferTransaction;exports.erc721SafeTransferFromTransaction=_.erc721SafeTransferFromTransaction;exports.erc721TransferFromTransaction=_.erc721TransferFromTransaction;exports.getMessageFromTrpcError=Z.getMessageFromTrpcError;exports.trpcErrorSchema=Z.trpcErrorSchema;exports.FEE_OVERHEAD=V.FEE_OVERHEAD;exports.argentMaxFee=V.argentMaxFee;exports.modifySnjsFeeOverhead=V.modifySnjsFeeOverhead;Object.defineProperty(exports,"ESTIMATE_ERROR_MESSAGES",{enumerable:!0,get:()=>Q.ESTIMATE_ERROR_MESSAGES});exports.EstimateError=Q.EstimateError;exports.transactionReviewTransactionsSchema=Ie.transactionReviewTransactionsSchema;exports.buildDummyTx=n.buildDummyTx;exports.calculateCubeRootAdjustment=n.calculateCubeRootAdjustment;exports.calculateNonLinearAdjustment=n.calculateNonLinearAdjustment;exports.calculateSqrtAdjustment=n.calculateSqrtAdjustment;exports.castFeeEstimation=n.castFeeEstimation;exports.estimatedFeeToMaxFeeTotal=n.estimatedFeeToMaxFeeTotal;exports.estimatedFeeToMaxResourceBounds=n.estimatedFeeToMaxResourceBounds;exports.estimatedFeeToTotal=n.estimatedFeeToTotal;exports.estimatedFeesToMaxFeeTotal=n.estimatedFeesToMaxFeeTotal;exports.estimatedFeesToTotal=n.estimatedFeesToTotal;exports.getEstimatedFeeFromBulkSimulation=n.getEstimatedFeeFromBulkSimulation;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFee=n.getEstimatedFeeFromSimulationAndRespectWatermarkFee;exports.getPayloadFromTransaction=n.getPayloadFromTransaction;exports.getWatermarkedMaxFeeTotal=n.getWatermarkedMaxFeeTotal;exports.isFRI=n.isFRI;exports.isWEI=n.isWEI;exports.multiplyBigIntByFloat=n.multiplyBigIntByFloat;exports.toMax=n.toMax;exports.tokensRequireTxV3Support=n.tokensRequireTxV3Support;exports.unitToFeeTokenAddress=n.unitToFeeTokenAddress;exports.estimatedFeesToMaxFeeTotalV2=o.estimatedFeesToMaxFeeTotalV2;exports.estimatedFeesToTotalV2=o.estimatedFeesToTotalV2;exports.filterPaymasterEstimatedFees=o.filterPaymasterEstimatedFees;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2=o.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2;exports.getNativeEstimatedFeeByFeeToken=o.getNativeEstimatedFeeByFeeToken;exports.getNativeEstimatedFeeByTxVersion=o.getNativeEstimatedFeeByTxVersion;exports.getNativeEstimatedFeeForAccount=o.getNativeEstimatedFeeForAccount;exports.getNativeEstimatedFees=o.getNativeEstimatedFees;exports.getNativeFeeFromSimulation=o.getNativeFeeFromSimulation;exports.getNativeFeeTokenAddress=o.getNativeFeeTokenAddress;exports.getPaymasterFeeFromSimulation=o.getPaymasterFeeFromSimulation;exports.EventsBySelector=J.EventsBySelector;exports.findTransfersAndApprovals=J.findTransfersAndApprovals;exports.getPrettyRpcError=we.getPrettyRpcError;exports.getAccountTxVersion=p.getAccountTxVersion;exports.getSimulationTxVersionFromFeeToken=p.getSimulationTxVersionFromFeeToken;exports.getTxVersionForDeclareContract=p.getTxVersionForDeclareContract;exports.getTxVersionFromFeeToken=p.getTxVersionFromFeeToken;exports.getTxVersionFromFeeTokenForDeclareContract=p.getTxVersionFromFeeTokenForDeclareContract;exports.TransactionReviewServiceWeb=_e.TransactionReviewServiceWeb;exports.transactionReviewWarningSchema=Ve.transactionReviewWarningSchema;exports.apiTransactionReviewActivityType=Oe.apiTransactionReviewActivityType;exports.denyTxV3=ee.denyTxV3;exports.txVersionSchema=ee.txVersionSchema;exports.classHashSupportsTxV3=ae.classHashSupportsTxV3;exports.feeTokenNeedsTxV3Support=ae.feeTokenNeedsTxV3Support;exports.transactionExecutionResponseSchema=O.transactionExecutionResponseSchema;exports.transactionPromotionPrizeSchema=O.transactionPromotionPrizeSchema;exports.transactionPromotionSchema=O.transactionPromotionSchema;exports.formatAddress=He.formatAddress;exports.ensureArray=Le.ensureArray;exports.generateAvatarImage=q.generateAvatarImage;exports.getColor=q.getColor;exports.getNetworkAccountImageUrl=q.getNetworkAccountImageUrl;exports.stripAddressZeroPadding=q.stripAddressZeroPadding;exports.decodeBase58=b.decodeBase58;exports.decodeBase58Array=b.decodeBase58Array;exports.encodeBase58=b.encodeBase58;exports.encodeBase58Array=b.encodeBase58Array;exports.bigNumberSchema=xe.bigNumberSchema;exports.daysBetween=We.daysBetween;exports.isFeatureEnabled=Me.isFeatureEnabled;exports.hexSchema=te.hexSchema;exports.hexSchemaBase=te.hexSchemaBase;exports.id=Ue.id;exports.getInitials=Ge.getInitials;exports.isContractDeployed=ze.isContractDeployed;exports.nonNullable=je.nonNullable;exports.isAllowedAddressHexInputValue=Ke.isAllowedAddressHexInputValue;exports.isAllowedNumericInputValue=$e.isAllowedNumericInputValue;exports.isNumeric=Xe.isNumeric;exports.prettifyCurrencyNumber=f.prettifyCurrencyNumber;exports.prettifyNumber=f.prettifyNumber;exports.prettifyNumberConfig=f.prettifyNumberConfig;exports.prettifyTokenNumber=f.prettifyTokenNumber;exports.abbreviateNumber=Ye.abbreviateNumber;exports.getUint256CalldataFromBN=re.getUint256CalldataFromBN;exports.parseAmountValue=re.parseAmountValue;exports.pluralise=Ze.pluralise;exports.readFileAsString=Qe.readFileAsString;exports.booleanToStringSchema=N.booleanToStringSchema;exports.createSchemaWithWarnings=N.createSchemaWithWarnings;exports.safeParseAndWarn=N.safeParseAndWarn;exports.stringToBooleanSchema=N.stringToBooleanSchema;exports.addOwnersCalldataSchema=r.addOwnersCalldataSchema;exports.addPluginCalldataSchema=r.addPluginCalldataSchema;exports.bigNumberishSchema=r.bigNumberishSchema;exports.callDetailsSchema=r.callDetailsSchema;exports.callSchema=r.callSchema;exports.calldataSchema=r.calldataSchema;exports.changeGuardianCalldataSchema=r.changeGuardianCalldataSchema;exports.changeThresholdCalldataSchema=r.changeThresholdCalldataSchema;exports.escapeGuardianCalldataSchema=r.escapeGuardianCalldataSchema;exports.executeOnPluginCalldataSchema=r.executeOnPluginCalldataSchema;exports.feltSchema=r.feltSchema;exports.looseCalldataSchema=r.looseCalldataSchema;exports.multiTypeSchema=r.multiTypeSchema;exports.rawArgsArraySchema=r.rawArgsArraySchema;exports.rawArgsObjectSchema=r.rawArgsObjectSchema;exports.rawArgsSchema=r.rawArgsSchema;exports.removeOwnersCalldataSchema=r.removeOwnersCalldataSchema;exports.removePluginCalldataSchema=r.removePluginCalldataSchema;exports.replaceSignerCalldataSchema=r.replaceSignerCalldataSchema;exports.transferCalldataSchema=r.transferCalldataSchema;exports.typedDataSchema=r.typedDataSchema;exports.uint256Schema=r.uint256Schema;exports.abiEntrySchema=t.abiEntrySchema;exports.abiSchema=t.abiSchema;exports.builtinsSchema=t.builtinsSchema;exports.byteCodeSchema=t.byteCodeSchema;exports.cairo1EventSchema=t.cairo1EventSchema;exports.cairoAssemblySchema=t.cairoAssemblySchema;exports.compiledContractClassSchema=t.compiledContractClassSchema;exports.compiledSierraCasmSchema=t.compiledSierraCasmSchema;exports.compiledSierraSchema=t.compiledSierraSchema;exports.compressedProgramSchema=t.compressedProgramSchema;exports.contractEntryPointFieldsSchema=t.contractEntryPointFieldsSchema;exports.entryPointsByTypeSchema=t.entryPointsByTypeSchema;exports.eventAbiSchema=t.eventAbiSchema;exports.eventEntrySchema=t.eventEntrySchema;exports.functionAbiSchema=t.functionAbiSchema;exports.functionAbiTypeSchema=t.functionAbiTypeSchema;exports.legacyContractClassSchema=t.legacyContractClassSchema;exports.legacyEventSchema=t.legacyEventSchema;exports.programSchema=t.programSchema;exports.pythonicHintsSchema=t.pythonicHintsSchema;exports.sierraContractEntryPointFieldsSchema=t.sierraContractEntryPointFieldsSchema;exports.sierraEntryPointsByTypeSchema=t.sierraEntryPointsByTypeSchema;exports.sierraProgramDebugInfoSchema=t.sierraProgramDebugInfoSchema;exports.structAbiSchema=t.structAbiSchema;exports.entryPointToHumanReadable=Je.entryPointToHumanReadable;exports.urlWithQuery=ea.urlWithQuery;exports.voidify=aa.voidify;exports.bipsToPercent=ta.bipsToPercent;exports.retryUntilInitialised=ra.retryUntilInitialised;exports.CurrencyFetchService=na.CurrencyFetchService;exports.currenciesDetailsSchema=ne.currenciesDetailsSchema;exports.currencyDetailsSchema=ne.currencyDetailsSchema;
|
package/dist/index.js
CHANGED
|
@@ -5,14 +5,14 @@ import { AddSmartAccountResponseSchema as s, AddSmartAcountRequestSchema as i, B
|
|
|
5
5
|
import { isAccountV4 as p, isAccountV5 as l, isAccountV6 as h } from "./src/account/accountv4.js";
|
|
6
6
|
import { preferencesEndpointPayload as u, preferencesSchema as g } from "./src/account/preferences.model.js";
|
|
7
7
|
import { argentBackendNetworkIdSchema as x, argentNetworkIdSchema as T, isArgentBackendNetworkId as k, isArgentNetworkId as C } from "./src/backend/schema.js";
|
|
8
|
-
import { backendSessionAllowedMethodSchema as E, backendSessionMetadataSchema as D, backendSessionSchema as F, backendSessionTxFeeSchema as
|
|
8
|
+
import { backendSessionAllowedMethodSchema as E, backendSessionMetadataSchema as D, backendSessionSchema as F, backendSessionTxFeeSchema as v } from "./src/backend/sessionKeys/schema.js";
|
|
9
9
|
import { CacheService as N } from "./src/cache/CacheService.js";
|
|
10
10
|
import { addressOrEmptyUndefinedSchema as b, addressSchema as B, addressSchemaArgentBackend as I, addressSchemaBase as w, addressSchemaLooseLength as _, addressSchemaStrictLength as V, formatFullAddress as L, formatTruncatedAddress as H, formatTruncatedSignerKey as O, formatTruncatedString as M, getAddressOrEmptyUndefinedSchema as W, getAddressSchema as U, getAddressSchemaArgentBackend as q, getAddressSchemaBase as G, getAddressSchemaLooseLength as z, getAddressSchemaStrictLength as K, getAddressValidationSchemas as j, getValidChecksumAddressSchema as X, getValidateAddressRangeSchema as Y, includesAddress as Z, isAddress as Q, isBase58Address as J, isEqualAddress as $, isValidAddress as ee, isValidHexString as ae, isZeroAddress as re, normalizeAddress as te, normalizeAddressForCompare as oe, validChecksumAddressSchema as ne, validateAddressRangeSchema as me } from "./src/chains/starknet/address.js";
|
|
11
11
|
import { addressOrDomainInputSchema as ie, addressOrDomainSchema as ce, isEqualStarknetDomainName as Se, isStarknetDomainName as de, normalizeAddressOrDomain as pe, starknetDomainNameSchema as le } from "./src/chains/starknet/addressDomain.js";
|
|
12
12
|
import { addressInputCharactersAndLengthSchema as fe, addressInputSchema as ue } from "./src/chains/starknet/addressInput.js";
|
|
13
13
|
import { argentNameSchema as Ae, isArgentName as xe, isEqualArgentName as Te, normalizeArgentName as ke } from "./src/chains/starknet/argentName.js";
|
|
14
14
|
import { cairoVersionSchema as ye } from "./src/chains/starknet/cairoVersionSchema.js";
|
|
15
|
-
import { ETH_TOKEN_ADDRESS as De, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as Fe, STRK_TOKEN_ADDRESS as
|
|
15
|
+
import { ETH_TOKEN_ADDRESS as De, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as Fe, STRK_TOKEN_ADDRESS as ve, TXV1_ACCOUNT_CLASS_HASH as Re, TXV1_MULTISIG_CLASS_HASH as Ne, TXV3_ACCOUNT_CLASS_HASH as Pe, TXV3_MULTISIG_CLASS_HASH as be } from "./src/chains/starknet/constants.js";
|
|
16
16
|
import { apiWalletResponseSchema as Ie, getAddressFromArgentName as we } from "./src/chains/starknet/getAddressFromArgentName.js";
|
|
17
17
|
import { getAddressFromStarkName as Ve, getCallFromStarkName as Le, getStarknetIdContractAddressFromNetworkId as He, starkNameToCallDataDomain as Oe } from "./src/chains/starknet/getAddressFromStarkName.js";
|
|
18
18
|
import { getArgentNetwork as We, getChainIdFromNetworkId as Ue } from "./src/chains/starknet/network.js";
|
|
@@ -25,7 +25,7 @@ import { isEqualStarknetId as ua, isStarknetId as ga, normalizeStarknetId as Aa,
|
|
|
25
25
|
import { DateService as ka } from "./src/http/DateService.js";
|
|
26
26
|
import { HttpError as ya } from "./src/http/HttpError.js";
|
|
27
27
|
import { HTTPService as Da } from "./src/http/HttpService.js";
|
|
28
|
-
import { HTTP_ERROR_MESSAGE as
|
|
28
|
+
import { HTTP_ERROR_MESSAGE as va } from "./src/http/IHttpService.js";
|
|
29
29
|
import { SWRService as Na } from "./src/http/SWRService.js";
|
|
30
30
|
import { fetchData as ba, fetcherError as Ba, postData as Ia } from "./src/http/fetcher.js";
|
|
31
31
|
import { getBackendTimeNowSeconds as _a, getBackendTimeSeconds as Va } from "./src/http/time.js";
|
|
@@ -39,7 +39,7 @@ import { equalNft as nr, getNftPicture as mr } from "./src/nfts/utils.js";
|
|
|
39
39
|
import { OnchainRecoveryService as ir } from "./src/onchainRecovery/OnchainRecoveryService.js";
|
|
40
40
|
import { RecoveryStatusEnum as Sr, StartOnchainRecoveryErrorStatusEnum as dr, activeOnchainRecoverySchema as pr, onchainRecoverySchema as lr, recoveryBaseSchema as hr, recoveryBodySchema as fr, recoveryStatusSchema as ur, startOnchainRecoveryErrorSchema as gr, startOnchainRecoveryErrorStatusSchema as Ar, startOnchainRecoverySchema as xr } from "./src/onchainRecovery/schema.js";
|
|
41
41
|
import { isBraveBrowser as kr } from "./src/platform/isBraveBrowser.js";
|
|
42
|
-
import { getUAParserResult as yr, isBrowser as Er, isChromeBrowser as Dr, isEdgeBrowser as Fr, isFirefoxBrowser as
|
|
42
|
+
import { getUAParserResult as yr, isBrowser as Er, isChromeBrowser as Dr, isEdgeBrowser as Fr, isFirefoxBrowser as vr, isSafariBrowser as Rr } from "./src/platform/isBrowser.js";
|
|
43
43
|
import { seedphraseSchema as Pr } from "./src/signer/seedphrase.js";
|
|
44
44
|
import { MultiSigner as Br, getSignerForMultiSigner as Ir } from "./src/signer/multisigner.js";
|
|
45
45
|
import { mergeOwnerGuardianSignatures as _r } from "./src/signer/mergeOwnerGuardianSignatures.js";
|
|
@@ -57,12 +57,12 @@ import { prettifyCurrencyValue as At } from "./src/tokens/prettifyCurrencyValue.
|
|
|
57
57
|
import { PRETTY_UNLIMITED as Tt, prettifyTokenAmount as kt } from "./src/tokens/prettifyTokenAmount.js";
|
|
58
58
|
import { getCurrencySymbol as yt } from "./src/tokens/getCurrencySymbol.js";
|
|
59
59
|
import { TokenServiceWeb as Dt } from "./src/tokens/service/implementation.js";
|
|
60
|
-
import { TOKEN_ERROR_MESSAGES as
|
|
60
|
+
import { TOKEN_ERROR_MESSAGES as vt, TokenError as Rt } from "./src/tokens/service/tokenError.js";
|
|
61
61
|
import { apiAccountTokenBalancesSchema as Pt, apiAirdropSchema as bt, apiCollateralizedDebtPositionSchema as Bt, apiCollateralizedDebtPositionsSchema as It, apiConcentratedLiquidityPositionSchema as wt, apiConcentratedLiquidityPositionsSchema as _t, apiDefiDecompositionProduct as Vt, apiDefiDecompositionProducts as Lt, apiDefiDecompositionSchema as Ht, apiDefiDecompositionToken as Ot, apiDefiPositionSchema as Mt, apiDefiPositionsSchema as Wt, apiDelegatedTokensArraySchema as Ut, apiDelegatedTokensSchema as qt, apiPriceDataResponseSchema as Gt, apiPriceDetailsSchema as zt, apiStakingPositionSchema as Kt, apiStakingPositionsSchema as jt, apiStrkDelegatedStakingPositionsSchema as Xt, apiStrkDelegatedStakingSchema as Yt, apiTokenInfoResponseSchema as Zt, apiTokenInfoSchema as Qt, apiTokensInfoResponseSchema as Jt, apiUnclaimedRewardsSchema as $t } from "./src/tokens/service/types/backend.model.js";
|
|
62
62
|
import { collateralizedDebtGroupSchema as ao, collateralizedDebtPositionSchema as ro, collateralizedDebtPositionsSchema as to, concentratedLiquidityPositionSchema as oo, concentratedLiquidityPositionsSchema as no, defiDappsProductsSchema as mo, defiPositionSchema as so, defiProductSchema as io, defiProductsSchema as co, delegatedTokensArraySchema as So, delegatedTokensSchema as po, productGroupsSchema as lo, stakingPositionSchema as ho, stakingPositionsSchema as fo, strkDelegatedStakingPositionArraySchema as uo, strkDelegatedStakingPositionSchema as go } from "./src/tokens/service/types/defiPosition.model.js";
|
|
63
63
|
import { defiPositionTypeSchema as xo } from "./src/tokens/service/types/defiPositionType.model.js";
|
|
64
64
|
import { airdropSchema as ko, unclaimedRewardsSchema as Co } from "./src/tokens/service/types/unclaimedRewards.model.js";
|
|
65
|
-
import { webBaseTokenSchema as Eo, webBaseTokenWithBalanceSchema as Do, webTokenInfoDetailsSchema as Fo, webTokenPriceDetailsSchema as
|
|
65
|
+
import { webBaseTokenSchema as Eo, webBaseTokenWithBalanceSchema as Do, webTokenInfoDetailsSchema as Fo, webTokenPriceDetailsSchema as vo, webTokenSchema as Ro, webTokenWithBalanceAndPriceSchema as No, webTokenWithBalanceSchema as Po, webTokenWithPriceSchema as bo, webTokensWithBalanceAndPriceSchema as Bo } from "./src/tokens/service/types/webToken.model.js";
|
|
66
66
|
import { isCollateralizedDebtPosition as wo, isConcentratedLiquidityPosition as _o, isDelegatedTokens as Vo, isStaking as Lo, isStrkDelegatedStaking as Ho } from "./src/tokens/utils.js";
|
|
67
67
|
import { inputAmountSchema as Mo, isValidInputAmount as Wo, parseAmount as Uo } from "./src/transactions/amount.js";
|
|
68
68
|
import { erc20TransferTransaction as Go, erc721SafeTransferFromTransaction as zo, erc721TransferFromTransaction as Ko } from "./src/transactions/buildTransactions.js";
|
|
@@ -71,7 +71,7 @@ import { FEE_OVERHEAD as Qo, argentMaxFee as Jo, modifySnjsFeeOverhead as $o } f
|
|
|
71
71
|
import { ESTIMATE_ERROR_MESSAGES as an, EstimateError as rn } from "./src/transactions/estimate/error.js";
|
|
72
72
|
import { transactionReviewTransactionsSchema as on } from "./src/transactions/estimate/model.js";
|
|
73
73
|
import { buildDummyTx as mn, calculateCubeRootAdjustment as sn, calculateNonLinearAdjustment as cn, calculateSqrtAdjustment as Sn, castFeeEstimation as dn, estimatedFeeToMaxFeeTotal as pn, estimatedFeeToMaxResourceBounds as ln, estimatedFeeToTotal as hn, estimatedFeesToMaxFeeTotal as fn, estimatedFeesToTotal as un, getEstimatedFeeFromBulkSimulation as gn, getEstimatedFeeFromSimulationAndRespectWatermarkFee as An, getPayloadFromTransaction as xn, getWatermarkedMaxFeeTotal as Tn, isFRI as kn, isWEI as Cn, multiplyBigIntByFloat as yn, toMax as En, tokensRequireTxV3Support as Dn, unitToFeeTokenAddress as Fn } from "./src/transactions/estimate/utils.js";
|
|
74
|
-
import { estimatedFeesToMaxFeeTotalV2 as
|
|
74
|
+
import { estimatedFeesToMaxFeeTotalV2 as Rn, estimatedFeesToTotalV2 as Nn, filterPaymasterEstimatedFees as Pn, getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2 as bn, getNativeEstimatedFeeByFeeToken as Bn, getNativeEstimatedFeeByTxVersion as In, getNativeEstimatedFeeForAccount as wn, getNativeEstimatedFees as _n, getNativeFeeFromSimulation as Vn, getNativeFeeTokenAddress as Ln, getPaymasterFeeFromSimulation as Hn } from "./src/transactions/estimate/utilsV2.js";
|
|
75
75
|
import { EventsBySelector as Mn, findTransfersAndApprovals as Wn } from "./src/transactions/findTransfersAndApprovals.js";
|
|
76
76
|
import { getPrettyRpcError as qn } from "./src/transactions/getPrettyRcpError.js";
|
|
77
77
|
import { getAccountTxVersion as zn, getSimulationTxVersionFromFeeToken as Kn, getTxVersionForDeclareContract as jn, getTxVersionFromFeeToken as Xn, getTxVersionFromFeeTokenForDeclareContract as Yn } from "./src/transactions/getTransactionVersion.js";
|
|
@@ -85,7 +85,7 @@ import { formatAddress as lm } from "./src/utils/address.js";
|
|
|
85
85
|
import { ensureArray as fm } from "./src/utils/arrays.js";
|
|
86
86
|
import { generateAvatarImage as gm, getColor as Am, getNetworkAccountImageUrl as xm, stripAddressZeroPadding as Tm } from "./src/utils/avatarImage.js";
|
|
87
87
|
import { decodeBase58 as Cm, decodeBase58Array as ym, encodeBase58 as Em, encodeBase58Array as Dm } from "./src/utils/base58.js";
|
|
88
|
-
import { bigNumberSchema as
|
|
88
|
+
import { bigNumberSchema as vm } from "./src/utils/bigNumber.js";
|
|
89
89
|
import { daysBetween as Nm } from "./src/utils/daysBetween.js";
|
|
90
90
|
import { isFeatureEnabled as bm } from "./src/utils/env.js";
|
|
91
91
|
import { hexSchema as Im, hexSchemaBase as wm } from "./src/utils/hex.js";
|
|
@@ -102,13 +102,15 @@ import { getUint256CalldataFromBN as ts, parseAmountValue as os } from "./src/ut
|
|
|
102
102
|
import { pluralise as ms } from "./src/utils/pluralise.js";
|
|
103
103
|
import { readFileAsString as is } from "./src/utils/readFileAsString.js";
|
|
104
104
|
import { booleanToStringSchema as Ss, createSchemaWithWarnings as ds, safeParseAndWarn as ps, stringToBooleanSchema as ls } from "./src/utils/schemas.js";
|
|
105
|
-
import { addOwnersCalldataSchema as fs, addPluginCalldataSchema as us, bigNumberishSchema as gs, callDetailsSchema as As, callSchema as xs, calldataSchema as Ts, changeGuardianCalldataSchema as ks, changeThresholdCalldataSchema as Cs, escapeGuardianCalldataSchema as ys, executeOnPluginCalldataSchema as Es, feltSchema as Ds, looseCalldataSchema as Fs, multiTypeSchema as
|
|
105
|
+
import { addOwnersCalldataSchema as fs, addPluginCalldataSchema as us, bigNumberishSchema as gs, callDetailsSchema as As, callSchema as xs, calldataSchema as Ts, changeGuardianCalldataSchema as ks, changeThresholdCalldataSchema as Cs, escapeGuardianCalldataSchema as ys, executeOnPluginCalldataSchema as Es, feltSchema as Ds, looseCalldataSchema as Fs, multiTypeSchema as vs, rawArgsArraySchema as Rs, rawArgsObjectSchema as Ns, rawArgsSchema as Ps, removeOwnersCalldataSchema as bs, removePluginCalldataSchema as Bs, replaceSignerCalldataSchema as Is, transferCalldataSchema as ws, typedDataSchema as _s, uint256Schema as Vs } from "./src/utils/starknet/starknet.js";
|
|
106
106
|
import { abiEntrySchema as Hs, abiSchema as Os, builtinsSchema as Ms, byteCodeSchema as Ws, cairo1EventSchema as Us, cairoAssemblySchema as qs, compiledContractClassSchema as Gs, compiledSierraCasmSchema as zs, compiledSierraSchema as Ks, compressedProgramSchema as js, contractEntryPointFieldsSchema as Xs, entryPointsByTypeSchema as Ys, eventAbiSchema as Zs, eventEntrySchema as Qs, functionAbiSchema as Js, functionAbiTypeSchema as $s, legacyContractClassSchema as ei, legacyEventSchema as ai, programSchema as ri, pythonicHintsSchema as ti, sierraContractEntryPointFieldsSchema as oi, sierraEntryPointsByTypeSchema as ni, sierraProgramDebugInfoSchema as mi, structAbiSchema as si } from "./src/utils/starknet/starknetSchemas.js";
|
|
107
107
|
import { entryPointToHumanReadable as ci } from "./src/utils/transactions.js";
|
|
108
108
|
import { urlWithQuery as di } from "./src/utils/url/urlWithQuery.js";
|
|
109
109
|
import { voidify as li } from "./src/utils/voidify.js";
|
|
110
110
|
import { bipsToPercent as fi } from "./src/utils/bips.js";
|
|
111
111
|
import { retryUntilInitialised as gi } from "./src/utils/retryUntilInitialised.js";
|
|
112
|
+
import { CurrencyFetchService as xi } from "./src/currencyFetchService/CurrencyFetchService.js";
|
|
113
|
+
import { currenciesDetailsSchema as ki, currencyDetailsSchema as Ci } from "./src/currencyFetchService/types.ts.js";
|
|
112
114
|
export {
|
|
113
115
|
Ke as ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES,
|
|
114
116
|
je as ARGENT_MULTISIG_CONTRACT_CLASS_HASHES,
|
|
@@ -120,6 +122,7 @@ export {
|
|
|
120
122
|
t as BaseError,
|
|
121
123
|
Xe as C0_PROXY_CONTRACT_CLASS_HASHES,
|
|
122
124
|
N as CacheService,
|
|
125
|
+
xi as CurrencyFetchService,
|
|
123
126
|
mt as DEFAULT_TOKEN_DECIMALS,
|
|
124
127
|
ka as DateService,
|
|
125
128
|
an as ESTIMATE_ERROR_MESSAGES,
|
|
@@ -128,7 +131,7 @@ export {
|
|
|
128
131
|
Mn as EventsBySelector,
|
|
129
132
|
Qo as FEE_OVERHEAD,
|
|
130
133
|
Da as HTTPService,
|
|
131
|
-
|
|
134
|
+
va as HTTP_ERROR_MESSAGE,
|
|
132
135
|
ya as HttpError,
|
|
133
136
|
Ha as KnownDappsBackendService,
|
|
134
137
|
Br as MultiSigner,
|
|
@@ -137,16 +140,16 @@ export {
|
|
|
137
140
|
Sr as RecoveryStatusEnum,
|
|
138
141
|
Xa as ResolveNameService,
|
|
139
142
|
Fe as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
|
|
140
|
-
|
|
143
|
+
ve as STRK_TOKEN_ADDRESS,
|
|
141
144
|
Na as SWRService,
|
|
142
145
|
Ge as StarknetAddressService,
|
|
143
146
|
dr as StartOnchainRecoveryErrorStatusEnum,
|
|
144
|
-
|
|
145
|
-
|
|
147
|
+
vt as TOKEN_ERROR_MESSAGES,
|
|
148
|
+
Re as TXV1_ACCOUNT_CLASS_HASH,
|
|
146
149
|
Ne as TXV1_MULTISIG_CLASS_HASH,
|
|
147
150
|
Pe as TXV3_ACCOUNT_CLASS_HASH,
|
|
148
151
|
be as TXV3_MULTISIG_CLASS_HASH,
|
|
149
|
-
|
|
152
|
+
Rt as TokenError,
|
|
150
153
|
Dt as TokenServiceWeb,
|
|
151
154
|
Qn as TransactionReviewServiceWeb,
|
|
152
155
|
as as abbreviateNumber,
|
|
@@ -199,10 +202,10 @@ export {
|
|
|
199
202
|
E as backendSessionAllowedMethodSchema,
|
|
200
203
|
D as backendSessionMetadataSchema,
|
|
201
204
|
F as backendSessionSchema,
|
|
202
|
-
|
|
205
|
+
v as backendSessionTxFeeSchema,
|
|
203
206
|
S as baseWalletAccountSchema,
|
|
204
207
|
e as bigDecimal,
|
|
205
|
-
|
|
208
|
+
vm as bigNumberSchema,
|
|
206
209
|
gs as bigNumberishSchema,
|
|
207
210
|
fi as bipsToPercent,
|
|
208
211
|
Ss as booleanToStringSchema,
|
|
@@ -241,6 +244,8 @@ export {
|
|
|
241
244
|
St as convertTokenAmountToCurrencyValue,
|
|
242
245
|
pt as convertTokenUnitAmountWithDecimals,
|
|
243
246
|
ds as createSchemaWithWarnings,
|
|
247
|
+
ki as currenciesDetailsSchema,
|
|
248
|
+
Ci as currencyDetailsSchema,
|
|
244
249
|
Ma as dappContractSchema,
|
|
245
250
|
Wa as dappLinkSchema,
|
|
246
251
|
Nm as daysBetween,
|
|
@@ -269,7 +274,7 @@ export {
|
|
|
269
274
|
ln as estimatedFeeToMaxResourceBounds,
|
|
270
275
|
hn as estimatedFeeToTotal,
|
|
271
276
|
fn as estimatedFeesToMaxFeeTotal,
|
|
272
|
-
|
|
277
|
+
Rn as estimatedFeesToMaxFeeTotalV2,
|
|
273
278
|
un as estimatedFeesToTotal,
|
|
274
279
|
Nn as estimatedFeesToTotalV2,
|
|
275
280
|
Zs as eventAbiSchema,
|
|
@@ -384,9 +389,9 @@ export {
|
|
|
384
389
|
ua as isEqualStarknetId,
|
|
385
390
|
kn as isFRI,
|
|
386
391
|
bm as isFeatureEnabled,
|
|
387
|
-
|
|
392
|
+
vr as isFirefoxBrowser,
|
|
388
393
|
Xm as isNumeric,
|
|
389
|
-
|
|
394
|
+
Rr as isSafariBrowser,
|
|
390
395
|
Lo as isStaking,
|
|
391
396
|
de as isStarknetDomainName,
|
|
392
397
|
ga as isStarknetId,
|
|
@@ -407,7 +412,7 @@ export {
|
|
|
407
412
|
Jr as mergeArrayStableWith,
|
|
408
413
|
_r as mergeOwnerGuardianSignatures,
|
|
409
414
|
$o as modifySnjsFeeOverhead,
|
|
410
|
-
|
|
415
|
+
vs as multiTypeSchema,
|
|
411
416
|
yn as multiplyBigIntByFloat,
|
|
412
417
|
Za as nameProviderResolutionSchema,
|
|
413
418
|
Qa as nameResolutionAddressSchema,
|
|
@@ -438,7 +443,7 @@ export {
|
|
|
438
443
|
ri as programSchema,
|
|
439
444
|
ar as providersNamesSchema,
|
|
440
445
|
ti as pythonicHintsSchema,
|
|
441
|
-
|
|
446
|
+
Rs as rawArgsArraySchema,
|
|
442
447
|
Ns as rawArgsObjectSchema,
|
|
443
448
|
Ps as rawArgsSchema,
|
|
444
449
|
is as readFileAsString,
|
|
@@ -495,8 +500,8 @@ export {
|
|
|
495
500
|
Eo as webBaseTokenSchema,
|
|
496
501
|
Do as webBaseTokenWithBalanceSchema,
|
|
497
502
|
Fo as webTokenInfoDetailsSchema,
|
|
498
|
-
|
|
499
|
-
|
|
503
|
+
vo as webTokenPriceDetailsSchema,
|
|
504
|
+
Ro as webTokenSchema,
|
|
500
505
|
No as webTokenWithBalanceAndPriceSchema,
|
|
501
506
|
Po as webTokenWithBalanceSchema,
|
|
502
507
|
bo as webTokenWithPriceSchema,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./types.ts.cjs");class s{constructor(r="",e){this.argentCurrencyUrl=r,this.httpService=e}async getCurrencies(){const r=await this.httpService.get(this.argentCurrencyUrl,{headers:{"Content-Type":"application/json"}}),e=t.currenciesDetailsSchema.safeParse(r);if(!e.success)throw new Error("Invalid response from currency API");return e.data}}exports.CurrencyFetchService=s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IHttpService } from '../http/IHttpService';
|
|
2
|
+
import { ICurrencyFetchService } from './ICurrencyFetchService';
|
|
3
|
+
import { CurrenciesDetails } from './types.ts';
|
|
4
|
+
export declare class CurrencyFetchService implements ICurrencyFetchService {
|
|
5
|
+
private readonly argentCurrencyUrl;
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(argentCurrencyUrl: string | undefined, httpService: IHttpService);
|
|
8
|
+
getCurrencies(): Promise<CurrenciesDetails>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { currenciesDetailsSchema as s } from "./types.ts.js";
|
|
2
|
+
class n {
|
|
3
|
+
constructor(r = "", e) {
|
|
4
|
+
this.argentCurrencyUrl = r, this.httpService = e;
|
|
5
|
+
}
|
|
6
|
+
async getCurrencies() {
|
|
7
|
+
const r = await this.httpService.get(this.argentCurrencyUrl, {
|
|
8
|
+
headers: {
|
|
9
|
+
"Content-Type": "application/json"
|
|
10
|
+
}
|
|
11
|
+
}), e = s.safeParse(r);
|
|
12
|
+
if (!e.success)
|
|
13
|
+
throw new Error("Invalid response from currency API");
|
|
14
|
+
return e.data;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
n as CurrencyFetchService
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),c=e.z.object({code:e.z.string(),symbol:e.z.string(),name:e.z.string(),decimals:e.z.number()}),r=e.z.object({currencies:e.z.array(c)});exports.currenciesDetailsSchema=r;exports.currencyDetailsSchema=c;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const currencyDetailsSchema: z.ZodObject<{
|
|
3
|
+
code: z.ZodString;
|
|
4
|
+
symbol: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
decimals: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
symbol: string;
|
|
9
|
+
code: string;
|
|
10
|
+
name: string;
|
|
11
|
+
decimals: number;
|
|
12
|
+
}, {
|
|
13
|
+
symbol: string;
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
decimals: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type CurrencyDetails = z.infer<typeof currencyDetailsSchema>;
|
|
19
|
+
export declare const currenciesDetailsSchema: z.ZodObject<{
|
|
20
|
+
currencies: z.ZodArray<z.ZodObject<{
|
|
21
|
+
code: z.ZodString;
|
|
22
|
+
symbol: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
decimals: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
symbol: string;
|
|
27
|
+
code: string;
|
|
28
|
+
name: string;
|
|
29
|
+
decimals: number;
|
|
30
|
+
}, {
|
|
31
|
+
symbol: string;
|
|
32
|
+
code: string;
|
|
33
|
+
name: string;
|
|
34
|
+
decimals: number;
|
|
35
|
+
}>, "many">;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
currencies: {
|
|
38
|
+
symbol: string;
|
|
39
|
+
code: string;
|
|
40
|
+
name: string;
|
|
41
|
+
decimals: number;
|
|
42
|
+
}[];
|
|
43
|
+
}, {
|
|
44
|
+
currencies: {
|
|
45
|
+
symbol: string;
|
|
46
|
+
code: string;
|
|
47
|
+
name: string;
|
|
48
|
+
decimals: number;
|
|
49
|
+
}[];
|
|
50
|
+
}>;
|
|
51
|
+
export type CurrenciesDetails = z.infer<typeof currenciesDetailsSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const r = e.object({
|
|
3
|
+
code: e.string(),
|
|
4
|
+
symbol: e.string(),
|
|
5
|
+
name: e.string(),
|
|
6
|
+
decimals: e.number()
|
|
7
|
+
}), s = e.object({
|
|
8
|
+
currencies: e.array(r)
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
s as currenciesDetailsSchema,
|
|
12
|
+
r as currencyDetailsSchema
|
|
13
|
+
};
|
package/dist/src/index.d.ts
CHANGED