staking_pool_manager

package
v0.0.0-...-fa633b5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StakingPoolMangerABI = StakingPoolMangerMetaData.ABI

StakingPoolMangerABI is the input ABI used to generate the binding from. Deprecated: Use StakingPoolMangerMetaData.ABI instead.

View Source
var StakingPoolMangerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"stakingPool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"StakingPoolCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"stakingPool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"StakingPoolDestroyed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AddressSetStorage\",\"outputs\":[{\"internalType\":\"contractIAddressSetStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"enumDepositType\",\"name\":\"_depositType\",\"type\":\"uint8\"}],\"name\":\"createStakingPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"destroyStakingPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getNodeStakingPoolAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getNodeStakingPoolCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getNodeValidatingStakingPoolAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getNodeValidatingStakingPoolCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"getPrelaunchStakingpools\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getStakingPoolAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_pubkey\",\"type\":\"bytes\"}],\"name\":\"getStakingPoolByPubkey\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingPoolCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stakingPoolAddress\",\"type\":\"address\"}],\"name\":\"getStakingPoolExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stakingPoolAddress\",\"type\":\"address\"}],\"name\":\"getStakingPoolPubkey\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stakingPoolAddress\",\"type\":\"address\"}],\"name\":\"getStakingPoolWithdrawalProcessed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_pubkey\",\"type\":\"bytes\"}],\"name\":\"setStakingPoolPubkey\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stakingPoolAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_processed\",\"type\":\"bool\"}],\"name\":\"setStakingPoolWithdrawalProcessed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

StakingPoolMangerMetaData contains all meta data concerning the StakingPoolManger contract.

Functions

This section is empty.

Types

type StakingPoolManger

type StakingPoolManger struct {
	StakingPoolMangerCaller     // Read-only binding to the contract
	StakingPoolMangerTransactor // Write-only binding to the contract
	StakingPoolMangerFilterer   // Log filterer for contract events
}

StakingPoolManger is an auto generated Go binding around an Ethereum contract.

func NewStakingPoolManger

func NewStakingPoolManger(address common.Address, backend bind.ContractBackend) (*StakingPoolManger, error)

NewStakingPoolManger creates a new instance of StakingPoolManger, bound to a specific deployed contract.

type StakingPoolMangerCaller

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

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

func NewStakingPoolMangerCaller

func NewStakingPoolMangerCaller(address common.Address, caller bind.ContractCaller) (*StakingPoolMangerCaller, error)

NewStakingPoolMangerCaller creates a new read-only instance of StakingPoolManger, bound to a specific deployed contract.

func (*StakingPoolMangerCaller) AddressSetStorage

func (_StakingPoolManger *StakingPoolMangerCaller) AddressSetStorage(opts *bind.CallOpts) (common.Address, error)

AddressSetStorage is a free data retrieval call binding the contract method 0x528b04b5.

Solidity: function AddressSetStorage() view returns(address)

func (*StakingPoolMangerCaller) GetNodeStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerCaller) GetNodeStakingPoolAt(opts *bind.CallOpts, _nodeAddress common.Address, _index *big.Int) (common.Address, error)

GetNodeStakingPoolAt is a free data retrieval call binding the contract method 0xc0f27c38.

Solidity: function getNodeStakingPoolAt(address _nodeAddress, uint256 _index) view returns(address)

func (*StakingPoolMangerCaller) GetNodeStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerCaller) GetNodeStakingPoolCount(opts *bind.CallOpts, _nodeAddress common.Address) (*big.Int, error)

GetNodeStakingPoolCount is a free data retrieval call binding the contract method 0xc3d8073b.

Solidity: function getNodeStakingPoolCount(address _nodeAddress) view returns(uint256)

func (*StakingPoolMangerCaller) GetNodeValidatingStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerCaller) GetNodeValidatingStakingPoolAt(opts *bind.CallOpts, _nodeAddress common.Address, _index *big.Int) (common.Address, error)

GetNodeValidatingStakingPoolAt is a free data retrieval call binding the contract method 0x0fed8b63.

Solidity: function getNodeValidatingStakingPoolAt(address _nodeAddress, uint256 _index) view returns(address)

