Documentation
¶
Index ¶
- Variables
- type Minter
- type MinterCaller
- func (_Minter *MinterCaller) Distributor(opts *bind.CallOpts) (common.Address, error)
- func (_Minter *MinterCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Minter *MinterCaller) Reward(opts *bind.CallOpts) (*big.Int, error)
- func (_Minter *MinterCaller) TaskAllowance(opts *bind.CallOpts) (*big.Int, error)
- func (_Minter *MinterCaller) TaskManager(opts *bind.CallOpts) (common.Address, error)
- type MinterCallerRaw
- type MinterCallerSession
- func (_Minter *MinterCallerSession) Distributor() (common.Address, error)
- func (_Minter *MinterCallerSession) Owner() (common.Address, error)
- func (_Minter *MinterCallerSession) Reward() (*big.Int, error)
- func (_Minter *MinterCallerSession) TaskAllowance() (*big.Int, error)
- func (_Minter *MinterCallerSession) TaskManager() (common.Address, error)
- type MinterFilterer
- func (_Minter *MinterFilterer) FilterInitialized(opts *bind.FilterOpts) (*MinterInitializedIterator, error)
- func (_Minter *MinterFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*MinterOwnershipTransferredIterator, error)
- func (_Minter *MinterFilterer) FilterRewardSet(opts *bind.FilterOpts) (*MinterRewardSetIterator, error)
- func (_Minter *MinterFilterer) FilterTargetDurationSet(opts *bind.FilterOpts) (*MinterTargetDurationSetIterator, error)
- func (_Minter *MinterFilterer) FilterTaskAllowanceSet(opts *bind.FilterOpts) (*MinterTaskAllowanceSetIterator, error)
- func (_Minter *MinterFilterer) ParseInitialized(log types.Log) (*MinterInitialized, error)
- func (_Minter *MinterFilterer) ParseOwnershipTransferred(log types.Log) (*MinterOwnershipTransferred, error)
- func (_Minter *MinterFilterer) ParseRewardSet(log types.Log) (*MinterRewardSet, error)
- func (_Minter *MinterFilterer) ParseTargetDurationSet(log types.Log) (*MinterTargetDurationSet, error)
- func (_Minter *MinterFilterer) ParseTaskAllowanceSet(log types.Log) (*MinterTaskAllowanceSet, error)
- func (_Minter *MinterFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MinterInitialized) (event.Subscription, error)
- func (_Minter *MinterFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MinterOwnershipTransferred, ...) (event.Subscription, error)
- func (_Minter *MinterFilterer) WatchRewardSet(opts *bind.WatchOpts, sink chan<- *MinterRewardSet) (event.Subscription, error)
- func (_Minter *MinterFilterer) WatchTargetDurationSet(opts *bind.WatchOpts, sink chan<- *MinterTargetDurationSet) (event.Subscription, error)
- func (_Minter *MinterFilterer) WatchTaskAllowanceSet(opts *bind.WatchOpts, sink chan<- *MinterTaskAllowanceSet) (event.Subscription, error)
- type MinterInitialized
- type MinterInitializedIterator
- type MinterOwnershipTransferred
- type MinterOwnershipTransferredIterator
- type MinterRaw
- func (_Minter *MinterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Minter *MinterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Minter *MinterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MinterRewardSet
- type MinterRewardSetIterator
- type MinterSession
- func (_Minter *MinterSession) Distributor() (common.Address, error)
- func (_Minter *MinterSession) Initialize(_taskManager common.Address, _distributor common.Address) (*types.Transaction, error)
- func (_Minter *MinterSession) Mint(coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)
- func (_Minter *MinterSession) Owner() (common.Address, error)
- func (_Minter *MinterSession) RenounceOwnership() (*types.Transaction, error)
- func (_Minter *MinterSession) Reward() (*big.Int, error)
- func (_Minter *MinterSession) SetReward(_reward *big.Int) (*types.Transaction, error)
- func (_Minter *MinterSession) SetTaskAllowance(allowance *big.Int) (*types.Transaction, error)
- func (_Minter *MinterSession) TaskAllowance() (*big.Int, error)
- func (_Minter *MinterSession) TaskManager() (common.Address, error)
- func (_Minter *MinterSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type MinterTargetDurationSet
- type MinterTargetDurationSetIterator
- type MinterTaskAllowanceSet
- type MinterTaskAllowanceSetIterator
- type MinterTransactor
- func (_Minter *MinterTransactor) Initialize(opts *bind.TransactOpts, _taskManager common.Address, ...) (*types.Transaction, error)
- func (_Minter *MinterTransactor) Mint(opts *bind.TransactOpts, coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)
- func (_Minter *MinterTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Minter *MinterTransactor) SetReward(opts *bind.TransactOpts, _reward *big.Int) (*types.Transaction, error)
- func (_Minter *MinterTransactor) SetTaskAllowance(opts *bind.TransactOpts, allowance *big.Int) (*types.Transaction, error)
- func (_Minter *MinterTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type MinterTransactorRaw
- type MinterTransactorSession
- func (_Minter *MinterTransactorSession) Initialize(_taskManager common.Address, _distributor common.Address) (*types.Transaction, error)
- func (_Minter *MinterTransactorSession) Mint(coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)
- func (_Minter *MinterTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Minter *MinterTransactorSession) SetReward(_reward *big.Int) (*types.Transaction, error)
- func (_Minter *MinterTransactorSession) SetTaskAllowance(allowance *big.Int) (*types.Transaction, error)
- func (_Minter *MinterTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type Sequencer
- type TaskAssignment
Constants ¶
This section is empty.
Variables ¶
var MinterABI = MinterMetaData.ABI
MinterABI is the input ABI used to generate the binding from. Deprecated: Use MinterMetaData.ABI instead.
var MinterMetaData = &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\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"RewardSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"TargetDurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"}],\"name\":\"TaskAllowanceSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"distributor\",\"outputs\":[{\"internalType\":\"contractIRewardDistributor\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractITaskManager\",\"name\":\"_taskManager\",\"type\":\"address\"},{\"internalType\":\"contractIRewardDistributor\",\"name\":\"_distributor\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structSequencer\",\"name\":\"coinbase\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"taskId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"internalType\":\"structTaskAssignment[]\",\"name\":\"assignments\",\"type\":\"tuple[]\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_reward\",\"type\":\"uint256\"}],\"name\":\"setReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"}],\"name\":\"setTaskAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"taskAllowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"taskManager\",\"outputs\":[{\"internalType\":\"contractITaskManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
MinterMetaData contains all meta data concerning the Minter contract.
Functions ¶
This section is empty.
Types ¶
type Minter ¶
type Minter struct {
MinterCaller // Read-only binding to the contract
MinterTransactor // Write-only binding to the contract
MinterFilterer // Log filterer for contract events
}
Minter is an auto generated Go binding around an Ethereum contract.
type MinterCaller ¶
type MinterCaller struct {
// contains filtered or unexported fields
}
MinterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMinterCaller ¶
func NewMinterCaller(address common.Address, caller bind.ContractCaller) (*MinterCaller, error)
NewMinterCaller creates a new read-only instance of Minter, bound to a specific deployed contract.
func (*MinterCaller) Distributor ¶ added in v0.15.7
Distributor is a free data retrieval call binding the contract method 0xbfe10928.
Solidity: function distributor() view returns(address)
func (*MinterCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MinterCaller) Reward ¶ added in v0.19.0
Reward is a free data retrieval call binding the contract method 0x228cb733.
Solidity: function reward() view returns(uint256)
func (*MinterCaller) TaskAllowance ¶
TaskAllowance is a free data retrieval call binding the contract method 0xb6c11e51.
Solidity: function taskAllowance() view returns(uint256)
func (*MinterCaller) TaskManager ¶ added in v0.15.7
TaskManager is a free data retrieval call binding the contract method 0xa50a640e.
Solidity: function taskManager() view returns(address)
type MinterCallerRaw ¶
type MinterCallerRaw struct {
Contract *MinterCaller // Generic read-only contract binding to access the raw methods on
}
MinterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MinterCallerRaw) Call ¶
func (_Minter *MinterCallerRaw) 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 MinterCallerSession ¶
type MinterCallerSession struct {
Contract *MinterCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
MinterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MinterCallerSession) Distributor ¶ added in v0.15.7
func (_Minter *MinterCallerSession) Distributor() (common.Address, error)
Distributor is a free data retrieval call binding the contract method 0xbfe10928.
Solidity: function distributor() view returns(address)
func (*MinterCallerSession) Owner ¶
func (_Minter *MinterCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MinterCallerSession) Reward ¶ added in v0.19.0
func (_Minter *MinterCallerSession) Reward() (*big.Int, error)
Reward is a free data retrieval call binding the contract method 0x228cb733.
Solidity: function reward() view returns(uint256)
func (*MinterCallerSession) TaskAllowance ¶
func (_Minter *MinterCallerSession) TaskAllowance() (*big.Int, error)
TaskAllowance is a free data retrieval call binding the contract method 0xb6c11e51.
Solidity: function taskAllowance() view returns(uint256)
func (*MinterCallerSession) TaskManager ¶ added in v0.15.7
func (_Minter *MinterCallerSession) TaskManager() (common.Address, error)
TaskManager is a free data retrieval call binding the contract method 0xa50a640e.
Solidity: function taskManager() view returns(address)
type MinterFilterer ¶
type MinterFilterer struct {
// contains filtered or unexported fields
}
MinterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMinterFilterer ¶
func NewMinterFilterer(address common.Address, filterer bind.ContractFilterer) (*MinterFilterer, error)
NewMinterFilterer creates a new log filterer instance of Minter, bound to a specific deployed contract.
func (*MinterFilterer) FilterInitialized ¶
func (_Minter *MinterFilterer) FilterInitialized(opts *bind.FilterOpts) (*MinterInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*MinterFilterer) FilterOwnershipTransferred ¶
func (_Minter *MinterFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MinterOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MinterFilterer) FilterRewardSet ¶ added in v0.19.0
func (_Minter *MinterFilterer) FilterRewardSet(opts *bind.FilterOpts) (*MinterRewardSetIterator, error)
FilterRewardSet is a free log retrieval operation binding the contract event 0x4c42db8a799110fdd6a26148a21a5fbe4e581c926bccfd3b2d8a7f3aed4a87c8.
Solidity: event RewardSet(uint256 reward)
func (*MinterFilterer) FilterTargetDurationSet ¶
func (_Minter *MinterFilterer) FilterTargetDurationSet(opts *bind.FilterOpts) (*MinterTargetDurationSetIterator, error)
FilterTargetDurationSet is a free log retrieval operation binding the contract event 0x09d59fc02af479aae6b9ec944a55713b23cd8748872c7621d79b4ddf645950c6.
Solidity: event TargetDurationSet(uint256 duration)
func (*MinterFilterer) FilterTaskAllowanceSet ¶
func (_Minter *MinterFilterer) FilterTaskAllowanceSet(opts *bind.FilterOpts) (*MinterTaskAllowanceSetIterator, error)
FilterTaskAllowanceSet is a free log retrieval operation binding the contract event 0x3b703b8b82fb6fcf76d8b6e487a021501299c2cb2050c7c9cce7b47fa7325bf1.
Solidity: event TaskAllowanceSet(uint256 allowance)
func (*MinterFilterer) ParseInitialized ¶
func (_Minter *MinterFilterer) ParseInitialized(log types.Log) (*MinterInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*MinterFilterer) ParseOwnershipTransferred ¶
func (_Minter *MinterFilterer) ParseOwnershipTransferred(log types.Log) (*MinterOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MinterFilterer) ParseRewardSet ¶ added in v0.19.0
func (_Minter *MinterFilterer) ParseRewardSet(log types.Log) (*MinterRewardSet, error)
ParseRewardSet is a log parse operation binding the contract event 0x4c42db8a799110fdd6a26148a21a5fbe4e581c926bccfd3b2d8a7f3aed4a87c8.
Solidity: event RewardSet(uint256 reward)
func (*MinterFilterer) ParseTargetDurationSet ¶
func (_Minter *MinterFilterer) ParseTargetDurationSet(log types.Log) (*MinterTargetDurationSet, error)
ParseTargetDurationSet is a log parse operation binding the contract event 0x09d59fc02af479aae6b9ec944a55713b23cd8748872c7621d79b4ddf645950c6.
Solidity: event TargetDurationSet(uint256 duration)
func (*MinterFilterer) ParseTaskAllowanceSet ¶
func (_Minter *MinterFilterer) ParseTaskAllowanceSet(log types.Log) (*MinterTaskAllowanceSet, error)
ParseTaskAllowanceSet is a log parse operation binding the contract event 0x3b703b8b82fb6fcf76d8b6e487a021501299c2cb2050c7c9cce7b47fa7325bf1.
Solidity: event TaskAllowanceSet(uint256 allowance)
func (*MinterFilterer) WatchInitialized ¶
func (_Minter *MinterFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MinterInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*MinterFilterer) WatchOwnershipTransferred ¶
func (_Minter *MinterFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MinterOwnershipTransferred, 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 (*MinterFilterer) WatchRewardSet ¶ added in v0.19.0
func (_Minter *MinterFilterer) WatchRewardSet(opts *bind.WatchOpts, sink chan<- *MinterRewardSet) (event.Subscription, error)
WatchRewardSet is a free log subscription operation binding the contract event 0x4c42db8a799110fdd6a26148a21a5fbe4e581c926bccfd3b2d8a7f3aed4a87c8.
Solidity: event RewardSet(uint256 reward)
func (*MinterFilterer) WatchTargetDurationSet ¶
func (_Minter *MinterFilterer) WatchTargetDurationSet(opts *bind.WatchOpts, sink chan<- *MinterTargetDurationSet) (event.Subscription, error)
WatchTargetDurationSet is a free log subscription operation binding the contract event 0x09d59fc02af479aae6b9ec944a55713b23cd8748872c7621d79b4ddf645950c6.
Solidity: event TargetDurationSet(uint256 duration)
func (*MinterFilterer) WatchTaskAllowanceSet ¶
func (_Minter *MinterFilterer) WatchTaskAllowanceSet(opts *bind.WatchOpts, sink chan<- *MinterTaskAllowanceSet) (event.Subscription, error)
WatchTaskAllowanceSet is a free log subscription operation binding the contract event 0x3b703b8b82fb6fcf76d8b6e487a021501299c2cb2050c7c9cce7b47fa7325bf1.
Solidity: event TaskAllowanceSet(uint256 allowance)
type MinterInitialized ¶
type MinterInitialized struct {
Version uint8
Raw types.Log // Blockchain specific contextual infos
}
MinterInitialized represents a Initialized event raised by the Minter contract.
type MinterInitializedIterator ¶
type MinterInitializedIterator struct {
Event *MinterInitialized // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
MinterInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Minter contract.
func (*MinterInitializedIterator) Close ¶
func (it *MinterInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinterInitializedIterator) Error ¶
func (it *MinterInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinterInitializedIterator) Next ¶
func (it *MinterInitializedIterator) 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 MinterOwnershipTransferred ¶
type MinterOwnershipTransferred struct {
PreviousOwner common.Address
NewOwner common.Address
Raw types.Log // Blockchain specific contextual infos
}
MinterOwnershipTransferred represents a OwnershipTransferred event raised by the Minter contract.
type MinterOwnershipTransferredIterator ¶
type MinterOwnershipTransferredIterator struct {
Event *MinterOwnershipTransferred // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
MinterOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Minter contract.
func (*MinterOwnershipTransferredIterator) Close ¶
func (it *MinterOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinterOwnershipTransferredIterator) Error ¶
func (it *MinterOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinterOwnershipTransferredIterator) Next ¶
func (it *MinterOwnershipTransferredIterator) 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 MinterRaw ¶
type MinterRaw struct {
Contract *Minter // Generic contract binding to access the raw methods on
}
MinterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MinterRaw) Call ¶
func (_Minter *MinterRaw) 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 (*MinterRaw) Transact ¶
func (_Minter *MinterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MinterRaw) Transfer ¶
func (_Minter *MinterRaw) 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 MinterRewardSet ¶ added in v0.19.0
type MinterRewardSet struct {
Reward *big.Int
Raw types.Log // Blockchain specific contextual infos
}
MinterRewardSet represents a RewardSet event raised by the Minter contract.
type MinterRewardSetIterator ¶ added in v0.19.0
type MinterRewardSetIterator struct {
Event *MinterRewardSet // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
MinterRewardSetIterator is returned from FilterRewardSet and is used to iterate over the raw logs and unpacked data for RewardSet events raised by the Minter contract.
func (*MinterRewardSetIterator) Close ¶ added in v0.19.0
func (it *MinterRewardSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinterRewardSetIterator) Error ¶ added in v0.19.0
func (it *MinterRewardSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinterRewardSetIterator) Next ¶ added in v0.19.0
func (it *MinterRewardSetIterator) 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 MinterSession ¶
type MinterSession struct {
Contract *Minter // 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
}
MinterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MinterSession) Distributor ¶ added in v0.15.7
func (_Minter *MinterSession) Distributor() (common.Address, error)
Distributor is a free data retrieval call binding the contract method 0xbfe10928.
Solidity: function distributor() view returns(address)
func (*MinterSession) Initialize ¶
func (_Minter *MinterSession) Initialize(_taskManager common.Address, _distributor common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address _taskManager, address _distributor) returns()
func (*MinterSession) Mint ¶
func (_Minter *MinterSession) Mint(coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x581b7575.
Solidity: function mint((address,address,address) coinbase, (uint256,bytes32,bytes32,bytes,address)[] assignments) returns()
func (*MinterSession) Owner ¶
func (_Minter *MinterSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MinterSession) RenounceOwnership ¶
func (_Minter *MinterSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MinterSession) Reward ¶ added in v0.19.0
func (_Minter *MinterSession) Reward() (*big.Int, error)
Reward is a free data retrieval call binding the contract method 0x228cb733.
Solidity: function reward() view returns(uint256)
func (*MinterSession) SetReward ¶ added in v0.19.0
func (_Minter *MinterSession) SetReward(_reward *big.Int) (*types.Transaction, error)
SetReward is a paid mutator transaction binding the contract method 0x293be456.
Solidity: function setReward(uint256 _reward) returns()
func (*MinterSession) SetTaskAllowance ¶
func (_Minter *MinterSession) SetTaskAllowance(allowance *big.Int) (*types.Transaction, error)
SetTaskAllowance is a paid mutator transaction binding the contract method 0x92d894ec.
Solidity: function setTaskAllowance(uint256 allowance) returns()
func (*MinterSession) TaskAllowance ¶
func (_Minter *MinterSession) TaskAllowance() (*big.Int, error)
TaskAllowance is a free data retrieval call binding the contract method 0xb6c11e51.
Solidity: function taskAllowance() view returns(uint256)
func (*MinterSession) TaskManager ¶ added in v0.15.7
func (_Minter *MinterSession) TaskManager() (common.Address, error)
TaskManager is a free data retrieval call binding the contract method 0xa50a640e.
Solidity: function taskManager() view returns(address)
func (*MinterSession) TransferOwnership ¶
func (_Minter *MinterSession) 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 MinterTargetDurationSet ¶
type MinterTargetDurationSet struct {
Duration *big.Int
Raw types.Log // Blockchain specific contextual infos
}
MinterTargetDurationSet represents a TargetDurationSet event raised by the Minter contract.
type MinterTargetDurationSetIterator ¶
type MinterTargetDurationSetIterator struct {
Event *MinterTargetDurationSet // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
MinterTargetDurationSetIterator is returned from FilterTargetDurationSet and is used to iterate over the raw logs and unpacked data for TargetDurationSet events raised by the Minter contract.
func (*MinterTargetDurationSetIterator) Close ¶
func (it *MinterTargetDurationSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinterTargetDurationSetIterator) Error ¶
func (it *MinterTargetDurationSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinterTargetDurationSetIterator) Next ¶
func (it *MinterTargetDurationSetIterator) 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 MinterTaskAllowanceSet ¶
type MinterTaskAllowanceSet struct {
Allowance *big.Int
Raw types.Log // Blockchain specific contextual infos
}
MinterTaskAllowanceSet represents a TaskAllowanceSet event raised by the Minter contract.
type MinterTaskAllowanceSetIterator ¶
type MinterTaskAllowanceSetIterator struct {
Event *MinterTaskAllowanceSet // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
MinterTaskAllowanceSetIterator is returned from FilterTaskAllowanceSet and is used to iterate over the raw logs and unpacked data for TaskAllowanceSet events raised by the Minter contract.
func (*MinterTaskAllowanceSetIterator) Close ¶
func (it *MinterTaskAllowanceSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinterTaskAllowanceSetIterator) Error ¶
func (it *MinterTaskAllowanceSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinterTaskAllowanceSetIterator) Next ¶
func (it *MinterTaskAllowanceSetIterator) 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 MinterTransactor ¶
type MinterTransactor struct {
// contains filtered or unexported fields
}
MinterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMinterTransactor ¶
func NewMinterTransactor(address common.Address, transactor bind.ContractTransactor) (*MinterTransactor, error)
NewMinterTransactor creates a new write-only instance of Minter, bound to a specific deployed contract.
func (*MinterTransactor) Initialize ¶
func (_Minter *MinterTransactor) Initialize(opts *bind.TransactOpts, _taskManager common.Address, _distributor common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address _taskManager, address _distributor) returns()
func (*MinterTransactor) Mint ¶
func (_Minter *MinterTransactor) Mint(opts *bind.TransactOpts, coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x581b7575.
Solidity: function mint((address,address,address) coinbase, (uint256,bytes32,bytes32,bytes,address)[] assignments) returns()
func (*MinterTransactor) RenounceOwnership ¶
func (_Minter *MinterTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MinterTransactor) SetReward ¶ added in v0.19.0
func (_Minter *MinterTransactor) SetReward(opts *bind.TransactOpts, _reward *big.Int) (*types.Transaction, error)
SetReward is a paid mutator transaction binding the contract method 0x293be456.
Solidity: function setReward(uint256 _reward) returns()
func (*MinterTransactor) SetTaskAllowance ¶
func (_Minter *MinterTransactor) SetTaskAllowance(opts *bind.TransactOpts, allowance *big.Int) (*types.Transaction, error)
SetTaskAllowance is a paid mutator transaction binding the contract method 0x92d894ec.
Solidity: function setTaskAllowance(uint256 allowance) returns()
func (*MinterTransactor) TransferOwnership ¶
func (_Minter *MinterTransactor) 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 MinterTransactorRaw ¶
type MinterTransactorRaw struct {
Contract *MinterTransactor // Generic write-only contract binding to access the raw methods on
}
MinterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MinterTransactorRaw) Transact ¶
func (_Minter *MinterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MinterTransactorRaw) Transfer ¶
func (_Minter *MinterTransactorRaw) 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 MinterTransactorSession ¶
type MinterTransactorSession struct {
Contract *MinterTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
MinterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MinterTransactorSession) Initialize ¶
func (_Minter *MinterTransactorSession) Initialize(_taskManager common.Address, _distributor common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address _taskManager, address _distributor) returns()
func (*MinterTransactorSession) Mint ¶
func (_Minter *MinterTransactorSession) Mint(coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x581b7575.
Solidity: function mint((address,address,address) coinbase, (uint256,bytes32,bytes32,bytes,address)[] assignments) returns()
func (*MinterTransactorSession) RenounceOwnership ¶
func (_Minter *MinterTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MinterTransactorSession) SetReward ¶ added in v0.19.0
func (_Minter *MinterTransactorSession) SetReward(_reward *big.Int) (*types.Transaction, error)
SetReward is a paid mutator transaction binding the contract method 0x293be456.
Solidity: function setReward(uint256 _reward) returns()
func (*MinterTransactorSession) SetTaskAllowance ¶
func (_Minter *MinterTransactorSession) SetTaskAllowance(allowance *big.Int) (*types.Transaction, error)
SetTaskAllowance is a paid mutator transaction binding the contract method 0x92d894ec.
Solidity: function setTaskAllowance(uint256 allowance) returns()
func (*MinterTransactorSession) TransferOwnership ¶
func (_Minter *MinterTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()