@waiaas/core 2.10.0-rc.8 → 2.10.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/README.md +1 -1
- package/dist/caip/asset-helpers.d.ts.map +1 -1
- package/dist/caip/asset-helpers.js +3 -0
- package/dist/caip/asset-helpers.js.map +1 -1
- package/dist/caip/network-map.d.ts.map +1 -1
- package/dist/caip/network-map.js +3 -0
- package/dist/caip/network-map.js.map +1 -1
- package/dist/enums/audit.d.ts +2 -2
- package/dist/enums/audit.d.ts.map +1 -1
- package/dist/enums/audit.js +1 -0
- package/dist/enums/audit.js.map +1 -1
- package/dist/enums/chain.d.ts +5 -25
- package/dist/enums/chain.d.ts.map +1 -1
- package/dist/enums/chain.js +6 -62
- package/dist/enums/chain.js.map +1 -1
- package/dist/enums/index.d.ts +1 -1
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +1 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/notification.d.ts +2 -2
- package/dist/enums/notification.d.ts.map +1 -1
- package/dist/enums/notification.js +4 -0
- package/dist/enums/notification.js.map +1 -1
- package/dist/errors/error-codes.d.ts +14 -0
- package/dist/errors/error-codes.d.ts.map +1 -1
- package/dist/errors/error-codes.js +15 -0
- package/dist/errors/error-codes.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +6 -0
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +6 -0
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/action-provider.types.d.ts +62 -7
- package/dist/interfaces/action-provider.types.d.ts.map +1 -1
- package/dist/interfaces/action-provider.types.js +26 -0
- package/dist/interfaces/action-provider.types.js.map +1 -1
- package/dist/interfaces/chain-adapter.types.d.ts +14 -0
- package/dist/interfaces/chain-adapter.types.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +2 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +3 -1
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/perp-provider.types.d.ts +2 -2
- package/dist/interfaces/price-oracle.types.d.ts +3 -3
- package/dist/rpc/built-in-defaults.d.ts +5 -4
- package/dist/rpc/built-in-defaults.d.ts.map +1 -1
- package/dist/rpc/built-in-defaults.js +13 -6
- package/dist/rpc/built-in-defaults.js.map +1 -1
- package/dist/schemas/audit.schema.d.ts +14 -14
- package/dist/schemas/audit.schema.d.ts.map +1 -1
- package/dist/schemas/audit.schema.js +3 -2
- package/dist/schemas/audit.schema.js.map +1 -1
- package/dist/schemas/policy.schema.d.ts +8 -8
- package/dist/schemas/signing-protocol.d.ts.map +1 -1
- package/dist/schemas/signing-protocol.js +8 -0
- package/dist/schemas/signing-protocol.js.map +1 -1
- package/dist/schemas/simulation.schema.d.ts +8 -8
- package/dist/schemas/transaction.schema.d.ts +310 -54
- package/dist/schemas/transaction.schema.d.ts.map +1 -1
- package/dist/schemas/transaction.schema.js +15 -0
- package/dist/schemas/transaction.schema.js.map +1 -1
- package/dist/schemas/userop.schema.d.ts +193 -37
- package/dist/schemas/userop.schema.d.ts.map +1 -1
- package/dist/schemas/webhook.schema.d.ts +8 -8
- package/dist/schemas/webhook.schema.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -97,12 +97,12 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
97
97
|
to: z.ZodString;
|
|
98
98
|
amount: z.ZodString;
|
|
99
99
|
memo: z.ZodOptional<z.ZodString>;
|
|
100
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
100
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
type: "TRANSFER";
|
|
103
103
|
amount: string;
|
|
104
104
|
to: string;
|
|
105
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
105
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
106
106
|
memo?: string | undefined;
|
|
107
107
|
gasCondition?: {
|
|
108
108
|
maxGasPrice?: string | undefined;
|
|
@@ -172,7 +172,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
172
172
|
assetId?: string | undefined;
|
|
173
173
|
}>;
|
|
174
174
|
memo: z.ZodOptional<z.ZodString>;
|
|
175
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
175
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
177
|
type: "TOKEN_TRANSFER";
|
|
178
178
|
token: {
|
|
@@ -183,7 +183,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
183
183
|
};
|
|
184
184
|
amount: string;
|
|
185
185
|
to: string;
|
|
186
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
186
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
187
187
|
memo?: string | undefined;
|
|
188
188
|
gasCondition?: {
|
|
189
189
|
maxGasPrice?: string | undefined;
|
|
@@ -249,14 +249,47 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
249
249
|
isSigner: boolean;
|
|
250
250
|
isWritable: boolean;
|
|
251
251
|
}>, "many">>;
|
|
252
|
-
|
|
252
|
+
preInstructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
253
|
+
programId: z.ZodString;
|
|
254
|
+
data: z.ZodString;
|
|
255
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
256
|
+
pubkey: z.ZodString;
|
|
257
|
+
isSigner: z.ZodBoolean;
|
|
258
|
+
isWritable: z.ZodBoolean;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
pubkey: string;
|
|
261
|
+
isSigner: boolean;
|
|
262
|
+
isWritable: boolean;
|
|
263
|
+
}, {
|
|
264
|
+
pubkey: string;
|
|
265
|
+
isSigner: boolean;
|
|
266
|
+
isWritable: boolean;
|
|
267
|
+
}>, "many">;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
programId: string;
|
|
270
|
+
accounts: {
|
|
271
|
+
pubkey: string;
|
|
272
|
+
isSigner: boolean;
|
|
273
|
+
isWritable: boolean;
|
|
274
|
+
}[];
|
|
275
|
+
data: string;
|
|
276
|
+
}, {
|
|
277
|
+
programId: string;
|
|
278
|
+
accounts: {
|
|
279
|
+
pubkey: string;
|
|
280
|
+
isSigner: boolean;
|
|
281
|
+
isWritable: boolean;
|
|
282
|
+
}[];
|
|
283
|
+
data: string;
|
|
284
|
+
}>, "many">>;
|
|
285
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
253
286
|
actionProvider: z.ZodOptional<z.ZodString>;
|
|
254
287
|
actionName: z.ZodOptional<z.ZodString>;
|
|
255
288
|
}, "strip", z.ZodTypeAny, {
|
|
256
289
|
type: "CONTRACT_CALL";
|
|
257
290
|
to: string;
|
|
258
291
|
value?: string | undefined;
|
|
259
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
292
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
260
293
|
gasCondition?: {
|
|
261
294
|
maxGasPrice?: string | undefined;
|
|
262
295
|
maxPriorityFee?: string | undefined;
|
|
@@ -271,6 +304,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
271
304
|
isSigner: boolean;
|
|
272
305
|
isWritable: boolean;
|
|
273
306
|
}[] | undefined;
|
|
307
|
+
preInstructions?: {
|
|
308
|
+
programId: string;
|
|
309
|
+
accounts: {
|
|
310
|
+
pubkey: string;
|
|
311
|
+
isSigner: boolean;
|
|
312
|
+
isWritable: boolean;
|
|
313
|
+
}[];
|
|
314
|
+
data: string;
|
|
315
|
+
}[] | undefined;
|
|
274
316
|
actionProvider?: string | undefined;
|
|
275
317
|
actionName?: string | undefined;
|
|
276
318
|
}, {
|
|
@@ -292,6 +334,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
292
334
|
isSigner: boolean;
|
|
293
335
|
isWritable: boolean;
|
|
294
336
|
}[] | undefined;
|
|
337
|
+
preInstructions?: {
|
|
338
|
+
programId: string;
|
|
339
|
+
accounts: {
|
|
340
|
+
pubkey: string;
|
|
341
|
+
isSigner: boolean;
|
|
342
|
+
isWritable: boolean;
|
|
343
|
+
}[];
|
|
344
|
+
data: string;
|
|
345
|
+
}[] | undefined;
|
|
295
346
|
actionProvider?: string | undefined;
|
|
296
347
|
actionName?: string | undefined;
|
|
297
348
|
}>, z.ZodObject<{
|
|
@@ -345,7 +396,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
345
396
|
assetId?: string | undefined;
|
|
346
397
|
}>;
|
|
347
398
|
amount: z.ZodString;
|
|
348
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
399
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
349
400
|
nft: z.ZodOptional<z.ZodObject<{
|
|
350
401
|
tokenId: z.ZodString;
|
|
351
402
|
standard: z.ZodEnum<["ERC-721", "ERC-1155", "METAPLEX"]>;
|
|
@@ -366,7 +417,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
366
417
|
};
|
|
367
418
|
amount: string;
|
|
368
419
|
spender: string;
|
|
369
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
420
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
370
421
|
gasCondition?: {
|
|
371
422
|
maxGasPrice?: string | undefined;
|
|
372
423
|
maxPriorityFee?: string | undefined;
|
|
@@ -445,11 +496,11 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
445
496
|
to: z.ZodString;
|
|
446
497
|
amount: z.ZodString;
|
|
447
498
|
memo: z.ZodOptional<z.ZodString>;
|
|
448
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
499
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
449
500
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
450
501
|
amount: string;
|
|
451
502
|
to: string;
|
|
452
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
503
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
453
504
|
memo?: string | undefined;
|
|
454
505
|
gasCondition?: {
|
|
455
506
|
maxGasPrice?: string | undefined;
|
|
@@ -518,7 +569,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
518
569
|
assetId?: string | undefined;
|
|
519
570
|
}>;
|
|
520
571
|
memo: z.ZodOptional<z.ZodString>;
|
|
521
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
572
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
522
573
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
523
574
|
token: {
|
|
524
575
|
symbol: string;
|
|
@@ -528,7 +579,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
528
579
|
};
|
|
529
580
|
amount: string;
|
|
530
581
|
to: string;
|
|
531
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
582
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
532
583
|
memo?: string | undefined;
|
|
533
584
|
gasCondition?: {
|
|
534
585
|
maxGasPrice?: string | undefined;
|
|
@@ -593,13 +644,46 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
593
644
|
isSigner: boolean;
|
|
594
645
|
isWritable: boolean;
|
|
595
646
|
}>, "many">>;
|
|
596
|
-
|
|
647
|
+
preInstructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
|
+
programId: z.ZodString;
|
|
649
|
+
data: z.ZodString;
|
|
650
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
651
|
+
pubkey: z.ZodString;
|
|
652
|
+
isSigner: z.ZodBoolean;
|
|
653
|
+
isWritable: z.ZodBoolean;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
pubkey: string;
|
|
656
|
+
isSigner: boolean;
|
|
657
|
+
isWritable: boolean;
|
|
658
|
+
}, {
|
|
659
|
+
pubkey: string;
|
|
660
|
+
isSigner: boolean;
|
|
661
|
+
isWritable: boolean;
|
|
662
|
+
}>, "many">;
|
|
663
|
+
}, "strip", z.ZodTypeAny, {
|
|
664
|
+
programId: string;
|
|
665
|
+
accounts: {
|
|
666
|
+
pubkey: string;
|
|
667
|
+
isSigner: boolean;
|
|
668
|
+
isWritable: boolean;
|
|
669
|
+
}[];
|
|
670
|
+
data: string;
|
|
671
|
+
}, {
|
|
672
|
+
programId: string;
|
|
673
|
+
accounts: {
|
|
674
|
+
pubkey: string;
|
|
675
|
+
isSigner: boolean;
|
|
676
|
+
isWritable: boolean;
|
|
677
|
+
}[];
|
|
678
|
+
data: string;
|
|
679
|
+
}>, "many">>;
|
|
680
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
597
681
|
actionProvider: z.ZodOptional<z.ZodString>;
|
|
598
682
|
actionName: z.ZodOptional<z.ZodString>;
|
|
599
683
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
600
684
|
to: string;
|
|
601
685
|
value?: string | undefined;
|
|
602
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
686
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
603
687
|
gasCondition?: {
|
|
604
688
|
maxGasPrice?: string | undefined;
|
|
605
689
|
maxPriorityFee?: string | undefined;
|
|
@@ -614,6 +698,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
614
698
|
isSigner: boolean;
|
|
615
699
|
isWritable: boolean;
|
|
616
700
|
}[] | undefined;
|
|
701
|
+
preInstructions?: {
|
|
702
|
+
programId: string;
|
|
703
|
+
accounts: {
|
|
704
|
+
pubkey: string;
|
|
705
|
+
isSigner: boolean;
|
|
706
|
+
isWritable: boolean;
|
|
707
|
+
}[];
|
|
708
|
+
data: string;
|
|
709
|
+
}[] | undefined;
|
|
617
710
|
actionProvider?: string | undefined;
|
|
618
711
|
actionName?: string | undefined;
|
|
619
712
|
}, {
|
|
@@ -634,6 +727,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
634
727
|
isSigner: boolean;
|
|
635
728
|
isWritable: boolean;
|
|
636
729
|
}[] | undefined;
|
|
730
|
+
preInstructions?: {
|
|
731
|
+
programId: string;
|
|
732
|
+
accounts: {
|
|
733
|
+
pubkey: string;
|
|
734
|
+
isSigner: boolean;
|
|
735
|
+
isWritable: boolean;
|
|
736
|
+
}[];
|
|
737
|
+
data: string;
|
|
738
|
+
}[] | undefined;
|
|
637
739
|
actionProvider?: string | undefined;
|
|
638
740
|
actionName?: string | undefined;
|
|
639
741
|
}>, z.ZodObject<Omit<{
|
|
@@ -687,7 +789,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
687
789
|
assetId?: string | undefined;
|
|
688
790
|
}>;
|
|
689
791
|
amount: z.ZodString;
|
|
690
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
792
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
691
793
|
nft: z.ZodOptional<z.ZodObject<{
|
|
692
794
|
tokenId: z.ZodString;
|
|
693
795
|
standard: z.ZodEnum<["ERC-721", "ERC-1155", "METAPLEX"]>;
|
|
@@ -707,7 +809,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
707
809
|
};
|
|
708
810
|
amount: string;
|
|
709
811
|
spender: string;
|
|
710
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
812
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
711
813
|
gasCondition?: {
|
|
712
814
|
maxGasPrice?: string | undefined;
|
|
713
815
|
maxPriorityFee?: string | undefined;
|
|
@@ -737,13 +839,13 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
737
839
|
standard: "ERC-721" | "ERC-1155" | "METAPLEX";
|
|
738
840
|
} | undefined;
|
|
739
841
|
}>]>, "many">;
|
|
740
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
842
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
741
843
|
}, "strip", z.ZodTypeAny, {
|
|
742
844
|
type: "BATCH";
|
|
743
845
|
instructions: ({
|
|
744
846
|
amount: string;
|
|
745
847
|
to: string;
|
|
746
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
848
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
747
849
|
memo?: string | undefined;
|
|
748
850
|
gasCondition?: {
|
|
749
851
|
maxGasPrice?: string | undefined;
|
|
@@ -759,7 +861,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
759
861
|
};
|
|
760
862
|
amount: string;
|
|
761
863
|
to: string;
|
|
762
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
864
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
763
865
|
memo?: string | undefined;
|
|
764
866
|
gasCondition?: {
|
|
765
867
|
maxGasPrice?: string | undefined;
|
|
@@ -769,7 +871,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
769
871
|
} | {
|
|
770
872
|
to: string;
|
|
771
873
|
value?: string | undefined;
|
|
772
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
874
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
773
875
|
gasCondition?: {
|
|
774
876
|
maxGasPrice?: string | undefined;
|
|
775
877
|
maxPriorityFee?: string | undefined;
|
|
@@ -784,6 +886,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
784
886
|
isSigner: boolean;
|
|
785
887
|
isWritable: boolean;
|
|
786
888
|
}[] | undefined;
|
|
889
|
+
preInstructions?: {
|
|
890
|
+
programId: string;
|
|
891
|
+
accounts: {
|
|
892
|
+
pubkey: string;
|
|
893
|
+
isSigner: boolean;
|
|
894
|
+
isWritable: boolean;
|
|
895
|
+
}[];
|
|
896
|
+
data: string;
|
|
897
|
+
}[] | undefined;
|
|
787
898
|
actionProvider?: string | undefined;
|
|
788
899
|
actionName?: string | undefined;
|
|
789
900
|
} | {
|
|
@@ -795,7 +906,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
795
906
|
};
|
|
796
907
|
amount: string;
|
|
797
908
|
spender: string;
|
|
798
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
909
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
799
910
|
gasCondition?: {
|
|
800
911
|
maxGasPrice?: string | undefined;
|
|
801
912
|
maxPriorityFee?: string | undefined;
|
|
@@ -806,7 +917,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
806
917
|
standard: "ERC-721" | "ERC-1155" | "METAPLEX";
|
|
807
918
|
} | undefined;
|
|
808
919
|
})[];
|
|
809
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
920
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
810
921
|
gasCondition?: {
|
|
811
922
|
maxGasPrice?: string | undefined;
|
|
812
923
|
maxPriorityFee?: string | undefined;
|
|
@@ -858,6 +969,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
858
969
|
isSigner: boolean;
|
|
859
970
|
isWritable: boolean;
|
|
860
971
|
}[] | undefined;
|
|
972
|
+
preInstructions?: {
|
|
973
|
+
programId: string;
|
|
974
|
+
accounts: {
|
|
975
|
+
pubkey: string;
|
|
976
|
+
isSigner: boolean;
|
|
977
|
+
isWritable: boolean;
|
|
978
|
+
}[];
|
|
979
|
+
data: string;
|
|
980
|
+
}[] | undefined;
|
|
861
981
|
actionProvider?: string | undefined;
|
|
862
982
|
actionName?: string | undefined;
|
|
863
983
|
} | {
|
|
@@ -927,7 +1047,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
927
1047
|
assetId?: string | undefined;
|
|
928
1048
|
}>;
|
|
929
1049
|
amount: z.ZodDefault<z.ZodString>;
|
|
930
|
-
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia", unknown>>;
|
|
1050
|
+
network: z.ZodOptional<z.ZodEffects<z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>, "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet", unknown>>;
|
|
931
1051
|
}, "strip", z.ZodTypeAny, {
|
|
932
1052
|
type: "NFT_TRANSFER";
|
|
933
1053
|
token: {
|
|
@@ -938,7 +1058,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
938
1058
|
};
|
|
939
1059
|
amount: string;
|
|
940
1060
|
to: string;
|
|
941
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1061
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
942
1062
|
gasCondition?: {
|
|
943
1063
|
maxGasPrice?: string | undefined;
|
|
944
1064
|
maxPriorityFee?: string | undefined;
|
|
@@ -961,14 +1081,14 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
961
1081
|
timeout?: number | undefined;
|
|
962
1082
|
} | undefined;
|
|
963
1083
|
}>]>;
|
|
964
|
-
network: z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>;
|
|
1084
|
+
network: z.ZodEnum<["solana-mainnet", "solana-devnet", "solana-testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia", "hyperevm-mainnet", "hyperevm-testnet"]>;
|
|
965
1085
|
}, "strip", z.ZodTypeAny, {
|
|
966
|
-
network: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia";
|
|
1086
|
+
network: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet";
|
|
967
1087
|
request: {
|
|
968
1088
|
type: "TRANSFER";
|
|
969
1089
|
amount: string;
|
|
970
1090
|
to: string;
|
|
971
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1091
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
972
1092
|
memo?: string | undefined;
|
|
973
1093
|
gasCondition?: {
|
|
974
1094
|
maxGasPrice?: string | undefined;
|
|
@@ -985,7 +1105,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
985
1105
|
};
|
|
986
1106
|
amount: string;
|
|
987
1107
|
to: string;
|
|
988
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1108
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
989
1109
|
memo?: string | undefined;
|
|
990
1110
|
gasCondition?: {
|
|
991
1111
|
maxGasPrice?: string | undefined;
|
|
@@ -996,7 +1116,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
996
1116
|
type: "CONTRACT_CALL";
|
|
997
1117
|
to: string;
|
|
998
1118
|
value?: string | undefined;
|
|
999
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1119
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1000
1120
|
gasCondition?: {
|
|
1001
1121
|
maxGasPrice?: string | undefined;
|
|
1002
1122
|
maxPriorityFee?: string | undefined;
|
|
@@ -1011,6 +1131,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1011
1131
|
isSigner: boolean;
|
|
1012
1132
|
isWritable: boolean;
|
|
1013
1133
|
}[] | undefined;
|
|
1134
|
+
preInstructions?: {
|
|
1135
|
+
programId: string;
|
|
1136
|
+
accounts: {
|
|
1137
|
+
pubkey: string;
|
|
1138
|
+
isSigner: boolean;
|
|
1139
|
+
isWritable: boolean;
|
|
1140
|
+
}[];
|
|
1141
|
+
data: string;
|
|
1142
|
+
}[] | undefined;
|
|
1014
1143
|
actionProvider?: string | undefined;
|
|
1015
1144
|
actionName?: string | undefined;
|
|
1016
1145
|
} | {
|
|
@@ -1023,7 +1152,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1023
1152
|
};
|
|
1024
1153
|
amount: string;
|
|
1025
1154
|
spender: string;
|
|
1026
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1155
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1027
1156
|
gasCondition?: {
|
|
1028
1157
|
maxGasPrice?: string | undefined;
|
|
1029
1158
|
maxPriorityFee?: string | undefined;
|
|
@@ -1038,7 +1167,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1038
1167
|
instructions: ({
|
|
1039
1168
|
amount: string;
|
|
1040
1169
|
to: string;
|
|
1041
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1170
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1042
1171
|
memo?: string | undefined;
|
|
1043
1172
|
gasCondition?: {
|
|
1044
1173
|
maxGasPrice?: string | undefined;
|
|
@@ -1054,7 +1183,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1054
1183
|
};
|
|
1055
1184
|
amount: string;
|
|
1056
1185
|
to: string;
|
|
1057
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1186
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1058
1187
|
memo?: string | undefined;
|
|
1059
1188
|
gasCondition?: {
|
|
1060
1189
|
maxGasPrice?: string | undefined;
|
|
@@ -1064,7 +1193,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1064
1193
|
} | {
|
|
1065
1194
|
to: string;
|
|
1066
1195
|
value?: string | undefined;
|
|
1067
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1196
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1068
1197
|
gasCondition?: {
|
|
1069
1198
|
maxGasPrice?: string | undefined;
|
|
1070
1199
|
maxPriorityFee?: string | undefined;
|
|
@@ -1079,6 +1208,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1079
1208
|
isSigner: boolean;
|
|
1080
1209
|
isWritable: boolean;
|
|
1081
1210
|
}[] | undefined;
|
|
1211
|
+
preInstructions?: {
|
|
1212
|
+
programId: string;
|
|
1213
|
+
accounts: {
|
|
1214
|
+
pubkey: string;
|
|
1215
|
+
isSigner: boolean;
|
|
1216
|
+
isWritable: boolean;
|
|
1217
|
+
}[];
|
|
1218
|
+
data: string;
|
|
1219
|
+
}[] | undefined;
|
|
1082
1220
|
actionProvider?: string | undefined;
|
|
1083
1221
|
actionName?: string | undefined;
|
|
1084
1222
|
} | {
|
|
@@ -1090,7 +1228,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1090
1228
|
};
|
|
1091
1229
|
amount: string;
|
|
1092
1230
|
spender: string;
|
|
1093
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1231
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1094
1232
|
gasCondition?: {
|
|
1095
1233
|
maxGasPrice?: string | undefined;
|
|
1096
1234
|
maxPriorityFee?: string | undefined;
|
|
@@ -1101,7 +1239,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1101
1239
|
standard: "ERC-721" | "ERC-1155" | "METAPLEX";
|
|
1102
1240
|
} | undefined;
|
|
1103
1241
|
})[];
|
|
1104
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1242
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1105
1243
|
gasCondition?: {
|
|
1106
1244
|
maxGasPrice?: string | undefined;
|
|
1107
1245
|
maxPriorityFee?: string | undefined;
|
|
@@ -1117,7 +1255,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1117
1255
|
};
|
|
1118
1256
|
amount: string;
|
|
1119
1257
|
to: string;
|
|
1120
|
-
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
|
|
1258
|
+
network?: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet" | undefined;
|
|
1121
1259
|
gasCondition?: {
|
|
1122
1260
|
maxGasPrice?: string | undefined;
|
|
1123
1261
|
maxPriorityFee?: string | undefined;
|
|
@@ -1125,7 +1263,7 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1125
1263
|
} | undefined;
|
|
1126
1264
|
};
|
|
1127
1265
|
}, {
|
|
1128
|
-
network: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia";
|
|
1266
|
+
network: "solana-mainnet" | "solana-devnet" | "solana-testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | "hyperevm-mainnet" | "hyperevm-testnet";
|
|
1129
1267
|
request: {
|
|
1130
1268
|
type: "TRANSFER";
|
|
1131
1269
|
amount: string;
|
|
@@ -1173,6 +1311,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1173
1311
|
isSigner: boolean;
|
|
1174
1312
|
isWritable: boolean;
|
|
1175
1313
|
}[] | undefined;
|
|
1314
|
+
preInstructions?: {
|
|
1315
|
+
programId: string;
|
|
1316
|
+
accounts: {
|
|
1317
|
+
pubkey: string;
|
|
1318
|
+
isSigner: boolean;
|
|
1319
|
+
isWritable: boolean;
|
|
1320
|
+
}[];
|
|
1321
|
+
data: string;
|
|
1322
|
+
}[] | undefined;
|
|
1176
1323
|
actionProvider?: string | undefined;
|
|
1177
1324
|
actionName?: string | undefined;
|
|
1178
1325
|
} | {
|
|
@@ -1241,6 +1388,15 @@ export declare const UserOpBuildRequestSchema: z.ZodObject<{
|
|
|
1241
1388
|
isSigner: boolean;
|
|
1242
1389
|
isWritable: boolean;
|
|
1243
1390
|
}[] | undefined;
|
|
1391
|
+
preInstructions?: {
|
|
1392
|
+
programId: string;
|
|
1393
|
+
accounts: {
|
|
1394
|
+
pubkey: string;
|
|
1395
|
+
isSigner: boolean;
|
|
1396
|
+
isWritable: boolean;
|
|
1397
|
+
}[];
|
|
1398
|
+
data: string;
|
|
1399
|
+
}[] | undefined;
|
|
1244
1400
|
actionProvider?: string | undefined;
|
|
1245
1401
|
actionName?: string | undefined;
|
|
1246
1402
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userop.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/userop.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMtE;;;GAGG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"userop.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/userop.schema.ts"],"names":[],"mappings":"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"}
|