Skip to content

Commit c9fdf14

Browse files
authored
fix openrpc api issues (#25)
* fix userop sim issues * fix gas optimized txns issues * fix private txns api * fix bundler api issues * fix issues in debug & gas manager coverage api * fix issues in trace api
1 parent aaa29f0 commit c9fdf14

File tree

6 files changed

+397
-332
lines changed

6 files changed

+397
-332
lines changed

src/openrpc/alchemy/_shared/components.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ BlockChange:
125125

126126
notFound:
127127
title: "Not Found (null)"
128-
type: "null"
128+
type: "string"
129129

130130
AssetChange:
131131
type: object
@@ -186,11 +186,9 @@ UserOperationV06:
186186
nonce:
187187
$ref: "#/components/schemas/uint"
188188
description: "Anti-replay parameter; used as salt for first-time account creation"
189-
required: false
190189
initCode:
191190
$ref: "#/components/schemas/bytes"
192191
description: "The initCode of the account (needed if the account is not yet on-chain and needs creation)"
193-
required: false
194192
callData:
195193
$ref: "#/components/schemas/bytes"
196194
description: "Encoded data for the primary function call or operation"
@@ -226,11 +224,9 @@ UserOperationV06Partial:
226224
nonce:
227225
$ref: "#/components/schemas/uint"
228226
description: "Anti-replay parameter; used as salt for first-time account creation"
229-
required: false
230227
initCode:
231228
$ref: "#/components/schemas/bytes"
232229
description: "The initCode of the account (needed if the account is not yet on-chain and needs creation)"
233-
required: false
234230
callData:
235231
$ref: "#/components/schemas/bytes"
236232
description: "Encoded data for the primary function call or operation"

src/openrpc/alchemy/bundler/methods.yaml

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
- name: rundler_maxPriorityFeePerGas example
1111
params: []
1212
result:
13-
jsonrpc: "2.0"
14-
id: 1
15-
result: "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
13+
name: Estimated priority fee
14+
value:
15+
jsonrpc: "2.0"
16+
id: 1
17+
result: "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
1618

1719
- name: eth_getUserOperationReceipt
1820
summary: Get the UserOperationReceipt based on the userOpHash.
@@ -38,9 +40,11 @@
3840
- name: userOpHash
3941
value: "0x93c06f3f5909cc2b192713ed9bf93e3e1fde4b22fcd2466304fa404f9b80ff90"
4042
result:
41-
jsonrpc: "2.0"
42-
id: 1
43-
result:
43+
name: UserOperationReceipt
44+
value:
45+
jsonrpc: "2.0"
46+
id: 1
47+
result:
4448
userOpHash: "0x77c0b560eb0b042902abc5613f768d2a6b2d67481247e9663bf4d68dec0ca122"
4549
entryPoint: "0xc944E90C64B2c07662A292be6244BDf05Cda44a7"
4650
sender: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
@@ -71,9 +75,11 @@
7175
- name: eth_supportedEntryPoints example
7276
params: []
7377
result:
74-
jsonrpc: "2.0"
75-
id: 1
76-
result:
78+
name: Supported entryPoints
79+
value:
80+
jsonrpc: "2.0"
81+
id: 1
82+
result:
7783
- "0xcd01C8aa8995A59eB7B2627E69b40e0524B5ecf8"
7884
- "0x7A0A0d159218E6a2f407B99173A2b12A6DDfC2a6"
7985

@@ -101,9 +107,11 @@
101107
- name: userOpHash
102108
value: "0x77c0b560eb0b042902abc5613f768d2a6b2d67481247e9663bf4d68dec0ca122"
103109
result:
104-
jsonrpc: "2.0"
105-
id: 1
106-
result:
110+
name: UserOperation
111+
value:
112+
jsonrpc: "2.0"
113+
id: 1
114+
result:
107115
sender: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
108116
nonce: 1
109117
initCode: "0x"
@@ -148,9 +156,11 @@
148156
- name: Entrypoint address
149157
value: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
150158
result:
151-
jsonrpc: "2.0"
152-
id: 1
153-
result: "0x1234...5678"
159+
name: userOpHash
160+
value:
161+
jsonrpc: "2.0"
162+
id: 1
163+
result: "0x1234...5678"
154164

155165
- name: eth_estimateUserOperationGas
156166
summary: Estimates the gas values for a UserOperation.
@@ -210,9 +220,11 @@
210220
- name: Entrypoint address
211221
value: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
212222
result:
213-
jsonrpc: "2.0"
214-
id: 1
215-
result:
223+
name: Gas estimation
224+
value:
225+
jsonrpc: "2.0"
226+
id: 1
227+
result:
216228
preVerificationGas: "0x1"
217229
verificationGasLimit: "0x1"
218230
callGasLimit: "0x1"

0 commit comments

Comments
 (0)