Documentation ¶
Index ¶
- Variables
- type CosmosCoin
- type CosmosPageRequest
- type CosmosPageResponse
- type IStakingModuleCommission
- type IStakingModuleCommissionRates
- type IStakingModuleDelegation
- type IStakingModuleDescription
- type IStakingModuleRedelegationEntry
- type IStakingModuleUnbondingDelegation
- type IStakingModuleUnbondingDelegationEntry
- type IStakingModuleValidator
- type StakingModule
- type StakingModuleCaller
- func (_StakingModule *StakingModuleCaller) GetBondedValidators(opts *bind.CallOpts, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCaller) GetBondedValidatorsByPower(opts *bind.CallOpts) ([]common.Address, error)
- func (_StakingModule *StakingModuleCaller) GetDelegation(opts *bind.CallOpts, delegatorAddress common.Address, ...) (*big.Int, error)
- func (_StakingModule *StakingModuleCaller) GetDelegatorUnbondingDelegations(opts *bind.CallOpts, delegatorAddress common.Address, ...) ([]IStakingModuleUnbondingDelegation, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCaller) GetDelegatorValidators(opts *bind.CallOpts, delegatorAddress common.Address, ...) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCaller) GetRedelegations(opts *bind.CallOpts, delegatorAddress common.Address, ...) ([]IStakingModuleRedelegationEntry, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCaller) GetUnbondingDelegation(opts *bind.CallOpts, delegatorAddress common.Address, ...) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleCaller) GetValAddressFromConsAddress(opts *bind.CallOpts, consAddr []byte) (common.Address, error)
- func (_StakingModule *StakingModuleCaller) GetValidator(opts *bind.CallOpts, validatorAddress common.Address) (IStakingModuleValidator, error)
- func (_StakingModule *StakingModuleCaller) GetValidatorDelegations(opts *bind.CallOpts, validatorAddress common.Address, ...) ([]IStakingModuleDelegation, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCaller) GetValidators(opts *bind.CallOpts, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- type StakingModuleCallerRaw
- type StakingModuleCallerSession
- func (_StakingModule *StakingModuleCallerSession) GetBondedValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCallerSession) GetBondedValidatorsByPower() ([]common.Address, error)
- func (_StakingModule *StakingModuleCallerSession) GetDelegation(delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
- func (_StakingModule *StakingModuleCallerSession) GetDelegatorUnbondingDelegations(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleUnbondingDelegation, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCallerSession) GetDelegatorValidators(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCallerSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, ...) ([]IStakingModuleRedelegationEntry, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCallerSession) GetUnbondingDelegation(delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleCallerSession) GetValAddressFromConsAddress(consAddr []byte) (common.Address, error)
- func (_StakingModule *StakingModuleCallerSession) GetValidator(validatorAddress common.Address) (IStakingModuleValidator, error)
- func (_StakingModule *StakingModuleCallerSession) GetValidatorDelegations(validatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleDelegation, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleCallerSession) GetValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- type StakingModuleCancelUnbondingDelegation
- type StakingModuleCancelUnbondingDelegationIterator
- type StakingModuleCreateValidator
- type StakingModuleCreateValidatorIterator
- type StakingModuleDelegate
- type StakingModuleDelegateIterator
- type StakingModuleFilterer
- func (_StakingModule *StakingModuleFilterer) FilterCancelUnbondingDelegation(opts *bind.FilterOpts, validator []common.Address, delegator []common.Address) (*StakingModuleCancelUnbondingDelegationIterator, error)
- func (_StakingModule *StakingModuleFilterer) FilterCreateValidator(opts *bind.FilterOpts, validator []common.Address) (*StakingModuleCreateValidatorIterator, error)
- func (_StakingModule *StakingModuleFilterer) FilterDelegate(opts *bind.FilterOpts, validator []common.Address) (*StakingModuleDelegateIterator, error)
- func (_StakingModule *StakingModuleFilterer) FilterRedelegate(opts *bind.FilterOpts, sourceValidator []common.Address, ...) (*StakingModuleRedelegateIterator, error)
- func (_StakingModule *StakingModuleFilterer) FilterUnbond(opts *bind.FilterOpts, validator []common.Address) (*StakingModuleUnbondIterator, error)
- func (_StakingModule *StakingModuleFilterer) ParseCancelUnbondingDelegation(log types.Log) (*StakingModuleCancelUnbondingDelegation, error)
- func (_StakingModule *StakingModuleFilterer) ParseCreateValidator(log types.Log) (*StakingModuleCreateValidator, error)
- func (_StakingModule *StakingModuleFilterer) ParseDelegate(log types.Log) (*StakingModuleDelegate, error)
- func (_StakingModule *StakingModuleFilterer) ParseRedelegate(log types.Log) (*StakingModuleRedelegate, error)
- func (_StakingModule *StakingModuleFilterer) ParseUnbond(log types.Log) (*StakingModuleUnbond, error)
- func (_StakingModule *StakingModuleFilterer) WatchCancelUnbondingDelegation(opts *bind.WatchOpts, sink chan<- *StakingModuleCancelUnbondingDelegation, ...) (event.Subscription, error)
- func (_StakingModule *StakingModuleFilterer) WatchCreateValidator(opts *bind.WatchOpts, sink chan<- *StakingModuleCreateValidator, ...) (event.Subscription, error)
- func (_StakingModule *StakingModuleFilterer) WatchDelegate(opts *bind.WatchOpts, sink chan<- *StakingModuleDelegate, ...) (event.Subscription, error)
- func (_StakingModule *StakingModuleFilterer) WatchRedelegate(opts *bind.WatchOpts, sink chan<- *StakingModuleRedelegate, ...) (event.Subscription, error)
- func (_StakingModule *StakingModuleFilterer) WatchUnbond(opts *bind.WatchOpts, sink chan<- *StakingModuleUnbond, ...) (event.Subscription, error)
- type StakingModuleRaw
- func (_StakingModule *StakingModuleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StakingModule *StakingModuleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StakingModule *StakingModuleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakingModuleRedelegate
- type StakingModuleRedelegateIterator
- type StakingModuleSession
- func (_StakingModule *StakingModuleSession) BeginRedelegate(srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) CancelUnbondingDelegation(validatorAddress common.Address, amount *big.Int, creationHeight int64) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) Delegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) GetBondedValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleSession) GetBondedValidatorsByPower() ([]common.Address, error)
- func (_StakingModule *StakingModuleSession) GetDelegation(delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
- func (_StakingModule *StakingModuleSession) GetDelegatorUnbondingDelegations(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleUnbondingDelegation, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleSession) GetDelegatorValidators(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, ...) ([]IStakingModuleRedelegationEntry, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleSession) GetUnbondingDelegation(delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleSession) GetValAddressFromConsAddress(consAddr []byte) (common.Address, error)
- func (_StakingModule *StakingModuleSession) GetValidator(validatorAddress common.Address) (IStakingModuleValidator, error)
- func (_StakingModule *StakingModuleSession) GetValidatorDelegations(validatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleDelegation, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleSession) GetValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
- func (_StakingModule *StakingModuleSession) Undelegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- type StakingModuleTransactor
- func (_StakingModule *StakingModuleTransactor) BeginRedelegate(opts *bind.TransactOpts, srcValidator common.Address, ...) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) CancelUnbondingDelegation(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) Delegate(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) Undelegate(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- type StakingModuleTransactorRaw
- type StakingModuleTransactorSession
- func (_StakingModule *StakingModuleTransactorSession) BeginRedelegate(srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) CancelUnbondingDelegation(validatorAddress common.Address, amount *big.Int, creationHeight int64) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Delegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Undelegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- type StakingModuleUnbond
- type StakingModuleUnbondIterator
Constants ¶
This section is empty.
Variables ¶
var StakingModuleABI = StakingModuleMetaData.ABI
StakingModuleABI is the input ABI used to generate the binding from. Deprecated: Use StakingModuleMetaData.ABI instead.
var StakingModuleMetaData = &bind.MetaData{
ABI: "[{\"type\":\"function\",\"name\":\"beginRedelegate\",\"inputs\":[{\"name\":\"srcValidator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"dstValidator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"cancelUnbondingDelegation\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"creationHeight\",\"type\":\"int64\",\"internalType\":\"int64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"delegate\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"getBondedValidators\",\"inputs\":[{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.Validator[]\",\"components\":[{\"name\":\"operatorAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"consAddr\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"jailed\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"status\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"tokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"delegatorShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"description\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Description\",\"components\":[{\"name\":\"moniker\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"identity\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"website\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"securityContact\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"details\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"unbondingHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"commission\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Commission\",\"components\":[{\"name\":\"commissionRates\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.CommissionRates\",\"components\":[{\"name\":\"rate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxChangeRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"updateTime\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"minSelfDelegation\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingOnHoldRefCount\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingIds\",\"type\":\"uint64[]\",\"internalType\":\"uint64[]\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBondedValidatorsByPower\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDelegation\",\"inputs\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDelegatorUnbondingDelegations\",\"inputs\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.UnbondingDelegation[]\",\"components\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"entries\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.UnbondingDelegationEntry[]\",\"components\":[{\"name\":\"creationHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"completionTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"initialBalance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDelegatorValidators\",\"inputs\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.Validator[]\",\"components\":[{\"name\":\"operatorAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"consAddr\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"jailed\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"status\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"tokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"delegatorShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"description\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Description\",\"components\":[{\"name\":\"moniker\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"identity\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"website\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"securityContact\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"details\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"unbondingHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"commission\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Commission\",\"components\":[{\"name\":\"commissionRates\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.CommissionRates\",\"components\":[{\"name\":\"rate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxChangeRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"updateTime\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"minSelfDelegation\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingOnHoldRefCount\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingIds\",\"type\":\"uint64[]\",\"internalType\":\"uint64[]\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedelegations\",\"inputs\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"srcValidator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"dstValidator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.RedelegationEntry[]\",\"components\":[{\"name\":\"creationHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"completionTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"initialBalance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"sharesDst\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getUnbondingDelegation\",\"inputs\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.UnbondingDelegationEntry[]\",\"components\":[{\"name\":\"creationHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"completionTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"initialBalance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getValAddressFromConsAddress\",\"inputs\":[{\"name\":\"consAddr\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getValidator\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Validator\",\"components\":[{\"name\":\"operatorAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"consAddr\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"jailed\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"status\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"tokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"delegatorShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"description\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Description\",\"components\":[{\"name\":\"moniker\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"identity\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"website\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"securityContact\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"details\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"unbondingHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"commission\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Commission\",\"components\":[{\"name\":\"commissionRates\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.CommissionRates\",\"components\":[{\"name\":\"rate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxChangeRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"updateTime\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"minSelfDelegation\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingOnHoldRefCount\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingIds\",\"type\":\"uint64[]\",\"internalType\":\"uint64[]\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getValidatorDelegations\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.Delegation[]\",\"components\":[{\"name\":\"delegator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"shares\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getValidators\",\"inputs\":[{\"name\":\"pagination\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageRequest\",\"components\":[{\"name\":\"key\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"offset\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"limit\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"countTotal\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"reverse\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIStakingModule.Validator[]\",\"components\":[{\"name\":\"operatorAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"consAddr\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"jailed\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"status\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"tokens\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"delegatorShares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"description\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Description\",\"components\":[{\"name\":\"moniker\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"identity\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"website\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"securityContact\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"details\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"unbondingHeight\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingTime\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"commission\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.Commission\",\"components\":[{\"name\":\"commissionRates\",\"type\":\"tuple\",\"internalType\":\"structIStakingModule.CommissionRates\",\"components\":[{\"name\":\"rate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxChangeRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"updateTime\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"minSelfDelegation\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unbondingOnHoldRefCount\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"unbondingIds\",\"type\":\"uint64[]\",\"internalType\":\"uint64[]\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structCosmos.PageResponse\",\"components\":[{\"name\":\"nextKey\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"total\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"undelegate\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"CancelUnbondingDelegation\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"delegator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"creationHeight\",\"type\":\"int64\",\"indexed\":false,\"internalType\":\"int64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CreateValidator\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Delegate\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Redelegate\",\"inputs\":[{\"name\":\"sourceValidator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"destinationValidator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Unbond\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false}]",
}
StakingModuleMetaData contains all meta data concerning the StakingModule contract.
Functions ¶
This section is empty.
Types ¶
type CosmosCoin ¶
CosmosCoin is an auto generated low-level Go binding around an user-defined struct.
type CosmosPageRequest ¶
type CosmosPageRequest struct { Key string Offset uint64 Limit uint64 CountTotal bool Reverse bool }
CosmosPageRequest is an auto generated low-level Go binding around an user-defined struct.
type CosmosPageResponse ¶
CosmosPageResponse is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleCommission ¶
type IStakingModuleCommission struct { CommissionRates IStakingModuleCommissionRates UpdateTime string }
IStakingModuleCommission is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleCommissionRates ¶
IStakingModuleCommissionRates is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleDelegation ¶
IStakingModuleDelegation is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleDescription ¶
type IStakingModuleDescription struct { Moniker string Identity string Website string SecurityContact string Details string }
IStakingModuleDescription is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleRedelegationEntry ¶
type IStakingModuleRedelegationEntry struct { CreationHeight int64 CompletionTime string InitialBalance *big.Int UnbondingId uint64 }
IStakingModuleRedelegationEntry is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleUnbondingDelegation ¶
type IStakingModuleUnbondingDelegation struct { DelegatorAddress common.Address ValidatorAddress common.Address Entries []IStakingModuleUnbondingDelegationEntry }
IStakingModuleUnbondingDelegation is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleUnbondingDelegationEntry ¶
type IStakingModuleUnbondingDelegationEntry struct { CreationHeight int64 CompletionTime string InitialBalance *big.Int Balance *big.Int UnbondingId uint64 }
IStakingModuleUnbondingDelegationEntry is an auto generated low-level Go binding around an user-defined struct.
type IStakingModuleValidator ¶
type IStakingModuleValidator struct { OperatorAddr common.Address ConsAddr []byte Jailed bool Status string Tokens *big.Int Description IStakingModuleDescription UnbondingHeight int64 UnbondingTime string Commission IStakingModuleCommission MinSelfDelegation *big.Int UnbondingOnHoldRefCount int64 UnbondingIds []uint64 }
IStakingModuleValidator is an auto generated low-level Go binding around an user-defined struct.
type StakingModule ¶
type StakingModule struct { StakingModuleCaller // Read-only binding to the contract StakingModuleTransactor // Write-only binding to the contract StakingModuleFilterer // Log filterer for contract events }
StakingModule is an auto generated Go binding around an Ethereum contract.
func NewStakingModule ¶
func NewStakingModule(address common.Address, backend bind.ContractBackend) (*StakingModule, error)
NewStakingModule creates a new instance of StakingModule, bound to a specific deployed contract.
type StakingModuleCaller ¶
type StakingModuleCaller struct {
// contains filtered or unexported fields
}
StakingModuleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStakingModuleCaller ¶
func NewStakingModuleCaller(address common.Address, caller bind.ContractCaller) (*StakingModuleCaller, error)
NewStakingModuleCaller creates a new read-only instance of StakingModule, bound to a specific deployed contract.
func (*StakingModuleCaller) GetBondedValidators ¶
func (_StakingModule *StakingModuleCaller) GetBondedValidators(opts *bind.CallOpts, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetBondedValidators is a free data retrieval call binding the contract method 0xcf3f2340.
Solidity: function getBondedValidators((string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleCaller) GetBondedValidatorsByPower ¶
func (_StakingModule *StakingModuleCaller) GetBondedValidatorsByPower(opts *bind.CallOpts) ([]common.Address, error)
GetBondedValidatorsByPower is a free data retrieval call binding the contract method 0xdcaf464a.
Solidity: function getBondedValidatorsByPower() view returns(address[])
func (*StakingModuleCaller) GetDelegation ¶
func (_StakingModule *StakingModuleCaller) GetDelegation(opts *bind.CallOpts, delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
GetDelegation is a free data retrieval call binding the contract method 0x15049a5a.
Solidity: function getDelegation(address delegatorAddress, address validatorAddress) view returns(uint256)
func (*StakingModuleCaller) GetDelegatorUnbondingDelegations ¶
func (_StakingModule *StakingModuleCaller) GetDelegatorUnbondingDelegations(opts *bind.CallOpts, delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleUnbondingDelegation, CosmosPageResponse, error)
GetDelegatorUnbondingDelegations is a free data retrieval call binding the contract method 0xd2b3c8fe.
Solidity: function getDelegatorUnbondingDelegations(address delegatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,address,(int64,string,uint256,uint256,uint64)[])[], (string,uint64))
func (*StakingModuleCaller) GetDelegatorValidators ¶
func (_StakingModule *StakingModuleCaller) GetDelegatorValidators(opts *bind.CallOpts, delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetDelegatorValidators is a free data retrieval call binding the contract method 0xb067c623.
Solidity: function getDelegatorValidators(address delegatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleCaller) GetRedelegations ¶
func (_StakingModule *StakingModuleCaller) GetRedelegations(opts *bind.CallOpts, delegatorAddress common.Address, srcValidator common.Address, dstValidator common.Address, pagination CosmosPageRequest) ([]IStakingModuleRedelegationEntry, CosmosPageResponse, error)
GetRedelegations is a free data retrieval call binding the contract method 0x1c441040.
Solidity: function getRedelegations(address delegatorAddress, address srcValidator, address dstValidator, (string,uint64,uint64,bool,bool) pagination) view returns((int64,string,uint256,uint256,uint64)[], (string,uint64))
func (*StakingModuleCaller) GetUnbondingDelegation ¶
func (_StakingModule *StakingModuleCaller) GetUnbondingDelegation(opts *bind.CallOpts, delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
GetUnbondingDelegation is a free data retrieval call binding the contract method 0xc60b8213.
Solidity: function getUnbondingDelegation(address delegatorAddress, address validatorAddress) view returns((int64,string,uint256,uint256,uint64)[])
func (*StakingModuleCaller) GetValAddressFromConsAddress ¶
func (_StakingModule *StakingModuleCaller) GetValAddressFromConsAddress(opts *bind.CallOpts, consAddr []byte) (common.Address, error)
GetValAddressFromConsAddress is a free data retrieval call binding the contract method 0x411dee2d.
Solidity: function getValAddressFromConsAddress(bytes consAddr) pure returns(address)
func (*StakingModuleCaller) GetValidator ¶
func (_StakingModule *StakingModuleCaller) GetValidator(opts *bind.CallOpts, validatorAddress common.Address) (IStakingModuleValidator, error)
GetValidator is a free data retrieval call binding the contract method 0x1904bb2e.
Solidity: function getValidator(address validatorAddress) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[]))
func (*StakingModuleCaller) GetValidatorDelegations ¶
func (_StakingModule *StakingModuleCaller) GetValidatorDelegations(opts *bind.CallOpts, validatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleDelegation, CosmosPageResponse, error)
GetValidatorDelegations is a free data retrieval call binding the contract method 0x1f360742.
Solidity: function getValidatorDelegations(address validatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,uint256,uint256)[], (string,uint64))
func (*StakingModuleCaller) GetValidators ¶
func (_StakingModule *StakingModuleCaller) GetValidators(opts *bind.CallOpts, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetValidators is a free data retrieval call binding the contract method 0xbfc4dcd5.
Solidity: function getValidators((string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
type StakingModuleCallerRaw ¶
type StakingModuleCallerRaw struct {
Contract *StakingModuleCaller // Generic read-only contract binding to access the raw methods on
}
StakingModuleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StakingModuleCallerRaw) Call ¶
func (_StakingModule *StakingModuleCallerRaw) 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 StakingModuleCallerSession ¶
type StakingModuleCallerSession struct { Contract *StakingModuleCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StakingModuleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StakingModuleCallerSession) GetBondedValidators ¶
func (_StakingModule *StakingModuleCallerSession) GetBondedValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetBondedValidators is a free data retrieval call binding the contract method 0xcf3f2340.
Solidity: function getBondedValidators((string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleCallerSession) GetBondedValidatorsByPower ¶
func (_StakingModule *StakingModuleCallerSession) GetBondedValidatorsByPower() ([]common.Address, error)
GetBondedValidatorsByPower is a free data retrieval call binding the contract method 0xdcaf464a.
Solidity: function getBondedValidatorsByPower() view returns(address[])
func (*StakingModuleCallerSession) GetDelegation ¶
func (_StakingModule *StakingModuleCallerSession) GetDelegation(delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
GetDelegation is a free data retrieval call binding the contract method 0x15049a5a.
Solidity: function getDelegation(address delegatorAddress, address validatorAddress) view returns(uint256)
func (*StakingModuleCallerSession) GetDelegatorUnbondingDelegations ¶
func (_StakingModule *StakingModuleCallerSession) GetDelegatorUnbondingDelegations(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleUnbondingDelegation, CosmosPageResponse, error)
GetDelegatorUnbondingDelegations is a free data retrieval call binding the contract method 0xd2b3c8fe.
Solidity: function getDelegatorUnbondingDelegations(address delegatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,address,(int64,string,uint256,uint256,uint64)[])[], (string,uint64))
func (*StakingModuleCallerSession) GetDelegatorValidators ¶
func (_StakingModule *StakingModuleCallerSession) GetDelegatorValidators(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetDelegatorValidators is a free data retrieval call binding the contract method 0xb067c623.
Solidity: function getDelegatorValidators(address delegatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleCallerSession) GetRedelegations ¶
func (_StakingModule *StakingModuleCallerSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, dstValidator common.Address, pagination CosmosPageRequest) ([]IStakingModuleRedelegationEntry, CosmosPageResponse, error)
GetRedelegations is a free data retrieval call binding the contract method 0x1c441040.
Solidity: function getRedelegations(address delegatorAddress, address srcValidator, address dstValidator, (string,uint64,uint64,bool,bool) pagination) view returns((int64,string,uint256,uint256,uint64)[], (string,uint64))
func (*StakingModuleCallerSession) GetUnbondingDelegation ¶
func (_StakingModule *StakingModuleCallerSession) GetUnbondingDelegation(delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
GetUnbondingDelegation is a free data retrieval call binding the contract method 0xc60b8213.
Solidity: function getUnbondingDelegation(address delegatorAddress, address validatorAddress) view returns((int64,string,uint256,uint256,uint64)[])
func (*StakingModuleCallerSession) GetValAddressFromConsAddress ¶
func (_StakingModule *StakingModuleCallerSession) GetValAddressFromConsAddress(consAddr []byte) (common.Address, error)
GetValAddressFromConsAddress is a free data retrieval call binding the contract method 0x411dee2d.
Solidity: function getValAddressFromConsAddress(bytes consAddr) pure returns(address)
func (*StakingModuleCallerSession) GetValidator ¶
func (_StakingModule *StakingModuleCallerSession) GetValidator(validatorAddress common.Address) (IStakingModuleValidator, error)
GetValidator is a free data retrieval call binding the contract method 0x1904bb2e.
Solidity: function getValidator(address validatorAddress) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[]))
func (*StakingModuleCallerSession) GetValidatorDelegations ¶
func (_StakingModule *StakingModuleCallerSession) GetValidatorDelegations(validatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleDelegation, CosmosPageResponse, error)
GetValidatorDelegations is a free data retrieval call binding the contract method 0x1f360742.
Solidity: function getValidatorDelegations(address validatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,uint256,uint256)[], (string,uint64))
func (*StakingModuleCallerSession) GetValidators ¶
func (_StakingModule *StakingModuleCallerSession) GetValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetValidators is a free data retrieval call binding the contract method 0xbfc4dcd5.
Solidity: function getValidators((string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
type StakingModuleCancelUnbondingDelegation ¶
type StakingModuleCancelUnbondingDelegation struct { Validator common.Address Delegator common.Address Amount []CosmosCoin CreationHeight int64 Raw types.Log // Blockchain specific contextual infos }
StakingModuleCancelUnbondingDelegation represents a CancelUnbondingDelegation event raised by the StakingModule contract.
type StakingModuleCancelUnbondingDelegationIterator ¶
type StakingModuleCancelUnbondingDelegationIterator struct { Event *StakingModuleCancelUnbondingDelegation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingModuleCancelUnbondingDelegationIterator is returned from FilterCancelUnbondingDelegation and is used to iterate over the raw logs and unpacked data for CancelUnbondingDelegation events raised by the StakingModule contract.
func (*StakingModuleCancelUnbondingDelegationIterator) Close ¶
func (it *StakingModuleCancelUnbondingDelegationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingModuleCancelUnbondingDelegationIterator) Error ¶
func (it *StakingModuleCancelUnbondingDelegationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingModuleCancelUnbondingDelegationIterator) Next ¶
func (it *StakingModuleCancelUnbondingDelegationIterator) 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 StakingModuleCreateValidator ¶
type StakingModuleCreateValidator struct { Validator common.Address Amount []CosmosCoin Raw types.Log // Blockchain specific contextual infos }
StakingModuleCreateValidator represents a CreateValidator event raised by the StakingModule contract.
type StakingModuleCreateValidatorIterator ¶
type StakingModuleCreateValidatorIterator struct { Event *StakingModuleCreateValidator // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingModuleCreateValidatorIterator is returned from FilterCreateValidator and is used to iterate over the raw logs and unpacked data for CreateValidator events raised by the StakingModule contract.
func (*StakingModuleCreateValidatorIterator) Close ¶
func (it *StakingModuleCreateValidatorIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingModuleCreateValidatorIterator) Error ¶
func (it *StakingModuleCreateValidatorIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingModuleCreateValidatorIterator) Next ¶
func (it *StakingModuleCreateValidatorIterator) 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 StakingModuleDelegate ¶
type StakingModuleDelegate struct { Validator common.Address Amount []CosmosCoin Raw types.Log // Blockchain specific contextual infos }
StakingModuleDelegate represents a Delegate event raised by the StakingModule contract.
type StakingModuleDelegateIterator ¶
type StakingModuleDelegateIterator struct { Event *StakingModuleDelegate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingModuleDelegateIterator is returned from FilterDelegate and is used to iterate over the raw logs and unpacked data for Delegate events raised by the StakingModule contract.
func (*StakingModuleDelegateIterator) Close ¶
func (it *StakingModuleDelegateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingModuleDelegateIterator) Error ¶
func (it *StakingModuleDelegateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingModuleDelegateIterator) Next ¶
func (it *StakingModuleDelegateIterator) 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 StakingModuleFilterer ¶
type StakingModuleFilterer struct {
// contains filtered or unexported fields
}
StakingModuleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStakingModuleFilterer ¶
func NewStakingModuleFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingModuleFilterer, error)
NewStakingModuleFilterer creates a new log filterer instance of StakingModule, bound to a specific deployed contract.
func (*StakingModuleFilterer) FilterCancelUnbondingDelegation ¶
func (_StakingModule *StakingModuleFilterer) FilterCancelUnbondingDelegation(opts *bind.FilterOpts, validator []common.Address, delegator []common.Address) (*StakingModuleCancelUnbondingDelegationIterator, error)
FilterCancelUnbondingDelegation is a free log retrieval operation binding the contract event 0x30c2800a487f4891694e92c2748f62229fc352c93ae350a7ff63e3ab605a4aa5.
Solidity: event CancelUnbondingDelegation(address indexed validator, address indexed delegator, (uint256,string)[] amount, int64 creationHeight)
func (*StakingModuleFilterer) FilterCreateValidator ¶
func (_StakingModule *StakingModuleFilterer) FilterCreateValidator(opts *bind.FilterOpts, validator []common.Address) (*StakingModuleCreateValidatorIterator, error)
FilterCreateValidator is a free log retrieval operation binding the contract event 0x2bc39078c6a3394560520acda6eedb30ee0e6a2cf247ebf0857d3f3e11bd69e8.
Solidity: event CreateValidator(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) FilterDelegate ¶
func (_StakingModule *StakingModuleFilterer) FilterDelegate(opts *bind.FilterOpts, validator []common.Address) (*StakingModuleDelegateIterator, error)
FilterDelegate is a free log retrieval operation binding the contract event 0x86d06596b16cc784c8990ddf4c3e195fd968c238f5999435057d48c77ba49f2f.
Solidity: event Delegate(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) FilterRedelegate ¶
func (_StakingModule *StakingModuleFilterer) FilterRedelegate(opts *bind.FilterOpts, sourceValidator []common.Address, destinationValidator []common.Address) (*StakingModuleRedelegateIterator, error)
FilterRedelegate is a free log retrieval operation binding the contract event 0xe723c90c78f428142cef6e47c9395b54bab8137eaaa44f34a1edbf930114c1eb.
Solidity: event Redelegate(address indexed sourceValidator, address indexed destinationValidator, (uint256,string)[] amount)
func (*StakingModuleFilterer) FilterUnbond ¶
func (_StakingModule *StakingModuleFilterer) FilterUnbond(opts *bind.FilterOpts, validator []common.Address) (*StakingModuleUnbondIterator, error)
FilterUnbond is a free log retrieval operation binding the contract event 0x9b3dc86ff4188cb66e4fbacecb81f0fa1648e8fde176887bdfedafb075f5bb3e.
Solidity: event Unbond(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) ParseCancelUnbondingDelegation ¶
func (_StakingModule *StakingModuleFilterer) ParseCancelUnbondingDelegation(log types.Log) (*StakingModuleCancelUnbondingDelegation, error)
ParseCancelUnbondingDelegation is a log parse operation binding the contract event 0x30c2800a487f4891694e92c2748f62229fc352c93ae350a7ff63e3ab605a4aa5.
Solidity: event CancelUnbondingDelegation(address indexed validator, address indexed delegator, (uint256,string)[] amount, int64 creationHeight)
func (*StakingModuleFilterer) ParseCreateValidator ¶
func (_StakingModule *StakingModuleFilterer) ParseCreateValidator(log types.Log) (*StakingModuleCreateValidator, error)
ParseCreateValidator is a log parse operation binding the contract event 0x2bc39078c6a3394560520acda6eedb30ee0e6a2cf247ebf0857d3f3e11bd69e8.
Solidity: event CreateValidator(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) ParseDelegate ¶
func (_StakingModule *StakingModuleFilterer) ParseDelegate(log types.Log) (*StakingModuleDelegate, error)
ParseDelegate is a log parse operation binding the contract event 0x86d06596b16cc784c8990ddf4c3e195fd968c238f5999435057d48c77ba49f2f.
Solidity: event Delegate(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) ParseRedelegate ¶
func (_StakingModule *StakingModuleFilterer) ParseRedelegate(log types.Log) (*StakingModuleRedelegate, error)
ParseRedelegate is a log parse operation binding the contract event 0xe723c90c78f428142cef6e47c9395b54bab8137eaaa44f34a1edbf930114c1eb.
Solidity: event Redelegate(address indexed sourceValidator, address indexed destinationValidator, (uint256,string)[] amount)
func (*StakingModuleFilterer) ParseUnbond ¶
func (_StakingModule *StakingModuleFilterer) ParseUnbond(log types.Log) (*StakingModuleUnbond, error)
ParseUnbond is a log parse operation binding the contract event 0x9b3dc86ff4188cb66e4fbacecb81f0fa1648e8fde176887bdfedafb075f5bb3e.
Solidity: event Unbond(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) WatchCancelUnbondingDelegation ¶
func (_StakingModule *StakingModuleFilterer) WatchCancelUnbondingDelegation(opts *bind.WatchOpts, sink chan<- *StakingModuleCancelUnbondingDelegation, validator []common.Address, delegator []common.Address) (event.Subscription, error)
WatchCancelUnbondingDelegation is a free log subscription operation binding the contract event 0x30c2800a487f4891694e92c2748f62229fc352c93ae350a7ff63e3ab605a4aa5.
Solidity: event CancelUnbondingDelegation(address indexed validator, address indexed delegator, (uint256,string)[] amount, int64 creationHeight)
func (*StakingModuleFilterer) WatchCreateValidator ¶
func (_StakingModule *StakingModuleFilterer) WatchCreateValidator(opts *bind.WatchOpts, sink chan<- *StakingModuleCreateValidator, validator []common.Address) (event.Subscription, error)
WatchCreateValidator is a free log subscription operation binding the contract event 0x2bc39078c6a3394560520acda6eedb30ee0e6a2cf247ebf0857d3f3e11bd69e8.
Solidity: event CreateValidator(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) WatchDelegate ¶
func (_StakingModule *StakingModuleFilterer) WatchDelegate(opts *bind.WatchOpts, sink chan<- *StakingModuleDelegate, validator []common.Address) (event.Subscription, error)
WatchDelegate is a free log subscription operation binding the contract event 0x86d06596b16cc784c8990ddf4c3e195fd968c238f5999435057d48c77ba49f2f.
Solidity: event Delegate(address indexed validator, (uint256,string)[] amount)
func (*StakingModuleFilterer) WatchRedelegate ¶
func (_StakingModule *StakingModuleFilterer) WatchRedelegate(opts *bind.WatchOpts, sink chan<- *StakingModuleRedelegate, sourceValidator []common.Address, destinationValidator []common.Address) (event.Subscription, error)
WatchRedelegate is a free log subscription operation binding the contract event 0xe723c90c78f428142cef6e47c9395b54bab8137eaaa44f34a1edbf930114c1eb.
Solidity: event Redelegate(address indexed sourceValidator, address indexed destinationValidator, (uint256,string)[] amount)
func (*StakingModuleFilterer) WatchUnbond ¶
func (_StakingModule *StakingModuleFilterer) WatchUnbond(opts *bind.WatchOpts, sink chan<- *StakingModuleUnbond, validator []common.Address) (event.Subscription, error)
WatchUnbond is a free log subscription operation binding the contract event 0x9b3dc86ff4188cb66e4fbacecb81f0fa1648e8fde176887bdfedafb075f5bb3e.
Solidity: event Unbond(address indexed validator, (uint256,string)[] amount)
type StakingModuleRaw ¶
type StakingModuleRaw struct {
Contract *StakingModule // Generic contract binding to access the raw methods on
}
StakingModuleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StakingModuleRaw) Call ¶
func (_StakingModule *StakingModuleRaw) 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 (*StakingModuleRaw) Transact ¶
func (_StakingModule *StakingModuleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakingModuleRaw) Transfer ¶
func (_StakingModule *StakingModuleRaw) 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 StakingModuleRedelegate ¶
type StakingModuleRedelegate struct { SourceValidator common.Address DestinationValidator common.Address Amount []CosmosCoin Raw types.Log // Blockchain specific contextual infos }
StakingModuleRedelegate represents a Redelegate event raised by the StakingModule contract.
type StakingModuleRedelegateIterator ¶
type StakingModuleRedelegateIterator struct { Event *StakingModuleRedelegate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingModuleRedelegateIterator is returned from FilterRedelegate and is used to iterate over the raw logs and unpacked data for Redelegate events raised by the StakingModule contract.
func (*StakingModuleRedelegateIterator) Close ¶
func (it *StakingModuleRedelegateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingModuleRedelegateIterator) Error ¶
func (it *StakingModuleRedelegateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingModuleRedelegateIterator) Next ¶
func (it *StakingModuleRedelegateIterator) 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 StakingModuleSession ¶
type StakingModuleSession struct { Contract *StakingModule // 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 }
StakingModuleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StakingModuleSession) BeginRedelegate ¶
func (_StakingModule *StakingModuleSession) BeginRedelegate(srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
BeginRedelegate is a paid mutator transaction binding the contract method 0xb3a8ae3b.
Solidity: function beginRedelegate(address srcValidator, address dstValidator, uint256 amount) payable returns(bool)
func (*StakingModuleSession) CancelUnbondingDelegation ¶
func (_StakingModule *StakingModuleSession) CancelUnbondingDelegation(validatorAddress common.Address, amount *big.Int, creationHeight int64) (*types.Transaction, error)
CancelUnbondingDelegation is a paid mutator transaction binding the contract method 0x69a2f536.
Solidity: function cancelUnbondingDelegation(address validatorAddress, uint256 amount, int64 creationHeight) payable returns(bool)
func (*StakingModuleSession) Delegate ¶
func (_StakingModule *StakingModuleSession) Delegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x026e402b.
Solidity: function delegate(address validatorAddress, uint256 amount) payable returns(bool)
func (*StakingModuleSession) GetBondedValidators ¶
func (_StakingModule *StakingModuleSession) GetBondedValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetBondedValidators is a free data retrieval call binding the contract method 0xcf3f2340.
Solidity: function getBondedValidators((string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleSession) GetBondedValidatorsByPower ¶
func (_StakingModule *StakingModuleSession) GetBondedValidatorsByPower() ([]common.Address, error)
GetBondedValidatorsByPower is a free data retrieval call binding the contract method 0xdcaf464a.
Solidity: function getBondedValidatorsByPower() view returns(address[])
func (*StakingModuleSession) GetDelegation ¶
func (_StakingModule *StakingModuleSession) GetDelegation(delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
GetDelegation is a free data retrieval call binding the contract method 0x15049a5a.
Solidity: function getDelegation(address delegatorAddress, address validatorAddress) view returns(uint256)
func (*StakingModuleSession) GetDelegatorUnbondingDelegations ¶
func (_StakingModule *StakingModuleSession) GetDelegatorUnbondingDelegations(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleUnbondingDelegation, CosmosPageResponse, error)
GetDelegatorUnbondingDelegations is a free data retrieval call binding the contract method 0xd2b3c8fe.
Solidity: function getDelegatorUnbondingDelegations(address delegatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,address,(int64,string,uint256,uint256,uint64)[])[], (string,uint64))
func (*StakingModuleSession) GetDelegatorValidators ¶
func (_StakingModule *StakingModuleSession) GetDelegatorValidators(delegatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetDelegatorValidators is a free data retrieval call binding the contract method 0xb067c623.
Solidity: function getDelegatorValidators(address delegatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleSession) GetRedelegations ¶
func (_StakingModule *StakingModuleSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, dstValidator common.Address, pagination CosmosPageRequest) ([]IStakingModuleRedelegationEntry, CosmosPageResponse, error)
GetRedelegations is a free data retrieval call binding the contract method 0x1c441040.
Solidity: function getRedelegations(address delegatorAddress, address srcValidator, address dstValidator, (string,uint64,uint64,bool,bool) pagination) view returns((int64,string,uint256,uint256,uint64)[], (string,uint64))
func (*StakingModuleSession) GetUnbondingDelegation ¶
func (_StakingModule *StakingModuleSession) GetUnbondingDelegation(delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
GetUnbondingDelegation is a free data retrieval call binding the contract method 0xc60b8213.
Solidity: function getUnbondingDelegation(address delegatorAddress, address validatorAddress) view returns((int64,string,uint256,uint256,uint64)[])
func (*StakingModuleSession) GetValAddressFromConsAddress ¶
func (_StakingModule *StakingModuleSession) GetValAddressFromConsAddress(consAddr []byte) (common.Address, error)
GetValAddressFromConsAddress is a free data retrieval call binding the contract method 0x411dee2d.
Solidity: function getValAddressFromConsAddress(bytes consAddr) pure returns(address)
func (*StakingModuleSession) GetValidator ¶
func (_StakingModule *StakingModuleSession) GetValidator(validatorAddress common.Address) (IStakingModuleValidator, error)
GetValidator is a free data retrieval call binding the contract method 0x1904bb2e.
Solidity: function getValidator(address validatorAddress) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[]))
func (*StakingModuleSession) GetValidatorDelegations ¶
func (_StakingModule *StakingModuleSession) GetValidatorDelegations(validatorAddress common.Address, pagination CosmosPageRequest) ([]IStakingModuleDelegation, CosmosPageResponse, error)
GetValidatorDelegations is a free data retrieval call binding the contract method 0x1f360742.
Solidity: function getValidatorDelegations(address validatorAddress, (string,uint64,uint64,bool,bool) pagination) view returns((address,uint256,uint256)[], (string,uint64))
func (*StakingModuleSession) GetValidators ¶
func (_StakingModule *StakingModuleSession) GetValidators(pagination CosmosPageRequest) ([]IStakingModuleValidator, CosmosPageResponse, error)
GetValidators is a free data retrieval call binding the contract method 0xbfc4dcd5.
Solidity: function getValidators((string,uint64,uint64,bool,bool) pagination) view returns((address,bytes,bool,string,uint256,uint256,(string,string,string,string,string),int64,string,((uint256,uint256,uint256),string),uint256,int64,uint64[])[], (string,uint64))
func (*StakingModuleSession) Undelegate ¶
func (_StakingModule *StakingModuleSession) Undelegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address validatorAddress, uint256 amount) payable returns(bool)
type StakingModuleTransactor ¶
type StakingModuleTransactor struct {
// contains filtered or unexported fields
}
StakingModuleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStakingModuleTransactor ¶
func NewStakingModuleTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingModuleTransactor, error)
NewStakingModuleTransactor creates a new write-only instance of StakingModule, bound to a specific deployed contract.
func (*StakingModuleTransactor) BeginRedelegate ¶
func (_StakingModule *StakingModuleTransactor) BeginRedelegate(opts *bind.TransactOpts, srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
BeginRedelegate is a paid mutator transaction binding the contract method 0xb3a8ae3b.
Solidity: function beginRedelegate(address srcValidator, address dstValidator, uint256 amount) payable returns(bool)
func (*StakingModuleTransactor) CancelUnbondingDelegation ¶
func (_StakingModule *StakingModuleTransactor) CancelUnbondingDelegation(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int, creationHeight int64) (*types.Transaction, error)
CancelUnbondingDelegation is a paid mutator transaction binding the contract method 0x69a2f536.
Solidity: function cancelUnbondingDelegation(address validatorAddress, uint256 amount, int64 creationHeight) payable returns(bool)
func (*StakingModuleTransactor) Delegate ¶
func (_StakingModule *StakingModuleTransactor) Delegate(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x026e402b.
Solidity: function delegate(address validatorAddress, uint256 amount) payable returns(bool)
func (*StakingModuleTransactor) Undelegate ¶
func (_StakingModule *StakingModuleTransactor) Undelegate(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address validatorAddress, uint256 amount) payable returns(bool)
type StakingModuleTransactorRaw ¶
type StakingModuleTransactorRaw struct {
Contract *StakingModuleTransactor // Generic write-only contract binding to access the raw methods on
}
StakingModuleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StakingModuleTransactorRaw) Transact ¶
func (_StakingModule *StakingModuleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakingModuleTransactorRaw) Transfer ¶
func (_StakingModule *StakingModuleTransactorRaw) 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 StakingModuleTransactorSession ¶
type StakingModuleTransactorSession struct { Contract *StakingModuleTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StakingModuleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StakingModuleTransactorSession) BeginRedelegate ¶
func (_StakingModule *StakingModuleTransactorSession) BeginRedelegate(srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
BeginRedelegate is a paid mutator transaction binding the contract method 0xb3a8ae3b.
Solidity: function beginRedelegate(address srcValidator, address dstValidator, uint256 amount) payable returns(bool)
func (*StakingModuleTransactorSession) CancelUnbondingDelegation ¶
func (_StakingModule *StakingModuleTransactorSession) CancelUnbondingDelegation(validatorAddress common.Address, amount *big.Int, creationHeight int64) (*types.Transaction, error)
CancelUnbondingDelegation is a paid mutator transaction binding the contract method 0x69a2f536.
Solidity: function cancelUnbondingDelegation(address validatorAddress, uint256 amount, int64 creationHeight) payable returns(bool)
func (*StakingModuleTransactorSession) Delegate ¶
func (_StakingModule *StakingModuleTransactorSession) Delegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x026e402b.
Solidity: function delegate(address validatorAddress, uint256 amount) payable returns(bool)
func (*StakingModuleTransactorSession) Undelegate ¶
func (_StakingModule *StakingModuleTransactorSession) Undelegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address validatorAddress, uint256 amount) payable returns(bool)
type StakingModuleUnbond ¶
type StakingModuleUnbond struct { Validator common.Address Amount []CosmosCoin Raw types.Log // Blockchain specific contextual infos }
StakingModuleUnbond represents a Unbond event raised by the StakingModule contract.
type StakingModuleUnbondIterator ¶
type StakingModuleUnbondIterator struct { Event *StakingModuleUnbond // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingModuleUnbondIterator is returned from FilterUnbond and is used to iterate over the raw logs and unpacked data for Unbond events raised by the StakingModule contract.
func (*StakingModuleUnbondIterator) Close ¶
func (it *StakingModuleUnbondIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingModuleUnbondIterator) Error ¶
func (it *StakingModuleUnbondIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingModuleUnbondIterator) Next ¶
func (it *StakingModuleUnbondIterator) 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.