@argent/x-shared 1.49.0 → 1.50.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("zod"),i=require("../../../staking/schema.cjs"),u=require("../transactionReview/schema.cjs"),e=require("../../../chains/starknet/address.cjs"),d=t.z.object({network:t.z.string(),hash:t.z.string(),status:t.z.string(),blockNumber:t.z.number().optional(),transactionIndex:t.z.number()}),n=t.z.object({type:t.z.enum(["token","nft"]),tokenAddress:e.addressSchemaArgentBackend,amount:t.z.string().optional(),fiatAmount:t.z.object({currency:t.z.string(),currencyAmount:t.z.number()}).optional().nullable()}),s=t.z.enum(["ethereum","starknet","zksync","zksync2"]),m=t.z.object({type:t.z.enum(["payment","gasFee"]),leg:t.z.enum(["credit","debit"]),asset:n,counterParty:e.addressSchemaArgentBackend.optional(),counterPartyNetwork:s.optional()}),f=t.z.object({address:e.addressSchemaArgentBackend,network:s,type:t.z.enum(["wallet","token"])}),N=t.z.object({chainId:t.z.enum(["TESTNET","MAINNET","SEPOLIA"]),ethereumNetwork:t.z.enum(["mainnet","sepolia"])}),w=t.z.enum(["approval","changePubKey","dappInteraction","deploy","gift","multicall","payment","security","trade","staking"]),p=t.z.enum(["triggerEscapeGuardian","triggerEscapeSigner","escapeGuardian","escapeSigner","guardianChanged","guardianBackupChanged","signerChanged","cancelEscape","accountUpgraded","multisigConfigurationUpdated"]),B=t.z.object({name:t.z.string(),parameters:t.z.array(t.z.unknown()).optional()}),I=t.z.object({guid:t.z.string().optional(),signerType:t.z.string().optional(),signer:t.z.object({publicKey:t.z.string().optional()}).optional()}),T=t.z.object({activeAt:t.z.string().optional(),newGuardian:t.z.string().optional(),newImplementation:t.z.string().optional(),newVersion:t.z.string().optional(),signerGuid:t.z.string().optional(),signers:t.z.array(I).optional()}),l=t.z.discriminatedUnion("type",[t.z.object({type:t.z.literal("deploy"),deployer:e.addressSchemaArgentBackend,contractAddress:e.addressSchemaArgentBackend}),t.z.object({type:t.z.literal("approval"),spender:e.addressSchemaArgentBackend,asset:n,approvalType:t.z.string()}),t.z.object({type:t.z.literal("payment"),counterparty:e.addressSchemaArgentBackend,leg:t.z.string(),asset:n,counterpartyNetwork:s.optional()}),t.z.object({type:t.z.literal("trade"),srcAsset:n,destAsset:n}),t.z.object({type:t.z.literal("security"),action:p,context:T.optional()}),t.z.object({type:t.z.literal("dappInteraction"),dappAddress:e.addressSchemaArgentBackend,function:B.optional().nullable()}),t.z.object({type:t.z.literal("staking"),stakingAction:i.stakingActionSchema,counterparty:e.addressSchemaArgentBackend,asset:n,stakerInfo:i.stakerInfoSchema})]),z=t.z.union([l,t.z.object({type:t.z.literal("multicall"),calls:t.z.array(t.z.object({details:l}))})]),y=t.z.object({dappId:t.z.string(),name:t.z.string().optional().nullable()}),c=t.z.object({sent:t.z.boolean(),asset:t.z.discriminatedUnion("type",[t.z.object({type:t.z.literal("nft"),tokenAddress:e.addressSchemaArgentBackend,tokenId:t.z.coerce.number().optional(),amount:t.z.string().optional(),collectionName:t.z.string().optional(),collectionPreviewImage:t.z.string().optional().nullable(),nftName:t.z.string().optional().nullable(),nftPreviewImage:t.z.string().optional().nullable()}),t.z.object({type:t.z.literal("token"),tokenAddress:e.addressSchemaArgentBackend,amount:t.z.string().optional(),fiatAmount:t.z.object({currency:t.z.string(),currencyAmount:t.z.coerce.string()}).optional().nullable()})])}),g=t.z.object({type:t.z.string(),to:e.addressSchemaArgentBackend,actualFee:t.z.object({type:t.z.string(),tokenAddress:e.addressSchemaArgentBackend,amount:t.z.string().optional(),fiatAmount:t.z.object({currency:t.z.string(),currencyAmount:t.z.number()}).optional().nullable()})}),S=t.z.enum(["pending","success","failure"]),r=t.z.object({compositeId:t.z.string(),id:t.z.string().uuid(),status:S,wallet:e.addressSchemaArgentBackend,txSender:e.addressSchemaArgentBackend,source:t.z.string(),type:w,group:t.z.enum(["finance","security"]),submitted:t.z.number(),lastModified:t.z.number(),transaction:d,transfers:t.z.array(m),fees:t.z.array(g).optional(),relatedAddresses:t.z.array(f).nullable(),network:t.z.string(),networkDetails:N.optional(),details:z,transferSummary:t.z.array(c).optional(),dapp:y.optional(),actions:t.z.array(u.actionSchema).optional(),title:t.z.string().optional(),multisigDetails:t.z.object({signers:t.z.array(e.addressSchemaArgentBackend)}).optional()}),h=t.z.object({title:t.z.string().optional(),shortTitle:t.z.string().optional(),subtitle:t.z.string().optional(),icon:t.z.string().optional(),investment:i.investmentMetaSchema.optional()}),b="native",v="rejected",A="cancelled",k="queued",D=r.pick({status:!0,actions:!0,submitted:!0,lastModified:!0,transferSummary:!0,fees:!0,multisigDetails:!0}).extend({status:t.z.union([S,t.z.enum([v,A,k])]),type:t.z.literal(b),transaction:d.pick({hash:!0}),dapp:u.targetedDappSchema.optional(),meta:h.optional()}),j=t.z.array(r),P=t.z.object({activities:j,page:t.z.number(),pageSize:t.z.number(),totalElements:t.z.number(),totalPages:t.z.number()});function E(a){return p.safeParse(a).success}const o=a=>c.safeParse(a).success,M=a=>o(a)&&a.asset.type==="token",x=a=>o(a)&&a.asset.type==="nft";exports.NativeActivityStatusCancelled=A;exports.NativeActivityStatusQueued=k;exports.NativeActivityStatusRejected=v;exports.NativeActivityTypeNative=b;exports.activitiesSchema=j;exports.activityDappSchema=y;exports.activityDetailsSchema=z;exports.activityResponseSchema=P;exports.activitySchema=r;exports.activitySummarySchema=c;exports.activityTransferSchema=m;exports.feeSchema=g;exports.isActivityDetailsAction=E;exports.isActivitySummary=o;exports.isNftActivitySummary=x;exports.isTokenActivitySummary=M;exports.nativeActivityMetaSchema=h;exports.nativeActivitySchema=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("zod"),i=require("../../../staking/schema.cjs"),u=require("../transactionReview/schema.cjs"),e=require("../../../chains/starknet/address.cjs"),d=t.z.object({network:t.z.string(),hash:t.z.string(),status:t.z.string(),blockNumber:t.z.number().optional(),transactionIndex:t.z.number()}),n=t.z.object({type:t.z.enum(["token","nft"]),tokenAddress:e.addressSchemaArgentBackend,amount:t.z.string().optional(),fiatAmount:t.z.object({currency:t.z.string(),currencyAmount:t.z.number()}).optional().nullable()}),s=t.z.enum(["ethereum","starknet","zksync","zksync2"]),m=t.z.object({type:t.z.enum(["payment","gasFee"]),leg:t.z.enum(["credit","debit"]),asset:n,counterParty:e.addressSchemaArgentBackend.optional(),counterPartyNetwork:s.optional()}),f=t.z.object({address:e.addressSchemaArgentBackend,network:s,type:t.z.enum(["wallet","token"])}),N=t.z.object({chainId:t.z.enum(["TESTNET","MAINNET","SEPOLIA"]),ethereumNetwork:t.z.enum(["mainnet","sepolia"])}),w=t.z.enum(["approval","changePubKey","dappInteraction","deploy","gift","multicall","payment","security","trade","staking"]),p=t.z.enum(["triggerEscapeGuardian","triggerEscapeSigner","escapeGuardian","escapeSigner","guardianChanged","guardianBackupChanged","signerChanged","cancelEscape","accountUpgraded","multisigConfigurationUpdated"]),B=t.z.object({name:t.z.string(),parameters:t.z.array(t.z.unknown()).optional()}),I=t.z.object({guid:t.z.string().optional(),signerType:t.z.string().optional(),signer:t.z.object({publicKey:t.z.string().optional()}).optional()}),T=t.z.object({activeAt:t.z.string().optional(),newGuardian:t.z.string().optional(),newImplementation:t.z.string().optional(),newVersion:t.z.string().optional(),signerGuid:t.z.string().optional(),signers:t.z.array(I).optional()}),l=t.z.discriminatedUnion("type",[t.z.object({type:t.z.literal("deploy"),deployer:e.addressSchemaArgentBackend,contractAddress:e.addressSchemaArgentBackend}),t.z.object({type:t.z.literal("approval"),spender:e.addressSchemaArgentBackend,asset:n,approvalType:t.z.string()}),t.z.object({type:t.z.literal("payment"),counterparty:e.addressSchemaArgentBackend,leg:t.z.string(),asset:n,counterpartyNetwork:s.optional()}),t.z.object({type:t.z.literal("trade"),srcAsset:n,destAsset:n}),t.z.object({type:t.z.literal("security"),action:p,context:T.optional()}),t.z.object({type:t.z.literal("dappInteraction"),dappAddress:e.addressSchemaArgentBackend,function:B.optional().nullable()}),t.z.object({type:t.z.literal("staking"),stakingAction:i.stakingActionSchema,counterparty:e.addressSchemaArgentBackend,asset:n,stakerInfo:i.stakerInfoSchema})]),z=t.z.union([l,t.z.object({type:t.z.literal("multicall"),calls:t.z.array(t.z.object({details:l}))})]),y=t.z.object({dappId:t.z.string(),name:t.z.string().optional().nullable()}),c=t.z.object({sent:t.z.boolean(),asset:t.z.discriminatedUnion("type",[t.z.object({type:t.z.literal("nft"),tokenAddress:e.addressSchemaArgentBackend,tokenId:t.z.coerce.number().optional(),amount:t.z.string().optional(),collectionName:t.z.string().optional(),collectionPreviewImage:t.z.string().optional().nullable(),nftName:t.z.string().optional().nullable(),nftPreviewImage:t.z.string().optional().nullable()}),t.z.object({type:t.z.literal("token"),tokenAddress:e.addressSchemaArgentBackend,amount:t.z.string().optional(),fiatAmount:t.z.object({currency:t.z.string(),currencyAmount:t.z.coerce.string()}).optional().nullable()})])}),g=t.z.object({type:t.z.string(),to:e.addressSchemaArgentBackend,actualFee:t.z.object({type:t.z.string(),tokenAddress:e.addressSchemaArgentBackend,amount:t.z.string().optional(),fiatAmount:t.z.object({currency:t.z.string(),currencyAmount:t.z.number()}).optional().nullable()})}),S=t.z.enum(["pending","success","failure"]),r=t.z.object({compositeId:t.z.string(),id:t.z.string().uuid(),status:S,wallet:e.addressSchemaArgentBackend,txSender:e.addressSchemaArgentBackend,source:t.z.string(),type:w,group:t.z.enum(["finance","security"]),submitted:t.z.number(),lastModified:t.z.number(),transaction:d,transfers:t.z.array(m),fees:t.z.array(g).optional(),relatedAddresses:t.z.array(f).nullable(),network:t.z.string(),networkDetails:N.optional(),details:z,transferSummary:t.z.array(c).optional(),dapp:y.optional(),actions:t.z.array(u.actionSchema).optional(),title:t.z.string().optional(),multisigDetails:t.z.object({signers:t.z.array(e.addressSchemaArgentBackend)}).optional()}),h=t.z.object({title:t.z.string().optional(),shortTitle:t.z.string().optional(),subtitle:t.z.string().optional(),icon:t.z.string().optional(),investment:i.investmentMetaSchema.optional(),isExecuteFromOutside:t.z.boolean().optional()}),b="native",v="rejected",A="cancelled",k="queued",D=r.pick({status:!0,actions:!0,submitted:!0,lastModified:!0,transferSummary:!0,fees:!0,multisigDetails:!0}).extend({status:t.z.union([S,t.z.enum([v,A,k])]),type:t.z.literal(b),transaction:d.pick({hash:!0}),dapp:u.targetedDappSchema.optional(),meta:h.optional()}),j=t.z.array(r),E=t.z.object({activities:j,page:t.z.number(),pageSize:t.z.number(),totalElements:t.z.number(),totalPages:t.z.number()});function P(a){return p.safeParse(a).success}const o=a=>c.safeParse(a).success,x=a=>o(a)&&a.asset.type==="token",M=a=>o(a)&&a.asset.type==="nft";exports.NativeActivityStatusCancelled=A;exports.NativeActivityStatusQueued=k;exports.NativeActivityStatusRejected=v;exports.NativeActivityTypeNative=b;exports.activitiesSchema=j;exports.activityDappSchema=y;exports.activityDetailsSchema=z;exports.activityResponseSchema=E;exports.activitySchema=r;exports.activitySummarySchema=c;exports.activityTransferSchema=m;exports.feeSchema=g;exports.isActivityDetailsAction=P;exports.isActivitySummary=o;exports.isNftActivitySummary=M;exports.isTokenActivitySummary=x;exports.nativeActivityMetaSchema=h;exports.nativeActivitySchema=D;
@@ -428,7 +428,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
428
428
  } | null | undefined;
