minter

package
v0.15.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinterABI = MinterMetaData.ABI

MinterABI is the input ABI used to generate the binding from. Deprecated: Use MinterMetaData.ABI instead.

View Source
var MinterMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"BlockRewardfSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"nbits\",\"type\":\"uint32\"}],\"name\":\"NBitsSet\",\"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\":\"duration\",\"type\":\"uint256\"}],\"name\":\"TargetDurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"}],\"name\":\"TaskAllowanceSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"blockReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentNBits\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dao\",\"outputs\":[{\"internalType\":\"contractIDAO\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distributor\",\"outputs\":[{\"internalType\":\"contractIBlockRewardDistributor\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIDAO\",\"name\":\"_dao\",\"type\":\"address\"},{\"internalType\":\"contractITaskManager\",\"name\":\"_taskManager\",\"type\":\"address\"},{\"internalType\":\"contractIBlockRewardDistributor\",\"name\":\"_distributor\",\"type\":\"address\"},{\"internalType\":\"contractIScrypt\",\"name\":\"_scrypt\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes4\",\"name\":\"meta\",\"type\":\"bytes4\"},{\"internalType\":\"bytes32\",\"name\":\"prevhash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"nbits\",\"type\":\"uint32\"},{\"internalType\":\"bytes8\",\"name\":\"nonce\",\"type\":\"bytes8\"}],\"internalType\":\"structBlockInfo\",\"name\":\"blockinfo\",\"type\":\"tuple\"},{\"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\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"internalType\":\"structTaskAssignment[]\",\"name\":\"assignments\",\"type\":\"tuple[]\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"nbits\",\"type\":\"uint32\"}],\"name\":\"nbitsToTarget\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"nbits\",\"type\":\"uint32\"}],\"name\":\"setAdhocNBits\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"setBlockReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"setTargetDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"}],\"name\":\"setTaskAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"targetDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\"},{\"inputs\":[],\"name\":\"useAdhocNBits\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

MinterMetaData contains all meta data concerning the Minter contract.

Functions

This section is empty.

Types

type BlockInfo

type BlockInfo struct {
	Meta       [4]byte
	Prevhash   [32]byte
	MerkleRoot [32]byte
	Nbits      uint32
	Nonce      [8]byte
}

BlockInfo is an auto generated low-level Go binding around an user-defined struct.

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.

func NewMinter

func NewMinter(address common.Address, backend bind.ContractBackend) (*Minter, error)

NewMinter creates a new instance of Minter, bound to a specific deployed contract.

type MinterBlockRewardfSet added in v0.15.7

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

MinterBlockRewardfSet represents a BlockRewardfSet event raised by the Minter contract.

type MinterBlockRewardfSetIterator added in v0.15.7

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

MinterBlockRewardfSetIterator is returned from FilterBlockRewardfSet and is used to iterate over the raw logs and unpacked data for BlockRewardfSet events raised by the Minter contract.

func (*MinterBlockRewardfSetIterator) Close added in v0.15.7

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

func (*MinterBlockRewardfSetIterator) Error added in v0.15.7

Error returns any retrieval or parsing error occurred during filtering.

func (*MinterBlockRewardfSetIterator) Next added in v0.15.7

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 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) BlockReward added in v0.15.7

func (_Minter *MinterCaller) BlockReward(opts *bind.CallOpts) (*big.Int, error)

BlockReward is a free data retrieval call binding the contract method 0x0ac168a1.

Solidity: function blockReward() view returns(uint256)

func (*MinterCaller) CurrentNBits added in v0.15.3

func (_Minter *MinterCaller) CurrentNBits(opts *bind.CallOpts) (uint32, error)

CurrentNBits is a free data retrieval call binding the contract method 0x626a0ccb.

Solidity: function currentNBits() view returns(uint32)

func (*MinterCaller) Dao

func (_Minter *MinterCaller) Dao(opts *bind.CallOpts) (common.Address, error)

Dao is a free data retrieval call binding the contract method 0x4162169f.

Solidity: function dao() view returns(address)

func (*MinterCaller) Distributor added in v0.15.7

func (_Minter *MinterCaller) Distributor(opts *bind.CallOpts) (common.Address, error)

Distributor is a free data retrieval call binding the contract method 0xbfe10928.

Solidity: function distributor() view returns(address)

func (*MinterCaller) NbitsToTarget added in v0.15.7

