Versions in this module Expand all Collapse all v11 v11.0.0 Aug 29, 2022 Changes in this version + var ErrIntOverflowTree = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTree = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupTree = fmt.Errorf("proto: unexpected end of group") + type Child struct + Accumulation github_com_cosmos_cosmos_sdk_types.Int + Index []byte + func (*Child) Descriptor() ([]byte, []int) + func (*Child) ProtoMessage() + func (m *Child) GetIndex() []byte + func (m *Child) Marshal() (dAtA []byte, err error) + func (m *Child) MarshalTo(dAtA []byte) (int, error) + func (m *Child) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Child) Reset() + func (m *Child) Size() (n int) + func (m *Child) String() string + func (m *Child) Unmarshal(dAtA []byte) error + func (m *Child) XXX_DiscardUnknown() + func (m *Child) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Child) XXX_Merge(src proto.Message) + func (m *Child) XXX_Size() int + func (m *Child) XXX_Unmarshal(b []byte) error + type Leaf struct + Leaf *Child + func NewLeaf(key []byte, acc sdk.Int) *Leaf + func (*Leaf) Descriptor() ([]byte, []int) + func (*Leaf) ProtoMessage() + func (m *Leaf) GetLeaf() *Child + func (m *Leaf) Marshal() (dAtA []byte, err error) + func (m *Leaf) MarshalTo(dAtA []byte) (int, error) + func (m *Leaf) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Leaf) Reset() + func (m *Leaf) Size() (n int) + func (m *Leaf) String() string + func (m *Leaf) Unmarshal(dAtA []byte) error + func (m *Leaf) XXX_DiscardUnknown() + func (m *Leaf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Leaf) XXX_Merge(src proto.Message) + func (m *Leaf) XXX_Size() int + func (m *Leaf) XXX_Unmarshal(b []byte) error + type Node struct + Children []*Child + func NewNode(cs ...*Child) *Node + func (*Node) Descriptor() ([]byte, []int) + func (*Node) ProtoMessage() + func (m *Node) GetChildren() []*Child + func (m *Node) Marshal() (dAtA []byte, err error) + func (m *Node) MarshalTo(dAtA []byte) (int, error) + func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Node) Reset() + func (m *Node) Size() (n int) + func (m *Node) String() string + func (m *Node) Unmarshal(dAtA []byte) error + func (m *Node) XXX_DiscardUnknown() + func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Node) XXX_Merge(src proto.Message) + func (m *Node) XXX_Size() int + func (m *Node) XXX_Unmarshal(b []byte) error + type Tree struct + func NewTree(store store.KVStore, m uint8) Tree + func (t Tree) Clear() + func (t Tree) DebugVisualize() + func (t Tree) Decrease(key []byte, amt sdk.Int) + func (t Tree) Get(key []byte) sdk.Int + func (t Tree) Increase(key []byte, amt sdk.Int) + func (t Tree) IsEmpty() bool + func (t Tree) Iterator(begin, end []byte) store.Iterator + func (t Tree) PrefixSum(key []byte) sdk.Int + func (t Tree) Remove(key []byte) + func (t Tree) ReverseIterator(begin, end []byte) store.Iterator + func (t Tree) Set(key []byte, acc sdk.Int) + func (t Tree) SplitAcc(key []byte) (sdk.Int, sdk.Int, sdk.Int) + func (t Tree) SubsetAccumulation(start []byte, end []byte) sdk.Int + func (t Tree) TotalAccumulatedValue() sdk.Int