stake

package
v0.15.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StakeABI = StakeMetaData.ABI

StakeABI is the input ABI used to generate the binding from. Deprecated: Use StakeMetaData.ABI instead.

View Source
var StakeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_bzzToken\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_NetworkId\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"slashed\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"StakeFrozen\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"slashed\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"StakeSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lastUpdatedBlock\",\"type\":\"uint256\"}],\"name\":\"StakeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REDISTRIBUTOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bzzToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"freezeDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"}],\"name\":\"lastUpdatedBlockNumberOfOverlay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"}],\"name\":\"ownerOfOverlay\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"slashDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"}],\"name\":\"stakeOfOverlay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"stakes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stakeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"lastUpdatedBlockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isValue\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unPause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"}],\"name\":\"usableStakeOfOverlay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"overlay\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFromStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

StakeMetaData contains all meta data concerning the Stake contract.

Functions

func NewCheck

func NewCheck(logger logging.Logger) beekeeper.Action

NewCheck returns a new check instance.

Types

type Check

type Check struct {
	// contains filtered or unexported fields
}

Check instance.

func (*Check) Run

func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts interface{}) (err error)

type Options

type Options struct {
	Amount             *big.Int
	InsufficientAmount *big.Int
	ContractAddr       string
	CallerPrivateKey   string
	GethURL            string
	GethChainID        *big.Int
}

Options represents stake options

func NewDefaultOptions

func NewDefaultOptions() Options

NewDefaultOptions returns new default options

type Stake added in v0.11.13

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.

func NewStake added in v0.11.13

func NewStake(address common.Address, backend bind.ContractBackend) (*Stake, error)

NewStake creates a new instance of Stake, bound to a specific deployed contract.

type StakeCaller added in v0.11.13

type StakeCaller struct {
	// contains filtered or unexported fields
}

StakeCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewStakeCaller added in v0.11.13

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) BzzToken added in v0.11.13

func (_Stake *StakeCaller) BzzToken(opts *bind.CallOpts) (common.Address, error)

BzzToken is a free data retrieval call binding the contract method 0x420fc4db.

Solidity: function bzzToken() view returns(address)

func (*StakeCaller) DEFAULTADMINROLE added in v0.11.13

func (_Stake *StakeCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*StakeCaller) GetRoleAdmin added in v0.11.13

func (_Stake *StakeCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*StakeCaller) HasRole added in v0.11.13

func (_Stake *StakeCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*StakeCaller) LastUpdatedBlockNumberOfOverlay added in v0.11.13

func (_Stake *StakeCaller) LastUpdatedBlockNumberOfOverlay(opts *bind.CallOpts, overlay [32]byte) (*big.Int, error)

LastUpdatedBlockNumberOfOverlay is a free data retrieval call binding the contract method 0xede41302.

Solidity: function lastUpdatedBlockNumberOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeCaller) OwnerOfOverlay added in v0.11.13

func (_Stake *StakeCaller) OwnerOfOverlay(opts *bind.CallOpts, overlay [32]byte) (common.Address, error)

OwnerOfOverlay is a free data retrieval call binding the contract method 0xa0d22b21.

Solidity: function ownerOfOverlay(bytes32 overlay) view returns(address)

func (*StakeCaller) PAUSERROLE added in v0.11.13

func (_Stake *StakeCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*StakeCaller) Paused added in v0.11.13

func (_Stake *StakeCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*StakeCaller) REDISTRIBUTORROLE added in v0.11.13

func (_Stake *StakeCaller) REDISTRIBUTORROLE(opts *bind.CallOpts) ([32]byte, error)

REDISTRIBUTORROLE is a free data retrieval call binding the contract method 0xa6471a1d.

Solidity: function REDISTRIBUTOR_ROLE() view returns(bytes32)

func (*StakeCaller) StakeOfOverlay added in v0.11.13

func (_Stake *StakeCaller) StakeOfOverlay(opts *bind.CallOpts, overlay [32]byte) (*big.Int, error)

StakeOfOverlay is a free data retrieval call binding the contract method 0x48962b93.

Solidity: function stakeOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeCaller) Stakes added in v0.11.13

func (_Stake *StakeCaller) Stakes(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Overlay                [32]byte
	StakeAmount            *big.Int
	Owner                  common.Address
	LastUpdatedBlockNumber *big.Int
	IsValue                bool
}, error)

