types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCEpoch

type CCEpoch struct {
	Number        int64
	StartHeight   int64
	EndTime       int64
	TransferInfos []*CCTransferInfo
}

func (*CCEpoch) DecodeMsg

func (z *CCEpoch) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*CCEpoch) EncodeMsg

func (z *CCEpoch) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*CCEpoch) MarshalMsg

func (z *CCEpoch) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*CCEpoch) Msgsize

func (z *CCEpoch) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*CCEpoch) UnmarshalMsg

func (z *CCEpoch) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type CCInfo

type CCInfo struct {
	GenesisMainnetBlockHeight int64 `msgp:"genesis_mainnet_block_height"`
	CurrEpochNum              int64 `msgp:"curr_epoch_num"`
}

func (*CCInfo) DecodeMsg

func (z *CCInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (CCInfo) EncodeMsg

func (z CCInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (CCInfo) MarshalMsg

func (z CCInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (CCInfo) Msgsize

func (z CCInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*CCInfo) UnmarshalMsg

func (z *CCInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type CCTransferInfo

type CCTransferInfo struct {
	UTXO         [36]byte
	Amount       uint64
	SenderPubkey [33]byte
}

func (*CCTransferInfo) DecodeMsg

func (z *CCTransferInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*CCTransferInfo) EncodeMsg

func (z *CCTransferInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*CCTransferInfo) MarshalMsg

func (z *CCTransferInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*CCTransferInfo) Msgsize

func (z *CCTransferInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*CCTransferInfo) UnmarshalMsg

func (z *CCTransferInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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