contract

package
v0.0.0-...-cc9b3d1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RewardContainerABI = "" /* 1938-byte string literal not displayed */

RewardContainerABI is the input ABI used to generate the binding from.

View Source
const RewardContainerBin = `` /* 3414-byte string literal not displayed */

RewardContainerBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewardContainer

type RewardContainer struct {
	RewardContainerCaller     // Read-only binding to the contract
	RewardContainerTransactor // Write-only binding to the contract
	RewardContainerFilterer   // Log filterer for contract events
}

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

func DeployRewardContainer

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

DeployRewardContainer deploys a new Ethereum contract, binding an instance of RewardContainer to it.

func NewRewardContainer

func NewRewardContainer(address common.Address, backend bind.ContractBackend) (*RewardContainer, error)

NewRewardContainer creates a new instance of RewardContainer, bound to a specific deployed contract.

type RewardContainerCaller

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

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

func NewRewardContainerCaller

func NewRewardContainerCaller(address common.Address, caller bind.ContractCaller) (*RewardContainerCaller, error)

NewRewardContainerCaller creates a new read-only instance of RewardContainer, bound to a specific deployed contract.

func (*RewardContainerCaller) GetActualReward

func (_RewardContainer *RewardContainerCaller) GetActualReward(opts *bind.CallOpts) (*big.Int, error)

GetActualReward is a free data retrieval call binding the contract method 0xea6a62f1.

Solidity: function getActualReward() constant returns(uint256)

func (*RewardContainerCaller) GetTotalRewarded

func (_RewardContainer *RewardContainerCaller) GetTotalRewarded(opts *bind.CallOpts) (*big.Int, error)

GetTotalRewarded is a free data retrieval call binding the contract method 0x0e5ee5ee.

Solidity: function getTotalRewarded() constant returns(uint256)

type RewardContainerCallerRaw

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

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

func (*RewardContainerCallerRaw) Call

func (_RewardContainer *RewardContainerCallerRaw) 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 RewardContainerCallerSession

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

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

func (*RewardContainerCallerSession) GetActualReward

func (_RewardContainer *RewardContainerCallerSession) GetActualReward() (*big.Int, error)

GetActualReward is a free data retrieval call binding the contract method 0xea6a62f1.

Solidity: function getActualReward() constant returns(uint256)

func (*RewardContainerCallerSession) GetTotalRewarded

func (_RewardContainer *RewardContainerCallerSession) GetTotalRewarded() (*big.Int, error)

GetTotalRewarded is a free data retrieval call binding the contract method 0x0e5ee5ee.

Solidity: function getTotalRewarded() constant returns(uint256)

type RewardContainerChangedOwner

type RewardContainerChangedOwner struct {
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

RewardContainerChangedOwner represents a ChangedOwner event raised by the RewardContainer contract.

type RewardContainerChangedOwnerIterator

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

RewardContainerChangedOwnerIterator is returned from FilterChangedOwner and is used to iterate over the raw logs and unpacked data for ChangedOwner events raised by the RewardContainer contract.

func (*RewardContainerChangedOwnerIterator) Close

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

func (*RewardContainerChangedOwnerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardContainerChangedOwnerIterator) 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 RewardContainerChangedRewardImplementation

type RewardContainerChangedRewardImplementation struct {
	RewardImplementation common.Address
	Raw                  types.Log // Blockchain specific contextual infos
}

RewardContainerChangedRewardImplementation represents a ChangedRewardImplementation event raised by the RewardContainer contract.

type RewardContainerChangedRewardImplementationIterator

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

RewardContainerChangedRewardImplementationIterator is returned from FilterChangedRewardImplementation and is used to iterate over the raw logs and unpacked data for ChangedRewardImplementation events raised by the RewardContainer contract.

func (*RewardContainerChangedRewardImplementationIterator) Close

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

func (*RewardContainerChangedRewardImplementationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardContainerChangedRewardImplementationIterator) 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 RewardContainerFilterer

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

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

func NewRewardContainerFilterer

func NewRewardContainerFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardContainerFilterer, error)

NewRewardContainerFilterer creates a new log filterer instance of RewardContainer, bound to a specific deployed contract.

func (*RewardContainerFilterer) FilterChangedOwner

func (_RewardContainer *RewardContainerFilterer) FilterChangedOwner(opts *bind.FilterOpts, owner []common.Address) (*RewardContainerChangedOwnerIterator, error)

FilterChangedOwner is a free log retrieval operation binding the contract event 0xa701229f4b9ddf00aa1c7228d248e6320ee7c581d856ddfba036e73947cd0d13.

Solidity: event ChangedOwner(address indexed owner)

func (*RewardContainerFilterer) FilterChangedRewardImplementation

func (_RewardContainer *RewardContainerFilterer) FilterChangedRewardImplementation(opts *bind.FilterOpts, rewardImplementation []common.Address) (*RewardContainerChangedRewardImplementationIterator, error)

FilterChangedRewardImplementation is a free log retrieval operation binding the contract event 0x2e25b8052a53bf10dbccee778703f1e8356d76602c3c4c0f55261eac3098f9d2.

Solidity: event ChangedRewardImplementation(address indexed rewardImplementation)

func (*RewardContainerFilterer) FilterMined

func (_RewardContainer *RewardContainerFilterer) FilterMined(opts *bind.FilterOpts) (*RewardContainerMinedIterator, error)

FilterMined is a free log retrieval operation binding the contract event 0x4229d50c63dbdc5551dd68e0a9879b01ac250cb31feaeba7588533462e6c7aaa.

Solidity: event Mined(uint256 amount)

func (*RewardContainerFilterer) FilterSent

func (_RewardContainer *RewardContainerFilterer) FilterSent(opts *bind.FilterOpts, to []common.Address) (*RewardContainerSentIterator, error)

FilterSent is a free log retrieval operation binding the contract event 0x510ffb4dcab972ae9d2007a58e13f1b0881776d23cd8f5cc32f8c5be2dbf70d2.

Solidity: event Sent(address indexed to, uint256 amount)

func (*RewardContainerFilterer) WatchChangedOwner

func (_RewardContainer *RewardContainerFilterer) WatchChangedOwner(opts *bind.WatchOpts, sink chan<- *RewardContainerChangedOwner, owner []common.Address) (event.Subscription, error)

WatchChangedOwner is a free log subscription operation binding the contract event 0xa701229f4b9ddf00aa1c7228d248e6320ee7c581d856ddfba036e73947cd0d13.

Solidity: event ChangedOwner(address indexed owner)

func (*RewardContainerFilterer) WatchChangedRewardImplementation

func (_RewardContainer *RewardContainerFilterer) WatchChangedRewardImplementation(opts *bind.WatchOpts, sink chan<- *RewardContainerChangedRewardImplementation, rewardImplementation []common.Address) (event.Subscription, error)

WatchChangedRewardImplementation is a free log subscription operation binding the contract event 0x2e25b8052a53bf10dbccee778703f1e8356d76602c3c4c0f55261eac3098f9d2.

Solidity: event ChangedRewardImplementation(address indexed rewardImplementation)

func (*RewardContainerFilterer) WatchMined

func (_RewardContainer *RewardContainerFilterer) WatchMined(opts *bind.WatchOpts, sink chan<- *RewardContainerMined) (event.Subscription, error)

WatchMined is a free log subscription operation binding the contract event 0x4229d50c63dbdc5551dd68e0a9879b01ac250cb31feaeba7588533462e6c7aaa.

Solidity: event Mined(uint256 amount)

func (*RewardContainerFilterer) WatchSent

func (_RewardContainer *RewardContainerFilterer) WatchSent(opts *bind.WatchOpts, sink chan<- *RewardContainerSent, to []common.Address) (event.Subscription, error)

WatchSent is a free log subscription operation binding the contract event 0x510ffb4dcab972ae9d2007a58e13f1b0881776d23cd8f5cc32f8c5be2dbf70d2.

Solidity: event Sent(address indexed to, uint256 amount)

type RewardContainerMined

type RewardContainerMined struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RewardContainerMined represents a Mined event raised by the RewardContainer contract.

type RewardContainerMinedIterator

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

RewardContainerMinedIterator is returned from FilterMined and is used to iterate over the raw logs and unpacked data for Mined events raised by the RewardContainer contract.

func (*RewardContainerMinedIterator) Close

func (it *RewardContainerMinedIterator) Close() error

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

func (*RewardContainerMinedIterator) Error

func (it *RewardContainerMinedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardContainerMinedIterator) 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 RewardContainerRaw

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

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

func (*RewardContainerRaw) Call

func (_RewardContainer *RewardContainerRaw) 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 (*RewardContainerRaw) Transact

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

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

func (*RewardContainerRaw) Transfer

func (_RewardContainer *RewardContainerRaw) 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 RewardContainerSent

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

RewardContainerSent represents a Sent event raised by the RewardContainer contract.

type RewardContainerSentIterator

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

RewardContainerSentIterator is returned from FilterSent and is used to iterate over the raw logs and unpacked data for Sent events raised by the RewardContainer contract.

