@argent/x-shared 1.75.1 → 1.75.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("url-join"),s=require("zod"),d=require("./address.cjs"),m=require("./argentName.cjs"),o=require("../../errors/address.cjs"),w=require("../../http/HttpError.cjs"),E=s.z.object({walletAddress:d.addressSchemaArgentBackend,ens:m.argentNameSchema,chain:s.z.enum(["ethereum","starknet"]),deleted:s.z.boolean(),walletDeployed:s.z.boolean()}).or(s.z.object({status:s.z.string()}));async function N(t,n,a,c="starknet"){const i={ens:t,chain:c},l=new URLSearchParams(i),A=u(a,"wallet",`?${l}`);try{const e=await n.get(A),r=e&&"walletAddress"in e?e.walletAddress:void 0;if(!r)throw new o.AddressError({code:"NO_ADDRESS_FROM_ARGENT_NAME"});if(d.isZeroAddress(r))throw new o.AddressError({code:"ARGENT_NAME_NOT_FOUND",message:`${t} not found`});if(!d.isValidAddress(r))throw new o.AddressError({code:"ARGENT_NAME_INVALID_ADDRESS",message:`${t} resolved to an invalid address (${r})`});return d.normalizeAddress(r)}catch(e){throw e instanceof w.HttpError&&e.status===404?new o.AddressError({code:"ARGENT_NAME_NOT_FOUND",message:`${t} not found`}):e}}exports.apiWalletResponseSchema=E;exports.getAddressFromArgentName=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("url-join"),s=require("zod"),o=require("../../errors/address.cjs"),m=require("./argentName.cjs"),d=require("./address.cjs"),w=require("../../http/HttpError.cjs"),E=s.z.object({walletAddress:d.addressSchemaArgentBackend,ens:m.argentNameSchema,chain:s.z.enum(["ethereum","starknet"]),deleted:s.z.boolean(),walletDeployed:s.z.boolean()}).or(s.z.object({status:s.z.string()}));async function N(t,n,a,c="starknet"){const i={ens:t,chain:c},l=new URLSearchParams(i),A=u(a,"wallet",`?${l}`);try{const e=await n.get(A),r=e&&"walletAddress"in e?e.walletAddress:void 0;if(!r)throw new o.AddressError({code:"NO_ADDRESS_FROM_ARGENT_NAME"});if(d.isZeroAddress(r))throw new o.AddressError({code:"ARGENT_NAME_NOT_FOUND",message:`${t} not found`});if(!d.isValidAddress(r))throw new o.AddressError({code:"ARGENT_NAME_INVALID_ADDRESS",message:`${t} resolved to an invalid address (${r})`});return d.normalizeAddress(r)}catch(e){throw e instanceof w.HttpError&&e.status===404?new o.AddressError({code:"ARGENT_NAME_NOT_FOUND",message:`${t} not found`}):e}}exports.apiWalletResponseSchema=E;exports.getAddressFromArgentName=N;
@@ -1,12 +1,12 @@
1
1
  import m from "url-join";
2
2
  import { z as s } from "zod";
3
- import { addressSchemaArgentBackend as A, isZeroAddress as w, isValidAddress as f, normalizeAddress as N } from "./address.js";
4
- import { argentNameSchema as h } from "./argentName.js";
5
3
  import { AddressError as t } from "../../errors/address.js";
4
+ import { argentNameSchema as A } from "./argentName.js";
5
+ import { addressSchemaArgentBackend as w, isZeroAddress as f, isValidAddress as N, normalizeAddress as h } from "./address.js";
6
6
  import { HttpError as _ } from "../../http/HttpError.js";
7
7
  const O = s.object({
8
- walletAddress: A,
9
- ens: h,
8
+ walletAddress: w,
9
+ ens: A,
10
10
  chain: s.enum(["ethereum", "starknet"]),
11
11
  deleted: s.boolean(),
12
12
  walletDeployed: s.boolean()
@@ -24,17 +24,17 @@ async function T(o, n, a, d = "starknet") {
24
24
  throw new t({
25
25
  code: "NO_ADDRESS_FROM_ARGENT_NAME"
26
26
  });
27
- if (w(r))
27
+ if (f(r))
28
28
  throw new t({
29
29
  code: "ARGENT_NAME_NOT_FOUND",
30
30
  message: `${o} not found`
31
31
  });
32
- if (!f(r))
32
+ if (!N(r))
33
33
  throw new t({
34
34
  code: "ARGENT_NAME_INVALID_ADDRESS",
35
35
  message: `${o} resolved to an invalid address (${r})`
36
36
  });
37
- return N(r);
37
+ return h(r);
38
38
  } catch (e) {
39
39
  throw e instanceof _ && e.status === 404 ? new t({
40
40
  code: "ARGENT_NAME_NOT_FOUND",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../address.cjs"),a=require("../../argentName.cjs"),o=require("../../getAddressFromArgentName.cjs"),n=require("../../getAddressFromStarkName.cjs"),i=require("../../starknetId.cjs"),s=require("../../../../errors/address.cjs");class A{constructor(e,r,t){this.httpService=e,this.baseUrl=r,this.allowedArgentNameNetworkId=t}async parseAddressOrDomain(e,r,t){if(d.isAddress(e))return d.normalizeAddress(e);try{return await this.getAddressFromDomainName(e,r,t)}catch{throw new s.AddressError({code:"NOT_VALID"})}}async getAddressFromDomainName(e,r,t){if(i.isStarknetId(e))return n.getAddressFromStarkName(e,r,t);if(a.isArgentName(e)){if(r!==this.allowedArgentNameNetworkId)throw new s.AddressError({code:"ARGENT_NAME_INVALID_NETWORK",message:`Argent name is only enabled on "${this.allowedArgentNameNetworkId}"`});return o.getAddressFromArgentName(e,this.httpService,this.baseUrl)}throw new s.AddressError({code:"NO_ADDRESS_FROM_DOMAIN"})}}exports.StarknetAddressService=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../errors/address.cjs"),d=require("../../address.cjs"),a=require("../../starknetId.cjs"),o=require("../../getAddressFromStarkName.cjs"),n=require("../../argentName.cjs"),i=require("../../getAddressFromArgentName.cjs");class A{constructor(e,r,t){this.httpService=e,this.baseUrl=r,this.allowedArgentNameNetworkId=t}async parseAddressOrDomain(e,r,t){if(d.isAddress(e))return d.normalizeAddress(e);try{return await this.getAddressFromDomainName(e,r,t)}catch{throw new s.AddressError({code:"NOT_VALID"})}}async getAddressFromDomainName(e,r,t){if(a.isStarknetId(e))return o.getAddressFromStarkName(e,r,t);if(n.isArgentName(e)){if(r!==this.allowedArgentNameNetworkId)throw new s.AddressError({code:"ARGENT_NAME_INVALID_NETWORK",message:`Argent name is only enabled on "${this.allowedArgentNameNetworkId}"`});return i.getAddressFromArgentName(e,this.httpService,this.baseUrl)}throw new s.AddressError({code:"NO_ADDRESS_FROM_DOMAIN"})}}exports.StarknetAddressService=A;
@@ -1,9 +1,9 @@
1
- import { isAddress as o, normalizeAddress as i } from "../../address.js";
2
- import { isArgentName as m } from "../../argentName.js";
3
- import { getAddressFromArgentName as a } from "../../getAddressFromArgentName.js";
4
- import { getAddressFromStarkName as d } from "../../getAddressFromStarkName.js";
5
- import { isStarknetId as n } from "../../starknetId.js";
6
1
  import { AddressError as s } from "../../../../errors/address.js";
2
+ import { isAddress as o, normalizeAddress as i } from "../../address.js";
3
+ import { isStarknetId as m } from "../../starknetId.js";
4
+ import { getAddressFromStarkName as a } from "../../getAddressFromStarkName.js";
5
+ import { isArgentName as d } from "../../argentName.js";
6
+ import { getAddressFromArgentName as n } from "../../getAddressFromArgentName.js";
7
7
  class p {
8
8
  constructor(e, r, t) {
9
9
  this.httpService = e, this.baseUrl = r, this.allowedArgentNameNetworkId = t;
@@ -18,15 +18,15 @@ class p {
18
18
  }
19
19
  }
20
20
  async getAddressFromDomainName(e, r, t) {
21
- if (n(e))
22
- return d(e, r, t);
23
- if (m(e)) {
21
+ if (m(e))
22
+ return a(e, r, t);
23
+ if (d(e)) {
24
24
  if (r !== this.allowedArgentNameNetworkId)
25
25
  throw new s({
26
26
  code: "ARGENT_NAME_INVALID_NETWORK",
27
27
  message: `Argent name is only enabled on "${this.allowedArgentNameNetworkId}"`
28
28
  });
29
- return a(e, this.httpService, this.baseUrl);
29
+ return n(e, this.httpService, this.baseUrl);
30
30
  }
31
31
  throw new s({
32
32
  code: "NO_ADDRESS_FROM_DOMAIN"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("zod"),t=require("../../chains/starknet/address.cjs"),r=require("../../utils/starknet/starknet.cjs"),e=require("../../backend/schema.cjs"),s=a.z.object({calls:a.z.array(r.callSchema),accountAddress:t.addressSchema,networkId:e.argentNetworkIdSchema.or(e.argentBackendNetworkIdSchema).optional(),feeTokenAddress:t.addressSchema,maxFee:r.bigNumberishSchema,accountClassHash:a.z.string().optional()}),o=a.z.object({signature:a.z.string().array(),accountAddress:t.addressSchema,typedData:r.typedDataSchema,networkId:e.argentNetworkIdSchema.or(e.argentBackendNetworkIdSchema).optional(),deploymentData:a.z.object({class_hash:a.z.string().optional(),salt:a.z.string().or(a.z.number()).or(a.z.bigint()).optional(),unique:a.z.string(),calldata:a.z.array(a.z.string())}).optional()}),n=a.z.object({transactionHash:a.z.string()});exports.paymasterExecuteParams=o;exports.paymasterExecuteResponse=n;exports.paymasterExecutionDataParams=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("zod"),t=require("../../utils/starknet/starknet.cjs"),e=require("../../backend/schema.cjs"),r=require("../../chains/starknet/address.cjs"),s=a.z.object({calls:a.z.array(t.callSchema),accountAddress:r.addressSchema,networkId:e.argentNetworkIdSchema.or(e.argentBackendNetworkIdSchema).optional(),feeTokenAddress:r.addressSchema,maxFee:t.bigNumberishSchema,accountClassHash:a.z.string().optional()}),o=a.z.object({signature:a.z.string().array(),accountAddress:r.addressSchema,typedData:t.typedDataSchema,networkId:e.argentNetworkIdSchema.or(e.argentBackendNetworkIdSchema).optional(),deploymentData:a.z.object({class_hash:a.z.string().optional(),salt:a.z.string().or(a.z.number()).or(a.z.bigint()).optional(),unique:a.z.string(),calldata:a.z.array(a.z.string())}).optional()}),n=a.z.object({transactionHash:a.z.string()});exports.paymasterExecuteParams=o;exports.paymasterExecuteResponse=n;exports.paymasterExecutionDataParams=s;
@@ -1,7 +1,7 @@
1
1
  import { z as a } from "zod";
2
- import { addressSchema as t } from "../../chains/starknet/address.js";
3
2
  import { bigNumberishSchema as o, callSchema as s, typedDataSchema as n } from "../../utils/starknet/starknet.js";
4
3
  import { argentNetworkIdSchema as e, argentBackendNetworkIdSchema as r } from "../../backend/schema.js";
4
+ import { addressSchema as t } from "../../chains/starknet/address.js";
5
5
  const d = a.object({
6
6
  calls: a.array(s),
7
7
  accountAddress: t,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./schema.cjs"),r=e=>e.map(o),o=e=>{if(t.isActivitySummary(e))return t.activitySummarySchema.parse(e);const n=!!e.sent;if(e.token.type!=="ERC20"){const a={asset:{type:"nft",tokenAddress:e.token.address,tokenId:e.tokenId?parseInt(e.tokenId):0,amount:e.value,collectionName:e.token.name,collectionPreviewImage:e.token.imageUrls?.preview,nftName:e.tokenIdDetails?.name,nftPreviewImage:e.tokenIdDetails?.imageUrls?.preview},sent:n};return t.activitySummarySchema.parse(a)}const i={asset:{type:"token",tokenAddress:e.token.address,amount:e.value,fiatAmount:{currency:"USD",currencyAmount:e.usdValue||"0"}},sent:n};return t.activitySummarySchema.parse(i)};exports.normalizeActivitySummary=o;exports.normalizeActivitySummaryCollection=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./schema.cjs"),c=e=>e.map(o),o=e=>{if(t.isActivitySummary(e))return t.activitySummarySchema.parse(e);const n=!!e.sent;if(e.token.type!=="ERC20"){const a={asset:{type:"nft",tokenAddress:e.token.address,tokenId:e.tokenId?parseInt(e.tokenId):0,amount:e.value,collectionName:e.token.name,collectionPreviewImage:e.token.imageUrls?.preview,nftName:e.tokenIdDetails?.name,nftPreviewImage:e.tokenIdDetails?.imageUrls?.preview},sent:n};return t.activitySummarySchema.parse(a)}const i={asset:{type:"token",tokenAddress:e.token.address,amount:e.value,fiatAmount:{currency:e.currency||"USD",currencyAmount:e.ccyValue||"0"}},sent:n};return t.activitySummarySchema.parse(i)};exports.normalizeActivitySummary=o;exports.normalizeActivitySummaryCollection=c;
@@ -1,5 +1,5 @@
1
1
  import { isActivitySummary as r, activitySummarySchema as n } from "./schema.js";
2
- const l = (e) => e.map(a), a = (e) => {
2
+ const l = (e) => e.map(c), c = (e) => {
3
3
  if (r(e))
4
4
  return n.parse(e);
5
5
  const t = !!e.sent;
@@ -25,8 +25,8 @@ const l = (e) => e.map(a), a = (e) => {
25
25
  tokenAddress: e.token.address,
26
26
  amount: e.value,
27
27
  fiatAmount: {
28
- currency: "USD",
29
- currencyAmount: e.usdValue || "0"
28
+ currency: e.currency || "USD",
29
+ currencyAmount: e.ccyValue || "0"
30
30
  }
31
31
  },
32
32
  sent: t
@@ -34,6 +34,6 @@ const l = (e) => e.map(a), a = (e) => {
34
34
  return n.parse(o);
35
35
  };
36
36
  export {
37
- a as normalizeActivitySummary,
37
+ c as normalizeActivitySummary,
38
38
  l as normalizeActivitySummaryCollection
39
39
  };
@@ -195,7 +195,7 @@ export declare const activityDetailsSchema: z.ZodUnion<readonly [z.ZodDiscrimina
195
195
  zksync2: "zksync2";
196
196
  starknet: "starknet";
197
197
  }>>;
198
- }, z.core.$strip>]>, z.ZodObject<{
198
+ }, z.core.$strip>], "type">, z.ZodObject<{
199
199
  type: z.ZodLiteral<"multicall">;
200
200
  calls: z.ZodArray<z.ZodObject<{
201
201
  details: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -353,7 +353,7 @@ export declare const activityDetailsSchema: z.ZodUnion<readonly [z.ZodDiscrimina
353
353
  zksync2: "zksync2";
354
354
  starknet: "starknet";
355
355
  }>>;
356
- }, z.core.$strip>]>;
356
+ }, z.core.$strip>], "type">;
357
357
  }, z.core.$strip>>;
358
358
  }, z.core.$strip>]>;
359
359
  export declare const activityDappSchema: z.ZodObject<{
@@ -381,7 +381,7 @@ export declare const activitySummarySchema: z.ZodObject<{
381
381
  currency: z.ZodString;
382
382
  currencyAmount: z.ZodCoercedString<unknown>;
383
383
  }, z.core.$strip>>>;
384
- }, z.core.$strip>]>;
384
+ }, z.core.$strip>], "type">;
385
385
  }, z.core.$strip>;
