otto-intel-mcp 0.1.2 → 0.1.4
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 +76 -18
- package/dist/account-userop-policy-definition.d.ts +14 -0
- package/dist/account-userop-policy-definition.js +12 -0
- package/dist/account-userop-policy-relation.d.ts +371 -0
- package/dist/account-userop-policy-relation.js +87 -0
- package/dist/adapter/cdp-signer.d.ts +76 -9
- package/dist/adapter/cdp-signer.js +274 -33
- package/dist/adapter/evm-call-failure.d.ts +29 -0
- package/dist/adapter/evm-call-failure.js +109 -0
- package/dist/adapter/refusal.d.ts +1 -1
- package/dist/adapter/refusal.js +13 -0
- package/dist/adapter/route-simulator.d.ts +91 -0
- package/dist/adapter/route-simulator.js +143 -0
- package/dist/adapter-cdp-index.d.ts +1 -1
- package/dist/executable-equities.d.ts +55 -0
- package/dist/executable-equities.js +116 -0
- package/dist/executable-yield-markets.d.ts +261 -0
- package/dist/executable-yield-markets.js +154 -0
- package/dist/execution-account-gas-quote.d.ts +141 -0
- package/dist/execution-account-gas-quote.js +443 -0
- package/dist/execution-account-gas-review.d.ts +123 -0
- package/dist/execution-account-gas-review.js +104 -0
- package/dist/execution-account-gas-runtime.d.ts +33 -0
- package/dist/execution-account-gas-runtime.js +131 -0
- package/dist/execution-account-gas-view.d.ts +936 -0
- package/dist/execution-account-gas-view.js +56 -0
- package/dist/execution-config.d.ts +3 -0
- package/dist/execution-config.js +4 -0
- package/dist/execution-delegated-definition.d.ts +7 -6
- package/dist/execution-delegated-definition.js +13 -2
- package/dist/execution-delegation-admin-definition.d.ts +127 -5
- package/dist/execution-delegation-admin-definition.js +155 -5
- package/dist/execution-delegation-admin.d.ts +48 -2
- package/dist/execution-delegation-admin.js +422 -12
- package/dist/execution-delegation-cap-store.d.ts +386 -0
- package/dist/execution-delegation-cap-store.js +1150 -0
- package/dist/execution-delegation-exit-definition.d.ts +309 -0
- package/dist/execution-delegation-exit-definition.js +204 -0
- package/dist/execution-delegation-exit-store.d.ts +114 -0
- package/dist/execution-delegation-exit-store.js +671 -0
- package/dist/execution-delegation-exit.d.ts +4 -0
- package/dist/execution-delegation-exit.js +614 -0
- package/dist/execution-delegation-finality.d.ts +22 -0
- package/dist/execution-delegation-finality.js +90 -0
- package/dist/execution-delegation-operation-store.d.ts +129 -0
- package/dist/execution-delegation-operation-store.js +1107 -0
- package/dist/execution-delegation-operations-definition.d.ts +282 -0
- package/dist/execution-delegation-operations-definition.js +117 -0
- package/dist/execution-delegation-operations.d.ts +6 -0
- package/dist/execution-delegation-operations.js +282 -0
- package/dist/execution-delegation-policy.d.ts +154 -8
- package/dist/execution-delegation-policy.js +273 -40
- package/dist/execution-delegation.d.ts +51 -0
- package/dist/execution-delegation.js +441 -31
- package/dist/execution-errors.d.ts +1 -1
- package/dist/execution-errors.js +122 -0
- package/dist/execution-index.d.ts +7 -2
- package/dist/execution-index.js +7 -2
- package/dist/execution-journal-schema.d.ts +96 -0
- package/dist/execution-journal-schema.js +368 -0
- package/dist/execution-journal-tables.d.ts +14 -0
- package/dist/execution-journal-tables.js +227 -0
- package/dist/execution-policy-compatibility.d.ts +34 -0
- package/dist/execution-policy-compatibility.js +76 -0
- package/dist/execution-registration.d.ts +54 -2
- package/dist/execution-registration.js +151 -5
- package/dist/execution-sponsored-account-profile.d.ts +32 -0
- package/dist/execution-sponsored-account-profile.js +59 -0
- package/dist/execution-sponsored-account.d.ts +1519 -0
- package/dist/execution-sponsored-account.js +222 -0
- package/dist/execution-sponsored-definition.d.ts +1713 -0
- package/dist/execution-sponsored-definition.js +185 -0
- package/dist/execution-sponsored-gas-policy.d.ts +27 -0
- package/dist/execution-sponsored-gas-policy.js +110 -0
- package/dist/execution-sponsored-hosted.d.ts +3 -0
- package/dist/execution-sponsored-hosted.js +71 -0
- package/dist/execution-sponsored-index.d.ts +1322 -0
- package/dist/execution-sponsored-index.js +102 -0
- package/dist/execution-sponsored-mcp-definition.d.ts +1662 -0
- package/dist/execution-sponsored-mcp-definition.js +94 -0
- package/dist/execution-sponsored-receipt.d.ts +47 -0
- package/dist/execution-sponsored-receipt.js +74 -0
- package/dist/execution-sponsored-registration.d.ts +14 -0
- package/dist/execution-sponsored-registration.js +77 -0
- package/dist/execution-sponsored-runtime.d.ts +84 -0
- package/dist/execution-sponsored-runtime.js +149 -0
- package/dist/execution-sponsored-settlement.d.ts +15 -0
- package/dist/execution-sponsored-settlement.js +88 -0
- package/dist/execution-sponsored-store.d.ts +67 -0
- package/dist/execution-sponsored-store.js +517 -0
- package/dist/execution-sponsored-transport.d.ts +90 -0
- package/dist/execution-sponsored-transport.js +180 -0
- package/dist/execution-tool-definitions.d.ts +21 -21
- package/dist/execution-tool-definitions.js +0 -7
- package/dist/execution-tools.d.ts +53 -1
- package/dist/execution-tools.js +171 -13
- package/dist/execution-worker-guard.d.ts +28 -0
- package/dist/execution-worker-guard.js +124 -0
- package/dist/hybrid-yield-index.d.ts +10 -0
- package/dist/hybrid-yield-index.js +11 -0
- package/dist/hybrid-yield-markets.d.ts +96 -0
- package/dist/hybrid-yield-markets.js +124 -0
- package/dist/hybrid-yield.d.ts +411 -0
- package/dist/hybrid-yield.js +155 -0
- package/dist/hyperliquid-order-builder.js +4 -0
- package/dist/lifi-execution-client.d.ts +6 -0
- package/dist/lifi-execution-client.js +3 -0
- package/dist/lp-userop-account.d.ts +461 -0
- package/dist/lp-userop-account.js +417 -0
- package/dist/lp-userop-authority.d.ts +49 -0
- package/dist/lp-userop-authority.js +211 -0
- package/dist/lp-userop-definition.d.ts +233 -0
- package/dist/lp-userop-definition.js +85 -0
- package/dist/lp-userop-hosted.d.ts +3 -0
- package/dist/lp-userop-hosted.js +73 -0
- package/dist/lp-userop-index.d.ts +1569 -0
- package/dist/lp-userop-index.js +112 -0
- package/dist/lp-userop-mcp-definition.d.ts +1220 -0
- package/dist/lp-userop-mcp-definition.js +46 -0
- package/dist/lp-userop-operation.d.ts +1230 -0
- package/dist/lp-userop-operation.js +140 -0
- package/dist/lp-userop-registration.d.ts +14 -0
- package/dist/lp-userop-registration.js +70 -0
- package/dist/lp-userop-settlement.d.ts +89 -0
- package/dist/lp-userop-settlement.js +184 -0
- package/dist/lp-userop.d.ts +643 -0
- package/dist/lp-userop.js +343 -0
- package/dist/native-yield-account-definition.d.ts +1192 -0
- package/dist/native-yield-account-definition.js +232 -0
- package/dist/native-yield-account-gas.d.ts +58 -0
- package/dist/native-yield-account-gas.js +228 -0
- package/dist/native-yield-account-index.d.ts +23 -0
- package/dist/native-yield-account-index.js +28 -0
- package/dist/native-yield-account-policy.d.ts +168 -0
- package/dist/native-yield-account-policy.js +525 -0
- package/dist/native-yield-account-rpc.d.ts +8 -0
- package/dist/native-yield-account-rpc.js +128 -0
- package/dist/native-yield-account-runtime.d.ts +71 -0
- package/dist/native-yield-account-runtime.js +125 -0
- package/dist/native-yield-account-store.d.ts +40 -0
- package/dist/native-yield-account-store.js +307 -0
- package/dist/native-yield-account.d.ts +662 -0
- package/dist/native-yield-account.js +371 -0
- package/dist/native-yield-consent-store.d.ts +20 -0
- package/dist/native-yield-consent-store.js +317 -0
- package/dist/native-yield-definition.d.ts +288 -0
- package/dist/native-yield-definition.js +105 -0
- package/dist/native-yield-reader.d.ts +4 -0
- package/dist/native-yield-reader.js +137 -0
- package/dist/native-yield-settlement.d.ts +48 -0
- package/dist/native-yield-settlement.js +167 -0
- package/dist/native-yield-simulation.d.ts +18 -0
- package/dist/native-yield-simulation.js +45 -0
- package/dist/native-yield-userop-account.d.ts +675 -0
- package/dist/native-yield-userop-account.js +357 -0
- package/dist/native-yield-userop-authority.d.ts +214 -0
- package/dist/native-yield-userop-authority.js +296 -0
- package/dist/native-yield-userop-definition.d.ts +331 -0
- package/dist/native-yield-userop-definition.js +105 -0
- package/dist/native-yield-userop-hosted.d.ts +3 -0
- package/dist/native-yield-userop-hosted.js +71 -0
- package/dist/native-yield-userop-index.d.ts +1522 -0
- package/dist/native-yield-userop-index.js +142 -0
- package/dist/native-yield-userop-mcp-definition.d.ts +1356 -0
- package/dist/native-yield-userop-mcp-definition.js +50 -0
- package/dist/native-yield-userop-operation.d.ts +845 -0
- package/dist/native-yield-userop-operation.js +127 -0
- package/dist/native-yield-userop-policy.d.ts +23 -0
- package/dist/native-yield-userop-policy.js +25 -0
- package/dist/native-yield-userop-registration.d.ts +17 -0
- package/dist/native-yield-userop-registration.js +76 -0
- package/dist/native-yield-userop-settlement.d.ts +8 -0
- package/dist/native-yield-userop-settlement.js +79 -0
- package/dist/native-yield-userop-simulation.d.ts +18 -0
- package/dist/native-yield-userop-simulation.js +34 -0
- package/dist/native-yield-userop.d.ts +35 -0
- package/dist/native-yield-userop.js +156 -0
- package/dist/native-yield-verify.d.ts +30 -0
- package/dist/native-yield-verify.js +141 -0
- package/dist/native-yield.d.ts +17 -0
- package/dist/native-yield.js +119 -0
- package/dist/stdio-main.js +0 -0
- package/dist/stock-buy-definition.d.ts +338 -0
- package/dist/stock-buy-definition.js +127 -0
- package/dist/stock-buy-oracle.d.ts +8 -0
- package/dist/stock-buy-oracle.js +22 -0
- package/dist/stock-buy.d.ts +17 -0
- package/dist/stock-buy.js +164 -0
- package/dist/tool-definitions.d.ts +3 -1
- package/dist/tool-definitions.js +55 -2
- package/dist/vendor/lp-v3/lp-v3-atomic-contract.d.ts +445 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-contract.js +90 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-evidence.d.ts +14 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-evidence.js +82 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-index.d.ts +80 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-index.js +19 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-plan.d.ts +43 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-plan.js +112 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.d.ts +312 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.js +41 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-index.d.ts +3 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-index.js +3 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.d.ts +49 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.js +88 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read.d.ts +17 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read.js +232 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-settlement.d.ts +105 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-settlement.js +162 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.d.ts +606 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.js +59 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.d.ts +168 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.js +23 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.d.ts +32 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.js +228 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.d.ts +11 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.js +91 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.d.ts +9 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.js +124 -0
- package/dist/vendor/lp-v3/lp-v3-contract.d.ts +538 -0
- package/dist/vendor/lp-v3/lp-v3-contract.js +137 -0
- package/dist/vendor/lp-v3/lp-v3-evidence.d.ts +25 -0
- package/dist/vendor/lp-v3/lp-v3-evidence.js +168 -0
- package/dist/vendor/lp-v3/lp-v3-plan.d.ts +22 -0
- package/dist/vendor/lp-v3/lp-v3-plan.js +135 -0
- package/dist/vendor/lp-v3/types.d.ts +131 -0
- package/dist/vendor/lp-v3/types.js +6 -0
- package/dist/vendor/lp-v3/v4-math.d.ts +18 -0
- package/dist/vendor/lp-v3/v4-math.js +90 -0
- package/dist/yield-deposit-definition.d.ts +374 -0
- package/dist/yield-deposit-definition.js +123 -0
- package/dist/yield-deposit.d.ts +16 -0
- package/dist/yield-deposit.js +149 -0
- package/dist/yield-route-semantics.d.ts +27 -0
- package/dist/yield-route-semantics.js +71 -0
- package/dist/yield-withdraw-definition.d.ts +357 -0
- package/dist/yield-withdraw-definition.js +90 -0
- package/dist/yield-withdraw.d.ts +11 -0
- package/dist/yield-withdraw.js +122 -0
- package/package.json +239 -7
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
import { AccountGasPaymentRuntime } from './execution-account-gas-runtime.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { NativeYieldUserOpAuthorityIssuer } from './native-yield-userop-authority.js';
|
|
4
|
+
import { type NativeYieldUserOpRuntime } from './native-yield-userop.js';
|
|
5
|
+
import { type NativeUserOpOperation } from './native-yield-userop-operation.js';
|
|
6
|
+
import { SponsoredAccountRuntime } from './execution-sponsored-runtime.js';
|
|
7
|
+
import type { SponsoredOperationStore } from './execution-sponsored-store.js';
|
|
8
|
+
import type { ExecutionWorkerGuardStore } from './execution-worker-guard.js';
|
|
9
|
+
import type { createSponsoredCdpTransport } from './execution-sponsored-transport.js';
|
|
10
|
+
export declare const NATIVE_USEROP_ACCOUNT_PREPARE_INPUT: z.ZodObject<{
|
|
11
|
+
accessToken: z.ZodString;
|
|
12
|
+
input: z.ZodObject<{
|
|
13
|
+
accountProfile: z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"eoa">;
|
|
15
|
+
address: z.ZodString;
|
|
16
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
marketId: z.ZodString;
|
|
19
|
+
registryCommitment: z.ZodString;
|
|
20
|
+
action: z.ZodEnum<{
|
|
21
|
+
deposit: "deposit";
|
|
22
|
+
withdraw: "withdraw";
|
|
23
|
+
}>;
|
|
24
|
+
clientRef: z.ZodOptional<z.ZodString>;
|
|
25
|
+
amount: z.ZodString;
|
|
26
|
+
slippage: z.ZodObject<{
|
|
27
|
+
maxBps: z.ZodNumber;
|
|
28
|
+
minOutput: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export declare const NATIVE_USEROP_ACCOUNT_CONSENT_REVIEW_INPUT: z.ZodObject<{
|
|
33
|
+
accessToken: z.ZodString;
|
|
34
|
+
input: z.ZodObject<{
|
|
35
|
+
accountProfile: z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"eoa">;
|
|
37
|
+
address: z.ZodString;
|
|
38
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
marketId: z.ZodString;
|
|
41
|
+
registryCommitment: z.ZodString;
|
|
42
|
+
action: z.ZodEnum<{
|
|
43
|
+
deposit: "deposit";
|
|
44
|
+
withdraw: "withdraw";
|
|
45
|
+
}>;
|
|
46
|
+
clientRef: z.ZodOptional<z.ZodString>;
|
|
47
|
+
amount: z.ZodString;
|
|
48
|
+
slippage: z.ZodObject<{
|
|
49
|
+
maxBps: z.ZodNumber;
|
|
50
|
+
minOutput: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export declare const NATIVE_USEROP_ACCOUNT_CONSENT_CONFIRM_INPUT: z.ZodObject<{
|
|
55
|
+
accessToken: z.ZodString;
|
|
56
|
+
input: z.ZodObject<{
|
|
57
|
+
accountProfile: z.ZodObject<{
|
|
58
|
+
kind: z.ZodLiteral<"eoa">;
|
|
59
|
+
address: z.ZodString;
|
|
60
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
marketId: z.ZodString;
|
|
63
|
+
registryCommitment: z.ZodString;
|
|
64
|
+
action: z.ZodEnum<{
|
|
65
|
+
deposit: "deposit";
|
|
66
|
+
withdraw: "withdraw";
|
|
67
|
+
}>;
|
|
68
|
+
clientRef: z.ZodOptional<z.ZodString>;
|
|
69
|
+
amount: z.ZodString;
|
|
70
|
+
slippage: z.ZodObject<{
|
|
71
|
+
maxBps: z.ZodNumber;
|
|
72
|
+
minOutput: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
consentId: z.ZodString;
|
|
76
|
+
consentCommitment: z.ZodString;
|
|
77
|
+
confirmation: z.ZodLiteral<"I reviewed the native yield scope and limits">;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export declare const NATIVE_USEROP_ACCOUNT_READ_INPUT: z.ZodObject<{
|
|
80
|
+
accessToken: z.ZodString;
|
|
81
|
+
operationId: z.ZodString;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
export declare const NATIVE_USEROP_ACCOUNT_SUBMIT_INPUT: z.ZodObject<{
|
|
84
|
+
accessToken: z.ZodString;
|
|
85
|
+
operationId: z.ZodString;
|
|
86
|
+
envelopeCommitment: z.ZodString;
|
|
87
|
+
reviewCommitment: z.ZodString;
|
|
88
|
+
confirmation: z.ZodEnum<{
|
|
89
|
+
"I reviewed this native yield action and sponsored atomic batch": "I reviewed this native yield action and sponsored atomic batch";
|
|
90
|
+
"I reviewed this native yield action and account-paid atomic batch": "I reviewed this native yield action and account-paid atomic batch";
|
|
91
|
+
}>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export declare const NATIVE_USEROP_ACCOUNT_REVOKE_CONSENT_INPUT: z.ZodObject<{
|
|
94
|
+
accessToken: z.ZodString;
|
|
95
|
+
account: z.ZodString;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
/** Keep the existing consent identity/state/times while removing its internal authority record. */
|
|
98
|
+
export declare const NATIVE_USEROP_PUBLIC_CONSENT_SCHEMA: z.ZodObject<{
|
|
99
|
+
consentId: z.ZodString;
|
|
100
|
+
consentCommitment: z.ZodString;
|
|
101
|
+
createdAtMs: z.ZodNumber;
|
|
102
|
+
challengeExpiresAtMs: z.ZodNumber;
|
|
103
|
+
state: z.ZodEnum<{
|
|
104
|
+
challenge: "challenge";
|
|
105
|
+
confirmed: "confirmed";
|
|
106
|
+
revoked: "revoked";
|
|
107
|
+
superseded: "superseded";
|
|
108
|
+
}>;
|
|
109
|
+
generation: z.ZodNumber;
|
|
110
|
+
confirmedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
111
|
+
account: z.ZodString;
|
|
112
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export declare const NATIVE_USEROP_PUBLIC_SCOPE_SCHEMA: z.ZodObject<{
|
|
115
|
+
account: z.ZodString;
|
|
116
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
117
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
118
|
+
deposit: "deposit";
|
|
119
|
+
withdraw: "withdraw";
|
|
120
|
+
approve: "approve";
|
|
121
|
+
"approve-reset": "approve-reset";
|
|
122
|
+
revoke: "revoke";
|
|
123
|
+
}>>;
|
|
124
|
+
marketLimits: z.ZodArray<z.ZodObject<{
|
|
125
|
+
marketId: z.ZodString;
|
|
126
|
+
action: z.ZodEnum<{
|
|
127
|
+
deposit: "deposit";
|
|
128
|
+
withdraw: "withdraw";
|
|
129
|
+
}>;
|
|
130
|
+
inputToken: z.ZodString;
|
|
131
|
+
maximumInputAtomic: z.ZodString;
|
|
132
|
+
}, z.core.$strict>>;
|
|
133
|
+
perDepositCapUsd: z.ZodNumber;
|
|
134
|
+
maximumGasCostWei: z.ZodString;
|
|
135
|
+
maximumUserGasCostWei: z.ZodString;
|
|
136
|
+
maximumActivationGasCostWei: z.ZodString;
|
|
137
|
+
expiresAtMs: z.ZodNumber;
|
|
138
|
+
requiresSeparateOperationReview: z.ZodLiteral<true>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export declare const NATIVE_USEROP_ACCOUNT_CONSENT_RESULT: z.ZodObject<{
|
|
141
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
142
|
+
kind: z.ZodLiteral<"native-yield-userop">;
|
|
143
|
+
consent: z.ZodObject<{
|
|
144
|
+
consentId: z.ZodString;
|
|
145
|
+
consentCommitment: z.ZodString;
|
|
146
|
+
createdAtMs: z.ZodNumber;
|
|
147
|
+
challengeExpiresAtMs: z.ZodNumber;
|
|
148
|
+
state: z.ZodEnum<{
|
|
149
|
+
challenge: "challenge";
|
|
150
|
+
confirmed: "confirmed";
|
|
151
|
+
revoked: "revoked";
|
|
152
|
+
superseded: "superseded";
|
|
153
|
+
}>;
|
|
154
|
+
generation: z.ZodNumber;
|
|
155
|
+
confirmedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
156
|
+
account: z.ZodString;
|
|
157
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
account: z.ZodString;
|
|
161
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
162
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
163
|
+
deposit: "deposit";
|
|
164
|
+
withdraw: "withdraw";
|
|
165
|
+
approve: "approve";
|
|
166
|
+
"approve-reset": "approve-reset";
|
|
167
|
+
revoke: "revoke";
|
|
168
|
+
}>>;
|
|
169
|
+
marketLimits: z.ZodArray<z.ZodObject<{
|
|
170
|
+
marketId: z.ZodString;
|
|
171
|
+
action: z.ZodEnum<{
|
|
172
|
+
deposit: "deposit";
|
|
173
|
+
withdraw: "withdraw";
|
|
174
|
+
}>;
|
|
175
|
+
inputToken: z.ZodString;
|
|
176
|
+
maximumInputAtomic: z.ZodString;
|
|
177
|
+
}, z.core.$strict>>;
|
|
178
|
+
perDepositCapUsd: z.ZodNumber;
|
|
179
|
+
maximumGasCostWei: z.ZodString;
|
|
180
|
+
maximumUserGasCostWei: z.ZodString;
|
|
181
|
+
maximumActivationGasCostWei: z.ZodString;
|
|
182
|
+
expiresAtMs: z.ZodNumber;
|
|
183
|
+
requiresSeparateOperationReview: z.ZodLiteral<true>;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
requiresSeparateOperationReview: z.ZodLiteral<true>;
|
|
186
|
+
automaticExecutionEnabled: z.ZodLiteral<false>;
|
|
187
|
+
walletAuthorityChangeIncluded: z.ZodLiteral<false>;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
export declare const NATIVE_USEROP_ACCOUNT_REVOKE_RESULT: z.ZodObject<{
|
|
190
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
191
|
+
kind: z.ZodLiteral<"native-yield-userop">;
|
|
192
|
+
account: z.ZodString;
|
|
193
|
+
nativeConsentRevoked: z.ZodLiteral<true>;
|
|
194
|
+
existingOperationRequiresReconciliation: z.ZodLiteral<true>;
|
|
195
|
+
automaticExecutionEnabled: z.ZodLiteral<false>;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
export declare const NATIVE_USEROP_ACCOUNT_OPERATION_RESULT: z.ZodObject<{
|
|
198
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
199
|
+
kind: z.ZodLiteral<"native-yield-userop">;
|
|
200
|
+
operationId: z.ZodString;
|
|
201
|
+
account: z.ZodString;
|
|
202
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<8453>, z.ZodLiteral<42161>]>;
|
|
203
|
+
marketId: z.ZodString;
|
|
204
|
+
action: z.ZodEnum<{
|
|
205
|
+
deposit: "deposit";
|
|
206
|
+
withdraw: "withdraw";
|
|
207
|
+
}>;
|
|
208
|
+
state: z.ZodEnum<{
|
|
209
|
+
unknown: "unknown";
|
|
210
|
+
submitted: "submitted";
|
|
211
|
+
completed: "completed";
|
|
212
|
+
review: "review";
|
|
213
|
+
active: "active";
|
|
214
|
+
failed: "failed";
|
|
215
|
+
}>;
|
|
216
|
+
reviewConsumed: z.ZodBoolean;
|
|
217
|
+
envelopeCommitment: z.ZodString;
|
|
218
|
+
reviewCommitment: z.ZodString;
|
|
219
|
+
validUntilMs: z.ZodNumber;
|
|
220
|
+
scopeConsent: z.ZodObject<{
|
|
221
|
+
consentId: z.ZodString;
|
|
222
|
+
consentCommitment: z.ZodString;
|
|
223
|
+
generation: z.ZodNumber;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
input: z.ZodObject<{
|
|
226
|
+
token: z.ZodString;
|
|
227
|
+
amount: z.ZodString;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
output: z.ZodObject<{
|
|
230
|
+
token: z.ZodString;
|
|
231
|
+
minimum: z.ZodString;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
estimatedOttoFee: z.ZodObject<{
|
|
234
|
+
token: z.ZodString;
|
|
235
|
+
amount: z.ZodString;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
perDepositCapUsd: z.ZodNumber;
|
|
238
|
+
gas: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
239
|
+
maximumUserCostWei: z.ZodString;
|
|
240
|
+
maximumActivationCostWei: z.ZodString;
|
|
241
|
+
payer: z.ZodLiteral<"sponsor">;
|
|
242
|
+
paymentReview: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
version: z.ZodLiteral<1>;
|
|
244
|
+
revision: z.ZodNumber;
|
|
245
|
+
payer: z.ZodEnum<{
|
|
246
|
+
account: "account";
|
|
247
|
+
sponsor: "sponsor";
|
|
248
|
+
}>;
|
|
249
|
+
sponsorStatus: z.ZodEnum<{
|
|
250
|
+
unavailable: "unavailable";
|
|
251
|
+
eligible: "eligible";
|
|
252
|
+
"above-limit": "above-limit";
|
|
253
|
+
"price-unavailable": "price-unavailable";
|
|
254
|
+
}>;
|
|
255
|
+
subsidyCapUsdMicros: z.ZodLiteral<"100000">;
|
|
256
|
+
quote: z.ZodObject<{
|
|
257
|
+
version: z.ZodLiteral<1>;
|
|
258
|
+
kind: z.ZodLiteral<"estimate">;
|
|
259
|
+
payer: z.ZodLiteral<"user">;
|
|
260
|
+
account: z.ZodString;
|
|
261
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
|
|
262
|
+
entryPoint: z.ZodString;
|
|
263
|
+
nativeAsset: z.ZodObject<{
|
|
264
|
+
symbol: z.ZodEnum<{
|
|
265
|
+
ETH: "ETH";
|
|
266
|
+
POL: "POL";
|
|
267
|
+
}>;
|
|
268
|
+
decimals: z.ZodLiteral<18>;
|
|
269
|
+
}, z.core.$strict>;
|
|
270
|
+
callsCommitment: z.ZodString;
|
|
271
|
+
nonce: z.ZodString;
|
|
272
|
+
blockNumber: z.ZodString;
|
|
273
|
+
blockHash: z.ZodString;
|
|
274
|
+
blockTimestampMs: z.ZodNumber;
|
|
275
|
+
observedAtMs: z.ZodNumber;
|
|
276
|
+
expiresAtMs: z.ZodNumber;
|
|
277
|
+
simulation: z.ZodLiteral<"sender-balance-override">;
|
|
278
|
+
providerEstimate: z.ZodObject<{
|
|
279
|
+
blockAnchor: z.ZodLiteral<"unanchored">;
|
|
280
|
+
startedAtMs: z.ZodNumber;
|
|
281
|
+
completedAtMs: z.ZodNumber;
|
|
282
|
+
elapsedMs: z.ZodNumber;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
gas: z.ZodObject<{
|
|
285
|
+
callGasLimit: z.ZodString;
|
|
286
|
+
verificationGasLimit: z.ZodString;
|
|
287
|
+
preVerificationGas: z.ZodString;
|
|
288
|
+
maxFeePerGasWei: z.ZodString;
|
|
289
|
+
maxPriorityFeePerGasWei: z.ZodString;
|
|
290
|
+
estimatedPrefundWei: z.ZodString;
|
|
291
|
+
reserveWei: z.ZodString;
|
|
292
|
+
estimatedRequiredWei: z.ZodString;
|
|
293
|
+
reserveBps: z.ZodLiteral<"2500">;
|
|
294
|
+
}, z.core.$strict>;
|
|
295
|
+
balance: z.ZodObject<{
|
|
296
|
+
nativeWei: z.ZodString;
|
|
297
|
+
entryPointDepositWei: z.ZodString;
|
|
298
|
+
callValueWei: z.ZodString;
|
|
299
|
+
depositAppliedToGasWei: z.ZodString;
|
|
300
|
+
walletGasRequirementWei: z.ZodString;
|
|
301
|
+
nativeAvailableForGasWei: z.ZodString;
|
|
302
|
+
gasShortfallWei: z.ZodString;
|
|
303
|
+
requiredNativeWei: z.ZodString;
|
|
304
|
+
shortfallWei: z.ZodString;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
usdPrice: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
amountAtomic: z.ZodString;
|
|
308
|
+
decimals: z.ZodNumber;
|
|
309
|
+
observedAtMs: z.ZodNumber;
|
|
310
|
+
expiresAtMs: z.ZodNumber;
|
|
311
|
+
}, z.core.$strict>>;
|
|
312
|
+
estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
|
|
313
|
+
sponsoredEstimate: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
kind: z.ZodLiteral<"estimate">;
|
|
315
|
+
simulation: z.ZodLiteral<"paymaster-stub">;
|
|
316
|
+
entryPointVersion: z.ZodLiteral<"0.6">;
|
|
317
|
+
paymaster: z.ZodString;
|
|
318
|
+
sponsorshipPolicyId: z.ZodString;
|
|
319
|
+
paymasterAndDataCommitment: z.ZodString;
|
|
320
|
+
providerEstimate: z.ZodObject<{
|
|
321
|
+
blockAnchor: z.ZodLiteral<"unanchored">;
|
|
322
|
+
startedAtMs: z.ZodNumber;
|
|
323
|
+
completedAtMs: z.ZodNumber;
|
|
324
|
+
elapsedMs: z.ZodNumber;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
gas: z.ZodObject<{
|
|
327
|
+
callGasLimit: z.ZodString;
|
|
328
|
+
verificationGasLimit: z.ZodString;
|
|
329
|
+
preVerificationGas: z.ZodString;
|
|
330
|
+
maxFeePerGasWei: z.ZodString;
|
|
331
|
+
maxPriorityFeePerGasWei: z.ZodString;
|
|
332
|
+
verificationGasMultiplier: z.ZodLiteral<"3">;
|
|
333
|
+
estimatedPrefundWei: z.ZodString;
|
|
334
|
+
reserveWei: z.ZodString;
|
|
335
|
+
estimatedRequiredWei: z.ZodString;
|
|
336
|
+
reserveBps: z.ZodLiteral<"2500">;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
maximumCostWei: z.ZodString;
|
|
343
|
+
activationChainHalted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
344
|
+
actualCostWei: z.ZodOptional<z.ZodString>;
|
|
345
|
+
reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
|
|
346
|
+
reviewFailure: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
|
|
348
|
+
ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
|
|
349
|
+
ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
|
|
350
|
+
ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
|
|
351
|
+
ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
|
|
352
|
+
ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
|
|
353
|
+
ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
|
|
354
|
+
ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
|
|
355
|
+
}>>;
|
|
356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
357
|
+
payer: z.ZodLiteral<"account">;
|
|
358
|
+
paymentReview: z.ZodObject<{
|
|
359
|
+
version: z.ZodLiteral<1>;
|
|
360
|
+
revision: z.ZodNumber;
|
|
361
|
+
payer: z.ZodEnum<{
|
|
362
|
+
account: "account";
|
|
363
|
+
sponsor: "sponsor";
|
|
364
|
+
}>;
|
|
365
|
+
sponsorStatus: z.ZodEnum<{
|
|
366
|
+
unavailable: "unavailable";
|
|
367
|
+
eligible: "eligible";
|
|
368
|
+
"above-limit": "above-limit";
|
|
369
|
+
"price-unavailable": "price-unavailable";
|
|
370
|
+
}>;
|
|
371
|
+
subsidyCapUsdMicros: z.ZodLiteral<"100000">;
|
|
372
|
+
quote: z.ZodObject<{
|
|
373
|
+
version: z.ZodLiteral<1>;
|
|
374
|
+
kind: z.ZodLiteral<"estimate">;
|
|
375
|
+
payer: z.ZodLiteral<"user">;
|
|
376
|
+
account: z.ZodString;
|
|
377
|
+
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
|
|
378
|
+
entryPoint: z.ZodString;
|
|
379
|
+
nativeAsset: z.ZodObject<{
|
|
380
|
+
symbol: z.ZodEnum<{
|
|
381
|
+
ETH: "ETH";
|
|
382
|
+
POL: "POL";
|
|
383
|
+
}>;
|
|
384
|
+
decimals: z.ZodLiteral<18>;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
callsCommitment: z.ZodString;
|
|
387
|
+
nonce: z.ZodString;
|
|
388
|
+
blockNumber: z.ZodString;
|
|
389
|
+
blockHash: z.ZodString;
|
|
390
|
+
blockTimestampMs: z.ZodNumber;
|
|
391
|
+
observedAtMs: z.ZodNumber;
|
|
392
|
+
expiresAtMs: z.ZodNumber;
|
|
393
|
+
simulation: z.ZodLiteral<"sender-balance-override">;
|
|
394
|
+
providerEstimate: z.ZodObject<{
|
|
395
|
+
blockAnchor: z.ZodLiteral<"unanchored">;
|
|
396
|
+
startedAtMs: z.ZodNumber;
|
|
397
|
+
completedAtMs: z.ZodNumber;
|
|
398
|
+
elapsedMs: z.ZodNumber;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
gas: z.ZodObject<{
|
|
401
|
+
callGasLimit: z.ZodString;
|
|
402
|
+
verificationGasLimit: z.ZodString;
|
|
403
|
+
preVerificationGas: z.ZodString;
|
|
404
|
+
maxFeePerGasWei: z.ZodString;
|
|
405
|
+
maxPriorityFeePerGasWei: z.ZodString;
|
|
406
|
+
estimatedPrefundWei: z.ZodString;
|
|
407
|
+
reserveWei: z.ZodString;
|
|
408
|
+
estimatedRequiredWei: z.ZodString;
|
|
409
|
+
reserveBps: z.ZodLiteral<"2500">;
|
|
410
|
+
}, z.core.$strict>;
|
|
411
|
+
balance: z.ZodObject<{
|
|
412
|
+
nativeWei: z.ZodString;
|
|
413
|
+
entryPointDepositWei: z.ZodString;
|
|
414
|
+
callValueWei: z.ZodString;
|
|
415
|
+
depositAppliedToGasWei: z.ZodString;
|
|
416
|
+
walletGasRequirementWei: z.ZodString;
|
|
417
|
+
nativeAvailableForGasWei: z.ZodString;
|
|
418
|
+
gasShortfallWei: z.ZodString;
|
|
419
|
+
requiredNativeWei: z.ZodString;
|
|
420
|
+
shortfallWei: z.ZodString;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
usdPrice: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
amountAtomic: z.ZodString;
|
|
424
|
+
decimals: z.ZodNumber;
|
|
425
|
+
observedAtMs: z.ZodNumber;
|
|
426
|
+
expiresAtMs: z.ZodNumber;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
|
|
429
|
+
sponsoredEstimate: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
kind: z.ZodLiteral<"estimate">;
|
|
431
|
+
simulation: z.ZodLiteral<"paymaster-stub">;
|
|
432
|
+
entryPointVersion: z.ZodLiteral<"0.6">;
|
|
433
|
+
paymaster: z.ZodString;
|
|
434
|
+
sponsorshipPolicyId: z.ZodString;
|
|
435
|
+
paymasterAndDataCommitment: z.ZodString;
|
|
436
|
+
providerEstimate: z.ZodObject<{
|
|
437
|
+
blockAnchor: z.ZodLiteral<"unanchored">;
|
|
438
|
+
startedAtMs: z.ZodNumber;
|
|
439
|
+
completedAtMs: z.ZodNumber;
|
|
440
|
+
elapsedMs: z.ZodNumber;
|
|
441
|
+
}, z.core.$strict>;
|
|
442
|
+
gas: z.ZodObject<{
|
|
443
|
+
callGasLimit: z.ZodString;
|
|
444
|
+
verificationGasLimit: z.ZodString;
|
|
445
|
+
preVerificationGas: z.ZodString;
|
|
446
|
+
maxFeePerGasWei: z.ZodString;
|
|
447
|
+
maxPriorityFeePerGasWei: z.ZodString;
|
|
448
|
+
verificationGasMultiplier: z.ZodLiteral<"3">;
|
|
449
|
+
estimatedPrefundWei: z.ZodString;
|
|
450
|
+
reserveWei: z.ZodString;
|
|
451
|
+
estimatedRequiredWei: z.ZodString;
|
|
452
|
+
reserveBps: z.ZodLiteral<"2500">;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
}, z.core.$strict>;
|
|
457
|
+
}, z.core.$strict>;
|
|
458
|
+
actualCostWei: z.ZodOptional<z.ZodString>;
|
|
459
|
+
reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
|
|
460
|
+
reviewFailure: z.ZodOptional<z.ZodEnum<{
|
|
461
|
+
ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
|
|
462
|
+
ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
|
|
463
|
+
ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
|
|
464
|
+
ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
|
|
465
|
+
ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
|
|
466
|
+
ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
|
|
467
|
+
ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
|
|
468
|
+
ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
|
|
469
|
+
}>>;
|
|
470
|
+
}, z.core.$strict>], "payer">;
|
|
471
|
+
requiresOperationReview: z.ZodBoolean;
|
|
472
|
+
confirmation: z.ZodEnum<{
|
|
473
|
+
"I reviewed this native yield action and sponsored atomic batch": "I reviewed this native yield action and sponsored atomic batch";
|
|
474
|
+
"I reviewed this native yield action and account-paid atomic batch": "I reviewed this native yield action and account-paid atomic batch";
|
|
475
|
+
}>;
|
|
476
|
+
protocolActionVerified: z.ZodBoolean;
|
|
477
|
+
userOpHash: z.ZodOptional<z.ZodString>;
|
|
478
|
+
transactionHash: z.ZodOptional<z.ZodString>;
|
|
479
|
+
settlement: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
480
|
+
status: z.ZodLiteral<"completed">;
|
|
481
|
+
protocolActionVerified: z.ZodLiteral<true>;
|
|
482
|
+
transactionHash: z.ZodString;
|
|
483
|
+
userOpHash: z.ZodString;
|
|
484
|
+
blockHash: z.ZodString;
|
|
485
|
+
marketId: z.ZodString;
|
|
486
|
+
action: z.ZodEnum<{
|
|
487
|
+
deposit: "deposit";
|
|
488
|
+
withdraw: "withdraw";
|
|
489
|
+
}>;
|
|
490
|
+
inputAllowance: z.ZodLiteral<"0">;
|
|
491
|
+
protocolAllowance: z.ZodLiteral<"0">;
|
|
492
|
+
releaseClaim: z.ZodLiteral<true>;
|
|
493
|
+
retrySafe: z.ZodLiteral<false>;
|
|
494
|
+
actualInput: z.ZodString;
|
|
495
|
+
actualOutput: z.ZodString;
|
|
496
|
+
actualOttoFee: z.ZodString;
|
|
497
|
+
feeToken: z.ZodString;
|
|
498
|
+
blockNumber: z.ZodString;
|
|
499
|
+
owner: z.ZodString;
|
|
500
|
+
positionBalanceAtBlock: z.ZodString;
|
|
501
|
+
assetBalanceAtBlock: z.ZodString;
|
|
502
|
+
routerNonceAtBlock: z.ZodString;
|
|
503
|
+
actualGasCostWei: z.ZodString;
|
|
504
|
+
actualGasUsed: z.ZodString;
|
|
505
|
+
paymaster: z.ZodString;
|
|
506
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
507
|
+
status: z.ZodLiteral<"reverted">;
|
|
508
|
+
protocolActionVerified: z.ZodLiteral<false>;
|
|
509
|
+
transactionHash: z.ZodString;
|
|
510
|
+
userOpHash: z.ZodString;
|
|
511
|
+
blockHash: z.ZodString;
|
|
512
|
+
marketId: z.ZodString;
|
|
513
|
+
action: z.ZodEnum<{
|
|
514
|
+
deposit: "deposit";
|
|
515
|
+
withdraw: "withdraw";
|
|
516
|
+
}>;
|
|
517
|
+
inputAllowance: z.ZodLiteral<"0">;
|
|
518
|
+
protocolAllowance: z.ZodLiteral<"0">;
|
|
519
|
+
releaseClaim: z.ZodLiteral<true>;
|
|
520
|
+
retrySafe: z.ZodLiteral<false>;
|
|
521
|
+
blockNumber: z.ZodString;
|
|
522
|
+
owner: z.ZodString;
|
|
523
|
+
positionBalanceAtBlock: z.ZodString;
|
|
524
|
+
assetBalanceAtBlock: z.ZodString;
|
|
525
|
+
routerNonceAtBlock: z.ZodString;
|
|
526
|
+
actualGasCostWei: z.ZodString;
|
|
527
|
+
actualGasUsed: z.ZodString;
|
|
528
|
+
paymaster: z.ZodString;
|
|
529
|
+
}, z.core.$strict>]>>;
|
|
530
|
+
failureCode: z.ZodOptional<z.ZodEnum<{
|
|
531
|
+
SPONSOR_GAS_CAP_EXCEEDED: "SPONSOR_GAS_CAP_EXCEEDED";
|
|
532
|
+
SPONSOR_NOT_SUBMITTED: "SPONSOR_NOT_SUBMITTED";
|
|
533
|
+
SPONSOR_USER_OPERATION_REVERTED: "SPONSOR_USER_OPERATION_REVERTED";
|
|
534
|
+
}>>;
|
|
535
|
+
attention: z.ZodOptional<z.ZodLiteral<"The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement.">>;
|
|
536
|
+
automaticExecutionEnabled: z.ZodLiteral<false>;
|
|
537
|
+
walletAuthorityChangeIncluded: z.ZodLiteral<false>;
|
|
538
|
+
retrySafe: z.ZodLiteral<false>;
|
|
539
|
+
}, z.core.$strict>;
|
|
540
|
+
export type NativeYieldUserOpAccountView = z.infer<typeof NATIVE_USEROP_ACCOUNT_OPERATION_RESULT>;
|
|
541
|
+
export type NativeYieldUserOpAccountStore = ReturnType<SponsoredOperationStore['forNativeYieldUserOp']>;
|
|
542
|
+
export declare function nativeYieldUserOpAccountView(operation: NativeUserOpOperation): NativeYieldUserOpAccountView;
|
|
543
|
+
export declare class NativeYieldUserOpAccountService {
|
|
544
|
+
private readonly issuer;
|
|
545
|
+
private readonly protocols;
|
|
546
|
+
private readonly runtime;
|
|
547
|
+
private readonly store;
|
|
548
|
+
private readonly guards;
|
|
549
|
+
private readonly transport;
|
|
550
|
+
private readonly gasRuntime?;
|
|
551
|
+
constructor(issuer: NativeYieldUserOpAuthorityIssuer, protocols: Readonly<Partial<Record<8453 | 42161, NativeYieldUserOpRuntime>>>, runtime: SponsoredAccountRuntime, store: NativeYieldUserOpAccountStore, guards: ExecutionWorkerGuardStore, transport: ReturnType<typeof createSponsoredCdpTransport>, gasRuntime?: AccountGasPaymentRuntime | undefined);
|
|
552
|
+
private protocol;
|
|
553
|
+
private owned;
|
|
554
|
+
reviewConsent(raw: unknown): Promise<{
|
|
555
|
+
schemaVersion: "1";
|
|
556
|
+
kind: "native-yield-userop";
|
|
557
|
+
consent: {
|
|
558
|
+
consentId: string;
|
|
559
|
+
consentCommitment: string;
|
|
560
|
+
createdAtMs: number;
|
|
561
|
+
challengeExpiresAtMs: number;
|
|
562
|
+
state: "challenge" | "confirmed" | "revoked" | "superseded";
|
|
563
|
+
generation: number;
|
|
564
|
+
confirmedAtMs: number | null;
|
|
565
|
+
account: string;
|
|
566
|
+
chainId: 8453 | 42161;
|
|
567
|
+
};
|
|
568
|
+
requiresSeparateOperationReview: true;
|
|
569
|
+
automaticExecutionEnabled: false;
|
|
570
|
+
walletAuthorityChangeIncluded: false;
|
|
571
|
+
scope?: {
|
|
572
|
+
account: string;
|
|
573
|
+
chainId: 8453 | 42161;
|
|
574
|
+
scopes: ("deposit" | "withdraw" | "approve" | "approve-reset" | "revoke")[];
|
|
575
|
+
marketLimits: {
|
|
576
|
+
marketId: string;
|
|
577
|
+
action: "deposit" | "withdraw";
|
|
578
|
+
inputToken: string;
|
|
579
|
+
maximumInputAtomic: string;
|
|
580
|
+
}[];
|
|
581
|
+
perDepositCapUsd: number;
|
|
582
|
+
maximumGasCostWei: string;
|
|
583
|
+
maximumUserGasCostWei: string;
|
|
584
|
+
maximumActivationGasCostWei: string;
|
|
585
|
+
expiresAtMs: number;
|
|
586
|
+
requiresSeparateOperationReview: true;
|
|
587
|
+
} | undefined;
|
|
588
|
+
}>;
|
|
589
|
+
createConsent(raw: unknown): Promise<{
|
|
590
|
+
schemaVersion: "1";
|
|
591
|
+
kind: "native-yield-userop";
|
|
592
|
+
consent: {
|
|
593
|
+
consentId: string;
|
|
594
|
+
consentCommitment: string;
|
|
595
|
+
createdAtMs: number;
|
|
596
|
+
challengeExpiresAtMs: number;
|
|
597
|
+
state: "challenge" | "confirmed" | "revoked" | "superseded";
|
|
598
|
+
generation: number;
|
|
599
|
+
confirmedAtMs: number | null;
|
|
600
|
+
account: string;
|
|
601
|
+
chainId: 8453 | 42161;
|
|
602
|
+
};
|
|
603
|
+
requiresSeparateOperationReview: true;
|
|
604
|
+
automaticExecutionEnabled: false;
|
|
605
|
+
walletAuthorityChangeIncluded: false;
|
|
606
|
+
scope?: {
|
|
607
|
+
account: string;
|
|
608
|
+
chainId: 8453 | 42161;
|
|
609
|
+
scopes: ("deposit" | "withdraw" | "approve" | "approve-reset" | "revoke")[];
|
|
610
|
+
marketLimits: {
|
|
611
|
+
marketId: string;
|
|
612
|
+
action: "deposit" | "withdraw";
|
|
613
|
+
inputToken: string;
|
|
614
|
+
maximumInputAtomic: string;
|
|
615
|
+
}[];
|
|
616
|
+
perDepositCapUsd: number;
|
|
617
|
+
maximumGasCostWei: string;
|
|
618
|
+
maximumUserGasCostWei: string;
|
|
619
|
+
maximumActivationGasCostWei: string;
|
|
620
|
+
expiresAtMs: number;
|
|
621
|
+
requiresSeparateOperationReview: true;
|
|
622
|
+
} | undefined;
|
|
623
|
+
}>;
|
|
624
|
+
confirmConsent(raw: unknown): Promise<{
|
|
625
|
+
schemaVersion: "1";
|
|
626
|
+
kind: "native-yield-userop";
|
|
627
|
+
consent: {
|
|
628
|
+
consentId: string;
|
|
629
|
+
consentCommitment: string;
|
|
630
|
+
createdAtMs: number;
|
|
631
|
+
challengeExpiresAtMs: number;
|
|
632
|
+
state: "challenge" | "confirmed" | "revoked" | "superseded";
|
|
633
|
+
generation: number;
|
|
634
|
+
confirmedAtMs: number | null;
|
|
635
|
+
account: string;
|
|
636
|
+
chainId: 8453 | 42161;
|
|
637
|
+
};
|
|
638
|
+
requiresSeparateOperationReview: true;
|
|
639
|
+
automaticExecutionEnabled: false;
|
|
640
|
+
walletAuthorityChangeIncluded: false;
|
|
641
|
+
scope?: {
|
|
642
|
+
account: string;
|
|
643
|
+
chainId: 8453 | 42161;
|
|
644
|
+
scopes: ("deposit" | "withdraw" | "approve" | "approve-reset" | "revoke")[];
|
|
645
|
+
marketLimits: {
|
|
646
|
+
marketId: string;
|
|
647
|
+
action: "deposit" | "withdraw";
|
|
648
|
+
inputToken: string;
|
|
649
|
+
maximumInputAtomic: string;
|
|
650
|
+
}[];
|
|
651
|
+
perDepositCapUsd: number;
|
|
652
|
+
maximumGasCostWei: string;
|
|
653
|
+
maximumUserGasCostWei: string;
|
|
654
|
+
maximumActivationGasCostWei: string;
|
|
655
|
+
expiresAtMs: number;
|
|
656
|
+
requiresSeparateOperationReview: true;
|
|
657
|
+
} | undefined;
|
|
658
|
+
}>;
|
|
659
|
+
revokeConsent(raw: unknown): Promise<{
|
|
660
|
+
schemaVersion: "1";
|
|
661
|
+
kind: "native-yield-userop";
|
|
662
|
+
account: string;
|
|
663
|
+
nativeConsentRevoked: true;
|
|
664
|
+
existingOperationRequiresReconciliation: true;
|
|
665
|
+
automaticExecutionEnabled: false;
|
|
666
|
+
}>;
|
|
667
|
+
prepare(raw: unknown): Promise<NativeYieldUserOpAccountView>;
|
|
668
|
+
reviewGas(raw: unknown): Promise<NativeYieldUserOpAccountView>;
|
|
669
|
+
read(raw: unknown): Promise<NativeYieldUserOpAccountView>;
|
|
670
|
+
private assertCurrentReview;
|
|
671
|
+
submit(raw: unknown): Promise<NativeYieldUserOpAccountView>;
|
|
672
|
+
/** Owned recovery deliberately needs neither an active grant, unexpired review nor current sending authority. */
|
|
673
|
+
reconcile(raw: unknown): Promise<NativeYieldUserOpAccountView>;
|
|
674
|
+
private reconcileOwned;
|
|
675
|
+
}
|