func (*StakingPoolMangerCaller) GetNodeValidatingStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerCaller) GetNodeValidatingStakingPoolCount(opts *bind.CallOpts, _nodeAddress common.Address) (*big.Int, error)

GetNodeValidatingStakingPoolCount is a free data retrieval call binding the contract method 0x7be535ad.

Solidity: function getNodeValidatingStakingPoolCount(address _nodeAddress) view returns(uint256)

func (*StakingPoolMangerCaller) GetPrelaunchStakingpools

func (_StakingPoolManger *StakingPoolMangerCaller) GetPrelaunchStakingpools(opts *bind.CallOpts, offset *big.Int, limit *big.Int) ([]common.Address, error)

GetPrelaunchStakingpools is a free data retrieval call binding the contract method 0xcc677617.

Solidity: function getPrelaunchStakingpools(uint256 offset, uint256 limit) view returns(address[])

func (*StakingPoolMangerCaller) GetStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerCaller) GetStakingPoolAt(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

GetStakingPoolAt is a free data retrieval call binding the contract method 0x26a71b13.

Solidity: function getStakingPoolAt(uint256 _index) view returns(address)

func (*StakingPoolMangerCaller) GetStakingPoolByPubkey

func (_StakingPoolManger *StakingPoolMangerCaller) GetStakingPoolByPubkey(opts *bind.CallOpts, _pubkey []byte) (common.Address, error)

GetStakingPoolByPubkey is a free data retrieval call binding the contract method 0x02ec7481.

Solidity: function getStakingPoolByPubkey(bytes _pubkey) view returns(address)

func (*StakingPoolMangerCaller) GetStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerCaller) GetStakingPoolCount(opts *bind.CallOpts) (*big.Int, error)

GetStakingPoolCount is a free data retrieval call binding the contract method 0x9bf00f18.

Solidity: function getStakingPoolCount() view returns(uint256)

func (*StakingPoolMangerCaller) GetStakingPoolExists

func (_StakingPoolManger *StakingPoolMangerCaller) GetStakingPoolExists(opts *bind.CallOpts, _stakingPoolAddress common.Address) (bool, error)

GetStakingPoolExists is a free data retrieval call binding the contract method 0x506419ca.

Solidity: function getStakingPoolExists(address _stakingPoolAddress) view returns(bool)

func (*StakingPoolMangerCaller) GetStakingPoolPubkey

func (_StakingPoolManger *StakingPoolMangerCaller) GetStakingPoolPubkey(opts *bind.CallOpts, _stakingPoolAddress common.Address) ([]byte, error)

GetStakingPoolPubkey is a free data retrieval call binding the contract method 0x0d4354c6.

Solidity: function getStakingPoolPubkey(address _stakingPoolAddress) view returns(bytes)

func (*StakingPoolMangerCaller) GetStakingPoolWithdrawalProcessed

func (_StakingPoolManger *StakingPoolMangerCaller) GetStakingPoolWithdrawalProcessed(opts *bind.CallOpts, _stakingPoolAddress common.Address) (bool, error)

GetStakingPoolWithdrawalProcessed is a free data retrieval call binding the contract method 0xf3e0ce85.

Solidity: function getStakingPoolWithdrawalProcessed(address _stakingPoolAddress) view returns(bool)

func (*StakingPoolMangerCaller) Version

func (_StakingPoolManger *StakingPoolMangerCaller) Version(opts *bind.CallOpts) (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type StakingPoolMangerCallerRaw

type StakingPoolMangerCallerRaw struct {
	Contract *StakingPoolMangerCaller // Generic read-only contract binding to access the raw methods on
}

StakingPoolMangerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*StakingPoolMangerCallerRaw) Call

func (_StakingPoolManger *StakingPoolMangerCallerRaw) 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 StakingPoolMangerCallerSession

type StakingPoolMangerCallerSession struct {
	Contract *StakingPoolMangerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts            // Call options to use throughout this session
}

StakingPoolMangerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*StakingPoolMangerCallerSession) AddressSetStorage

func (_StakingPoolManger *StakingPoolMangerCallerSession) AddressSetStorage() (common.Address, error)

AddressSetStorage is a free data retrieval call binding the contract method 0x528b04b5.

Solidity: function AddressSetStorage() view returns(address)

