@argent/x-shared 1.38.0 → 1.39.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.
Files changed (27) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +295 -282
  3. package/dist/src/features/simulation/activity/schema.cjs +1 -1
  4. package/dist/src/features/simulation/activity/schema.d.ts +1660 -52
  5. package/dist/src/features/simulation/activity/schema.js +68 -49
  6. package/dist/src/features/swap/models/quote.model.d.ts +4 -4
  7. package/dist/src/features/swap/models/trade.model.d.ts +2 -2
  8. package/dist/src/index.d.ts +1 -0
  9. package/dist/src/staking/index.d.ts +1 -0
  10. package/dist/src/staking/schema.cjs +1 -0
  11. package/dist/src/staking/schema.d.ts +3027 -0
  12. package/dist/src/staking/schema.js +137 -0
  13. package/dist/src/tokens/service/implementation.d.ts +25 -6
  14. package/dist/src/tokens/service/types/backend.model.cjs +1 -1
  15. package/dist/src/tokens/service/types/backend.model.d.ts +983 -238
  16. package/dist/src/tokens/service/types/backend.model.js +29 -22
  17. package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
  18. package/dist/src/tokens/service/types/defiPosition.model.d.ts +1390 -430
  19. package/dist/src/tokens/service/types/defiPosition.model.js +29 -22
  20. package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
  21. package/dist/src/tokens/service/types/defiPositionType.model.d.ts +1 -1
  22. package/dist/src/tokens/service/types/defiPositionType.model.js +3 -2
  23. package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
  24. package/dist/src/tokens/service/types/webToken.model.d.ts +8 -8
  25. package/dist/src/transactions/estimate/model.cjs +1 -1
  26. package/dist/src/transactions/estimate/model.js +5 -5
  27. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,102 +1,103 @@
1
1
  import * as e from "./src/bigdecimal/index.js";
2
- import { BaseError as o } from "./src/errors/baseErrors.js";
2
+ import { BaseError as t } from "./src/errors/baseErrors.js";
3
3
  import { AddSmartAccountResponseSchema as m, AddSmartAcountRequestSchema as n, BackendAccountSchema as c } from "./src/account/account.model.js";
4
- import { isAccountV4 as s, isAccountV5 as S, isAccountV6 as d } from "./src/account/accountv4.js";
4
+ import { isAccountV4 as i, isAccountV5 as S, isAccountV6 as d } from "./src/account/accountv4.js";
5
5
  import { preferencesEndpointPayload as l, preferencesSchema as h } from "./src/account/preferences.model.js";
6
6
  import { argentBackendNetworkIdSchema as u, argentNetworkIdSchema as A, isArgentBackendNetworkId as x, isArgentNetworkId as T } from "./src/backend/schema.js";
7
7
  import { CacheService as C } from "./src/cache/CacheService.js";
8
- import { addressOrEmptyUndefinedSchema as y, addressSchema as E, addressSchemaArgentBackend as D, addressSchemaBase as R, addressSchemaLooseLength as N, addressSchemaStrictLength as F, formatFullAddress as P, formatTruncatedAddress as v, formatTruncatedSignerKey as b, formatTruncatedString as B, includesAddress as I, isAddress as _, isEqualAddress as w, isValidAddress as H, isZeroAddress as L, normalizeAddress as O, validChecksumAddressSchema as V, validateAddressRangeSchema as M } from "./src/chains/starknet/address.js";
8
+ import { addressOrEmptyUndefinedSchema as y, addressSchema as E, addressSchemaArgentBackend as D, addressSchemaBase as R, addressSchemaLooseLength as v, addressSchemaStrictLength as N, formatFullAddress as F, formatTruncatedAddress as P, formatTruncatedSignerKey as b, formatTruncatedString as I, includesAddress as B, isAddress as _, isEqualAddress as w, isValidAddress as H, isZeroAddress as L, normalizeAddress as O, validChecksumAddressSchema as V, validateAddressRangeSchema as M } from "./src/chains/starknet/address.js";
9
9
  import { addressOrDomainInputSchema as U, addressOrDomainSchema as q, isEqualStarknetDomainName as G, isStarknetDomainName as z, normalizeAddressOrDomain as K, starknetDomainNameSchema as j } from "./src/chains/starknet/addressDomain.js";
10
10
  import { addressInputCharactersAndLengthSchema as Y, addressInputSchema as Z } from "./src/chains/starknet/addressInput.js";
11
11
  import { argentNameSchema as J, isArgentName as $, isEqualArgentName as ee, normalizeArgentName as re } from "./src/chains/starknet/argentName.js";
12
- import { cairoVersionSchema as oe } from "./src/chains/starknet/cairoVersionSchema.js";
13
- import { ETH_TOKEN_ADDRESS as me, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as ne, STRK_TOKEN_ADDRESS as ce, TXV1_ACCOUNT_CLASS_HASH as ie, TXV1_MULTISIG_CLASS_HASH as se, TXV3_ACCOUNT_CLASS_HASH as Se, TXV3_MULTISIG_CLASS_HASH as de } from "./src/chains/starknet/constants.js";
12
+ import { cairoVersionSchema as te } from "./src/chains/starknet/cairoVersionSchema.js";
13
+ import { ETH_TOKEN_ADDRESS as me, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as ne, STRK_TOKEN_ADDRESS as ce, TXV1_ACCOUNT_CLASS_HASH as se, TXV1_MULTISIG_CLASS_HASH as ie, TXV3_ACCOUNT_CLASS_HASH as Se, TXV3_MULTISIG_CLASS_HASH as de } from "./src/chains/starknet/constants.js";
14
14
  import { apiWalletResponseSchema as le, getAddressFromArgentName as he } from "./src/chains/starknet/getAddressFromArgentName.js";
15
15
  import { getAddressFromStarkName as ue, getCallFromStarkName as Ae, getStarknetIdContractAddressFromNetworkId as xe, starkNameToCallDataDomain as Te } from "./src/chains/starknet/getAddressFromStarkName.js";
16
16
  import { getChainIdFromNetworkId as Ce } from "./src/chains/starknet/network.js";
17
17
  import { StarknetAddressService as ye } from "./src/chains/starknet/services/address/StarknetAddressService.js";
18
- import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as De, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as Re, C0_PROXY_CONTRACT_CLASS_HASHES as Ne } from "./src/chains/starknet/services/deploymentData/constants.js";
19
- import { constructorCallDataSchemaC0 as Pe, constructorCallDataSchemaC1V1 as ve, implementationSchema as be } from "./src/chains/starknet/services/deploymentData/deploymentData.schema.js";
20
- import { buildConstructorCalldata as Ie, findImplementationForAccount as _e, getAccountContractAddress as we, getAccountDeploymentPayload as He, isEqualImplementation as Le } from "./src/chains/starknet/services/deploymentData/findImplementationForAccount.js";
18
+ import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as De, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as Re, C0_PROXY_CONTRACT_CLASS_HASHES as ve } from "./src/chains/starknet/services/deploymentData/constants.js";
19
+ import { constructorCallDataSchemaC0 as Fe, constructorCallDataSchemaC1V1 as Pe, implementationSchema as be } from "./src/chains/starknet/services/deploymentData/deploymentData.schema.js";
20
+ import { buildConstructorCalldata as Be, findImplementationForAccount as _e, getAccountContractAddress as we, getAccountDeploymentPayload as He, isEqualImplementation as Le } from "./src/chains/starknet/services/deploymentData/findImplementationForAccount.js";
21
21
  import { getArgentAccountClassHashes as Ve, getArgentAccountClassHashesWithTxV3Support as Me, getArgentAccountWithMultiSignerClassHashes as We, getLastCairo0ArgentAccountClassHash as Ue, getLatestArgentAccountClassHash as qe, getLatestArgentMultisigClassHash as Ge, getLatestLedgerAccountClassHash as ze, getLedgerAccountClassHashes as Ke } from "./src/chains/starknet/services/deploymentData/getAccountClassHash.js";