429
429
  }>, z.ZodObject<{
430
430
  type: z.ZodLiteral<"staking">;
431
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
431
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
432
432
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
433
433
  asset: z.ZodObject<{
434
434
  type: z.ZodEnum<["token", "nft"]>;
@@ -481,7 +481,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
481
481
  name?: string | undefined;
482
482
  iconUrl?: string | undefined;
483
483
  };
484
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
484
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
485
485
  asset: {
486
486
  type: "nft" | "token";
487
487
  tokenAddress: `0x${string}`;
@@ -499,7 +499,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
499
499
  name?: string | undefined;
500
500
  iconUrl?: string | undefined;
501
501
  };
502
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
502
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
503
503
  asset: {
504
504
  type: "nft" | "token";
505
505
  tokenAddress: string;
@@ -876,7 +876,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
876
876
  } | null | undefined;
877
877
  }>, z.ZodObject<{
878
878
  type: z.ZodLiteral<"staking">;
879
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
879
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
880
880
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
881
881
  asset: z.ZodObject<{
882
882
  type: z.ZodEnum<["token", "nft"]>;
@@ -929,7 +929,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
929
929
  name?: string | undefined;
930
930
  iconUrl?: string | undefined;
931
931
  };
932
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
932
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
933
933
  asset: {
934
934
  type: "nft" | "token";
935
935
  tokenAddress: `0x${string}`;
@@ -947,7 +947,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
947
947
  name?: string | undefined;
948
948
  iconUrl?: string | undefined;
949
949
  };
950
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
950
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
951
951
  asset: {
952
952
  type: "nft" | "token";
953
953
  tokenAddress: string;
@@ -1042,7 +1042,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1042
1042
  name?: string | undefined;
1043
1043
  iconUrl?: string | undefined;
1044
1044
  };
1045
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
1045
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
1046
1046
  asset: {
1047
1047
  type: "nft" | "token";
1048
1048
  tokenAddress: `0x${string}`;
@@ -1137,7 +1137,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1137
1137
  name?: string | undefined;
1138
1138
  iconUrl?: string | undefined;
1139
1139
  };
1140
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
1140
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
1141
1141
  asset: {
1142
1142
  type: "nft" | "token";
1143
1143
  tokenAddress: string;
@@ -1235,7 +1235,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1235
1235
  name?: string | undefined;
1236
1236
  iconUrl?: string | undefined;
1237
1237
  };
1238
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
1238
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
1239
1239
  asset: {
1240
1240
  type: "nft" | "token";
1241
1241
  tokenAddress: `0x${string}`;
@@ -1333,7 +1333,7 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1333
1333
  name?: string | undefined;
1334
1334
  iconUrl?: string | undefined;
1335
1335
  };
1336
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
1336
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
1337
1337
  asset: {
1338
1338
  type: "nft" | "token";
1339
1339
  tokenAddress: string;
@@ -2060,7 +2060,7 @@ export declare const activitySchema: z.ZodObject<{
2060
2060
  } | null | undefined;
2061
2061
  }>, z.ZodObject<{
2062
2062
  type: z.ZodLiteral<"staking">;
2063
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
2063
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
2064
2064
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2065
2065
  asset: z.ZodObject<{
2066
2066
  type: z.ZodEnum<["token", "nft"]>;
@@ -2113,7 +2113,7 @@ export declare const activitySchema: z.ZodObject<{
2113
2113
  name?: string | undefined;
2114
2114
  iconUrl?: string | undefined;
2115
2115
  };
2116
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2116
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2117
2117
  asset: {
2118
2118
  type: "nft" | "token";
2119
2119
  tokenAddress: `0x${string}`;
@@ -2131,7 +2131,7 @@ export declare const activitySchema: z.ZodObject<{
2131
2131
  name?: string | undefined;
2132
2132
  iconUrl?: string | undefined;
2133
2133
  };
2134
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2134
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2135
2135
  asset: {
2136
2136
  type: "nft" | "token";
2137
2137
  tokenAddress: string;
@@ -2508,7 +2508,7 @@ export declare const activitySchema: z.ZodObject<{
2508
2508
  } | null | undefined;
2509
2509
  }>, z.ZodObject<{
2510
2510
  type: z.ZodLiteral<"staking">;
2511
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
2511
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
2512
2512
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2513
2513
  asset: z.ZodObject<{
2514
2514
  type: z.ZodEnum<["token", "nft"]>;
@@ -2561,7 +2561,7 @@ export declare const activitySchema: z.ZodObject<{
2561
2561
  name?: string | undefined;
2562
2562
  iconUrl?: string | undefined;
2563
2563
  };
2564
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2564
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2565
2565
  asset: {
2566
2566
  type: "nft" | "token";
2567
2567
  tokenAddress: `0x${string}`;
@@ -2579,7 +2579,7 @@ export declare const activitySchema: z.ZodObject<{
2579
2579
  name?: string | undefined;
2580
2580
  iconUrl?: string | undefined;
2581
2581
  };
2582
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2582
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2583
2583
  asset: {
2584
2584
  type: "nft" | "token";
2585
2585
  tokenAddress: string;
@@ -2674,7 +2674,7 @@ export declare const activitySchema: z.ZodObject<{
2674
2674
  name?: string | undefined;
2675
2675
  iconUrl?: string | undefined;
2676
2676
  };
2677
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2677
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2678
2678
  asset: {
2679
2679
  type: "nft" | "token";
2680
2680
  tokenAddress: `0x${string}`;
@@ -2769,7 +2769,7 @@ export declare const activitySchema: z.ZodObject<{
2769
2769
  name?: string | undefined;
2770
2770
  iconUrl?: string | undefined;
2771
2771
  };
2772
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2772
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2773
2773
  asset: {
2774
2774
  type: "nft" | "token";
2775
2775
  tokenAddress: string;
@@ -2867,7 +2867,7 @@ export declare const activitySchema: z.ZodObject<{
2867
2867
  name?: string | undefined;
2868
2868
  iconUrl?: string | undefined;
2869
2869
  };
2870
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2870
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2871
2871
  asset: {
2872
2872
  type: "nft" | "token";
2873
2873
  tokenAddress: `0x${string}`;
@@ -2965,7 +2965,7 @@ export declare const activitySchema: z.ZodObject<{
2965
2965
  name?: string | undefined;
2966
2966
  iconUrl?: string | undefined;
2967
2967
  };
2968
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2968
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2969
2969
  asset: {
2970
2970
  type: "nft" | "token";
2971
2971
  tokenAddress: string;
@@ -3876,7 +3876,7 @@ export declare const activitySchema: z.ZodObject<{
3876
3876
  name?: string | undefined;
3877
3877
  iconUrl?: string | undefined;
3878
3878
  };
3879
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
3879
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
3880
3880
  asset: {
3881
3881
  type: "nft" | "token";
3882
3882
  tokenAddress: `0x${string}`;
@@ -3972,7 +3972,7 @@ export declare const activitySchema: z.ZodObject<{
3972
3972
  name?: string | undefined;
3973
3973
  iconUrl?: string | undefined;
3974
3974
  };
3975
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
3975
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
3976
3976
  asset: {
3977
3977
  type: "nft" | "token";
3978
3978
  tokenAddress: `0x${string}`;
@@ -4274,7 +4274,7 @@ export declare const activitySchema: z.ZodObject<{
4274
4274
  name?: string | undefined;
4275
4275
  iconUrl?: string | undefined;
4276
4276
  };
4277
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
4277
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
4278
4278
  asset: {
4279
4279
  type: "nft" | "token";
4280
4280
  tokenAddress: string;
@@ -4370,7 +4370,7 @@ export declare const activitySchema: z.ZodObject<{
4370
4370
  name?: string | undefined;
4371
4371
  iconUrl?: string | undefined;
4372
4372
  };
4373
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
4373
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
4374
4374
  asset: {
4375
4375
  type: "nft" | "token";
4376
4376
  tokenAddress: string;
@@ -4593,7 +4593,7 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
4593
4593
  /** let's not import the keys from x-ui here */
4594
4594
  icon: z.ZodOptional<z.ZodString>;
4595
4595
  investment: z.ZodOptional<z.ZodObject<{
4596
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
4596
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
4597
4597
  stakerInfo: z.ZodObject<{
4598
4598
  name: z.ZodOptional<z.ZodString>;
4599
4599
  iconUrl: z.ZodOptional<z.ZodString>;
@@ -4617,7 +4617,7 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
4617
4617
  name?: string | undefined;
4618
4618
  iconUrl?: string | undefined;
4619
4619
  };
4620
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
4620
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
4621
4621
  }, {
4622
4622
  amount: string;
4623
4623
  tokenAddress: string;
@@ -4626,8 +4626,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
4626
4626
  name?: string | undefined;
4627
4627
  iconUrl?: string | undefined;
4628
4628
  };
4629
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
4629
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
4630
4630
  }>>;
4631
+ isExecuteFromOutside: z.ZodOptional<z.ZodBoolean>;
4631
4632
  }, "strip", z.ZodTypeAny, {
4632
4633
  icon?: string | undefined;
4633
4634
  title?: string | undefined;
@@ -4641,8 +4642,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
4641
4642
  name?: string | undefined;
4642
4643
  iconUrl?: string | undefined;
4643
4644
  };
4644
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
4645
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
4645
4646
  } | undefined;
4647
+ isExecuteFromOutside?: boolean | undefined;
4646
4648
  }, {
4647
4649
  icon?: string | undefined;
4648
4650
  title?: string | undefined;
@@ -4656,8 +4658,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
4656
4658
  name?: string | undefined;
4657
4659
  iconUrl?: string | undefined;
4658
4660
  };
4659
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
4661
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
4660
4662
  } | undefined;
4663
+ isExecuteFromOutside?: boolean | undefined;
4661
4664
  }>;
4662
4665
  export type NativeActivityMeta = z.infer<typeof nativeActivityMetaSchema>;
4663
4666
  export declare const NativeActivityTypeNative = "native";
@@ -5205,7 +5208,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5205
5208
  } | null | undefined;
5206
5209
  }>, z.ZodObject<{
5207
5210
  type: z.ZodLiteral<"staking">;
5208
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
5211
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
5209
5212
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
5210
5213
  asset: z.ZodObject<{
5211
5214
  type: z.ZodEnum<["token", "nft"]>;
@@ -5258,7 +5261,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5258
5261
  name?: string | undefined;
5259
5262
  iconUrl?: string | undefined;
5260
5263
  };
5261
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
5264
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5262
5265
  asset: {
5263
5266
  type: "nft" | "token";
5264
5267
  tokenAddress: `0x${string}`;
@@ -5276,7 +5279,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5276
5279
  name?: string | undefined;
5277
5280
  iconUrl?: string | undefined;
5278
5281
  };
5279
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
5282
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5280
5283
  asset: {
5281
5284
  type: "nft" | "token";
5282
5285
  tokenAddress: string;
@@ -5653,7 +5656,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5653
5656
  } | null | undefined;
5654
5657
  }>, z.ZodObject<{
5655
5658
  type: z.ZodLiteral<"staking">;
5656
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
5659
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
5657
5660
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
5658
5661
  asset: z.ZodObject<{
5659
5662
  type: z.ZodEnum<["token", "nft"]>;
@@ -5706,7 +5709,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5706
5709
  name?: string | undefined;
5707
5710
  iconUrl?: string | undefined;
5708
5711
  };
5709
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
5712
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5710
5713
  asset: {
5711
5714
  type: "nft" | "token";
5712
5715
  tokenAddress: `0x${string}`;
@@ -5724,7 +5727,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5724
5727
  name?: string | undefined;
5725
5728
  iconUrl?: string | undefined;
5726
5729
  };
5727
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
5730
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5728
5731
  asset: {
5729
5732
  type: "nft" | "token";
5730
5733
  tokenAddress: string;
@@ -5819,7 +5822,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5819
5822
  name?: string | undefined;
5820
5823
  iconUrl?: string | undefined;
5821
5824
  };
5822
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
5825
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5823
5826
  asset: {
5824
5827
  type: "nft" | "token";
5825
5828
  tokenAddress: `0x${string}`;
@@ -5914,7 +5917,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5914
5917
  name?: string | undefined;
5915
5918
  iconUrl?: string | undefined;
5916
5919
  };
5917
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
5920
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5918
5921
  asset: {
5919
5922
  type: "nft" | "token";
5920
5923
  tokenAddress: string;
@@ -6012,7 +6015,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6012
6015
  name?: string | undefined;
6013
6016
  iconUrl?: string | undefined;
6014
6017
  };
6015
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
6018
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
6016
6019
  asset: {
6017
6020
  type: "nft" | "token";
6018
6021
  tokenAddress: `0x${string}`;
@@ -6110,7 +6113,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6110
6113
  name?: string | undefined;
6111
6114
  iconUrl?: string | undefined;
6112
6115
  };
6113
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
6116
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
6114
6117
  asset: {
6115
6118
  type: "nft" | "token";
6116
6119
  tokenAddress: string;
@@ -6995,7 +6998,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6995
6998
  /** let's not import the keys from x-ui here */
6996
6999
  icon: z.ZodOptional<z.ZodString>;
6997
7000
  investment: z.ZodOptional<z.ZodObject<{
6998
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
7001
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
6999
7002
  stakerInfo: z.ZodObject<{
7000
7003
  name: z.ZodOptional<z.ZodString>;
7001
7004
  iconUrl: z.ZodOptional<z.ZodString>;
@@ -7019,7 +7022,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7019
7022
  name?: string | undefined;
7020
7023
  iconUrl?: string | undefined;
7021
7024
  };
7022
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
7025
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7023
7026
  }, {
7024
7027
  amount: string;
7025
7028
  tokenAddress: string;
@@ -7028,8 +7031,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7028
7031
  name?: string | undefined;
7029
7032
  iconUrl?: string | undefined;
7030
7033
  };
7031
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
7034
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7032
7035
  }>>;
7036
+ isExecuteFromOutside: z.ZodOptional<z.ZodBoolean>;
7033
7037
  }, "strip", z.ZodTypeAny, {
7034
7038
  icon?: string | undefined;
7035
7039
  title?: string | undefined;
@@ -7043,8 +7047,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7043
7047
  name?: string | undefined;
7044
7048
  iconUrl?: string | undefined;
7045
7049
  };
7046
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
7050
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7047
7051
  } | undefined;
7052
+ isExecuteFromOutside?: boolean | undefined;
7048
7053
  }, {
7049
7054
  icon?: string | undefined;
7050
7055
  title?: string | undefined;
@@ -7058,8 +7063,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7058
7063
  name?: string | undefined;
7059
7064
  iconUrl?: string | undefined;
7060
7065
  };
7061
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
7066
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7062
7067
  } | undefined;
7068
+ isExecuteFromOutside?: boolean | undefined;
7063
7069
  }>>;
7064
7070
  }>, "strip", z.ZodTypeAny, {
7065
7071
  status: "rejected" | "pending" | "success" | "failure" | "cancelled" | "queued";
@@ -7252,8 +7258,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7252
7258
  name?: string | undefined;
7253
7259
  iconUrl?: string | undefined;
7254
7260
  };
7255
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
7261
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7256
7262
  } | undefined;
7263
+ isExecuteFromOutside?: boolean | undefined;
7257
7264
  } | undefined;
7258
7265
  }, {
7259
7266
  status: "rejected" | "pending" | "success" | "failure" | "cancelled" | "queued";
@@ -7446,8 +7453,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7446
7453
  name?: string | undefined;
7447
7454
  iconUrl?: string | undefined;
7448
7455
  };