Stakes is a free data retrieval call binding the contract method 0x8fee6407.

Solidity: function stakes(bytes32 ) view returns(bytes32 overlay, uint256 stakeAmount, address owner, uint256 lastUpdatedBlockNumber, bool isValue)

func (*StakeCaller) SupportsInterface added in v0.11.13

func (_Stake *StakeCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*StakeCaller) UsableStakeOfOverlay added in v0.11.13

func (_Stake *StakeCaller) UsableStakeOfOverlay(opts *bind.CallOpts, overlay [32]byte) (*big.Int, error)

UsableStakeOfOverlay is a free data retrieval call binding the contract method 0xabe38543.

Solidity: function usableStakeOfOverlay(bytes32 overlay) view returns(uint256)

type StakeCallerRaw added in v0.11.13

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 added in v0.11.13

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 added in v0.11.13

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) BzzToken added in v0.11.13

func (_Stake *StakeCallerSession) BzzToken() (common.Address, error)

BzzToken is a free data retrieval call binding the contract method 0x420fc4db.

Solidity: function bzzToken() view returns(address)

func (*StakeCallerSession) DEFAULTADMINROLE added in v0.11.13

func (_Stake *StakeCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*StakeCallerSession) GetRoleAdmin added in v0.11.13

func (_Stake *StakeCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*StakeCallerSession) HasRole added in v0.11.13

func (_Stake *StakeCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*StakeCallerSession) LastUpdatedBlockNumberOfOverlay added in v0.11.13

func (_Stake *StakeCallerSession) LastUpdatedBlockNumberOfOverlay(overlay [32]byte) (*big.Int, error)

LastUpdatedBlockNumberOfOverlay is a free data retrieval call binding the contract method 0xede41302.

Solidity: function lastUpdatedBlockNumberOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeCallerSession) OwnerOfOverlay added in v0.11.13

func (_Stake *StakeCallerSession) OwnerOfOverlay(overlay [32]byte) (common.Address, error)

OwnerOfOverlay is a free data retrieval call binding the contract method 0xa0d22b21.

Solidity: function ownerOfOverlay(bytes32 overlay) view returns(address)

func (*StakeCallerSession) PAUSERROLE added in v0.11.13

func (_Stake *StakeCallerSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*StakeCallerSession) Paused added in v0.11.13

func (_Stake *StakeCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*StakeCallerSession) REDISTRIBUTORROLE added in v0.11.13

func (_Stake *StakeCallerSession) REDISTRIBUTORROLE() ([32]byte, error)

REDISTRIBUTORROLE is a free data retrieval call binding the contract method 0xa6471a1d.

Solidity: function REDISTRIBUTOR_ROLE() view returns(bytes32)

func (*StakeCallerSession) StakeOfOverlay added in v0.11.13

func (_Stake *StakeCallerSession) StakeOfOverlay(overlay [32]byte) (*big.Int, error)

StakeOfOverlay is a free data retrieval call binding the contract method 0x48962b93.

Solidity: function stakeOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeCallerSession) Stakes added in v0.11.13

func (_Stake *StakeCallerSession) Stakes(arg0 [32]byte) (struct {
	Overlay                [32]byte
	StakeAmount            *big.Int
	Owner                  common.Address
	LastUpdatedBlockNumber *big.Int
	IsValue                bool
}, error)

Stakes is a free data retrieval call binding the contract method 0x8fee6407.

Solidity: function stakes(bytes32 ) view returns(bytes32 overlay, uint256 stakeAmount, address owner, uint256 lastUpdatedBlockNumber, bool isValue)

func (*StakeCallerSession) SupportsInterface added in v0.11.13

func (_Stake *StakeCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*StakeCallerSession) UsableStakeOfOverlay added in v0.11.13

func (_Stake *StakeCallerSession) UsableStakeOfOverlay(overlay [32]byte) (*big.Int, error)

UsableStakeOfOverlay is a free data retrieval call binding the contract method 0xabe38543.

Solidity: function usableStakeOfOverlay(bytes32 overlay) view returns(uint256)

type StakeFilterer added in v0.11.13

type StakeFilterer struct {
	// contains filtered or unexported fields
}

StakeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewStakeFilterer added in v0.11.13

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) FilterPaused added in v0.11.13

