@waiaas/core 2.11.0-rc → 2.11.0-rc.13
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/caip/asset-resolve.d.ts +39 -0
- package/dist/caip/asset-resolve.d.ts.map +1 -0
- package/dist/caip/asset-resolve.js +33 -0
- package/dist/caip/asset-resolve.js.map +1 -0
- package/dist/caip/index.d.ts +2 -0
- package/dist/caip/index.d.ts.map +1 -1
- package/dist/caip/index.js +4 -0
- package/dist/caip/index.js.map +1 -1
- package/dist/caip/response-enrichment.d.ts +70 -0
- package/dist/caip/response-enrichment.d.ts.map +1 -0
- package/dist/caip/response-enrichment.js +132 -0
- package/dist/caip/response-enrichment.js.map +1 -0
- package/dist/enums/chain.d.ts.map +1 -1
- package/dist/enums/chain.js +8 -0
- package/dist/enums/chain.js.map +1 -1
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +1 -0
- 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 +6 -0
- package/dist/enums/notification.js.map +1 -1
- package/dist/enums/policy.d.ts +2 -2
- package/dist/enums/policy.d.ts.map +1 -1
- package/dist/enums/policy.js +2 -0
- package/dist/enums/policy.js.map +1 -1
- package/dist/enums/signing-scheme.d.ts +16 -0
- package/dist/enums/signing-scheme.d.ts.map +1 -0
- package/dist/enums/signing-scheme.js +22 -0
- package/dist/enums/signing-scheme.js.map +1 -0
- package/dist/enums/transaction.d.ts +2 -2
- package/dist/enums/transaction.d.ts.map +1 -1
- package/dist/enums/transaction.js +1 -0
- package/dist/enums/transaction.js.map +1 -1
- package/dist/erc8128/types.d.ts +6 -6
- package/dist/errors/error-codes.d.ts +45 -2
- package/dist/errors/error-codes.d.ts.map +1 -1
- package/dist/errors/error-codes.js +46 -1
- package/dist/errors/error-codes.js.map +1 -1
- package/dist/events/event-bus.d.ts +4 -0
- package/dist/events/event-bus.d.ts.map +1 -1
- package/dist/events/event-bus.js +7 -0
- package/dist/events/event-bus.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +13 -0
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +13 -0
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/interfaces/action-provider.types.d.ts +57 -12
- package/dist/interfaces/action-provider.types.d.ts.map +1 -1
- package/dist/interfaces/action-provider.types.js +5 -1
- package/dist/interfaces/action-provider.types.js.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 +1 -1
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/nft-indexer.types.d.ts +4 -4
- package/dist/interfaces/perp-provider.types.d.ts +2 -2
- package/dist/interfaces/x402.types.d.ts +6 -6
- package/dist/schemas/audit.schema.d.ts +13 -13
- package/dist/schemas/audit.schema.d.ts.map +1 -1
- package/dist/schemas/audit.schema.js +3 -1
- package/dist/schemas/audit.schema.js.map +1 -1
- package/dist/schemas/credential.schema.d.ts +102 -0
- package/dist/schemas/credential.schema.d.ts.map +1 -0
- package/dist/schemas/credential.schema.js +54 -0
- package/dist/schemas/credential.schema.js.map +1 -0
- package/dist/schemas/incoming-transaction.schema.d.ts +2 -2
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/policy.schema.d.ts +14 -14
- package/dist/schemas/resolved-action.schema.d.ts +718 -0
- package/dist/schemas/resolved-action.schema.d.ts.map +1 -0
- package/dist/schemas/resolved-action.schema.js +136 -0
- package/dist/schemas/resolved-action.schema.js.map +1 -0
- package/dist/schemas/signing-protocol.d.ts +2 -2
- package/dist/schemas/signing-protocol.d.ts.map +1 -1
- package/dist/schemas/signing-protocol.js +12 -0
- package/dist/schemas/signing-protocol.js.map +1 -1
- package/dist/schemas/simulation.schema.d.ts +6 -6
- package/dist/schemas/transaction.schema.d.ts +432 -277
- package/dist/schemas/transaction.schema.d.ts.map +1 -1
- package/dist/schemas/transaction.schema.js +74 -25
- package/dist/schemas/transaction.schema.js.map +1 -1
- package/dist/schemas/userop.schema.d.ts +273 -166
- 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 +2 -2
|
@@ -29,13 +29,13 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
29
29
|
id: z.ZodString;
|
|
30
30
|
walletId: z.ZodString;
|
|
31
31
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
32
|
-
type: z.ZodEnum<["TRANSFER", "TOKEN_TRANSFER", "CONTRACT_CALL", "APPROVE", "BATCH", "NFT_TRANSFER", "SIGN", "X402_PAYMENT"]>;
|
|
32
|
+
type: z.ZodEnum<["TRANSFER", "TOKEN_TRANSFER", "CONTRACT_CALL", "APPROVE", "BATCH", "NFT_TRANSFER", "SIGN", "X402_PAYMENT", "CONTRACT_DEPLOY"]>;
|
|
33
33
|
status: z.ZodEnum<["PENDING", "QUEUED", "EXECUTING", "SUBMITTED", "CONFIRMED", "FAILED", "CANCELLED", "EXPIRED", "PARTIAL_FAILURE", "SIGNED", "GAS_WAITING"]>;
|
|
34
34
|
tier: z.ZodNullable<z.ZodEnum<["INSTANT", "NOTIFY", "DELAY", "APPROVAL"]>>;
|
|
35
35
|
chain: z.ZodEnum<["solana", "ethereum"]>;
|
|
36
36
|
network: z.ZodNullable<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"]>>;
|
|
37
37
|
fromAddress: z.ZodString;
|
|
38
|
-
toAddress: z.ZodString
|
|
38
|
+
toAddress: z.ZodNullable<z.ZodString>;
|
|
39
39
|
amount: z.ZodString;
|
|
40
40
|
txHash: z.ZodNullable<z.ZodString>;
|
|
41
41
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -43,35 +43,35 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
43
43
|
createdAt: z.ZodNumber;
|
|
44
44
|
updatedAt: z.ZodNumber;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
|
|
46
|
+
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" | null;
|
|
47
|
+
type: "TRANSFER" | "TOKEN_TRANSFER" | "CONTRACT_CALL" | "APPROVE" | "BATCH" | "NFT_TRANSFER" | "SIGN" | "X402_PAYMENT" | "CONTRACT_DEPLOY";
|
|
47
48
|
status: "PENDING" | "QUEUED" | "EXECUTING" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "CANCELLED" | "EXPIRED" | "PARTIAL_FAILURE" | "SIGNED" | "GAS_WAITING";
|
|
48
49
|
id: string;
|
|
49
50
|
chain: "solana" | "ethereum";
|
|
50
51
|
createdAt: number;
|
|
51
52
|
updatedAt: number;
|
|
52
53
|
walletId: string;
|
|
53
|
-
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" | null;
|
|
54
54
|
sessionId: string | null;
|
|
55
55
|
tier: "INSTANT" | "NOTIFY" | "DELAY" | "APPROVAL" | null;
|
|
56
56
|
fromAddress: string;
|
|
57
|
-
toAddress: string;
|
|
57
|
+
toAddress: string | null;
|
|
58
58
|
amount: string;
|
|
59
59
|
txHash: string | null;
|
|
60
60
|
errorMessage: string | null;
|
|
61
61
|
metadata: Record<string, unknown> | null;
|
|
62
62
|
}, {
|
|
63
|
-
|
|
63
|
+
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" | null;
|
|
64
|
+
type: "TRANSFER" | "TOKEN_TRANSFER" | "CONTRACT_CALL" | "APPROVE" | "BATCH" | "NFT_TRANSFER" | "SIGN" | "X402_PAYMENT" | "CONTRACT_DEPLOY";
|
|
64
65
|
status: "PENDING" | "QUEUED" | "EXECUTING" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "CANCELLED" | "EXPIRED" | "PARTIAL_FAILURE" | "SIGNED" | "GAS_WAITING";
|
|
65
66
|
id: string;
|
|
66
67
|
chain: "solana" | "ethereum";
|
|
67
68
|
createdAt: number;
|
|
68
69
|
updatedAt: number;
|
|
69
70
|
walletId: string;
|
|
70
|
-
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" | null;
|
|
71
71
|
sessionId: string | null;
|
|
72
72
|
tier: "INSTANT" | "NOTIFY" | "DELAY" | "APPROVAL" | null;
|
|
73
73
|
fromAddress: string;
|
|
74
|
-
toAddress: string;
|
|
74
|
+
toAddress: string | null;
|
|
75
75
|
amount: string;
|
|
76
76
|
txHash: string | null;
|
|
77
77
|
errorMessage: string | null;
|
|
@@ -120,15 +120,17 @@ export declare const TransferRequestSchema: z.ZodObject<{
|
|
|
120
120
|
}>>;
|
|
121
121
|
type: z.ZodLiteral<"TRANSFER">;
|
|
122
122
|
to: z.ZodString;
|
|
123
|
-
amount: z.ZodString
|
|
123
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
124
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
124
125
|
memo: z.ZodOptional<z.ZodString>;
|
|
125
126
|
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>>;
|
|
126
127
|
}, "strip", z.ZodTypeAny, {
|
|
127
128
|
type: "TRANSFER";
|
|
128
|
-
amount: string;
|
|
129
129
|
to: string;
|
|
130
130
|
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;
|
|
131
|
+
amount?: string | undefined;
|
|
131
132
|
memo?: string | undefined;
|
|
133
|
+
humanAmount?: string | undefined;
|
|
132
134
|
gasCondition?: {
|
|
133
135
|
maxGasPrice?: string | undefined;
|
|
134
136
|
maxPriorityFee?: string | undefined;
|
|
@@ -136,10 +138,11 @@ export declare const TransferRequestSchema: z.ZodObject<{
|
|
|
136
138
|
} | undefined;
|
|
137
139
|
}, {
|
|
138
140
|
type: "TRANSFER";
|
|
139
|
-
amount: string;
|
|
140
141
|
to: string;
|
|
141
142
|
network?: unknown;
|
|
143
|
+
amount?: string | undefined;
|
|
142
144
|
memo?: string | undefined;
|
|
145
|
+
humanAmount?: string | undefined;
|
|
143
146
|
gasCondition?: {
|
|
144
147
|
maxGasPrice?: string | undefined;
|
|
145
148
|
maxPriorityFee?: string | undefined;
|
|
@@ -175,47 +178,49 @@ export declare const TokenTransferRequestSchema: z.ZodObject<{
|
|
|
175
178
|
}>>;
|
|
176
179
|
type: z.ZodLiteral<"TOKEN_TRANSFER">;
|
|
177
180
|
to: z.ZodString;
|
|
178
|
-
amount: z.ZodString
|
|
181
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
182
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
179
183
|
token: z.ZodEffects<z.ZodObject<{
|
|
180
|
-
address: z.ZodString
|
|
181
|
-
decimals: z.ZodNumber
|
|
182
|
-
symbol: z.ZodString
|
|
184
|
+
address: z.ZodOptional<z.ZodString>;
|
|
185
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
183
187
|
assetId: z.ZodOptional<z.ZodString>;
|
|
184
188
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
symbol
|
|
186
|
-
address: string;
|
|
187
|
-
decimals: number;
|
|
189
|
+
symbol?: string | undefined;
|
|
188
190
|
assetId?: string | undefined;
|
|
191
|
+
address?: string | undefined;
|
|
192
|
+
decimals?: number | undefined;
|
|
189
193
|
}, {
|
|
190
|
-
symbol
|
|
191
|
-
address: string;
|
|
192
|
-
decimals: number;
|
|
194
|
+
symbol?: string | undefined;
|
|
193
195
|
assetId?: string | undefined;
|
|
196
|
+
address?: string | undefined;
|
|
197
|
+
decimals?: number | undefined;
|
|
194
198
|
}>, {
|
|
195
|
-
symbol
|
|
196
|
-
address: string;
|
|
197
|
-
decimals: number;
|
|
199
|
+
symbol?: string | undefined;
|
|
198
200
|
assetId?: string | undefined;
|
|
201
|
+
address?: string | undefined;
|
|
202
|
+
decimals?: number | undefined;
|
|
199
203
|
}, {
|
|
200
|
-
symbol
|
|
201
|
-
address: string;
|
|
202
|
-
decimals: number;
|
|
204
|
+
symbol?: string | undefined;
|
|
203
205
|
assetId?: string | undefined;
|
|
206
|
+
address?: string | undefined;
|
|
207
|
+
decimals?: number | undefined;
|
|
204
208
|
}>;
|
|
205
209
|
memo: z.ZodOptional<z.ZodString>;
|
|
206
210
|
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>>;
|
|
207
211
|
}, "strip", z.ZodTypeAny, {
|
|
208
212
|
type: "TOKEN_TRANSFER";
|
|
209
213
|
token: {
|
|
210
|
-
symbol
|
|
211
|
-
address: string;
|
|
212
|
-
decimals: number;
|
|
214
|
+
symbol?: string | undefined;
|
|
213
215
|
assetId?: string | undefined;
|
|
216
|
+
address?: string | undefined;
|
|
217
|
+
decimals?: number | undefined;
|
|
214
218
|
};
|
|
215
|
-
amount: string;
|
|
216
219
|
to: string;
|
|
217
220
|
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;
|
|
221
|
+
amount?: string | undefined;
|
|
218
222
|
memo?: string | undefined;
|
|
223
|
+
humanAmount?: string | undefined;
|
|
219
224
|
gasCondition?: {
|
|
220
225
|
maxGasPrice?: string | undefined;
|
|
221
226
|
maxPriorityFee?: string | undefined;
|
|
@@ -224,15 +229,16 @@ export declare const TokenTransferRequestSchema: z.ZodObject<{
|
|
|
224
229
|
}, {
|
|
225
230
|
type: "TOKEN_TRANSFER";
|
|
226
231
|
token: {
|
|
227
|
-
symbol
|
|
228
|
-
address: string;
|
|
229
|
-
decimals: number;
|
|
232
|
+
symbol?: string | undefined;
|
|
230
233
|
assetId?: string | undefined;
|
|
234
|
+
address?: string | undefined;
|
|
235
|
+
decimals?: number | undefined;
|
|
231
236
|
};
|
|
232
|
-
amount: string;
|
|
233
237
|
to: string;
|
|
234
238
|
network?: unknown;
|
|
239
|
+
amount?: string | undefined;
|
|
235
240
|
memo?: string | undefined;
|
|
241
|
+
humanAmount?: string | undefined;
|
|
236
242
|
gasCondition?: {
|
|
237
243
|
maxGasPrice?: string | undefined;
|
|
238
244
|
maxPriorityFee?: string | undefined;
|
|
@@ -331,8 +337,8 @@ export declare const ContractCallRequestSchema: z.ZodObject<{
|
|
|
331
337
|
}, "strip", z.ZodTypeAny, {
|
|
332
338
|
type: "CONTRACT_CALL";
|
|
333
339
|
to: string;
|
|
334
|
-
value?: string | undefined;
|
|
335
340
|
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;
|
|
341
|
+
value?: string | undefined;
|
|
336
342
|
gasCondition?: {
|
|
337
343
|
maxGasPrice?: string | undefined;
|
|
338
344
|
maxPriorityFee?: string | undefined;
|
|
@@ -361,8 +367,8 @@ export declare const ContractCallRequestSchema: z.ZodObject<{
|
|
|
361
367
|
}, {
|
|
362
368
|
type: "CONTRACT_CALL";
|
|
363
369
|
to: string;
|
|
364
|
-
value?: string | undefined;
|
|
365
370
|
network?: unknown;
|
|
371
|
+
value?: string | undefined;
|
|
366
372
|
gasCondition?: {
|
|
367
373
|
maxGasPrice?: string | undefined;
|
|
368
374
|
maxPriorityFee?: string | undefined;
|
|
@@ -440,32 +446,33 @@ export declare const ApproveRequestSchema: z.ZodObject<{
|
|
|
440
446
|
type: z.ZodLiteral<"APPROVE">;
|
|
441
447
|
spender: z.ZodString;
|
|
442
448
|
token: z.ZodEffects<z.ZodObject<{
|
|
443
|
-
address: z.ZodString
|
|
444
|
-
decimals: z.ZodNumber
|
|
445
|
-
symbol: z.ZodString
|
|
449
|
+
address: z.ZodOptional<z.ZodString>;
|
|
450
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
446
452
|
assetId: z.ZodOptional<z.ZodString>;
|
|
447
453
|
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
symbol
|
|
449
|
-
address: string;
|
|
450
|
-
decimals: number;
|
|
454
|
+
symbol?: string | undefined;
|
|
451
455
|
assetId?: string | undefined;
|
|
456
|
+
address?: string | undefined;
|
|
457
|
+
decimals?: number | undefined;
|
|
452
458
|
}, {
|
|
453
|
-
symbol
|
|
454
|
-
address: string;
|
|
455
|
-
decimals: number;
|
|
459
|
+
symbol?: string | undefined;
|
|
456
460
|
assetId?: string | undefined;
|
|
461
|
+
address?: string | undefined;
|
|
462
|
+
decimals?: number | undefined;
|
|
457
463
|
}>, {
|
|
458
|
-
symbol
|
|
459
|
-
address: string;
|
|
460
|
-
decimals: number;
|
|
464
|
+
symbol?: string | undefined;
|
|
461
465
|
assetId?: string | undefined;
|
|
466
|
+
address?: string | undefined;
|
|
467
|
+
decimals?: number | undefined;
|
|
462
468
|
}, {
|
|
463
|
-
symbol
|
|
464
|
-
address: string;
|
|
465
|
-
decimals: number;
|
|
469
|
+
symbol?: string | undefined;
|
|
466
470
|
assetId?: string | undefined;
|
|
471
|
+
address?: string | undefined;
|
|
472
|
+
decimals?: number | undefined;
|
|
467
473
|
}>;
|
|
468
|
-
amount: z.ZodString
|
|
474
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
475
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
469
476
|
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>>;
|
|
470
477
|
/** Optional NFT approval info. When present, this is an NFT approval (not ERC-20). */
|
|
471
478
|
nft: z.ZodOptional<z.ZodObject<{
|
|
@@ -481,14 +488,15 @@ export declare const ApproveRequestSchema: z.ZodObject<{
|
|
|
481
488
|
}, "strip", z.ZodTypeAny, {
|
|
482
489
|
type: "APPROVE";
|
|
483
490
|
token: {
|
|
484
|
-
symbol
|
|
485
|
-
address: string;
|
|
486
|
-
decimals: number;
|
|
491
|
+
symbol?: string | undefined;
|
|
487
492
|
assetId?: string | undefined;
|
|
493
|
+
address?: string | undefined;
|
|
494
|
+
decimals?: number | undefined;
|
|
488
495
|
};
|
|
489
|
-
amount: string;
|
|
490
496
|
spender: string;
|
|
491
497
|
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;
|
|
498
|
+
amount?: string | undefined;
|
|
499
|
+
humanAmount?: string | undefined;
|
|
492
500
|
gasCondition?: {
|
|
493
501
|
maxGasPrice?: string | undefined;
|
|
494
502
|
maxPriorityFee?: string | undefined;
|
|
@@ -501,14 +509,15 @@ export declare const ApproveRequestSchema: z.ZodObject<{
|
|
|
501
509
|
}, {
|
|
502
510
|
type: "APPROVE";
|
|
503
511
|
token: {
|
|
504
|
-
symbol
|
|
505
|
-
address: string;
|
|
506
|
-
decimals: number;
|
|
512
|
+
symbol?: string | undefined;
|
|
507
513
|
assetId?: string | undefined;
|
|
514
|
+
address?: string | undefined;
|
|
515
|
+
decimals?: number | undefined;
|
|
508
516
|
};
|
|
509
|
-
amount: string;
|
|
510
517
|
spender: string;
|
|
511
518
|
network?: unknown;
|
|
519
|
+
amount?: string | undefined;
|
|
520
|
+
humanAmount?: string | undefined;
|
|
512
521
|
gasCondition?: {
|
|
513
522
|
maxGasPrice?: string | undefined;
|
|
514
523
|
maxPriorityFee?: string | undefined;
|
|
@@ -574,24 +583,27 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
574
583
|
}>>;
|
|
575
584
|
type: z.ZodLiteral<"TRANSFER">;
|
|
576
585
|
to: z.ZodString;
|
|
577
|
-
amount: z.ZodString
|
|
586
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
587
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
578
588
|
memo: z.ZodOptional<z.ZodString>;
|
|
579
589
|
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>>;
|
|
580
590
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
581
|
-
amount: string;
|
|
582
591
|
to: string;
|
|
583
592
|
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;
|
|
593
|
+
amount?: string | undefined;
|
|
584
594
|
memo?: string | undefined;
|
|
595
|
+
humanAmount?: string | undefined;
|
|
585
596
|
gasCondition?: {
|
|
586
597
|
maxGasPrice?: string | undefined;
|
|
587
598
|
maxPriorityFee?: string | undefined;
|
|
588
599
|
timeout?: number | undefined;
|
|
589
600
|
} | undefined;
|
|
590
601
|
}, {
|
|
591
|
-
amount: string;
|
|
592
602
|
to: string;
|
|
593
603
|
network?: unknown;
|
|
604
|
+
amount?: string | undefined;
|
|
594
605
|
memo?: string | undefined;
|
|
606
|
+
humanAmount?: string | undefined;
|
|
595
607
|
gasCondition?: {
|
|
596
608
|
maxGasPrice?: string | undefined;
|
|
597
609
|
maxPriorityFee?: string | undefined;
|
|
@@ -624,46 +636,48 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
624
636
|
}>>;
|
|
625
637
|
type: z.ZodLiteral<"TOKEN_TRANSFER">;
|
|
626
638
|
to: z.ZodString;
|
|
627
|
-
amount: z.ZodString
|
|
639
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
640
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
628
641
|
token: z.ZodEffects<z.ZodObject<{
|
|
629
|
-
address: z.ZodString
|
|
630
|
-
decimals: z.ZodNumber
|
|
631
|
-
symbol: z.ZodString
|
|
642
|
+
address: z.ZodOptional<z.ZodString>;
|
|
643
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
644
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
632
645
|
assetId: z.ZodOptional<z.ZodString>;
|
|
633
646
|
}, "strip", z.ZodTypeAny, {
|
|
634
|
-
symbol
|
|
635
|
-
address: string;
|
|
636
|
-
decimals: number;
|
|
647
|
+
symbol?: string | undefined;
|
|
637
648
|
assetId?: string | undefined;
|
|
649
|
+
address?: string | undefined;
|
|
650
|
+
decimals?: number | undefined;
|
|
638
651
|
}, {
|
|
639
|
-
symbol
|
|
640
|
-
address: string;
|
|
641
|
-
decimals: number;
|
|
652
|
+
symbol?: string | undefined;
|
|
642
653
|
assetId?: string | undefined;
|
|
654
|
+
address?: string | undefined;
|
|
655
|
+
decimals?: number | undefined;
|
|
643
656
|
}>, {
|
|
644
|
-
symbol
|
|
645
|
-
address: string;
|
|
646
|
-
decimals: number;
|
|
657
|
+
symbol?: string | undefined;
|
|
647
658
|
assetId?: string | undefined;
|
|
659
|
+
address?: string | undefined;
|
|
660
|
+
decimals?: number | undefined;
|
|
648
661
|
}, {
|
|
649
|
-
symbol
|
|
650
|
-
address: string;
|
|
651
|
-
decimals: number;
|
|
662
|
+
symbol?: string | undefined;
|
|
652
663
|
assetId?: string | undefined;
|
|
664
|
+
address?: string | undefined;
|
|
665
|
+
decimals?: number | undefined;
|
|
653
666
|
}>;
|
|
654
667
|
memo: z.ZodOptional<z.ZodString>;
|
|
655
668
|
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>>;
|
|
656
669
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
657
670
|
token: {
|
|
658
|
-
symbol
|
|
659
|
-
address: string;
|
|
660
|
-
decimals: number;
|
|
671
|
+
symbol?: string | undefined;
|
|
661
672
|
assetId?: string | undefined;
|
|
673
|
+
address?: string | undefined;
|
|
674
|
+
decimals?: number | undefined;
|
|
662
675
|
};
|
|
663
|
-
amount: string;
|
|
664
676
|
to: string;
|
|
665
677
|
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;
|
|
678
|
+
amount?: string | undefined;
|
|
666
679
|
memo?: string | undefined;
|
|
680
|
+
humanAmount?: string | undefined;
|
|
667
681
|
gasCondition?: {
|
|
668
682
|
maxGasPrice?: string | undefined;
|
|
669
683
|
maxPriorityFee?: string | undefined;
|
|
@@ -671,15 +685,16 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
671
685
|
} | undefined;
|
|
672
686
|
}, {
|
|
673
687
|
token: {
|
|
674
|
-
symbol
|
|
675
|
-
address: string;
|
|
676
|
-
decimals: number;
|
|
688
|
+
symbol?: string | undefined;
|
|
677
689
|
assetId?: string | undefined;
|
|
690
|
+
address?: string | undefined;
|
|
691
|
+
decimals?: number | undefined;
|
|
678
692
|
};
|
|
679
|
-
amount: string;
|
|
680
693
|
to: string;
|
|
681
694
|
network?: unknown;
|
|
695
|
+
amount?: string | undefined;
|
|
682
696
|
memo?: string | undefined;
|
|
697
|
+
humanAmount?: string | undefined;
|
|
683
698
|
gasCondition?: {
|
|
684
699
|
maxGasPrice?: string | undefined;
|
|
685
700
|
maxPriorityFee?: string | undefined;
|
|
@@ -774,8 +789,8 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
774
789
|
actionName: z.ZodOptional<z.ZodString>;
|
|
775
790
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
776
791
|
to: string;
|
|
777
|
-
value?: string | undefined;
|
|
778
792
|
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;
|
|
793
|
+
value?: string | undefined;
|
|
779
794
|
gasCondition?: {
|
|
780
795
|
maxGasPrice?: string | undefined;
|
|
781
796
|
maxPriorityFee?: string | undefined;
|
|
@@ -803,8 +818,8 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
803
818
|
actionName?: string | undefined;
|
|
804
819
|
}, {
|
|
805
820
|
to: string;
|
|
806
|
-
value?: string | undefined;
|
|
807
821
|
network?: unknown;
|
|
822
|
+
value?: string | undefined;
|
|
808
823
|
gasCondition?: {
|
|
809
824
|
maxGasPrice?: string | undefined;
|
|
810
825
|
maxPriorityFee?: string | undefined;
|
|
@@ -858,32 +873,33 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
858
873
|
type: z.ZodLiteral<"APPROVE">;
|
|
859
874
|
spender: z.ZodString;
|
|
860
875
|
token: z.ZodEffects<z.ZodObject<{
|
|
861
|
-
address: z.ZodString
|
|
862
|
-
decimals: z.ZodNumber
|
|
863
|
-
symbol: z.ZodString
|
|
876
|
+
address: z.ZodOptional<z.ZodString>;
|
|
877
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
864
879
|
assetId: z.ZodOptional<z.ZodString>;
|
|
865
880
|
}, "strip", z.ZodTypeAny, {
|
|
866
|
-
symbol
|
|
867
|
-
address: string;
|
|
868
|
-
decimals: number;
|
|
881
|
+
symbol?: string | undefined;
|
|
869
882
|
assetId?: string | undefined;
|
|
883
|
+
address?: string | undefined;
|
|
884
|
+
decimals?: number | undefined;
|
|
870
885
|
}, {
|
|
871
|
-
symbol
|
|
872
|
-
address: string;
|
|
873
|
-
decimals: number;
|
|
886
|
+
symbol?: string | undefined;
|
|
874
887
|
assetId?: string | undefined;
|
|
888
|
+
address?: string | undefined;
|
|
889
|
+
decimals?: number | undefined;
|
|
875
890
|
}>, {
|
|
876
|
-
symbol
|
|
877
|
-
address: string;
|
|
878
|
-
decimals: number;
|
|
891
|
+
symbol?: string | undefined;
|
|
879
892
|
assetId?: string | undefined;
|
|
893
|
+
address?: string | undefined;
|
|
894
|
+
decimals?: number | undefined;
|
|
880
895
|
}, {
|
|
881
|
-
symbol
|
|
882
|
-
address: string;
|
|
883
|
-
decimals: number;
|
|
896
|
+
symbol?: string | undefined;
|
|
884
897
|
assetId?: string | undefined;
|
|
898
|
+
address?: string | undefined;
|
|
899
|
+
decimals?: number | undefined;
|
|
885
900
|
}>;
|
|
886
|
-
amount: z.ZodString
|
|
901
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
902
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
887
903
|
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>>;
|
|
888
904
|
/** Optional NFT approval info. When present, this is an NFT approval (not ERC-20). */
|
|
889
905
|
nft: z.ZodOptional<z.ZodObject<{
|
|
@@ -898,14 +914,15 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
898
914
|
}>>;
|
|
899
915
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
900
916
|
token: {
|
|
901
|
-
symbol
|
|
902
|
-
address: string;
|
|
903
|
-
decimals: number;
|
|
917
|
+
symbol?: string | undefined;
|
|
904
918
|
assetId?: string | undefined;
|
|
919
|
+
address?: string | undefined;
|
|
920
|
+
decimals?: number | undefined;
|
|
905
921
|
};
|
|
906
|
-
amount: string;
|
|
907
922
|
spender: string;
|
|
908
923
|
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;
|
|
924
|
+
amount?: string | undefined;
|
|
925
|
+
humanAmount?: string | undefined;
|
|
909
926
|
gasCondition?: {
|
|
910
927
|
maxGasPrice?: string | undefined;
|
|
911
928
|
maxPriorityFee?: string | undefined;
|
|
@@ -917,14 +934,15 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
917
934
|
} | undefined;
|
|
918
935
|
}, {
|
|
919
936
|
token: {
|
|
920
|
-
symbol
|
|
921
|
-
address: string;
|
|
922
|
-
decimals: number;
|
|
937
|
+
symbol?: string | undefined;
|
|
923
938
|
assetId?: string | undefined;
|
|
939
|
+
address?: string | undefined;
|
|
940
|
+
decimals?: number | undefined;
|
|
924
941
|
};
|
|
925
|
-
amount: string;
|
|
926
942
|
spender: string;
|
|
927
943
|
network?: unknown;
|
|
944
|
+
amount?: string | undefined;
|
|
945
|
+
humanAmount?: string | undefined;
|
|
928
946
|
gasCondition?: {
|
|
929
947
|
maxGasPrice?: string | undefined;
|
|
930
948
|
maxPriorityFee?: string | undefined;
|
|
@@ -939,10 +957,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
939
957
|
}, "strip", z.ZodTypeAny, {
|
|
940
958
|
type: "BATCH";
|
|
941
959
|
instructions: ({
|
|
942
|
-
amount: string;
|
|
943
960
|
to: string;
|
|
944
961
|
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;
|
|
962
|
+
amount?: string | undefined;
|
|
945
963
|
memo?: string | undefined;
|
|
964
|
+
humanAmount?: string | undefined;
|
|
946
965
|
gasCondition?: {
|
|
947
966
|
maxGasPrice?: string | undefined;
|
|
948
967
|
maxPriorityFee?: string | undefined;
|
|
@@ -950,15 +969,16 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
950
969
|
} | undefined;
|
|
951
970
|
} | {
|
|
952
971
|
token: {
|
|
953
|
-
symbol
|
|
954
|
-
address: string;
|
|
955
|
-
decimals: number;
|
|
972
|
+
symbol?: string | undefined;
|
|
956
973
|
assetId?: string | undefined;
|
|
974
|
+
address?: string | undefined;
|
|
975
|
+
decimals?: number | undefined;
|
|
957
976
|
};
|
|
958
|
-
amount: string;
|
|
959
977
|
to: string;
|
|
960
978
|
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;
|
|
979
|
+
amount?: string | undefined;
|
|
961
980
|
memo?: string | undefined;
|
|
981
|
+
humanAmount?: string | undefined;
|
|
962
982
|
gasCondition?: {
|
|
963
983
|
maxGasPrice?: string | undefined;
|
|
964
984
|
maxPriorityFee?: string | undefined;
|
|
@@ -966,8 +986,8 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
966
986
|
} | undefined;
|
|
967
987
|
} | {
|
|
968
988
|
to: string;
|
|
969
|
-
value?: string | undefined;
|
|
970
989
|
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;
|
|
990
|
+
value?: string | undefined;
|
|
971
991
|
gasCondition?: {
|
|
972
992
|
maxGasPrice?: string | undefined;
|
|
973
993
|
maxPriorityFee?: string | undefined;
|
|
@@ -995,14 +1015,15 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
995
1015
|
actionName?: string | undefined;
|
|
996
1016
|
} | {
|
|
997
1017
|
token: {
|
|
998
|
-
symbol
|
|
999
|
-
address: string;
|
|
1000
|
-
decimals: number;
|
|
1018
|
+
symbol?: string | undefined;
|
|
1001
1019
|
assetId?: string | undefined;
|
|
1020
|
+
address?: string | undefined;
|
|
1021
|
+
decimals?: number | undefined;
|
|
1002
1022
|
};
|
|
1003
|
-
amount: string;
|
|
1004
1023
|
spender: string;
|
|
1005
1024
|
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;
|
|
1025
|
+
amount?: string | undefined;
|
|
1026
|
+
humanAmount?: string | undefined;
|
|
1006
1027
|
gasCondition?: {
|
|
1007
1028
|
maxGasPrice?: string | undefined;
|
|
1008
1029
|
maxPriorityFee?: string | undefined;
|
|
@@ -1022,10 +1043,11 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
1022
1043
|
}, {
|
|
1023
1044
|
type: "BATCH";
|
|
1024
1045
|
instructions: ({
|
|
1025
|
-
amount: string;
|
|
1026
1046
|
to: string;
|
|
1027
1047
|
network?: unknown;
|
|
1048
|
+
amount?: string | undefined;
|
|
1028
1049
|
memo?: string | undefined;
|
|
1050
|
+
humanAmount?: string | undefined;
|
|
1029
1051
|
gasCondition?: {
|
|
1030
1052
|
maxGasPrice?: string | undefined;
|
|
1031
1053
|
maxPriorityFee?: string | undefined;
|
|
@@ -1033,15 +1055,16 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
1033
1055
|
} | undefined;
|
|
1034
1056
|
} | {
|
|
1035
1057
|
token: {
|
|
1036
|
-
symbol
|
|
1037
|
-
address: string;
|
|
1038
|
-
decimals: number;
|
|
1058
|
+
symbol?: string | undefined;
|
|
1039
1059
|
assetId?: string | undefined;
|
|
1060
|
+
address?: string | undefined;
|
|
1061
|
+
decimals?: number | undefined;
|
|
1040
1062
|
};
|
|
1041
|
-
amount: string;
|
|
1042
1063
|
to: string;
|
|
1043
1064
|
network?: unknown;
|
|
1065
|
+
amount?: string | undefined;
|
|
1044
1066
|
memo?: string | undefined;
|
|
1067
|
+
humanAmount?: string | undefined;
|
|
1045
1068
|
gasCondition?: {
|
|
1046
1069
|
maxGasPrice?: string | undefined;
|
|
1047
1070
|
maxPriorityFee?: string | undefined;
|
|
@@ -1049,8 +1072,8 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
1049
1072
|
} | undefined;
|
|
1050
1073
|
} | {
|
|
1051
1074
|
to: string;
|
|
1052
|
-
value?: string | undefined;
|
|
1053
1075
|
network?: unknown;
|
|
1076
|
+
value?: string | undefined;
|
|
1054
1077
|
gasCondition?: {
|
|
1055
1078
|
maxGasPrice?: string | undefined;
|
|
1056
1079
|
maxPriorityFee?: string | undefined;
|
|
@@ -1078,14 +1101,15 @@ export declare const BatchRequestSchema: z.ZodObject<{
|
|
|
1078
1101
|
actionName?: string | undefined;
|
|
1079
1102
|
} | {
|
|
1080
1103
|
token: {
|
|
1081
|
-
symbol
|
|
1082
|
-
address: string;
|
|
1083
|
-
decimals: number;
|
|
1104
|
+
symbol?: string | undefined;
|
|
1084
1105
|
assetId?: string | undefined;
|
|
1106
|
+
address?: string | undefined;
|
|
1107
|
+
decimals?: number | undefined;
|
|
1085
1108
|
};
|
|
1086
|
-
amount: string;
|
|
1087
1109
|
spender: string;
|
|
1088
1110
|
network?: unknown;
|
|
1111
|
+
amount?: string | undefined;
|
|
1112
|
+
humanAmount?: string | undefined;
|
|
1089
1113
|
gasCondition?: {
|
|
1090
1114
|
maxGasPrice?: string | undefined;
|
|
1091
1115
|
maxPriorityFee?: string | undefined;
|
|
@@ -1184,8 +1208,63 @@ export declare const NftTransferRequestSchema: z.ZodObject<{
|
|
|
1184
1208
|
} | undefined;
|
|
1185
1209
|
}>;
|
|
1186
1210
|
export type NftTransferRequest = z.infer<typeof NftTransferRequestSchema>;
|
|
1211
|
+
/** Type 7: CONTRACT_DEPLOY -- EVM contract deployment (to=null). */
|
|
1212
|
+
export declare const ContractDeployRequestSchema: z.ZodObject<{
|
|
1213
|
+
gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1214
|
+
/** EVM: baseFee + priorityFee upper bound in wei. */
|
|
1215
|
+
maxGasPrice: z.ZodOptional<z.ZodString>;
|
|
1216
|
+
/** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
|
|
1217
|
+
maxPriorityFee: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
/** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
|
|
1219
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
}, "strip", z.ZodTypeAny, {
|
|
1221
|
+
maxGasPrice?: string | undefined;
|
|
1222
|
+
maxPriorityFee?: string | undefined;
|
|
1223
|
+
timeout?: number | undefined;
|
|
1224
|
+
}, {
|
|
1225
|
+
maxGasPrice?: string | undefined;
|
|
1226
|
+
maxPriorityFee?: string | undefined;
|
|
1227
|
+
timeout?: number | undefined;
|
|
1228
|
+
}>, {
|
|
1229
|
+
maxGasPrice?: string | undefined;
|
|
1230
|
+
maxPriorityFee?: string | undefined;
|
|
1231
|
+
timeout?: number | undefined;
|
|
1232
|
+
}, {
|
|
1233
|
+
maxGasPrice?: string | undefined;
|
|
1234
|
+
maxPriorityFee?: string | undefined;
|
|
1235
|
+
timeout?: number | undefined;
|
|
1236
|
+
}>>;
|
|
1237
|
+
type: z.ZodLiteral<"CONTRACT_DEPLOY">;
|
|
1238
|
+
bytecode: z.ZodString;
|
|
1239
|
+
constructorArgs: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
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>>;
|
|
1242
|
+
}, "strip", z.ZodTypeAny, {
|
|
1243
|
+
type: "CONTRACT_DEPLOY";
|
|
1244
|
+
bytecode: string;
|
|
1245
|
+
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;
|
|
1246
|
+
value?: string | undefined;
|
|
1247
|
+
gasCondition?: {
|
|
1248
|
+
maxGasPrice?: string | undefined;
|
|
1249
|
+
maxPriorityFee?: string | undefined;
|
|
1250
|
+
timeout?: number | undefined;
|
|
1251
|
+
} | undefined;
|
|
1252
|
+
constructorArgs?: string | undefined;
|
|
1253
|
+
}, {
|
|
1254
|
+
type: "CONTRACT_DEPLOY";
|
|
1255
|
+
bytecode: string;
|
|
1256
|
+
network?: unknown;
|
|
1257
|
+
value?: string | undefined;
|
|
1258
|
+
gasCondition?: {
|
|
1259
|
+
maxGasPrice?: string | undefined;
|
|
1260
|
+
maxPriorityFee?: string | undefined;
|
|
1261
|
+
timeout?: number | undefined;
|
|
1262
|
+
} | undefined;
|
|
1263
|
+
constructorArgs?: string | undefined;
|
|
1264
|
+
}>;
|
|
1265
|
+
export type ContractDeployRequest = z.infer<typeof ContractDeployRequestSchema>;
|
|
1187
1266
|
/**
|
|
1188
|
-
* discriminatedUnion
|
|
1267
|
+
* discriminatedUnion 7-type transaction request schema.
|
|
1189
1268
|
* Identifies the correct schema variant via the `type` field.
|
|
1190
1269
|
*/
|
|
1191
1270
|
export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1215,15 +1294,17 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1215
1294
|
}>>;
|
|
1216
1295
|
type: z.ZodLiteral<"TRANSFER">;
|
|
1217
1296
|
to: z.ZodString;
|
|
1218
|
-
amount: z.ZodString
|
|
1297
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
1219
1299
|
memo: z.ZodOptional<z.ZodString>;
|
|
1220
1300
|
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>>;
|
|
1221
1301
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1302
|
type: "TRANSFER";
|
|
1223
|
-
amount: string;
|
|
1224
1303
|
to: string;
|
|
1225
1304
|
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;
|
|
1305
|
+
amount?: string | undefined;
|
|
1226
1306
|
memo?: string | undefined;
|
|
1307
|
+
humanAmount?: string | undefined;
|
|
1227
1308
|
gasCondition?: {
|
|
1228
1309
|
maxGasPrice?: string | undefined;
|
|
1229
1310
|
maxPriorityFee?: string | undefined;
|
|
@@ -1231,10 +1312,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1231
1312
|
} | undefined;
|
|
1232
1313
|
}, {
|
|
1233
1314
|
type: "TRANSFER";
|
|
1234
|
-
amount: string;
|
|
1235
1315
|
to: string;
|
|
1236
1316
|
network?: unknown;
|
|
1317
|
+
amount?: string | undefined;
|
|
1237
1318
|
memo?: string | undefined;
|
|
1319
|
+
humanAmount?: string | undefined;
|
|
1238
1320
|
gasCondition?: {
|
|
1239
1321
|
maxGasPrice?: string | undefined;
|
|
1240
1322
|
maxPriorityFee?: string | undefined;
|
|
@@ -1267,47 +1349,49 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1267
1349
|
}>>;
|
|
1268
1350
|
type: z.ZodLiteral<"TOKEN_TRANSFER">;
|
|
1269
1351
|
to: z.ZodString;
|
|
1270
|
-
amount: z.ZodString
|
|
1352
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
1271
1354
|
token: z.ZodEffects<z.ZodObject<{
|
|
1272
|
-
address: z.ZodString
|
|
1273
|
-
decimals: z.ZodNumber
|
|
1274
|
-
symbol: z.ZodString
|
|
1355
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
1357
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1275
1358
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1276
1359
|
}, "strip", z.ZodTypeAny, {
|
|
1277
|
-
symbol
|
|
1278
|
-
address: string;
|
|
1279
|
-
decimals: number;
|
|
1360
|
+
symbol?: string | undefined;
|
|
1280
1361
|
assetId?: string | undefined;
|
|
1362
|
+
address?: string | undefined;
|
|
1363
|
+
decimals?: number | undefined;
|
|
1281
1364
|
}, {
|
|
1282
|
-
symbol
|
|
1283
|
-
address: string;
|
|
1284
|
-
decimals: number;
|
|
1365
|
+
symbol?: string | undefined;
|
|
1285
1366
|
assetId?: string | undefined;
|
|
1367
|
+
address?: string | undefined;
|
|
1368
|
+
decimals?: number | undefined;
|
|
1286
1369
|
}>, {
|
|
1287
|
-
symbol
|
|
1288
|
-
address: string;
|
|
1289
|
-
decimals: number;
|
|
1370
|
+
symbol?: string | undefined;
|
|
1290
1371
|
assetId?: string | undefined;
|
|
1372
|
+
address?: string | undefined;
|
|
1373
|
+
decimals?: number | undefined;
|
|
1291
1374
|
}, {
|
|
1292
|
-
symbol
|
|
1293
|
-
address: string;
|
|
1294
|
-
decimals: number;
|
|
1375
|
+
symbol?: string | undefined;
|
|
1295
1376
|
assetId?: string | undefined;
|
|
1377
|
+
address?: string | undefined;
|
|
1378
|
+
decimals?: number | undefined;
|
|
1296
1379
|
}>;
|
|
1297
1380
|
memo: z.ZodOptional<z.ZodString>;
|
|
1298
1381
|
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>>;
|
|
1299
1382
|
}, "strip", z.ZodTypeAny, {
|
|
1300
1383
|
type: "TOKEN_TRANSFER";
|
|
1301
1384
|
token: {
|
|
1302
|
-
symbol
|
|
1303
|
-
address: string;
|
|
1304
|
-
decimals: number;
|
|
1385
|
+
symbol?: string | undefined;
|
|
1305
1386
|
assetId?: string | undefined;
|
|
1387
|
+
address?: string | undefined;
|
|
1388
|
+
decimals?: number | undefined;
|
|
1306
1389
|
};
|
|
1307
|
-
amount: string;
|
|
1308
1390
|
to: string;
|
|
1309
1391
|
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;
|
|
1392
|
+
amount?: string | undefined;
|
|
1310
1393
|
memo?: string | undefined;
|
|
1394
|
+
humanAmount?: string | undefined;
|
|
1311
1395
|
gasCondition?: {
|
|
1312
1396
|
maxGasPrice?: string | undefined;
|
|
1313
1397
|
maxPriorityFee?: string | undefined;
|
|
@@ -1316,15 +1400,16 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1316
1400
|
}, {
|
|
1317
1401
|
type: "TOKEN_TRANSFER";
|
|
1318
1402
|
token: {
|
|
1319
|
-
symbol
|
|
1320
|
-
address: string;
|
|
1321
|
-
decimals: number;
|
|
1403
|
+
symbol?: string | undefined;
|
|
1322
1404
|
assetId?: string | undefined;
|
|
1405
|
+
address?: string | undefined;
|
|
1406
|
+
decimals?: number | undefined;
|
|
1323
1407
|
};
|
|
1324
|
-
amount: string;
|
|
1325
1408
|
to: string;
|
|
1326
1409
|
network?: unknown;
|
|
1410
|
+
amount?: string | undefined;
|
|
1327
1411
|
memo?: string | undefined;
|
|
1412
|
+
humanAmount?: string | undefined;
|
|
1328
1413
|
gasCondition?: {
|
|
1329
1414
|
maxGasPrice?: string | undefined;
|
|
1330
1415
|
maxPriorityFee?: string | undefined;
|
|
@@ -1420,8 +1505,8 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1420
1505
|
}, "strip", z.ZodTypeAny, {
|
|
1421
1506
|
type: "CONTRACT_CALL";
|
|
1422
1507
|
to: string;
|
|
1423
|
-
value?: string | undefined;
|
|
1424
1508
|
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;
|
|
1509
|
+
value?: string | undefined;
|
|
1425
1510
|
gasCondition?: {
|
|
1426
1511
|
maxGasPrice?: string | undefined;
|
|
1427
1512
|
maxPriorityFee?: string | undefined;
|
|
@@ -1450,8 +1535,8 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1450
1535
|
}, {
|
|
1451
1536
|
type: "CONTRACT_CALL";
|
|
1452
1537
|
to: string;
|
|
1453
|
-
value?: string | undefined;
|
|
1454
1538
|
network?: unknown;
|
|
1539
|
+
value?: string | undefined;
|
|
1455
1540
|
gasCondition?: {
|
|
1456
1541
|
maxGasPrice?: string | undefined;
|
|
1457
1542
|
maxPriorityFee?: string | undefined;
|
|
@@ -1505,32 +1590,33 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1505
1590
|
type: z.ZodLiteral<"APPROVE">;
|
|
1506
1591
|
spender: z.ZodString;
|
|
1507
1592
|
token: z.ZodEffects<z.ZodObject<{
|
|
1508
|
-
address: z.ZodString
|
|
1509
|
-
decimals: z.ZodNumber
|
|
1510
|
-
symbol: z.ZodString
|
|
1593
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
1595
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1511
1596
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1512
1597
|
}, "strip", z.ZodTypeAny, {
|
|
1513
|
-
symbol
|
|
1514
|
-
address: string;
|
|
1515
|
-
decimals: number;
|
|
1598
|
+
symbol?: string | undefined;
|
|
1516
1599
|
assetId?: string | undefined;
|
|
1600
|
+
address?: string | undefined;
|
|
1601
|
+
decimals?: number | undefined;
|
|
1517
1602
|
}, {
|
|
1518
|
-
symbol
|
|
1519
|
-
address: string;
|
|
1520
|
-
decimals: number;
|
|
1603
|
+
symbol?: string | undefined;
|
|
1521
1604
|
assetId?: string | undefined;
|
|
1605
|
+
address?: string | undefined;
|
|
1606
|
+
decimals?: number | undefined;
|
|
1522
1607
|
}>, {
|
|
1523
|
-
symbol
|
|
1524
|
-
address: string;
|
|
1525
|
-
decimals: number;
|
|
1608
|
+
symbol?: string | undefined;
|
|
1526
1609
|
assetId?: string | undefined;
|
|
1610
|
+
address?: string | undefined;
|
|
1611
|
+
decimals?: number | undefined;
|
|
1527
1612
|
}, {
|
|
1528
|
-
symbol
|
|
1529
|
-
address: string;
|
|
1530
|
-
decimals: number;
|
|
1613
|
+
symbol?: string | undefined;
|
|
1531
1614
|
assetId?: string | undefined;
|
|
1615
|
+
address?: string | undefined;
|
|
1616
|
+
decimals?: number | undefined;
|
|
1532
1617
|
}>;
|
|
1533
|
-
amount: z.ZodString
|
|
1618
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1619
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
1534
1620
|
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>>;
|
|
1535
1621
|
/** Optional NFT approval info. When present, this is an NFT approval (not ERC-20). */
|
|
1536
1622
|
nft: z.ZodOptional<z.ZodObject<{
|
|
@@ -1546,14 +1632,15 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1546
1632
|
}, "strip", z.ZodTypeAny, {
|
|
1547
1633
|
type: "APPROVE";
|
|
1548
1634
|
token: {
|
|
1549
|
-
symbol
|
|
1550
|
-
address: string;
|
|
1551
|
-
decimals: number;
|
|
1635
|
+
symbol?: string | undefined;
|
|
1552
1636
|
assetId?: string | undefined;
|
|
1637
|
+
address?: string | undefined;
|
|
1638
|
+
decimals?: number | undefined;
|
|
1553
1639
|
};
|
|
1554
|
-
amount: string;
|
|
1555
1640
|
spender: string;
|
|
1556
1641
|
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;
|
|
1642
|
+
amount?: string | undefined;
|
|
1643
|
+
humanAmount?: string | undefined;
|
|
1557
1644
|
gasCondition?: {
|
|
1558
1645
|
maxGasPrice?: string | undefined;
|
|
1559
1646
|
maxPriorityFee?: string | undefined;
|
|
@@ -1566,14 +1653,15 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1566
1653
|
}, {
|
|
1567
1654
|
type: "APPROVE";
|
|
1568
1655
|
token: {
|
|
1569
|
-
symbol
|
|
1570
|
-
address: string;
|
|
1571
|
-
decimals: number;
|
|
1656
|
+
symbol?: string | undefined;
|
|
1572
1657
|
assetId?: string | undefined;
|
|
1658
|
+
address?: string | undefined;
|
|
1659
|
+
decimals?: number | undefined;
|
|
1573
1660
|
};
|
|
1574
|
-
amount: string;
|
|
1575
1661
|
spender: string;
|
|
1576
1662
|
network?: unknown;
|
|
1663
|
+
amount?: string | undefined;
|
|
1664
|
+
humanAmount?: string | undefined;
|
|
1577
1665
|
gasCondition?: {
|
|
1578
1666
|
maxGasPrice?: string | undefined;
|
|
1579
1667
|
maxPriorityFee?: string | undefined;
|
|
@@ -1636,24 +1724,27 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1636
1724
|
}>>;
|
|
1637
1725
|
type: z.ZodLiteral<"TRANSFER">;
|
|
1638
1726
|
to: z.ZodString;
|
|
1639
|
-
amount: z.ZodString
|
|
1727
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
1640
1729
|
memo: z.ZodOptional<z.ZodString>;
|
|
1641
1730
|
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>>;
|
|
1642
1731
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
1643
|
-
amount: string;
|
|
1644
1732
|
to: string;
|
|
1645
1733
|
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;
|
|
1734
|
+
amount?: string | undefined;
|
|
1646
1735
|
memo?: string | undefined;
|
|
1736
|
+
humanAmount?: string | undefined;
|
|
1647
1737
|
gasCondition?: {
|
|
1648
1738
|
maxGasPrice?: string | undefined;
|
|
1649
1739
|
maxPriorityFee?: string | undefined;
|
|
1650
1740
|
timeout?: number | undefined;
|
|
1651
1741
|
} | undefined;
|
|
1652
1742
|
}, {
|
|
1653
|
-
amount: string;
|
|
1654
1743
|
to: string;
|
|
1655
1744
|
network?: unknown;
|
|
1745
|
+
amount?: string | undefined;
|
|
1656
1746
|
memo?: string | undefined;
|
|
1747
|
+
humanAmount?: string | undefined;
|
|
1657
1748
|
gasCondition?: {
|
|
1658
1749
|
maxGasPrice?: string | undefined;
|
|
1659
1750
|
maxPriorityFee?: string | undefined;
|
|
@@ -1686,46 +1777,48 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1686
1777
|
}>>;
|
|
1687
1778
|
type: z.ZodLiteral<"TOKEN_TRANSFER">;
|
|
1688
1779
|
to: z.ZodString;
|
|
1689
|
-
amount: z.ZodString
|
|
1780
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1781
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
1690
1782
|
token: z.ZodEffects<z.ZodObject<{
|
|
1691
|
-
address: z.ZodString
|
|
1692
|
-
decimals: z.ZodNumber
|
|
1693
|
-
symbol: z.ZodString
|
|
1783
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
1785
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1694
1786
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1695
1787
|
}, "strip", z.ZodTypeAny, {
|
|
1696
|
-
symbol
|
|
1697
|
-
address: string;
|
|
1698
|
-
decimals: number;
|
|
1788
|
+
symbol?: string | undefined;
|
|
1699
1789
|
assetId?: string | undefined;
|
|
1790
|
+
address?: string | undefined;
|
|
1791
|
+
decimals?: number | undefined;
|
|
1700
1792
|
}, {
|
|
1701
|
-
symbol
|
|
1702
|
-
address: string;
|
|
1703
|
-
decimals: number;
|
|
1793
|
+
symbol?: string | undefined;
|
|
1704
1794
|
assetId?: string | undefined;
|
|
1795
|
+
address?: string | undefined;
|
|
1796
|
+
decimals?: number | undefined;
|
|
1705
1797
|
}>, {
|
|
1706
|
-
symbol
|
|
1707
|
-
address: string;
|
|
1708
|
-
decimals: number;
|
|
1798
|
+
symbol?: string | undefined;
|
|
1709
1799
|
assetId?: string | undefined;
|
|
1800
|
+
address?: string | undefined;
|
|
1801
|
+
decimals?: number | undefined;
|
|
1710
1802
|
}, {
|
|
1711
|
-
symbol
|
|
1712
|
-
address: string;
|
|
1713
|
-
decimals: number;
|
|
1803
|
+
symbol?: string | undefined;
|
|
1714
1804
|
assetId?: string | undefined;
|
|
1805
|
+
address?: string | undefined;
|
|
1806
|
+
decimals?: number | undefined;
|
|
1715
1807
|
}>;
|
|
1716
1808
|
memo: z.ZodOptional<z.ZodString>;
|
|
1717
1809
|
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>>;
|
|
1718
1810
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
1719
1811
|
token: {
|
|
1720
|
-
symbol
|
|
1721
|
-
address: string;
|
|
1722
|
-
decimals: number;
|
|
1812
|
+
symbol?: string | undefined;
|
|
1723
1813
|
assetId?: string | undefined;
|
|
1814
|
+
address?: string | undefined;
|
|
1815
|
+
decimals?: number | undefined;
|
|
1724
1816
|
};
|
|
1725
|
-
amount: string;
|
|
1726
1817
|
to: string;
|
|
1727
1818
|
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;
|
|
1819
|
+
amount?: string | undefined;
|
|
1728
1820
|
memo?: string | undefined;
|
|
1821
|
+
humanAmount?: string | undefined;
|
|
1729
1822
|
gasCondition?: {
|
|
1730
1823
|
maxGasPrice?: string | undefined;
|
|
1731
1824
|
maxPriorityFee?: string | undefined;
|
|
@@ -1733,15 +1826,16 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1733
1826
|
} | undefined;
|
|
1734
1827
|
}, {
|
|
1735
1828
|
token: {
|
|
1736
|
-
symbol
|
|
1737
|
-
address: string;
|
|
1738
|
-
decimals: number;
|
|
1829
|
+
symbol?: string | undefined;
|
|
1739
1830
|
assetId?: string | undefined;
|
|
1831
|
+
address?: string | undefined;
|
|
1832
|
+
decimals?: number | undefined;
|
|
1740
1833
|
};
|
|
1741
|
-
amount: string;
|
|
1742
1834
|
to: string;
|
|
1743
1835
|
network?: unknown;
|
|
1836
|
+
amount?: string | undefined;
|
|
1744
1837
|
memo?: string | undefined;
|
|
1838
|
+
humanAmount?: string | undefined;
|
|
1745
1839
|
gasCondition?: {
|
|
1746
1840
|
maxGasPrice?: string | undefined;
|
|
1747
1841
|
maxPriorityFee?: string | undefined;
|
|
@@ -1836,8 +1930,8 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1836
1930
|
actionName: z.ZodOptional<z.ZodString>;
|
|
1837
1931
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
1838
1932
|
to: string;
|
|
1839
|
-
value?: string | undefined;
|
|
1840
1933
|
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;
|
|
1934
|
+
value?: string | undefined;
|
|
1841
1935
|
gasCondition?: {
|
|
1842
1936
|
maxGasPrice?: string | undefined;
|
|
1843
1937
|
maxPriorityFee?: string | undefined;
|
|
@@ -1865,8 +1959,8 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1865
1959
|
actionName?: string | undefined;
|
|
1866
1960
|
}, {
|
|
1867
1961
|
to: string;
|
|
1868
|
-
value?: string | undefined;
|
|
1869
1962
|
network?: unknown;
|
|
1963
|
+
value?: string | undefined;
|
|
1870
1964
|
gasCondition?: {
|
|
1871
1965
|
maxGasPrice?: string | undefined;
|
|
1872
1966
|
maxPriorityFee?: string | undefined;
|
|
@@ -1920,32 +2014,33 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1920
2014
|
type: z.ZodLiteral<"APPROVE">;
|
|
1921
2015
|
spender: z.ZodString;
|
|
1922
2016
|
token: z.ZodEffects<z.ZodObject<{
|
|
1923
|
-
address: z.ZodString
|
|
1924
|
-
decimals: z.ZodNumber
|
|
1925
|
-
symbol: z.ZodString
|
|
2017
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
2019
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1926
2020
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1927
2021
|
}, "strip", z.ZodTypeAny, {
|
|
1928
|
-
symbol
|
|
1929
|
-
address: string;
|
|
1930
|
-
decimals: number;
|
|
2022
|
+
symbol?: string | undefined;
|
|
1931
2023
|
assetId?: string | undefined;
|
|
2024
|
+
address?: string | undefined;
|
|
2025
|
+
decimals?: number | undefined;
|
|
1932
2026
|
}, {
|
|
1933
|
-
symbol
|
|
1934
|
-
address: string;
|
|
1935
|
-
decimals: number;
|
|
2027
|
+
symbol?: string | undefined;
|
|
1936
2028
|
assetId?: string | undefined;
|
|
2029
|
+
address?: string | undefined;
|
|
2030
|
+
decimals?: number | undefined;
|
|
1937
2031
|
}>, {
|
|
1938
|
-
symbol
|
|
1939
|
-
address: string;
|
|
1940
|
-
decimals: number;
|
|
2032
|
+
symbol?: string | undefined;
|
|
1941
2033
|
assetId?: string | undefined;
|
|
2034
|
+
address?: string | undefined;
|
|
2035
|
+
decimals?: number | undefined;
|
|
1942
2036
|
}, {
|
|
1943
|
-
symbol
|
|
1944
|
-
address: string;
|
|
1945
|
-
decimals: number;
|
|
2037
|
+
symbol?: string | undefined;
|
|
1946
2038
|
assetId?: string | undefined;
|
|
2039
|
+
address?: string | undefined;
|
|
2040
|
+
decimals?: number | undefined;
|
|
1947
2041
|
}>;
|
|
1948
|
-
amount: z.ZodString
|
|
2042
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
humanAmount: z.ZodOptional<z.ZodString>;
|
|
1949
2044
|
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>>;
|
|
1950
2045
|
/** Optional NFT approval info. When present, this is an NFT approval (not ERC-20). */
|
|
1951
2046
|
nft: z.ZodOptional<z.ZodObject<{
|
|
@@ -1960,14 +2055,15 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1960
2055
|
}>>;
|
|
1961
2056
|
}, "type">, "strip", z.ZodTypeAny, {
|
|
1962
2057
|
token: {
|
|
1963
|
-
symbol
|
|
1964
|
-
address: string;
|
|
1965
|
-
decimals: number;
|
|
2058
|
+
symbol?: string | undefined;
|
|
1966
2059
|
assetId?: string | undefined;
|
|
2060
|
+
address?: string | undefined;
|
|
2061
|
+
decimals?: number | undefined;
|
|
1967
2062
|
};
|
|
1968
|
-
amount: string;
|
|
1969
2063
|
spender: string;
|
|
1970
2064
|
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;
|
|
2065
|
+
amount?: string | undefined;
|
|
2066
|
+
humanAmount?: string | undefined;
|
|
1971
2067
|
gasCondition?: {
|
|
1972
2068
|
maxGasPrice?: string | undefined;
|
|
1973
2069
|
maxPriorityFee?: string | undefined;
|
|
@@ -1979,14 +2075,15 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
1979
2075
|
} | undefined;
|
|
1980
2076
|
}, {
|
|
1981
2077
|
token: {
|
|
1982
|
-
symbol
|
|
1983
|
-
address: string;
|
|
1984
|
-
decimals: number;
|
|
2078
|
+
symbol?: string | undefined;
|
|
1985
2079
|
assetId?: string | undefined;
|
|
2080
|
+
address?: string | undefined;
|
|
2081
|
+
decimals?: number | undefined;
|
|
1986
2082
|
};
|
|
1987
|
-
amount: string;
|
|
1988
2083
|
spender: string;
|
|
1989
2084
|
network?: unknown;
|
|
2085
|
+
amount?: string | undefined;
|
|
2086
|
+
humanAmount?: string | undefined;
|
|
1990
2087
|
gasCondition?: {
|
|
1991
2088
|
maxGasPrice?: string | undefined;
|
|
1992
2089
|
maxPriorityFee?: string | undefined;
|
|
@@ -2001,10 +2098,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2001
2098
|
}, "strip", z.ZodTypeAny, {
|
|
2002
2099
|
type: "BATCH";
|
|
2003
2100
|
instructions: ({
|
|
2004
|
-
amount: string;
|
|
2005
2101
|
to: string;
|
|
2006
2102
|
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;
|
|
2103
|
+
amount?: string | undefined;
|
|
2007
2104
|
memo?: string | undefined;
|
|
2105
|
+
humanAmount?: string | undefined;
|
|
2008
2106
|
gasCondition?: {
|
|
2009
2107
|
maxGasPrice?: string | undefined;
|
|
2010
2108
|
maxPriorityFee?: string | undefined;
|
|
@@ -2012,15 +2110,16 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2012
2110
|
} | undefined;
|
|
2013
2111
|
} | {
|
|
2014
2112
|
token: {
|
|
2015
|
-
symbol
|
|
2016
|
-
address: string;
|
|
2017
|
-
decimals: number;
|
|
2113
|
+
symbol?: string | undefined;
|
|
2018
2114
|
assetId?: string | undefined;
|
|
2115
|
+
address?: string | undefined;
|
|
2116
|
+
decimals?: number | undefined;
|
|
2019
2117
|
};
|
|
2020
|
-
amount: string;
|
|
2021
2118
|
to: string;
|
|
2022
2119
|
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;
|
|
2120
|
+
amount?: string | undefined;
|
|
2023
2121
|
memo?: string | undefined;
|
|
2122
|
+
humanAmount?: string | undefined;
|
|
2024
2123
|
gasCondition?: {
|
|
2025
2124
|
maxGasPrice?: string | undefined;
|
|
2026
2125
|
maxPriorityFee?: string | undefined;
|
|
@@ -2028,8 +2127,8 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2028
2127
|
} | undefined;
|
|
2029
2128
|
} | {
|
|
2030
2129
|
to: string;
|
|
2031
|
-
value?: string | undefined;
|
|
2032
2130
|
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;
|
|
2131
|
+
value?: string | undefined;
|
|
2033
2132
|
gasCondition?: {
|
|
2034
2133
|
maxGasPrice?: string | undefined;
|
|
2035
2134
|
maxPriorityFee?: string | undefined;
|
|
@@ -2057,14 +2156,15 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2057
2156
|
actionName?: string | undefined;
|
|
2058
2157
|
} | {
|
|
2059
2158
|
token: {
|
|
2060
|
-
symbol
|
|
2061
|
-
address: string;
|
|
2062
|
-
decimals: number;
|
|
2159
|
+
symbol?: string | undefined;
|
|
2063
2160
|
assetId?: string | undefined;
|
|
2161
|
+
address?: string | undefined;
|
|
2162
|
+
decimals?: number | undefined;
|
|
2064
2163
|
};
|
|
2065
|
-
amount: string;
|
|
2066
2164
|
spender: string;
|
|
2067
2165
|
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;
|
|
2166
|
+
amount?: string | undefined;
|
|
2167
|
+
humanAmount?: string | undefined;
|
|
2068
2168
|
gasCondition?: {
|
|
2069
2169
|
maxGasPrice?: string | undefined;
|
|
2070
2170
|
maxPriorityFee?: string | undefined;
|
|
@@ -2084,10 +2184,11 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2084
2184
|
}, {
|
|
2085
2185
|
type: "BATCH";
|
|
2086
2186
|
instructions: ({
|
|
2087
|
-
amount: string;
|
|
2088
2187
|
to: string;
|
|
2089
2188
|
network?: unknown;
|
|
2189
|
+
amount?: string | undefined;
|
|
2090
2190
|
memo?: string | undefined;
|
|
2191
|
+
humanAmount?: string | undefined;
|
|
2091
2192
|
gasCondition?: {
|
|
2092
2193
|
maxGasPrice?: string | undefined;
|
|
2093
2194
|
maxPriorityFee?: string | undefined;
|
|
@@ -2095,15 +2196,16 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2095
2196
|
} | undefined;
|
|
2096
2197
|
} | {
|
|
2097
2198
|
token: {
|
|
2098
|
-
symbol
|
|
2099
|
-
address: string;
|
|
2100
|
-
decimals: number;
|
|
2199
|
+
symbol?: string | undefined;
|
|
2101
2200
|
assetId?: string | undefined;
|
|
2201
|
+
address?: string | undefined;
|
|
2202
|
+
decimals?: number | undefined;
|
|
2102
2203
|
};
|
|
2103
|
-
amount: string;
|
|
2104
2204
|
to: string;
|
|
2105
2205
|
network?: unknown;
|
|
2206
|
+
amount?: string | undefined;
|
|
2106
2207
|
memo?: string | undefined;
|
|
2208
|
+
humanAmount?: string | undefined;
|
|
2107
2209
|
gasCondition?: {
|
|
2108
2210
|
maxGasPrice?: string | undefined;
|
|
2109
2211
|
maxPriorityFee?: string | undefined;
|
|
@@ -2111,8 +2213,8 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2111
2213
|
} | undefined;
|
|
2112
2214
|
} | {
|
|
2113
2215
|
to: string;
|
|
2114
|
-
value?: string | undefined;
|
|
2115
2216
|
network?: unknown;
|
|
2217
|
+
value?: string | undefined;
|
|
2116
2218
|
gasCondition?: {
|
|
2117
2219
|
maxGasPrice?: string | undefined;
|
|
2118
2220
|
maxPriorityFee?: string | undefined;
|
|
@@ -2140,14 +2242,15 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2140
2242
|
actionName?: string | undefined;
|
|
2141
2243
|
} | {
|
|
2142
2244
|
token: {
|
|
2143
|
-
symbol
|
|
2144
|
-
address: string;
|
|
2145
|
-
decimals: number;
|
|
2245
|
+
symbol?: string | undefined;
|
|
2146
2246
|
assetId?: string | undefined;
|
|
2247
|
+
address?: string | undefined;
|
|
2248
|
+
decimals?: number | undefined;
|
|
2147
2249
|
};
|
|
2148
|
-
amount: string;
|
|
2149
2250
|
spender: string;
|
|
2150
2251
|
network?: unknown;
|
|
2252
|
+
amount?: string | undefined;
|
|
2253
|
+
humanAmount?: string | undefined;
|
|
2151
2254
|
gasCondition?: {
|
|
2152
2255
|
maxGasPrice?: string | undefined;
|
|
2153
2256
|
maxPriorityFee?: string | undefined;
|
|
@@ -2241,6 +2344,58 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
2241
2344
|
maxPriorityFee?: string | undefined;
|
|
2242
2345
|
timeout?: number | undefined;
|
|
2243
2346
|
} | undefined;
|
|
2347
|
+
}>, z.ZodObject<{
|
|
2348
|
+
gasCondition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2349
|
+
/** EVM: baseFee + priorityFee upper bound in wei. */
|
|
2350
|
+
maxGasPrice: z.ZodOptional<z.ZodString>;
|
|
2351
|
+
/** EVM: priorityFee upper bound in wei. Solana: computeUnitPrice upper bound in micro-lamports. */
|
|
2352
|
+
maxPriorityFee: z.ZodOptional<z.ZodString>;
|
|
2353
|
+
/** Maximum wait time in seconds (60-86400). Uses Admin Settings default if omitted. */
|
|
2354
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2355
|
+
}, "strip", z.ZodTypeAny, {
|
|
2356
|
+
maxGasPrice?: string | undefined;
|
|
2357
|
+
maxPriorityFee?: string | undefined;
|
|
2358
|
+
timeout?: number | undefined;
|
|
2359
|
+
}, {
|
|
2360
|
+
maxGasPrice?: string | undefined;
|
|
2361
|
+
maxPriorityFee?: string | undefined;
|
|
2362
|
+
timeout?: number | undefined;
|
|
2363
|
+
}>, {
|
|
2364
|
+
maxGasPrice?: string | undefined;
|
|
2365
|
+
maxPriorityFee?: string | undefined;
|
|
2366
|
+
timeout?: number | undefined;
|
|
2367
|
+
}, {
|
|
2368
|
+
maxGasPrice?: string | undefined;
|
|
2369
|
+
maxPriorityFee?: string | undefined;
|
|
2370
|
+
timeout?: number | undefined;
|
|
2371
|
+
}>>;
|
|
2372
|
+
type: z.ZodLiteral<"CONTRACT_DEPLOY">;
|
|
2373
|
+
bytecode: z.ZodString;
|
|
2374
|
+
constructorArgs: z.ZodOptional<z.ZodString>;
|
|
2375
|
+
value: z.ZodOptional<z.ZodString>;
|
|
2376
|
+
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>>;
|
|
2377
|
+
}, "strip", z.ZodTypeAny, {
|
|
2378
|
+
type: "CONTRACT_DEPLOY";
|
|
2379
|
+
bytecode: string;
|
|
2380
|
+
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;
|
|
2381
|
+
value?: string | undefined;
|
|
2382
|
+
gasCondition?: {
|
|
2383
|
+
maxGasPrice?: string | undefined;
|
|
2384
|
+
maxPriorityFee?: string | undefined;
|
|
2385
|
+
timeout?: number | undefined;
|
|
2386
|
+
} | undefined;
|
|
2387
|
+
constructorArgs?: string | undefined;
|
|
2388
|
+
}, {
|
|
2389
|
+
type: "CONTRACT_DEPLOY";
|
|
2390
|
+
bytecode: string;
|
|
2391
|
+
network?: unknown;
|
|
2392
|
+
value?: string | undefined;
|
|
2393
|
+
gasCondition?: {
|
|
2394
|
+
maxGasPrice?: string | undefined;
|
|
2395
|
+
maxPriorityFee?: string | undefined;
|
|
2396
|
+
timeout?: number | undefined;
|
|
2397
|
+
} | undefined;
|
|
2398
|
+
constructorArgs?: string | undefined;
|
|
2244
2399
|
}>]>;
|
|
2245
2400
|
export type TransactionRequest = z.infer<typeof TransactionRequestSchema>;
|
|
2246
2401
|
/** EIP-712 typed data structure (domain, types, primaryType, message). */
|
|
@@ -2254,14 +2409,14 @@ export declare const Eip712TypedDataSchema: z.ZodObject<{
|
|
|
2254
2409
|
salt: z.ZodOptional<z.ZodString>;
|
|
2255
2410
|
}, "strip", z.ZodTypeAny, {
|
|
2256
2411
|
name?: string | undefined;
|
|
2257
|
-
version?: string | undefined;
|
|
2258
2412
|
chainId?: string | number | bigint | undefined;
|
|
2413
|
+
version?: string | undefined;
|
|
2259
2414
|
verifyingContract?: string | undefined;
|
|
2260
2415
|
salt?: string | undefined;
|
|
2261
2416
|
}, {
|
|
2262
2417
|
name?: string | undefined;
|
|
2263
|
-
version?: string | undefined;
|
|
2264
2418
|
chainId?: string | number | bigint | undefined;
|
|
2419
|
+
version?: string | undefined;
|
|
2265
2420
|
verifyingContract?: string | undefined;
|
|
2266
2421
|
salt?: string | undefined;
|
|
2267
2422
|
}>;
|
|
@@ -2284,8 +2439,8 @@ export declare const Eip712TypedDataSchema: z.ZodObject<{
|
|
|
2284
2439
|
message: Record<string, unknown>;
|
|
2285
2440
|
domain: {
|
|
2286
2441
|
name?: string | undefined;
|
|
2287
|
-
version?: string | undefined;
|
|
2288
2442
|
chainId?: string | number | bigint | undefined;
|
|
2443
|
+
version?: string | undefined;
|
|
2289
2444
|
verifyingContract?: string | undefined;
|
|
2290
2445
|
salt?: string | undefined;
|
|
2291
2446
|
};
|
|
@@ -2298,8 +2453,8 @@ export declare const Eip712TypedDataSchema: z.ZodObject<{
|
|
|
2298
2453
|
message: Record<string, unknown>;
|
|
2299
2454
|
domain: {
|
|
2300
2455
|
name?: string | undefined;
|
|
2301
|
-
version?: string | undefined;
|
|
2302
2456
|
chainId?: string | number | bigint | undefined;
|
|
2457
|
+
version?: string | undefined;
|
|
2303
2458
|
verifyingContract?: string | undefined;
|
|
2304
2459
|
salt?: string | undefined;
|
|
2305
2460
|
};
|
|
@@ -2335,14 +2490,14 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2335
2490
|
salt: z.ZodOptional<z.ZodString>;
|
|
2336
2491
|
}, "strip", z.ZodTypeAny, {
|
|
2337
2492
|
name?: string | undefined;
|
|
2338
|
-
version?: string | undefined;
|
|
2339
2493
|
chainId?: string | number | bigint | undefined;
|
|
2494
|
+
version?: string | undefined;
|
|
2340
2495
|
verifyingContract?: string | undefined;
|
|
2341
2496
|
salt?: string | undefined;
|
|
2342
2497
|
}, {
|
|
2343
2498
|
name?: string | undefined;
|
|
2344
|
-
version?: string | undefined;
|
|
2345
2499
|
chainId?: string | number | bigint | undefined;
|
|
2500
|
+
version?: string | undefined;
|
|
2346
2501
|
verifyingContract?: string | undefined;
|
|
2347
2502
|
salt?: string | undefined;
|
|
2348
2503
|
}>;
|
|
@@ -2365,8 +2520,8 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2365
2520
|
message: Record<string, unknown>;
|
|
2366
2521
|
domain: {
|
|
2367
2522
|
name?: string | undefined;
|
|
2368
|
-
version?: string | undefined;
|
|
2369
2523
|
chainId?: string | number | bigint | undefined;
|
|
2524
|
+
version?: string | undefined;
|
|
2370
2525
|
verifyingContract?: string | undefined;
|
|
2371
2526
|
salt?: string | undefined;
|
|
2372
2527
|
};
|
|
@@ -2379,8 +2534,8 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2379
2534
|
message: Record<string, unknown>;
|
|
2380
2535
|
domain: {
|
|
2381
2536
|
name?: string | undefined;
|
|
2382
|
-
version?: string | undefined;
|
|
2383
2537
|
chainId?: string | number | bigint | undefined;
|
|
2538
|
+
version?: string | undefined;
|
|
2384
2539
|
verifyingContract?: string | undefined;
|
|
2385
2540
|
salt?: string | undefined;
|
|
2386
2541
|
};
|
|
@@ -2396,15 +2551,15 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2396
2551
|
walletId: z.ZodOptional<z.ZodString>;
|
|
2397
2552
|
}, "strip", z.ZodTypeAny, {
|
|
2398
2553
|
signType: "personal" | "typedData";
|
|
2554
|
+
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;
|
|
2399
2555
|
message?: string | undefined;
|
|
2400
2556
|
walletId?: string | undefined;
|
|
2401
|
-
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;
|
|
2402
2557
|
typedData?: {
|
|
2403
2558
|
message: Record<string, unknown>;
|
|
2404
2559
|
domain: {
|
|
2405
2560
|
name?: string | undefined;
|
|
2406
|
-
version?: string | undefined;
|
|
2407
2561
|
chainId?: string | number | bigint | undefined;
|
|
2562
|
+
version?: string | undefined;
|
|
2408
2563
|
verifyingContract?: string | undefined;
|
|
2409
2564
|
salt?: string | undefined;
|
|
2410
2565
|
};
|
|
@@ -2415,15 +2570,15 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2415
2570
|
primaryType: string;
|
|
2416
2571
|
} | undefined;
|
|
2417
2572
|
}, {
|
|
2573
|
+
network?: unknown;
|
|
2418
2574
|
message?: string | undefined;
|
|
2419
2575
|
walletId?: string | undefined;
|
|
2420
|
-
network?: unknown;
|
|
2421
2576
|
typedData?: {
|
|
2422
2577
|
message: Record<string, unknown>;
|
|
2423
2578
|
domain: {
|
|
2424
2579
|
name?: string | undefined;
|
|
2425
|
-
version?: string | undefined;
|
|
2426
2580
|
chainId?: string | number | bigint | undefined;
|
|
2581
|
+
version?: string | undefined;
|
|
2427
2582
|
verifyingContract?: string | undefined;
|
|
2428
2583
|
salt?: string | undefined;
|
|
2429
2584
|
};
|
|
@@ -2436,15 +2591,15 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2436
2591
|
signType?: "personal" | "typedData" | undefined;
|
|
2437
2592
|
}>, {
|
|
2438
2593
|
signType: "personal" | "typedData";
|
|
2594
|
+
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;
|
|
2439
2595
|
message?: string | undefined;
|
|
2440
2596
|
walletId?: string | undefined;
|
|
2441
|
-
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;
|
|
2442
2597
|
typedData?: {
|
|
2443
2598
|
message: Record<string, unknown>;
|
|
2444
2599
|
domain: {
|
|
2445
2600
|
name?: string | undefined;
|
|
2446
|
-
version?: string | undefined;
|
|
2447
2601
|
chainId?: string | number | bigint | undefined;
|
|
2602
|
+
version?: string | undefined;
|
|
2448
2603
|
verifyingContract?: string | undefined;
|
|
2449
2604
|
salt?: string | undefined;
|
|
2450
2605
|
};
|
|
@@ -2455,15 +2610,15 @@ export declare const SignMessageRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2455
2610
|
primaryType: string;
|
|
2456
2611
|
} | undefined;
|
|
2457
2612
|
}, {
|
|
2613
|
+
network?: unknown;
|
|
2458
2614
|
message?: string | undefined;
|
|
2459
2615
|
walletId?: string | undefined;
|
|
2460
|
-
network?: unknown;
|
|
2461
2616
|
typedData?: {
|
|
2462
2617
|
message: Record<string, unknown>;
|
|
2463
2618
|
domain: {
|
|
2464
2619
|
name?: string | undefined;
|
|
2465
|
-
version?: string | undefined;
|
|
2466
2620
|
chainId?: string | number | bigint | undefined;
|
|
2621
|
+
version?: string | undefined;
|
|
2467
2622
|
verifyingContract?: string | undefined;
|
|
2468
2623
|
salt?: string | undefined;
|
|
2469
2624
|
};
|