@argent/x-shared 1.33.3 → 1.33.4

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 (127) hide show
  1. package/dist/account/account.model.d.ts +0 -1
  2. package/dist/account/accountv4.d.ts +0 -1
  3. package/dist/account/preferences.model.d.ts +0 -1
  4. package/dist/backend/schema.d.ts +0 -1
  5. package/dist/bigdecimal/constants.d.ts +0 -1
  6. package/dist/bigdecimal/createUnitsSchema.d.ts +0 -1
  7. package/dist/bigdecimal/formatUnits.d.ts +0 -1
  8. package/dist/bigdecimal/lib.d.ts +0 -1
  9. package/dist/bigdecimal/parseUnits.d.ts +0 -1
  10. package/dist/bigdecimal/utils.d.ts +0 -1
  11. package/dist/cache/CacheService.d.ts +0 -1
  12. package/dist/chains/starknet/address.d.ts +0 -1
  13. package/dist/chains/starknet/addressDomain.d.ts +0 -1
  14. package/dist/chains/starknet/addressInput.d.ts +0 -1
  15. package/dist/chains/starknet/argentName.d.ts +0 -1
  16. package/dist/chains/starknet/cairoVersionSchema.d.ts +0 -1
  17. package/dist/chains/starknet/getAddressFromArgentName.d.ts +0 -1
  18. package/dist/chains/starknet/getAddressFromStarkName.d.ts +0 -1
  19. package/dist/chains/starknet/network.d.ts +0 -1
  20. package/dist/chains/starknet/services/address/IStarknetAddressService.d.ts +0 -1
  21. package/dist/chains/starknet/services/address/StarknetAddressService.d.ts +0 -1
  22. package/dist/chains/starknet/services/deploymentData/deploymentData.schema.d.ts +0 -1
  23. package/dist/chains/starknet/services/deploymentData/findImplementationForAccount.d.ts +0 -1
  24. package/dist/chains/starknet/starknetId.d.ts +0 -1
  25. package/dist/errors/account.d.ts +0 -1
  26. package/dist/errors/address.d.ts +0 -1
  27. package/dist/errors/baseErrors.d.ts +0 -1
  28. package/dist/errors/call.d.ts +0 -1
  29. package/dist/errors/network.d.ts +0 -1
  30. package/dist/errors/review.d.ts +0 -1
  31. package/dist/features/simulation/activity/normalize.d.ts +0 -1
  32. package/dist/features/simulation/activity/schema.d.ts +0 -1
  33. package/dist/features/simulation/activity/utils/createNativeActivity.d.ts +0 -1
  34. package/dist/features/simulation/activity/utils/getAnyActivityTitle.d.ts +0 -1
  35. package/dist/features/simulation/activity/utils/getOverallLastModified.d.ts +0 -1
  36. package/dist/features/simulation/activity/utils/hasDelegationActivity.d.ts +0 -1
  37. package/dist/features/simulation/activity/utils/isMulticallWithDeploymentActivity.d.ts +0 -1
  38. package/dist/features/simulation/activity/utils/isRejectOnChainActivity.d.ts +0 -1
  39. package/dist/features/simulation/activity/utils/isUpgradeActivity.d.ts +0 -1
  40. package/dist/features/simulation/activity/utils/parseAccountActivities.d.ts +0 -1
  41. package/dist/features/simulation/activity/utils/parseFinanceActivities.d.ts +0 -1
  42. package/dist/features/simulation/fees/schema.d.ts +0 -1
  43. package/dist/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.d.ts +0 -1
  44. package/dist/features/simulation/transactionReview/getMessageFromSimulationError.d.ts +0 -1
  45. package/dist/features/simulation/transactionReview/schema.d.ts +0 -1
  46. package/dist/features/simulation/warning/helper.d.ts +0 -1
  47. package/dist/features/simulation/warning/schema.d.ts +0 -1
  48. package/dist/http/DateService.d.ts +0 -1
  49. package/dist/http/HttpError.d.ts +0 -1
  50. package/dist/http/HttpService.d.ts +0 -1
  51. package/dist/http/IHttpService.d.ts +0 -1
  52. package/dist/http/SWRService.d.ts +0 -1
  53. package/dist/http/swr.d.ts +0 -1
  54. package/dist/knownDapps/IKnownDappsBackendService.d.ts +0 -1
  55. package/dist/knownDapps/KnownDappsBackendService.d.ts +0 -1
  56. package/dist/knownDapps/schema.d.ts +0 -1
  57. package/dist/knownDapps/utils/getDapplandUrl.d.ts +0 -1
  58. package/dist/nameResolution/IResolveNameService.d.ts +0 -1
  59. package/dist/nameResolution/ResolveNameService.d.ts +0 -1
  60. package/dist/nameResolution/schema.d.ts +0 -1
  61. package/dist/nfts/BackendNftService.d.ts +0 -1
  62. package/dist/nfts/INFTService.d.ts +0 -1
  63. package/dist/nfts/useNfts.d.ts +0 -1
  64. package/dist/nfts/utils.d.ts +0 -1
  65. package/dist/onchainRecovery/IOnchainRecoveryService.d.ts +0 -1
  66. package/dist/onchainRecovery/OnchainRecoveryService.d.ts +0 -1
  67. package/dist/onchainRecovery/schema.d.ts +0 -1
  68. package/dist/platform/isBrowser.d.ts +0 -1
  69. package/dist/providers/WebAmplitude/WebAmplitudeProvider.d.ts +0 -1
  70. package/dist/providers/WebAmplitude/service.d.ts +0 -1
  71. package/dist/providers/WebAmplitude/types.d.ts +0 -1
  72. package/dist/providers/WebAmplitude/utils.d.ts +0 -1
  73. package/dist/signer/multisigner.d.ts +0 -1
  74. package/dist/signer/seedphrase.d.ts +0 -1
  75. package/dist/simulation.d.ts +1 -0
  76. package/dist/tokens/balances.d.ts +0 -1
  77. package/dist/tokens/convertTokenAmountToCurrencyValue.d.ts +0 -1
  78. package/dist/tokens/convertTokenUnitAmountWithDecimals.d.ts +0 -1
  79. package/dist/tokens/isUnlimitedAmount.d.ts +0 -1
  80. package/dist/tokens/prettifyCurrencyValue.d.ts +0 -1
  81. package/dist/tokens/prettifyTokenAmount.d.ts +0 -1
  82. package/dist/tokens/service/implementation.d.ts +0 -1
  83. package/dist/tokens/service/interface.d.ts +0 -1
  84. package/dist/tokens/service/tokenError.d.ts +0 -1
  85. package/dist/tokens/service/types/backend.model.d.ts +0 -1
  86. package/dist/tokens/service/types/defiPosition.model.d.ts +0 -1
  87. package/dist/tokens/service/types/defiPositionType.model.d.ts +0 -1
  88. package/dist/tokens/service/types/token.model.d.ts +0 -1
  89. package/dist/tokens/service/types/unclaimedRewards.model.d.ts +0 -1
  90. package/dist/tokens/token.d.ts +0 -1
  91. package/dist/transactions/aggregatedSimDataTypes.d.ts +0 -1
  92. package/dist/transactions/amount.d.ts +0 -1
  93. package/dist/transactions/deployAccountTypes.d.ts +0 -1
  94. package/dist/transactions/errors.d.ts +0 -1
  95. package/dist/transactions/estimate/argentMaxFee.d.ts +0 -1
  96. package/dist/transactions/estimate/error.d.ts +0 -1
  97. package/dist/transactions/estimate/model.d.ts +0 -1
  98. package/dist/transactions/estimate/utils.d.ts +0 -1
  99. package/dist/transactions/findTransfersAndApprovals.d.ts +0 -1
  100. package/dist/transactions/getTransactionVersion.d.ts +0 -1
  101. package/dist/transactions/service/implementation.d.ts +0 -1
  102. package/dist/transactions/service/interface.d.ts +0 -1
  103. package/dist/transactions/service/types.d.ts +0 -1
  104. package/dist/transactions/transactionAction.d.ts +0 -1
  105. package/dist/transactions/transactionReviewTypes.d.ts +0 -1
  106. package/dist/transactions/transactionSimulationTypes.d.ts +0 -1
  107. package/dist/transactions/transactionVersion.d.ts +0 -1
  108. package/dist/transactions/txv3.d.ts +0 -1
  109. package/dist/transactions/types.d.ts +0 -1
  110. package/dist/transactions/useBalanceChange.d.ts +0 -1
  111. package/dist/transactions/useErc20Transactions.d.ts +0 -1
  112. package/dist/transactions/useErc721Transactions.d.ts +0 -1
  113. package/dist/transactions/useErc721Transfers.d.ts +0 -1
  114. package/dist/transactions/useMaxAmountTransaction.d.ts +0 -1
  115. package/dist/transactions/useTransactionReview.d.ts +0 -1
  116. package/dist/transactions/useTransactionReviewV2web.d.ts +0 -1
  117. package/dist/utils/base58.d.ts +0 -1
  118. package/dist/utils/bigNumber.d.ts +0 -1
  119. package/dist/utils/hex.d.ts +0 -1
  120. package/dist/utils/isContractDeployed.d.ts +0 -1
  121. package/dist/utils/number/prettifyNumber.d.ts +0 -1
  122. package/dist/utils/parseAmount.d.ts +0 -1
  123. package/dist/utils/schemas.d.ts +0 -1
  124. package/dist/utils/starknet/starknet.d.ts +0 -1
  125. package/dist/utils/starknet/starknetSchemas.d.ts +0 -1
  126. package/dist/utils/useEventEmitter.d.ts +0 -1
  127. package/package.json +5 -5
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const BackendAccountSchema: z.ZodObject<{
4
3
  name: z.ZodOptional<z.ZodString>;
5
4
  address: z.ZodString;
@@ -1,7 +1,6 @@
1
1
  import { Account } from 'starknet';
2
2
  import { Account as AccountV4__deprecated } from 'starknet4-deprecated';
3
3
  import { Account as AccountV5 } from 'starknet5';
4
-
5
4
  export declare function isAccountV6(account: any): account is Account;
6
5
  export declare function isAccountV5(account: any): account is AccountV5;
7
6
  export declare function isAccountV4(account: any): account is AccountV4__deprecated;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const preferencesSchema: z.ZodObject<{
4
3
  value: z.ZodString;
5
4
  platform: z.ZodNullable<z.ZodEnum<["ios", "argentx", "android", "webwallet"]>>;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const argentNetworkIdSchema: z.ZodEnum<["mainnet-alpha", "sepolia-alpha"]>;
4
3
  export declare const argentBackendNetworkIdSchema: z.ZodEnum<["mainnet", "sepolia"]>;
5
4
  export type ArgentNetworkId = z.infer<typeof argentNetworkIdSchema>;
@@ -1,3 +1,2 @@
1
1
  import { BigDecimal } from './types';
2
-
3
2
  export declare const ONE: BigDecimal;
@@ -1,3 +1,2 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare function createUnitsSchema(decimals: number): z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import('./types').BigDecimal, string>;
@@ -1,5 +1,4 @@
1
1
  import { BigDecimal } from './types';
2
-
3
2
  /**
4
3
  * Formats a BigInt value to a string with a given number of decimal places.
5
4
  *
@@ -1,5 +1,4 @@
1
1
  import { BigDecimal } from './types';
2
-
3
2
  export declare const toFixedDecimals: (amount: BigDecimal, decimals: number) => BigDecimal;
4
3
  export declare const toTiniestPossibleDecimal: (amount: BigDecimal) => BigDecimal;
5
4
  export declare const add: (a: BigDecimal, b: BigDecimal) => BigDecimal;
@@ -1,5 +1,4 @@
1
1
  import { BigDecimal } from './types';
2
-
3
2
  /**
4
3
  * Parses a string value representing a number to a BigInt, with a specified number of decimals.
5
4
  * If the fraction part of the string value is longer than the allowed decimal places, it rounds the value.
@@ -1,6 +1,5 @@
1
1
  import { BigNumberish } from 'starknet';
2
2
  import { BigDecimal } from './types';
3
-
4
3
  /**
5
4
  * Formats a BigInt representing wei into a string representing ether,
6
5
  * with a precision of 18 decimal places.
@@ -1,5 +1,4 @@
1
1
  import { ICacheService } from './ICacheService';
2
-
3
2
  export declare class CacheService implements ICacheService {
4
3
  private cachePromise;
5
4
  constructor(cacheName: string, cachesStorage: Pick<CacheStorage, "open" | "delete">);
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  import { Hex } from '../../utils/hex';
3
-
4
3
  export type TxHash = Hex;
5
4
  export type Address = Hex;
6
5
  export declare const validChecksumAddressSchema: z.ZodEffects<z.ZodString, string, string>;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const starknetDomainNameSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
4
3
  export type StarknetDomainName = z.infer<typeof starknetDomainNameSchema>;
5
4
  export declare const addressOrDomainSchema: z.ZodUnion<[z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>, z.ZodUnion<[z.ZodString, z.ZodString]>]>;
@@ -1,4 +1,3 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const addressInputCharactersAndLengthSchema: z.ZodString;
4
3
  export declare const addressInputSchema: z.ZodPipeline<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, z.ZodEffects<z.ZodString, string, string>>;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const argentNameSchema: z.ZodString;
4
3
  export type ArgentName = z.infer<typeof argentNameSchema>;
5
4
  export declare const isArgentName: (argentName?: string) => argentName is ArgentName;
@@ -1,3 +1,2 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const cairoVersionSchema: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>;
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { IHttpService } from '../../http';
3
3
  import { ArgentName } from './argentName';
4
-
5
4
  export declare const apiWalletResponseSchema: z.ZodUnion<[z.ZodObject<{
6
5
  walletAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
7
6
  ens: z.ZodString;
@@ -1,7 +1,6 @@
1
1
  import { MinimalProviderInterface } from '@argent/x-multicall';
2
2
  import { Call } from 'starknet';
3
3
  import { StarknetID } from './starknetId';
4
-
5
4
  export declare function starkNameToCallDataDomain(starkName: StarknetID): string[];
6
5
  export declare function getStarknetIdContractAddressFromNetworkId(networkId: string): string;
7
6
  export declare function getCallFromStarkName(starkName: StarknetID, networkId: string): Call;
@@ -1,4 +1,3 @@
1
1
  import { constants } from 'starknet';
2
2
  import { ArgentNetworkId } from '../../backend';
3
-
4
3
  export declare function getChainIdFromNetworkId(networkId: ArgentNetworkId | constants.NetworkName | string): constants.StarknetChainId;
@@ -1,6 +1,5 @@
1
1
  import { MinimalProviderInterface } from '@argent/x-multicall';
2
2
  import { Address, AddressOrDomain, StarknetDomainName } from '../..';
3
-
4
3
  export interface IStarknetAddressService {
5
4
  parseAddressOrDomain(addressOrDomain: AddressOrDomain, networkId: string, multicall: MinimalProviderInterface): Promise<Address>;
6
5
  getAddressFromDomainName(domain: StarknetDomainName, networkId: string, multicall: MinimalProviderInterface): Promise<Address>;
@@ -2,7 +2,6 @@ import { MinimalProviderInterface } from '@argent/x-multicall';
2
2
  import { StarknetDomainName } from '../..';
3
3
  import { IHttpService } from '../../../../http';
4
4
  import { IStarknetAddressService } from './IStarknetAddressService';
5
-
6
5
  type MinimalHttpService = Pick<IHttpService, "get">;
7
6
  export declare class StarknetAddressService implements IStarknetAddressService {
8
7
  readonly httpService: MinimalHttpService;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const implementationSchema: z.ZodObject<{
4
3
  cairoVersion: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>;
5
4
  accountClassHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
@@ -1,7 +1,6 @@
1
1
  import { CairoOption } from 'starknet';
2
2
  import { Hex } from '../../../../utils';
3
3
  import { Implementation } from './deploymentData.schema';
4
-
5
4
  export declare const isEqualImplementation: (a: Implementation, b: Implementation) => boolean;
6
5
  export type WalletAccount = {
7
6
  address: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  /**
4
3
  * https://docs.starknet.id/for-devs/encoding-algorithm#the-basic-alphabet
5
4
  *
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from './baseErrors';
2
-
3
2
  export declare enum ACCOUNT_ERROR_MESSAGES {
4
3
  NOT_FOUND = "Account not found",
5
4
  CALCULATED_ADDRESS_NO_MATCH = "Calculated address does not match account address"
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from './baseErrors';
2
-
3
2
  export declare enum ADDRESS_ERROR_MESSAGES {
4
3
  NOT_VALID = "Invalid address",
5
4
  NOT_FOUND = "Address not found",
@@ -1,5 +1,4 @@
1
1
  import { JsonArray, JsonObject } from 'type-fest';
2
-
3
2
  export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
4
3
  export interface BaseErrorPayload<T> {
5
4
  message?: string;
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from './baseErrors';
2
-
3
2
  export declare enum CALL_ERROR_MESSAGES {
4
3
  NOT_VALID = "Invalid call"
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from './baseErrors';
2
-
3
2
  export declare enum NETWORK_ERROR_MESSAGES {
4
3
  NO_NETWORK_OR_MULTICALL = "Missing networkId or multicall",
5
4
  NOT_FOUND = "Network not found"
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from './baseErrors';
2
-
3
2
  export declare enum REVIEW_ERROR_MESSAGE {
4
3
  SIMULATE_AND_REVIEW_FAILED = "Something went wrong fetching review",
5
4
  NO_CALLS_FOUND = "No calls found",
@@ -1,6 +1,5 @@
1
1
  import { SimulationSummary } from '..';
2
2
  import { ActivitySummary } from './schema';
3
-
4
3
  /**
5
4
  * Normalizes summary payload from backend simulation or activities API
6
5
  *
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const activityTransferSchema: z.ZodObject<{
4
3
  type: z.ZodEnum<["payment", "gasFee"]>;
5
4
  leg: z.ZodEnum<["credit", "debit"]>;
@@ -1,6 +1,5 @@
1
1
  import { SimulateAndReview } from '../../transactionReview';
2
2
  import { NativeActivity } from '../schema';
3
-
4
3
  export interface CreateNativeActivityProps extends Pick<NativeActivity, "status" | "submitted" | "lastModified" | "transaction" | "meta"> {
5
4
  simulateAndReview?: SimulateAndReview;
6
5
  }
@@ -1,4 +1,3 @@
1
1
  import { AnyActivity } from '../schema';
2
-
3
2
  export declare function getAnyActivityTitle(activity: AnyActivity, short?: boolean): string;
4
3
  export declare function getAnyActivityShortTitle(activity: AnyActivity): string;
@@ -1,5 +1,4 @@
1
1
  import { Activity } from '../schema';
2
-
3
2
  /**
4
3
  * Retrieves the overall last modified date across all provided activities.
5
4
  *
@@ -1,3 +1,2 @@
1
1
  import { Activity } from '../schema';
2
-
3
2
  export declare const hasDelegationActivity: (activity: Activity) => boolean;
@@ -1,3 +1,2 @@
1
1
  import { Activity } from '../schema';
2
-
3
2
  export declare const isMulticallWithDeploymentActivity: (activity: Activity) => boolean;
@@ -1,3 +1,2 @@
1
1
  import { AnyActivity } from '../schema';
2
-
3
2
  export declare function isRejectOnChainActivity(activity: AnyActivity): boolean;
@@ -1,3 +1,2 @@
1
1
  import { AnyActivity } from '../schema';
2
-
3
2
  export declare function isUpgradeActivity(activity: AnyActivity): boolean;
@@ -1,6 +1,5 @@
1
1
  import { Address } from '../../../../chains';
2
2
  import { Activity } from '../schema';
3
-
4
3
  interface ParseAccountActivitiesProps {
5
4
  activities: Activity[];
6
5
  accountAddressesOnNetwork: Address[];
@@ -1,6 +1,5 @@
1
1
  import { Address } from '../../../../chains';
2
2
  import { Activity } from '../schema';
3
-
4
3
  interface ParseFinanceActivitiesProps {
5
4
  activities: Activity[];
6
5
  accountAddressesOnNetwork: Address[];
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const estimatedFeeSchema: z.ZodObject<{
4
3
  feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
5
4
  amount: z.ZodBigInt;
@@ -1,5 +1,4 @@
1
1
  import { SimulateAndReview } from './schema';
2
-
3
2
  export declare function getErrorMessageAndLabelFromSimulation(simulateAndReview?: SimulateAndReview): {
4
3
  message: string | undefined;
5
4
  label: string | undefined;
@@ -1,3 +1,2 @@
1
1
  import { SimulationError } from './schema';
2
-
3
2
  export declare function getMessageFromSimulationError(simulationError: SimulationError): string;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const propertySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
3
  type: z.ZodLiteral<"amount">;
5
4
  label: z.ZodString;
@@ -1,3 +1,2 @@
1
1
  import { Warning } from '../transactionReview';
2
-
3
2
  export declare const getHighestSeverity: (warnings: Warning[]) => Warning | null;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const severitySchema: z.ZodUnion<[z.ZodLiteral<"critical">, z.ZodLiteral<"high">, z.ZodLiteral<"caution">, z.ZodLiteral<"info">]>;
4
3
  export declare const reasonsSchema: z.ZodString;
5
4
  export type Reason = z.infer<typeof reasonsSchema>;
@@ -1,6 +1,5 @@
1
1
  import { IDateService } from './IDateService';
2
2
  import { IHttpService } from './IHttpService';
3
-
4
3
  export declare class DateService implements IDateService {
5
4
  private readonly httpService;
6
5
  private readonly baseUrl;
@@ -1,5 +1,4 @@
1
1
  import { HTTP_ERROR_MESSAGE } from './IHttpService';
2
-
3
2
  export declare class HttpError extends Error {
4
3
  readonly status: number;
5
4
  readonly data?: unknown | undefined;
@@ -1,6 +1,5 @@
1
1
  import { ZodType } from 'zod';
2
2
  import { IHttpService } from './IHttpService';
3
-
4
3
  type ResponseType = "response" | "json";
5
4
  type AllowPromise<T> = T | Promise<T>;
6
5
  type CanBeFn<T = unknown> = T | (() => AllowPromise<T>);
@@ -1,5 +1,4 @@
1
1
  import { ZodType } from 'zod';
2
-
3
2
  export interface IHttpService {
4
3
  get<T>(url: string, options?: RequestInit): Promise<T>;
5
4
  post<T>(url: string, options?: RequestInit, validationSchema?: ZodType): Promise<T>;
@@ -1,7 +1,6 @@
1
1
  import { ICacheService } from '../cache';
2
2
  import { IDateService } from './IDateService';
3
3
  import { IHttpService } from './IHttpService';
4
-
5
4
  type SWROptions = {
6
5
  freshFor: number;
7
6
  staleFor: number;
@@ -1,5 +1,4 @@
1
1
  import { BareFetcher, Key, SWRConfiguration } from 'swr';
2
-
3
2
  export interface SWRConfigCommon {
4
3
  suspense?: boolean;
5
4
  refreshInterval?: number;
@@ -1,5 +1,4 @@
1
1
  import { KnownDapps } from './schema';
2
-
3
2
  export interface IKnownDappsBackendService {
4
3
  getAll(): Promise<KnownDapps>;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import { IKnownDappsBackendService } from './IKnownDappsBackendService';
2
2
  import { KnownDapp } from './schema';
3
-
4
3
  export declare class KnownDappsBackendService implements IKnownDappsBackendService {
5
4
  protected readonly apiBase: string;
6
5
  private readonly httpService;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const dappLinkSchema: z.ZodObject<{
4
3
  name: z.ZodEnum<["dappland", "discord", "github", "telegram", "twitter", "website"]>;
5
4
  url: z.ZodString;
@@ -1,5 +1,4 @@
1
1
  import { KnownDapp } from '../schema';
2
-
3
2
  export declare function getDapplandLinkForDapp(dapp?: KnownDapp): {
4
3
  name: "dappland" | "discord" | "github" | "telegram" | "twitter" | "website";
5
4
  url: string;
@@ -1,7 +1,6 @@
1
1
  import { ArgentBackendNetworkId } from '../backend';
2
2
  import { Address } from '../chains/starknet/address';
3
3
  import { NameResolutionAddress, NameResolutionStarknetId, NameResolutionStarknetIds, ProvidersNames } from './schema';
4
-
5
4
  /**
6
5
  * IResolveNameService interface
7
6
  */
@@ -1,7 +1,6 @@
1
1
  import { ArgentBackendNetworkId } from '../backend';
2
2
  import { Address } from '../chains/starknet/address';
3
3
  import { IResolveNameService } from './IResolveNameService';
4
-
5
4
  /**
6
5
  * ResolveNameService class implements IResolveNameService interface.
7
6
  */
@@ -1,5 +1,4 @@
1
1
  import { default as z } from 'zod';
2
-
3
2
  export declare const nameResolutionStarknetIdSchema: z.ZodObject<{
4
3
  domain: z.ZodString;
5
4
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
@@ -1,7 +1,6 @@
1
1
  import { ArgentBackendNetworkId } from '../backend';
2
2
  import { Address } from '../chains';
3
3
  import { Collection, NftItem, INFTService, PaginatedItems, PaginatedCollections } from './INFTService';
4
-
5
4
  export type BackendCollectionType = "erc721" | "erc1155" | "starknetErc721" | "starknetErc1155";
6
5
  interface ImageUrls {
7
6
  banner?: string;
@@ -1,6 +1,5 @@
1
1
  import { ArgentBackendNetworkId } from '../backend';
2
2
  import { Address } from '../chains';
3
-
4
3
  export interface Page<T> {
5
4
  page: number;
6
5
  totalPages: number;
@@ -3,7 +3,6 @@ import { Address } from '../chains';
3
3
  import { SWRConfigCommon } from '../http/swr';
4
4
  import { BackendNftService } from './BackendNftService';
5
5
  import { PaginatedItems } from './INFTService';
6
-
7
6
  export declare const useNfts: (nftService: BackendNftService, chain: string, network: ArgentBackendNetworkId, address?: Address, config?: SWRConfigCommon) => {
8
7
  error?: any;
9
8
  mutate: import('swr').KeyedMutator<PaginatedItems | undefined>;
@@ -1,4 +1,3 @@
1
1
  import { NftItem } from './INFTService';
2
-
3
2
  export declare const getNftPicture: ({ image_uri, image_url_copy, }: Pick<NftItem, "image_uri" | "image_url_copy">) => string | undefined;
4
3
  export declare const equalNft: (a: NftItem, b: NftItem) => boolean;
@@ -1,6 +1,5 @@
1
1
  import { Address } from '../chains/starknet/address';
2
2
  import { ActiveOnchainRecovery, OnchainRecovery, StartOnchainRecovery } from './schema';
3
-
4
3
  /**
5
4
  * IOnchainRecoveryService interface
6
5
  */
@@ -2,7 +2,6 @@ import { Address } from '../chains/starknet/address';
2
2
  import { IHttpService } from '../http';
3
3
  import { IOnchainRecoveryService } from './IOnchainRecoveryService';
4
4
  import { ActiveOnchainRecovery, OnchainRecovery, StartOnchainRecovery } from './schema';
5
-
6
5
  /**
7
6
  * RecoveryService class implements IRecoveryService interface.
8
7
  */
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare enum RecoveryStatusEnum {
4
3
  NOT_STARTED = "NOT_STARTED",
5
4
  ONGOING = "ONGOING",
@@ -1,5 +1,4 @@
1
1
  import { IResult } from 'ua-parser-js';
2
-
3
2
  export declare function getUAParserResult(): IResult;
4
3
  export declare function isBrowser(browserName?: string): boolean;
5
4
  export declare function isFirefoxBrowser(): boolean;
@@ -1,5 +1,4 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
-
3
2
  interface AmplitudeContextProviderProps extends PropsWithChildren {
4
3
  enabled: boolean;
5
4
  initialize: () => Promise<void>;
@@ -1,5 +1,4 @@
1
1
  import { AmplitudeInstance } from './types';
2
-
3
2
  interface AnalyticsServiceProps {
4
3
  enabled: boolean;
5
4
  appVersion: string;
@@ -1,5 +1,4 @@
1
1
  import { AmplitudeReturn as _AmplitudeReturn, Event, EventOptions, Result } from '@amplitude/analytics-types';
2
-
3
2
  export type AmplitudeReturn = _AmplitudeReturn<void | Result>;
4
3
  export interface AmplitudeInstance {
5
4
  isLoaded: boolean;
@@ -1,3 +1,2 @@
1
1
  import { AmplitudeReturn } from './types';
2
-
3
2
  export declare function getVoidPromiseResult(): AmplitudeReturn;
@@ -1,5 +1,4 @@
1
1
  import { CairoCustomEnum } from 'starknet';
2
-
3
2
  export declare enum MultiSigner {
4
3
  Starknet = "Starknet",
5
4
  Secp256k1 = "Secp256k1",
@@ -1,3 +1,2 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const seedphraseSchema: z.ZodEffects<z.ZodString, string, string>;
@@ -1 +1,2 @@
1
1
  export * from './features/simulation/index'
2
+ export {}
@@ -1,7 +1,6 @@
1
1
  import { ProviderInterface } from 'starknet';
2
2
  import { Address } from '../chains';
3
3
  import { Token, TokenWithBalance } from './token';
4
-
5
4
  export declare const getTokenBalance: (tokenAddress: string, address: string, provider: Pick<ProviderInterface, "callContract">) => Promise<bigint>;
6
5
  export declare const getTokensBalances: (networkId: string, provider: Pick<ProviderInterface, "callContract">, address: Address) => Promise<TokenWithBalance[]>;
7
6
  export declare const getTokens: () => Promise<Token[]>;
@@ -1,5 +1,4 @@
1
1
  import { BigNumberish } from 'starknet';
2
-
3
2
  export interface IConvertTokenAmountToCurrencyValue {
4
3
  /** the token decimal amount */
5
4
  amount: BigNumberish;
@@ -1,5 +1,4 @@
1
1
  import { BigNumberish } from 'starknet';
2
-
3
2
  export interface IConvertTokenAmount {
4
3
  unitAmount?: BigNumberish;
5
4
  decimals?: BigNumberish;
@@ -1,3 +1,2 @@
1
1
  import { BigNumberish } from 'starknet';
2
-
3
2
  export declare const isUnlimitedAmount: (amount: BigNumberish) => boolean;
@@ -1,3 +1,2 @@
1
1
  import { IPrettifyNumberConfig } from '../utils/number';
2
-
3
2
  export declare const prettifyCurrencyValue: (currencyValue?: string | number, currencySymbol?: string, overrides?: Partial<IPrettifyNumberConfig>) => string | null;
@@ -1,6 +1,5 @@
1
1
  import { BigNumberish } from 'starknet';
2
2
  import { IPrettifyNumberConfig } from '../utils/number';
3
-
4
3
  export declare const PRETTY_UNLIMITED = "Unlimited";
5
4
  export interface IPrettifyTokenAmount {
6
5
  amount: BigNumberish;
@@ -5,7 +5,6 @@ import { IHttpService } from '../../http';
5
5
  import { ITokenServiceWeb } from './interface';
6
6
  import { ApiTokenInfo } from './types/backend.model';
7
7
  import { BaseTokenWithBalance } from './types/token.model';
8
-
9
8
  /**
10
9
  * TokenService class implements ITokenService interface.
11
10
  */
@@ -3,7 +3,6 @@ import { ArgentBackendNetworkId } from '../../backend';
3
3
  import { Address } from '../../chains/starknet/address';
4
4
  import { ApiDefiDecompositionSchema, ApiTokenInfo } from './types/backend.model';
5
5
  import { BaseTokenWithBalance } from './types/token.model';
6
-
7
6
  export type SelectorFn<T> = (value: T) => boolean;
8
7
  export interface ITokenServiceDefiDecomposition {
9
8
  fetchDefiDecomposition: (address: Address) => Promise<ApiDefiDecompositionSchema[]>;
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from '../../errors/baseErrors';
2
-
3
2
  export declare enum TOKEN_ERROR_MESSAGES {
4
3
  NO_TOKEN_API_URL = "NO_TOKEN_API_URL is not defined",
5
4
  NO_TOKEN_PRICE_API_URL = "NO_TOKEN_PRICE_API_URL is not defined",
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const apiAccountTokenBalancesSchema: z.ZodUnion<[z.ZodObject<{
4
3
  status: z.ZodLiteral<"initialising">;
5
4
  }, "strip", z.ZodTypeAny, {
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  declare const defiPositionTokenSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4
3
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
5
4
  networkId: z.ZodString;
@@ -1,4 +1,3 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const defiPositionTypeSchema: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">]>;
4
3
  export type DefiPositionType = z.infer<typeof defiPositionTypeSchema>;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const baseTokenSchema: z.ZodObject<{
4
3
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
5
4
  networkId: z.ZodString;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const airdropSchema: z.ZodObject<{
4
3
  name: z.ZodOptional<z.ZodString>;
5
4
  tokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
@@ -1,5 +1,4 @@
1
1
  import { Address } from '../chains';
2
-
3
2
  export interface Token {
4
3
  address: Address;
5
4
  name: string;
@@ -1,7 +1,6 @@
1
1
  import { Account } from 'starknet';
2
2
  import { Token } from '../tokens/token';
3
3
  import { ApiTransactionSimulationResponse, TransactionSimulationApproval, TransactionSimulationTransfer } from './transactionSimulationTypes';
4
-
5
4
  export type IUseAggregatedSimData = {
6
5
  networkId: string;
7
6
  account: Account;
@@ -1,6 +1,5 @@
1
1
  import { num } from 'starknet';
2
2
  import { z } from 'zod';
3
-
4
3
  export declare const parseAmount: (amount: string, decimals?: num.BigNumberish) => import('..').BigDecimal;
5
4
  export declare const inputAmountSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
6
5
  export declare const isValidInputAmount: (amount: string) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { CairoVersion, DeployAccountContractPayload as StarknetDeployAccountContractPayload } from 'starknet';
2
-
3
2
  export type DeployAccountContractPayload = StarknetDeployAccountContractPayload & {
4
3
  version: CairoVersion;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const trpcErrorSchema: z.ZodObject<{
4
3
  data: z.ZodObject<{
5
4
  code: z.ZodOptional<z.ZodString>;
@@ -1,5 +1,4 @@
1
1
  import { num } from 'starknet';
2
-
3
2
  export declare const FEE_OVERHEAD: number;
4
3
  export declare const argentMaxFee: ({ estimatedFee, overheadMultiplier, }: {
5
4
  estimatedFee: num.BigNumberish;
@@ -1,5 +1,4 @@
1
1
  import { BaseError, BaseErrorPayload } from '../../errors/baseErrors';
2
-
3
2
  export declare enum ESTIMATE_ERROR_MESSAGES {
4
3
  SIMULATE_AND_REVIEW_FAILED = "Missing simulation"
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import { CairoVersion, Call, Calldata, TransactionType } from 'starknet';
2
2
  import { z } from 'zod';
3
-
4
3
  export declare const transactionReviewTransactionsSchema: z.ZodObject<{
5
4
  type: z.ZodDefault<z.ZodEnum<["DECLARE", "DEPLOY", "DEPLOY_ACCOUNT", "INVOKE"]>>;
6
5
  calls: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodType<Call, z.ZodTypeDef, Call>, "many">, z.ZodType<Call, z.ZodTypeDef, Call>]>>;
@@ -3,7 +3,6 @@ import { Address } from '../../chains/starknet/address';
3
3
  import { EstimatedFee, EstimatedFees, SimulateAndReview } from '../../features/simulation';
4
4
  import { ApiTransactionSimulationResponse } from '../transactionSimulationTypes';
5
5
  import { CastFeeEstimation, FRI, FeeEstimationV1, FeeEstimationV3, TransactionReviewTransactions, WEI } from './model';
6
-
7
6
  export declare function isWEI<T>(value: Pick<CastFeeEstimation<T>, "unit">): value is FeeEstimationV1<T>;
8
7
  export declare function isFRI<T>(value: Pick<CastFeeEstimation<T>, "unit">): value is FeeEstimationV3<T>;
9
8
  export declare function castFeeEstimation<S, T extends CastFeeEstimation<S>, C>(feeEstimation: T, cast: (value: S) => C): CastFeeEstimation<C>;
@@ -1,6 +1,5 @@
1
1
  import { FunctionInvocation as FunctionInvocationV5 } from 'starknet5';
2
2
  import { TransactionSimulationApproval, TransactionSimulationTransfer } from './transactionSimulationTypes';
3
-
4
3
  export type EventsToTrack = "Transfer" | "Approval";
5
4
  export type TransferEvent = Omit<TransactionSimulationTransfer, "details">;
6
5
  export type ApprovalEvent = Omit<TransactionSimulationApproval, "details">;
@@ -1,7 +1,6 @@
1
1
  import { DeclareContractPayload } from 'starknet';
2
2
  import { Address } from '../chains/starknet';
3
3
  import { TransactionInvokeVersion, TransactionSimulationVersion } from './transactionVersion';
4
-
5
4
  export declare function getTxVersionFromFeeToken(feeTokenAddress: Address): TransactionInvokeVersion;
6
5
  export declare function getSimulationTxVersionFromFeeToken(feeTokenAddress: Address): TransactionSimulationVersion;
7
6
  export declare function getTxVersionFromFeeTokenForDeclareContract(feeTokenAddress: Address, payload: DeclareContractPayload): TransactionInvokeVersion;
@@ -6,7 +6,6 @@ import { TransactionReviewTransactions } from '../estimate';
6
6
  import { AccountDeployTransaction } from '../types';
7
7
  import { ITransactionReviewServiceWeb } from './interface';
8
8
  import { ITransactionReviewLabel, ITransactionReviewWarning } from './types';
9
-
10
9
  /**
11
10
  * TransactionReviewService class implements ITransactionReviewService interface.
12
11
  */
@@ -4,7 +4,6 @@ import { EnrichedSimulateAndReview } from '../../features/simulation';
4
4
  import { TransactionReviewTransactions } from '../estimate';
5
5
  import { AccountDeployTransaction } from '../types';
6
6
  import { ITransactionReviewLabel, ITransactionReviewWarning } from './types';
7
-
8
7
  export interface ITransactionReviewBase {
9
8
  getLabels(): Promise<ITransactionReviewLabel[] | undefined>;
10
9
  getWarnings(): Promise<ITransactionReviewWarning[] | undefined>;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export type ITransactionReviewLabel = {
4
3
  key: string;
5
4
  value: string;
@@ -1,5 +1,4 @@
1
1
  import { AllowArray, Call, DeclareContractPayload, DeployAccountContractPayload, TransactionType, UniversalDeployerContractPayload } from 'starknet';
2
-
3
2
  /**
4
3
  * TransactionAction is a union type that represents different types of transactions
5
4
  * Each type of transaction has an associated payload that provides the necessary information to execute the transaction.
@@ -2,7 +2,6 @@ import { Call } from 'starknet';
2
2
  import { ArgentBackendNetworkId } from '../backend';
3
3
  import { Address } from '../chains';
4
4
  import { ApiData } from '../http/apiData';
5
-
6
5
  export interface ApiTransactionReview {
7
6
  assessment: ApiTransactionReviewAssessment;
8
7
  assessmentReason?: string;
@@ -3,7 +3,6 @@ import { Sequencer } from 'starknet5';
3
3
  import { Address } from '../chains';
4
4
  import { ApiData } from '../http/apiData';
5
5
  import { FRI, WEI } from './estimate';
6
-
7
6
  export interface SimulationError extends Error {
8
7
  name: string;
9
8
  responseJson: {
@@ -1,6 +1,5 @@
1
1
  import { ETransactionVersion } from '@starknet-io/types-js';
2
2
  import { z } from 'zod';
3
-
4
3
  export type TRANSACTION_VERSION = ETransactionVersion;
5
4
  export type TransactionInvokeVersion = typeof ETransactionVersion.V0 | typeof ETransactionVersion.V1 | typeof ETransactionVersion.V2 | typeof ETransactionVersion.V3;
6
5
  export type TransactionSimulationVersion = typeof ETransactionVersion.F0 | typeof ETransactionVersion.F1 | typeof ETransactionVersion.F2 | typeof ETransactionVersion.F3;
@@ -1,5 +1,4 @@
1
1
  import { Address } from '../chains/starknet';
2
-
3
2
  export declare function feeTokenNeedsTxV3Support({ address }: {
4
3
  address: Address;
5
4
  }): boolean;
@@ -2,7 +2,6 @@ import { AccountDeploymentData } from '@starknet-io/types-js';
2
2
  import { Account, Call, ProviderInterface } from 'starknet';
3
3
  import { Address } from '../chains/starknet';
4
4
  import { ITransactionReviewServiceWeb } from './service/interface';
5
-
6
5
  export interface IuseTransactionReviewV2web {
7
6
  selectedAccount: Account | undefined;
8
7
  feeTokenAddress?: Address;
@@ -1,5 +1,4 @@
1
1
  import { ApiTransactionSimulationResponse } from './transactionSimulationTypes';
2
-
3
2
  declare const useBalanceChange: (transactionSimulations: ApiTransactionSimulationResponse[] | undefined) => {
4
3
  showBalanceChange: boolean | undefined;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { AggregatedSimData } from './aggregatedSimDataTypes';
2
-
3
2
  export declare const getERC20Transactions: (aggregatedData?: AggregatedSimData[]) => AggregatedSimData[];
4
3
  export declare const useERC20Transactions: (aggregatedData?: AggregatedSimData[]) => AggregatedSimData[];
5
4
  export declare const hasERC20Transactions: (aggregatedData?: AggregatedSimData[]) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { AggregatedSimData } from './aggregatedSimDataTypes';
2
-
3
2
  export declare const getERC721Transactions: (aggregatedData?: AggregatedSimData[]) => AggregatedSimData[];
4
3
  export declare const useERC721Transactions: (aggregatedData?: AggregatedSimData[]) => AggregatedSimData[];
5
4
  export declare const hasERC721Transactions: (aggregatedData?: AggregatedSimData[]) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { AggregatedSimData } from './aggregatedSimDataTypes';
2
-
3
2
  export declare const getERC721Transfers: (aggregatedData?: AggregatedSimData[]) => AggregatedSimData[];
4
3
  export declare const useERC721Transfers: (aggregatedData?: AggregatedSimData[]) => AggregatedSimData[];
5
4
  export declare const hasERC721Transfer: (aggregatedData?: AggregatedSimData[]) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { TokenWithBalance } from '../tokens/token';
2
-
3
2
  declare const useMaxAmountTransaction: (token: TokenWithBalance | undefined, recipient: string | undefined) => {
4
3
  contractAddress: `0x${string}`;
5
4
  entrypoint: string;
@@ -1,5 +1,4 @@
1
1
  import { ApiTransactionReview, ApiTransactionReviewActivity, ApiTransactionReviewActivityType, ApiTransactionReviewResponse, IUseTransactionReview, TransactionReviewWithType } from './transactionReviewTypes';
2
-
3
2
  export declare const useTransactionReview: ({ apiData: { apiBaseUrl, apiHeaders }, address, network, transactionReviewEnabled, transactions, }: IUseTransactionReview) => import('swr').SWRResponse<ApiTransactionReviewResponse, any>;
4
3
  export declare const getDisplayWarnAndReasonForTransactionReview: (transactionReview?: Pick<ApiTransactionReviewResponse, "assessment" | "reason">) => {
5
4
  warn?: undefined;
@@ -3,7 +3,6 @@ import { ProviderInterface } from 'starknet';
3
3
  import { Address } from '../chains/starknet';
4
4
  import { EnrichedSimulateAndReview } from '../features/simulation';
5
5
  import { AccountDeployTransaction, IGetReviewForTransactions, IuseTransactionReviewV2web } from './types';
6
-
7
6
  export declare const getReviewForTransactions: ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployTransaction, isDelayedTransaction, }: IGetReviewForTransactions) => Promise<{
8
7
  result: {
9
8
  transactions: ({
@@ -1,5 +1,4 @@
1
1
  import { BigNumberish } from 'starknet';
2
-
3
2
  export declare const encodeBase58: (val: BigNumberish) => string;
4
3
  export declare const encodeBase58Array: (arr: BigNumberish[]) => string[];
5
4
  export declare const decodeBase58: (val: string) => string;
@@ -1,3 +1,2 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const bigNumberSchema: z.ZodEffects<z.ZodEffects<z.ZodAny, bigint, any>, bigint, any>;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export type Hex = `0x${string}`;
4
3
  export declare const hexSchemaBase: z.ZodString;
5
4
  export declare const hexSchema: z.ZodEffects<z.ZodString, `0x${string}`, string>;
@@ -1,3 +1,2 @@
1
1
  import { ProviderInterface } from 'starknet';
2
-
3
2
  export declare const isContractDeployed: (provider: Pick<ProviderInterface, "getClassHashAt">, contractAddress: string) => Promise<boolean>;
@@ -1,5 +1,4 @@
1
1
  import { BigNumberish } from 'starknet';
2
-
3
2
  export interface IPrettifyNumberConfig {
4
3
  minDecimalPlaces: number;
5
4
  maxDecimalPlaces: number;
@@ -1,4 +1,3 @@
1
1
  import { BigNumberish } from 'starknet';
2
-
3
2
  export declare const parseAmountValue: (amount: string, decimals?: BigNumberish) => bigint;
4
3
  export declare function getUint256CalldataFromBN(bn: BigNumberish): import('starknet').Uint256;
@@ -1,4 +1,3 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const booleanToStringSchema: z.ZodEffects<z.ZodBoolean, string, boolean>;
4
3
  export declare const stringToBooleanSchema: z.ZodEffects<z.ZodString, boolean, string>;
@@ -1,6 +1,5 @@
1
1
  import { Call, CallDetails, RawArgs, RawArgsArray, RawArgsObject } from 'starknet';
2
2
  import { z } from 'zod';
3
-
4
3
  export declare const bigNumberishSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
5
4
  export declare const uint256Schema: z.ZodObject<{
6
5
  low: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  import { FunctionAbiType } from './starknetLibTypes';
3
-
4
3
  export declare const builtinsSchema: z.ZodArray<z.ZodString, "many">;
5
4
  export declare const contractEntryPointFieldsSchema: z.ZodObject<{
6
5
  selector: z.ZodString;
@@ -1,6 +1,5 @@
1
1
  import { default as Emittery, DatalessEventNames, OmnipresentEventData } from 'emittery';
2
2
  import { FC, PropsWithChildren } from 'react';
3
-
4
3
  interface EventEmitterContextProps {
5
4
  emitter: Emittery;
6
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.33.3",
3
+ "version": "1.33.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"
@@ -54,8 +54,8 @@
54
54
  "@typescript-eslint/eslint-plugin": "^7.0.0",
55
55
  "@typescript-eslint/parser": "^7.0.0",
56
56
  "@vitejs/plugin-react-swc": "^3.6.0",
57
- "@vitest/browser": "1.6.0",
58
- "@vitest/ui": "1.6.0",
57
+ "@vitest/browser": "2.0.5",
58
+ "@vitest/ui": "2.0.5",
59
59
  "eslint": "^8.7.0",
60
60
  "eslint-config-prettier": "^9.1.0",
61
61
  "eslint-plugin-import": "^2.29.1",
@@ -69,8 +69,8 @@
69
69
  "ts-to-zod": "^3.2.0",
70
70
  "typescript": "^5.0.4",
71
71
  "vite": "^5.0.0",
72
- "vite-plugin-dts": "^3.8.1",
73
- "vitest": "1.6.0"
72
+ "vite-plugin-dts": "^4.0.0",
73
+ "vitest": "2.0.5"
74
74
  },
75
75
  "dependencies": {
76
76
  "@argent/x-multicall": "^7.1.0",