func (_Stake *StakeFilterer) FilterPaused(opts *bind.FilterOpts) (*StakePausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*StakeFilterer) FilterRoleAdminChanged added in v0.11.13

func (_Stake *StakeFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*StakeRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*StakeFilterer) FilterRoleGranted added in v0.11.13

func (_Stake *StakeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*StakeRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakeFilterer) FilterRoleRevoked added in v0.11.13

func (_Stake *StakeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*StakeRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakeFilterer) FilterStakeFrozen added in v0.11.13

func (_Stake *StakeFilterer) FilterStakeFrozen(opts *bind.FilterOpts) (*StakeStakeFrozenIterator, error)

FilterStakeFrozen is a free log retrieval operation binding the contract event 0x340439a63c1ee2404f5b7010cab559b4dcbfc28b8baab9acade354fd688ae2b9.

Solidity: event StakeFrozen(bytes32 slashed, uint256 time)

func (*StakeFilterer) FilterStakeSlashed added in v0.11.13

func (_Stake *StakeFilterer) FilterStakeSlashed(opts *bind.FilterOpts) (*StakeStakeSlashedIterator, error)

FilterStakeSlashed is a free log retrieval operation binding the contract event 0x0956b50d4d586f6b9c90800d4e713bd2b866e044decd047e6d70ea20314ab308.

Solidity: event StakeSlashed(bytes32 slashed, uint256 amount)

func (*StakeFilterer) FilterStakeUpdated added in v0.11.13

func (_Stake *StakeFilterer) FilterStakeUpdated(opts *bind.FilterOpts, overlay [][32]byte) (*StakeStakeUpdatedIterator, error)

FilterStakeUpdated is a free log retrieval operation binding the contract event 0x61e979698346a2aa868a3a9f08d30c846174841dc9b074bbf2a82d20554bc682.

Solidity: event StakeUpdated(bytes32 indexed overlay, uint256 stakeAmount, address owner, uint256 lastUpdatedBlock)

func (*StakeFilterer) FilterUnpaused added in v0.11.13

func (_Stake *StakeFilterer) FilterUnpaused(opts *bind.FilterOpts) (*StakeUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*StakeFilterer) ParsePaused added in v0.11.13

func (_Stake *StakeFilterer) ParsePaused(log types.Log) (*StakePaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*StakeFilterer) ParseRoleAdminChanged added in v0.11.13

func (_Stake *StakeFilterer) ParseRoleAdminChanged(log types.Log) (*StakeRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*StakeFilterer) ParseRoleGranted added in v0.11.13

func (_Stake *StakeFilterer) ParseRoleGranted(log types.Log) (*StakeRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakeFilterer) ParseRoleRevoked added in v0.11.13

func (_Stake *StakeFilterer) ParseRoleRevoked(log types.Log) (*StakeRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakeFilterer) ParseStakeFrozen added in v0.11.13

func (_Stake *StakeFilterer) ParseStakeFrozen(log types.Log) (*StakeStakeFrozen, error)

ParseStakeFrozen is a log parse operation binding the contract event 0x340439a63c1ee2404f5b7010cab559b4dcbfc28b8baab9acade354fd688ae2b9.

Solidity: event StakeFrozen(bytes32 slashed, uint256 time)

func (*StakeFilterer) ParseStakeSlashed added in v0.11.13

func (_Stake *StakeFilterer) ParseStakeSlashed(log types.Log) (*StakeStakeSlashed, error)

ParseStakeSlashed is a log parse operation binding the contract event 0x0956b50d4d586f6b9c90800d4e713bd2b866e044decd047e6d70ea20314ab308.

Solidity: event StakeSlashed(bytes32 slashed, uint256 amount)

func (*StakeFilterer) ParseStakeUpdated added in v0.11.13

func (_Stake *StakeFilterer) ParseStakeUpdated(log types.Log) (*StakeStakeUpdated, error)

ParseStakeUpdated is a log parse operation binding the contract event 0x61e979698346a2aa868a3a9f08d30c846174841dc9b074bbf2a82d20554bc682.

Solidity: event StakeUpdated(bytes32 indexed overlay, uint256 stakeAmount, address owner, uint256 lastUpdatedBlock)

func (*StakeFilterer) ParseUnpaused added in v0.11.13

func (_Stake *StakeFilterer) ParseUnpaused(log types.Log) (*StakeUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*StakeFilterer) WatchPaused added in v0.11.13