func (_Minter *MinterCaller) NbitsToTarget(opts *bind.CallOpts, nbits uint32) (*big.Int, error)

NbitsToTarget is a free data retrieval call binding the contract method 0x7b6194c6.

Solidity: function nbitsToTarget(uint32 nbits) pure returns(uint256)

func (*MinterCaller) Owner

func (_Minter *MinterCaller) 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 (*MinterCaller) TargetDuration

func (_Minter *MinterCaller) TargetDuration(opts *bind.CallOpts) (*big.Int, error)

TargetDuration is a free data retrieval call binding the contract method 0xf0cdec63.

Solidity: function targetDuration() view returns(uint256)

func (*MinterCaller) TaskAllowance

func (_Minter *MinterCaller) TaskAllowance(opts *bind.CallOpts) (*big.Int, error)

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

func (_Minter *MinterCaller) TaskManager(opts *bind.CallOpts) (common.Address, error)

TaskManager is a free data retrieval call binding the contract method 0xa50a640e.

Solidity: function taskManager() view returns(address)

func (*MinterCaller) UseAdhocNBits added in v0.15.3

func (_Minter *MinterCaller) UseAdhocNBits(opts *bind.CallOpts) (bool, error)

UseAdhocNBits is a free data retrieval call binding the contract method 0xb415aa51.

Solidity: function useAdhocNBits() view returns(bool)

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) BlockReward added in v0.15.7

func (_Minter *MinterCallerSession) BlockReward() (*big.Int, error)

BlockReward is a free data retrieval call binding the contract method 0x0ac168a1.

Solidity: function blockReward() view returns(uint256)

func (*MinterCallerSession) CurrentNBits added in v0.15.3

func (_Minter *MinterCallerSession) CurrentNBits() (uint32, error)

CurrentNBits is a free data retrieval call binding the contract method 0x626a0ccb.

Solidity: function currentNBits() view returns(uint32)

func (*MinterCallerSession) Dao

func (_Minter *MinterCallerSession) Dao() (common.Address, error)

Dao is a free data retrieval call binding the contract method 0x4162169f.

Solidity: function dao() view returns(address)

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) NbitsToTarget added in v0.15.7

func (_Minter *MinterCallerSession) NbitsToTarget(nbits uint32) (*big.Int, error)

NbitsToTarget is a free data retrieval call binding the contract method 0x7b6194c6.

Solidity: function nbitsToTarget(uint32 nbits) pure returns(uint256)

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) TargetDuration

func (_Minter *MinterCallerSession) TargetDuration() (*big.Int, error)

TargetDuration is a free data retrieval call binding the contract method 0xf0cdec63.

Solidity: function targetDuration() 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)

func (*MinterCallerSession) UseAdhocNBits added in v0.15.3

func (_Minter *MinterCallerSession) UseAdhocNBits() (bool, error)

UseAdhocNBits is a free data retrieval call binding the contract method 0xb415aa51.

Solidity: function useAdhocNBits() view returns(bool)

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) FilterBlockRewardfSet added in v0.15.7

func (_Minter *MinterFilterer) FilterBlockRewardfSet(opts *bind.FilterOpts) (*MinterBlockRewardfSetIterator, error)

FilterBlockRewardfSet is a free log retrieval operation binding the contract event 0x92121bd60c0061b634208f9f1b60e75a6bd603348031e3df06d29d2cbef32a55.

Solidity: event BlockRewardfSet(uint256 reward)

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) FilterNBitsSet added in v0.15.3

func (_Minter *MinterFilterer) FilterNBitsSet(opts *bind.FilterOpts) (*MinterNBitsSetIterator, error)

FilterNBitsSet is a free log retrieval operation binding the contract event 0xe8dd26f51ea2466f2a2a2bad6b1065a8ba4f43f587f210d03bc7ee3c24b25a98.

Solidity: event NBitsSet(uint32 nbits)

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) 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) ParseBlockRewardfSet added in v0.15.7

func (_Minter *MinterFilterer) ParseBlockRewardfSet(log types.Log) (*MinterBlockRewardfSet, error)

ParseBlockRewardfSet is a log parse operation binding the contract event 0x92121bd60c0061b634208f9f1b60e75a6bd603348031e3df06d29d2cbef32a55.

Solidity: event BlockRewardfSet(uint256 reward)

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) ParseNBitsSet added in v0.15.3

