Documentation ¶
Index ¶
- Constants
- Variables
- func AddressArrayToEth(addresses []Address) []ethcommon.Address
- func SetDurationPerBlock(d time.Duration)
- type Address
- type AddressBuf
- type BigIntegerBuf
- func (*BigIntegerBuf) Descriptor() ([]byte, []int)deprecated
- func (x *BigIntegerBuf) GetValue() []byte
- func (*BigIntegerBuf) ProtoMessage()
- func (x *BigIntegerBuf) ProtoReflect() protoreflect.Message
- func (x *BigIntegerBuf) Reset()
- func (x *BigIntegerBuf) String() string
- func (buf *BigIntegerBuf) Unmarshal() *big.Int
- type BlockId
- type BlockIdBuf
- func (*BlockIdBuf) Descriptor() ([]byte, []int)deprecated
- func (x *BlockIdBuf) GetHeaderHash() *HashBuf
- func (x *BlockIdBuf) GetHeight() *TimeBlocksBuf
- func (*BlockIdBuf) ProtoMessage()
- func (x *BlockIdBuf) ProtoReflect() protoreflect.Message
- func (x *BlockIdBuf) Reset()
- func (x *BlockIdBuf) String() string
- func (idb *BlockIdBuf) Unmarshal() *BlockId
- type Hash
- type HashBuf
- type TimeBlocks
- type TimeBlocksBuf
- func (*TimeBlocksBuf) Descriptor() ([]byte, []int)deprecated
- func (x *TimeBlocksBuf) GetVal() *BigIntegerBuf
- func (*TimeBlocksBuf) ProtoMessage()
- func (x *TimeBlocksBuf) ProtoReflect() protoreflect.Message
- func (x *TimeBlocksBuf) Reset()
- func (x *TimeBlocksBuf) String() string
- func (tb *TimeBlocksBuf) Unmarshal() *TimeBlocks
- type TimeTicks
- func (rt TimeTicks) Add(rt2 TimeTicks) TimeTicks
- func (rt TimeTicks) Clone() TimeTicks
- func (rt TimeTicks) Cmp(rt2 TimeTicks) int
- func (rt TimeTicks) Duration() time.Duration
- func (rt TimeTicks) Equals(rt2 TimeTicks) bool
- func (rt TimeTicks) MarshalToBuf() *TimeTicksBuf
- func (rt TimeTicks) String() string
- type TimeTicksBuf
- func (*TimeTicksBuf) Descriptor() ([]byte, []int)deprecated
- func (x *TimeTicksBuf) GetVal() *BigIntegerBuf
- func (*TimeTicksBuf) ProtoMessage()
- func (x *TimeTicksBuf) ProtoReflect() protoreflect.Message
- func (x *TimeTicksBuf) Reset()
- func (x *TimeTicksBuf) String() string
- func (rtb *TimeTicksBuf) Unmarshal() TimeTicks
Constants ¶
View Source
const TicksPerBlock = int64(1000)
Variables ¶
View Source
var File_common_proto protoreflect.FileDescriptor
Functions ¶
func AddressArrayToEth ¶ added in v0.5.0
func SetDurationPerBlock ¶
Types ¶
type Address ¶
type Address [20]byte
func AddressArrayFromEth ¶ added in v0.5.0
func HexToAddress ¶
func NewAddressFromEth ¶
func (Address) MarshallToBuf ¶
func (a Address) MarshallToBuf() *AddressBuf
func (Address) ShortString ¶
func (Address) ToEthAddress ¶
type AddressBuf ¶
type AddressBuf struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AddressBuf) Descriptor
deprecated
func (*AddressBuf) Descriptor() ([]byte, []int)
Deprecated: Use AddressBuf.ProtoReflect.Descriptor instead.
func (*AddressBuf) GetValue ¶
func (x *AddressBuf) GetValue() []byte
func (*AddressBuf) ProtoMessage ¶
func (*AddressBuf) ProtoMessage()
func (*AddressBuf) ProtoReflect ¶ added in v0.5.0
func (x *AddressBuf) ProtoReflect() protoreflect.Message
func (*AddressBuf) Reset ¶
func (x *AddressBuf) Reset()
func (*AddressBuf) String ¶
func (x *AddressBuf) String() string
func (*AddressBuf) Unmarshal ¶
func (a *AddressBuf) Unmarshal() Address
type BigIntegerBuf ¶
type BigIntegerBuf struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func MarshalBigInt ¶
func MarshalBigInt(bi *big.Int) *BigIntegerBuf
func (*BigIntegerBuf) Descriptor
deprecated
func (*BigIntegerBuf) Descriptor() ([]byte, []int)
Deprecated: Use BigIntegerBuf.ProtoReflect.Descriptor instead.
func (*BigIntegerBuf) GetValue ¶
func (x *BigIntegerBuf) GetValue() []byte
func (*BigIntegerBuf) ProtoMessage ¶
func (*BigIntegerBuf) ProtoMessage()
func (*BigIntegerBuf) ProtoReflect ¶ added in v0.5.0
func (x *BigIntegerBuf) ProtoReflect() protoreflect.Message
func (*BigIntegerBuf) Reset ¶
func (x *BigIntegerBuf) Reset()
func (*BigIntegerBuf) String ¶
func (x *BigIntegerBuf) String() string
func (*BigIntegerBuf) Unmarshal ¶
func (buf *BigIntegerBuf) Unmarshal() *big.Int
type BlockId ¶
type BlockId struct { Height *TimeBlocks HeaderHash Hash }
func (*BlockId) MarshalToBuf ¶
func (id *BlockId) MarshalToBuf() *BlockIdBuf
type BlockIdBuf ¶
type BlockIdBuf struct { Height *TimeBlocksBuf `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` HeaderHash *HashBuf `protobuf:"bytes,2,opt,name=headerHash,proto3" json:"headerHash,omitempty"` // contains filtered or unexported fields }
func (*BlockIdBuf) Descriptor
deprecated
func (*BlockIdBuf) Descriptor() ([]byte, []int)
Deprecated: Use BlockIdBuf.ProtoReflect.Descriptor instead.
func (*BlockIdBuf) GetHeaderHash ¶
func (x *BlockIdBuf) GetHeaderHash() *HashBuf
func (*BlockIdBuf) GetHeight ¶
func (x *BlockIdBuf) GetHeight() *TimeBlocksBuf
func (*BlockIdBuf) ProtoMessage ¶
func (*BlockIdBuf) ProtoMessage()
func (*BlockIdBuf) ProtoReflect ¶ added in v0.5.0
func (x *BlockIdBuf) ProtoReflect() protoreflect.Message
func (*BlockIdBuf) Reset ¶
func (x *BlockIdBuf) Reset()
func (*BlockIdBuf) String ¶
func (x *BlockIdBuf) String() string
func (*BlockIdBuf) Unmarshal ¶
func (idb *BlockIdBuf) Unmarshal() *BlockId
type Hash ¶
type Hash [32]byte
func NewHashFromEth ¶
func (Hash) MarshalToBuf ¶
func (Hash) ShortString ¶
type HashBuf ¶
type HashBuf struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func MarshalSliceOfHashes ¶
func (*HashBuf) Descriptor
deprecated
func (*HashBuf) ProtoMessage ¶
func (*HashBuf) ProtoMessage()
func (*HashBuf) ProtoReflect ¶ added in v0.5.0
func (x *HashBuf) ProtoReflect() protoreflect.Message
type TimeBlocks ¶
func BlocksFromSeconds ¶
func BlocksFromSeconds(seconds int64) *TimeBlocks
func NewTimeBlocks ¶
func NewTimeBlocks(val *big.Int) *TimeBlocks
func NewTimeBlocksInt ¶
func NewTimeBlocksInt(val int64) *TimeBlocks
func (*TimeBlocks) AsInt ¶
func (tb *TimeBlocks) AsInt() *big.Int
func (*TimeBlocks) Clone ¶
func (tb *TimeBlocks) Clone() *TimeBlocks
func (*TimeBlocks) Cmp ¶
func (tb *TimeBlocks) Cmp(tb2 *TimeBlocks) int
func (*TimeBlocks) Duration ¶
func (tb *TimeBlocks) Duration() time.Duration
func (*TimeBlocks) Marshal ¶
func (tb *TimeBlocks) Marshal() *TimeBlocksBuf
func (*TimeBlocks) String ¶
func (tb *TimeBlocks) String() string
type TimeBlocksBuf ¶
type TimeBlocksBuf struct { Val *BigIntegerBuf `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*TimeBlocksBuf) Descriptor
deprecated
func (*TimeBlocksBuf) Descriptor() ([]byte, []int)
Deprecated: Use TimeBlocksBuf.ProtoReflect.Descriptor instead.
func (*TimeBlocksBuf) GetVal ¶
func (x *TimeBlocksBuf) GetVal() *BigIntegerBuf
func (*TimeBlocksBuf) ProtoMessage ¶
func (*TimeBlocksBuf) ProtoMessage()
func (*TimeBlocksBuf) ProtoReflect ¶ added in v0.5.0
func (x *TimeBlocksBuf) ProtoReflect() protoreflect.Message
func (*TimeBlocksBuf) Reset ¶
func (x *TimeBlocksBuf) Reset()
func (*TimeBlocksBuf) String ¶
func (x *TimeBlocksBuf) String() string
func (*TimeBlocksBuf) Unmarshal ¶
func (tb *TimeBlocksBuf) Unmarshal() *TimeBlocks
type TimeTicks ¶
func TicksFromBlockNum ¶
func TicksFromBlockNum(blockNum *TimeBlocks) TimeTicks
func TicksFromSeconds ¶
func (TimeTicks) MarshalToBuf ¶
func (rt TimeTicks) MarshalToBuf() *TimeTicksBuf
type TimeTicksBuf ¶
type TimeTicksBuf struct { Val *BigIntegerBuf `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*TimeTicksBuf) Descriptor
deprecated
func (*TimeTicksBuf) Descriptor() ([]byte, []int)
Deprecated: Use TimeTicksBuf.ProtoReflect.Descriptor instead.
func (*TimeTicksBuf) GetVal ¶
func (x *TimeTicksBuf) GetVal() *BigIntegerBuf
func (*TimeTicksBuf) ProtoMessage ¶
func (*TimeTicksBuf) ProtoMessage()
func (*TimeTicksBuf) ProtoReflect ¶ added in v0.5.0
func (x *TimeTicksBuf) ProtoReflect() protoreflect.Message
func (*TimeTicksBuf) Reset ¶
func (x *TimeTicksBuf) Reset()
func (*TimeTicksBuf) String ¶
func (x *TimeTicksBuf) String() string
func (*TimeTicksBuf) Unmarshal ¶
func (rtb *TimeTicksBuf) Unmarshal() TimeTicks
Click to show internal directories.
Click to hide internal directories.