projectreward

package
v0.23.9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProjectRewardABI = ProjectRewardMetaData.ABI

ProjectRewardABI is the input ABI used to generate the binding from. Deprecated: Use ProjectRewardMetaData.ABI instead.

View Source
var ProjectRewardMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardAmountSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"rewardToken\",\"type\":\"address\"}],\"name\":\"RewardTokenSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_project\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"}],\"name\":\"isPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"project\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"rewardAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"rewardToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"setReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"setRewardToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

ProjectRewardMetaData contains all meta data concerning the ProjectReward contract.

Functions

This section is empty.

Types

type ProjectReward

type ProjectReward struct {
	ProjectRewardCaller     // Read-only binding to the contract
	ProjectRewardTransactor // Write-only binding to the contract
	ProjectRewardFilterer   // Log filterer for contract events
}

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

func NewProjectReward

func NewProjectReward(address common.Address, backend bind.ContractBackend) (*ProjectReward, error)

NewProjectReward creates a new instance of ProjectReward, bound to a specific deployed contract.

type ProjectRewardCaller

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

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

func NewProjectRewardCaller

func NewProjectRewardCaller(address common.Address, caller bind.ContractCaller) (*ProjectRewardCaller, error)

NewProjectRewardCaller creates a new read-only instance of ProjectReward, bound to a specific deployed contract.

func (*ProjectRewardCaller) IsPaused

func (_ProjectReward *ProjectRewardCaller) IsPaused(opts *bind.CallOpts, _projectId *big.Int) (bool, error)

IsPaused is a free data retrieval call binding the contract method 0xbdf2a43c.

Solidity: function isPaused(uint256 _projectId) view returns(bool)

func (*ProjectRewardCaller) Operator

func (_ProjectReward *ProjectRewardCaller) Operator(opts *bind.CallOpts) (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ProjectRewardCaller) Owner

func (_ProjectReward *ProjectRewardCaller) 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 (*ProjectRewardCaller) Project

func (_ProjectReward *ProjectRewardCaller) Project(opts *bind.CallOpts) (common.Address, error)

Project is a free data retrieval call binding the contract method 0xf60ca60d.

Solidity: function project() view returns(address)

func (*ProjectRewardCaller) RewardAmount

func (_ProjectReward *ProjectRewardCaller) RewardAmount(opts *bind.CallOpts, owner common.Address, id *big.Int) (*big.Int, error)

RewardAmount is a free data retrieval call binding the contract method 0xc85e4d49.

Solidity: function rewardAmount(address owner, uint256 id) view returns(uint256)

func (*ProjectRewardCaller) RewardToken