386
386
  export declare const feeSchema: z.ZodObject<{
387
387
  type: z.ZodString;
@@ -654,7 +654,7 @@ export declare const activitySchema: z.ZodObject<{
654
654
  zksync2: "zksync2";
655
655
  starknet: "starknet";
656
656
  }>>;
657
- }, z.core.$strip>]>, z.ZodObject<{
657
+ }, z.core.$strip>], "type">, z.ZodObject<{
658
658
  type: z.ZodLiteral<"multicall">;
659
659
  calls: z.ZodArray<z.ZodObject<{
660
660
  details: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -812,7 +812,7 @@ export declare const activitySchema: z.ZodObject<{
812
812
  zksync2: "zksync2";
813
813
  starknet: "starknet";
814
814
  }>>;
815
- }, z.core.$strip>]>;
815
+ }, z.core.$strip>], "type">;
816
816
  }, z.core.$strip>>;
817
817
  }, z.core.$strip>]>;
818
818
  transferSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -834,7 +834,7 @@ export declare const activitySchema: z.ZodObject<{
834
834
  currency: z.ZodString;
835
835
  currencyAmount: z.ZodCoercedString<unknown>;
836
836
  }, z.core.$strip>>>;
837
- }, z.core.$strip>]>;
837
+ }, z.core.$strip>], "type">;
838
838
  }, z.core.$strip>>>;
839
839
  dapp: z.ZodOptional<z.ZodObject<{
840
840
  dappId: z.ZodString;
@@ -904,7 +904,7 @@ export declare const activitySchema: z.ZodObject<{
904
904
  iconUrl: z.ZodOptional<z.ZodString>;
905
905
  type: z.ZodString;
906
906
  }, z.core.$strip>;
907
- }, z.core.$strip>]>>;
907
+ }, z.core.$strip>], "type">>;
908
908
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
909
909
  type: z.ZodLiteral<"amount">;
910
910
  label: z.ZodString;
@@ -967,7 +967,7 @@ export declare const activitySchema: z.ZodObject<{
967
967
  iconUrl: z.ZodOptional<z.ZodString>;
968
968
  type: z.ZodString;
969
969
  }, z.core.$strip>;
970
- }, z.core.$strip>]>>>;
970
+ }, z.core.$strip>], "type">>>;
971
971
  }, z.core.$strip>>>;
972
972
  title: z.ZodOptional<z.ZodString>;
973
973
  multisigDetails: z.ZodOptional<z.ZodObject<{
@@ -1042,7 +1042,7 @@ export declare const nativeActivitySchema: z.ZodObject<{
1042
1042
  currency: z.ZodString;
1043
1043
  currencyAmount: z.ZodCoercedString<unknown>;
1044
1044
  }, z.core.$strip>>>;
1045
- }, z.core.$strip>]>;
1045
+ }, z.core.$strip>], "type">;
1046
1046
  }, z.core.$strip>>>;
1047
1047
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
1048
  name: z.ZodString;
@@ -1108,7 +1108,7 @@ export declare const nativeActivitySchema: z.ZodObject<{
1108
1108
  iconUrl: z.ZodOptional<z.ZodString>;
1109
1109
  type: z.ZodString;
1110
1110
  }, z.core.$strip>;
1111
- }, z.core.$strip>]>>;
1111
+ }, z.core.$strip>], "type">>;
1112
1112
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1113
1113
  type: z.ZodLiteral<"amount">;
1114
1114
  label: z.ZodString;
@@ -1171,7 +1171,7 @@ export declare const nativeActivitySchema: z.ZodObject<{
1171
1171
  iconUrl: z.ZodOptional<z.ZodString>;
1172
1172
  type: z.ZodString;
1173
1173
  }, z.core.$strip>;
1174
- }, z.core.$strip>]>>>;
1174
+ }, z.core.$strip>], "type">>>;
1175
1175
  }, z.core.$strip>>>;
1176
1176
  multisigDetails: z.ZodOptional<z.ZodObject<{
1177
1177
  signers: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
@@ -1488,7 +1488,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
1488
1488
  zksync2: "zksync2";
1489
1489
  starknet: "starknet";
1490
1490
  }>>;
