rewarder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CustodyABI = "" /* 2436-byte string literal not displayed */

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

View Source
const RewarderABI = "" /* 4632-byte string literal not displayed */

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

Variables

View Source
var CustodyBin = "" /* 11812-byte string literal not displayed */

CustodyBin is the compiled bytecode used for deploying new contracts.

View Source
var RewarderBin = "" /* 18874-byte string literal not displayed */

RewarderBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Custody

type Custody struct {
	CustodyCaller     // Read-only binding to the contract
	CustodyTransactor // Write-only binding to the contract
	CustodyFilterer   // Log filterer for contract events
}

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

func DeployCustody

func DeployCustody(auth *bind.TransactOpts, backend bind.ContractBackend, _tokenAddress common.Address) (common.Address, *types.Transaction, *Custody, error)

DeployCustody deploys a new Ethereum contract, binding an instance of Custody to it.

func NewCustody

func NewCustody(address common.Address, backend bind.ContractBackend) (*Custody, error)

NewCustody creates a new instance of Custody, bound to a specific deployed contract.

type CustodyCaller

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

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

func NewCustodyCaller

func NewCustodyCaller(address common.Address, caller bind.ContractCaller) (*CustodyCaller, error)

NewCustodyCaller creates a new read-only instance of Custody, bound to a specific deployed contract.

func (*CustodyCaller) Authorized

