-
Notifications
You must be signed in to change notification settings - Fork 506
eth: add fillTransaction, drop raw field #803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| - name: eth_fillTransaction | ||
| summary: Fills in missing transaction fields to be signed and submitted. | ||
| params: | ||
| - name: Transaction | ||
| required: true | ||
| schema: | ||
| $ref: '#/components/schemas/GenericTransaction' | ||
| result: | ||
| name: Transaction result | ||
| schema: | ||
| $ref: '#/components/schemas/FillTransactionResult' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,6 +155,33 @@ Transaction4844Unsigned: | |
| title: chainId | ||
| description: Chain ID that this transaction is valid on | ||
| $ref: '#/components/schemas/uint' | ||
| Transaction4844UnsignedWithSidecar: | ||
| title: Unsigned 4844 transaction with sidecar | ||
| type: object | ||
| allOf: | ||
| - $ref: '#/components/schemas/Transaction4844Unsigned' | ||
| - title: EIP-4844 transaction signature properties. | ||
| required: | ||
| - blobs | ||
| - commitments | ||
| - proofs | ||
| properties: | ||
| blobs: | ||
| title: blobs | ||
| description: Raw blob data. | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/bytes' | ||
| commitments: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We might need to update these to support the more recent cell proofs
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for the post-PeerDAS sidecar shape would you prefer we mirror the engine API pattern with a separate Transaction4844UnsignedWithSidecarV2 cell proofs variant added alongside the existing one in FilledTransaction.oneOf, replace the current proofs field outright since the spec ships through-fork, or keep proofs as bytes[] with a fork conditional description? |
||
| title: Blob commitments. | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/bytes' | ||
| proofs: | ||
| title: Blob proofs. | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/bytes' | ||
| AccessListEntry: | ||
| title: Access list entry | ||
| type: object | ||
|
|
@@ -550,6 +577,18 @@ GenericTransaction: | |
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/bytes' | ||
| commitments: | ||
| title: commitments | ||
| description: List of blob commitments as per EIP-4844. | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/bytes' | ||
| proofs: | ||
| title: proofs | ||
| description: List of blob proofs as per EIP-4844. | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/bytes' | ||
| chainId: | ||
| title: chainId | ||
| description: Chain ID that this transaction is valid on. | ||
|
|
@@ -558,3 +597,33 @@ GenericTransaction: | |
| title: authorizationList | ||
| description: EIP-7702 authorization list | ||
| $ref: '#/components/schemas/AuthorizationList' | ||
| SignTransactionResult: | ||
| type: object | ||
| title: Encoded and raw signed transaction object. | ||
| required: | ||
| - raw | ||
| - tx | ||
| properties: | ||
| raw: | ||
| title: raw | ||
| $ref: '#/components/schemas/bytes' | ||
| tx: | ||
| title: tx | ||
| $ref: '#/components/schemas/TransactionSigned' | ||
| FilledTransaction: | ||
| oneOf: | ||
| - $ref: '#/components/schemas/Transaction7702Unsigned' | ||
| - $ref: '#/components/schemas/Transaction4844UnsignedWithSidecar' | ||
| - $ref: '#/components/schemas/Transaction4844Unsigned' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Want 7702 tx too |
||
| - $ref: '#/components/schemas/Transaction1559Unsigned' | ||
| - $ref: '#/components/schemas/Transaction2930Unsigned' | ||
| - $ref: '#/components/schemas/TransactionLegacyUnsigned' | ||
| FillTransactionResult: | ||
| type: object | ||
| title: Filled unsigned transaction object. | ||
| required: | ||
| - tx | ||
| properties: | ||
| tx: | ||
| title: tx | ||
| $ref: '#/components/schemas/FilledTransaction' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example could have been kept btw