1491
- }, z.core.$strip>]>, z.ZodObject<{
1491
+ }, z.core.$strip>], "type">, z.ZodObject<{
1492
1492
  type: z.ZodLiteral<"multicall">;
1493
1493
  calls: z.ZodArray<z.ZodObject<{
1494
1494
  details: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1646,7 +1646,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
1646
1646
  zksync2: "zksync2";
1647
1647
  starknet: "starknet";
1648
1648
  }>>;
1649
- }, z.core.$strip>]>;
1649
+ }, z.core.$strip>], "type">;
1650
1650
  }, z.core.$strip>>;
1651
1651
  }, z.core.$strip>]>;
1652
1652
  transferSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1668,7 +1668,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
1668
1668
  currency: z.ZodString;
1669
1669
  currencyAmount: z.ZodCoercedString<unknown>;
1670
1670
  }, z.core.$strip>>>;
1671
- }, z.core.$strip>]>;
1671
+ }, z.core.$strip>], "type">;
1672
1672
  }, z.core.$strip>>>;
1673
1673
  dapp: z.ZodOptional<z.ZodObject<{
1674
1674
  dappId: z.ZodString;
@@ -1738,7 +1738,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
1738
1738
  iconUrl: z.ZodOptional<z.ZodString>;
1739
1739
  type: z.ZodString;
1740
1740
  }, z.core.$strip>;
1741
- }, z.core.$strip>]>>;
1741
+ }, z.core.$strip>], "type">>;
1742
1742
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1743
1743
  type: z.ZodLiteral<"amount">;
1744
1744
  label: z.ZodString;
@@ -1801,7 +1801,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
1801
1801
  iconUrl: z.ZodOptional<z.ZodString>;
1802
1802
  type: z.ZodString;
1803
1803
  }, z.core.$strip>;
1804
- }, z.core.$strip>]>>>;
1804
+ }, z.core.$strip>], "type">>>;
1805
1805
  }, z.core.$strip>>>;
1806
1806
  title: z.ZodOptional<z.ZodString>;
1807
1807
  multisigDetails: z.ZodOptional<z.ZodObject<{
@@ -2067,7 +2067,7 @@ export declare const activityResponseSchema: z.ZodObject<{
2067
2067
  zksync2: "zksync2";
2068
2068
  starknet: "starknet";
2069
2069
  }>>;
2070
- }, z.core.$strip>]>, z.ZodObject<{
2070
+ }, z.core.$strip>], "type">, z.ZodObject<{
2071
2071
  type: z.ZodLiteral<"multicall">;
2072
2072
  calls: z.ZodArray<z.ZodObject<{
2073
2073
  details: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2225,7 +2225,7 @@ export declare const activityResponseSchema: z.ZodObject<{
2225
2225
  zksync2: "zksync2";
2226
2226
  starknet: "starknet";
2227
2227
  }>>;
2228
- }, z.core.$strip>]>;
2228
+ }, z.core.$strip>], "type">;
2229
2229
  }, z.core.$strip>>;
2230
2230
  }, z.core.$strip>]>;
2231
2231
  transferSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2247,7 +2247,7 @@ export declare const activityResponseSchema: z.ZodObject<{
2247
2247
  currency: z.ZodString;
2248
2248
  currencyAmount: z.ZodCoercedString<unknown>;
2249
2249
  }, z.core.$strip>>>;
2250
- }, z.core.$strip>]>;
2250
+ }, z.core.$strip>], "type">;
2251
2251
  }, z.core.$strip>>>;
2252
2252
  dapp: z.ZodOptional<z.ZodObject<{
2253
2253
  dappId: z.ZodString;
@@ -2317,7 +2317,7 @@ export declare const activityResponseSchema: z.ZodObject<{
2317
2317
  iconUrl: z.ZodOptional<z.ZodString>;
2318
2318
  type: z.ZodString;
2319
2319
  }, z.core.$strip>;
2320
- }, z.core.$strip>]>>;
2320
+ }, z.core.$strip>], "type">>;
2321
2321
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2322
2322
  type: z.ZodLiteral<"amount">;
2323
2323
  label: z.ZodString;
@@ -2380,7 +2380,7 @@ export declare const activityResponseSchema: z.ZodObject<{
2380
2380
  iconUrl: z.ZodOptional<z.ZodString>;
2381
2381
  type: z.ZodString;
2382
2382
  }, z.core.$strip>;
2383
- }, z.core.$strip>]>>>;
2383
+ }, z.core.$strip>], "type">>>;
2384
2384
  }, z.core.$strip>>>;
2385
2385
  title: z.ZodOptional<z.ZodString>;
2386
2386
  multisigDetails: z.ZodOptional<z.ZodObject<{
@@ -53,7 +53,7 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
53
53
  maxFee: z.ZodBigInt;
54
54
  overallFee: z.ZodBigInt;
55
55
  tip: z.ZodOptional<z.ZodBigInt>;
56
- }, z.core.$strip>]>;
56
+ }, z.core.$strip>], "type">;
57
57
  export type EstimatedFee = z.infer<typeof estimatedFeeSchema>;
58
58
  export declare const nativeEstimatedFeesSchema: z.ZodObject<{
59
59
  type: z.ZodLiteral<"native">;
@@ -157,7 +157,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
157
157
  tip: z.ZodOptional<z.ZodBigInt>;
158
158
  maxFee: z.ZodBigInt;
159
159
  }, z.core.$strip>>;
160
- }, z.core.$strip>]>;
160
+ }, z.core.$strip>], "type">;
161
161
  export type EstimatedFees = z.infer<typeof estimatedFeesSchema>;
