@argent/x-shared 1.64.0 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/simulation.cjs +1 -1
- package/dist/simulation.js +20 -18
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.d.ts +238 -12
- package/dist/src/features/simulation/activity/schema.js +48 -46
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +76 -0
- package/dist/src/features/simulation/transactionReview/schema.js +106 -98
- package/package.json +1 -1
|
@@ -16,20 +16,20 @@ const r = t.object({
|
|
|
16
16
|
currency: t.string(),
|
|
17
17
|
currencyAmount: t.number()
|
|
18
18
|
}).optional().nullable()
|
|
19
|
-
}),
|
|
19
|
+
}), o = t.enum(["ethereum", "starknet", "zksync", "zksync2"]), S = t.object({
|
|
20
20
|
type: t.enum(["payment", "gasFee"]),
|
|
21
21
|
leg: t.enum(["credit", "debit"]),
|
|
22
22
|
asset: a,
|
|
23
23
|
counterParty: e.optional(),
|
|
24
|
-
counterPartyNetwork:
|
|
24
|
+
counterPartyNetwork: o.optional()
|
|
25
25
|
}), h = t.object({
|
|
26
26
|
address: e,
|
|
27
|
-
network:
|
|
27
|
+
network: o,
|
|
28
28
|
type: t.enum(["wallet", "token"])
|
|
29
|
-
}),
|
|
29
|
+
}), j = t.object({
|
|
30
30
|
chainId: t.enum(["TESTNET", "MAINNET", "SEPOLIA"]),
|
|
31
31
|
ethereumNetwork: t.enum(["mainnet", "sepolia"])
|
|
32
|
-
}),
|
|
32
|
+
}), k = t.enum([
|
|
33
33
|
"approval",
|
|
34
34
|
"changePubKey",
|
|
35
35
|
"dappInteraction",
|
|
@@ -51,10 +51,10 @@ const r = t.object({
|
|
|
51
51
|
"cancelEscape",
|
|
52
52
|
"accountUpgraded",
|
|
53
53
|
"multisigConfigurationUpdated"
|
|
54
|
-
]),
|
|
54
|
+
]), v = t.object({
|
|
55
55
|
name: t.string(),
|
|
56
56
|
parameters: t.array(t.unknown()).optional()
|
|
57
|
-
}),
|
|
57
|
+
}), f = t.object({
|
|
58
58
|
guid: t.string().optional(),
|
|
59
59
|
signerType: t.string().optional(),
|
|
60
60
|
// StarknetKey, Secp256k1, Secp256r1, Eip191, Webauthn
|
|
@@ -67,8 +67,10 @@ const r = t.object({
|
|
|
67
67
|
newImplementation: t.string().optional(),
|
|
68
68
|
newVersion: t.string().optional(),
|
|
69
69
|
signerGuid: t.string().optional(),
|
|
70
|
-
signers: t.array(
|
|
71
|
-
}),
|
|
70
|
+
signers: t.array(f).optional()
|
|
71
|
+
}), w = t.object({
|
|
72
|
+
isLootboxReward: t.boolean().optional()
|
|
73
|
+
}), i = t.discriminatedUnion("type", [
|
|
72
74
|
t.object({
|
|
73
75
|
type: t.literal("deploy"),
|
|
74
76
|
deployer: e,
|
|
@@ -85,7 +87,8 @@ const r = t.object({
|
|
|
85
87
|
counterparty: e,
|
|
86
88
|
leg: t.string(),
|
|
87
89
|
asset: a,
|
|
88
|
-
counterpartyNetwork:
|
|
90
|
+
counterpartyNetwork: o.optional(),
|
|
91
|
+
context: w.optional()
|
|
89
92
|
}),
|
|
90
93
|
t.object({
|
|
91
94
|
type: t.literal("trade"),
|
|
@@ -100,7 +103,7 @@ const r = t.object({
|
|
|
100
103
|
t.object({
|
|
101
104
|
type: t.literal("dappInteraction"),
|
|
102
105
|
dappAddress: e,
|
|
103
|
-
function:
|
|
106
|
+
function: v.optional().nullable()
|
|
104
107
|
// This object is often null. It happens when we were unable to get the ABI or failed decoding the function call
|
|
105
108
|
}),
|
|
106
109
|
t.object({
|
|
@@ -115,17 +118,17 @@ const r = t.object({
|
|
|
115
118
|
counterparty: e.optional(),
|
|
116
119
|
leg: t.string(),
|
|
117
120
|
asset: a,
|
|
118
|
-
counterpartyNetwork:
|
|
121
|
+
counterpartyNetwork: o.optional()
|
|
119
122
|
})
|
|
120
|
-
]),
|
|
121
|
-
|
|
123
|
+
]), N = t.union([
|
|
124
|
+
i,
|
|
122
125
|
t.object({
|
|
123
126
|
type: t.literal("multicall"),
|
|
124
127
|
calls: t.array(t.object({
|
|
125
|
-
details:
|
|
128
|
+
details: i
|
|
126
129
|
}))
|
|
127
130
|
})
|
|
128
|
-
]),
|
|
131
|
+
]), I = t.object({
|
|
129
132
|
dappId: t.string(),
|
|
130
133
|
name: t.string().optional().nullable()
|
|
131
134
|
}), c = t.object({
|
|
@@ -151,7 +154,7 @@ const r = t.object({
|
|
|
151
154
|
}).optional().nullable()
|
|
152
155
|
})
|
|
153
156
|
])
|
|
154
|
-
}),
|
|
157
|
+
}), x = t.object({
|
|
155
158
|
type: t.string(),
|
|
156
159
|
// "gas" for example
|
|
157
160
|
to: e,
|
|
@@ -171,27 +174,26 @@ const r = t.object({
|
|
|
171
174
|
wallet: e,
|
|
172
175
|
txSender: e,
|
|
173
176
|
source: t.string(),
|
|
174
|
-
type:
|
|
177
|
+
type: k,
|
|
175
178
|
group: t.enum(["finance", "security"]),
|
|
176
179
|
submitted: t.number(),
|
|
177
180
|
lastModified: t.number(),
|
|
178
181
|
transaction: r,
|
|
179
182
|
transfers: t.array(S),
|
|
180
183
|
// to be clarified
|
|
181
|
-
fees: t.array(
|
|
184
|
+
fees: t.array(x).optional(),
|
|
182
185
|
relatedAddresses: t.array(h).nullable(),
|
|
183
186
|
network: t.string(),
|
|
184
|
-
networkDetails:
|
|
185
|
-
details:
|
|
187
|
+
networkDetails: j.optional(),
|
|
188
|
+
details: N,
|
|
186
189
|
transferSummary: t.array(c).optional(),
|
|
187
|
-
dapp:
|
|
190
|
+
dapp: I.optional(),
|
|
188
191
|
actions: t.array(y).optional(),
|
|
189
192
|
title: t.string().optional(),
|
|
190
193
|
multisigDetails: t.object({
|
|
191
194
|
signers: t.array(e)
|
|
192
|
-
}).optional()
|
|
193
|
-
|
|
194
|
-
}), x = t.object({
|
|
195
|
+
}).optional()
|
|
196
|
+
}), E = t.object({
|
|
195
197
|
title: t.string().optional(),
|
|
196
198
|
shortTitle: t.string().optional(),
|
|
197
199
|
subtitle: t.string().optional(),
|
|
@@ -199,7 +201,7 @@ const r = t.object({
|
|
|
199
201
|
icon: t.string().optional(),
|
|
200
202
|
investment: g.optional(),
|
|
201
203
|
isExecuteFromOutside: t.boolean().optional()
|
|
202
|
-
}),
|
|
204
|
+
}), T = "native", D = "rejected", P = "cancelled", C = "queued", R = p.pick({
|
|
203
205
|
status: !0,
|
|
204
206
|
actions: !0,
|
|
205
207
|
submitted: !0,
|
|
@@ -211,45 +213,45 @@ const r = t.object({
|
|
|
211
213
|
status: t.union([
|
|
212
214
|
l,
|
|
213
215
|
t.enum([
|
|
214
|
-
T,
|
|
215
216
|
D,
|
|
216
|
-
P
|
|
217
|
+
P,
|
|
218
|
+
C
|
|
217
219
|
])
|
|
218
220
|
]),
|
|
219
|
-
type: t.literal(
|
|
221
|
+
type: t.literal(T),
|
|
220
222
|
transaction: r.pick({
|
|
221
223
|
hash: !0
|
|
222
224
|
}),
|
|
223
225
|
dapp: b.optional(),
|
|
224
|
-
meta:
|
|
225
|
-
}), M = t.array(p),
|
|
226
|
+
meta: E.optional()
|
|
227
|
+
}), M = t.array(p), B = t.object({
|
|
226
228
|
activities: M,
|
|
227
229
|
page: t.number(),
|
|
228
230
|
pageSize: t.number(),
|
|
229
231
|
totalElements: t.number(),
|
|
230
232
|
totalPages: t.number()
|
|
231
233
|
});
|
|
232
|
-
function
|
|
234
|
+
function K(n) {
|
|
233
235
|
return s.safeParse(n).success;
|
|
234
236
|
}
|
|
235
|
-
const u = (n) => c.safeParse(n).success,
|
|
237
|
+
const u = (n) => c.safeParse(n).success, L = (n) => u(n) && n.asset.type === "token", O = (n) => u(n) && n.asset.type === "nft";
|
|
236
238
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
P as NativeActivityStatusCancelled,
|
|
240
|
+
C as NativeActivityStatusQueued,
|
|
241
|
+
D as NativeActivityStatusRejected,
|
|
242
|
+
T as NativeActivityTypeNative,
|
|
241
243
|
M as activitiesSchema,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
244
|
+
I as activityDappSchema,
|
|
245
|
+
N as activityDetailsSchema,
|
|
246
|
+
B as activityResponseSchema,
|
|
245
247
|
p as activitySchema,
|
|
246
248
|
c as activitySummarySchema,
|
|
247
249
|
S as activityTransferSchema,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
+
x as feeSchema,
|
|
251
|
+
K as isActivityDetailsAction,
|
|
250
252
|
u as isActivitySummary,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
O as isNftActivitySummary,
|
|
254
|
+
L as isTokenActivitySummary,
|
|
255
|
+
E as nativeActivityMetaSchema,
|
|
256
|
+
R as nativeActivitySchema
|
|
255
257
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),g=require("../fees/schema.cjs"),d=require("../warning/schema.cjs"),n=require("../../../chains/starknet/address.cjs"),U=e.z.object({name:e.z.string(),url:e.z.string(),position:e.z.number()}),s=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()}),r=e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("amount"),label:e.z.string(),token:s,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:s}),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:s})]),u=e.z.object({name:e.z.string(),properties:e.z.array(r),defaultProperties:e.z.array(r).optional()}),b=e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),S=e.z.object({unknown_token:e.z.unknown().optional(),date_of_addition:e.z.string().optional(),contract_address:n.addressSchema.optional(),reason:e.z.string().optional(),value:e.z.string().or(e.z.number()).optional()}),l=e.z.object({reason:d.reasonsSchema,details:S.optional(),severity:d.severitySchema}),h=e.z.object({assessment:b,warnings:e.z.array(l).optional(),assessmentReasons:e.z.array(e.z.string()).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),action:u}),y=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(U)}),f=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(l).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),targetedDapp:y.optional(),reviews:e.z.array(h)}).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()}),x=e.z.object({twitter:e.z.string().optional(),external:e.z.string().optional(),discord:e.z.string().optional()}),c=e.z.object({address:n.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:x.optional()}),B=e.z.object({tokenAddress:n.addressSchemaArgentBackend,owner:n.addressSchemaArgentBackend,spender:n.addressSchemaArgentBackend,value:e.z.string().optional(),approvalForAll:e.z.boolean(),details:c.optional()}),P=e.z.object({tokenAddress:n.addressSchemaArgentBackend,from:n.addressSchemaArgentBackend,to:n.addressSchemaArgentBackend,tokenId:e.z.string().optional(),value:e.z.string().optional(),details:c.optional()}),t=e.z.union([e.z.string(),e.z.number(),e.z.bigint()]).transform(a=>parseInt(a.toString(),10)),k={overallFee:t,gasPrice:t,gasUsage:t,dataGasPrice:t.optional(),dataGasConsumed:t.optional()},v=e.z.object({...k,unit:e.z.string().transform(a=>a.toUpperCase()).pipe(e.z.literal("WEI")),maxFee:t}),m=e.z.object({address:n.addressSchemaArgentBackend,unknown:e.z.boolean(),type:e.z.literal("ERC20")}),w=e.z.object({...k,unit:e.z.string().transform(a=>a.toUpperCase()).pipe(e.z.literal("FRI")),maxAmount:t,maxPricePerUnit:t,token:m}),E=e.z.object({token:m,overallFee:t,maxFee:t}),z=v.or(w),A=z.or(E),V=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:c,sent:e.z.boolean().optional(),tokenIdDetails:e.z.object({name:e.z.string().optional(),description:e.z.string().optional(),imageUrls:j.optional()}).optional()}),R=e.z.object({approvals:e.z.array(B).optional(),transfers:e.z.array(P).optional(),calculatedNonce:e.z.string().optional(),feeEstimation:z,feeEstimations:e.z.array(A),summary:e.z.array(V).optional()}),N=e.z.object({label:e.z.string().optional(),code:e.z.number().optional(),message:e.z.string().optional(),error:e.z.string().optional()}),F=e.z.object({reviewOfTransaction:f,simulation:R,simulationError:e.z.undefined()}),T=e.z.object({reviewOfTransaction:f,simulation:e.z.undefined(),simulationError:N}),p=F.or(T),o=e.z.object({subsidiseDeployment:e.z.boolean(),subsidiseTransaction:e.z.boolean()}),D=e.z.object({name:e.z.string().optional(),shouldShow:e.z.boolean().optional()}),i=e.z.array(D),_=e.z.object({transactions:e.z.array(p).optional(),subsidyStatus:o.optional(),promotions:i.optional()}),O=e.z.object({transactions:e.z.array(p).optional(),subsidyStatus:o.optional(),enrichedFeeEstimation:g.estimatedFeesSchema.optional(),isBackendDown:e.z.boolean().default(!1).optional(),promotions:i.optional()}),I=e.z.object({transactions:e.z.array(p).optional(),subsidyStatus:o.optional(),enrichedFeeEstimation:e.z.array(g.estimatedFeesV2Schema).optional(),isBackendDown:e.z.boolean().default(!1).optional(),promotions:i.optional()});function C(a){return F.safeParse(a).success}function q(a){return T.safeParse(a).success}exports.actionSchema=u;exports.assessmentSchema=b;exports.enrichedSimulateAndReviewSchema=O;exports.enrichedSimulateAndReviewV2Schema=I;exports.feeEstimationNativeOrPaymasterSchema=A;exports.feeEstimationSchema=z;exports.feeEstimationTxV1Schema=v;exports.feeEstimationTxV3Schema=w;exports.isNotTransactionSimulationError=C;exports.isTransactionSimulationError=q;exports.paymasterFeeEstimationSchema=E;exports.paymasterFeeTokenSchema=m;exports.promotionSchema=D;exports.promotionsSchema=i;exports.propertySchema=r;exports.reviewSchema=h;exports.simulateAndReviewSchema=_;exports.subsidyStatusSchema=o;exports.targetedDappSchema=y;exports.warningDetailsSchema=S;exports.warningSchema=l;
|
|
@@ -15357,7 +15357,29 @@ export declare const subsidyStatusSchema: z.ZodObject<{
|
|
|
15357
15357
|
subsidiseDeployment: boolean;
|
|
15358
15358
|
subsidiseTransaction: boolean;
|
|
15359
15359
|
}>;
|
|
15360
|
+
export declare const promotionSchema: z.ZodObject<{
|
|
15361
|
+
name: z.ZodOptional<z.ZodString>;
|
|
15362
|
+
shouldShow: z.ZodOptional<z.ZodBoolean>;
|
|
15363
|
+
}, "strip", z.ZodTypeAny, {
|
|
15364
|
+
name?: string | undefined;
|
|
15365
|
+
shouldShow?: boolean | undefined;
|
|
15366
|
+
}, {
|
|
15367
|
+
name?: string | undefined;
|
|
15368
|
+
shouldShow?: boolean | undefined;
|
|
15369
|
+
}>;
|
|
15370
|
+
export declare const promotionsSchema: z.ZodArray<z.ZodObject<{
|
|
15371
|
+
name: z.ZodOptional<z.ZodString>;
|
|
15372
|
+
shouldShow: z.ZodOptional<z.ZodBoolean>;
|
|
15373
|
+
}, "strip", z.ZodTypeAny, {
|
|
15374
|
+
name?: string | undefined;
|
|
15375
|
+
shouldShow?: boolean | undefined;
|
|
15376
|
+
}, {
|
|
15377
|
+
name?: string | undefined;
|
|
15378
|
+
shouldShow?: boolean | undefined;
|
|
15379
|
+
}>, "many">;
|
|
15360
15380
|
export type SubsidyStatus = z.infer<typeof subsidyStatusSchema>;
|
|
15381
|
+
export type Promotion = z.infer<typeof promotionSchema>;
|
|
15382
|
+
export type Promotions = z.infer<typeof promotionsSchema>;
|
|
15361
15383
|
export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
15362
15384
|
transactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
15363
15385
|
reviewOfTransaction: z.ZodOptional<z.ZodObject<{
|
|
@@ -20453,6 +20475,16 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
20453
20475
|
subsidiseDeployment: boolean;
|
|
20454
20476
|
subsidiseTransaction: boolean;
|
|
20455
20477
|
}>>;
|
|
20478
|
+
promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20479
|
+
name: z.ZodOptional<z.ZodString>;
|
|
20480
|
+
shouldShow: z.ZodOptional<z.ZodBoolean>;
|
|
20481
|
+
}, "strip", z.ZodTypeAny, {
|
|
20482
|
+
name?: string | undefined;
|
|
20483
|
+
shouldShow?: boolean | undefined;
|
|
20484
|
+
}, {
|
|
20485
|
+
name?: string | undefined;
|
|
20486
|
+
shouldShow?: boolean | undefined;
|
|
20487
|
+
}>, "many">>;
|
|
20456
20488
|
}, "strip", z.ZodTypeAny, {
|
|
20457
20489
|
transactions?: ({
|
|
20458
20490
|
simulation: {
|
|
@@ -20976,6 +21008,10 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
20976
21008
|
subsidiseDeployment: boolean;
|
|
20977
21009
|
subsidiseTransaction: boolean;
|
|
20978
21010
|
} | undefined;
|
|
21011
|
+
promotions?: {
|
|
21012
|
+
name?: string | undefined;
|
|
21013
|
+
shouldShow?: boolean | undefined;
|
|
21014
|
+
}[] | undefined;
|
|
20979
21015
|
}, {
|
|
20980
21016
|
transactions?: ({
|
|
20981
21017
|
simulation: {
|
|
@@ -21499,6 +21535,10 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
21499
21535
|
subsidiseDeployment: boolean;
|
|
21500
21536
|
subsidiseTransaction: boolean;
|
|
21501
21537
|
} | undefined;
|
|
21538
|
+
promotions?: {
|
|
21539
|
+
name?: string | undefined;
|
|
21540
|
+
shouldShow?: boolean | undefined;
|
|
21541
|
+
}[] | undefined;
|
|
21502
21542
|
}>;
|
|
21503
21543
|
export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
21504
21544
|
transactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -26746,6 +26786,16 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
26746
26786
|
} | undefined;
|
|
26747
26787
|
}>>;
|
|
26748
26788
|
isBackendDown: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26789
|
+
promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26790
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26791
|
+
shouldShow: z.ZodOptional<z.ZodBoolean>;
|
|
26792
|
+
}, "strip", z.ZodTypeAny, {
|
|
26793
|
+
name?: string | undefined;
|
|
26794
|
+
shouldShow?: boolean | undefined;
|
|
26795
|
+
}, {
|
|
26796
|
+
name?: string | undefined;
|
|
26797
|
+
shouldShow?: boolean | undefined;
|
|
26798
|
+
}>, "many">>;
|
|
26749
26799
|
}, "strip", z.ZodTypeAny, {
|
|
26750
26800
|
transactions?: ({
|
|
26751
26801
|
simulation: {
|
|
@@ -27269,6 +27319,10 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
27269
27319
|
subsidiseDeployment: boolean;
|
|
27270
27320
|
subsidiseTransaction: boolean;
|
|
27271
27321
|
} | undefined;
|
|
27322
|
+
promotions?: {
|
|
27323
|
+
name?: string | undefined;
|
|
27324
|
+
shouldShow?: boolean | undefined;
|
|
27325
|
+
}[] | undefined;
|
|
27272
27326
|
enrichedFeeEstimation?: {
|
|
27273
27327
|
transactions: {
|
|
27274
27328
|
amount: bigint;
|
|
@@ -27821,6 +27875,10 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
27821
27875
|
subsidiseDeployment: boolean;
|
|
27822
27876
|
subsidiseTransaction: boolean;
|
|
27823
27877
|
} | undefined;
|
|
27878
|
+
promotions?: {
|
|
27879
|
+
name?: string | undefined;
|
|
27880
|
+
shouldShow?: boolean | undefined;
|
|
27881
|
+
}[] | undefined;
|
|
27824
27882
|
enrichedFeeEstimation?: {
|
|
27825
27883
|
transactions: {
|
|
27826
27884
|
amount: bigint;
|
|
@@ -33154,6 +33212,16 @@ export declare const enrichedSimulateAndReviewV2Schema: z.ZodObject<{
|
|
|
33154
33212
|
} | undefined;
|
|
33155
33213
|
}>]>, "many">>;
|
|
33156
33214
|
isBackendDown: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
33215
|
+
promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33216
|
+
name: z.ZodOptional<z.ZodString>;
|
|
33217
|
+
shouldShow: z.ZodOptional<z.ZodBoolean>;
|
|
33218
|
+
}, "strip", z.ZodTypeAny, {
|
|
33219
|
+
name?: string | undefined;
|
|
33220
|
+
shouldShow?: boolean | undefined;
|
|
33221
|
+
}, {
|
|
33222
|
+
name?: string | undefined;
|
|
33223
|
+
shouldShow?: boolean | undefined;
|
|
33224
|
+
}>, "many">>;
|
|
33157
33225
|
}, "strip", z.ZodTypeAny, {
|
|
33158
33226
|
transactions?: ({
|
|
33159
33227
|
simulation: {
|
|
@@ -33677,6 +33745,10 @@ export declare const enrichedSimulateAndReviewV2Schema: z.ZodObject<{
|
|
|
33677
33745
|
subsidiseDeployment: boolean;
|
|
33678
33746
|
subsidiseTransaction: boolean;
|
|
33679
33747
|
} | undefined;
|
|
33748
|
+
promotions?: {
|
|
33749
|
+
name?: string | undefined;
|
|
33750
|
+
shouldShow?: boolean | undefined;
|
|
33751
|
+
}[] | undefined;
|
|
33680
33752
|
enrichedFeeEstimation?: ({
|
|
33681
33753
|
type: "native";
|
|
33682
33754
|
transactions: {
|
|
@@ -34242,6 +34314,10 @@ export declare const enrichedSimulateAndReviewV2Schema: z.ZodObject<{
|
|
|
34242
34314
|
subsidiseDeployment: boolean;
|
|
34243
34315
|
subsidiseTransaction: boolean;
|
|
34244
34316
|
} | undefined;
|
|
34317
|
+
promotions?: {
|
|
34318
|
+
name?: string | undefined;
|
|
34319
|
+
shouldShow?: boolean | undefined;
|
|
34320
|
+
}[] | undefined;
|
|
34245
34321
|
enrichedFeeEstimation?: ({
|
|
34246
34322
|
type: "native";
|
|
34247
34323
|
transactions: {
|