Documentation ¶
Index ¶
- Variables
- func EncodeBRROption(rebate, reward uint64) *big.Int
- func Preprocess(cmd *cobra.Command, args []string) (err error)
- func PrintCampaignInformation(cmd *cobra.Command, info *CampaignRelatedInfo)
- func PrintENV()
- func PrintStakeInformation(cmd *cobra.Command, info *StakeRelatedInfo)
- func PromptBRROption(prompter string) *big.Int
- type Campaign
- type CampaignRelatedInfo
- type KyberDAO
- func (self *KyberDAO) AllCampaignRelatedInfo(s string, camID *big.Int) (info *CampaignRelatedInfo, err error)
- func (self *KyberDAO) AllStakeRelatedInfo(s string, e uint64) (info *StakeRelatedInfo, err error)
- func (self *KyberDAO) AllTimeRelatedInfo() (*TimeRelatedInfo, error)
- func (self *KyberDAO) CurrentEpoch() (uint64, error)
- func (self *KyberDAO) GetCampaignDetail(id *big.Int) (result *Campaign, err error)
- func (self *KyberDAO) GetCampaignIDs(e uint64) ([]*big.Int, error)
- func (self *KyberDAO) GetDelegatedStake(s string, e uint64) (*big.Int, error)
- func (self *KyberDAO) GetPendingDelegatedStake(s string) (*big.Int, error)
- func (self *KyberDAO) GetPendingPoolMaster(s string) (common.Address, error)
- func (self *KyberDAO) GetPoolMaster(s string, e uint64) (common.Address, error)
- func (self *KyberDAO) GetRewardInfo(s string, e uint64, current bool) (reward *big.Int, totalReward *big.Int, share float64, isClaimed bool, ...)
- func (self *KyberDAO) GetStake(s string, e uint64) (*big.Int, error)
- func (self *KyberDAO) GetVotedOptionID(s string, camID *big.Int) (*big.Int, error)
- type StakeRelatedInfo
- type TimeRelatedInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StakingContract string DaoContract string FeeHandler string KNCContract string CampaignCreator string EpochDurationInSeconds uint64 StartDAOTimestamp uint64 MinCamDurationInSeconds uint64 Epoch uint64 CampaignID uint64 )
View Source
var KIP2 bool
View Source
var KyberDAOCmd = &cobra.Command{ Use: "kyber-dao-v1", Short: "participate to Kyber DAO V1 to get rewards", Long: ``, TraverseChildren: true, }
View Source
var MAX_ALLOWANCE = big.NewInt(0).Lsh(big.NewInt(1), 254)
View Source
var SAFE_ALLOWANCE = big.NewInt(0).Lsh(big.NewInt(1), 200)
Functions ¶
func EncodeBRROption ¶
func PrintCampaignInformation ¶
func PrintCampaignInformation(cmd *cobra.Command, info *CampaignRelatedInfo)
func PrintStakeInformation ¶
func PrintStakeInformation(cmd *cobra.Command, info *StakeRelatedInfo)
func PromptBRROption ¶
Types ¶
type Campaign ¶
type Campaign struct { CampaignType uint8 StartTimestamp *big.Int EndTimestamp *big.Int TotalKNCSupply *big.Int MinPercentageInPrecision *big.Int CInPrecision *big.Int TInPrecision *big.Int Link []byte Options []*big.Int OptionPoints []*big.Int TotalPoints *big.Int WinningOption *big.Int ID *big.Int }
func NewEmptyCampaign ¶
func NewEmptyCampaign() *Campaign
func (*Campaign) HasWinningOption ¶
type CampaignRelatedInfo ¶
type KyberDAO ¶
type KyberDAO struct {
// contains filtered or unexported fields
}
func (*KyberDAO) AllCampaignRelatedInfo ¶
func (*KyberDAO) AllStakeRelatedInfo ¶
func (self *KyberDAO) AllStakeRelatedInfo(s string, e uint64) (info *StakeRelatedInfo, err error)
func (*KyberDAO) AllTimeRelatedInfo ¶
func (self *KyberDAO) AllTimeRelatedInfo() (*TimeRelatedInfo, error)
func (*KyberDAO) CurrentEpoch ¶
func (*KyberDAO) GetCampaignDetail ¶
func (*KyberDAO) GetCampaignIDs ¶
func (*KyberDAO) GetDelegatedStake ¶
func (*KyberDAO) GetPendingDelegatedStake ¶
func (*KyberDAO) GetPendingPoolMaster ¶
func (*KyberDAO) GetPoolMaster ¶
func (*KyberDAO) GetRewardInfo ¶
type StakeRelatedInfo ¶
Click to show internal directories.
Click to hide internal directories.