func (_Stake *StakeFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *StakePaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*StakeFilterer) WatchRoleAdminChanged added in v0.11.13

func (_Stake *StakeFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *StakeRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*StakeFilterer) WatchRoleGranted added in v0.11.13

func (_Stake *StakeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *StakeRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakeFilterer) WatchRoleRevoked added in v0.11.13

func (_Stake *StakeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *StakeRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakeFilterer) WatchStakeFrozen added in v0.11.13

func (_Stake *StakeFilterer) WatchStakeFrozen(opts *bind.WatchOpts, sink chan<- *StakeStakeFrozen) (event.Subscription, error)

WatchStakeFrozen is a free log subscription operation binding the contract event 0x340439a63c1ee2404f5b7010cab559b4dcbfc28b8baab9acade354fd688ae2b9.

Solidity: event StakeFrozen(bytes32 slashed, uint256 time)

func (*StakeFilterer) WatchStakeSlashed added in v0.11.13

func (_Stake *StakeFilterer) WatchStakeSlashed(opts *bind.WatchOpts, sink chan<- *StakeStakeSlashed) (event.Subscription, error)

WatchStakeSlashed is a free log subscription operation binding the contract event 0x0956b50d4d586f6b9c90800d4e713bd2b866e044decd047e6d70ea20314ab308.

Solidity: event StakeSlashed(bytes32 slashed, uint256 amount)

func (*StakeFilterer) WatchStakeUpdated added in v0.11.13

func (_Stake *StakeFilterer) WatchStakeUpdated(opts *bind.WatchOpts, sink chan<- *StakeStakeUpdated, overlay [][32]byte) (event.Subscription, error)

WatchStakeUpdated is a free log subscription operation binding the contract event 0x61e979698346a2aa868a3a9f08d30c846174841dc9b074bbf2a82d20554bc682.

Solidity: event StakeUpdated(bytes32 indexed overlay, uint256 stakeAmount, address owner, uint256 lastUpdatedBlock)

func (*StakeFilterer) WatchUnpaused added in v0.11.13

