Versions in this module Expand all Collapse all v1 v1.9.8 Jun 28, 2023 Changes in this version + const Version + var Codec codec.Manager + var GenesisCodec codec.Manager + func RegisterApricotBlockTypes(targetCodec codec.Registry) error + func RegisterBanffBlockTypes(targetCodec codec.Registry) error + type ApricotAbortBlock struct + func NewApricotAbortBlock(parentID ids.ID, height uint64) (*ApricotAbortBlock, error) + func (*ApricotAbortBlock) InitCtx(*snow.Context) + func (*ApricotAbortBlock) Txs() []*txs.Tx + func (b *ApricotAbortBlock) Visit(v Visitor) error + type ApricotAtomicBlock struct + Tx *txs.Tx + func NewApricotAtomicBlock(parentID ids.ID, height uint64, tx *txs.Tx) (*ApricotAtomicBlock, error) + func (b *ApricotAtomicBlock) InitCtx(ctx *snow.Context) + func (b *ApricotAtomicBlock) Txs() []*txs.Tx + func (b *ApricotAtomicBlock) Visit(v Visitor) error + type ApricotCommitBlock struct + func NewApricotCommitBlock(parentID ids.ID, height uint64) (*ApricotCommitBlock, error) + func (*ApricotCommitBlock) InitCtx(*snow.Context) + func (*ApricotCommitBlock) Txs() []*txs.Tx + func (b *ApricotCommitBlock) Visit(v Visitor) error + type ApricotProposalBlock struct + Tx *txs.Tx + func NewApricotProposalBlock(parentID ids.ID, height uint64, tx *txs.Tx) (*ApricotProposalBlock, error) + func (b *ApricotProposalBlock) InitCtx(ctx *snow.Context) + func (b *ApricotProposalBlock) Txs() []*txs.Tx + func (b *ApricotProposalBlock) Visit(v Visitor) error + type ApricotStandardBlock struct + Transactions []*txs.Tx + func NewApricotStandardBlock(parentID ids.ID, height uint64, txs []*txs.Tx) (*ApricotStandardBlock, error) + func (b *ApricotStandardBlock) InitCtx(ctx *snow.Context) + func (b *ApricotStandardBlock) Txs() []*txs.Tx + func (b *ApricotStandardBlock) Visit(v Visitor) error + type BanffAbortBlock struct + Time uint64 + func NewBanffAbortBlock(timestamp time.Time, parentID ids.ID, height uint64) (*BanffAbortBlock, error) + func (b *BanffAbortBlock) Timestamp() time.Time + func (b *BanffAbortBlock) Visit(v Visitor) error + type BanffBlock interface + Timestamp func() time.Time + type BanffCommitBlock struct + Time uint64 + func NewBanffCommitBlock(timestamp time.Time, parentID ids.ID, height uint64) (*BanffCommitBlock, error) + func (b *BanffCommitBlock) Timestamp() time.Time + func (b *BanffCommitBlock) Visit(v Visitor) error + type BanffProposalBlock struct + Time uint64 + Transactions []*txs.Tx + func NewBanffProposalBlock(timestamp time.Time, parentID ids.ID, height uint64, tx *txs.Tx) (*BanffProposalBlock, error) + func (b *BanffProposalBlock) InitCtx(ctx *snow.Context) + func (b *BanffProposalBlock) Timestamp() time.Time + func (b *BanffProposalBlock) Visit(v Visitor) error + type BanffStandardBlock struct + Time uint64 + func NewBanffStandardBlock(timestamp time.Time, parentID ids.ID, height uint64, txs []*txs.Tx) (*BanffStandardBlock, error) + func (b *BanffStandardBlock) Timestamp() time.Time + func (b *BanffStandardBlock) Visit(v Visitor) error + type Block interface + Bytes func() []byte + Height func() uint64 + ID func() ids.ID + Parent func() ids.ID + Txs func() []*txs.Tx + Visit func(visitor Visitor) error + func Parse(c codec.Manager, b []byte) (Block, error) + type CommonBlock struct + Hght uint64 + PrntID ids.ID + func (b *CommonBlock) Bytes() []byte + func (b *CommonBlock) Height() uint64 + func (b *CommonBlock) ID() ids.ID + func (b *CommonBlock) Parent() ids.ID + type MockBlock struct + func NewMockBlock(ctrl *gomock.Controller) *MockBlock + func (m *MockBlock) Bytes() []byte + func (m *MockBlock) EXPECT() *MockBlockMockRecorder + func (m *MockBlock) Height() uint64 + func (m *MockBlock) ID() ids.ID + func (m *MockBlock) InitCtx(arg0 *snow.Context) + func (m *MockBlock) Parent() ids.ID + func (m *MockBlock) Txs() []*txs.Tx + func (m *MockBlock) Visit(arg0 Visitor) error + type MockBlockMockRecorder struct + func (mr *MockBlockMockRecorder) Bytes() *gomock.Call + func (mr *MockBlockMockRecorder) Height() *gomock.Call + func (mr *MockBlockMockRecorder) ID() *gomock.Call + func (mr *MockBlockMockRecorder) InitCtx(arg0 interface{}) *gomock.Call + func (mr *MockBlockMockRecorder) Parent() *gomock.Call + func (mr *MockBlockMockRecorder) Txs() *gomock.Call + func (mr *MockBlockMockRecorder) Visit(arg0 interface{}) *gomock.Call + type Visitor interface + ApricotAbortBlock func(*ApricotAbortBlock) error + ApricotAtomicBlock func(*ApricotAtomicBlock) error + ApricotCommitBlock func(*ApricotCommitBlock) error + ApricotProposalBlock func(*ApricotProposalBlock) error + ApricotStandardBlock func(*ApricotStandardBlock) error + BanffAbortBlock func(*BanffAbortBlock) error + BanffCommitBlock func(*BanffCommitBlock) error + BanffProposalBlock func(*BanffProposalBlock) error + BanffStandardBlock func(*BanffStandardBlock) error v1.9.8-rc.9 Jun 28, 2023