func (_ProjectReward *ProjectRewardCaller) RewardToken(opts *bind.CallOpts, _id *big.Int) (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0x509b6c3f.

Solidity: function rewardToken(uint256 _id) view returns(address)

type ProjectRewardCallerRaw

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

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

func (*ProjectRewardCallerRaw) Call

func (_ProjectReward *ProjectRewardCallerRaw) 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 ProjectRewardCallerSession

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

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

func (*ProjectRewardCallerSession) IsPaused

func (_ProjectReward *ProjectRewardCallerSession) IsPaused(_projectId *big.Int) (bool, error)

IsPaused is a free data retrieval call binding the contract method 0xbdf2a43c.

Solidity: function isPaused(uint256 _projectId) view returns(bool)

func (*ProjectRewardCallerSession) Operator

func (_ProjectReward *ProjectRewardCallerSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ProjectRewardCallerSession) Owner

func (_ProjectReward *ProjectRewardCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ProjectRewardCallerSession) Project

func (_ProjectReward *ProjectRewardCallerSession) Project() (common.Address, error)

Project is a free data retrieval call binding the contract method 0xf60ca60d.

Solidity: function project() view returns(address)

func (*ProjectRewardCallerSession) RewardAmount

func (_ProjectReward *ProjectRewardCallerSession) RewardAmount(owner common.Address, id *big.Int) (*big.Int, error)

RewardAmount is a free data retrieval call binding the contract method 0xc85e4d49.

Solidity: function rewardAmount(address owner, uint256 id) view returns(uint256)

func (*ProjectRewardCallerSession) RewardToken

func (_ProjectReward *ProjectRewardCallerSession) RewardToken(_id *big.Int) (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0x509b6c3f.

Solidity: function rewardToken(uint256 _id) view returns(address)

type ProjectRewardFilterer

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

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

func NewProjectRewardFilterer

func NewProjectRewardFilterer(address common.Address, filterer bind.ContractFilterer) (*ProjectRewardFilterer, error)

NewProjectRewardFilterer creates a new log filterer instance of ProjectReward, bound to a specific deployed contract.

func (*ProjectRewardFilterer) FilterInitialized

func (_ProjectReward *ProjectRewardFilterer) FilterInitialized(opts *bind.FilterOpts) (*ProjectRewardInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ProjectRewardFilterer) FilterOperatorSet

func (_ProjectReward *ProjectRewardFilterer) FilterOperatorSet(opts *bind.FilterOpts, operator []common.Address) (*ProjectRewardOperatorSetIterator, error)

FilterOperatorSet is a free log retrieval operation binding the contract event 0x99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d3.

Solidity: event OperatorSet(address indexed operator)

func (*ProjectRewardFilterer) FilterOwnershipTransferred

func (_ProjectReward *ProjectRewardFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProjectRewardOwnershipTransferredIterator, error)

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

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

func (*ProjectRewardFilterer) FilterRewardAmountSet

func (_ProjectReward *ProjectRewardFilterer) FilterRewardAmountSet(opts *bind.FilterOpts, owner []common.Address, id []*big.Int) (*ProjectRewardRewardAmountSetIterator, error)

FilterRewardAmountSet is a free log retrieval operation binding the contract event 0x6b81fd16c9c40197030f5597ecf0a7ef2f1003a250b4c96dd30b1ac71562191d.

Solidity: event RewardAmountSet(address indexed owner, uint256 indexed id, uint256 amount)

func (*ProjectRewardFilterer) FilterRewardTokenSet

func (_ProjectReward *ProjectRewardFilterer) FilterRewardTokenSet(opts *bind.FilterOpts, id []*big.Int, rewardToken []common.Address) (*ProjectRewardRewardTokenSetIterator, error)

FilterRewardTokenSet is a free log retrieval operation binding the contract event 0xd0c0770d6fa3022a42b8328f70c23439b2ac9eae5c54cd50e3da1bdaa600bdf5.

Solidity: event RewardTokenSet(uint256 indexed id, address indexed rewardToken)

func (*ProjectRewardFilterer) ParseInitialized

func (_ProjectReward *ProjectRewardFilterer) ParseInitialized(log types.Log) (*ProjectRewardInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ProjectRewardFilterer) ParseOperatorSet

func (_ProjectReward *ProjectRewardFilterer) ParseOperatorSet(log types.Log) (*ProjectRewardOperatorSet, error)

ParseOperatorSet is a log parse operation binding the contract event 0x99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d3.

Solidity: event OperatorSet(address indexed operator)

func (*ProjectRewardFilterer) ParseOwnershipTransferred

func (_ProjectReward *ProjectRewardFilterer) ParseOwnershipTransferred(log types.Log) (*ProjectRewardOwnershipTransferred, error)

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

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

func (*ProjectRewardFilterer) ParseRewardAmountSet

func (_ProjectReward *ProjectRewardFilterer) ParseRewardAmountSet(log types.Log) (*ProjectRewardRewardAmountSet, error)

ParseRewardAmountSet is a log parse operation binding the contract event 0x6b81fd16c9c40197030f5597ecf0a7ef2f1003a250b4c96dd30b1ac71562191d.

Solidity: event RewardAmountSet(address indexed owner, uint256 indexed id, uint256 amount)

func (*ProjectRewardFilterer) ParseRewardTokenSet

func (_ProjectReward *ProjectRewardFilterer) ParseRewardTokenSet(log types.Log) (*ProjectRewardRewardTokenSet, error)

ParseRewardTokenSet is a log parse operation binding the contract event 0xd0c0770d6fa3022a42b8328f70c23439b2ac9eae5c54cd50e3da1bdaa600bdf5.

Solidity: event RewardTokenSet(uint256 indexed id, address indexed rewardToken)

func (*ProjectRewardFilterer) WatchInitialized

func (_ProjectReward *ProjectRewardFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ProjectRewardInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ProjectRewardFilterer) WatchOperatorSet

func (_ProjectReward *ProjectRewardFilterer) WatchOperatorSet(opts *bind.WatchOpts, sink chan<- *ProjectRewardOperatorSet, operator []common.Address) (event.Subscription, error)

WatchOperatorSet is a free log subscription operation binding the contract event 0x99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d3.

Solidity: event OperatorSet(address indexed operator)

func (*ProjectRewardFilterer) WatchOwnershipTransferred

func (_ProjectReward *ProjectRewardFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProjectRewardOwnershipTransferred, 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 (*ProjectRewardFilterer) WatchRewardAmountSet

func (_ProjectReward *ProjectRewardFilterer) WatchRewardAmountSet(opts *bind.WatchOpts, sink chan<- *ProjectRewardRewardAmountSet, owner []common.Address, id []*big.Int) (event.Subscription, error)

WatchRewardAmountSet is a free log subscription operation binding the contract event 0x6b81fd16c9c40197030f5597ecf0a7ef2f1003a250b4c96dd30b1ac71562191d.

Solidity: event RewardAmountSet(address indexed owner, uint256 indexed id, uint256 amount)

func (*ProjectRewardFilterer) WatchRewardTokenSet

func (_ProjectReward *ProjectRewardFilterer) WatchRewardTokenSet(opts *bind.WatchOpts, sink chan<- *ProjectRewardRewardTokenSet, id []*big.Int, rewardToken []common.Address) (event.Subscription, error)

WatchRewardTokenSet is a free log subscription operation binding the contract event 0xd0c0770d6fa3022a42b8328f70c23439b2ac9eae5c54cd50e3da1bdaa600bdf5.

Solidity: event RewardTokenSet(uint256 indexed id, address indexed rewardToken)

type ProjectRewardInitialized

type ProjectRewardInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

ProjectRewardInitialized represents a Initialized event raised by the ProjectReward contract.

type ProjectRewardInitializedIterator

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

ProjectRewardInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ProjectReward contract.

func (*ProjectRewardInitializedIterator) Close

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

func (*ProjectRewardInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectRewardInitializedIterator) 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 ProjectRewardOperatorSet

type ProjectRewardOperatorSet struct {
	Operator common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ProjectRewardOperatorSet represents a OperatorSet event raised by the ProjectReward contract.

type ProjectRewardOperatorSetIterator

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

ProjectRewardOperatorSetIterator is returned from FilterOperatorSet and is used to iterate over the raw logs and unpacked data for OperatorSet events raised by the ProjectReward contract.

func (*ProjectRewardOperatorSetIterator) Close

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

func (*ProjectRewardOperatorSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectRewardOperatorSetIterator) 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 ProjectRewardOwnershipTransferred

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

ProjectRewardOwnershipTransferred represents a OwnershipTransferred event raised by the ProjectReward contract.

type ProjectRewardOwnershipTransferredIterator

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

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

func (*ProjectRewardOwnershipTransferredIterator) Close

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

func (*ProjectRewardOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectRewardOwnershipTransferredIterator) 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 ProjectRewardRaw

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

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

func (*ProjectRewardRaw) Call

func (_ProjectReward *ProjectRewardRaw) 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 (*ProjectRewardRaw) Transact

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

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

func (*ProjectRewardRaw) Transfer

func (_ProjectReward *ProjectRewardRaw) 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 ProjectRewardRewardAmountSet

type ProjectRewardRewardAmountSet struct {
	Owner  common.Address
	Id     *big.Int
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ProjectRewardRewardAmountSet represents a RewardAmountSet event raised by the ProjectReward contract.

type ProjectRewardRewardAmountSetIterator

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

ProjectRewardRewardAmountSetIterator is returned from FilterRewardAmountSet and is used to iterate over the raw logs and unpacked data for RewardAmountSet events raised by the ProjectReward contract.

func (*ProjectRewardRewardAmountSetIterator) Close

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

func (*ProjectRewardRewardAmountSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectRewardRewardAmountSetIterator) 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 ProjectRewardRewardTokenSet

type ProjectRewardRewardTokenSet struct {
	Id          *big.Int
	RewardToken common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

ProjectRewardRewardTokenSet represents a RewardTokenSet event raised by the ProjectReward contract.

type ProjectRewardRewardTokenSetIterator

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

ProjectRewardRewardTokenSetIterator is returned from FilterRewardTokenSet and is used to iterate over the raw logs and unpacked data for RewardTokenSet events raised by the ProjectReward contract.

func (*ProjectRewardRewardTokenSetIterator) Close

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

func (*ProjectRewardRewardTokenSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectRewardRewardTokenSetIterator) 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 ProjectRewardSession

type ProjectRewardSession struct {
	Contract     *ProjectReward    // 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
}

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

func (*ProjectRewardSession) Initialize

func (_ProjectReward *ProjectRewardSession) Initialize(_project common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _project) returns()

func (*ProjectRewardSession) IsPaused

func (_ProjectReward *ProjectRewardSession) IsPaused(_projectId *big.Int) (bool, error)

IsPaused is a free data retrieval call binding the contract method 0xbdf2a43c.

Solidity: function isPaused(uint256 _projectId) view returns(bool)

func (*ProjectRewardSession) Operator

func (_ProjectReward *ProjectRewardSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ProjectRewardSession) Owner

func (_ProjectReward *ProjectRewardSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ProjectRewardSession) Project

func (_ProjectReward *ProjectRewardSession) Project() (common.Address, error)

Project is a free data retrieval call binding the contract method 0xf60ca60d.

Solidity: function project() view returns(address)

func (*ProjectRewardSession) RenounceOwnership

func (_ProjectReward *ProjectRewardSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ProjectRewardSession) RewardAmount

func (_ProjectReward *ProjectRewardSession) RewardAmount(owner common.Address, id *big.Int) (*big.Int, error)

RewardAmount is a free data retrieval call binding the contract method 0xc85e4d49.

Solidity: function rewardAmount(address owner, uint256 id) view returns(uint256)

func (*ProjectRewardSession) RewardToken

func (_ProjectReward *ProjectRewardSession) RewardToken(_id *big.Int) (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0x509b6c3f.

Solidity: function rewardToken(uint256 _id) view returns(address)

func (*ProjectRewardSession) SetReward

func (_ProjectReward *ProjectRewardSession) SetReward(_id *big.Int, _amount *big.Int) (*types.Transaction, error)

SetReward is a paid mutator transaction binding the contract method 0xa47bd496.

Solidity: function setReward(uint256 _id, uint256 _amount) returns()

func (*ProjectRewardSession) SetRewardToken

func (_ProjectReward *ProjectRewardSession) SetRewardToken(_id *big.Int, _rewardToken common.Address) (*types.Transaction, error)

SetRewardToken is a paid mutator transaction binding the contract method 0xbdd13d4a.

Solidity: function setRewardToken(uint256 _id, address _rewardToken) returns()

func (*ProjectRewardSession) TransferOwnership

func (_ProjectReward *ProjectRewardSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type ProjectRewardTransactor

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

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

func NewProjectRewardTransactor

func NewProjectRewardTransactor(address common.Address, transactor bind.ContractTransactor) (*ProjectRewardTransactor, error)

NewProjectRewardTransactor creates a new write-only instance of ProjectReward, bound to a specific deployed contract.

func (*ProjectRewardTransactor) Initialize

func (_ProjectReward *ProjectRewardTransactor) Initialize(opts *bind.TransactOpts, _project common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _project) returns()

func (*ProjectRewardTransactor) RenounceOwnership

func (_ProjectReward *ProjectRewardTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ProjectRewardTransactor) SetReward

func (_ProjectReward *ProjectRewardTransactor) SetReward(opts *bind.TransactOpts, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

SetReward is a paid mutator transaction binding the contract method 0xa47bd496.

Solidity: function setReward(uint256 _id, uint256 _amount) returns()

func (*ProjectRewardTransactor) SetRewardToken

func (_ProjectReward *ProjectRewardTransactor) SetRewardToken(opts *bind.TransactOpts, _id *big.Int, _rewardToken common.Address) (*types.Transaction, error)

SetRewardToken is a paid mutator transaction binding the contract method 0xbdd13d4a.

Solidity: function setRewardToken(uint256 _id, address _rewardToken) returns()

func (*ProjectRewardTransactor) TransferOwnership

func (_ProjectReward *ProjectRewardTransactor) 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()

type ProjectRewardTransactorRaw

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

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

func (*ProjectRewardTransactorRaw) Transact

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

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

func (*ProjectRewardTransactorRaw) Transfer

func (_ProjectReward *ProjectRewardTransactorRaw) 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 ProjectRewardTransactorSession

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

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

func (*ProjectRewardTransactorSession) Initialize

func (_ProjectReward *ProjectRewardTransactorSession) Initialize(_project common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _project) returns()

func (*ProjectRewardTransactorSession) RenounceOwnership

func (_ProjectReward *ProjectRewardTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ProjectRewardTransactorSession) SetReward

func (_ProjectReward *ProjectRewardTransactorSession) SetReward(_id *big.Int, _amount *big.Int) (*types.Transaction, error)

SetReward is a paid mutator transaction binding the contract method 0xa47bd496.

Solidity: function setReward(uint256 _id, uint256 _amount) returns()

func (*ProjectRewardTransactorSession) SetRewardToken

func (_ProjectReward *ProjectRewardTransactorSession) SetRewardToken(_id *big.Int, _rewardToken common.Address) (*types.Transaction, error)

SetRewardToken is a paid mutator transaction binding the contract method 0xbdd13d4a.

Solidity: function setRewardToken(uint256 _id, address _rewardToken) returns()

func (*ProjectRewardTransactorSession) TransferOwnership

func (_ProjectReward *ProjectRewardTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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