162
162
  export type EstimatedFeesEnriched = UnionEvaluate<EstimatedFees & {
163
163
  id: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),d=require("../warning/schema.cjs"),B=require("../fees/schema.cjs"),t=require("../../../chains/starknet/address.cjs"),D=e.z.object({name:e.z.string(),url:e.z.string(),position:e.z.number()}),i=e.z.object({address:e.z.string(),name:e.z.string(),symbol:e.z.string().optional(),decimals:e.z.number().optional(),unknown:e.z.boolean(),iconUrl:e.z.string().optional(),type:e.z.string()}),s=e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("amount"),label:e.z.string(),token:i,amount:e.z.string(),usd:e.z.string(),editable:e.z.boolean()}),e.z.object({type:e.z.literal("address"),label:e.z.string(),address:e.z.string(),addressName:e.z.string().optional(),verified:e.z.boolean().optional()}),e.z.object({type:e.z.literal("timestamp"),label:e.z.string(),value:e.z.string()}),e.z.object({type:e.z.literal("token_address"),label:e.z.string(),token:i}),e.z.object({type:e.z.literal("calldata"),label:e.z.string(),entrypoint:e.z.string(),calldata:e.z.array(e.z.string())}),e.z.object({type:e.z.literal("class_hash"),label:e.z.string(),classHash:e.z.string()}),e.z.object({type:e.z.literal("text"),label:e.z.string(),text:e.z.string()}),e.z.object({type:e.z.literal("nft"),label:e.z.string(),token:i})]),u=e.z.object({name:e.z.string(),properties:e.z.array(s),defaultProperties:e.z.array(s).optional()}),g=e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),b=e.z.object({unknown_token:e.z.unknown().optional(),date_of_addition:e.z.string().optional(),contract_address:t.addressSchema.optional(),reason:e.z.string().optional(),value:e.z.any().optional()}),r=e.z.object({reason:d.reasonsSchema,details:b.optional(),severity:d.severitySchema}),S=e.z.object({assessment:g,warnings:e.z.array(r).optional(),assessmentReasons:e.z.array(e.z.string()).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),action:u}),h=e.z.object({name:e.z.string(),description:e.z.string(),logoUrl:e.z.string().optional(),iconUrl:e.z.string().optional(),argentVerified:e.z.boolean(),links:e.z.array(D)}),y=e.z.object({assessment:e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),warnings:e.z.array(r).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),targetedDapp:h.optional(),reviews:e.z.array(S)}).optional(),j=e.z.object({banner:e.z.string().nullable().optional(),preview:e.z.string().nullable().optional(),full:e.z.string().nullable().optional(),original:e.z.string().nullable().optional()}),F=e.z.object({twitter:e.z.string().optional(),external:e.z.string().optional(),discord:e.z.string().optional()}),l=e.z.object({address:t.addressSchemaArgentBackend,decimals:e.z.number().optional(),symbol:e.z.string().optional(),name:e.z.string(),description:e.z.string().optional(),type:e.z.string().optional(),usdValue:e.z.string().optional(),iconUrl:e.z.string().optional(),unknown:e.z.boolean().optional(),imageUrls:j.optional(),links:F.optional()}),U=e.z.object({tokenAddress:t.addressSchemaArgentBackend,owner:t.addressSchemaArgentBackend,spender:t.addressSchemaArgentBackend,value:e.z.string().optional(),approvalForAll:e.z.boolean(),details:l.optional()}),R=e.z.object({tokenAddress:t.addressSchemaArgentBackend,from:t.addressSchemaArgentBackend,to:t.addressSchemaArgentBackend,tokenId:e.z.string().optional(),value:e.z.string().optional(),details:l.optional()}),n=e.z.union([e.z.string(),e.z.number(),e.z.bigint()]).transform(a=>parseInt(a.toString(),10)),c=e.z.object({address:t.addressSchemaArgentBackend,unknown:e.z.boolean(),type:e.z.literal("ERC20")}),o=e.z.object({maxAmount:n,maxPricePerUnit:n}),f=e.z.object({l1Gas:o,l1DataGas:o,l2Gas:o}),k=e.z.object({token:c,overallFee:n,maxFee:n,defaultTip:n.optional()}),z=e.z.object({overallFee:n,resourceBounds:f,unit:e.z.string().transform(a=>a.toUpperCase()).pipe(e.z.literal("FRI")),token:c,defaultTip:n.optional()}),v=z.or(k),N=e.z.object({type:e.z.string(),label:e.z.string(),tokenId:e.z.string().optional(),value:e.z.string().optional(),usdValue:e.z.string().optional(),token:l,sent:e.z.boolean().optional(),tokenIdDetails:e.z.object({name:e.z.string().optional(),description:e.z.string().optional(),imageUrls:j.optional()}).optional()}),P=e.z.object({approvals:e.z.array(U).optional(),transfers:e.z.array(R).optional(),calculatedNonce:e.z.string().optional(),feeEstimation:z,feeEstimations:e.z.array(v),summary:e.z.array(N).optional()}),_=e.z.object({label:e.z.string().optional(),code:e.z.number().optional(),message:e.z.string().optional(),error:e.z.string().optional()}),w=e.z.object({reviewOfTransaction:y,simulation:P,simulationError:e.z.undefined().optional()}),E=e.z.object({reviewOfTransaction:y,simulation:e.z.undefined().optional(),simulationError:_}),A=w.or(E),m=e.z.object({subsidiseDeployment:e.z.boolean(),subsidiseTransaction:e.z.boolean()}),T=e.z.object({name:e.z.string().optional(),shouldShow:e.z.boolean().optional()}),p=e.z.array(T),O=e.z.object({transactions:e.z.array(A).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:m.optional(),promotions:p.optional()}),x=e.z.object({transactions:e.z.array(A).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:m.optional(),enrichedFeeEstimation:e.z.array(B.estimatedFeesSchema).optional(),isBackendDown:e.z.boolean().default(!1).optional(),promotions:p.optional()});function G(a){return w.safeParse(a).success}function I(a){return E.safeParse(a).success}exports.actionSchema=u;exports.assessmentSchema=g;exports.enrichedSimulateAndReviewSchema=x;exports.feeEstimationGasSchema=o;exports.feeEstimationNativeOrPaymasterSchema=v;exports.feeEstimationResourceBoundSchema=f;exports.feeEstimationSchema=z;exports.isNotTransactionSimulationError=G;exports.isTransactionSimulationError=I;exports.paymasterFeeEstimationSchema=k;exports.paymasterFeeTokenSchema=c;exports.promotionSchema=T;exports.promotionsSchema=p;exports.propertySchema=s;exports.reviewSchema=S;exports.simulateAndReviewSchema=O;exports.subsidyStatusSchema=m;exports.targetedDappSchema=h;exports.warningDetailsSchema=b;exports.warningSchema=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),d=require("../warning/schema.cjs"),B=require("../fees/schema.cjs"),t=require("../../../chains/starknet/address.cjs"),D=e.z.object({name:e.z.string(),url:e.z.string(),position:e.z.number()}),i=e.z.object({address:e.z.string(),name:e.z.string(),symbol:e.z.string().optional(),decimals:e.z.number().optional(),unknown:e.z.boolean(),iconUrl:e.z.string().optional(),type:e.z.string()}),s=e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("amount"),label:e.z.string(),token:i,amount:e.z.string(),usd:e.z.string(),editable:e.z.boolean()}),e.z.object({type:e.z.literal("address"),label:e.z.string(),address:e.z.string(),addressName:e.z.string().optional(),verified:e.z.boolean().optional()}),e.z.object({type:e.z.literal("timestamp"),label:e.z.string(),value:e.z.string()}),e.z.object({type:e.z.literal("token_address"),label:e.z.string(),token:i}),e.z.object({type:e.z.literal("calldata"),label:e.z.string(),entrypoint:e.z.string(),calldata:e.z.array(e.z.string())}),e.z.object({type:e.z.literal("class_hash"),label:e.z.string(),classHash:e.z.string()}),e.z.object({type:e.z.literal("text"),label:e.z.string(),text:e.z.string()}),e.z.object({type:e.z.literal("nft"),label:e.z.string(),token:i})]),g=e.z.object({name:e.z.string(),properties:e.z.array(s),defaultProperties:e.z.array(s).optional()}),u=e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),b=e.z.object({unknown_token:e.z.unknown().optional(),date_of_addition:e.z.string().optional(),contract_address:t.addressSchema.optional(),reason:e.z.string().optional(),value:e.z.any().optional()}),r=e.z.object({reason:d.reasonsSchema,details:b.optional(),severity:d.severitySchema}),S=e.z.object({assessment:u,warnings:e.z.array(r).optional(),assessmentReasons:e.z.array(e.z.string()).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),action:g}),h=e.z.object({name:e.z.string(),description:e.z.string(),logoUrl:e.z.string().optional(),iconUrl:e.z.string().optional(),argentVerified:e.z.boolean(),links:e.z.array(D)}),y=e.z.object({assessment:e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),warnings:e.z.array(r).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),targetedDapp:h.optional(),reviews:e.z.array(S)}).optional(),j=e.z.object({banner:e.z.string().nullable().optional(),preview:e.z.string().nullable().optional(),full:e.z.string().nullable().optional(),original:e.z.string().nullable().optional()}),F=e.z.object({twitter:e.z.string().optional(),external:e.z.string().optional(),discord:e.z.string().optional()}),l=e.z.object({address:t.addressSchemaArgentBackend,decimals:e.z.number().optional(),symbol:e.z.string().optional(),name:e.z.string(),description:e.z.string().optional(),type:e.z.string().optional(),usdValue:e.z.string().optional(),iconUrl:e.z.string().optional(),unknown:e.z.boolean().optional(),imageUrls:j.optional(),links:F.optional()}),U=e.z.object({tokenAddress:t.addressSchemaArgentBackend,owner:t.addressSchemaArgentBackend,spender:t.addressSchemaArgentBackend,value:e.z.string().optional(),approvalForAll:e.z.boolean(),details:l.optional()}),R=e.z.object({tokenAddress:t.addressSchemaArgentBackend,from:t.addressSchemaArgentBackend,to:t.addressSchemaArgentBackend,tokenId:e.z.string().optional(),value:e.z.string().optional(),details:l.optional()}),n=e.z.union([e.z.string(),e.z.number(),e.z.bigint()]).transform(a=>parseInt(a.toString(),10)),c=e.z.object({address:t.addressSchemaArgentBackend,unknown:e.z.boolean(),type:e.z.literal("ERC20")}),o=e.z.object({maxAmount:n,maxPricePerUnit:n}),f=e.z.object({l1Gas:o,l1DataGas:o,l2Gas:o}),k=e.z.object({token:c,overallFee:n,maxFee:n,defaultTip:n.optional()}),z=e.z.object({overallFee:n,resourceBounds:f,unit:e.z.string().transform(a=>a.toUpperCase()).pipe(e.z.literal("FRI")),token:c,defaultTip:n.optional()}),v=z.or(k),N=e.z.object({type:e.z.string(),label:e.z.string(),tokenId:e.z.string().optional(),value:e.z.string().optional(),token:l,sent:e.z.boolean().optional(),ccyValue:e.z.string().optional(),currency:e.z.string().optional(),tokenIdDetails:e.z.object({name:e.z.string().optional(),description:e.z.string().optional(),imageUrls:j.optional()}).optional()}),P=e.z.object({approvals:e.z.array(U).optional(),transfers:e.z.array(R).optional(),calculatedNonce:e.z.string().optional(),feeEstimation:z,feeEstimations:e.z.array(v),summary:e.z.array(N).optional()}),_=e.z.object({label:e.z.string().optional(),code:e.z.number().optional(),message:e.z.string().optional(),error:e.z.string().optional()}),w=e.z.object({reviewOfTransaction:y,simulation:P,simulationError:e.z.undefined().optional()}),E=e.z.object({reviewOfTransaction:y,simulation:e.z.undefined().optional(),simulationError:_}),A=w.or(E),m=e.z.object({subsidiseDeployment:e.z.boolean(),subsidiseTransaction:e.z.boolean()}),T=e.z.object({name:e.z.string().optional(),shouldShow:e.z.boolean().optional()}),p=e.z.array(T),O=e.z.object({transactions:e.z.array(A).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:m.optional(),promotions:p.optional()}),x=e.z.object({transactions:e.z.array(A).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:m.optional(),enrichedFeeEstimation:e.z.array(B.estimatedFeesSchema).optional(),isBackendDown:e.z.boolean().default(!1).optional(),promotions:p.optional()});function G(a){return w.safeParse(a).success}function I(a){return E.safeParse(a).success}exports.actionSchema=g;exports.assessmentSchema=u;exports.enrichedSimulateAndReviewSchema=x;exports.feeEstimationGasSchema=o;exports.feeEstimationNativeOrPaymasterSchema=v;exports.feeEstimationResourceBoundSchema=f;exports.feeEstimationSchema=z;exports.isNotTransactionSimulationError=G;exports.isTransactionSimulationError=I;exports.paymasterFeeEstimationSchema=k;exports.paymasterFeeTokenSchema=c;exports.promotionSchema=T;exports.promotionsSchema=p;exports.propertySchema=s;exports.reviewSchema=S;exports.simulateAndReviewSchema=O;exports.subsidyStatusSchema=m;exports.targetedDappSchema=h;exports.warningDetailsSchema=b;exports.warningSchema=r;
@@ -61,7 +61,7 @@ export declare const propertySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
61
  iconUrl: z.ZodOptional<z.ZodString>;
62
62
  type: z.ZodString;
63
63
  }, z.core.$strip>;
64
- }, z.core.$strip>]>;
64
+ }, z.core.$strip>], "type">;
65
65
  export declare const actionSchema: z.ZodObject<{
66
66
  name: z.ZodString;
67
67
  properties: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -126,7 +126,7 @@ export declare const actionSchema: z.ZodObject<{
126
126
  iconUrl: z.ZodOptional<z.ZodString>;
127
127
  type: z.ZodString;
128
128
  }, z.core.$strip>;
129
- }, z.core.$strip>]>>;
129
+ }, z.core.$strip>], "type">>;
130
130
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
131
131
  type: z.ZodLiteral<"amount">;
132
132
  label: z.ZodString;
@@ -189,7 +189,7 @@ export declare const actionSchema: z.ZodObject<{
189
189
  iconUrl: z.ZodOptional<z.ZodString>;
190
190
  type: z.ZodString;
191
191
  }, z.core.$strip>;
192
- }, z.core.$strip>]>>>;
192
+ }, z.core.$strip>], "type">>>;
193
193
  }, z.core.$strip>;
