Documentation
¶
Index ¶
- Variables
- type CosmosCoin
- type StakingModule
- type StakingModuleCaller
- type StakingModuleCallerRaw
- type StakingModuleCallerSession
- type StakingModuleFilterer
- 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 StakingModuleSession
- func (_StakingModule *StakingModuleSession) Delegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) Delegation(delegatorAddress common.Address, validatorAddress string) (struct{ ... }, error)
- func (_StakingModule *StakingModuleSession) Redelegate(validatorSrcAddress string, validatorDstAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) Undelegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleSession) WithdrawDelegatorRewards(validatorAddress string) (*types.Transaction, error)
- type StakingModuleTransactor
- func (_StakingModule *StakingModuleTransactor) Delegate(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) Redelegate(opts *bind.TransactOpts, validatorSrcAddress string, ...) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) Undelegate(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactor) WithdrawDelegatorRewards(opts *bind.TransactOpts, validatorAddress string) (*types.Transaction, error)
- type StakingModuleTransactorRaw
- type StakingModuleTransactorSession
- func (_StakingModule *StakingModuleTransactorSession) Delegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Redelegate(validatorSrcAddress string, validatorDstAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) Undelegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
- func (_StakingModule *StakingModuleTransactorSession) WithdrawDelegatorRewards(validatorAddress string) (*types.Transaction, error)
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\":\"delegate\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"delegation\",\"inputs\":[{\"name\":\"delegatorAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"validatorAddress\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"shares\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"balance\",\"type\":\"tuple\",\"internalType\":\"structCosmos.Coin\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"redelegate\",\"inputs\":[{\"name\":\"validatorSrcAddress\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"validatorDstAddress\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"undelegate\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawDelegatorRewards\",\"inputs\":[{\"name\":\"validatorAddress\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"amount\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"nonpayable\"}]",
}
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 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) Delegation ¶
func (_StakingModule *StakingModuleCaller) Delegation(opts *bind.CallOpts, delegatorAddress common.Address, validatorAddress string) (struct { Shares *big.Int Balance CosmosCoin }, error)
Delegation is a free data retrieval call binding the contract method 0x241774e6.
Solidity: function delegation(address delegatorAddress, string validatorAddress) view returns(uint256 shares, (uint256,string) balance)
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) Delegation ¶
func (_StakingModule *StakingModuleCallerSession) Delegation(delegatorAddress common.Address, validatorAddress string) (struct { Shares *big.Int Balance CosmosCoin }, error)
Delegation is a free data retrieval call binding the contract method 0x241774e6.
Solidity: function delegation(address delegatorAddress, string validatorAddress) view returns(uint256 shares, (uint256,string) balance)
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.
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 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) Delegate ¶
func (_StakingModule *StakingModuleSession) Delegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x03f24de1.
Solidity: function delegate(string validatorAddress, uint256 amount) returns(bool success)
func (*StakingModuleSession) Delegation ¶
func (_StakingModule *StakingModuleSession) Delegation(delegatorAddress common.Address, validatorAddress string) (struct { Shares *big.Int Balance CosmosCoin }, error)
Delegation is a free data retrieval call binding the contract method 0x241774e6.
Solidity: function delegation(address delegatorAddress, string validatorAddress) view returns(uint256 shares, (uint256,string) balance)
func (*StakingModuleSession) Redelegate ¶
func (_StakingModule *StakingModuleSession) Redelegate(validatorSrcAddress string, validatorDstAddress string, amount *big.Int) (*types.Transaction, error)
Redelegate is a paid mutator transaction binding the contract method 0x7dd0209d.
Solidity: function redelegate(string validatorSrcAddress, string validatorDstAddress, uint256 amount) returns(bool success)
func (*StakingModuleSession) Undelegate ¶
func (_StakingModule *StakingModuleSession) Undelegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x8dfc8897.
Solidity: function undelegate(string validatorAddress, uint256 amount) returns(bool success)
func (*StakingModuleSession) WithdrawDelegatorRewards ¶
func (_StakingModule *StakingModuleSession) WithdrawDelegatorRewards(validatorAddress string) (*types.Transaction, error)
WithdrawDelegatorRewards is a paid mutator transaction binding the contract method 0x6636125e.
Solidity: function withdrawDelegatorRewards(string validatorAddress) returns((uint256,string)[] amount)
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) Delegate ¶
func (_StakingModule *StakingModuleTransactor) Delegate(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x03f24de1.
Solidity: function delegate(string validatorAddress, uint256 amount) returns(bool success)
func (*StakingModuleTransactor) Redelegate ¶
func (_StakingModule *StakingModuleTransactor) Redelegate(opts *bind.TransactOpts, validatorSrcAddress string, validatorDstAddress string, amount *big.Int) (*types.Transaction, error)
Redelegate is a paid mutator transaction binding the contract method 0x7dd0209d.
Solidity: function redelegate(string validatorSrcAddress, string validatorDstAddress, uint256 amount) returns(bool success)
func (*StakingModuleTransactor) Undelegate ¶
func (_StakingModule *StakingModuleTransactor) Undelegate(opts *bind.TransactOpts, validatorAddress string, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x8dfc8897.
Solidity: function undelegate(string validatorAddress, uint256 amount) returns(bool success)
func (*StakingModuleTransactor) WithdrawDelegatorRewards ¶
func (_StakingModule *StakingModuleTransactor) WithdrawDelegatorRewards(opts *bind.TransactOpts, validatorAddress string) (*types.Transaction, error)
WithdrawDelegatorRewards is a paid mutator transaction binding the contract method 0x6636125e.
Solidity: function withdrawDelegatorRewards(string validatorAddress) returns((uint256,string)[] amount)
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) Delegate ¶
func (_StakingModule *StakingModuleTransactorSession) Delegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x03f24de1.
Solidity: function delegate(string validatorAddress, uint256 amount) returns(bool success)
func (*StakingModuleTransactorSession) Redelegate ¶
func (_StakingModule *StakingModuleTransactorSession) Redelegate(validatorSrcAddress string, validatorDstAddress string, amount *big.Int) (*types.Transaction, error)
Redelegate is a paid mutator transaction binding the contract method 0x7dd0209d.
Solidity: function redelegate(string validatorSrcAddress, string validatorDstAddress, uint256 amount) returns(bool success)
func (*StakingModuleTransactorSession) Undelegate ¶
func (_StakingModule *StakingModuleTransactorSession) Undelegate(validatorAddress string, amount *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x8dfc8897.
Solidity: function undelegate(string validatorAddress, uint256 amount) returns(bool success)
func (*StakingModuleTransactorSession) WithdrawDelegatorRewards ¶
func (_StakingModule *StakingModuleTransactorSession) WithdrawDelegatorRewards(validatorAddress string) (*types.Transaction, error)
WithdrawDelegatorRewards is a paid mutator transaction binding the contract method 0x6636125e.
Solidity: function withdrawDelegatorRewards(string validatorAddress) returns((uint256,string)[] amount)