func (*StakingPoolMangerCallerSession) GetNodeStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetNodeStakingPoolAt(_nodeAddress common.Address, _index *big.Int) (common.Address, error)

GetNodeStakingPoolAt is a free data retrieval call binding the contract method 0xc0f27c38.

Solidity: function getNodeStakingPoolAt(address _nodeAddress, uint256 _index) view returns(address)

func (*StakingPoolMangerCallerSession) GetNodeStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetNodeStakingPoolCount(_nodeAddress common.Address) (*big.Int, error)

GetNodeStakingPoolCount is a free data retrieval call binding the contract method 0xc3d8073b.

Solidity: function getNodeStakingPoolCount(address _nodeAddress) view returns(uint256)

func (*StakingPoolMangerCallerSession) GetNodeValidatingStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetNodeValidatingStakingPoolAt(_nodeAddress common.Address, _index *big.Int) (common.Address, error)

GetNodeValidatingStakingPoolAt is a free data retrieval call binding the contract method 0x0fed8b63.

Solidity: function getNodeValidatingStakingPoolAt(address _nodeAddress, uint256 _index) view returns(address)

func (*StakingPoolMangerCallerSession) GetNodeValidatingStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetNodeValidatingStakingPoolCount(_nodeAddress common.Address) (*big.Int, error)

GetNodeValidatingStakingPoolCount is a free data retrieval call binding the contract method 0x7be535ad.

Solidity: function getNodeValidatingStakingPoolCount(address _nodeAddress) view returns(uint256)

func (*StakingPoolMangerCallerSession) GetPrelaunchStakingpools

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetPrelaunchStakingpools(offset *big.Int, limit *big.Int) ([]common.Address, error)

GetPrelaunchStakingpools is a free data retrieval call binding the contract method 0xcc677617.

Solidity: function getPrelaunchStakingpools(uint256 offset, uint256 limit) view returns(address[])

func (*StakingPoolMangerCallerSession) GetStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetStakingPoolAt(_index *big.Int) (common.Address, error)

GetStakingPoolAt is a free data retrieval call binding the contract method 0x26a71b13.

Solidity: function getStakingPoolAt(uint256 _index) view returns(address)

func (*StakingPoolMangerCallerSession) GetStakingPoolByPubkey

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetStakingPoolByPubkey(_pubkey []byte) (common.Address, error)

GetStakingPoolByPubkey is a free data retrieval call binding the contract method 0x02ec7481.

Solidity: function getStakingPoolByPubkey(bytes _pubkey) view returns(address)

func (*StakingPoolMangerCallerSession) GetStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetStakingPoolCount() (*big.Int, error)

GetStakingPoolCount is a free data retrieval call binding the contract method 0x9bf00f18.

Solidity: function getStakingPoolCount() view returns(uint256)

func (*StakingPoolMangerCallerSession) GetStakingPoolExists

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetStakingPoolExists(_stakingPoolAddress common.Address) (bool, error)

GetStakingPoolExists is a free data retrieval call binding the contract method 0x506419ca.

Solidity: function getStakingPoolExists(address _stakingPoolAddress) view returns(bool)

func (*StakingPoolMangerCallerSession) GetStakingPoolPubkey

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetStakingPoolPubkey(_stakingPoolAddress common.Address) ([]byte, error)

GetStakingPoolPubkey is a free data retrieval call binding the contract method 0x0d4354c6.

Solidity: function getStakingPoolPubkey(address _stakingPoolAddress) view returns(bytes)

func (*StakingPoolMangerCallerSession) GetStakingPoolWithdrawalProcessed

func (_StakingPoolManger *StakingPoolMangerCallerSession) GetStakingPoolWithdrawalProcessed(_stakingPoolAddress common.Address) (bool, error)

GetStakingPoolWithdrawalProcessed is a free data retrieval call binding the contract method 0xf3e0ce85.

Solidity: function getStakingPoolWithdrawalProcessed(address _stakingPoolAddress) view returns(bool)

func (*StakingPoolMangerCallerSession) Version

func (_StakingPoolManger *StakingPoolMangerCallerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type StakingPoolMangerFilterer

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

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

func NewStakingPoolMangerFilterer

func NewStakingPoolMangerFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingPoolMangerFilterer, error)

NewStakingPoolMangerFilterer creates a new log filterer instance of StakingPoolManger, bound to a specific deployed contract.

func (*StakingPoolMangerFilterer) FilterStakingPoolCreated

func (_StakingPoolManger *StakingPoolMangerFilterer) FilterStakingPoolCreated(opts *bind.FilterOpts, stakingPool []common.Address, node []common.Address) (*StakingPoolMangerStakingPoolCreatedIterator, error)

FilterStakingPoolCreated is a free log retrieval operation binding the contract event 0xdfba889e07ceb4b33e759a1015aa4ae7b45c3881d9cf96dbf09b8971a27fc4b7.

Solidity: event StakingPoolCreated(address indexed stakingPool, address indexed node, uint256 time)

func (*StakingPoolMangerFilterer) FilterStakingPoolDestroyed

func (_StakingPoolManger *StakingPoolMangerFilterer) FilterStakingPoolDestroyed(opts *bind.FilterOpts, stakingPool []common.Address, node []common.Address) (*StakingPoolMangerStakingPoolDestroyedIterator, error)

FilterStakingPoolDestroyed is a free log retrieval operation binding the contract event 0x458a7280951da092252cc4009cfcf959d019fef8696665c814ebff7a8d4750ea.

Solidity: event StakingPoolDestroyed(address indexed stakingPool, address indexed node, uint256 time)

func (*StakingPoolMangerFilterer) ParseStakingPoolCreated

func (_StakingPoolManger *StakingPoolMangerFilterer) ParseStakingPoolCreated(log types.Log) (*StakingPoolMangerStakingPoolCreated, error)

ParseStakingPoolCreated is a log parse operation binding the contract event 0xdfba889e07ceb4b33e759a1015aa4ae7b45c3881d9cf96dbf09b8971a27fc4b7.

Solidity: event StakingPoolCreated(address indexed stakingPool, address indexed node, uint256 time)

func (*StakingPoolMangerFilterer) ParseStakingPoolDestroyed

func (_StakingPoolManger *StakingPoolMangerFilterer) ParseStakingPoolDestroyed(log types.Log) (*StakingPoolMangerStakingPoolDestroyed, error)

ParseStakingPoolDestroyed is a log parse operation binding the contract event 0x458a7280951da092252cc4009cfcf959d019fef8696665c814ebff7a8d4750ea.

Solidity: event StakingPoolDestroyed(address indexed stakingPool, address indexed node, uint256 time)

func (*StakingPoolMangerFilterer) WatchStakingPoolCreated

func (_StakingPoolManger *StakingPoolMangerFilterer) WatchStakingPoolCreated(opts *bind.WatchOpts, sink chan<- *StakingPoolMangerStakingPoolCreated, stakingPool []common.Address, node []common.Address) (event.Subscription, error)

WatchStakingPoolCreated is a free log subscription operation binding the contract event 0xdfba889e07ceb4b33e759a1015aa4ae7b45c3881d9cf96dbf09b8971a27fc4b7.

Solidity: event StakingPoolCreated(address indexed stakingPool, address indexed node, uint256 time)

func (*StakingPoolMangerFilterer) WatchStakingPoolDestroyed

func (_StakingPoolManger *StakingPoolMangerFilterer) WatchStakingPoolDestroyed(opts *bind.WatchOpts, sink chan<- *StakingPoolMangerStakingPoolDestroyed, stakingPool []common.Address, node []common.Address) (event.Subscription, error)

WatchStakingPoolDestroyed is a free log subscription operation binding the contract event 0x458a7280951da092252cc4009cfcf959d019fef8696665c814ebff7a8d4750ea.

Solidity: event StakingPoolDestroyed(address indexed stakingPool, address indexed node, uint256 time)

type StakingPoolMangerRaw

type StakingPoolMangerRaw struct {
	Contract *StakingPoolManger // Generic contract binding to access the raw methods on
}

StakingPoolMangerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*StakingPoolMangerRaw) Call

func (_StakingPoolManger *StakingPoolMangerRaw) 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 (*StakingPoolMangerRaw) Transact

func (_StakingPoolManger *StakingPoolMangerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*StakingPoolMangerRaw) Transfer

func (_StakingPoolManger *StakingPoolMangerRaw) 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 StakingPoolMangerSession

type StakingPoolMangerSession struct {
	Contract     *StakingPoolManger // 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
}

StakingPoolMangerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*StakingPoolMangerSession) AddressSetStorage

func (_StakingPoolManger *StakingPoolMangerSession) AddressSetStorage() (common.Address, error)

AddressSetStorage is a free data retrieval call binding the contract method 0x528b04b5.

Solidity: function AddressSetStorage() view returns(address)

func (*StakingPoolMangerSession) CreateStakingPool

func (_StakingPoolManger *StakingPoolMangerSession) CreateStakingPool(_nodeAddress common.Address, _depositType uint8) (*types.Transaction, error)

CreateStakingPool is a paid mutator transaction binding the contract method 0x6e5da826.

Solidity: function createStakingPool(address _nodeAddress, uint8 _depositType) returns(address)

func (*StakingPoolMangerSession) DestroyStakingPool

func (_StakingPoolManger *StakingPoolMangerSession) DestroyStakingPool() (*types.Transaction, error)

DestroyStakingPool is a paid mutator transaction binding the contract method 0x6b16c49d.

Solidity: function destroyStakingPool() returns()

func (*StakingPoolMangerSession) GetNodeStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerSession) GetNodeStakingPoolAt(_nodeAddress common.Address, _index *big.Int) (common.Address, error)

GetNodeStakingPoolAt is a free data retrieval call binding the contract method 0xc0f27c38.

Solidity: function getNodeStakingPoolAt(address _nodeAddress, uint256 _index) view returns(address)

func (*StakingPoolMangerSession) GetNodeStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerSession) GetNodeStakingPoolCount(_nodeAddress common.Address) (*big.Int, error)

GetNodeStakingPoolCount is a free data retrieval call binding the contract method 0xc3d8073b.

Solidity: function getNodeStakingPoolCount(address _nodeAddress) view returns(uint256)

func (*StakingPoolMangerSession) GetNodeValidatingStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerSession) GetNodeValidatingStakingPoolAt(_nodeAddress common.Address, _index *big.Int) (common.Address, error)

GetNodeValidatingStakingPoolAt is a free data retrieval call binding the contract method 0x0fed8b63.

Solidity: function getNodeValidatingStakingPoolAt(address _nodeAddress, uint256 _index) view returns(address)

func (*StakingPoolMangerSession) GetNodeValidatingStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerSession) GetNodeValidatingStakingPoolCount(_nodeAddress common.Address) (*big.Int, error)

GetNodeValidatingStakingPoolCount is a free data retrieval call binding the contract method 0x7be535ad.

Solidity: function getNodeValidatingStakingPoolCount(address _nodeAddress) view returns(uint256)

func (*StakingPoolMangerSession) GetPrelaunchStakingpools

func (_StakingPoolManger *StakingPoolMangerSession) GetPrelaunchStakingpools(offset *big.Int, limit *big.Int) ([]common.Address, error)

GetPrelaunchStakingpools is a free data retrieval call binding the contract method 0xcc677617.

Solidity: function getPrelaunchStakingpools(uint256 offset, uint256 limit) view returns(address[])

func (*StakingPoolMangerSession) GetStakingPoolAt

func (_StakingPoolManger *StakingPoolMangerSession) GetStakingPoolAt(_index *big.Int) (common.Address, error)

GetStakingPoolAt is a free data retrieval call binding the contract method 0x26a71b13.

Solidity: function getStakingPoolAt(uint256 _index) view returns(address)

func (*StakingPoolMangerSession) GetStakingPoolByPubkey

func (_StakingPoolManger *StakingPoolMangerSession) GetStakingPoolByPubkey(_pubkey []byte) (common.Address, error)

GetStakingPoolByPubkey is a free data retrieval call binding the contract method 0x02ec7481.

Solidity: function getStakingPoolByPubkey(bytes _pubkey) view returns(address)

func (*StakingPoolMangerSession) GetStakingPoolCount

func (_StakingPoolManger *StakingPoolMangerSession) GetStakingPoolCount() (*big.Int, error)

GetStakingPoolCount is a free data retrieval call binding the contract method 0x9bf00f18.

Solidity: function getStakingPoolCount() view returns(uint256)

func (*StakingPoolMangerSession) GetStakingPoolExists

func (_StakingPoolManger *StakingPoolMangerSession) GetStakingPoolExists(_stakingPoolAddress common.Address) (bool, error)

GetStakingPoolExists is a free data retrieval call binding the contract method 0x506419ca.

Solidity: function getStakingPoolExists(address _stakingPoolAddress) view returns(bool)

func (*StakingPoolMangerSession) GetStakingPoolPubkey

func (_StakingPoolManger *StakingPoolMangerSession) GetStakingPoolPubkey(_stakingPoolAddress common.Address) ([]byte, error)

GetStakingPoolPubkey is a free data retrieval call binding the contract method 0x0d4354c6.

Solidity: function getStakingPoolPubkey(address _stakingPoolAddress) view returns(bytes)

func (*StakingPoolMangerSession) GetStakingPoolWithdrawalProcessed

func (_StakingPoolManger *StakingPoolMangerSession) GetStakingPoolWithdrawalProcessed(_stakingPoolAddress common.Address) (bool, error)

GetStakingPoolWithdrawalProcessed is a free data retrieval call binding the contract method 0xf3e0ce85.

Solidity: function getStakingPoolWithdrawalProcessed(address _stakingPoolAddress) view returns(bool)

func (*StakingPoolMangerSession) SetStakingPoolPubkey

func (_StakingPoolManger *StakingPoolMangerSession) SetStakingPoolPubkey(_pubkey []byte) (*types.Transaction, error)

SetStakingPoolPubkey is a paid mutator transaction binding the contract method 0xaf40d55d.

Solidity: function setStakingPoolPubkey(bytes _pubkey) returns()

func (*StakingPoolMangerSession) SetStakingPoolWithdrawalProcessed

func (_StakingPoolManger *StakingPoolMangerSession) SetStakingPoolWithdrawalProcessed(_stakingPoolAddress common.Address, _processed bool) (*types.Transaction, error)

SetStakingPoolWithdrawalProcessed is a paid mutator transaction binding the contract method 0x1189504e.

Solidity: function setStakingPoolWithdrawalProcessed(address _stakingPoolAddress, bool _processed) returns()

func (*StakingPoolMangerSession) Version

