Documentation ¶
Index ¶
- Variables
- type Approval
- func (*Approval) Descriptor() ([]byte, []int)deprecated
- func (x *Approval) GetBlock() uint64
- func (x *Approval) GetIdx() uint64
- func (x *Approval) GetOwner() []byte
- func (x *Approval) GetSpender() []byte
- func (x *Approval) GetTs() *timestamppb.Timestamp
- func (x *Approval) GetTx() []byte
- func (x *Approval) GetValue() []byte
- func (*Approval) ProtoMessage()
- func (x *Approval) ProtoReflect() protoreflect.Message
- func (x *Approval) Reset()
- func (x *Approval) String() string
- type COKC
- type COKCApproval
- type COKCApprovalIterator
- type COKCCaller
- func (_COKC *COKCCaller) AUTHORS(opts *bind.CallOpts) (string, error)
- func (_COKC *COKCCaller) ActiveMinters(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) ActiveStakes(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_COKC *COKCCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_COKC *COKCCaller) DAYSINYEAR(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_COKC *COKCCaller) EAAPMSTART(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) EAAPMSTEP(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) EAARANKSTEP(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GENESISRANK(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GenesisTs(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GetCurrentAMP(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GetCurrentAPY(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GetCurrentEAAR(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GetCurrentMaxTerm(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) GetGrossReward(opts *bind.CallOpts, rankDelta *big.Int, amplifier *big.Int, term *big.Int, ...) (*big.Int, error)
- func (_COKC *COKCCaller) GetUserMint(opts *bind.CallOpts) (XENCryptoMintInfo, error)
- func (_COKC *COKCCaller) GetUserStake(opts *bind.CallOpts) (XENCryptoStakeInfo, error)
- func (_COKC *COKCCaller) GlobalRank(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) MAXPENALTYPCT(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) MAXTERMEND(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) MAXTERMSTART(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) MINTERM(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) Name(opts *bind.CallOpts) (string, error)
- func (_COKC *COKCCaller) REWARDAMPLIFIEREND(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) REWARDAMPLIFIERSTART(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) SECONDSINDAY(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_COKC *COKCCaller) TERMAMPLIFIER(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) TERMAMPLIFIERTHRESHOLD(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) TotalXenStaked(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) UserBurns(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_COKC *COKCCaller) UserMints(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_COKC *COKCCaller) UserStakes(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_COKC *COKCCaller) WITHDRAWALWINDOWDAYS(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) XENAPYDAYSSTEP(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) XENAPYEND(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) XENAPYSTART(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) XENMINBURN(opts *bind.CallOpts) (*big.Int, error)
- func (_COKC *COKCCaller) XENMINSTAKE(opts *bind.CallOpts) (*big.Int, error)
- type COKCCallerRaw
- type COKCCallerSession
- func (_COKC *COKCCallerSession) AUTHORS() (string, error)
- func (_COKC *COKCCallerSession) ActiveMinters() (*big.Int, error)
- func (_COKC *COKCCallerSession) ActiveStakes() (*big.Int, error)
- func (_COKC *COKCCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_COKC *COKCCallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_COKC *COKCCallerSession) DAYSINYEAR() (*big.Int, error)
- func (_COKC *COKCCallerSession) Decimals() (uint8, error)
- func (_COKC *COKCCallerSession) EAAPMSTART() (*big.Int, error)
- func (_COKC *COKCCallerSession) EAAPMSTEP() (*big.Int, error)
- func (_COKC *COKCCallerSession) EAARANKSTEP() (*big.Int, error)
- func (_COKC *COKCCallerSession) GENESISRANK() (*big.Int, error)
- func (_COKC *COKCCallerSession) GenesisTs() (*big.Int, error)
- func (_COKC *COKCCallerSession) GetCurrentAMP() (*big.Int, error)
- func (_COKC *COKCCallerSession) GetCurrentAPY() (*big.Int, error)
- func (_COKC *COKCCallerSession) GetCurrentEAAR() (*big.Int, error)
- func (_COKC *COKCCallerSession) GetCurrentMaxTerm() (*big.Int, error)
- func (_COKC *COKCCallerSession) GetGrossReward(rankDelta *big.Int, amplifier *big.Int, term *big.Int, eaa *big.Int) (*big.Int, error)
- func (_COKC *COKCCallerSession) GetUserMint() (XENCryptoMintInfo, error)
- func (_COKC *COKCCallerSession) GetUserStake() (XENCryptoStakeInfo, error)
- func (_COKC *COKCCallerSession) GlobalRank() (*big.Int, error)
- func (_COKC *COKCCallerSession) MAXPENALTYPCT() (*big.Int, error)
- func (_COKC *COKCCallerSession) MAXTERMEND() (*big.Int, error)
- func (_COKC *COKCCallerSession) MAXTERMSTART() (*big.Int, error)
- func (_COKC *COKCCallerSession) MINTERM() (*big.Int, error)
- func (_COKC *COKCCallerSession) Name() (string, error)
- func (_COKC *COKCCallerSession) REWARDAMPLIFIEREND() (*big.Int, error)
- func (_COKC *COKCCallerSession) REWARDAMPLIFIERSTART() (*big.Int, error)
- func (_COKC *COKCCallerSession) SECONDSINDAY() (*big.Int, error)
- func (_COKC *COKCCallerSession) Symbol() (string, error)
- func (_COKC *COKCCallerSession) TERMAMPLIFIER() (*big.Int, error)
- func (_COKC *COKCCallerSession) TERMAMPLIFIERTHRESHOLD() (*big.Int, error)
- func (_COKC *COKCCallerSession) TotalSupply() (*big.Int, error)
- func (_COKC *COKCCallerSession) TotalXenStaked() (*big.Int, error)
- func (_COKC *COKCCallerSession) UserBurns(arg0 common.Address) (*big.Int, error)
- func (_COKC *COKCCallerSession) UserMints(arg0 common.Address) (struct{ ... }, error)
- func (_COKC *COKCCallerSession) UserStakes(arg0 common.Address) (struct{ ... }, error)
- func (_COKC *COKCCallerSession) WITHDRAWALWINDOWDAYS() (*big.Int, error)
- func (_COKC *COKCCallerSession) XENAPYDAYSSTEP() (*big.Int, error)
- func (_COKC *COKCCallerSession) XENAPYEND() (*big.Int, error)
- func (_COKC *COKCCallerSession) XENAPYSTART() (*big.Int, error)
- func (_COKC *COKCCallerSession) XENMINBURN() (*big.Int, error)
- func (_COKC *COKCCallerSession) XENMINSTAKE() (*big.Int, error)
- type COKCFilterer
- func (_COKC *COKCFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*COKCApprovalIterator, error)
- func (_COKC *COKCFilterer) FilterMintClaimed(opts *bind.FilterOpts, user []common.Address) (*COKCMintClaimedIterator, error)
- func (_COKC *COKCFilterer) FilterRankClaimed(opts *bind.FilterOpts, user []common.Address) (*COKCRankClaimedIterator, error)
- func (_COKC *COKCFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address) (*COKCStakedIterator, error)
- func (_COKC *COKCFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*COKCTransferIterator, error)
- func (_COKC *COKCFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*COKCWithdrawnIterator, error)
- func (_COKC *COKCFilterer) ParseApproval(log types.Log) (*COKCApproval, error)
- func (_COKC *COKCFilterer) ParseMintClaimed(log types.Log) (*COKCMintClaimed, error)
- func (_COKC *COKCFilterer) ParseRankClaimed(log types.Log) (*COKCRankClaimed, error)
- func (_COKC *COKCFilterer) ParseStaked(log types.Log) (*COKCStaked, error)
- func (_COKC *COKCFilterer) ParseTransfer(log types.Log) (*COKCTransfer, error)
- func (_COKC *COKCFilterer) ParseWithdrawn(log types.Log) (*COKCWithdrawn, error)
- func (_COKC *COKCFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *COKCApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_COKC *COKCFilterer) WatchMintClaimed(opts *bind.WatchOpts, sink chan<- *COKCMintClaimed, user []common.Address) (event.Subscription, error)
- func (_COKC *COKCFilterer) WatchRankClaimed(opts *bind.WatchOpts, sink chan<- *COKCRankClaimed, user []common.Address) (event.Subscription, error)
- func (_COKC *COKCFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *COKCStaked, user []common.Address) (event.Subscription, error)
- func (_COKC *COKCFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *COKCTransfer, from []common.Address, ...) (event.Subscription, error)
- func (_COKC *COKCFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *COKCWithdrawn, user []common.Address) (event.Subscription, error)
- type COKCMintClaimed
- type COKCMintClaimedIterator
- type COKCRankClaimed
- type COKCRankClaimedIterator
- type COKCRaw
- func (_COKC *COKCRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_COKC *COKCRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_COKC *COKCRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type COKCSession
- func (_COKC *COKCSession) AUTHORS() (string, error)
- func (_COKC *COKCSession) ActiveMinters() (*big.Int, error)
- func (_COKC *COKCSession) ActiveStakes() (*big.Int, error)
- func (_COKC *COKCSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_COKC *COKCSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_COKC *COKCSession) Burn(user common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) ClaimMintReward() (*types.Transaction, error)
- func (_COKC *COKCSession) ClaimMintRewardAndShare(other common.Address, pct *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) ClaimMintRewardAndStake(pct *big.Int, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) ClaimRank(term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) DAYSINYEAR() (*big.Int, error)
- func (_COKC *COKCSession) Decimals() (uint8, error)
- func (_COKC *COKCSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) EAAPMSTART() (*big.Int, error)
- func (_COKC *COKCSession) EAAPMSTEP() (*big.Int, error)
- func (_COKC *COKCSession) EAARANKSTEP() (*big.Int, error)
- func (_COKC *COKCSession) GENESISRANK() (*big.Int, error)
- func (_COKC *COKCSession) GenesisTs() (*big.Int, error)
- func (_COKC *COKCSession) GetCurrentAMP() (*big.Int, error)
- func (_COKC *COKCSession) GetCurrentAPY() (*big.Int, error)
- func (_COKC *COKCSession) GetCurrentEAAR() (*big.Int, error)
- func (_COKC *COKCSession) GetCurrentMaxTerm() (*big.Int, error)
- func (_COKC *COKCSession) GetGrossReward(rankDelta *big.Int, amplifier *big.Int, term *big.Int, eaa *big.Int) (*big.Int, error)
- func (_COKC *COKCSession) GetUserMint() (XENCryptoMintInfo, error)
- func (_COKC *COKCSession) GetUserStake() (XENCryptoStakeInfo, error)
- func (_COKC *COKCSession) GlobalRank() (*big.Int, error)
- func (_COKC *COKCSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) MAXPENALTYPCT() (*big.Int, error)
- func (_COKC *COKCSession) MAXTERMEND() (*big.Int, error)
- func (_COKC *COKCSession) MAXTERMSTART() (*big.Int, error)
- func (_COKC *COKCSession) MINTERM() (*big.Int, error)
- func (_COKC *COKCSession) Name() (string, error)
- func (_COKC *COKCSession) REWARDAMPLIFIEREND() (*big.Int, error)
- func (_COKC *COKCSession) REWARDAMPLIFIERSTART() (*big.Int, error)
- func (_COKC *COKCSession) SECONDSINDAY() (*big.Int, error)
- func (_COKC *COKCSession) Stake(amount *big.Int, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) Symbol() (string, error)
- func (_COKC *COKCSession) TERMAMPLIFIER() (*big.Int, error)
- func (_COKC *COKCSession) TERMAMPLIFIERTHRESHOLD() (*big.Int, error)
- func (_COKC *COKCSession) TotalSupply() (*big.Int, error)
- func (_COKC *COKCSession) TotalXenStaked() (*big.Int, error)
- func (_COKC *COKCSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCSession) UserBurns(arg0 common.Address) (*big.Int, error)
- func (_COKC *COKCSession) UserMints(arg0 common.Address) (struct{ ... }, error)
- func (_COKC *COKCSession) UserStakes(arg0 common.Address) (struct{ ... }, error)
- func (_COKC *COKCSession) WITHDRAWALWINDOWDAYS() (*big.Int, error)
- func (_COKC *COKCSession) Withdraw() (*types.Transaction, error)
- func (_COKC *COKCSession) XENAPYDAYSSTEP() (*big.Int, error)
- func (_COKC *COKCSession) XENAPYEND() (*big.Int, error)
- func (_COKC *COKCSession) XENAPYSTART() (*big.Int, error)
- func (_COKC *COKCSession) XENMINBURN() (*big.Int, error)
- func (_COKC *COKCSession) XENMINSTAKE() (*big.Int, error)
- type COKCStaked
- type COKCStakedIterator
- type COKCTransactor
- func (_COKC *COKCTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) Burn(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) ClaimMintReward(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_COKC *COKCTransactor) ClaimMintRewardAndShare(opts *bind.TransactOpts, other common.Address, pct *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) ClaimMintRewardAndStake(opts *bind.TransactOpts, pct *big.Int, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) ClaimRank(opts *bind.TransactOpts, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) Stake(opts *bind.TransactOpts, amount *big.Int, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_COKC *COKCTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- type COKCTransactorRaw
- type COKCTransactorSession
- func (_COKC *COKCTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) Burn(user common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) ClaimMintReward() (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) ClaimMintRewardAndShare(other common.Address, pct *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) ClaimMintRewardAndStake(pct *big.Int, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) ClaimRank(term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) Stake(amount *big.Int, term *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_COKC *COKCTransactorSession) Withdraw() (*types.Transaction, error)
- type COKCTransfer
- type COKCTransferIterator
- type COKCWithdrawn
- type COKCWithdrawnIterator
- type MintClaimed
- func (*MintClaimed) Descriptor() ([]byte, []int)deprecated
- func (x *MintClaimed) GetBlock() uint64
- func (x *MintClaimed) GetIdx() uint64
- func (x *MintClaimed) GetRewardAmount() []byte
- func (x *MintClaimed) GetTs() *timestamppb.Timestamp
- func (x *MintClaimed) GetTx() []byte
- func (x *MintClaimed) GetUser() []byte
- func (*MintClaimed) ProtoMessage()
- func (x *MintClaimed) ProtoReflect() protoreflect.Message
- func (x *MintClaimed) Reset()
- func (x *MintClaimed) String() string
- type RankClaimed
- func (*RankClaimed) Descriptor() ([]byte, []int)deprecated
- func (x *RankClaimed) GetBlock() uint64
- func (x *RankClaimed) GetIdx() uint64
- func (x *RankClaimed) GetRank() []byte
- func (x *RankClaimed) GetTerm() []byte
- func (x *RankClaimed) GetTs() *timestamppb.Timestamp
- func (x *RankClaimed) GetTx() []byte
- func (x *RankClaimed) GetUser() []byte
- func (*RankClaimed) ProtoMessage()
- func (x *RankClaimed) ProtoReflect() protoreflect.Message
- func (x *RankClaimed) Reset()
- func (x *RankClaimed) String() string
- type SmartContract
- type Staked
- func (*Staked) Descriptor() ([]byte, []int)deprecated
- func (x *Staked) GetAmount() []byte
- func (x *Staked) GetBlock() uint64
- func (x *Staked) GetIdx() uint64
- func (x *Staked) GetTerm() []byte
- func (x *Staked) GetTs() *timestamppb.Timestamp
- func (x *Staked) GetTx() []byte
- func (x *Staked) GetUser() []byte
- func (*Staked) ProtoMessage()
- func (x *Staked) ProtoReflect() protoreflect.Message
- func (x *Staked) Reset()
- func (x *Staked) String() string
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetBlock() uint64
- func (x *Transfer) GetFrom() []byte
- func (x *Transfer) GetIdx() uint64
- func (x *Transfer) GetTo() []byte
- func (x *Transfer) GetTs() *timestamppb.Timestamp
- func (x *Transfer) GetTx() []byte
- func (x *Transfer) GetValue() []byte
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
- type Withdrawn
- func (*Withdrawn) Descriptor() ([]byte, []int)deprecated
- func (x *Withdrawn) GetAmount() []byte
- func (x *Withdrawn) GetBlock() uint64
- func (x *Withdrawn) GetIdx() uint64
- func (x *Withdrawn) GetReward() []byte
- func (x *Withdrawn) GetTs() *timestamppb.Timestamp
- func (x *Withdrawn) GetTx() []byte
- func (x *Withdrawn) GetUser() []byte
- func (*Withdrawn) ProtoMessage()
- func (x *Withdrawn) ProtoReflect() protoreflect.Message
- func (x *Withdrawn) Reset()
- func (x *Withdrawn) String() string
- type XENCryptoMintInfo
- type XENCryptoStakeInfo
Constants ¶
This section is empty.
Variables ¶
var COKCABI = COKCMetaData.ABI
COKCABI is the input ABI used to generate the binding from. Deprecated: Use COKCMetaData.ABI instead.
var COKCMetaData = &bind.MetaData{
ABI: "[{\"constant\":false,\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"}],\"name\":\"MintClaimed\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rank\",\"type\":\"uint256\"}],\"name\":\"RankClaimed\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"}],\"name\":\"Staked\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[],\"name\":\"AUTHORS\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"DAYS_IN_YEAR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"EAA_PM_START\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"EAA_PM_STEP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"EAA_RANK_STEP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"GENESIS_RANK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"MAX_PENALTY_PCT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"MAX_TERM_END\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"MAX_TERM_START\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"MIN_TERM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"REWARD_AMPLIFIER_END\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"REWARD_AMPLIFIER_START\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"SECONDS_IN_DAY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"TERM_AMPLIFIER\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"TERM_AMPLIFIER_THRESHOLD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"WITHDRAWAL_WINDOW_DAYS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"XEN_APY_DAYS_STEP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"XEN_APY_END\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"XEN_APY_START\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"XEN_MIN_BURN\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"XEN_MIN_STAKE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"activeMinters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"activeStakes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"genesisTs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"globalRank\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"totalXenStaked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userBurns\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userMints\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maturityTs\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rank\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amplifier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"eaaRate\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userStakes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maturityTs\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"apy\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rankDelta\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amplifier\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"eaa\",\"type\":\"uint256\"}],\"name\":\"getGrossReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getUserMint\",\"outputs\":[{\"components\":[{\"name\":\"user\",\"type\":\"address\"},{\"name\":\"term\",\"type\":\"uint256\"},{\"name\":\"maturityTs\",\"type\":\"uint256\"},{\"name\":\"rank\",\"type\":\"uint256\"},{\"name\":\"amplifier\",\"type\":\"uint256\"},{\"name\":\"eaaRate\",\"type\":\"uint256\"}],\"internalType\":\"structXENCrypto.MintInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getUserStake\",\"outputs\":[{\"components\":[{\"name\":\"term\",\"type\":\"uint256\"},{\"name\":\"maturityTs\",\"type\":\"uint256\"},{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"apy\",\"type\":\"uint256\"}],\"internalType\":\"structXENCrypto.StakeInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getCurrentAMP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getCurrentEAAR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getCurrentAPY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getCurrentMaxTerm\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"}],\"name\":\"claimRank\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"claimMintReward\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"other\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pct\",\"type\":\"uint256\"}],\"name\":\"claimMintRewardAndShare\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pct\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"}],\"name\":\"claimMintRewardAndStake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
COKCMetaData contains all meta data concerning the COKC contract.
var File_cOKC_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Approval ¶
type Approval struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash Owner []byte `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` Spender []byte `protobuf:"bytes,6,opt,name=spender,proto3" json:"spender,omitempty"` Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Approval) Descriptor
deprecated
func (*Approval) GetSpender ¶
func (*Approval) GetTs ¶
func (x *Approval) GetTs() *timestamppb.Timestamp
func (*Approval) ProtoMessage ¶
func (*Approval) ProtoMessage()
func (*Approval) ProtoReflect ¶
func (x *Approval) ProtoReflect() protoreflect.Message
type COKC ¶
type COKC struct { COKCCaller // Read-only binding to the contract COKCTransactor // Write-only binding to the contract COKCFilterer // Log filterer for contract events }
COKC is an auto generated Go binding around an Ethereum contract.
type COKCApproval ¶
type COKCApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
COKCApproval represents a Approval event raised by the COKC contract.
type COKCApprovalIterator ¶
type COKCApprovalIterator struct { Event *COKCApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COKCApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the COKC contract.
func (*COKCApprovalIterator) Close ¶
func (it *COKCApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COKCApprovalIterator) Error ¶
func (it *COKCApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COKCApprovalIterator) Next ¶
func (it *COKCApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type COKCCaller ¶
type COKCCaller struct {
// contains filtered or unexported fields
}
COKCCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCOKCCaller ¶
func NewCOKCCaller(address common.Address, caller bind.ContractCaller) (*COKCCaller, error)
NewCOKCCaller creates a new read-only instance of COKC, bound to a specific deployed contract.
func (*COKCCaller) AUTHORS ¶
func (_COKC *COKCCaller) AUTHORS(opts *bind.CallOpts) (string, error)
AUTHORS is a free data retrieval call binding the contract method 0xba3ec741.
Solidity: function AUTHORS() view returns(string)
func (*COKCCaller) ActiveMinters ¶
ActiveMinters is a free data retrieval call binding the contract method 0xb4800cdc.
Solidity: function activeMinters() view returns(uint256)
func (*COKCCaller) ActiveStakes ¶
ActiveStakes is a free data retrieval call binding the contract method 0xed2f2369.
Solidity: function activeStakes() view returns(uint256)
func (*COKCCaller) Allowance ¶
func (_COKC *COKCCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*COKCCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*COKCCaller) DAYSINYEAR ¶
DAYSINYEAR is a free data retrieval call binding the contract method 0x02378932.
Solidity: function DAYS_IN_YEAR() view returns(uint256)
func (*COKCCaller) Decimals ¶
func (_COKC *COKCCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*COKCCaller) EAAPMSTART ¶
EAAPMSTART is a free data retrieval call binding the contract method 0x909a2ff6.
Solidity: function EAA_PM_START() view returns(uint256)
func (*COKCCaller) EAAPMSTEP ¶
EAAPMSTEP is a free data retrieval call binding the contract method 0xbcfe394f.
Solidity: function EAA_PM_STEP() view returns(uint256)
func (*COKCCaller) EAARANKSTEP ¶
EAARANKSTEP is a free data retrieval call binding the contract method 0xf340faed.
Solidity: function EAA_RANK_STEP() view returns(uint256)
func (*COKCCaller) GENESISRANK ¶
GENESISRANK is a free data retrieval call binding the contract method 0x1c6f212e.
Solidity: function GENESIS_RANK() view returns(uint256)
func (*COKCCaller) GenesisTs ¶
GenesisTs is a free data retrieval call binding the contract method 0xe3af6d0a.
Solidity: function genesisTs() view returns(uint256)
func (*COKCCaller) GetCurrentAMP ¶
GetCurrentAMP is a free data retrieval call binding the contract method 0x99202454.
Solidity: function getCurrentAMP() view returns(uint256)
func (*COKCCaller) GetCurrentAPY ¶
GetCurrentAPY is a free data retrieval call binding the contract method 0x962ca496.
Solidity: function getCurrentAPY() view returns(uint256)
func (*COKCCaller) GetCurrentEAAR ¶
GetCurrentEAAR is a free data retrieval call binding the contract method 0x8979c87c.
Solidity: function getCurrentEAAR() view returns(uint256)
func (*COKCCaller) GetCurrentMaxTerm ¶
GetCurrentMaxTerm is a free data retrieval call binding the contract method 0x45125715.
Solidity: function getCurrentMaxTerm() view returns(uint256)
func (*COKCCaller) GetGrossReward ¶
func (_COKC *COKCCaller) GetGrossReward(opts *bind.CallOpts, rankDelta *big.Int, amplifier *big.Int, term *big.Int, eaa *big.Int) (*big.Int, error)
GetGrossReward is a free data retrieval call binding the contract method 0xb0fd1fc2.
Solidity: function getGrossReward(uint256 rankDelta, uint256 amplifier, uint256 term, uint256 eaa) pure returns(uint256)
func (*COKCCaller) GetUserMint ¶
func (_COKC *COKCCaller) GetUserMint(opts *bind.CallOpts) (XENCryptoMintInfo, error)
GetUserMint is a free data retrieval call binding the contract method 0x7010d7a1.
Solidity: function getUserMint() view returns((address,uint256,uint256,uint256,uint256,uint256))
func (*COKCCaller) GetUserStake ¶
func (_COKC *COKCCaller) GetUserStake(opts *bind.CallOpts) (XENCryptoStakeInfo, error)
GetUserStake is a free data retrieval call binding the contract method 0x16f9c8fd.
Solidity: function getUserStake() view returns((uint256,uint256,uint256,uint256))
func (*COKCCaller) GlobalRank ¶
GlobalRank is a free data retrieval call binding the contract method 0x1c244082.
Solidity: function globalRank() view returns(uint256)
func (*COKCCaller) MAXPENALTYPCT ¶
MAXPENALTYPCT is a free data retrieval call binding the contract method 0x0f2e1228.
Solidity: function MAX_PENALTY_PCT() view returns(uint256)
func (*COKCCaller) MAXTERMEND ¶
MAXTERMEND is a free data retrieval call binding the contract method 0xc0c65259.
Solidity: function MAX_TERM_END() view returns(uint256)
func (*COKCCaller) MAXTERMSTART ¶
MAXTERMSTART is a free data retrieval call binding the contract method 0x0bfae56b.
Solidity: function MAX_TERM_START() view returns(uint256)
func (*COKCCaller) MINTERM ¶
MINTERM is a free data retrieval call binding the contract method 0xf0604829.
Solidity: function MIN_TERM() view returns(uint256)
func (*COKCCaller) Name ¶
func (_COKC *COKCCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*COKCCaller) REWARDAMPLIFIEREND ¶
REWARDAMPLIFIEREND is a free data retrieval call binding the contract method 0x543d3652.
Solidity: function REWARD_AMPLIFIER_END() view returns(uint256)
func (*COKCCaller) REWARDAMPLIFIERSTART ¶
REWARDAMPLIFIERSTART is a free data retrieval call binding the contract method 0xe81917b4.
Solidity: function REWARD_AMPLIFIER_START() view returns(uint256)
func (*COKCCaller) SECONDSINDAY ¶
SECONDSINDAY is a free data retrieval call binding the contract method 0x61a52a36.
Solidity: function SECONDS_IN_DAY() view returns(uint256)
func (*COKCCaller) Symbol ¶
func (_COKC *COKCCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*COKCCaller) TERMAMPLIFIER ¶
TERMAMPLIFIER is a free data retrieval call binding the contract method 0x72475f94.
Solidity: function TERM_AMPLIFIER() view returns(uint256)
func (*COKCCaller) TERMAMPLIFIERTHRESHOLD ¶
TERMAMPLIFIERTHRESHOLD is a free data retrieval call binding the contract method 0xb21d35f2.
Solidity: function TERM_AMPLIFIER_THRESHOLD() view returns(uint256)
func (*COKCCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*COKCCaller) TotalXenStaked ¶
TotalXenStaked is a free data retrieval call binding the contract method 0x069612a5.
Solidity: function totalXenStaked() view returns(uint256)
func (*COKCCaller) UserBurns ¶
UserBurns is a free data retrieval call binding the contract method 0xce653d5f.
Solidity: function userBurns(address ) view returns(uint256)
func (*COKCCaller) UserMints ¶
func (_COKC *COKCCaller) UserMints(opts *bind.CallOpts, arg0 common.Address) (struct { User common.Address Term *big.Int MaturityTs *big.Int Rank *big.Int Amplifier *big.Int EaaRate *big.Int }, error)
UserMints is a free data retrieval call binding the contract method 0xdf282331.
Solidity: function userMints(address ) view returns(address user, uint256 term, uint256 maturityTs, uint256 rank, uint256 amplifier, uint256 eaaRate)
func (*COKCCaller) UserStakes ¶
func (_COKC *COKCCaller) UserStakes(opts *bind.CallOpts, arg0 common.Address) (struct { Term *big.Int MaturityTs *big.Int Amount *big.Int Apy *big.Int }, error)
UserStakes is a free data retrieval call binding the contract method 0x8da7ad23.
Solidity: function userStakes(address ) view returns(uint256 term, uint256 maturityTs, uint256 amount, uint256 apy)
func (*COKCCaller) WITHDRAWALWINDOWDAYS ¶
WITHDRAWALWINDOWDAYS is a free data retrieval call binding the contract method 0xc56f0bab.
Solidity: function WITHDRAWAL_WINDOW_DAYS() view returns(uint256)
func (*COKCCaller) XENAPYDAYSSTEP ¶
XENAPYDAYSSTEP is a free data retrieval call binding the contract method 0x32870fda.
Solidity: function XEN_APY_DAYS_STEP() view returns(uint256)
func (*COKCCaller) XENAPYEND ¶
XENAPYEND is a free data retrieval call binding the contract method 0x7e7aa62e.
Solidity: function XEN_APY_END() view returns(uint256)
func (*COKCCaller) XENAPYSTART ¶
XENAPYSTART is a free data retrieval call binding the contract method 0xfed74269.
Solidity: function XEN_APY_START() view returns(uint256)
func (*COKCCaller) XENMINBURN ¶
XENMINBURN is a free data retrieval call binding the contract method 0x110d7fc2.
Solidity: function XEN_MIN_BURN() view returns(uint256)
func (*COKCCaller) XENMINSTAKE ¶
XENMINSTAKE is a free data retrieval call binding the contract method 0x2a62d966.
Solidity: function XEN_MIN_STAKE() view returns(uint256)
type COKCCallerRaw ¶
type COKCCallerRaw struct {
Contract *COKCCaller // Generic read-only contract binding to access the raw methods on
}
COKCCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*COKCCallerRaw) Call ¶
func (_COKC *COKCCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type COKCCallerSession ¶
type COKCCallerSession struct { Contract *COKCCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
COKCCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*COKCCallerSession) AUTHORS ¶
func (_COKC *COKCCallerSession) AUTHORS() (string, error)
AUTHORS is a free data retrieval call binding the contract method 0xba3ec741.
Solidity: function AUTHORS() view returns(string)
func (*COKCCallerSession) ActiveMinters ¶
func (_COKC *COKCCallerSession) ActiveMinters() (*big.Int, error)
ActiveMinters is a free data retrieval call binding the contract method 0xb4800cdc.
Solidity: function activeMinters() view returns(uint256)
func (*COKCCallerSession) ActiveStakes ¶
func (_COKC *COKCCallerSession) ActiveStakes() (*big.Int, error)
ActiveStakes is a free data retrieval call binding the contract method 0xed2f2369.
Solidity: function activeStakes() view returns(uint256)
func (*COKCCallerSession) Allowance ¶
func (_COKC *COKCCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*COKCCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*COKCCallerSession) DAYSINYEAR ¶
func (_COKC *COKCCallerSession) DAYSINYEAR() (*big.Int, error)
DAYSINYEAR is a free data retrieval call binding the contract method 0x02378932.
Solidity: function DAYS_IN_YEAR() view returns(uint256)
func (*COKCCallerSession) Decimals ¶
func (_COKC *COKCCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*COKCCallerSession) EAAPMSTART ¶
func (_COKC *COKCCallerSession) EAAPMSTART() (*big.Int, error)
EAAPMSTART is a free data retrieval call binding the contract method 0x909a2ff6.
Solidity: function EAA_PM_START() view returns(uint256)
func (*COKCCallerSession) EAAPMSTEP ¶
func (_COKC *COKCCallerSession) EAAPMSTEP() (*big.Int, error)
EAAPMSTEP is a free data retrieval call binding the contract method 0xbcfe394f.
Solidity: function EAA_PM_STEP() view returns(uint256)
func (*COKCCallerSession) EAARANKSTEP ¶
func (_COKC *COKCCallerSession) EAARANKSTEP() (*big.Int, error)
EAARANKSTEP is a free data retrieval call binding the contract method 0xf340faed.
Solidity: function EAA_RANK_STEP() view returns(uint256)
func (*COKCCallerSession) GENESISRANK ¶
func (_COKC *COKCCallerSession) GENESISRANK() (*big.Int, error)
GENESISRANK is a free data retrieval call binding the contract method 0x1c6f212e.
Solidity: function GENESIS_RANK() view returns(uint256)
func (*COKCCallerSession) GenesisTs ¶
func (_COKC *COKCCallerSession) GenesisTs() (*big.Int, error)
GenesisTs is a free data retrieval call binding the contract method 0xe3af6d0a.
Solidity: function genesisTs() view returns(uint256)
func (*COKCCallerSession) GetCurrentAMP ¶
func (_COKC *COKCCallerSession) GetCurrentAMP() (*big.Int, error)
GetCurrentAMP is a free data retrieval call binding the contract method 0x99202454.
Solidity: function getCurrentAMP() view returns(uint256)
func (*COKCCallerSession) GetCurrentAPY ¶
func (_COKC *COKCCallerSession) GetCurrentAPY() (*big.Int, error)
GetCurrentAPY is a free data retrieval call binding the contract method 0x962ca496.
Solidity: function getCurrentAPY() view returns(uint256)
func (*COKCCallerSession) GetCurrentEAAR ¶
func (_COKC *COKCCallerSession) GetCurrentEAAR() (*big.Int, error)
GetCurrentEAAR is a free data retrieval call binding the contract method 0x8979c87c.
Solidity: function getCurrentEAAR() view returns(uint256)
func (*COKCCallerSession) GetCurrentMaxTerm ¶
func (_COKC *COKCCallerSession) GetCurrentMaxTerm() (*big.Int, error)
GetCurrentMaxTerm is a free data retrieval call binding the contract method 0x45125715.
Solidity: function getCurrentMaxTerm() view returns(uint256)
func (*COKCCallerSession) GetGrossReward ¶
func (_COKC *COKCCallerSession) GetGrossReward(rankDelta *big.Int, amplifier *big.Int, term *big.Int, eaa *big.Int) (*big.Int, error)
GetGrossReward is a free data retrieval call binding the contract method 0xb0fd1fc2.
Solidity: function getGrossReward(uint256 rankDelta, uint256 amplifier, uint256 term, uint256 eaa) pure returns(uint256)
func (*COKCCallerSession) GetUserMint ¶
func (_COKC *COKCCallerSession) GetUserMint() (XENCryptoMintInfo, error)
GetUserMint is a free data retrieval call binding the contract method 0x7010d7a1.
Solidity: function getUserMint() view returns((address,uint256,uint256,uint256,uint256,uint256))
func (*COKCCallerSession) GetUserStake ¶
func (_COKC *COKCCallerSession) GetUserStake() (XENCryptoStakeInfo, error)
GetUserStake is a free data retrieval call binding the contract method 0x16f9c8fd.
Solidity: function getUserStake() view returns((uint256,uint256,uint256,uint256))
func (*COKCCallerSession) GlobalRank ¶
func (_COKC *COKCCallerSession) GlobalRank() (*big.Int, error)
GlobalRank is a free data retrieval call binding the contract method 0x1c244082.
Solidity: function globalRank() view returns(uint256)
func (*COKCCallerSession) MAXPENALTYPCT ¶
func (_COKC *COKCCallerSession) MAXPENALTYPCT() (*big.Int, error)
MAXPENALTYPCT is a free data retrieval call binding the contract method 0x0f2e1228.
Solidity: function MAX_PENALTY_PCT() view returns(uint256)
func (*COKCCallerSession) MAXTERMEND ¶
func (_COKC *COKCCallerSession) MAXTERMEND() (*big.Int, error)
MAXTERMEND is a free data retrieval call binding the contract method 0xc0c65259.
Solidity: function MAX_TERM_END() view returns(uint256)
func (*COKCCallerSession) MAXTERMSTART ¶
func (_COKC *COKCCallerSession) MAXTERMSTART() (*big.Int, error)
MAXTERMSTART is a free data retrieval call binding the contract method 0x0bfae56b.
Solidity: function MAX_TERM_START() view returns(uint256)
func (*COKCCallerSession) MINTERM ¶
func (_COKC *COKCCallerSession) MINTERM() (*big.Int, error)
MINTERM is a free data retrieval call binding the contract method 0xf0604829.
Solidity: function MIN_TERM() view returns(uint256)
func (*COKCCallerSession) Name ¶
func (_COKC *COKCCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*COKCCallerSession) REWARDAMPLIFIEREND ¶
func (_COKC *COKCCallerSession) REWARDAMPLIFIEREND() (*big.Int, error)
REWARDAMPLIFIEREND is a free data retrieval call binding the contract method 0x543d3652.
Solidity: function REWARD_AMPLIFIER_END() view returns(uint256)
func (*COKCCallerSession) REWARDAMPLIFIERSTART ¶
func (_COKC *COKCCallerSession) REWARDAMPLIFIERSTART() (*big.Int, error)
REWARDAMPLIFIERSTART is a free data retrieval call binding the contract method 0xe81917b4.
Solidity: function REWARD_AMPLIFIER_START() view returns(uint256)
func (*COKCCallerSession) SECONDSINDAY ¶
func (_COKC *COKCCallerSession) SECONDSINDAY() (*big.Int, error)
SECONDSINDAY is a free data retrieval call binding the contract method 0x61a52a36.
Solidity: function SECONDS_IN_DAY() view returns(uint256)
func (*COKCCallerSession) Symbol ¶
func (_COKC *COKCCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*COKCCallerSession) TERMAMPLIFIER ¶
func (_COKC *COKCCallerSession) TERMAMPLIFIER() (*big.Int, error)
TERMAMPLIFIER is a free data retrieval call binding the contract method 0x72475f94.
Solidity: function TERM_AMPLIFIER() view returns(uint256)
func (*COKCCallerSession) TERMAMPLIFIERTHRESHOLD ¶
func (_COKC *COKCCallerSession) TERMAMPLIFIERTHRESHOLD() (*big.Int, error)
TERMAMPLIFIERTHRESHOLD is a free data retrieval call binding the contract method 0xb21d35f2.
Solidity: function TERM_AMPLIFIER_THRESHOLD() view returns(uint256)
func (*COKCCallerSession) TotalSupply ¶
func (_COKC *COKCCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*COKCCallerSession) TotalXenStaked ¶
func (_COKC *COKCCallerSession) TotalXenStaked() (*big.Int, error)
TotalXenStaked is a free data retrieval call binding the contract method 0x069612a5.
Solidity: function totalXenStaked() view returns(uint256)
func (*COKCCallerSession) UserBurns ¶
UserBurns is a free data retrieval call binding the contract method 0xce653d5f.
Solidity: function userBurns(address ) view returns(uint256)
func (*COKCCallerSession) UserMints ¶
func (_COKC *COKCCallerSession) UserMints(arg0 common.Address) (struct { User common.Address Term *big.Int MaturityTs *big.Int Rank *big.Int Amplifier *big.Int EaaRate *big.Int }, error)
UserMints is a free data retrieval call binding the contract method 0xdf282331.
Solidity: function userMints(address ) view returns(address user, uint256 term, uint256 maturityTs, uint256 rank, uint256 amplifier, uint256 eaaRate)
func (*COKCCallerSession) UserStakes ¶
func (_COKC *COKCCallerSession) UserStakes(arg0 common.Address) (struct { Term *big.Int MaturityTs *big.Int Amount *big.Int Apy *big.Int }, error)
UserStakes is a free data retrieval call binding the contract method 0x8da7ad23.
Solidity: function userStakes(address ) view returns(uint256 term, uint256 maturityTs, uint256 amount, uint256 apy)
func (*COKCCallerSession) WITHDRAWALWINDOWDAYS ¶
func (_COKC *COKCCallerSession) WITHDRAWALWINDOWDAYS() (*big.Int, error)
WITHDRAWALWINDOWDAYS is a free data retrieval call binding the contract method 0xc56f0bab.
Solidity: function WITHDRAWAL_WINDOW_DAYS() view returns(uint256)
func (*COKCCallerSession) XENAPYDAYSSTEP ¶
func (_COKC *COKCCallerSession) XENAPYDAYSSTEP() (*big.Int, error)
XENAPYDAYSSTEP is a free data retrieval call binding the contract method 0x32870fda.
Solidity: function XEN_APY_DAYS_STEP() view returns(uint256)
func (*COKCCallerSession) XENAPYEND ¶
func (_COKC *COKCCallerSession) XENAPYEND() (*big.Int, error)
XENAPYEND is a free data retrieval call binding the contract method 0x7e7aa62e.
Solidity: function XEN_APY_END() view returns(uint256)
func (*COKCCallerSession) XENAPYSTART ¶
func (_COKC *COKCCallerSession) XENAPYSTART() (*big.Int, error)
XENAPYSTART is a free data retrieval call binding the contract method 0xfed74269.
Solidity: function XEN_APY_START() view returns(uint256)
func (*COKCCallerSession) XENMINBURN ¶
func (_COKC *COKCCallerSession) XENMINBURN() (*big.Int, error)
XENMINBURN is a free data retrieval call binding the contract method 0x110d7fc2.
Solidity: function XEN_MIN_BURN() view returns(uint256)
func (*COKCCallerSession) XENMINSTAKE ¶
func (_COKC *COKCCallerSession) XENMINSTAKE() (*big.Int, error)
XENMINSTAKE is a free data retrieval call binding the contract method 0x2a62d966.
Solidity: function XEN_MIN_STAKE() view returns(uint256)
type COKCFilterer ¶
type COKCFilterer struct {
// contains filtered or unexported fields
}
COKCFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCOKCFilterer ¶
func NewCOKCFilterer(address common.Address, filterer bind.ContractFilterer) (*COKCFilterer, error)
NewCOKCFilterer creates a new log filterer instance of COKC, bound to a specific deployed contract.
func (*COKCFilterer) FilterApproval ¶
func (_COKC *COKCFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*COKCApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*COKCFilterer) FilterMintClaimed ¶
func (_COKC *COKCFilterer) FilterMintClaimed(opts *bind.FilterOpts, user []common.Address) (*COKCMintClaimedIterator, error)
FilterMintClaimed is a free log retrieval operation binding the contract event 0xd74752b13281df13701575f3a507e9b1242e0b5fb040143211c481c1fce573a6.
Solidity: event MintClaimed(address indexed user, uint256 rewardAmount)
func (*COKCFilterer) FilterRankClaimed ¶
func (_COKC *COKCFilterer) FilterRankClaimed(opts *bind.FilterOpts, user []common.Address) (*COKCRankClaimedIterator, error)
FilterRankClaimed is a free log retrieval operation binding the contract event 0xe9149e1b5059238baed02fa659dbf4bd932fbcf760a431330df4d934bc942f37.
Solidity: event RankClaimed(address indexed user, uint256 term, uint256 rank)
func (*COKCFilterer) FilterStaked ¶
func (_COKC *COKCFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address) (*COKCStakedIterator, error)
FilterStaked is a free log retrieval operation binding the contract event 0x1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90.
Solidity: event Staked(address indexed user, uint256 amount, uint256 term)
func (*COKCFilterer) FilterTransfer ¶
func (_COKC *COKCFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*COKCTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*COKCFilterer) FilterWithdrawn ¶
func (_COKC *COKCFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*COKCWithdrawnIterator, error)
FilterWithdrawn is a free log retrieval operation binding the contract event 0x92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6.
Solidity: event Withdrawn(address indexed user, uint256 amount, uint256 reward)
func (*COKCFilterer) ParseApproval ¶
func (_COKC *COKCFilterer) ParseApproval(log types.Log) (*COKCApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*COKCFilterer) ParseMintClaimed ¶
func (_COKC *COKCFilterer) ParseMintClaimed(log types.Log) (*COKCMintClaimed, error)
ParseMintClaimed is a log parse operation binding the contract event 0xd74752b13281df13701575f3a507e9b1242e0b5fb040143211c481c1fce573a6.
Solidity: event MintClaimed(address indexed user, uint256 rewardAmount)
func (*COKCFilterer) ParseRankClaimed ¶
func (_COKC *COKCFilterer) ParseRankClaimed(log types.Log) (*COKCRankClaimed, error)
ParseRankClaimed is a log parse operation binding the contract event 0xe9149e1b5059238baed02fa659dbf4bd932fbcf760a431330df4d934bc942f37.
Solidity: event RankClaimed(address indexed user, uint256 term, uint256 rank)
func (*COKCFilterer) ParseStaked ¶
func (_COKC *COKCFilterer) ParseStaked(log types.Log) (*COKCStaked, error)
ParseStaked is a log parse operation binding the contract event 0x1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90.
Solidity: event Staked(address indexed user, uint256 amount, uint256 term)
func (*COKCFilterer) ParseTransfer ¶
func (_COKC *COKCFilterer) ParseTransfer(log types.Log) (*COKCTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*COKCFilterer) ParseWithdrawn ¶
func (_COKC *COKCFilterer) ParseWithdrawn(log types.Log) (*COKCWithdrawn, error)
ParseWithdrawn is a log parse operation binding the contract event 0x92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6.
Solidity: event Withdrawn(address indexed user, uint256 amount, uint256 reward)
func (*COKCFilterer) WatchApproval ¶
func (_COKC *COKCFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *COKCApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*COKCFilterer) WatchMintClaimed ¶
func (_COKC *COKCFilterer) WatchMintClaimed(opts *bind.WatchOpts, sink chan<- *COKCMintClaimed, user []common.Address) (event.Subscription, error)
WatchMintClaimed is a free log subscription operation binding the contract event 0xd74752b13281df13701575f3a507e9b1242e0b5fb040143211c481c1fce573a6.
Solidity: event MintClaimed(address indexed user, uint256 rewardAmount)
func (*COKCFilterer) WatchRankClaimed ¶
func (_COKC *COKCFilterer) WatchRankClaimed(opts *bind.WatchOpts, sink chan<- *COKCRankClaimed, user []common.Address) (event.Subscription, error)
WatchRankClaimed is a free log subscription operation binding the contract event 0xe9149e1b5059238baed02fa659dbf4bd932fbcf760a431330df4d934bc942f37.
Solidity: event RankClaimed(address indexed user, uint256 term, uint256 rank)
func (*COKCFilterer) WatchStaked ¶
func (_COKC *COKCFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *COKCStaked, user []common.Address) (event.Subscription, error)
WatchStaked is a free log subscription operation binding the contract event 0x1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90.
Solidity: event Staked(address indexed user, uint256 amount, uint256 term)
func (*COKCFilterer) WatchTransfer ¶
func (_COKC *COKCFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *COKCTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*COKCFilterer) WatchWithdrawn ¶
func (_COKC *COKCFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *COKCWithdrawn, user []common.Address) (event.Subscription, error)
WatchWithdrawn is a free log subscription operation binding the contract event 0x92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6.
Solidity: event Withdrawn(address indexed user, uint256 amount, uint256 reward)
type COKCMintClaimed ¶
type COKCMintClaimed struct { User common.Address RewardAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
COKCMintClaimed represents a MintClaimed event raised by the COKC contract.
type COKCMintClaimedIterator ¶
type COKCMintClaimedIterator struct { Event *COKCMintClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COKCMintClaimedIterator is returned from FilterMintClaimed and is used to iterate over the raw logs and unpacked data for MintClaimed events raised by the COKC contract.
func (*COKCMintClaimedIterator) Close ¶
func (it *COKCMintClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COKCMintClaimedIterator) Error ¶
func (it *COKCMintClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COKCMintClaimedIterator) Next ¶
func (it *COKCMintClaimedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type COKCRankClaimed ¶
type COKCRankClaimed struct { User common.Address Term *big.Int Rank *big.Int Raw types.Log // Blockchain specific contextual infos }
COKCRankClaimed represents a RankClaimed event raised by the COKC contract.
type COKCRankClaimedIterator ¶
type COKCRankClaimedIterator struct { Event *COKCRankClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COKCRankClaimedIterator is returned from FilterRankClaimed and is used to iterate over the raw logs and unpacked data for RankClaimed events raised by the COKC contract.
func (*COKCRankClaimedIterator) Close ¶
func (it *COKCRankClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COKCRankClaimedIterator) Error ¶
func (it *COKCRankClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COKCRankClaimedIterator) Next ¶
func (it *COKCRankClaimedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type COKCRaw ¶
type COKCRaw struct {
Contract *COKC // Generic contract binding to access the raw methods on
}
COKCRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*COKCRaw) Call ¶
func (_COKC *COKCRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*COKCRaw) Transact ¶
func (_COKC *COKCRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*COKCRaw) Transfer ¶
func (_COKC *COKCRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type COKCSession ¶
type COKCSession struct { Contract *COKC // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
COKCSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*COKCSession) AUTHORS ¶
func (_COKC *COKCSession) AUTHORS() (string, error)
AUTHORS is a free data retrieval call binding the contract method 0xba3ec741.
Solidity: function AUTHORS() view returns(string)
func (*COKCSession) ActiveMinters ¶
func (_COKC *COKCSession) ActiveMinters() (*big.Int, error)
ActiveMinters is a free data retrieval call binding the contract method 0xb4800cdc.
Solidity: function activeMinters() view returns(uint256)
func (*COKCSession) ActiveStakes ¶
func (_COKC *COKCSession) ActiveStakes() (*big.Int, error)
ActiveStakes is a free data retrieval call binding the contract method 0xed2f2369.
Solidity: function activeStakes() view returns(uint256)
func (*COKCSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*COKCSession) Approve ¶
func (_COKC *COKCSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*COKCSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*COKCSession) Burn ¶
func (_COKC *COKCSession) Burn(user common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address user, uint256 amount) returns()
func (*COKCSession) ClaimMintReward ¶
func (_COKC *COKCSession) ClaimMintReward() (*types.Transaction, error)
ClaimMintReward is a paid mutator transaction binding the contract method 0x52c7f8dc.
Solidity: function claimMintReward() returns()
func (*COKCSession) ClaimMintRewardAndShare ¶
func (_COKC *COKCSession) ClaimMintRewardAndShare(other common.Address, pct *big.Int) (*types.Transaction, error)
ClaimMintRewardAndShare is a paid mutator transaction binding the contract method 0x1c560305.
Solidity: function claimMintRewardAndShare(address other, uint256 pct) returns()
func (*COKCSession) ClaimMintRewardAndStake ¶
func (_COKC *COKCSession) ClaimMintRewardAndStake(pct *big.Int, term *big.Int) (*types.Transaction, error)
ClaimMintRewardAndStake is a paid mutator transaction binding the contract method 0x5bccb4c4.
Solidity: function claimMintRewardAndStake(uint256 pct, uint256 term) returns()
func (*COKCSession) ClaimRank ¶
func (_COKC *COKCSession) ClaimRank(term *big.Int) (*types.Transaction, error)
ClaimRank is a paid mutator transaction binding the contract method 0x9ff054df.
Solidity: function claimRank(uint256 term) returns()
func (*COKCSession) DAYSINYEAR ¶
func (_COKC *COKCSession) DAYSINYEAR() (*big.Int, error)
DAYSINYEAR is a free data retrieval call binding the contract method 0x02378932.
Solidity: function DAYS_IN_YEAR() view returns(uint256)
func (*COKCSession) Decimals ¶
func (_COKC *COKCSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*COKCSession) DecreaseAllowance ¶
func (_COKC *COKCSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*COKCSession) EAAPMSTART ¶
func (_COKC *COKCSession) EAAPMSTART() (*big.Int, error)
EAAPMSTART is a free data retrieval call binding the contract method 0x909a2ff6.
Solidity: function EAA_PM_START() view returns(uint256)
func (*COKCSession) EAAPMSTEP ¶
func (_COKC *COKCSession) EAAPMSTEP() (*big.Int, error)
EAAPMSTEP is a free data retrieval call binding the contract method 0xbcfe394f.
Solidity: function EAA_PM_STEP() view returns(uint256)
func (*COKCSession) EAARANKSTEP ¶
func (_COKC *COKCSession) EAARANKSTEP() (*big.Int, error)
EAARANKSTEP is a free data retrieval call binding the contract method 0xf340faed.
Solidity: function EAA_RANK_STEP() view returns(uint256)
func (*COKCSession) GENESISRANK ¶
func (_COKC *COKCSession) GENESISRANK() (*big.Int, error)
GENESISRANK is a free data retrieval call binding the contract method 0x1c6f212e.
Solidity: function GENESIS_RANK() view returns(uint256)
func (*COKCSession) GenesisTs ¶
func (_COKC *COKCSession) GenesisTs() (*big.Int, error)
GenesisTs is a free data retrieval call binding the contract method 0xe3af6d0a.
Solidity: function genesisTs() view returns(uint256)
func (*COKCSession) GetCurrentAMP ¶
func (_COKC *COKCSession) GetCurrentAMP() (*big.Int, error)
GetCurrentAMP is a free data retrieval call binding the contract method 0x99202454.
Solidity: function getCurrentAMP() view returns(uint256)
func (*COKCSession) GetCurrentAPY ¶
func (_COKC *COKCSession) GetCurrentAPY() (*big.Int, error)
GetCurrentAPY is a free data retrieval call binding the contract method 0x962ca496.
Solidity: function getCurrentAPY() view returns(uint256)
func (*COKCSession) GetCurrentEAAR ¶
func (_COKC *COKCSession) GetCurrentEAAR() (*big.Int, error)
GetCurrentEAAR is a free data retrieval call binding the contract method 0x8979c87c.
Solidity: function getCurrentEAAR() view returns(uint256)
func (*COKCSession) GetCurrentMaxTerm ¶
func (_COKC *COKCSession) GetCurrentMaxTerm() (*big.Int, error)
GetCurrentMaxTerm is a free data retrieval call binding the contract method 0x45125715.
Solidity: function getCurrentMaxTerm() view returns(uint256)
func (*COKCSession) GetGrossReward ¶
func (_COKC *COKCSession) GetGrossReward(rankDelta *big.Int, amplifier *big.Int, term *big.Int, eaa *big.Int) (*big.Int, error)
GetGrossReward is a free data retrieval call binding the contract method 0xb0fd1fc2.
Solidity: function getGrossReward(uint256 rankDelta, uint256 amplifier, uint256 term, uint256 eaa) pure returns(uint256)
func (*COKCSession) GetUserMint ¶
func (_COKC *COKCSession) GetUserMint() (XENCryptoMintInfo, error)
GetUserMint is a free data retrieval call binding the contract method 0x7010d7a1.
Solidity: function getUserMint() view returns((address,uint256,uint256,uint256,uint256,uint256))
func (*COKCSession) GetUserStake ¶
func (_COKC *COKCSession) GetUserStake() (XENCryptoStakeInfo, error)
GetUserStake is a free data retrieval call binding the contract method 0x16f9c8fd.
Solidity: function getUserStake() view returns((uint256,uint256,uint256,uint256))
func (*COKCSession) GlobalRank ¶
func (_COKC *COKCSession) GlobalRank() (*big.Int, error)
GlobalRank is a free data retrieval call binding the contract method 0x1c244082.
Solidity: function globalRank() view returns(uint256)
func (*COKCSession) IncreaseAllowance ¶
func (_COKC *COKCSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*COKCSession) MAXPENALTYPCT ¶
func (_COKC *COKCSession) MAXPENALTYPCT() (*big.Int, error)
MAXPENALTYPCT is a free data retrieval call binding the contract method 0x0f2e1228.
Solidity: function MAX_PENALTY_PCT() view returns(uint256)
func (*COKCSession) MAXTERMEND ¶
func (_COKC *COKCSession) MAXTERMEND() (*big.Int, error)
MAXTERMEND is a free data retrieval call binding the contract method 0xc0c65259.
Solidity: function MAX_TERM_END() view returns(uint256)
func (*COKCSession) MAXTERMSTART ¶
func (_COKC *COKCSession) MAXTERMSTART() (*big.Int, error)
MAXTERMSTART is a free data retrieval call binding the contract method 0x0bfae56b.
Solidity: function MAX_TERM_START() view returns(uint256)
func (*COKCSession) MINTERM ¶
func (_COKC *COKCSession) MINTERM() (*big.Int, error)
MINTERM is a free data retrieval call binding the contract method 0xf0604829.
Solidity: function MIN_TERM() view returns(uint256)
func (*COKCSession) Name ¶
func (_COKC *COKCSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*COKCSession) REWARDAMPLIFIEREND ¶
func (_COKC *COKCSession) REWARDAMPLIFIEREND() (*big.Int, error)
REWARDAMPLIFIEREND is a free data retrieval call binding the contract method 0x543d3652.
Solidity: function REWARD_AMPLIFIER_END() view returns(uint256)
func (*COKCSession) REWARDAMPLIFIERSTART ¶
func (_COKC *COKCSession) REWARDAMPLIFIERSTART() (*big.Int, error)
REWARDAMPLIFIERSTART is a free data retrieval call binding the contract method 0xe81917b4.
Solidity: function REWARD_AMPLIFIER_START() view returns(uint256)
func (*COKCSession) SECONDSINDAY ¶
func (_COKC *COKCSession) SECONDSINDAY() (*big.Int, error)
SECONDSINDAY is a free data retrieval call binding the contract method 0x61a52a36.
Solidity: function SECONDS_IN_DAY() view returns(uint256)
func (*COKCSession) Stake ¶
func (_COKC *COKCSession) Stake(amount *big.Int, term *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x7b0472f0.
Solidity: function stake(uint256 amount, uint256 term) returns()
func (*COKCSession) Symbol ¶
func (_COKC *COKCSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*COKCSession) TERMAMPLIFIER ¶
func (_COKC *COKCSession) TERMAMPLIFIER() (*big.Int, error)
TERMAMPLIFIER is a free data retrieval call binding the contract method 0x72475f94.
Solidity: function TERM_AMPLIFIER() view returns(uint256)
func (*COKCSession) TERMAMPLIFIERTHRESHOLD ¶
func (_COKC *COKCSession) TERMAMPLIFIERTHRESHOLD() (*big.Int, error)
TERMAMPLIFIERTHRESHOLD is a free data retrieval call binding the contract method 0xb21d35f2.
Solidity: function TERM_AMPLIFIER_THRESHOLD() view returns(uint256)
func (*COKCSession) TotalSupply ¶
func (_COKC *COKCSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*COKCSession) TotalXenStaked ¶
func (_COKC *COKCSession) TotalXenStaked() (*big.Int, error)
TotalXenStaked is a free data retrieval call binding the contract method 0x069612a5.
Solidity: function totalXenStaked() view returns(uint256)
func (*COKCSession) Transfer ¶
func (_COKC *COKCSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 amount) returns(bool)
func (*COKCSession) TransferFrom ¶
func (_COKC *COKCSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)
func (*COKCSession) UserBurns ¶
UserBurns is a free data retrieval call binding the contract method 0xce653d5f.
Solidity: function userBurns(address ) view returns(uint256)
func (*COKCSession) UserMints ¶
func (_COKC *COKCSession) UserMints(arg0 common.Address) (struct { User common.Address Term *big.Int MaturityTs *big.Int Rank *big.Int Amplifier *big.Int EaaRate *big.Int }, error)
UserMints is a free data retrieval call binding the contract method 0xdf282331.
Solidity: function userMints(address ) view returns(address user, uint256 term, uint256 maturityTs, uint256 rank, uint256 amplifier, uint256 eaaRate)
func (*COKCSession) UserStakes ¶
func (_COKC *COKCSession) UserStakes(arg0 common.Address) (struct { Term *big.Int MaturityTs *big.Int Amount *big.Int Apy *big.Int }, error)
UserStakes is a free data retrieval call binding the contract method 0x8da7ad23.
Solidity: function userStakes(address ) view returns(uint256 term, uint256 maturityTs, uint256 amount, uint256 apy)
func (*COKCSession) WITHDRAWALWINDOWDAYS ¶
func (_COKC *COKCSession) WITHDRAWALWINDOWDAYS() (*big.Int, error)
WITHDRAWALWINDOWDAYS is a free data retrieval call binding the contract method 0xc56f0bab.
Solidity: function WITHDRAWAL_WINDOW_DAYS() view returns(uint256)
func (*COKCSession) Withdraw ¶
func (_COKC *COKCSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
func (*COKCSession) XENAPYDAYSSTEP ¶
func (_COKC *COKCSession) XENAPYDAYSSTEP() (*big.Int, error)
XENAPYDAYSSTEP is a free data retrieval call binding the contract method 0x32870fda.
Solidity: function XEN_APY_DAYS_STEP() view returns(uint256)
func (*COKCSession) XENAPYEND ¶
func (_COKC *COKCSession) XENAPYEND() (*big.Int, error)
XENAPYEND is a free data retrieval call binding the contract method 0x7e7aa62e.
Solidity: function XEN_APY_END() view returns(uint256)
func (*COKCSession) XENAPYSTART ¶
func (_COKC *COKCSession) XENAPYSTART() (*big.Int, error)
XENAPYSTART is a free data retrieval call binding the contract method 0xfed74269.
Solidity: function XEN_APY_START() view returns(uint256)
func (*COKCSession) XENMINBURN ¶
func (_COKC *COKCSession) XENMINBURN() (*big.Int, error)
XENMINBURN is a free data retrieval call binding the contract method 0x110d7fc2.
Solidity: function XEN_MIN_BURN() view returns(uint256)
func (*COKCSession) XENMINSTAKE ¶
func (_COKC *COKCSession) XENMINSTAKE() (*big.Int, error)
XENMINSTAKE is a free data retrieval call binding the contract method 0x2a62d966.
Solidity: function XEN_MIN_STAKE() view returns(uint256)
type COKCStaked ¶
type COKCStaked struct { User common.Address Amount *big.Int Term *big.Int Raw types.Log // Blockchain specific contextual infos }
COKCStaked represents a Staked event raised by the COKC contract.
type COKCStakedIterator ¶
type COKCStakedIterator struct { Event *COKCStaked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COKCStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the COKC contract.
func (*COKCStakedIterator) Close ¶
func (it *COKCStakedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COKCStakedIterator) Error ¶
func (it *COKCStakedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COKCStakedIterator) Next ¶
func (it *COKCStakedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type COKCTransactor ¶
type COKCTransactor struct {
// contains filtered or unexported fields
}
COKCTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCOKCTransactor ¶
func NewCOKCTransactor(address common.Address, transactor bind.ContractTransactor) (*COKCTransactor, error)
NewCOKCTransactor creates a new write-only instance of COKC, bound to a specific deployed contract.
func (*COKCTransactor) Approve ¶
func (_COKC *COKCTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*COKCTransactor) Burn ¶
func (_COKC *COKCTransactor) Burn(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address user, uint256 amount) returns()
func (*COKCTransactor) ClaimMintReward ¶
func (_COKC *COKCTransactor) ClaimMintReward(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimMintReward is a paid mutator transaction binding the contract method 0x52c7f8dc.
Solidity: function claimMintReward() returns()
func (*COKCTransactor) ClaimMintRewardAndShare ¶
func (_COKC *COKCTransactor) ClaimMintRewardAndShare(opts *bind.TransactOpts, other common.Address, pct *big.Int) (*types.Transaction, error)
ClaimMintRewardAndShare is a paid mutator transaction binding the contract method 0x1c560305.
Solidity: function claimMintRewardAndShare(address other, uint256 pct) returns()
func (*COKCTransactor) ClaimMintRewardAndStake ¶
func (_COKC *COKCTransactor) ClaimMintRewardAndStake(opts *bind.TransactOpts, pct *big.Int, term *big.Int) (*types.Transaction, error)
ClaimMintRewardAndStake is a paid mutator transaction binding the contract method 0x5bccb4c4.
Solidity: function claimMintRewardAndStake(uint256 pct, uint256 term) returns()
func (*COKCTransactor) ClaimRank ¶
func (_COKC *COKCTransactor) ClaimRank(opts *bind.TransactOpts, term *big.Int) (*types.Transaction, error)
ClaimRank is a paid mutator transaction binding the contract method 0x9ff054df.
Solidity: function claimRank(uint256 term) returns()
func (*COKCTransactor) DecreaseAllowance ¶
func (_COKC *COKCTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*COKCTransactor) IncreaseAllowance ¶
func (_COKC *COKCTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*COKCTransactor) Stake ¶
func (_COKC *COKCTransactor) Stake(opts *bind.TransactOpts, amount *big.Int, term *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x7b0472f0.
Solidity: function stake(uint256 amount, uint256 term) returns()
func (*COKCTransactor) Transfer ¶
func (_COKC *COKCTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 amount) returns(bool)
func (*COKCTransactor) TransferFrom ¶
func (_COKC *COKCTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)
func (*COKCTransactor) Withdraw ¶
func (_COKC *COKCTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type COKCTransactorRaw ¶
type COKCTransactorRaw struct {
Contract *COKCTransactor // Generic write-only contract binding to access the raw methods on
}
COKCTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*COKCTransactorRaw) Transact ¶
func (_COKC *COKCTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*COKCTransactorRaw) Transfer ¶
func (_COKC *COKCTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type COKCTransactorSession ¶
type COKCTransactorSession struct { Contract *COKCTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
COKCTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*COKCTransactorSession) Approve ¶
func (_COKC *COKCTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*COKCTransactorSession) Burn ¶
func (_COKC *COKCTransactorSession) Burn(user common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address user, uint256 amount) returns()
func (*COKCTransactorSession) ClaimMintReward ¶
func (_COKC *COKCTransactorSession) ClaimMintReward() (*types.Transaction, error)
ClaimMintReward is a paid mutator transaction binding the contract method 0x52c7f8dc.
Solidity: function claimMintReward() returns()
func (*COKCTransactorSession) ClaimMintRewardAndShare ¶
func (_COKC *COKCTransactorSession) ClaimMintRewardAndShare(other common.Address, pct *big.Int) (*types.Transaction, error)
ClaimMintRewardAndShare is a paid mutator transaction binding the contract method 0x1c560305.
Solidity: function claimMintRewardAndShare(address other, uint256 pct) returns()
func (*COKCTransactorSession) ClaimMintRewardAndStake ¶
func (_COKC *COKCTransactorSession) ClaimMintRewardAndStake(pct *big.Int, term *big.Int) (*types.Transaction, error)
ClaimMintRewardAndStake is a paid mutator transaction binding the contract method 0x5bccb4c4.
Solidity: function claimMintRewardAndStake(uint256 pct, uint256 term) returns()
func (*COKCTransactorSession) ClaimRank ¶
func (_COKC *COKCTransactorSession) ClaimRank(term *big.Int) (*types.Transaction, error)
ClaimRank is a paid mutator transaction binding the contract method 0x9ff054df.
Solidity: function claimRank(uint256 term) returns()
func (*COKCTransactorSession) DecreaseAllowance ¶
func (_COKC *COKCTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*COKCTransactorSession) IncreaseAllowance ¶
func (_COKC *COKCTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*COKCTransactorSession) Stake ¶
func (_COKC *COKCTransactorSession) Stake(amount *big.Int, term *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x7b0472f0.
Solidity: function stake(uint256 amount, uint256 term) returns()
func (*COKCTransactorSession) Transfer ¶
func (_COKC *COKCTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 amount) returns(bool)
func (*COKCTransactorSession) TransferFrom ¶
func (_COKC *COKCTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)
func (*COKCTransactorSession) Withdraw ¶
func (_COKC *COKCTransactorSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type COKCTransfer ¶
type COKCTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
COKCTransfer represents a Transfer event raised by the COKC contract.
type COKCTransferIterator ¶
type COKCTransferIterator struct { Event *COKCTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COKCTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the COKC contract.
func (*COKCTransferIterator) Close ¶
func (it *COKCTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COKCTransferIterator) Error ¶
func (it *COKCTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COKCTransferIterator) Next ¶
func (it *COKCTransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type COKCWithdrawn ¶
type COKCWithdrawn struct { User common.Address Amount *big.Int Reward *big.Int Raw types.Log // Blockchain specific contextual infos }
COKCWithdrawn represents a Withdrawn event raised by the COKC contract.
type COKCWithdrawnIterator ¶
type COKCWithdrawnIterator struct { Event *COKCWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COKCWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the COKC contract.
func (*COKCWithdrawnIterator) Close ¶
func (it *COKCWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COKCWithdrawnIterator) Error ¶
func (it *COKCWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COKCWithdrawnIterator) Next ¶
func (it *COKCWithdrawnIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MintClaimed ¶
type MintClaimed struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` RewardAmount []byte `protobuf:"bytes,6,opt,name=rewardAmount,proto3" json:"rewardAmount,omitempty"` // contains filtered or unexported fields }
func (*MintClaimed) Descriptor
deprecated
func (*MintClaimed) Descriptor() ([]byte, []int)
Deprecated: Use MintClaimed.ProtoReflect.Descriptor instead.
func (*MintClaimed) GetBlock ¶
func (x *MintClaimed) GetBlock() uint64
func (*MintClaimed) GetIdx ¶
func (x *MintClaimed) GetIdx() uint64
func (*MintClaimed) GetRewardAmount ¶
func (x *MintClaimed) GetRewardAmount() []byte
func (*MintClaimed) GetTs ¶
func (x *MintClaimed) GetTs() *timestamppb.Timestamp
func (*MintClaimed) GetTx ¶
func (x *MintClaimed) GetTx() []byte
func (*MintClaimed) GetUser ¶
func (x *MintClaimed) GetUser() []byte
func (*MintClaimed) ProtoMessage ¶
func (*MintClaimed) ProtoMessage()
func (*MintClaimed) ProtoReflect ¶
func (x *MintClaimed) ProtoReflect() protoreflect.Message
func (*MintClaimed) Reset ¶
func (x *MintClaimed) Reset()
func (*MintClaimed) String ¶
func (x *MintClaimed) String() string
type RankClaimed ¶
type RankClaimed struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Term []byte `protobuf:"bytes,6,opt,name=term,proto3" json:"term,omitempty"` Rank []byte `protobuf:"bytes,7,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*RankClaimed) Descriptor
deprecated
func (*RankClaimed) Descriptor() ([]byte, []int)
Deprecated: Use RankClaimed.ProtoReflect.Descriptor instead.
func (*RankClaimed) GetBlock ¶
func (x *RankClaimed) GetBlock() uint64
func (*RankClaimed) GetIdx ¶
func (x *RankClaimed) GetIdx() uint64
func (*RankClaimed) GetRank ¶
func (x *RankClaimed) GetRank() []byte
func (*RankClaimed) GetTerm ¶
func (x *RankClaimed) GetTerm() []byte
func (*RankClaimed) GetTs ¶
func (x *RankClaimed) GetTs() *timestamppb.Timestamp
func (*RankClaimed) GetTx ¶
func (x *RankClaimed) GetTx() []byte
func (*RankClaimed) GetUser ¶
func (x *RankClaimed) GetUser() []byte
func (*RankClaimed) ProtoMessage ¶
func (*RankClaimed) ProtoMessage()
func (*RankClaimed) ProtoReflect ¶
func (x *RankClaimed) ProtoReflect() protoreflect.Message
func (*RankClaimed) Reset ¶
func (x *RankClaimed) Reset()
func (*RankClaimed) String ¶
func (x *RankClaimed) String() string
type SmartContract ¶
type SmartContract struct{}
type Staked ¶
type Staked struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Amount []byte `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` Term []byte `protobuf:"bytes,7,opt,name=term,proto3" json:"term,omitempty"` // contains filtered or unexported fields }
func (*Staked) Descriptor
deprecated
func (*Staked) GetTs ¶
func (x *Staked) GetTs() *timestamppb.Timestamp
func (*Staked) ProtoMessage ¶
func (*Staked) ProtoMessage()
func (*Staked) ProtoReflect ¶
func (x *Staked) ProtoReflect() protoreflect.Message
type Transfer ¶
type Transfer struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash From []byte `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"` To []byte `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"` Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Transfer) Descriptor
deprecated
func (*Transfer) GetTs ¶
func (x *Transfer) GetTs() *timestamppb.Timestamp
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message
type Withdrawn ¶
type Withdrawn struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Amount []byte `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` Reward []byte `protobuf:"bytes,7,opt,name=reward,proto3" json:"reward,omitempty"` // contains filtered or unexported fields }
func (*Withdrawn) Descriptor
deprecated
func (*Withdrawn) GetTs ¶
func (x *Withdrawn) GetTs() *timestamppb.Timestamp
func (*Withdrawn) ProtoMessage ¶
func (*Withdrawn) ProtoMessage()
func (*Withdrawn) ProtoReflect ¶
func (x *Withdrawn) ProtoReflect() protoreflect.Message