func (_Minter *MinterFilterer) ParseNBitsSet(log types.Log) (*MinterNBitsSet, error)

ParseNBitsSet is a log parse operation binding the contract event 0xe8dd26f51ea2466f2a2a2bad6b1065a8ba4f43f587f210d03bc7ee3c24b25a98.

Solidity: event NBitsSet(uint32 nbits)

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) 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) WatchBlockRewardfSet added in v0.15.7

func (_Minter *MinterFilterer) WatchBlockRewardfSet(opts *bind.WatchOpts, sink chan<- *MinterBlockRewardfSet) (event.Subscription, error)

WatchBlockRewardfSet is a free log subscription operation binding the contract event 0x92121bd60c0061b634208f9f1b60e75a6bd603348031e3df06d29d2cbef32a55.

Solidity: event BlockRewardfSet(uint256 reward)

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) WatchNBitsSet added in v0.15.3

func (_Minter *MinterFilterer) WatchNBitsSet(opts *bind.WatchOpts, sink chan<- *MinterNBitsSet) (event.Subscription, error)

WatchNBitsSet is a free log subscription operation binding the contract event 0xe8dd26f51ea2466f2a2a2bad6b1065a8ba4f43f587f210d03bc7ee3c24b25a98.

Solidity: event NBitsSet(uint32 nbits)

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) 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 MinterNBitsSet added in v0.15.3

type MinterNBitsSet struct {
	Nbits uint32
	Raw   types.Log // Blockchain specific contextual infos
}

MinterNBitsSet represents a NBitsSet event raised by the Minter contract.

type MinterNBitsSetIterator added in v0.15.3

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

MinterNBitsSetIterator is returned from FilterNBitsSet and is used to iterate over the raw logs and unpacked data for NBitsSet events raised by the Minter contract.

func (*MinterNBitsSetIterator) Close added in v0.15.3

func (it *MinterNBitsSetIterator) Close() error

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

func (*MinterNBitsSetIterator) Error added in v0.15.3

func (it *MinterNBitsSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MinterNBitsSetIterator) Next added in v0.15.3

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

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

func (*MinterOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MinterOwnershipTransferredIterator) 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 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 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) BlockReward added in v0.15.7

func (_Minter *MinterSession) BlockReward() (*big.Int, error)

BlockReward is a free data retrieval call binding the contract method 0x0ac168a1.

Solidity: function blockReward() view returns(uint256)

func (*MinterSession) CurrentNBits added in v0.15.3

func (_Minter *MinterSession) CurrentNBits() (uint32, error)

CurrentNBits is a free data retrieval call binding the contract method 0x626a0ccb.

Solidity: function currentNBits() view returns(uint32)

func (*MinterSession) Dao

func (_Minter *MinterSession) Dao() (common.Address, error)

Dao is a free data retrieval call binding the contract method 0x4162169f.

Solidity: function dao() view returns(address)

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(_dao common.Address, _taskManager common.Address, _distributor common.Address, _scrypt common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _dao, address _taskManager, address _distributor, address _scrypt) returns()

func (*MinterSession) Mint

func (_Minter *MinterSession) Mint(blockinfo BlockInfo, coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x8f7118a7.

Solidity: function mint((bytes4,bytes32,bytes32,uint32,bytes8) blockinfo, (address,address,address) coinbase, (uint256,bytes32,address)[] assignments) returns()

func (*MinterSession) NbitsToTarget added in v0.15.7

func (_Minter *MinterSession) NbitsToTarget(nbits uint32) (*big.Int, error)

NbitsToTarget is a free data retrieval call binding the contract method 0x7b6194c6.

Solidity: function nbitsToTarget(uint32 nbits) pure returns(uint256)

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) SetAdhocNBits added in v0.15.3

func (_Minter *MinterSession) SetAdhocNBits(nbits uint32) (*types.Transaction, error)

SetAdhocNBits is a paid mutator transaction binding the contract method 0xe115953c.

Solidity: function setAdhocNBits(uint32 nbits) returns()

func (*MinterSession) SetBlockReward added in v0.15.7

func (_Minter *MinterSession) SetBlockReward(reward *big.Int) (*types.Transaction, error)

SetBlockReward is a paid mutator transaction binding the contract method 0x1a18e707.

Solidity: function setBlockReward(uint256 reward) returns()

