executionv1alpha2

package
v1.34.1-20240503161157... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_astria_execution_v1alpha2_execution_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BatchGetBlocksRequest

type BatchGetBlocksRequest struct {
	Identifiers []*BlockIdentifier `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"`
	// contains filtered or unexported fields
}

Used in BatchGetBlocks, will find all or none based on the list of identifiers.

func (*BatchGetBlocksRequest) Descriptor deprecated

func (*BatchGetBlocksRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetBlocksRequest.ProtoReflect.Descriptor instead.

func (*BatchGetBlocksRequest) GetIdentifiers

func (x *BatchGetBlocksRequest) GetIdentifiers() []*BlockIdentifier

func (*BatchGetBlocksRequest) ProtoMessage

func (*BatchGetBlocksRequest) ProtoMessage()

func (*BatchGetBlocksRequest) ProtoReflect

func (x *BatchGetBlocksRequest) ProtoReflect() protoreflect.Message

func (*BatchGetBlocksRequest) Reset

func (x *BatchGetBlocksRequest) Reset()

func (*BatchGetBlocksRequest) String

func (x *BatchGetBlocksRequest) String() string

type BatchGetBlocksResponse

type BatchGetBlocksResponse struct {
	Blocks []*Block `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
	// contains filtered or unexported fields
}

The list of blocks in response to BatchGetBlocks.

func (*BatchGetBlocksResponse) Descriptor deprecated

func (*BatchGetBlocksResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetBlocksResponse.ProtoReflect.Descriptor instead.

func (*BatchGetBlocksResponse) GetBlocks

func (x *BatchGetBlocksResponse) GetBlocks() []*Block

func (*BatchGetBlocksResponse) ProtoMessage

func (*BatchGetBlocksResponse) ProtoMessage()

func (*BatchGetBlocksResponse) ProtoReflect

func (x *BatchGetBlocksResponse) ProtoReflect() protoreflect.Message

func (*BatchGetBlocksResponse) Reset

func (x *BatchGetBlocksResponse) Reset()

func (*BatchGetBlocksResponse) String

func (x *BatchGetBlocksResponse) String() string

type Block

type Block struct {

	// The block number
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The hash of the block
	Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// The hash from the parent block
	ParentBlockHash []byte `protobuf:"bytes,3,opt,name=parent_block_hash,json=parentBlockHash,proto3" json:"parent_block_hash,omitempty"`
	// Timestamp on the block, standardized to google protobuf standard.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

The set of information which deterministic driver of block production must know about a given rollup Block

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetHash

func (x *Block) GetHash() []byte

func (*Block) GetNumber

func (x *Block) GetNumber() uint32

func (*Block) GetParentBlockHash

func (x *Block) GetParentBlockHash() []byte

func (*Block) GetTimestamp

func (x *Block) GetTimestamp() *timestamppb.Timestamp

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockIdentifier

type BlockIdentifier struct {

	// Types that are assignable to Identifier:
	//
	//	*BlockIdentifier_BlockNumber
	//	*BlockIdentifier_BlockHash
	Identifier isBlockIdentifier_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

Fields which are indexed for finding blocks on a blockchain.

func (*BlockIdentifier) Descriptor deprecated

func (*BlockIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use BlockIdentifier.ProtoReflect.Descriptor instead.

func (*BlockIdentifier) GetBlockHash

func (x *BlockIdentifier) GetBlockHash() []byte

func (*BlockIdentifier) GetBlockNumber

func (x *BlockIdentifier) GetBlockNumber() uint32

func (*BlockIdentifier) GetIdentifier

func (m *BlockIdentifier) GetIdentifier() isBlockIdentifier_Identifier

func (*BlockIdentifier) ProtoMessage

func (*BlockIdentifier) ProtoMessage()

func (*BlockIdentifier) ProtoReflect

func (x *BlockIdentifier) ProtoReflect() protoreflect.Message

func (*BlockIdentifier) Reset

func (x *BlockIdentifier) Reset()

func (*BlockIdentifier) String

func (x *BlockIdentifier) String() string

type BlockIdentifier_BlockHash

type BlockIdentifier_BlockHash struct {
	BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3,oneof"`
}

type BlockIdentifier_BlockNumber

type BlockIdentifier_BlockNumber struct {
	BlockNumber uint32 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3,oneof"`
}

type CommitmentState

type CommitmentState struct {

	// Soft commitment is the rollup block matching latest sequencer block.
	Soft *Block `protobuf:"bytes,1,opt,name=soft,proto3" json:"soft,omitempty"`
	// Firm commitment is achieved when data has been seen in DA.
	Firm *Block `protobuf:"bytes,2,opt,name=firm,proto3" json:"firm,omitempty"`
	// contains filtered or unexported fields
}

The CommitmentState holds the block at each stage of sequencer commitment level

A Valid CommitmentState:

  • Block numbers are such that soft >= firm.
  • No blocks ever decrease in block number.
  • The chain defined by soft is the head of the canonical chain the firm block must belong to.

func (*CommitmentState) Descriptor deprecated

func (*CommitmentState) Descriptor() ([]byte, []int)

Deprecated: Use CommitmentState.ProtoReflect.Descriptor instead.

func (*CommitmentState) GetFirm

func (x *CommitmentState) GetFirm() *Block

func (*CommitmentState) GetSoft

func (x *CommitmentState) GetSoft() *Block

func (*CommitmentState) ProtoMessage

func (*CommitmentState) ProtoMessage()

func (*CommitmentState) ProtoReflect

func (x *CommitmentState) ProtoReflect() protoreflect.Message

func (*CommitmentState) Reset

func (x *CommitmentState) Reset()

func (*CommitmentState) String

func (x *CommitmentState) String() string

type ExecuteBlockRequest

type ExecuteBlockRequest struct {

	// The hash of previous block, which new block will be created on top of.
	PrevBlockHash []byte `protobuf:"bytes,1,opt,name=prev_block_hash,json=prevBlockHash,proto3" json:"prev_block_hash,omitempty"`
	// List of transactions to include in the new block.
	Transactions []*v1alpha1.RollupData `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// Timestamp to be used for new block.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

ExecuteBlockRequest contains all the information needed to create a new rollup block.

This information comes from previous rollup blocks, as well as from sequencer blocks.

func (*ExecuteBlockRequest) Descriptor deprecated

func (*ExecuteBlockRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteBlockRequest.ProtoReflect.Descriptor instead.

func (*ExecuteBlockRequest) GetPrevBlockHash

func (x *ExecuteBlockRequest) GetPrevBlockHash() []byte

func (*ExecuteBlockRequest) GetTimestamp

func (x *ExecuteBlockRequest) GetTimestamp() *timestamppb.Timestamp

func (*ExecuteBlockRequest) GetTransactions

func (x *ExecuteBlockRequest) GetTransactions() []*v1alpha1.RollupData

func (*ExecuteBlockRequest) ProtoMessage

func (*ExecuteBlockRequest) ProtoMessage()

func (*ExecuteBlockRequest) ProtoReflect

func (x *ExecuteBlockRequest) ProtoReflect() protoreflect.Message

func (*ExecuteBlockRequest) Reset

func (x *ExecuteBlockRequest) Reset()

func (*ExecuteBlockRequest) String

func (x *ExecuteBlockRequest) String() string

type GenesisInfo

type GenesisInfo struct {

	// The rollup_id is the unique identifier for the rollup chain.
	RollupId []byte `protobuf:"bytes,1,opt,name=rollup_id,json=rollupId,proto3" json:"rollup_id,omitempty"`
	// The first block height of sequencer chain to use for rollup transactions.
	SequencerGenesisBlockHeight uint32 `` /* 147-byte string literal not displayed */
	// The first block height of celestia chain to use for rollup transactions.
	CelestiaBaseBlockHeight uint32 `` /* 135-byte string literal not displayed */
	// The allowed variance in celestia for sequencer blocks to have been posted.
	CelestiaBlockVariance uint32 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

GenesisInfo contains the information needed to start a rollup chain.

This information is used to determine which sequencer & celestia data to use from the Astria & Celestia networks.

func (*GenesisInfo) Descriptor deprecated

func (*GenesisInfo) Descriptor() ([]byte, []int)

Deprecated: Use GenesisInfo.ProtoReflect.Descriptor instead.

func (*GenesisInfo) GetCelestiaBaseBlockHeight

func (x *GenesisInfo) GetCelestiaBaseBlockHeight() uint32

func (*GenesisInfo) GetCelestiaBlockVariance

func (x *GenesisInfo) GetCelestiaBlockVariance() uint32

func (*GenesisInfo) GetRollupId

func (x *GenesisInfo) GetRollupId() []byte

func (*GenesisInfo) GetSequencerGenesisBlockHeight

func (x *GenesisInfo) GetSequencerGenesisBlockHeight() uint32

func (*GenesisInfo) ProtoMessage

func (*GenesisInfo) ProtoMessage()

func (*GenesisInfo) ProtoReflect

func (x *GenesisInfo) ProtoReflect() protoreflect.Message

func (*GenesisInfo) Reset

func (x *GenesisInfo) Reset()

func (*GenesisInfo) String

func (x *GenesisInfo) String() string

type GetBlockRequest

type GetBlockRequest struct {
	Identifier *BlockIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

Used in GetBlock to find a single block.

func (*GetBlockRequest) Descriptor deprecated

func (*GetBlockRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.

func (*GetBlockRequest) GetIdentifier

func (x *GetBlockRequest) GetIdentifier() *BlockIdentifier

func (*GetBlockRequest) ProtoMessage

func (*GetBlockRequest) ProtoMessage()

func (*GetBlockRequest) ProtoReflect

func (x *GetBlockRequest) ProtoReflect() protoreflect.Message

func (*GetBlockRequest) Reset

func (x *GetBlockRequest) Reset()

func (*GetBlockRequest) String

func (x *GetBlockRequest) String() string

type GetCommitmentStateRequest

type GetCommitmentStateRequest struct {
	// contains filtered or unexported fields
}

There is only one CommitmentState object, so the request is empty.

func (*GetCommitmentStateRequest) Descriptor deprecated

func (*GetCommitmentStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommitmentStateRequest.ProtoReflect.Descriptor instead.

func (*GetCommitmentStateRequest) ProtoMessage

func (*GetCommitmentStateRequest) ProtoMessage()

func (*GetCommitmentStateRequest) ProtoReflect

func (*GetCommitmentStateRequest) Reset

func (x *GetCommitmentStateRequest) Reset()

func (*GetCommitmentStateRequest) String

func (x *GetCommitmentStateRequest) String() string

type GetGenesisInfoRequest

type GetGenesisInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetGenesisInfoRequest) Descriptor deprecated

func (*GetGenesisInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetGenesisInfoRequest.ProtoReflect.Descriptor instead.

func (*GetGenesisInfoRequest) ProtoMessage

func (*GetGenesisInfoRequest) ProtoMessage()

func (*GetGenesisInfoRequest) ProtoReflect

func (x *GetGenesisInfoRequest) ProtoReflect() protoreflect.Message

func (*GetGenesisInfoRequest) Reset

func (x *GetGenesisInfoRequest) Reset()

func (*GetGenesisInfoRequest) String

func (x *GetGenesisInfoRequest) String() string

type UpdateCommitmentStateRequest

type UpdateCommitmentStateRequest struct {
	CommitmentState *CommitmentState `protobuf:"bytes,1,opt,name=commitment_state,json=commitmentState,proto3" json:"commitment_state,omitempty"`
	// contains filtered or unexported fields
}

The CommitmentState to set, must include complete state.

func (*UpdateCommitmentStateRequest) Descriptor deprecated

func (*UpdateCommitmentStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCommitmentStateRequest.ProtoReflect.Descriptor instead.

func (*UpdateCommitmentStateRequest) GetCommitmentState

func (x *UpdateCommitmentStateRequest) GetCommitmentState() *CommitmentState

func (*UpdateCommitmentStateRequest) ProtoMessage

func (*UpdateCommitmentStateRequest) ProtoMessage()

func (*UpdateCommitmentStateRequest) ProtoReflect

func (*UpdateCommitmentStateRequest) Reset

func (x *UpdateCommitmentStateRequest) Reset()

func (*UpdateCommitmentStateRequest) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL