rewarddistributionpool

package
v0.0.0-...-bdefaf9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RewardDistributionPoolABI = RewardDistributionPoolMetaData.ABI

RewardDistributionPoolABI is the input ABI used to generate the binding from. Deprecated: Use RewardDistributionPoolMetaData.ABI instead.

View Source
var RewardDistributionPoolBin = RewardDistributionPoolMetaData.Bin

RewardDistributionPoolBin is the compiled bytecode used for deploying new contracts. Deprecated: Use RewardDistributionPoolMetaData.Bin instead.

View Source
var RewardDistributionPoolMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CollectRewards\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"claimRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collectRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collectedRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getInjector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"injector_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"providedStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reinvestRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardPositions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardPoints\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardsOwing\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contractsRegistryAddr\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"setDependencies\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"injector_\",\"type\":\"address\"}],\"name\":\"setInjector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalRewardPoints\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x608060405234801561001057600080fd5b50610c93806100206000396000f3fe6080604052600436106100ab5760003560e01c80638cb941cc116100645780638cb941cc146101765780638f76c0d814610196578063b5f4d38c146101ac578063b7b08d4e146101c1578063c2e8caf61461020a578063fd4c4aee1461022057600080fd5b8063372500ab146100b75780633e3b5b19146100ce57806369130451146101085780636f4a2cd01461012857806370bb45b31461013d5780637cf8b8be1461015257600080fd5b366100b257005b600080fd5b3480156100c357600080fd5b506100cc610235565b005b3480156100da57600080fd5b50600080516020610c3e833981519152546040516001600160a01b0390911681526020015b60405180910390f35b34801561011457600080fd5b506100cc6101233660046109df565b61029c565b34801561013457600080fd5b506100cc6103cb565b34801561014957600080fd5b506100cc61050e565b34801561015e57600080fd5b5061016860045481565b6040519081526020016100ff565b34801561018257600080fd5b506100cc610191366004610a87565b610521565b3480156101a257600080fd5b5061016860025481565b3480156101b857600080fd5b506100cc61053f565b3480156101cd57600080fd5b506101f56101dc366004610a87565b6005602052600090815260409020805460019091015482565b604080519283526020830191909152016100ff565b34801561021657600080fd5b5061016860035481565b34801561022c57600080fd5b506101686105d3565b600061023f6105d3565b905080156102995780600260008282546102599190610ac1565b9091555050336000908152600560205260408120805483929061027d908490610ada565b9091555050600354336000908152600560205260409020600101555b50565b6102a4610687565b6000829050806001600160a01b03166266f0a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030a9190610aed565b6000806101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b0316638e68dce46040518163ffffffff1660e01b8152600401602060405180830381865afa15801561036d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103919190610aed565b600180546001600160a01b0319166001600160a01b03929092169190911790555033600080516020610c3e833981519152555050565b5050565b478061043c5760405162461bcd60e51b815260206004820152603560248201527f526577617264446973747269627574696f6e506f6f6c3a20616d6f756e74206d60448201527407573742062652067726561746572207468616e203605c1b60648201526084015b60405180910390fd5b61044461070b565b600160009054906101000a90046001600160a01b03166001600160a01b0316638b0e9f3f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610497573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bb9190610b0a565b60048190556104d2670de0b6b3a764000083610b23565b6104dc9190610b3a565b600360008282546104ed9190610ada565b9250508190555080600260008282546105069190610ada565b909155505050565b610516610235565b61051f336107f0565b565b610529610687565b61029981600080516020610c3e83398151915255565b610547610235565b3360009081526005602052604090205460015461056c906001600160a01b03166107f0565b600154604051631e70806560e31b8152336004820152602481018390526001600160a01b039091169063f384032890604401600060405180830381600087803b1580156105b857600080fd5b505af11580156105cc573d6000803e3d6000fd5b5050505050565b3360009081526005602052604081206001015460035482916105f491610ac1565b6001546040516303d3b32360e51b8152336004820152919250670de0b6b3a76400009183916001600160a01b031690637a76646090602401602060405180830381865afa158015610649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066d9190610b0a565b6106779190610b23565b6106819190610b3a565b91505090565b600061069f600080516020610c3e8339815191525490565b90506001600160a01b03811615806106bf57506001600160a01b03811633145b6102995760405162461bcd60e51b815260206004820152601a60248201527f446570656e64616e743a206e6f7420616e20696e6a6563746f720000000000006044820152606401610433565b60008060009054906101000a90046001600160a01b03166001600160a01b0316639de702586040518163ffffffff1660e01b8152600401600060405180830381865afa15801561075f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107879190810190610b5c565b905060005b81518110156103c757600354600560008484815181106107ae576107ae610c0e565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001018190555080806107e890610c24565b91505061078c565b336000908152600560205260409020548061086b5760405162461bcd60e51b815260206004820152603560248201527f526577617264446973747269627574696f6e506f6f6c3a20726577617264206d60448201527407573742062652067726561746572207468616e203605c1b6064820152608401610433565b336000908152600560205260408120805483929061088a908490610ac1565b90915550506040516000906001600160a01b0384169061520890849084818181858888f193505050503d80600081146108df576040519150601f19603f3d011682016040523d82523d6000602084013e6108e4565b606091505b50509050806109455760405162461bcd60e51b815260206004820152602760248201527f526577617264446973747269627574696f6e506f6f6c3a207472616e736665726044820152660819985a5b195960ca1b6064820152608401610433565b60408051338152602081018490527f2a2d1456672a2b5013c6d74f8677f133bbf5f7d5bb6be09231f7814782b9a717910160405180910390a1505050565b6001600160a01b038116811461029957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156109d7576109d7610998565b604052919050565b600080604083850312156109f257600080fd5b82356109fd81610983565b915060208381013567ffffffffffffffff80821115610a1b57600080fd5b818601915086601f830112610a2f57600080fd5b813581811115610a4157610a41610998565b610a53601f8201601f191685016109ae565b91508082528784828501011115610a6957600080fd5b80848401858401376000848284010152508093505050509250929050565b600060208284031215610a9957600080fd5b8135610aa481610983565b9392505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610ad457610ad4610aab565b92915050565b80820180821115610ad457610ad4610aab565b600060208284031215610aff57600080fd5b8151610aa481610983565b600060208284031215610b1c57600080fd5b5051919050565b8082028115828204841417610ad457610ad4610aab565b600082610b5757634e487b7160e01b600052601260045260246000fd5b500490565b60006020808385031215610b6f57600080fd5b825167ffffffffffffffff80821115610b8757600080fd5b818501915085601f830112610b9b57600080fd5b815181811115610bad57610bad610998565b8060051b9150610bbe8483016109ae565b8181529183018401918481019088841115610bd857600080fd5b938501935b83851015610c025784519250610bf283610983565b8282529385019390850190610bdd565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201610c3657610c36610aab565b506001019056fe3d1f25f1ac447e55e7fec744471c4dab1c6a2b6ffb897825f9ea3d2e8c9be583a26469706673582212201f53c07e3438325bbc55abc22aaed6ae5163d5b9092e45e88e7c40fe00aa767a64736f6c63430008120033",
}

RewardDistributionPoolMetaData contains all meta data concerning the RewardDistributionPool contract.

Functions

This section is empty.

Types

type RewardDistributionPool

type RewardDistributionPool struct {
	RewardDistributionPoolCaller     // Read-only binding to the contract
	RewardDistributionPoolTransactor // Write-only binding to the contract
	RewardDistributionPoolFilterer   // Log filterer for contract events
}

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

func DeployRewardDistributionPool

func DeployRewardDistributionPool(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *RewardDistributionPool, error)

DeployRewardDistributionPool deploys a new Ethereum contract, binding an instance of RewardDistributionPool to it.

func NewRewardDistributionPool

func NewRewardDistributionPool(address common.Address, backend bind.ContractBackend) (*RewardDistributionPool, error)

NewRewardDistributionPool creates a new instance of RewardDistributionPool, bound to a specific deployed contract.

type RewardDistributionPoolCaller

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

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

func NewRewardDistributionPoolCaller

func NewRewardDistributionPoolCaller(address common.Address, caller bind.ContractCaller) (*RewardDistributionPoolCaller, error)

NewRewardDistributionPoolCaller creates a new read-only instance of RewardDistributionPool, bound to a specific deployed contract.

func (*RewardDistributionPoolCaller) CollectedRewards

func (_RewardDistributionPool *RewardDistributionPoolCaller) CollectedRewards(opts *bind.CallOpts) (*big.Int, error)

