@argent/x-shared 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("./src/bigdecimal/index.cjs"),te=require("./src/errors/baseErrors.cjs"),re=require("./src/accountNameGenerator/index.cjs"),b=require("./src/account/account.model.cjs"),R=require("./src/account/accountv4.cjs"),O=require("./src/account/preferences.model.cjs"),p=require("./src/backend/schema.cjs"),g=require("./src/backend/sessionKeys/schema.cjs"),ne=require("./src/cache/CacheService.cjs"),n=require("./src/chains/starknet/address.cjs"),d=require("./src/chains/starknet/addressDomain.cjs"),H=require("./src/chains/starknet/addressInput.cjs"),T=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"),k=require("./src/chains/starknet/getAddressFromStarkName.cjs"),se=require("./src/chains/starknet/network.cjs"),oe=require("./src/chains/starknet/services/address/StarknetAddressService.cjs"),P=require("./src/chains/starknet/services/deploymentData/constants.cjs"),N=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),h=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),m=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),y=require("./src/chains/starknet/starknetId.cjs"),ce=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"),I=require("./src/http/fetcher.cjs"),L=require("./src/http/time.cjs"),ue=require("./src/knownDapps/KnownDappsBackendService.cjs"),C=require("./src/knownDapps/schema.cjs"),x=require("./src/knownDapps/utils/getDapplandUrl.cjs"),he=require("./src/nameResolution/ResolveNameService.cjs"),l=require("./src/nameResolution/schema.cjs"),Ae=require("./src/nfts/BackendNftService.cjs"),M=require("./src/nfts/utils.cjs"),pe=require("./src/onchainRecovery/OnchainRecoveryService.cjs"),s=require("./src/onchainRecovery/schema.cjs"),ge=require("./src/platform/isBraveBrowser.cjs"),u=require("./src/platform/isBrowser.cjs"),Te=require("./src/signer/seedphrase.cjs"),W=require("./src/signer/multisigner.cjs"),ke=require("./src/signer/mergeOwnerGuardianSignatures.cjs"),o=require("./src/staking/schema.cjs"),U=require("./src/storage/utils.cjs"),G=require("./src/storage/base.cjs"),D=require("./src/tokens/balances.cjs"),ye=require("./src/tokens/constants.cjs"),Ce=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),De=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),Ee=require("./src/tokens/ensureDecimals.cjs"),qe=require("./src/tokens/isUnlimitedAmount.cjs"),ve=require("./src/tokens/prettifyCurrencyValue.cjs"),z=require("./src/tokens/prettifyTokenAmount.cjs"),fe=require("./src/tokens/getCurrencySymbol.cjs"),be=require("./src/tokens/service/implementation.cjs"),j=require("./src/tokens/service/tokenError.cjs"),e=require("./src/tokens/service/types/backend.model.cjs"),i=require("./src/tokens/service/types/defiPosition.model.cjs"),Re=require("./src/tokens/service/types/defiPositionType.model.cjs"),K=require("./src/tokens/service/types/unclaimedRewards.model.cjs"),c=require("./src/tokens/service/types/webToken.model.cjs"),A=require("./src/tokens/utils.cjs"),F=require("./src/transactions/amount.cjs"),w=require("./src/transactions/buildTransactions.cjs"),$=require("./src/transactions/errors.cjs"),B=require("./src/transactions/estimate/argentMaxFee.cjs"),X=require("./src/transactions/estimate/error.cjs"),Pe=require("./src/transactions/estimate/model.cjs"),r=require("./src/transactions/estimate/utils.cjs"),Y=require("./src/transactions/findTransfersAndApprovals.cjs"),Ne=require("./src/transactions/getPrettyRcpError.cjs"),_=require("./src/transactions/getTransactionVersion.cjs"),Ie=require("./src/transactions/service/implementation.cjs"),Fe=require("./src/transactions/service/types.cjs"),we=require("./src/transactions/transactionReviewTypes.cjs"),Z=require("./src/transactions/transactionVersion.cjs"),Q=require("./src/transactions/txv3.cjs"),Be=require("./src/utils/address.cjs"),_e=require("./src/utils/arrays.cjs"),E=require("./src/utils/avatarImage.cjs"),q=require("./src/utils/base58.cjs"),Oe=require("./src/utils/bigNumber.cjs"),He=require("./src/utils/daysBetween.cjs"),Ve=require("./src/utils/env.cjs"),J=require("./src/utils/hex.cjs"),Le=require("./src/utils/id.cjs"),xe=require("./src/utils/initials.cjs"),Me=require("./src/utils/isContractDeployed.cjs"),We=require("./src/utils/nonNullable.cjs"),Ue=require("./src/utils/number/isAllowedAddressHexInputValue.cjs"),Ge=require("./src/utils/number/isAllowedNumericInputValue.cjs"),ze=require("./src/utils/number/isNumeric.cjs"),v=require("./src/utils/number/prettifyNumber.cjs"),ee=require("./src/utils/parseAmount.cjs"),je=require("./src/utils/pluralise.cjs"),Ke=require("./src/utils/readFileAsString.cjs"),f=require("./src/utils/schemas.cjs"),t=require("./src/utils/starknet/starknet.cjs"),a=require("./src/utils/starknet/starknetSchemas.cjs"),$e=require("./src/utils/transactions.cjs"),Xe=require("./src/utils/url/urlWithQuery.cjs"),Ye=require("./src/utils/voidify.cjs"),Ze=require("./src/utils/bips.cjs"),Qe=require("./src/utils/retryUntilInitialised.cjs");exports.bigDecimal=ae;exports.BaseError=te.BaseError;exports.AccountNameGenerator=re.AccountNameGenerator;exports.AddSmartAccountResponseSchema=b.AddSmartAccountResponseSchema;exports.AddSmartAcountRequestSchema=b.AddSmartAcountRequestSchema;exports.BackendAccountSchema=b.BackendAccountSchema;exports.isAccountV4=R.isAccountV4;exports.isAccountV5=R.isAccountV5;exports.isAccountV6=R.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=g.backendSessionAllowedMethodSchema;exports.backendSessionMetadataSchema=g.backendSessionMetadataSchema;exports.backendSessionSchema=g.backendSessionSchema;exports.backendSessionTxFeeSchema=g.backendSessionTxFeeSchema;exports.CacheService=ne.CacheService;exports.addressOrEmptyUndefinedSchema=n.addressOrEmptyUndefinedSchema;exports.addressSchema=n.addressSchema;exports.addressSchemaArgentBackend=n.addressSchemaArgentBackend;exports.addressSchemaBase=n.addressSchemaBase;exports.addressSchemaLooseLength=n.addressSchemaLooseLength;exports.addressSchemaStrictLength=n.addressSchemaStrictLength;exports.formatFullAddress=n.formatFullAddress;exports.formatTruncatedAddress=n.formatTruncatedAddress;exports.formatTruncatedSignerKey=n.formatTruncatedSignerKey;exports.formatTruncatedString=n.formatTruncatedString;exports.includesAddress=n.includesAddress;exports.isAddress=n.isAddress;exports.isBase58Address=n.isBase58Address;exports.isEqualAddress=n.isEqualAddress;exports.isValidAddress=n.isValidAddress;exports.isZeroAddress=n.isZeroAddress;exports.normalizeAddress=n.normalizeAddress;exports.validChecksumAddressSchema=n.validChecksumAddressSchema;exports.validateAddressRangeSchema=n.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=T.argentNameSchema;exports.isArgentName=T.isArgentName;exports.isEqualArgentName=T.isEqualArgentName;exports.normalizeArgentName=T.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=k.getAddressFromStarkName;exports.getCallFromStarkName=k.getCallFromStarkName;exports.getStarknetIdContractAddressFromNetworkId=k.getStarknetIdContractAddressFromNetworkId;exports.starkNameToCallDataDomain=k.starkNameToCallDataDomain;exports.getChainIdFromNetworkId=se.getChainIdFromNetworkId;exports.StarknetAddressService=oe.StarknetAddressService;exports.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES=P.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES;exports.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES=P.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES;exports.C0_PROXY_CONTRACT_CLASS_HASHES=P.C0_PROXY_CONTRACT_CLASS_HASHES;exports.constructorCallDataSchemaC0=N.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=N.constructorCallDataSchemaC1V1;exports.implementationSchema=N.implementationSchema;exports.buildConstructorCalldata=h.buildConstructorCalldata;exports.findImplementationForAccount=h.findImplementationForAccount;exports.getAccountContractAddress=h.getAccountContractAddress;exports.getAccountDeploymentPayload=h.getAccountDeploymentPayload;exports.isEqualImplementation=h.isEqualImplementation;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=y.isEqualStarknetId;exports.isStarknetId=y.isStarknetId;exports.normalizeStarknetId=y.normalizeStarknetId;exports.starknetIdSchema=y.starknetIdSchema;exports.DateService=ce.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=I.fetchData;exports.fetcherError=I.fetcherError;exports.postData=I.postData;exports.getBackendTimeNowSeconds=L.getBackendTimeNowSeconds;exports.getBackendTimeSeconds=L.getBackendTimeSeconds;exports.KnownDappsBackendService=ue.KnownDappsBackendService;exports.dappContractSchema=C.dappContractSchema;exports.dappLinkSchema=C.dappLinkSchema;exports.knownDappSchema=C.knownDappSchema;exports.knownDappsSchema=C.knownDappsSchema;exports.getDapplandLinkForDapp=x.getDapplandLinkForDapp;exports.getDapplandUrlForDapp=x.getDapplandUrlForDapp;exports.ResolveNameService=he.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=Ae.BackendNftService;exports.equalNft=M.equalNft;exports.getNftPicture=M.getNftPicture;exports.OnchainRecoveryService=pe.OnchainRecoveryService;Object.defineProperty(exports,"RecoveryStatusEnum",{enumerable:!0,get:()=>s.RecoveryStatusEnum});Object.defineProperty(exports,"StartOnchainRecoveryErrorStatusEnum",{enumerable:!0,get:()=>s.StartOnchainRecoveryErrorStatusEnum});exports.activeOnchainRecoverySchema=s.activeOnchainRecoverySchema;exports.onchainRecoverySchema=s.onchainRecoverySchema;exports.recoveryBaseSchema=s.recoveryBaseSchema;exports.recoveryBodySchema=s.recoveryBodySchema;exports.recoveryStatusSchema=s.recoveryStatusSchema;exports.startOnchainRecoveryErrorSchema=s.startOnchainRecoveryErrorSchema;exports.startOnchainRecoveryErrorStatusSchema=s.startOnchainRecoveryErrorStatusSchema;exports.startOnchainRecoverySchema=s.startOnchainRecoverySchema;exports.isBraveBrowser=ge.isBraveBrowser;exports.getUAParserResult=u.getUAParserResult;exports.isBrowser=u.isBrowser;exports.isChromeBrowser=u.isChromeBrowser;exports.isEdgeBrowser=u.isEdgeBrowser;exports.isFirefoxBrowser=u.isFirefoxBrowser;exports.isSafariBrowser=u.isSafariBrowser;exports.seedphraseSchema=Te.seedphraseSchema;Object.defineProperty(exports,"MultiSigner",{enumerable:!0,get:()=>W.MultiSigner});exports.getSignerForMultiSigner=W.getSignerForMultiSigner;exports.mergeOwnerGuardianSignatures=ke.mergeOwnerGuardianSignatures;exports.investmentMetaSchema=o.investmentMetaSchema;exports.investmentSchema=o.investmentSchema;exports.investmentsResponseSchema=o.investmentsResponseSchema;exports.lendingInvestmentSchema=o.lendingInvestmentSchema;exports.liquidStakingInvestmentSchema=o.liquidStakingInvestmentSchema;exports.stakerInfoSchema=o.stakerInfoSchema;exports.stakingActionSchema=o.stakingActionSchema;exports.strkDelegatedStakingInvestmentSchema=o.strkDelegatedStakingInvestmentSchema;exports.strkStakingCalldataResponseSchema=o.strkStakingCalldataResponseSchema;exports.strkStakingCalldataSchema=o.strkStakingCalldataSchema;exports.containsValue=U.containsValue;exports.replaceValueRecursively=U.replaceValueRecursively;exports.mergeArrayStableWith=G.mergeArrayStableWith;exports.optionsWithDefaults=G.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.convertTokenAmountToCurrencyValue=Ce.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=De.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=Ee.ensureDecimals;exports.isUnlimitedAmount=qe.isUnlimitedAmount;exports.prettifyCurrencyValue=ve.prettifyCurrencyValue;exports.PRETTY_UNLIMITED=z.PRETTY_UNLIMITED;exports.prettifyTokenAmount=z.prettifyTokenAmount;exports.getCurrencySymbol=fe.getCurrencySymbol;exports.TokenServiceWeb=be.TokenServiceWeb;Object.defineProperty(exports,"TOKEN_ERROR_MESSAGES",{enumerable:!0,get:()=>j.TOKEN_ERROR_MESSAGES});exports.TokenError=j.TokenError;exports.apiAccountTokenBalancesSchema=e.apiAccountTokenBalancesSchema;exports.apiAirdropSchema=e.apiAirdropSchema;exports.apiCollateralizedDebtPositionSchema=e.apiCollateralizedDebtPositionSchema;exports.apiCollateralizedDebtPositionsSchema=e.apiCollateralizedDebtPositionsSchema;exports.apiConcentratedLiquidityPositionSchema=e.apiConcentratedLiquidityPositionSchema;exports.apiConcentratedLiquidityPositionsSchema=e.apiConcentratedLiquidityPositionsSchema;exports.apiDefiDecompositionProduct=e.apiDefiDecompositionProduct;exports.apiDefiDecompositionProducts=e.apiDefiDecompositionProducts;exports.apiDefiDecompositionSchema=e.apiDefiDecompositionSchema;exports.apiDefiDecompositionToken=e.apiDefiDecompositionToken;exports.apiDefiPositionSchema=e.apiDefiPositionSchema;exports.apiDefiPositionsSchema=e.apiDefiPositionsSchema;exports.apiDelegatedTokensArraySchema=e.apiDelegatedTokensArraySchema;exports.apiDelegatedTokensSchema=e.apiDelegatedTokensSchema;exports.apiPriceDataResponseSchema=e.apiPriceDataResponseSchema;exports.apiPriceDetailsSchema=e.apiPriceDetailsSchema;exports.apiStakingPositionSchema=e.apiStakingPositionSchema;exports.apiStakingPositionsSchema=e.apiStakingPositionsSchema;exports.apiStrkDelegatedStakingPositionsSchema=e.apiStrkDelegatedStakingPositionsSchema;exports.apiStrkDelegatedStakingSchema=e.apiStrkDelegatedStakingSchema;exports.apiTokenInfoResponseSchema=e.apiTokenInfoResponseSchema;exports.apiTokenInfoSchema=e.apiTokenInfoSchema;exports.apiTokensInfoResponseSchema=e.apiTokensInfoResponseSchema;exports.apiUnclaimedRewardsSchema=e.apiUnclaimedRewardsSchema;exports.collateralizedDebtGroupSchema=i.collateralizedDebtGroupSchema;exports.collateralizedDebtPositionSchema=i.collateralizedDebtPositionSchema;exports.collateralizedDebtPositionsSchema=i.collateralizedDebtPositionsSchema;exports.concentratedLiquidityPositionSchema=i.concentratedLiquidityPositionSchema;exports.concentratedLiquidityPositionsSchema=i.concentratedLiquidityPositionsSchema;exports.defiDappsProductsSchema=i.defiDappsProductsSchema;exports.defiPositionSchema=i.defiPositionSchema;exports.defiProductSchema=i.defiProductSchema;exports.defiProductsSchema=i.defiProductsSchema;exports.delegatedTokensArraySchema=i.delegatedTokensArraySchema;exports.delegatedTokensSchema=i.delegatedTokensSchema;exports.productGroupsSchema=i.productGroupsSchema;exports.stakingPositionSchema=i.stakingPositionSchema;exports.stakingPositionsSchema=i.stakingPositionsSchema;exports.strkDelegatedStakingPositionArraySchema=i.strkDelegatedStakingPositionArraySchema;exports.strkDelegatedStakingPositionSchema=i.strkDelegatedStakingPositionSchema;exports.defiPositionTypeSchema=Re.defiPositionTypeSchema;exports.airdropSchema=K.airdropSchema;exports.unclaimedRewardsSchema=K.unclaimedRewardsSchema;exports.webBaseTokenSchema=c.webBaseTokenSchema;exports.webBaseTokenWithBalanceSchema=c.webBaseTokenWithBalanceSchema;exports.webTokenInfoDetailsSchema=c.webTokenInfoDetailsSchema;exports.webTokenPriceDetailsSchema=c.webTokenPriceDetailsSchema;exports.webTokenSchema=c.webTokenSchema;exports.webTokenWithBalanceAndPriceSchema=c.webTokenWithBalanceAndPriceSchema;exports.webTokenWithBalanceSchema=c.webTokenWithBalanceSchema;exports.webTokenWithPriceSchema=c.webTokenWithPriceSchema;exports.webTokensWithBalanceAndPriceSchema=c.webTokensWithBalanceAndPriceSchema;exports.isCollateralizedDebtPosition=A.isCollateralizedDebtPosition;exports.isConcentratedLiquidityPosition=A.isConcentratedLiquidityPosition;exports.isDelegatedTokens=A.isDelegatedTokens;exports.isStaking=A.isStaking;exports.isStrkDelegatedStaking=A.isStrkDelegatedStaking;exports.inputAmountSchema=F.inputAmountSchema;exports.isValidInputAmount=F.isValidInputAmount;exports.parseAmount=F.parseAmount;exports.erc20TransferTransaction=w.erc20TransferTransaction;exports.erc721SafeTransferFromTransaction=w.erc721SafeTransferFromTransaction;exports.erc721TransferFromTransaction=w.erc721TransferFromTransaction;exports.getMessageFromTrpcError=$.getMessageFromTrpcError;exports.trpcErrorSchema=$.trpcErrorSchema;exports.FEE_OVERHEAD=B.FEE_OVERHEAD;exports.argentMaxFee=B.argentMaxFee;exports.modifySnjsFeeOverhead=B.modifySnjsFeeOverhead;Object.defineProperty(exports,"ESTIMATE_ERROR_MESSAGES",{enumerable:!0,get:()=>X.ESTIMATE_ERROR_MESSAGES});exports.EstimateError=X.EstimateError;exports.transactionReviewTransactionsSchema=Pe.transactionReviewTransactionsSchema;exports.buildDummyTx=r.buildDummyTx;exports.calculateCubeRootAdjustment=r.calculateCubeRootAdjustment;exports.calculateNonLinearAdjustment=r.calculateNonLinearAdjustment;exports.calculateSqrtAdjustment=r.calculateSqrtAdjustment;exports.castFeeEstimation=r.castFeeEstimation;exports.estimatedFeeToMaxFeeTotal=r.estimatedFeeToMaxFeeTotal;exports.estimatedFeeToMaxResourceBounds=r.estimatedFeeToMaxResourceBounds;exports.estimatedFeeToTotal=r.estimatedFeeToTotal;exports.estimatedFeesToMaxFeeTotal=r.estimatedFeesToMaxFeeTotal;exports.estimatedFeesToTotal=r.estimatedFeesToTotal;exports.getEstimatedFeeFromBulkSimulation=r.getEstimatedFeeFromBulkSimulation;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFee=r.getEstimatedFeeFromSimulationAndRespectWatermarkFee;exports.getPayloadFromTransaction=r.getPayloadFromTransaction;exports.getWatermarkedMaxFeeTotal=r.getWatermarkedMaxFeeTotal;exports.isFRI=r.isFRI;exports.isWEI=r.isWEI;exports.multiplyBigIntByFloat=r.multiplyBigIntByFloat;exports.toMax=r.toMax;exports.tokensRequireTxV3Support=r.tokensRequireTxV3Support;exports.unitToFeeTokenAddress=r.unitToFeeTokenAddress;exports.EventsBySelector=Y.EventsBySelector;exports.findTransfersAndApprovals=Y.findTransfersAndApprovals;exports.getPrettyRpcError=Ne.getPrettyRpcError;exports.getSimulationTxVersionFromFeeToken=_.getSimulationTxVersionFromFeeToken;exports.getTxVersionFromFeeToken=_.getTxVersionFromFeeToken;exports.getTxVersionFromFeeTokenForDeclareContract=_.getTxVersionFromFeeTokenForDeclareContract;exports.TransactionReviewServiceWeb=Ie.TransactionReviewServiceWeb;exports.transactionReviewWarningSchema=Fe.transactionReviewWarningSchema;exports.apiTransactionReviewActivityType=we.apiTransactionReviewActivityType;exports.denyTxV3=Z.denyTxV3;exports.txVersionSchema=Z.txVersionSchema;exports.classHashSupportsTxV3=Q.classHashSupportsTxV3;exports.feeTokenNeedsTxV3Support=Q.feeTokenNeedsTxV3Support;exports.formatAddress=Be.formatAddress;exports.ensureArray=_e.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=Oe.bigNumberSchema;exports.daysBetween=He.daysBetween;exports.isFeatureEnabled=Ve.isFeatureEnabled;exports.hexSchema=J.hexSchema;exports.hexSchemaBase=J.hexSchemaBase;exports.id=Le.id;exports.getInitials=xe.getInitials;exports.isContractDeployed=Me.isContractDeployed;exports.nonNullable=We.nonNullable;exports.isAllowedAddressHexInputValue=Ue.isAllowedAddressHexInputValue;exports.isAllowedNumericInputValue=Ge.isAllowedNumericInputValue;exports.isNumeric=ze.isNumeric;exports.prettifyCurrencyNumber=v.prettifyCurrencyNumber;exports.prettifyNumber=v.prettifyNumber;exports.prettifyNumberConfig=v.prettifyNumberConfig;exports.prettifyTokenNumber=v.prettifyTokenNumber;exports.getUint256CalldataFromBN=ee.getUint256CalldataFromBN;exports.parseAmountValue=ee.parseAmountValue;exports.pluralise=je.pluralise;exports.readFileAsString=Ke.readFileAsString;exports.booleanToStringSchema=f.booleanToStringSchema;exports.createSchemaWithWarnings=f.createSchemaWithWarnings;exports.safeParseAndWarn=f.safeParseAndWarn;exports.stringToBooleanSchema=f.stringToBooleanSchema;exports.addOwnersCalldataSchema=t.addOwnersCalldataSchema;exports.addPluginCalldataSchema=t.addPluginCalldataSchema;exports.bigNumberishSchema=t.bigNumberishSchema;exports.callDetailsSchema=t.callDetailsSchema;exports.callSchema=t.callSchema;exports.calldataSchema=t.calldataSchema;exports.changeGuardianCalldataSchema=t.changeGuardianCalldataSchema;exports.changeThresholdCalldataSchema=t.changeThresholdCalldataSchema;exports.escapeGuardianCalldataSchema=t.escapeGuardianCalldataSchema;exports.executeOnPluginCalldataSchema=t.executeOnPluginCalldataSchema;exports.feltSchema=t.feltSchema;exports.looseCalldataSchema=t.looseCalldataSchema;exports.multiTypeSchema=t.multiTypeSchema;exports.rawArgsArraySchema=t.rawArgsArraySchema;exports.rawArgsObjectSchema=t.rawArgsObjectSchema;exports.rawArgsSchema=t.rawArgsSchema;exports.removeOwnersCalldataSchema=t.removeOwnersCalldataSchema;exports.removePluginCalldataSchema=t.removePluginCalldataSchema;exports.replaceSignerCalldataSchema=t.replaceSignerCalldataSchema;exports.transferCalldataSchema=t.transferCalldataSchema;exports.uint256Schema=t.uint256Schema;exports.abiEntrySchema=a.abiEntrySchema;exports.abiSchema=a.abiSchema;exports.builtinsSchema=a.builtinsSchema;exports.byteCodeSchema=a.byteCodeSchema;exports.cairo1EventSchema=a.cairo1EventSchema;exports.cairoAssemblySchema=a.cairoAssemblySchema;exports.compiledContractClassSchema=a.compiledContractClassSchema;exports.compiledSierraCasmSchema=a.compiledSierraCasmSchema;exports.compiledSierraSchema=a.compiledSierraSchema;exports.compressedProgramSchema=a.compressedProgramSchema;exports.contractEntryPointFieldsSchema=a.contractEntryPointFieldsSchema;exports.entryPointsByTypeSchema=a.entryPointsByTypeSchema;exports.eventAbiSchema=a.eventAbiSchema;exports.eventEntrySchema=a.eventEntrySchema;exports.functionAbiSchema=a.functionAbiSchema;exports.functionAbiTypeSchema=a.functionAbiTypeSchema;exports.legacyContractClassSchema=a.legacyContractClassSchema;exports.legacyEventSchema=a.legacyEventSchema;exports.programSchema=a.programSchema;exports.pythonicHintsSchema=a.pythonicHintsSchema;exports.sierraContractEntryPointFieldsSchema=a.sierraContractEntryPointFieldsSchema;exports.sierraEntryPointsByTypeSchema=a.sierraEntryPointsByTypeSchema;exports.sierraProgramDebugInfoSchema=a.sierraProgramDebugInfoSchema;exports.structAbiSchema=a.structAbiSchema;exports.entryPointToHumanReadable=$e.entryPointToHumanReadable;exports.urlWithQuery=Xe.urlWithQuery;exports.voidify=Ye.voidify;exports.bipsToPercent=Ze.bipsToPercent;exports.retryUntilInitialised=Qe.retryUntilInitialised;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("./src/bigdecimal/index.cjs"),te=require("./src/errors/baseErrors.cjs"),re=require("./src/accountNameGenerator/index.cjs"),f=require("./src/account/account.model.cjs"),R=require("./src/account/accountv4.cjs"),O=require("./src/account/preferences.model.cjs"),p=require("./src/backend/schema.cjs"),g=require("./src/backend/sessionKeys/schema.cjs"),ne=require("./src/cache/CacheService.cjs"),n=require("./src/chains/starknet/address.cjs"),d=require("./src/chains/starknet/addressDomain.cjs"),H=require("./src/chains/starknet/addressInput.cjs"),T=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"),k=require("./src/chains/starknet/getAddressFromStarkName.cjs"),se=require("./src/chains/starknet/network.cjs"),oe=require("./src/chains/starknet/services/address/StarknetAddressService.cjs"),P=require("./src/chains/starknet/services/deploymentData/constants.cjs"),N=require("./src/chains/starknet/services/deploymentData/deploymentData.schema.cjs"),h=require("./src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs"),m=require("./src/chains/starknet/services/deploymentData/getAccountClassHash.cjs"),y=require("./src/chains/starknet/starknetId.cjs"),ce=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"),I=require("./src/http/fetcher.cjs"),L=require("./src/http/time.cjs"),ue=require("./src/knownDapps/KnownDappsBackendService.cjs"),C=require("./src/knownDapps/schema.cjs"),x=require("./src/knownDapps/utils/getDapplandUrl.cjs"),he=require("./src/nameResolution/ResolveNameService.cjs"),l=require("./src/nameResolution/schema.cjs"),Ae=require("./src/nfts/BackendNftService.cjs"),M=require("./src/nfts/utils.cjs"),pe=require("./src/onchainRecovery/OnchainRecoveryService.cjs"),o=require("./src/onchainRecovery/schema.cjs"),ge=require("./src/platform/isBraveBrowser.cjs"),u=require("./src/platform/isBrowser.cjs"),Te=require("./src/signer/seedphrase.cjs"),W=require("./src/signer/multisigner.cjs"),ke=require("./src/signer/mergeOwnerGuardianSignatures.cjs"),s=require("./src/staking/schema.cjs"),U=require("./src/storage/utils.cjs"),G=require("./src/storage/base.cjs"),D=require("./src/tokens/balances.cjs"),ye=require("./src/tokens/constants.cjs"),Ce=require("./src/tokens/convertTokenAmountToCurrencyValue.cjs"),De=require("./src/tokens/convertTokenUnitAmountWithDecimals.cjs"),Ee=require("./src/tokens/ensureDecimals.cjs"),qe=require("./src/tokens/isUnlimitedAmount.cjs"),ve=require("./src/tokens/prettifyCurrencyValue.cjs"),z=require("./src/tokens/prettifyTokenAmount.cjs"),be=require("./src/tokens/getCurrencySymbol.cjs"),fe=require("./src/tokens/service/implementation.cjs"),j=require("./src/tokens/service/tokenError.cjs"),e=require("./src/tokens/service/types/backend.model.cjs"),i=require("./src/tokens/service/types/defiPosition.model.cjs"),Re=require("./src/tokens/service/types/defiPositionType.model.cjs"),K=require("./src/tokens/service/types/unclaimedRewards.model.cjs"),c=require("./src/tokens/service/types/webToken.model.cjs"),A=require("./src/tokens/utils.cjs"),F=require("./src/transactions/amount.cjs"),w=require("./src/transactions/buildTransactions.cjs"),$=require("./src/transactions/errors.cjs"),B=require("./src/transactions/estimate/argentMaxFee.cjs"),X=require("./src/transactions/estimate/error.cjs"),Pe=require("./src/transactions/estimate/model.cjs"),r=require("./src/transactions/estimate/utils.cjs"),Y=require("./src/transactions/findTransfersAndApprovals.cjs"),Ne=require("./src/transactions/getPrettyRcpError.cjs"),_=require("./src/transactions/getTransactionVersion.cjs"),Ie=require("./src/transactions/service/implementation.cjs"),Fe=require("./src/transactions/service/types.cjs"),we=require("./src/transactions/transactionReviewTypes.cjs"),Z=require("./src/transactions/transactionVersion.cjs"),Q=require("./src/transactions/txv3.cjs"),Be=require("./src/utils/address.cjs"),_e=require("./src/utils/arrays.cjs"),E=require("./src/utils/avatarImage.cjs"),q=require("./src/utils/base58.cjs"),Oe=require("./src/utils/bigNumber.cjs"),He=require("./src/utils/daysBetween.cjs"),Ve=require("./src/utils/env.cjs"),J=require("./src/utils/hex.cjs"),Le=require("./src/utils/id.cjs"),xe=require("./src/utils/initials.cjs"),Me=require("./src/utils/isContractDeployed.cjs"),We=require("./src/utils/nonNullable.cjs"),Ue=require("./src/utils/number/isAllowedAddressHexInputValue.cjs"),Ge=require("./src/utils/number/isAllowedNumericInputValue.cjs"),ze=require("./src/utils/number/isNumeric.cjs"),v=require("./src/utils/number/prettifyNumber.cjs"),ee=require("./src/utils/parseAmount.cjs"),je=require("./src/utils/pluralise.cjs"),Ke=require("./src/utils/readFileAsString.cjs"),b=require("./src/utils/schemas.cjs"),t=require("./src/utils/starknet/starknet.cjs"),a=require("./src/utils/starknet/starknetSchemas.cjs"),$e=require("./src/utils/transactions.cjs"),Xe=require("./src/utils/url/urlWithQuery.cjs"),Ye=require("./src/utils/voidify.cjs"),Ze=require("./src/utils/bips.cjs"),Qe=require("./src/utils/retryUntilInitialised.cjs");exports.bigDecimal=ae;exports.BaseError=te.BaseError;exports.AccountNameGenerator=re.AccountNameGenerator;exports.AddSmartAccountResponseSchema=f.AddSmartAccountResponseSchema;exports.AddSmartAcountRequestSchema=f.AddSmartAcountRequestSchema;exports.BackendAccountSchema=f.BackendAccountSchema;exports.isAccountV4=R.isAccountV4;exports.isAccountV5=R.isAccountV5;exports.isAccountV6=R.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=g.backendSessionAllowedMethodSchema;exports.backendSessionMetadataSchema=g.backendSessionMetadataSchema;exports.backendSessionSchema=g.backendSessionSchema;exports.backendSessionTxFeeSchema=g.backendSessionTxFeeSchema;exports.CacheService=ne.CacheService;exports.addressOrEmptyUndefinedSchema=n.addressOrEmptyUndefinedSchema;exports.addressSchema=n.addressSchema;exports.addressSchemaArgentBackend=n.addressSchemaArgentBackend;exports.addressSchemaBase=n.addressSchemaBase;exports.addressSchemaLooseLength=n.addressSchemaLooseLength;exports.addressSchemaStrictLength=n.addressSchemaStrictLength;exports.formatFullAddress=n.formatFullAddress;exports.formatTruncatedAddress=n.formatTruncatedAddress;exports.formatTruncatedSignerKey=n.formatTruncatedSignerKey;exports.formatTruncatedString=n.formatTruncatedString;exports.includesAddress=n.includesAddress;exports.isAddress=n.isAddress;exports.isBase58Address=n.isBase58Address;exports.isEqualAddress=n.isEqualAddress;exports.isValidAddress=n.isValidAddress;exports.isZeroAddress=n.isZeroAddress;exports.normalizeAddress=n.normalizeAddress;exports.validChecksumAddressSchema=n.validChecksumAddressSchema;exports.validateAddressRangeSchema=n.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=T.argentNameSchema;exports.isArgentName=T.isArgentName;exports.isEqualArgentName=T.isEqualArgentName;exports.normalizeArgentName=T.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=k.getAddressFromStarkName;exports.getCallFromStarkName=k.getCallFromStarkName;exports.getStarknetIdContractAddressFromNetworkId=k.getStarknetIdContractAddressFromNetworkId;exports.starkNameToCallDataDomain=k.starkNameToCallDataDomain;exports.getChainIdFromNetworkId=se.getChainIdFromNetworkId;exports.StarknetAddressService=oe.StarknetAddressService;exports.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES=P.ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES;exports.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES=P.ARGENT_MULTISIG_CONTRACT_CLASS_HASHES;exports.C0_PROXY_CONTRACT_CLASS_HASHES=P.C0_PROXY_CONTRACT_CLASS_HASHES;exports.constructorCallDataSchemaC0=N.constructorCallDataSchemaC0;exports.constructorCallDataSchemaC1V1=N.constructorCallDataSchemaC1V1;exports.implementationSchema=N.implementationSchema;exports.buildConstructorCalldata=h.buildConstructorCalldata;exports.findImplementationForAccount=h.findImplementationForAccount;exports.getAccountContractAddress=h.getAccountContractAddress;exports.getAccountDeploymentPayload=h.getAccountDeploymentPayload;exports.isEqualImplementation=h.isEqualImplementation;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=y.isEqualStarknetId;exports.isStarknetId=y.isStarknetId;exports.normalizeStarknetId=y.normalizeStarknetId;exports.starknetIdSchema=y.starknetIdSchema;exports.DateService=ce.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=I.fetchData;exports.fetcherError=I.fetcherError;exports.postData=I.postData;exports.getBackendTimeNowSeconds=L.getBackendTimeNowSeconds;exports.getBackendTimeSeconds=L.getBackendTimeSeconds;exports.KnownDappsBackendService=ue.KnownDappsBackendService;exports.dappContractSchema=C.dappContractSchema;exports.dappLinkSchema=C.dappLinkSchema;exports.knownDappSchema=C.knownDappSchema;exports.knownDappsSchema=C.knownDappsSchema;exports.getDapplandLinkForDapp=x.getDapplandLinkForDapp;exports.getDapplandUrlForDapp=x.getDapplandUrlForDapp;exports.ResolveNameService=he.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=Ae.BackendNftService;exports.equalNft=M.equalNft;exports.getNftPicture=M.getNftPicture;exports.OnchainRecoveryService=pe.OnchainRecoveryService;Object.defineProperty(exports,"RecoveryStatusEnum",{enumerable:!0,get:()=>o.RecoveryStatusEnum});Object.defineProperty(exports,"StartOnchainRecoveryErrorStatusEnum",{enumerable:!0,get:()=>o.StartOnchainRecoveryErrorStatusEnum});exports.activeOnchainRecoverySchema=o.activeOnchainRecoverySchema;exports.onchainRecoverySchema=o.onchainRecoverySchema;exports.recoveryBaseSchema=o.recoveryBaseSchema;exports.recoveryBodySchema=o.recoveryBodySchema;exports.recoveryStatusSchema=o.recoveryStatusSchema;exports.startOnchainRecoveryErrorSchema=o.startOnchainRecoveryErrorSchema;exports.startOnchainRecoveryErrorStatusSchema=o.startOnchainRecoveryErrorStatusSchema;exports.startOnchainRecoverySchema=o.startOnchainRecoverySchema;exports.isBraveBrowser=ge.isBraveBrowser;exports.getUAParserResult=u.getUAParserResult;exports.isBrowser=u.isBrowser;exports.isChromeBrowser=u.isChromeBrowser;exports.isEdgeBrowser=u.isEdgeBrowser;exports.isFirefoxBrowser=u.isFirefoxBrowser;exports.isSafariBrowser=u.isSafariBrowser;exports.seedphraseSchema=Te.seedphraseSchema;Object.defineProperty(exports,"MultiSigner",{enumerable:!0,get:()=>W.MultiSigner});exports.getSignerForMultiSigner=W.getSignerForMultiSigner;exports.mergeOwnerGuardianSignatures=ke.mergeOwnerGuardianSignatures;exports.buildSellOptsSchema=s.buildSellOptsSchema;exports.investmentMetaSchema=s.investmentMetaSchema;exports.investmentSchema=s.investmentSchema;exports.investmentsResponseSchema=s.investmentsResponseSchema;exports.lendingInvestmentSchema=s.lendingInvestmentSchema;exports.liquidStakingInvestmentSchema=s.liquidStakingInvestmentSchema;exports.stakerInfoSchema=s.stakerInfoSchema;exports.stakingActionSchema=s.stakingActionSchema;exports.strkDelegatedStakingInvestmentSchema=s.strkDelegatedStakingInvestmentSchema;exports.strkStakingCalldataResponseSchema=s.strkStakingCalldataResponseSchema;exports.strkStakingCalldataSchema=s.strkStakingCalldataSchema;exports.containsValue=U.containsValue;exports.replaceValueRecursively=U.replaceValueRecursively;exports.mergeArrayStableWith=G.mergeArrayStableWith;exports.optionsWithDefaults=G.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.convertTokenAmountToCurrencyValue=Ce.convertTokenAmountToCurrencyValue;exports.convertTokenUnitAmountWithDecimals=De.convertTokenUnitAmountWithDecimals;exports.ensureDecimals=Ee.ensureDecimals;exports.isUnlimitedAmount=qe.isUnlimitedAmount;exports.prettifyCurrencyValue=ve.prettifyCurrencyValue;exports.PRETTY_UNLIMITED=z.PRETTY_UNLIMITED;exports.prettifyTokenAmount=z.prettifyTokenAmount;exports.getCurrencySymbol=be.getCurrencySymbol;exports.TokenServiceWeb=fe.TokenServiceWeb;Object.defineProperty(exports,"TOKEN_ERROR_MESSAGES",{enumerable:!0,get:()=>j.TOKEN_ERROR_MESSAGES});exports.TokenError=j.TokenError;exports.apiAccountTokenBalancesSchema=e.apiAccountTokenBalancesSchema;exports.apiAirdropSchema=e.apiAirdropSchema;exports.apiCollateralizedDebtPositionSchema=e.apiCollateralizedDebtPositionSchema;exports.apiCollateralizedDebtPositionsSchema=e.apiCollateralizedDebtPositionsSchema;exports.apiConcentratedLiquidityPositionSchema=e.apiConcentratedLiquidityPositionSchema;exports.apiConcentratedLiquidityPositionsSchema=e.apiConcentratedLiquidityPositionsSchema;exports.apiDefiDecompositionProduct=e.apiDefiDecompositionProduct;exports.apiDefiDecompositionProducts=e.apiDefiDecompositionProducts;exports.apiDefiDecompositionSchema=e.apiDefiDecompositionSchema;exports.apiDefiDecompositionToken=e.apiDefiDecompositionToken;exports.apiDefiPositionSchema=e.apiDefiPositionSchema;exports.apiDefiPositionsSchema=e.apiDefiPositionsSchema;exports.apiDelegatedTokensArraySchema=e.apiDelegatedTokensArraySchema;exports.apiDelegatedTokensSchema=e.apiDelegatedTokensSchema;exports.apiPriceDataResponseSchema=e.apiPriceDataResponseSchema;exports.apiPriceDetailsSchema=e.apiPriceDetailsSchema;exports.apiStakingPositionSchema=e.apiStakingPositionSchema;exports.apiStakingPositionsSchema=e.apiStakingPositionsSchema;exports.apiStrkDelegatedStakingPositionsSchema=e.apiStrkDelegatedStakingPositionsSchema;exports.apiStrkDelegatedStakingSchema=e.apiStrkDelegatedStakingSchema;exports.apiTokenInfoResponseSchema=e.apiTokenInfoResponseSchema;exports.apiTokenInfoSchema=e.apiTokenInfoSchema;exports.apiTokensInfoResponseSchema=e.apiTokensInfoResponseSchema;exports.apiUnclaimedRewardsSchema=e.apiUnclaimedRewardsSchema;exports.collateralizedDebtGroupSchema=i.collateralizedDebtGroupSchema;exports.collateralizedDebtPositionSchema=i.collateralizedDebtPositionSchema;exports.collateralizedDebtPositionsSchema=i.collateralizedDebtPositionsSchema;exports.concentratedLiquidityPositionSchema=i.concentratedLiquidityPositionSchema;exports.concentratedLiquidityPositionsSchema=i.concentratedLiquidityPositionsSchema;exports.defiDappsProductsSchema=i.defiDappsProductsSchema;exports.defiPositionSchema=i.defiPositionSchema;exports.defiProductSchema=i.defiProductSchema;exports.defiProductsSchema=i.defiProductsSchema;exports.delegatedTokensArraySchema=i.delegatedTokensArraySchema;exports.delegatedTokensSchema=i.delegatedTokensSchema;exports.productGroupsSchema=i.productGroupsSchema;exports.stakingPositionSchema=i.stakingPositionSchema;exports.stakingPositionsSchema=i.stakingPositionsSchema;exports.strkDelegatedStakingPositionArraySchema=i.strkDelegatedStakingPositionArraySchema;exports.strkDelegatedStakingPositionSchema=i.strkDelegatedStakingPositionSchema;exports.defiPositionTypeSchema=Re.defiPositionTypeSchema;exports.airdropSchema=K.airdropSchema;exports.unclaimedRewardsSchema=K.unclaimedRewardsSchema;exports.webBaseTokenSchema=c.webBaseTokenSchema;exports.webBaseTokenWithBalanceSchema=c.webBaseTokenWithBalanceSchema;exports.webTokenInfoDetailsSchema=c.webTokenInfoDetailsSchema;exports.webTokenPriceDetailsSchema=c.webTokenPriceDetailsSchema;exports.webTokenSchema=c.webTokenSchema;exports.webTokenWithBalanceAndPriceSchema=c.webTokenWithBalanceAndPriceSchema;exports.webTokenWithBalanceSchema=c.webTokenWithBalanceSchema;exports.webTokenWithPriceSchema=c.webTokenWithPriceSchema;exports.webTokensWithBalanceAndPriceSchema=c.webTokensWithBalanceAndPriceSchema;exports.isCollateralizedDebtPosition=A.isCollateralizedDebtPosition;exports.isConcentratedLiquidityPosition=A.isConcentratedLiquidityPosition;exports.isDelegatedTokens=A.isDelegatedTokens;exports.isStaking=A.isStaking;exports.isStrkDelegatedStaking=A.isStrkDelegatedStaking;exports.inputAmountSchema=F.inputAmountSchema;exports.isValidInputAmount=F.isValidInputAmount;exports.parseAmount=F.parseAmount;exports.erc20TransferTransaction=w.erc20TransferTransaction;exports.erc721SafeTransferFromTransaction=w.erc721SafeTransferFromTransaction;exports.erc721TransferFromTransaction=w.erc721TransferFromTransaction;exports.getMessageFromTrpcError=$.getMessageFromTrpcError;exports.trpcErrorSchema=$.trpcErrorSchema;exports.FEE_OVERHEAD=B.FEE_OVERHEAD;exports.argentMaxFee=B.argentMaxFee;exports.modifySnjsFeeOverhead=B.modifySnjsFeeOverhead;Object.defineProperty(exports,"ESTIMATE_ERROR_MESSAGES",{enumerable:!0,get:()=>X.ESTIMATE_ERROR_MESSAGES});exports.EstimateError=X.EstimateError;exports.transactionReviewTransactionsSchema=Pe.transactionReviewTransactionsSchema;exports.buildDummyTx=r.buildDummyTx;exports.calculateCubeRootAdjustment=r.calculateCubeRootAdjustment;exports.calculateNonLinearAdjustment=r.calculateNonLinearAdjustment;exports.calculateSqrtAdjustment=r.calculateSqrtAdjustment;exports.castFeeEstimation=r.castFeeEstimation;exports.estimatedFeeToMaxFeeTotal=r.estimatedFeeToMaxFeeTotal;exports.estimatedFeeToMaxResourceBounds=r.estimatedFeeToMaxResourceBounds;exports.estimatedFeeToTotal=r.estimatedFeeToTotal;exports.estimatedFeesToMaxFeeTotal=r.estimatedFeesToMaxFeeTotal;exports.estimatedFeesToTotal=r.estimatedFeesToTotal;exports.getEstimatedFeeFromBulkSimulation=r.getEstimatedFeeFromBulkSimulation;exports.getEstimatedFeeFromSimulationAndRespectWatermarkFee=r.getEstimatedFeeFromSimulationAndRespectWatermarkFee;exports.getPayloadFromTransaction=r.getPayloadFromTransaction;exports.getWatermarkedMaxFeeTotal=r.getWatermarkedMaxFeeTotal;exports.isFRI=r.isFRI;exports.isWEI=r.isWEI;exports.multiplyBigIntByFloat=r.multiplyBigIntByFloat;exports.toMax=r.toMax;exports.tokensRequireTxV3Support=r.tokensRequireTxV3Support;exports.unitToFeeTokenAddress=r.unitToFeeTokenAddress;exports.EventsBySelector=Y.EventsBySelector;exports.findTransfersAndApprovals=Y.findTransfersAndApprovals;exports.getPrettyRpcError=Ne.getPrettyRpcError;exports.getSimulationTxVersionFromFeeToken=_.getSimulationTxVersionFromFeeToken;exports.getTxVersionFromFeeToken=_.getTxVersionFromFeeToken;exports.getTxVersionFromFeeTokenForDeclareContract=_.getTxVersionFromFeeTokenForDeclareContract;exports.TransactionReviewServiceWeb=Ie.TransactionReviewServiceWeb;exports.transactionReviewWarningSchema=Fe.transactionReviewWarningSchema;exports.apiTransactionReviewActivityType=we.apiTransactionReviewActivityType;exports.denyTxV3=Z.denyTxV3;exports.txVersionSchema=Z.txVersionSchema;exports.classHashSupportsTxV3=Q.classHashSupportsTxV3;exports.feeTokenNeedsTxV3Support=Q.feeTokenNeedsTxV3Support;exports.formatAddress=Be.formatAddress;exports.ensureArray=_e.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=Oe.bigNumberSchema;exports.daysBetween=He.daysBetween;exports.isFeatureEnabled=Ve.isFeatureEnabled;exports.hexSchema=J.hexSchema;exports.hexSchemaBase=J.hexSchemaBase;exports.id=Le.id;exports.getInitials=xe.getInitials;exports.isContractDeployed=Me.isContractDeployed;exports.nonNullable=We.nonNullable;exports.isAllowedAddressHexInputValue=Ue.isAllowedAddressHexInputValue;exports.isAllowedNumericInputValue=Ge.isAllowedNumericInputValue;exports.isNumeric=ze.isNumeric;exports.prettifyCurrencyNumber=v.prettifyCurrencyNumber;exports.prettifyNumber=v.prettifyNumber;exports.prettifyNumberConfig=v.prettifyNumberConfig;exports.prettifyTokenNumber=v.prettifyTokenNumber;exports.getUint256CalldataFromBN=ee.getUint256CalldataFromBN;exports.parseAmountValue=ee.parseAmountValue;exports.pluralise=je.pluralise;exports.readFileAsString=Ke.readFileAsString;exports.booleanToStringSchema=b.booleanToStringSchema;exports.createSchemaWithWarnings=b.createSchemaWithWarnings;exports.safeParseAndWarn=b.safeParseAndWarn;exports.stringToBooleanSchema=b.stringToBooleanSchema;exports.addOwnersCalldataSchema=t.addOwnersCalldataSchema;exports.addPluginCalldataSchema=t.addPluginCalldataSchema;exports.bigNumberishSchema=t.bigNumberishSchema;exports.callDetailsSchema=t.callDetailsSchema;exports.callSchema=t.callSchema;exports.calldataSchema=t.calldataSchema;exports.changeGuardianCalldataSchema=t.changeGuardianCalldataSchema;exports.changeThresholdCalldataSchema=t.changeThresholdCalldataSchema;exports.escapeGuardianCalldataSchema=t.escapeGuardianCalldataSchema;exports.executeOnPluginCalldataSchema=t.executeOnPluginCalldataSchema;exports.feltSchema=t.feltSchema;exports.looseCalldataSchema=t.looseCalldataSchema;exports.multiTypeSchema=t.multiTypeSchema;exports.rawArgsArraySchema=t.rawArgsArraySchema;exports.rawArgsObjectSchema=t.rawArgsObjectSchema;exports.rawArgsSchema=t.rawArgsSchema;exports.removeOwnersCalldataSchema=t.removeOwnersCalldataSchema;exports.removePluginCalldataSchema=t.removePluginCalldataSchema;exports.replaceSignerCalldataSchema=t.replaceSignerCalldataSchema;exports.transferCalldataSchema=t.transferCalldataSchema;exports.uint256Schema=t.uint256Schema;exports.abiEntrySchema=a.abiEntrySchema;exports.abiSchema=a.abiSchema;exports.builtinsSchema=a.builtinsSchema;exports.byteCodeSchema=a.byteCodeSchema;exports.cairo1EventSchema=a.cairo1EventSchema;exports.cairoAssemblySchema=a.cairoAssemblySchema;exports.compiledContractClassSchema=a.compiledContractClassSchema;exports.compiledSierraCasmSchema=a.compiledSierraCasmSchema;exports.compiledSierraSchema=a.compiledSierraSchema;exports.compressedProgramSchema=a.compressedProgramSchema;exports.contractEntryPointFieldsSchema=a.contractEntryPointFieldsSchema;exports.entryPointsByTypeSchema=a.entryPointsByTypeSchema;exports.eventAbiSchema=a.eventAbiSchema;exports.eventEntrySchema=a.eventEntrySchema;exports.functionAbiSchema=a.functionAbiSchema;exports.functionAbiTypeSchema=a.functionAbiTypeSchema;exports.legacyContractClassSchema=a.legacyContractClassSchema;exports.legacyEventSchema=a.legacyEventSchema;exports.programSchema=a.programSchema;exports.pythonicHintsSchema=a.pythonicHintsSchema;exports.sierraContractEntryPointFieldsSchema=a.sierraContractEntryPointFieldsSchema;exports.sierraEntryPointsByTypeSchema=a.sierraEntryPointsByTypeSchema;exports.sierraProgramDebugInfoSchema=a.sierraProgramDebugInfoSchema;exports.structAbiSchema=a.structAbiSchema;exports.entryPointToHumanReadable=$e.entryPointToHumanReadable;exports.urlWithQuery=Xe.urlWithQuery;exports.voidify=Ye.voidify;exports.bipsToPercent=Ze.bipsToPercent;exports.retryUntilInitialised=Qe.retryUntilInitialised;
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { preferencesEndpointPayload as f, preferencesSchema as u } from "./src/a
|
|
|
7
7
|
import { argentBackendNetworkIdSchema as g, argentNetworkIdSchema as x, isArgentBackendNetworkId as T, isArgentNetworkId as k } from "./src/backend/schema.js";
|
|
8
8
|
import { backendSessionAllowedMethodSchema as y, backendSessionMetadataSchema as D, backendSessionSchema as E, backendSessionTxFeeSchema as R } from "./src/backend/sessionKeys/schema.js";
|
|
9
9
|
import { CacheService as v } from "./src/cache/CacheService.js";
|
|
10
|
-
import { addressOrEmptyUndefinedSchema as b, addressSchema as F, addressSchemaArgentBackend as I, addressSchemaBase as B, addressSchemaLooseLength as w, addressSchemaStrictLength as _, formatFullAddress as H, formatTruncatedAddress as
|
|
10
|
+
import { addressOrEmptyUndefinedSchema as b, addressSchema as F, addressSchemaArgentBackend as I, addressSchemaBase as B, addressSchemaLooseLength as w, addressSchemaStrictLength as _, formatFullAddress as H, formatTruncatedAddress as O, formatTruncatedSignerKey as L, formatTruncatedString as V, includesAddress as M, isAddress as W, isBase58Address as U, isEqualAddress as q, isValidAddress as G, isZeroAddress as z, normalizeAddress as K, validChecksumAddressSchema as j, validateAddressRangeSchema as X } from "./src/chains/starknet/address.js";
|
|
11
11
|
import { addressOrDomainInputSchema as Z, addressOrDomainSchema as Q, isEqualStarknetDomainName as J, isStarknetDomainName as $, normalizeAddressOrDomain as ee, starknetDomainNameSchema as ae } from "./src/chains/starknet/addressDomain.js";
|
|
12
12
|
import { addressInputCharactersAndLengthSchema as te, addressInputSchema as oe } from "./src/chains/starknet/addressInput.js";
|
|
13
13
|
import { argentNameSchema as me, isArgentName as ie, isEqualArgentName as se, normalizeArgentName as ce } from "./src/chains/starknet/argentName.js";
|
|
@@ -18,7 +18,7 @@ import { getAddressFromStarkName as De, getCallFromStarkName as Ee, getStarknetI
|
|
|
18
18
|
import { getChainIdFromNetworkId as Ne } from "./src/chains/starknet/network.js";
|
|
19
19
|
import { StarknetAddressService as Fe } from "./src/chains/starknet/services/address/StarknetAddressService.js";
|
|
20
20
|
import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as Be, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as we, C0_PROXY_CONTRACT_CLASS_HASHES as _e } from "./src/chains/starknet/services/deploymentData/constants.js";
|
|
21
|
-
import { constructorCallDataSchemaC0 as
|
|
21
|
+
import { constructorCallDataSchemaC0 as Oe, constructorCallDataSchemaC1V1 as Le, implementationSchema as Ve } from "./src/chains/starknet/services/deploymentData/deploymentData.schema.js";
|
|
22
22
|
import { buildConstructorCalldata as We, findImplementationForAccount as Ue, getAccountContractAddress as qe, getAccountDeploymentPayload as Ge, isEqualImplementation as ze } from "./src/chains/starknet/services/deploymentData/findImplementationForAccount.js";
|
|
23
23
|
import { getArgentAccountClassHashes as je, getArgentAccountClassHashesWithTxV3Support as Xe, getArgentAccountWithMultiSignerClassHashes as Ye, getLastCairo0ArgentAccountClassHash as Ze, getLatestArgentAccountClassHash as Qe, getLatestArgentMultisigClassHash as Je, getLatestLedgerAccountClassHash as $e, getLedgerAccountClassHashes as ea } from "./src/chains/starknet/services/deploymentData/getAccountClassHash.js";
|
|
24
24
|
import { isEqualStarknetId as ra, isStarknetId as ta, normalizeStarknetId as oa, starknetIdSchema as na } from "./src/chains/starknet/starknetId.js";
|
|
@@ -33,7 +33,7 @@ import { KnownDappsBackendService as Da } from "./src/knownDapps/KnownDappsBacke
|
|
|
33
33
|
import { dappContractSchema as Ra, dappLinkSchema as Pa, knownDappSchema as va, knownDappsSchema as Na } from "./src/knownDapps/schema.js";
|
|
34
34
|
import { getDapplandLinkForDapp as Fa, getDapplandUrlForDapp as Ia } from "./src/knownDapps/utils/getDapplandUrl.js";
|
|
35
35
|
import { ResolveNameService as wa } from "./src/nameResolution/ResolveNameService.js";
|
|
36
|
-
import { nameProviderResolutionSchema as Ha, nameResolutionAddressSchema as
|
|
36
|
+
import { nameProviderResolutionSchema as Ha, nameResolutionAddressSchema as Oa, nameResolutionAddressesSchema as La, nameResolutionStarknetIdSchema as Va, nameResolutionStarknetIdsSchema as Ma, providersNamesSchema as Wa } from "./src/nameResolution/schema.js";
|
|
37
37
|
import { BackendNftService as qa } from "./src/nfts/BackendNftService.js";
|
|
38
38
|
import { equalNft as za, getNftPicture as Ka } from "./src/nfts/utils.js";
|
|
39
39
|
import { OnchainRecoveryService as Xa } from "./src/onchainRecovery/OnchainRecoveryService.js";
|
|
@@ -43,68 +43,68 @@ import { getUAParserResult as cr, isBrowser as Sr, isChromeBrowser as dr, isEdge
|
|
|
43
43
|
import { seedphraseSchema as ur } from "./src/signer/seedphrase.js";
|
|
44
44
|
import { MultiSigner as gr, getSignerForMultiSigner as xr } from "./src/signer/multisigner.js";
|
|
45
45
|
import { mergeOwnerGuardianSignatures as kr } from "./src/signer/mergeOwnerGuardianSignatures.js";
|
|
46
|
-
import {
|
|
47
|
-
import { containsValue as
|
|
48
|
-
import { mergeArrayStableWith as Lr, optionsWithDefaults as
|
|
49
|
-
import { getTokenBalance as
|
|
50
|
-
import { DEFAULT_TOKEN_DECIMALS as
|
|
51
|
-
import { convertTokenAmountToCurrencyValue as
|
|
52
|
-
import { convertTokenUnitAmountWithDecimals as
|
|
53
|
-
import { ensureDecimals as
|
|
54
|
-
import { isUnlimitedAmount as
|
|
55
|
-
import { prettifyCurrencyValue as
|
|
56
|
-
import { PRETTY_UNLIMITED as
|
|
57
|
-
import { getCurrencySymbol as
|
|
58
|
-
import { TokenServiceWeb as
|
|
59
|
-
import { TOKEN_ERROR_MESSAGES as
|
|
60
|
-
import { apiAccountTokenBalancesSchema as
|
|
61
|
-
import { collateralizedDebtGroupSchema as
|
|
62
|
-
import { defiPositionTypeSchema as
|
|
63
|
-
import { airdropSchema as
|
|
64
|
-
import { webBaseTokenSchema as
|
|
65
|
-
import { isCollateralizedDebtPosition as
|
|
66
|
-
import { inputAmountSchema as
|
|
67
|
-
import { erc20TransferTransaction as
|
|
68
|
-
import { getMessageFromTrpcError as
|
|
69
|
-
import { FEE_OVERHEAD as
|
|
70
|
-
import { ESTIMATE_ERROR_MESSAGES as
|
|
71
|
-
import { transactionReviewTransactionsSchema as
|
|
72
|
-
import { buildDummyTx as
|
|
73
|
-
import { EventsBySelector as
|
|
74
|
-
import { getPrettyRpcError as
|
|
75
|
-
import { getSimulationTxVersionFromFeeToken as
|
|
76
|
-
import { TransactionReviewServiceWeb as
|
|
77
|
-
import { transactionReviewWarningSchema as
|
|
78
|
-
import { apiTransactionReviewActivityType as
|
|
79
|
-
import { denyTxV3 as
|
|
80
|
-
import { classHashSupportsTxV3 as
|
|
81
|
-
import { formatAddress as
|
|
82
|
-
import { ensureArray as
|
|
83
|
-
import { generateAvatarImage as
|
|
84
|
-
import { decodeBase58 as
|
|
85
|
-
import { bigNumberSchema as
|
|
86
|
-
import { daysBetween as
|
|
87
|
-
import { isFeatureEnabled as
|
|
88
|
-
import { hexSchema as
|
|
89
|
-
import { id as
|
|
90
|
-
import { getInitials as
|
|
91
|
-
import { isContractDeployed as
|
|
92
|
-
import { nonNullable as
|
|
93
|
-
import { isAllowedAddressHexInputValue as
|
|
94
|
-
import { isAllowedNumericInputValue as
|
|
95
|
-
import { isNumeric as
|
|
96
|
-
import { prettifyCurrencyNumber as
|
|
97
|
-
import { getUint256CalldataFromBN as
|
|
98
|
-
import { pluralise as
|
|
99
|
-
import { readFileAsString as
|
|
100
|
-
import { booleanToStringSchema as
|
|
101
|
-
import { addOwnersCalldataSchema as
|
|
102
|
-
import { abiEntrySchema as
|
|
103
|
-
import { entryPointToHumanReadable as
|
|
104
|
-
import { urlWithQuery as
|
|
105
|
-
import { voidify as
|
|
106
|
-
import { bipsToPercent as
|
|
107
|
-
import { retryUntilInitialised as
|
|
46
|
+
import { buildSellOptsSchema as yr, investmentMetaSchema as Dr, investmentSchema as Er, investmentsResponseSchema as Rr, lendingInvestmentSchema as Pr, liquidStakingInvestmentSchema as vr, stakerInfoSchema as Nr, stakingActionSchema as br, strkDelegatedStakingInvestmentSchema as Fr, strkStakingCalldataResponseSchema as Ir, strkStakingCalldataSchema as Br } from "./src/staking/schema.js";
|
|
47
|
+
import { containsValue as _r, replaceValueRecursively as Hr } from "./src/storage/utils.js";
|
|
48
|
+
import { mergeArrayStableWith as Lr, optionsWithDefaults as Vr } from "./src/storage/base.js";
|
|
49
|
+
import { getTokenBalance as Wr, getTokens as Ur, getTokensBalances as qr, useToken as Gr } from "./src/tokens/balances.js";
|
|
50
|
+
import { DEFAULT_TOKEN_DECIMALS as Kr } from "./src/tokens/constants.js";
|
|
51
|
+
import { convertTokenAmountToCurrencyValue as Xr } from "./src/tokens/convertTokenAmountToCurrencyValue.js";
|
|
52
|
+
import { convertTokenUnitAmountWithDecimals as Zr } from "./src/tokens/convertTokenUnitAmountWithDecimals.js";
|
|
53
|
+
import { ensureDecimals as Jr } from "./src/tokens/ensureDecimals.js";
|
|
54
|
+
import { isUnlimitedAmount as et } from "./src/tokens/isUnlimitedAmount.js";
|
|
55
|
+
import { prettifyCurrencyValue as rt } from "./src/tokens/prettifyCurrencyValue.js";
|
|
56
|
+
import { PRETTY_UNLIMITED as ot, prettifyTokenAmount as nt } from "./src/tokens/prettifyTokenAmount.js";
|
|
57
|
+
import { getCurrencySymbol as it } from "./src/tokens/getCurrencySymbol.js";
|
|
58
|
+
import { TokenServiceWeb as ct } from "./src/tokens/service/implementation.js";
|
|
59
|
+
import { TOKEN_ERROR_MESSAGES as dt, TokenError as pt } from "./src/tokens/service/tokenError.js";
|
|
60
|
+
import { apiAccountTokenBalancesSchema as ht, apiAirdropSchema as ft, apiCollateralizedDebtPositionSchema as ut, apiCollateralizedDebtPositionsSchema as At, apiConcentratedLiquidityPositionSchema as gt, apiConcentratedLiquidityPositionsSchema as xt, apiDefiDecompositionProduct as Tt, apiDefiDecompositionProducts as kt, apiDefiDecompositionSchema as Ct, apiDefiDecompositionToken as yt, apiDefiPositionSchema as Dt, apiDefiPositionsSchema as Et, apiDelegatedTokensArraySchema as Rt, apiDelegatedTokensSchema as Pt, apiPriceDataResponseSchema as vt, apiPriceDetailsSchema as Nt, apiStakingPositionSchema as bt, apiStakingPositionsSchema as Ft, apiStrkDelegatedStakingPositionsSchema as It, apiStrkDelegatedStakingSchema as Bt, apiTokenInfoResponseSchema as wt, apiTokenInfoSchema as _t, apiTokensInfoResponseSchema as Ht, apiUnclaimedRewardsSchema as Ot } from "./src/tokens/service/types/backend.model.js";
|
|
61
|
+
import { collateralizedDebtGroupSchema as Vt, collateralizedDebtPositionSchema as Mt, collateralizedDebtPositionsSchema as Wt, concentratedLiquidityPositionSchema as Ut, concentratedLiquidityPositionsSchema as qt, defiDappsProductsSchema as Gt, defiPositionSchema as zt, defiProductSchema as Kt, defiProductsSchema as jt, delegatedTokensArraySchema as Xt, delegatedTokensSchema as Yt, productGroupsSchema as Zt, stakingPositionSchema as Qt, stakingPositionsSchema as Jt, strkDelegatedStakingPositionArraySchema as $t, strkDelegatedStakingPositionSchema as eo } from "./src/tokens/service/types/defiPosition.model.js";
|
|
62
|
+
import { defiPositionTypeSchema as ro } from "./src/tokens/service/types/defiPositionType.model.js";
|
|
63
|
+
import { airdropSchema as oo, unclaimedRewardsSchema as no } from "./src/tokens/service/types/unclaimedRewards.model.js";
|
|
64
|
+
import { webBaseTokenSchema as io, webBaseTokenWithBalanceSchema as so, webTokenInfoDetailsSchema as co, webTokenPriceDetailsSchema as So, webTokenSchema as po, webTokenWithBalanceAndPriceSchema as lo, webTokenWithBalanceSchema as ho, webTokenWithPriceSchema as fo, webTokensWithBalanceAndPriceSchema as uo } from "./src/tokens/service/types/webToken.model.js";
|
|
65
|
+
import { isCollateralizedDebtPosition as go, isConcentratedLiquidityPosition as xo, isDelegatedTokens as To, isStaking as ko, isStrkDelegatedStaking as Co } from "./src/tokens/utils.js";
|
|
66
|
+
import { inputAmountSchema as Do, isValidInputAmount as Eo, parseAmount as Ro } from "./src/transactions/amount.js";
|
|
67
|
+
import { erc20TransferTransaction as vo, erc721SafeTransferFromTransaction as No, erc721TransferFromTransaction as bo } from "./src/transactions/buildTransactions.js";
|
|
68
|
+
import { getMessageFromTrpcError as Io, trpcErrorSchema as Bo } from "./src/transactions/errors.js";
|
|
69
|
+
import { FEE_OVERHEAD as _o, argentMaxFee as Ho, modifySnjsFeeOverhead as Oo } from "./src/transactions/estimate/argentMaxFee.js";
|
|
70
|
+
import { ESTIMATE_ERROR_MESSAGES as Vo, EstimateError as Mo } from "./src/transactions/estimate/error.js";
|
|
71
|
+
import { transactionReviewTransactionsSchema as Uo } from "./src/transactions/estimate/model.js";
|
|
72
|
+
import { buildDummyTx as Go, calculateCubeRootAdjustment as zo, calculateNonLinearAdjustment as Ko, calculateSqrtAdjustment as jo, castFeeEstimation as Xo, estimatedFeeToMaxFeeTotal as Yo, estimatedFeeToMaxResourceBounds as Zo, estimatedFeeToTotal as Qo, estimatedFeesToMaxFeeTotal as Jo, estimatedFeesToTotal as $o, getEstimatedFeeFromBulkSimulation as en, getEstimatedFeeFromSimulationAndRespectWatermarkFee as an, getPayloadFromTransaction as rn, getWatermarkedMaxFeeTotal as tn, isFRI as on, isWEI as nn, multiplyBigIntByFloat as mn, toMax as sn, tokensRequireTxV3Support as cn, unitToFeeTokenAddress as Sn } from "./src/transactions/estimate/utils.js";
|
|
73
|
+
import { EventsBySelector as pn, findTransfersAndApprovals as ln } from "./src/transactions/findTransfersAndApprovals.js";
|
|
74
|
+
import { getPrettyRpcError as fn } from "./src/transactions/getPrettyRcpError.js";
|
|
75
|
+
import { getSimulationTxVersionFromFeeToken as An, getTxVersionFromFeeToken as gn, getTxVersionFromFeeTokenForDeclareContract as xn } from "./src/transactions/getTransactionVersion.js";
|
|
76
|
+
import { TransactionReviewServiceWeb as kn } from "./src/transactions/service/implementation.js";
|
|
77
|
+
import { transactionReviewWarningSchema as yn } from "./src/transactions/service/types.js";
|
|
78
|
+
import { apiTransactionReviewActivityType as En } from "./src/transactions/transactionReviewTypes.js";
|
|
79
|
+
import { denyTxV3 as Pn, txVersionSchema as vn } from "./src/transactions/transactionVersion.js";
|
|
80
|
+
import { classHashSupportsTxV3 as bn, feeTokenNeedsTxV3Support as Fn } from "./src/transactions/txv3.js";
|
|
81
|
+
import { formatAddress as Bn } from "./src/utils/address.js";
|
|
82
|
+
import { ensureArray as _n } from "./src/utils/arrays.js";
|
|
83
|
+
import { generateAvatarImage as On, getColor as Ln, getNetworkAccountImageUrl as Vn, stripAddressZeroPadding as Mn } from "./src/utils/avatarImage.js";
|
|
84
|
+
import { decodeBase58 as Un, decodeBase58Array as qn, encodeBase58 as Gn, encodeBase58Array as zn } from "./src/utils/base58.js";
|
|
85
|
+
import { bigNumberSchema as jn } from "./src/utils/bigNumber.js";
|
|
86
|
+
import { daysBetween as Yn } from "./src/utils/daysBetween.js";
|
|
87
|
+
import { isFeatureEnabled as Qn } from "./src/utils/env.js";
|
|
88
|
+
import { hexSchema as $n, hexSchemaBase as em } from "./src/utils/hex.js";
|
|
89
|
+
import { id as rm } from "./src/utils/id.js";
|
|
90
|
+
import { getInitials as om } from "./src/utils/initials.js";
|
|
91
|
+
import { isContractDeployed as mm } from "./src/utils/isContractDeployed.js";
|
|
92
|
+
import { nonNullable as sm } from "./src/utils/nonNullable.js";
|
|
93
|
+
import { isAllowedAddressHexInputValue as Sm } from "./src/utils/number/isAllowedAddressHexInputValue.js";
|
|
94
|
+
import { isAllowedNumericInputValue as pm } from "./src/utils/number/isAllowedNumericInputValue.js";
|
|
95
|
+
import { isNumeric as hm } from "./src/utils/number/isNumeric.js";
|
|
96
|
+
import { prettifyCurrencyNumber as um, prettifyNumber as Am, prettifyNumberConfig as gm, prettifyTokenNumber as xm } from "./src/utils/number/prettifyNumber.js";
|
|
97
|
+
import { getUint256CalldataFromBN as km, parseAmountValue as Cm } from "./src/utils/parseAmount.js";
|
|
98
|
+
import { pluralise as Dm } from "./src/utils/pluralise.js";
|
|
99
|
+
import { readFileAsString as Rm } from "./src/utils/readFileAsString.js";
|
|
100
|
+
import { booleanToStringSchema as vm, createSchemaWithWarnings as Nm, safeParseAndWarn as bm, stringToBooleanSchema as Fm } from "./src/utils/schemas.js";
|
|
101
|
+
import { addOwnersCalldataSchema as Bm, addPluginCalldataSchema as wm, bigNumberishSchema as _m, callDetailsSchema as Hm, callSchema as Om, calldataSchema as Lm, changeGuardianCalldataSchema as Vm, changeThresholdCalldataSchema as Mm, escapeGuardianCalldataSchema as Wm, executeOnPluginCalldataSchema as Um, feltSchema as qm, looseCalldataSchema as Gm, multiTypeSchema as zm, rawArgsArraySchema as Km, rawArgsObjectSchema as jm, rawArgsSchema as Xm, removeOwnersCalldataSchema as Ym, removePluginCalldataSchema as Zm, replaceSignerCalldataSchema as Qm, transferCalldataSchema as Jm, uint256Schema as $m } from "./src/utils/starknet/starknet.js";
|
|
102
|
+
import { abiEntrySchema as ai, abiSchema as ri, builtinsSchema as ti, byteCodeSchema as oi, cairo1EventSchema as ni, cairoAssemblySchema as mi, compiledContractClassSchema as ii, compiledSierraCasmSchema as si, compiledSierraSchema as ci, compressedProgramSchema as Si, contractEntryPointFieldsSchema as di, entryPointsByTypeSchema as pi, eventAbiSchema as li, eventEntrySchema as hi, functionAbiSchema as fi, functionAbiTypeSchema as ui, legacyContractClassSchema as Ai, legacyEventSchema as gi, programSchema as xi, pythonicHintsSchema as Ti, sierraContractEntryPointFieldsSchema as ki, sierraEntryPointsByTypeSchema as Ci, sierraProgramDebugInfoSchema as yi, structAbiSchema as Di } from "./src/utils/starknet/starknetSchemas.js";
|
|
103
|
+
import { entryPointToHumanReadable as Ri } from "./src/utils/transactions.js";
|
|
104
|
+
import { urlWithQuery as vi } from "./src/utils/url/urlWithQuery.js";
|
|
105
|
+
import { voidify as bi } from "./src/utils/voidify.js";
|
|
106
|
+
import { bipsToPercent as Ii } from "./src/utils/bips.js";
|
|
107
|
+
import { retryUntilInitialised as wi } from "./src/utils/retryUntilInitialised.js";
|
|
108
108
|
export {
|
|
109
109
|
Be as ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES,
|
|
110
110
|
we as ARGENT_MULTISIG_CONTRACT_CLASS_HASHES,
|
|
@@ -116,20 +116,20 @@ export {
|
|
|
116
116
|
t as BaseError,
|
|
117
117
|
_e as C0_PROXY_CONTRACT_CLASS_HASHES,
|
|
118
118
|
v as CacheService,
|
|
119
|
-
|
|
119
|
+
Kr as DEFAULT_TOKEN_DECIMALS,
|
|
120
120
|
ia as DateService,
|
|
121
|
-
|
|
121
|
+
Vo as ESTIMATE_ERROR_MESSAGES,
|
|
122
122
|
le as ETH_TOKEN_ADDRESS,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
Mo as EstimateError,
|
|
124
|
+
pn as EventsBySelector,
|
|
125
|
+
_o as FEE_OVERHEAD,
|
|
126
126
|
da as HTTPService,
|
|
127
127
|
la as HTTP_ERROR_MESSAGE,
|
|
128
128
|
ca as HttpError,
|
|
129
129
|
Da as KnownDappsBackendService,
|
|
130
130
|
gr as MultiSigner,
|
|
131
131
|
Xa as OnchainRecoveryService,
|
|
132
|
-
|
|
132
|
+
ot as PRETTY_UNLIMITED,
|
|
133
133
|
Za as RecoveryStatusEnum,
|
|
134
134
|
wa as ResolveNameService,
|
|
135
135
|
he as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
|
|
@@ -137,19 +137,19 @@ export {
|
|
|
137
137
|
fa as SWRService,
|
|
138
138
|
Fe as StarknetAddressService,
|
|
139
139
|
Qa as StartOnchainRecoveryErrorStatusEnum,
|
|
140
|
-
|
|
140
|
+
dt as TOKEN_ERROR_MESSAGES,
|
|
141
141
|
ue as TXV1_ACCOUNT_CLASS_HASH,
|
|
142
142
|
Ae as TXV1_MULTISIG_CLASS_HASH,
|
|
143
143
|
ge as TXV3_ACCOUNT_CLASS_HASH,
|
|
144
144
|
xe as TXV3_MULTISIG_CLASS_HASH,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
pt as TokenError,
|
|
146
|
+
ct as TokenServiceWeb,
|
|
147
|
+
kn as TransactionReviewServiceWeb,
|
|
148
|
+
ai as abiEntrySchema,
|
|
149
|
+
ri as abiSchema,
|
|
150
150
|
Ja as activeOnchainRecoverySchema,
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
Bm as addOwnersCalldataSchema,
|
|
152
|
+
wm as addPluginCalldataSchema,
|
|
153
153
|
te as addressInputCharactersAndLengthSchema,
|
|
154
154
|
oe as addressInputSchema,
|
|
155
155
|
Z as addressOrDomainInputSchema,
|
|
@@ -160,35 +160,35 @@ export {
|
|
|
160
160
|
B as addressSchemaBase,
|
|
161
161
|
w as addressSchemaLooseLength,
|
|
162
162
|
_ as addressSchemaStrictLength,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
163
|
+
oo as airdropSchema,
|
|
164
|
+
ht as apiAccountTokenBalancesSchema,
|
|
165
|
+
ft as apiAirdropSchema,
|
|
166
|
+
ut as apiCollateralizedDebtPositionSchema,
|
|
167
|
+
At as apiCollateralizedDebtPositionsSchema,
|
|
168
|
+
gt as apiConcentratedLiquidityPositionSchema,
|
|
169
|
+
xt as apiConcentratedLiquidityPositionsSchema,
|
|
170
|
+
Tt as apiDefiDecompositionProduct,
|
|
171
|
+
kt as apiDefiDecompositionProducts,
|
|
172
|
+
Ct as apiDefiDecompositionSchema,
|
|
173
|
+
yt as apiDefiDecompositionToken,
|
|
174
|
+
Dt as apiDefiPositionSchema,
|
|
175
|
+
Et as apiDefiPositionsSchema,
|
|
176
|
+
Rt as apiDelegatedTokensArraySchema,
|
|
177
|
+
Pt as apiDelegatedTokensSchema,
|
|
178
|
+
vt as apiPriceDataResponseSchema,
|
|
179
|
+
Nt as apiPriceDetailsSchema,
|
|
180
|
+
bt as apiStakingPositionSchema,
|
|
181
|
+
Ft as apiStakingPositionsSchema,
|
|
182
|
+
It as apiStrkDelegatedStakingPositionsSchema,
|
|
183
|
+
Bt as apiStrkDelegatedStakingSchema,
|
|
184
|
+
wt as apiTokenInfoResponseSchema,
|
|
185
|
+
_t as apiTokenInfoSchema,
|
|
186
|
+
Ht as apiTokensInfoResponseSchema,
|
|
187
|
+
En as apiTransactionReviewActivityType,
|
|
188
|
+
Ot as apiUnclaimedRewardsSchema,
|
|
189
189
|
ke as apiWalletResponseSchema,
|
|
190
190
|
g as argentBackendNetworkIdSchema,
|
|
191
|
-
|
|
191
|
+
Ho as argentMaxFee,
|
|
192
192
|
me as argentNameSchema,
|
|
193
193
|
x as argentNetworkIdSchema,
|
|
194
194
|
y as backendSessionAllowedMethodSchema,
|
|
@@ -196,89 +196,90 @@ export {
|
|
|
196
196
|
E as backendSessionSchema,
|
|
197
197
|
R as backendSessionTxFeeSchema,
|
|
198
198
|
e as bigDecimal,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
jn as bigNumberSchema,
|
|
200
|
+
_m as bigNumberishSchema,
|
|
201
|
+
Ii as bipsToPercent,
|
|
202
|
+
vm as booleanToStringSchema,
|
|
203
203
|
We as buildConstructorCalldata,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
ti as
|
|
207
|
-
oi as
|
|
208
|
-
ni as
|
|
204
|
+
Go as buildDummyTx,
|
|
205
|
+
yr as buildSellOptsSchema,
|
|
206
|
+
ti as builtinsSchema,
|
|
207
|
+
oi as byteCodeSchema,
|
|
208
|
+
ni as cairo1EventSchema,
|
|
209
|
+
mi as cairoAssemblySchema,
|
|
209
210
|
de as cairoVersionSchema,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
zo as calculateCubeRootAdjustment,
|
|
212
|
+
Ko as calculateNonLinearAdjustment,
|
|
213
|
+
jo as calculateSqrtAdjustment,
|
|
214
|
+
Hm as callDetailsSchema,
|
|
215
|
+
Om as callSchema,
|
|
215
216
|
Lm as calldataSchema,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
217
|
+
Xo as castFeeEstimation,
|
|
218
|
+
Vm as changeGuardianCalldataSchema,
|
|
219
|
+
Mm as changeThresholdCalldataSchema,
|
|
220
|
+
bn as classHashSupportsTxV3,
|
|
221
|
+
Vt as collateralizedDebtGroupSchema,
|
|
222
|
+
Mt as collateralizedDebtPositionSchema,
|
|
223
|
+
Wt as collateralizedDebtPositionsSchema,
|
|
224
|
+
ii as compiledContractClassSchema,
|
|
225
|
+
si as compiledSierraCasmSchema,
|
|
226
|
+
ci as compiledSierraSchema,
|
|
227
|
+
Si as compressedProgramSchema,
|
|
228
|
+
Ut as concentratedLiquidityPositionSchema,
|
|
229
|
+
qt as concentratedLiquidityPositionsSchema,
|
|
230
|
+
Oe as constructorCallDataSchemaC0,
|
|
231
|
+
Le as constructorCallDataSchemaC1V1,
|
|
232
|
+
_r as containsValue,
|
|
233
|
+
di as contractEntryPointFieldsSchema,
|
|
234
|
+
Xr as convertTokenAmountToCurrencyValue,
|
|
235
|
+
Zr as convertTokenUnitAmountWithDecimals,
|
|
236
|
+
Nm as createSchemaWithWarnings,
|
|
236
237
|
Ra as dappContractSchema,
|
|
237
238
|
Pa as dappLinkSchema,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
239
|
+
Yn as daysBetween,
|
|
240
|
+
Un as decodeBase58,
|
|
241
|
+
qn as decodeBase58Array,
|
|
242
|
+
Gt as defiDappsProductsSchema,
|
|
243
|
+
zt as defiPositionSchema,
|
|
244
|
+
ro as defiPositionTypeSchema,
|
|
245
|
+
Kt as defiProductSchema,
|
|
246
|
+
jt as defiProductsSchema,
|
|
247
|
+
Xt as delegatedTokensArraySchema,
|
|
248
|
+
Yt as delegatedTokensSchema,
|
|
249
|
+
Pn as denyTxV3,
|
|
250
|
+
Gn as encodeBase58,
|
|
251
|
+
zn as encodeBase58Array,
|
|
252
|
+
_n as ensureArray,
|
|
253
|
+
Jr as ensureDecimals,
|
|
254
|
+
Ri as entryPointToHumanReadable,
|
|
255
|
+
pi as entryPointsByTypeSchema,
|
|
255
256
|
za as equalNft,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
257
|
+
vo as erc20TransferTransaction,
|
|
258
|
+
No as erc721SafeTransferFromTransaction,
|
|
259
|
+
bo as erc721TransferFromTransaction,
|
|
260
|
+
Wm as escapeGuardianCalldataSchema,
|
|
261
|
+
Yo as estimatedFeeToMaxFeeTotal,
|
|
262
|
+
Zo as estimatedFeeToMaxResourceBounds,
|
|
263
|
+
Qo as estimatedFeeToTotal,
|
|
264
|
+
Jo as estimatedFeesToMaxFeeTotal,
|
|
265
|
+
$o as estimatedFeesToTotal,
|
|
266
|
+
li as eventAbiSchema,
|
|
267
|
+
hi as eventEntrySchema,
|
|
268
|
+
Um as executeOnPluginCalldataSchema,
|
|
269
|
+
Fn as feeTokenNeedsTxV3Support,
|
|
270
|
+
qm as feltSchema,
|
|
270
271
|
Aa as fetchData,
|
|
271
272
|
ga as fetcherError,
|
|
272
273
|
Ue as findImplementationForAccount,
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
ln as findTransfersAndApprovals,
|
|
275
|
+
Bn as formatAddress,
|
|
275
276
|
H as formatFullAddress,
|
|
276
|
-
|
|
277
|
-
|
|
277
|
+
O as formatTruncatedAddress,
|
|
278
|
+
L as formatTruncatedSignerKey,
|
|
278
279
|
V as formatTruncatedString,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
fi as functionAbiSchema,
|
|
281
|
+
ui as functionAbiTypeSchema,
|
|
282
|
+
On as generateAvatarImage,
|
|
282
283
|
qe as getAccountContractAddress,
|
|
283
284
|
Ge as getAccountDeploymentPayload,
|
|
284
285
|
Ce as getAddressFromArgentName,
|
|
@@ -291,48 +292,48 @@ export {
|
|
|
291
292
|
Ee as getCallFromStarkName,
|
|
292
293
|
Ne as getChainIdFromNetworkId,
|
|
293
294
|
Ln as getColor,
|
|
294
|
-
|
|
295
|
+
it as getCurrencySymbol,
|
|
295
296
|
Fa as getDapplandLinkForDapp,
|
|
296
297
|
Ia as getDapplandUrlForDapp,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
en as getEstimatedFeeFromBulkSimulation,
|
|
299
|
+
an as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
|
|
300
|
+
om as getInitials,
|
|
300
301
|
Ze as getLastCairo0ArgentAccountClassHash,
|
|
301
302
|
Qe as getLatestArgentAccountClassHash,
|
|
302
303
|
Je as getLatestArgentMultisigClassHash,
|
|
303
304
|
$e as getLatestLedgerAccountClassHash,
|
|
304
305
|
ea as getLedgerAccountClassHashes,
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
Io as getMessageFromTrpcError,
|
|
307
|
+
Vn as getNetworkAccountImageUrl,
|
|
307
308
|
Ka as getNftPicture,
|
|
308
|
-
|
|
309
|
-
|
|
309
|
+
rn as getPayloadFromTransaction,
|
|
310
|
+
fn as getPrettyRpcError,
|
|
310
311
|
xr as getSignerForMultiSigner,
|
|
311
|
-
|
|
312
|
+
An as getSimulationTxVersionFromFeeToken,
|
|
312
313
|
Re as getStarknetIdContractAddressFromNetworkId,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
314
|
+
Wr as getTokenBalance,
|
|
315
|
+
Ur as getTokens,
|
|
316
|
+
qr as getTokensBalances,
|
|
317
|
+
gn as getTxVersionFromFeeToken,
|
|
318
|
+
xn as getTxVersionFromFeeTokenForDeclareContract,
|
|
318
319
|
cr as getUAParserResult,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
320
|
+
km as getUint256CalldataFromBN,
|
|
321
|
+
tn as getWatermarkedMaxFeeTotal,
|
|
322
|
+
$n as hexSchema,
|
|
323
|
+
em as hexSchemaBase,
|
|
324
|
+
rm as id,
|
|
324
325
|
Ve as implementationSchema,
|
|
325
326
|
M as includesAddress,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
327
|
+
Do as inputAmountSchema,
|
|
328
|
+
Dr as investmentMetaSchema,
|
|
329
|
+
Er as investmentSchema,
|
|
330
|
+
Rr as investmentsResponseSchema,
|
|
330
331
|
d as isAccountV4,
|
|
331
332
|
p as isAccountV5,
|
|
332
333
|
l as isAccountV6,
|
|
333
334
|
W as isAddress,
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
Sm as isAllowedAddressHexInputValue,
|
|
336
|
+
pm as isAllowedNumericInputValue,
|
|
336
337
|
T as isArgentBackendNetworkId,
|
|
337
338
|
ie as isArgentName,
|
|
338
339
|
k as isArgentNetworkId,
|
|
@@ -340,127 +341,127 @@ export {
|
|
|
340
341
|
ir as isBraveBrowser,
|
|
341
342
|
Sr as isBrowser,
|
|
342
343
|
dr as isChromeBrowser,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
go as isCollateralizedDebtPosition,
|
|
345
|
+
xo as isConcentratedLiquidityPosition,
|
|
346
|
+
mm as isContractDeployed,
|
|
347
|
+
To as isDelegatedTokens,
|
|
347
348
|
pr as isEdgeBrowser,
|
|
348
349
|
q as isEqualAddress,
|
|
349
350
|
se as isEqualArgentName,
|
|
350
351
|
ze as isEqualImplementation,
|
|
351
352
|
J as isEqualStarknetDomainName,
|
|
352
353
|
ra as isEqualStarknetId,
|
|
353
|
-
|
|
354
|
-
|
|
354
|
+
on as isFRI,
|
|
355
|
+
Qn as isFeatureEnabled,
|
|
355
356
|
lr as isFirefoxBrowser,
|
|
356
|
-
|
|
357
|
+
hm as isNumeric,
|
|
357
358
|
hr as isSafariBrowser,
|
|
358
|
-
|
|
359
|
+
ko as isStaking,
|
|
359
360
|
$ as isStarknetDomainName,
|
|
360
361
|
ta as isStarknetId,
|
|
361
|
-
|
|
362
|
-
|
|
362
|
+
Co as isStrkDelegatedStaking,
|
|
363
|
+
et as isUnlimitedAmount,
|
|
363
364
|
G as isValidAddress,
|
|
364
|
-
|
|
365
|
-
|
|
365
|
+
Eo as isValidInputAmount,
|
|
366
|
+
nn as isWEI,
|
|
366
367
|
z as isZeroAddress,
|
|
367
368
|
va as knownDappSchema,
|
|
368
369
|
Na as knownDappsSchema,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
370
|
+
Ai as legacyContractClassSchema,
|
|
371
|
+
gi as legacyEventSchema,
|
|
372
|
+
Pr as lendingInvestmentSchema,
|
|
373
|
+
vr as liquidStakingInvestmentSchema,
|
|
374
|
+
Gm as looseCalldataSchema,
|
|
374
375
|
Lr as mergeArrayStableWith,
|
|
375
376
|
kr as mergeOwnerGuardianSignatures,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
Oo as modifySnjsFeeOverhead,
|
|
378
|
+
zm as multiTypeSchema,
|
|
379
|
+
mn as multiplyBigIntByFloat,
|
|
379
380
|
Ha as nameProviderResolutionSchema,
|
|
380
|
-
|
|
381
|
-
|
|
381
|
+
Oa as nameResolutionAddressSchema,
|
|
382
|
+
La as nameResolutionAddressesSchema,
|
|
382
383
|
Va as nameResolutionStarknetIdSchema,
|
|
383
384
|
Ma as nameResolutionStarknetIdsSchema,
|
|
384
|
-
|
|
385
|
+
sm as nonNullable,
|
|
385
386
|
K as normalizeAddress,
|
|
386
387
|
ee as normalizeAddressOrDomain,
|
|
387
388
|
ce as normalizeArgentName,
|
|
388
389
|
oa as normalizeStarknetId,
|
|
389
390
|
$a as onchainRecoverySchema,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
391
|
+
Vr as optionsWithDefaults,
|
|
392
|
+
Ro as parseAmount,
|
|
393
|
+
Cm as parseAmountValue,
|
|
394
|
+
Dm as pluralise,
|
|
394
395
|
xa as postData,
|
|
395
396
|
f as preferencesEndpointPayload,
|
|
396
397
|
u as preferencesSchema,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
398
|
+
um as prettifyCurrencyNumber,
|
|
399
|
+
rt as prettifyCurrencyValue,
|
|
400
|
+
Am as prettifyNumber,
|
|
401
|
+
gm as prettifyNumberConfig,
|
|
402
|
+
nt as prettifyTokenAmount,
|
|
403
|
+
xm as prettifyTokenNumber,
|
|
404
|
+
Zt as productGroupsSchema,
|
|
405
|
+
xi as programSchema,
|
|
405
406
|
Wa as providersNamesSchema,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
407
|
+
Ti as pythonicHintsSchema,
|
|
408
|
+
Km as rawArgsArraySchema,
|
|
409
|
+
jm as rawArgsObjectSchema,
|
|
410
|
+
Xm as rawArgsSchema,
|
|
411
|
+
Rm as readFileAsString,
|
|
411
412
|
er as recoveryBaseSchema,
|
|
412
413
|
ar as recoveryBodySchema,
|
|
413
414
|
rr as recoveryStatusSchema,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
415
|
+
Ym as removeOwnersCalldataSchema,
|
|
416
|
+
Zm as removePluginCalldataSchema,
|
|
417
|
+
Qm as replaceSignerCalldataSchema,
|
|
418
|
+
Hr as replaceValueRecursively,
|
|
419
|
+
wi as retryUntilInitialised,
|
|
420
|
+
bm as safeParseAndWarn,
|
|
420
421
|
ur as seedphraseSchema,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
422
|
+
ki as sierraContractEntryPointFieldsSchema,
|
|
423
|
+
Ci as sierraEntryPointsByTypeSchema,
|
|
424
|
+
yi as sierraProgramDebugInfoSchema,
|
|
425
|
+
Nr as stakerInfoSchema,
|
|
426
|
+
br as stakingActionSchema,
|
|
427
|
+
Qt as stakingPositionSchema,
|
|
428
|
+
Jt as stakingPositionsSchema,
|
|
428
429
|
Pe as starkNameToCallDataDomain,
|
|
429
430
|
ae as starknetDomainNameSchema,
|
|
430
431
|
na as starknetIdSchema,
|
|
431
432
|
tr as startOnchainRecoveryErrorSchema,
|
|
432
433
|
or as startOnchainRecoveryErrorStatusSchema,
|
|
433
434
|
nr as startOnchainRecoverySchema,
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
435
|
+
Fm as stringToBooleanSchema,
|
|
436
|
+
Mn as stripAddressZeroPadding,
|
|
437
|
+
Fr as strkDelegatedStakingInvestmentSchema,
|
|
438
|
+
$t as strkDelegatedStakingPositionArraySchema,
|
|
439
|
+
eo as strkDelegatedStakingPositionSchema,
|
|
440
|
+
Ir as strkStakingCalldataResponseSchema,
|
|
441
|
+
Br as strkStakingCalldataSchema,
|
|
442
|
+
Di as structAbiSchema,
|
|
443
|
+
sn as toMax,
|
|
444
|
+
cn as tokensRequireTxV3Support,
|
|
445
|
+
Uo as transactionReviewTransactionsSchema,
|
|
446
|
+
yn as transactionReviewWarningSchema,
|
|
447
|
+
Jm as transferCalldataSchema,
|
|
448
|
+
Bo as trpcErrorSchema,
|
|
449
|
+
vn as txVersionSchema,
|
|
450
|
+
$m as uint256Schema,
|
|
451
|
+
no as unclaimedRewardsSchema,
|
|
452
|
+
Sn as unitToFeeTokenAddress,
|
|
453
|
+
vi as urlWithQuery,
|
|
454
|
+
Gr as useToken,
|
|
454
455
|
j as validChecksumAddressSchema,
|
|
455
456
|
X as validateAddressRangeSchema,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
457
|
+
bi as voidify,
|
|
458
|
+
io as webBaseTokenSchema,
|
|
459
|
+
so as webBaseTokenWithBalanceSchema,
|
|
460
|
+
co as webTokenInfoDetailsSchema,
|
|
461
|
+
So as webTokenPriceDetailsSchema,
|
|
462
|
+
po as webTokenSchema,
|
|
463
|
+
lo as webTokenWithBalanceAndPriceSchema,
|
|
464
|
+
ho as webTokenWithBalanceSchema,
|
|
465
|
+
fo as webTokenWithPriceSchema,
|
|
466
|
+
uo as webTokensWithBalanceAndPriceSchema
|
|
466
467
|
};
|
|
@@ -5017,6 +5017,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
|
|
|
5017
5017
|
/** let's not import the keys from x-ui here */
|
|
5018
5018
|
icon: z.ZodOptional<z.ZodString>;
|
|
5019
5019
|
investment: z.ZodOptional<z.ZodObject<{
|
|
5020
|
+
useFullBalance: z.ZodOptional<z.ZodBoolean>;
|
|
5021
|
+
subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
|
|
5022
|
+
investmentId: z.ZodOptional<z.ZodString>;
|
|
5020
5023
|
stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
|
|
5021
5024
|
stakerInfo: z.ZodObject<{
|
|
5022
5025
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5042,6 +5045,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
|
|
|
5042
5045
|
iconUrl?: string | undefined;
|
|
5043
5046
|
};
|
|
5044
5047
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
5048
|
+
investmentId?: string | undefined;
|
|
5049
|
+
useFullBalance?: boolean | undefined;
|
|
5050
|
+
subsequentTransaction?: boolean | undefined;
|
|
5045
5051
|
}, {
|
|
5046
5052
|
amount: string;
|
|
5047
5053
|
tokenAddress: string;
|
|
@@ -5051,6 +5057,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
|
|
|
5051
5057
|
iconUrl?: string | undefined;
|
|
5052
5058
|
};
|
|
5053
5059
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
5060
|
+
investmentId?: string | undefined;
|
|
5061
|
+
useFullBalance?: boolean | undefined;
|
|
5062
|
+
subsequentTransaction?: boolean | undefined;
|
|
5054
5063
|
}>>;
|
|
5055
5064
|
isExecuteFromOutside: z.ZodOptional<z.ZodBoolean>;
|
|
5056
5065
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5067,6 +5076,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
|
|
|
5067
5076
|
iconUrl?: string | undefined;
|
|
5068
5077
|
};
|
|
5069
5078
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
5079
|
+
investmentId?: string | undefined;
|
|
5080
|
+
useFullBalance?: boolean | undefined;
|
|
5081
|
+
subsequentTransaction?: boolean | undefined;
|
|
5070
5082
|
} | undefined;
|
|
5071
5083
|
isExecuteFromOutside?: boolean | undefined;
|
|
5072
5084
|
}, {
|
|
@@ -5083,6 +5095,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
|
|
|
5083
5095
|
iconUrl?: string | undefined;
|
|
5084
5096
|
};
|
|
5085
5097
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
5098
|
+
investmentId?: string | undefined;
|
|
5099
|
+
useFullBalance?: boolean | undefined;
|
|
5100
|
+
subsequentTransaction?: boolean | undefined;
|
|
5086
5101
|
} | undefined;
|
|
5087
5102
|
isExecuteFromOutside?: boolean | undefined;
|
|
5088
5103
|
}>;
|
|
@@ -7606,6 +7621,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7606
7621
|
/** let's not import the keys from x-ui here */
|
|
7607
7622
|
icon: z.ZodOptional<z.ZodString>;
|
|
7608
7623
|
investment: z.ZodOptional<z.ZodObject<{
|
|
7624
|
+
useFullBalance: z.ZodOptional<z.ZodBoolean>;
|
|
7625
|
+
subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
|
|
7626
|
+
investmentId: z.ZodOptional<z.ZodString>;
|
|
7609
7627
|
stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
|
|
7610
7628
|
stakerInfo: z.ZodObject<{
|
|
7611
7629
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -7631,6 +7649,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7631
7649
|
iconUrl?: string | undefined;
|
|
7632
7650
|
};
|
|
7633
7651
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
7652
|
+
investmentId?: string | undefined;
|
|
7653
|
+
useFullBalance?: boolean | undefined;
|
|
7654
|
+
subsequentTransaction?: boolean | undefined;
|
|
7634
7655
|
}, {
|
|
7635
7656
|
amount: string;
|
|
7636
7657
|
tokenAddress: string;
|
|
@@ -7640,6 +7661,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7640
7661
|
iconUrl?: string | undefined;
|
|
7641
7662
|
};
|
|
7642
7663
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
7664
|
+
investmentId?: string | undefined;
|
|
7665
|
+
useFullBalance?: boolean | undefined;
|
|
7666
|
+
subsequentTransaction?: boolean | undefined;
|
|
7643
7667
|
}>>;
|
|
7644
7668
|
isExecuteFromOutside: z.ZodOptional<z.ZodBoolean>;
|
|
7645
7669
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7656,6 +7680,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7656
7680
|
iconUrl?: string | undefined;
|
|
7657
7681
|
};
|
|
7658
7682
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
7683
|
+
investmentId?: string | undefined;
|
|
7684
|
+
useFullBalance?: boolean | undefined;
|
|
7685
|
+
subsequentTransaction?: boolean | undefined;
|
|
7659
7686
|
} | undefined;
|
|
7660
7687
|
isExecuteFromOutside?: boolean | undefined;
|
|
7661
7688
|
}, {
|
|
@@ -7672,6 +7699,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7672
7699
|
iconUrl?: string | undefined;
|
|
7673
7700
|
};
|
|
7674
7701
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
7702
|
+
investmentId?: string | undefined;
|
|
7703
|
+
useFullBalance?: boolean | undefined;
|
|
7704
|
+
subsequentTransaction?: boolean | undefined;
|
|
7675
7705
|
} | undefined;
|
|
7676
7706
|
isExecuteFromOutside?: boolean | undefined;
|
|
7677
7707
|
}>>;
|
|
@@ -7867,6 +7897,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7867
7897
|
iconUrl?: string | undefined;
|
|
7868
7898
|
};
|
|
7869
7899
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
7900
|
+
investmentId?: string | undefined;
|
|
7901
|
+
useFullBalance?: boolean | undefined;
|
|
7902
|
+
subsequentTransaction?: boolean | undefined;
|
|
7870
7903
|
} | undefined;
|
|
7871
7904
|
isExecuteFromOutside?: boolean | undefined;
|
|
7872
7905
|
} | undefined;
|
|
@@ -8062,6 +8095,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
8062
8095
|
iconUrl?: string | undefined;
|
|
8063
8096
|
};
|
|
8064
8097
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
8098
|
+
investmentId?: string | undefined;
|
|
8099
|
+
useFullBalance?: boolean | undefined;
|
|
8100
|
+
subsequentTransaction?: boolean | undefined;
|
|
8065
8101
|
} | undefined;
|
|
8066
8102
|
isExecuteFromOutside?: boolean | undefined;
|
|
8067
8103
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),z=require("../utils/starknet/starknet.cjs"),t=require("../chains/starknet/address.cjs"),a=e.z.object({id:e.z.string(),dappId:e.z.string(),productId:e.z.string(),productName:e.z.string(),chain:e.z.string(),name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url().optional(),riskFactor:e.z.enum(["low"]),metrics:e.z.object({baseApy:e.z.string(),totalApy:e.z.string(),tvl:e.z.string().optional()}),incentives:e.z.array(e.z.object({name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url(),metric:e.z.object({apy:e.z.string()})})),buyEnabled:e.z.boolean(),sellEnabled:e.z.boolean()}),s=a.extend({category:e.z.literal("staking"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()})}),o=a.extend({category:e.z.literal("lending"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({totalFee:e.z.string()}),withdrawalFees:e.z.object({totalFee:e.z.string()})})}),n=e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().url().optional(),address:e.z.string().optional()}),r=a.extend({category:e.z.literal("strkDelegatedStaking"),stakerInfo:n,investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional()}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional(),amountsRequirement:e.z.enum(["fullBalance"]).optional(),timelockDuration:e.z.number().optional()}),fees:e.z.object({depositFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()}),buyEnabled:e.z.boolean().optional(),sellEnabled:e.z.boolean().optional(),claimEnabled:e.z.boolean().optional()}),l=e.z.discriminatedUnion("category",[s,o,r]),d=e.z.object({investments:e.z.array(l)}),g=e.z.object({calls:e.z.array(z.callSchema)}),m=e.z.object({investmentId:e.z.string(),investmentType:e.z.enum(["staking","lending","strkDelegatedStaking"]).optional(),accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,stakerInfo:n,amount:e.z.string()}),i=e.z.enum(["deposit","stake","initiateWithdraw","withdraw","claim"]),c=e.z.object({useFullBalance:e.z.boolean().optional(),subsequentTransaction:e.z.boolean().optional()}),b=e.z.object({investmentId:e.z.string().optional(),stakingAction:i,stakerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string(),...c.shape});exports.buildSellOptsSchema=c;exports.investmentMetaSchema=b;exports.investmentSchema=l;exports.investmentsResponseSchema=d;exports.lendingInvestmentSchema=o;exports.liquidStakingInvestmentSchema=s;exports.stakerInfoSchema=n;exports.stakingActionSchema=i;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=g;exports.strkStakingCalldataSchema=m;
|
|
@@ -2712,7 +2712,21 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
|
|
|
2712
2712
|
}>;
|
|
2713
2713
|
export type StrkStakingCalldata = z.infer<typeof strkStakingCalldataSchema>;
|
|
2714
2714
|
export declare const stakingActionSchema: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
|
|
2715
|
+
export declare const buildSellOptsSchema: z.ZodObject<{
|
|
2716
|
+
useFullBalance: z.ZodOptional<z.ZodBoolean>;
|
|
2717
|
+
subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
|
|
2718
|
+
}, "strip", z.ZodTypeAny, {
|
|
2719
|
+
useFullBalance?: boolean | undefined;
|
|
2720
|
+
subsequentTransaction?: boolean | undefined;
|
|
2721
|
+
}, {
|
|
2722
|
+
useFullBalance?: boolean | undefined;
|
|
2723
|
+
subsequentTransaction?: boolean | undefined;
|
|
2724
|
+
}>;
|
|
2725
|
+
export type BuildSellOpts = z.infer<typeof buildSellOptsSchema>;
|
|
2715
2726
|
export declare const investmentMetaSchema: z.ZodObject<{
|
|
2727
|
+
useFullBalance: z.ZodOptional<z.ZodBoolean>;
|
|
2728
|
+
subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
|
|
2729
|
+
investmentId: z.ZodOptional<z.ZodString>;
|
|
2716
2730
|
stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
|
|
2717
2731
|
stakerInfo: z.ZodObject<{
|
|
2718
2732
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2738,6 +2752,9 @@ export declare const investmentMetaSchema: z.ZodObject<{
|
|
|
2738
2752
|
iconUrl?: string | undefined;
|
|
2739
2753
|
};
|
|
2740
2754
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
2755
|
+
investmentId?: string | undefined;
|
|
2756
|
+
useFullBalance?: boolean | undefined;
|
|
2757
|
+
subsequentTransaction?: boolean | undefined;
|
|
2741
2758
|
}, {
|
|
2742
2759
|
amount: string;
|
|
2743
2760
|
tokenAddress: string;
|
|
@@ -2747,5 +2764,8 @@ export declare const investmentMetaSchema: z.ZodObject<{
|
|
|
2747
2764
|
iconUrl?: string | undefined;
|
|
2748
2765
|
};
|
|
2749
2766
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
2767
|
+
investmentId?: string | undefined;
|
|
2768
|
+
useFullBalance?: boolean | undefined;
|
|
2769
|
+
subsequentTransaction?: boolean | undefined;
|
|
2750
2770
|
}>;
|
|
2751
2771
|
export type InvestmentMeta = z.infer<typeof investmentMetaSchema>;
|
|
@@ -28,7 +28,7 @@ const n = e.object({
|
|
|
28
28
|
})),
|
|
29
29
|
buyEnabled: e.boolean(),
|
|
30
30
|
sellEnabled: e.boolean()
|
|
31
|
-
}),
|
|
31
|
+
}), l = n.extend({
|
|
32
32
|
category: e.literal("staking"),
|
|
33
33
|
investableAssets: e.object({
|
|
34
34
|
tokenAddresses: e.array(t),
|
|
@@ -54,7 +54,7 @@ const n = e.object({
|
|
|
54
54
|
totalFee: e.string()
|
|
55
55
|
}).optional()
|
|
56
56
|
})
|
|
57
|
-
}),
|
|
57
|
+
}), r = n.extend({
|
|
58
58
|
category: e.literal("lending"),
|
|
59
59
|
investableAssets: e.object({
|
|
60
60
|
tokenAddresses: e.array(t),
|
|
@@ -76,7 +76,7 @@ const n = e.object({
|
|
|
76
76
|
name: e.string().optional(),
|
|
77
77
|
iconUrl: e.string().url().optional(),
|
|
78
78
|
address: e.string().optional()
|
|
79
|
-
}),
|
|
79
|
+
}), i = n.extend({
|
|
80
80
|
category: e.literal("strkDelegatedStaking"),
|
|
81
81
|
stakerInfo: o,
|
|
82
82
|
investableAssets: e.object({
|
|
@@ -115,14 +115,14 @@ const n = e.object({
|
|
|
115
115
|
sellEnabled: e.boolean().optional(),
|
|
116
116
|
claimEnabled: e.boolean().optional()
|
|
117
117
|
}), c = e.discriminatedUnion("category", [
|
|
118
|
+
l,
|
|
118
119
|
r,
|
|
119
|
-
i
|
|
120
|
-
|
|
121
|
-
]), p = e.object({
|
|
120
|
+
i
|
|
121
|
+
]), u = e.object({
|
|
122
122
|
investments: e.array(c)
|
|
123
|
-
}), u = e.object({
|
|
124
|
-
calls: e.array(a)
|
|
125
123
|
}), k = e.object({
|
|
124
|
+
calls: e.array(a)
|
|
125
|
+
}), F = e.object({
|
|
126
126
|
investmentId: e.string(),
|
|
127
127
|
investmentType: e.enum(["staking", "lending", "strkDelegatedStaking"]).optional(),
|
|
128
128
|
accountAddress: t,
|
|
@@ -135,21 +135,27 @@ const n = e.object({
|
|
|
135
135
|
"initiateWithdraw",
|
|
136
136
|
"withdraw",
|
|
137
137
|
"claim"
|
|
138
|
-
]),
|
|
138
|
+
]), g = e.object({
|
|
139
|
+
useFullBalance: e.boolean().optional(),
|
|
140
|
+
subsequentTransaction: e.boolean().optional()
|
|
141
|
+
}), j = e.object({
|
|
142
|
+
investmentId: e.string().optional(),
|
|
139
143
|
stakingAction: d,
|
|
140
144
|
stakerInfo: o,
|
|
141
145
|
tokenAddress: s,
|
|
142
|
-
amount: e.string()
|
|
146
|
+
amount: e.string(),
|
|
147
|
+
...g.shape
|
|
143
148
|
});
|
|
144
149
|
export {
|
|
145
|
-
|
|
150
|
+
g as buildSellOptsSchema,
|
|
151
|
+
j as investmentMetaSchema,
|
|
146
152
|
c as investmentSchema,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
u as investmentsResponseSchema,
|
|
154
|
+
r as lendingInvestmentSchema,
|
|
155
|
+
l as liquidStakingInvestmentSchema,
|
|
150
156
|
o as stakerInfoSchema,
|
|
151
157
|
d as stakingActionSchema,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
i as strkDelegatedStakingInvestmentSchema,
|
|
159
|
+
k as strkStakingCalldataResponseSchema,
|
|
160
|
+
F as strkStakingCalldataSchema
|
|
155
161
|
};
|