Documentation ¶
Index ¶
- Variables
- type DposInterface
- type DposInterfaceCaller
- func (_DposInterface *DposInterfaceCaller) GetDelegations(opts *bind.CallOpts, delegator common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCaller) GetTotalDelegation(opts *bind.CallOpts, delegator common.Address) (*big.Int, error)
- func (_DposInterface *DposInterfaceCaller) GetTotalEligibleVotesCount(opts *bind.CallOpts) (uint64, error)
- func (_DposInterface *DposInterfaceCaller) GetUndelegations(opts *bind.CallOpts, delegator common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCaller) GetValidator(opts *bind.CallOpts, validator common.Address) (DposInterfaceValidatorBasicInfo, error)
- func (_DposInterface *DposInterfaceCaller) GetValidatorEligibleVotesCount(opts *bind.CallOpts, validator common.Address) (uint64, error)
- func (_DposInterface *DposInterfaceCaller) GetValidators(opts *bind.CallOpts, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCaller) GetValidatorsFor(opts *bind.CallOpts, owner common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCaller) IsValidatorEligible(opts *bind.CallOpts, validator common.Address) (bool, error)
- type DposInterfaceCallerRaw
- type DposInterfaceCallerSession
- func (_DposInterface *DposInterfaceCallerSession) GetDelegations(delegator common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCallerSession) GetTotalDelegation(delegator common.Address) (*big.Int, error)
- func (_DposInterface *DposInterfaceCallerSession) GetTotalEligibleVotesCount() (uint64, error)
- func (_DposInterface *DposInterfaceCallerSession) GetUndelegations(delegator common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCallerSession) GetValidator(validator common.Address) (DposInterfaceValidatorBasicInfo, error)
- func (_DposInterface *DposInterfaceCallerSession) GetValidatorEligibleVotesCount(validator common.Address) (uint64, error)
- func (_DposInterface *DposInterfaceCallerSession) GetValidators(batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCallerSession) GetValidatorsFor(owner common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceCallerSession) IsValidatorEligible(validator common.Address) (bool, error)
- type DposInterfaceCommissionRewardsClaimed
- type DposInterfaceCommissionRewardsClaimedIterator
- type DposInterfaceCommissionSet
- type DposInterfaceCommissionSetIterator
- type DposInterfaceDelegated
- type DposInterfaceDelegatedIterator
- type DposInterfaceDelegationData
- type DposInterfaceDelegatorInfo
- type DposInterfaceFilterer
- func (_DposInterface *DposInterfaceFilterer) FilterCommissionRewardsClaimed(opts *bind.FilterOpts, account []common.Address, validator []common.Address) (*DposInterfaceCommissionRewardsClaimedIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterCommissionSet(opts *bind.FilterOpts, validator []common.Address) (*DposInterfaceCommissionSetIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterDelegated(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceDelegatedIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterRedelegated(opts *bind.FilterOpts, delegator []common.Address, from []common.Address, ...) (*DposInterfaceRedelegatedIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, account []common.Address, validator []common.Address) (*DposInterfaceRewardsClaimedIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterUndelegateCanceled(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceUndelegateCanceledIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterUndelegateConfirmed(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceUndelegateConfirmedIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterUndelegated(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceUndelegatedIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterValidatorInfoSet(opts *bind.FilterOpts, validator []common.Address) (*DposInterfaceValidatorInfoSetIterator, error)
- func (_DposInterface *DposInterfaceFilterer) FilterValidatorRegistered(opts *bind.FilterOpts, validator []common.Address) (*DposInterfaceValidatorRegisteredIterator, error)
- func (_DposInterface *DposInterfaceFilterer) ParseCommissionRewardsClaimed(log types.Log) (*DposInterfaceCommissionRewardsClaimed, error)
- func (_DposInterface *DposInterfaceFilterer) ParseCommissionSet(log types.Log) (*DposInterfaceCommissionSet, error)
- func (_DposInterface *DposInterfaceFilterer) ParseDelegated(log types.Log) (*DposInterfaceDelegated, error)
- func (_DposInterface *DposInterfaceFilterer) ParseRedelegated(log types.Log) (*DposInterfaceRedelegated, error)
- func (_DposInterface *DposInterfaceFilterer) ParseRewardsClaimed(log types.Log) (*DposInterfaceRewardsClaimed, error)
- func (_DposInterface *DposInterfaceFilterer) ParseUndelegateCanceled(log types.Log) (*DposInterfaceUndelegateCanceled, error)
- func (_DposInterface *DposInterfaceFilterer) ParseUndelegateConfirmed(log types.Log) (*DposInterfaceUndelegateConfirmed, error)
- func (_DposInterface *DposInterfaceFilterer) ParseUndelegated(log types.Log) (*DposInterfaceUndelegated, error)
- func (_DposInterface *DposInterfaceFilterer) ParseValidatorInfoSet(log types.Log) (*DposInterfaceValidatorInfoSet, error)
- func (_DposInterface *DposInterfaceFilterer) ParseValidatorRegistered(log types.Log) (*DposInterfaceValidatorRegistered, error)
- func (_DposInterface *DposInterfaceFilterer) WatchCommissionRewardsClaimed(opts *bind.WatchOpts, sink chan<- *DposInterfaceCommissionRewardsClaimed, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchCommissionSet(opts *bind.WatchOpts, sink chan<- *DposInterfaceCommissionSet, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchDelegated(opts *bind.WatchOpts, sink chan<- *DposInterfaceDelegated, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchRedelegated(opts *bind.WatchOpts, sink chan<- *DposInterfaceRedelegated, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *DposInterfaceRewardsClaimed, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchUndelegateCanceled(opts *bind.WatchOpts, sink chan<- *DposInterfaceUndelegateCanceled, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchUndelegateConfirmed(opts *bind.WatchOpts, sink chan<- *DposInterfaceUndelegateConfirmed, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchUndelegated(opts *bind.WatchOpts, sink chan<- *DposInterfaceUndelegated, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchValidatorInfoSet(opts *bind.WatchOpts, sink chan<- *DposInterfaceValidatorInfoSet, ...) (event.Subscription, error)
- func (_DposInterface *DposInterfaceFilterer) WatchValidatorRegistered(opts *bind.WatchOpts, sink chan<- *DposInterfaceValidatorRegistered, ...) (event.Subscription, error)
- type DposInterfaceRaw
- func (_DposInterface *DposInterfaceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_DposInterface *DposInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DposInterfaceRedelegated
- type DposInterfaceRedelegatedIterator
- type DposInterfaceRewardsClaimed
- type DposInterfaceRewardsClaimedIterator
- type DposInterfaceSession
- func (_DposInterface *DposInterfaceSession) CancelUndelegate(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) ClaimAllRewards(batch uint32) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) ClaimCommissionRewards(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) ClaimRewards(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) ConfirmUndelegate(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) Delegate(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) GetDelegations(delegator common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceSession) GetTotalDelegation(delegator common.Address) (*big.Int, error)
- func (_DposInterface *DposInterfaceSession) GetTotalEligibleVotesCount() (uint64, error)
- func (_DposInterface *DposInterfaceSession) GetUndelegations(delegator common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceSession) GetValidator(validator common.Address) (DposInterfaceValidatorBasicInfo, error)
- func (_DposInterface *DposInterfaceSession) GetValidatorEligibleVotesCount(validator common.Address) (uint64, error)
- func (_DposInterface *DposInterfaceSession) GetValidators(batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceSession) GetValidatorsFor(owner common.Address, batch uint32) (struct{ ... }, error)
- func (_DposInterface *DposInterfaceSession) IsValidatorEligible(validator common.Address) (bool, error)
- func (_DposInterface *DposInterfaceSession) ReDelegate(validator_from common.Address, validator_to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) RegisterValidator(validator common.Address, proof []byte, vrf_key []byte, commission uint16, ...) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) SetCommission(validator common.Address, commission uint16) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) SetValidatorInfo(validator common.Address, description string, endpoint string) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceSession) Undelegate(validator common.Address, amount *big.Int) (*types.Transaction, error)
- type DposInterfaceTransactor
- func (_DposInterface *DposInterfaceTransactor) CancelUndelegate(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) ClaimAllRewards(opts *bind.TransactOpts, batch uint32) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) ClaimCommissionRewards(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) ClaimRewards(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) ConfirmUndelegate(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) Delegate(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) ReDelegate(opts *bind.TransactOpts, validator_from common.Address, ...) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) RegisterValidator(opts *bind.TransactOpts, validator common.Address, proof []byte, ...) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) SetCommission(opts *bind.TransactOpts, validator common.Address, commission uint16) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) SetValidatorInfo(opts *bind.TransactOpts, validator common.Address, description string, ...) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactor) Undelegate(opts *bind.TransactOpts, validator common.Address, amount *big.Int) (*types.Transaction, error)
- type DposInterfaceTransactorRaw
- type DposInterfaceTransactorSession
- func (_DposInterface *DposInterfaceTransactorSession) CancelUndelegate(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) ClaimAllRewards(batch uint32) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) ClaimCommissionRewards(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) ClaimRewards(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) ConfirmUndelegate(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) Delegate(validator common.Address) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) ReDelegate(validator_from common.Address, validator_to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) RegisterValidator(validator common.Address, proof []byte, vrf_key []byte, commission uint16, ...) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) SetCommission(validator common.Address, commission uint16) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) SetValidatorInfo(validator common.Address, description string, endpoint string) (*types.Transaction, error)
- func (_DposInterface *DposInterfaceTransactorSession) Undelegate(validator common.Address, amount *big.Int) (*types.Transaction, error)
- type DposInterfaceUndelegateCanceled
- type DposInterfaceUndelegateCanceledIterator
- type DposInterfaceUndelegateConfirmed
- type DposInterfaceUndelegateConfirmedIterator
- type DposInterfaceUndelegated
- type DposInterfaceUndelegatedIterator
- type DposInterfaceUndelegationData
- type DposInterfaceValidatorBasicInfo
- type DposInterfaceValidatorData
- type DposInterfaceValidatorInfoSet
- type DposInterfaceValidatorInfoSetIterator
- type DposInterfaceValidatorRegistered
- type DposInterfaceValidatorRegisteredIterator
Constants ¶
This section is empty.
Variables ¶
var DposInterfaceABI = DposInterfaceMetaData.ABI
DposInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use DposInterfaceMetaData.ABI instead.
var DposInterfaceMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CommissionRewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"commission\",\"type\":\"uint16\"}],\"name\":\"CommissionSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Delegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Redelegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"UndelegateCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"UndelegateConfirmed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Undelegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"ValidatorInfoSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"ValidatorRegistered\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"cancelUndelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"batch\",\"type\":\"uint32\"}],\"name\":\"claimAllRewards\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"end\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"claimCommissionRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"claimRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"confirmUndelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"delegate\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"batch\",\"type\":\"uint32\"}],\"name\":\"getDelegations\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"internalType\":\"structDposInterface.DelegatorInfo\",\"name\":\"delegation\",\"type\":\"tuple\"}],\"internalType\":\"structDposInterface.DelegationData[]\",\"name\":\"delegations\",\"type\":\"tuple[]\"},{\"internalType\":\"bool\",\"name\":\"end\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"}],\"name\":\"getTotalDelegation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"total_delegation\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalEligibleVotesCount\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"batch\",\"type\":\"uint32\"}],\"name\":\"getUndelegations\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"block\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"validator_exists\",\"type\":\"bool\"}],\"internalType\":\"structDposInterface.UndelegationData[]\",\"name\":\"undelegations\",\"type\":\"tuple[]\"},{\"internalType\":\"bool\",\"name\":\"end\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"getValidator\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"total_stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commission_reward\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"commission\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"last_commission_change\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"undelegations_count\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"}],\"internalType\":\"structDposInterface.ValidatorBasicInfo\",\"name\":\"validator_info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"getValidatorEligibleVotesCount\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"batch\",\"type\":\"uint32\"}],\"name\":\"getValidators\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"total_stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commission_reward\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"commission\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"last_commission_change\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"undelegations_count\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"}],\"internalType\":\"structDposInterface.ValidatorBasicInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"structDposInterface.ValidatorData[]\",\"name\":\"validators\",\"type\":\"tuple[]\"},{\"internalType\":\"bool\",\"name\":\"end\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"batch\",\"type\":\"uint32\"}],\"name\":\"getValidatorsFor\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"total_stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"commission_reward\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"commission\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"last_commission_change\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"undelegations_count\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"}],\"internalType\":\"structDposInterface.ValidatorBasicInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"structDposInterface.ValidatorData[]\",\"name\":\"validators\",\"type\":\"tuple[]\"},{\"internalType\":\"bool\",\"name\":\"end\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"isValidatorEligible\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"validator_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"reDelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"vrf_key\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"commission\",\"type\":\"uint16\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"}],\"name\":\"registerValidator\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"commission\",\"type\":\"uint16\"}],\"name\":\"setCommission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"}],\"name\":\"setValidatorInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"undelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
DposInterfaceMetaData contains all meta data concerning the DposInterface contract.
Functions ¶
This section is empty.
Types ¶
type DposInterface ¶
type DposInterface struct { DposInterfaceCaller // Read-only binding to the contract DposInterfaceTransactor // Write-only binding to the contract DposInterfaceFilterer // Log filterer for contract events }
DposInterface is an auto generated Go binding around an Ethereum contract.
func NewDposInterface ¶
func NewDposInterface(address common.Address, backend bind.ContractBackend) (*DposInterface, error)
NewDposInterface creates a new instance of DposInterface, bound to a specific deployed contract.
type DposInterfaceCaller ¶
type DposInterfaceCaller struct {
// contains filtered or unexported fields
}
DposInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDposInterfaceCaller ¶
func NewDposInterfaceCaller(address common.Address, caller bind.ContractCaller) (*DposInterfaceCaller, error)
NewDposInterfaceCaller creates a new read-only instance of DposInterface, bound to a specific deployed contract.
func (*DposInterfaceCaller) GetDelegations ¶
func (_DposInterface *DposInterfaceCaller) GetDelegations(opts *bind.CallOpts, delegator common.Address, batch uint32) (struct { Delegations []DposInterfaceDelegationData End bool }, error)
GetDelegations is a free data retrieval call binding the contract method 0x8b49d394.
Solidity: function getDelegations(address delegator, uint32 batch) view returns((address,(uint256,uint256))[] delegations, bool end)
func (*DposInterfaceCaller) GetTotalDelegation ¶
func (_DposInterface *DposInterfaceCaller) GetTotalDelegation(opts *bind.CallOpts, delegator common.Address) (*big.Int, error)
GetTotalDelegation is a free data retrieval call binding the contract method 0xfc5e7e09.
Solidity: function getTotalDelegation(address delegator) view returns(uint256 total_delegation)
func (*DposInterfaceCaller) GetTotalEligibleVotesCount ¶
func (_DposInterface *DposInterfaceCaller) GetTotalEligibleVotesCount(opts *bind.CallOpts) (uint64, error)
GetTotalEligibleVotesCount is a free data retrieval call binding the contract method 0xde8e4b50.
Solidity: function getTotalEligibleVotesCount() view returns(uint64)
func (*DposInterfaceCaller) GetUndelegations ¶
func (_DposInterface *DposInterfaceCaller) GetUndelegations(opts *bind.CallOpts, delegator common.Address, batch uint32) (struct { Undelegations []DposInterfaceUndelegationData End bool }, error)
GetUndelegations is a free data retrieval call binding the contract method 0x4edd9943.
Solidity: function getUndelegations(address delegator, uint32 batch) view returns((uint256,uint64,address,bool)[] undelegations, bool end)
func (*DposInterfaceCaller) GetValidator ¶
func (_DposInterface *DposInterfaceCaller) GetValidator(opts *bind.CallOpts, validator common.Address) (DposInterfaceValidatorBasicInfo, error)
GetValidator is a free data retrieval call binding the contract method 0x1904bb2e.
Solidity: function getValidator(address validator) view returns((uint256,uint256,uint16,uint64,uint16,address,string,string) validator_info)
func (*DposInterfaceCaller) GetValidatorEligibleVotesCount ¶
func (_DposInterface *DposInterfaceCaller) GetValidatorEligibleVotesCount(opts *bind.CallOpts, validator common.Address) (uint64, error)
GetValidatorEligibleVotesCount is a free data retrieval call binding the contract method 0x618e3862.
Solidity: function getValidatorEligibleVotesCount(address validator) view returns(uint64)
func (*DposInterfaceCaller) GetValidators ¶
func (_DposInterface *DposInterfaceCaller) GetValidators(opts *bind.CallOpts, batch uint32) (struct { Validators []DposInterfaceValidatorData End bool }, error)
GetValidators is a free data retrieval call binding the contract method 0x19d8024f.
Solidity: function getValidators(uint32 batch) view returns((address,(uint256,uint256,uint16,uint64,uint16,address,string,string))[] validators, bool end)
func (*DposInterfaceCaller) GetValidatorsFor ¶
func (_DposInterface *DposInterfaceCaller) GetValidatorsFor(opts *bind.CallOpts, owner common.Address, batch uint32) (struct { Validators []DposInterfaceValidatorData End bool }, error)
GetValidatorsFor is a free data retrieval call binding the contract method 0x724ac6b0.
Solidity: function getValidatorsFor(address owner, uint32 batch) view returns((address,(uint256,uint256,uint16,uint64,uint16,address,string,string))[] validators, bool end)
func (*DposInterfaceCaller) IsValidatorEligible ¶
func (_DposInterface *DposInterfaceCaller) IsValidatorEligible(opts *bind.CallOpts, validator common.Address) (bool, error)
IsValidatorEligible is a free data retrieval call binding the contract method 0xf3094e90.
Solidity: function isValidatorEligible(address validator) view returns(bool)
type DposInterfaceCallerRaw ¶
type DposInterfaceCallerRaw struct {
Contract *DposInterfaceCaller // Generic read-only contract binding to access the raw methods on
}
DposInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DposInterfaceCallerRaw) Call ¶
func (_DposInterface *DposInterfaceCallerRaw) 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 DposInterfaceCallerSession ¶
type DposInterfaceCallerSession struct { Contract *DposInterfaceCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DposInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DposInterfaceCallerSession) GetDelegations ¶
func (_DposInterface *DposInterfaceCallerSession) GetDelegations(delegator common.Address, batch uint32) (struct { Delegations []DposInterfaceDelegationData End bool }, error)
GetDelegations is a free data retrieval call binding the contract method 0x8b49d394.
Solidity: function getDelegations(address delegator, uint32 batch) view returns((address,(uint256,uint256))[] delegations, bool end)
func (*DposInterfaceCallerSession) GetTotalDelegation ¶
func (_DposInterface *DposInterfaceCallerSession) GetTotalDelegation(delegator common.Address) (*big.Int, error)
GetTotalDelegation is a free data retrieval call binding the contract method 0xfc5e7e09.
Solidity: function getTotalDelegation(address delegator) view returns(uint256 total_delegation)
func (*DposInterfaceCallerSession) GetTotalEligibleVotesCount ¶
func (_DposInterface *DposInterfaceCallerSession) GetTotalEligibleVotesCount() (uint64, error)
GetTotalEligibleVotesCount is a free data retrieval call binding the contract method 0xde8e4b50.
Solidity: function getTotalEligibleVotesCount() view returns(uint64)
func (*DposInterfaceCallerSession) GetUndelegations ¶
func (_DposInterface *DposInterfaceCallerSession) GetUndelegations(delegator common.Address, batch uint32) (struct { Undelegations []DposInterfaceUndelegationData End bool }, error)
GetUndelegations is a free data retrieval call binding the contract method 0x4edd9943.
Solidity: function getUndelegations(address delegator, uint32 batch) view returns((uint256,uint64,address,bool)[] undelegations, bool end)
func (*DposInterfaceCallerSession) GetValidator ¶
func (_DposInterface *DposInterfaceCallerSession) GetValidator(validator common.Address) (DposInterfaceValidatorBasicInfo, error)
GetValidator is a free data retrieval call binding the contract method 0x1904bb2e.
Solidity: function getValidator(address validator) view returns((uint256,uint256,uint16,uint64,uint16,address,string,string) validator_info)
func (*DposInterfaceCallerSession) GetValidatorEligibleVotesCount ¶
func (_DposInterface *DposInterfaceCallerSession) GetValidatorEligibleVotesCount(validator common.Address) (uint64, error)
GetValidatorEligibleVotesCount is a free data retrieval call binding the contract method 0x618e3862.
Solidity: function getValidatorEligibleVotesCount(address validator) view returns(uint64)
func (*DposInterfaceCallerSession) GetValidators ¶
func (_DposInterface *DposInterfaceCallerSession) GetValidators(batch uint32) (struct { Validators []DposInterfaceValidatorData End bool }, error)
GetValidators is a free data retrieval call binding the contract method 0x19d8024f.
Solidity: function getValidators(uint32 batch) view returns((address,(uint256,uint256,uint16,uint64,uint16,address,string,string))[] validators, bool end)
func (*DposInterfaceCallerSession) GetValidatorsFor ¶
func (_DposInterface *DposInterfaceCallerSession) GetValidatorsFor(owner common.Address, batch uint32) (struct { Validators []DposInterfaceValidatorData End bool }, error)
GetValidatorsFor is a free data retrieval call binding the contract method 0x724ac6b0.
Solidity: function getValidatorsFor(address owner, uint32 batch) view returns((address,(uint256,uint256,uint16,uint64,uint16,address,string,string))[] validators, bool end)
func (*DposInterfaceCallerSession) IsValidatorEligible ¶
func (_DposInterface *DposInterfaceCallerSession) IsValidatorEligible(validator common.Address) (bool, error)
IsValidatorEligible is a free data retrieval call binding the contract method 0xf3094e90.
Solidity: function isValidatorEligible(address validator) view returns(bool)
type DposInterfaceCommissionRewardsClaimed ¶
type DposInterfaceCommissionRewardsClaimed struct { Account common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceCommissionRewardsClaimed represents a CommissionRewardsClaimed event raised by the DposInterface contract.
type DposInterfaceCommissionRewardsClaimedIterator ¶
type DposInterfaceCommissionRewardsClaimedIterator struct { Event *DposInterfaceCommissionRewardsClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceCommissionRewardsClaimedIterator is returned from FilterCommissionRewardsClaimed and is used to iterate over the raw logs and unpacked data for CommissionRewardsClaimed events raised by the DposInterface contract.
func (*DposInterfaceCommissionRewardsClaimedIterator) Close ¶
func (it *DposInterfaceCommissionRewardsClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceCommissionRewardsClaimedIterator) Error ¶
func (it *DposInterfaceCommissionRewardsClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceCommissionRewardsClaimedIterator) Next ¶
func (it *DposInterfaceCommissionRewardsClaimedIterator) 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 DposInterfaceCommissionSet ¶
type DposInterfaceCommissionSet struct { Validator common.Address Commission uint16 Raw types.Log // Blockchain specific contextual infos }
DposInterfaceCommissionSet represents a CommissionSet event raised by the DposInterface contract.
type DposInterfaceCommissionSetIterator ¶
type DposInterfaceCommissionSetIterator struct { Event *DposInterfaceCommissionSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceCommissionSetIterator is returned from FilterCommissionSet and is used to iterate over the raw logs and unpacked data for CommissionSet events raised by the DposInterface contract.
func (*DposInterfaceCommissionSetIterator) Close ¶
func (it *DposInterfaceCommissionSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceCommissionSetIterator) Error ¶
func (it *DposInterfaceCommissionSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceCommissionSetIterator) Next ¶
func (it *DposInterfaceCommissionSetIterator) 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 DposInterfaceDelegated ¶
type DposInterfaceDelegated struct { Delegator common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceDelegated represents a Delegated event raised by the DposInterface contract.
type DposInterfaceDelegatedIterator ¶
type DposInterfaceDelegatedIterator struct { Event *DposInterfaceDelegated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceDelegatedIterator is returned from FilterDelegated and is used to iterate over the raw logs and unpacked data for Delegated events raised by the DposInterface contract.
func (*DposInterfaceDelegatedIterator) Close ¶
func (it *DposInterfaceDelegatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceDelegatedIterator) Error ¶
func (it *DposInterfaceDelegatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceDelegatedIterator) Next ¶
func (it *DposInterfaceDelegatedIterator) 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 DposInterfaceDelegationData ¶
type DposInterfaceDelegationData struct { Account common.Address Delegation DposInterfaceDelegatorInfo }
DposInterfaceDelegationData is an auto generated low-level Go binding around an user-defined struct.
type DposInterfaceDelegatorInfo ¶
DposInterfaceDelegatorInfo is an auto generated low-level Go binding around an user-defined struct.
type DposInterfaceFilterer ¶
type DposInterfaceFilterer struct {
// contains filtered or unexported fields
}
DposInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDposInterfaceFilterer ¶
func NewDposInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*DposInterfaceFilterer, error)
NewDposInterfaceFilterer creates a new log filterer instance of DposInterface, bound to a specific deployed contract.
func (*DposInterfaceFilterer) FilterCommissionRewardsClaimed ¶
func (_DposInterface *DposInterfaceFilterer) FilterCommissionRewardsClaimed(opts *bind.FilterOpts, account []common.Address, validator []common.Address) (*DposInterfaceCommissionRewardsClaimedIterator, error)
FilterCommissionRewardsClaimed is a free log retrieval operation binding the contract event 0xf0ec9e0f6add850a1738c5822244e26ffc3d1f14da7537aa240582b25af12ad0.
Solidity: event CommissionRewardsClaimed(address indexed account, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) FilterCommissionSet ¶
func (_DposInterface *DposInterfaceFilterer) FilterCommissionSet(opts *bind.FilterOpts, validator []common.Address) (*DposInterfaceCommissionSetIterator, error)
FilterCommissionSet is a free log retrieval operation binding the contract event 0xc909daf778d180f43dac53b55d0de934d2f1e0b70412ca274982e4e6e894eb1a.
Solidity: event CommissionSet(address indexed validator, uint16 commission)
func (*DposInterfaceFilterer) FilterDelegated ¶
func (_DposInterface *DposInterfaceFilterer) FilterDelegated(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceDelegatedIterator, error)
FilterDelegated is a free log retrieval operation binding the contract event 0xe5541a6b6103d4fa7e021ed54fad39c66f27a76bd13d374cf6240ae6bd0bb72b.
Solidity: event Delegated(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) FilterRedelegated ¶
func (_DposInterface *DposInterfaceFilterer) FilterRedelegated(opts *bind.FilterOpts, delegator []common.Address, from []common.Address, to []common.Address) (*DposInterfaceRedelegatedIterator, error)
FilterRedelegated is a free log retrieval operation binding the contract event 0x12e144c27d0bad08abc77c66a640b5cf15a03a93f6582f40de6932b033a5fa5e.
Solidity: event Redelegated(address indexed delegator, address indexed from, address indexed to, uint256 amount)
func (*DposInterfaceFilterer) FilterRewardsClaimed ¶
func (_DposInterface *DposInterfaceFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, account []common.Address, validator []common.Address) (*DposInterfaceRewardsClaimedIterator, error)
FilterRewardsClaimed is a free log retrieval operation binding the contract event 0x9310ccfcb8de723f578a9e4282ea9f521f05ae40dc08f3068dfad528a65ee3c7.
Solidity: event RewardsClaimed(address indexed account, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) FilterUndelegateCanceled ¶
func (_DposInterface *DposInterfaceFilterer) FilterUndelegateCanceled(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceUndelegateCanceledIterator, error)
FilterUndelegateCanceled is a free log retrieval operation binding the contract event 0xfc25f8a919d19f2c2dfce21115718abc9ef2b1e0c9218a488f614c75be4184b7.
Solidity: event UndelegateCanceled(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) FilterUndelegateConfirmed ¶
func (_DposInterface *DposInterfaceFilterer) FilterUndelegateConfirmed(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceUndelegateConfirmedIterator, error)
FilterUndelegateConfirmed is a free log retrieval operation binding the contract event 0xf8bef3a6fe3b4c932b5b51c6472a89f171d039f4bacf18cff632208938bf0426.
Solidity: event UndelegateConfirmed(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) FilterUndelegated ¶
func (_DposInterface *DposInterfaceFilterer) FilterUndelegated(opts *bind.FilterOpts, delegator []common.Address, validator []common.Address) (*DposInterfaceUndelegatedIterator, error)
FilterUndelegated is a free log retrieval operation binding the contract event 0x4d10bd049775c77bd7f255195afba5088028ecb3c7c277d393ccff7934f2f92c.
Solidity: event Undelegated(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) FilterValidatorInfoSet ¶
func (_DposInterface *DposInterfaceFilterer) FilterValidatorInfoSet(opts *bind.FilterOpts, validator []common.Address) (*DposInterfaceValidatorInfoSetIterator, error)
FilterValidatorInfoSet is a free log retrieval operation binding the contract event 0x7aa20e1f59764c9066578febd688a51375adbd654aff86cef56593a17a99071d.
Solidity: event ValidatorInfoSet(address indexed validator)
func (*DposInterfaceFilterer) FilterValidatorRegistered ¶
func (_DposInterface *DposInterfaceFilterer) FilterValidatorRegistered(opts *bind.FilterOpts, validator []common.Address) (*DposInterfaceValidatorRegisteredIterator, error)
FilterValidatorRegistered is a free log retrieval operation binding the contract event 0xd09501348473474a20c772c79c653e1fd7e8b437e418fe235d277d2c88853251.
Solidity: event ValidatorRegistered(address indexed validator)
func (*DposInterfaceFilterer) ParseCommissionRewardsClaimed ¶
func (_DposInterface *DposInterfaceFilterer) ParseCommissionRewardsClaimed(log types.Log) (*DposInterfaceCommissionRewardsClaimed, error)
ParseCommissionRewardsClaimed is a log parse operation binding the contract event 0xf0ec9e0f6add850a1738c5822244e26ffc3d1f14da7537aa240582b25af12ad0.
Solidity: event CommissionRewardsClaimed(address indexed account, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) ParseCommissionSet ¶
func (_DposInterface *DposInterfaceFilterer) ParseCommissionSet(log types.Log) (*DposInterfaceCommissionSet, error)
ParseCommissionSet is a log parse operation binding the contract event 0xc909daf778d180f43dac53b55d0de934d2f1e0b70412ca274982e4e6e894eb1a.
Solidity: event CommissionSet(address indexed validator, uint16 commission)
func (*DposInterfaceFilterer) ParseDelegated ¶
func (_DposInterface *DposInterfaceFilterer) ParseDelegated(log types.Log) (*DposInterfaceDelegated, error)
ParseDelegated is a log parse operation binding the contract event 0xe5541a6b6103d4fa7e021ed54fad39c66f27a76bd13d374cf6240ae6bd0bb72b.
Solidity: event Delegated(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) ParseRedelegated ¶
func (_DposInterface *DposInterfaceFilterer) ParseRedelegated(log types.Log) (*DposInterfaceRedelegated, error)
ParseRedelegated is a log parse operation binding the contract event 0x12e144c27d0bad08abc77c66a640b5cf15a03a93f6582f40de6932b033a5fa5e.
Solidity: event Redelegated(address indexed delegator, address indexed from, address indexed to, uint256 amount)
func (*DposInterfaceFilterer) ParseRewardsClaimed ¶
func (_DposInterface *DposInterfaceFilterer) ParseRewardsClaimed(log types.Log) (*DposInterfaceRewardsClaimed, error)
ParseRewardsClaimed is a log parse operation binding the contract event 0x9310ccfcb8de723f578a9e4282ea9f521f05ae40dc08f3068dfad528a65ee3c7.
Solidity: event RewardsClaimed(address indexed account, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) ParseUndelegateCanceled ¶
func (_DposInterface *DposInterfaceFilterer) ParseUndelegateCanceled(log types.Log) (*DposInterfaceUndelegateCanceled, error)
ParseUndelegateCanceled is a log parse operation binding the contract event 0xfc25f8a919d19f2c2dfce21115718abc9ef2b1e0c9218a488f614c75be4184b7.
Solidity: event UndelegateCanceled(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) ParseUndelegateConfirmed ¶
func (_DposInterface *DposInterfaceFilterer) ParseUndelegateConfirmed(log types.Log) (*DposInterfaceUndelegateConfirmed, error)
ParseUndelegateConfirmed is a log parse operation binding the contract event 0xf8bef3a6fe3b4c932b5b51c6472a89f171d039f4bacf18cff632208938bf0426.
Solidity: event UndelegateConfirmed(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) ParseUndelegated ¶
func (_DposInterface *DposInterfaceFilterer) ParseUndelegated(log types.Log) (*DposInterfaceUndelegated, error)
ParseUndelegated is a log parse operation binding the contract event 0x4d10bd049775c77bd7f255195afba5088028ecb3c7c277d393ccff7934f2f92c.
Solidity: event Undelegated(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) ParseValidatorInfoSet ¶
func (_DposInterface *DposInterfaceFilterer) ParseValidatorInfoSet(log types.Log) (*DposInterfaceValidatorInfoSet, error)
ParseValidatorInfoSet is a log parse operation binding the contract event 0x7aa20e1f59764c9066578febd688a51375adbd654aff86cef56593a17a99071d.
Solidity: event ValidatorInfoSet(address indexed validator)
func (*DposInterfaceFilterer) ParseValidatorRegistered ¶
func (_DposInterface *DposInterfaceFilterer) ParseValidatorRegistered(log types.Log) (*DposInterfaceValidatorRegistered, error)
ParseValidatorRegistered is a log parse operation binding the contract event 0xd09501348473474a20c772c79c653e1fd7e8b437e418fe235d277d2c88853251.
Solidity: event ValidatorRegistered(address indexed validator)
func (*DposInterfaceFilterer) WatchCommissionRewardsClaimed ¶
func (_DposInterface *DposInterfaceFilterer) WatchCommissionRewardsClaimed(opts *bind.WatchOpts, sink chan<- *DposInterfaceCommissionRewardsClaimed, account []common.Address, validator []common.Address) (event.Subscription, error)
WatchCommissionRewardsClaimed is a free log subscription operation binding the contract event 0xf0ec9e0f6add850a1738c5822244e26ffc3d1f14da7537aa240582b25af12ad0.
Solidity: event CommissionRewardsClaimed(address indexed account, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) WatchCommissionSet ¶
func (_DposInterface *DposInterfaceFilterer) WatchCommissionSet(opts *bind.WatchOpts, sink chan<- *DposInterfaceCommissionSet, validator []common.Address) (event.Subscription, error)
WatchCommissionSet is a free log subscription operation binding the contract event 0xc909daf778d180f43dac53b55d0de934d2f1e0b70412ca274982e4e6e894eb1a.
Solidity: event CommissionSet(address indexed validator, uint16 commission)
func (*DposInterfaceFilterer) WatchDelegated ¶
func (_DposInterface *DposInterfaceFilterer) WatchDelegated(opts *bind.WatchOpts, sink chan<- *DposInterfaceDelegated, delegator []common.Address, validator []common.Address) (event.Subscription, error)
WatchDelegated is a free log subscription operation binding the contract event 0xe5541a6b6103d4fa7e021ed54fad39c66f27a76bd13d374cf6240ae6bd0bb72b.
Solidity: event Delegated(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) WatchRedelegated ¶
func (_DposInterface *DposInterfaceFilterer) WatchRedelegated(opts *bind.WatchOpts, sink chan<- *DposInterfaceRedelegated, delegator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)
WatchRedelegated is a free log subscription operation binding the contract event 0x12e144c27d0bad08abc77c66a640b5cf15a03a93f6582f40de6932b033a5fa5e.
Solidity: event Redelegated(address indexed delegator, address indexed from, address indexed to, uint256 amount)
func (*DposInterfaceFilterer) WatchRewardsClaimed ¶
func (_DposInterface *DposInterfaceFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *DposInterfaceRewardsClaimed, account []common.Address, validator []common.Address) (event.Subscription, error)
WatchRewardsClaimed is a free log subscription operation binding the contract event 0x9310ccfcb8de723f578a9e4282ea9f521f05ae40dc08f3068dfad528a65ee3c7.
Solidity: event RewardsClaimed(address indexed account, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) WatchUndelegateCanceled ¶
func (_DposInterface *DposInterfaceFilterer) WatchUndelegateCanceled(opts *bind.WatchOpts, sink chan<- *DposInterfaceUndelegateCanceled, delegator []common.Address, validator []common.Address) (event.Subscription, error)
WatchUndelegateCanceled is a free log subscription operation binding the contract event 0xfc25f8a919d19f2c2dfce21115718abc9ef2b1e0c9218a488f614c75be4184b7.
Solidity: event UndelegateCanceled(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) WatchUndelegateConfirmed ¶
func (_DposInterface *DposInterfaceFilterer) WatchUndelegateConfirmed(opts *bind.WatchOpts, sink chan<- *DposInterfaceUndelegateConfirmed, delegator []common.Address, validator []common.Address) (event.Subscription, error)
WatchUndelegateConfirmed is a free log subscription operation binding the contract event 0xf8bef3a6fe3b4c932b5b51c6472a89f171d039f4bacf18cff632208938bf0426.
Solidity: event UndelegateConfirmed(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) WatchUndelegated ¶
func (_DposInterface *DposInterfaceFilterer) WatchUndelegated(opts *bind.WatchOpts, sink chan<- *DposInterfaceUndelegated, delegator []common.Address, validator []common.Address) (event.Subscription, error)
WatchUndelegated is a free log subscription operation binding the contract event 0x4d10bd049775c77bd7f255195afba5088028ecb3c7c277d393ccff7934f2f92c.
Solidity: event Undelegated(address indexed delegator, address indexed validator, uint256 amount)
func (*DposInterfaceFilterer) WatchValidatorInfoSet ¶
func (_DposInterface *DposInterfaceFilterer) WatchValidatorInfoSet(opts *bind.WatchOpts, sink chan<- *DposInterfaceValidatorInfoSet, validator []common.Address) (event.Subscription, error)
WatchValidatorInfoSet is a free log subscription operation binding the contract event 0x7aa20e1f59764c9066578febd688a51375adbd654aff86cef56593a17a99071d.
Solidity: event ValidatorInfoSet(address indexed validator)
func (*DposInterfaceFilterer) WatchValidatorRegistered ¶
func (_DposInterface *DposInterfaceFilterer) WatchValidatorRegistered(opts *bind.WatchOpts, sink chan<- *DposInterfaceValidatorRegistered, validator []common.Address) (event.Subscription, error)
WatchValidatorRegistered is a free log subscription operation binding the contract event 0xd09501348473474a20c772c79c653e1fd7e8b437e418fe235d277d2c88853251.
Solidity: event ValidatorRegistered(address indexed validator)
type DposInterfaceRaw ¶
type DposInterfaceRaw struct {
Contract *DposInterface // Generic contract binding to access the raw methods on
}
DposInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DposInterfaceRaw) Call ¶
func (_DposInterface *DposInterfaceRaw) 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 (*DposInterfaceRaw) Transact ¶
func (_DposInterface *DposInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DposInterfaceRaw) Transfer ¶
func (_DposInterface *DposInterfaceRaw) 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 DposInterfaceRedelegated ¶
type DposInterfaceRedelegated struct { Delegator common.Address From common.Address To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceRedelegated represents a Redelegated event raised by the DposInterface contract.
type DposInterfaceRedelegatedIterator ¶
type DposInterfaceRedelegatedIterator struct { Event *DposInterfaceRedelegated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceRedelegatedIterator is returned from FilterRedelegated and is used to iterate over the raw logs and unpacked data for Redelegated events raised by the DposInterface contract.
func (*DposInterfaceRedelegatedIterator) Close ¶
func (it *DposInterfaceRedelegatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceRedelegatedIterator) Error ¶
func (it *DposInterfaceRedelegatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceRedelegatedIterator) Next ¶
func (it *DposInterfaceRedelegatedIterator) 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 DposInterfaceRewardsClaimed ¶
type DposInterfaceRewardsClaimed struct { Account common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceRewardsClaimed represents a RewardsClaimed event raised by the DposInterface contract.
type DposInterfaceRewardsClaimedIterator ¶
type DposInterfaceRewardsClaimedIterator struct { Event *DposInterfaceRewardsClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceRewardsClaimedIterator is returned from FilterRewardsClaimed and is used to iterate over the raw logs and unpacked data for RewardsClaimed events raised by the DposInterface contract.
func (*DposInterfaceRewardsClaimedIterator) Close ¶
func (it *DposInterfaceRewardsClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceRewardsClaimedIterator) Error ¶
func (it *DposInterfaceRewardsClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceRewardsClaimedIterator) Next ¶
func (it *DposInterfaceRewardsClaimedIterator) 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 DposInterfaceSession ¶
type DposInterfaceSession struct { Contract *DposInterface // 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 }
DposInterfaceSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DposInterfaceSession) CancelUndelegate ¶
func (_DposInterface *DposInterfaceSession) CancelUndelegate(validator common.Address) (*types.Transaction, error)
CancelUndelegate is a paid mutator transaction binding the contract method 0x399ff554.
Solidity: function cancelUndelegate(address validator) returns()
func (*DposInterfaceSession) ClaimAllRewards ¶
func (_DposInterface *DposInterfaceSession) ClaimAllRewards(batch uint32) (*types.Transaction, error)
ClaimAllRewards is a paid mutator transaction binding the contract method 0x09b72e00.
Solidity: function claimAllRewards(uint32 batch) returns(bool end)
func (*DposInterfaceSession) ClaimCommissionRewards ¶
func (_DposInterface *DposInterfaceSession) ClaimCommissionRewards(validator common.Address) (*types.Transaction, error)
ClaimCommissionRewards is a paid mutator transaction binding the contract method 0xd0eebfe2.
Solidity: function claimCommissionRewards(address validator) returns()
func (*DposInterfaceSession) ClaimRewards ¶
func (_DposInterface *DposInterfaceSession) ClaimRewards(validator common.Address) (*types.Transaction, error)
ClaimRewards is a paid mutator transaction binding the contract method 0xef5cfb8c.
Solidity: function claimRewards(address validator) returns()
func (*DposInterfaceSession) ConfirmUndelegate ¶
func (_DposInterface *DposInterfaceSession) ConfirmUndelegate(validator common.Address) (*types.Transaction, error)
ConfirmUndelegate is a paid mutator transaction binding the contract method 0x45a02561.
Solidity: function confirmUndelegate(address validator) returns()
func (*DposInterfaceSession) Delegate ¶
func (_DposInterface *DposInterfaceSession) Delegate(validator common.Address) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.
Solidity: function delegate(address validator) payable returns()
func (*DposInterfaceSession) GetDelegations ¶
func (_DposInterface *DposInterfaceSession) GetDelegations(delegator common.Address, batch uint32) (struct { Delegations []DposInterfaceDelegationData End bool }, error)
GetDelegations is a free data retrieval call binding the contract method 0x8b49d394.
Solidity: function getDelegations(address delegator, uint32 batch) view returns((address,(uint256,uint256))[] delegations, bool end)
func (*DposInterfaceSession) GetTotalDelegation ¶
func (_DposInterface *DposInterfaceSession) GetTotalDelegation(delegator common.Address) (*big.Int, error)
GetTotalDelegation is a free data retrieval call binding the contract method 0xfc5e7e09.
Solidity: function getTotalDelegation(address delegator) view returns(uint256 total_delegation)
func (*DposInterfaceSession) GetTotalEligibleVotesCount ¶
func (_DposInterface *DposInterfaceSession) GetTotalEligibleVotesCount() (uint64, error)
GetTotalEligibleVotesCount is a free data retrieval call binding the contract method 0xde8e4b50.
Solidity: function getTotalEligibleVotesCount() view returns(uint64)
func (*DposInterfaceSession) GetUndelegations ¶
func (_DposInterface *DposInterfaceSession) GetUndelegations(delegator common.Address, batch uint32) (struct { Undelegations []DposInterfaceUndelegationData End bool }, error)
GetUndelegations is a free data retrieval call binding the contract method 0x4edd9943.
Solidity: function getUndelegations(address delegator, uint32 batch) view returns((uint256,uint64,address,bool)[] undelegations, bool end)
func (*DposInterfaceSession) GetValidator ¶
func (_DposInterface *DposInterfaceSession) GetValidator(validator common.Address) (DposInterfaceValidatorBasicInfo, error)
GetValidator is a free data retrieval call binding the contract method 0x1904bb2e.
Solidity: function getValidator(address validator) view returns((uint256,uint256,uint16,uint64,uint16,address,string,string) validator_info)
func (*DposInterfaceSession) GetValidatorEligibleVotesCount ¶
func (_DposInterface *DposInterfaceSession) GetValidatorEligibleVotesCount(validator common.Address) (uint64, error)
GetValidatorEligibleVotesCount is a free data retrieval call binding the contract method 0x618e3862.
Solidity: function getValidatorEligibleVotesCount(address validator) view returns(uint64)
func (*DposInterfaceSession) GetValidators ¶
func (_DposInterface *DposInterfaceSession) GetValidators(batch uint32) (struct { Validators []DposInterfaceValidatorData End bool }, error)
GetValidators is a free data retrieval call binding the contract method 0x19d8024f.
Solidity: function getValidators(uint32 batch) view returns((address,(uint256,uint256,uint16,uint64,uint16,address,string,string))[] validators, bool end)
func (*DposInterfaceSession) GetValidatorsFor ¶
func (_DposInterface *DposInterfaceSession) GetValidatorsFor(owner common.Address, batch uint32) (struct { Validators []DposInterfaceValidatorData End bool }, error)
GetValidatorsFor is a free data retrieval call binding the contract method 0x724ac6b0.
Solidity: function getValidatorsFor(address owner, uint32 batch) view returns((address,(uint256,uint256,uint16,uint64,uint16,address,string,string))[] validators, bool end)
func (*DposInterfaceSession) IsValidatorEligible ¶
func (_DposInterface *DposInterfaceSession) IsValidatorEligible(validator common.Address) (bool, error)
IsValidatorEligible is a free data retrieval call binding the contract method 0xf3094e90.
Solidity: function isValidatorEligible(address validator) view returns(bool)
func (*DposInterfaceSession) ReDelegate ¶
func (_DposInterface *DposInterfaceSession) ReDelegate(validator_from common.Address, validator_to common.Address, amount *big.Int) (*types.Transaction, error)
ReDelegate is a paid mutator transaction binding the contract method 0x703812cc.
Solidity: function reDelegate(address validator_from, address validator_to, uint256 amount) returns()
func (*DposInterfaceSession) RegisterValidator ¶
func (_DposInterface *DposInterfaceSession) RegisterValidator(validator common.Address, proof []byte, vrf_key []byte, commission uint16, description string, endpoint string) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0xd6fdc127.
Solidity: function registerValidator(address validator, bytes proof, bytes vrf_key, uint16 commission, string description, string endpoint) payable returns()
func (*DposInterfaceSession) SetCommission ¶
func (_DposInterface *DposInterfaceSession) SetCommission(validator common.Address, commission uint16) (*types.Transaction, error)
SetCommission is a paid mutator transaction binding the contract method 0xf000322c.
Solidity: function setCommission(address validator, uint16 commission) returns()
func (*DposInterfaceSession) SetValidatorInfo ¶
func (_DposInterface *DposInterfaceSession) SetValidatorInfo(validator common.Address, description string, endpoint string) (*types.Transaction, error)
SetValidatorInfo is a paid mutator transaction binding the contract method 0x0babea4c.
Solidity: function setValidatorInfo(address validator, string description, string endpoint) returns()
func (*DposInterfaceSession) Undelegate ¶
func (_DposInterface *DposInterfaceSession) Undelegate(validator common.Address, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address validator, uint256 amount) returns()
type DposInterfaceTransactor ¶
type DposInterfaceTransactor struct {
// contains filtered or unexported fields
}
DposInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDposInterfaceTransactor ¶
func NewDposInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*DposInterfaceTransactor, error)
NewDposInterfaceTransactor creates a new write-only instance of DposInterface, bound to a specific deployed contract.
func (*DposInterfaceTransactor) CancelUndelegate ¶
func (_DposInterface *DposInterfaceTransactor) CancelUndelegate(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
CancelUndelegate is a paid mutator transaction binding the contract method 0x399ff554.
Solidity: function cancelUndelegate(address validator) returns()
func (*DposInterfaceTransactor) ClaimAllRewards ¶
func (_DposInterface *DposInterfaceTransactor) ClaimAllRewards(opts *bind.TransactOpts, batch uint32) (*types.Transaction, error)
ClaimAllRewards is a paid mutator transaction binding the contract method 0x09b72e00.
Solidity: function claimAllRewards(uint32 batch) returns(bool end)
func (*DposInterfaceTransactor) ClaimCommissionRewards ¶
func (_DposInterface *DposInterfaceTransactor) ClaimCommissionRewards(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
ClaimCommissionRewards is a paid mutator transaction binding the contract method 0xd0eebfe2.
Solidity: function claimCommissionRewards(address validator) returns()
func (*DposInterfaceTransactor) ClaimRewards ¶
func (_DposInterface *DposInterfaceTransactor) ClaimRewards(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
ClaimRewards is a paid mutator transaction binding the contract method 0xef5cfb8c.
Solidity: function claimRewards(address validator) returns()
func (*DposInterfaceTransactor) ConfirmUndelegate ¶
func (_DposInterface *DposInterfaceTransactor) ConfirmUndelegate(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
ConfirmUndelegate is a paid mutator transaction binding the contract method 0x45a02561.
Solidity: function confirmUndelegate(address validator) returns()
func (*DposInterfaceTransactor) Delegate ¶
func (_DposInterface *DposInterfaceTransactor) Delegate(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.
Solidity: function delegate(address validator) payable returns()
func (*DposInterfaceTransactor) ReDelegate ¶
func (_DposInterface *DposInterfaceTransactor) ReDelegate(opts *bind.TransactOpts, validator_from common.Address, validator_to common.Address, amount *big.Int) (*types.Transaction, error)
ReDelegate is a paid mutator transaction binding the contract method 0x703812cc.
Solidity: function reDelegate(address validator_from, address validator_to, uint256 amount) returns()
func (*DposInterfaceTransactor) RegisterValidator ¶
func (_DposInterface *DposInterfaceTransactor) RegisterValidator(opts *bind.TransactOpts, validator common.Address, proof []byte, vrf_key []byte, commission uint16, description string, endpoint string) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0xd6fdc127.
Solidity: function registerValidator(address validator, bytes proof, bytes vrf_key, uint16 commission, string description, string endpoint) payable returns()
func (*DposInterfaceTransactor) SetCommission ¶
func (_DposInterface *DposInterfaceTransactor) SetCommission(opts *bind.TransactOpts, validator common.Address, commission uint16) (*types.Transaction, error)
SetCommission is a paid mutator transaction binding the contract method 0xf000322c.
Solidity: function setCommission(address validator, uint16 commission) returns()
func (*DposInterfaceTransactor) SetValidatorInfo ¶
func (_DposInterface *DposInterfaceTransactor) SetValidatorInfo(opts *bind.TransactOpts, validator common.Address, description string, endpoint string) (*types.Transaction, error)
SetValidatorInfo is a paid mutator transaction binding the contract method 0x0babea4c.
Solidity: function setValidatorInfo(address validator, string description, string endpoint) returns()
func (*DposInterfaceTransactor) Undelegate ¶
func (_DposInterface *DposInterfaceTransactor) Undelegate(opts *bind.TransactOpts, validator common.Address, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address validator, uint256 amount) returns()
type DposInterfaceTransactorRaw ¶
type DposInterfaceTransactorRaw struct {
Contract *DposInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}
DposInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DposInterfaceTransactorRaw) Transact ¶
func (_DposInterface *DposInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DposInterfaceTransactorRaw) Transfer ¶
func (_DposInterface *DposInterfaceTransactorRaw) 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 DposInterfaceTransactorSession ¶
type DposInterfaceTransactorSession struct { Contract *DposInterfaceTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DposInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DposInterfaceTransactorSession) CancelUndelegate ¶
func (_DposInterface *DposInterfaceTransactorSession) CancelUndelegate(validator common.Address) (*types.Transaction, error)
CancelUndelegate is a paid mutator transaction binding the contract method 0x399ff554.
Solidity: function cancelUndelegate(address validator) returns()
func (*DposInterfaceTransactorSession) ClaimAllRewards ¶
func (_DposInterface *DposInterfaceTransactorSession) ClaimAllRewards(batch uint32) (*types.Transaction, error)
ClaimAllRewards is a paid mutator transaction binding the contract method 0x09b72e00.
Solidity: function claimAllRewards(uint32 batch) returns(bool end)
func (*DposInterfaceTransactorSession) ClaimCommissionRewards ¶
func (_DposInterface *DposInterfaceTransactorSession) ClaimCommissionRewards(validator common.Address) (*types.Transaction, error)
ClaimCommissionRewards is a paid mutator transaction binding the contract method 0xd0eebfe2.
Solidity: function claimCommissionRewards(address validator) returns()
func (*DposInterfaceTransactorSession) ClaimRewards ¶
func (_DposInterface *DposInterfaceTransactorSession) ClaimRewards(validator common.Address) (*types.Transaction, error)
ClaimRewards is a paid mutator transaction binding the contract method 0xef5cfb8c.
Solidity: function claimRewards(address validator) returns()
func (*DposInterfaceTransactorSession) ConfirmUndelegate ¶
func (_DposInterface *DposInterfaceTransactorSession) ConfirmUndelegate(validator common.Address) (*types.Transaction, error)
ConfirmUndelegate is a paid mutator transaction binding the contract method 0x45a02561.
Solidity: function confirmUndelegate(address validator) returns()
func (*DposInterfaceTransactorSession) Delegate ¶
func (_DposInterface *DposInterfaceTransactorSession) Delegate(validator common.Address) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.
Solidity: function delegate(address validator) payable returns()
func (*DposInterfaceTransactorSession) ReDelegate ¶
func (_DposInterface *DposInterfaceTransactorSession) ReDelegate(validator_from common.Address, validator_to common.Address, amount *big.Int) (*types.Transaction, error)
ReDelegate is a paid mutator transaction binding the contract method 0x703812cc.
Solidity: function reDelegate(address validator_from, address validator_to, uint256 amount) returns()
func (*DposInterfaceTransactorSession) RegisterValidator ¶
func (_DposInterface *DposInterfaceTransactorSession) RegisterValidator(validator common.Address, proof []byte, vrf_key []byte, commission uint16, description string, endpoint string) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0xd6fdc127.
Solidity: function registerValidator(address validator, bytes proof, bytes vrf_key, uint16 commission, string description, string endpoint) payable returns()
func (*DposInterfaceTransactorSession) SetCommission ¶
func (_DposInterface *DposInterfaceTransactorSession) SetCommission(validator common.Address, commission uint16) (*types.Transaction, error)
SetCommission is a paid mutator transaction binding the contract method 0xf000322c.
Solidity: function setCommission(address validator, uint16 commission) returns()
func (*DposInterfaceTransactorSession) SetValidatorInfo ¶
func (_DposInterface *DposInterfaceTransactorSession) SetValidatorInfo(validator common.Address, description string, endpoint string) (*types.Transaction, error)
SetValidatorInfo is a paid mutator transaction binding the contract method 0x0babea4c.
Solidity: function setValidatorInfo(address validator, string description, string endpoint) returns()
func (*DposInterfaceTransactorSession) Undelegate ¶
func (_DposInterface *DposInterfaceTransactorSession) Undelegate(validator common.Address, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address validator, uint256 amount) returns()
type DposInterfaceUndelegateCanceled ¶
type DposInterfaceUndelegateCanceled struct { Delegator common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceUndelegateCanceled represents a UndelegateCanceled event raised by the DposInterface contract.
type DposInterfaceUndelegateCanceledIterator ¶
type DposInterfaceUndelegateCanceledIterator struct { Event *DposInterfaceUndelegateCanceled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceUndelegateCanceledIterator is returned from FilterUndelegateCanceled and is used to iterate over the raw logs and unpacked data for UndelegateCanceled events raised by the DposInterface contract.
func (*DposInterfaceUndelegateCanceledIterator) Close ¶
func (it *DposInterfaceUndelegateCanceledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceUndelegateCanceledIterator) Error ¶
func (it *DposInterfaceUndelegateCanceledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceUndelegateCanceledIterator) Next ¶
func (it *DposInterfaceUndelegateCanceledIterator) 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 DposInterfaceUndelegateConfirmed ¶
type DposInterfaceUndelegateConfirmed struct { Delegator common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceUndelegateConfirmed represents a UndelegateConfirmed event raised by the DposInterface contract.
type DposInterfaceUndelegateConfirmedIterator ¶
type DposInterfaceUndelegateConfirmedIterator struct { Event *DposInterfaceUndelegateConfirmed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceUndelegateConfirmedIterator is returned from FilterUndelegateConfirmed and is used to iterate over the raw logs and unpacked data for UndelegateConfirmed events raised by the DposInterface contract.
func (*DposInterfaceUndelegateConfirmedIterator) Close ¶
func (it *DposInterfaceUndelegateConfirmedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceUndelegateConfirmedIterator) Error ¶
func (it *DposInterfaceUndelegateConfirmedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceUndelegateConfirmedIterator) Next ¶
func (it *DposInterfaceUndelegateConfirmedIterator) 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 DposInterfaceUndelegated ¶
type DposInterfaceUndelegated struct { Delegator common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DposInterfaceUndelegated represents a Undelegated event raised by the DposInterface contract.
type DposInterfaceUndelegatedIterator ¶
type DposInterfaceUndelegatedIterator struct { Event *DposInterfaceUndelegated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceUndelegatedIterator is returned from FilterUndelegated and is used to iterate over the raw logs and unpacked data for Undelegated events raised by the DposInterface contract.
func (*DposInterfaceUndelegatedIterator) Close ¶
func (it *DposInterfaceUndelegatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceUndelegatedIterator) Error ¶
func (it *DposInterfaceUndelegatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceUndelegatedIterator) Next ¶
func (it *DposInterfaceUndelegatedIterator) 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 DposInterfaceUndelegationData ¶
type DposInterfaceUndelegationData struct { Stake *big.Int Block uint64 Validator common.Address ValidatorExists bool }
DposInterfaceUndelegationData is an auto generated low-level Go binding around an user-defined struct.
type DposInterfaceValidatorBasicInfo ¶
type DposInterfaceValidatorBasicInfo struct { TotalStake *big.Int CommissionReward *big.Int Commission uint16 LastCommissionChange uint64 UndelegationsCount uint16 Owner common.Address Description string Endpoint string }
DposInterfaceValidatorBasicInfo is an auto generated low-level Go binding around an user-defined struct.
type DposInterfaceValidatorData ¶
type DposInterfaceValidatorData struct { Account common.Address Info DposInterfaceValidatorBasicInfo }
DposInterfaceValidatorData is an auto generated low-level Go binding around an user-defined struct.
type DposInterfaceValidatorInfoSet ¶
type DposInterfaceValidatorInfoSet struct { Validator common.Address Raw types.Log // Blockchain specific contextual infos }
DposInterfaceValidatorInfoSet represents a ValidatorInfoSet event raised by the DposInterface contract.
type DposInterfaceValidatorInfoSetIterator ¶
type DposInterfaceValidatorInfoSetIterator struct { Event *DposInterfaceValidatorInfoSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceValidatorInfoSetIterator is returned from FilterValidatorInfoSet and is used to iterate over the raw logs and unpacked data for ValidatorInfoSet events raised by the DposInterface contract.
func (*DposInterfaceValidatorInfoSetIterator) Close ¶
func (it *DposInterfaceValidatorInfoSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceValidatorInfoSetIterator) Error ¶
func (it *DposInterfaceValidatorInfoSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceValidatorInfoSetIterator) Next ¶
func (it *DposInterfaceValidatorInfoSetIterator) 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 DposInterfaceValidatorRegistered ¶
type DposInterfaceValidatorRegistered struct { Validator common.Address Raw types.Log // Blockchain specific contextual infos }
DposInterfaceValidatorRegistered represents a ValidatorRegistered event raised by the DposInterface contract.
type DposInterfaceValidatorRegisteredIterator ¶
type DposInterfaceValidatorRegisteredIterator struct { Event *DposInterfaceValidatorRegistered // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DposInterfaceValidatorRegisteredIterator is returned from FilterValidatorRegistered and is used to iterate over the raw logs and unpacked data for ValidatorRegistered events raised by the DposInterface contract.
func (*DposInterfaceValidatorRegisteredIterator) Close ¶
func (it *DposInterfaceValidatorRegisteredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DposInterfaceValidatorRegisteredIterator) Error ¶
func (it *DposInterfaceValidatorRegisteredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DposInterfaceValidatorRegisteredIterator) Next ¶
func (it *DposInterfaceValidatorRegisteredIterator) 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.