func (_StakingPoolManger *StakingPoolMangerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type StakingPoolMangerStakingPoolCreated

type StakingPoolMangerStakingPoolCreated struct {
	StakingPool common.Address
	Node        common.Address
	Time        *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

StakingPoolMangerStakingPoolCreated represents a StakingPoolCreated event raised by the StakingPoolManger contract.

type StakingPoolMangerStakingPoolCreatedIterator

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

StakingPoolMangerStakingPoolCreatedIterator is returned from FilterStakingPoolCreated and is used to iterate over the raw logs and unpacked data for StakingPoolCreated events raised by the StakingPoolManger contract.

func (*StakingPoolMangerStakingPoolCreatedIterator) Close

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

func (*StakingPoolMangerStakingPoolCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingPoolMangerStakingPoolCreatedIterator) Next

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 StakingPoolMangerStakingPoolDestroyed

type StakingPoolMangerStakingPoolDestroyed struct {
	StakingPool common.Address
	Node        common.Address
	Time        *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

StakingPoolMangerStakingPoolDestroyed represents a StakingPoolDestroyed event raised by the StakingPoolManger contract.

type StakingPoolMangerStakingPoolDestroyedIterator

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

StakingPoolMangerStakingPoolDestroyedIterator is returned from FilterStakingPoolDestroyed and is used to iterate over the raw logs and unpacked data for StakingPoolDestroyed events raised by the StakingPoolManger contract.

func (*StakingPoolMangerStakingPoolDestroyedIterator) Close

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

func (*StakingPoolMangerStakingPoolDestroyedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingPoolMangerStakingPoolDestroyedIterator) Next

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 StakingPoolMangerTransactor

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

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

func NewStakingPoolMangerTransactor

func NewStakingPoolMangerTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingPoolMangerTransactor, error)

NewStakingPoolMangerTransactor creates a new write-only instance of StakingPoolManger, bound to a specific deployed contract.

func (*StakingPoolMangerTransactor) CreateStakingPool

func (_StakingPoolManger *StakingPoolMangerTransactor) CreateStakingPool(opts *bind.TransactOpts, _nodeAddress common.Address, _depositType uint8) (*types.Transaction, error)

CreateStakingPool is a paid mutator transaction binding the contract method 0x6e5da826.

Solidity: function createStakingPool(address _nodeAddress, uint8 _depositType) returns(address)

func (*StakingPoolMangerTransactor) DestroyStakingPool

func (_StakingPoolManger *StakingPoolMangerTransactor) DestroyStakingPool(opts *bind.TransactOpts) (*types.Transaction, error)

DestroyStakingPool is a paid mutator transaction binding the contract method 0x6b16c49d.

Solidity: function destroyStakingPool() returns()

func (*StakingPoolMangerTransactor) SetStakingPoolPubkey

func (_StakingPoolManger *StakingPoolMangerTransactor) SetStakingPoolPubkey(opts *bind.TransactOpts, _pubkey []byte) (*types.Transaction, error)

SetStakingPoolPubkey is a paid mutator transaction binding the contract method 0xaf40d55d.

Solidity: function setStakingPoolPubkey(bytes _pubkey) returns()

func (*StakingPoolMangerTransactor) SetStakingPoolWithdrawalProcessed

func (_StakingPoolManger *StakingPoolMangerTransactor) SetStakingPoolWithdrawalProcessed(opts *bind.TransactOpts, _stakingPoolAddress common.Address, _processed bool) (*types.Transaction, error)

SetStakingPoolWithdrawalProcessed is a paid mutator transaction binding the contract method 0x1189504e.

Solidity: function setStakingPoolWithdrawalProcessed(address _stakingPoolAddress, bool _processed) returns()

type StakingPoolMangerTransactorRaw

type StakingPoolMangerTransactorRaw struct {
	Contract *StakingPoolMangerTransactor // Generic write-only contract binding to access the raw methods on
}

StakingPoolMangerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*StakingPoolMangerTransactorRaw) Transact

func (_StakingPoolManger *StakingPoolMangerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*StakingPoolMangerTransactorRaw) Transfer

func (_StakingPoolManger *StakingPoolMangerTransactorRaw) 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 StakingPoolMangerTransactorSession

type StakingPoolMangerTransactorSession struct {
	Contract     *StakingPoolMangerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts            // Transaction auth options to use throughout this session
}

StakingPoolMangerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*StakingPoolMangerTransactorSession) CreateStakingPool

func (_StakingPoolManger *StakingPoolMangerTransactorSession) CreateStakingPool(_nodeAddress common.Address, _depositType uint8) (*types.Transaction, error)

CreateStakingPool is a paid mutator transaction binding the contract method 0x6e5da826.

Solidity: function createStakingPool(address _nodeAddress, uint8 _depositType) returns(address)

func (*StakingPoolMangerTransactorSession) DestroyStakingPool

func (_StakingPoolManger *StakingPoolMangerTransactorSession) DestroyStakingPool() (*types.Transaction, error)

DestroyStakingPool is a paid mutator transaction binding the contract method 0x6b16c49d.

Solidity: function destroyStakingPool() returns()

func (*StakingPoolMangerTransactorSession) SetStakingPoolPubkey

func (_StakingPoolManger *StakingPoolMangerTransactorSession) SetStakingPoolPubkey(_pubkey []byte) (*types.Transaction, error)

SetStakingPoolPubkey is a paid mutator transaction binding the contract method 0xaf40d55d.

Solidity: function setStakingPoolPubkey(bytes _pubkey) returns()

func (*StakingPoolMangerTransactorSession) SetStakingPoolWithdrawalProcessed

func (_StakingPoolManger *StakingPoolMangerTransactorSession) SetStakingPoolWithdrawalProcessed(_stakingPoolAddress common.Address, _processed bool) (*types.Transaction, error)

SetStakingPoolWithdrawalProcessed is a paid mutator transaction binding the contract method 0x1189504e.

Solidity: function setStakingPoolWithdrawalProcessed(address _stakingPoolAddress, bool _processed) returns()

Jump to

Keyboard shortcuts

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