func (_Custody *CustodyCaller) Authorized(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Authorized is a free data retrieval call binding the contract method 0xb9181611.

Solidity: function authorized(address ) view returns(bool)

func (*CustodyCaller) Owner

func (_Custody *CustodyCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*CustodyCaller) Token

func (_Custody *CustodyCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type CustodyCallerRaw

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

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

func (*CustodyCallerRaw) Call

func (_Custody *CustodyCallerRaw) 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 CustodyCallerSession

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

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

func (*CustodyCallerSession) Authorized

func (_Custody *CustodyCallerSession) Authorized(arg0 common.Address) (bool, error)

Authorized is a free data retrieval call binding the contract method 0xb9181611.

Solidity: function authorized(address ) view returns(bool)

func (*CustodyCallerSession) Owner

func (_Custody *CustodyCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*CustodyCallerSession) Token

func (_Custody *CustodyCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type CustodyFilterer

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

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

func NewCustodyFilterer

func NewCustodyFilterer(address common.Address, filterer bind.ContractFilterer) (*CustodyFilterer, error)

NewCustodyFilterer creates a new log filterer instance of Custody, bound to a specific deployed contract.

func (*CustodyFilterer) FilterOwnershipTransferred

func (_Custody *CustodyFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CustodyOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CustodyFilterer) ParseOwnershipTransferred

func (_Custody *CustodyFilterer) ParseOwnershipTransferred(log types.Log) (*CustodyOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CustodyFilterer) WatchOwnershipTransferred

func (_Custody *CustodyFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CustodyOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type CustodyOwnershipTransferred

type CustodyOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

CustodyOwnershipTransferred represents a OwnershipTransferred event raised by the Custody contract.

type CustodyOwnershipTransferredIterator

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

CustodyOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Custody contract.

func (*CustodyOwnershipTransferredIterator) Close

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

func (*CustodyOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CustodyOwnershipTransferredIterator) 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 CustodyRaw

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

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

func (*CustodyRaw) Call

func (_Custody *CustodyRaw) 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 (*CustodyRaw) Transact

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

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

func (*CustodyRaw) Transfer

func (_Custody *CustodyRaw) 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 CustodySession

type CustodySession struct {
	Contract     *Custody          // 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
}

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

func (*CustodySession) Authorize

func (_Custody *CustodySession) Authorize(_account common.Address) (*types.Transaction, error)

Authorize is a paid mutator transaction binding the contract method 0xb6a5d7de.

Solidity: function authorize(address _account) returns()

func (*CustodySession) Authorized

func (_Custody *CustodySession) Authorized(arg0 common.Address) (bool, error)

Authorized is a free data retrieval call binding the contract method 0xb9181611.

Solidity: function authorized(address ) view returns(bool)

func (*CustodySession) Forbid

func (_Custody *CustodySession) Forbid(_account common.Address) (*types.Transaction, error)

Forbid is a paid mutator transaction binding the contract method 0x7e95cd27.

Solidity: function forbid(address _account) returns()

func (*CustodySession) Owner

func (_Custody *CustodySession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*CustodySession) Payout

func (_Custody *CustodySession) Payout(_recipients []common.Address, _amounts []*big.Int) (*types.Transaction, error)

Payout is a paid mutator transaction binding the contract method 0xc176e639.

Solidity: function payout(address[] _recipients, uint256[] _amounts) returns()

func (*CustodySession) Receive

func (_Custody *CustodySession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CustodySession) Recover

func (_Custody *CustodySession) Recover(_tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

Recover is a paid mutator transaction binding the contract method 0x5705ae43.

Solidity: function recover(address _tokenAddress, uint256 amount) returns()

func (*CustodySession) RenounceOwnership

func (_Custody *CustodySession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CustodySession) Token

func (_Custody *CustodySession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*CustodySession) TransferOwnership

func (_Custody *CustodySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CustodySession) Withdraw

func (_Custody *CustodySession) Withdraw(amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 amount) returns()

type CustodyTransactor

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

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

func NewCustodyTransactor

func NewCustodyTransactor(address common.Address, transactor bind.ContractTransactor) (*CustodyTransactor, error)

NewCustodyTransactor creates a new write-only instance of Custody, bound to a specific deployed contract.

func (*CustodyTransactor) Authorize

func (_Custody *CustodyTransactor) Authorize(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)

Authorize is a paid mutator transaction binding the contract method 0xb6a5d7de.

Solidity: function authorize(address _account) returns()

func (*CustodyTransactor) Forbid

func (_Custody *CustodyTransactor) Forbid(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)

Forbid is a paid mutator transaction binding the contract method 0x7e95cd27.

Solidity: function forbid(address _account) returns()

func (*CustodyTransactor) Payout

func (_Custody *CustodyTransactor) Payout(opts *bind.TransactOpts, _recipients []common.Address, _amounts []*big.Int) (*types.Transaction, error)

Payout is a paid mutator transaction binding the contract method 0xc176e639.

Solidity: function payout(address[] _recipients, uint256[] _amounts) returns()

func (*CustodyTransactor) Receive

func (_Custody *CustodyTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CustodyTransactor) Recover

func (_Custody *CustodyTransactor) Recover(opts *bind.TransactOpts, _tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

Recover is a paid mutator transaction binding the contract method 0x5705ae43.

Solidity: function recover(address _tokenAddress, uint256 amount) returns()

func (*CustodyTransactor) RenounceOwnership

func (_Custody *CustodyTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CustodyTransactor) TransferOwnership

func (_Custody *CustodyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CustodyTransactor) Withdraw

func (_Custody *CustodyTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 amount) returns()

type CustodyTransactorRaw

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

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

func (*CustodyTransactorRaw) Transact

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

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

func (*CustodyTransactorRaw) Transfer

func (_Custody *CustodyTransactorRaw) 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 CustodyTransactorSession

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

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

func (*CustodyTransactorSession) Authorize

func (_Custody *CustodyTransactorSession) Authorize(_account common.Address) (*types.Transaction, error)

Authorize is a paid mutator transaction binding the contract method 0xb6a5d7de.

Solidity: function authorize(address _account) returns()

func (*CustodyTransactorSession) Forbid

func (_Custody *CustodyTransactorSession) Forbid(_account common.Address) (*types.Transaction, error)

Forbid is a paid mutator transaction binding the contract method 0x7e95cd27.

Solidity: function forbid(address _account) returns()

func (*CustodyTransactorSession) Payout

func (_Custody *CustodyTransactorSession) Payout(_recipients []common.Address, _amounts []*big.Int) (*types.Transaction, error)

Payout is a paid mutator transaction binding the contract method 0xc176e639.

Solidity: function payout(address[] _recipients, uint256[] _amounts) returns()

func (*CustodyTransactorSession) Receive

func (_Custody *CustodyTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CustodyTransactorSession) Recover

func (_Custody *CustodyTransactorSession) Recover(_tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

Recover is a paid mutator transaction binding the contract method 0x5705ae43.

Solidity: function recover(address _tokenAddress, uint256 amount) returns()

func (*CustodyTransactorSession) RenounceOwnership

func (_Custody *CustodyTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CustodyTransactorSession) TransferOwnership

func (_Custody *CustodyTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CustodyTransactorSession) Withdraw

func (_Custody *CustodyTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 amount) returns()

type Rewarder

type Rewarder struct {
	RewarderCaller     // Read-only binding to the contract
	RewarderTransactor // Write-only binding to the contract
	RewarderFilterer   // Log filterer for contract events
}

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

func DeployRewarder

func DeployRewarder(auth *bind.TransactOpts, backend bind.ContractBackend, _token common.Address, _custody common.Address) (common.Address, *types.Transaction, *Rewarder, error)

DeployRewarder deploys a new Ethereum contract, binding an instance of Rewarder to it.

func NewRewarder

func NewRewarder(address common.Address, backend bind.ContractBackend) (*Rewarder, error)

NewRewarder creates a new instance of Rewarder, bound to a specific deployed contract.

type RewarderAirdrop

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

RewarderAirdrop represents a Airdrop event raised by the Rewarder contract.

type RewarderAirdropIterator

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

RewarderAirdropIterator is returned from FilterAirdrop and is used to iterate over the raw logs and unpacked data for Airdrop events raised by the Rewarder contract.

func (*RewarderAirdropIterator) Close

func (it *RewarderAirdropIterator) Close() error

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

func (*RewarderAirdropIterator) Error

func (it *RewarderAirdropIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewarderAirdropIterator) Next

func (it *RewarderAirdropIterator) 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 RewarderCaller

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

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

func NewRewarderCaller

func NewRewarderCaller(address common.Address, caller bind.ContractCaller) (*RewarderCaller, error)

NewRewarderCaller creates a new read-only instance of Rewarder, bound to a specific deployed contract.

func (*RewarderCaller) ClaimRoots

func (_Rewarder *RewarderCaller) ClaimRoots(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

ClaimRoots is a free data retrieval call binding the contract method 0x7558b6ef.

Solidity: function claimRoots(uint256 ) view returns(bytes32)

func (*RewarderCaller) Custody

func (_Rewarder *RewarderCaller) Custody(opts *bind.CallOpts) (common.Address, error)

Custody is a free data retrieval call binding the contract method 0xdda79b75.

Solidity: function custody() view returns(address)

func (*RewarderCaller) IsValidProof

func (_Rewarder *RewarderCaller) IsValidProof(opts *bind.CallOpts, _recipient common.Address, _totalEarned *big.Int, _blockNumber *big.Int, _proof [][32]byte) (bool, error)

IsValidProof is a free data retrieval call binding the contract method 0xca5a2780.

Solidity: function isValidProof(address _recipient, uint256 _totalEarned, uint256 _blockNumber, bytes32[] _proof) view returns(bool)

func (*RewarderCaller) LastRootBlock

func (_Rewarder *RewarderCaller) LastRootBlock(opts *bind.CallOpts) (*big.Int, error)

LastRootBlock is a free data retrieval call binding the contract method 0x8e59d422.

Solidity: function lastRootBlock() view returns(uint256)

func (*RewarderCaller) Owner

func (_Rewarder *RewarderCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RewarderCaller) Token

func (_Rewarder *RewarderCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*RewarderCaller) TotalClaimed

func (_Rewarder *RewarderCaller) TotalClaimed(opts *bind.CallOpts) (*big.Int, error)

TotalClaimed is a free data retrieval call binding the contract method 0xd54ad2a1.

Solidity: function totalClaimed() view returns(uint256)

func (*RewarderCaller) TotalPayoutsFor

func (_Rewarder *RewarderCaller) TotalPayoutsFor(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TotalPayoutsFor is a free data retrieval call binding the contract method 0x4d676fa7.

Solidity: function totalPayoutsFor(address ) view returns(uint256)

type RewarderCallerRaw

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

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

func (*RewarderCallerRaw) Call

func (_Rewarder *RewarderCallerRaw) 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 RewarderCallerSession

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

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

func (*RewarderCallerSession) ClaimRoots

func (_Rewarder *RewarderCallerSession) ClaimRoots(arg0 *big.Int) ([32]byte, error)

ClaimRoots is a free data retrieval call binding the contract method 0x7558b6ef.

Solidity: function claimRoots(uint256 ) view returns(bytes32)

func (*RewarderCallerSession) Custody

func (_Rewarder *RewarderCallerSession) Custody() (common.Address, error)

Custody is a free data retrieval call binding the contract method 0xdda79b75.

Solidity: function custody() view returns(address)

func (*RewarderCallerSession) IsValidProof

func (_Rewarder *RewarderCallerSession) IsValidProof(_recipient common.Address, _totalEarned *big.Int, _blockNumber *big.Int, _proof [][32]byte) (bool, error)

IsValidProof is a free data retrieval call binding the contract method 0xca5a2780.

Solidity: function isValidProof(address _recipient, uint256 _totalEarned, uint256 _blockNumber, bytes32[] _proof) view returns(bool)

func (*RewarderCallerSession) LastRootBlock

func (_Rewarder *RewarderCallerSession) LastRootBlock() (*big.Int, error)

LastRootBlock is a free data retrieval call binding the contract method 0x8e59d422.

Solidity: function lastRootBlock() view returns(uint256)

func (*RewarderCallerSession) Owner

func (_Rewarder *RewarderCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RewarderCallerSession) Token

func (_Rewarder *RewarderCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*RewarderCallerSession) TotalClaimed

func (_Rewarder *RewarderCallerSession) TotalClaimed() (*big.Int, error)

TotalClaimed is a free data retrieval call binding the contract method 0xd54ad2a1.

Solidity: function totalClaimed() view returns(uint256)

func (*RewarderCallerSession) TotalPayoutsFor

func (_Rewarder *RewarderCallerSession) TotalPayoutsFor(arg0 common.Address) (*big.Int, error)

TotalPayoutsFor is a free data retrieval call binding the contract method 0x4d676fa7.

Solidity: function totalPayoutsFor(address ) view returns(uint256)

type RewarderClaimedChanged

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

RewarderClaimedChanged represents a ClaimedChanged event raised by the Rewarder contract.

type RewarderClaimedChangedIterator

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

RewarderClaimedChangedIterator is returned from FilterClaimedChanged and is used to iterate over the raw logs and unpacked data for ClaimedChanged events raised by the Rewarder contract.

func (*RewarderClaimedChangedIterator) Close

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

func (*RewarderClaimedChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewarderClaimedChangedIterator) 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 RewarderFilterer

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

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

func NewRewarderFilterer

func NewRewarderFilterer(address common.Address, filterer bind.ContractFilterer) (*RewarderFilterer, error)

NewRewarderFilterer creates a new log filterer instance of Rewarder, bound to a specific deployed contract.

func (*RewarderFilterer) FilterAirdrop

func (_Rewarder *RewarderFilterer) FilterAirdrop(opts *bind.FilterOpts) (*RewarderAirdropIterator, error)

FilterAirdrop is a free log retrieval operation binding the contract event 0xd0ecdf4854f39daba34ba0e2c1ed0132a7023a5434bffc90b24f3335fb90e5e3.

Solidity: event Airdrop(uint256 totalDropped)

func (*RewarderFilterer) FilterClaimedChanged

func (_Rewarder *RewarderFilterer) FilterClaimedChanged(opts *bind.FilterOpts) (*RewarderClaimedChangedIterator, error)

FilterClaimedChanged is a free log retrieval operation binding the contract event 0xc58f861f50ca7e2541250d781773a4614f235d08e72ecc0d2f25028b70a1b665.

Solidity: event ClaimedChanged(uint256 totalUnclaimed)

func (*RewarderFilterer) FilterOwnershipTransferred

func (_Rewarder *RewarderFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*RewarderOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RewarderFilterer) FilterRootUpdated

func (_Rewarder *RewarderFilterer) FilterRootUpdated(opts *bind.FilterOpts) (*RewarderRootUpdatedIterator, error)

FilterRootUpdated is a free log retrieval operation binding the contract event 0x156798a72d63b37f86ff1ecc41eec4f30e3c7b325c8a410c2671f2e7fc0c30f3.

Solidity: event RootUpdated(bytes32 root, uint256 blockNumber, uint256 _totalAmount)

func (*RewarderFilterer) ParseAirdrop

func (_Rewarder *RewarderFilterer) ParseAirdrop(log types.Log) (*RewarderAirdrop, error)

ParseAirdrop is a log parse operation binding the contract event 0xd0ecdf4854f39daba34ba0e2c1ed0132a7023a5434bffc90b24f3335fb90e5e3.

Solidity: event Airdrop(uint256 totalDropped)

func (*RewarderFilterer) ParseClaimedChanged

func (_Rewarder *RewarderFilterer) ParseClaimedChanged(log types.Log) (*RewarderClaimedChanged, error)

ParseClaimedChanged is a log parse operation binding the contract event 0xc58f861f50ca7e2541250d781773a4614f235d08e72ecc0d2f25028b70a1b665.

Solidity: event ClaimedChanged(uint256 totalUnclaimed)

func (*RewarderFilterer) ParseOwnershipTransferred

func (_Rewarder *RewarderFilterer) ParseOwnershipTransferred(log types.Log) (*RewarderOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RewarderFilterer) ParseRootUpdated

func (_Rewarder *RewarderFilterer) ParseRootUpdated(log types.Log) (*RewarderRootUpdated, error)

ParseRootUpdated is a log parse operation binding the contract event 0x156798a72d63b37f86ff1ecc41eec4f30e3c7b325c8a410c2671f2e7fc0c30f3.

Solidity: event RootUpdated(bytes32 root, uint256 blockNumber, uint256 _totalAmount)

func (*RewarderFilterer) WatchAirdrop

func (_Rewarder *RewarderFilterer) WatchAirdrop(opts *bind.WatchOpts, sink chan<- *RewarderAirdrop) (event.Subscription, error)

WatchAirdrop is a free log subscription operation binding the contract event 0xd0ecdf4854f39daba34ba0e2c1ed0132a7023a5434bffc90b24f3335fb90e5e3.

Solidity: event Airdrop(uint256 totalDropped)

func (*RewarderFilterer) WatchClaimedChanged

func (_Rewarder *RewarderFilterer) WatchClaimedChanged(opts *bind.WatchOpts, sink chan<- *RewarderClaimedChanged) (event.Subscription, error)

WatchClaimedChanged is a free log subscription operation binding the contract event 0xc58f861f50ca7e2541250d781773a4614f235d08e72ecc0d2f25028b70a1b665.

Solidity: event ClaimedChanged(uint256 totalUnclaimed)

func (*RewarderFilterer) WatchOwnershipTransferred

func (_Rewarder *RewarderFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RewarderOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RewarderFilterer) WatchRootUpdated

func (_Rewarder *RewarderFilterer) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *RewarderRootUpdated) (event.Subscription, error)

WatchRootUpdated is a free log subscription operation binding the contract event 0x156798a72d63b37f86ff1ecc41eec4f30e3c7b325c8a410c2671f2e7fc0c30f3.

Solidity: event RootUpdated(bytes32 root, uint256 blockNumber, uint256 _totalAmount)

type RewarderOwnershipTransferred

type RewarderOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

RewarderOwnershipTransferred represents a OwnershipTransferred event raised by the Rewarder contract.

type RewarderOwnershipTransferredIterator

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

RewarderOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Rewarder contract.

func (*RewarderOwnershipTransferredIterator) Close

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

func (*RewarderOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewarderOwnershipTransferredIterator) 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 RewarderRaw

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

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

func (*RewarderRaw) Call

func (_Rewarder *RewarderRaw) 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 (*RewarderRaw) Transact

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

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

func (*RewarderRaw) Transfer

func (_Rewarder *RewarderRaw) 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 RewarderRootUpdated

type RewarderRootUpdated struct {
	Root        [32]byte
	BlockNumber *big.Int
	TotalAmount *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

RewarderRootUpdated represents a RootUpdated event raised by the Rewarder contract.

type RewarderRootUpdatedIterator

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

RewarderRootUpdatedIterator is returned from FilterRootUpdated and is used to iterate over the raw logs and unpacked data for RootUpdated events raised by the Rewarder contract.

func (*RewarderRootUpdatedIterator) Close

func (it *RewarderRootUpdatedIterator) Close() error

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

func (*RewarderRootUpdatedIterator) Error

func (it *RewarderRootUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewarderRootUpdatedIterator) Next

func (it *RewarderRootUpdatedIterator) 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 RewarderSession

type RewarderSession struct {
	Contract     *Rewarder         // 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
}

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

func (*RewarderSession) Airdrop

func (_Rewarder *RewarderSession) Airdrop(_beneficiaries []common.Address, _totalEarnings []*big.Int) (*types.Transaction, error)

Airdrop is a paid mutator transaction binding the contract method 0x67243482.

Solidity: function airdrop(address[] _beneficiaries, uint256[] _totalEarnings) returns()

func (*RewarderSession) Claim

func (_Rewarder *RewarderSession) Claim(_recipient common.Address, _totalEarned *big.Int, _blockNumber *big.Int, _proof [][32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x172bd6de.

Solidity: function claim(address _recipient, uint256 _totalEarned, uint256 _blockNumber, bytes32[] _proof) returns()

func (*RewarderSession) ClaimRoots

func (_Rewarder *RewarderSession) ClaimRoots(arg0 *big.Int) ([32]byte, error)

ClaimRoots is a free data retrieval call binding the contract method 0x7558b6ef.

Solidity: function claimRoots(uint256 ) view returns(bytes32)

func (*RewarderSession) Custody

func (_Rewarder *RewarderSession) Custody() (common.Address, error)

Custody is a free data retrieval call binding the contract method 0xdda79b75.

Solidity: function custody() view returns(address)

func (*RewarderSession) IsValidProof

func (_Rewarder *RewarderSession) IsValidProof(_recipient common.Address, _totalEarned *big.Int, _blockNumber *big.Int, _proof [][32]byte) (bool, error)

IsValidProof is a free data retrieval call binding the contract method 0xca5a2780.

Solidity: function isValidProof(address _recipient, uint256 _totalEarned, uint256 _blockNumber, bytes32[] _proof) view returns(bool)

func (*RewarderSession) LastRootBlock

func (_Rewarder *RewarderSession) LastRootBlock() (*big.Int, error)

LastRootBlock is a free data retrieval call binding the contract method 0x8e59d422.

Solidity: function lastRootBlock() view returns(uint256)

func (*RewarderSession) Owner

func (_Rewarder *RewarderSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RewarderSession) RecoverTokens

func (_Rewarder *RewarderSession) RecoverTokens(_erc20 common.Address, _to common.Address) (*types.Transaction, error)

RecoverTokens is a paid mutator transaction binding the contract method 0x056097ac.

Solidity: function recoverTokens(address _erc20, address _to) returns()

func (*RewarderSession) RenounceOwnership

func (_Rewarder *RewarderSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RewarderSession) Token

func (_Rewarder *RewarderSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*RewarderSession) TotalClaimed

func (_Rewarder *RewarderSession) TotalClaimed() (*big.Int, error)

TotalClaimed is a free data retrieval call binding the contract method 0xd54ad2a1.

Solidity: function totalClaimed() view returns(uint256)

func (*RewarderSession) TotalPayoutsFor

func (_Rewarder *RewarderSession) TotalPayoutsFor(arg0 common.Address) (*big.Int, error)

TotalPayoutsFor is a free data retrieval call binding the contract method 0x4d676fa7.

Solidity: function totalPayoutsFor(address ) view returns(uint256)

func (*RewarderSession) TransferOwnership

func (_Rewarder *RewarderSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*RewarderSession) UpdateRoot

func (_Rewarder *RewarderSession) UpdateRoot(_claimRoot [32]byte, _blockNumber *big.Int, _totalReward *big.Int) (*types.Transaction, error)

UpdateRoot is a paid mutator transaction binding the contract method 0x12b6af24.

Solidity: function updateRoot(bytes32 _claimRoot, uint256 _blockNumber, uint256 _totalReward) returns()

type RewarderTransactor

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

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

func NewRewarderTransactor

func NewRewarderTransactor(address common.Address, transactor bind.ContractTransactor) (*RewarderTransactor, error)

NewRewarderTransactor creates a new write-only instance of Rewarder, bound to a specific deployed contract.

func (*RewarderTransactor) Airdrop

func (_Rewarder *RewarderTransactor) Airdrop(opts *bind.TransactOpts, _beneficiaries []common.Address, _totalEarnings []*big.Int) (*types.Transaction, error)

Airdrop is a paid mutator transaction binding the contract method 0x67243482.

Solidity: function airdrop(address[] _beneficiaries, uint256[] _totalEarnings) returns()

func (*RewarderTransactor) Claim

func (_Rewarder *RewarderTransactor) Claim(opts *bind.TransactOpts, _recipient common.Address, _totalEarned *big.Int, _blockNumber *big.Int, _proof [][32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x172bd6de.

Solidity: function claim(address _recipient, uint256 _totalEarned, uint256 _blockNumber, bytes32[] _proof) returns()

func (*RewarderTransactor) RecoverTokens

func (_Rewarder *RewarderTransactor) RecoverTokens(opts *bind.TransactOpts, _erc20 common.Address, _to common.Address) (*types.Transaction, error)

RecoverTokens is a paid mutator transaction binding the contract method 0x056097ac.

Solidity: function recoverTokens(address _erc20, address _to) returns()

func (*RewarderTransactor) RenounceOwnership

func (_Rewarder *RewarderTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RewarderTransactor) TransferOwnership

func (_Rewarder *RewarderTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*RewarderTransactor) UpdateRoot

func (_Rewarder *RewarderTransactor) UpdateRoot(opts *bind.TransactOpts, _claimRoot [32]byte, _blockNumber *big.Int, _totalReward *big.Int) (*types.Transaction, error)

UpdateRoot is a paid mutator transaction binding the contract method 0x12b6af24.

Solidity: function updateRoot(bytes32 _claimRoot, uint256 _blockNumber, uint256 _totalReward) returns()

type RewarderTransactorRaw

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

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

func (*RewarderTransactorRaw) Transact

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

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

func (*RewarderTransactorRaw) Transfer

func (_Rewarder *RewarderTransactorRaw) 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 RewarderTransactorSession

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

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

func (*RewarderTransactorSession) Airdrop

func (_Rewarder *RewarderTransactorSession) Airdrop(_beneficiaries []common.Address, _totalEarnings []*big.Int) (*types.Transaction, error)

Airdrop is a paid mutator transaction binding the contract method 0x67243482.

Solidity: function airdrop(address[] _beneficiaries, uint256[] _totalEarnings) returns()

func (*RewarderTransactorSession) Claim

func (_Rewarder *RewarderTransactorSession) Claim(_recipient common.Address, _totalEarned *big.Int, _blockNumber *big.Int, _proof [][32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x172bd6de.

Solidity: function claim(address _recipient, uint256 _totalEarned, uint256 _blockNumber, bytes32[] _proof) returns()

func (*RewarderTransactorSession) RecoverTokens

func (_Rewarder *RewarderTransactorSession) RecoverTokens(_erc20 common.Address, _to common.Address) (*types.Transaction, error)

RecoverTokens is a paid mutator transaction binding the contract method 0x056097ac.

Solidity: function recoverTokens(address _erc20, address _to) returns()

func (*RewarderTransactorSession) RenounceOwnership

func (_Rewarder *RewarderTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RewarderTransactorSession) TransferOwnership

func (_Rewarder *RewarderTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*RewarderTransactorSession) UpdateRoot

func (_Rewarder *RewarderTransactorSession) UpdateRoot(_claimRoot [32]byte, _blockNumber *big.Int, _totalReward *big.Int) (*types.Transaction, error)

UpdateRoot is a paid mutator transaction binding the contract method 0x12b6af24.

Solidity: function updateRoot(bytes32 _claimRoot, uint256 _blockNumber, uint256 _totalReward) returns()

Jump to

Keyboard shortcuts

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