Documentation ¶
Index ¶
- Variables
- type Stake
- type StakeCaller
- func (_Stake *StakeCaller) GetNodeLevel(opts *bind.CallOpts, _nodeAddresses common.Address) (*big.Int, error)
- func (_Stake *StakeCaller) Locked(opts *bind.CallOpts) (bool, error)
- func (_Stake *StakeCaller) MinStake(opts *bind.CallOpts) (*big.Int, error)
- func (_Stake *StakeCaller) NodeAddresses(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_Stake *StakeCaller) NodeTokenPerMessage(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Stake *StakeCaller) Orders(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_Stake *StakeCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Stake *StakeCaller) StakeAddresses(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_Stake *StakeCaller) StakeBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Stake *StakeCaller) UserMessages(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Stake *StakeCaller) WithdrawalEnabled(opts *bind.CallOpts) (bool, error)
- type StakeCallerRaw
- type StakeCallerSession
- func (_Stake *StakeCallerSession) GetNodeLevel(_nodeAddresses common.Address) (*big.Int, error)
- func (_Stake *StakeCallerSession) Locked() (bool, error)
- func (_Stake *StakeCallerSession) MinStake() (*big.Int, error)
- func (_Stake *StakeCallerSession) NodeAddresses(arg0 common.Address) (common.Address, error)
- func (_Stake *StakeCallerSession) NodeTokenPerMessage(arg0 common.Address) (*big.Int, error)
- func (_Stake *StakeCallerSession) Orders(arg0 [32]byte) (struct{ ... }, error)
- func (_Stake *StakeCallerSession) Owner() (common.Address, error)
- func (_Stake *StakeCallerSession) StakeAddresses(arg0 common.Address) (common.Address, error)
- func (_Stake *StakeCallerSession) StakeBalance(arg0 common.Address) (*big.Int, error)
- func (_Stake *StakeCallerSession) UserMessages(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Stake *StakeCallerSession) WithdrawalEnabled() (bool, error)
- type StakeFilterer
- func (_Stake *StakeFilterer) FilterInitialized(opts *bind.FilterOpts) (*StakeInitializedIterator, error)
- func (_Stake *StakeFilterer) FilterMessagePurchase(opts *bind.FilterOpts, node []common.Address, buyer []common.Address, ...) (*StakeMessagePurchaseIterator, error)
- func (_Stake *StakeFilterer) FilterMessageTokenRate(opts *bind.FilterOpts, node []common.Address) (*StakeMessageTokenRateIterator, error)
- func (_Stake *StakeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*StakeOwnershipTransferredIterator, error)
- func (_Stake *StakeFilterer) FilterStakeEvent(opts *bind.FilterOpts, account []common.Address) (*StakeStakeEventIterator, error)
- func (_Stake *StakeFilterer) FilterUnStakeEvent(opts *bind.FilterOpts, account []common.Address) (*StakeUnStakeEventIterator, error)
- func (_Stake *StakeFilterer) ParseInitialized(log types.Log) (*StakeInitialized, error)
- func (_Stake *StakeFilterer) ParseMessagePurchase(log types.Log) (*StakeMessagePurchase, error)
- func (_Stake *StakeFilterer) ParseMessageTokenRate(log types.Log) (*StakeMessageTokenRate, error)
- func (_Stake *StakeFilterer) ParseOwnershipTransferred(log types.Log) (*StakeOwnershipTransferred, error)
- func (_Stake *StakeFilterer) ParseStakeEvent(log types.Log) (*StakeStakeEvent, error)
- func (_Stake *StakeFilterer) ParseUnStakeEvent(log types.Log) (*StakeUnStakeEvent, error)
- func (_Stake *StakeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StakeInitialized) (event.Subscription, error)
- func (_Stake *StakeFilterer) WatchMessagePurchase(opts *bind.WatchOpts, sink chan<- *StakeMessagePurchase, node []common.Address, ...) (event.Subscription, error)
- func (_Stake *StakeFilterer) WatchMessageTokenRate(opts *bind.WatchOpts, sink chan<- *StakeMessageTokenRate, ...) (event.Subscription, error)
- func (_Stake *StakeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StakeOwnershipTransferred, ...) (event.Subscription, error)
- func (_Stake *StakeFilterer) WatchStakeEvent(opts *bind.WatchOpts, sink chan<- *StakeStakeEvent, account []common.Address) (event.Subscription, error)
- func (_Stake *StakeFilterer) WatchUnStakeEvent(opts *bind.WatchOpts, sink chan<- *StakeUnStakeEvent, account []common.Address) (event.Subscription, error)
- type StakeInitialized
- type StakeInitializedIterator
- type StakeMessagePurchase
- type StakeMessagePurchaseIterator
- type StakeMessageTokenRate
- type StakeMessageTokenRateIterator
- type StakeOwnershipTransferred
- type StakeOwnershipTransferredIterator
- type StakeRaw
- func (_Stake *StakeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Stake *StakeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Stake *StakeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakeSession
- func (_Stake *StakeSession) BuyMessages(_nodeAddresses common.Address, tokens *big.Int, nonce [32]byte) (*types.Transaction, error)
- func (_Stake *StakeSession) EnableWithdrawal(_enabled bool) (*types.Transaction, error)
- func (_Stake *StakeSession) GetNodeLevel(_nodeAddresses common.Address) (*big.Int, error)
- func (_Stake *StakeSession) Initialize(_address common.Address) (*types.Transaction, error)
- func (_Stake *StakeSession) Locked() (bool, error)
- func (_Stake *StakeSession) MinStake() (*big.Int, error)
- func (_Stake *StakeSession) NodeAddresses(arg0 common.Address) (common.Address, error)
- func (_Stake *StakeSession) NodeTokenPerMessage(arg0 common.Address) (*big.Int, error)
- func (_Stake *StakeSession) Orders(arg0 [32]byte) (struct{ ... }, error)
- func (_Stake *StakeSession) Owner() (common.Address, error)
- func (_Stake *StakeSession) RegisterNodeAccount(nodeAddress common.Address) (*types.Transaction, error)
- func (_Stake *StakeSession) RenounceOwnership() (*types.Transaction, error)
- func (_Stake *StakeSession) SetMinStake(_stake *big.Int) (*types.Transaction, error)
- func (_Stake *StakeSession) SetTokenPerMessage(rate *big.Int) (*types.Transaction, error)
- func (_Stake *StakeSession) Stake(amount *big.Int) (*types.Transaction, error)
- func (_Stake *StakeSession) StakeAddresses(arg0 common.Address) (common.Address, error)
- func (_Stake *StakeSession) StakeBalance(arg0 common.Address) (*big.Int, error)
- func (_Stake *StakeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Stake *StakeSession) UnStake() (*types.Transaction, error)
- func (_Stake *StakeSession) UserMessages(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Stake *StakeSession) WithdrawalEnabled() (bool, error)
- type StakeStakeEvent
- type StakeStakeEventIterator
- type StakeTransactor
- func (_Stake *StakeTransactor) BuyMessages(opts *bind.TransactOpts, _nodeAddresses common.Address, tokens *big.Int, ...) (*types.Transaction, error)
- func (_Stake *StakeTransactor) EnableWithdrawal(opts *bind.TransactOpts, _enabled bool) (*types.Transaction, error)
- func (_Stake *StakeTransactor) Initialize(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
- func (_Stake *StakeTransactor) RegisterNodeAccount(opts *bind.TransactOpts, nodeAddress common.Address) (*types.Transaction, error)
- func (_Stake *StakeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Stake *StakeTransactor) SetMinStake(opts *bind.TransactOpts, _stake *big.Int) (*types.Transaction, error)
- func (_Stake *StakeTransactor) SetTokenPerMessage(opts *bind.TransactOpts, rate *big.Int) (*types.Transaction, error)
- func (_Stake *StakeTransactor) Stake(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Stake *StakeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Stake *StakeTransactor) UnStake(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakeTransactorRaw
- type StakeTransactorSession
- func (_Stake *StakeTransactorSession) BuyMessages(_nodeAddresses common.Address, tokens *big.Int, nonce [32]byte) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) EnableWithdrawal(_enabled bool) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) Initialize(_address common.Address) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) RegisterNodeAccount(nodeAddress common.Address) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) SetMinStake(_stake *big.Int) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) SetTokenPerMessage(rate *big.Int) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) Stake(amount *big.Int) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Stake *StakeTransactorSession) UnStake() (*types.Transaction, error)
- type StakeUnStakeEvent
- type StakeUnStakeEventIterator
Constants ¶
This section is empty.
Variables ¶
var StakeABI = StakeMetaData.ABI
StakeABI is the input ABI used to generate the binding from. Deprecated: Use StakeMetaData.ABI instead.
var StakeMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"token\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"messages\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"}],\"name\":\"MessagePurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"MessageTokenRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"StakeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"UnStakeEvent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddresses\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"}],\"name\":\"buyMessages\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_enabled\",\"type\":\"bool\"}],\"name\":\"enableWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddresses\",\"type\":\"address\"}],\"name\":\"getNodeLevel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"locked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nodeAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nodeTokenPerMessage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"orders\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"messageAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddress\",\"type\":\"address\"}],\"name\":\"registerNodeAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stake\",\"type\":\"uint256\"}],\"name\":\"setMinStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"setTokenPerMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"stakeAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"stakeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
StakeMetaData contains all meta data concerning the Stake contract.
Functions ¶
This section is empty.
Types ¶
type Stake ¶
type Stake struct { StakeCaller // Read-only binding to the contract StakeTransactor // Write-only binding to the contract StakeFilterer // Log filterer for contract events }
Stake is an auto generated Go binding around an Ethereum contract.
type StakeCaller ¶
type StakeCaller struct {
// contains filtered or unexported fields
}
StakeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStakeCaller ¶
func NewStakeCaller(address common.Address, caller bind.ContractCaller) (*StakeCaller, error)
NewStakeCaller creates a new read-only instance of Stake, bound to a specific deployed contract.
func (*StakeCaller) GetNodeLevel ¶
func (_Stake *StakeCaller) GetNodeLevel(opts *bind.CallOpts, _nodeAddresses common.Address) (*big.Int, error)
GetNodeLevel is a free data retrieval call binding the contract method 0x295b87a8.
Solidity: function getNodeLevel(address _nodeAddresses) view returns(uint256)
func (*StakeCaller) Locked ¶
func (_Stake *StakeCaller) Locked(opts *bind.CallOpts) (bool, error)
Locked is a free data retrieval call binding the contract method 0xcf309012.
Solidity: function locked() view returns(bool)
func (*StakeCaller) MinStake ¶
MinStake is a free data retrieval call binding the contract method 0x375b3c0a.
Solidity: function minStake() view returns(uint256)
func (*StakeCaller) NodeAddresses ¶
func (_Stake *StakeCaller) NodeAddresses(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
NodeAddresses is a free data retrieval call binding the contract method 0xb58a76c0.
Solidity: function nodeAddresses(address ) view returns(address)
func (*StakeCaller) NodeTokenPerMessage ¶
func (_Stake *StakeCaller) NodeTokenPerMessage(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
NodeTokenPerMessage is a free data retrieval call binding the contract method 0x76be2d21.
Solidity: function nodeTokenPerMessage(address ) view returns(uint256)
func (*StakeCaller) Orders ¶
func (_Stake *StakeCaller) Orders(opts *bind.CallOpts, arg0 [32]byte) (struct { NodeAddress common.Address Buyer common.Address TokenAmount *big.Int MessageAmount *big.Int }, error)
Orders is a free data retrieval call binding the contract method 0x9c3f1e90.
Solidity: function orders(bytes32 ) view returns(address nodeAddress, address buyer, uint256 tokenAmount, uint256 messageAmount)
func (*StakeCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StakeCaller) StakeAddresses ¶
func (_Stake *StakeCaller) StakeAddresses(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
StakeAddresses is a free data retrieval call binding the contract method 0x6a7cce86.
Solidity: function stakeAddresses(address ) view returns(address)
func (*StakeCaller) StakeBalance ¶
StakeBalance is a free data retrieval call binding the contract method 0x4e7c57a6.
Solidity: function stakeBalance(address ) view returns(uint256)
func (*StakeCaller) UserMessages ¶
func (_Stake *StakeCaller) UserMessages(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
UserMessages is a free data retrieval call binding the contract method 0xa7ba2df2.
Solidity: function userMessages(address , address ) view returns(uint256)
func (*StakeCaller) WithdrawalEnabled ¶
func (_Stake *StakeCaller) WithdrawalEnabled(opts *bind.CallOpts) (bool, error)
WithdrawalEnabled is a free data retrieval call binding the contract method 0xf8ea5daf.
Solidity: function withdrawalEnabled() view returns(bool)
type StakeCallerRaw ¶
type StakeCallerRaw struct {
Contract *StakeCaller // Generic read-only contract binding to access the raw methods on
}
StakeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StakeCallerRaw) Call ¶
func (_Stake *StakeCallerRaw) 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 StakeCallerSession ¶
type StakeCallerSession struct { Contract *StakeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StakeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StakeCallerSession) GetNodeLevel ¶
GetNodeLevel is a free data retrieval call binding the contract method 0x295b87a8.
Solidity: function getNodeLevel(address _nodeAddresses) view returns(uint256)
func (*StakeCallerSession) Locked ¶
func (_Stake *StakeCallerSession) Locked() (bool, error)
Locked is a free data retrieval call binding the contract method 0xcf309012.
Solidity: function locked() view returns(bool)
func (*StakeCallerSession) MinStake ¶
func (_Stake *StakeCallerSession) MinStake() (*big.Int, error)
MinStake is a free data retrieval call binding the contract method 0x375b3c0a.
Solidity: function minStake() view returns(uint256)
func (*StakeCallerSession) NodeAddresses ¶
NodeAddresses is a free data retrieval call binding the contract method 0xb58a76c0.
Solidity: function nodeAddresses(address ) view returns(address)
func (*StakeCallerSession) NodeTokenPerMessage ¶
NodeTokenPerMessage is a free data retrieval call binding the contract method 0x76be2d21.
Solidity: function nodeTokenPerMessage(address ) view returns(uint256)
func (*StakeCallerSession) Orders ¶
func (_Stake *StakeCallerSession) Orders(arg0 [32]byte) (struct { NodeAddress common.Address Buyer common.Address TokenAmount *big.Int MessageAmount *big.Int }, error)
Orders is a free data retrieval call binding the contract method 0x9c3f1e90.
Solidity: function orders(bytes32 ) view returns(address nodeAddress, address buyer, uint256 tokenAmount, uint256 messageAmount)
func (*StakeCallerSession) Owner ¶
func (_Stake *StakeCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StakeCallerSession) StakeAddresses ¶
StakeAddresses is a free data retrieval call binding the contract method 0x6a7cce86.
Solidity: function stakeAddresses(address ) view returns(address)
func (*StakeCallerSession) StakeBalance ¶
StakeBalance is a free data retrieval call binding the contract method 0x4e7c57a6.
Solidity: function stakeBalance(address ) view returns(uint256)
func (*StakeCallerSession) UserMessages ¶
func (_Stake *StakeCallerSession) UserMessages(arg0 common.Address, arg1 common.Address) (*big.Int, error)
UserMessages is a free data retrieval call binding the contract method 0xa7ba2df2.
Solidity: function userMessages(address , address ) view returns(uint256)
func (*StakeCallerSession) WithdrawalEnabled ¶
func (_Stake *StakeCallerSession) WithdrawalEnabled() (bool, error)
WithdrawalEnabled is a free data retrieval call binding the contract method 0xf8ea5daf.
Solidity: function withdrawalEnabled() view returns(bool)
type StakeFilterer ¶
type StakeFilterer struct {
// contains filtered or unexported fields
}
StakeFilterer is an auto generated log filtering Go binding around an Ethereum contract entities.
func NewStakeFilterer ¶
func NewStakeFilterer(address common.Address, filterer bind.ContractFilterer) (*StakeFilterer, error)
NewStakeFilterer creates a new log filterer instance of Stake, bound to a specific deployed contract.
func (*StakeFilterer) FilterInitialized ¶
func (_Stake *StakeFilterer) FilterInitialized(opts *bind.FilterOpts) (*StakeInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*StakeFilterer) FilterMessagePurchase ¶
func (_Stake *StakeFilterer) FilterMessagePurchase(opts *bind.FilterOpts, node []common.Address, buyer []common.Address, nonce [][32]byte) (*StakeMessagePurchaseIterator, error)
FilterMessagePurchase is a free log retrieval operation binding the contract event 0x134f5d697fdb606afe1a229994a1339c4d3d0984e77e6c6ef90a4dd61f3bede1.
Solidity: event MessagePurchase(address indexed node, address indexed buyer, uint256 token, uint256 messages, bytes32 indexed nonce)
func (*StakeFilterer) FilterMessageTokenRate ¶
func (_Stake *StakeFilterer) FilterMessageTokenRate(opts *bind.FilterOpts, node []common.Address) (*StakeMessageTokenRateIterator, error)
FilterMessageTokenRate is a free log retrieval operation binding the contract event 0x4112b5f837ca529fae87c04e8f274182d1397401721765ea2e68e0dc804e2e47.
Solidity: event MessageTokenRate(address indexed node, uint256 rate)
func (*StakeFilterer) FilterOwnershipTransferred ¶
func (_Stake *StakeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*StakeOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StakeFilterer) FilterStakeEvent ¶
func (_Stake *StakeFilterer) FilterStakeEvent(opts *bind.FilterOpts, account []common.Address) (*StakeStakeEventIterator, error)
FilterStakeEvent is a free log retrieval operation binding the contract event 0x9dbaf9c586508abc91d6ee4e67d3c7a82ccb09bca5d9fe2c3b690f27b7e0a256.
Solidity: event StakeEvent(address indexed account, uint256 amount, uint256 timestamp)
func (*StakeFilterer) FilterUnStakeEvent ¶
func (_Stake *StakeFilterer) FilterUnStakeEvent(opts *bind.FilterOpts, account []common.Address) (*StakeUnStakeEventIterator, error)
FilterUnStakeEvent is a free log retrieval operation binding the contract event 0xa96db5cb7927744735ed3891b328387fe2917486b42976ded70e42a827396ad7.
Solidity: event UnStakeEvent(address indexed account, uint256 amount, uint256 timestamp)
func (*StakeFilterer) ParseInitialized ¶
func (_Stake *StakeFilterer) ParseInitialized(log types.Log) (*StakeInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*StakeFilterer) ParseMessagePurchase ¶
func (_Stake *StakeFilterer) ParseMessagePurchase(log types.Log) (*StakeMessagePurchase, error)
ParseMessagePurchase is a log parse operation binding the contract event 0x134f5d697fdb606afe1a229994a1339c4d3d0984e77e6c6ef90a4dd61f3bede1.
Solidity: event MessagePurchase(address indexed node, address indexed buyer, uint256 token, uint256 messages, bytes32 indexed nonce)
func (*StakeFilterer) ParseMessageTokenRate ¶
func (_Stake *StakeFilterer) ParseMessageTokenRate(log types.Log) (*StakeMessageTokenRate, error)
ParseMessageTokenRate is a log parse operation binding the contract event 0x4112b5f837ca529fae87c04e8f274182d1397401721765ea2e68e0dc804e2e47.
Solidity: event MessageTokenRate(address indexed node, uint256 rate)
func (*StakeFilterer) ParseOwnershipTransferred ¶
func (_Stake *StakeFilterer) ParseOwnershipTransferred(log types.Log) (*StakeOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StakeFilterer) ParseStakeEvent ¶
func (_Stake *StakeFilterer) ParseStakeEvent(log types.Log) (*StakeStakeEvent, error)
ParseStakeEvent is a log parse operation binding the contract event 0x9dbaf9c586508abc91d6ee4e67d3c7a82ccb09bca5d9fe2c3b690f27b7e0a256.
Solidity: event StakeEvent(address indexed account, uint256 amount, uint256 timestamp)
func (*StakeFilterer) ParseUnStakeEvent ¶
func (_Stake *StakeFilterer) ParseUnStakeEvent(log types.Log) (*StakeUnStakeEvent, error)
ParseUnStakeEvent is a log parse operation binding the contract event 0xa96db5cb7927744735ed3891b328387fe2917486b42976ded70e42a827396ad7.
Solidity: event UnStakeEvent(address indexed account, uint256 amount, uint256 timestamp)
func (*StakeFilterer) WatchInitialized ¶
func (_Stake *StakeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StakeInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*StakeFilterer) WatchMessagePurchase ¶
func (_Stake *StakeFilterer) WatchMessagePurchase(opts *bind.WatchOpts, sink chan<- *StakeMessagePurchase, node []common.Address, buyer []common.Address, nonce [][32]byte) (event.Subscription, error)
WatchMessagePurchase is a free log subscription operation binding the contract event 0x134f5d697fdb606afe1a229994a1339c4d3d0984e77e6c6ef90a4dd61f3bede1.
Solidity: event MessagePurchase(address indexed node, address indexed buyer, uint256 token, uint256 messages, bytes32 indexed nonce)
func (*StakeFilterer) WatchMessageTokenRate ¶
func (_Stake *StakeFilterer) WatchMessageTokenRate(opts *bind.WatchOpts, sink chan<- *StakeMessageTokenRate, node []common.Address) (event.Subscription, error)
WatchMessageTokenRate is a free log subscription operation binding the contract event 0x4112b5f837ca529fae87c04e8f274182d1397401721765ea2e68e0dc804e2e47.
Solidity: event MessageTokenRate(address indexed node, uint256 rate)
func (*StakeFilterer) WatchOwnershipTransferred ¶
func (_Stake *StakeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StakeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StakeFilterer) WatchStakeEvent ¶
func (_Stake *StakeFilterer) WatchStakeEvent(opts *bind.WatchOpts, sink chan<- *StakeStakeEvent, account []common.Address) (event.Subscription, error)
WatchStakeEvent is a free log subscription operation binding the contract event 0x9dbaf9c586508abc91d6ee4e67d3c7a82ccb09bca5d9fe2c3b690f27b7e0a256.
Solidity: event StakeEvent(address indexed account, uint256 amount, uint256 timestamp)
func (*StakeFilterer) WatchUnStakeEvent ¶
func (_Stake *StakeFilterer) WatchUnStakeEvent(opts *bind.WatchOpts, sink chan<- *StakeUnStakeEvent, account []common.Address) (event.Subscription, error)
WatchUnStakeEvent is a free log subscription operation binding the contract event 0xa96db5cb7927744735ed3891b328387fe2917486b42976ded70e42a827396ad7.
Solidity: event UnStakeEvent(address indexed account, uint256 amount, uint256 timestamp)
type StakeInitialized ¶
type StakeInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
StakeInitialized represents a Initialized event raised by the Stake contract.
type StakeInitializedIterator ¶
type StakeInitializedIterator struct { Event *StakeInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakeInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Stake contract.
func (*StakeInitializedIterator) Close ¶
func (it *StakeInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakeInitializedIterator) Error ¶
func (it *StakeInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakeInitializedIterator) Next ¶
func (it *StakeInitializedIterator) 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 StakeMessagePurchase ¶
type StakeMessagePurchase struct { Node common.Address Buyer common.Address Token *big.Int Messages *big.Int Nonce [32]byte Raw types.Log // Blockchain specific contextual infos }
StakeMessagePurchase represents a MessagePurchase event raised by the Stake contract.
type StakeMessagePurchaseIterator ¶
type StakeMessagePurchaseIterator struct { Event *StakeMessagePurchase // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakeMessagePurchaseIterator is returned from FilterMessagePurchase and is used to iterate over the raw logs and unpacked data for MessagePurchase events raised by the Stake contract.
func (*StakeMessagePurchaseIterator) Close ¶
func (it *StakeMessagePurchaseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakeMessagePurchaseIterator) Error ¶
func (it *StakeMessagePurchaseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakeMessagePurchaseIterator) Next ¶
func (it *StakeMessagePurchaseIterator) 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 StakeMessageTokenRate ¶
type StakeMessageTokenRate struct { Node common.Address Rate *big.Int Raw types.Log // Blockchain specific contextual infos }
StakeMessageTokenRate represents a MessageTokenRate event raised by the Stake contract.
type StakeMessageTokenRateIterator ¶
type StakeMessageTokenRateIterator struct { Event *StakeMessageTokenRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakeMessageTokenRateIterator is returned from FilterMessageTokenRate and is used to iterate over the raw logs and unpacked data for MessageTokenRate events raised by the Stake contract.
func (*StakeMessageTokenRateIterator) Close ¶
func (it *StakeMessageTokenRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakeMessageTokenRateIterator) Error ¶
func (it *StakeMessageTokenRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakeMessageTokenRateIterator) Next ¶
func (it *StakeMessageTokenRateIterator) 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 StakeOwnershipTransferred ¶
type StakeOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
StakeOwnershipTransferred represents a OwnershipTransferred event raised by the Stake contract.
type StakeOwnershipTransferredIterator ¶
type StakeOwnershipTransferredIterator struct { Event *StakeOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Stake contract.
func (*StakeOwnershipTransferredIterator) Close ¶
func (it *StakeOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakeOwnershipTransferredIterator) Error ¶
func (it *StakeOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakeOwnershipTransferredIterator) Next ¶
func (it *StakeOwnershipTransferredIterator) 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 StakeRaw ¶
type StakeRaw struct {
Contract *Stake // Generic contract binding to access the raw methods on
}
StakeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StakeRaw) Call ¶
func (_Stake *StakeRaw) 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 (*StakeRaw) Transact ¶
func (_Stake *StakeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakeRaw) Transfer ¶
func (_Stake *StakeRaw) 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 StakeSession ¶
type StakeSession struct { Contract *Stake // 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 }
StakeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StakeSession) BuyMessages ¶
func (_Stake *StakeSession) BuyMessages(_nodeAddresses common.Address, tokens *big.Int, nonce [32]byte) (*types.Transaction, error)
BuyMessages is a paid mutator transaction binding the contract method 0xe26074f7.
Solidity: function buyMessages(address _nodeAddresses, uint256 tokens, bytes32 nonce) returns()
func (*StakeSession) EnableWithdrawal ¶
func (_Stake *StakeSession) EnableWithdrawal(_enabled bool) (*types.Transaction, error)
EnableWithdrawal is a paid mutator transaction binding the contract method 0x5636548f.
Solidity: function enableWithdrawal(bool _enabled) returns()
func (*StakeSession) GetNodeLevel ¶
GetNodeLevel is a free data retrieval call binding the contract method 0x295b87a8.
Solidity: function getNodeLevel(address _nodeAddresses) view returns(uint256)
func (*StakeSession) Initialize ¶
func (_Stake *StakeSession) Initialize(_address common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _address) returns()
func (*StakeSession) Locked ¶
func (_Stake *StakeSession) Locked() (bool, error)
Locked is a free data retrieval call binding the contract method 0xcf309012.
Solidity: function locked() view returns(bool)
func (*StakeSession) MinStake ¶
func (_Stake *StakeSession) MinStake() (*big.Int, error)
MinStake is a free data retrieval call binding the contract method 0x375b3c0a.
Solidity: function minStake() view returns(uint256)
func (*StakeSession) NodeAddresses ¶
NodeAddresses is a free data retrieval call binding the contract method 0xb58a76c0.
Solidity: function nodeAddresses(address ) view returns(address)
func (*StakeSession) NodeTokenPerMessage ¶
NodeTokenPerMessage is a free data retrieval call binding the contract method 0x76be2d21.
Solidity: function nodeTokenPerMessage(address ) view returns(uint256)
func (*StakeSession) Orders ¶
func (_Stake *StakeSession) Orders(arg0 [32]byte) (struct { NodeAddress common.Address Buyer common.Address TokenAmount *big.Int MessageAmount *big.Int }, error)
Orders is a free data retrieval call binding the contract method 0x9c3f1e90.
Solidity: function orders(bytes32 ) view returns(address nodeAddress, address buyer, uint256 tokenAmount, uint256 messageAmount)
func (*StakeSession) Owner ¶
func (_Stake *StakeSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StakeSession) RegisterNodeAccount ¶
func (_Stake *StakeSession) RegisterNodeAccount(nodeAddress common.Address) (*types.Transaction, error)
RegisterNodeAccount is a paid mutator transaction binding the contract method 0x433eeb98.
Solidity: function registerNodeAccount(address nodeAddress) returns()
func (*StakeSession) RenounceOwnership ¶
func (_Stake *StakeSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StakeSession) SetMinStake ¶
func (_Stake *StakeSession) SetMinStake(_stake *big.Int) (*types.Transaction, error)
SetMinStake is a paid mutator transaction binding the contract method 0x8c80fd90.
Solidity: function setMinStake(uint256 _stake) returns()
func (*StakeSession) SetTokenPerMessage ¶
func (_Stake *StakeSession) SetTokenPerMessage(rate *big.Int) (*types.Transaction, error)
SetTokenPerMessage is a paid mutator transaction binding the contract method 0xaf14be57.
Solidity: function setTokenPerMessage(uint256 rate) returns()
func (*StakeSession) Stake ¶
func (_Stake *StakeSession) Stake(amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 amount) returns()
func (*StakeSession) StakeAddresses ¶
StakeAddresses is a free data retrieval call binding the contract method 0x6a7cce86.
Solidity: function stakeAddresses(address ) view returns(address)
func (*StakeSession) StakeBalance ¶
StakeBalance is a free data retrieval call binding the contract method 0x4e7c57a6.
Solidity: function stakeBalance(address ) view returns(uint256)
func (*StakeSession) TransferOwnership ¶
func (_Stake *StakeSession) 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 (*StakeSession) UnStake ¶
func (_Stake *StakeSession) UnStake() (*types.Transaction, error)
UnStake is a paid mutator transaction binding the contract method 0x73cf575a.
Solidity: function unStake() returns()
func (*StakeSession) UserMessages ¶
func (_Stake *StakeSession) UserMessages(arg0 common.Address, arg1 common.Address) (*big.Int, error)
UserMessages is a free data retrieval call binding the contract method 0xa7ba2df2.
Solidity: function userMessages(address , address ) view returns(uint256)
func (*StakeSession) WithdrawalEnabled ¶
func (_Stake *StakeSession) WithdrawalEnabled() (bool, error)
WithdrawalEnabled is a free data retrieval call binding the contract method 0xf8ea5daf.
Solidity: function withdrawalEnabled() view returns(bool)
type StakeStakeEvent ¶
type StakeStakeEvent struct { Account common.Address Amount *big.Int Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
StakeStakeEvent represents a StakeEvent event raised by the Stake contract.
type StakeStakeEventIterator ¶
type StakeStakeEventIterator struct { Event *StakeStakeEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakeStakeEventIterator is returned from FilterStakeEvent and is used to iterate over the raw logs and unpacked data for StakeEvent events raised by the Stake contract.
func (*StakeStakeEventIterator) Close ¶
func (it *StakeStakeEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakeStakeEventIterator) Error ¶
func (it *StakeStakeEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakeStakeEventIterator) Next ¶
func (it *StakeStakeEventIterator) 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 StakeTransactor ¶
type StakeTransactor struct {
// contains filtered or unexported fields
}
StakeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStakeTransactor ¶
func NewStakeTransactor(address common.Address, transactor bind.ContractTransactor) (*StakeTransactor, error)
NewStakeTransactor creates a new write-only instance of Stake, bound to a specific deployed contract.
func (*StakeTransactor) BuyMessages ¶
func (_Stake *StakeTransactor) BuyMessages(opts *bind.TransactOpts, _nodeAddresses common.Address, tokens *big.Int, nonce [32]byte) (*types.Transaction, error)
BuyMessages is a paid mutator transaction binding the contract method 0xe26074f7.
Solidity: function buyMessages(address _nodeAddresses, uint256 tokens, bytes32 nonce) returns()
func (*StakeTransactor) EnableWithdrawal ¶
func (_Stake *StakeTransactor) EnableWithdrawal(opts *bind.TransactOpts, _enabled bool) (*types.Transaction, error)
EnableWithdrawal is a paid mutator transaction binding the contract method 0x5636548f.
Solidity: function enableWithdrawal(bool _enabled) returns()
func (*StakeTransactor) Initialize ¶
func (_Stake *StakeTransactor) Initialize(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _address) returns()
func (*StakeTransactor) RegisterNodeAccount ¶
func (_Stake *StakeTransactor) RegisterNodeAccount(opts *bind.TransactOpts, nodeAddress common.Address) (*types.Transaction, error)
RegisterNodeAccount is a paid mutator transaction binding the contract method 0x433eeb98.
Solidity: function registerNodeAccount(address nodeAddress) returns()
func (*StakeTransactor) RenounceOwnership ¶
func (_Stake *StakeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StakeTransactor) SetMinStake ¶
func (_Stake *StakeTransactor) SetMinStake(opts *bind.TransactOpts, _stake *big.Int) (*types.Transaction, error)
SetMinStake is a paid mutator transaction binding the contract method 0x8c80fd90.
Solidity: function setMinStake(uint256 _stake) returns()
func (*StakeTransactor) SetTokenPerMessage ¶
func (_Stake *StakeTransactor) SetTokenPerMessage(opts *bind.TransactOpts, rate *big.Int) (*types.Transaction, error)
SetTokenPerMessage is a paid mutator transaction binding the contract method 0xaf14be57.
Solidity: function setTokenPerMessage(uint256 rate) returns()
func (*StakeTransactor) Stake ¶
func (_Stake *StakeTransactor) Stake(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 amount) returns()
func (*StakeTransactor) TransferOwnership ¶
func (_Stake *StakeTransactor) 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 (*StakeTransactor) UnStake ¶
func (_Stake *StakeTransactor) UnStake(opts *bind.TransactOpts) (*types.Transaction, error)
UnStake is a paid mutator transaction binding the contract method 0x73cf575a.
Solidity: function unStake() returns()
type StakeTransactorRaw ¶
type StakeTransactorRaw struct {
Contract *StakeTransactor // Generic write-only contract binding to access the raw methods on
}
StakeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StakeTransactorRaw) Transact ¶
func (_Stake *StakeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakeTransactorRaw) Transfer ¶
func (_Stake *StakeTransactorRaw) 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 StakeTransactorSession ¶
type StakeTransactorSession struct { Contract *StakeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StakeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StakeTransactorSession) BuyMessages ¶
func (_Stake *StakeTransactorSession) BuyMessages(_nodeAddresses common.Address, tokens *big.Int, nonce [32]byte) (*types.Transaction, error)
BuyMessages is a paid mutator transaction binding the contract method 0xe26074f7.
Solidity: function buyMessages(address _nodeAddresses, uint256 tokens, bytes32 nonce) returns()
func (*StakeTransactorSession) EnableWithdrawal ¶
func (_Stake *StakeTransactorSession) EnableWithdrawal(_enabled bool) (*types.Transaction, error)
EnableWithdrawal is a paid mutator transaction binding the contract method 0x5636548f.
Solidity: function enableWithdrawal(bool _enabled) returns()
func (*StakeTransactorSession) Initialize ¶
func (_Stake *StakeTransactorSession) Initialize(_address common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _address) returns()
func (*StakeTransactorSession) RegisterNodeAccount ¶
func (_Stake *StakeTransactorSession) RegisterNodeAccount(nodeAddress common.Address) (*types.Transaction, error)
RegisterNodeAccount is a paid mutator transaction binding the contract method 0x433eeb98.
Solidity: function registerNodeAccount(address nodeAddress) returns()
func (*StakeTransactorSession) RenounceOwnership ¶
func (_Stake *StakeTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StakeTransactorSession) SetMinStake ¶
func (_Stake *StakeTransactorSession) SetMinStake(_stake *big.Int) (*types.Transaction, error)
SetMinStake is a paid mutator transaction binding the contract method 0x8c80fd90.
Solidity: function setMinStake(uint256 _stake) returns()
func (*StakeTransactorSession) SetTokenPerMessage ¶
func (_Stake *StakeTransactorSession) SetTokenPerMessage(rate *big.Int) (*types.Transaction, error)
SetTokenPerMessage is a paid mutator transaction binding the contract method 0xaf14be57.
Solidity: function setTokenPerMessage(uint256 rate) returns()
func (*StakeTransactorSession) Stake ¶
func (_Stake *StakeTransactorSession) Stake(amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 amount) returns()
func (*StakeTransactorSession) TransferOwnership ¶
func (_Stake *StakeTransactorSession) 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 (*StakeTransactorSession) UnStake ¶
func (_Stake *StakeTransactorSession) UnStake() (*types.Transaction, error)
UnStake is a paid mutator transaction binding the contract method 0x73cf575a.
Solidity: function unStake() returns()
type StakeUnStakeEvent ¶
type StakeUnStakeEvent struct { Account common.Address Amount *big.Int Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
StakeUnStakeEvent represents a UnStakeEvent event raised by the Stake contract.
type StakeUnStakeEventIterator ¶
type StakeUnStakeEventIterator struct { Event *StakeUnStakeEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakeUnStakeEventIterator is returned from FilterUnStakeEvent and is used to iterate over the raw logs and unpacked data for UnStakeEvent events raised by the Stake contract.
func (*StakeUnStakeEventIterator) Close ¶
func (it *StakeUnStakeEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakeUnStakeEventIterator) Error ¶
func (it *StakeUnStakeEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakeUnStakeEventIterator) Next ¶
func (it *StakeUnStakeEventIterator) 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.