bor

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BorApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bor.BorApi",
	HandlerType: (*BorApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRootHash",
			Handler:    _BorApi_GetRootHash_Handler,
		},
		{
			MethodName: "GetVoteOnHash",
			Handler:    _BorApi_GetVoteOnHash_Handler,
		},
		{
			MethodName: "HeaderByNumber",
			Handler:    _BorApi_HeaderByNumber_Handler,
		},
		{
			MethodName: "BlockByNumber",
			Handler:    _BorApi_BlockByNumber_Handler,
		},
		{
			MethodName: "TransactionReceipt",
			Handler:    _BorApi_TransactionReceipt_Handler,
		},
		{
			MethodName: "BorBlockReceipt",
			Handler:    _BorApi_BorBlockReceipt_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bor/bor.proto",
}

BorApi_ServiceDesc is the grpc.ServiceDesc for BorApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_bor_bor_proto protoreflect.FileDescriptor

Functions

func RegisterBorApiServer

func RegisterBorApiServer(s grpc.ServiceRegistrar, srv BorApiServer)

Types

type Block

type Block struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

---- BLOCK ----

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

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 Bloom

type Bloom struct {
	Bloom []byte `protobuf:"bytes,1,opt,name=bloom,proto3" json:"bloom,omitempty"`
	// contains filtered or unexported fields
}

func (*Bloom) Descriptor deprecated

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

Deprecated: Use Bloom.ProtoReflect.Descriptor instead.

func (*Bloom) GetBloom

func (x *Bloom) GetBloom() []byte

func (*Bloom) ProtoMessage

func (*Bloom) ProtoMessage()

func (*Bloom) ProtoReflect

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

func (*Bloom) Reset

func (x *Bloom) Reset()

func (*Bloom) String

func (x *Bloom) String() string

type BorApiClient

type BorApiClient interface {
	GetRootHash(ctx context.Context, in *GetRootHashRequest, opts ...grpc.CallOption) (*GetRootHashResponse, error)
	GetVoteOnHash(ctx context.Context, in *GetVoteOnHashRequest, opts ...grpc.CallOption) (*GetVoteOnHashResponse, error)
	HeaderByNumber(ctx context.Context, in *GetHeaderByNumberRequest, opts ...grpc.CallOption) (*GetHeaderByNumberResponse, error)
	BlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*GetBlockByNumberResponse, error)
	TransactionReceipt(ctx context.Context, in *ReceiptRequest, opts ...grpc.CallOption) (*ReceiptResponse, error)
	BorBlockReceipt(ctx context.Context, in *ReceiptRequest, opts ...grpc.CallOption) (*ReceiptResponse, error)
}

BorApiClient is the client API for BorApi service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBorApiClient

func NewBorApiClient(cc grpc.ClientConnInterface) BorApiClient

type BorApiServer

type BorApiServer interface {
	GetRootHash(context.Context, *GetRootHashRequest) (*GetRootHashResponse, error)
	GetVoteOnHash(context.Context, *GetVoteOnHashRequest) (*GetVoteOnHashResponse, error)
	HeaderByNumber(context.Context, *GetHeaderByNumberRequest) (*GetHeaderByNumberResponse, error)
	BlockByNumber(context.Context, *GetBlockByNumberRequest) (*GetBlockByNumberResponse, error)
	TransactionReceipt(context.Context, *ReceiptRequest) (*ReceiptResponse, error)
	BorBlockReceipt(context.Context, *ReceiptRequest) (*ReceiptResponse, error)
	// contains filtered or unexported methods
}

BorApiServer is the server API for BorApi service. All implementations must embed UnimplementedBorApiServer for forward compatibility

type GetBlockByNumberRequest

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

func (*GetBlockByNumberRequest) Descriptor deprecated

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

Deprecated: Use GetBlockByNumberRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByNumberRequest) GetNumber

func (x *GetBlockByNumberRequest) GetNumber() string

func (*GetBlockByNumberRequest) ProtoMessage

func (*GetBlockByNumberRequest) ProtoMessage()

func (*GetBlockByNumberRequest) ProtoReflect

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

func (*GetBlockByNumberRequest) Reset

func (x *GetBlockByNumberRequest) Reset()

func (*GetBlockByNumberRequest) String

func (x *GetBlockByNumberRequest) String() string

type GetBlockByNumberResponse

