Help us shape the future of Go! Take the 2026 Go Developer Survey

datastream

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BookmarkType_name = map[int32]string{
		0: "BOOKMARK_TYPE_UNSPECIFIED",
		1: "BOOKMARK_TYPE_BATCH",
		2: "BOOKMARK_TYPE_L2_BLOCK",
	}
	BookmarkType_value = map[string]int32{
		"BOOKMARK_TYPE_UNSPECIFIED": 0,
		"BOOKMARK_TYPE_BATCH":       1,
		"BOOKMARK_TYPE_L2_BLOCK":    2,
	}
)

Enum value maps for BookmarkType.

View Source
var (
	EntryType_name = map[int32]string{
		0: "ENTRY_TYPE_UNSPECIFIED",
		1: "ENTRY_TYPE_BATCH_START",
		2: "ENTRY_TYPE_L2_BLOCK",
		3: "ENTRY_TYPE_TRANSACTION",
		4: "ENTRY_TYPE_BATCH_END",
		5: "ENTRY_TYPE_UPDATE_GER",
	}
	EntryType_value = map[string]int32{
		"ENTRY_TYPE_UNSPECIFIED": 0,
		"ENTRY_TYPE_BATCH_START": 1,
		"ENTRY_TYPE_L2_BLOCK":    2,
		"ENTRY_TYPE_TRANSACTION": 3,
		"ENTRY_TYPE_BATCH_END":   4,
		"ENTRY_TYPE_UPDATE_GER":  5,
	}
)

Enum value maps for EntryType.

View Source
var (
	BatchType_name = map[int32]string{
		0: "BATCH_TYPE_UNSPECIFIED",
		1: "BATCH_TYPE_REGULAR",
		2: "BATCH_TYPE_FORCED",
		3: "BATCH_TYPE_INJECTED",
		4: "BATCH_TYPE_INVALID",
	}
	BatchType_value = map[string]int32{
		"BATCH_TYPE_UNSPECIFIED": 0,
		"BATCH_TYPE_REGULAR":     1,
		"BATCH_TYPE_FORCED":      2,
		"BATCH_TYPE_INJECTED":    3,
		"BATCH_TYPE_INVALID":     4,
	}
)

Enum value maps for BatchType.

View Source
var File_datastream_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BatchEnd

type BatchEnd struct {
	Number        uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	LocalExitRoot []byte `protobuf:"bytes,2,opt,name=local_exit_root,json=localExitRoot,proto3" json:"local_exit_root,omitempty"`
	StateRoot     []byte `protobuf:"bytes,3,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	Debug         *Debug `protobuf:"bytes,4,opt,name=debug,proto3" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchEnd) Descriptor deprecated

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

Deprecated: Use BatchEnd.ProtoReflect.Descriptor instead.

func (*BatchEnd) GetDebug

func (x *BatchEnd) GetDebug() *Debug

func (*BatchEnd) GetLocalExitRoot

func (x *BatchEnd) GetLocalExitRoot() []byte

func (*BatchEnd) GetNumber

func (x *BatchEnd) GetNumber() uint64

func (*BatchEnd) GetStateRoot

func (x *BatchEnd) GetStateRoot() []byte

func (*BatchEnd) ProtoMessage

func (*BatchEnd) ProtoMessage()

func (*BatchEnd) ProtoReflect

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

func (*BatchEnd) Reset

func (x *BatchEnd) Reset()

func (*BatchEnd) String

func (x *BatchEnd) String() string

type BatchStart

type BatchStart struct {
	Number  uint64    `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	Type    BatchType `protobuf:"varint,2,opt,name=type,proto3,enum=datastream.v1.BatchType" json:"type,omitempty"`
	ForkId  uint64    `protobuf:"varint,3,opt,name=fork_id,json=forkId,proto3" json:"fork_id,omitempty"`
	ChainId uint64    `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Debug   *Debug    `protobuf:"bytes,5,opt,name=debug,proto3" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchStart) Descriptor deprecated

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

Deprecated: Use BatchStart.ProtoReflect.Descriptor instead.

func (*BatchStart) GetChainId

func (x *BatchStart) GetChainId() uint64

func (*BatchStart) GetDebug

func (x *BatchStart) GetDebug() *Debug

func (*BatchStart) GetForkId

func (x *BatchStart) GetForkId() uint64

func (*BatchStart) GetNumber

func (x *BatchStart) GetNumber() uint64

func (*BatchStart) GetType

func (x *BatchStart) GetType() BatchType

func (*BatchStart) ProtoMessage

func (*BatchStart) ProtoMessage()

func (*BatchStart) ProtoReflect

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

func (*BatchStart) Reset

func (x *BatchStart) Reset()

func (*BatchStart) String

func (x *BatchStart) String() string

type BatchType

type BatchType int32
const (
	BatchType_BATCH_TYPE_UNSPECIFIED BatchType = 0
	BatchType_BATCH_TYPE_REGULAR     BatchType = 1
	BatchType_BATCH_TYPE_FORCED      BatchType = 2
	BatchType_BATCH_TYPE_INJECTED    BatchType = 3
	BatchType_BATCH_TYPE_INVALID     BatchType = 4
)

func (BatchType) Descriptor

func (BatchType) Descriptor() protoreflect.EnumDescriptor

func (BatchType) Enum

func (x BatchType) Enum() *BatchType

func (BatchType) EnumDescriptor deprecated

func (BatchType) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatchType.Descriptor instead.

func (BatchType) Number

func (x BatchType) Number() protoreflect.EnumNumber

func (BatchType) String

func (x BatchType) String() string

func (BatchType) Type

type BookMark

type BookMark struct {
	Type  BookmarkType `protobuf:"varint,1,opt,name=type,proto3,enum=datastream.v1.BookmarkType" json:"type,omitempty"`
	Value uint64       `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BookMark) Descriptor deprecated

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

Deprecated: Use BookMark.ProtoReflect.Descriptor instead.

func (*BookMark) GetType

func (x *BookMark) GetType() BookmarkType

func (*BookMark) GetValue

func (x *BookMark) GetValue() uint64

func (*BookMark) ProtoMessage

func (*BookMark) ProtoMessage()

func (*BookMark) ProtoReflect

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

func (*BookMark) Reset

func (x *BookMark) Reset()

func (*BookMark) String

func (x *BookMark) String() string

type BookmarkType

type BookmarkType int32
const (
	BookmarkType_BOOKMARK_TYPE_UNSPECIFIED BookmarkType = 0
	BookmarkType_BOOKMARK_TYPE_BATCH       BookmarkType = 1
	BookmarkType_BOOKMARK_TYPE_L2_BLOCK    BookmarkType = 2
)

func (BookmarkType) Descriptor

func (BookmarkType) Enum

func (x BookmarkType) Enum() *BookmarkType

func (BookmarkType) EnumDescriptor deprecated

func (BookmarkType) EnumDescriptor() ([]byte, []int)

Deprecated: Use BookmarkType.Descriptor instead.

func (BookmarkType) Number

func (BookmarkType) String

func (x BookmarkType) String() string

func (BookmarkType) Type

type Debug

type Debug struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Debug) Descriptor deprecated

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

Deprecated: Use Debug.ProtoReflect.Descriptor instead.

func (*Debug) GetMessage

func (x *Debug) GetMessage() string

func (*Debug) ProtoMessage

func (*Debug) ProtoMessage()

func (*Debug) ProtoReflect

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

func (*Debug) Reset

func (x *Debug) Reset()

func (*Debug) String

func (x *Debug) String() string

type EntryType

type EntryType int32
const (
	EntryType_ENTRY_TYPE_UNSPECIFIED EntryType = 0
	EntryType_ENTRY_TYPE_BATCH_START EntryType = 1
	EntryType_ENTRY_TYPE_L2_BLOCK    EntryType = 2
	EntryType_ENTRY_TYPE_TRANSACTION EntryType = 3
	EntryType_ENTRY_TYPE_BATCH_END   EntryType = 4
	EntryType_ENTRY_TYPE_UPDATE_GER  EntryType = 5
)

func (EntryType) Descriptor

func (EntryType) Descriptor() protoreflect.EnumDescriptor

func (EntryType) Enum

func (x EntryType) Enum() *EntryType

func (EntryType) EnumDescriptor deprecated

func (EntryType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntryType.Descriptor instead.

func (EntryType) Number

func (x EntryType) Number() protoreflect.EnumNumber

func (EntryType) String

func (x EntryType) String() string

func (EntryType) Type

type L2Block

type L2Block struct {
	Number          uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	BatchNumber     uint64 `protobuf:"varint,2,opt,name=batch_number,json=batchNumber,proto3" json:"batch_number,omitempty"`
	Timestamp       uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	DeltaTimestamp  uint32 `protobuf:"varint,4,opt,name=delta_timestamp,json=deltaTimestamp,proto3" json:"delta_timestamp,omitempty"`
	MinTimestamp    uint64 `protobuf:"varint,5,opt,name=min_timestamp,json=minTimestamp,proto3" json:"min_timestamp,omitempty"`
	L1Blockhash     []byte `protobuf:"bytes,6,opt,name=l1_blockhash,json=l1Blockhash,proto3" json:"l1_blockhash,omitempty"`
	L1InfotreeIndex uint32 `protobuf:"varint,7,opt,name=l1_infotree_index,json=l1InfotreeIndex,proto3" json:"l1_infotree_index,omitempty"`
	Hash            []byte `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"`
	StateRoot       []byte `protobuf:"bytes,9,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	GlobalExitRoot  []byte `protobuf:"bytes,10,opt,name=global_exit_root,json=globalExitRoot,proto3" json:"global_exit_root,omitempty"`
	Coinbase        []byte `protobuf:"bytes,11,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	BlockGasLimit   uint64 `protobuf:"varint,12,opt,name=block_gas_limit,json=blockGasLimit,proto3" json:"block_gas_limit,omitempty"`
	BlockInfoRoot   []byte `protobuf:"bytes,13,opt,name=block_info_root,json=blockInfoRoot,proto3" json:"block_info_root,omitempty"`
	Debug           *Debug `protobuf:"bytes,14,opt,name=debug,proto3" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

func (*L2Block) Descriptor deprecated

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

Deprecated: Use L2Block.ProtoReflect.Descriptor instead.

func (*L2Block) GetBatchNumber

func (x *L2Block) GetBatchNumber() uint64

func (*L2Block) GetBlockGasLimit

func (x *L2Block) GetBlockGasLimit() uint64

func (*L2Block) GetBlockInfoRoot

func (x *L2Block) GetBlockInfoRoot() []byte

func (*L2Block) GetCoinbase

func (x *L2Block) GetCoinbase() []byte

func (*L2Block) GetDebug

func (x *L2Block) GetDebug() *Debug

func (*L2Block) GetDeltaTimestamp

func (x *L2Block) GetDeltaTimestamp() uint32

func (*L2Block) GetGlobalExitRoot

func (x *L2Block) GetGlobalExitRoot() []byte

func (*L2Block) GetHash

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

func (*L2Block) GetL1Blockhash

func (x *L2Block) GetL1Blockhash() []byte

func (*L2Block) GetL1InfotreeIndex

func (x *L2Block) GetL1InfotreeIndex() uint32

func (*L2Block) GetMinTimestamp

func (x *L2Block) GetMinTimestamp() uint64

func (*L2Block) GetNumber

func (x *L2Block) GetNumber() uint64

func (*L2Block) GetStateRoot

func (x *L2Block) GetStateRoot() []byte

func (*L2Block) GetTimestamp

func (x *L2Block) GetTimestamp() uint64

func (*L2Block) ProtoMessage

func (*L2Block) ProtoMessage()

func (*L2Block) ProtoReflect

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

func (*L2Block) Reset

func (x *L2Block) Reset()

func (*L2Block) String

func (x *L2Block) String() string

type Transaction

type Transaction struct {
	L2BlockNumber               uint64 `protobuf:"varint,1,opt,name=l2block_number,json=l2blockNumber,proto3" json:"l2block_number,omitempty"`
	Index                       uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	IsValid                     bool   `protobuf:"varint,3,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
	Encoded                     []byte `protobuf:"bytes,4,opt,name=encoded,proto3" json:"encoded,omitempty"`
	EffectiveGasPricePercentage uint32 `` /* 147-byte string literal not displayed */
	ImStateRoot                 []byte `protobuf:"bytes,6,opt,name=im_state_root,json=imStateRoot,proto3" json:"im_state_root,omitempty"`
	Debug                       *Debug `protobuf:"bytes,7,opt,name=debug,proto3" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetDebug

func (x *Transaction) GetDebug() *Debug

func (*Transaction) GetEffectiveGasPricePercentage

func (x *Transaction) GetEffectiveGasPricePercentage() uint32

func (*Transaction) GetEncoded

func (x *Transaction) GetEncoded() []byte

func (*Transaction) GetImStateRoot

func (x *Transaction) GetImStateRoot() []byte

func (*Transaction) GetIndex

func (x *Transaction) GetIndex() uint64

func (*Transaction) GetIsValid

func (x *Transaction) GetIsValid() bool

func (*Transaction) GetL2BlockNumber

func (x *Transaction) GetL2BlockNumber() uint64

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type UpdateGER

type UpdateGER struct {
	BatchNumber    uint64 `protobuf:"varint,1,opt,name=batch_number,json=batchNumber,proto3" json:"batch_number,omitempty"`
	Timestamp      uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	GlobalExitRoot []byte `protobuf:"bytes,3,opt,name=global_exit_root,json=globalExitRoot,proto3" json:"global_exit_root,omitempty"`
	Coinbase       []byte `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	ForkId         uint64 `protobuf:"varint,5,opt,name=fork_id,json=forkId,proto3" json:"fork_id,omitempty"`
	ChainId        uint64 `protobuf:"varint,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	StateRoot      []byte `protobuf:"bytes,7,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	Debug          *Debug `protobuf:"bytes,8,opt,name=debug,proto3" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGER) Descriptor deprecated

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

Deprecated: Use UpdateGER.ProtoReflect.Descriptor instead.

func (*UpdateGER) GetBatchNumber

func (x *UpdateGER) GetBatchNumber() uint64

func (*UpdateGER) GetChainId

func (x *UpdateGER) GetChainId() uint64

func (*UpdateGER) GetCoinbase

func (x *UpdateGER) GetCoinbase() []byte

func (*UpdateGER) GetDebug

func (x *UpdateGER) GetDebug() *Debug

func (*UpdateGER) GetForkId

func (x *UpdateGER) GetForkId() uint64

func (*UpdateGER) GetGlobalExitRoot

func (x *UpdateGER) GetGlobalExitRoot() []byte

func (*UpdateGER) GetStateRoot

func (x *UpdateGER) GetStateRoot() []byte

func (*UpdateGER) GetTimestamp

func (x *UpdateGER) GetTimestamp() uint64

func (*UpdateGER) ProtoMessage

func (*UpdateGER) ProtoMessage()

func (*UpdateGER) ProtoReflect

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

func (*UpdateGER) Reset

func (x *UpdateGER) Reset()

func (*UpdateGER) String

func (x *UpdateGER) String() string

Jump to

Keyboard shortcuts

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