194
194
  export declare const assessmentSchema: z.ZodUnion<readonly [z.ZodLiteral<"verified">, z.ZodLiteral<"neutral">, z.ZodLiteral<"partial">, z.ZodLiteral<"warn">]>;
195
195
  export declare const warningDetailsSchema: z.ZodObject<{
@@ -291,7 +291,7 @@ export declare const reviewSchema: z.ZodObject<{
291
291
  iconUrl: z.ZodOptional<z.ZodString>;
292
292
  type: z.ZodString;
293
293
  }, z.core.$strip>;
294
- }, z.core.$strip>]>>;
294
+ }, z.core.$strip>], "type">>;
295
295
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
296
296
  type: z.ZodLiteral<"amount">;
297
297
  label: z.ZodString;
@@ -354,7 +354,7 @@ export declare const reviewSchema: z.ZodObject<{
354
354
  iconUrl: z.ZodOptional<z.ZodString>;
355
355
  type: z.ZodString;
356
356
  }, z.core.$strip>;
357
- }, z.core.$strip>]>>>;
357
+ }, z.core.$strip>], "type">>>;
358
358
  }, z.core.$strip>;
359
359
  }, z.core.$strip>;
360
360
  export declare const targetedDappSchema: z.ZodObject<{
@@ -478,7 +478,7 @@ declare const reviewOfTransactionSchema: z.ZodOptional<z.ZodObject<{
478
478
  iconUrl: z.ZodOptional<z.ZodString>;
479
479
  type: z.ZodString;
480
480
  }, z.core.$strip>;
481
- }, z.core.$strip>]>>;
481
+ }, z.core.$strip>], "type">>;
482
482
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
483
483
  type: z.ZodLiteral<"amount">;
484
484
  label: z.ZodString;
@@ -541,7 +541,7 @@ declare const reviewOfTransactionSchema: z.ZodOptional<z.ZodObject<{
541
541
  iconUrl: z.ZodOptional<z.ZodString>;
542
542
  type: z.ZodString;
543
543
  }, z.core.$strip>;
544
- }, z.core.$strip>]>>>;
544
+ }, z.core.$strip>], "type">>>;
545
545
  }, z.core.$strip>;
546
546
  }, z.core.$strip>>;
547
547
  }, z.core.$strip>>;
@@ -640,7 +640,6 @@ declare const summarySchema: z.ZodObject<{
640
640
  label: z.ZodString;
641
641
  tokenId: z.ZodOptional<z.ZodString>;
642
642
  value: z.ZodOptional<z.ZodString>;
643
- usdValue: z.ZodOptional<z.ZodString>;
644
643
  token: z.ZodObject<{
645
644
  address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
646
645
  decimals: z.ZodOptional<z.ZodNumber>;
@@ -664,6 +663,8 @@ declare const summarySchema: z.ZodObject<{
664
663
  }, z.core.$strip>>;
665
664
  }, z.core.$strip>;
666
665
  sent: z.ZodOptional<z.ZodBoolean>;
666
+ ccyValue: z.ZodOptional<z.ZodString>;
667
+ currency: z.ZodOptional<z.ZodString>;
667
668
  tokenIdDetails: z.ZodOptional<z.ZodObject<{
668
669
  name: z.ZodOptional<z.ZodString>;
669
670
  description: z.ZodOptional<z.ZodString>;
@@ -797,7 +798,6 @@ declare const simulationSchema: z.ZodObject<{
797
798
  label: z.ZodString;
798
799
  tokenId: z.ZodOptional<z.ZodString>;
799
800
  value: z.ZodOptional<z.ZodString>;
800
- usdValue: z.ZodOptional<z.ZodString>;
801
801
  token: z.ZodObject<{
802
802
  address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
803
803
  decimals: z.ZodOptional<z.ZodNumber>;
@@ -821,6 +821,8 @@ declare const simulationSchema: z.ZodObject<{
821
821
  }, z.core.$strip>>;
822
822
  }, z.core.$strip>;
823
823
  sent: z.ZodOptional<z.ZodBoolean>;
824
+ ccyValue: z.ZodOptional<z.ZodString>;
825
+ currency: z.ZodOptional<z.ZodString>;
824
826
  tokenIdDetails: z.ZodOptional<z.ZodObject<{
825
827
  name: z.ZodOptional<z.ZodString>;
826
828
  description: z.ZodOptional<z.ZodString>;
@@ -949,7 +951,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
949
951
  iconUrl: z.ZodOptional<z.ZodString>;
950
952
  type: z.ZodString;
951
953
  }, z.core.$strip>;
952
- }, z.core.$strip>]>>;
954
+ }, z.core.$strip>], "type">>;
953
955
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
954
956
  type: z.ZodLiteral<"amount">;
955
957
  label: z.ZodString;
@@ -1012,7 +1014,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
1012
1014
  iconUrl: z.ZodOptional<z.ZodString>;
1013
1015
  type: z.ZodString;
1014
1016
  }, z.core.$strip>;
1015
- }, z.core.$strip>]>>>;
1017
+ }, z.core.$strip>], "type">>>;
1016
1018
  }, z.core.$strip>;
1017
1019
  }, z.core.$strip>>;
1018
1020
  }, z.core.$strip>>;
@@ -1138,7 +1140,6 @@ declare const transactionSimulationSchema: z.ZodObject<{
1138
1140
  label: z.ZodString;
1139
1141
  tokenId: z.ZodOptional<z.ZodString>;
1140
1142
  value: z.ZodOptional<z.ZodString>;
1141
- usdValue: z.ZodOptional<z.ZodString>;
1142
1143
  token: z.ZodObject<{
1143
1144
  address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1144
1145
  decimals: z.ZodOptional<z.ZodNumber>;
@@ -1162,6 +1163,8 @@ declare const transactionSimulationSchema: z.ZodObject<{
1162
1163
  }, z.core.$strip>>;
1163
1164
  }, z.core.$strip>;
1164
1165
  sent: z.ZodOptional<z.ZodBoolean>;
1166
+ ccyValue: z.ZodOptional<z.ZodString>;
1167
+ currency: z.ZodOptional<z.ZodString>;
1165
1168
  tokenIdDetails: z.ZodOptional<z.ZodObject<{
1166
1169
  name: z.ZodOptional<z.ZodString>;
1167
1170
  description: z.ZodOptional<z.ZodString>;
@@ -1286,7 +1289,7 @@ declare const transactionSimulationErrorSchema: z.ZodObject<{
1286
1289
  iconUrl: z.ZodOptional<z.ZodString>;
1287
1290
  type: z.ZodString;
1288
1291
  }, z.core.$strip>;
1289
- }, z.core.$strip>]>>;
1292
+ }, z.core.$strip>], "type">>;
1290
1293
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1291
1294
  type: z.ZodLiteral<"amount">;
1292
1295
  label: z.ZodString;
@@ -1349,7 +1352,7 @@ declare const transactionSimulationErrorSchema: z.ZodObject<{
1349
1352
  iconUrl: z.ZodOptional<z.ZodString>;
1350
1353
  type: z.ZodString;
1351
1354
  }, z.core.$strip>;
1352
- }, z.core.$strip>]>>>;
1355
+ }, z.core.$strip>], "type">>>;
1353
1356
  }, z.core.$strip>;
1354
1357
  }, z.core.$strip>>;
1355
1358
  }, z.core.$strip>>;
@@ -1471,7 +1474,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
1471
1474
  iconUrl: z.ZodOptional<z.ZodString>;
1472
1475
  type: z.ZodString;
1473
1476
  }, z.core.$strip>;
1474
- }, z.core.$strip>]>>;
1477
+ }, z.core.$strip>], "type">>;
1475
1478
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1476
1479
  type: z.ZodLiteral<"amount">;
1477
1480
  label: z.ZodString;
@@ -1534,7 +1537,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
1534
1537
  iconUrl: z.ZodOptional<z.ZodString>;
1535
1538
  type: z.ZodString;
1536
1539
  }, z.core.$strip>;
1537
- }, z.core.$strip>]>>>;
1540
+ }, z.core.$strip>], "type">>>;
1538
1541
  }, z.core.$strip>;
1539
1542
  }, z.core.$strip>>;
1540
1543
  }, z.core.$strip>>;
@@ -1660,7 +1663,6 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
1660
1663
  label: z.ZodString;
1661
1664
  tokenId: z.ZodOptional<z.ZodString>;
1662
1665
  value: z.ZodOptional<z.ZodString>;
1663
- usdValue: z.ZodOptional<z.ZodString>;
1664
1666
  token: z.ZodObject<{
1665
1667
  address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1666
1668
  decimals: z.ZodOptional<z.ZodNumber>;
@@ -1684,6 +1686,8 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
1684
1686
  }, z.core.$strip>>;
1685
1687
  }, z.core.$strip>;
1686
1688
  sent: z.ZodOptional<z.ZodBoolean>;
1689
+ ccyValue: z.ZodOptional<z.ZodString>;
1690
+ currency: z.ZodOptional<z.ZodString>;
1687
1691
  tokenIdDetails: z.ZodOptional<z.ZodObject<{
1688
1692
  name: z.ZodOptional<z.ZodString>;
1689
1693
  description: z.ZodOptional<z.ZodString>;
@@ -1807,7 +1811,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
1807
1811
  iconUrl: z.ZodOptional<z.ZodString>;
1808
1812
  type: z.ZodString;
1809
1813
  }, z.core.$strip>;
1810
- }, z.core.$strip>]>>;
1814
+ }, z.core.$strip>], "type">>;
1811
1815
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1812
1816
  type: z.ZodLiteral<"amount">;
1813
1817
  label: z.ZodString;
@@ -1870,7 +1874,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
1870
1874
  iconUrl: z.ZodOptional<z.ZodString>;
1871
1875
  type: z.ZodString;
1872
1876
  }, z.core.$strip>;
1873
- }, z.core.$strip>]>>>;
1877
+ }, z.core.$strip>], "type">>>;
1874
1878
  }, z.core.$strip>;
1875
1879
  }, z.core.$strip>>;
1876
1880
  }, z.core.$strip>>;
@@ -2008,7 +2012,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
2008
2012
  iconUrl: z.ZodOptional<z.ZodString>;
2009
2013
  type: z.ZodString;