func (_Stake *StakeFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *StakeUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type StakePaused added in v0.11.13

type StakePaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakePaused represents a Paused event raised by the Stake contract.

type StakePausedIterator added in v0.11.13

type StakePausedIterator struct {
	Event *StakePaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Stake contract.

func (*StakePausedIterator) Close added in v0.11.13

func (it *StakePausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakePausedIterator) Error added in v0.11.13

func (it *StakePausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakePausedIterator) Next added in v0.11.13

func (it *StakePausedIterator) 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 added in v0.11.13

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 added in v0.11.13

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 added in v0.11.13

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 added in v0.11.13

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 StakeRoleAdminChanged added in v0.11.13

type StakeRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

StakeRoleAdminChanged represents a RoleAdminChanged event raised by the Stake contract.

type StakeRoleAdminChangedIterator added in v0.11.13

type StakeRoleAdminChangedIterator struct {
	Event *StakeRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Stake contract.

func (*StakeRoleAdminChangedIterator) Close added in v0.11.13

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeRoleAdminChangedIterator) Error added in v0.11.13

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeRoleAdminChangedIterator) Next added in v0.11.13

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 StakeRoleGranted added in v0.11.13

type StakeRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakeRoleGranted represents a RoleGranted event raised by the Stake contract.

type StakeRoleGrantedIterator added in v0.11.13

type StakeRoleGrantedIterator struct {
	Event *StakeRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Stake contract.

func (*StakeRoleGrantedIterator) Close added in v0.11.13

func (it *StakeRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeRoleGrantedIterator) Error added in v0.11.13

func (it *StakeRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeRoleGrantedIterator) Next added in v0.11.13

func (it *StakeRoleGrantedIterator) 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 StakeRoleRevoked added in v0.11.13

type StakeRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakeRoleRevoked represents a RoleRevoked event raised by the Stake contract.

type StakeRoleRevokedIterator added in v0.11.13

type StakeRoleRevokedIterator struct {
	Event *StakeRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Stake contract.

func (*StakeRoleRevokedIterator) Close added in v0.11.13

func (it *StakeRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeRoleRevokedIterator) Error added in v0.11.13

func (it *StakeRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeRoleRevokedIterator) Next added in v0.11.13

func (it *StakeRoleRevokedIterator) 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 StakeSession added in v0.11.13

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) BzzToken added in v0.11.13

func (_Stake *StakeSession) BzzToken() (common.Address, error)

BzzToken is a free data retrieval call binding the contract method 0x420fc4db.

Solidity: function bzzToken() view returns(address)

func (*StakeSession) DEFAULTADMINROLE added in v0.11.13

func (_Stake *StakeSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*StakeSession) DepositStake added in v0.11.13

func (_Stake *StakeSession) DepositStake(_owner common.Address, nonce [32]byte, amount *big.Int) (*types.Transaction, error)

DepositStake is a paid mutator transaction binding the contract method 0x1ed2cd40.

Solidity: function depositStake(address _owner, bytes32 nonce, uint256 amount) returns()

func (*StakeSession) FreezeDeposit added in v0.11.13

func (_Stake *StakeSession) FreezeDeposit(overlay [32]byte, time *big.Int) (*types.Transaction, error)

FreezeDeposit is a paid mutator transaction binding the contract method 0x837fd16a.

Solidity: function freezeDeposit(bytes32 overlay, uint256 time) returns()

func (*StakeSession) GetRoleAdmin added in v0.11.13

func (_Stake *StakeSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*StakeSession) GrantRole added in v0.11.13

func (_Stake *StakeSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*StakeSession) HasRole added in v0.11.13

func (_Stake *StakeSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*StakeSession) LastUpdatedBlockNumberOfOverlay added in v0.11.13

func (_Stake *StakeSession) LastUpdatedBlockNumberOfOverlay(overlay [32]byte) (*big.Int, error)

LastUpdatedBlockNumberOfOverlay is a free data retrieval call binding the contract method 0xede41302.

Solidity: function lastUpdatedBlockNumberOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeSession) OwnerOfOverlay added in v0.11.13

func (_Stake *StakeSession) OwnerOfOverlay(overlay [32]byte) (common.Address, error)

OwnerOfOverlay is a free data retrieval call binding the contract method 0xa0d22b21.

Solidity: function ownerOfOverlay(bytes32 overlay) view returns(address)

func (*StakeSession) PAUSERROLE added in v0.11.13

func (_Stake *StakeSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*StakeSession) Pause added in v0.11.13

func (_Stake *StakeSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*StakeSession) Paused added in v0.11.13

func (_Stake *StakeSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*StakeSession) REDISTRIBUTORROLE added in v0.11.13

func (_Stake *StakeSession) REDISTRIBUTORROLE() ([32]byte, error)

REDISTRIBUTORROLE is a free data retrieval call binding the contract method 0xa6471a1d.

Solidity: function REDISTRIBUTOR_ROLE() view returns(bytes32)

func (*StakeSession) RenounceRole added in v0.11.13

func (_Stake *StakeSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*StakeSession) RevokeRole added in v0.11.13

func (_Stake *StakeSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*StakeSession) SlashDeposit added in v0.11.13

func (_Stake *StakeSession) SlashDeposit(overlay [32]byte, amount *big.Int) (*types.Transaction, error)

SlashDeposit is a paid mutator transaction binding the contract method 0xa6ce31d4.

Solidity: function slashDeposit(bytes32 overlay, uint256 amount) returns()

func (*StakeSession) StakeOfOverlay added in v0.11.13

func (_Stake *StakeSession) StakeOfOverlay(overlay [32]byte) (*big.Int, error)

StakeOfOverlay is a free data retrieval call binding the contract method 0x48962b93.

Solidity: function stakeOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeSession) Stakes added in v0.11.13

func (_Stake *StakeSession) Stakes(arg0 [32]byte) (struct {
	Overlay                [32]byte
	StakeAmount            *big.Int
	Owner                  common.Address
	LastUpdatedBlockNumber *big.Int
	IsValue                bool
}, error)

Stakes is a free data retrieval call binding the contract method 0x8fee6407.

Solidity: function stakes(bytes32 ) view returns(bytes32 overlay, uint256 stakeAmount, address owner, uint256 lastUpdatedBlockNumber, bool isValue)

func (*StakeSession) SupportsInterface added in v0.11.13

func (_Stake *StakeSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*StakeSession) UnPause added in v0.11.13

func (_Stake *StakeSession) UnPause() (*types.Transaction, error)