22
22
  import { isEqualStarknetId as Xe, isStarknetId as Ye, normalizeStarknetId as Ze, starknetIdSchema as Qe } from "./src/chains/starknet/starknetId.js";
23
23
  import { DateService as $e } from "./src/http/DateService.js";
24
24
  import { HttpError as rr } from "./src/http/HttpError.js";
25
- import { HTTPService as or } from "./src/http/HttpService.js";
25
+ import { HTTPService as tr } from "./src/http/HttpService.js";
26
26
  import { HTTP_ERROR_MESSAGE as mr } from "./src/http/IHttpService.js";
27
27
  import { SWRService as cr } from "./src/http/SWRService.js";
28
- import { fetchData as sr, fetcherError as Sr, postData as dr } from "./src/http/fetcher.js";
28
+ import { fetchData as ir, fetcherError as Sr, postData as dr } from "./src/http/fetcher.js";
29
29
  import { getBackendTimeNowSeconds as lr, getBackendTimeSeconds as hr } from "./src/http/time.js";
30
30
  import { KnownDappsBackendService as ur } from "./src/knownDapps/KnownDappsBackendService.js";
31
31
  import { dappContractSchema as xr, dappLinkSchema as Tr, knownDappSchema as gr, knownDappsSchema as Cr } from "./src/knownDapps/schema.js";
32
32
  import { getDapplandLinkForDapp as yr, getDapplandUrlForDapp as Er } from "./src/knownDapps/utils/getDapplandUrl.js";
33
33
  import { ResolveNameService as Rr } from "./src/nameResolution/ResolveNameService.js";
34
- import { nameProviderResolutionSchema as Fr, nameResolutionAddressSchema as Pr, nameResolutionAddressesSchema as vr, nameResolutionStarknetIdSchema as br, nameResolutionStarknetIdsSchema as Br, providersNamesSchema as Ir } from "./src/nameResolution/schema.js";
34
+ import { nameProviderResolutionSchema as Nr, nameResolutionAddressSchema as Fr, nameResolutionAddressesSchema as Pr, nameResolutionStarknetIdSchema as br, nameResolutionStarknetIdsSchema as Ir, providersNamesSchema as Br } from "./src/nameResolution/schema.js";
35
35
  import { BackendNftService as wr } from "./src/nfts/BackendNftService.js";
36
36
  import { equalNft as Lr, getNftPicture as Or } from "./src/nfts/utils.js";
37
37
  import { OnchainRecoveryService as Mr } from "./src/onchainRecovery/OnchainRecoveryService.js";
38
38
  import { RecoveryStatusEnum as Ur, StartOnchainRecoveryErrorStatusEnum as qr, activeOnchainRecoverySchema as Gr, onchainRecoverySchema as zr, recoveryBaseSchema as Kr, recoveryBodySchema as jr, recoveryStatusSchema as Xr, startOnchainRecoveryErrorSchema as Yr, startOnchainRecoveryErrorStatusSchema as Zr, startOnchainRecoverySchema as Qr } from "./src/onchainRecovery/schema.js";
39
39
  import { isBraveBrowser as $r } from "./src/platform/isBraveBrowser.js";
40
- import { getUAParserResult as ra, isBrowser as aa, isChromeBrowser as oa, isEdgeBrowser as ta, isFirefoxBrowser as ma, isSafariBrowser as na } from "./src/platform/isBrowser.js";
41
- import { seedphraseSchema as ia } from "./src/signer/seedphrase.js";
40
+ import { getUAParserResult as ra, isBrowser as aa, isChromeBrowser as ta, isEdgeBrowser as oa, isFirefoxBrowser as ma, isSafariBrowser as na } from "./src/platform/isBrowser.js";
41
+ import { seedphraseSchema as sa } from "./src/signer/seedphrase.js";
42
42
  import { MultiSigner as Sa, getSignerForMultiSigner as da } from "./src/signer/multisigner.js";