2010
2014
  }, z.core.$strip>;
2011
- }, z.core.$strip>]>>;
2015
+ }, z.core.$strip>], "type">>;
2012
2016
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2013
2017
  type: z.ZodLiteral<"amount">;
2014
2018
  label: z.ZodString;
@@ -2071,7 +2075,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
2071
2075
  iconUrl: z.ZodOptional<z.ZodString>;
2072
2076
  type: z.ZodString;
2073
2077
  }, z.core.$strip>;
2074
- }, z.core.$strip>]>>>;
2078
+ }, z.core.$strip>], "type">>>;
2075
2079
  }, z.core.$strip>;
2076
2080
  }, z.core.$strip>>;
2077
2081
  }, z.core.$strip>>;
@@ -2197,7 +2201,6 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
2197
2201
  label: z.ZodString;
2198
2202
  tokenId: z.ZodOptional<z.ZodString>;
2199
2203
  value: z.ZodOptional<z.ZodString>;
2200
- usdValue: z.ZodOptional<z.ZodString>;
2201
2204
  token: z.ZodObject<{
2202
2205
  address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2203
2206
  decimals: z.ZodOptional<z.ZodNumber>;
@@ -2221,6 +2224,8 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
2221
2224
  }, z.core.$strip>>;
2222
2225
  }, z.core.$strip>;
2223
2226
  sent: z.ZodOptional<z.ZodBoolean>;
2227
+ ccyValue: z.ZodOptional<z.ZodString>;
2228
+ currency: z.ZodOptional<z.ZodString>;
2224
2229
  tokenIdDetails: z.ZodOptional<z.ZodObject<{
2225
2230
  name: z.ZodOptional<z.ZodString>;
2226
2231
  description: z.ZodOptional<z.ZodString>;
@@ -2344,7 +2349,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
2344
2349
  iconUrl: z.ZodOptional<z.ZodString>;
2345
2350
  type: z.ZodString;
2346
2351
  }, z.core.$strip>;
2347
- }, z.core.$strip>]>>;
2352
+ }, z.core.$strip>], "type">>;
2348
2353
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2349
2354
  type: z.ZodLiteral<"amount">;
2350
2355
  label: z.ZodString;
@@ -2407,7 +2412,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
2407
2412
  iconUrl: z.ZodOptional<z.ZodString>;
2408
2413
  type: z.ZodString;
2409
2414
  }, z.core.$strip>;
2410
- }, z.core.$strip>]>>>;
2415
+ }, z.core.$strip>], "type">>>;
2411
2416
  }, z.core.$strip>;
2412
2417
  }, z.core.$strip>>;
2413
2418
  }, z.core.$strip>>;
@@ -2540,7 +2545,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
2540
2545
  iconUrl: z.ZodOptional<z.ZodString>;
2541
2546
  type: z.ZodString;
2542
2547
  }, z.core.$strip>;
2543
- }, z.core.$strip>]>>;
2548
+ }, z.core.$strip>], "type">>;
2544
2549
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2545
2550
  type: z.ZodLiteral<"amount">;
2546
2551
  label: z.ZodString;
@@ -2603,7 +2608,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
2603
2608
  iconUrl: z.ZodOptional<z.ZodString>;
2604
2609
  type: z.ZodString;
2605
2610
  }, z.core.$strip>;
2606
- }, z.core.$strip>]>>>;
2611
+ }, z.core.$strip>], "type">>>;
2607
2612
  }, z.core.$strip>;
2608
2613
  }, z.core.$strip>>;
2609
2614
  }, z.core.$strip>>;
@@ -2729,7 +2734,6 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
2729
2734
  label: z.ZodString;
2730
2735
  tokenId: z.ZodOptional<z.ZodString>;
2731
2736
  value: z.ZodOptional<z.ZodString>;
2732
- usdValue: z.ZodOptional<z.ZodString>;
2733
2737
  token: z.ZodObject<{
2734
2738
  address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2735
2739
  decimals: z.ZodOptional<z.ZodNumber>;
@@ -2753,6 +2757,8 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
2753
2757
  }, z.core.$strip>>;
2754
2758
  }, z.core.$strip>;
2755
2759
  sent: z.ZodOptional<z.ZodBoolean>;
2760
+ ccyValue: z.ZodOptional<z.ZodString>;
2761
+ currency: z.ZodOptional<z.ZodString>;
2756
2762
  tokenIdDetails: z.ZodOptional<z.ZodObject<{
2757
2763
  name: z.ZodOptional<z.ZodString>;
2758
2764
  description: z.ZodOptional<z.ZodString>;
@@ -2876,7 +2882,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
2876
2882
  iconUrl: z.ZodOptional<z.ZodString>;
2877
2883
  type: z.ZodString;
2878
2884
  }, z.core.$strip>;
2879
- }, z.core.$strip>]>>;
2885
+ }, z.core.$strip>], "type">>;
2880
2886
  defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2881
2887
  type: z.ZodLiteral<"amount">;
2882
2888
  label: z.ZodString;
@@ -2939,7 +2945,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
2939
2945
  iconUrl: z.ZodOptional<z.ZodString>;
2940
2946
  type: z.ZodString;
2941
2947
  }, z.core.$strip>;
2942
- }, z.core.$strip>]>>>;
2948
+ }, z.core.$strip>], "type">>>;
2943
2949
  }, z.core.$strip>;
2944
2950
  }, z.core.$strip>>;
2945
2951
  }, z.core.$strip>>;
@@ -3006,7 +3012,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
3006
3012
  tip: z.ZodOptional<z.ZodBigInt>;
3007
3013
  maxFee: z.ZodBigInt;
3008
3014
  }, z.core.$strip>>;
3009
- }, z.core.$strip>]>>>;
3015
+ }, z.core.$strip>], "type">>>;
3010
3016
  isBackendDown: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3011
3017
  promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3012
3018
  name: z.ZodOptional<z.ZodString>;
@@ -1,5 +1,5 @@
1
1
  import { z as t } from "zod";
2
- import { severitySchema as y, reasonsSchema as j } from "../warning/schema.js";
2
+ import { severitySchema as h, reasonsSchema as j } from "../warning/schema.js";
3
3
  import { estimatedFeesSchema as f } from "../fees/schema.js";
4
4
  import { addressSchema as k, addressSchemaArgentBackend as o } from "../../../chains/starknet/address.js";
5
5
  const v = t.object({
@@ -80,7 +80,7 @@ const v = t.object({
80
80
  }), l = t.object({
81
81
  reason: j,
82
82
  details: D.optional(),
83
- severity: y
83
+ severity: h
84
84
  }), U = t.object({
85
85
  assessment: E,
86
86
  warnings: t.array(l).optional(),
@@ -160,20 +160,23 @@ const v = t.object({
160
160
  overallFee: n,
161
161
  maxFee: n,
162
162
  defaultTip: n.optional()
163
- }), d = t.object({
163
+ }), b = t.object({
164
164
  overallFee: n,
165
165
  resourceBounds: x,
166
166
  unit: t.string().transform((a) => a.toUpperCase()).pipe(t.literal("FRI")),
167
167
  token: m,
168
168
  defaultTip: n.optional()
169
- }), P = d.or(N), R = t.object({
169
+ }), P = b.or(N), R = t.object({
170
170
  type: t.string(),
171
171
  label: t.string(),
172
172
  tokenId: t.string().optional(),
173
173
  value: t.string().optional(),
174
- usdValue: t.string().optional(),
175
174
  token: s,
176
175
  sent: t.boolean().optional(),
176
+ ccyValue: t.string().optional(),
177
+ // currency value
178
+ currency: t.string().optional(),
179
+ // currency code
177
180
  tokenIdDetails: t.object({
178
181
  name: t.string().optional(),
179
182
  description: t.string().optional(),
@@ -183,7 +186,7 @@ const v = t.object({
183
186
  approvals: t.array(A).optional(),
184
187
  transfers: t.array(_).optional(),
185
188
  calculatedNonce: t.string().optional(),
186
- feeEstimation: d,
189
+ feeEstimation: b,
187
190
  feeEstimations: t.array(P),
188
191
  summary: t.array(R).optional()
189
192
  }), O = t.object({
@@ -191,7 +194,7 @@ const v = t.object({
191
194
  code: t.number().optional(),
192
195
  message: t.string().optional(),
193
196
  error: t.string().optional()
194
- }), b = t.object({
197
+ }), d = t.object({
195
198
  reviewOfTransaction: c,
196
199
  simulation: I,
197
200
  simulationError: t.undefined().optional()
@@ -199,27 +202,27 @@ const v = t.object({
199
202
  reviewOfTransaction: c,
200
203
  simulation: t.undefined().optional(),
201
204
  simulationError: O
202
- }), u = b.or(g), S = t.object({
205
+ }), u = d.or(g), S = t.object({
203
206
  subsidiseDeployment: t.boolean(),
204
207
  subsidiseTransaction: t.boolean()
205
208
  }), B = t.object({
206
209
  name: t.string().optional(),
207
210
  shouldShow: t.boolean().optional()
208
- }), h = t.array(B), H = t.object({
211
+ }), y = t.array(B), H = t.object({
209
212
  transactions: t.array(u).optional(),
210
213
  canSubsidise: t.boolean().optional(),
211
214
  subsidyStatus: S.optional(),
212
- promotions: h.optional()
215
+ promotions: y.optional()
213
216
  }), q = t.object({
214
217
  transactions: t.array(u).optional(),
215
218
  canSubsidise: t.boolean().optional(),
216
219
  subsidyStatus: S.optional(),
217
220
  enrichedFeeEstimation: t.array(f).optional(),
218
221
  isBackendDown: t.boolean().default(!1).optional(),
219
- promotions: h.optional()
222
+ promotions: y.optional()
220
223
  });
221
224
  function J(a) {
222
- return b.safeParse(a).success;
225
+ return d.safeParse(a).success;
223
226
  }
224
227
  function K(a) {
225
228
  return g.safeParse(a).success;
@@ -231,13 +234,13 @@ export {
231
234
  i as feeEstimationGasSchema,
232
235
  P as feeEstimationNativeOrPaymasterSchema,
233
236
  x as feeEstimationResourceBoundSchema,
234
- d as feeEstimationSchema,
237
+ b as feeEstimationSchema,
235
238
  J as isNotTransactionSimulationError,
236
239
  K as isTransactionSimulationError,
237
240
  N as paymasterFeeEstimationSchema,
238
241
  m as paymasterFeeTokenSchema,
239
242
  B as promotionSchema,
240
- h as promotionsSchema,
243
+ y as promotionsSchema,
241
244
  r as propertySchema,
242
245
  U as reviewSchema,
243
246
  H as simulateAndReviewSchema,
@@ -374,7 +374,7 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
374
  buyEnabled: z.ZodOptional<z.ZodBoolean>;
375
375
  sellEnabled: z.ZodOptional<z.ZodBoolean>;
376
376
  claimEnabled: z.ZodOptional<z.ZodBoolean>;
377
- }, z.core.$strip>]>;
377
+ }, z.core.$strip>], "category">;
378
378
  export type Investment = z.infer<typeof investmentSchema>;
379
379
  export type LiquidStakingInvestment = z.infer<typeof liquidStakingInvestmentSchema>;
380
380
  export type LendingInvestment = z.infer<typeof lendingInvestmentSchema>;
@@ -563,7 +563,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
563
563
  buyEnabled: z.ZodOptional<z.ZodBoolean>;
564
564
  sellEnabled: z.ZodOptional<z.ZodBoolean>;
565
565
  claimEnabled: z.ZodOptional<z.ZodBoolean>;
566
- }, z.core.$strip>]>>;
566
+ }, z.core.$strip>], "category">>;
567
567
  }, z.core.$strip>;
568
568
  export type InvestmentsResponse = z.infer<typeof investmentsResponseSchema>;
569
569
  export declare const strkStakingCalldataResponseSchema: z.ZodObject<{
@@ -617,95 +617,7 @@ export declare const apiDefiDecompositionProduct: z.ZodObject<{
617
617
  rewardTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
618
618
  }, z.core.$strip>;
619
619
  }, z.core.$strip>]>>;
620
- } & E extends infer T ? { -readonly [P in keyof T]: ({
621
- productId: z.ZodOptional<z.ZodString>;
622
- name: z.ZodString;
623
- manageUrl: z.ZodOptional<z.ZodString>;
624
- type: z.ZodUnion<readonly [z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
625
- groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
626
- name: z.ZodOptional<z.ZodString>;
627
- healthRatio: z.ZodOptional<z.ZodString>;
628
- }, z.core.$strip>>>;
629
- positions: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
630
- id: z.ZodString;
631
- investmentId: z.ZodOptional<z.ZodString>;
632
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
633
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
634
- tokenId: z.ZodString;
635
- data: z.ZodObject<{
636
- poolFeePercentage: z.ZodString;
637
- tickSpacingPercentage: z.ZodOptional<z.ZodString>;
638
- token0: z.ZodObject<{
639
- tokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
640
- principal: z.ZodString;
641
- accruedFees: z.ZodString;
642
- minPrice: z.ZodString;
643
- maxPrice: z.ZodString;
644
- currentPrice: z.ZodString;
645
- }, z.core.$strip>;
646
- token1: z.ZodObject<{
647
- tokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
648
- principal: z.ZodString;
649
- accruedFees: z.ZodString;
650
- minPrice: z.ZodString;
651
- maxPrice: z.ZodString;
652
- currentPrice: z.ZodString;
653
- }, z.core.$strip>;
654
- }, z.core.$strip>;
655
- }, z.core.$strip>, z.ZodObject<{
656
- id: z.ZodString;
657
- investmentId: z.ZodOptional<z.ZodString>;
658
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
659
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
660
- data: z.ZodObject<{
661
- apy: z.ZodOptional<z.ZodString>;
662
- totalApy: z.ZodOptional<z.ZodString>;
663
- group: z.ZodOptional<z.ZodNumber>;
664
- collateral: z.ZodBoolean;
665
- debt: z.ZodBoolean;
666
- lending: z.ZodBoolean;
667
- }, z.core.$strip>;
668
- }, z.core.$strip>]>, z.ZodObject<{
669
- investmentId: z.ZodOptional<z.ZodString>;
670
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
671
- id: z.ZodString;
672
- data: z.ZodObject<{
673
- delegatingTo: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
674
- }, z.core.$strip>;
675
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
676
- }, z.core.$strip>]>, z.ZodObject<{
677
- id: z.ZodString;
678
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
679
- data: z.ZodObject<{
680
- apy: z.ZodOptional<z.ZodString>;
681
- totalApy: z.ZodOptional<z.ZodString>;
682
- }, z.core.$strip>;
683
- investmentId: z.ZodOptional<z.ZodString>;
684
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
685
- }, z.core.$strip>]>, z.ZodObject<{
686
- id: z.ZodString;
687
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
688
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
689
- investmentId: z.ZodOptional<z.ZodString>;
690
- data: z.ZodObject<{
691
- stakerInfo: z.ZodObject<{
692
- name: z.ZodOptional<z.ZodString>;
693
- iconUrl: z.ZodOptional<z.ZodString>;
694
- address: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
695
- }, z.core.$strip>;
696
- accruedRewards: z.ZodString;
697
- stakedAmount: z.ZodString;
698
- pendingWithdrawal: z.ZodOptional<z.ZodObject<{
699
- amount: z.ZodString;
700
- withdrawableAfter: z.ZodNumber;
701
- }, z.core.$strip>>;
702
- apy: z.ZodOptional<z.ZodString>;
703
- totalApy: z.ZodOptional<z.ZodString>;
704
- stakedTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
705
- rewardTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
706
- }, z.core.$strip>;
707
- }, z.core.$strip>]>>;
708
- } & E)[P]; } : never, z.core.$loose>;
620
+ } & E extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$loose>;
709
621
  };
710
622
  export declare const apiDefiDecompositionSchema: z.ZodObject<{
711
623
  dappId: z.ZodString;
@@ -888,95 +800,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
888
800
  rewardTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
889
801
  }, z.core.$strip>;
890
802
  }, z.core.$strip>]>>;
891
- } & E extends infer T ? { -readonly [P in keyof T]: ({
892
- productId: z.ZodOptional<z.ZodString>;
893
- name: z.ZodString;
894
- manageUrl: z.ZodOptional<z.ZodString>;
895
- type: z.ZodUnion<readonly [z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
896
- groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
897
- name: z.ZodOptional<z.ZodString>;
898
- healthRatio: z.ZodOptional<z.ZodString>;
899
- }, z.core.$strip>>>;
900
- positions: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
901
- id: z.ZodString;
902
- investmentId: z.ZodOptional<z.ZodString>;
903
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
904
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
905
- tokenId: z.ZodString;
906
- data: z.ZodObject<{
907
- poolFeePercentage: z.ZodString;
908
- tickSpacingPercentage: z.ZodOptional<z.ZodString>;
909
- token0: z.ZodObject<{
910
- tokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
911
- principal: z.ZodString;
912
- accruedFees: z.ZodString;
913
- minPrice: z.ZodString;
914
- maxPrice: z.ZodString;
915
- currentPrice: z.ZodString;
916
- }, z.core.$strip>;
917
- token1: z.ZodObject<{
918
- tokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
919
- principal: z.ZodString;
920
- accruedFees: z.ZodString;
921
- minPrice: z.ZodString;
922
- maxPrice: z.ZodString;
923
- currentPrice: z.ZodString;
924
- }, z.core.$strip>;
925
- }, z.core.$strip>;
926
- }, z.core.$strip>, z.ZodObject<{
927
- id: z.ZodString;
928
- investmentId: z.ZodOptional<z.ZodString>;
929
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
930
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
931
- data: z.ZodObject<{
932
- apy: z.ZodOptional<z.ZodString>;
933
- totalApy: z.ZodOptional<z.ZodString>;
934
- group: z.ZodOptional<z.ZodNumber>;
935
- collateral: z.ZodBoolean;
936
- debt: z.ZodBoolean;
937
- lending: z.ZodBoolean;
938
- }, z.core.$strip>;
939
- }, z.core.$strip>]>, z.ZodObject<{
940
- investmentId: z.ZodOptional<z.ZodString>;
941
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
942
- id: z.ZodString;
943
- data: z.ZodObject<{
944
- delegatingTo: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
945
- }, z.core.$strip>;
946
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
947
- }, z.core.$strip>]>, z.ZodObject<{
948
- id: z.ZodString;
949
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
950
- data: z.ZodObject<{
951
- apy: z.ZodOptional<z.ZodString>;
952
- totalApy: z.ZodOptional<z.ZodString>;
953
- }, z.core.$strip>;
954
- investmentId: z.ZodOptional<z.ZodString>;
955
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
956
- }, z.core.$strip>]>, z.ZodObject<{
957
- id: z.ZodString;
958
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
959
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
960
- investmentId: z.ZodOptional<z.ZodString>;
961
- data: z.ZodObject<{
962
- stakerInfo: z.ZodObject<{
963
- name: z.ZodOptional<z.ZodString>;
964
- iconUrl: z.ZodOptional<z.ZodString>;
965
- address: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
966
- }, z.core.$strip>;
967
- accruedRewards: z.ZodString;
968
- stakedAmount: z.ZodString;
969
- pendingWithdrawal: z.ZodOptional<z.ZodObject<{
970
- amount: z.ZodString;
971
- withdrawableAfter: z.ZodNumber;
972
- }, z.core.$strip>>;
973
- apy: z.ZodOptional<z.ZodString>;
974
- totalApy: z.ZodOptional<z.ZodString>;
975
- stakedTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
976
- rewardTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
977
- }, z.core.$strip>;
978
- }, z.core.$strip>]>>;
979
- } & E)[P]; } : never, z.core.$loose>;
803
+ } & E extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$loose>;
980
804
  }>;
981
805
  }, z.core.$strip>;
982
806
  export declare const apiDefiPositionsSchema: z.ZodObject<{
@@ -1161,95 +985,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
1161
985
  rewardTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
1162
986
  }, z.core.$strip>;
1163
987
  }, z.core.$strip>]>>;