func (*MinterSession) SetTargetDuration

func (_Minter *MinterSession) SetTargetDuration(duration *big.Int) (*types.Transaction, error)

SetTargetDuration is a paid mutator transaction binding the contract method 0xa00171ea.

Solidity: function setTargetDuration(uint256 duration) 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) TargetDuration

func (_Minter *MinterSession) TargetDuration() (*big.Int, error)

TargetDuration is a free data retrieval call binding the contract method 0xf0cdec63.

Solidity: function targetDuration() view returns(uint256)

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()

func (*MinterSession) UseAdhocNBits added in v0.15.3

func (_Minter *MinterSession) UseAdhocNBits() (bool, error)

UseAdhocNBits is a free data retrieval call binding the contract method 0xb415aa51.

Solidity: function useAdhocNBits() view returns(bool)

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

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

func (*MinterTargetDurationSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

func (*MinterTaskAllowanceSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MinterTaskAllowanceSetIterator) 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 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, _dao common.Address, _taskManager common.Address, _distributor common.Address, _scrypt common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _dao, address _taskManager, address _distributor, address _scrypt) returns()

func (*MinterTransactor) Mint

func (_Minter *MinterTransactor) Mint(opts *bind.TransactOpts, blockinfo BlockInfo, coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x8f7118a7.

Solidity: function mint((bytes4,bytes32,bytes32,uint32,bytes8) blockinfo, (address,address,address) coinbase, (uint256,bytes32,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) SetAdhocNBits added in v0.15.3

func (_Minter *MinterTransactor) SetAdhocNBits(opts *bind.TransactOpts, nbits uint32) (*types.Transaction, error)

SetAdhocNBits is a paid mutator transaction binding the contract method 0xe115953c.

Solidity: function setAdhocNBits(uint32 nbits) returns()

func (*MinterTransactor) SetBlockReward added in v0.15.7

func (_Minter *MinterTransactor) SetBlockReward(opts *bind.TransactOpts, reward *big.Int) (*types.Transaction, error)

SetBlockReward is a paid mutator transaction binding the contract method 0x1a18e707.

Solidity: function setBlockReward(uint256 reward) returns()

func (*MinterTransactor) SetTargetDuration

func (_Minter *MinterTransactor) SetTargetDuration(opts *bind.TransactOpts, duration *big.Int) (*types.Transaction, error)

SetTargetDuration is a paid mutator transaction binding the contract method 0xa00171ea.

Solidity: function setTargetDuration(uint256 duration) 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(_dao common.Address, _taskManager common.Address, _distributor common.Address, _scrypt common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _dao, address _taskManager, address _distributor, address _scrypt) returns()

func (*MinterTransactorSession) Mint

func (_Minter *MinterTransactorSession) Mint(blockinfo BlockInfo, coinbase Sequencer, assignments []TaskAssignment) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x8f7118a7.

Solidity: function mint((bytes4,bytes32,bytes32,uint32,bytes8) blockinfo, (address,address,address) coinbase, (uint256,bytes32,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) SetAdhocNBits added in v0.15.3

func (_Minter *MinterTransactorSession) SetAdhocNBits(nbits uint32) (*types.Transaction, error)

SetAdhocNBits is a paid mutator transaction binding the contract method 0xe115953c.

Solidity: function setAdhocNBits(uint32 nbits) returns()

func (*MinterTransactorSession) SetBlockReward added in v0.15.7

func (_Minter *MinterTransactorSession) SetBlockReward(reward *big.Int) (*types.Transaction, error)

SetBlockReward is a paid mutator transaction binding the contract method 0x1a18e707.

Solidity: function setBlockReward(uint256 reward) returns()

func (*MinterTransactorSession) SetTargetDuration

func (_Minter *MinterTransactorSession) SetTargetDuration(duration *big.Int) (*types.Transaction, error)

SetTargetDuration is a paid mutator transaction binding the contract method 0xa00171ea.

Solidity: function setTargetDuration(uint256 duration) 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()

type Sequencer

type Sequencer struct {
	Addr        common.Address
	Operator    common.Address
	Beneficiary common.Address
}

Sequencer is an auto generated low-level Go binding around an user-defined struct.

type TaskAssignment

type TaskAssignment struct {
	ProjectId *big.Int
	TaskId    [32]byte
	Prover    common.Address
}

TaskAssignment is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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