Documentation ¶
Index ¶
- Constants
- func FlagClaimMerkledrop() *flag.FlagSet
- func FlagsCreate() *flag.FlagSet
- func GetCmdClaim() *cobra.Command
- func GetCmdCreate() *cobra.Command
- func GetCmdQueryIndexClaimed() *cobra.Command
- func GetCmdQueryMerkledrop() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdUpdateMerkledropFees() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- func ProofBytesToString(proof [][]byte) []string
- type Account
- type ClaimInfo
- type Tree
Constants ¶
View Source
const ( FlagProofs = "proofs" FlagIndex = "index" FlagStartHeight = "start-height" FlagEndHeight = "end-height" FlagAmount = "amount" FlagDenom = "denom" )
Variables ¶
This section is empty.
Functions ¶
func FlagClaimMerkledrop ¶
func FlagsCreate ¶
func GetCmdClaim ¶
func GetCmdCreate ¶
func GetCmdQueryIndexClaimed ¶
func GetCmdQueryMerkledrop ¶
func GetCmdQueryParams ¶
GetCmdQueryParams implements the query fantoken related param command.
func GetQueryCmd ¶
GetQueryCmd returns the query commands for the nft module.
func ProofBytesToString ¶
Types ¶
type Tree ¶
type Tree [][][]byte
func CreateDistributionList ¶
func NewTree ¶
NewTree builds and returns a new merkle tree with the given leaf nodes. Each input leaf is hashed before the tree is built
func (Tree) LeafIndex ¶
LeafIndex returns the index of the given leaf and a -1 if the leaf is not found
func (Tree) Leafs ¶
Leafs returns the leafs in the tree. This is the hashes of the original input data
Click to show internal directories.
Click to hide internal directories.