UnPause is a paid mutator transaction binding the contract method 0xf7b188a5.

Solidity: function unPause() returns()

func (*StakeSession) UsableStakeOfOverlay added in v0.11.13

func (_Stake *StakeSession) UsableStakeOfOverlay(overlay [32]byte) (*big.Int, error)

UsableStakeOfOverlay is a free data retrieval call binding the contract method 0xabe38543.

Solidity: function usableStakeOfOverlay(bytes32 overlay) view returns(uint256)

func (*StakeSession) WithdrawFromStake added in v0.11.13

func (_Stake *StakeSession) WithdrawFromStake(overlay [32]byte, amount *big.Int) (*types.Transaction, error)

WithdrawFromStake is a paid mutator transaction binding the contract method 0xe34c4527.

Solidity: function withdrawFromStake(bytes32 overlay, uint256 amount) returns()

type StakeStakeFrozen added in v0.11.13

type StakeStakeFrozen struct {
	Slashed [32]byte
	Time    *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StakeStakeFrozen represents a StakeFrozen event raised by the Stake contract.

type StakeStakeFrozenIterator added in v0.11.13

type StakeStakeFrozenIterator struct {
	Event *StakeStakeFrozen // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeStakeFrozenIterator is returned from FilterStakeFrozen and is used to iterate over the raw logs and unpacked data for StakeFrozen events raised by the Stake contract.

func (*StakeStakeFrozenIterator) Close added in v0.11.13

func (it *StakeStakeFrozenIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeStakeFrozenIterator) Error added in v0.11.13

func (it *StakeStakeFrozenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeStakeFrozenIterator) Next added in v0.11.13

func (it *StakeStakeFrozenIterator) 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 StakeStakeSlashed added in v0.11.13

type StakeStakeSlashed struct {
	Slashed [32]byte
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StakeStakeSlashed represents a StakeSlashed event raised by the Stake contract.

type StakeStakeSlashedIterator added in v0.11.13

type StakeStakeSlashedIterator struct {
	Event *StakeStakeSlashed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeStakeSlashedIterator is returned from FilterStakeSlashed and is used to iterate over the raw logs and unpacked data for StakeSlashed events raised by the Stake contract.

func (*StakeStakeSlashedIterator) Close added in v0.11.13

func (it *StakeStakeSlashedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeStakeSlashedIterator) Error added in v0.11.13

func (it *StakeStakeSlashedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeStakeSlashedIterator) Next added in v0.11.13

func (it *StakeStakeSlashedIterator) 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 StakeStakeUpdated added in v0.11.13

type StakeStakeUpdated struct {
	Overlay          [32]byte
	StakeAmount      *big.Int
	Owner            common.Address
	LastUpdatedBlock *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

StakeStakeUpdated represents a StakeUpdated event raised by the Stake contract.

type StakeStakeUpdatedIterator added in v0.11.13

type StakeStakeUpdatedIterator struct {
	Event *StakeStakeUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeStakeUpdatedIterator is returned from FilterStakeUpdated and is used to iterate over the raw logs and unpacked data for StakeUpdated events raised by the Stake contract.

func (*StakeStakeUpdatedIterator) Close added in v0.11.13

func (it *StakeStakeUpdatedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeStakeUpdatedIterator) Error added in v0.11.13

func (it *StakeStakeUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeStakeUpdatedIterator) Next added in v0.11.13

func (it *StakeStakeUpdatedIterator) 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 added in v0.11.13

type StakeTransactor struct {
	// contains filtered or unexported fields
}

StakeTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewStakeTransactor added in v0.11.13

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) DepositStake added in v0.11.13

func (_Stake *StakeTransactor) DepositStake(opts *bind.TransactOpts, _owner common.Address, nonce [32]byte, amount *big.Int) (*types.Transaction, error)

DepositStake is a paid mutator transaction binding the contract method 0x1ed2cd40.

Solidity: function depositStake(address _owner, bytes32 nonce, uint256 amount) returns()

func (*StakeTransactor) FreezeDeposit added in v0.11.13

func (_Stake *StakeTransactor) FreezeDeposit(opts *bind.TransactOpts, overlay [32]byte, time *big.Int) (*types.Transaction, error)

FreezeDeposit is a paid mutator transaction binding the contract method 0x837fd16a.

Solidity: function freezeDeposit(bytes32 overlay, uint256 time) returns()

func (*StakeTransactor) GrantRole added in v0.11.13

func (_Stake *StakeTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*StakeTransactor) Pause added in v0.11.13

func (_Stake *StakeTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*StakeTransactor) RenounceRole added in v0.11.13

func (_Stake *StakeTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*StakeTransactor) RevokeRole added in v0.11.13

func (_Stake *StakeTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*StakeTransactor) SlashDeposit added in v0.11.13

func (_Stake *StakeTransactor) SlashDeposit(opts *bind.TransactOpts, overlay [32]byte, amount *big.Int) (*types.Transaction, error)

SlashDeposit is a paid mutator transaction binding the contract method 0xa6ce31d4.

Solidity: function slashDeposit(bytes32 overlay, uint256 amount) returns()

func (*StakeTransactor) UnPause added in v0.11.13

func (_Stake *StakeTransactor) UnPause(opts *bind.TransactOpts) (*types.Transaction, error)

UnPause is a paid mutator transaction binding the contract method 0xf7b188a5.

Solidity: function unPause() returns()

func (*StakeTransactor) WithdrawFromStake added in v0.11.13

func (_Stake *StakeTransactor) WithdrawFromStake(opts *bind.TransactOpts, overlay [32]byte, amount *big.Int) (*types.Transaction, error)

WithdrawFromStake is a paid mutator transaction binding the contract method 0xe34c4527.

Solidity: function withdrawFromStake(bytes32 overlay, uint256 amount) returns()

type StakeTransactorRaw added in v0.11.13

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 added in v0.11.13

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 added in v0.11.13

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 added in v0.11.13

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) DepositStake added in v0.11.13

func (_Stake *StakeTransactorSession) DepositStake(_owner common.Address, nonce [32]byte, amount *big.Int) (*types.Transaction, error)

DepositStake is a paid mutator transaction binding the contract method 0x1ed2cd40.

Solidity: function depositStake(address _owner, bytes32 nonce, uint256 amount) returns()

func (*StakeTransactorSession) FreezeDeposit added in v0.11.13

func (_Stake *StakeTransactorSession) FreezeDeposit(overlay [32]byte, time *big.Int) (*types.Transaction, error)

FreezeDeposit is a paid mutator transaction binding the contract method 0x837fd16a.

Solidity: function freezeDeposit(bytes32 overlay, uint256 time) returns()

func (*StakeTransactorSession) GrantRole added in v0.11.13

func (_Stake *StakeTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*StakeTransactorSession) Pause added in v0.11.13

func (_Stake *StakeTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*StakeTransactorSession) RenounceRole added in v0.11.13

func (_Stake *StakeTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*StakeTransactorSession) RevokeRole added in v0.11.13

func (_Stake *StakeTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*StakeTransactorSession) SlashDeposit added in v0.11.13

func (_Stake *StakeTransactorSession) SlashDeposit(overlay [32]byte, amount *big.Int) (*types.Transaction, error)

SlashDeposit is a paid mutator transaction binding the contract method 0xa6ce31d4.

Solidity: function slashDeposit(bytes32 overlay, uint256 amount) returns()

func (*StakeTransactorSession) UnPause added in v0.11.13

func (_Stake *StakeTransactorSession) UnPause() (*types.Transaction, error)

UnPause is a paid mutator transaction binding the contract method 0xf7b188a5.

Solidity: function unPause() returns()

func (*StakeTransactorSession) WithdrawFromStake added in v0.11.13

func (_Stake *StakeTransactorSession) WithdrawFromStake(overlay [32]byte, amount *big.Int) (*types.Transaction, error)

WithdrawFromStake is a paid mutator transaction binding the contract method 0xe34c4527.

Solidity: function withdrawFromStake(bytes32 overlay, uint256 amount) returns()

type StakeUnpaused added in v0.11.13

type StakeUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakeUnpaused represents a Unpaused event raised by the Stake contract.

type StakeUnpausedIterator added in v0.11.13

type StakeUnpausedIterator struct {
	Event *StakeUnpaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakeUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Stake contract.

func (*StakeUnpausedIterator) Close added in v0.11.13

func (it *StakeUnpausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakeUnpausedIterator) Error added in v0.11.13

func (it *StakeUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakeUnpausedIterator) Next added in v0.11.13

func (it *StakeUnpausedIterator) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL