Documentation ¶
Index ¶
- Constants
- Variables
- type Contract
- func (c *Contract) Abi() abi.ABI
- func (c *Contract) AddMoveStakeLog(ctx sdk.Context, stateDB vm.StateDB, staker common.Address, ...) error
- func (c *Contract) AddStakeLog(ctx sdk.Context, stateDB vm.StateDB, staker common.Address, validator string, ...) error
- func (c *Contract) AddUnstakeLog(ctx sdk.Context, stateDB vm.StateDB, staker common.Address, validator string, ...) error
- func (c *Contract) Address() common.Address
- func (c *Contract) GetAllValidators(ctx sdk.Context, method *abi.Method) ([]byte, error)
- func (c *Contract) GetShares(ctx sdk.Context, method *abi.Method, args []interface{}) ([]byte, error)
- func (c *Contract) MoveStake(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, method *abi.Method, ...) ([]byte, error)
- func (c *Contract) RequiredGas(input []byte) uint64
- func (c *Contract) Run(evm *vm.EVM, contract *vm.Contract, readOnly bool) ([]byte, error)
- func (c *Contract) Stake(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, method *abi.Method, ...) ([]byte, error)
- func (c *Contract) Unstake(ctx sdk.Context, evm *vm.EVM, contract *vm.Contract, method *abi.Method, ...) ([]byte, error)
- type IStaking
- type IStakingCaller
- type IStakingCallerRaw
- type IStakingCallerSession
- type IStakingFilterer
- func (_IStaking *IStakingFilterer) FilterMoveStake(opts *bind.FilterOpts, staker []common.Address, validatorSrc []common.Address, ...) (*IStakingMoveStakeIterator, error)
- func (_IStaking *IStakingFilterer) FilterStake(opts *bind.FilterOpts, staker []common.Address, validator []common.Address) (*IStakingStakeIterator, error)
- func (_IStaking *IStakingFilterer) FilterUnstake(opts *bind.FilterOpts, staker []common.Address, validator []common.Address) (*IStakingUnstakeIterator, error)
- func (_IStaking *IStakingFilterer) ParseMoveStake(log types.Log) (*IStakingMoveStake, error)
- func (_IStaking *IStakingFilterer) ParseStake(log types.Log) (*IStakingStake, error)
- func (_IStaking *IStakingFilterer) ParseUnstake(log types.Log) (*IStakingUnstake, error)
- func (_IStaking *IStakingFilterer) WatchMoveStake(opts *bind.WatchOpts, sink chan<- *IStakingMoveStake, staker []common.Address, ...) (event.Subscription, error)
- func (_IStaking *IStakingFilterer) WatchStake(opts *bind.WatchOpts, sink chan<- *IStakingStake, staker []common.Address, ...) (event.Subscription, error)
- func (_IStaking *IStakingFilterer) WatchUnstake(opts *bind.WatchOpts, sink chan<- *IStakingUnstake, staker []common.Address, ...) (event.Subscription, error)
- type IStakingMoveStake
- type IStakingMoveStakeIterator
- type IStakingRaw
- func (_IStaking *IStakingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IStaking *IStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IStaking *IStakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IStakingSession
- func (_IStaking *IStakingSession) GetAllValidators() ([]Validator, error)
- func (_IStaking *IStakingSession) GetShares(staker common.Address, validator string) (*big.Int, error)
- func (_IStaking *IStakingSession) MoveStake(staker common.Address, validatorSrc string, validatorDst string, ...) (*types.Transaction, error)
- func (_IStaking *IStakingSession) Stake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
- func (_IStaking *IStakingSession) Unstake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
- type IStakingStake
- type IStakingStakeIterator
- type IStakingTransactor
- func (_IStaking *IStakingTransactor) MoveStake(opts *bind.TransactOpts, staker common.Address, validatorSrc string, ...) (*types.Transaction, error)
- func (_IStaking *IStakingTransactor) Stake(opts *bind.TransactOpts, staker common.Address, validator string, ...) (*types.Transaction, error)
- func (_IStaking *IStakingTransactor) Unstake(opts *bind.TransactOpts, staker common.Address, validator string, ...) (*types.Transaction, error)
- type IStakingTransactorRaw
- type IStakingTransactorSession
- func (_IStaking *IStakingTransactorSession) MoveStake(staker common.Address, validatorSrc string, validatorDst string, ...) (*types.Transaction, error)
- func (_IStaking *IStakingTransactorSession) Stake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
- func (_IStaking *IStakingTransactorSession) Unstake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
- type IStakingUnstake
- type IStakingUnstakeIterator
- type Validator
Constants ¶
const ( StakeEventName = "Stake" UnstakeEventName = "Unstake" MoveStakeEventName = "MoveStake" )
const ( // write StakeMethodName = "stake" UnstakeMethodName = "unstake" MoveStakeMethodName = "moveStake" // read GetAllValidatorsMethodName = "getAllValidators" )
method names
Variables ¶
var ( ABI abi.ABI ContractAddress = common.HexToAddress("0x0000000000000000000000000000000000000066") GasRequiredByMethod = map[[4]byte]uint64{} ViewMethod = map[[4]byte]bool{} )
var IStakingABI = IStakingMetaData.ABI
IStakingABI is the input ABI used to generate the binding from. Deprecated: Use IStakingMetaData.ABI instead.
var IStakingMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validatorSrc\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validatorDst\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"MoveStake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Stake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Unstake\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getAllValidators\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"operatorAddress\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"consensusPubKey\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"jailed\",\"type\":\"bool\"},{\"internalType\":\"enumBondStatus\",\"name\":\"bondStatus\",\"type\":\"uint8\"}],\"internalType\":\"structValidator[]\",\"name\":\"validators\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"}],\"name\":\"getShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"validatorSrc\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"validatorDst\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"moveStake\",\"outputs\":[{\"internalType\":\"int64\",\"name\":\"completionTime\",\"type\":\"int64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"unstake\",\"outputs\":[{\"internalType\":\"int64\",\"name\":\"completionTime\",\"type\":\"int64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
IStakingMetaData contains all meta data concerning the IStaking contract.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { ptypes.BaseContract // contains filtered or unexported fields }
func NewIStakingContract ¶
func NewIStakingContract( stakingKeeper *stakingkeeper.Keeper, cdc codec.Codec, kvGasConfig storetypes.GasConfig, ) *Contract
func (*Contract) AddMoveStakeLog ¶
func (*Contract) AddStakeLog ¶
func (*Contract) AddUnstakeLog ¶
func (*Contract) GetAllValidators ¶
func (*Contract) RequiredGas ¶
RequiredGas is required to implement the PrecompiledContract interface. The gas has to be calculated deterministically based on the input.
func (*Contract) Run ¶
Run is the entrypoint of the precompiled contract, it switches over the input method, and execute them accordingly.
type IStaking ¶
type IStaking struct { IStakingCaller // Read-only binding to the contract IStakingTransactor // Write-only binding to the contract IStakingFilterer // Log filterer for contract events }
IStaking is an auto generated Go binding around an Ethereum contract.
func NewIStaking ¶
NewIStaking creates a new instance of IStaking, bound to a specific deployed contract.
type IStakingCaller ¶
type IStakingCaller struct {
// contains filtered or unexported fields
}
IStakingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIStakingCaller ¶
func NewIStakingCaller(address common.Address, caller bind.ContractCaller) (*IStakingCaller, error)
NewIStakingCaller creates a new read-only instance of IStaking, bound to a specific deployed contract.
func (*IStakingCaller) GetAllValidators ¶
func (_IStaking *IStakingCaller) GetAllValidators(opts *bind.CallOpts) ([]Validator, error)
GetAllValidators is a free data retrieval call binding the contract method 0xf3513a37.
Solidity: function getAllValidators() view returns((string,string,bool,uint8)[] validators)
func (*IStakingCaller) GetShares ¶
func (_IStaking *IStakingCaller) GetShares(opts *bind.CallOpts, staker common.Address, validator string) (*big.Int, error)
GetShares is a free data retrieval call binding the contract method 0x0d1b3daf.
Solidity: function getShares(address staker, string validator) view returns(uint256 shares)
type IStakingCallerRaw ¶
type IStakingCallerRaw struct {
Contract *IStakingCaller // Generic read-only contract binding to access the raw methods on
}
IStakingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IStakingCallerRaw) Call ¶
func (_IStaking *IStakingCallerRaw) 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 IStakingCallerSession ¶
type IStakingCallerSession struct { Contract *IStakingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IStakingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IStakingCallerSession) GetAllValidators ¶
func (_IStaking *IStakingCallerSession) GetAllValidators() ([]Validator, error)
GetAllValidators is a free data retrieval call binding the contract method 0xf3513a37.
Solidity: function getAllValidators() view returns((string,string,bool,uint8)[] validators)
func (*IStakingCallerSession) GetShares ¶
func (_IStaking *IStakingCallerSession) GetShares(staker common.Address, validator string) (*big.Int, error)
GetShares is a free data retrieval call binding the contract method 0x0d1b3daf.
Solidity: function getShares(address staker, string validator) view returns(uint256 shares)
type IStakingFilterer ¶
type IStakingFilterer struct {
// contains filtered or unexported fields
}
IStakingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIStakingFilterer ¶
func NewIStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*IStakingFilterer, error)
NewIStakingFilterer creates a new log filterer instance of IStaking, bound to a specific deployed contract.
func (*IStakingFilterer) FilterMoveStake ¶
func (_IStaking *IStakingFilterer) FilterMoveStake(opts *bind.FilterOpts, staker []common.Address, validatorSrc []common.Address, validatorDst []common.Address) (*IStakingMoveStakeIterator, error)
FilterMoveStake is a free log retrieval operation binding the contract event 0x4dda2c731d442025256e6e47fbb109592bcd8baf3cf25996ebd09f1da7ec902b.
Solidity: event MoveStake(address indexed staker, address indexed validatorSrc, address indexed validatorDst, uint256 amount)
func (*IStakingFilterer) FilterStake ¶
func (_IStaking *IStakingFilterer) FilterStake(opts *bind.FilterOpts, staker []common.Address, validator []common.Address) (*IStakingStakeIterator, error)
FilterStake is a free log retrieval operation binding the contract event 0x99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f7.
Solidity: event Stake(address indexed staker, address indexed validator, uint256 amount)
func (*IStakingFilterer) FilterUnstake ¶
func (_IStaking *IStakingFilterer) FilterUnstake(opts *bind.FilterOpts, staker []common.Address, validator []common.Address) (*IStakingUnstakeIterator, error)
FilterUnstake is a free log retrieval operation binding the contract event 0x390b1276974b9463e5d66ab10df69b6f3d7b930eb066a0e66df327edd2cc811c.
Solidity: event Unstake(address indexed staker, address indexed validator, uint256 amount)
func (*IStakingFilterer) ParseMoveStake ¶
func (_IStaking *IStakingFilterer) ParseMoveStake(log types.Log) (*IStakingMoveStake, error)
ParseMoveStake is a log parse operation binding the contract event 0x4dda2c731d442025256e6e47fbb109592bcd8baf3cf25996ebd09f1da7ec902b.
Solidity: event MoveStake(address indexed staker, address indexed validatorSrc, address indexed validatorDst, uint256 amount)
func (*IStakingFilterer) ParseStake ¶
func (_IStaking *IStakingFilterer) ParseStake(log types.Log) (*IStakingStake, error)
ParseStake is a log parse operation binding the contract event 0x99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f7.
Solidity: event Stake(address indexed staker, address indexed validator, uint256 amount)
func (*IStakingFilterer) ParseUnstake ¶
func (_IStaking *IStakingFilterer) ParseUnstake(log types.Log) (*IStakingUnstake, error)
ParseUnstake is a log parse operation binding the contract event 0x390b1276974b9463e5d66ab10df69b6f3d7b930eb066a0e66df327edd2cc811c.
Solidity: event Unstake(address indexed staker, address indexed validator, uint256 amount)
func (*IStakingFilterer) WatchMoveStake ¶
func (_IStaking *IStakingFilterer) WatchMoveStake(opts *bind.WatchOpts, sink chan<- *IStakingMoveStake, staker []common.Address, validatorSrc []common.Address, validatorDst []common.Address) (event.Subscription, error)
WatchMoveStake is a free log subscription operation binding the contract event 0x4dda2c731d442025256e6e47fbb109592bcd8baf3cf25996ebd09f1da7ec902b.
Solidity: event MoveStake(address indexed staker, address indexed validatorSrc, address indexed validatorDst, uint256 amount)
func (*IStakingFilterer) WatchStake ¶
func (_IStaking *IStakingFilterer) WatchStake(opts *bind.WatchOpts, sink chan<- *IStakingStake, staker []common.Address, validator []common.Address) (event.Subscription, error)
WatchStake is a free log subscription operation binding the contract event 0x99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f7.
Solidity: event Stake(address indexed staker, address indexed validator, uint256 amount)
func (*IStakingFilterer) WatchUnstake ¶
func (_IStaking *IStakingFilterer) WatchUnstake(opts *bind.WatchOpts, sink chan<- *IStakingUnstake, staker []common.Address, validator []common.Address) (event.Subscription, error)
WatchUnstake is a free log subscription operation binding the contract event 0x390b1276974b9463e5d66ab10df69b6f3d7b930eb066a0e66df327edd2cc811c.
Solidity: event Unstake(address indexed staker, address indexed validator, uint256 amount)
type IStakingMoveStake ¶
type IStakingMoveStake struct { Staker common.Address ValidatorSrc common.Address ValidatorDst common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
IStakingMoveStake represents a MoveStake event raised by the IStaking contract.
type IStakingMoveStakeIterator ¶
type IStakingMoveStakeIterator struct { Event *IStakingMoveStake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IStakingMoveStakeIterator is returned from FilterMoveStake and is used to iterate over the raw logs and unpacked data for MoveStake events raised by the IStaking contract.
func (*IStakingMoveStakeIterator) Close ¶
func (it *IStakingMoveStakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IStakingMoveStakeIterator) Error ¶
func (it *IStakingMoveStakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IStakingMoveStakeIterator) Next ¶
func (it *IStakingMoveStakeIterator) 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 IStakingRaw ¶
type IStakingRaw struct {
Contract *IStaking // Generic contract binding to access the raw methods on
}
IStakingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IStakingRaw) Call ¶
func (_IStaking *IStakingRaw) 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 (*IStakingRaw) Transact ¶
func (_IStaking *IStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IStakingRaw) Transfer ¶
func (_IStaking *IStakingRaw) 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 IStakingSession ¶
type IStakingSession struct { Contract *IStaking // 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 }
IStakingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IStakingSession) GetAllValidators ¶
func (_IStaking *IStakingSession) GetAllValidators() ([]Validator, error)
GetAllValidators is a free data retrieval call binding the contract method 0xf3513a37.
Solidity: function getAllValidators() view returns((string,string,bool,uint8)[] validators)
func (*IStakingSession) GetShares ¶
func (_IStaking *IStakingSession) GetShares(staker common.Address, validator string) (*big.Int, error)
GetShares is a free data retrieval call binding the contract method 0x0d1b3daf.
Solidity: function getShares(address staker, string validator) view returns(uint256 shares)
func (*IStakingSession) MoveStake ¶
func (_IStaking *IStakingSession) MoveStake(staker common.Address, validatorSrc string, validatorDst string, amount *big.Int) (*types.Transaction, error)
MoveStake is a paid mutator transaction binding the contract method 0xd11a93d0.
Solidity: function moveStake(address staker, string validatorSrc, string validatorDst, uint256 amount) returns(int64 completionTime)
func (*IStakingSession) Stake ¶
func (_IStaking *IStakingSession) Stake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x90b8436f.
Solidity: function stake(address staker, string validator, uint256 amount) returns(bool success)
func (*IStakingSession) Unstake ¶
func (_IStaking *IStakingSession) Unstake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x57c6ea3e.
Solidity: function unstake(address staker, string validator, uint256 amount) returns(int64 completionTime)
type IStakingStake ¶
type IStakingStake struct { Staker common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
IStakingStake represents a Stake event raised by the IStaking contract.
type IStakingStakeIterator ¶
type IStakingStakeIterator struct { Event *IStakingStake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IStakingStakeIterator is returned from FilterStake and is used to iterate over the raw logs and unpacked data for Stake events raised by the IStaking contract.
func (*IStakingStakeIterator) Close ¶
func (it *IStakingStakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IStakingStakeIterator) Error ¶
func (it *IStakingStakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IStakingStakeIterator) Next ¶
func (it *IStakingStakeIterator) 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 IStakingTransactor ¶
type IStakingTransactor struct {
// contains filtered or unexported fields
}
IStakingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIStakingTransactor ¶
func NewIStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*IStakingTransactor, error)
NewIStakingTransactor creates a new write-only instance of IStaking, bound to a specific deployed contract.
func (*IStakingTransactor) MoveStake ¶
func (_IStaking *IStakingTransactor) MoveStake(opts *bind.TransactOpts, staker common.Address, validatorSrc string, validatorDst string, amount *big.Int) (*types.Transaction, error)
MoveStake is a paid mutator transaction binding the contract method 0xd11a93d0.
Solidity: function moveStake(address staker, string validatorSrc, string validatorDst, uint256 amount) returns(int64 completionTime)
func (*IStakingTransactor) Stake ¶
func (_IStaking *IStakingTransactor) Stake(opts *bind.TransactOpts, staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x90b8436f.
Solidity: function stake(address staker, string validator, uint256 amount) returns(bool success)
func (*IStakingTransactor) Unstake ¶
func (_IStaking *IStakingTransactor) Unstake(opts *bind.TransactOpts, staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x57c6ea3e.
Solidity: function unstake(address staker, string validator, uint256 amount) returns(int64 completionTime)
type IStakingTransactorRaw ¶
type IStakingTransactorRaw struct {
Contract *IStakingTransactor // Generic write-only contract binding to access the raw methods on
}
IStakingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IStakingTransactorRaw) Transact ¶
func (_IStaking *IStakingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IStakingTransactorRaw) Transfer ¶
func (_IStaking *IStakingTransactorRaw) 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 IStakingTransactorSession ¶
type IStakingTransactorSession struct { Contract *IStakingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IStakingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IStakingTransactorSession) MoveStake ¶
func (_IStaking *IStakingTransactorSession) MoveStake(staker common.Address, validatorSrc string, validatorDst string, amount *big.Int) (*types.Transaction, error)
MoveStake is a paid mutator transaction binding the contract method 0xd11a93d0.
Solidity: function moveStake(address staker, string validatorSrc, string validatorDst, uint256 amount) returns(int64 completionTime)
func (*IStakingTransactorSession) Stake ¶
func (_IStaking *IStakingTransactorSession) Stake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x90b8436f.
Solidity: function stake(address staker, string validator, uint256 amount) returns(bool success)
func (*IStakingTransactorSession) Unstake ¶
func (_IStaking *IStakingTransactorSession) Unstake(staker common.Address, validator string, amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x57c6ea3e.
Solidity: function unstake(address staker, string validator, uint256 amount) returns(int64 completionTime)
type IStakingUnstake ¶
type IStakingUnstake struct { Staker common.Address Validator common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
IStakingUnstake represents a Unstake event raised by the IStaking contract.
type IStakingUnstakeIterator ¶
type IStakingUnstakeIterator struct { Event *IStakingUnstake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IStakingUnstakeIterator is returned from FilterUnstake and is used to iterate over the raw logs and unpacked data for Unstake events raised by the IStaking contract.
func (*IStakingUnstakeIterator) Close ¶
func (it *IStakingUnstakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IStakingUnstakeIterator) Error ¶
func (it *IStakingUnstakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IStakingUnstakeIterator) Next ¶
func (it *IStakingUnstakeIterator) 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.