func (*RewardContainerSentIterator) Close

func (it *RewardContainerSentIterator) Close() error

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

func (*RewardContainerSentIterator) Error

func (it *RewardContainerSentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardContainerSentIterator) Next

func (it *RewardContainerSentIterator) 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 RewardContainerSession

type RewardContainerSession struct {
	Contract     *RewardContainer  // 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
}

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

func (*RewardContainerSession) ChangeOwner

func (_RewardContainer *RewardContainerSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*RewardContainerSession) ChangeRewardImplementation

func (_RewardContainer *RewardContainerSession) ChangeRewardImplementation(newImpl common.Address) (*types.Transaction, error)

ChangeRewardImplementation is a paid mutator transaction binding the contract method 0x1a957fe3.

Solidity: function changeRewardImplementation(address newImpl) returns()

func (*RewardContainerSession) Destroy

func (_RewardContainer *RewardContainerSession) Destroy() (*types.Transaction, error)

Destroy is a paid mutator transaction binding the contract method 0x83197ef0.

Solidity: function destroy() returns()

func (*RewardContainerSession) GetActualReward

func (_RewardContainer *RewardContainerSession) GetActualReward() (*big.Int, error)

GetActualReward is a free data retrieval call binding the contract method 0xea6a62f1.

Solidity: function getActualReward() constant returns(uint256)

func (*RewardContainerSession) GetTotalRewarded

func (_RewardContainer *RewardContainerSession) GetTotalRewarded() (*big.Int, error)

GetTotalRewarded is a free data retrieval call binding the contract method 0x0e5ee5ee.

Solidity: function getTotalRewarded() constant returns(uint256)

func (*RewardContainerSession) Send

func (_RewardContainer *RewardContainerSession) Send(to common.Address, amount *big.Int) (*types.Transaction, error)

Send is a paid mutator transaction binding the contract method 0xd0679d34.

Solidity: function send(address to, uint256 amount) returns()

type RewardContainerTransactor

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

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

func NewRewardContainerTransactor

func NewRewardContainerTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardContainerTransactor, error)

NewRewardContainerTransactor creates a new write-only instance of RewardContainer, bound to a specific deployed contract.

func (*RewardContainerTransactor) ChangeOwner

func (_RewardContainer *RewardContainerTransactor) ChangeOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*RewardContainerTransactor) ChangeRewardImplementation

func (_RewardContainer *RewardContainerTransactor) ChangeRewardImplementation(opts *bind.TransactOpts, newImpl common.Address) (*types.Transaction, error)

ChangeRewardImplementation is a paid mutator transaction binding the contract method 0x1a957fe3.

Solidity: function changeRewardImplementation(address newImpl) returns()

func (*RewardContainerTransactor) Destroy

func (_RewardContainer *RewardContainerTransactor) Destroy(opts *bind.TransactOpts) (*types.Transaction, error)

Destroy is a paid mutator transaction binding the contract method 0x83197ef0.

Solidity: function destroy() returns()

func (*RewardContainerTransactor) Send

func (_RewardContainer *RewardContainerTransactor) Send(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Send is a paid mutator transaction binding the contract method 0xd0679d34.

Solidity: function send(address to, uint256 amount) returns()

type RewardContainerTransactorRaw

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

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

func (*RewardContainerTransactorRaw) Transact

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

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

func (*RewardContainerTransactorRaw) Transfer

func (_RewardContainer *RewardContainerTransactorRaw) 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 RewardContainerTransactorSession

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

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

func (*RewardContainerTransactorSession) ChangeOwner

func (_RewardContainer *RewardContainerTransactorSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*RewardContainerTransactorSession) ChangeRewardImplementation

func (_RewardContainer *RewardContainerTransactorSession) ChangeRewardImplementation(newImpl common.Address) (*types.Transaction, error)

ChangeRewardImplementation is a paid mutator transaction binding the contract method 0x1a957fe3.

Solidity: function changeRewardImplementation(address newImpl) returns()

func (*RewardContainerTransactorSession) Destroy

func (_RewardContainer *RewardContainerTransactorSession) Destroy() (*types.Transaction, error)

Destroy is a paid mutator transaction binding the contract method 0x83197ef0.

Solidity: function destroy() returns()

func (*RewardContainerTransactorSession) Send

func (_RewardContainer *RewardContainerTransactorSession) Send(to common.Address, amount *big.Int) (*types.Transaction, error)

Send is a paid mutator transaction binding the contract method 0xd0679d34.

Solidity: function send(address to, uint256 amount) returns()

Jump to

Keyboard shortcuts

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