@argent/x-shared 1.38.1 → 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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +286 -277
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.d.ts +1660 -52
- package/dist/src/features/simulation/activity/schema.js +68 -49
- package/dist/src/features/swap/models/quote.model.d.ts +4 -4
- package/dist/src/features/swap/models/trade.model.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/staking/index.d.ts +1 -0
- package/dist/src/staking/schema.cjs +1 -0
- package/dist/src/staking/schema.d.ts +3027 -0
- package/dist/src/staking/schema.js +137 -0
- package/dist/src/tokens/service/implementation.d.ts +4 -4
- package/dist/src/tokens/service/types/backend.model.d.ts +164 -164
- package/dist/src/tokens/service/types/defiPosition.model.d.ts +210 -210
- package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
- package/dist/src/tokens/service/types/webToken.model.d.ts +8 -8
- package/dist/src/transactions/estimate/model.cjs +1 -1
- package/dist/src/transactions/estimate/model.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import * as e from "./src/bigdecimal/index.js";
|
|
2
|
-
import { BaseError as
|
|
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
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
|
|
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
|
|
12
|
+
import { cairoVersionSchema as te } from "./src/chains/starknet/cairoVersionSchema.js";
|
|
13
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
|
|
19
|
-
import { constructorCallDataSchemaC0 as
|
|
20
|
-
import { buildConstructorCalldata as
|
|
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
|
|
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
28
|
import { fetchData as ir, fetcherError as Sr, postData as dr } from "./src/http/fetcher.js";
|
|
@@ -31,72 +31,73 @@ import { KnownDappsBackendService as ur } from "./src/knownDapps/KnownDappsBacke
|
|
|
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
|
|
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
|
|
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
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 {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
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 {
|
|
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
|
-
|
|
108
|
-
|
|
108
|
+
t as BaseError,
|
|
109
|
+
ve as C0_PROXY_CONTRACT_CLASS_HASHES,
|
|
109
110
|
C as CacheService,
|
|
110
|
-
|
|
111
|
+
va as DEFAULT_TOKEN_DECIMALS,
|
|
111
112
|
$e as DateService,
|
|
112
|
-
|
|
113
|
+
no as ESTIMATE_ERROR_MESSAGES,
|
|
113
114
|
me as ETH_TOKEN_ADDRESS,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
|
|
132
|
+
Ka as TOKEN_ERROR_MESSAGES,
|
|
132
133
|
se as TXV1_ACCOUNT_CLASS_HASH,
|
|
133
134
|
ie as TXV1_MULTISIG_CLASS_HASH,
|
|
134
135
|
Se as TXV3_ACCOUNT_CLASS_HASH,
|
|
135
136
|
de as TXV3_MULTISIG_CLASS_HASH,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
143
|
-
|
|
143
|
+
en as addOwnersCalldataSchema,
|
|
144
|
+
rn as addPluginCalldataSchema,
|
|
144
145
|
Y as addressInputCharactersAndLengthSchema,
|
|
145
146
|
Z as addressInputSchema,
|
|
146
147
|
U as addressOrDomainInputSchema,
|
|
@@ -149,119 +150,121 @@ export {
|
|
|
149
150
|
E as addressSchema,
|
|
150
151
|
D as addressSchemaArgentBackend,
|
|
151
152
|
R as addressSchemaBase,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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,
|
|
177
178
|
le as apiWalletResponseSchema,
|
|
178
179
|
u as argentBackendNetworkIdSchema,
|
|
179
|
-
|
|
180
|
+
to as argentMaxFee,
|
|
180
181
|
J as argentNameSchema,
|
|
181
182
|
A as argentNetworkIdSchema,
|
|
182
183
|
e as bigDecimal,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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,
|
|
219
222
|
xr as dappContractSchema,
|
|
220
223
|
Tr as dappLinkSchema,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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,
|
|
238
241
|
Lr as equalNft,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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,
|
|
253
256
|
ir as fetchData,
|
|
254
257
|
Sr as fetcherError,
|
|
255
258
|
_e as findImplementationForAccount,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
_o as findTransfersAndApprovals,
|
|
260
|
+
em as formatAddress,
|
|
261
|
+
F as formatFullAddress,
|
|
262
|
+
P as formatTruncatedAddress,
|
|
260
263
|
b as formatTruncatedSignerKey,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
264
|
+
I as formatTruncatedString,
|
|
265
|
+
Ln as functionAbiSchema,
|
|
266
|
+
On as functionAbiTypeSchema,
|
|
267
|
+
om as generateAvatarImage,
|
|
265
268
|
we as getAccountContractAddress,
|
|
266
269
|
He as getAccountDeploymentPayload,
|
|
267
270
|
he as getAddressFromArgentName,
|
|
@@ -273,152 +276,158 @@ export {
|
|
|
273
276
|
hr as getBackendTimeSeconds,
|
|
274
277
|
Ae as getCallFromStarkName,
|
|
275
278
|
Ce as getChainIdFromNetworkId,
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
mm as getColor,
|
|
280
|
+
Ua as getCurrencySymbol,
|
|
278
281
|
yr as getDapplandLinkForDapp,
|
|
279
282
|
Er as getDapplandUrlForDapp,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
ko as getEstimatedFeeFromBulkSimulation,
|
|
284
|
+
yo as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
|
|
285
|
+
Dm as getInitials,
|
|
283
286
|
Ue as getLastCairo0ArgentAccountClassHash,
|
|
284
287
|
qe as getLatestArgentAccountClassHash,
|
|
285
288
|
Ge as getLatestArgentMultisigClassHash,
|
|
286
289
|
ze as getLatestLedgerAccountClassHash,
|
|
287
290
|
Ke as getLedgerAccountClassHashes,
|
|
288
|
-
|
|
289
|
-
|
|
291
|
+
$t as getMessageFromTrpcError,
|
|
292
|
+
nm as getNetworkAccountImageUrl,
|
|
290
293
|
Or as getNftPicture,
|
|
291
|
-
|
|
292
|
-
|
|
294
|
+
Eo as getPayloadFromTransaction,
|
|
295
|
+
Ho as getPrettyRpcError,
|
|
293
296
|
da as getSignerForMultiSigner,
|
|
294
|
-
|
|
297
|
+
Oo as getSimulationTxVersionFromFeeToken,
|
|
295
298
|
xe as getStarknetIdContractAddressFromNetworkId,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
ka as getTokenBalance,
|
|
300
|
+
ya as getTokens,
|
|
301
|
+
Ea as getTokensBalances,
|
|
302
|
+
Vo as getTxVersionFromFeeToken,
|
|
303
|
+
Mo as getTxVersionFromFeeTokenForDeclareContract,
|
|
301
304
|
ra as getUAParserResult,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
Um as getUint256CalldataFromBN,
|
|
306
|
+
Do as getWatermarkedMaxFeeTotal,
|
|
307
|
+
gm as hexSchema,
|
|
308
|
+
Cm as hexSchemaBase,
|
|
309
|
+
ym as id,
|
|
307
310
|
be as implementationSchema,
|
|
308
|
-
|
|
309
|
-
|
|
311
|
+
B as includesAddress,
|
|
312
|
+
zt as inputAmountSchema,
|
|
313
|
+
fa as investmentMetaSchema,
|
|
314
|
+
ua as investmentSchema,
|
|
315
|
+
Aa as investmentsResponseSchema,
|
|
310
316
|
i as isAccountV4,
|
|
311
317
|
S as isAccountV5,
|
|
312
318
|
d as isAccountV6,
|
|
313
319
|
_ as isAddress,
|
|
314
|
-
|
|
315
|
-
|
|
320
|
+
bm as isAllowedAddressHexInputValue,
|
|
321
|
+
Bm as isAllowedNumericInputValue,
|
|
316
322
|
x as isArgentBackendNetworkId,
|
|
317
323
|
$ as isArgentName,
|
|
318
324
|
T as isArgentNetworkId,
|
|
319
325
|
$r as isBraveBrowser,
|
|
320
326
|
aa as isBrowser,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
327
|
+
ta as isChromeBrowser,
|
|
328
|
+
vm as isContractDeployed,
|
|
329
|
+
oa as isEdgeBrowser,
|
|
324
330
|
w as isEqualAddress,
|
|
325
331
|
ee as isEqualArgentName,
|
|
326
332
|
Le as isEqualImplementation,
|
|
327
333
|
G as isEqualStarknetDomainName,
|
|
328
334
|
Xe as isEqualStarknetId,
|
|
329
|
-
|
|
330
|
-
|
|
335
|
+
Ro as isFRI,
|
|
336
|
+
xm as isFeatureEnabled,
|
|
331
337
|
ma as isFirefoxBrowser,
|
|
332
|
-
|
|
338
|
+
wm as isNumeric,
|
|
333
339
|
na as isSafariBrowser,
|
|
334
340
|
z as isStarknetDomainName,
|
|
335
341
|
Ye as isStarknetId,
|
|
336
|
-
|
|
342
|
+
wa as isUnlimitedAmount,
|
|
337
343
|
H as isValidAddress,
|
|
338
|
-
|
|
339
|
-
|
|
344
|
+
Kt as isValidInputAmount,
|
|
345
|
+
vo as isWEI,
|
|
340
346
|
L as isZeroAddress,
|
|
341
347
|
gr as knownDappSchema,
|
|
342
348
|
Cr as knownDappsSchema,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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,
|
|
352
359
|
br as nameResolutionStarknetIdSchema,
|
|
353
|
-
|
|
354
|
-
|
|
360
|
+
Ir as nameResolutionStarknetIdsSchema,
|
|
361
|
+
Fm as nonNullable,
|
|
355
362
|
O as normalizeAddress,
|
|
356
363
|
K as normalizeAddressOrDomain,
|
|
357
364
|
re as normalizeArgentName,
|
|
358
365
|
Ze as normalizeStarknetId,
|
|
359
366
|
zr as onchainRecoverySchema,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
367
|
+
jt as parseAmount,
|
|
368
|
+
qm as parseAmountValue,
|
|
369
|
+
zm as pluralise,
|
|
363
370
|
dr as postData,
|
|
364
371
|
l as preferencesEndpointPayload,
|
|
365
372
|
h as preferencesSchema,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
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,
|
|
380
387
|
Kr as recoveryBaseSchema,
|
|
381
388
|
jr as recoveryBodySchema,
|
|
382
389
|
Xr as recoveryStatusSchema,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
390
|
+
An as removeOwnersCalldataSchema,
|
|
391
|
+
xn as removePluginCalldataSchema,
|
|
392
|
+
Tn as replaceSignerCalldataSchema,
|
|
393
|
+
Qm as safeParseAndWarn,
|
|
387
394
|
sa as seedphraseSchema,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
395
|
+
qn as sierraContractEntryPointFieldsSchema,
|
|
396
|
+
Gn as sierraEntryPointsByTypeSchema,
|
|
397
|
+
zn as sierraProgramDebugInfoSchema,
|
|
398
|
+
Ta as stakingInvestmentSchema,
|
|
391
399
|
Te as starkNameToCallDataDomain,
|
|
392
400
|
j as starknetDomainNameSchema,
|
|
393
401
|
Qe as starknetIdSchema,
|
|
394
402
|
Yr as startOnchainRecoveryErrorSchema,
|
|
395
403
|
Zr as startOnchainRecoveryErrorStatusSchema,
|
|
396
404
|
Qr as startOnchainRecoverySchema,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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,
|
|
412
421
|
V as validChecksumAddressSchema,
|
|
413
422
|
M as validateAddressRangeSchema,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
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
|
|
424
433
|
};
|