CollectedRewards is a free data retrieval call binding the contract method 0x8f76c0d8.

Solidity: function collectedRewards() view returns(uint256)

func (*RewardDistributionPoolCaller) GetInjector

func (_RewardDistributionPool *RewardDistributionPoolCaller) GetInjector(opts *bind.CallOpts) (common.Address, error)

GetInjector is a free data retrieval call binding the contract method 0x3e3b5b19.

Solidity: function getInjector() view returns(address injector_)

func (*RewardDistributionPoolCaller) ProvidedStake

func (_RewardDistributionPool *RewardDistributionPoolCaller) ProvidedStake(opts *bind.CallOpts) (*big.Int, error)

ProvidedStake is a free data retrieval call binding the contract method 0x7cf8b8be.

Solidity: function providedStake() view returns(uint256)

func (*RewardDistributionPoolCaller) RewardPositions

func (_RewardDistributionPool *RewardDistributionPoolCaller) RewardPositions(opts *bind.CallOpts, arg0 common.Address) (struct {
	Balance          *big.Int
	LastRewardPoints *big.Int
}, error)

RewardPositions is a free data retrieval call binding the contract method 0xb7b08d4e.

Solidity: function rewardPositions(address ) view returns(uint256 balance, uint256 lastRewardPoints)

func (*RewardDistributionPoolCaller) RewardsOwing

func (_RewardDistributionPool *RewardDistributionPoolCaller) RewardsOwing(opts *bind.CallOpts) (*big.Int, error)

RewardsOwing is a free data retrieval call binding the contract method 0xfd4c4aee.

Solidity: function rewardsOwing() view returns(uint256)

func (*RewardDistributionPoolCaller) TotalRewardPoints

func (_RewardDistributionPool *RewardDistributionPoolCaller) TotalRewardPoints(opts *bind.CallOpts) (*big.Int, error)

TotalRewardPoints is a free data retrieval call binding the contract method 0xc2e8caf6.

Solidity: function totalRewardPoints() view returns(uint256)

type RewardDistributionPoolCallerRaw

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

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

func (*RewardDistributionPoolCallerRaw) Call

func (_RewardDistributionPool *RewardDistributionPoolCallerRaw) 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 RewardDistributionPoolCallerSession

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

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

func (*RewardDistributionPoolCallerSession) CollectedRewards

func (_RewardDistributionPool *RewardDistributionPoolCallerSession) CollectedRewards() (*big.Int, error)

CollectedRewards is a free data retrieval call binding the contract method 0x8f76c0d8.

Solidity: function collectedRewards() view returns(uint256)

func (*RewardDistributionPoolCallerSession) GetInjector

func (_RewardDistributionPool *RewardDistributionPoolCallerSession) GetInjector() (common.Address, error)

GetInjector is a free data retrieval call binding the contract method 0x3e3b5b19.

Solidity: function getInjector() view returns(address injector_)

func (*RewardDistributionPoolCallerSession) ProvidedStake

func (_RewardDistributionPool *RewardDistributionPoolCallerSession) ProvidedStake() (*big.Int, error)

ProvidedStake is a free data retrieval call binding the contract method 0x7cf8b8be.

Solidity: function providedStake() view returns(uint256)

func (*RewardDistributionPoolCallerSession) RewardPositions

func (_RewardDistributionPool *RewardDistributionPoolCallerSession) RewardPositions(arg0 common.Address) (struct {
	Balance          *big.Int
	LastRewardPoints *big.Int
}, error)

RewardPositions is a free data retrieval call binding the contract method 0xb7b08d4e.

Solidity: function rewardPositions(address ) view returns(uint256 balance, uint256 lastRewardPoints)

func (*RewardDistributionPoolCallerSession) RewardsOwing

func (_RewardDistributionPool *RewardDistributionPoolCallerSession) RewardsOwing() (*big.Int, error)

RewardsOwing is a free data retrieval call binding the contract method 0xfd4c4aee.

Solidity: function rewardsOwing() view returns(uint256)

func (*RewardDistributionPoolCallerSession) TotalRewardPoints

func (_RewardDistributionPool *RewardDistributionPoolCallerSession) TotalRewardPoints() (*big.Int, error)

TotalRewardPoints is a free data retrieval call binding the contract method 0xc2e8caf6.

Solidity: function totalRewardPoints() view returns(uint256)

type RewardDistributionPoolCollectRewards

type RewardDistributionPoolCollectRewards struct {
	Validator common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

RewardDistributionPoolCollectRewards represents a CollectRewards event raised by the RewardDistributionPool contract.

type RewardDistributionPoolCollectRewardsIterator

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

RewardDistributionPoolCollectRewardsIterator is returned from FilterCollectRewards and is used to iterate over the raw logs and unpacked data for CollectRewards events raised by the RewardDistributionPool contract.

func (*RewardDistributionPoolCollectRewardsIterator) Close

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

func (*RewardDistributionPoolCollectRewardsIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardDistributionPoolCollectRewardsIterator) 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 RewardDistributionPoolFilterer

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

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

func NewRewardDistributionPoolFilterer

func NewRewardDistributionPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardDistributionPoolFilterer, error)

NewRewardDistributionPoolFilterer creates a new log filterer instance of RewardDistributionPool, bound to a specific deployed contract.

func (*RewardDistributionPoolFilterer) FilterCollectRewards

func (_RewardDistributionPool *RewardDistributionPoolFilterer) FilterCollectRewards(opts *bind.FilterOpts) (*RewardDistributionPoolCollectRewardsIterator, error)

FilterCollectRewards is a free log retrieval operation binding the contract event 0x2a2d1456672a2b5013c6d74f8677f133bbf5f7d5bb6be09231f7814782b9a717.

Solidity: event CollectRewards(address validator, uint256 amount)

func (*RewardDistributionPoolFilterer) ParseCollectRewards

func (_RewardDistributionPool *RewardDistributionPoolFilterer) ParseCollectRewards(log types.Log) (*RewardDistributionPoolCollectRewards, error)

ParseCollectRewards is a log parse operation binding the contract event 0x2a2d1456672a2b5013c6d74f8677f133bbf5f7d5bb6be09231f7814782b9a717.

Solidity: event CollectRewards(address validator, uint256 amount)

func (*RewardDistributionPoolFilterer) WatchCollectRewards

func (_RewardDistributionPool *RewardDistributionPoolFilterer) WatchCollectRewards(opts *bind.WatchOpts, sink chan<- *RewardDistributionPoolCollectRewards) (event.Subscription, error)

WatchCollectRewards is a free log subscription operation binding the contract event 0x2a2d1456672a2b5013c6d74f8677f133bbf5f7d5bb6be09231f7814782b9a717.

Solidity: event CollectRewards(address validator, uint256 amount)

type RewardDistributionPoolRaw

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

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

func (*RewardDistributionPoolRaw) Call

func (_RewardDistributionPool *RewardDistributionPoolRaw) 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 (*RewardDistributionPoolRaw) Transact

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

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

func (*RewardDistributionPoolRaw) Transfer

func (_RewardDistributionPool *RewardDistributionPoolRaw) 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 RewardDistributionPoolSession

type RewardDistributionPoolSession struct {
	Contract     *RewardDistributionPool // 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
}

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

func (*RewardDistributionPoolSession) ClaimRewards

func (_RewardDistributionPool *RewardDistributionPoolSession) ClaimRewards() (*types.Transaction, error)

ClaimRewards is a paid mutator transaction binding the contract method 0x372500ab.

Solidity: function claimRewards() returns()

func (*RewardDistributionPoolSession) CollectRewards

func (_RewardDistributionPool *RewardDistributionPoolSession) CollectRewards() (*types.Transaction, error)

CollectRewards is a paid mutator transaction binding the contract method 0x70bb45b3.

Solidity: function collectRewards() returns()

func (*RewardDistributionPoolSession) CollectedRewards

func (_RewardDistributionPool *RewardDistributionPoolSession) CollectedRewards() (*big.Int, error)

CollectedRewards is a free data retrieval call binding the contract method 0x8f76c0d8.

Solidity: function collectedRewards() view returns(uint256)

func (*RewardDistributionPoolSession) DistributeRewards

func (_RewardDistributionPool *RewardDistributionPoolSession) DistributeRewards() (*types.Transaction, error)

DistributeRewards is a paid mutator transaction binding the contract method 0x6f4a2cd0.

Solidity: function distributeRewards() returns()

func (*RewardDistributionPoolSession) GetInjector

func (_RewardDistributionPool *RewardDistributionPoolSession) GetInjector() (common.Address, error)

GetInjector is a free data retrieval call binding the contract method 0x3e3b5b19.

Solidity: function getInjector() view returns(address injector_)

func (*RewardDistributionPoolSession) ProvidedStake

func (_RewardDistributionPool *RewardDistributionPoolSession) ProvidedStake() (*big.Int, error)

ProvidedStake is a free data retrieval call binding the contract method 0x7cf8b8be.

Solidity: function providedStake() view returns(uint256)

func (*RewardDistributionPoolSession) Receive

func (_RewardDistributionPool *RewardDistributionPoolSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RewardDistributionPoolSession) ReinvestRewards

func (_RewardDistributionPool *RewardDistributionPoolSession) ReinvestRewards() (*types.Transaction, error)

ReinvestRewards is a paid mutator transaction binding the contract method 0xb5f4d38c.

Solidity: function reinvestRewards() returns()

func (*RewardDistributionPoolSession) RewardPositions

func (_RewardDistributionPool *RewardDistributionPoolSession) RewardPositions(arg0 common.Address) (struct {
	Balance          *big.Int
	LastRewardPoints *big.Int
}, error)

RewardPositions is a free data retrieval call binding the contract method 0xb7b08d4e.

Solidity: function rewardPositions(address ) view returns(uint256 balance, uint256 lastRewardPoints)

func (*RewardDistributionPoolSession) RewardsOwing

func (_RewardDistributionPool *RewardDistributionPoolSession) RewardsOwing() (*big.Int, error)

RewardsOwing is a free data retrieval call binding the contract method 0xfd4c4aee.

Solidity: function rewardsOwing() view returns(uint256)

func (*RewardDistributionPoolSession) SetDependencies

func (_RewardDistributionPool *RewardDistributionPoolSession) SetDependencies(_contractsRegistryAddr common.Address, arg1 []byte) (*types.Transaction, error)

SetDependencies is a paid mutator transaction binding the contract method 0x69130451.

Solidity: function setDependencies(address _contractsRegistryAddr, bytes ) returns()

func (*RewardDistributionPoolSession) SetInjector

func (_RewardDistributionPool *RewardDistributionPoolSession) SetInjector(injector_ common.Address) (*types.Transaction, error)

SetInjector is a paid mutator transaction binding the contract method 0x8cb941cc.

Solidity: function setInjector(address injector_) returns()

func (*RewardDistributionPoolSession) TotalRewardPoints

func (_RewardDistributionPool *RewardDistributionPoolSession) TotalRewardPoints() (*big.Int, error)

TotalRewardPoints is a free data retrieval call binding the contract method 0xc2e8caf6.

Solidity: function totalRewardPoints() view returns(uint256)

type RewardDistributionPoolTransactor

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

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

func NewRewardDistributionPoolTransactor

func NewRewardDistributionPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardDistributionPoolTransactor, error)

NewRewardDistributionPoolTransactor creates a new write-only instance of RewardDistributionPool, bound to a specific deployed contract.

func (*RewardDistributionPoolTransactor) ClaimRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactor) ClaimRewards(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimRewards is a paid mutator transaction binding the contract method 0x372500ab.

Solidity: function claimRewards() returns()

func (*RewardDistributionPoolTransactor) CollectRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactor) CollectRewards(opts *bind.TransactOpts) (*types.Transaction, error)

CollectRewards is a paid mutator transaction binding the contract method 0x70bb45b3.

Solidity: function collectRewards() returns()

func (*RewardDistributionPoolTransactor) DistributeRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactor) DistributeRewards(opts *bind.TransactOpts) (*types.Transaction, error)

DistributeRewards is a paid mutator transaction binding the contract method 0x6f4a2cd0.

Solidity: function distributeRewards() returns()

func (*RewardDistributionPoolTransactor) Receive

func (_RewardDistributionPool *RewardDistributionPoolTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RewardDistributionPoolTransactor) ReinvestRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactor) ReinvestRewards(opts *bind.TransactOpts) (*types.Transaction, error)

ReinvestRewards is a paid mutator transaction binding the contract method 0xb5f4d38c.

Solidity: function reinvestRewards() returns()

func (*RewardDistributionPoolTransactor) SetDependencies

func (_RewardDistributionPool *RewardDistributionPoolTransactor) SetDependencies(opts *bind.TransactOpts, _contractsRegistryAddr common.Address, arg1 []byte) (*types.Transaction, error)

SetDependencies is a paid mutator transaction binding the contract method 0x69130451.

Solidity: function setDependencies(address _contractsRegistryAddr, bytes ) returns()

func (*RewardDistributionPoolTransactor) SetInjector

func (_RewardDistributionPool *RewardDistributionPoolTransactor) SetInjector(opts *bind.TransactOpts, injector_ common.Address) (*types.Transaction, error)

SetInjector is a paid mutator transaction binding the contract method 0x8cb941cc.

Solidity: function setInjector(address injector_) returns()

type RewardDistributionPoolTransactorRaw

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

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

func (*RewardDistributionPoolTransactorRaw) Transact

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

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

func (*RewardDistributionPoolTransactorRaw) Transfer

func (_RewardDistributionPool *RewardDistributionPoolTransactorRaw) 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 RewardDistributionPoolTransactorSession

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

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

func (*RewardDistributionPoolTransactorSession) ClaimRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) ClaimRewards() (*types.Transaction, error)

ClaimRewards is a paid mutator transaction binding the contract method 0x372500ab.

Solidity: function claimRewards() returns()

func (*RewardDistributionPoolTransactorSession) CollectRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) CollectRewards() (*types.Transaction, error)

CollectRewards is a paid mutator transaction binding the contract method 0x70bb45b3.

Solidity: function collectRewards() returns()

func (*RewardDistributionPoolTransactorSession) DistributeRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) DistributeRewards() (*types.Transaction, error)

DistributeRewards is a paid mutator transaction binding the contract method 0x6f4a2cd0.

Solidity: function distributeRewards() returns()

func (*RewardDistributionPoolTransactorSession) Receive

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RewardDistributionPoolTransactorSession) ReinvestRewards

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) ReinvestRewards() (*types.Transaction, error)

ReinvestRewards is a paid mutator transaction binding the contract method 0xb5f4d38c.

Solidity: function reinvestRewards() returns()

func (*RewardDistributionPoolTransactorSession) SetDependencies

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) SetDependencies(_contractsRegistryAddr common.Address, arg1 []byte) (*types.Transaction, error)

SetDependencies is a paid mutator transaction binding the contract method 0x69130451.

Solidity: function setDependencies(address _contractsRegistryAddr, bytes ) returns()

func (*RewardDistributionPoolTransactorSession) SetInjector

func (_RewardDistributionPool *RewardDistributionPoolTransactorSession) SetInjector(injector_ common.Address) (*types.Transaction, error)

SetInjector is a paid mutator transaction binding the contract method 0x8cb941cc.

Solidity: function setInjector(address injector_) returns()

Jump to

Keyboard shortcuts

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