@argent/x-shared 1.70.2 → 1.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +286 -307
- package/dist/simulation.cjs +1 -1
- package/dist/simulation.js +66 -68
- package/dist/src/features/paymaster/types.d.ts +2 -2
- package/dist/src/features/simulation/fees/schema.cjs +1 -1
- package/dist/src/features/simulation/fees/schema.d.ts +665 -705
- package/dist/src/features/simulation/fees/schema.js +32 -39
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +2117 -7917
- package/dist/src/features/simulation/transactionReview/schema.js +103 -112
- package/dist/src/features/swap/models/execute.model.d.ts +4 -0
- package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
- package/dist/src/features/swap/services/SwapTransactionService.js +22 -18
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.d.ts +11 -0
- package/dist/src/staking/schema.js +1 -0
- package/dist/src/tokens/isUnlimitedAmount.cjs +1 -1
- package/dist/src/tokens/isUnlimitedAmount.js +3 -3
- package/dist/src/transactions/amount.cjs +1 -1
- package/dist/src/transactions/amount.d.ts +2 -2
- package/dist/src/transactions/amount.js +9 -9
- package/dist/src/transactions/estimate/adjustment.cjs +1 -0
- package/dist/src/transactions/estimate/adjustment.d.ts +4 -0
- package/dist/src/transactions/estimate/adjustment.js +7 -0
- package/dist/src/transactions/estimate/argentMaxFee.d.ts +3 -3
- package/dist/src/transactions/estimate/index.d.ts +0 -1
- package/dist/src/transactions/estimate/model.d.ts +1 -10
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.d.ts +31 -61
- package/dist/src/transactions/estimate/utils.js +156 -223
- package/dist/src/transactions/index.d.ts +0 -1
- package/dist/src/transactions/service/implementation.cjs +1 -1
- package/dist/src/transactions/service/implementation.d.ts +39 -22
- package/dist/src/transactions/service/implementation.js +130 -97
- package/dist/src/transactions/service/index.d.ts +1 -0
- package/dist/src/transactions/service/utils.cjs +1 -0
- package/dist/src/transactions/service/utils.d.ts +25 -0
- package/dist/src/transactions/service/utils.js +25 -0
- package/dist/src/transactions/transactionSimulationTypes.d.ts +1 -7
- package/dist/src/transactions/transactionVersion.cjs +1 -1
- package/dist/src/transactions/transactionVersion.d.ts +5 -6
- package/dist/src/transactions/transactionVersion.js +10 -12
- package/package.json +2 -2
- package/dist/src/transactions/estimate/utilsV2.cjs +0 -1
- package/dist/src/transactions/estimate/utilsV2.d.ts +0 -26
- package/dist/src/transactions/estimate/utilsV2.js +0 -107
- package/dist/src/transactions/getTransactionVersion.cjs +0 -1
- package/dist/src/transactions/getTransactionVersion.d.ts +0 -12
- package/dist/src/transactions/getTransactionVersion.js +0 -21
package/dist/index.js
CHANGED
|
@@ -1,375 +1,359 @@
|
|
|
1
1
|
import * as e from "./src/bigdecimal/index.js";
|
|
2
2
|
import { BaseError as t } from "./src/errors/baseErrors.js";
|
|
3
|
-
import { AccountNameGenerator as
|
|
3
|
+
import { AccountNameGenerator as m } from "./src/accountNameGenerator/index.js";
|
|
4
4
|
import { AddSmartAccountResponseSchema as s, AddSmartAcountRequestSchema as i, BackendAccountSchema as c, baseWalletAccountSchema as S } from "./src/account/account.model.js";
|
|
5
|
-
import { isAccountV4 as p, isAccountV5 as
|
|
6
|
-
import { preferencesEndpointPayload as u, preferencesSchema as
|
|
5
|
+
import { isAccountV4 as p, isAccountV5 as h, isAccountV6 as l } from "./src/account/accountv4.js";
|
|
6
|
+
import { preferencesEndpointPayload as u, preferencesSchema as A } from "./src/account/preferences.model.js";
|
|
7
7
|
import { argentBackendNetworkIdSchema as x, argentNetworkIdSchema as T, isArgentBackendNetworkId as k, isArgentNetworkId as C } from "./src/backend/schema.js";
|
|
8
|
-
import { backendSessionAllowedMethodSchema as E, backendSessionMetadataSchema as D, backendSessionSchema as
|
|
9
|
-
import { CacheService as
|
|
10
|
-
import { addressOrEmptyUndefinedSchema as
|
|
11
|
-
import { addressOrDomainInputSchema as ie, addressOrDomainSchema as ce, isEqualStarknetDomainName as Se, isStarknetDomainName as de, normalizeAddressOrDomain as pe, starknetDomainNameSchema as
|
|
8
|
+
import { backendSessionAllowedMethodSchema as E, backendSessionMetadataSchema as D, backendSessionSchema as v, backendSessionTxFeeSchema as P } from "./src/backend/sessionKeys/schema.js";
|
|
9
|
+
import { CacheService as R } from "./src/cache/CacheService.js";
|
|
10
|
+
import { addressOrEmptyUndefinedSchema as F, addressSchema as B, addressSchemaArgentBackend as I, addressSchemaBase as w, addressSchemaLooseLength as _, addressSchemaStrictLength as H, formatFullAddress as L, formatTruncatedAddress as O, formatTruncatedSignerKey as V, formatTruncatedString as M, getAddressOrEmptyUndefinedSchema as W, getAddressSchema as U, getAddressSchemaArgentBackend as G, getAddressSchemaBase as q, getAddressSchemaLooseLength as z, getAddressSchemaStrictLength as K, getAddressValidationSchemas as X, getValidChecksumAddressSchema as j, getValidateAddressRangeSchema as Y, includesAddress as Z, isAddress as Q, isBase58Address as J, isEqualAddress as $, isValidAddress as ee, isValidHexString as ae, isZeroAddress as re, normalizeAddress as te, normalizeAddressForCompare as oe, validChecksumAddressSchema as me, validateAddressRangeSchema as ne } from "./src/chains/starknet/address.js";
|
|
11
|
+
import { addressOrDomainInputSchema as ie, addressOrDomainSchema as ce, isEqualStarknetDomainName as Se, isStarknetDomainName as de, normalizeAddressOrDomain as pe, starknetDomainNameSchema as he } from "./src/chains/starknet/addressDomain.js";
|
|
12
12
|
import { addressInputCharactersAndLengthSchema as fe, addressInputSchema as ue } from "./src/chains/starknet/addressInput.js";
|
|
13
|
-
import { argentNameSchema as
|
|
13
|
+
import { argentNameSchema as ge, isArgentName as xe, isEqualArgentName as Te, normalizeArgentName as ke } from "./src/chains/starknet/argentName.js";
|
|
14
14
|
import { cairoVersionSchema as ye } from "./src/chains/starknet/cairoVersionSchema.js";
|
|
15
|
-
import { ETH_TOKEN_ADDRESS as De, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as
|
|
15
|
+
import { ETH_TOKEN_ADDRESS as De, STANDARD_DEVNET_ACCOUNT_CLASS_HASH as ve, STRK_TOKEN_ADDRESS as Pe, TXV1_ACCOUNT_CLASS_HASH as Ne, TXV1_MULTISIG_CLASS_HASH as Re, TXV3_ACCOUNT_CLASS_HASH as be, TXV3_MULTISIG_CLASS_HASH as Fe } from "./src/chains/starknet/constants.js";
|
|
16
16
|
import { apiWalletResponseSchema as Ie, getAddressFromArgentName as we } from "./src/chains/starknet/getAddressFromArgentName.js";
|
|
17
|
-
import { getAddressFromStarkName as
|
|
17
|
+
import { getAddressFromStarkName as He, getCallFromStarkName as Le, getStarknetIdContractAddressFromNetworkId as Oe, starkNameToCallDataDomain as Ve } from "./src/chains/starknet/getAddressFromStarkName.js";
|
|
18
18
|
import { getArgentNetwork as We, getChainIdFromNetworkId as Ue } from "./src/chains/starknet/network.js";
|
|
19
|
-
import { StarknetAddressService as
|
|
20
|
-
import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as Ke, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as
|
|
19
|
+
import { StarknetAddressService as qe } from "./src/chains/starknet/services/address/StarknetAddressService.js";
|
|
20
|
+
import { ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES as Ke, ARGENT_MULTISIG_CONTRACT_CLASS_HASHES as Xe, C0_PROXY_CONTRACT_CLASS_HASHES as je } from "./src/chains/starknet/services/deploymentData/constants.js";
|
|
21
21
|
import { constructorCallDataSchemaC0 as Ze, constructorCallDataSchemaC1V1 as Qe, implementationSchema as Je } from "./src/chains/starknet/services/deploymentData/deploymentData.schema.js";
|
|
22
22
|
import { buildConstructorCalldata as ea, findImplementationForAccount as aa, getAccountContractAddress as ra, getAccountDeploymentPayload as ta, isEqualImplementation as oa } from "./src/chains/starknet/services/deploymentData/findImplementationForAccount.js";
|
|
23
|
-
import { getAccountVersionByClasshash as
|
|
24
|
-
import { isEqualStarknetId as ua, isStarknetId as
|
|
23
|
+
import { getAccountVersionByClasshash as na, getArgentAccountClassHashes as sa, getArgentAccountClassHashesWithTxV3Support as ia, getArgentAccountWithMultiSignerClassHashes as ca, getLastCairo0ArgentAccountClassHash as Sa, getLatestArgentAccountClassHash as da, getLatestArgentMultisigClassHash as pa, getLatestLedgerAccountClassHash as ha, getLedgerAccountClassHashes as la } from "./src/chains/starknet/services/deploymentData/getAccountClassHash.js";
|
|
24
|
+
import { isEqualStarknetId as ua, isStarknetId as Aa, normalizeStarknetId as ga, starknetIdSchema as xa } from "./src/chains/starknet/starknetId.js";
|
|
25
25
|
import { DateService as ka } from "./src/http/DateService.js";
|
|
26
26
|
import { HttpError as ya } from "./src/http/HttpError.js";
|
|
27
27
|
import { HTTPService as Da } from "./src/http/HttpService.js";
|
|
28
|
-
import { HTTP_ERROR_MESSAGE as
|
|
29
|
-
import { SWRService as
|
|
30
|
-
import { fetchData as
|
|
31
|
-
import { getBackendTimeNowSeconds as _a, getBackendTimeSeconds as
|
|
32
|
-
import { KnownDappsBackendService as
|
|
33
|
-
import { dappContractSchema as Ma, dappLinkSchema as Wa, knownDappSchema as Ua, knownDappsSchema as
|
|
28
|
+
import { HTTP_ERROR_MESSAGE as Pa } from "./src/http/IHttpService.js";
|
|
29
|
+
import { SWRService as Ra } from "./src/http/SWRService.js";
|
|
30
|
+
import { fetchData as Fa, fetcherError as Ba, postData as Ia } from "./src/http/fetcher.js";
|
|
31
|
+
import { getBackendTimeNowSeconds as _a, getBackendTimeSeconds as Ha } from "./src/http/time.js";
|
|
32
|
+
import { KnownDappsBackendService as Oa } from "./src/knownDapps/KnownDappsBackendService.js";
|
|
33
|
+
import { dappContractSchema as Ma, dappLinkSchema as Wa, knownDappSchema as Ua, knownDappsSchema as Ga } from "./src/knownDapps/schema.js";
|
|
34
34
|
import { getDapplandLinkForDapp as za, getDapplandUrlForDapp as Ka } from "./src/knownDapps/utils/getDapplandUrl.js";
|
|
35
|
-
import { ResolveNameService as
|
|
35
|
+
import { ResolveNameService as ja } from "./src/nameResolution/ResolveNameService.js";
|
|
36
36
|
import { nameProviderResolutionSchema as Za, nameResolutionAddressSchema as Qa, nameResolutionAddressesSchema as Ja, nameResolutionStarknetIdSchema as $a, nameResolutionStarknetIdsSchema as er, providersNamesSchema as ar } from "./src/nameResolution/schema.js";
|
|
37
37
|
import { BackendNftService as tr } from "./src/nfts/BackendNftService.js";
|
|
38
|
-
import { equalNft as
|
|
38
|
+
import { equalNft as mr, getNftPicture as nr } from "./src/nfts/utils.js";
|
|
39
39
|
import { OnchainRecoveryService as ir } from "./src/onchainRecovery/OnchainRecoveryService.js";
|
|
40
|
-
import { RecoveryStatusEnum as Sr, StartOnchainRecoveryErrorStatusEnum as dr, activeOnchainRecoverySchema as pr, onchainRecoverySchema as
|
|
40
|
+
import { RecoveryStatusEnum as Sr, StartOnchainRecoveryErrorStatusEnum as dr, activeOnchainRecoverySchema as pr, onchainRecoverySchema as hr, recoveryBaseSchema as lr, recoveryBodySchema as fr, recoveryStatusSchema as ur, startOnchainRecoveryErrorSchema as Ar, startOnchainRecoveryErrorStatusSchema as gr, startOnchainRecoverySchema as xr } from "./src/onchainRecovery/schema.js";
|
|
41
41
|
import { isBraveBrowser as kr } from "./src/platform/isBraveBrowser.js";
|
|
42
|
-
import { getUAParserResult as yr, isBrowser as Er, isChromeBrowser as Dr, isEdgeBrowser as
|
|
43
|
-
import { seedphraseSchema as
|
|
42
|
+
import { getUAParserResult as yr, isBrowser as Er, isChromeBrowser as Dr, isEdgeBrowser as vr, isFirefoxBrowser as Pr, isSafariBrowser as Nr } from "./src/platform/isBrowser.js";
|
|
43
|
+
import { seedphraseSchema as br } from "./src/signer/seedphrase.js";
|
|
44
44
|
import { MultiSigner as Br, getSignerForMultiSigner as Ir } from "./src/signer/multisigner.js";
|
|
45
45
|
import { mergeOwnerGuardianSignatures as _r } from "./src/signer/mergeOwnerGuardianSignatures.js";
|
|
46
|
-
import { buildSellOptsSchema as Lr, investmentMetaSchema as
|
|
46
|
+
import { buildSellOptsSchema as Lr, investmentMetaSchema as Or, investmentSchema as Vr, investmentsResponseSchema as Mr, lendingInvestmentSchema as Wr, liquidStakingInvestmentSchema as Ur, stakerInfoSchema as Gr, stakingActionSchema as qr, strkDelegatedStakingInvestmentSchema as zr, strkStakingCalldataResponseSchema as Kr, strkStakingCalldataSchema as Xr } from "./src/staking/schema.js";
|
|
47
47
|
import { containsValue as Yr, replaceValueRecursively as Zr } from "./src/storage/utils.js";
|
|
48
48
|
import { mergeArrayStableWith as Jr, optionsWithDefaults as $r } from "./src/storage/base.js";
|
|
49
49
|
import { getTokenBalance as at, getTokens as rt, getTokensBalances as tt, useToken as ot } from "./src/tokens/balances.js";
|
|
50
|
-
import { DEFAULT_TOKEN_DECIMALS as
|
|
50
|
+
import { DEFAULT_TOKEN_DECIMALS as nt } from "./src/tokens/constants.js";
|
|
51
51
|
import { convertCurrencyValueToTokenAmount as it } from "./src/tokens/convertCurrencyValueToTokenAmount.js";
|
|
52
52
|
import { convertTokenAmountToCurrencyValue as St } from "./src/tokens/convertTokenAmountToCurrencyValue.js";
|
|
53
53
|
import { convertTokenUnitAmountWithDecimals as pt } from "./src/tokens/convertTokenUnitAmountWithDecimals.js";
|
|
54
|
-
import { ensureDecimals as
|
|
54
|
+
import { ensureDecimals as lt } from "./src/tokens/ensureDecimals.js";
|
|
55
55
|
import { isUnlimitedAmount as ut } from "./src/tokens/isUnlimitedAmount.js";
|
|
56
|
-
import { prettifyCurrencyValue as
|
|
56
|
+
import { prettifyCurrencyValue as gt } from "./src/tokens/prettifyCurrencyValue.js";
|
|
57
57
|
import { PRETTY_UNLIMITED as Tt, prettifyTokenAmount as kt } from "./src/tokens/prettifyTokenAmount.js";
|
|
58
58
|
import { getCurrencySymbol as yt } from "./src/tokens/getCurrencySymbol.js";
|
|
59
59
|
import { TokenServiceWeb as Dt } from "./src/tokens/service/implementation.js";
|
|
60
|
-
import { TOKEN_ERROR_MESSAGES as
|
|
61
|
-
import { apiAccountTokenBalancesSchema as
|
|
62
|
-
import { collateralizedDebtGroupSchema as ao, collateralizedDebtPositionSchema as ro, collateralizedDebtPositionsSchema as to, concentratedLiquidityPositionSchema as oo, concentratedLiquidityPositionsSchema as
|
|
60
|
+
import { TOKEN_ERROR_MESSAGES as Pt, TokenError as Nt } from "./src/tokens/service/tokenError.js";
|
|
61
|
+
import { apiAccountTokenBalancesSchema as bt, apiAirdropSchema as Ft, apiCollateralizedDebtPositionSchema as Bt, apiCollateralizedDebtPositionsSchema as It, apiConcentratedLiquidityPositionSchema as wt, apiConcentratedLiquidityPositionsSchema as _t, apiDefiDecompositionProduct as Ht, apiDefiDecompositionProducts as Lt, apiDefiDecompositionSchema as Ot, apiDefiDecompositionToken as Vt, apiDefiPositionSchema as Mt, apiDefiPositionsSchema as Wt, apiDelegatedTokensArraySchema as Ut, apiDelegatedTokensSchema as Gt, apiPriceDataResponseSchema as qt, apiPriceDetailsSchema as zt, apiStakingPositionSchema as Kt, apiStakingPositionsSchema as Xt, apiStrkDelegatedStakingPositionsSchema as jt, apiStrkDelegatedStakingSchema as Yt, apiTokenInfoResponseSchema as Zt, apiTokenInfoSchema as Qt, apiTokensInfoResponseSchema as Jt, apiUnclaimedRewardsSchema as $t } from "./src/tokens/service/types/backend.model.js";
|
|
62
|
+
import { collateralizedDebtGroupSchema as ao, collateralizedDebtPositionSchema as ro, collateralizedDebtPositionsSchema as to, concentratedLiquidityPositionSchema as oo, concentratedLiquidityPositionsSchema as mo, defiDappsProductsSchema as no, defiPositionSchema as so, defiProductSchema as io, defiProductsSchema as co, delegatedTokensArraySchema as So, delegatedTokensSchema as po, productGroupsSchema as ho, stakingPositionSchema as lo, stakingPositionsSchema as fo, strkDelegatedStakingPositionArraySchema as uo, strkDelegatedStakingPositionSchema as Ao } from "./src/tokens/service/types/defiPosition.model.js";
|
|
63
63
|
import { defiPositionTypeSchema as xo } from "./src/tokens/service/types/defiPositionType.model.js";
|
|
64
64
|
import { airdropSchema as ko, unclaimedRewardsSchema as Co } from "./src/tokens/service/types/unclaimedRewards.model.js";
|
|
65
|
-
import { webBaseTokenSchema as Eo, webBaseTokenWithBalanceSchema as Do, webTokenInfoDetailsSchema as
|
|
66
|
-
import { isCollateralizedDebtPosition as wo, isConcentratedLiquidityPosition as _o, isDelegatedTokens as
|
|
65
|
+
import { webBaseTokenSchema as Eo, webBaseTokenWithBalanceSchema as Do, webTokenInfoDetailsSchema as vo, webTokenPriceDetailsSchema as Po, webTokenSchema as No, webTokenWithBalanceAndPriceSchema as Ro, webTokenWithBalanceSchema as bo, webTokenWithPriceSchema as Fo, webTokensWithBalanceAndPriceSchema as Bo } from "./src/tokens/service/types/webToken.model.js";
|
|
66
|
+
import { isCollateralizedDebtPosition as wo, isConcentratedLiquidityPosition as _o, isDelegatedTokens as Ho, isStaking as Lo, isStrkDelegatedStaking as Oo } from "./src/tokens/utils.js";
|
|
67
67
|
import { inputAmountSchema as Mo, isValidInputAmount as Wo, parseAmount as Uo } from "./src/transactions/amount.js";
|
|
68
|
-
import { erc20TransferTransaction as
|
|
69
|
-
import { getMessageFromTrpcError as
|
|
68
|
+
import { erc20TransferTransaction as qo, erc721SafeTransferFromTransaction as zo, erc721TransferFromTransaction as Ko } from "./src/transactions/buildTransactions.js";
|
|
69
|
+
import { getMessageFromTrpcError as jo, trpcErrorSchema as Yo } from "./src/transactions/errors.js";
|
|
70
70
|
import { FEE_OVERHEAD as Qo, argentMaxFee as Jo, modifySnjsFeeOverhead as $o } from "./src/transactions/estimate/argentMaxFee.js";
|
|
71
|
-
import { ESTIMATE_ERROR_MESSAGES as
|
|
72
|
-
import { transactionReviewTransactionsSchema as
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import { currenciesDetailsSchema as ki, currencyDetailsSchema as Ci } from "./src/currencyFetchService/types.ts.js";
|
|
71
|
+
import { ESTIMATE_ERROR_MESSAGES as am, EstimateError as rm } from "./src/transactions/estimate/error.js";
|
|
72
|
+
import { transactionReviewTransactionsSchema as om } from "./src/transactions/estimate/model.js";
|
|
73
|
+
import { estimatedFeeToMaxFeeTotal as nm, estimatedFeeToMaxResourceBounds as sm, estimatedFeeToTotal as im, estimatedFeesToMaxFeeTotalV2 as cm, estimatedFeesToTotal as Sm, estimatedFeesToTotalV2 as dm, filterPaymasterEstimatedFees as pm, getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2 as hm, getNativeEstimatedFeeByFeeToken as lm, getNativeEstimatedFeeByTxVersion as fm, getNativeEstimatedFeeForAccount as um, getNativeEstimatedFees as Am, getNativeFeeFromSimulation as gm, getNativeFeeTokenAddress as xm, getPaymasterFeeFromSimulation as Tm, toMaxFeeEstimation as km } from "./src/transactions/estimate/utils.js";
|
|
74
|
+
import { EventsBySelector as ym, findTransfersAndApprovals as Em } from "./src/transactions/findTransfersAndApprovals.js";
|
|
75
|
+
import { getPrettyRpcError as vm } from "./src/transactions/getPrettyRcpError.js";
|
|
76
|
+
import { TransactionReviewServiceWeb as Nm } from "./src/transactions/service/implementation.js";
|
|
77
|
+
import { transactionReviewWarningSchema as bm } from "./src/transactions/service/types.js";
|
|
78
|
+
import { getPayloadFromTransaction as Bm } from "./src/transactions/service/utils.js";
|
|
79
|
+
import { apiTransactionReviewActivityType as wm } from "./src/transactions/transactionReviewTypes.js";
|
|
80
|
+
import { txVersionSchema as Hm } from "./src/transactions/transactionVersion.js";
|
|
81
|
+
import { classHashSupportsTxV3 as Om, feeTokenNeedsTxV3Support as Vm } from "./src/transactions/txv3.js";
|
|
82
|
+
import { transactionExecutionResponseSchema as Wm, transactionPromotionPrizeSchema as Um, transactionPromotionSchema as Gm } from "./src/transactions/transactionExecuteTypes.js";
|
|
83
|
+
import { formatAddress as zm } from "./src/utils/address.js";
|
|
84
|
+
import { ensureArray as Xm } from "./src/utils/arrays.js";
|
|
85
|
+
import { generateAvatarImage as Ym, getColor as Zm, getNetworkAccountImageUrl as Qm, stripAddressZeroPadding as Jm } from "./src/utils/avatarImage.js";
|
|
86
|
+
import { decodeBase58 as en, decodeBase58Array as an, encodeBase58 as rn, encodeBase58Array as tn } from "./src/utils/base58.js";
|
|
87
|
+
import { bigNumberSchema as mn } from "./src/utils/bigNumber.js";
|
|
88
|
+
import { daysBetween as sn } from "./src/utils/daysBetween.js";
|
|
89
|
+
import { isFeatureEnabled as Sn } from "./src/utils/env.js";
|
|
90
|
+
import { hexSchema as pn, hexSchemaBase as hn } from "./src/utils/hex.js";
|
|
91
|
+
import { id as fn } from "./src/utils/id.js";
|
|
92
|
+
import { getInitials as An } from "./src/utils/initials.js";
|
|
93
|
+
import { isContractDeployed as xn } from "./src/utils/isContractDeployed.js";
|
|
94
|
+
import { nonNullable as kn } from "./src/utils/nonNullable.js";
|
|
95
|
+
import { isAllowedAddressHexInputValue as yn } from "./src/utils/number/isAllowedAddressHexInputValue.js";
|
|
96
|
+
import { isAllowedNumericInputValue as Dn } from "./src/utils/number/isAllowedNumericInputValue.js";
|
|
97
|
+
import { isNumeric as Pn } from "./src/utils/number/isNumeric.js";
|
|
98
|
+
import { prettifyCurrencyNumber as Rn, prettifyNumber as bn, prettifyNumberConfig as Fn, prettifyTokenNumber as Bn } from "./src/utils/number/prettifyNumber.js";
|
|
99
|
+
import { abbreviateNumber as wn } from "./src/utils/number/abbreviateNumber.js";
|
|
100
|
+
import { getUint256CalldataFromBN as Hn, parseAmountValue as Ln } from "./src/utils/parseAmount.js";
|
|
101
|
+
import { pluralise as Vn } from "./src/utils/pluralise.js";
|
|
102
|
+
import { readFileAsString as Wn } from "./src/utils/readFileAsString.js";
|
|
103
|
+
import { booleanToStringSchema as Gn, createSchemaWithWarnings as qn, safeParseAndWarn as zn, stringToBooleanSchema as Kn } from "./src/utils/schemas.js";
|
|
104
|
+
import { addOwnersCalldataSchema as jn, addPluginCalldataSchema as Yn, bigNumberishSchema as Zn, callDetailsSchema as Qn, callSchema as Jn, calldataSchema as $n, changeGuardianCalldataSchema as es, changeThresholdCalldataSchema as as, escapeGuardianCalldataSchema as rs, executeOnPluginCalldataSchema as ts, feltSchema as os, looseCalldataSchema as ms, multiTypeSchema as ns, rawArgsArraySchema as ss, rawArgsObjectSchema as is, rawArgsSchema as cs, removeOwnersCalldataSchema as Ss, removePluginCalldataSchema as ds, replaceSignerCalldataSchema as ps, transferCalldataSchema as hs, typedDataSchema as ls, uint256Schema as fs } from "./src/utils/starknet/starknet.js";
|
|
105
|
+
import { abiEntrySchema as As, abiSchema as gs, builtinsSchema as xs, byteCodeSchema as Ts, cairo1EventSchema as ks, cairoAssemblySchema as Cs, compiledContractClassSchema as ys, compiledSierraCasmSchema as Es, compiledSierraSchema as Ds, compressedProgramSchema as vs, contractEntryPointFieldsSchema as Ps, entryPointsByTypeSchema as Ns, eventAbiSchema as Rs, eventEntrySchema as bs, functionAbiSchema as Fs, functionAbiTypeSchema as Bs, legacyContractClassSchema as Is, legacyEventSchema as ws, programSchema as _s, pythonicHintsSchema as Hs, sierraContractEntryPointFieldsSchema as Ls, sierraEntryPointsByTypeSchema as Os, sierraProgramDebugInfoSchema as Vs, structAbiSchema as Ms } from "./src/utils/starknet/starknetSchemas.js";
|
|
106
|
+
import { entryPointToHumanReadable as Us } from "./src/utils/transactions.js";
|
|
107
|
+
import { urlWithQuery as qs } from "./src/utils/url/urlWithQuery.js";
|
|
108
|
+
import { voidify as Ks } from "./src/utils/voidify.js";
|
|
109
|
+
import { bipsToPercent as js } from "./src/utils/bips.js";
|
|
110
|
+
import { retryUntilInitialised as Zs } from "./src/utils/retryUntilInitialised.js";
|
|
111
|
+
import { CurrencyFetchService as Js } from "./src/currencyFetchService/CurrencyFetchService.js";
|
|
112
|
+
import { currenciesDetailsSchema as ei, currencyDetailsSchema as ai } from "./src/currencyFetchService/types.ts.js";
|
|
114
113
|
export {
|
|
115
114
|
Ke as ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES,
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
Xe as ARGENT_MULTISIG_CONTRACT_CLASS_HASHES,
|
|
116
|
+
m as AccountNameGenerator,
|
|
118
117
|
s as AddSmartAccountResponseSchema,
|
|
119
118
|
i as AddSmartAcountRequestSchema,
|
|
120
119
|
c as BackendAccountSchema,
|
|
121
120
|
tr as BackendNftService,
|
|
122
121
|
t as BaseError,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
je as C0_PROXY_CONTRACT_CLASS_HASHES,
|
|
123
|
+
R as CacheService,
|
|
124
|
+
Js as CurrencyFetchService,
|
|
125
|
+
nt as DEFAULT_TOKEN_DECIMALS,
|
|
127
126
|
ka as DateService,
|
|
128
|
-
|
|
127
|
+
am as ESTIMATE_ERROR_MESSAGES,
|
|
129
128
|
De as ETH_TOKEN_ADDRESS,
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
rm as EstimateError,
|
|
130
|
+
ym as EventsBySelector,
|
|
132
131
|
Qo as FEE_OVERHEAD,
|
|
133
132
|
Da as HTTPService,
|
|
134
|
-
|
|
133
|
+
Pa as HTTP_ERROR_MESSAGE,
|
|
135
134
|
ya as HttpError,
|
|
136
|
-
|
|
135
|
+
Oa as KnownDappsBackendService,
|
|
137
136
|
Br as MultiSigner,
|
|
138
137
|
ir as OnchainRecoveryService,
|
|
139
138
|
Tt as PRETTY_UNLIMITED,
|
|
140
139
|
Sr as RecoveryStatusEnum,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
ja as ResolveNameService,
|
|
141
|
+
ve as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
|
|
142
|
+
Pe as STRK_TOKEN_ADDRESS,
|
|
143
|
+
Ra as SWRService,
|
|
144
|
+
qe as StarknetAddressService,
|
|
146
145
|
dr as StartOnchainRecoveryErrorStatusEnum,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
Pt as TOKEN_ERROR_MESSAGES,
|
|
147
|
+
Ne as TXV1_ACCOUNT_CLASS_HASH,
|
|
148
|
+
Re as TXV1_MULTISIG_CLASS_HASH,
|
|
149
|
+
be as TXV3_ACCOUNT_CLASS_HASH,
|
|
150
|
+
Fe as TXV3_MULTISIG_CLASS_HASH,
|
|
151
|
+
Nt as TokenError,
|
|
153
152
|
Dt as TokenServiceWeb,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
Nm as TransactionReviewServiceWeb,
|
|
154
|
+
wn as abbreviateNumber,
|
|
155
|
+
As as abiEntrySchema,
|
|
156
|
+
gs as abiSchema,
|
|
158
157
|
pr as activeOnchainRecoverySchema,
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
jn as addOwnersCalldataSchema,
|
|
159
|
+
Yn as addPluginCalldataSchema,
|
|
161
160
|
fe as addressInputCharactersAndLengthSchema,
|
|
162
161
|
ue as addressInputSchema,
|
|
163
162
|
ie as addressOrDomainInputSchema,
|
|
164
163
|
ce as addressOrDomainSchema,
|
|
165
|
-
|
|
164
|
+
F as addressOrEmptyUndefinedSchema,
|
|
166
165
|
B as addressSchema,
|
|
167
166
|
I as addressSchemaArgentBackend,
|
|
168
167
|
w as addressSchemaBase,
|
|
169
168
|
_ as addressSchemaLooseLength,
|
|
170
|
-
|
|
169
|
+
H as addressSchemaStrictLength,
|
|
171
170
|
ko as airdropSchema,
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
bt as apiAccountTokenBalancesSchema,
|
|
172
|
+
Ft as apiAirdropSchema,
|
|
174
173
|
Bt as apiCollateralizedDebtPositionSchema,
|
|
175
174
|
It as apiCollateralizedDebtPositionsSchema,
|
|
176
175
|
wt as apiConcentratedLiquidityPositionSchema,
|
|
177
176
|
_t as apiConcentratedLiquidityPositionsSchema,
|
|
178
|
-
|
|
177
|
+
Ht as apiDefiDecompositionProduct,
|
|
179
178
|
Lt as apiDefiDecompositionProducts,
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
Ot as apiDefiDecompositionSchema,
|
|
180
|
+
Vt as apiDefiDecompositionToken,
|
|
182
181
|
Mt as apiDefiPositionSchema,
|
|
183
182
|
Wt as apiDefiPositionsSchema,
|
|
184
183
|
Ut as apiDelegatedTokensArraySchema,
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
Gt as apiDelegatedTokensSchema,
|
|
185
|
+
qt as apiPriceDataResponseSchema,
|
|
187
186
|
zt as apiPriceDetailsSchema,
|
|
188
187
|
Kt as apiStakingPositionSchema,
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
Xt as apiStakingPositionsSchema,
|
|
189
|
+
jt as apiStrkDelegatedStakingPositionsSchema,
|
|
191
190
|
Yt as apiStrkDelegatedStakingSchema,
|
|
192
191
|
Zt as apiTokenInfoResponseSchema,
|
|
193
192
|
Qt as apiTokenInfoSchema,
|
|
194
193
|
Jt as apiTokensInfoResponseSchema,
|
|
195
|
-
|
|
194
|
+
wm as apiTransactionReviewActivityType,
|
|
196
195
|
$t as apiUnclaimedRewardsSchema,
|
|
197
196
|
Ie as apiWalletResponseSchema,
|
|
198
197
|
x as argentBackendNetworkIdSchema,
|
|
199
198
|
Jo as argentMaxFee,
|
|
200
|
-
|
|
199
|
+
ge as argentNameSchema,
|
|
201
200
|
T as argentNetworkIdSchema,
|
|
202
201
|
E as backendSessionAllowedMethodSchema,
|
|
203
202
|
D as backendSessionMetadataSchema,
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
v as backendSessionSchema,
|
|
204
|
+
P as backendSessionTxFeeSchema,
|
|
206
205
|
S as baseWalletAccountSchema,
|
|
207
206
|
e as bigDecimal,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
mn as bigNumberSchema,
|
|
208
|
+
Zn as bigNumberishSchema,
|
|
209
|
+
js as bipsToPercent,
|
|
210
|
+
Gn as booleanToStringSchema,
|
|
212
211
|
ea as buildConstructorCalldata,
|
|
213
|
-
mn as buildDummyTx,
|
|
214
212
|
Lr as buildSellOptsSchema,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
xs as builtinsSchema,
|
|
214
|
+
Ts as byteCodeSchema,
|
|
215
|
+
ks as cairo1EventSchema,
|
|
216
|
+
Cs as cairoAssemblySchema,
|
|
219
217
|
ye as cairoVersionSchema,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
dn as castFeeEstimation,
|
|
227
|
-
ks as changeGuardianCalldataSchema,
|
|
228
|
-
Cs as changeThresholdCalldataSchema,
|
|
229
|
-
mm as classHashSupportsTxV3,
|
|
218
|
+
Qn as callDetailsSchema,
|
|
219
|
+
Jn as callSchema,
|
|
220
|
+
$n as calldataSchema,
|
|
221
|
+
es as changeGuardianCalldataSchema,
|
|
222
|
+
as as changeThresholdCalldataSchema,
|
|
223
|
+
Om as classHashSupportsTxV3,
|
|
230
224
|
ao as collateralizedDebtGroupSchema,
|
|
231
225
|
ro as collateralizedDebtPositionSchema,
|
|
232
226
|
to as collateralizedDebtPositionsSchema,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
227
|
+
ys as compiledContractClassSchema,
|
|
228
|
+
Es as compiledSierraCasmSchema,
|
|
229
|
+
Ds as compiledSierraSchema,
|
|
230
|
+
vs as compressedProgramSchema,
|
|
237
231
|
oo as concentratedLiquidityPositionSchema,
|
|
238
|
-
|
|
232
|
+
mo as concentratedLiquidityPositionsSchema,
|
|
239
233
|
Ze as constructorCallDataSchemaC0,
|
|
240
234
|
Qe as constructorCallDataSchemaC1V1,
|
|
241
235
|
Yr as containsValue,
|
|
242
|
-
|
|
236
|
+
Ps as contractEntryPointFieldsSchema,
|
|
243
237
|
it as convertCurrencyValueToTokenAmount,
|
|
244
238
|
St as convertTokenAmountToCurrencyValue,
|
|
245
239
|
pt as convertTokenUnitAmountWithDecimals,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
240
|
+
qn as createSchemaWithWarnings,
|
|
241
|
+
ei as currenciesDetailsSchema,
|
|
242
|
+
ai as currencyDetailsSchema,
|
|
249
243
|
Ma as dappContractSchema,
|
|
250
244
|
Wa as dappLinkSchema,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
245
|
+
sn as daysBetween,
|
|
246
|
+
en as decodeBase58,
|
|
247
|
+
an as decodeBase58Array,
|
|
248
|
+
no as defiDappsProductsSchema,
|
|
255
249
|
so as defiPositionSchema,
|
|
256
250
|
xo as defiPositionTypeSchema,
|
|
257
251
|
io as defiProductSchema,
|
|
258
252
|
co as defiProductsSchema,
|
|
259
253
|
So as delegatedTokensArraySchema,
|
|
260
254
|
po as delegatedTokensSchema,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
Go as erc20TransferTransaction,
|
|
255
|
+
rn as encodeBase58,
|
|
256
|
+
tn as encodeBase58Array,
|
|
257
|
+
Xm as ensureArray,
|
|
258
|
+
lt as ensureDecimals,
|
|
259
|
+
Us as entryPointToHumanReadable,
|
|
260
|
+
Ns as entryPointsByTypeSchema,
|
|
261
|
+
mr as equalNft,
|
|
262
|
+
qo as erc20TransferTransaction,
|
|
270
263
|
zo as erc721SafeTransferFromTransaction,
|
|
271
264
|
Ko as erc721TransferFromTransaction,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
ba as fetchData,
|
|
265
|
+
rs as escapeGuardianCalldataSchema,
|
|
266
|
+
nm as estimatedFeeToMaxFeeTotal,
|
|
267
|
+
sm as estimatedFeeToMaxResourceBounds,
|
|
268
|
+
im as estimatedFeeToTotal,
|
|
269
|
+
cm as estimatedFeesToMaxFeeTotalV2,
|
|
270
|
+
Sm as estimatedFeesToTotal,
|
|
271
|
+
dm as estimatedFeesToTotalV2,
|
|
272
|
+
Rs as eventAbiSchema,
|
|
273
|
+
bs as eventEntrySchema,
|
|
274
|
+
ts as executeOnPluginCalldataSchema,
|
|
275
|
+
Vm as feeTokenNeedsTxV3Support,
|
|
276
|
+
os as feltSchema,
|
|
277
|
+
Fa as fetchData,
|
|
286
278
|
Ba as fetcherError,
|
|
287
|
-
|
|
279
|
+
pm as filterPaymasterEstimatedFees,
|
|
288
280
|
aa as findImplementationForAccount,
|
|
289
|
-
|
|
290
|
-
|
|
281
|
+
Em as findTransfersAndApprovals,
|
|
282
|
+
zm as formatAddress,
|
|
291
283
|
L as formatFullAddress,
|
|
292
|
-
|
|
293
|
-
|
|
284
|
+
O as formatTruncatedAddress,
|
|
285
|
+
V as formatTruncatedSignerKey,
|
|
294
286
|
M as formatTruncatedString,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
287
|
+
Fs as functionAbiSchema,
|
|
288
|
+
Bs as functionAbiTypeSchema,
|
|
289
|
+
Ym as generateAvatarImage,
|
|
298
290
|
ra as getAccountContractAddress,
|
|
299
291
|
ta as getAccountDeploymentPayload,
|
|
300
|
-
|
|
301
|
-
ma as getAccountVersionByClasshash,
|
|
292
|
+
na as getAccountVersionByClasshash,
|
|
302
293
|
we as getAddressFromArgentName,
|
|
303
|
-
|
|
294
|
+
He as getAddressFromStarkName,
|
|
304
295
|
W as getAddressOrEmptyUndefinedSchema,
|
|
305
296
|
U as getAddressSchema,
|
|
306
|
-
|
|
307
|
-
|
|
297
|
+
G as getAddressSchemaArgentBackend,
|
|
298
|
+
q as getAddressSchemaBase,
|
|
308
299
|
z as getAddressSchemaLooseLength,
|
|
309
300
|
K as getAddressSchemaStrictLength,
|
|
310
|
-
|
|
301
|
+
X as getAddressValidationSchemas,
|
|
311
302
|
sa as getArgentAccountClassHashes,
|
|
312
303
|
ia as getArgentAccountClassHashesWithTxV3Support,
|
|
313
304
|
ca as getArgentAccountWithMultiSignerClassHashes,
|
|
314
305
|
We as getArgentNetwork,
|
|
315
306
|
_a as getBackendTimeNowSeconds,
|
|
316
|
-
|
|
307
|
+
Ha as getBackendTimeSeconds,
|
|
317
308
|
Le as getCallFromStarkName,
|
|
318
309
|
Ue as getChainIdFromNetworkId,
|
|
319
|
-
|
|
310
|
+
Zm as getColor,
|
|
320
311
|
yt as getCurrencySymbol,
|
|
321
312
|
za as getDapplandLinkForDapp,
|
|
322
313
|
Ka as getDapplandUrlForDapp,
|
|
323
|
-
|
|
324
|
-
An as
|
|
325
|
-
bn as getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2,
|
|
326
|
-
Hm as getInitials,
|
|
314
|
+
hm as getEstimatedFeeFromSimulationAndRespectWatermarkFeeV2,
|
|
315
|
+
An as getInitials,
|
|
327
316
|
Sa as getLastCairo0ArgentAccountClassHash,
|
|
328
317
|
da as getLatestArgentAccountClassHash,
|
|
329
318
|
pa as getLatestArgentMultisigClassHash,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
319
|
+
ha as getLatestLedgerAccountClassHash,
|
|
320
|
+
la as getLedgerAccountClassHashes,
|
|
321
|
+
jo as getMessageFromTrpcError,
|
|
322
|
+
lm as getNativeEstimatedFeeByFeeToken,
|
|
323
|
+
fm as getNativeEstimatedFeeByTxVersion,
|
|
324
|
+
um as getNativeEstimatedFeeForAccount,
|
|
325
|
+
Am as getNativeEstimatedFees,
|
|
326
|
+
gm as getNativeFeeFromSimulation,
|
|
327
|
+
xm as getNativeFeeTokenAddress,
|
|
328
|
+
Qm as getNetworkAccountImageUrl,
|
|
329
|
+
nr as getNftPicture,
|
|
330
|
+
Bm as getPayloadFromTransaction,
|
|
331
|
+
Tm as getPaymasterFeeFromSimulation,
|
|
332
|
+
vm as getPrettyRpcError,
|
|
344
333
|
Ir as getSignerForMultiSigner,
|
|
345
|
-
|
|
346
|
-
He as getStarknetIdContractAddressFromNetworkId,
|
|
334
|
+
Oe as getStarknetIdContractAddressFromNetworkId,
|
|
347
335
|
at as getTokenBalance,
|
|
348
336
|
rt as getTokens,
|
|
349
337
|
tt as getTokensBalances,
|
|
350
|
-
jn as getTxVersionForDeclareContract,
|
|
351
|
-
Xn as getTxVersionFromFeeToken,
|
|
352
|
-
Yn as getTxVersionFromFeeTokenForDeclareContract,
|
|
353
338
|
yr as getUAParserResult,
|
|
354
|
-
|
|
355
|
-
|
|
339
|
+
Hn as getUint256CalldataFromBN,
|
|
340
|
+
j as getValidChecksumAddressSchema,
|
|
356
341
|
Y as getValidateAddressRangeSchema,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
Vm as id,
|
|
342
|
+
pn as hexSchema,
|
|
343
|
+
hn as hexSchemaBase,
|
|
344
|
+
fn as id,
|
|
361
345
|
Je as implementationSchema,
|
|
362
346
|
Z as includesAddress,
|
|
363
347
|
Mo as inputAmountSchema,
|
|
364
|
-
|
|
365
|
-
|
|
348
|
+
Or as investmentMetaSchema,
|
|
349
|
+
Vr as investmentSchema,
|
|
366
350
|
Mr as investmentsResponseSchema,
|
|
367
351
|
p as isAccountV4,
|
|
368
|
-
|
|
369
|
-
|
|
352
|
+
h as isAccountV5,
|
|
353
|
+
l as isAccountV6,
|
|
370
354
|
Q as isAddress,
|
|
371
|
-
|
|
372
|
-
|
|
355
|
+
yn as isAllowedAddressHexInputValue,
|
|
356
|
+
Dn as isAllowedNumericInputValue,
|
|
373
357
|
k as isArgentBackendNetworkId,
|
|
374
358
|
xe as isArgentName,
|
|
375
359
|
C as isArgentNetworkId,
|
|
@@ -379,131 +363,126 @@ export {
|
|
|
379
363
|
Dr as isChromeBrowser,
|
|
380
364
|
wo as isCollateralizedDebtPosition,
|
|
381
365
|
_o as isConcentratedLiquidityPosition,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
366
|
+
xn as isContractDeployed,
|
|
367
|
+
Ho as isDelegatedTokens,
|
|
368
|
+
vr as isEdgeBrowser,
|
|
385
369
|
$ as isEqualAddress,
|
|
386
370
|
Te as isEqualArgentName,
|
|
387
371
|
oa as isEqualImplementation,
|
|
388
372
|
Se as isEqualStarknetDomainName,
|
|
389
373
|
ua as isEqualStarknetId,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
Rr as isSafariBrowser,
|
|
374
|
+
Sn as isFeatureEnabled,
|
|
375
|
+
Pr as isFirefoxBrowser,
|
|
376
|
+
Pn as isNumeric,
|
|
377
|
+
Nr as isSafariBrowser,
|
|
395
378
|
Lo as isStaking,
|
|
396
379
|
de as isStarknetDomainName,
|
|
397
|
-
|
|
398
|
-
|
|
380
|
+
Aa as isStarknetId,
|
|
381
|
+
Oo as isStrkDelegatedStaking,
|
|
399
382
|
ut as isUnlimitedAmount,
|
|
400
383
|
ee as isValidAddress,
|
|
401
384
|
ae as isValidHexString,
|
|
402
385
|
Wo as isValidInputAmount,
|
|
403
|
-
Cn as isWEI,
|
|
404
386
|
re as isZeroAddress,
|
|
405
387
|
Ua as knownDappSchema,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
388
|
+
Ga as knownDappsSchema,
|
|
389
|
+
Is as legacyContractClassSchema,
|
|
390
|
+
ws as legacyEventSchema,
|
|
409
391
|
Wr as lendingInvestmentSchema,
|
|
410
392
|
Ur as liquidStakingInvestmentSchema,
|
|
411
|
-
|
|
393
|
+
ms as looseCalldataSchema,
|
|
412
394
|
Jr as mergeArrayStableWith,
|
|
413
395
|
_r as mergeOwnerGuardianSignatures,
|
|
414
396
|
$o as modifySnjsFeeOverhead,
|
|
415
|
-
|
|
416
|
-
yn as multiplyBigIntByFloat,
|
|
397
|
+
ns as multiTypeSchema,
|
|
417
398
|
Za as nameProviderResolutionSchema,
|
|
418
399
|
Qa as nameResolutionAddressSchema,
|
|
419
400
|
Ja as nameResolutionAddressesSchema,
|
|
420
401
|
$a as nameResolutionStarknetIdSchema,
|
|
421
402
|
er as nameResolutionStarknetIdsSchema,
|
|
422
|
-
|
|
403
|
+
kn as nonNullable,
|
|
423
404
|
te as normalizeAddress,
|
|
424
405
|
oe as normalizeAddressForCompare,
|
|
425
406
|
pe as normalizeAddressOrDomain,
|
|
426
407
|
ke as normalizeArgentName,
|
|
427
|
-
|
|
428
|
-
|
|
408
|
+
ga as normalizeStarknetId,
|
|
409
|
+
hr as onchainRecoverySchema,
|
|
429
410
|
$r as optionsWithDefaults,
|
|
430
411
|
Uo as parseAmount,
|
|
431
|
-
|
|
432
|
-
|
|
412
|
+
Ln as parseAmountValue,
|
|
413
|
+
Vn as pluralise,
|
|
433
414
|
Ia as postData,
|
|
434
415
|
u as preferencesEndpointPayload,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
416
|
+
A as preferencesSchema,
|
|
417
|
+
Rn as prettifyCurrencyNumber,
|
|
418
|
+
gt as prettifyCurrencyValue,
|
|
419
|
+
bn as prettifyNumber,
|
|
420
|
+
Fn as prettifyNumberConfig,
|
|
440
421
|
kt as prettifyTokenAmount,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
422
|
+
Bn as prettifyTokenNumber,
|
|
423
|
+
ho as productGroupsSchema,
|
|
424
|
+
_s as programSchema,
|
|
444
425
|
ar as providersNamesSchema,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
426
|
+
Hs as pythonicHintsSchema,
|
|
427
|
+
ss as rawArgsArraySchema,
|
|
428
|
+
is as rawArgsObjectSchema,
|
|
429
|
+
cs as rawArgsSchema,
|
|
430
|
+
Wn as readFileAsString,
|
|
431
|
+
lr as recoveryBaseSchema,
|
|
451
432
|
fr as recoveryBodySchema,
|
|
452
433
|
ur as recoveryStatusSchema,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
434
|
+
Ss as removeOwnersCalldataSchema,
|
|
435
|
+
ds as removePluginCalldataSchema,
|
|
436
|
+
ps as replaceSignerCalldataSchema,
|
|
456
437
|
Zr as replaceValueRecursively,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
438
|
+
Zs as retryUntilInitialised,
|
|
439
|
+
zn as safeParseAndWarn,
|
|
440
|
+
br as seedphraseSchema,
|
|
441
|
+
Ls as sierraContractEntryPointFieldsSchema,
|
|
442
|
+
Os as sierraEntryPointsByTypeSchema,
|
|
443
|
+
Vs as sierraProgramDebugInfoSchema,
|
|
444
|
+
Gr as stakerInfoSchema,
|
|
445
|
+
qr as stakingActionSchema,
|
|
446
|
+
lo as stakingPositionSchema,
|
|
466
447
|
fo as stakingPositionsSchema,
|
|
467
|
-
|
|
468
|
-
|
|
448
|
+
Ve as starkNameToCallDataDomain,
|
|
449
|
+
he as starknetDomainNameSchema,
|
|
469
450
|
xa as starknetIdSchema,
|
|
470
|
-
|
|
471
|
-
|
|
451
|
+
Ar as startOnchainRecoveryErrorSchema,
|
|
452
|
+
gr as startOnchainRecoveryErrorStatusSchema,
|
|
472
453
|
xr as startOnchainRecoverySchema,
|
|
473
|
-
|
|
474
|
-
|
|
454
|
+
Kn as stringToBooleanSchema,
|
|
455
|
+
Jm as stripAddressZeroPadding,
|
|
475
456
|
zr as strkDelegatedStakingInvestmentSchema,
|
|
476
457
|
uo as strkDelegatedStakingPositionArraySchema,
|
|
477
|
-
|
|
458
|
+
Ao as strkDelegatedStakingPositionSchema,
|
|
478
459
|
Kr as strkStakingCalldataResponseSchema,
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
ws as transferCalldataSchema,
|
|
460
|
+
Xr as strkStakingCalldataSchema,
|
|
461
|
+
Ms as structAbiSchema,
|
|
462
|
+
km as toMaxFeeEstimation,
|
|
463
|
+
Wm as transactionExecutionResponseSchema,
|
|
464
|
+
Um as transactionPromotionPrizeSchema,
|
|
465
|
+
Gm as transactionPromotionSchema,
|
|
466
|
+
om as transactionReviewTransactionsSchema,
|
|
467
|
+
bm as transactionReviewWarningSchema,
|
|
468
|
+
hs as transferCalldataSchema,
|
|
489
469
|
Yo as trpcErrorSchema,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
470
|
+
Hm as txVersionSchema,
|
|
471
|
+
ls as typedDataSchema,
|
|
472
|
+
fs as uint256Schema,
|
|
493
473
|
Co as unclaimedRewardsSchema,
|
|
494
|
-
|
|
495
|
-
di as urlWithQuery,
|
|
474
|
+
qs as urlWithQuery,
|
|
496
475
|
ot as useToken,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
476
|
+
me as validChecksumAddressSchema,
|
|
477
|
+
ne as validateAddressRangeSchema,
|
|
478
|
+
Ks as voidify,
|
|
500
479
|
Eo as webBaseTokenSchema,
|
|
501
480
|
Do as webBaseTokenWithBalanceSchema,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
481
|
+
vo as webTokenInfoDetailsSchema,
|
|
482
|
+
Po as webTokenPriceDetailsSchema,
|
|
483
|
+
No as webTokenSchema,
|
|
484
|
+
Ro as webTokenWithBalanceAndPriceSchema,
|
|
485
|
+
bo as webTokenWithBalanceSchema,
|
|
486
|
+
Fo as webTokenWithPriceSchema,
|
|
508
487
|
Bo as webTokensWithBalanceAndPriceSchema
|
|
509
488
|
};
|