@argent/x-shared 1.71.0 → 1.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +36 -36
- package/dist/simulation.cjs +1 -1
- package/dist/simulation.js +54 -48
- package/dist/src/features/simulation/activity/utils/index.d.ts +3 -0
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.d.ts +3 -0
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +24 -0
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.d.ts +3 -0
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +24 -0
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.d.ts +3 -0
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +24 -0
- package/dist/src/features/simulation/activity/utils/isReplaceMultisigSignersActivity.d.ts +3 -0
- package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isSwapActivity.d.ts +2 -1
- package/dist/src/features/simulation/activity/utils/isSwapActivity.js +15 -17
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.d.ts +2 -1
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +16 -14
- package/dist/src/features/simulation/fees/schema.cjs +1 -1
- package/dist/src/features/simulation/fees/schema.d.ts +72 -32
- package/dist/src/features/simulation/fees/schema.js +9 -8
- package/dist/src/features/simulation/transactionReview/schema.d.ts +62 -48
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.d.ts +1 -1
- package/dist/src/transactions/estimate/utils.js +109 -108
- package/dist/src/transactions/service/implementation.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("./src/bigdecimal/index.cjs"),re=require("./src/errors/baseErrors.cjs"),ne=require("./src/accountNameGenerator/index.cjs"),A=require("./src/account/account.model.cjs"),P=require("./src/account/accountv4.cjs"),O=require("./src/account/preferences.model.cjs"),p=require("./src/backend/schema.cjs"),T=require("./src/backend/sessionKeys/schema.cjs"),se=require("./src/cache/CacheService.cjs"),e=require("./src/chains/starknet/address.cjs"),d=require("./src/chains/starknet/addressDomain.cjs"),V=require("./src/chains/starknet/addressInput.cjs"),k=require("./src/chains/starknet/argentName.cjs"),ie=require("./src/chains/starknet/cairoVersionSchema.cjs"),S=require("./src/chains/starknet/constants.cjs"),H=require("./src/chains/starknet/getAddressFromArgentName.cjs"),y=require("./src/chains/starknet/getAddressFromStarkName.cjs"),L=require("./src/chains/starknet/network.cjs"),ce=require("./src/chains/starknet/services/address/StarknetAddressService.cjs"),N=require("./src/chains/starknet/services/deploymentData/constants.cjs"),R=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),u=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),o=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),C=require("./src/chains/starknet/starknetId.cjs"),oe=require("./src/http/DateService.cjs"),me=require("./src/http/HttpError.cjs"),Se=require("./src/http/HttpService.cjs"),de=require("./src/http/IHttpService.cjs"),le=require("./src/http/SWRService.cjs"),F=require("./src/http/fetcher.cjs"),M=require("./src/http/time.cjs"),he=require("./src/knownDapps/KnownDappsBackendService.cjs"),v=require("./src/knownDapps/schema.cjs"),W=require("./src/knownDapps/utils/getDapplandUrl.cjs"),ue=require("./src/nameResolution/ResolveNameService.cjs"),l=require("./src/nameResolution/schema.cjs"),ge=require("./src/nfts/BackendNftService.cjs"),x=require("./src/nfts/utils.cjs"),Ae=require("./src/onchainRecovery/OnchainRecoveryService.cjs"),c=require("./src/onchainRecovery/schema.cjs"),pe=require("./src/platform/isBraveBrowser.cjs"),h=require("./src/platform/isBrowser.cjs"),Te=require("./src/signer/seedphrase.cjs"),U=require("./src/signer/multisigner.cjs"),ke=require("./src/signer/mergeOwnerGuardianSignatures.cjs"),i=require("./src/staking/schema.cjs"),G=require("./src/storage/utils.cjs"),z=require("./src/storage/base.cjs"),D=require("./src/tokens/balances.cjs"),ye=require("./src/tokens/constants.cjs"),Ce=require("./src/tokens/convertCurrencyValueToTokenAmount.cjs"),ve=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),De=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),Ee=require("./src/tokens/ensureDecimals.cjs"),qe=require("./src/tokens/isUnlimitedAmount.cjs"),be=require("./src/tokens/prettifyCurrencyValue.cjs"),K=require("./src/tokens/prettifyTokenAmount.cjs"),fe=require("./src/tokens/getCurrencySymbol.cjs"),Pe=require("./src/tokens/service/implementation.cjs"),$=require("./src/tokens/service/tokenError.cjs"),a=require("./src/tokens/service/types/backend.model.cjs"),n=require("./src/tokens/service/types/defiPosition.model.cjs"),Ne=require("./src/tokens/service/types/defiPositionType.model.cjs"),j=require("./src/tokens/service/types/unclaimedRewards.model.cjs"),m=require("./src/tokens/service/types/webToken.model.cjs"),g=require("./src/tokens/utils.cjs"),B=require("./src/transactions/amount.cjs"),I=require("./src/transactions/buildTransactions.cjs"),X=require("./src/transactions/errors.cjs"),w=require("./src/transactions/estimate/argentMaxFee.cjs"),Y=require("./src/transactions/estimate/error.cjs"),Re=require("./src/transactions/estimate/model.cjs"),s=require("./src/transactions/estimate/utils.cjs"),Z=require("./src/transactions/findTransfersAndApprovals.cjs"),Fe=require("./src/transactions/getPrettyRcpError.cjs"),Be=require("./src/transactions/service/implementation.cjs"),Ie=require("./src/transactions/service/types.cjs"),we=require("./src/transactions/service/utils.cjs"),_e=require("./src/transactions/transactionReviewTypes.cjs"),Oe=require("./src/transactions/transactionVersion.cjs"),Q=require("./src/transactions/txv3.cjs"),_=require("./src/transactions/transactionExecuteTypes.cjs"),Ve=require("./src/utils/address.cjs"),He=require("./src/utils/arrays.cjs"),E=require("./src/utils/avatarImage.cjs"),q=require("./src/utils/base58.cjs"),Le=require("./src/utils/bigNumber.cjs"),Me=require("./src/utils/daysBetween.cjs"),We=require("./src/utils/env.cjs"),J=require("./src/utils/hex.cjs"),xe=require("./src/utils/id.cjs"),Ue=require("./src/utils/initials.cjs"),Ge=require("./src/utils/isContractDeployed.cjs"),ze=require("./src/utils/nonNullable.cjs"),Ke=require("./src/utils/number/isAllowedAddressHexInputValue.cjs"),$e=require("./src/utils/number/isAllowedNumericInputValue.cjs"),je=require("./src/utils/number/isNumeric.cjs"),b=require("./src/utils/number/prettifyNumber.cjs"),Xe=require("./src/utils/number/abbreviateNumber.cjs"),ee=require("./src/utils/parseAmount.cjs"),Ye=require("./src/utils/pluralise.cjs"),Ze=require("./src/utils/readFileAsString.cjs"),f=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"),ra=require("./src/currencyFetchService/CurrencyFetchService.cjs"),ae=require("./src/currencyFetchService/types.ts.cjs");exports.bigDecimal=te;exports.BaseError=re.BaseError;exports.AccountNameGenerator=ne.AccountNameGenerator;exports.AddSmartAccountResponseSchema=A.AddSmartAccountResponseSchema;exports.AddSmartAcountRequestSchema=A.AddSmartAcountRequestSchema;exports.BackendAccountSchema=A.BackendAccountSchema;exports.baseWalletAccountSchema=A.baseWalletAccountSchema;exports.isAccountV4=P.isAccountV4;exports.isAccountV5=P.isAccountV5;exports.isAccountV6=P.isAccountV6;exports.preferencesEndpointPayload=O.preferencesEndpointPayload;exports.preferencesSchema=O.preferencesSchema;exports.argentBackendNetworkIdSchema=p.argentBackendNetworkIdSchema;exports.argentNetworkIdSchema=p.argentNetworkIdSchema;exports.isArgentBackendNetworkId=p.isArgentBackendNetworkId;exports.isArgentNetworkId=p.isArgentNetworkId;exports.backendSessionAllowedMethodSchema=T.backendSessionAllowedMethodSchema;exports.backendSessionMetadataSchema=T.backendSessionMetadataSchema;exports.backendSessionSchema=T.backendSessionSchema;exports.backendSessionTxFeeSchema=T.backendSessionTxFeeSchema;exports.CacheService=se.CacheService;exports.addressOrEmptyUndefinedSchema=e.addressOrEmptyUndefinedSchema;exports.addressSchema=e.addressSchema;exports.addressSchemaArgentBackend=e.addressSchemaArgentBackend;exports.addressSchemaBase=e.addressSchemaBase;exports.addressSchemaLooseLength=e.addressSchemaLooseLength;exports.addressSchemaStrictLength=e.addressSchemaStrictLength;exports.formatFullAddress=e.formatFullAddress;exports.formatTruncatedAddress=e.formatTruncatedAddress;exports.formatTruncatedSignerKey=e.formatTruncatedSignerKey;exports.formatTruncatedString=e.formatTruncatedString;exports.getAddressOrEmptyUndefinedSchema=e.getAddressOrEmptyUndefinedSchema;exports.getAddressSchema=e.getAddressSchema;exports.getAddressSchemaArgentBackend=e.getAddressSchemaArgentBackend;exports.getAddressSchemaBase=e.getAddressSchemaBase;exports.getAddressSchemaLooseLength=e.getAddressSchemaLooseLength;exports.getAddressSchemaStrictLength=e.getAddressSchemaStrictLength;exports.getAddressValidationSchemas=e.getAddressValidationSchemas;exports.getValidChecksumAddressSchema=e.getValidChecksumAddressSchema;exports.getValidateAddressRangeSchema=e.getValidateAddressRangeSchema;exports.includesAddress=e.includesAddress;exports.isAddress=e.isAddress;exports.isBase58Address=e.isBase58Address;exports.isEqualAddress=e.isEqualAddress;exports.isValidAddress=e.isValidAddress;exports.isValidHexString=e.isValidHexString;exports.isZeroAddress=e.isZeroAddress;exports.normalizeAddress=e.normalizeAddress;exports.normalizeAddressForCompare=e.normalizeAddressForCompare;exports.validChecksumAddressSchema=e.validChecksumAddressSchema;exports.validateAddressRangeSchema=e.validateAddressRangeSchema;exports.addressOrDomainInputSchema=d.addressOrDomainInputSchema;exports.addressOrDomainSchema=d.addressOrDomainSchema;exports.isEqualStarknetDomainName=d.isEqualStarknetDomainName;exports.isStarknetDomainName=d.isStarknetDomainName;exports.normalizeAddressOrDomain=d.normalizeAddressOrDomain;exports.starknetDomainNameSchema=d.starknetDomainNameSchema;exports.addressInputCharactersAndLengthSchema=V.addressInputCharactersAndLengthSchema;exports.addressInputSchema=V.addressInputSchema;exports.argentNameSchema=k.argentNameSchema;exports.isArgentName=k.isArgentName;exports.isEqualArgentName=k.isEqualArgentName;exports.normalizeArgentName=k.normalizeArgentName;exports.cairoVersionSchema=ie.cairoVersionSchema;exports.ETH_TOKEN_ADDRESS=S.ETH_TOKEN_ADDRESS;exports.STANDARD_DEVNET_ACCOUNT_CLASS_HASH=S.STANDARD_DEVNET_ACCOUNT_CLASS_HASH;exports.STRK_TOKEN_ADDRESS=S.STRK_TOKEN_ADDRESS;exports.TXV1_ACCOUNT_CLASS_HASH=S.TXV1_ACCOUNT_CLASS_HASH;exports.TXV1_MULTISIG_CLASS_HASH=S.TXV1_MULTISIG_CLASS_HASH;exports.TXV3_ACCOUNT_CLASS_HASH=S.TXV3_ACCOUNT_CLASS_HASH;exports.TXV3_MULTISIG_CLASS_HASH=S.TXV3_MULTISIG_CLASS_HASH;exports.apiWalletResponseSchema=H.apiWalletResponseSchema;exports.getAddressFromArgentName=H.getAddressFromArgentName;exports.getAddressFromStarkName=y.getAddressFromStarkName;exports.getCallFromStarkName=y.getCallFromStarkName;exports.getStarknetIdContractAddressFromNetworkId=y.getStarknetIdContractAddressFromNetworkId;exports.starkNameToCallDataDomain=y.starkNameToCallDataDomain;exports.getArgentNetwork=L.getArgentNetwork;exports.getChainIdFromNetworkId=L.getChainIdFromNetworkId;exports.StarknetAddressService=ce.StarknetAddressService;exports.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES=N.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES;exports.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES=N.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES;exports.C0_PROXY_CONTRACT_CLASS_HASHES=N.C0_PROXY_CONTRACT_CLASS_HASHES;exports.constructorCallDataSchemaC0=R.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=R.constructorCallDataSchemaC1V1;exports.implementationSchema=R.implementationSchema;exports.buildConstructorCalldata=u.buildConstructorCalldata;exports.findImplementationForAccount=u.findImplementationForAccount;exports.getAccountContractAddress=u.getAccountContractAddress;exports.getAccountDeploymentPayload=u.getAccountDeploymentPayload;exports.isEqualImplementation=u.isEqualImplementation;exports.getAccountVersionByClasshash=o.getAccountVersionByClasshash;exports.getArgentAccountClassHashes=o.getArgentAccountClassHashes;exports.getArgentAccountClassHashesWithTxV3Support=o.getArgentAccountClassHashesWithTxV3Support;exports.getArgentAccountWithMultiSignerClassHashes=o.getArgentAccountWithMultiSignerClassHashes;exports.getLastCairo0ArgentAccountClassHash=o.getLastCairo0ArgentAccountClassHash;exports.getLatestArgentAccountClassHash=o.getLatestArgentAccountClassHash;exports.getLatestArgentMultisigClassHash=o.getLatestArgentMultisigClassHash;exports.getLatestLedgerAccountClassHash=o.getLatestLedgerAccountClassHash;exports.getLedgerAccountClassHashes=o.getLedgerAccountClassHashes;exports.isEqualStarknetId=C.isEqualStarknetId;exports.isStarknetId=C.isStarknetId;exports.normalizeStarknetId=C.normalizeStarknetId;exports.starknetIdSchema=C.starknetIdSchema;exports.DateService=oe.DateService;exports.HttpError=me.HttpError;exports.HTTPService=Se.HTTPService;Object.defineProperty(exports,"HTTP_ERROR_MESSAGE",{enumerable:!0,get:()=>de.HTTP_ERROR_MESSAGE});exports.SWRService=le.SWRService;exports.fetchData=F.fetchData;exports.fetcherError=F.fetcherError;exports.postData=F.postData;exports.getBackendTimeNowSeconds=M.getBackendTimeNowSeconds;exports.getBackendTimeSeconds=M.getBackendTimeSeconds;exports.KnownDappsBackendService=he.KnownDappsBackendService;exports.dappContractSchema=v.dappContractSchema;exports.dappLinkSchema=v.dappLinkSchema;exports.knownDappSchema=v.knownDappSchema;exports.knownDappsSchema=v.knownDappsSchema;exports.getDapplandLinkForDapp=W.getDapplandLinkForDapp;exports.getDapplandUrlForDapp=W.getDapplandUrlForDapp;exports.ResolveNameService=ue.ResolveNameService;exports.nameProviderResolutionSchema=l.nameProviderResolutionSchema;exports.nameResolutionAddressSchema=l.nameResolutionAddressSchema;exports.nameResolutionAddressesSchema=l.nameResolutionAddressesSchema;exports.nameResolutionStarknetIdSchema=l.nameResolutionStarknetIdSchema;exports.nameResolutionStarknetIdsSchema=l.nameResolutionStarknetIdsSchema;exports.providersNamesSchema=l.providersNamesSchema;exports.BackendNftService=ge.BackendNftService;exports.equalNft=x.equalNft;exports.getNftPicture=x.getNftPicture;exports.OnchainRecoveryService=Ae.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=pe.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=Te.seedphraseSchema;Object.defineProperty(exports,"MultiSigner",{enumerable:!0,get:()=>U.MultiSigner});exports.getSignerForMultiSigner=U.getSignerForMultiSigner;exports.mergeOwnerGuardianSignatures=ke.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=G.containsValue;exports.replaceValueRecursively=G.replaceValueRecursively;exports.mergeArrayStableWith=z.mergeArrayStableWith;exports.optionsWithDefaults=z.optionsWithDefaults;exports.getTokenBalance=D.getTokenBalance;exports.getTokens=D.getTokens;exports.getTokensBalances=D.getTokensBalances;exports.useToken=D.useToken;exports.DEFAULT_TOKEN_DECIMALS=ye.DEFAULT_TOKEN_DECIMALS;exports.convertCurrencyValueToTokenAmount=Ce.convertCurrencyValueToTokenAmount;exports.convertTokenAmountToCurrencyValue=ve.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=De.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=Ee.ensureDecimals;exports.isUnlimitedAmount=qe.isUnlimitedAmount;exports.prettifyCurrencyValue=be.prettifyCurrencyValue;exports.PRETTY_UNLIMITED=K.PRETTY_UNLIMITED;exports.prettifyTokenAmount=K.prettifyTokenAmount;exports.getCurrencySymbol=fe.getCurrencySymbol;exports.TokenServiceWeb=Pe.TokenServiceWeb;Object.defineProperty(exports,"TOKEN_ERROR_MESSAGES",{enumerable:!0,get:()=>$.TOKEN_ERROR_MESSAGES});exports.TokenError=$.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=n.collateralizedDebtGroupSchema;exports.collateralizedDebtPositionSchema=n.collateralizedDebtPositionSchema;exports.collateralizedDebtPositionsSchema=n.collateralizedDebtPositionsSchema;exports.concentratedLiquidityPositionSchema=n.concentratedLiquidityPositionSchema;exports.concentratedLiquidityPositionsSchema=n.concentratedLiquidityPositionsSchema;exports.defiDappsProductsSchema=n.defiDappsProductsSchema;exports.defiPositionSchema=n.defiPositionSchema;exports.defiProductSchema=n.defiProductSchema;exports.defiProductsSchema=n.defiProductsSchema;exports.delegatedTokensArraySchema=n.delegatedTokensArraySchema;exports.delegatedTokensSchema=n.delegatedTokensSchema;exports.productGroupsSchema=n.productGroupsSchema;exports.stakingPositionSchema=n.stakingPositionSchema;exports.stakingPositionsSchema=n.stakingPositionsSchema;exports.strkDelegatedStakingPositionArraySchema=n.strkDelegatedStakingPositionArraySchema;exports.strkDelegatedStakingPositionSchema=n.strkDelegatedStakingPositionSchema;exports.defiPositionTypeSchema=Ne.defiPositionTypeSchema;exports.airdropSchema=j.airdropSchema;exports.unclaimedRewardsSchema=j.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=g.isCollateralizedDebtPosition;exports.isConcentratedLiquidityPosition=g.isConcentratedLiquidityPosition;exports.isDelegatedTokens=g.isDelegatedTokens;exports.isStaking=g.isStaking;exports.isStrkDelegatedStaking=g.isStrkDelegatedStaking;exports.inputAmountSchema=B.inputAmountSchema;exports.isValidInputAmount=B.isValidInputAmount;exports.parseAmount=B.parseAmount;exports.erc20TransferTransaction=I.erc20TransferTransaction;exports.erc721SafeTransferFromTransaction=I.erc721SafeTransferFromTransaction;exports.erc721TransferFromTransaction=I.erc721TransferFromTransaction;exports.getMessageFromTrpcError=X.getMessageFromTrpcError;exports.trpcErrorSchema=X.trpcErrorSchema;exports.FEE_OVERHEAD=w.FEE_OVERHEAD;exports.argentMaxFee=w.argentMaxFee;exports.modifySnjsFeeOverhead=w.modifySnjsFeeOverhead;Object.defineProperty(exports,"ESTIMATE_ERROR_MESSAGES",{enumerable:!0,get:()=>Y.ESTIMATE_ERROR_MESSAGES});exports.EstimateError=Y.EstimateError;exports.transactionReviewTransactionsSchema=Re.transactionReviewTransactionsSchema;exports.estimatedFeeToMaxFeeTotal=s.estimatedFeeToMaxFeeTotal;exports.estimatedFeeToMaxResourceBounds=s.estimatedFeeToMaxResourceBounds;exports.estimatedFeeToTotal=s.estimatedFeeToTotal;exports.estimatedFeesToMaxFeeTotalV2=s.estimatedFeesToMaxFeeTotalV2;exports.estimatedFeesToTotal=s.estimatedFeesToTotal;exports.estimatedFeesToTotalV2=s.estimatedFeesToTotalV2;exports.filterPaymasterEstimatedFees=s.filterPaymasterEstimatedFees;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2=s.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2;exports.getNativeEstimatedFeeByFeeToken=s.getNativeEstimatedFeeByFeeToken;exports.getNativeEstimatedFeeByTxVersion=s.getNativeEstimatedFeeByTxVersion;exports.getNativeEstimatedFeeForAccount=s.getNativeEstimatedFeeForAccount;exports.getNativeEstimatedFees=s.getNativeEstimatedFees;exports.getNativeFeeFromSimulation=s.getNativeFeeFromSimulation;exports.getNativeFeeTokenAddress=s.getNativeFeeTokenAddress;exports.getPaymasterFeeFromSimulation=s.getPaymasterFeeFromSimulation;exports.toMaxFeeEstimation=s.toMaxFeeEstimation;exports.EventsBySelector=Z.EventsBySelector;exports.findTransfersAndApprovals=Z.findTransfersAndApprovals;exports.getPrettyRpcError=Fe.getPrettyRpcError;exports.TransactionReviewServiceWeb=Be.TransactionReviewServiceWeb;exports.transactionReviewWarningSchema=Ie.transactionReviewWarningSchema;exports.getPayloadFromTransaction=we.getPayloadFromTransaction;exports.apiTransactionReviewActivityType=_e.apiTransactionReviewActivityType;exports.txVersionSchema=Oe.txVersionSchema;exports.classHashSupportsTxV3=Q.classHashSupportsTxV3;exports.feeTokenNeedsTxV3Support=Q.feeTokenNeedsTxV3Support;exports.transactionExecutionResponseSchema=_.transactionExecutionResponseSchema;exports.transactionPromotionPrizeSchema=_.transactionPromotionPrizeSchema;exports.transactionPromotionSchema=_.transactionPromotionSchema;exports.formatAddress=Ve.formatAddress;exports.ensureArray=He.ensureArray;exports.generateAvatarImage=E.generateAvatarImage;exports.getColor=E.getColor;exports.getNetworkAccountImageUrl=E.getNetworkAccountImageUrl;exports.stripAddressZeroPadding=E.stripAddressZeroPadding;exports.decodeBase58=q.decodeBase58;exports.decodeBase58Array=q.decodeBase58Array;exports.encodeBase58=q.encodeBase58;exports.encodeBase58Array=q.encodeBase58Array;exports.bigNumberSchema=Le.bigNumberSchema;exports.daysBetween=Me.daysBetween;exports.isFeatureEnabled=We.isFeatureEnabled;exports.hexSchema=J.hexSchema;exports.hexSchemaBase=J.hexSchemaBase;exports.id=xe.id;exports.getInitials=Ue.getInitials;exports.isContractDeployed=Ge.isContractDeployed;exports.nonNullable=ze.nonNullable;exports.isAllowedAddressHexInputValue=Ke.isAllowedAddressHexInputValue;exports.isAllowedNumericInputValue=$e.isAllowedNumericInputValue;exports.isNumeric=je.isNumeric;exports.prettifyCurrencyNumber=b.prettifyCurrencyNumber;exports.prettifyNumber=b.prettifyNumber;exports.prettifyNumberConfig=b.prettifyNumberConfig;exports.prettifyTokenNumber=b.prettifyTokenNumber;exports.abbreviateNumber=Xe.abbreviateNumber;exports.getUint256CalldataFromBN=ee.getUint256CalldataFromBN;exports.parseAmountValue=ee.parseAmountValue;exports.pluralise=Ye.pluralise;exports.readFileAsString=Ze.readFileAsString;exports.booleanToStringSchema=f.booleanToStringSchema;exports.createSchemaWithWarnings=f.createSchemaWithWarnings;exports.safeParseAndWarn=f.safeParseAndWarn;exports.stringToBooleanSchema=f.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;exports.CurrencyFetchService=ra.CurrencyFetchService;exports.currenciesDetailsSchema=ae.currenciesDetailsSchema;exports.currencyDetailsSchema=ae.currencyDetailsSchema;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("./src/bigdecimal/index.cjs"),re=require("./src/errors/baseErrors.cjs"),ne=require("./src/accountNameGenerator/index.cjs"),A=require("./src/account/account.model.cjs"),P=require("./src/account/accountv4.cjs"),O=require("./src/account/preferences.model.cjs"),p=require("./src/backend/schema.cjs"),T=require("./src/backend/sessionKeys/schema.cjs"),se=require("./src/cache/CacheService.cjs"),e=require("./src/chains/starknet/address.cjs"),d=require("./src/chains/starknet/addressDomain.cjs"),H=require("./src/chains/starknet/addressInput.cjs"),k=require("./src/chains/starknet/argentName.cjs"),ie=require("./src/chains/starknet/cairoVersionSchema.cjs"),S=require("./src/chains/starknet/constants.cjs"),V=require("./src/chains/starknet/getAddressFromArgentName.cjs"),y=require("./src/chains/starknet/getAddressFromStarkName.cjs"),L=require("./src/chains/starknet/network.cjs"),ce=require("./src/chains/starknet/services/address/StarknetAddressService.cjs"),N=require("./src/chains/starknet/services/deploymentData/constants.cjs"),R=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),u=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),o=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),C=require("./src/chains/starknet/starknetId.cjs"),oe=require("./src/http/DateService.cjs"),me=require("./src/http/HttpError.cjs"),Se=require("./src/http/HttpService.cjs"),de=require("./src/http/IHttpService.cjs"),le=require("./src/http/SWRService.cjs"),F=require("./src/http/fetcher.cjs"),W=require("./src/http/time.cjs"),he=require("./src/knownDapps/KnownDappsBackendService.cjs"),v=require("./src/knownDapps/schema.cjs"),M=require("./src/knownDapps/utils/getDapplandUrl.cjs"),ue=require("./src/nameResolution/ResolveNameService.cjs"),l=require("./src/nameResolution/schema.cjs"),ge=require("./src/nfts/BackendNftService.cjs"),x=require("./src/nfts/utils.cjs"),Ae=require("./src/onchainRecovery/OnchainRecoveryService.cjs"),c=require("./src/onchainRecovery/schema.cjs"),pe=require("./src/platform/isBraveBrowser.cjs"),h=require("./src/platform/isBrowser.cjs"),Te=require("./src/signer/seedphrase.cjs"),U=require("./src/signer/multisigner.cjs"),ke=require("./src/signer/mergeOwnerGuardianSignatures.cjs"),i=require("./src/staking/schema.cjs"),G=require("./src/storage/utils.cjs"),z=require("./src/storage/base.cjs"),D=require("./src/tokens/balances.cjs"),ye=require("./src/tokens/constants.cjs"),Ce=require("./src/tokens/convertCurrencyValueToTokenAmount.cjs"),ve=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),De=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),Ee=require("./src/tokens/ensureDecimals.cjs"),qe=require("./src/tokens/isUnlimitedAmount.cjs"),be=require("./src/tokens/prettifyCurrencyValue.cjs"),K=require("./src/tokens/prettifyTokenAmount.cjs"),fe=require("./src/tokens/getCurrencySymbol.cjs"),Pe=require("./src/tokens/service/implementation.cjs"),$=require("./src/tokens/service/tokenError.cjs"),a=require("./src/tokens/service/types/backend.model.cjs"),n=require("./src/tokens/service/types/defiPosition.model.cjs"),Ne=require("./src/tokens/service/types/defiPositionType.model.cjs"),j=require("./src/tokens/service/types/unclaimedRewards.model.cjs"),m=require("./src/tokens/service/types/webToken.model.cjs"),g=require("./src/tokens/utils.cjs"),B=require("./src/transactions/amount.cjs"),I=require("./src/transactions/buildTransactions.cjs"),X=require("./src/transactions/errors.cjs"),w=require("./src/transactions/estimate/argentMaxFee.cjs"),Y=require("./src/transactions/estimate/error.cjs"),Re=require("./src/transactions/estimate/model.cjs"),s=require("./src/transactions/estimate/utils.cjs"),Z=require("./src/transactions/findTransfersAndApprovals.cjs"),Fe=require("./src/transactions/getPrettyRcpError.cjs"),Be=require("./src/transactions/service/implementation.cjs"),Ie=require("./src/transactions/service/types.cjs"),we=require("./src/transactions/service/utils.cjs"),_e=require("./src/transactions/transactionReviewTypes.cjs"),Oe=require("./src/transactions/transactionVersion.cjs"),Q=require("./src/transactions/txv3.cjs"),_=require("./src/transactions/transactionExecuteTypes.cjs"),He=require("./src/utils/address.cjs"),Ve=require("./src/utils/arrays.cjs"),E=require("./src/utils/avatarImage.cjs"),q=require("./src/utils/base58.cjs"),Le=require("./src/utils/bigNumber.cjs"),We=require("./src/utils/daysBetween.cjs"),Me=require("./src/utils/env.cjs"),J=require("./src/utils/hex.cjs"),xe=require("./src/utils/id.cjs"),Ue=require("./src/utils/initials.cjs"),Ge=require("./src/utils/isContractDeployed.cjs"),ze=require("./src/utils/nonNullable.cjs"),Ke=require("./src/utils/number/isAllowedAddressHexInputValue.cjs"),$e=require("./src/utils/number/isAllowedNumericInputValue.cjs"),je=require("./src/utils/number/isNumeric.cjs"),b=require("./src/utils/number/prettifyNumber.cjs"),Xe=require("./src/utils/number/abbreviateNumber.cjs"),ee=require("./src/utils/parseAmount.cjs"),Ye=require("./src/utils/pluralise.cjs"),Ze=require("./src/utils/readFileAsString.cjs"),f=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"),ra=require("./src/currencyFetchService/CurrencyFetchService.cjs"),ae=require("./src/currencyFetchService/types.ts.cjs");exports.bigDecimal=te;exports.BaseError=re.BaseError;exports.AccountNameGenerator=ne.AccountNameGenerator;exports.AddSmartAccountResponseSchema=A.AddSmartAccountResponseSchema;exports.AddSmartAcountRequestSchema=A.AddSmartAcountRequestSchema;exports.BackendAccountSchema=A.BackendAccountSchema;exports.baseWalletAccountSchema=A.baseWalletAccountSchema;exports.isAccountV4=P.isAccountV4;exports.isAccountV5=P.isAccountV5;exports.isAccountV6=P.isAccountV6;exports.preferencesEndpointPayload=O.preferencesEndpointPayload;exports.preferencesSchema=O.preferencesSchema;exports.argentBackendNetworkIdSchema=p.argentBackendNetworkIdSchema;exports.argentNetworkIdSchema=p.argentNetworkIdSchema;exports.isArgentBackendNetworkId=p.isArgentBackendNetworkId;exports.isArgentNetworkId=p.isArgentNetworkId;exports.backendSessionAllowedMethodSchema=T.backendSessionAllowedMethodSchema;exports.backendSessionMetadataSchema=T.backendSessionMetadataSchema;exports.backendSessionSchema=T.backendSessionSchema;exports.backendSessionTxFeeSchema=T.backendSessionTxFeeSchema;exports.CacheService=se.CacheService;exports.addressOrEmptyUndefinedSchema=e.addressOrEmptyUndefinedSchema;exports.addressSchema=e.addressSchema;exports.addressSchemaArgentBackend=e.addressSchemaArgentBackend;exports.addressSchemaBase=e.addressSchemaBase;exports.addressSchemaLooseLength=e.addressSchemaLooseLength;exports.addressSchemaStrictLength=e.addressSchemaStrictLength;exports.formatFullAddress=e.formatFullAddress;exports.formatTruncatedAddress=e.formatTruncatedAddress;exports.formatTruncatedSignerKey=e.formatTruncatedSignerKey;exports.formatTruncatedString=e.formatTruncatedString;exports.getAddressOrEmptyUndefinedSchema=e.getAddressOrEmptyUndefinedSchema;exports.getAddressSchema=e.getAddressSchema;exports.getAddressSchemaArgentBackend=e.getAddressSchemaArgentBackend;exports.getAddressSchemaBase=e.getAddressSchemaBase;exports.getAddressSchemaLooseLength=e.getAddressSchemaLooseLength;exports.getAddressSchemaStrictLength=e.getAddressSchemaStrictLength;exports.getAddressValidationSchemas=e.getAddressValidationSchemas;exports.getValidChecksumAddressSchema=e.getValidChecksumAddressSchema;exports.getValidateAddressRangeSchema=e.getValidateAddressRangeSchema;exports.includesAddress=e.includesAddress;exports.isAddress=e.isAddress;exports.isBase58Address=e.isBase58Address;exports.isEqualAddress=e.isEqualAddress;exports.isValidAddress=e.isValidAddress;exports.isValidHexString=e.isValidHexString;exports.isZeroAddress=e.isZeroAddress;exports.normalizeAddress=e.normalizeAddress;exports.normalizeAddressForCompare=e.normalizeAddressForCompare;exports.validChecksumAddressSchema=e.validChecksumAddressSchema;exports.validateAddressRangeSchema=e.validateAddressRangeSchema;exports.addressOrDomainInputSchema=d.addressOrDomainInputSchema;exports.addressOrDomainSchema=d.addressOrDomainSchema;exports.isEqualStarknetDomainName=d.isEqualStarknetDomainName;exports.isStarknetDomainName=d.isStarknetDomainName;exports.normalizeAddressOrDomain=d.normalizeAddressOrDomain;exports.starknetDomainNameSchema=d.starknetDomainNameSchema;exports.addressInputCharactersAndLengthSchema=H.addressInputCharactersAndLengthSchema;exports.addressInputSchema=H.addressInputSchema;exports.argentNameSchema=k.argentNameSchema;exports.isArgentName=k.isArgentName;exports.isEqualArgentName=k.isEqualArgentName;exports.normalizeArgentName=k.normalizeArgentName;exports.cairoVersionSchema=ie.cairoVersionSchema;exports.ETH_TOKEN_ADDRESS=S.ETH_TOKEN_ADDRESS;exports.STANDARD_DEVNET_ACCOUNT_CLASS_HASH=S.STANDARD_DEVNET_ACCOUNT_CLASS_HASH;exports.STRK_TOKEN_ADDRESS=S.STRK_TOKEN_ADDRESS;exports.TXV1_ACCOUNT_CLASS_HASH=S.TXV1_ACCOUNT_CLASS_HASH;exports.TXV1_MULTISIG_CLASS_HASH=S.TXV1_MULTISIG_CLASS_HASH;exports.TXV3_ACCOUNT_CLASS_HASH=S.TXV3_ACCOUNT_CLASS_HASH;exports.TXV3_MULTISIG_CLASS_HASH=S.TXV3_MULTISIG_CLASS_HASH;exports.apiWalletResponseSchema=V.apiWalletResponseSchema;exports.getAddressFromArgentName=V.getAddressFromArgentName;exports.getAddressFromStarkName=y.getAddressFromStarkName;exports.getCallFromStarkName=y.getCallFromStarkName;exports.getStarknetIdContractAddressFromNetworkId=y.getStarknetIdContractAddressFromNetworkId;exports.starkNameToCallDataDomain=y.starkNameToCallDataDomain;exports.getArgentNetwork=L.getArgentNetwork;exports.getChainIdFromNetworkId=L.getChainIdFromNetworkId;exports.StarknetAddressService=ce.StarknetAddressService;exports.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES=N.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES;exports.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES=N.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES;exports.C0_PROXY_CONTRACT_CLASS_HASHES=N.C0_PROXY_CONTRACT_CLASS_HASHES;exports.constructorCallDataSchemaC0=R.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=R.constructorCallDataSchemaC1V1;exports.implementationSchema=R.implementationSchema;exports.buildConstructorCalldata=u.buildConstructorCalldata;exports.findImplementationForAccount=u.findImplementationForAccount;exports.getAccountContractAddress=u.getAccountContractAddress;exports.getAccountDeploymentPayload=u.getAccountDeploymentPayload;exports.isEqualImplementation=u.isEqualImplementation;exports.getAccountVersionByClasshash=o.getAccountVersionByClasshash;exports.getArgentAccountClassHashes=o.getArgentAccountClassHashes;exports.getArgentAccountClassHashesWithTxV3Support=o.getArgentAccountClassHashesWithTxV3Support;exports.getArgentAccountWithMultiSignerClassHashes=o.getArgentAccountWithMultiSignerClassHashes;exports.getLastCairo0ArgentAccountClassHash=o.getLastCairo0ArgentAccountClassHash;exports.getLatestArgentAccountClassHash=o.getLatestArgentAccountClassHash;exports.getLatestArgentMultisigClassHash=o.getLatestArgentMultisigClassHash;exports.getLatestLedgerAccountClassHash=o.getLatestLedgerAccountClassHash;exports.getLedgerAccountClassHashes=o.getLedgerAccountClassHashes;exports.isEqualStarknetId=C.isEqualStarknetId;exports.isStarknetId=C.isStarknetId;exports.normalizeStarknetId=C.normalizeStarknetId;exports.starknetIdSchema=C.starknetIdSchema;exports.DateService=oe.DateService;exports.HttpError=me.HttpError;exports.HTTPService=Se.HTTPService;Object.defineProperty(exports,"HTTP_ERROR_MESSAGE",{enumerable:!0,get:()=>de.HTTP_ERROR_MESSAGE});exports.SWRService=le.SWRService;exports.fetchData=F.fetchData;exports.fetcherError=F.fetcherError;exports.postData=F.postData;exports.getBackendTimeNowSeconds=W.getBackendTimeNowSeconds;exports.getBackendTimeSeconds=W.getBackendTimeSeconds;exports.KnownDappsBackendService=he.KnownDappsBackendService;exports.dappContractSchema=v.dappContractSchema;exports.dappLinkSchema=v.dappLinkSchema;exports.knownDappSchema=v.knownDappSchema;exports.knownDappsSchema=v.knownDappsSchema;exports.getDapplandLinkForDapp=M.getDapplandLinkForDapp;exports.getDapplandUrlForDapp=M.getDapplandUrlForDapp;exports.ResolveNameService=ue.ResolveNameService;exports.nameProviderResolutionSchema=l.nameProviderResolutionSchema;exports.nameResolutionAddressSchema=l.nameResolutionAddressSchema;exports.nameResolutionAddressesSchema=l.nameResolutionAddressesSchema;exports.nameResolutionStarknetIdSchema=l.nameResolutionStarknetIdSchema;exports.nameResolutionStarknetIdsSchema=l.nameResolutionStarknetIdsSchema;exports.providersNamesSchema=l.providersNamesSchema;exports.BackendNftService=ge.BackendNftService;exports.equalNft=x.equalNft;exports.getNftPicture=x.getNftPicture;exports.OnchainRecoveryService=Ae.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=pe.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=Te.seedphraseSchema;Object.defineProperty(exports,"MultiSigner",{enumerable:!0,get:()=>U.MultiSigner});exports.getSignerForMultiSigner=U.getSignerForMultiSigner;exports.mergeOwnerGuardianSignatures=ke.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=G.containsValue;exports.replaceValueRecursively=G.replaceValueRecursively;exports.mergeArrayStableWith=z.mergeArrayStableWith;exports.optionsWithDefaults=z.optionsWithDefaults;exports.getTokenBalance=D.getTokenBalance;exports.getTokens=D.getTokens;exports.getTokensBalances=D.getTokensBalances;exports.useToken=D.useToken;exports.DEFAULT_TOKEN_DECIMALS=ye.DEFAULT_TOKEN_DECIMALS;exports.convertCurrencyValueToTokenAmount=Ce.convertCurrencyValueToTokenAmount;exports.convertTokenAmountToCurrencyValue=ve.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=De.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=Ee.ensureDecimals;exports.isUnlimitedAmount=qe.isUnlimitedAmount;exports.prettifyCurrencyValue=be.prettifyCurrencyValue;exports.PRETTY_UNLIMITED=K.PRETTY_UNLIMITED;exports.prettifyTokenAmount=K.prettifyTokenAmount;exports.getCurrencySymbol=fe.getCurrencySymbol;exports.TokenServiceWeb=Pe.TokenServiceWeb;Object.defineProperty(exports,"TOKEN_ERROR_MESSAGES",{enumerable:!0,get:()=>$.TOKEN_ERROR_MESSAGES});exports.TokenError=$.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=n.collateralizedDebtGroupSchema;exports.collateralizedDebtPositionSchema=n.collateralizedDebtPositionSchema;exports.collateralizedDebtPositionsSchema=n.collateralizedDebtPositionsSchema;exports.concentratedLiquidityPositionSchema=n.concentratedLiquidityPositionSchema;exports.concentratedLiquidityPositionsSchema=n.concentratedLiquidityPositionsSchema;exports.defiDappsProductsSchema=n.defiDappsProductsSchema;exports.defiPositionSchema=n.defiPositionSchema;exports.defiProductSchema=n.defiProductSchema;exports.defiProductsSchema=n.defiProductsSchema;exports.delegatedTokensArraySchema=n.delegatedTokensArraySchema;exports.delegatedTokensSchema=n.delegatedTokensSchema;exports.productGroupsSchema=n.productGroupsSchema;exports.stakingPositionSchema=n.stakingPositionSchema;exports.stakingPositionsSchema=n.stakingPositionsSchema;exports.strkDelegatedStakingPositionArraySchema=n.strkDelegatedStakingPositionArraySchema;exports.strkDelegatedStakingPositionSchema=n.strkDelegatedStakingPositionSchema;exports.defiPositionTypeSchema=Ne.defiPositionTypeSchema;exports.airdropSchema=j.airdropSchema;exports.unclaimedRewardsSchema=j.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=g.isCollateralizedDebtPosition;exports.isConcentratedLiquidityPosition=g.isConcentratedLiquidityPosition;exports.isDelegatedTokens=g.isDelegatedTokens;exports.isStaking=g.isStaking;exports.isStrkDelegatedStaking=g.isStrkDelegatedStaking;exports.inputAmountSchema=B.inputAmountSchema;exports.isValidInputAmount=B.isValidInputAmount;exports.parseAmount=B.parseAmount;exports.erc20TransferTransaction=I.erc20TransferTransaction;exports.erc721SafeTransferFromTransaction=I.erc721SafeTransferFromTransaction;exports.erc721TransferFromTransaction=I.erc721TransferFromTransaction;exports.getMessageFromTrpcError=X.getMessageFromTrpcError;exports.trpcErrorSchema=X.trpcErrorSchema;exports.FEE_OVERHEAD=w.FEE_OVERHEAD;exports.argentMaxFee=w.argentMaxFee;exports.modifySnjsFeeOverhead=w.modifySnjsFeeOverhead;Object.defineProperty(exports,"ESTIMATE_ERROR_MESSAGES",{enumerable:!0,get:()=>Y.ESTIMATE_ERROR_MESSAGES});exports.EstimateError=Y.EstimateError;exports.transactionReviewTransactionsSchema=Re.transactionReviewTransactionsSchema;exports.estimatedFeeToMaxFeeTotal=s.estimatedFeeToMaxFeeTotal;exports.estimatedFeeToMaxResourceBounds=s.estimatedFeeToMaxResourceBounds;exports.estimatedFeeToTotal=s.estimatedFeeToTotal;exports.estimatedFeesToMaxFeeTotalV2=s.estimatedFeesToMaxFeeTotalV2;exports.estimatedFeesToTotal=s.estimatedFeesToTotal;exports.estimatedFeesToTotalWithOverallFee=s.estimatedFeesToTotalWithOverallFee;exports.filterPaymasterEstimatedFees=s.filterPaymasterEstimatedFees;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2=s.getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2;exports.getNativeEstimatedFeeByFeeToken=s.getNativeEstimatedFeeByFeeToken;exports.getNativeEstimatedFeeByTxVersion=s.getNativeEstimatedFeeByTxVersion;exports.getNativeEstimatedFeeForAccount=s.getNativeEstimatedFeeForAccount;exports.getNativeEstimatedFees=s.getNativeEstimatedFees;exports.getNativeFeeFromSimulation=s.getNativeFeeFromSimulation;exports.getNativeFeeTokenAddress=s.getNativeFeeTokenAddress;exports.getPaymasterFeeFromSimulation=s.getPaymasterFeeFromSimulation;exports.toMaxFeeEstimation=s.toMaxFeeEstimation;exports.EventsBySelector=Z.EventsBySelector;exports.findTransfersAndApprovals=Z.findTransfersAndApprovals;exports.getPrettyRpcError=Fe.getPrettyRpcError;exports.TransactionReviewServiceWeb=Be.TransactionReviewServiceWeb;exports.transactionReviewWarningSchema=Ie.transactionReviewWarningSchema;exports.getPayloadFromTransaction=we.getPayloadFromTransaction;exports.apiTransactionReviewActivityType=_e.apiTransactionReviewActivityType;exports.txVersionSchema=Oe.txVersionSchema;exports.classHashSupportsTxV3=Q.classHashSupportsTxV3;exports.feeTokenNeedsTxV3Support=Q.feeTokenNeedsTxV3Support;exports.transactionExecutionResponseSchema=_.transactionExecutionResponseSchema;exports.transactionPromotionPrizeSchema=_.transactionPromotionPrizeSchema;exports.transactionPromotionSchema=_.transactionPromotionSchema;exports.formatAddress=He.formatAddress;exports.ensureArray=Ve.ensureArray;exports.generateAvatarImage=E.generateAvatarImage;exports.getColor=E.getColor;exports.getNetworkAccountImageUrl=E.getNetworkAccountImageUrl;exports.stripAddressZeroPadding=E.stripAddressZeroPadding;exports.decodeBase58=q.decodeBase58;exports.decodeBase58Array=q.decodeBase58Array;exports.encodeBase58=q.encodeBase58;exports.encodeBase58Array=q.encodeBase58Array;exports.bigNumberSchema=Le.bigNumberSchema;exports.daysBetween=We.daysBetween;exports.isFeatureEnabled=Me.isFeatureEnabled;exports.hexSchema=J.hexSchema;exports.hexSchemaBase=J.hexSchemaBase;exports.id=xe.id;exports.getInitials=Ue.getInitials;exports.isContractDeployed=Ge.isContractDeployed;exports.nonNullable=ze.nonNullable;exports.isAllowedAddressHexInputValue=Ke.isAllowedAddressHexInputValue;exports.isAllowedNumericInputValue=$e.isAllowedNumericInputValue;exports.isNumeric=je.isNumeric;exports.prettifyCurrencyNumber=b.prettifyCurrencyNumber;exports.prettifyNumber=b.prettifyNumber;exports.prettifyNumberConfig=b.prettifyNumberConfig;exports.prettifyTokenNumber=b.prettifyTokenNumber;exports.abbreviateNumber=Xe.abbreviateNumber;exports.getUint256CalldataFromBN=ee.getUint256CalldataFromBN;exports.parseAmountValue=ee.parseAmountValue;exports.pluralise=Ye.pluralise;exports.readFileAsString=Ze.readFileAsString;exports.booleanToStringSchema=f.booleanToStringSchema;exports.createSchemaWithWarnings=f.createSchemaWithWarnings;exports.safeParseAndWarn=f.safeParseAndWarn;exports.stringToBooleanSchema=f.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;exports.CurrencyFetchService=ra.CurrencyFetchService;exports.currenciesDetailsSchema=ae.currenciesDetailsSchema;exports.currencyDetailsSchema=ae.currencyDetailsSchema;
|
package/dist/index.js
CHANGED
|
@@ -7,14 +7,14 @@ import { preferencesEndpointPayload as u, preferencesSchema as A } from "./src/a
|
|
|
7
7
|
import { argentBackendNetworkIdSchema as x, argentNetworkIdSchema as T, isArgentBackendNetworkId as k, isArgentNetworkId as C } from "./src/backend/schema.js";
|
|
8
8
|
import { backendSessionAllowedMethodSchema as E, backendSessionMetadataSchema as D, backendSessionSchema as v, backendSessionTxFeeSchema as P } from "./src/backend/sessionKeys/schema.js";
|
|
9
9
|
import { CacheService as R } from "./src/cache/CacheService.js";
|
|
10
|
-
import { addressOrEmptyUndefinedSchema as F, addressSchema as B, addressSchemaArgentBackend as I, addressSchemaBase as w, addressSchemaLooseLength as _, addressSchemaStrictLength as
|
|
10
|
+
import { addressOrEmptyUndefinedSchema as F, addressSchema as B, addressSchemaArgentBackend as I, addressSchemaBase as w, addressSchemaLooseLength as _, addressSchemaStrictLength as O, formatFullAddress as H, formatTruncatedAddress as L, formatTruncatedSignerKey as V, formatTruncatedString as M, getAddressOrEmptyUndefinedSchema as W, getAddressSchema as U, getAddressSchemaArgentBackend as G, getAddressSchemaBase as q, getAddressSchemaLooseLength as z, getAddressSchemaStrictLength as K, getAddressValidationSchemas as X, getValidChecksumAddressSchema as j, getValidateAddressRangeSchema as Y, includesAddress as Z, isAddress as Q, isBase58Address as J, isEqualAddress as $, isValidAddress as ee, isValidHexString as ae, isZeroAddress as re, normalizeAddress as te, normalizeAddressForCompare as oe, validChecksumAddressSchema as me, validateAddressRangeSchema as ne } from "./src/chains/starknet/address.js";
|
|
11
11
|
import { addressOrDomainInputSchema as ie, addressOrDomainSchema as ce, isEqualStarknetDomainName as Se, isStarknetDomainName as de, normalizeAddressOrDomain as pe, starknetDomainNameSchema as he } from "./src/chains/starknet/addressDomain.js";
|
|
12
12
|
import { addressInputCharactersAndLengthSchema as fe, addressInputSchema as ue } from "./src/chains/starknet/addressInput.js";
|
|
13
13
|
import { argentNameSchema as ge, isArgentName as xe, isEqualArgentName as Te, normalizeArgentName as ke } from "./src/chains/starknet/argentName.js";
|
|
14
14
|
import { cairoVersionSchema as ye } from "./src/chains/starknet/cairoVersionSchema.js";
|
|
15
15
|
import { ETH_TOKEN_ADDRESS as De, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as ve, STRK_TOKEN_ADDRESS as Pe, TXV1_ACCOUNT_CLASS_HASH as Ne, TXV1_MULTISIG_CLASS_HASH as Re, TXV3_ACCOUNT_CLASS_HASH as be, TXV3_MULTISIG_CLASS_HASH as Fe } from "./src/chains/starknet/constants.js";
|
|
16
16
|
import { apiWalletResponseSchema as Ie, getAddressFromArgentName as we } from "./src/chains/starknet/getAddressFromArgentName.js";
|
|
17
|
-
import { getAddressFromStarkName as
|
|
17
|
+
import { getAddressFromStarkName as Oe, getCallFromStarkName as He, getStarknetIdContractAddressFromNetworkId as Le, starkNameToCallDataDomain as Ve } from "./src/chains/starknet/getAddressFromStarkName.js";
|
|
18
18
|
import { getArgentNetwork as We, getChainIdFromNetworkId as Ue } from "./src/chains/starknet/network.js";
|
|
19
19
|
import { StarknetAddressService as qe } from "./src/chains/starknet/services/address/StarknetAddressService.js";
|
|
20
20
|
import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as Ke, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as Xe, C0_PROXY_CONTRACT_CLASS_HASHES as je } from "./src/chains/starknet/services/deploymentData/constants.js";
|
|
@@ -28,8 +28,8 @@ import { HTTPService as Da } from "./src/http/HttpService.js";
|
|
|
28
28
|
import { HTTP_ERROR_MESSAGE as Pa } from "./src/http/IHttpService.js";
|
|
29
29
|
import { SWRService as Ra } from "./src/http/SWRService.js";
|
|
30
30
|
import { fetchData as Fa, fetcherError as Ba, postData as Ia } from "./src/http/fetcher.js";
|
|
31
|
-
import { getBackendTimeNowSeconds as _a, getBackendTimeSeconds as
|
|
32
|
-
import { KnownDappsBackendService as
|
|
31
|
+
import { getBackendTimeNowSeconds as _a, getBackendTimeSeconds as Oa } from "./src/http/time.js";
|
|
32
|
+
import { KnownDappsBackendService as La } from "./src/knownDapps/KnownDappsBackendService.js";
|
|
33
33
|
import { dappContractSchema as Ma, dappLinkSchema as Wa, knownDappSchema as Ua, knownDappsSchema as Ga } from "./src/knownDapps/schema.js";
|
|
34
34
|
import { getDapplandLinkForDapp as za, getDapplandUrlForDapp as Ka } from "./src/knownDapps/utils/getDapplandUrl.js";
|
|
35
35
|
import { ResolveNameService as ja } from "./src/nameResolution/ResolveNameService.js";
|
|
@@ -43,7 +43,7 @@ import { getUAParserResult as yr, isBrowser as Er, isChromeBrowser as Dr, isEdge
|
|
|
43
43
|
import { seedphraseSchema as br } from "./src/signer/seedphrase.js";
|
|
44
44
|
import { MultiSigner as Br, getSignerForMultiSigner as Ir } from "./src/signer/multisigner.js";
|
|
45
45
|
import { mergeOwnerGuardianSignatures as _r } from "./src/signer/mergeOwnerGuardianSignatures.js";
|
|
46
|
-
import { buildSellOptsSchema as
|
|
46
|
+
import { buildSellOptsSchema as Hr, investmentMetaSchema as Lr, investmentSchema as Vr, investmentsResponseSchema as Mr, lendingInvestmentSchema as Wr, liquidStakingInvestmentSchema as Ur, stakerInfoSchema as Gr, stakingActionSchema as qr, strkDelegatedStakingInvestmentSchema as zr, strkStakingCalldataResponseSchema as Kr, strkStakingCalldataSchema as Xr } from "./src/staking/schema.js";
|
|
47
47
|
import { containsValue as Yr, replaceValueRecursively as Zr } from "./src/storage/utils.js";
|
|
48
48
|
import { mergeArrayStableWith as Jr, optionsWithDefaults as $r } from "./src/storage/base.js";
|
|
49
49
|
import { getTokenBalance as at, getTokens as rt, getTokensBalances as tt, useToken as ot } from "./src/tokens/balances.js";
|
|
@@ -58,27 +58,27 @@ import { PRETTY_UNLIMITED as Tt, prettifyTokenAmount as kt } from "./src/tokens/
|
|
|
58
58
|
import { getCurrencySymbol as yt } from "./src/tokens/getCurrencySymbol.js";
|
|
59
59
|
import { TokenServiceWeb as Dt } from "./src/tokens/service/implementation.js";
|
|
60
60
|
import { TOKEN_ERROR_MESSAGES as Pt, TokenError as Nt } from "./src/tokens/service/tokenError.js";
|
|
61
|
-
import { apiAccountTokenBalancesSchema as bt, apiAirdropSchema as Ft, apiCollateralizedDebtPositionSchema as Bt, apiCollateralizedDebtPositionsSchema as It, apiConcentratedLiquidityPositionSchema as wt, apiConcentratedLiquidityPositionsSchema as _t, apiDefiDecompositionProduct as
|
|
61
|
+
import { apiAccountTokenBalancesSchema as bt, apiAirdropSchema as Ft, apiCollateralizedDebtPositionSchema as Bt, apiCollateralizedDebtPositionsSchema as It, apiConcentratedLiquidityPositionSchema as wt, apiConcentratedLiquidityPositionsSchema as _t, apiDefiDecompositionProduct as Ot, apiDefiDecompositionProducts as Ht, apiDefiDecompositionSchema as Lt, apiDefiDecompositionToken as Vt, apiDefiPositionSchema as Mt, apiDefiPositionsSchema as Wt, apiDelegatedTokensArraySchema as Ut, apiDelegatedTokensSchema as Gt, apiPriceDataResponseSchema as qt, apiPriceDetailsSchema as zt, apiStakingPositionSchema as Kt, apiStakingPositionsSchema as Xt, apiStrkDelegatedStakingPositionsSchema as jt, apiStrkDelegatedStakingSchema as Yt, apiTokenInfoResponseSchema as Zt, apiTokenInfoSchema as Qt, apiTokensInfoResponseSchema as Jt, apiUnclaimedRewardsSchema as $t } from "./src/tokens/service/types/backend.model.js";
|
|
62
62
|
import { collateralizedDebtGroupSchema as ao, collateralizedDebtPositionSchema as ro, collateralizedDebtPositionsSchema as to, concentratedLiquidityPositionSchema as oo, concentratedLiquidityPositionsSchema as mo, defiDappsProductsSchema as no, defiPositionSchema as so, defiProductSchema as io, defiProductsSchema as co, delegatedTokensArraySchema as So, delegatedTokensSchema as po, productGroupsSchema as ho, stakingPositionSchema as lo, stakingPositionsSchema as fo, strkDelegatedStakingPositionArraySchema as uo, strkDelegatedStakingPositionSchema as Ao } from "./src/tokens/service/types/defiPosition.model.js";
|
|
63
63
|
import { defiPositionTypeSchema as xo } from "./src/tokens/service/types/defiPositionType.model.js";
|
|
64
64
|
import { airdropSchema as ko, unclaimedRewardsSchema as Co } from "./src/tokens/service/types/unclaimedRewards.model.js";
|
|
65
65
|
import { webBaseTokenSchema as Eo, webBaseTokenWithBalanceSchema as Do, webTokenInfoDetailsSchema as vo, webTokenPriceDetailsSchema as Po, webTokenSchema as No, webTokenWithBalanceAndPriceSchema as Ro, webTokenWithBalanceSchema as bo, webTokenWithPriceSchema as Fo, webTokensWithBalanceAndPriceSchema as Bo } from "./src/tokens/service/types/webToken.model.js";
|
|
66
|
-
import { isCollateralizedDebtPosition as wo, isConcentratedLiquidityPosition as _o, isDelegatedTokens as
|
|
66
|
+
import { isCollateralizedDebtPosition as wo, isConcentratedLiquidityPosition as _o, isDelegatedTokens as Oo, isStaking as Ho, isStrkDelegatedStaking as Lo } from "./src/tokens/utils.js";
|
|
67
67
|
import { inputAmountSchema as Mo, isValidInputAmount as Wo, parseAmount as Uo } from "./src/transactions/amount.js";
|
|
68
68
|
import { erc20TransferTransaction as qo, erc721SafeTransferFromTransaction as zo, erc721TransferFromTransaction as Ko } from "./src/transactions/buildTransactions.js";
|
|
69
69
|
import { getMessageFromTrpcError as jo, trpcErrorSchema as Yo } from "./src/transactions/errors.js";
|
|
70
70
|
import { FEE_OVERHEAD as Qo, argentMaxFee as Jo, modifySnjsFeeOverhead as $o } from "./src/transactions/estimate/argentMaxFee.js";
|
|
71
71
|
import { ESTIMATE_ERROR_MESSAGES as am, EstimateError as rm } from "./src/transactions/estimate/error.js";
|
|
72
72
|
import { transactionReviewTransactionsSchema as om } from "./src/transactions/estimate/model.js";
|
|
73
|
-
import { estimatedFeeToMaxFeeTotal as nm, estimatedFeeToMaxResourceBounds as sm, estimatedFeeToTotal as im, estimatedFeesToMaxFeeTotalV2 as cm, estimatedFeesToTotal as Sm,
|
|
73
|
+
import { estimatedFeeToMaxFeeTotal as nm, estimatedFeeToMaxResourceBounds as sm, estimatedFeeToTotal as im, estimatedFeesToMaxFeeTotalV2 as cm, estimatedFeesToTotal as Sm, estimatedFeesToTotalWithOverallFee as dm, filterPaymasterEstimatedFees as pm, getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2 as hm, getNativeEstimatedFeeByFeeToken as lm, getNativeEstimatedFeeByTxVersion as fm, getNativeEstimatedFeeForAccount as um, getNativeEstimatedFees as Am, getNativeFeeFromSimulation as gm, getNativeFeeTokenAddress as xm, getPaymasterFeeFromSimulation as Tm, toMaxFeeEstimation as km } from "./src/transactions/estimate/utils.js";
|
|
74
74
|
import { EventsBySelector as ym, findTransfersAndApprovals as Em } from "./src/transactions/findTransfersAndApprovals.js";
|
|
75
75
|
import { getPrettyRpcError as vm } from "./src/transactions/getPrettyRcpError.js";
|
|
76
76
|
import { TransactionReviewServiceWeb as Nm } from "./src/transactions/service/implementation.js";
|
|
77
77
|
import { transactionReviewWarningSchema as bm } from "./src/transactions/service/types.js";
|
|
78
78
|
import { getPayloadFromTransaction as Bm } from "./src/transactions/service/utils.js";
|
|
79
79
|
import { apiTransactionReviewActivityType as wm } from "./src/transactions/transactionReviewTypes.js";
|
|
80
|
-
import { txVersionSchema as
|
|
81
|
-
import { classHashSupportsTxV3 as
|
|
80
|
+
import { txVersionSchema as Om } from "./src/transactions/transactionVersion.js";
|
|
81
|
+
import { classHashSupportsTxV3 as Lm, feeTokenNeedsTxV3Support as Vm } from "./src/transactions/txv3.js";
|
|
82
82
|
import { transactionExecutionResponseSchema as Wm, transactionPromotionPrizeSchema as Um, transactionPromotionSchema as Gm } from "./src/transactions/transactionExecuteTypes.js";
|
|
83
83
|
import { formatAddress as zm } from "./src/utils/address.js";
|
|
84
84
|
import { ensureArray as Xm } from "./src/utils/arrays.js";
|
|
@@ -97,12 +97,12 @@ import { isAllowedNumericInputValue as Dn } from "./src/utils/number/isAllowedNu
|
|
|
97
97
|
import { isNumeric as Pn } from "./src/utils/number/isNumeric.js";
|
|
98
98
|
import { prettifyCurrencyNumber as Rn, prettifyNumber as bn, prettifyNumberConfig as Fn, prettifyTokenNumber as Bn } from "./src/utils/number/prettifyNumber.js";
|
|
99
99
|
import { abbreviateNumber as wn } from "./src/utils/number/abbreviateNumber.js";
|
|
100
|
-
import { getUint256CalldataFromBN as
|
|
100
|
+
import { getUint256CalldataFromBN as On, parseAmountValue as Hn } from "./src/utils/parseAmount.js";
|
|
101
101
|
import { pluralise as Vn } from "./src/utils/pluralise.js";
|
|
102
102
|
import { readFileAsString as Wn } from "./src/utils/readFileAsString.js";
|
|
103
103
|
import { booleanToStringSchema as Gn, createSchemaWithWarnings as qn, safeParseAndWarn as zn, stringToBooleanSchema as Kn } from "./src/utils/schemas.js";
|
|
104
104
|
import { addOwnersCalldataSchema as jn, addPluginCalldataSchema as Yn, bigNumberishSchema as Zn, callDetailsSchema as Qn, callSchema as Jn, calldataSchema as $n, changeGuardianCalldataSchema as es, changeThresholdCalldataSchema as as, escapeGuardianCalldataSchema as rs, executeOnPluginCalldataSchema as ts, feltSchema as os, looseCalldataSchema as ms, multiTypeSchema as ns, rawArgsArraySchema as ss, rawArgsObjectSchema as is, rawArgsSchema as cs, removeOwnersCalldataSchema as Ss, removePluginCalldataSchema as ds, replaceSignerCalldataSchema as ps, transferCalldataSchema as hs, typedDataSchema as ls, uint256Schema as fs } from "./src/utils/starknet/starknet.js";
|
|
105
|
-
import { abiEntrySchema as As, abiSchema as gs, builtinsSchema as xs, byteCodeSchema as Ts, cairo1EventSchema as ks, cairoAssemblySchema as Cs, compiledContractClassSchema as ys, compiledSierraCasmSchema as Es, compiledSierraSchema as Ds, compressedProgramSchema as vs, contractEntryPointFieldsSchema as Ps, entryPointsByTypeSchema as Ns, eventAbiSchema as Rs, eventEntrySchema as bs, functionAbiSchema as Fs, functionAbiTypeSchema as Bs, legacyContractClassSchema as Is, legacyEventSchema as ws, programSchema as _s, pythonicHintsSchema as
|
|
105
|
+
import { abiEntrySchema as As, abiSchema as gs, builtinsSchema as xs, byteCodeSchema as Ts, cairo1EventSchema as ks, cairoAssemblySchema as Cs, compiledContractClassSchema as ys, compiledSierraCasmSchema as Es, compiledSierraSchema as Ds, compressedProgramSchema as vs, contractEntryPointFieldsSchema as Ps, entryPointsByTypeSchema as Ns, eventAbiSchema as Rs, eventEntrySchema as bs, functionAbiSchema as Fs, functionAbiTypeSchema as Bs, legacyContractClassSchema as Is, legacyEventSchema as ws, programSchema as _s, pythonicHintsSchema as Os, sierraContractEntryPointFieldsSchema as Hs, sierraEntryPointsByTypeSchema as Ls, sierraProgramDebugInfoSchema as Vs, structAbiSchema as Ms } from "./src/utils/starknet/starknetSchemas.js";
|
|
106
106
|
import { entryPointToHumanReadable as Us } from "./src/utils/transactions.js";
|
|
107
107
|
import { urlWithQuery as qs } from "./src/utils/url/urlWithQuery.js";
|
|
108
108
|
import { voidify as Ks } from "./src/utils/voidify.js";
|
|
@@ -132,7 +132,7 @@ export {
|
|
|
132
132
|
Da as HTTPService,
|
|
133
133
|
Pa as HTTP_ERROR_MESSAGE,
|
|
134
134
|
ya as HttpError,
|
|
135
|
-
|
|
135
|
+
La as KnownDappsBackendService,
|
|
136
136
|
Br as MultiSigner,
|
|
137
137
|
ir as OnchainRecoveryService,
|
|
138
138
|
Tt as PRETTY_UNLIMITED,
|
|
@@ -166,7 +166,7 @@ export {
|
|
|
166
166
|
I as addressSchemaArgentBackend,
|
|
167
167
|
w as addressSchemaBase,
|
|
168
168
|
_ as addressSchemaLooseLength,
|
|
169
|
-
|
|
169
|
+
O as addressSchemaStrictLength,
|
|
170
170
|
ko as airdropSchema,
|
|
171
171
|
bt as apiAccountTokenBalancesSchema,
|
|
172
172
|
Ft as apiAirdropSchema,
|
|
@@ -174,9 +174,9 @@ export {
|
|
|
174
174
|
It as apiCollateralizedDebtPositionsSchema,
|
|
175
175
|
wt as apiConcentratedLiquidityPositionSchema,
|
|
176
176
|
_t as apiConcentratedLiquidityPositionsSchema,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
Ot as apiDefiDecompositionProduct,
|
|
178
|
+
Ht as apiDefiDecompositionProducts,
|
|
179
|
+
Lt as apiDefiDecompositionSchema,
|
|
180
180
|
Vt as apiDefiDecompositionToken,
|
|
181
181
|
Mt as apiDefiPositionSchema,
|
|
182
182
|
Wt as apiDefiPositionsSchema,
|
|
@@ -209,7 +209,7 @@ export {
|
|
|
209
209
|
js as bipsToPercent,
|
|
210
210
|
Gn as booleanToStringSchema,
|
|
211
211
|
ea as buildConstructorCalldata,
|
|
212
|
-
|
|
212
|
+
Hr as buildSellOptsSchema,
|
|
213
213
|
xs as builtinsSchema,
|
|
214
214
|
Ts as byteCodeSchema,
|
|
215
215
|
ks as cairo1EventSchema,
|
|
@@ -220,7 +220,7 @@ export {
|
|
|
220
220
|
$n as calldataSchema,
|
|
221
221
|
es as changeGuardianCalldataSchema,
|
|
222
222
|
as as changeThresholdCalldataSchema,
|
|
223
|
-
|
|
223
|
+
Lm as classHashSupportsTxV3,
|
|
224
224
|
ao as collateralizedDebtGroupSchema,
|
|
225
225
|
ro as collateralizedDebtPositionSchema,
|
|
226
226
|
to as collateralizedDebtPositionsSchema,
|
|
@@ -268,7 +268,7 @@ export {
|
|
|
268
268
|
im as estimatedFeeToTotal,
|
|
269
269
|
cm as estimatedFeesToMaxFeeTotalV2,
|
|
270
270
|
Sm as estimatedFeesToTotal,
|
|
271
|
-
dm as
|
|
271
|
+
dm as estimatedFeesToTotalWithOverallFee,
|
|
272
272
|
Rs as eventAbiSchema,
|
|
273
273
|
bs as eventEntrySchema,
|
|
274
274
|
ts as executeOnPluginCalldataSchema,
|
|
@@ -280,8 +280,8 @@ export {
|
|
|
280
280
|
aa as findImplementationForAccount,
|
|
281
281
|
Em as findTransfersAndApprovals,
|
|
282
282
|
zm as formatAddress,
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
H as formatFullAddress,
|
|
284
|
+
L as formatTruncatedAddress,
|
|
285
285
|
V as formatTruncatedSignerKey,
|
|
286
286
|
M as formatTruncatedString,
|
|
287
287
|
Fs as functionAbiSchema,
|
|
@@ -291,7 +291,7 @@ export {
|
|
|
291
291
|
ta as getAccountDeploymentPayload,
|
|
292
292
|
na as getAccountVersionByClasshash,
|
|
293
293
|
we as getAddressFromArgentName,
|
|
294
|
-
|
|
294
|
+
Oe as getAddressFromStarkName,
|
|
295
295
|
W as getAddressOrEmptyUndefinedSchema,
|
|
296
296
|
U as getAddressSchema,
|
|
297
297
|
G as getAddressSchemaArgentBackend,
|
|
@@ -304,8 +304,8 @@ export {
|
|
|
304
304
|
ca as getArgentAccountWithMultiSignerClassHashes,
|
|
305
305
|
We as getArgentNetwork,
|
|
306
306
|
_a as getBackendTimeNowSeconds,
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
Oa as getBackendTimeSeconds,
|
|
308
|
+
He as getCallFromStarkName,
|
|
309
309
|
Ue as getChainIdFromNetworkId,
|
|
310
310
|
Zm as getColor,
|
|
311
311
|
yt as getCurrencySymbol,
|
|
@@ -331,12 +331,12 @@ export {
|
|
|
331
331
|
Tm as getPaymasterFeeFromSimulation,
|
|
332
332
|
vm as getPrettyRpcError,
|
|
333
333
|
Ir as getSignerForMultiSigner,
|
|
334
|
-
|
|
334
|
+
Le as getStarknetIdContractAddressFromNetworkId,
|
|
335
335
|
at as getTokenBalance,
|
|
336
336
|
rt as getTokens,
|
|
337
337
|
tt as getTokensBalances,
|
|
338
338
|
yr as getUAParserResult,
|
|
339
|
-
|
|
339
|
+
On as getUint256CalldataFromBN,
|
|
340
340
|
j as getValidChecksumAddressSchema,
|
|
341
341
|
Y as getValidateAddressRangeSchema,
|
|
342
342
|
pn as hexSchema,
|
|
@@ -345,7 +345,7 @@ export {
|
|
|
345
345
|
Je as implementationSchema,
|
|
346
346
|
Z as includesAddress,
|
|
347
347
|
Mo as inputAmountSchema,
|
|
348
|
-
|
|
348
|
+
Lr as investmentMetaSchema,
|
|
349
349
|
Vr as investmentSchema,
|
|
350
350
|
Mr as investmentsResponseSchema,
|
|
351
351
|
p as isAccountV4,
|
|
@@ -364,7 +364,7 @@ export {
|
|
|
364
364
|
wo as isCollateralizedDebtPosition,
|
|
365
365
|
_o as isConcentratedLiquidityPosition,
|
|
366
366
|
xn as isContractDeployed,
|
|
367
|
-
|
|
367
|
+
Oo as isDelegatedTokens,
|
|
368
368
|
vr as isEdgeBrowser,
|
|
369
369
|
$ as isEqualAddress,
|
|
370
370
|
Te as isEqualArgentName,
|
|
@@ -375,10 +375,10 @@ export {
|
|
|
375
375
|
Pr as isFirefoxBrowser,
|
|
376
376
|
Pn as isNumeric,
|
|
377
377
|
Nr as isSafariBrowser,
|
|
378
|
-
|
|
378
|
+
Ho as isStaking,
|
|
379
379
|
de as isStarknetDomainName,
|
|
380
380
|
Aa as isStarknetId,
|
|
381
|
-
|
|
381
|
+
Lo as isStrkDelegatedStaking,
|
|
382
382
|
ut as isUnlimitedAmount,
|
|
383
383
|
ee as isValidAddress,
|
|
384
384
|
ae as isValidHexString,
|
|
@@ -409,7 +409,7 @@ export {
|
|
|
409
409
|
hr as onchainRecoverySchema,
|
|
410
410
|
$r as optionsWithDefaults,
|
|
411
411
|
Uo as parseAmount,
|
|
412
|
-
|
|
412
|
+
Hn as parseAmountValue,
|
|
413
413
|
Vn as pluralise,
|
|
414
414
|
Ia as postData,
|
|
415
415
|
u as preferencesEndpointPayload,
|
|
@@ -423,7 +423,7 @@ export {
|
|
|
423
423
|
ho as productGroupsSchema,
|
|
424
424
|
_s as programSchema,
|
|
425
425
|
ar as providersNamesSchema,
|
|
426
|
-
|
|
426
|
+
Os as pythonicHintsSchema,
|
|
427
427
|
ss as rawArgsArraySchema,
|
|
428
428
|
is as rawArgsObjectSchema,
|
|
429
429
|
cs as rawArgsSchema,
|
|
@@ -438,8 +438,8 @@ export {
|
|
|
438
438
|
Zs as retryUntilInitialised,
|
|
439
439
|
zn as safeParseAndWarn,
|
|
440
440
|
br as seedphraseSchema,
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
Hs as sierraContractEntryPointFieldsSchema,
|
|
442
|
+
Ls as sierraEntryPointsByTypeSchema,
|
|
443
443
|
Vs as sierraProgramDebugInfoSchema,
|
|
444
444
|
Gr as stakerInfoSchema,
|
|
445
445
|
qr as stakingActionSchema,
|
|
@@ -467,7 +467,7 @@ export {
|
|
|
467
467
|
bm as transactionReviewWarningSchema,
|
|
468
468
|
hs as transferCalldataSchema,
|
|
469
469
|
Yo as trpcErrorSchema,
|
|
470
|
-
|
|
470
|
+
Om as txVersionSchema,
|
|
471
471
|
ls as typedDataSchema,
|
|
472
472
|
fs as uint256Schema,
|
|
473
473
|
Co as unclaimedRewardsSchema,
|
package/dist/simulation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./src/features/simulation/activity/normalize.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./src/features/simulation/activity/normalize.cjs"),i=require("./src/features/simulation/activity/schema.cjs"),c=require("./src/features/simulation/activity/utils/createNativeActivity.cjs"),s=require("./src/features/simulation/activity/utils/getAnyActivityTitle.cjs"),r=require("./src/features/simulation/activity/utils/getOverallLastModified.cjs"),n=require("./src/features/simulation/activity/utils/hasDelegationActivity.cjs"),o=require("./src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs"),S=require("./src/features/simulation/activity/utils/isRejectOnChainActivity.cjs"),v=require("./src/features/simulation/activity/utils/isSwapActivity.cjs"),y=require("./src/features/simulation/activity/utils/isUpgradeActivity.cjs"),h=require("./src/features/simulation/activity/utils/parseAccountActivities.cjs"),u=require("./src/features/simulation/activity/utils/parseFinanceActivities.cjs"),A=require("./src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs"),l=require("./src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs"),g=require("./src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs"),t=require("./src/features/simulation/fees/schema.cjs"),d=require("./src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs"),p=require("./src/features/simulation/transactionReview/getMessageFromSimulationError.cjs"),e=require("./src/features/simulation/transactionReview/schema.cjs"),m=require("./src/features/simulation/warning/schema.cjs"),E=require("./src/features/simulation/warning/helper.cjs");exports.normalizeActivitySummary=a.normalizeActivitySummary;exports.normalizeActivitySummaryCollection=a.normalizeActivitySummaryCollection;exports.NativeActivityStatusCancelled=i.NativeActivityStatusCancelled;exports.NativeActivityStatusQueued=i.NativeActivityStatusQueued;exports.NativeActivityStatusRejected=i.NativeActivityStatusRejected;exports.NativeActivityTypeNative=i.NativeActivityTypeNative;exports.activitiesSchema=i.activitiesSchema;exports.activityDappSchema=i.activityDappSchema;exports.activityDetailsSchema=i.activityDetailsSchema;exports.activityResponseSchema=i.activityResponseSchema;exports.activitySchema=i.activitySchema;exports.activitySummarySchema=i.activitySummarySchema;exports.activityTransferSchema=i.activityTransferSchema;exports.feeSchema=i.feeSchema;exports.isActivityDetailsAction=i.isActivityDetailsAction;exports.isActivitySummary=i.isActivitySummary;exports.isNftActivitySummary=i.isNftActivitySummary;exports.isTokenActivitySummary=i.isTokenActivitySummary;exports.nativeActivityMetaSchema=i.nativeActivityMetaSchema;exports.nativeActivitySchema=i.nativeActivitySchema;exports.createNativeActivity=c.createNativeActivity;exports.normalizeActions=c.normalizeActions;exports.getAnyActivityShortTitle=s.getAnyActivityShortTitle;exports.getAnyActivityTitle=s.getAnyActivityTitle;exports.getOverallLastModified=r.getOverallLastModified;exports.hasDelegationActivity=n.hasDelegationActivity;exports.isMulticallWithDeploymentActivity=o.isMulticallWithDeploymentActivity;exports.isRejectOnChainActivity=S.isRejectOnChainActivity;exports.isSwapActivity=v.isSwapActivity;exports.isUpgradeActivity=y.isUpgradeActivity;exports.parseAccountActivities=h.parseAccountActivities;exports.parseFinanceActivities=u.parseFinanceActivities;exports.isAddMultisigSignersActivity=A.isAddMultisigSignersActivity;exports.isChangeMultisigThresholdActivity=l.isChangeMultisigThresholdActivity;exports.isRemoveMultisigSignersActivity=g.isRemoveMultisigSignersActivity;exports.estimatedFeeSchema=t.estimatedFeeSchema;exports.estimatedFeesSchema=t.estimatedFeesSchema;exports.feeEstimationResultSchema=t.feeEstimationResultSchema;exports.nativeEstimatedFeeSchema=t.nativeEstimatedFeeSchema;exports.nativeEstimatedFeesSchema=t.nativeEstimatedFeesSchema;exports.paymasterEstimatedFeeSchema=t.paymasterEstimatedFeeSchema;exports.paymasterEstimatedFeesSchema=t.paymasterEstimatedFeesSchema;exports.resourceBoundsSchema=t.resourceBoundsSchema;exports.getErrorMessageAndLabelFromSimulation=d.getErrorMessageAndLabelFromSimulation;exports.getMessageFromSimulationError=p.getMessageFromSimulationError;exports.actionSchema=e.actionSchema;exports.assessmentSchema=e.assessmentSchema;exports.enrichedSimulateAndReviewSchema=e.enrichedSimulateAndReviewSchema;exports.feeEstimationGasSchema=e.feeEstimationGasSchema;exports.feeEstimationNativeOrPaymasterSchema=e.feeEstimationNativeOrPaymasterSchema;exports.feeEstimationResourceBoundSchema=e.feeEstimationResourceBoundSchema;exports.feeEstimationSchema=e.feeEstimationSchema;exports.isNotTransactionSimulationError=e.isNotTransactionSimulationError;exports.isTransactionSimulationError=e.isTransactionSimulationError;exports.paymasterFeeEstimationSchema=e.paymasterFeeEstimationSchema;exports.paymasterFeeTokenSchema=e.paymasterFeeTokenSchema;exports.promotionSchema=e.promotionSchema;exports.promotionsSchema=e.promotionsSchema;exports.propertySchema=e.propertySchema;exports.reviewSchema=e.reviewSchema;exports.simulateAndReviewSchema=e.simulateAndReviewSchema;exports.subsidyStatusSchema=e.subsidyStatusSchema;exports.targetedDappSchema=e.targetedDappSchema;exports.warningDetailsSchema=e.warningDetailsSchema;exports.warningSchema=e.warningSchema;exports.reasonsSchema=m.reasonsSchema;exports.severitySchema=m.severitySchema;exports.getHighestSeverity=E.getHighestSeverity;
|
package/dist/simulation.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { normalizeActivitySummary as i, normalizeActivitySummaryCollection as a } from "./src/features/simulation/activity/normalize.js";
|
|
2
|
-
import { NativeActivityStatusCancelled as r, NativeActivityStatusQueued as
|
|
2
|
+
import { NativeActivityStatusCancelled as r, NativeActivityStatusQueued as o, NativeActivityStatusRejected as c, NativeActivityTypeNative as s, activitiesSchema as S, activityDappSchema as n, activityDetailsSchema as v, activityResponseSchema as y, activitySchema as h, activitySummarySchema as p, activityTransferSchema as A, feeSchema as l, isActivityDetailsAction as f, isActivitySummary as u, isNftActivitySummary as d, isTokenActivitySummary as x, nativeActivityMetaSchema as g, nativeActivitySchema as E } from "./src/features/simulation/activity/schema.js";
|
|
3
3
|
import { createNativeActivity as N, normalizeActions as T } from "./src/features/simulation/activity/utils/createNativeActivity.js";
|
|
4
|
-
import { getAnyActivityShortTitle as R, getAnyActivityTitle as
|
|
5
|
-
import { getOverallLastModified as
|
|
4
|
+
import { getAnyActivityShortTitle as R, getAnyActivityTitle as D } from "./src/features/simulation/activity/utils/getAnyActivityTitle.js";
|
|
5
|
+
import { getOverallLastModified as C } from "./src/features/simulation/activity/utils/getOverallLastModified.js";
|
|
6
6
|
import { hasDelegationActivity as O } from "./src/features/simulation/activity/utils/hasDelegationActivity.js";
|
|
7
7
|
import { isMulticallWithDeploymentActivity as j } from "./src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js";
|
|
8
8
|
import { isRejectOnChainActivity as B } from "./src/features/simulation/activity/utils/isRejectOnChainActivity.js";
|
|
@@ -10,18 +10,21 @@ import { isSwapActivity as G } from "./src/features/simulation/activity/utils/is
|
|
|
10
10
|
import { isUpgradeActivity as P } from "./src/features/simulation/activity/utils/isUpgradeActivity.js";
|
|
11
11
|
import { parseAccountActivities as U } from "./src/features/simulation/activity/utils/parseAccountActivities.js";
|
|
12
12
|
import { parseFinanceActivities as q } from "./src/features/simulation/activity/utils/parseFinanceActivities.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
13
|
+
import { isAddMultisigSignersActivity as J } from "./src/features/simulation/activity/utils/isAddMultisigSignersActivity.js";
|
|
14
|
+
import { isChangeMultisigThresholdActivity as V } from "./src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js";
|
|
15
|
+
import { isRemoveMultisigSignersActivity as Y } from "./src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js";
|
|
16
|
+
import { estimatedFeeSchema as _, estimatedFeesSchema as $, feeEstimationResultSchema as ee, nativeEstimatedFeeSchema as te, nativeEstimatedFeesSchema as ie, paymasterEstimatedFeeSchema as ae, paymasterEstimatedFeesSchema as me, resourceBoundsSchema as re } from "./src/features/simulation/fees/schema.js";
|
|
17
|
+
import { getErrorMessageAndLabelFromSimulation as ce } from "./src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js";
|
|
18
|
+
import { getMessageFromSimulationError as Se } from "./src/features/simulation/transactionReview/getMessageFromSimulationError.js";
|
|
19
|
+
import { actionSchema as ve, assessmentSchema as ye, enrichedSimulateAndReviewSchema as he, feeEstimationGasSchema as pe, feeEstimationNativeOrPaymasterSchema as Ae, feeEstimationResourceBoundSchema as le, feeEstimationSchema as fe, isNotTransactionSimulationError as ue, isTransactionSimulationError as de, paymasterFeeEstimationSchema as xe, paymasterFeeTokenSchema as ge, promotionSchema as Ee, promotionsSchema as Fe, propertySchema as Ne, reviewSchema as Te, simulateAndReviewSchema as Me, subsidyStatusSchema as Re, targetedDappSchema as De, warningDetailsSchema as we, warningSchema as Ce } from "./src/features/simulation/transactionReview/schema.js";
|
|
20
|
+
import { reasonsSchema as Oe, severitySchema as be } from "./src/features/simulation/warning/schema.js";
|
|
21
|
+
import { getHighestSeverity as ke } from "./src/features/simulation/warning/helper.js";
|
|
19
22
|
export {
|
|
20
23
|
r as NativeActivityStatusCancelled,
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
o as NativeActivityStatusQueued,
|
|
25
|
+
c as NativeActivityStatusRejected,
|
|
23
26
|
s as NativeActivityTypeNative,
|
|
24
|
-
|
|
27
|
+
ve as actionSchema,
|
|
25
28
|
S as activitiesSchema,
|
|
26
29
|
n as activityDappSchema,
|
|
27
30
|
v as activityDetailsSchema,
|
|
@@ -29,57 +32,60 @@ export {
|
|
|
29
32
|
h as activitySchema,
|
|
30
33
|
p as activitySummarySchema,
|
|
31
34
|
A as activityTransferSchema,
|
|
32
|
-
|
|
35
|
+
ye as assessmentSchema,
|
|
33
36
|
N as createNativeActivity,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
he as enrichedSimulateAndReviewSchema,
|
|
38
|
+
_ as estimatedFeeSchema,
|
|
39
|
+
$ as estimatedFeesSchema,
|
|
40
|
+
pe as feeEstimationGasSchema,
|
|
41
|
+
Ae as feeEstimationNativeOrPaymasterSchema,
|
|
42
|
+
le as feeEstimationResourceBoundSchema,
|
|
43
|
+
ee as feeEstimationResultSchema,
|
|
44
|
+
fe as feeEstimationSchema,
|
|
45
|
+
l as feeSchema,
|
|
43
46
|
R as getAnyActivityShortTitle,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
D as getAnyActivityTitle,
|
|
48
|
+
ce as getErrorMessageAndLabelFromSimulation,
|
|
49
|
+
ke as getHighestSeverity,
|
|
50
|
+
Se as getMessageFromSimulationError,
|
|
51
|
+
C as getOverallLastModified,
|
|
49
52
|
O as hasDelegationActivity,
|
|
50
|
-
|
|
53
|
+
f as isActivityDetailsAction,
|
|
51
54
|
u as isActivitySummary,
|
|
55
|
+
J as isAddMultisigSignersActivity,
|
|
56
|
+
V as isChangeMultisigThresholdActivity,
|
|
52
57
|
j as isMulticallWithDeploymentActivity,
|
|
53
58
|
d as isNftActivitySummary,
|
|
54
|
-
|
|
59
|
+
ue as isNotTransactionSimulationError,
|
|
55
60
|
B as isRejectOnChainActivity,
|
|
61
|
+
Y as isRemoveMultisigSignersActivity,
|
|
56
62
|
G as isSwapActivity,
|
|
57
63
|
x as isTokenActivitySummary,
|
|
58
|
-
|
|
64
|
+
de as isTransactionSimulationError,
|
|
59
65
|
P as isUpgradeActivity,
|
|
60
66
|
g as nativeActivityMetaSchema,
|
|
61
67
|
E as nativeActivitySchema,
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
te as nativeEstimatedFeeSchema,
|
|
69
|
+
ie as nativeEstimatedFeesSchema,
|
|
64
70
|
T as normalizeActions,
|
|
65
71
|
i as normalizeActivitySummary,
|
|
66
72
|
a as normalizeActivitySummaryCollection,
|
|
67
73
|
U as parseAccountActivities,
|
|
68
74
|
q as parseFinanceActivities,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
ae as paymasterEstimatedFeeSchema,
|
|
76
|
+
me as paymasterEstimatedFeesSchema,
|
|
77
|
+
xe as paymasterFeeEstimationSchema,
|
|
78
|
+
ge as paymasterFeeTokenSchema,
|
|
79
|
+
Ee as promotionSchema,
|
|
80
|
+
Fe as promotionsSchema,
|
|
81
|
+
Ne as propertySchema,
|
|
82
|
+
Oe as reasonsSchema,
|
|
83
|
+
re as resourceBoundsSchema,
|
|
84
|
+
Te as reviewSchema,
|
|
85
|
+
be as severitySchema,
|
|
86
|
+
Me as simulateAndReviewSchema,
|
|
87
|
+
Re as subsidyStatusSchema,
|
|
88
|
+
De as targetedDappSchema,
|
|
89
|
+
we as warningDetailsSchema,
|
|
90
|
+
Ce as warningSchema
|
|
85
91
|
};
|
|
@@ -8,3 +8,6 @@ export * from './isSwapActivity';
|
|
|
8
8
|
export * from './isUpgradeActivity';
|
|
9
9
|
export * from './parseAccountActivities';
|
|
10
10
|
export * from './parseFinanceActivities';
|
|
11
|
+
export * from './isAddMultisigSignersActivity';
|
|
12
|
+
export * from './isChangeMultisigThresholdActivity';
|
|
13
|
+
export * from './isRemoveMultisigSignersActivity';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t,i){const e=r(t),s=d(t,i);return e||s}const r=t=>{var e;if(!((e=t.actions)!=null&&e.length))return!1;const i=t.actions[0];if(i.name!=="account_multisig_add_signers")return!1;if(i.defaultProperties){for(const s of i.defaultProperties)if(s.type==="calldata"&&s.entrypoint==="add_signers")return!0}return!1},d=(t,i)=>{var e,s;return!!("meta"in t&&(s=(e=t.meta)==null?void 0:e.title)!=null&&s.includes(i("transactionTitle.addMultisigOwner")))};exports.isAddMultisigSignersActivity=n;
|