Documentation ¶
Index ¶
- Constants
- Variables
- func AddDeposit(c iotex.AuthedClient, bucketID uint64, amount *big.Int) (hash.Hash256, error)
- func GetBucketID(c iotex.AuthedClient, voter common.Address) (int64, error)
- func GetLastEndEpoch(c iotex.AuthedClient) (uint64, error)
- func Reward() error
- type DistributionInfo
- type Sender
Constants ¶
View Source
const ( // HermesABI defines the ABI of Hermes contract HermesABI = `` /* 9509-byte string literal not displayed */ // MultisendABI defines the ABI of multisend contract MultisendABI = `` /* 3570-byte string literal not displayed */ // AutoDepositABI defines the ABI of auto deposit contract AutoDepositABI = `` /* 4761-byte string literal not displayed */ )
Variables ¶
View Source
var DistributeCmd = &cobra.Command{ Use: "distribute DELEGATE", Short: "Distribute rewards for delegate", Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return Reward() }, }
DistributeCmd is the distribute command
Functions ¶
func AddDeposit ¶
AddDeposit add deposit to bucket
func GetBucketID ¶
GetBucketID query bucketID from contract
func GetLastEndEpoch ¶
func GetLastEndEpoch(c iotex.AuthedClient) (uint64, error)
GetLastEndEpoch get last end epoch from hermes contract
Types ¶
Click to show internal directories.
Click to hide internal directories.