1164
- } & E extends infer T ? { -readonly [P in keyof T]: ({
1165
- productId: z.ZodOptional<z.ZodString>;
1166
- name: z.ZodString;
1167
- manageUrl: z.ZodOptional<z.ZodString>;
1168
- type: z.ZodUnion<readonly [z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
1169
- groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1170
- name: z.ZodOptional<z.ZodString>;
1171
- healthRatio: z.ZodOptional<z.ZodString>;
1172
- }, z.core.$strip>>>;
1173
- positions: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1174
- id: z.ZodString;
1175
- investmentId: z.ZodOptional<z.ZodString>;
1176
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
1177
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1178
- tokenId: z.ZodString;
1179
- data: z.ZodObject<{
1180
- poolFeePercentage: z.ZodString;
1181
- tickSpacingPercentage: z.ZodOptional<z.ZodString>;
1182
- token0: z.ZodObject<{
1183
- tokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1184
- principal: z.ZodString;
1185
- accruedFees: z.ZodString;
1186
- minPrice: z.ZodString;
1187
- maxPrice: z.ZodString;
1188
- currentPrice: z.ZodString;
1189
- }, z.core.$strip>;
1190
- token1: z.ZodObject<{
1191
- tokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1192
- principal: z.ZodString;
1193
- accruedFees: z.ZodString;
1194
- minPrice: z.ZodString;
1195
- maxPrice: z.ZodString;
1196
- currentPrice: z.ZodString;
1197
- }, z.core.$strip>;
1198
- }, z.core.$strip>;
1199
- }, z.core.$strip>, z.ZodObject<{
1200
- id: z.ZodString;
1201
- investmentId: z.ZodOptional<z.ZodString>;
1202
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
1203
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1204
- data: z.ZodObject<{
1205
- apy: z.ZodOptional<z.ZodString>;
1206
- totalApy: z.ZodOptional<z.ZodString>;
1207
- group: z.ZodOptional<z.ZodNumber>;
1208
- collateral: z.ZodBoolean;
1209
- debt: z.ZodBoolean;
1210
- lending: z.ZodBoolean;
1211
- }, z.core.$strip>;
1212
- }, z.core.$strip>]>, z.ZodObject<{
1213
- investmentId: z.ZodOptional<z.ZodString>;
1214
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
1215
- id: z.ZodString;
1216
- data: z.ZodObject<{
1217
- delegatingTo: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
1218
- }, z.core.$strip>;
1219
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1220
- }, z.core.$strip>]>, z.ZodObject<{
1221
- id: z.ZodString;
1222
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
1223
- data: z.ZodObject<{
1224
- apy: z.ZodOptional<z.ZodString>;
1225
- totalApy: z.ZodOptional<z.ZodString>;
1226
- }, z.core.$strip>;
1227
- investmentId: z.ZodOptional<z.ZodString>;
1228
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1229
- }, z.core.$strip>]>, z.ZodObject<{
1230
- id: z.ZodString;
1231
- tokenAddress: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>>;
1232
- totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1233
- investmentId: z.ZodOptional<z.ZodString>;
1234
- data: z.ZodObject<{
1235
- stakerInfo: z.ZodObject<{
1236
- name: z.ZodOptional<z.ZodString>;
1237
- iconUrl: z.ZodOptional<z.ZodString>;
1238
- address: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
1239
- }, z.core.$strip>;
1240
- accruedRewards: z.ZodString;
1241
- stakedAmount: z.ZodString;
1242
- pendingWithdrawal: z.ZodOptional<z.ZodObject<{
1243
- amount: z.ZodString;
1244
- withdrawableAfter: z.ZodNumber;
1245
- }, z.core.$strip>>;
1246
- apy: z.ZodOptional<z.ZodString>;
1247
- totalApy: z.ZodOptional<z.ZodString>;
1248
- stakedTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
1249
- rewardTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
1250
- }, z.core.$strip>;
1251
- }, z.core.$strip>]>>;
1252
- } & E)[P]; } : never, z.core.$loose>;
988
+ } & E extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$loose>;
1253
989
  }>;
1254
990
  }, z.core.$strip>>;
1255
991
  }, z.core.$strip>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../chains/starknet/address.cjs"),r=require("../chains/starknet/constants.cjs"),o=require("../chains/starknet/services/deploymentData/getAccountClassHash.cjs"),u=[r.STRK_TOKEN_ADDRESS];function n({address:e}){return u.some(s=>t.isEqualAddress(e,s))}function a(e){return e?o.getArgentAccountClassHashesWithTxV3Support().some(s=>t.isEqualAddress(s,e)):!1}exports.classHashSupportsTxV3=a;exports.feeTokenNeedsTxV3Support=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chains/starknet/services/deploymentData/getAccountClassHash.cjs"),o=require("../chains/starknet/constants.cjs"),t=require("../chains/starknet/address.cjs"),u=[o.STRK_TOKEN_ADDRESS];function n({address:e}){return u.some(s=>t.isEqualAddress(e,s))}function a(e){return e?r.getArgentAccountClassHashesWithTxV3Support().some(s=>t.isEqualAddress(s,e)):!1}exports.classHashSupportsTxV3=a;exports.feeTokenNeedsTxV3Support=n;
@@ -1,12 +1,12 @@
1
+ import { getArgentAccountClassHashesWithTxV3Support as t } from "../chains/starknet/services/deploymentData/getAccountClassHash.js";
2
+ import { STRK_TOKEN_ADDRESS as s } from "../chains/starknet/constants.js";
1
3
  import { isEqualAddress as o } from "../chains/starknet/address.js";
2
- import { STRK_TOKEN_ADDRESS as t } from "../chains/starknet/constants.js";
3
- import { getArgentAccountClassHashesWithTxV3Support as s } from "../chains/starknet/services/deploymentData/getAccountClassHash.js";
4
- const n = [t];
4
+ const n = [s];
5
5
  function f({ address: r }) {
6
6
  return n.some((e) => o(r, e));
7
7
  }
8
8
  function m(r) {
9
- return r ? s().some((e) => o(e, r)) : !1;
9
+ return r ? t().some((e) => o(e, r)) : !1;
10
10
  }
11
11
  export {
12
12
  m as classHashSupportsTxV3,
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const booleanToStringSchema: z.ZodPipe<z.ZodBoolean, z.ZodTransform<string, boolean>>;
3
3
  export declare const stringToBooleanSchema: z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>;
4
4
  export declare function createSchemaWithWarnings<T extends z.ZodRawShape>(shape: T): z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$loose> & {
5
- extend: <E extends z.ZodRawShape>(extension: E) => z.ZodObject<T & E extends infer T_1 ? { -readonly [P_1 in keyof T_1]: (T & E)[P_1]; } : never, z.core.$loose>;
5
+ extend: <E extends z.ZodRawShape>(extension: E) => z.ZodObject<T & E extends infer T_1 ? { -readonly [P_1 in keyof T_1]: T_1[P_1]; } : never, z.core.$loose>;
6
6
  };
7
7
  type ISafeParseAndWarn<T extends z.ZodType> = {
8
8
  success: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.75.1",
3
+ "version": "1.75.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"
@@ -55,34 +55,34 @@
55
55
  "i18n:upload": "node --loader ts-node/esm --experimental-specifier-resolution=node --no-warnings src/scripts/upload-translation.ts"
56
56
  },
57
57
  "devDependencies": {
58
- "@amplitude/analytics-types": "2.9.1",
59
- "@commitlint/cli": "19.8.0",
60
- "@commitlint/config-conventional": "19.8.0",
61
- "@rollup/plugin-typescript": "12.1.2",
58
+ "@amplitude/analytics-types": "2.9.2",
59
+ "@commitlint/cli": "19.8.1",
60
+ "@commitlint/config-conventional": "19.8.1",
61
+ "@rollup/plugin-typescript": "12.1.4",
62
62
  "@semantic-release/git": "10.0.1",
63
63
  "@types/async-retry": "1.4.9",
64
64
  "@types/lodash-es": "4.17.12",
65
65
  "@types/numeral": "2.0.5",
66
66
  "@types/ua-parser-js": "0.7.39",
67
- "@typescript-eslint/eslint-plugin": "8.29.0",
68
- "@typescript-eslint/parser": "8.29.0",
69
- "esbuild": "0.25.2",
67
+ "@typescript-eslint/eslint-plugin": "8.39.1",
68
+ "@typescript-eslint/parser": "8.39.1",
69
+ "esbuild": "0.25.8",
70
70
  "esbuild-register": "3.6.0",
71
71
  "eslint": "8.57.1",
72
- "eslint-config-prettier": "10.1.1",
73
- "eslint-plugin-import": "2.31.0",
72
+ "eslint-config-prettier": "10.1.8",
73
+ "eslint-plugin-import": "2.32.0",
74
74
  "husky": "9.1.7",
75
- "lint-staged": "16.1.2",
76
- "msw": "2.7.3",
77
- "prettier": "3.5.3",
78
- "semantic-release": "24.2.3",
75
+ "lint-staged": "16.1.5",
76
+ "msw": "2.10.4",
77
+ "prettier": "3.6.2",
78
+ "semantic-release": "24.2.7",
79
79
  "ts-node": "10.9.2",
80
80
  "ts-to-zod": "3.15.0",
81
- "tsx": "4.19.3",
82
- "typescript": "5.8.3",
83
- "vite": "7.0.6",
84
- "vite-plugin-dts": "4.5.3",
85
- "vitest": "3.1.1"
81
+ "tsx": "4.20.3",
82
+ "typescript": "5.9.2",
83
+ "vite": "7.1.1",
84
+ "vite-plugin-dts": "4.5.4",
85
+ "vitest": "3.2.4"
86
86
  },
87
87
  "dependencies": {
88
88
  "@argent/x-multicall": "^7.1.0",
@@ -111,7 +111,7 @@
111
111
  "lodash-es": "^4.17.21",
112
112
  "ua-parser-js": "^1.0.38 || ^2.0.0",
113
113
  "url-join": "^5.0.0",
114
- "zod": "4.0.5"
114
+ "zod": "4.0.17"
115
115
  },
116
116
  "lint-staged": {
117
117
  "*": "prettier --ignore-unknown --write",