@argent/x-shared 1.67.1 → 1.67.3
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 +389 -388
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.d.ts +1 -0
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +47 -35
- 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"),d=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"),I=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),g=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),S=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),D=require("./src/chains/starknet/starknetId.cjs"),Se=require("./src/http/DateService.cjs"),de=require("./src/http/HttpError.cjs"),le=require("./src/http/HttpService.cjs"),ue=require("./src/http/IHttpService.cjs"),he=require("./src/http/SWRService.cjs"),B=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"),b=require("./src/tokens/balances.cjs"),Ee=require("./src/tokens/constants.cjs"),De=require("./src/tokens/convertCurrencyValueToTokenAmount.cjs"),ve=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),be=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),qe=require("./src/tokens/ensureDecimals.cjs"),Fe=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"),m=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"),Be=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"),q=require("./src/utils/avatarImage.cjs"),F=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.isZeroAddress=e.isZeroAddress;exports.normalizeAddress=e.normalizeAddress;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=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=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=I.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=I.constructorCallDataSchemaC1V1;exports.implementationSchema=I.implementationSchema;exports.buildConstructorCalldata=g.buildConstructorCalldata;exports.findImplementationForAccount=g.findImplementationForAccount;exports.getAccountContractAddress=g.getAccountContractAddress;exports.getAccountDeploymentPayload=g.getAccountDeploymentPayload;exports.isEqualImplementation=g.isEqualImplementation;exports.getArgentAccountClassHashes=S.getArgentAccountClassHashes;exports.getArgentAccountClassHashesWithTxV3Support=S.getArgentAccountClassHashesWithTxV3Support;exports.getArgentAccountWithMultiSignerClassHashes=S.getArgentAccountWithMultiSignerClassHashes;exports.getLastCairo0ArgentAccountClassHash=S.getLastCairo0ArgentAccountClassHash;exports.getLatestArgentAccountClassHash=S.getLatestArgentAccountClassHash;exports.getLatestArgentMultisigClassHash=S.getLatestArgentMultisigClassHash;exports.getLatestLedgerAccountClassHash=S.getLatestLedgerAccountClassHash;exports.getLedgerAccountClassHashes=S.getLedgerAccountClassHashes;exports.isEqualStarknetId=D.isEqualStarknetId;exports.isStarknetId=D.isStarknetId;exports.normalizeStarknetId=D.normalizeStarknetId;exports.starknetIdSchema=D.starknetIdSchema;exports.DateService=Se.DateService;exports.HttpError=de.HttpError;exports.HTTPService=le.HTTPService;Object.defineProperty(exports,"HTTP_ERROR_MESSAGE",{enumerable:!0,get:()=>ue.HTTP_ERROR_MESSAGE});exports.SWRService=he.SWRService;exports.fetchData=B.fetchData;exports.fetcherError=B.fetcherError;exports.postData=B.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=b.getTokenBalance;exports.getTokens=b.getTokens;exports.getTokensBalances=b.getTokensBalances;exports.useToken=b.useToken;exports.DEFAULT_TOKEN_DECIMALS=Ee.DEFAULT_TOKEN_DECIMALS;exports.convertCurrencyValueToTokenAmount=De.convertCurrencyValueToTokenAmount;exports.convertTokenAmountToCurrencyValue=ve.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=be.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=qe.ensureDecimals;exports.isUnlimitedAmount=Fe.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=m.webBaseTokenSchema;exports.webBaseTokenWithBalanceSchema=m.webBaseTokenWithBalanceSchema;exports.webTokenInfoDetailsSchema=m.webTokenInfoDetailsSchema;exports.webTokenPriceDetailsSchema=m.webTokenPriceDetailsSchema;exports.webTokenSchema=m.webTokenSchema;exports.webTokenWithBalanceAndPriceSchema=m.webTokenWithBalanceAndPriceSchema;exports.webTokenWithBalanceSchema=m.webTokenWithBalanceSchema;exports.webTokenWithPriceSchema=m.webTokenWithPriceSchema;exports.webTokensWithBalanceAndPriceSchema=m.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=Be.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=q.generateAvatarImage;exports.getColor=q.getColor;exports.getNetworkAccountImageUrl=q.getNetworkAccountImageUrl;exports.stripAddressZeroPadding=q.stripAddressZeroPadding;exports.decodeBase58=F.decodeBase58;exports.decodeBase58Array=F.decodeBase58Array;exports.encodeBase58=F.encodeBase58;exports.encodeBase58Array=F.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 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"),d=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"),Se=require("./src/http/DateService.cjs"),de=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"),b=require("./src/tokens/balances.cjs"),Ee=require("./src/tokens/constants.cjs"),De=require("./src/tokens/convertCurrencyValueToTokenAmount.cjs"),ve=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),be=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),qe=require("./src/tokens/ensureDecimals.cjs"),Fe=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"),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"),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"),q=require("./src/utils/avatarImage.cjs"),F=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.isZeroAddress=e.isZeroAddress;exports.normalizeAddress=e.normalizeAddress;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=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=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=Se.DateService;exports.HttpError=de.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=b.getTokenBalance;exports.getTokens=b.getTokens;exports.getTokensBalances=b.getTokensBalances;exports.useToken=b.useToken;exports.DEFAULT_TOKEN_DECIMALS=Ee.DEFAULT_TOKEN_DECIMALS;exports.convertCurrencyValueToTokenAmount=De.convertCurrencyValueToTokenAmount;exports.convertTokenAmountToCurrencyValue=ve.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=be.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=qe.ensureDecimals;exports.isUnlimitedAmount=Fe.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=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=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=q.generateAvatarImage;exports.getColor=q.getColor;exports.getNetworkAccountImageUrl=q.getNetworkAccountImageUrl;exports.stripAddressZeroPadding=q.stripAddressZeroPadding;exports.decodeBase58=F.decodeBase58;exports.decodeBase58Array=F.decodeBase58Array;exports.encodeBase58=F.encodeBase58;exports.encodeBase58Array=F.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;
|
package/dist/index.js
CHANGED
|
@@ -20,95 +20,95 @@ import { StarknetAddressService as Ue } from "./src/chains/starknet/services/add
|
|
|
20
20
|
import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as Ge, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as ze, C0_PROXY_CONTRACT_CLASS_HASHES as Ke } from "./src/chains/starknet/services/deploymentData/constants.js";
|
|
21
21
|
import { constructorCallDataSchemaC0 as Xe, constructorCallDataSchemaC1V1 as Ye, implementationSchema as Ze } from "./src/chains/starknet/services/deploymentData/deploymentData.schema.js";
|
|
22
22
|
import { buildConstructorCalldata as Je, findImplementationForAccount as $e, getAccountContractAddress as ea, getAccountDeploymentPayload as aa, isEqualImplementation as ta } from "./src/chains/starknet/services/deploymentData/findImplementationForAccount.js";
|
|
23
|
-
import {
|
|
24
|
-
import { isEqualStarknetId as
|
|
25
|
-
import { DateService as
|
|
26
|
-
import { HttpError as
|
|
27
|
-
import { HTTPService as
|
|
28
|
-
import { HTTP_ERROR_MESSAGE as
|
|
29
|
-
import { SWRService as
|
|
30
|
-
import { fetchData as
|
|
31
|
-
import { getBackendTimeNowSeconds as
|
|
32
|
-
import { KnownDappsBackendService as
|
|
33
|
-
import { dappContractSchema as
|
|
34
|
-
import { getDapplandLinkForDapp as
|
|
35
|
-
import { ResolveNameService as
|
|
36
|
-
import { nameProviderResolutionSchema as
|
|
37
|
-
import { BackendNftService as
|
|
38
|
-
import { equalNft as
|
|
39
|
-
import { OnchainRecoveryService as
|
|
40
|
-
import { RecoveryStatusEnum as
|
|
41
|
-
import { isBraveBrowser as
|
|
42
|
-
import { getUAParserResult as
|
|
43
|
-
import { seedphraseSchema as
|
|
44
|
-
import { MultiSigner as
|
|
45
|
-
import { mergeOwnerGuardianSignatures as
|
|
46
|
-
import { buildSellOptsSchema as
|
|
47
|
-
import { containsValue as
|
|
48
|
-
import { mergeArrayStableWith as
|
|
49
|
-
import { getTokenBalance as
|
|
50
|
-
import { DEFAULT_TOKEN_DECIMALS as
|
|
51
|
-
import { convertCurrencyValueToTokenAmount as
|
|
52
|
-
import { convertTokenAmountToCurrencyValue as
|
|
53
|
-
import { convertTokenUnitAmountWithDecimals as
|
|
54
|
-
import { ensureDecimals as
|
|
55
|
-
import { isUnlimitedAmount as
|
|
56
|
-
import { prettifyCurrencyValue as
|
|
57
|
-
import { PRETTY_UNLIMITED as
|
|
58
|
-
import { getCurrencySymbol as
|
|
59
|
-
import { TokenServiceWeb as
|
|
60
|
-
import { TOKEN_ERROR_MESSAGES as
|
|
61
|
-
import { apiAccountTokenBalancesSchema as
|
|
62
|
-
import { collateralizedDebtGroupSchema as
|
|
63
|
-
import { defiPositionTypeSchema as
|
|
64
|
-
import { airdropSchema as
|
|
65
|
-
import { webBaseTokenSchema as
|
|
66
|
-
import { isCollateralizedDebtPosition as
|
|
67
|
-
import { inputAmountSchema as
|
|
68
|
-
import { erc20TransferTransaction as
|
|
69
|
-
import { getMessageFromTrpcError as
|
|
70
|
-
import { FEE_OVERHEAD as
|
|
71
|
-
import { ESTIMATE_ERROR_MESSAGES as
|
|
72
|
-
import { transactionReviewTransactionsSchema as
|
|
73
|
-
import { buildDummyTx as
|
|
74
|
-
import { estimatedFeesToMaxFeeTotalV2 as
|
|
75
|
-
import { EventsBySelector as
|
|
76
|
-
import { getPrettyRpcError as
|
|
77
|
-
import { getAccountTxVersion as
|
|
78
|
-
import { TransactionReviewServiceWeb as
|
|
79
|
-
import { transactionReviewWarningSchema as
|
|
80
|
-
import { apiTransactionReviewActivityType as
|
|
81
|
-
import { denyTxV3 as
|
|
82
|
-
import { classHashSupportsTxV3 as
|
|
83
|
-
import { transactionExecutionResponseSchema as
|
|
84
|
-
import { formatAddress as
|
|
85
|
-
import { ensureArray as
|
|
86
|
-
import { generateAvatarImage as
|
|
87
|
-
import { decodeBase58 as
|
|
88
|
-
import { bigNumberSchema as
|
|
89
|
-
import { daysBetween as
|
|
90
|
-
import { isFeatureEnabled as
|
|
91
|
-
import { hexSchema as
|
|
92
|
-
import { id as
|
|
93
|
-
import { getInitials as
|
|
94
|
-
import { isContractDeployed as
|
|
95
|
-
import { nonNullable as
|
|
96
|
-
import { isAllowedAddressHexInputValue as
|
|
97
|
-
import { isAllowedNumericInputValue as
|
|
98
|
-
import { isNumeric as
|
|
99
|
-
import { prettifyCurrencyNumber as
|
|
100
|
-
import { abbreviateNumber as
|
|
101
|
-
import { getUint256CalldataFromBN as
|
|
102
|
-
import { pluralise as
|
|
103
|
-
import { readFileAsString as
|
|
104
|
-
import { booleanToStringSchema as
|
|
105
|
-
import { addOwnersCalldataSchema as
|
|
106
|
-
import { abiEntrySchema as
|
|
107
|
-
import { entryPointToHumanReadable as
|
|
108
|
-
import { urlWithQuery as
|
|
109
|
-
import { voidify as
|
|
110
|
-
import { bipsToPercent as
|
|
111
|
-
import { retryUntilInitialised as
|
|
23
|
+
import { getAccountVersionByClasshash as oa, getArgentAccountClassHashes as na, getArgentAccountClassHashesWithTxV3Support as ma, getArgentAccountWithMultiSignerClassHashes as sa, getLastCairo0ArgentAccountClassHash as ia, getLatestArgentAccountClassHash as ca, getLatestArgentMultisigClassHash as Sa, getLatestLedgerAccountClassHash as da, getLedgerAccountClassHashes as pa } from "./src/chains/starknet/services/deploymentData/getAccountClassHash.js";
|
|
24
|
+
import { isEqualStarknetId as ha, isStarknetId as fa, normalizeStarknetId as ua, starknetIdSchema as ga } from "./src/chains/starknet/starknetId.js";
|
|
25
|
+
import { DateService as xa } from "./src/http/DateService.js";
|
|
26
|
+
import { HttpError as ka } from "./src/http/HttpError.js";
|
|
27
|
+
import { HTTPService as ya } from "./src/http/HttpService.js";
|
|
28
|
+
import { HTTP_ERROR_MESSAGE as Da } from "./src/http/IHttpService.js";
|
|
29
|
+
import { SWRService as Ra } from "./src/http/SWRService.js";
|
|
30
|
+
import { fetchData as Na, fetcherError as Pa, postData as ba } from "./src/http/fetcher.js";
|
|
31
|
+
import { getBackendTimeNowSeconds as Ia, getBackendTimeSeconds as wa } from "./src/http/time.js";
|
|
32
|
+
import { KnownDappsBackendService as Va } from "./src/knownDapps/KnownDappsBackendService.js";
|
|
33
|
+
import { dappContractSchema as Oa, dappLinkSchema as Ha, knownDappSchema as Ma, knownDappsSchema as Wa } from "./src/knownDapps/schema.js";
|
|
34
|
+
import { getDapplandLinkForDapp as qa, getDapplandUrlForDapp as Ga } from "./src/knownDapps/utils/getDapplandUrl.js";
|
|
35
|
+
import { ResolveNameService as Ka } from "./src/nameResolution/ResolveNameService.js";
|
|
36
|
+
import { nameProviderResolutionSchema as Xa, nameResolutionAddressSchema as Ya, nameResolutionAddressesSchema as Za, nameResolutionStarknetIdSchema as Qa, nameResolutionStarknetIdsSchema as Ja, providersNamesSchema as $a } from "./src/nameResolution/schema.js";
|
|
37
|
+
import { BackendNftService as at } from "./src/nfts/BackendNftService.js";
|
|
38
|
+
import { equalNft as rt, getNftPicture as ot } from "./src/nfts/utils.js";
|
|
39
|
+
import { OnchainRecoveryService as mt } from "./src/onchainRecovery/OnchainRecoveryService.js";
|
|
40
|
+
import { RecoveryStatusEnum as it, StartOnchainRecoveryErrorStatusEnum as ct, activeOnchainRecoverySchema as St, onchainRecoverySchema as dt, recoveryBaseSchema as pt, recoveryBodySchema as lt, recoveryStatusSchema as ht, startOnchainRecoveryErrorSchema as ft, startOnchainRecoveryErrorStatusSchema as ut, startOnchainRecoverySchema as gt } from "./src/onchainRecovery/schema.js";
|
|
41
|
+
import { isBraveBrowser as xt } from "./src/platform/isBraveBrowser.js";
|
|
42
|
+
import { getUAParserResult as kt, isBrowser as Ct, isChromeBrowser as yt, isEdgeBrowser as Et, isFirefoxBrowser as Dt, isSafariBrowser as Ft } from "./src/platform/isBrowser.js";
|
|
43
|
+
import { seedphraseSchema as vt } from "./src/signer/seedphrase.js";
|
|
44
|
+
import { MultiSigner as Pt, getSignerForMultiSigner as bt } from "./src/signer/multisigner.js";
|
|
45
|
+
import { mergeOwnerGuardianSignatures as It } from "./src/signer/mergeOwnerGuardianSignatures.js";
|
|
46
|
+
import { buildSellOptsSchema as _t, investmentMetaSchema as Vt, investmentSchema as Lt, investmentsResponseSchema as Ot, lendingInvestmentSchema as Ht, liquidStakingInvestmentSchema as Mt, stakerInfoSchema as Wt, stakingActionSchema as Ut, strkDelegatedStakingInvestmentSchema as qt, strkStakingCalldataResponseSchema as Gt, strkStakingCalldataSchema as zt } from "./src/staking/schema.js";
|
|
47
|
+
import { containsValue as jt, replaceValueRecursively as Xt } from "./src/storage/utils.js";
|
|
48
|
+
import { mergeArrayStableWith as Zt, optionsWithDefaults as Qt } from "./src/storage/base.js";
|
|
49
|
+
import { getTokenBalance as $t, getTokens as er, getTokensBalances as ar, useToken as tr } from "./src/tokens/balances.js";
|
|
50
|
+
import { DEFAULT_TOKEN_DECIMALS as or } from "./src/tokens/constants.js";
|
|
51
|
+
import { convertCurrencyValueToTokenAmount as mr } from "./src/tokens/convertCurrencyValueToTokenAmount.js";
|
|
52
|
+
import { convertTokenAmountToCurrencyValue as ir } from "./src/tokens/convertTokenAmountToCurrencyValue.js";
|
|
53
|
+
import { convertTokenUnitAmountWithDecimals as Sr } from "./src/tokens/convertTokenUnitAmountWithDecimals.js";
|
|
54
|
+
import { ensureDecimals as pr } from "./src/tokens/ensureDecimals.js";
|
|
55
|
+
import { isUnlimitedAmount as hr } from "./src/tokens/isUnlimitedAmount.js";
|
|
56
|
+
import { prettifyCurrencyValue as ur } from "./src/tokens/prettifyCurrencyValue.js";
|
|
57
|
+
import { PRETTY_UNLIMITED as Ar, prettifyTokenAmount as xr } from "./src/tokens/prettifyTokenAmount.js";
|
|
58
|
+
import { getCurrencySymbol as kr } from "./src/tokens/getCurrencySymbol.js";
|
|
59
|
+
import { TokenServiceWeb as yr } from "./src/tokens/service/implementation.js";
|
|
60
|
+
import { TOKEN_ERROR_MESSAGES as Dr, TokenError as Fr } from "./src/tokens/service/tokenError.js";
|
|
61
|
+
import { apiAccountTokenBalancesSchema as vr, apiAirdropSchema as Nr, apiCollateralizedDebtPositionSchema as Pr, apiCollateralizedDebtPositionsSchema as br, apiConcentratedLiquidityPositionSchema as Br, apiConcentratedLiquidityPositionsSchema as Ir, apiDefiDecompositionProduct as wr, apiDefiDecompositionProducts as _r, apiDefiDecompositionSchema as Vr, apiDefiDecompositionToken as Lr, apiDefiPositionSchema as Or, apiDefiPositionsSchema as Hr, apiDelegatedTokensArraySchema as Mr, apiDelegatedTokensSchema as Wr, apiPriceDataResponseSchema as Ur, apiPriceDetailsSchema as qr, apiStakingPositionSchema as Gr, apiStakingPositionsSchema as zr, apiStrkDelegatedStakingPositionsSchema as Kr, apiStrkDelegatedStakingSchema as jr, apiTokenInfoResponseSchema as Xr, apiTokenInfoSchema as Yr, apiTokensInfoResponseSchema as Zr, apiUnclaimedRewardsSchema as Qr } from "./src/tokens/service/types/backend.model.js";
|
|
62
|
+
import { collateralizedDebtGroupSchema as $r, collateralizedDebtPositionSchema as eo, collateralizedDebtPositionsSchema as ao, concentratedLiquidityPositionSchema as to, concentratedLiquidityPositionsSchema as ro, defiDappsProductsSchema as oo, defiPositionSchema as no, defiProductSchema as mo, defiProductsSchema as so, delegatedTokensArraySchema as io, delegatedTokensSchema as co, productGroupsSchema as So, stakingPositionSchema as po, stakingPositionsSchema as lo, strkDelegatedStakingPositionArraySchema as ho, strkDelegatedStakingPositionSchema as fo } from "./src/tokens/service/types/defiPosition.model.js";
|
|
63
|
+
import { defiPositionTypeSchema as go } from "./src/tokens/service/types/defiPositionType.model.js";
|
|
64
|
+
import { airdropSchema as xo, unclaimedRewardsSchema as To } from "./src/tokens/service/types/unclaimedRewards.model.js";
|
|
65
|
+
import { webBaseTokenSchema as Co, webBaseTokenWithBalanceSchema as yo, webTokenInfoDetailsSchema as Eo, webTokenPriceDetailsSchema as Do, webTokenSchema as Fo, webTokenWithBalanceAndPriceSchema as Ro, webTokenWithBalanceSchema as vo, webTokenWithPriceSchema as No, webTokensWithBalanceAndPriceSchema as Po } from "./src/tokens/service/types/webToken.model.js";
|
|
66
|
+
import { isCollateralizedDebtPosition as Bo, isConcentratedLiquidityPosition as Io, isDelegatedTokens as wo, isStaking as _o, isStrkDelegatedStaking as Vo } from "./src/tokens/utils.js";
|
|
67
|
+
import { inputAmountSchema as Oo, isValidInputAmount as Ho, parseAmount as Mo } from "./src/transactions/amount.js";
|
|
68
|
+
import { erc20TransferTransaction as Uo, erc721SafeTransferFromTransaction as qo, erc721TransferFromTransaction as Go } from "./src/transactions/buildTransactions.js";
|
|
69
|
+
import { getMessageFromTrpcError as Ko, trpcErrorSchema as jo } from "./src/transactions/errors.js";
|
|
70
|
+
import { FEE_OVERHEAD as Yo, argentMaxFee as Zo, modifySnjsFeeOverhead as Qo } from "./src/transactions/estimate/argentMaxFee.js";
|
|
71
|
+
import { ESTIMATE_ERROR_MESSAGES as $o, EstimateError as en } from "./src/transactions/estimate/error.js";
|
|
72
|
+
import { transactionReviewTransactionsSchema as tn } from "./src/transactions/estimate/model.js";
|
|
73
|
+
import { buildDummyTx as on, calculateCubeRootAdjustment as nn, calculateNonLinearAdjustment as mn, calculateSqrtAdjustment as sn, castFeeEstimation as cn, estimatedFeeToMaxFeeTotal as Sn, estimatedFeeToMaxResourceBounds as dn, estimatedFeeToTotal as pn, estimatedFeesToMaxFeeTotal as ln, estimatedFeesToTotal as hn, getEstimatedFeeFromBulkSimulation as fn, getEstimatedFeeFromSimulationAndRespectWatermarkFee as un, getPayloadFromTransaction as gn, getWatermarkedMaxFeeTotal as An, isFRI as xn, isWEI as Tn, multiplyBigIntByFloat as kn, toMax as Cn, tokensRequireTxV3Support as yn, unitToFeeTokenAddress as En } from "./src/transactions/estimate/utils.js";
|
|
74
|
+
import { estimatedFeesToMaxFeeTotalV2 as Fn, estimatedFeesToTotalV2 as Rn, filterPaymasterEstimatedFees as vn, getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2 as Nn, getNativeEstimatedFeeByFeeToken as Pn, getNativeEstimatedFeeByTxVersion as bn, getNativeEstimatedFeeForAccount as Bn, getNativeEstimatedFees as In, getNativeFeeFromSimulation as wn, getNativeFeeTokenAddress as _n, getPaymasterFeeFromSimulation as Vn } from "./src/transactions/estimate/utilsV2.js";
|
|
75
|
+
import { EventsBySelector as On, findTransfersAndApprovals as Hn } from "./src/transactions/findTransfersAndApprovals.js";
|
|
76
|
+
import { getPrettyRpcError as Wn } from "./src/transactions/getPrettyRcpError.js";
|
|
77
|
+
import { getAccountTxVersion as qn, getSimulationTxVersionFromFeeToken as Gn, getTxVersionForDeclareContract as zn, getTxVersionFromFeeToken as Kn, getTxVersionFromFeeTokenForDeclareContract as jn } from "./src/transactions/getTransactionVersion.js";
|
|
78
|
+
import { TransactionReviewServiceWeb as Yn } from "./src/transactions/service/implementation.js";
|
|
79
|
+
import { transactionReviewWarningSchema as Qn } from "./src/transactions/service/types.js";
|
|
80
|
+
import { apiTransactionReviewActivityType as $n } from "./src/transactions/transactionReviewTypes.js";
|
|
81
|
+
import { denyTxV3 as am, txVersionSchema as tm } from "./src/transactions/transactionVersion.js";
|
|
82
|
+
import { classHashSupportsTxV3 as om, feeTokenNeedsTxV3Support as nm } from "./src/transactions/txv3.js";
|
|
83
|
+
import { transactionExecutionResponseSchema as sm, transactionPromotionPrizeSchema as im, transactionPromotionSchema as cm } from "./src/transactions/transactionExecuteTypes.js";
|
|
84
|
+
import { formatAddress as dm } from "./src/utils/address.js";
|
|
85
|
+
import { ensureArray as lm } from "./src/utils/arrays.js";
|
|
86
|
+
import { generateAvatarImage as fm, getColor as um, getNetworkAccountImageUrl as gm, stripAddressZeroPadding as Am } from "./src/utils/avatarImage.js";
|
|
87
|
+
import { decodeBase58 as Tm, decodeBase58Array as km, encodeBase58 as Cm, encodeBase58Array as ym } from "./src/utils/base58.js";
|
|
88
|
+
import { bigNumberSchema as Dm } from "./src/utils/bigNumber.js";
|
|
89
|
+
import { daysBetween as Rm } from "./src/utils/daysBetween.js";
|
|
90
|
+
import { isFeatureEnabled as Nm } from "./src/utils/env.js";
|
|
91
|
+
import { hexSchema as bm, hexSchemaBase as Bm } from "./src/utils/hex.js";
|
|
92
|
+
import { id as wm } from "./src/utils/id.js";
|
|
93
|
+
import { getInitials as Vm } from "./src/utils/initials.js";
|
|
94
|
+
import { isContractDeployed as Om } from "./src/utils/isContractDeployed.js";
|
|
95
|
+
import { nonNullable as Mm } from "./src/utils/nonNullable.js";
|
|
96
|
+
import { isAllowedAddressHexInputValue as Um } from "./src/utils/number/isAllowedAddressHexInputValue.js";
|
|
97
|
+
import { isAllowedNumericInputValue as Gm } from "./src/utils/number/isAllowedNumericInputValue.js";
|
|
98
|
+
import { isNumeric as Km } from "./src/utils/number/isNumeric.js";
|
|
99
|
+
import { prettifyCurrencyNumber as Xm, prettifyNumber as Ym, prettifyNumberConfig as Zm, prettifyTokenNumber as Qm } from "./src/utils/number/prettifyNumber.js";
|
|
100
|
+
import { abbreviateNumber as $m } from "./src/utils/number/abbreviateNumber.js";
|
|
101
|
+
import { getUint256CalldataFromBN as as, parseAmountValue as ts } from "./src/utils/parseAmount.js";
|
|
102
|
+
import { pluralise as os } from "./src/utils/pluralise.js";
|
|
103
|
+
import { readFileAsString as ms } from "./src/utils/readFileAsString.js";
|
|
104
|
+
import { booleanToStringSchema as is, createSchemaWithWarnings as cs, safeParseAndWarn as Ss, stringToBooleanSchema as ds } from "./src/utils/schemas.js";
|
|
105
|
+
import { addOwnersCalldataSchema as ls, addPluginCalldataSchema as hs, bigNumberishSchema as fs, callDetailsSchema as us, callSchema as gs, calldataSchema as As, changeGuardianCalldataSchema as xs, changeThresholdCalldataSchema as Ts, escapeGuardianCalldataSchema as ks, executeOnPluginCalldataSchema as Cs, feltSchema as ys, looseCalldataSchema as Es, multiTypeSchema as Ds, rawArgsArraySchema as Fs, rawArgsObjectSchema as Rs, rawArgsSchema as vs, removeOwnersCalldataSchema as Ns, removePluginCalldataSchema as Ps, replaceSignerCalldataSchema as bs, transferCalldataSchema as Bs, typedDataSchema as Is, uint256Schema as ws } from "./src/utils/starknet/starknet.js";
|
|
106
|
+
import { abiEntrySchema as Vs, abiSchema as Ls, builtinsSchema as Os, byteCodeSchema as Hs, cairo1EventSchema as Ms, cairoAssemblySchema as Ws, compiledContractClassSchema as Us, compiledSierraCasmSchema as qs, compiledSierraSchema as Gs, compressedProgramSchema as zs, contractEntryPointFieldsSchema as Ks, entryPointsByTypeSchema as js, eventAbiSchema as Xs, eventEntrySchema as Ys, functionAbiSchema as Zs, functionAbiTypeSchema as Qs, legacyContractClassSchema as Js, legacyEventSchema as $s, programSchema as ei, pythonicHintsSchema as ai, sierraContractEntryPointFieldsSchema as ti, sierraEntryPointsByTypeSchema as ri, sierraProgramDebugInfoSchema as oi, structAbiSchema as ni } from "./src/utils/starknet/starknetSchemas.js";
|
|
107
|
+
import { entryPointToHumanReadable as si } from "./src/utils/transactions.js";
|
|
108
|
+
import { urlWithQuery as ci } from "./src/utils/url/urlWithQuery.js";
|
|
109
|
+
import { voidify as di } from "./src/utils/voidify.js";
|
|
110
|
+
import { bipsToPercent as li } from "./src/utils/bips.js";
|
|
111
|
+
import { retryUntilInitialised as fi } from "./src/utils/retryUntilInitialised.js";
|
|
112
112
|
export {
|
|
113
113
|
Ge as ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES,
|
|
114
114
|
ze as ARGENT_MULTISIG_CONTRACT_CLASS_HASHES,
|
|
@@ -116,45 +116,45 @@ export {
|
|
|
116
116
|
s as AddSmartAccountResponseSchema,
|
|
117
117
|
i as AddSmartAcountRequestSchema,
|
|
118
118
|
c as BackendAccountSchema,
|
|
119
|
-
|
|
119
|
+
at as BackendNftService,
|
|
120
120
|
r as BaseError,
|
|
121
121
|
Ke as C0_PROXY_CONTRACT_CLASS_HASHES,
|
|
122
122
|
N as CacheService,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
or as DEFAULT_TOKEN_DECIMALS,
|
|
124
|
+
xa as DateService,
|
|
125
|
+
$o as ESTIMATE_ERROR_MESSAGES,
|
|
126
126
|
ye as ETH_TOKEN_ADDRESS,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
127
|
+
en as EstimateError,
|
|
128
|
+
On as EventsBySelector,
|
|
129
|
+
Yo as FEE_OVERHEAD,
|
|
130
|
+
ya as HTTPService,
|
|
131
|
+
Da as HTTP_ERROR_MESSAGE,
|
|
132
|
+
ka as HttpError,
|
|
133
|
+
Va as KnownDappsBackendService,
|
|
134
|
+
Pt as MultiSigner,
|
|
135
|
+
mt as OnchainRecoveryService,
|
|
136
|
+
Ar as PRETTY_UNLIMITED,
|
|
137
|
+
it as RecoveryStatusEnum,
|
|
138
|
+
Ka as ResolveNameService,
|
|
139
139
|
Ee as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
|
|
140
140
|
De as STRK_TOKEN_ADDRESS,
|
|
141
|
-
|
|
141
|
+
Ra as SWRService,
|
|
142
142
|
Ue as StarknetAddressService,
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
ct as StartOnchainRecoveryErrorStatusEnum,
|
|
144
|
+
Dr as TOKEN_ERROR_MESSAGES,
|
|
145
145
|
Fe as TXV1_ACCOUNT_CLASS_HASH,
|
|
146
146
|
Re as TXV1_MULTISIG_CLASS_HASH,
|
|
147
147
|
ve as TXV3_ACCOUNT_CLASS_HASH,
|
|
148
148
|
Ne as TXV3_MULTISIG_CLASS_HASH,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
149
|
+
Fr as TokenError,
|
|
150
|
+
yr as TokenServiceWeb,
|
|
151
|
+
Yn as TransactionReviewServiceWeb,
|
|
152
|
+
$m as abbreviateNumber,
|
|
153
|
+
Vs as abiEntrySchema,
|
|
154
|
+
Ls as abiSchema,
|
|
155
|
+
St as activeOnchainRecoverySchema,
|
|
156
|
+
ls as addOwnersCalldataSchema,
|
|
157
|
+
hs as addPluginCalldataSchema,
|
|
158
158
|
le as addressInputCharactersAndLengthSchema,
|
|
159
159
|
he as addressInputSchema,
|
|
160
160
|
me as addressOrDomainInputSchema,
|
|
@@ -165,35 +165,35 @@ export {
|
|
|
165
165
|
w as addressSchemaBase,
|
|
166
166
|
_ as addressSchemaLooseLength,
|
|
167
167
|
V as addressSchemaStrictLength,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
168
|
+
xo as airdropSchema,
|
|
169
|
+
vr as apiAccountTokenBalancesSchema,
|
|
170
|
+
Nr as apiAirdropSchema,
|
|
171
|
+
Pr as apiCollateralizedDebtPositionSchema,
|
|
172
|
+
br as apiCollateralizedDebtPositionsSchema,
|
|
173
|
+
Br as apiConcentratedLiquidityPositionSchema,
|
|
174
|
+
Ir as apiConcentratedLiquidityPositionsSchema,
|
|
175
|
+
wr as apiDefiDecompositionProduct,
|
|
176
|
+
_r as apiDefiDecompositionProducts,
|
|
177
|
+
Vr as apiDefiDecompositionSchema,
|
|
178
|
+
Lr as apiDefiDecompositionToken,
|
|
179
|
+
Or as apiDefiPositionSchema,
|
|
180
|
+
Hr as apiDefiPositionsSchema,
|
|
181
|
+
Mr as apiDelegatedTokensArraySchema,
|
|
182
|
+
Wr as apiDelegatedTokensSchema,
|
|
183
|
+
Ur as apiPriceDataResponseSchema,
|
|
184
|
+
qr as apiPriceDetailsSchema,
|
|
185
|
+
Gr as apiStakingPositionSchema,
|
|
186
|
+
zr as apiStakingPositionsSchema,
|
|
187
|
+
Kr as apiStrkDelegatedStakingPositionsSchema,
|
|
188
|
+
jr as apiStrkDelegatedStakingSchema,
|
|
189
|
+
Xr as apiTokenInfoResponseSchema,
|
|
190
|
+
Yr as apiTokenInfoSchema,
|
|
191
|
+
Zr as apiTokensInfoResponseSchema,
|
|
192
|
+
$n as apiTransactionReviewActivityType,
|
|
193
|
+
Qr as apiUnclaimedRewardsSchema,
|
|
194
194
|
be as apiWalletResponseSchema,
|
|
195
195
|
x as argentBackendNetworkIdSchema,
|
|
196
|
-
|
|
196
|
+
Zo as argentMaxFee,
|
|
197
197
|
ue as argentNameSchema,
|
|
198
198
|
T as argentNetworkIdSchema,
|
|
199
199
|
E as backendSessionAllowedMethodSchema,
|
|
@@ -202,97 +202,98 @@ export {
|
|
|
202
202
|
R as backendSessionTxFeeSchema,
|
|
203
203
|
S as baseWalletAccountSchema,
|
|
204
204
|
e as bigDecimal,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
Dm as bigNumberSchema,
|
|
206
|
+
fs as bigNumberishSchema,
|
|
207
|
+
li as bipsToPercent,
|
|
208
|
+
is as booleanToStringSchema,
|
|
209
209
|
Je as buildConstructorCalldata,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
210
|
+
on as buildDummyTx,
|
|
211
|
+
_t as buildSellOptsSchema,
|
|
212
|
+
Os as builtinsSchema,
|
|
213
|
+
Hs as byteCodeSchema,
|
|
214
|
+
Ms as cairo1EventSchema,
|
|
215
|
+
Ws as cairoAssemblySchema,
|
|
216
216
|
ke as cairoVersionSchema,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
217
|
+
nn as calculateCubeRootAdjustment,
|
|
218
|
+
mn as calculateNonLinearAdjustment,
|
|
219
|
+
sn as calculateSqrtAdjustment,
|
|
220
|
+
us as callDetailsSchema,
|
|
221
|
+
gs as callSchema,
|
|
222
|
+
As as calldataSchema,
|
|
223
|
+
cn as castFeeEstimation,
|
|
224
|
+
xs as changeGuardianCalldataSchema,
|
|
225
|
+
Ts as changeThresholdCalldataSchema,
|
|
226
|
+
om as classHashSupportsTxV3,
|
|
227
|
+
$r as collateralizedDebtGroupSchema,
|
|
228
|
+
eo as collateralizedDebtPositionSchema,
|
|
229
|
+
ao as collateralizedDebtPositionsSchema,
|
|
230
|
+
Us as compiledContractClassSchema,
|
|
231
|
+
qs as compiledSierraCasmSchema,
|
|
232
|
+
Gs as compiledSierraSchema,
|
|
233
|
+
zs as compressedProgramSchema,
|
|
234
|
+
to as concentratedLiquidityPositionSchema,
|
|
235
|
+
ro as concentratedLiquidityPositionsSchema,
|
|
236
236
|
Xe as constructorCallDataSchemaC0,
|
|
237
237
|
Ye as constructorCallDataSchemaC1V1,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
238
|
+
jt as containsValue,
|
|
239
|
+
Ks as contractEntryPointFieldsSchema,
|
|
240
|
+
mr as convertCurrencyValueToTokenAmount,
|
|
241
|
+
ir as convertTokenAmountToCurrencyValue,
|
|
242
|
+
Sr as convertTokenUnitAmountWithDecimals,
|
|
243
|
+
cs as createSchemaWithWarnings,
|
|
244
|
+
Oa as dappContractSchema,
|
|
245
|
+
Ha as dappLinkSchema,
|
|
246
|
+
Rm as daysBetween,
|
|
247
|
+
Tm as decodeBase58,
|
|
248
|
+
km as decodeBase58Array,
|
|
249
|
+
oo as defiDappsProductsSchema,
|
|
250
|
+
no as defiPositionSchema,
|
|
251
|
+
go as defiPositionTypeSchema,
|
|
252
|
+
mo as defiProductSchema,
|
|
253
|
+
so as defiProductsSchema,
|
|
254
|
+
io as delegatedTokensArraySchema,
|
|
255
|
+
co as delegatedTokensSchema,
|
|
256
|
+
am as denyTxV3,
|
|
257
|
+
Cm as encodeBase58,
|
|
258
|
+
ym as encodeBase58Array,
|
|
259
|
+
lm as ensureArray,
|
|
260
|
+
pr as ensureDecimals,
|
|
261
|
+
si as entryPointToHumanReadable,
|
|
262
|
+
js as entryPointsByTypeSchema,
|
|
263
|
+
rt as equalNft,
|
|
264
|
+
Uo as erc20TransferTransaction,
|
|
265
|
+
qo as erc721SafeTransferFromTransaction,
|
|
266
|
+
Go as erc721TransferFromTransaction,
|
|
267
|
+
ks as escapeGuardianCalldataSchema,
|
|
268
|
+
Sn as estimatedFeeToMaxFeeTotal,
|
|
269
|
+
dn as estimatedFeeToMaxResourceBounds,
|
|
270
|
+
pn as estimatedFeeToTotal,
|
|
271
|
+
ln as estimatedFeesToMaxFeeTotal,
|
|
272
|
+
Fn as estimatedFeesToMaxFeeTotalV2,
|
|
273
|
+
hn as estimatedFeesToTotal,
|
|
274
|
+
Rn as estimatedFeesToTotalV2,
|
|
275
|
+
Xs as eventAbiSchema,
|
|
276
|
+
Ys as eventEntrySchema,
|
|
277
|
+
Cs as executeOnPluginCalldataSchema,
|
|
278
|
+
nm as feeTokenNeedsTxV3Support,
|
|
279
|
+
ys as feltSchema,
|
|
280
|
+
Na as fetchData,
|
|
281
|
+
Pa as fetcherError,
|
|
282
|
+
vn as filterPaymasterEstimatedFees,
|
|
283
283
|
$e as findImplementationForAccount,
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
Hn as findTransfersAndApprovals,
|
|
285
|
+
dm as formatAddress,
|
|
286
286
|
L as formatFullAddress,
|
|
287
287
|
O as formatTruncatedAddress,
|
|
288
288
|
H as formatTruncatedSignerKey,
|
|
289
289
|
M as formatTruncatedString,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
Zs as functionAbiSchema,
|
|
291
|
+
Qs as functionAbiTypeSchema,
|
|
292
|
+
fm as generateAvatarImage,
|
|
293
293
|
ea as getAccountContractAddress,
|
|
294
294
|
aa as getAccountDeploymentPayload,
|
|
295
|
-
|
|
295
|
+
qn as getAccountTxVersion,
|
|
296
|
+
oa as getAccountVersionByClasshash,
|
|
296
297
|
Be as getAddressFromArgentName,
|
|
297
298
|
we as getAddressFromStarkName,
|
|
298
299
|
W as getAddressOrEmptyUndefinedSchema,
|
|
@@ -302,200 +303,200 @@ export {
|
|
|
302
303
|
z as getAddressSchemaLooseLength,
|
|
303
304
|
K as getAddressSchemaStrictLength,
|
|
304
305
|
j as getAddressValidationSchemas,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
na as getArgentAccountClassHashes,
|
|
307
|
+
ma as getArgentAccountClassHashesWithTxV3Support,
|
|
308
|
+
sa as getArgentAccountWithMultiSignerClassHashes,
|
|
308
309
|
He as getArgentNetwork,
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
Ia as getBackendTimeNowSeconds,
|
|
311
|
+
wa as getBackendTimeSeconds,
|
|
311
312
|
_e as getCallFromStarkName,
|
|
312
313
|
Me as getChainIdFromNetworkId,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
314
|
+
um as getColor,
|
|
315
|
+
kr as getCurrencySymbol,
|
|
316
|
+
qa as getDapplandLinkForDapp,
|
|
317
|
+
Ga as getDapplandUrlForDapp,
|
|
318
|
+
fn as getEstimatedFeeFromBulkSimulation,
|
|
319
|
+
un as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
|
|
320
|
+
Nn as getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2,
|
|
321
|
+
Vm as getInitials,
|
|
322
|
+
ia as getLastCairo0ArgentAccountClassHash,
|
|
323
|
+
ca as getLatestArgentAccountClassHash,
|
|
324
|
+
Sa as getLatestArgentMultisigClassHash,
|
|
325
|
+
da as getLatestLedgerAccountClassHash,
|
|
326
|
+
pa as getLedgerAccountClassHashes,
|
|
327
|
+
Ko as getMessageFromTrpcError,
|
|
328
|
+
Pn as getNativeEstimatedFeeByFeeToken,
|
|
329
|
+
bn as getNativeEstimatedFeeByTxVersion,
|
|
330
|
+
Bn as getNativeEstimatedFeeForAccount,
|
|
331
|
+
In as getNativeEstimatedFees,
|
|
332
|
+
wn as getNativeFeeFromSimulation,
|
|
333
|
+
_n as getNativeFeeTokenAddress,
|
|
334
|
+
gm as getNetworkAccountImageUrl,
|
|
335
|
+
ot as getNftPicture,
|
|
336
|
+
gn as getPayloadFromTransaction,
|
|
337
|
+
Vn as getPaymasterFeeFromSimulation,
|
|
338
|
+
Wn as getPrettyRpcError,
|
|
339
|
+
bt as getSignerForMultiSigner,
|
|
340
|
+
Gn as getSimulationTxVersionFromFeeToken,
|
|
340
341
|
Ve as getStarknetIdContractAddressFromNetworkId,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
342
|
+
$t as getTokenBalance,
|
|
343
|
+
er as getTokens,
|
|
344
|
+
ar as getTokensBalances,
|
|
345
|
+
zn as getTxVersionForDeclareContract,
|
|
346
|
+
Kn as getTxVersionFromFeeToken,
|
|
347
|
+
jn as getTxVersionFromFeeTokenForDeclareContract,
|
|
348
|
+
kt as getUAParserResult,
|
|
349
|
+
as as getUint256CalldataFromBN,
|
|
349
350
|
X as getValidChecksumAddressSchema,
|
|
350
351
|
Y as getValidateAddressRangeSchema,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
352
|
+
An as getWatermarkedMaxFeeTotal,
|
|
353
|
+
bm as hexSchema,
|
|
354
|
+
Bm as hexSchemaBase,
|
|
355
|
+
wm as id,
|
|
355
356
|
Ze as implementationSchema,
|
|
356
357
|
Z as includesAddress,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
358
|
+
Oo as inputAmountSchema,
|
|
359
|
+
Vt as investmentMetaSchema,
|
|
360
|
+
Lt as investmentSchema,
|
|
361
|
+
Ot as investmentsResponseSchema,
|
|
361
362
|
p as isAccountV4,
|
|
362
363
|
l as isAccountV5,
|
|
363
364
|
h as isAccountV6,
|
|
364
365
|
Q as isAddress,
|
|
365
|
-
|
|
366
|
-
|
|
366
|
+
Um as isAllowedAddressHexInputValue,
|
|
367
|
+
Gm as isAllowedNumericInputValue,
|
|
367
368
|
k as isArgentBackendNetworkId,
|
|
368
369
|
ge as isArgentName,
|
|
369
370
|
C as isArgentNetworkId,
|
|
370
371
|
J as isBase58Address,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
372
|
+
xt as isBraveBrowser,
|
|
373
|
+
Ct as isBrowser,
|
|
374
|
+
yt as isChromeBrowser,
|
|
375
|
+
Bo as isCollateralizedDebtPosition,
|
|
376
|
+
Io as isConcentratedLiquidityPosition,
|
|
377
|
+
Om as isContractDeployed,
|
|
378
|
+
wo as isDelegatedTokens,
|
|
379
|
+
Et as isEdgeBrowser,
|
|
379
380
|
$ as isEqualAddress,
|
|
380
381
|
Ae as isEqualArgentName,
|
|
381
382
|
ta as isEqualImplementation,
|
|
382
383
|
ie as isEqualStarknetDomainName,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
ha as isEqualStarknetId,
|
|
385
|
+
xn as isFRI,
|
|
386
|
+
Nm as isFeatureEnabled,
|
|
387
|
+
Dt as isFirefoxBrowser,
|
|
388
|
+
Km as isNumeric,
|
|
389
|
+
Ft as isSafariBrowser,
|
|
390
|
+
_o as isStaking,
|
|
390
391
|
ce as isStarknetDomainName,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
fa as isStarknetId,
|
|
393
|
+
Vo as isStrkDelegatedStaking,
|
|
394
|
+
hr as isUnlimitedAmount,
|
|
394
395
|
ee as isValidAddress,
|
|
395
|
-
|
|
396
|
-
|
|
396
|
+
Ho as isValidInputAmount,
|
|
397
|
+
Tn as isWEI,
|
|
397
398
|
ae as isZeroAddress,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
399
|
+
Ma as knownDappSchema,
|
|
400
|
+
Wa as knownDappsSchema,
|
|
401
|
+
Js as legacyContractClassSchema,
|
|
402
|
+
$s as legacyEventSchema,
|
|
403
|
+
Ht as lendingInvestmentSchema,
|
|
404
|
+
Mt as liquidStakingInvestmentSchema,
|
|
405
|
+
Es as looseCalldataSchema,
|
|
406
|
+
Zt as mergeArrayStableWith,
|
|
407
|
+
It as mergeOwnerGuardianSignatures,
|
|
408
|
+
Qo as modifySnjsFeeOverhead,
|
|
409
|
+
Ds as multiTypeSchema,
|
|
410
|
+
kn as multiplyBigIntByFloat,
|
|
411
|
+
Xa as nameProviderResolutionSchema,
|
|
412
|
+
Ya as nameResolutionAddressSchema,
|
|
413
|
+
Za as nameResolutionAddressesSchema,
|
|
414
|
+
Qa as nameResolutionStarknetIdSchema,
|
|
415
|
+
Ja as nameResolutionStarknetIdsSchema,
|
|
416
|
+
Mm as nonNullable,
|
|
416
417
|
te as normalizeAddress,
|
|
417
418
|
Se as normalizeAddressOrDomain,
|
|
418
419
|
xe as normalizeArgentName,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
420
|
+
ua as normalizeStarknetId,
|
|
421
|
+
dt as onchainRecoverySchema,
|
|
422
|
+
Qt as optionsWithDefaults,
|
|
423
|
+
Mo as parseAmount,
|
|
424
|
+
ts as parseAmountValue,
|
|
425
|
+
os as pluralise,
|
|
426
|
+
ba as postData,
|
|
426
427
|
u as preferencesEndpointPayload,
|
|
427
428
|
g as preferencesSchema,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
429
|
+
Xm as prettifyCurrencyNumber,
|
|
430
|
+
ur as prettifyCurrencyValue,
|
|
431
|
+
Ym as prettifyNumber,
|
|
432
|
+
Zm as prettifyNumberConfig,
|
|
433
|
+
xr as prettifyTokenAmount,
|
|
434
|
+
Qm as prettifyTokenNumber,
|
|
435
|
+
So as productGroupsSchema,
|
|
436
|
+
ei as programSchema,
|
|
437
|
+
$a as providersNamesSchema,
|
|
438
|
+
ai as pythonicHintsSchema,
|
|
439
|
+
Fs as rawArgsArraySchema,
|
|
440
|
+
Rs as rawArgsObjectSchema,
|
|
441
|
+
vs as rawArgsSchema,
|
|
442
|
+
ms as readFileAsString,
|
|
443
|
+
pt as recoveryBaseSchema,
|
|
444
|
+
lt as recoveryBodySchema,
|
|
445
|
+
ht as recoveryStatusSchema,
|
|
446
|
+
Ns as removeOwnersCalldataSchema,
|
|
447
|
+
Ps as removePluginCalldataSchema,
|
|
448
|
+
bs as replaceSignerCalldataSchema,
|
|
449
|
+
Xt as replaceValueRecursively,
|
|
450
|
+
fi as retryUntilInitialised,
|
|
451
|
+
Ss as safeParseAndWarn,
|
|
452
|
+
vt as seedphraseSchema,
|
|
453
|
+
ti as sierraContractEntryPointFieldsSchema,
|
|
454
|
+
ri as sierraEntryPointsByTypeSchema,
|
|
455
|
+
oi as sierraProgramDebugInfoSchema,
|
|
456
|
+
Wt as stakerInfoSchema,
|
|
457
|
+
Ut as stakingActionSchema,
|
|
458
|
+
po as stakingPositionSchema,
|
|
459
|
+
lo as stakingPositionsSchema,
|
|
459
460
|
Le as starkNameToCallDataDomain,
|
|
460
461
|
de as starknetDomainNameSchema,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
462
|
+
ga as starknetIdSchema,
|
|
463
|
+
ft as startOnchainRecoveryErrorSchema,
|
|
464
|
+
ut as startOnchainRecoveryErrorStatusSchema,
|
|
465
|
+
gt as startOnchainRecoverySchema,
|
|
466
|
+
ds as stringToBooleanSchema,
|
|
467
|
+
Am as stripAddressZeroPadding,
|
|
468
|
+
qt as strkDelegatedStakingInvestmentSchema,
|
|
469
|
+
ho as strkDelegatedStakingPositionArraySchema,
|
|
470
|
+
fo as strkDelegatedStakingPositionSchema,
|
|
471
|
+
Gt as strkStakingCalldataResponseSchema,
|
|
472
|
+
zt as strkStakingCalldataSchema,
|
|
473
|
+
ni as structAbiSchema,
|
|
474
|
+
Cn as toMax,
|
|
475
|
+
yn as tokensRequireTxV3Support,
|
|
476
|
+
sm as transactionExecutionResponseSchema,
|
|
477
|
+
im as transactionPromotionPrizeSchema,
|
|
478
|
+
cm as transactionPromotionSchema,
|
|
479
|
+
tn as transactionReviewTransactionsSchema,
|
|
480
|
+
Qn as transactionReviewWarningSchema,
|
|
481
|
+
Bs as transferCalldataSchema,
|
|
482
|
+
jo as trpcErrorSchema,
|
|
483
|
+
tm as txVersionSchema,
|
|
484
|
+
Is as typedDataSchema,
|
|
485
|
+
ws as uint256Schema,
|
|
486
|
+
To as unclaimedRewardsSchema,
|
|
487
|
+
En as unitToFeeTokenAddress,
|
|
488
|
+
ci as urlWithQuery,
|
|
489
|
+
tr as useToken,
|
|
489
490
|
re as validChecksumAddressSchema,
|
|
490
491
|
oe as validateAddressRangeSchema,
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
492
|
+
di as voidify,
|
|
493
|
+
Co as webBaseTokenSchema,
|
|
494
|
+
yo as webBaseTokenWithBalanceSchema,
|
|
495
|
+
Eo as webTokenInfoDetailsSchema,
|
|
496
|
+
Do as webTokenPriceDetailsSchema,
|
|
497
|
+
Fo as webTokenSchema,
|
|
498
|
+
Ro as webTokenWithBalanceAndPriceSchema,
|
|
499
|
+
vo as webTokenWithBalanceSchema,
|
|
500
|
+
No as webTokenWithPriceSchema,
|
|
501
|
+
Po as webTokensWithBalanceAndPriceSchema
|
|
501
502
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/semver.cjs"),a=require("../../address.cjs"),e=require("./constants.cjs");function C(t){if(a.isEqualAddress(t,e.C0_PROXY_CONTRACT_CLASS_HASHES[0]))return"0.2.4";for(const[A,s]of Object.entries(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES))if(a.isEqualAddress(s,t))return A;for(const[A,s]of Object.entries(e.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES))if(a.isEqualAddress(s,t))return A}function c(t){const A=Object.entries(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES),s=Object.entries(e.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES);switch(t){case"cairo0":return A.filter(([n])=>r.default.lt(n,"0.3.0")).map(([,n])=>n);case"cairo1":return A.filter(([n])=>r.default.gte(n,"0.3.0")).map(([,n])=>n);case"multisig":return s.map(([,n])=>n);default:return A.map(([,n])=>n)}}function o(){const t=r.default.maxSatisfying(Object.keys(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES),"*");if(!t)throw new Error(`No argent account contract found: v${t} `);return e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES[t]}function S(){const t=r.default.maxSatisfying(Object.keys(e.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES),"*");if(!t)throw new Error(`No argent multisig contract found: v${t} `);return e.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES[t]}function u(){return Object.entries(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES).filter(([t])=>r.default.gte(t,"0.4.0")).map(([,t])=>t)}function i(){const t=r.default.maxSatisfying(Object.keys(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES),"<0.3.0");if(!t)throw new Error(`No argent account contract found: v${t} `);return e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES[t]}function T(){const t=Object.entries(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES).filter(([s])=>r.default.gte(s,"0.3.1")).map(([,s])=>s),A=Object.entries(e.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES).filter(([s])=>r.default.gte(s,"0.1.1")).map(([,s])=>s);return[...t,...A]}function _(){return Object.entries(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES).filter(([t])=>r.default.gte(t,"0.4.0")).map(([,t])=>t)}function g(){const t=r.default.maxSatisfying(Object.keys(e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES),">=0.4.0");if(!t)throw new Error(`No ledger account contract found: v${t}`);return e.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES[t]}exports.getAccountVersionByClasshash=C;exports.getArgentAccountClassHashes=c;exports.getArgentAccountClassHashesWithTxV3Support=T;exports.getArgentAccountWithMultiSignerClassHashes=u;exports.getLastCairo0ArgentAccountClassHash=i;exports.getLatestArgentAccountClassHash=o;exports.getLatestArgentMultisigClassHash=S;exports.getLatestLedgerAccountClassHash=g;exports.getLedgerAccountClassHashes=_;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function getAccountVersionByClasshash(classHash: string): string | undefined;
|
|
1
2
|
export declare function getArgentAccountClassHashes(type: "cairo0" | "cairo1" | "multisig" | "all"): ("0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003" | "0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f" | "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" | "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f" | "0x3e327de1c40540b98d05cbcb13552008e36f0ec8d61d46956d2f9752c294328" | "0x7e28fb0161d10d1cf7fe1f13e7ca57bce062731a3bd04494dfd2d0412699727" | "0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b")[] | ("0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48" | "0x6e150953b26271a740bf2b6e9bca17cc52c68d765f761295de51ceb8526ee72")[];
|
|
2
3
|
export declare function getLatestArgentAccountClassHash(): "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003" | "0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f" | "0x033434ad846cdd5f23eb73ff09fe6fddd568284a0fb7d1be20ee482f044dabe2" | "0x1a7820094feaf82d53f53f214b81292d717e7bb9a92bb2488092cd306f3993f" | "0x3e327de1c40540b98d05cbcb13552008e36f0ec8d61d46956d2f9752c294328" | "0x7e28fb0161d10d1cf7fe1f13e7ca57bce062731a3bd04494dfd2d0412699727" | "0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b";
|
|
3
4
|
export declare function getLatestArgentMultisigClassHash(): "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48" | "0x6e150953b26271a740bf2b6e9bca17cc52c68d765f761295de51ceb8526ee72";
|
|
@@ -1,59 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import s from "../../../../../_virtual/semver.js";
|
|
2
|
+
import { isEqualAddress as i } from "../../address.js";
|
|
3
|
+
import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as n, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as c, C0_PROXY_CONTRACT_CLASS_HASHES as a } from "./constants.js";
|
|
4
|
+
function A(t) {
|
|
5
|
+
if (i(t, a[0]))
|
|
6
|
+
return "0.2.4";
|
|
7
|
+
for (const [o, e] of Object.entries(n))
|
|
8
|
+
if (i(e, t))
|
|
9
|
+
return o;
|
|
10
|
+
for (const [o, e] of Object.entries(c))
|
|
11
|
+
if (i(e, t))
|
|
12
|
+
return o;
|
|
13
|
+
}
|
|
14
|
+
function l(t) {
|
|
15
|
+
const o = Object.entries(n), e = Object.entries(c);
|
|
5
16
|
switch (t) {
|
|
6
17
|
case "cairo0":
|
|
7
|
-
return
|
|
18
|
+
return o.filter(([r]) => s.lt(r, "0.3.0")).map(([, r]) => r);
|
|
8
19
|
case "cairo1":
|
|
9
|
-
return
|
|
20
|
+
return o.filter(([r]) => s.gte(r, "0.3.0")).map(([, r]) => r);
|
|
10
21
|
case "multisig":
|
|
11
|
-
return
|
|
22
|
+
return e.map(([, r]) => r);
|
|
12
23
|
default:
|
|
13
|
-
return
|
|
24
|
+
return o.map(([, r]) => r);
|
|
14
25
|
}
|
|
15
26
|
}
|
|
16
|
-
function
|
|
17
|
-
const t =
|
|
27
|
+
function m() {
|
|
28
|
+
const t = s.maxSatisfying(Object.keys(n), "*");
|
|
18
29
|
if (!t)
|
|
19
30
|
throw new Error(`No argent account contract found: v${t} `);
|
|
20
|
-
return
|
|
31
|
+
return n[t];
|
|
21
32
|
}
|
|
22
|
-
function
|
|
23
|
-
const t =
|
|
33
|
+
function C() {
|
|
34
|
+
const t = s.maxSatisfying(Object.keys(c), "*");
|
|
24
35
|
if (!t)
|
|
25
36
|
throw new Error(`No argent multisig contract found: v${t} `);
|
|
26
|
-
return
|
|
37
|
+
return c[t];
|
|
27
38
|
}
|
|
28
|
-
function
|
|
29
|
-
return Object.entries(
|
|
39
|
+
function h() {
|
|
40
|
+
return Object.entries(n).filter(([t]) => s.gte(t, "0.4.0")).map(([, t]) => t);
|
|
30
41
|
}
|
|
31
|
-
function
|
|
32
|
-
const t =
|
|
42
|
+
function S() {
|
|
43
|
+
const t = s.maxSatisfying(Object.keys(n), "<0.3.0");
|
|
33
44
|
if (!t)
|
|
34
45
|
throw new Error(`No argent account contract found: v${t} `);
|
|
35
|
-
return
|
|
46
|
+
return n[t];
|
|
36
47
|
}
|
|
37
|
-
function
|
|
38
|
-
const t = Object.entries(
|
|
39
|
-
return [...t, ...
|
|
48
|
+
function O() {
|
|
49
|
+
const t = Object.entries(n).filter(([e]) => s.gte(e, "0.3.1")).map(([, e]) => e), o = Object.entries(c).filter(([e]) => s.gte(e, "0.1.1")).map(([, e]) => e);
|
|
50
|
+
return [...t, ...o];
|
|
40
51
|
}
|
|
41
|
-
function
|
|
42
|
-
return Object.entries(
|
|
52
|
+
function p() {
|
|
53
|
+
return Object.entries(n).filter(([t]) => s.gte(t, "0.4.0")).map(([, t]) => t);
|
|
43
54
|
}
|
|
44
|
-
function
|
|
45
|
-
const t =
|
|
55
|
+
function b() {
|
|
56
|
+
const t = s.maxSatisfying(Object.keys(n), ">=0.4.0");
|
|
46
57
|
if (!t)
|
|
47
58
|
throw new Error(`No ledger account contract found: v${t}`);
|
|
48
|
-
return
|
|
59
|
+
return n[t];
|
|
49
60
|
}
|
|
50
61
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
A as getAccountVersionByClasshash,
|
|
63
|
+
l as getArgentAccountClassHashes,
|
|
64
|
+
O as getArgentAccountClassHashesWithTxV3Support,
|
|
65
|
+
h as getArgentAccountWithMultiSignerClassHashes,
|
|
66
|
+
S as getLastCairo0ArgentAccountClassHash,
|
|
67
|
+
m as getLatestArgentAccountClassHash,
|
|
68
|
+
C as getLatestArgentMultisigClassHash,
|
|
69
|
+
b as getLatestLedgerAccountClassHash,
|
|
70
|
+
p as getLedgerAccountClassHashes
|
|
59
71
|
};
|