Documentation ¶
Index ¶
- Variables
- type StakePortalRate
- type StakePortalRateCaller
- func (_StakePortalRate *StakePortalRateCaller) GetRate(opts *bind.CallOpts) (*big.Int, error)
- func (_StakePortalRate *StakePortalRateCaller) GetSubAccountIndex(opts *bind.CallOpts, _subAccount common.Address) (*big.Int, error)
- func (_StakePortalRate *StakePortalRateCaller) HasVoted(opts *bind.CallOpts, _proposalId [32]byte, _subAccount common.Address) (bool, error)
- func (_StakePortalRate *StakePortalRateCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_StakePortalRate *StakePortalRateCaller) Proposals(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_StakePortalRate *StakePortalRateCaller) RateChangeLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_StakePortalRate *StakePortalRateCaller) Threshold(opts *bind.CallOpts) (uint8, error)
- type StakePortalRateCallerRaw
- type StakePortalRateCallerSession
- func (_StakePortalRate *StakePortalRateCallerSession) GetRate() (*big.Int, error)
- func (_StakePortalRate *StakePortalRateCallerSession) GetSubAccountIndex(_subAccount common.Address) (*big.Int, error)
- func (_StakePortalRate *StakePortalRateCallerSession) HasVoted(_proposalId [32]byte, _subAccount common.Address) (bool, error)
- func (_StakePortalRate *StakePortalRateCallerSession) Owner() (common.Address, error)
- func (_StakePortalRate *StakePortalRateCallerSession) Proposals(arg0 [32]byte) (struct{ ... }, error)
- func (_StakePortalRate *StakePortalRateCallerSession) RateChangeLimit() (*big.Int, error)
- func (_StakePortalRate *StakePortalRateCallerSession) Threshold() (uint8, error)
- type StakePortalRateFilterer
- func (_StakePortalRate *StakePortalRateFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*StakePortalRateProposalExecutedIterator, error)
- func (_StakePortalRate *StakePortalRateFilterer) FilterSetRate(opts *bind.FilterOpts) (*StakePortalRateSetRateIterator, error)
- func (_StakePortalRate *StakePortalRateFilterer) ParseProposalExecuted(log types.Log) (*StakePortalRateProposalExecuted, error)
- func (_StakePortalRate *StakePortalRateFilterer) ParseSetRate(log types.Log) (*StakePortalRateSetRate, error)
- func (_StakePortalRate *StakePortalRateFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *StakePortalRateProposalExecuted, ...) (event.Subscription, error)
- func (_StakePortalRate *StakePortalRateFilterer) WatchSetRate(opts *bind.WatchOpts, sink chan<- *StakePortalRateSetRate) (event.Subscription, error)
- type StakePortalRateProposalExecuted
- type StakePortalRateProposalExecutedIterator
- type StakePortalRateRaw
- func (_StakePortalRate *StakePortalRateRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StakePortalRate *StakePortalRateRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakePortalRateSession
- func (_StakePortalRate *StakePortalRateSession) AddSubAccount(_subAccount common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateSession) ChangeThreshold(_newThreshold *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateSession) GetRate() (*big.Int, error)
- func (_StakePortalRate *StakePortalRateSession) GetSubAccountIndex(_subAccount common.Address) (*big.Int, error)
- func (_StakePortalRate *StakePortalRateSession) HasVoted(_proposalId [32]byte, _subAccount common.Address) (bool, error)
- func (_StakePortalRate *StakePortalRateSession) Owner() (common.Address, error)
- func (_StakePortalRate *StakePortalRateSession) Proposals(arg0 [32]byte) (struct{ ... }, error)
- func (_StakePortalRate *StakePortalRateSession) RateChangeLimit() (*big.Int, error)
- func (_StakePortalRate *StakePortalRateSession) RemoveSubAccount(_subAccount common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateSession) SetRate(_rate *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateSession) SetRateChangeLimit(_rateChangeLimit *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateSession) Threshold() (uint8, error)
- func (_StakePortalRate *StakePortalRateSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateSession) VoteRate(_proposalId [32]byte, _rate *big.Int) (*types.Transaction, error)
- type StakePortalRateSetRate
- type StakePortalRateSetRateIterator
- type StakePortalRateTransactor
- func (_StakePortalRate *StakePortalRateTransactor) AddSubAccount(opts *bind.TransactOpts, _subAccount common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactor) ChangeThreshold(opts *bind.TransactOpts, _newThreshold *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactor) RemoveSubAccount(opts *bind.TransactOpts, _subAccount common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactor) SetRate(opts *bind.TransactOpts, _rate *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactor) SetRateChangeLimit(opts *bind.TransactOpts, _rateChangeLimit *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactor) VoteRate(opts *bind.TransactOpts, _proposalId [32]byte, _rate *big.Int) (*types.Transaction, error)
- type StakePortalRateTransactorRaw
- type StakePortalRateTransactorSession
- func (_StakePortalRate *StakePortalRateTransactorSession) AddSubAccount(_subAccount common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactorSession) ChangeThreshold(_newThreshold *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactorSession) RemoveSubAccount(_subAccount common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactorSession) SetRate(_rate *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactorSession) SetRateChangeLimit(_rateChangeLimit *big.Int) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
- func (_StakePortalRate *StakePortalRateTransactorSession) VoteRate(_proposalId [32]byte, _rate *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var StakePortalRateABI = StakePortalRateMetaData.ABI
StakePortalRateABI is the input ABI used to generate the binding from. Deprecated: Use StakePortalRateMetaData.ABI instead.
var StakePortalRateMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_initialSubAccounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_initialThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_rate\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"proposalId\",\"type\":\"bytes32\"}],\"name\":\"ProposalExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"SetRate\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_subAccount\",\"type\":\"address\"}],\"name\":\"addSubAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newThreshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_subAccount\",\"type\":\"address\"}],\"name\":\"getSubAccountIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"_subAccount\",\"type\":\"address\"}],\"name\":\"hasVoted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"proposals\",\"outputs\":[{\"internalType\":\"enumMultisig.ProposalStatus\",\"name\":\"_status\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"_yesVotes\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"_yesVotesTotal\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rateChangeLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_subAccount\",\"type\":\"address\"}],\"name\":\"removeSubAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rate\",\"type\":\"uint256\"}],\"name\":\"setRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rateChangeLimit\",\"type\":\"uint256\"}],\"name\":\"setRateChangeLimit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"threshold\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_rate\",\"type\":\"uint256\"}],\"name\":\"voteRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
StakePortalRateMetaData contains all meta data concerning the StakePortalRate contract.
Functions ¶
This section is empty.
Types ¶
type StakePortalRate ¶
type StakePortalRate struct { StakePortalRateCaller // Read-only binding to the contract StakePortalRateTransactor // Write-only binding to the contract StakePortalRateFilterer // Log filterer for contract events }
StakePortalRate is an auto generated Go binding around an Ethereum contract.
func NewStakePortalRate ¶
func NewStakePortalRate(address common.Address, backend bind.ContractBackend) (*StakePortalRate, error)
NewStakePortalRate creates a new instance of StakePortalRate, bound to a specific deployed contract.
type StakePortalRateCaller ¶
type StakePortalRateCaller struct {
// contains filtered or unexported fields
}
StakePortalRateCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStakePortalRateCaller ¶
func NewStakePortalRateCaller(address common.Address, caller bind.ContractCaller) (*StakePortalRateCaller, error)
NewStakePortalRateCaller creates a new read-only instance of StakePortalRate, bound to a specific deployed contract.
func (*StakePortalRateCaller) GetRate ¶
GetRate is a free data retrieval call binding the contract method 0x679aefce.
Solidity: function getRate() view returns(uint256)
func (*StakePortalRateCaller) GetSubAccountIndex ¶
func (_StakePortalRate *StakePortalRateCaller) GetSubAccountIndex(opts *bind.CallOpts, _subAccount common.Address) (*big.Int, error)
GetSubAccountIndex is a free data retrieval call binding the contract method 0x763f8680.
Solidity: function getSubAccountIndex(address _subAccount) view returns(uint256)
func (*StakePortalRateCaller) HasVoted ¶
func (_StakePortalRate *StakePortalRateCaller) HasVoted(opts *bind.CallOpts, _proposalId [32]byte, _subAccount common.Address) (bool, error)
HasVoted is a free data retrieval call binding the contract method 0xaadc3b72.
Solidity: function hasVoted(bytes32 _proposalId, address _subAccount) view returns(bool)
func (*StakePortalRateCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StakePortalRateCaller) Proposals ¶
func (_StakePortalRate *StakePortalRateCaller) Proposals(opts *bind.CallOpts, arg0 [32]byte) (struct { Status uint8 YesVotes uint16 YesVotesTotal uint8 }, error)
Proposals is a free data retrieval call binding the contract method 0x32ed5b12.
Solidity: function proposals(bytes32 ) view returns(uint8 _status, uint16 _yesVotes, uint8 _yesVotesTotal)
func (*StakePortalRateCaller) RateChangeLimit ¶
func (_StakePortalRate *StakePortalRateCaller) RateChangeLimit(opts *bind.CallOpts) (*big.Int, error)
RateChangeLimit is a free data retrieval call binding the contract method 0xc0152b71.
Solidity: function rateChangeLimit() view returns(uint256)
type StakePortalRateCallerRaw ¶
type StakePortalRateCallerRaw struct {
Contract *StakePortalRateCaller // Generic read-only contract binding to access the raw methods on
}
StakePortalRateCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StakePortalRateCallerRaw) Call ¶
func (_StakePortalRate *StakePortalRateCallerRaw) 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 StakePortalRateCallerSession ¶
type StakePortalRateCallerSession struct { Contract *StakePortalRateCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StakePortalRateCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StakePortalRateCallerSession) GetRate ¶
func (_StakePortalRate *StakePortalRateCallerSession) GetRate() (*big.Int, error)
GetRate is a free data retrieval call binding the contract method 0x679aefce.
Solidity: function getRate() view returns(uint256)
func (*StakePortalRateCallerSession) GetSubAccountIndex ¶
func (_StakePortalRate *StakePortalRateCallerSession) GetSubAccountIndex(_subAccount common.Address) (*big.Int, error)
GetSubAccountIndex is a free data retrieval call binding the contract method 0x763f8680.
Solidity: function getSubAccountIndex(address _subAccount) view returns(uint256)
func (*StakePortalRateCallerSession) HasVoted ¶
func (_StakePortalRate *StakePortalRateCallerSession) HasVoted(_proposalId [32]byte, _subAccount common.Address) (bool, error)
HasVoted is a free data retrieval call binding the contract method 0xaadc3b72.
Solidity: function hasVoted(bytes32 _proposalId, address _subAccount) view returns(bool)
func (*StakePortalRateCallerSession) Owner ¶
func (_StakePortalRate *StakePortalRateCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StakePortalRateCallerSession) Proposals ¶
func (_StakePortalRate *StakePortalRateCallerSession) Proposals(arg0 [32]byte) (struct { Status uint8 YesVotes uint16 YesVotesTotal uint8 }, error)
Proposals is a free data retrieval call binding the contract method 0x32ed5b12.
Solidity: function proposals(bytes32 ) view returns(uint8 _status, uint16 _yesVotes, uint8 _yesVotesTotal)
func (*StakePortalRateCallerSession) RateChangeLimit ¶
func (_StakePortalRate *StakePortalRateCallerSession) RateChangeLimit() (*big.Int, error)
RateChangeLimit is a free data retrieval call binding the contract method 0xc0152b71.
Solidity: function rateChangeLimit() view returns(uint256)
func (*StakePortalRateCallerSession) Threshold ¶
func (_StakePortalRate *StakePortalRateCallerSession) Threshold() (uint8, error)
Threshold is a free data retrieval call binding the contract method 0x42cde4e8.
Solidity: function threshold() view returns(uint8)
type StakePortalRateFilterer ¶
type StakePortalRateFilterer struct {
// contains filtered or unexported fields
}
StakePortalRateFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStakePortalRateFilterer ¶
func NewStakePortalRateFilterer(address common.Address, filterer bind.ContractFilterer) (*StakePortalRateFilterer, error)
NewStakePortalRateFilterer creates a new log filterer instance of StakePortalRate, bound to a specific deployed contract.
func (*StakePortalRateFilterer) FilterProposalExecuted ¶
func (_StakePortalRate *StakePortalRateFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*StakePortalRateProposalExecutedIterator, error)
FilterProposalExecuted is a free log retrieval operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.
Solidity: event ProposalExecuted(bytes32 indexed proposalId)
func (*StakePortalRateFilterer) FilterSetRate ¶
func (_StakePortalRate *StakePortalRateFilterer) FilterSetRate(opts *bind.FilterOpts) (*StakePortalRateSetRateIterator, error)
FilterSetRate is a free log retrieval operation binding the contract event 0x2640b4015d3473fd09bf2b30939e17deb4068cdacf3892136e737e166ceb3210.
Solidity: event SetRate(uint256 rate)
func (*StakePortalRateFilterer) ParseProposalExecuted ¶
func (_StakePortalRate *StakePortalRateFilterer) ParseProposalExecuted(log types.Log) (*StakePortalRateProposalExecuted, error)
ParseProposalExecuted is a log parse operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.
Solidity: event ProposalExecuted(bytes32 indexed proposalId)
func (*StakePortalRateFilterer) ParseSetRate ¶
func (_StakePortalRate *StakePortalRateFilterer) ParseSetRate(log types.Log) (*StakePortalRateSetRate, error)
ParseSetRate is a log parse operation binding the contract event 0x2640b4015d3473fd09bf2b30939e17deb4068cdacf3892136e737e166ceb3210.
Solidity: event SetRate(uint256 rate)
func (*StakePortalRateFilterer) WatchProposalExecuted ¶
func (_StakePortalRate *StakePortalRateFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *StakePortalRateProposalExecuted, proposalId [][32]byte) (event.Subscription, error)
WatchProposalExecuted is a free log subscription operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.
Solidity: event ProposalExecuted(bytes32 indexed proposalId)
func (*StakePortalRateFilterer) WatchSetRate ¶
func (_StakePortalRate *StakePortalRateFilterer) WatchSetRate(opts *bind.WatchOpts, sink chan<- *StakePortalRateSetRate) (event.Subscription, error)
WatchSetRate is a free log subscription operation binding the contract event 0x2640b4015d3473fd09bf2b30939e17deb4068cdacf3892136e737e166ceb3210.
Solidity: event SetRate(uint256 rate)
type StakePortalRateProposalExecuted ¶
type StakePortalRateProposalExecuted struct { ProposalId [32]byte Raw types.Log // Blockchain specific contextual infos }
StakePortalRateProposalExecuted represents a ProposalExecuted event raised by the StakePortalRate contract.
type StakePortalRateProposalExecutedIterator ¶
type StakePortalRateProposalExecutedIterator struct { Event *StakePortalRateProposalExecuted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakePortalRateProposalExecutedIterator is returned from FilterProposalExecuted and is used to iterate over the raw logs and unpacked data for ProposalExecuted events raised by the StakePortalRate contract.
func (*StakePortalRateProposalExecutedIterator) Close ¶
func (it *StakePortalRateProposalExecutedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakePortalRateProposalExecutedIterator) Error ¶
func (it *StakePortalRateProposalExecutedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakePortalRateProposalExecutedIterator) Next ¶
func (it *StakePortalRateProposalExecutedIterator) 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 StakePortalRateRaw ¶
type StakePortalRateRaw struct {
Contract *StakePortalRate // Generic contract binding to access the raw methods on
}
StakePortalRateRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StakePortalRateRaw) Call ¶
func (_StakePortalRate *StakePortalRateRaw) 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 (*StakePortalRateRaw) Transact ¶
func (_StakePortalRate *StakePortalRateRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakePortalRateRaw) Transfer ¶
func (_StakePortalRate *StakePortalRateRaw) 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 StakePortalRateSession ¶
type StakePortalRateSession struct { Contract *StakePortalRate // 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 }
StakePortalRateSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StakePortalRateSession) AddSubAccount ¶
func (_StakePortalRate *StakePortalRateSession) AddSubAccount(_subAccount common.Address) (*types.Transaction, error)
AddSubAccount is a paid mutator transaction binding the contract method 0xb52e1eff.
Solidity: function addSubAccount(address _subAccount) returns()
func (*StakePortalRateSession) ChangeThreshold ¶
func (_StakePortalRate *StakePortalRateSession) ChangeThreshold(_newThreshold *big.Int) (*types.Transaction, error)
ChangeThreshold is a paid mutator transaction binding the contract method 0x694e80c3.
Solidity: function changeThreshold(uint256 _newThreshold) returns()
func (*StakePortalRateSession) GetRate ¶
func (_StakePortalRate *StakePortalRateSession) GetRate() (*big.Int, error)
GetRate is a free data retrieval call binding the contract method 0x679aefce.
Solidity: function getRate() view returns(uint256)
func (*StakePortalRateSession) GetSubAccountIndex ¶
func (_StakePortalRate *StakePortalRateSession) GetSubAccountIndex(_subAccount common.Address) (*big.Int, error)
GetSubAccountIndex is a free data retrieval call binding the contract method 0x763f8680.
Solidity: function getSubAccountIndex(address _subAccount) view returns(uint256)
func (*StakePortalRateSession) HasVoted ¶
func (_StakePortalRate *StakePortalRateSession) HasVoted(_proposalId [32]byte, _subAccount common.Address) (bool, error)
HasVoted is a free data retrieval call binding the contract method 0xaadc3b72.
Solidity: function hasVoted(bytes32 _proposalId, address _subAccount) view returns(bool)
func (*StakePortalRateSession) Owner ¶
func (_StakePortalRate *StakePortalRateSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StakePortalRateSession) Proposals ¶
func (_StakePortalRate *StakePortalRateSession) Proposals(arg0 [32]byte) (struct { Status uint8 YesVotes uint16 YesVotesTotal uint8 }, error)
Proposals is a free data retrieval call binding the contract method 0x32ed5b12.
Solidity: function proposals(bytes32 ) view returns(uint8 _status, uint16 _yesVotes, uint8 _yesVotesTotal)
func (*StakePortalRateSession) RateChangeLimit ¶
func (_StakePortalRate *StakePortalRateSession) RateChangeLimit() (*big.Int, error)
RateChangeLimit is a free data retrieval call binding the contract method 0xc0152b71.
Solidity: function rateChangeLimit() view returns(uint256)
func (*StakePortalRateSession) RemoveSubAccount ¶
func (_StakePortalRate *StakePortalRateSession) RemoveSubAccount(_subAccount common.Address) (*types.Transaction, error)
RemoveSubAccount is a paid mutator transaction binding the contract method 0x0ba3aae3.
Solidity: function removeSubAccount(address _subAccount) returns()
func (*StakePortalRateSession) SetRate ¶
func (_StakePortalRate *StakePortalRateSession) SetRate(_rate *big.Int) (*types.Transaction, error)
SetRate is a paid mutator transaction binding the contract method 0x34fcf437.
Solidity: function setRate(uint256 _rate) returns()
func (*StakePortalRateSession) SetRateChangeLimit ¶
func (_StakePortalRate *StakePortalRateSession) SetRateChangeLimit(_rateChangeLimit *big.Int) (*types.Transaction, error)
SetRateChangeLimit is a paid mutator transaction binding the contract method 0x19826e71.
Solidity: function setRateChangeLimit(uint256 _rateChangeLimit) returns()
func (*StakePortalRateSession) Threshold ¶
func (_StakePortalRate *StakePortalRateSession) Threshold() (uint8, error)
Threshold is a free data retrieval call binding the contract method 0x42cde4e8.
Solidity: function threshold() view returns(uint8)
func (*StakePortalRateSession) TransferOwnership ¶
func (_StakePortalRate *StakePortalRateSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address _newOwner) returns()
func (*StakePortalRateSession) VoteRate ¶
func (_StakePortalRate *StakePortalRateSession) VoteRate(_proposalId [32]byte, _rate *big.Int) (*types.Transaction, error)
VoteRate is a paid mutator transaction binding the contract method 0x113e3709.
Solidity: function voteRate(bytes32 _proposalId, uint256 _rate) returns()
type StakePortalRateSetRate ¶
type StakePortalRateSetRate struct { Rate *big.Int Raw types.Log // Blockchain specific contextual infos }
StakePortalRateSetRate represents a SetRate event raised by the StakePortalRate contract.
type StakePortalRateSetRateIterator ¶
type StakePortalRateSetRateIterator struct { Event *StakePortalRateSetRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakePortalRateSetRateIterator is returned from FilterSetRate and is used to iterate over the raw logs and unpacked data for SetRate events raised by the StakePortalRate contract.
func (*StakePortalRateSetRateIterator) Close ¶
func (it *StakePortalRateSetRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakePortalRateSetRateIterator) Error ¶
func (it *StakePortalRateSetRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakePortalRateSetRateIterator) Next ¶
func (it *StakePortalRateSetRateIterator) 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 StakePortalRateTransactor ¶
type StakePortalRateTransactor struct {
// contains filtered or unexported fields
}
StakePortalRateTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStakePortalRateTransactor ¶
func NewStakePortalRateTransactor(address common.Address, transactor bind.ContractTransactor) (*StakePortalRateTransactor, error)
NewStakePortalRateTransactor creates a new write-only instance of StakePortalRate, bound to a specific deployed contract.
func (*StakePortalRateTransactor) AddSubAccount ¶
func (_StakePortalRate *StakePortalRateTransactor) AddSubAccount(opts *bind.TransactOpts, _subAccount common.Address) (*types.Transaction, error)
AddSubAccount is a paid mutator transaction binding the contract method 0xb52e1eff.
Solidity: function addSubAccount(address _subAccount) returns()
func (*StakePortalRateTransactor) ChangeThreshold ¶
func (_StakePortalRate *StakePortalRateTransactor) ChangeThreshold(opts *bind.TransactOpts, _newThreshold *big.Int) (*types.Transaction, error)
ChangeThreshold is a paid mutator transaction binding the contract method 0x694e80c3.
Solidity: function changeThreshold(uint256 _newThreshold) returns()
func (*StakePortalRateTransactor) RemoveSubAccount ¶
func (_StakePortalRate *StakePortalRateTransactor) RemoveSubAccount(opts *bind.TransactOpts, _subAccount common.Address) (*types.Transaction, error)
RemoveSubAccount is a paid mutator transaction binding the contract method 0x0ba3aae3.
Solidity: function removeSubAccount(address _subAccount) returns()
func (*StakePortalRateTransactor) SetRate ¶
func (_StakePortalRate *StakePortalRateTransactor) SetRate(opts *bind.TransactOpts, _rate *big.Int) (*types.Transaction, error)
SetRate is a paid mutator transaction binding the contract method 0x34fcf437.
Solidity: function setRate(uint256 _rate) returns()
func (*StakePortalRateTransactor) SetRateChangeLimit ¶
func (_StakePortalRate *StakePortalRateTransactor) SetRateChangeLimit(opts *bind.TransactOpts, _rateChangeLimit *big.Int) (*types.Transaction, error)
SetRateChangeLimit is a paid mutator transaction binding the contract method 0x19826e71.
Solidity: function setRateChangeLimit(uint256 _rateChangeLimit) returns()
func (*StakePortalRateTransactor) TransferOwnership ¶
func (_StakePortalRate *StakePortalRateTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address _newOwner) returns()
func (*StakePortalRateTransactor) VoteRate ¶
func (_StakePortalRate *StakePortalRateTransactor) VoteRate(opts *bind.TransactOpts, _proposalId [32]byte, _rate *big.Int) (*types.Transaction, error)
VoteRate is a paid mutator transaction binding the contract method 0x113e3709.
Solidity: function voteRate(bytes32 _proposalId, uint256 _rate) returns()
type StakePortalRateTransactorRaw ¶
type StakePortalRateTransactorRaw struct {
Contract *StakePortalRateTransactor // Generic write-only contract binding to access the raw methods on
}
StakePortalRateTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StakePortalRateTransactorRaw) Transact ¶
func (_StakePortalRate *StakePortalRateTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakePortalRateTransactorRaw) Transfer ¶
func (_StakePortalRate *StakePortalRateTransactorRaw) 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 StakePortalRateTransactorSession ¶
type StakePortalRateTransactorSession struct { Contract *StakePortalRateTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StakePortalRateTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StakePortalRateTransactorSession) AddSubAccount ¶
func (_StakePortalRate *StakePortalRateTransactorSession) AddSubAccount(_subAccount common.Address) (*types.Transaction, error)
AddSubAccount is a paid mutator transaction binding the contract method 0xb52e1eff.
Solidity: function addSubAccount(address _subAccount) returns()
func (*StakePortalRateTransactorSession) ChangeThreshold ¶
func (_StakePortalRate *StakePortalRateTransactorSession) ChangeThreshold(_newThreshold *big.Int) (*types.Transaction, error)
ChangeThreshold is a paid mutator transaction binding the contract method 0x694e80c3.
Solidity: function changeThreshold(uint256 _newThreshold) returns()
func (*StakePortalRateTransactorSession) RemoveSubAccount ¶
func (_StakePortalRate *StakePortalRateTransactorSession) RemoveSubAccount(_subAccount common.Address) (*types.Transaction, error)
RemoveSubAccount is a paid mutator transaction binding the contract method 0x0ba3aae3.
Solidity: function removeSubAccount(address _subAccount) returns()
func (*StakePortalRateTransactorSession) SetRate ¶
func (_StakePortalRate *StakePortalRateTransactorSession) SetRate(_rate *big.Int) (*types.Transaction, error)
SetRate is a paid mutator transaction binding the contract method 0x34fcf437.
Solidity: function setRate(uint256 _rate) returns()
func (*StakePortalRateTransactorSession) SetRateChangeLimit ¶
func (_StakePortalRate *StakePortalRateTransactorSession) SetRateChangeLimit(_rateChangeLimit *big.Int) (*types.Transaction, error)
SetRateChangeLimit is a paid mutator transaction binding the contract method 0x19826e71.
Solidity: function setRateChangeLimit(uint256 _rateChangeLimit) returns()
func (*StakePortalRateTransactorSession) TransferOwnership ¶
func (_StakePortalRate *StakePortalRateTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address _newOwner) returns()
func (*StakePortalRateTransactorSession) VoteRate ¶
func (_StakePortalRate *StakePortalRateTransactorSession) VoteRate(_proposalId [32]byte, _rate *big.Int) (*types.Transaction, error)
VoteRate is a paid mutator transaction binding the contract method 0x113e3709.
Solidity: function voteRate(bytes32 _proposalId, uint256 _rate) returns()