type GetBlockByNumberResponse struct {
	Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockByNumberResponse) Descriptor deprecated

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

Deprecated: Use GetBlockByNumberResponse.ProtoReflect.Descriptor instead.

func (*GetBlockByNumberResponse) GetBlock

func (x *GetBlockByNumberResponse) GetBlock() *Block

func (*GetBlockByNumberResponse) ProtoMessage

func (*GetBlockByNumberResponse) ProtoMessage()

func (*GetBlockByNumberResponse) ProtoReflect

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

func (*GetBlockByNumberResponse) Reset

func (x *GetBlockByNumberResponse) Reset()

func (*GetBlockByNumberResponse) String

func (x *GetBlockByNumberResponse) String() string

type GetHeaderByNumberRequest

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

func (*GetHeaderByNumberRequest) Descriptor deprecated

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

Deprecated: Use GetHeaderByNumberRequest.ProtoReflect.Descriptor instead.

func (*GetHeaderByNumberRequest) GetNumber

func (x *GetHeaderByNumberRequest) GetNumber() string

func (*GetHeaderByNumberRequest) ProtoMessage

func (*GetHeaderByNumberRequest) ProtoMessage()

func (*GetHeaderByNumberRequest) ProtoReflect

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

func (*GetHeaderByNumberRequest) Reset

func (x *GetHeaderByNumberRequest) Reset()

func (*GetHeaderByNumberRequest) String

func (x *GetHeaderByNumberRequest) String() string

type GetHeaderByNumberResponse

type GetHeaderByNumberResponse struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHeaderByNumberResponse) Descriptor deprecated

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

Deprecated: Use GetHeaderByNumberResponse.ProtoReflect.Descriptor instead.

func (*GetHeaderByNumberResponse) GetHeader

func (x *GetHeaderByNumberResponse) GetHeader() *Header

func (*GetHeaderByNumberResponse) ProtoMessage

func (*GetHeaderByNumberResponse) ProtoMessage()

func (*GetHeaderByNumberResponse) ProtoReflect

func (*GetHeaderByNumberResponse) Reset

func (x *GetHeaderByNumberResponse) Reset()

func (*GetHeaderByNumberResponse) String

func (x *GetHeaderByNumberResponse) String() string

type GetRootHashRequest