43
- import { getTokenBalance as la, getTokens as ha, getTokensBalances as fa, useToken as ua } from "./src/tokens/balances.js";
44
- import { DEFAULT_TOKEN_DECIMALS as xa } from "./src/tokens/constants.js";
45
- import { convertTokenAmountToCurrencyValue as ga } from "./src/tokens/convertTokenAmountToCurrencyValue.js";
46
- import { convertTokenUnitAmountWithDecimals as ka } from "./src/tokens/convertTokenUnitAmountWithDecimals.js";
47
- import { ensureDecimals as Ea } from "./src/tokens/ensureDecimals.js";
48
- import { isUnlimitedAmount as Ra } from "./src/tokens/isUnlimitedAmount.js";
49
- import { prettifyCurrencyValue as Fa } from "./src/tokens/prettifyCurrencyValue.js";
50
- import { PRETTY_UNLIMITED as va, prettifyTokenAmount as ba } from "./src/tokens/prettifyTokenAmount.js";
51
- import { getCurrencySymbol as Ia } from "./src/tokens/getCurrencySymbol.js";
52
- import { TokenServiceWeb as wa } from "./src/tokens/service/implementation.js";
53
- import { TOKEN_ERROR_MESSAGES as La, TokenError as Oa } from "./src/tokens/service/tokenError.js";
54
- import { apiAccountTokenBalancesSchema as Ma, apiAirdropSchema as Wa, apiCollateralizedDebtPositionSchema as Ua, apiCollateralizedDebtPositionsSchema as qa, apiConcentratedLiquidityPositionSchema as Ga, apiConcentratedLiquidityPositionsSchema as za, apiDefiDecompositionProduct as Ka, apiDefiDecompositionProducts as ja, apiDefiDecompositionSchema as Xa, apiDefiDecompositionToken as Ya, apiDefiPositionsSchema as Za, apiPriceDataResponseSchema as Qa, apiPriceDetailsSchema as Ja, apiStakingPositionSchema as $a, apiStakingPositionsSchema as eo, apiTokenInfoResponseSchema as ro, apiTokenInfoSchema as ao, apiTokensInfoResponseSchema as oo, apiUnclaimedRewardsSchema as to } from "./src/tokens/service/types/backend.model.js";
55
- import { collateralizedDebtGroupSchema as no, collateralizedDebtPositionSchema as co, collateralizedDebtPositionsSchema as io, concentratedLiquidityPositionSchema as so, concentratedLiquidityPositionsSchema as So, defiDappsProductsSchema as po, defiPositionSchema as lo, defiProductSchema as ho, defiProductsSchema as fo, productGroupsSchema as uo } from "./src/tokens/service/types/defiPosition.model.js";
56
- import { defiPositionTypeSchema as xo } from "./src/tokens/service/types/defiPositionType.model.js";
57
- import { airdropSchema as go, unclaimedRewardsSchema as Co } from "./src/tokens/service/types/unclaimedRewards.model.js";
58
- import { webBaseTokenSchema as yo, webBaseTokenWithBalanceSchema as Eo, webTokenInfoDetailsSchema as Do, webTokenPriceDetailsSchema as Ro, webTokenSchema as No, webTokenWithBalanceAndPriceSchema as Fo, webTokenWithBalanceSchema as Po, webTokenWithPriceSchema as vo, webTokensWithBalanceAndPriceSchema as bo } from "./src/tokens/service/types/webToken.model.js";
59
- import { inputAmountSchema as Io, isValidInputAmount as _o, parseAmount as wo } from "./src/transactions/amount.js";
60
- import { erc20TransferTransaction as Lo, erc721SafeTransferFromTransaction as Oo, erc721TransferFromTransaction as Vo } from "./src/transactions/buildTransactions.js";
61
- import { getMessageFromTrpcError as Wo, trpcErrorSchema as Uo } from "./src/transactions/errors.js";
62
- import { FEE_OVERHEAD as Go, argentMaxFee as zo, modifySnjsFeeOverhead as Ko } from "./src/transactions/estimate/argentMaxFee.js";
63
- import { ESTIMATE_ERROR_MESSAGES as Xo, EstimateError as Yo } from "./src/transactions/estimate/error.js";
64
- import { transactionReviewTransactionsSchema as Qo } from "./src/transactions/estimate/model.js";
65
- import { buildDummyTx as $o, calculateCubeRootAdjustment as et, calculateNonLinearAdjustment as rt, calculateSqrtAdjustment as at, castFeeEstimation as ot, estimatedFeeToMaxFeeTotal as tt, estimatedFeeToMaxResourceBounds as mt, estimatedFeeToTotal as nt, estimatedFeesToMaxFeeTotal as ct, estimatedFeesToTotal as it, getEstimatedFeeFromBulkSimulation as st, getEstimatedFeeFromSimulationAndRespectWatermarkFee as St, getPayloadFromTransaction as dt, getWatermarkedMaxFeeTotal as pt, isFRI as lt, isWEI as ht, multiplyBigIntByFloat as ft, toMax as ut, tokensRequireTxV3Support as At, unitToFeeTokenAddress as xt } from "./src/transactions/estimate/utils.js";
66
- import { EventsBySelector as gt, findTransfersAndApprovals as Ct } from "./src/transactions/findTransfersAndApprovals.js";
67
- import { getPrettyRpcError as yt } from "./src/transactions/getPrettyRcpError.js";
68
- import { getSimulationTxVersionFromFeeToken as Dt, getTxVersionFromFeeToken as Rt, getTxVersionFromFeeTokenForDeclareContract as Nt } from "./src/transactions/getTransactionVersion.js";
69
- import { TransactionReviewServiceWeb as Pt } from "./src/transactions/service/implementation.js";
70
- import { transactionReviewWarningSchema as bt } from "./src/transactions/service/types.js";
71
- import { apiTransactionReviewActivityType as It } from "./src/transactions/transactionReviewTypes.js";
72
- import { denyTxV3 as wt, txVersionSchema as Ht } from "./src/transactions/transactionVersion.js";
73
- import { classHashSupportsTxV3 as Ot, feeTokenNeedsTxV3Support as Vt } from "./src/transactions/txv3.js";
74
- import { formatAddress as Wt } from "./src/utils/address.js";
75
- import { ensureArray as qt } from "./src/utils/arrays.js";
76
- import { generateAvatarImage as zt, getColor as Kt, getNetworkAccountImageUrl as jt, stripAddressZeroPadding as Xt } from "./src/utils/avatarImage.js";
77
- import { decodeBase58 as Zt, decodeBase58Array as Qt, encodeBase58 as Jt, encodeBase58Array as $t } from "./src/utils/base58.js";
78
- import { bigNumberSchema as rm } from "./src/utils/bigNumber.js";
79
- import { daysBetween as om } from "./src/utils/daysBetween.js";
80
- import { isFeatureEnabled as mm } from "./src/utils/env.js";
81
- import { hexSchema as cm, hexSchemaBase as im } from "./src/utils/hex.js";
82
- import { id as Sm } from "./src/utils/id.js";
83
- import { getInitials as pm } from "./src/utils/initials.js";
84
- import { isContractDeployed as hm } from "./src/utils/isContractDeployed.js";
85
- import { nonNullable as um } from "./src/utils/nonNullable.js";
86
- import { isAllowedAddressHexInputValue as xm } from "./src/utils/number/isAllowedAddressHexInputValue.js";
87
- import { isAllowedNumericInputValue as gm } from "./src/utils/number/isAllowedNumericInputValue.js";
88
- import { isNumeric as km } from "./src/utils/number/isNumeric.js";
89
- import { prettifyCurrencyNumber as Em, prettifyNumber as Dm, prettifyNumberConfig as Rm, prettifyTokenNumber as Nm } from "./src/utils/number/prettifyNumber.js";
90
- import { getUint256CalldataFromBN as Pm, parseAmountValue as vm } from "./src/utils/parseAmount.js";
91
- import { pluralise as Bm } from "./src/utils/pluralise.js";
92
- import { readFileAsString as _m } from "./src/utils/readFileAsString.js";
93
- import { booleanToStringSchema as Hm, createSchemaWithWarnings as Lm, safeParseAndWarn as Om, stringToBooleanSchema as Vm } from "./src/utils/schemas.js";
94
- import { addOwnersCalldataSchema as Wm, addPluginCalldataSchema as Um, bigNumberishSchema as qm, callDetailsSchema as Gm, callSchema as zm, calldataSchema as Km, changeGuardianCalldataSchema as jm, changeThresholdCalldataSchema as Xm, escapeGuardianCalldataSchema as Ym, executeOnPluginCalldataSchema as Zm, feltSchema as Qm, looseCalldataSchema as Jm, multiTypeSchema as $m, rawArgsArraySchema as en, rawArgsObjectSchema as rn, rawArgsSchema as an, removeOwnersCalldataSchema as on, removePluginCalldataSchema as tn, replaceSignerCalldataSchema as mn, transferCalldataSchema as nn, uint256Schema as cn } from "./src/utils/starknet/starknet.js";
95
- import { abiEntrySchema as Sn, abiSchema as dn, builtinsSchema as pn, byteCodeSchema as ln, cairo1EventSchema as hn, cairoAssemblySchema as fn, compiledContractClassSchema as un, compiledSierraCasmSchema as An, compiledSierraSchema as xn, compressedProgramSchema as Tn, contractEntryPointFieldsSchema as gn, entryPointsByTypeSchema as Cn, eventAbiSchema as kn, eventEntrySchema as yn, functionAbiSchema as En, functionAbiTypeSchema as Dn, legacyContractClassSchema as Rn, legacyEventSchema as Nn, programSchema as Fn, pythonicHintsSchema as Pn, sierraContractEntryPointFieldsSchema as vn, sierraEntryPointsByTypeSchema as bn, sierraProgramDebugInfoSchema as Bn, structAbiSchema as In } from "./src/utils/starknet/starknetSchemas.js";
96
- import { entryPointToHumanReadable as wn } from "./src/utils/transactions.js";
97
- import { urlWithQuery as Ln } from "./src/utils/url/urlWithQuery.js";
98
- import { voidify as Vn } from "./src/utils/voidify.js";
99
- import { bipsToPercent as Wn } from "./src/utils/bips.js";
43
+ import { buildBuyCalldataResponseSchema as la, buildBuyCalldataSchema as ha, investmentMetaSchema as fa, investmentSchema as ua, investmentsResponseSchema as Aa, lendingInvestmentSchema as xa, stakingInvestmentSchema as Ta, strkDelegatedStakingInvestmentSchema as ga } from "./src/staking/schema.js";
44
+ import { getTokenBalance as ka, getTokens as ya, getTokensBalances as Ea, useToken as Da } from "./src/tokens/balances.js";
45
+ import { DEFAULT_TOKEN_DECIMALS as va } from "./src/tokens/constants.js";
46
+ import { convertTokenAmountToCurrencyValue as Fa } from "./src/tokens/convertTokenAmountToCurrencyValue.js";
47
+ import { convertTokenUnitAmountWithDecimals as ba } from "./src/tokens/convertTokenUnitAmountWithDecimals.js";
48
+ import { ensureDecimals as Ba } from "./src/tokens/ensureDecimals.js";
49
+ import { isUnlimitedAmount as wa } from "./src/tokens/isUnlimitedAmount.js";
50
+ import { prettifyCurrencyValue as La } from "./src/tokens/prettifyCurrencyValue.js";
51
+ import { PRETTY_UNLIMITED as Va, prettifyTokenAmount as Ma } from "./src/tokens/prettifyTokenAmount.js";
52
+ import { getCurrencySymbol as Ua } from "./src/tokens/getCurrencySymbol.js";
53
+ import { TokenServiceWeb as Ga } from "./src/tokens/service/implementation.js";
54
+ import { TOKEN_ERROR_MESSAGES as Ka, TokenError as ja } from "./src/tokens/service/tokenError.js";
55
+ import { apiAccountTokenBalancesSchema as Ya, apiAirdropSchema as Za, apiCollateralizedDebtPositionSchema as Qa, apiCollateralizedDebtPositionsSchema as Ja, apiConcentratedLiquidityPositionSchema as $a, apiConcentratedLiquidityPositionsSchema as et, apiDefiDecompositionProduct as rt, apiDefiDecompositionProducts as at, apiDefiDecompositionSchema as tt, apiDefiDecompositionToken as ot, apiDefiPositionsSchema as mt, apiDelegatedTokensArraySchema as nt, apiDelegatedTokensSchema as ct, apiPriceDataResponseSchema as st, apiPriceDetailsSchema as it, apiStakingPositionSchema as St, apiStakingPositionsSchema as dt, apiTokenInfoResponseSchema as pt, apiTokenInfoSchema as lt, apiTokensInfoResponseSchema as ht, apiUnclaimedRewardsSchema as ft } from "./src/tokens/service/types/backend.model.js";
56
+ import { collateralizedDebtGroupSchema as At, collateralizedDebtPositionSchema as xt, collateralizedDebtPositionsSchema as Tt, concentratedLiquidityPositionSchema as gt, concentratedLiquidityPositionsSchema as Ct, defiDappsProductsSchema as kt, defiPositionSchema as yt, defiProductSchema as Et, defiProductsSchema as Dt, delegatedTokensArraySchema as Rt, delegatedTokensSchema as vt, productGroupsSchema as Nt } from "./src/tokens/service/types/defiPosition.model.js";
57
+ import { defiPositionTypeSchema as Pt } from "./src/tokens/service/types/defiPositionType.model.js";
58
+ import { airdropSchema as It, unclaimedRewardsSchema as Bt } from "./src/tokens/service/types/unclaimedRewards.model.js";
59
+ import { webBaseTokenSchema as wt, webBaseTokenWithBalanceSchema as Ht, webTokenInfoDetailsSchema as Lt, webTokenPriceDetailsSchema as Ot, webTokenSchema as Vt, webTokenWithBalanceAndPriceSchema as Mt, webTokenWithBalanceSchema as Wt, webTokenWithPriceSchema as Ut, webTokensWithBalanceAndPriceSchema as qt } from "./src/tokens/service/types/webToken.model.js";
60
+ import { inputAmountSchema as zt, isValidInputAmount as Kt, parseAmount as jt } from "./src/transactions/amount.js";
61
+ import { erc20TransferTransaction as Yt, erc721SafeTransferFromTransaction as Zt, erc721TransferFromTransaction as Qt } from "./src/transactions/buildTransactions.js";
62
+ import { getMessageFromTrpcError as $t, trpcErrorSchema as eo } from "./src/transactions/errors.js";
63
+ import { FEE_OVERHEAD as ao, argentMaxFee as to, modifySnjsFeeOverhead as oo } from "./src/transactions/estimate/argentMaxFee.js";
64
+ import { ESTIMATE_ERROR_MESSAGES as no, EstimateError as co } from "./src/transactions/estimate/error.js";
65
+ import { transactionReviewTransactionsSchema as io } from "./src/transactions/estimate/model.js";
66
+ import { buildDummyTx as po, calculateCubeRootAdjustment as lo, calculateNonLinearAdjustment as ho, calculateSqrtAdjustment as fo, castFeeEstimation as uo, estimatedFeeToMaxFeeTotal as Ao, estimatedFeeToMaxResourceBounds as xo, estimatedFeeToTotal as To, estimatedFeesToMaxFeeTotal as go, estimatedFeesToTotal as Co, getEstimatedFeeFromBulkSimulation as ko, getEstimatedFeeFromSimulationAndRespectWatermarkFee as yo, getPayloadFromTransaction as Eo, getWatermarkedMaxFeeTotal as Do, isFRI as Ro, isWEI as vo, multiplyBigIntByFloat as No, toMax as Fo, tokensRequireTxV3Support as Po, unitToFeeTokenAddress as bo } from "./src/transactions/estimate/utils.js";
67
+ import { EventsBySelector as Bo, findTransfersAndApprovals as _o } from "./src/transactions/findTransfersAndApprovals.js";
68
+ import { getPrettyRpcError as Ho } from "./src/transactions/getPrettyRcpError.js";
69
+ import { getSimulationTxVersionFromFeeToken as Oo, getTxVersionFromFeeToken as Vo, getTxVersionFromFeeTokenForDeclareContract as Mo } from "./src/transactions/getTransactionVersion.js";
70
+ import { TransactionReviewServiceWeb as Uo } from "./src/transactions/service/implementation.js";
71
+ import { transactionReviewWarningSchema as Go } from "./src/transactions/service/types.js";
72
+ import { apiTransactionReviewActivityType as Ko } from "./src/transactions/transactionReviewTypes.js";
73
+ import { denyTxV3 as Xo, txVersionSchema as Yo } from "./src/transactions/transactionVersion.js";
74
+ import { classHashSupportsTxV3 as Qo, feeTokenNeedsTxV3Support as Jo } from "./src/transactions/txv3.js";
75
+ import { formatAddress as em } from "./src/utils/address.js";
76
+ import { ensureArray as am } from "./src/utils/arrays.js";
77
+ import { generateAvatarImage as om, getColor as mm, getNetworkAccountImageUrl as nm, stripAddressZeroPadding as cm } from "./src/utils/avatarImage.js";
78
+ import { decodeBase58 as im, decodeBase58Array as Sm, encodeBase58 as dm, encodeBase58Array as pm } from "./src/utils/base58.js";
79
+ import { bigNumberSchema as hm } from "./src/utils/bigNumber.js";
80
+ import { daysBetween as um } from "./src/utils/daysBetween.js";
81
+ import { isFeatureEnabled as xm } from "./src/utils/env.js";
82
+ import { hexSchema as gm, hexSchemaBase as Cm } from "./src/utils/hex.js";
83
+ import { id as ym } from "./src/utils/id.js";
84
+ import { getInitials as Dm } from "./src/utils/initials.js";
85
+ import { isContractDeployed as vm } from "./src/utils/isContractDeployed.js";
86
+ import { nonNullable as Fm } from "./src/utils/nonNullable.js";
87
+ import { isAllowedAddressHexInputValue as bm } from "./src/utils/number/isAllowedAddressHexInputValue.js";
88
+ import { isAllowedNumericInputValue as Bm } from "./src/utils/number/isAllowedNumericInputValue.js";
89
+ import { isNumeric as wm } from "./src/utils/number/isNumeric.js";
90
+ import { prettifyCurrencyNumber as Lm, prettifyNumber as Om, prettifyNumberConfig as Vm, prettifyTokenNumber as Mm } from "./src/utils/number/prettifyNumber.js";
91
+ import { getUint256CalldataFromBN as Um, parseAmountValue as qm } from "./src/utils/parseAmount.js";
92
+ import { pluralise as zm } from "./src/utils/pluralise.js";
93
+ import { readFileAsString as jm } from "./src/utils/readFileAsString.js";
94
+ import { booleanToStringSchema as Ym, createSchemaWithWarnings as Zm, safeParseAndWarn as Qm, stringToBooleanSchema as Jm } from "./src/utils/schemas.js";
95
+ import { addOwnersCalldataSchema as en, addPluginCalldataSchema as rn, bigNumberishSchema as an, callDetailsSchema as tn, callSchema as on, calldataSchema as mn, changeGuardianCalldataSchema as nn, changeThresholdCalldataSchema as cn, escapeGuardianCalldataSchema as sn, executeOnPluginCalldataSchema as Sn, feltSchema as dn, looseCalldataSchema as pn, multiTypeSchema as ln, rawArgsArraySchema as hn, rawArgsObjectSchema as fn, rawArgsSchema as un, removeOwnersCalldataSchema as An, removePluginCalldataSchema as xn, replaceSignerCalldataSchema as Tn, transferCalldataSchema as gn, uint256Schema as Cn } from "./src/utils/starknet/starknet.js";
96
+ import { abiEntrySchema as yn, abiSchema as En, builtinsSchema as Dn, byteCodeSchema as Rn, cairo1EventSchema as vn, cairoAssemblySchema as Nn, compiledContractClassSchema as Fn, compiledSierraCasmSchema as Pn, compiledSierraSchema as bn, compressedProgramSchema as In, contractEntryPointFieldsSchema as Bn, entryPointsByTypeSchema as _n, eventAbiSchema as wn, eventEntrySchema as Hn, functionAbiSchema as Ln, functionAbiTypeSchema as On, legacyContractClassSchema as Vn, legacyEventSchema as Mn, programSchema as Wn, pythonicHintsSchema as Un, sierraContractEntryPointFieldsSchema as qn, sierraEntryPointsByTypeSchema as Gn, sierraProgramDebugInfoSchema as zn, structAbiSchema as Kn } from "./src/utils/starknet/starknetSchemas.js";
97
+ import { entryPointToHumanReadable as Xn } from "./src/utils/transactions.js";
98
+ import { urlWithQuery as Zn } from "./src/utils/url/urlWithQuery.js";
99
+ import { voidify as Jn } from "./src/utils/voidify.js";
100
+ import { bipsToPercent as ec } from "./src/utils/bips.js";
100
101
  export {
101
102
  De as ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES,
102
103
  Re as ARGENT_MULTISIG_CONTRACT_CLASS_HASHES,
@@ -104,23 +105,23 @@ export {
104
105
  n as AddSmartAcountRequestSchema,
105
106
  c as BackendAccountSchema,
106
107
  wr as BackendNftService,
107
- o as BaseError,
108
- Ne as C0_PROXY_CONTRACT_CLASS_HASHES,
108
+ t as BaseError,
109
+ ve as C0_PROXY_CONTRACT_CLASS_HASHES,
109
110
  C as CacheService,
110
- xa as DEFAULT_TOKEN_DECIMALS,
111
+ va as DEFAULT_TOKEN_DECIMALS,
111
112
  $e as DateService,
112
- Xo as ESTIMATE_ERROR_MESSAGES,
113
+ no as ESTIMATE_ERROR_MESSAGES,
113
114
  me as ETH_TOKEN_ADDRESS,
114
- Yo as EstimateError,
115
- gt as EventsBySelector,
116
- Go as FEE_OVERHEAD,
117
- or as HTTPService,
115
+ co as EstimateError,
116
+ Bo as EventsBySelector,
117
+ ao as FEE_OVERHEAD,
118
+ tr as HTTPService,
118
119
  mr as HTTP_ERROR_MESSAGE,
119
120
  rr as HttpError,
120
121
  ur as KnownDappsBackendService,
121
122
  Sa as MultiSigner,
122
123
  Mr as OnchainRecoveryService,
123
- va as PRETTY_UNLIMITED,
124
+ Va as PRETTY_UNLIMITED,
124
125
  Ur as RecoveryStatusEnum,
125
126
  Rr as ResolveNameService,
126
127
  ne as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
@@ -128,19 +129,19 @@ export {
128
129
  cr as SWRService,
129
130
  ye as StarknetAddressService,
130
131
  qr as StartOnchainRecoveryErrorStatusEnum,
131
- La as TOKEN_ERROR_MESSAGES,
132
- ie as TXV1_ACCOUNT_CLASS_HASH,
133
- se as TXV1_MULTISIG_CLASS_HASH,
132
+ Ka as TOKEN_ERROR_MESSAGES,
133
+ se as TXV1_ACCOUNT_CLASS_HASH,
134
+ ie as TXV1_MULTISIG_CLASS_HASH,
134
135
  Se as TXV3_ACCOUNT_CLASS_HASH,
135
136
  de as TXV3_MULTISIG_CLASS_HASH,
136
- Oa as TokenError,
137
- wa as TokenServiceWeb,
138
- Pt as TransactionReviewServiceWeb,
139
- Sn as abiEntrySchema,
140
- dn as abiSchema,
137
+ ja as TokenError,
138
+ Ga as TokenServiceWeb,
139
+ Uo as TransactionReviewServiceWeb,
140
+ yn as abiEntrySchema,
141
+ En as abiSchema,
141
142
  Gr as activeOnchainRecoverySchema,
142
- Wm as addOwnersCalldataSchema,
143
- Um as addPluginCalldataSchema,
143
+ en as addOwnersCalldataSchema,
144
+ rn as addPluginCalldataSchema,
144
145
  Y as addressInputCharactersAndLengthSchema,
145
146
  Z as addressInputSchema,
146
147
  U as addressOrDomainInputSchema,
@@ -149,115 +150,121 @@ export {
149
150
  E as addressSchema,
150
151
  D as addressSchemaArgentBackend,
151
152
  R as addressSchemaBase,
152
- N as addressSchemaLooseLength,
153
- F as addressSchemaStrictLength,
154
- go as airdropSchema,
155
- Ma as apiAccountTokenBalancesSchema,
156
- Wa as apiAirdropSchema,
157
- Ua as apiCollateralizedDebtPositionSchema,
158
- qa as apiCollateralizedDebtPositionsSchema,
159
- Ga as apiConcentratedLiquidityPositionSchema,
160
- za as apiConcentratedLiquidityPositionsSchema,
161
- Ka as apiDefiDecompositionProduct,
162
- ja as apiDefiDecompositionProducts,
163
- Xa as apiDefiDecompositionSchema,
164
- Ya as apiDefiDecompositionToken,
165
- Za as apiDefiPositionsSchema,
166
- Qa as apiPriceDataResponseSchema,
167
- Ja as apiPriceDetailsSchema,
168
- $a as apiStakingPositionSchema,
169
- eo as apiStakingPositionsSchema,
170
- ro as apiTokenInfoResponseSchema,
171
- ao as apiTokenInfoSchema,
172
- oo as apiTokensInfoResponseSchema,
173
- It as apiTransactionReviewActivityType,
174
- to as apiUnclaimedRewardsSchema,
153
+ v as addressSchemaLooseLength,
154
+ N as addressSchemaStrictLength,
155
+ It as airdropSchema,
156
+ Ya as apiAccountTokenBalancesSchema,
157
+ Za as apiAirdropSchema,
158
+ Qa as apiCollateralizedDebtPositionSchema,
159
+ Ja as apiCollateralizedDebtPositionsSchema,
160
+ $a as apiConcentratedLiquidityPositionSchema,
161
+ et as apiConcentratedLiquidityPositionsSchema,
162
+ rt as apiDefiDecompositionProduct,
163
+ at as apiDefiDecompositionProducts,
164
+ tt as apiDefiDecompositionSchema,
165
+ ot as apiDefiDecompositionToken,
166
+ mt as apiDefiPositionsSchema,
167
+ nt as apiDelegatedTokensArraySchema,
168
+ ct as apiDelegatedTokensSchema,
169
+ st as apiPriceDataResponseSchema,
170
+ it as apiPriceDetailsSchema,
171
+ St as apiStakingPositionSchema,
172
+ dt as apiStakingPositionsSchema,
173
+ pt as apiTokenInfoResponseSchema,
174
+ lt as apiTokenInfoSchema,
175
+ ht as apiTokensInfoResponseSchema,
176
+ Ko as apiTransactionReviewActivityType,
177
+ ft as apiUnclaimedRewardsSchema,
175
178
  le as apiWalletResponseSchema,
176
179
  u as argentBackendNetworkIdSchema,
177
- zo as argentMaxFee,
180
+ to as argentMaxFee,
178
181
  J as argentNameSchema,
179
182
  A as argentNetworkIdSchema,
180
183
  e as bigDecimal,
181
- rm as bigNumberSchema,
182
- qm as bigNumberishSchema,
183
- Wn as bipsToPercent,
184
- Hm as booleanToStringSchema,
185
- Ie as buildConstructorCalldata,
186
- $o as buildDummyTx,
187
- pn as builtinsSchema,
188
- ln as byteCodeSchema,
189
- hn as cairo1EventSchema,
190
- fn as cairoAssemblySchema,
191
- oe as cairoVersionSchema,
192
- et as calculateCubeRootAdjustment,
193
- rt as calculateNonLinearAdjustment,
194
- at as calculateSqrtAdjustment,
195
- Gm as callDetailsSchema,
196
- zm as callSchema,
197
- Km as calldataSchema,
198
- ot as castFeeEstimation,
199
- jm as changeGuardianCalldataSchema,
200
- Xm as changeThresholdCalldataSchema,
201
- Ot as classHashSupportsTxV3,
202
- no as collateralizedDebtGroupSchema,
203
- co as collateralizedDebtPositionSchema,
204
- io as collateralizedDebtPositionsSchema,
205
- un as compiledContractClassSchema,
206
- An as compiledSierraCasmSchema,
207
- xn as compiledSierraSchema,
208
- Tn as compressedProgramSchema,
209
- so as concentratedLiquidityPositionSchema,
210
- So as concentratedLiquidityPositionsSchema,
211
- Pe as constructorCallDataSchemaC0,
212
- ve as constructorCallDataSchemaC1V1,
213
- gn as contractEntryPointFieldsSchema,
214
- ga as convertTokenAmountToCurrencyValue,
215
- ka as convertTokenUnitAmountWithDecimals,
216
- Lm as createSchemaWithWarnings,
184
+ hm as bigNumberSchema,
185
+ an as bigNumberishSchema,
186
+ ec as bipsToPercent,
187
+ Ym as booleanToStringSchema,
188
+ la as buildBuyCalldataResponseSchema,
189
+ ha as buildBuyCalldataSchema,
190
+ Be as buildConstructorCalldata,
191
+ po as buildDummyTx,
192
+ Dn as builtinsSchema,
193
+ Rn as byteCodeSchema,
194
+ vn as cairo1EventSchema,
195
+ Nn as cairoAssemblySchema,
196
+ te as cairoVersionSchema,
197
+ lo as calculateCubeRootAdjustment,
198
+ ho as calculateNonLinearAdjustment,
199
+ fo as calculateSqrtAdjustment,
200
+ tn as callDetailsSchema,
201
+ on as callSchema,
202
+ mn as calldataSchema,
203
+ uo as castFeeEstimation,
204
+ nn as changeGuardianCalldataSchema,
205
+ cn as changeThresholdCalldataSchema,
206
+ Qo as classHashSupportsTxV3,
207
+ At as collateralizedDebtGroupSchema,
208
+ xt as collateralizedDebtPositionSchema,
209
+ Tt as collateralizedDebtPositionsSchema,
210
+ Fn as compiledContractClassSchema,
211
+ Pn as compiledSierraCasmSchema,
212
+ bn as compiledSierraSchema,
213
+ In as compressedProgramSchema,
214
+ gt as concentratedLiquidityPositionSchema,
215
+ Ct as concentratedLiquidityPositionsSchema,
216
+ Fe as constructorCallDataSchemaC0,
217
+ Pe as constructorCallDataSchemaC1V1,
218
+ Bn as contractEntryPointFieldsSchema,
219
+ Fa as convertTokenAmountToCurrencyValue,
220
+ ba as convertTokenUnitAmountWithDecimals,
221
+ Zm as createSchemaWithWarnings,
217
222
  xr as dappContractSchema,
218
223
  Tr as dappLinkSchema,
219
- om as daysBetween,
220
- Zt as decodeBase58,
221
- Qt as decodeBase58Array,
222
- po as defiDappsProductsSchema,
223
- lo as defiPositionSchema,
224
- xo as defiPositionTypeSchema,
225
- ho as defiProductSchema,
226
- fo as defiProductsSchema,
227
- wt as denyTxV3,
228
- Jt as encodeBase58,
229
- $t as encodeBase58Array,
230
- qt as ensureArray,
231
- Ea as ensureDecimals,
232
- wn as entryPointToHumanReadable,
233
- Cn as entryPointsByTypeSchema,
224
+ um as daysBetween,
225
+ im as decodeBase58,
226
+ Sm as decodeBase58Array,
227
+ kt as defiDappsProductsSchema,
228
+ yt as defiPositionSchema,
229
+ Pt as defiPositionTypeSchema,
230
+ Et as defiProductSchema,
231
+ Dt as defiProductsSchema,
232
+ Rt as delegatedTokensArraySchema,
233
+ vt as delegatedTokensSchema,
234
+ Xo as denyTxV3,
235
+ dm as encodeBase58,
236
+ pm as encodeBase58Array,
237
+ am as ensureArray,
238
+ Ba as ensureDecimals,
239
+ Xn as entryPointToHumanReadable,
240
+ _n as entryPointsByTypeSchema,
234
241
  Lr as equalNft,
235
- Lo as erc20TransferTransaction,
236
- Oo as erc721SafeTransferFromTransaction,
237
- Vo as erc721TransferFromTransaction,
238
- Ym as escapeGuardianCalldataSchema,
239
- tt as estimatedFeeToMaxFeeTotal,
240
- mt as estimatedFeeToMaxResourceBounds,
241
- nt as estimatedFeeToTotal,
242
- ct as estimatedFeesToMaxFeeTotal,
243
- it as estimatedFeesToTotal,
244
- kn as eventAbiSchema,
245
- yn as eventEntrySchema,
246
- Zm as executeOnPluginCalldataSchema,
247
- Vt as feeTokenNeedsTxV3Support,
248
- Qm as feltSchema,
249
- sr as fetchData,
242
+ Yt as erc20TransferTransaction,
243
+ Zt as erc721SafeTransferFromTransaction,
244
+ Qt as erc721TransferFromTransaction,
245
+ sn as escapeGuardianCalldataSchema,
246
+ Ao as estimatedFeeToMaxFeeTotal,
247
+ xo as estimatedFeeToMaxResourceBounds,
248
+ To as estimatedFeeToTotal,
249
+ go as estimatedFeesToMaxFeeTotal,
250
+ Co as estimatedFeesToTotal,
251
+ wn as eventAbiSchema,
252
+ Hn as eventEntrySchema,
253
+ Sn as executeOnPluginCalldataSchema,
254
+ Jo as feeTokenNeedsTxV3Support,
255
+ dn as feltSchema,
256
+ ir as fetchData,
250
257
  Sr as fetcherError,
251
258
  _e as findImplementationForAccount,
252
- Ct as findTransfersAndApprovals,
253
- Wt as formatAddress,
254
- P as formatFullAddress,
255
- v as formatTruncatedAddress,
259
+ _o as findTransfersAndApprovals,
260
+ em as formatAddress,
261
+ F as formatFullAddress,
262
+ P as formatTruncatedAddress,
256
263
  b as formatTruncatedSignerKey,
257
- B as formatTruncatedString,
258
- En as functionAbiSchema,
259
- Dn as functionAbiTypeSchema,
260
- zt as generateAvatarImage,
264
+ I as formatTruncatedString,
265
+ Ln as functionAbiSchema,
266
+ On as functionAbiTypeSchema,
267
+ om as generateAvatarImage,
261
268
  we as getAccountContractAddress,
262
269
  He as getAccountDeploymentPayload,
263
270
  he as getAddressFromArgentName,
@@ -269,152 +276,158 @@ export {
269
276
  hr as getBackendTimeSeconds,
270
277
  Ae as getCallFromStarkName,
271
278
  Ce as getChainIdFromNetworkId,
272
- Kt as getColor,
273
- Ia as getCurrencySymbol,
279
+ mm as getColor,
280
+ Ua as getCurrencySymbol,
274
281
  yr as getDapplandLinkForDapp,
275
282
  Er as getDapplandUrlForDapp,
276
- st as getEstimatedFeeFromBulkSimulation,
277
- St as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
278
- pm as getInitials,
283
+ ko as getEstimatedFeeFromBulkSimulation,
284
+ yo as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
285
+ Dm as getInitials,
279
286
  Ue as getLastCairo0ArgentAccountClassHash,
280
287
  qe as getLatestArgentAccountClassHash,
281
288
  Ge as getLatestArgentMultisigClassHash,
282
289
  ze as getLatestLedgerAccountClassHash,
283
290
  Ke as getLedgerAccountClassHashes,
284
- Wo as getMessageFromTrpcError,
285
- jt as getNetworkAccountImageUrl,
291
+ $t as getMessageFromTrpcError,
292
+ nm as getNetworkAccountImageUrl,
286
293
  Or as getNftPicture,
287
- dt as getPayloadFromTransaction,
288
- yt as getPrettyRpcError,
294
+ Eo as getPayloadFromTransaction,
295
+ Ho as getPrettyRpcError,
289
296
  da as getSignerForMultiSigner,
290
- Dt as getSimulationTxVersionFromFeeToken,
297
+ Oo as getSimulationTxVersionFromFeeToken,
291
298
  xe as getStarknetIdContractAddressFromNetworkId,
292
- la as getTokenBalance,
293
- ha as getTokens,
294
- fa as getTokensBalances,
295
- Rt as getTxVersionFromFeeToken,
296
- Nt as getTxVersionFromFeeTokenForDeclareContract,
299
+ ka as getTokenBalance,
300
+ ya as getTokens,
301
+ Ea as getTokensBalances,
302
+ Vo as getTxVersionFromFeeToken,
303
+ Mo as getTxVersionFromFeeTokenForDeclareContract,
297
304
  ra as getUAParserResult,
298
- Pm as getUint256CalldataFromBN,
299
- pt as getWatermarkedMaxFeeTotal,
300
- cm as hexSchema,
301
- im as hexSchemaBase,
302
- Sm as id,
305
+ Um as getUint256CalldataFromBN,
306
+ Do as getWatermarkedMaxFeeTotal,
307
+ gm as hexSchema,
308
+ Cm as hexSchemaBase,
309
+ ym as id,
303
310
  be as implementationSchema,
304
- I as includesAddress,
305
- Io as inputAmountSchema,
306
- s as isAccountV4,
311
+ B as includesAddress,
312
+ zt as inputAmountSchema,
313
+ fa as investmentMetaSchema,
314
+ ua as investmentSchema,
315
+ Aa as investmentsResponseSchema,
316
+ i as isAccountV4,
307
317
  S as isAccountV5,
308
318
  d as isAccountV6,
309
319
  _ as isAddress,
310
- xm as isAllowedAddressHexInputValue,
311
- gm as isAllowedNumericInputValue,
320
+ bm as isAllowedAddressHexInputValue,
321
+ Bm as isAllowedNumericInputValue,
312
322
  x as isArgentBackendNetworkId,
313
323
  $ as isArgentName,
314
324
  T as isArgentNetworkId,
315
325
  $r as isBraveBrowser,
316
326
  aa as isBrowser,
317
- oa as isChromeBrowser,
318
- hm as isContractDeployed,
319
- ta as isEdgeBrowser,
327
+ ta as isChromeBrowser,
328
+ vm as isContractDeployed,
329
+ oa as isEdgeBrowser,
320
330
  w as isEqualAddress,
321
331
  ee as isEqualArgentName,
322
332
  Le as isEqualImplementation,
323
333
  G as isEqualStarknetDomainName,
324
334
  Xe as isEqualStarknetId,
325
- lt as isFRI,
326
- mm as isFeatureEnabled,
335
+ Ro as isFRI,
336
+ xm as isFeatureEnabled,
327
337
  ma as isFirefoxBrowser,
328
- km as isNumeric,
338
+ wm as isNumeric,
329
339
  na as isSafariBrowser,
330
340
  z as isStarknetDomainName,
331
341
  Ye as isStarknetId,
332
- Ra as isUnlimitedAmount,
342
+ wa as isUnlimitedAmount,
333
343
  H as isValidAddress,
334
- _o as isValidInputAmount,
335
- ht as isWEI,
344
+ Kt as isValidInputAmount,
345
+ vo as isWEI,
336
346
  L as isZeroAddress,
337
347
  gr as knownDappSchema,
338
348
  Cr as knownDappsSchema,
339
- Rn as legacyContractClassSchema,
340
- Nn as legacyEventSchema,
341
- Jm as looseCalldataSchema,
342
- Ko as modifySnjsFeeOverhead,
343
- $m as multiTypeSchema,
344
- ft as multiplyBigIntByFloat,
345
- Fr as nameProviderResolutionSchema,
346
- Pr as nameResolutionAddressSchema,
347
- vr as nameResolutionAddressesSchema,
349
+ Vn as legacyContractClassSchema,
350
+ Mn as legacyEventSchema,
351
+ xa as lendingInvestmentSchema,
352
+ pn as looseCalldataSchema,
353
+ oo as modifySnjsFeeOverhead,
354
+ ln as multiTypeSchema,
355
+ No as multiplyBigIntByFloat,
356
+ Nr as nameProviderResolutionSchema,
357
+ Fr as nameResolutionAddressSchema,
358
+ Pr as nameResolutionAddressesSchema,
348
359
  br as nameResolutionStarknetIdSchema,
349
- Br as nameResolutionStarknetIdsSchema,
350
- um as nonNullable,
360
+ Ir as nameResolutionStarknetIdsSchema,
361
+ Fm as nonNullable,
351
362
  O as normalizeAddress,
352
363
  K as normalizeAddressOrDomain,
353
364
  re as normalizeArgentName,
354
365
  Ze as normalizeStarknetId,
355
366
  zr as onchainRecoverySchema,
356
- wo as parseAmount,
357
- vm as parseAmountValue,
358
- Bm as pluralise,
367
+ jt as parseAmount,
368
+ qm as parseAmountValue,
369
+ zm as pluralise,
359
370
  dr as postData,
360
371
  l as preferencesEndpointPayload,
361
372
  h as preferencesSchema,
362
- Em as prettifyCurrencyNumber,
363
- Fa as prettifyCurrencyValue,
364
- Dm as prettifyNumber,
365
- Rm as prettifyNumberConfig,
366
- ba as prettifyTokenAmount,
367
- Nm as prettifyTokenNumber,
368
- uo as productGroupsSchema,
369
- Fn as programSchema,
370
- Ir as providersNamesSchema,
371
- Pn as pythonicHintsSchema,
372
- en as rawArgsArraySchema,
373
- rn as rawArgsObjectSchema,
374
- an as rawArgsSchema,
375
- _m as readFileAsString,
373
+ Lm as prettifyCurrencyNumber,
374
+ La as prettifyCurrencyValue,
375
+ Om as prettifyNumber,
376
+ Vm as prettifyNumberConfig,
377
+ Ma as prettifyTokenAmount,
378
+ Mm as prettifyTokenNumber,
379
+ Nt as productGroupsSchema,
380
+ Wn as programSchema,
381
+ Br as providersNamesSchema,
382
+ Un as pythonicHintsSchema,
383
+ hn as rawArgsArraySchema,
384
+ fn as rawArgsObjectSchema,
385
+ un as rawArgsSchema,
386
+ jm as readFileAsString,
376
387
  Kr as recoveryBaseSchema,
377
388
  jr as recoveryBodySchema,
378
389
  Xr as recoveryStatusSchema,
379
- on as removeOwnersCalldataSchema,
380
- tn as removePluginCalldataSchema,
381
- mn as replaceSignerCalldataSchema,
382
- Om as safeParseAndWarn,
383
- ia as seedphraseSchema,
384
- vn as sierraContractEntryPointFieldsSchema,
385
- bn as sierraEntryPointsByTypeSchema,
386
- Bn as sierraProgramDebugInfoSchema,
390
+ An as removeOwnersCalldataSchema,
391
+ xn as removePluginCalldataSchema,
392
+ Tn as replaceSignerCalldataSchema,
393
+ Qm as safeParseAndWarn,
394
+ sa as seedphraseSchema,
395
+ qn as sierraContractEntryPointFieldsSchema,
396
+ Gn as sierraEntryPointsByTypeSchema,
397
+ zn as sierraProgramDebugInfoSchema,
398
+ Ta as stakingInvestmentSchema,
387
399
  Te as starkNameToCallDataDomain,
388
400
  j as starknetDomainNameSchema,
389
401
  Qe as starknetIdSchema,
390
402
  Yr as startOnchainRecoveryErrorSchema,
391
403
  Zr as startOnchainRecoveryErrorStatusSchema,
392
404
  Qr as startOnchainRecoverySchema,
393
- Vm as stringToBooleanSchema,
394
- Xt as stripAddressZeroPadding,
395
- In as structAbiSchema,
396
- ut as toMax,
397
- At as tokensRequireTxV3Support,
398
- Qo as transactionReviewTransactionsSchema,
399
- bt as transactionReviewWarningSchema,
400
- nn as transferCalldataSchema,
401
- Uo as trpcErrorSchema,
402
- Ht as txVersionSchema,
403
- cn as uint256Schema,
404
- Co as unclaimedRewardsSchema,
405
- xt as unitToFeeTokenAddress,
406
- Ln as urlWithQuery,
407
- ua as useToken,
405
+ Jm as stringToBooleanSchema,
406
+ cm as stripAddressZeroPadding,
407
+ ga as strkDelegatedStakingInvestmentSchema,
408
+ Kn as structAbiSchema,
409
+ Fo as toMax,
410
+ Po as tokensRequireTxV3Support,
411
+ io as transactionReviewTransactionsSchema,
412
+ Go as transactionReviewWarningSchema,
413
+ gn as transferCalldataSchema,
414
+ eo as trpcErrorSchema,
415
+ Yo as txVersionSchema,
416
+ Cn as uint256Schema,
417
+ Bt as unclaimedRewardsSchema,
418
+ bo as unitToFeeTokenAddress,
419
+ Zn as urlWithQuery,
420
+ Da as useToken,
408
421
  V as validChecksumAddressSchema,
409
422
  M as validateAddressRangeSchema,
410
- Vn as voidify,
411
- yo as webBaseTokenSchema,
412
- Eo as webBaseTokenWithBalanceSchema,
413
- Do as webTokenInfoDetailsSchema,
414
- Ro as webTokenPriceDetailsSchema,
415
- No as webTokenSchema,
416
- Fo as webTokenWithBalanceAndPriceSchema,
417
- Po as webTokenWithBalanceSchema,
418
- vo as webTokenWithPriceSchema,
419
- bo as webTokensWithBalanceAndPriceSchema
423
+ Jn as voidify,
424
+ wt as webBaseTokenSchema,
425
+ Ht as webBaseTokenWithBalanceSchema,
426
+ Lt as webTokenInfoDetailsSchema,
427
+ Ot as webTokenPriceDetailsSchema,
428
+ Vt as webTokenSchema,
429
+ Mt as webTokenWithBalanceAndPriceSchema,
430
+ Wt as webTokenWithBalanceSchema,
431
+ Ut as webTokenWithPriceSchema,
432
+ qt as webTokensWithBalanceAndPriceSchema
420
433
  };