datastream

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: AGPL-3.0, AGPL-3.0-or-later 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",
	}
	BatchType_value = map[string]int32{
		"BATCH_TYPE_UNSPECIFIED": 0,
		"BATCH_TYPE_REGULAR":     1,
		"BATCH_TYPE_FORCED":      2,
		"BATCH_TYPE_INJECTED":    3,
	}
)

Enum value maps for BatchType.

View Source
var File_datastream_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BatchEnd added in v0.2.0

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 added in v0.2.0

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

Deprecated: Use BatchEnd.ProtoReflect.Descriptor instead.

func (*BatchEnd) GetDebug added in v0.2.0

func (x *BatchEnd) GetDebug() *Debug

func (*BatchEnd) GetLocalExitRoot added in v0.2.0

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

func (*BatchEnd) GetNumber added in v0.2.0

func (x *BatchEnd) GetNumber() uint64

func (*BatchEnd) GetStateRoot added in v0.2.0

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

func (*BatchEnd) ProtoMessage added in v0.2.0

func (*BatchEnd) ProtoMessage()

func (*BatchEnd) ProtoReflect added in v0.2.0

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

func (*BatchEnd) Reset added in v0.2.0

func (x *BatchEnd) Reset()

func (*BatchEnd) String added in v0.2.0

func (x *BatchEnd) String() string

type BatchStart added in v0.2.0

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 added in v0.2.0

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

Deprecated: Use BatchStart.ProtoReflect.Descriptor instead.

func (*BatchStart) GetChainId added in v0.2.0

func (x *BatchStart) GetChainId() uint64

func (*BatchStart) GetDebug added in v0.2.0

func (x *BatchStart) GetDebug() *Debug

func (*BatchStart) GetForkId added in v0.2.0

func (x *BatchStart) GetForkId() uint64

func (*BatchStart) GetNumber added in v0.2.0

func (x *BatchStart) GetNumber() uint64

func (*BatchStart) GetType added in v0.2.0

func (x *BatchStart) GetType() BatchType

func (*BatchStart) ProtoMessage added in v0.2.0

func (*BatchStart) ProtoMessage()

func (*BatchStart) ProtoReflect added in v0.2.0

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

func (*BatchStart) Reset added in v0.2.0

func (x *BatchStart) Reset()

func (*BatchStart) String added in v0.2.0

func (x *BatchStart) String() string

type BatchType added in v0.2.0

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
)

func (BatchType) Descriptor added in v0.2.0

func (BatchType) Descriptor() protoreflect.EnumDescriptor

func (BatchType) Enum added in v0.2.0

func (x BatchType) Enum() *BatchType

func (BatchType) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use BatchType.Descriptor instead.

func (BatchType) Number added in v0.2.0

func (x BatchType) Number() protoreflect.EnumNumber

func (BatchType) String added in v0.2.0

func (x BatchType) String() string

func (BatchType) Type added in v0.2.0

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 added in v0.2.0

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

func (*Debug) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Debug.ProtoReflect.Descriptor instead.

func (*Debug) GetMessage added in v0.2.0

func (x *Debug) GetMessage() string

func (*Debug) ProtoMessage added in v0.2.0

func (*Debug) ProtoMessage()

func (*Debug) ProtoReflect added in v0.2.0

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

func (*Debug) Reset added in v0.2.0

func (x *Debug) Reset()

func (*Debug) String added in v0.2.0

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 added in v0.2.0

func (x *L2Block) GetBlockGasLimit() uint64

func (*L2Block) GetBlockInfoRoot added in v0.2.0

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

func (*L2Block) GetCoinbase

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

func (*L2Block) GetDebug added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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