type GetRootHashRequest struct {
	StartBlockNumber uint64 `protobuf:"varint,1,opt,name=startBlockNumber,proto3" json:"startBlockNumber,omitempty"`
	EndBlockNumber   uint64 `protobuf:"varint,2,opt,name=endBlockNumber,proto3" json:"endBlockNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRootHashRequest) Descriptor deprecated

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

Deprecated: Use GetRootHashRequest.ProtoReflect.Descriptor instead.

func (*GetRootHashRequest) GetEndBlockNumber

func (x *GetRootHashRequest) GetEndBlockNumber() uint64

func (*GetRootHashRequest) GetStartBlockNumber

func (x *GetRootHashRequest) GetStartBlockNumber() uint64

func (*GetRootHashRequest) ProtoMessage

func (*GetRootHashRequest) ProtoMessage()

func (*GetRootHashRequest) ProtoReflect

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

func (*GetRootHashRequest) Reset

func (x *GetRootHashRequest) Reset()

func (*GetRootHashRequest) String

func (x *GetRootHashRequest) String() string

type GetRootHashResponse

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

func (*GetRootHashResponse) Descriptor deprecated

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

Deprecated: Use GetRootHashResponse.ProtoReflect.Descriptor instead.

func (*GetRootHashResponse) GetRootHash

func (x *GetRootHashResponse) GetRootHash() string

func (*GetRootHashResponse) ProtoMessage

func (*GetRootHashResponse) ProtoMessage()

func (*GetRootHashResponse) ProtoReflect

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

func (*GetRootHashResponse) Reset

func (x *GetRootHashResponse) Reset()

func (*GetRootHashResponse) String

func (x *GetRootHashResponse) String() string

type GetVoteOnHashRequest

type GetVoteOnHashRequest struct {
	StartBlockNumber uint64 `protobuf:"varint,1,opt,name=startBlockNumber,proto3" json:"startBlockNumber,omitempty"`
	EndBlockNumber   uint64 `protobuf:"varint,2,opt,name=endBlockNumber,proto3" json:"endBlockNumber,omitempty"`
	Hash             string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	MilestoneId      string `protobuf:"bytes,4,opt,name=milestoneId,proto3" json:"milestoneId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVoteOnHashRequest) Descriptor deprecated

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

Deprecated: Use GetVoteOnHashRequest.ProtoReflect.Descriptor instead.

func (*GetVoteOnHashRequest) GetEndBlockNumber

func (x *GetVoteOnHashRequest) GetEndBlockNumber() uint64

func (*GetVoteOnHashRequest) GetHash

func (x *GetVoteOnHashRequest) GetHash() string

func (*GetVoteOnHashRequest) GetMilestoneId

func (x *GetVoteOnHashRequest) GetMilestoneId() string

func (*GetVoteOnHashRequest) GetStartBlockNumber

func (x *GetVoteOnHashRequest) GetStartBlockNumber() uint64

func (*GetVoteOnHashRequest) ProtoMessage

func (*GetVoteOnHashRequest) ProtoMessage()

func (*GetVoteOnHashRequest) ProtoReflect

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

func (*GetVoteOnHashRequest) Reset

func (x *GetVoteOnHashRequest) Reset()

func (*GetVoteOnHashRequest) String

func (x *GetVoteOnHashRequest) String() string

type GetVoteOnHashResponse

type GetVoteOnHashResponse struct {
	Response bool `protobuf:"varint,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVoteOnHashResponse) Descriptor deprecated

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

Deprecated: Use GetVoteOnHashResponse.ProtoReflect.Descriptor instead.

func (*GetVoteOnHashResponse) GetResponse

func (x *GetVoteOnHashResponse) GetResponse() bool

func (*GetVoteOnHashResponse) ProtoMessage

func (*GetVoteOnHashResponse) ProtoMessage()

func (*GetVoteOnHashResponse) ProtoReflect

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

func (*GetVoteOnHashResponse) Reset

func (x *GetVoteOnHashResponse) Reset()

func (*GetVoteOnHashResponse) String

func (x *GetVoteOnHashResponse) String() string
type Header struct {
	Number     uint64       `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	ParentHash *common.H256 `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	Time       uint64       `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetNumber

func (x *Header) GetNumber() uint64

func (*Header) GetParentHash

func (x *Header) GetParentHash() *common.H256

func (*Header) GetTime

func (x *Header) GetTime() uint64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Log

type Log struct {
	Address     *common.H160   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Topics      []*common.H256 `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	Data        []byte         `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	BlockNumber uint64         `protobuf:"varint,4,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
	TxHash      *common.H256   `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"`
	TxIndex     uint64         `protobuf:"varint,6,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	BlockHash   *common.H256   `protobuf:"bytes,7,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Index       uint64         `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"`
	Removed     bool           `protobuf:"varint,9,opt,name=removed,proto3" json:"removed,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetAddress

func (x *Log) GetAddress() *common.H160

func (*Log) GetBlockHash

func (x *Log) GetBlockHash() *common.H256

func (*Log) GetBlockNumber

func (x *Log) GetBlockNumber() uint64

func (*Log) GetData

func (x *Log) GetData() []byte

func (*Log) GetIndex

func (x *Log) GetIndex() uint64

func (*Log) GetRemoved

func (x *Log) GetRemoved() bool

func (*Log) GetTopics

func (x *Log) GetTopics() []*common.H256

func (*Log) GetTxHash

func (x *Log) GetTxHash() *common.H256

func (*Log) GetTxIndex

func (x *Log) GetTxIndex() uint64

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type Receipt

type Receipt struct {
	Type              uint64       `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	PostState         []byte       `protobuf:"bytes,2,opt,name=postState,proto3" json:"postState,omitempty"`
	Status            uint64       `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	CumulativeGasUsed uint64       `protobuf:"varint,4,opt,name=cumulativeGasUsed,proto3" json:"cumulativeGasUsed,omitempty"`
	Bloom             *Bloom       `protobuf:"bytes,5,opt,name=bloom,proto3" json:"bloom,omitempty"`
	Logs              []*Log       `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"`
	TxHash            *common.H256 `protobuf:"bytes,7,opt,name=txHash,proto3" json:"txHash,omitempty"`
	ContractAddress   *common.H160 `protobuf:"bytes,8,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"`
	GasUsed           uint64       `protobuf:"varint,9,opt,name=gasUsed,proto3" json:"gasUsed,omitempty"`
	EffectiveGasPrice int64        `protobuf:"varint,10,opt,name=effectiveGasPrice,proto3" json:"effectiveGasPrice,omitempty"`
	BlobGasUsed       uint64       `protobuf:"varint,11,opt,name=blobGasUsed,proto3" json:"blobGasUsed,omitempty"`
	BlobGasPrice      int64        `protobuf:"varint,12,opt,name=blobGasPrice,proto3" json:"blobGasPrice,omitempty"`
	BlockHash         *common.H256 `protobuf:"bytes,13,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	BlockNumber       int64        `protobuf:"varint,14,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
	TransactionIndex  uint64       `protobuf:"varint,15,opt,name=transactionIndex,proto3" json:"transactionIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt) Descriptor deprecated

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

Deprecated: Use Receipt.ProtoReflect.Descriptor instead.

func (*Receipt) GetBlobGasPrice

func (x *Receipt) GetBlobGasPrice() int64

func (*Receipt) GetBlobGasUsed

func (x *Receipt) GetBlobGasUsed() uint64

func (*Receipt) GetBlockHash

func (x *Receipt) GetBlockHash() *common.H256

func (*Receipt) GetBlockNumber

func (x *Receipt) GetBlockNumber() int64

func (*Receipt) GetBloom

func (x *Receipt) GetBloom() *Bloom

func (*Receipt) GetContractAddress

func (x *Receipt) GetContractAddress() *common.H160

func (*Receipt) GetCumulativeGasUsed

func (x *Receipt) GetCumulativeGasUsed() uint64

func (*Receipt) GetEffectiveGasPrice

func (x *Receipt) GetEffectiveGasPrice() int64

func (*Receipt) GetGasUsed

func (x *Receipt) GetGasUsed() uint64

func (*Receipt) GetLogs

func (x *Receipt) GetLogs() []*Log

func (*Receipt) GetPostState

func (x *Receipt) GetPostState() []byte

func (*Receipt) GetStatus

func (x *Receipt) GetStatus() uint64

func (*Receipt) GetTransactionIndex

func (x *Receipt) GetTransactionIndex() uint64

func (*Receipt) GetTxHash

func (x *Receipt) GetTxHash() *common.H256

func (*Receipt) GetType

func (x *Receipt) GetType() uint64

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) ProtoReflect

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

func (*Receipt) Reset

func (x *Receipt) Reset()

func (*Receipt) String

func (x *Receipt) String() string

type ReceiptRequest

type ReceiptRequest struct {
	Hash *common.H256 `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptRequest) Descriptor deprecated

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

Deprecated: Use ReceiptRequest.ProtoReflect.Descriptor instead.

func (*ReceiptRequest) GetHash

func (x *ReceiptRequest) GetHash() *common.H256

func (*ReceiptRequest) ProtoMessage

func (*ReceiptRequest) ProtoMessage()

func (*ReceiptRequest) ProtoReflect

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

func (*ReceiptRequest) Reset

func (x *ReceiptRequest) Reset()

func (*ReceiptRequest) String

func (x *ReceiptRequest) String() string

type ReceiptResponse

type ReceiptResponse struct {
	Receipt *Receipt `protobuf:"bytes,1,opt,name=receipt,proto3" json:"receipt,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptResponse) Descriptor deprecated

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

Deprecated: Use ReceiptResponse.ProtoReflect.Descriptor instead.

func (*ReceiptResponse) GetReceipt

func (x *ReceiptResponse) GetReceipt() *Receipt

func (*ReceiptResponse) ProtoMessage

func (*ReceiptResponse) ProtoMessage()

func (*ReceiptResponse) ProtoReflect

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

func (*ReceiptResponse) Reset

func (x *ReceiptResponse) Reset()

func (*ReceiptResponse) String

func (x *ReceiptResponse) String() string

type UnimplementedBorApiServer

type UnimplementedBorApiServer struct {
}

UnimplementedBorApiServer must be embedded to have forward compatible implementations.

func (UnimplementedBorApiServer) BorBlockReceipt

func (UnimplementedBorApiServer) GetRootHash

func (UnimplementedBorApiServer) GetVoteOnHash

func (UnimplementedBorApiServer) TransactionReceipt

type UnsafeBorApiServer

type UnsafeBorApiServer interface {
	// contains filtered or unexported methods
}

UnsafeBorApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BorApiServer will result in compilation errors.

Jump to

Keyboard shortcuts

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