Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + func IsSortedAndUniqueHashOf(bytesSlice [][]byte) bool + func SortHashOf(bytesSlice [][]byte) + type Builder interface + BuildVtx func(epoch uint32, parentIDs []ids.ID, txs []snowstorm.Tx, restrictions []ids.ID) (avalanche.Vertex, error) + type DAGVM interface + GetTx func(ids.ID) (snowstorm.Tx, error) + ParseTx func(tx []byte) (snowstorm.Tx, error) + PendingTxs func() []snowstorm.Tx + type Heap interface + Clear func() + Contains func(ids.ID) bool + Len func() int + Pop func() avalanche.Vertex + Push func(avalanche.Vertex) bool + func NewHeap() Heap + type Manager interface + type Parser interface + ParseVtx func(vertex []byte) (avalanche.Vertex, error) + type StatelessVertex interface + Bytes func() []byte + ChainID func() ids.ID + Epoch func() uint32 + Height func() uint64 + ID func() ids.ID + ParentIDs func() []ids.ID + Restrictions func() []ids.ID + Txs func() [][]byte + Version func() uint16 + func Build(chainID ids.ID, height uint64, epoch uint32, parentIDs []ids.ID, txs [][]byte, ...) (StatelessVertex, error) + func Parse(vertex []byte) (StatelessVertex, error) + type Storage interface + Edge func() (vtxIDs []ids.ID) + GetVtx func(vtxID ids.ID) (avalanche.Vertex, error) + type TestBuilder struct + BuildVtxF func(epoch uint32, parentIDs []ids.ID, txs []snowstorm.Tx, restrictions []ids.ID) (avalanche.Vertex, error) + CantBuildVtx bool + T *testing.T + func (b *TestBuilder) BuildVtx(epoch uint32, parentIDs []ids.ID, txs []snowstorm.Tx, restrictions []ids.ID) (avalanche.Vertex, error) + func (b *TestBuilder) Default(cant bool) + type TestManager struct + func NewTestManager(t *testing.T) *TestManager + func (m *TestManager) Default(cant bool) + type TestParser struct + CantParseVtx bool + ParseVtxF func([]byte) (avalanche.Vertex, error) + T *testing.T + func (p *TestParser) Default(cant bool) + func (p *TestParser) ParseVtx(b []byte) (avalanche.Vertex, error) + type TestStorage struct + CantEdge bool + CantGetVtx bool + EdgeF func() []ids.ID + GetVtxF func(ids.ID) (avalanche.Vertex, error) + T *testing.T + func (s *TestStorage) Default(cant bool) + func (s *TestStorage) Edge() []ids.ID + func (s *TestStorage) GetVtx(id ids.ID) (avalanche.Vertex, error) + type TestVM struct + CantGet bool + CantParse bool + CantPendingTxs bool + GetTxF func(ids.ID) (snowstorm.Tx, error) + ParseTxF func([]byte) (snowstorm.Tx, error) + PendingTxsF func() []snowstorm.Tx + func (vm *TestVM) Default(cant bool) + func (vm *TestVM) GetTx(txID ids.ID) (snowstorm.Tx, error) + func (vm *TestVM) ParseTx(b []byte) (snowstorm.Tx, error) + func (vm *TestVM) PendingTxs() []snowstorm.Tx