Skip to main content

Module proto

Module proto 

Source
Expand description

The v2 API contract, generated by build.rs from the proto files in proto/: message types, the tonic server traits, and the protoJSON Serialize/Deserialize impls that define the HTTP wire encoding. render builds these messages from consensus types.

Modules§

advz_merkle_node
Nested message and enum types in AdvzMerkleNode.
availability_service_server
Generated server implementations.
catchup_service_server
Generated server implementations.
config_service_server
Generated server implementations.
database_service_server
Generated server implementations.
explorer_service_server
Generated server implementations.
fee_merkle_proof
Nested message and enum types in FeeMerkleProof.
finality_proof
Nested message and enum types in FinalityProof.
header_response
Nested message and enum types in HeaderResponse.
light_client_service_server
Generated server implementations.
merklized_state_service_server
Generated server implementations.
node_service_server
Generated server implementations.
ns_proof
Nested message and enum types in NsProof.
resolvable_chain_config
Nested message and enum types in ResolvableChainConfig.
reward_merkle_proof
Nested message and enum types in RewardMerkleProof.
reward_state_service_server
Generated server implementations.
stake_table_event
Nested message and enum types in StakeTableEvent.
state_signature_service_server
Generated server implementations.
status_service_server
Generated server implementations.
submit_service_server
Generated server implementations.
token_service_server
Generated server implementations.
tx_proof
Nested message and enum types in TxProof.
vid_common
Nested message and enum types in VidCommon.
vid_share_response
Nested message and enum types in VidShareResponse.
view_change_evidence2
Nested message and enum types in ViewChangeEvidence2.

Structs§

AdvzCommon
Parameters of the legacy ADVZ scheme, with the two commitments exactly as v1 renders them
AdvzMerkleNode
One node of a jellyfish Merkle proof. v1 spells the third arm ForgettenSubtree, which is upstream’s misspelling; only the wire name here is corrected.
AdvzMerkleNodeBranch
AdvzMerkleNodeEmpty
A missing subtree. The arm is present and its object empty
AdvzMerkleNodeForgottenSubtree
AdvzMerkleNodeLeaf
AdvzMerkleProof
AdvzNsProof
Legacy ADVZ namespace proof
AdvzTxProof
Legacy ADVZ inclusion proof, with the index and table entries in v1’s byte encodings
AdvzVidShare
Legacy ADVZ share, which only a 0.1 or 0.2 block carries
ApiModules
Which API modules the node serves. A module that is off answers 404 for every route it owns, so a client can tell a disabled module from a missing one
AvidmBadEncodingNsProof
AvidmBadEncodingProof
Evidence that an AvidM disperser encoded a namespace incorrectly: the polynomial recovered from the shares, and the shares’ Merkle proofs against the commitment that does not match it
AvidmCommon
The two AvidM schemes’ parameters and transaction proofs have the same shape today but are separate messages, since the field numbers freeze per scheme and the schemes are versioned independently
AvidmGf2Common
AvidmGf2Namespace
AvidmGf2Param
AvidmGf2TxProof
AvidmGf2VidShare
AvidmShareContent
AvidmTxProof
AvidmVidShare
Both AvidM schemes disperse per namespace, so a share carries one entry per namespace of the block rather than one for the whole payload. The per-namespace lists line up only for a share that passed VID verification, which this endpoint does not repeat.
BlockHeightResponse
BlockRangeResponse
BlockResponse
BlockRewardResponse
BlockSummaryRangeResponse
BlockSummaryResponse
BlsPublicKey
Bn254G1Point
Coordinates are 0x-prefixed hex, as v1 serves them
Bn254G2Point
Coordinates are 0x-prefixed hex, as v1 serves them
BuilderSignature
CatchupChainConfigResponse
CatchupLeafChainResponse
Cert2Response
Certificate2
The new protocol’s phase-2 certificate, which finalizes a leaf
CertificatePair
A QC, paired with the next epoch’s QC for the same leaf when the leaf hands over an epoch
ChainConfig
CirculatingSupplyEthereumResponse
CirculatingSupplyResponse
CombinedNetworkConfig
Never served: kept so combined_network_config keeps its type
CommissionUpdated
ConsensusKeysUpdated
ConsensusKeysUpdatedV2
ConsensusPruningConfig
Retention policy for consensus storage
Delegated
Delegator
EdOnBn254Point
Coordinates are 0x-prefixed hex, as v1 serves them
EnvResponse
EnvVar
ExplorerBlockDetail
A block the explorer describes in full
ExplorerBlockDetailResponse
ExplorerBlockSummariesResponse
ExplorerBlockSummary
A block as it appears in a list, without the fee recipient or the reward
ExplorerFeeAttribution
Fees attributed to one layer, such as the sequencer or the DA layer
ExplorerGenesisOverview
ExplorerHistogramPoint
One block’s point in the explorer’s histograms
ExplorerSearchResponse
ExplorerSummaryResponse
ExplorerTransactionDetail
ExplorerTransactionDetailResponse
ExplorerTransactionSummariesResponse
ExplorerTransactionSummary
A transaction as it appears in a list
FeeAccountProof
FeeAccountProofResponse
FeeBalanceResponse
FeeInfo
FeeMerkleProof
Mirrors the tree’s own presence or absence proof. Exactly one arm is set
FeeMerkleTreeResponse
FinalityAssumption
The client already trusts the leaf at the requested finalized height, whose parent is the last leaf of the chain
FinalityProof
Evidence that the last leaf of a leaf chain is finalized. The arm names the commit rule
FollowerModule
FsStorage
GetAllValidatorsRequest
GetBlockHeightRequest
GetBlockRangeRequest
GetBlockRangesRequest
GetBlockRequest
GetBlockRewardRequest
GetBlockStatePathRequest
GetBlockSummaryRangeRequest
GetBlockSummaryRequest
GetCatchupBlocksFrontierRequest
GetCatchupCert2Request
GetCatchupChainConfigRequest
GetCatchupFeeAccountRequest
GetCatchupFeeAccountsRequest
GetCatchupLeafChainRequest
GetCatchupRewardAccountRequest
GetCatchupRewardAccountV2Request
GetCatchupRewardAccountsRequest
GetCatchupRewardMerkleTreeV2Request
GetCatchupStateCertRequest
GetCert2Request
GetCirculatingSupplyEthereumRequest
GetCirculatingSupplyRequest
GetEnvRequest
GetExplorerBlockDetailRequest
GetExplorerBlockSummariesRequest
GetExplorerSearchRequest
GetExplorerSummaryRequest
GetExplorerTransactionDetailRequest
GetExplorerTransactionSummariesRequest
GetFeeStatePathRequest
GetHeaderRangeRequest
GetHeaderRequest
GetHeaderWindowRequest
GetHotshotConfigRequest
GetIncorrectEncodingProofRequest
GetLatestFeeBalanceRequest
GetLeafRangeRequest
GetLeafRangesRequest
GetLeafRequest
GetLightClientHeaderProofRequest
GetLightClientLeafProofRequest
GetLightClientNamespaceProofRangeRequest
GetLightClientNamespaceProofRequest
GetLightClientNamespacesProofRangeRequest
GetLightClientPayloadProofRangeRequest
GetLightClientPayloadProofRangesRequest
GetLightClientPayloadProofRequest
GetLightClientStakeTableRequest
GetLimitsRequest
GetMigrationStatusRequest
GetNamespaceProofRangeRequest
GetNamespaceProofRequest
GetNodeBlockHeightRequest
GetNodeKeysRequest
GetNodeLimitsRequest
GetPayloadRangeRequest
GetPayloadRequest
GetPayloadSizeRequest
GetProposalParticipationRequest
GetRewardAccountProofRequest
GetRewardAmountsRequest
GetRewardBalanceRequest
GetRewardClaimInputRequest
GetRewardMerkleTreeV2Request
GetRuntimeConfigRequest
GetStakeTableRequest
GetStateCertRequest
GetStateCertV2Request
GetStateHeightRequest
GetStateSignatureRequest
GetSuccessRateRequest
GetSyncStatusRequest
GetTableSizesRequest
GetTimeSinceLastDecideRequest
GetTotalIssuedSupplyRequest
GetTotalMintedSupplyRequest
GetTotalRewardDistributedRequest
GetTransactionCountRequest
GetTransactionProofRequest
GetTransactionRequest
GetValidatorsRequest
GetVidCommonRangeRequest
GetVidCommonRangesRequest
GetVidCommonRequest
GetVidShareRequest
GetVoteParticipationRequest
HeaderRangeResponse
HeaderResponse
The arm names the protocol version that produced the header. Versions sharing a shape share a message: 0.2 uses the 0.1 shape and 0.6 and 0.7 the 0.5 shape
HeaderV1
The header shape introduced in protocol version 0.1, also used by 0.2
HeaderV3
The header shape introduced in protocol version 0.3, which added the reward merkle tree
HeaderV4
The header shape introduced in protocol version 0.4, which moved to the second reward merkle tree and added millisecond timestamps, distributed rewards and the next stake table hash
HeaderV5
The header shape introduced in protocol version 0.5, which added leader counts. Also used by 0.6 and 0.7
HeaderWindowResponse
HeightRange
A half-open range of heights, one entry of a batch request’s body
HotStuff2Finality
A 2-chain of QCs under the HotStuff2 commit rule
HotStuffFinality
A 3-chain of QCs under the original HotStuff commit rule
HotshotConfigResponse
The consensus parameters this node runs with.
HttpModule
IncorrectEncodingProofResponse
L1BlockInfo
LargeRangeProof
A jellyfish range proof over a namespace’s bytes, as v1 encodes it
Leaf2
LeafRangeResponse
LeafResponse
Libp2pBootstrapNode
Never served: kept so libp2p_config keeps its type
Libp2pNetworkConfig
Never served: kept so libp2p_config keeps its type
LightClientDbOptions
LightClientHeaderProofResponse
LightClientLeafProofResponse
LightClientModuleOptions
LightClientNamespaceProofContents
LightClientNamespaceProofRangeResponse
LightClientNamespaceProofResponse
LightClientNamespacesProof
LightClientNamespacesProofRangeResponse
LightClientPayloadProofRangeResponse
LightClientPayloadProofResponse
LightClientStakeTableResponse
LimitsResponse
LockView
A lock, ordered by epoch, then view
MerklePathResponse
MigrationStatus
MigrationStatusResponse
NamespaceInfo
NamespaceProofRangeResponse
NamespaceProofResponse
NewProtocolFinality
A phase-2 certificate under the new protocol
NodeBlockHeightResponse
NodeIdentity
NodeKeysResponse
NodeLimitsResponse
NodeStorage
fs and sql follow backend, and both are absent when the default filesystem backend was never given a path
NsProof
The arm names the VID scheme, and v1_incorrect_encoding is an AvidM block whose disperser cheated
NsProofPayload
A namespace’s proof against the payload commitment, for the AvidM and AvidmGf2 schemes
NsTable
P2pAddrUpdated
ParticipationEntry
ParticipationResponse
Payload
PayloadRangeResponse
PayloadResponse
PayloadSizeResponse
PeerConfig
PeerConnectInfo
ProtocolVersion
PruningConfig
Retention policy for the archival tables. Durations are whole milliseconds, rounded down
QueryModule
QuorumCertificate2
A certificate is its voted data plus the signatures over the commitment of that data. One message per data type, the shape is otherwise the same
QuorumData2
QuorumSignatures
The aggregate signature on a certificate and who contributed to it
ResolvableChainConfig
A header carries either the chain config itself or a commitment the caller resolves elsewhere
ResourceSyncStatus
RewardAccountProof
RewardAccountProofResponse
RewardAmountPair
RewardAmountsResponse
RewardBalanceResponse
RewardClaimInputResponse
RewardMerkleProof
Mirrors the tree’s own presence or absence proof. Exactly one arm is set
RewardMerkleTreeV1Response
RewardMerkleTreeV2Response
RuntimeConfigResponse
The node’s effective runtime configuration: CLI flags, environment and defaults merged. The genesis and the catchup, proposal-fetcher and L1 tuning stay on v1. No credential this node holds is served, but a URL an operator configured with userinfo is served as given, as v1 serves it
SchnorrPublicKey
ShardRange
Half-open range of shard indices this share holds in the encoded payload. Its length is the storage node’s VID weight
SmallRangeProof
A jellyfish range proof over a few payload bytes, as v1 encodes it
SqlStorage
Durations are whole milliseconds, rounded down
StakeTableEntry
StakeTableEvent
One stake table contract event. The arm names the event and its version
StakeTableResponse
StateCertV1Response
The certificate a light client uses to advance past an epoch boundary, first form
StateCertV2Response
The certificate a light client uses to advance past an epoch boundary, with the LCV2 and LCV3 signatures side by side
StateHeightResponse
StateSignatureResponse
This node’s signature over the light client state at one block, in the form the state relay server receives it. A node keeps these only for recent blocks, so an older height is a 404
StateSignatureV1
StateSignatureV2
StreamBlocksRequest
StreamHeadersRequest
StreamLeavesRequest
StreamNamespaceProofsRequest
StreamPayloadsRequest
StreamTransactionsRequest
StreamVidCommonRequest
SubmitTransactionRequest
SubmitTransactionResponse
SuccessRateResponse
SyncStatusRange
SyncStatusResponse
TableSize
TableSizesResponse
TimeSinceLastDecideResponse
TimeoutCertificate2
TimeoutCertificate3
The timeout certificate the new protocol carries, whose epoch is always known. Every signer signs the lock it holds; the certificate’s lock is the latest, and is that of lock_cert.
TimeoutData2
TimeoutData3
TimeoutSignatures
The signers of a timeout certificate that hold the same lock, earlier than the certificate’s
TotalIssuedSupplyResponse
TotalMintedSupplyResponse
TotalRewardDistributedResponse
Transaction
TransactionCountResponse
TransactionResponse
TransactionWithProofResponse
TxProof
The arm names the VID scheme the block was disseminated with
Undelegated
UndelegatedV2
UpgradeCertificate
UpgradeProposalData
Validator
ValidatorExit
ValidatorExitV2
ValidatorRegistered
ValidatorRegisteredV2
ValidatorRegisteredV3
ValidatorsResponse
VersionedDaCommittee
VidCommon
VidCommonRangeResponse
VidCommonResponse
VidShareResponse
The arm names the VID scheme the block was disseminated with
ViewChangeEvidence2
Why a proposal’s justify QC is not from the immediately preceding view
ViewSyncFinalizeCertificate2
ViewSyncFinalizeData2
Vote2Data
X25519KeyUpdated

Enums§

BuilderType
StorageBackend
SyncStatus
Whether this node stores an object, still has to fetch it, or deleted it on purpose