7449
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
7456
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7450
7457
  } | undefined;
7458
+ isExecuteFromOutside?: boolean | undefined;
7451
7459
  } | undefined;
7452
7460
  }>;
7453
7461
  export type NativeActivity = z.infer<typeof nativeActivitySchema>;
@@ -7993,7 +8001,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
7993
8001
  } | null | undefined;
7994
8002
  }>, z.ZodObject<{
7995
8003
  type: z.ZodLiteral<"staking">;
7996
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
8004
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
7997
8005
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
7998
8006
  asset: z.ZodObject<{
7999
8007
  type: z.ZodEnum<["token", "nft"]>;
@@ -8046,7 +8054,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8046
8054
  name?: string | undefined;
8047
8055
  iconUrl?: string | undefined;
8048
8056
  };
8049
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8057
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8050
8058
  asset: {
8051
8059
  type: "nft" | "token";
8052
8060
  tokenAddress: `0x${string}`;
@@ -8064,7 +8072,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8064
8072
  name?: string | undefined;
8065
8073
  iconUrl?: string | undefined;
8066
8074
  };
8067
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8075
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8068
8076
  asset: {
8069
8077
  type: "nft" | "token";
8070
8078
  tokenAddress: string;
@@ -8441,7 +8449,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8441
8449
  } | null | undefined;
8442
8450
  }>, z.ZodObject<{
8443
8451
  type: z.ZodLiteral<"staking">;
8444
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
8452
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
8445
8453
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
8446
8454
  asset: z.ZodObject<{
8447
8455
  type: z.ZodEnum<["token", "nft"]>;
@@ -8494,7 +8502,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8494
8502
  name?: string | undefined;
8495
8503
  iconUrl?: string | undefined;
8496
8504
  };
8497
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8505
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8498
8506
  asset: {
8499
8507
  type: "nft" | "token";
8500
8508
  tokenAddress: `0x${string}`;
@@ -8512,7 +8520,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8512
8520
  name?: string | undefined;
8513
8521
  iconUrl?: string | undefined;
8514
8522
  };
8515
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8523
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8516
8524
  asset: {
8517
8525
  type: "nft" | "token";
8518
8526
  tokenAddress: string;
@@ -8607,7 +8615,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8607
8615
  name?: string | undefined;
8608
8616
  iconUrl?: string | undefined;
8609
8617
  };
8610
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8618
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8611
8619
  asset: {
8612
8620
  type: "nft" | "token";
8613
8621
  tokenAddress: `0x${string}`;
@@ -8702,7 +8710,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8702
8710
  name?: string | undefined;
8703
8711
  iconUrl?: string | undefined;
8704
8712
  };
8705
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8713
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8706
8714
  asset: {
8707
8715
  type: "nft" | "token";
8708
8716
  tokenAddress: string;
@@ -8800,7 +8808,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8800
8808
  name?: string | undefined;
8801
8809
  iconUrl?: string | undefined;
8802
8810
  };
8803
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8811
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8804
8812
  asset: {
8805
8813
  type: "nft" | "token";
8806
8814
  tokenAddress: `0x${string}`;
@@ -8898,7 +8906,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8898
8906
  name?: string | undefined;
8899
8907
  iconUrl?: string | undefined;
8900
8908
  };
8901
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
8909
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8902
8910
  asset: {
8903
8911
  type: "nft" | "token";
8904
8912
  tokenAddress: string;
@@ -9809,7 +9817,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9809
9817
  name?: string | undefined;
9810
9818
  iconUrl?: string | undefined;
9811
9819
  };
9812
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
9820
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
9813
9821
  asset: {
9814
9822
  type: "nft" | "token";
9815
9823
  tokenAddress: `0x${string}`;
@@ -9905,7 +9913,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9905
9913
  name?: string | undefined;
9906
9914
  iconUrl?: string | undefined;
9907
9915
  };
9908
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
9916
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
9909
9917
  asset: {
9910
9918
  type: "nft" | "token";
9911
9919
  tokenAddress: `0x${string}`;
@@ -10207,7 +10215,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
10207
10215
  name?: string | undefined;
10208
10216
  iconUrl?: string | undefined;
10209
10217
  };
10210
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
10218
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
10211
10219
  asset: {
10212
10220
  type: "nft" | "token";
10213
10221
  tokenAddress: string;
@@ -10303,7 +10311,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
10303
10311
  name?: string | undefined;
10304
10312
  iconUrl?: string | undefined;
10305
10313
  };
10306
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
10314
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
10307
10315
  asset: {
10308
10316
  type: "nft" | "token";
10309
10317
  tokenAddress: string;
@@ -11059,7 +11067,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11059
11067
  } | null | undefined;
11060
11068
  }>, z.ZodObject<{
11061
11069
  type: z.ZodLiteral<"staking">;
11062
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
11070
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
11063
11071
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
11064
11072
  asset: z.ZodObject<{
11065
11073
  type: z.ZodEnum<["token", "nft"]>;
@@ -11112,7 +11120,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11112
11120
  name?: string | undefined;
11113
11121
  iconUrl?: string | undefined;
11114
11122
  };
11115
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11123
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11116
11124
  asset: {
11117
11125
  type: "nft" | "token";
11118
11126
  tokenAddress: `0x${string}`;
@@ -11130,7 +11138,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11130
11138
  name?: string | undefined;
11131
11139
  iconUrl?: string | undefined;
11132
11140
  };
11133
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11141
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11134
11142
  asset: {
11135
11143
  type: "nft" | "token";
11136
11144
  tokenAddress: string;
@@ -11507,7 +11515,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11507
11515
  } | null | undefined;
11508
11516
  }>, z.ZodObject<{
11509
11517
  type: z.ZodLiteral<"staking">;
11510
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
11518
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
11511
11519
  counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
11512
11520
  asset: z.ZodObject<{
11513
11521
  type: z.ZodEnum<["token", "nft"]>;
@@ -11560,7 +11568,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11560
11568
  name?: string | undefined;
11561
11569
  iconUrl?: string | undefined;
11562
11570
  };
11563
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11571
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11564
11572
  asset: {
11565
11573
  type: "nft" | "token";
11566
11574
  tokenAddress: `0x${string}`;
@@ -11578,7 +11586,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11578
11586
  name?: string | undefined;
11579
11587
  iconUrl?: string | undefined;
11580
11588
  };
11581
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11589
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11582
11590
  asset: {
11583
11591
  type: "nft" | "token";
11584
11592
  tokenAddress: string;
@@ -11673,7 +11681,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11673
11681
  name?: string | undefined;
11674
11682
  iconUrl?: string | undefined;
11675
11683
  };
11676
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11684
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11677
11685
  asset: {
11678
11686
  type: "nft" | "token";
11679
11687
  tokenAddress: `0x${string}`;
@@ -11768,7 +11776,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11768
11776
  name?: string | undefined;
11769
11777
  iconUrl?: string | undefined;
11770
11778
  };
11771
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11779
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11772
11780
  asset: {
11773
11781
  type: "nft" | "token";
11774
11782
  tokenAddress: string;
@@ -11866,7 +11874,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11866
11874
  name?: string | undefined;
11867
11875
  iconUrl?: string | undefined;
11868
11876
  };
11869
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11877
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11870
11878
  asset: {
11871
11879
  type: "nft" | "token";
11872
11880
  tokenAddress: `0x${string}`;
@@ -11964,7 +11972,7 @@ export declare const activityResponseSchema: z.ZodObject<{
11964
11972
  name?: string | undefined;
11965
11973
  iconUrl?: string | undefined;
11966
11974
  };
11967
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
11975
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
11968
11976
  asset: {
11969
11977
  type: "nft" | "token";
11970
11978
  tokenAddress: string;
@@ -12875,7 +12883,7 @@ export declare const activityResponseSchema: z.ZodObject<{
12875
12883
  name?: string | undefined;
12876
12884
  iconUrl?: string | undefined;
12877
12885
  };
12878
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
12886
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
12879
12887
  asset: {
12880
12888
  type: "nft" | "token";
12881
12889
  tokenAddress: `0x${string}`;
@@ -12971,7 +12979,7 @@ export declare const activityResponseSchema: z.ZodObject<{
12971
12979
  name?: string | undefined;
12972
12980
  iconUrl?: string | undefined;
12973
12981
  };
12974
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
12982
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
12975
12983
  asset: {
12976
12984
  type: "nft" | "token";
12977
12985
  tokenAddress: `0x${string}`;
@@ -13273,7 +13281,7 @@ export declare const activityResponseSchema: z.ZodObject<{
13273
13281
  name?: string | undefined;
13274
13282
  iconUrl?: string | undefined;
13275
13283
  };
13276
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
13284
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
13277
13285
  asset: {
13278
13286
  type: "nft" | "token";
13279
13287
  tokenAddress: string;
@@ -13369,7 +13377,7 @@ export declare const activityResponseSchema: z.ZodObject<{
13369
13377
  name?: string | undefined;
13370
13378
  iconUrl?: string | undefined;
13371
13379
  };
13372
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
13380
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
13373
13381
  asset: {
13374
13382
  type: "nft" | "token";
13375
13383
  tokenAddress: string;
@@ -13679,7 +13687,7 @@ export declare const activityResponseSchema: z.ZodObject<{
13679
13687
  name?: string | undefined;
13680
13688
  iconUrl?: string | undefined;
13681
13689
  };
13682
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
13690
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
13683
13691
  asset: {
13684
13692
  type: "nft" | "token";
13685
13693
  tokenAddress: `0x${string}`;
@@ -13775,7 +13783,7 @@ export declare const activityResponseSchema: z.ZodObject<{
13775
13783
  name?: string | undefined;
13776
13784
  iconUrl?: string | undefined;
13777
13785
  };
13778
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
13786
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
13779
13787
  asset: {
13780
13788
  type: "nft" | "token";
13781
13789
  tokenAddress: `0x${string}`;
@@ -14083,7 +14091,7 @@ export declare const activityResponseSchema: z.ZodObject<{
14083
14091
  name?: string | undefined;
14084
14092
  iconUrl?: string | undefined;
14085
14093
  };
14086
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
14094
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
14087
14095
  asset: {
14088
14096
  type: "nft" | "token";
14089
14097
  tokenAddress: string;
@@ -14179,7 +14187,7 @@ export declare const activityResponseSchema: z.ZodObject<{
14179
14187
  name?: string | undefined;
14180
14188
  iconUrl?: string | undefined;
14181
14189
  };
14182
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
14190
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
14183
14191
  asset: {
14184
14192
  type: "nft" | "token";
14185
14193
  tokenAddress: string;
@@ -183,14 +183,15 @@ const r = t.object({
183
183
  multisigDetails: t.object({
184
184
  signers: t.array(e)
185
185
  }).optional()
186
- }), T = t.object({
186
+ }), E = t.object({
187
187
  title: t.string().optional(),
188
188
  shortTitle: t.string().optional(),
189
189
  subtitle: t.string().optional(),
190
190
  /** let's not import the keys from x-ui here */
191
191
  icon: t.string().optional(),
192
- investment: g.optional()
193
- }), D = "native", E = "rejected", P = "cancelled", x = "queued", B = p.pick({
192
+ investment: g.optional(),
193
+ isExecuteFromOutside: t.boolean().optional()
194
+ }), T = "native", x = "rejected", D = "cancelled", P = "queued", F = p.pick({
194
195
  status: !0,
195
196
  actions: !0,
196
197
  submitted: !0,
@@ -202,18 +203,18 @@ const r = t.object({
202
203
  status: t.union([
203
204
  l,
204
205
  t.enum([
205
- E,
206
- P,
207
- x
206
+ x,
207
+ D,
208
+ P
208
209
  ])
209
210
  ]),
210
- type: t.literal(D),
211
+ type: t.literal(T),
211
212
  transaction: r.pick({
212
213
  hash: !0
213
214
  }),
214
215
  dapp: b.optional(),
215
- meta: T.optional()
216
- }), M = t.array(p), F = t.object({
216
+ meta: E.optional()
217
+ }), M = t.array(p), B = t.object({
217
218
  activities: M,
218
219
  page: t.number(),
219
220
  pageSize: t.number(),
@@ -223,24 +224,24 @@ const r = t.object({
223
224
  function K(n) {
224
225
  return s.safeParse(n).success;
225
226
  }
226
- const u = (n) => c.safeParse(n).success, R = (n) => u(n) && n.asset.type === "token", q = (n) => u(n) && n.asset.type === "nft";
227
+ const u = (n) => c.safeParse(n).success, O = (n) => u(n) && n.asset.type === "token", R = (n) => u(n) && n.asset.type === "nft";
227
228
  export {
228
- P as NativeActivityStatusCancelled,
229
- x as NativeActivityStatusQueued,
230
- E as NativeActivityStatusRejected,
231
- D as NativeActivityTypeNative,
229
+ D as NativeActivityStatusCancelled,
230
+ P as NativeActivityStatusQueued,
231
+ x as NativeActivityStatusRejected,
232
+ T as NativeActivityTypeNative,
232
233
  M as activitiesSchema,
233
234
  N as activityDappSchema,
234
235
  w as activityDetailsSchema,
235
- F as activityResponseSchema,
236
+ B as activityResponseSchema,
236
237
  p as activitySchema,
237
238
  c as activitySummarySchema,
238
239
  S as activityTransferSchema,
239
240
  I as feeSchema,
240
241
  K as isActivityDetailsAction,
241
242
  u as isActivitySummary,
242
- q as isNftActivitySummary,
243
- R as isTokenActivitySummary,
244
- T as nativeActivityMetaSchema,
245
- B as nativeActivitySchema
243
+ R as isNftActivitySummary,
244
+ O as isTokenActivitySummary,
245
+ E as nativeActivityMetaSchema,
246
+ F as nativeActivitySchema
246
247
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),c=require("../utils/starknet/starknet.cjs"),t=require("../chains/starknet/address.cjs"),a=e.z.object({id:e.z.string(),dappId:e.z.string(),productId:e.z.string(),productName:e.z.string(),chain:e.z.string(),name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url().optional(),riskFactor:e.z.enum(["low"]),metrics:e.z.object({baseApy:e.z.string(),totalApy:e.z.string(),tvl:e.z.string().optional()}),incentives:e.z.array(e.z.object({name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url(),metric:e.z.object({apy:e.z.string()})})),buyEnabled:e.z.boolean(),sellEnabled:e.z.boolean()}),s=a.extend({category:e.z.literal("staking"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()})})}),o=a.extend({category:e.z.literal("lending"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({totalFee:e.z.string()}),withdrawalFees:e.z.object({totalFee:e.z.string()})})}),n=e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().url().optional(),address:e.z.string()}),r=a.extend({category:e.z.literal("strkDelegatedStaking"),stakerInfo:n,investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional()}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional(),amountsRequirement:e.z.enum(["fullBalance"]).optional(),timelockDuration:e.z.number().optional()}),fees:e.z.object({depositFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()}),buyEnabled:e.z.boolean().optional(),sellEnabled:e.z.boolean().optional(),claimEnabled:e.z.boolean().optional()}),i=e.z.discriminatedUnion("category",[s,o,r]),z=e.z.object({investments:e.z.array(i)}),d=e.z.object({calls:e.z.array(c.callSchema)}),m=e.z.object({investmentId:e.z.string(),stakerInfo:n,accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,amount:e.z.string()}),l=e.z.enum(["stake","initiateWithdraw","withdraw","claim"]),g=e.z.object({stakingAction:l,stakerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string()});exports.investmentMetaSchema=g;exports.investmentSchema=i;exports.investmentsResponseSchema=z;exports.lendingInvestmentSchema=o;exports.stakerInfoSchema=n;exports.stakingActionSchema=l;exports.stakingInvestmentSchema=s;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=d;exports.strkStakingCalldataSchema=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),c=require("../utils/starknet/starknet.cjs"),t=require("../chains/starknet/address.cjs"),a=e.z.object({id:e.z.string(),dappId:e.z.string(),productId:e.z.string(),productName:e.z.string(),chain:e.z.string(),name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url().optional(),riskFactor:e.z.enum(["low"]),metrics:e.z.object({baseApy:e.z.string(),totalApy:e.z.string(),tvl:e.z.string().optional()}),incentives:e.z.array(e.z.object({name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url(),metric:e.z.object({apy:e.z.string()})})),buyEnabled:e.z.boolean(),sellEnabled:e.z.boolean()}),s=a.extend({category:e.z.literal("staking"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()})})}),o=a.extend({category:e.z.literal("lending"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({totalFee:e.z.string()}),withdrawalFees:e.z.object({totalFee:e.z.string()})})}),n=e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().url().optional(),address:e.z.string()}),r=a.extend({category:e.z.literal("strkDelegatedStaking"),stakerInfo:n,investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional()}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional(),amountsRequirement:e.z.enum(["fullBalance"]).optional(),timelockDuration:e.z.number().optional()}),fees:e.z.object({depositFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()}),buyEnabled:e.z.boolean().optional(),sellEnabled:e.z.boolean().optional(),claimEnabled:e.z.boolean().optional()}),i=e.z.discriminatedUnion("category",[s,o,r]),z=e.z.object({investments:e.z.array(i)}),d=e.z.object({calls:e.z.array(c.callSchema)}),m=e.z.object({investmentId:e.z.string(),stakerInfo:n,accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,amount:e.z.string()}),l=e.z.enum(["deposit","stake","initiateWithdraw","withdraw","claim"]),g=e.z.object({stakingAction:l,stakerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string()});exports.investmentMetaSchema=g;exports.investmentSchema=i;exports.investmentsResponseSchema=z;exports.lendingInvestmentSchema=o;exports.stakerInfoSchema=n;exports.stakingActionSchema=l;exports.stakingInvestmentSchema=s;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=d;exports.strkStakingCalldataSchema=m;
@@ -2576,9 +2576,9 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
2576
2576
  investmentId: string;
