Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

feat: blob inclusion list #220

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var (
Usage: "peer type to use, options are 'bidder', 'provider' or 'bootnode'",
EnvVars: []string{"MEV_COMMIT_PEER_TYPE"},
Value: "bidder",
Action: stringInCheck("peer-type", []string{"bidder", "provider", "bootnode"}),
Action: stringInCheck("peer-type", []string{"bidder", "provider", "bootnode", "relay"}),
})

optionP2PPort = altsrc.NewIntFlag(&cli.IntFlag{
Expand Down
304 changes: 167 additions & 137 deletions gen/go/rpc/bidderapi/v1/bidderapi.pb.go

Large diffs are not rendered by default.

481 changes: 384 additions & 97 deletions gen/go/rpc/providerapi/v1/providerapi.pb.go

Large diffs are not rendered by default.

121 changes: 121 additions & 0 deletions gen/go/rpc/providerapi/v1/providerapi.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 46 additions & 7 deletions gen/go/rpc/providerapi/v1/providerapi_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions gen/openapi/rpc/bidderapi/v1/bidderapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ definitions:
type: string
format: int64
description: Max block number that the bidder wants to include the transaction in.
isBlob:
type: boolean
description: Boolean flag to indicate if the bid is for a blob.
description: Unsigned bid message from bidders to the bidder mev-commit node.
title: Bid message
required:
Expand Down Expand Up @@ -166,6 +169,11 @@ definitions:
providerAddress:
type: string
description: Hex string encoding of the address of the provider that signed the commitment signature.
blobCommitters:
type: array
items:
type: string
description: Hex string encoding of the addresses of the committers that immediately the blob commitment.
v1PrepayResponse:
type: object
example:
Expand Down
52 changes: 52 additions & 0 deletions gen/openapi/rpc/providerapi/v1/providerapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,32 @@ paths:
in: path
required: true
type: string
/v1/provider/get_block_inclusion_list/{blockNumber}:
get:
summary: GetBlockInclusionList
operationId: Provider_GetBlockInclusionList
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/v1InclusionListResp'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: blockNumber
description: Block number for which the provider wants to get the inclusion list.
in: path
required: true
type: string
format: int64
- name: relayAddress
description: Hex encoding of the address of the relay.
in: query
required: false
type: string
pattern: '[a-fA-F0-9]{40}'
/v1/provider/get_min_stake:
get:
summary: GetMinStake
Expand Down Expand Up @@ -230,6 +256,17 @@ definitions:
title: Cancel response
required:
- txHash
v1InclusionListResp:
type: object
properties:
relayList:
type: array
items:
type: object
$ref: '#/definitions/v1RelayInclusionList'
description: Inclusion list response message from the mev-commit node for a particular relay.
description: Inclusion list response message from the mev-commit node to the provider.
title: Inclusion list response
v1PendingTxnsResponse:
type: object
properties:
Expand All @@ -243,6 +280,21 @@ definitions:
title: Pending transactions list
required:
- pendingTxns
v1RelayInclusionList:
type: object
properties:
relayAddress:
type: string
description: Hex encoding of the address of the relay.
pattern: '[a-fA-F0-9]{40}'
txHashes:
type: array
items:
type: string
pattern: '[a-fA-F0-9]{64}'
description: Hex string encoding of the hashes of the transactions included in the block.
description: Inclusion list response message from the mev-commit node for a particular relay.
title: Relay inclusion list
v1StakeResponse:
type: object
example:
Expand Down
Loading
Loading