Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalanceTree ¶
type BalanceTree struct {
// contains filtered or unexported fields
}
func NewBalanceTree ¶
func NewBalanceTree(balances []Balance) (*BalanceTree, error)
func (*BalanceTree) GetRoot ¶
func (b *BalanceTree) GetRoot() common.Hash
type Elements ¶
func (Elements) ToHexArray ¶
type MerkleDistributorInfo ¶
type MerkleDistributorInfo struct { MerkleRoot common.Hash `json:"merkleRoot"` TokenTotal string `json:"tokenTotal"` Claims []Claim `json:"claims"` }
func ParseBalanceMap ¶
func ParseBalanceMap(balances []Balance) (MerkleDistributorInfo, error)
type MerkleTree ¶
type MerkleTree struct {
// contains filtered or unexported fields
}
func NewMerkleTree ¶
func NewMerkleTree(elements Elements) (*MerkleTree, error)
func (*MerkleTree) GetLayers ¶
func (m *MerkleTree) GetLayers(elements Elements) ([][]common.Hash, error)
func (*MerkleTree) GetNextLayer ¶
func (m *MerkleTree) GetNextLayer(elements Elements) Elements
func (*MerkleTree) GetRoot ¶
func (m *MerkleTree) GetRoot() common.Hash
Click to show internal directories.
Click to hide internal directories.