Documentation
¶
Index ¶
- Variables
- type CosmosCoin
- type IStakingModuleRedelegationEntry
- type IStakingModuleUnbondingDelegationEntry
- type StakingModule
- type StakingModuleCaller
- func (_StakingModule *StakingModuleCaller) GetActiveValidators(opts *bind.CallOpts) ([]common.Address, error)
- func (_StakingModule *StakingModuleCaller) GetDelegation(opts *bind.CallOpts, delegatorAddress common.Address, ...) (*big.Int, error)
- func (_StakingModule *StakingModuleCaller) GetDelegation0(opts *bind.CallOpts, delegatorAddress string, validatorAddress string) (*big.Int, error)
- func (_StakingModule *StakingModuleCaller) GetRedelegations(opts *bind.CallOpts, delegatorAddress common.Address, ...) ([]IStakingModuleRedelegationEntry, error)
- func (_StakingModule *StakingModuleCaller) GetRedelegations0(opts *bind.CallOpts, delegatorAddress string, srcValidator string, ...) ([]IStakingModuleRedelegationEntry, error)
- func (_StakingModule *StakingModuleCaller) GetUnbondingDelegation(opts *bind.CallOpts, delegatorAddress common.Address, ...) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleCaller) GetUnbondingDelegation0(opts *bind.CallOpts, delegatorAddress string, validatorAddress string) ([]IStakingModuleUnbondingDelegationEntry, error)
- type StakingModuleCallerRaw
- type StakingModuleCallerSession
- func (_StakingModule *StakingModuleCallerSession) GetActiveValidators() ([]common.Address, error)
- func (_StakingModule *StakingModuleCallerSession) GetDelegation(delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
- func (_StakingModule *StakingModuleCallerSession) GetDelegation0(delegatorAddress string, validatorAddress string) (*big.Int, error)
- func (_StakingModule *StakingModuleCallerSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, ...) ([]IStakingModuleRedelegationEntry, error)
- func (_StakingModule *StakingModuleCallerSession) GetRedelegations0(delegatorAddress string, srcValidator string, dstValidator string) ([]IStakingModuleRedelegationEntry, error)
- func (_StakingModule *StakingModuleCallerSession) GetUnbondingDelegation(delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleCallerSession) GetUnbondingDelegation0(delegatorAddress string, validatorAddress string) ([]IStakingModuleUnbondingDelegationEntry, 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 string, dstValidator string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) BeginRedelegate0(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) CancelUnbondingDelegation0(validatorAddress string, amount *big.Int, creationHeight int64) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) Delegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) Delegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) GetActiveValidators() ([]common.Address, error)
- func (_StakingModule *StakingModuleSession) GetDelegation(delegatorAddress common.Address, validatorAddress common.Address) (*big.Int, error)
- func (_StakingModule *StakingModuleSession) GetDelegation0(delegatorAddress string, validatorAddress string) (*big.Int, error)
- func (_StakingModule *StakingModuleSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, ...) ([]IStakingModuleRedelegationEntry, error)
- func (_StakingModule *StakingModuleSession) GetRedelegations0(delegatorAddress string, srcValidator string, dstValidator string) ([]IStakingModuleRedelegationEntry, error)
- func (_StakingModule *StakingModuleSession) GetUnbondingDelegation(delegatorAddress common.Address, validatorAddress common.Address) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleSession) GetUnbondingDelegation0(delegatorAddress string, validatorAddress string) ([]IStakingModuleUnbondingDelegationEntry, error)
- func (_StakingModule *StakingModuleSession) Undelegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) Undelegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- type StakingModuleTransactor
- func (_StakingModule *StakingModuleTransactor) BeginRedelegate(opts *bind.TransactOpts, srcValidator string, dstValidator string, ...) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) BeginRedelegate0(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) CancelUnbondingDelegation0(opts *bind.TransactOpts, validatorAddress string, 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) Delegate0(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) Undelegate(opts *bind.TransactOpts, validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) Undelegate0(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
- type StakingModuleTransactorRaw
- type StakingModuleTransactorSession
- func (_StakingModule *StakingModuleTransactorSession) BeginRedelegate(srcValidator string, dstValidator string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) BeginRedelegate0(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) CancelUnbondingDelegation0(validatorAddress string, amount *big.Int, creationHeight int64) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Delegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Delegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Undelegate(validatorAddress common.Address, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Undelegate0(validatorAddress string, 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: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"},{\"indexed\":false,\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"}],\"name\":\"CancelUnbondingDelegation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"CreateValidator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Delegate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sourceValidator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destinationValidator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Redelegate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Unbond\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"srcValidator\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"dstValidator\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"beginRedelegate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"srcValidator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstValidator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"beginRedelegate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"}],\"name\":\"cancelUnbondingDelegation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validatorAddress\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"}],\"name\":\"cancelUnbondingDelegation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"delegate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validatorAddress\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"delegate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getActiveValidators\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegatorAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"}],\"name\":\"getDelegation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"delegatorAddress\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"validatorAddress\",\"type\":\"string\"}],\"name\":\"getDelegation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegatorAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcValidator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstValidator\",\"type\":\"address\"}],\"name\":\"getRedelegations\",\"outputs\":[{\"components\":[{\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"},{\"internalType\":\"string\",\"name\":\"completionTime\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"initialBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sharesDst\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"unbondingId\",\"type\":\"uint64\"}],\"internalType\":\"structIStakingModule.RedelegationEntry[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"delegatorAddress\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"srcValidator\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"dstValidator\",\"type\":\"string\"}],\"name\":\"getRedelegations\",\"outputs\":[{\"components\":[{\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"},{\"internalType\":\"string\",\"name\":\"completionTime\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"initialBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sharesDst\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"unbondingId\",\"type\":\"uint64\"}],\"internalType\":\"structIStakingModule.RedelegationEntry[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegatorAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"}],\"name\":\"getUnbondingDelegation\",\"outputs\":[{\"components\":[{\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"},{\"internalType\":\"string\",\"name\":\"completionTime\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"initialBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"unbondingId\",\"type\":\"uint64\"}],\"internalType\":\"structIStakingModule.UnbondingDelegationEntry[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"delegatorAddress\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"validatorAddress\",\"type\":\"string\"}],\"name\":\"getUnbondingDelegation\",\"outputs\":[{\"components\":[{\"internalType\":\"int64\",\"name\":\"creationHeight\",\"type\":\"int64\"},{\"internalType\":\"string\",\"name\":\"completionTime\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"initialBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"unbondingId\",\"type\":\"uint64\"}],\"internalType\":\"structIStakingModule.UnbondingDelegationEntry[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"undelegate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validatorAddress\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"undelegate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}
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 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 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 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) GetActiveValidators ¶
func (_StakingModule *StakingModuleCaller) GetActiveValidators(opts *bind.CallOpts) ([]common.Address, error)
GetActiveValidators is a free data retrieval call binding the contract method 0x9de70258.
Solidity: function getActiveValidators() 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) GetDelegation0 ¶
func (_StakingModule *StakingModuleCaller) GetDelegation0(opts *bind.CallOpts, delegatorAddress string, validatorAddress string) (*big.Int, error)
GetDelegation0 is a free data retrieval call binding the contract method 0x1ef238d4.
Solidity: function getDelegation(string delegatorAddress, string validatorAddress) view returns(uint256)
func (*StakingModuleCaller) GetRedelegations ¶
func (_StakingModule *StakingModuleCaller) GetRedelegations(opts *bind.CallOpts, delegatorAddress common.Address, srcValidator common.Address, dstValidator common.Address) ([]IStakingModuleRedelegationEntry, error)
GetRedelegations is a free data retrieval call binding the contract method 0x2c02d2fd.
Solidity: function getRedelegations(address delegatorAddress, address srcValidator, address dstValidator) view returns((int64,string,uint256,uint256,uint64)[])
func (*StakingModuleCaller) GetRedelegations0 ¶
func (_StakingModule *StakingModuleCaller) GetRedelegations0(opts *bind.CallOpts, delegatorAddress string, srcValidator string, dstValidator string) ([]IStakingModuleRedelegationEntry, error)
GetRedelegations0 is a free data retrieval call binding the contract method 0xa4a4d73a.
Solidity: function getRedelegations(string delegatorAddress, string srcValidator, string dstValidator) view returns((int64,string,uint256,uint256,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) GetUnbondingDelegation0 ¶
func (_StakingModule *StakingModuleCaller) GetUnbondingDelegation0(opts *bind.CallOpts, delegatorAddress string, validatorAddress string) ([]IStakingModuleUnbondingDelegationEntry, error)
GetUnbondingDelegation0 is a free data retrieval call binding the contract method 0xcc51d427.
Solidity: function getUnbondingDelegation(string delegatorAddress, string validatorAddress) view returns((int64,string,uint256,uint256,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) GetActiveValidators ¶
func (_StakingModule *StakingModuleCallerSession) GetActiveValidators() ([]common.Address, error)
GetActiveValidators is a free data retrieval call binding the contract method 0x9de70258.
Solidity: function getActiveValidators() 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) GetDelegation0 ¶
func (_StakingModule *StakingModuleCallerSession) GetDelegation0(delegatorAddress string, validatorAddress string) (*big.Int, error)
GetDelegation0 is a free data retrieval call binding the contract method 0x1ef238d4.
Solidity: function getDelegation(string delegatorAddress, string validatorAddress) view returns(uint256)
func (*StakingModuleCallerSession) GetRedelegations ¶
func (_StakingModule *StakingModuleCallerSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, dstValidator common.Address) ([]IStakingModuleRedelegationEntry, error)
GetRedelegations is a free data retrieval call binding the contract method 0x2c02d2fd.
Solidity: function getRedelegations(address delegatorAddress, address srcValidator, address dstValidator) view returns((int64,string,uint256,uint256,uint64)[])
func (*StakingModuleCallerSession) GetRedelegations0 ¶
func (_StakingModule *StakingModuleCallerSession) GetRedelegations0(delegatorAddress string, srcValidator string, dstValidator string) ([]IStakingModuleRedelegationEntry, error)
GetRedelegations0 is a free data retrieval call binding the contract method 0xa4a4d73a.
Solidity: function getRedelegations(string delegatorAddress, string srcValidator, string dstValidator) view returns((int64,string,uint256,uint256,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) GetUnbondingDelegation0 ¶
func (_StakingModule *StakingModuleCallerSession) GetUnbondingDelegation0(delegatorAddress string, validatorAddress string) ([]IStakingModuleUnbondingDelegationEntry, error)
GetUnbondingDelegation0 is a free data retrieval call binding the contract method 0xcc51d427.
Solidity: function getUnbondingDelegation(string delegatorAddress, string validatorAddress) view returns((int64,string,uint256,uint256,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 string, dstValidator string, amount *big.Int) (*types.Transaction, error)
BeginRedelegate is a paid mutator transaction binding the contract method 0x2e436cf2.
Solidity: function beginRedelegate(string srcValidator, string dstValidator, uint256 amount) payable returns(bool)
func (*StakingModuleSession) BeginRedelegate0 ¶
func (_StakingModule *StakingModuleSession) BeginRedelegate0(srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
BeginRedelegate0 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) CancelUnbondingDelegation0 ¶
func (_StakingModule *StakingModuleSession) CancelUnbondingDelegation0(validatorAddress string, amount *big.Int, creationHeight int64) (*types.Transaction, error)
CancelUnbondingDelegation0 is a paid mutator transaction binding the contract method 0xab0341d3.
Solidity: function cancelUnbondingDelegation(string 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) Delegate0 ¶
func (_StakingModule *StakingModuleSession) Delegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Delegate0 is a paid mutator transaction binding the contract method 0x03f24de1.
Solidity: function delegate(string validatorAddress, uint256 amount) payable returns(bool)
func (*StakingModuleSession) GetActiveValidators ¶
func (_StakingModule *StakingModuleSession) GetActiveValidators() ([]common.Address, error)
GetActiveValidators is a free data retrieval call binding the contract method 0x9de70258.
Solidity: function getActiveValidators() 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) GetDelegation0 ¶
func (_StakingModule *StakingModuleSession) GetDelegation0(delegatorAddress string, validatorAddress string) (*big.Int, error)
GetDelegation0 is a free data retrieval call binding the contract method 0x1ef238d4.
Solidity: function getDelegation(string delegatorAddress, string validatorAddress) view returns(uint256)
func (*StakingModuleSession) GetRedelegations ¶
func (_StakingModule *StakingModuleSession) GetRedelegations(delegatorAddress common.Address, srcValidator common.Address, dstValidator common.Address) ([]IStakingModuleRedelegationEntry, error)
GetRedelegations is a free data retrieval call binding the contract method 0x2c02d2fd.
Solidity: function getRedelegations(address delegatorAddress, address srcValidator, address dstValidator) view returns((int64,string,uint256,uint256,uint64)[])
func (*StakingModuleSession) GetRedelegations0 ¶
func (_StakingModule *StakingModuleSession) GetRedelegations0(delegatorAddress string, srcValidator string, dstValidator string) ([]IStakingModuleRedelegationEntry, error)
GetRedelegations0 is a free data retrieval call binding the contract method 0xa4a4d73a.
Solidity: function getRedelegations(string delegatorAddress, string srcValidator, string dstValidator) view returns((int64,string,uint256,uint256,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) GetUnbondingDelegation0 ¶
func (_StakingModule *StakingModuleSession) GetUnbondingDelegation0(delegatorAddress string, validatorAddress string) ([]IStakingModuleUnbondingDelegationEntry, error)
GetUnbondingDelegation0 is a free data retrieval call binding the contract method 0xcc51d427.
Solidity: function getUnbondingDelegation(string delegatorAddress, string validatorAddress) view returns((int64,string,uint256,uint256,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)
func (*StakingModuleSession) Undelegate0 ¶
func (_StakingModule *StakingModuleSession) Undelegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Undelegate0 is a paid mutator transaction binding the contract method 0x8dfc8897.
Solidity: function undelegate(string 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 string, dstValidator string, amount *big.Int) (*types.Transaction, error)
BeginRedelegate is a paid mutator transaction binding the contract method 0x2e436cf2.
Solidity: function beginRedelegate(string srcValidator, string dstValidator, uint256 amount) payable returns(bool)
func (*StakingModuleTransactor) BeginRedelegate0 ¶
func (_StakingModule *StakingModuleTransactor) BeginRedelegate0(opts *bind.TransactOpts, srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
BeginRedelegate0 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) CancelUnbondingDelegation0 ¶
func (_StakingModule *StakingModuleTransactor) CancelUnbondingDelegation0(opts *bind.TransactOpts, validatorAddress string, amount *big.Int, creationHeight int64) (*types.Transaction, error)
CancelUnbondingDelegation0 is a paid mutator transaction binding the contract method 0xab0341d3.
Solidity: function cancelUnbondingDelegation(string 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) Delegate0 ¶
func (_StakingModule *StakingModuleTransactor) Delegate0(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
Delegate0 is a paid mutator transaction binding the contract method 0x03f24de1.
Solidity: function delegate(string 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)
func (*StakingModuleTransactor) Undelegate0 ¶
func (_StakingModule *StakingModuleTransactor) Undelegate0(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
Undelegate0 is a paid mutator transaction binding the contract method 0x8dfc8897.
Solidity: function undelegate(string 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 string, dstValidator string, amount *big.Int) (*types.Transaction, error)
BeginRedelegate is a paid mutator transaction binding the contract method 0x2e436cf2.
Solidity: function beginRedelegate(string srcValidator, string dstValidator, uint256 amount) payable returns(bool)
func (*StakingModuleTransactorSession) BeginRedelegate0 ¶
func (_StakingModule *StakingModuleTransactorSession) BeginRedelegate0(srcValidator common.Address, dstValidator common.Address, amount *big.Int) (*types.Transaction, error)
BeginRedelegate0 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) CancelUnbondingDelegation0 ¶
func (_StakingModule *StakingModuleTransactorSession) CancelUnbondingDelegation0(validatorAddress string, amount *big.Int, creationHeight int64) (*types.Transaction, error)
CancelUnbondingDelegation0 is a paid mutator transaction binding the contract method 0xab0341d3.
Solidity: function cancelUnbondingDelegation(string 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) Delegate0 ¶
func (_StakingModule *StakingModuleTransactorSession) Delegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Delegate0 is a paid mutator transaction binding the contract method 0x03f24de1.
Solidity: function delegate(string 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)
func (*StakingModuleTransactorSession) Undelegate0 ¶
func (_StakingModule *StakingModuleTransactorSession) Undelegate0(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Undelegate0 is a paid mutator transaction binding the contract method 0x8dfc8897.
Solidity: function undelegate(string 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.