@argent/x-shared 1.33.3 → 1.34.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/account/account.model.d.ts +0 -1
- package/dist/account/accountv4.d.ts +0 -1
- package/dist/account/preferences.model.d.ts +0 -1
- package/dist/backend/schema.d.ts +0 -1
- package/dist/bigdecimal/constants.d.ts +0 -1
- package/dist/bigdecimal/createUnitsSchema.d.ts +0 -1
- package/dist/bigdecimal/formatUnits.d.ts +0 -1
- package/dist/bigdecimal/lib.d.ts +0 -1
- package/dist/bigdecimal/parseUnits.d.ts +0 -1
- package/dist/bigdecimal/utils.d.ts +0 -1
- package/dist/cache/CacheService.d.ts +0 -1
- package/dist/chains/starknet/address.d.ts +0 -1
- package/dist/chains/starknet/addressDomain.d.ts +0 -1
- package/dist/chains/starknet/addressInput.d.ts +0 -1
- package/dist/chains/starknet/argentName.d.ts +0 -1
- package/dist/chains/starknet/cairoVersionSchema.d.ts +0 -1
- package/dist/chains/starknet/getAddressFromArgentName.d.ts +0 -1
- package/dist/chains/starknet/getAddressFromStarkName.d.ts +0 -1
- package/dist/chains/starknet/network.d.ts +0 -1
- package/dist/chains/starknet/services/address/IStarknetAddressService.d.ts +0 -1
- package/dist/chains/starknet/services/address/StarknetAddressService.d.ts +0 -1
- package/dist/chains/starknet/services/deploymentData/deploymentData.schema.d.ts +0 -1
- package/dist/chains/starknet/services/deploymentData/findImplementationForAccount.d.ts +1 -2
- package/dist/chains/starknet/starknetId.d.ts +0 -1
- package/dist/errors/account.d.ts +0 -1
- package/dist/errors/address.d.ts +0 -1
- package/dist/errors/baseErrors.d.ts +0 -1
- package/dist/errors/call.d.ts +0 -1
- package/dist/errors/network.d.ts +0 -1
- package/dist/errors/review.d.ts +0 -1
- package/dist/features/simulation/activity/normalize.d.ts +0 -1
- package/dist/features/simulation/activity/schema.d.ts +0 -1
- package/dist/features/simulation/activity/utils/createNativeActivity.d.ts +0 -1
- package/dist/features/simulation/activity/utils/getAnyActivityTitle.d.ts +0 -1
- package/dist/features/simulation/activity/utils/getOverallLastModified.d.ts +0 -1
- package/dist/features/simulation/activity/utils/hasDelegationActivity.d.ts +0 -1
- package/dist/features/simulation/activity/utils/isMulticallWithDeploymentActivity.d.ts +0 -1
- package/dist/features/simulation/activity/utils/isRejectOnChainActivity.d.ts +0 -1
- package/dist/features/simulation/activity/utils/isUpgradeActivity.d.ts +0 -1
- package/dist/features/simulation/activity/utils/parseAccountActivities.d.ts +0 -1
- package/dist/features/simulation/activity/utils/parseFinanceActivities.d.ts +0 -1
- package/dist/features/simulation/fees/schema.d.ts +0 -1
- package/dist/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.d.ts +0 -1
- package/dist/features/simulation/transactionReview/getMessageFromSimulationError.d.ts +0 -1
- package/dist/features/simulation/transactionReview/schema.d.ts +0 -1
- package/dist/features/simulation/warning/helper.d.ts +0 -1
- package/dist/features/simulation/warning/schema.d.ts +0 -1
- package/dist/http/DateService.d.ts +0 -1
- package/dist/http/HttpError.d.ts +0 -1
- package/dist/http/HttpService.d.ts +0 -1
- package/dist/http/IHttpService.d.ts +0 -1
- package/dist/http/SWRService.d.ts +0 -1
- package/dist/http/swr.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -0
- package/dist/knownDapps/IKnownDappsBackendService.d.ts +0 -1
- package/dist/knownDapps/KnownDappsBackendService.d.ts +0 -1
- package/dist/knownDapps/schema.d.ts +0 -1
- package/dist/knownDapps/utils/getDapplandUrl.d.ts +0 -1
- package/dist/nameResolution/IResolveNameService.d.ts +0 -1
- package/dist/nameResolution/ResolveNameService.d.ts +0 -1
- package/dist/nameResolution/schema.d.ts +0 -1
- package/dist/nfts/BackendNftService.d.ts +0 -1
- package/dist/nfts/INFTService.d.ts +0 -1
- package/dist/nfts/useNfts.d.ts +0 -1
- package/dist/nfts/utils.d.ts +0 -1
- package/dist/onchainRecovery/IOnchainRecoveryService.d.ts +0 -1
- package/dist/onchainRecovery/OnchainRecoveryService.d.ts +0 -1
- package/dist/onchainRecovery/schema.d.ts +0 -1
- package/dist/platform/isBrowser.d.ts +0 -1
- package/dist/providers/WebAmplitude/WebAmplitudeProvider.d.ts +0 -1
- package/dist/providers/WebAmplitude/service.d.ts +0 -1
- package/dist/providers/WebAmplitude/types.d.ts +0 -1
- package/dist/providers/WebAmplitude/utils.d.ts +0 -1
- package/dist/signer/multisigner.d.ts +0 -1
- package/dist/signer/seedphrase.d.ts +0 -1
- package/dist/simulation.d.ts +1 -0
- package/dist/tokens/balances.d.ts +0 -1
- package/dist/tokens/convertTokenAmountToCurrencyValue.d.ts +0 -1
- package/dist/tokens/convertTokenUnitAmountWithDecimals.d.ts +0 -1
- package/dist/tokens/isUnlimitedAmount.d.ts +0 -1
- package/dist/tokens/prettifyCurrencyValue.d.ts +0 -1
- package/dist/tokens/prettifyTokenAmount.d.ts +0 -1
- package/dist/tokens/service/implementation.d.ts +0 -1
- package/dist/tokens/service/interface.d.ts +0 -1
- package/dist/tokens/service/tokenError.d.ts +0 -1
- package/dist/tokens/service/types/backend.model.d.ts +0 -1
- package/dist/tokens/service/types/defiPosition.model.d.ts +0 -1
- package/dist/tokens/service/types/defiPositionType.model.d.ts +0 -1
- package/dist/tokens/service/types/token.model.d.ts +0 -1
- package/dist/tokens/service/types/unclaimedRewards.model.d.ts +0 -1
- package/dist/tokens/token.d.ts +0 -1
- package/dist/transactions/aggregatedSimDataTypes.d.ts +0 -1
- package/dist/transactions/amount.d.ts +0 -1
- package/dist/transactions/deployAccountTypes.d.ts +0 -1
- package/dist/transactions/errors.d.ts +0 -1
- package/dist/transactions/estimate/argentMaxFee.d.ts +0 -1
- package/dist/transactions/estimate/error.d.ts +0 -1
- package/dist/transactions/estimate/model.d.ts +0 -1
- package/dist/transactions/estimate/utils.d.ts +0 -1
- package/dist/transactions/findTransfersAndApprovals.d.ts +0 -1
- package/dist/transactions/getTransactionVersion.d.ts +0 -1
- package/dist/transactions/service/implementation.d.ts +0 -1
- package/dist/transactions/service/interface.d.ts +0 -1
- package/dist/transactions/service/types.d.ts +0 -1
- package/dist/transactions/transactionAction.d.ts +0 -1
- package/dist/transactions/transactionReviewTypes.d.ts +0 -1
- package/dist/transactions/transactionSimulationTypes.d.ts +0 -1
- package/dist/transactions/transactionVersion.d.ts +0 -1
- package/dist/transactions/txv3.d.ts +0 -1
- package/dist/transactions/types.d.ts +0 -1
- package/dist/transactions/useBalanceChange.d.ts +0 -1
- package/dist/transactions/useErc20Transactions.d.ts +0 -1
- package/dist/transactions/useErc721Transactions.d.ts +0 -1
- package/dist/transactions/useErc721Transfers.d.ts +0 -1
- package/dist/transactions/useMaxAmountTransaction.d.ts +0 -1
- package/dist/transactions/useTransactionReview.d.ts +0 -1
- package/dist/transactions/useTransactionReviewV2web.d.ts +0 -1
- package/dist/utils/base58.d.ts +0 -1
- package/dist/utils/bigNumber.d.ts +0 -1
- package/dist/utils/hex.d.ts +0 -1
- package/dist/utils/isContractDeployed.d.ts +0 -1
- package/dist/utils/number/prettifyNumber.d.ts +0 -1
- package/dist/utils/parseAmount.d.ts +0 -1
- package/dist/utils/schemas.d.ts +0 -1
- package/dist/utils/starknet/starknet.d.ts +0 -1
- package/dist/utils/starknet/starknetSchemas.d.ts +0 -1
- package/dist/utils/useEventEmitter.d.ts +0 -1
- package/package.json +5 -5
|
@@ -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;
|
package/dist/backend/schema.d.ts
CHANGED
|
@@ -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>;
|
package/dist/bigdecimal/lib.d.ts
CHANGED
|
@@ -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 { 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,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,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,13 +1,12 @@
|
|
|
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;
|
|
8
7
|
classHash?: Hex;
|
|
9
8
|
cairoVersion?: string;
|
|
10
|
-
type: "standard" | "plugin" | "multisig" | "betterMulticall" | "argent5MinuteEscapeTestingAccount" | "standardCairo0" | "smart";
|
|
9
|
+
type: "standard" | "plugin" | "multisig" | "betterMulticall" | "argent5MinuteEscapeTestingAccount" | "standardCairo0" | "smart" | "imported";
|
|
11
10
|
guardian?: string;
|
|
12
11
|
salt?: Hex;
|
|
13
12
|
};
|
package/dist/errors/account.d.ts
CHANGED
package/dist/errors/address.d.ts
CHANGED
package/dist/errors/call.d.ts
CHANGED
package/dist/errors/network.d.ts
CHANGED
package/dist/errors/review.d.ts
CHANGED
|
@@ -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,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>;
|
package/dist/http/HttpError.d.ts
CHANGED