2577
2577
  }>;
2578
2578
  export type StrkStakingCalldata = z.infer<typeof strkStakingCalldataSchema>;
2579
- export declare const stakingActionSchema: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
2579
+ export declare const stakingActionSchema: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
2580
2580
  export declare const investmentMetaSchema: z.ZodObject<{
2581
- stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
2581
+ stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
2582
2582
  stakerInfo: z.ZodObject<{
2583
2583
  name: z.ZodOptional<z.ZodString>;
2584
2584
  iconUrl: z.ZodOptional<z.ZodString>;
@@ -2602,7 +2602,7 @@ export declare const investmentMetaSchema: z.ZodObject<{
2602
2602
  name?: string | undefined;
2603
2603
  iconUrl?: string | undefined;
2604
2604
  };
2605
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2605
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2606
2606
  }, {
2607
2607
  amount: string;
2608
2608
  tokenAddress: string;
@@ -2611,6 +2611,6 @@ export declare const investmentMetaSchema: z.ZodObject<{
2611
2611
  name?: string | undefined;
2612
2612
  iconUrl?: string | undefined;
2613
2613
  };
2614
- stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2614
+ stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2615
2615
  }>;
2616
2616
  export type InvestmentMeta = z.infer<typeof investmentMetaSchema>;
@@ -123,6 +123,7 @@ const n = e.object({
123
123
  tokenAddress: t,
124
124
  amount: e.string()
125
125
  }), d = e.enum([
126
+ "deposit",
126
127
  "stake",
127
128
  "initiateWithdraw",
128
129
  "withdraw",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs"),P=require("./isNumeric.cjs"),c={CURRENCY:{minDecimalPlaces:2,maxDecimalPlaces:10,minDecimalSignificantDigits:2,decimalPlacesWhenZero:2,allowLeadingZerosInDecimalPart:!0},TOKEN:{minDecimalPlaces:4,maxDecimalPlaces:16,minDecimalSignificantDigits:2,decimalPlacesWhenZero:1,allowLeadingZerosInDecimalPart:!0}},C=(t,e)=>l(t,{...c.CURRENCY,...e||{}}),S=(t,e)=>l(t,{...c.TOKEN,...e||{}}),l=(t,{minDecimalPlaces:e,maxDecimalPlaces:N,minDecimalSignificantDigits:p,decimalPlacesWhenZero:m,allowLeadingZerosInDecimalPart:o}=c.CURRENCY)=>{if(!P.isNumeric(t))return null;const r=new f.BigNumber(typeof t=="bigint"?t.toString():t);let i;const b=`0.${"".padStart(m-1,"0")}1`;if(r.lt(new f.BigNumber(b))&&!o)i=`0.${"".padStart(m,"0")}`;else if(r.gte(1))i=r.toFormat(e);else{const s=r.toFormat(N).split(".")[1].match(/^0+/),y=o&&s&&s.length?s[0].length:0,D=Math.max(y+p,e);i=r.toFormat(D)}const[d,u]=i.split(".");let n=d;if(u){const a=u.replace(/0+$/,"");n+=a?`.${a}`:""}const g=1+i.indexOf(".")+m;return n.length<g&&(n=i.substring(0,g)),n};exports.prettifyCurrencyNumber=C;exports.prettifyNumber=l;exports.prettifyNumberConfig=c;exports.prettifyTokenNumber=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs"),P=require("./isNumeric.cjs"),c={CURRENCY:{minDecimalPlaces:2,maxDecimalPlaces:10,minDecimalSignificantDigits:2,decimalPlacesWhenZero:2,allowLeadingZerosInDecimalPart:!0},TOKEN:{minDecimalPlaces:4,maxDecimalPlaces:16,minDecimalSignificantDigits:2,decimalPlacesWhenZero:1,allowLeadingZerosInDecimalPart:!0}},h=(t,e)=>l(t,{...c.CURRENCY,...e||{}}),C=(t,e)=>l(t,{...c.TOKEN,...e||{}}),l=(t,{minDecimalPlaces:e,maxDecimalPlaces:N,minDecimalSignificantDigits:p,decimalPlacesWhenZero:m,allowLeadingZerosInDecimalPart:u}=c.CURRENCY)=>{if(!P.isNumeric(t))return null;const r=new s.BigNumber(typeof t=="bigint"?t.toString():t);let i;const b=`0.${"".padStart(m-1,"0")}1`;if(r.lt(new s.BigNumber(b))&&!u)i=`0.${"".padStart(m,"0")}`;else if(r.gte(1))i=e!==0?r.toFormat(e):r.toFormat(e,s.BigNumber.ROUND_FLOOR);else{const o=r.toFormat(N).split(".")[1].match(/^0+/),d=u&&o&&o.length?o[0].length:0,y=Math.max(d+p,e);i=r.toFormat(y)}const[D,g]=i.split(".");let a=D;if(g){const n=g.replace(/0+$/,"");a+=n?`.${n}`:""}const f=1+i.indexOf(".")+m;return a.length<f&&(a=i.substring(0,f)),a};exports.prettifyCurrencyNumber=h;exports.prettifyNumber=l;exports.prettifyNumberConfig=c;exports.prettifyTokenNumber=C;
@@ -1,6 +1,6 @@
1
- import { BigNumber as f } from "../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js";
1
+ import { BigNumber as m } from "../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js";
2
2
  import { isNumeric as C } from "./isNumeric.js";
3
- const l = {
3
+ const s = {
4
4
  CURRENCY: {
5
5
  minDecimalPlaces: 2,
6
6
  maxDecimalPlaces: 10,
@@ -15,38 +15,38 @@ const l = {
15
15
  decimalPlacesWhenZero: 1,
16
16
  allowLeadingZerosInDecimalPart: !0
17
17
  }
18
- }, R = (t, e) => p(t, {
19
- ...l.CURRENCY,
18
+ }, y = (t, e) => D(t, {
19
+ ...s.CURRENCY,
20
20
  ...e || {}
21
- }), b = (t, e) => p(t, {
22
- ...l.TOKEN,
21
+ }), O = (t, e) => D(t, {
22
+ ...s.TOKEN,
23
23
  ...e || {}
24
- }), p = (t, { minDecimalPlaces: e, maxDecimalPlaces: u, minDecimalSignificantDigits: D, decimalPlacesWhenZero: c, allowLeadingZerosInDecimalPart: o } = l.CURRENCY) => {
24
+ }), D = (t, { minDecimalPlaces: e, maxDecimalPlaces: p, minDecimalSignificantDigits: u, decimalPlacesWhenZero: c, allowLeadingZerosInDecimalPart: l } = s.CURRENCY) => {
25
25
  if (!C(t))
26
26
  return null;
27
- const r = new f(typeof t == "bigint" ? t.toString() : t);
28
- let i;
29
- const d = `0.${"".padStart(c - 1, "0")}1`;
30
- if (r.lt(new f(d)) && !o)
31
- i = `0.${"".padStart(c, "0")}`;
32
- else if (r.gte(1))
33
- i = r.toFormat(e);
27
+ const i = new m(typeof t == "bigint" ? t.toString() : t);
28
+ let r;
29
+ const N = `0.${"".padStart(c - 1, "0")}1`;
30
+ if (i.lt(new m(N)) && !l)
31
+ r = `0.${"".padStart(c, "0")}`;
32
+ else if (i.gte(1))
33
+ r = e !== 0 ? i.toFormat(e) : i.toFormat(e, m.ROUND_FLOOR);
34
34
  else {
35
- const m = r.toFormat(u).split(".")[1].match(/^0+/), P = o && m && m.length ? m[0].length : 0, h = Math.max(P + D, e);
36
- i = r.toFormat(h);
35
+ const o = i.toFormat(p).split(".")[1].match(/^0+/), P = l && o && o.length ? o[0].length : 0, h = Math.max(P + u, e);
36
+ r = i.toFormat(h);
37
37
  }
38
- const [N, s] = i.split(".");
39
- let n = N;
40
- if (s) {
41
- const a = s.replace(/0+$/, "");
38
+ const [d, g] = r.split(".");
39
+ let n = d;
40
+ if (g) {
41
+ const a = g.replace(/0+$/, "");
42
42
  n += a ? `.${a}` : "";
43
43
  }
44
- const g = 1 + i.indexOf(".") + c;
45
- return n.length < g && (n = i.substring(0, g)), n;
44
+ const f = 1 + r.indexOf(".") + c;
45
+ return n.length < f && (n = r.substring(0, f)), n;
46
46
  };
47
47
  export {
48
- R as prettifyCurrencyNumber,
49
- p as prettifyNumber,
50
- l as prettifyNumberConfig,
51
- b as prettifyTokenNumber
48
+ y as prettifyCurrencyNumber,
49
+ D as prettifyNumber,
50
+ s as prettifyNumberConfig,
51
+ O as prettifyTokenNumber
52
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"