abigen

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Erc20ABI = Erc20MetaData.ABI

Erc20ABI is the input ABI used to generate the binding from. Deprecated: Use Erc20MetaData.ABI instead.

View Source
var Erc20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

Erc20MetaData contains all meta data concerning the Erc20 contract.

View Source
var Multicall3ABI = Multicall3MetaData.ABI

Multicall3ABI is the input ABI used to generate the binding from. Deprecated: Use Multicall3MetaData.ABI instead.

View Source
var Multicall3MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call3[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call3Value[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3Value\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"blockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"basefee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryAggregate\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryBlockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}

Multicall3MetaData contains all meta data concerning the Multicall3 contract.

View Source
var RewardDistributorABI = RewardDistributorMetaData.ABI

RewardDistributorABI is the input ABI used to generate the binding from. Deprecated: Use RewardDistributorMetaData.ABI instead.

View Source
var RewardDistributorMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"PosterFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"claimer\",\"type\":\"address\"}],\"name\":\"RewardClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"poster\",\"type\":\"address\"}],\"name\":\"RewardPosted\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"kwilBlockHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rewardRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"proofs\",\"type\":\"bytes32[]\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"isRewardClaimed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"postReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"postedRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"posterFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"rewardPoster\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safe\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_safe\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_posterFee\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpostedRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"updatePosterFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

RewardDistributorMetaData contains all meta data concerning the RewardDistributor contract.

View Source
var SafeABI = SafeMetaData.ABI

SafeABI is the input ABI used to generate the binding from. Deprecated: Use SafeMetaData.ABI instead.

View Source
var SafeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

SafeMetaData contains all meta data concerning the Safe contract.

Functions

This section is empty.

Types

type Erc20

type Erc20 struct {
	Erc20Caller     // Read-only binding to the contract
	Erc20Transactor // Write-only binding to the contract
	Erc20Filterer   // Log filterer for contract events
}

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

func NewErc20

func NewErc20(address common.Address, backend bind.ContractBackend) (*Erc20, error)

NewErc20 creates a new instance of Erc20, bound to a specific deployed contract.

type Erc20Approval

type Erc20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

Erc20Approval represents a Approval event raised by the Erc20 contract.

type Erc20ApprovalIterator

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

Erc20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Erc20 contract.

func (*Erc20ApprovalIterator) Close

func (it *Erc20ApprovalIterator) Close() error

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

func (*Erc20ApprovalIterator) Error

func (it *Erc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20ApprovalIterator) Next

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

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

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

func NewErc20Caller

func NewErc20Caller(address common.Address, caller bind.ContractCaller) (*Erc20Caller, error)

NewErc20Caller creates a new read-only instance of Erc20, bound to a specific deployed contract.

func (*Erc20Caller) Allowance

func (_Erc20 *Erc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Erc20Caller) BalanceOf

func (_Erc20 *Erc20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Erc20Caller) Decimals

func (_Erc20 *Erc20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Erc20Caller) Name

func (_Erc20 *Erc20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Erc20Caller) Symbol

func (_Erc20 *Erc20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Erc20Caller) TotalSupply

func (_Erc20 *Erc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Erc20CallerRaw

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

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

func (*Erc20CallerRaw) Call

func (_Erc20 *Erc20CallerRaw) 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 Erc20CallerSession

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

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

func (*Erc20CallerSession) Allowance

func (_Erc20 *Erc20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Erc20CallerSession) BalanceOf

func (_Erc20 *Erc20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Erc20CallerSession) Decimals

func (_Erc20 *Erc20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Erc20CallerSession) Name

func (_Erc20 *Erc20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Erc20CallerSession) Symbol

func (_Erc20 *Erc20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Erc20CallerSession) TotalSupply

func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Erc20Filterer

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

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

func NewErc20Filterer

func NewErc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc20Filterer, error)

NewErc20Filterer creates a new log filterer instance of Erc20, bound to a specific deployed contract.

func (*Erc20Filterer) FilterApproval

func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Erc20Filterer) FilterTransfer

func (_Erc20 *Erc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Erc20Filterer) ParseApproval

func (_Erc20 *Erc20Filterer) ParseApproval(log types.Log) (*Erc20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Erc20Filterer) ParseTransfer

func (_Erc20 *Erc20Filterer) ParseTransfer(log types.Log) (*Erc20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Erc20Filterer) WatchApproval

func (_Erc20 *Erc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Erc20Filterer) WatchTransfer

func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type Erc20Raw

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

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

func (*Erc20Raw) Call

func (_Erc20 *Erc20Raw) 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 (*Erc20Raw) Transact

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

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

func (*Erc20Raw) Transfer

func (_Erc20 *Erc20Raw) 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 Erc20Session

type Erc20Session struct {
	Contract     *Erc20            // 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
}

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

func (*Erc20Session) Allowance

func (_Erc20 *Erc20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Erc20Session) Approve

func (_Erc20 *Erc20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Erc20Session) BalanceOf

func (_Erc20 *Erc20Session) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Erc20Session) Decimals

func (_Erc20 *Erc20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Erc20Session) DecreaseAllowance

func (_Erc20 *Erc20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Erc20Session) IncreaseAllowance

func (_Erc20 *Erc20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Erc20Session) Name

func (_Erc20 *Erc20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Erc20Session) Symbol

func (_Erc20 *Erc20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Erc20Session) TotalSupply

func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*Erc20Session) Transfer

func (_Erc20 *Erc20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Erc20Session) TransferFrom

func (_Erc20 *Erc20Session) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type Erc20Transactor

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

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

func NewErc20Transactor

func NewErc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc20Transactor, error)

NewErc20Transactor creates a new write-only instance of Erc20, bound to a specific deployed contract.

func (*Erc20Transactor) Approve

func (_Erc20 *Erc20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Erc20Transactor) DecreaseAllowance

func (_Erc20 *Erc20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Erc20Transactor) IncreaseAllowance

func (_Erc20 *Erc20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Erc20Transactor) Transfer

func (_Erc20 *Erc20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Erc20Transactor) TransferFrom

func (_Erc20 *Erc20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type Erc20TransactorRaw

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

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

func (*Erc20TransactorRaw) Transact

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

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

func (*Erc20TransactorRaw) Transfer

func (_Erc20 *Erc20TransactorRaw) 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 Erc20TransactorSession

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

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

func (*Erc20TransactorSession) Approve

func (_Erc20 *Erc20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Erc20TransactorSession) DecreaseAllowance

func (_Erc20 *Erc20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Erc20TransactorSession) IncreaseAllowance

func (_Erc20 *Erc20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Erc20TransactorSession) Transfer

func (_Erc20 *Erc20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Erc20TransactorSession) TransferFrom

func (_Erc20 *Erc20TransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type Erc20Transfer

type Erc20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

Erc20Transfer represents a Transfer event raised by the Erc20 contract.

type Erc20TransferIterator

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

Erc20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Erc20 contract.

func (*Erc20TransferIterator) Close

func (it *Erc20TransferIterator) Close() error

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

func (*Erc20TransferIterator) Error

func (it *Erc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20TransferIterator) Next

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

type Multicall3 struct {
	Multicall3Caller     // Read-only binding to the contract
	Multicall3Transactor // Write-only binding to the contract
	Multicall3Filterer   // Log filterer for contract events
}

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

func NewMulticall3

func NewMulticall3(address common.Address, backend bind.ContractBackend) (*Multicall3, error)

NewMulticall3 creates a new instance of Multicall3, bound to a specific deployed contract.

type Multicall3Call

type Multicall3Call struct {
	Target   common.Address
	CallData []byte
}

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

type Multicall3Call3

type Multicall3Call3 struct {
	Target       common.Address
	AllowFailure bool
	CallData     []byte
}

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

type Multicall3Call3Value

type Multicall3Call3Value struct {
	Target       common.Address
	AllowFailure bool
	Value        *big.Int
	CallData     []byte
}

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

type Multicall3Caller

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

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

func NewMulticall3Caller

func NewMulticall3Caller(address common.Address, caller bind.ContractCaller) (*Multicall3Caller, error)

NewMulticall3Caller creates a new read-only instance of Multicall3, bound to a specific deployed contract.

func (*Multicall3Caller) GetBasefee

func (_Multicall3 *Multicall3Caller) GetBasefee(opts *bind.CallOpts) (*big.Int, error)

GetBasefee is a free data retrieval call binding the contract method 0x3e64a696.

Solidity: function getBasefee() view returns(uint256 basefee)

func (*Multicall3Caller) GetBlockHash

func (_Multicall3 *Multicall3Caller) GetBlockHash(opts *bind.CallOpts, blockNumber *big.Int) ([32]byte, error)

GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.

Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)

func (*Multicall3Caller) GetBlockNumber

func (_Multicall3 *Multicall3Caller) GetBlockNumber(opts *bind.CallOpts) (*big.Int, error)

GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c.

Solidity: function getBlockNumber() view returns(uint256 blockNumber)

func (*Multicall3Caller) GetChainId

func (_Multicall3 *Multicall3Caller) GetChainId(opts *bind.CallOpts) (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() view returns(uint256 chainid)

func (*Multicall3Caller) GetCurrentBlockCoinbase

func (_Multicall3 *Multicall3Caller) GetCurrentBlockCoinbase(opts *bind.CallOpts) (common.Address, error)

GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.

Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)

func (*Multicall3Caller) GetCurrentBlockDifficulty

func (_Multicall3 *Multicall3Caller) GetCurrentBlockDifficulty(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.

Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)

func (*Multicall3Caller) GetCurrentBlockGasLimit

func (_Multicall3 *Multicall3Caller) GetCurrentBlockGasLimit(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.

Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)

func (*Multicall3Caller) GetCurrentBlockTimestamp

func (_Multicall3 *Multicall3Caller) GetCurrentBlockTimestamp(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.

Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)

func (*Multicall3Caller) GetEthBalance

func (_Multicall3 *Multicall3Caller) GetEthBalance(opts *bind.CallOpts, addr common.Address) (*big.Int, error)

GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.

Solidity: function getEthBalance(address addr) view returns(uint256 balance)

func (*Multicall3Caller) GetLastBlockHash

func (_Multicall3 *Multicall3Caller) GetLastBlockHash(opts *bind.CallOpts) ([32]byte, error)

GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.

Solidity: function getLastBlockHash() view returns(bytes32 blockHash)

type Multicall3CallerRaw

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

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

func (*Multicall3CallerRaw) Call

func (_Multicall3 *Multicall3CallerRaw) 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 Multicall3CallerSession

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

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

func (*Multicall3CallerSession) GetBasefee

func (_Multicall3 *Multicall3CallerSession) GetBasefee() (*big.Int, error)

GetBasefee is a free data retrieval call binding the contract method 0x3e64a696.

Solidity: function getBasefee() view returns(uint256 basefee)

func (*Multicall3CallerSession) GetBlockHash

func (_Multicall3 *Multicall3CallerSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error)

GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.

Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)

func (*Multicall3CallerSession) GetBlockNumber

func (_Multicall3 *Multicall3CallerSession) GetBlockNumber() (*big.Int, error)

GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c.

Solidity: function getBlockNumber() view returns(uint256 blockNumber)

func (*Multicall3CallerSession) GetChainId

func (_Multicall3 *Multicall3CallerSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() view returns(uint256 chainid)

func (*Multicall3CallerSession) GetCurrentBlockCoinbase

func (_Multicall3 *Multicall3CallerSession) GetCurrentBlockCoinbase() (common.Address, error)

GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.

Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)

func (*Multicall3CallerSession) GetCurrentBlockDifficulty

func (_Multicall3 *Multicall3CallerSession) GetCurrentBlockDifficulty() (*big.Int, error)

GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.

Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)

func (*Multicall3CallerSession) GetCurrentBlockGasLimit

func (_Multicall3 *Multicall3CallerSession) GetCurrentBlockGasLimit() (*big.Int, error)

GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.

Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)

func (*Multicall3CallerSession) GetCurrentBlockTimestamp

func (_Multicall3 *Multicall3CallerSession) GetCurrentBlockTimestamp() (*big.Int, error)

GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.

Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)

func (*Multicall3CallerSession) GetEthBalance

func (_Multicall3 *Multicall3CallerSession) GetEthBalance(addr common.Address) (*big.Int, error)

GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.

Solidity: function getEthBalance(address addr) view returns(uint256 balance)

func (*Multicall3CallerSession) GetLastBlockHash

func (_Multicall3 *Multicall3CallerSession) GetLastBlockHash() ([32]byte, error)

GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.

Solidity: function getLastBlockHash() view returns(bytes32 blockHash)

type Multicall3Filterer

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

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

func NewMulticall3Filterer

func NewMulticall3Filterer(address common.Address, filterer bind.ContractFilterer) (*Multicall3Filterer, error)

NewMulticall3Filterer creates a new log filterer instance of Multicall3, bound to a specific deployed contract.

type Multicall3Raw

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

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

func (*Multicall3Raw) Call

func (_Multicall3 *Multicall3Raw) 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 (*Multicall3Raw) Transact

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

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

func (*Multicall3Raw) Transfer

func (_Multicall3 *Multicall3Raw) 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 Multicall3Result

type Multicall3Result struct {
	Success    bool
	ReturnData []byte
}

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

type Multicall3Session

type Multicall3Session struct {
	Contract     *Multicall3       // 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
}

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

func (*Multicall3Session) Aggregate

func (_Multicall3 *Multicall3Session) Aggregate(calls []Multicall3Call) (*types.Transaction, error)

Aggregate is a paid mutator transaction binding the contract method 0x252dba42.

Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData)

func (*Multicall3Session) Aggregate3

func (_Multicall3 *Multicall3Session) Aggregate3(calls []Multicall3Call3) (*types.Transaction, error)

Aggregate3 is a paid mutator transaction binding the contract method 0x82ad56cb.

Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3Session) Aggregate3Value

func (_Multicall3 *Multicall3Session) Aggregate3Value(calls []Multicall3Call3Value) (*types.Transaction, error)

Aggregate3Value is a paid mutator transaction binding the contract method 0x174dea71.

Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3Session) BlockAndAggregate

func (_Multicall3 *Multicall3Session) BlockAndAggregate(calls []Multicall3Call) (*types.Transaction, error)

BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9.

Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

func (*Multicall3Session) GetBasefee

func (_Multicall3 *Multicall3Session) GetBasefee() (*big.Int, error)

GetBasefee is a free data retrieval call binding the contract method 0x3e64a696.

Solidity: function getBasefee() view returns(uint256 basefee)

func (*Multicall3Session) GetBlockHash

func (_Multicall3 *Multicall3Session) GetBlockHash(blockNumber *big.Int) ([32]byte, error)

GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.

Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)

func (*Multicall3Session) GetBlockNumber

func (_Multicall3 *Multicall3Session) GetBlockNumber() (*big.Int, error)

GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c.

Solidity: function getBlockNumber() view returns(uint256 blockNumber)

func (*Multicall3Session) GetChainId

func (_Multicall3 *Multicall3Session) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() view returns(uint256 chainid)

func (*Multicall3Session) GetCurrentBlockCoinbase

func (_Multicall3 *Multicall3Session) GetCurrentBlockCoinbase() (common.Address, error)

GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.

Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)

func (*Multicall3Session) GetCurrentBlockDifficulty

func (_Multicall3 *Multicall3Session) GetCurrentBlockDifficulty() (*big.Int, error)

GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.

Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)

func (*Multicall3Session) GetCurrentBlockGasLimit

func (_Multicall3 *Multicall3Session) GetCurrentBlockGasLimit() (*big.Int, error)

GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.

Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)

func (*Multicall3Session) GetCurrentBlockTimestamp

func (_Multicall3 *Multicall3Session) GetCurrentBlockTimestamp() (*big.Int, error)

GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.

Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)

func (*Multicall3Session) GetEthBalance

func (_Multicall3 *Multicall3Session) GetEthBalance(addr common.Address) (*big.Int, error)

GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.

Solidity: function getEthBalance(address addr) view returns(uint256 balance)

func (*Multicall3Session) GetLastBlockHash

func (_Multicall3 *Multicall3Session) GetLastBlockHash() ([32]byte, error)

GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.

Solidity: function getLastBlockHash() view returns(bytes32 blockHash)

func (*Multicall3Session) TryAggregate

func (_Multicall3 *Multicall3Session) TryAggregate(requireSuccess bool, calls []Multicall3Call) (*types.Transaction, error)

TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7.

Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3Session) TryBlockAndAggregate

func (_Multicall3 *Multicall3Session) TryBlockAndAggregate(requireSuccess bool, calls []Multicall3Call) (*types.Transaction, error)

TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.

Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

type Multicall3Transactor

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

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

func NewMulticall3Transactor

func NewMulticall3Transactor(address common.Address, transactor bind.ContractTransactor) (*Multicall3Transactor, error)

NewMulticall3Transactor creates a new write-only instance of Multicall3, bound to a specific deployed contract.

func (*Multicall3Transactor) Aggregate

func (_Multicall3 *Multicall3Transactor) Aggregate(opts *bind.TransactOpts, calls []Multicall3Call) (*types.Transaction, error)

Aggregate is a paid mutator transaction binding the contract method 0x252dba42.

Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData)

func (*Multicall3Transactor) Aggregate3

func (_Multicall3 *Multicall3Transactor) Aggregate3(opts *bind.TransactOpts, calls []Multicall3Call3) (*types.Transaction, error)

Aggregate3 is a paid mutator transaction binding the contract method 0x82ad56cb.

Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3Transactor) Aggregate3Value

func (_Multicall3 *Multicall3Transactor) Aggregate3Value(opts *bind.TransactOpts, calls []Multicall3Call3Value) (*types.Transaction, error)

Aggregate3Value is a paid mutator transaction binding the contract method 0x174dea71.

Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3Transactor) BlockAndAggregate

func (_Multicall3 *Multicall3Transactor) BlockAndAggregate(opts *bind.TransactOpts, calls []Multicall3Call) (*types.Transaction, error)

BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9.

Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

func (*Multicall3Transactor) TryAggregate

func (_Multicall3 *Multicall3Transactor) TryAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []Multicall3Call) (*types.Transaction, error)

TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7.

Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3Transactor) TryBlockAndAggregate

func (_Multicall3 *Multicall3Transactor) TryBlockAndAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []Multicall3Call) (*types.Transaction, error)

TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.

Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

type Multicall3TransactorRaw

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

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

func (*Multicall3TransactorRaw) Transact

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

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

func (*Multicall3TransactorRaw) Transfer

func (_Multicall3 *Multicall3TransactorRaw) 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 Multicall3TransactorSession

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

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

func (*Multicall3TransactorSession) Aggregate

func (_Multicall3 *Multicall3TransactorSession) Aggregate(calls []Multicall3Call) (*types.Transaction, error)

Aggregate is a paid mutator transaction binding the contract method 0x252dba42.

Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData)

func (*Multicall3TransactorSession) Aggregate3

func (_Multicall3 *Multicall3TransactorSession) Aggregate3(calls []Multicall3Call3) (*types.Transaction, error)

Aggregate3 is a paid mutator transaction binding the contract method 0x82ad56cb.

Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3TransactorSession) Aggregate3Value

func (_Multicall3 *Multicall3TransactorSession) Aggregate3Value(calls []Multicall3Call3Value) (*types.Transaction, error)

Aggregate3Value is a paid mutator transaction binding the contract method 0x174dea71.

Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3TransactorSession) BlockAndAggregate

func (_Multicall3 *Multicall3TransactorSession) BlockAndAggregate(calls []Multicall3Call) (*types.Transaction, error)

BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9.

Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

func (*Multicall3TransactorSession) TryAggregate

func (_Multicall3 *Multicall3TransactorSession) TryAggregate(requireSuccess bool, calls []Multicall3Call) (*types.Transaction, error)

TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7.

Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData)

func (*Multicall3TransactorSession) TryBlockAndAggregate

func (_Multicall3 *Multicall3TransactorSession) TryBlockAndAggregate(requireSuccess bool, calls []Multicall3Call) (*types.Transaction, error)

TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.

Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

type RewardDistributor

type RewardDistributor struct {
	RewardDistributorCaller     // Read-only binding to the contract
	RewardDistributorTransactor // Write-only binding to the contract
	RewardDistributorFilterer   // Log filterer for contract events
}

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

func NewRewardDistributor

func NewRewardDistributor(address common.Address, backend bind.ContractBackend) (*RewardDistributor, error)

NewRewardDistributor creates a new instance of RewardDistributor, bound to a specific deployed contract.

type RewardDistributorCaller

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

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

func NewRewardDistributorCaller

func NewRewardDistributorCaller(address common.Address, caller bind.ContractCaller) (*RewardDistributorCaller, error)

NewRewardDistributorCaller creates a new read-only instance of RewardDistributor, bound to a specific deployed contract.

func (*RewardDistributorCaller) IsRewardClaimed

func (_RewardDistributor *RewardDistributorCaller) IsRewardClaimed(opts *bind.CallOpts, arg0 [32]byte, arg1 [32]byte) (bool, error)

IsRewardClaimed is a free data retrieval call binding the contract method 0x27dda893.

Solidity: function isRewardClaimed(bytes32 , bytes32 ) view returns(bool)

func (*RewardDistributorCaller) PostedRewards

func (_RewardDistributor *RewardDistributorCaller) PostedRewards(opts *bind.CallOpts) (*big.Int, error)

PostedRewards is a free data retrieval call binding the contract method 0x122d52de.

Solidity: function postedRewards() view returns(uint256)

func (*RewardDistributorCaller) PosterFee

func (_RewardDistributor *RewardDistributorCaller) PosterFee(opts *bind.CallOpts) (*big.Int, error)

PosterFee is a free data retrieval call binding the contract method 0x408422bc.

Solidity: function posterFee() view returns(uint256)

func (*RewardDistributorCaller) RewardPoster

func (_RewardDistributor *RewardDistributorCaller) RewardPoster(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

RewardPoster is a free data retrieval call binding the contract method 0x75cbd82d.

Solidity: function rewardPoster(bytes32 ) view returns(address)

func (*RewardDistributorCaller) RewardToken

func (_RewardDistributor *RewardDistributorCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function rewardToken() view returns(address)

func (*RewardDistributorCaller) Safe

func (_RewardDistributor *RewardDistributorCaller) Safe(opts *bind.CallOpts) (common.Address, error)

Safe is a free data retrieval call binding the contract method 0x186f0354.

Solidity: function safe() view returns(address)

func (*RewardDistributorCaller) UnpostedRewards

func (_RewardDistributor *RewardDistributorCaller) UnpostedRewards(opts *bind.CallOpts) (*big.Int, error)

UnpostedRewards is a free data retrieval call binding the contract method 0xd5cf76f5.

Solidity: function unpostedRewards() view returns(uint256)

type RewardDistributorCallerRaw

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

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

func (*RewardDistributorCallerRaw) Call

func (_RewardDistributor *RewardDistributorCallerRaw) 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 RewardDistributorCallerSession

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

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

func (*RewardDistributorCallerSession) IsRewardClaimed

func (_RewardDistributor *RewardDistributorCallerSession) IsRewardClaimed(arg0 [32]byte, arg1 [32]byte) (bool, error)

IsRewardClaimed is a free data retrieval call binding the contract method 0x27dda893.

Solidity: function isRewardClaimed(bytes32 , bytes32 ) view returns(bool)

func (*RewardDistributorCallerSession) PostedRewards

func (_RewardDistributor *RewardDistributorCallerSession) PostedRewards() (*big.Int, error)

PostedRewards is a free data retrieval call binding the contract method 0x122d52de.

Solidity: function postedRewards() view returns(uint256)

func (*RewardDistributorCallerSession) PosterFee

func (_RewardDistributor *RewardDistributorCallerSession) PosterFee() (*big.Int, error)

PosterFee is a free data retrieval call binding the contract method 0x408422bc.

Solidity: function posterFee() view returns(uint256)

func (*RewardDistributorCallerSession) RewardPoster

func (_RewardDistributor *RewardDistributorCallerSession) RewardPoster(arg0 [32]byte) (common.Address, error)

RewardPoster is a free data retrieval call binding the contract method 0x75cbd82d.

Solidity: function rewardPoster(bytes32 ) view returns(address)

func (*RewardDistributorCallerSession) RewardToken

func (_RewardDistributor *RewardDistributorCallerSession) RewardToken() (common.Address, error)

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

Solidity: function rewardToken() view returns(address)

func (*RewardDistributorCallerSession) Safe

func (_RewardDistributor *RewardDistributorCallerSession) Safe() (common.Address, error)

Safe is a free data retrieval call binding the contract method 0x186f0354.

Solidity: function safe() view returns(address)

func (*RewardDistributorCallerSession) UnpostedRewards

func (_RewardDistributor *RewardDistributorCallerSession) UnpostedRewards() (*big.Int, error)

UnpostedRewards is a free data retrieval call binding the contract method 0xd5cf76f5.

Solidity: function unpostedRewards() view returns(uint256)

type RewardDistributorFilterer

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

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

func NewRewardDistributorFilterer

func NewRewardDistributorFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardDistributorFilterer, error)

NewRewardDistributorFilterer creates a new log filterer instance of RewardDistributor, bound to a specific deployed contract.

func (*RewardDistributorFilterer) FilterPosterFeeUpdated

func (_RewardDistributor *RewardDistributorFilterer) FilterPosterFeeUpdated(opts *bind.FilterOpts) (*RewardDistributorPosterFeeUpdatedIterator, error)

FilterPosterFeeUpdated is a free log retrieval operation binding the contract event 0x7c7423dff6eff60ac491456a649034ee92866801bb236290a4b9190e370e8952.

Solidity: event PosterFeeUpdated(uint256 oldFee, uint256 newFee)

func (*RewardDistributorFilterer) FilterRewardClaimed

func (_RewardDistributor *RewardDistributorFilterer) FilterRewardClaimed(opts *bind.FilterOpts) (*RewardDistributorRewardClaimedIterator, error)

FilterRewardClaimed is a free log retrieval operation binding the contract event 0xf80b6d248ca65e589d3f24c7ce36e2df22ba16ba4e7656aad67e114abbe971d2.

Solidity: event RewardClaimed(address recipient, uint256 amount, address claimer)

func (*RewardDistributorFilterer) FilterRewardPosted

func (_RewardDistributor *RewardDistributorFilterer) FilterRewardPosted(opts *bind.FilterOpts) (*RewardDistributorRewardPostedIterator, error)

FilterRewardPosted is a free log retrieval operation binding the contract event 0x88d468d3eafea83d2406f714eb4c2737e374f70e2f01fe43ec07e118e28d7525.

Solidity: event RewardPosted(bytes32 root, uint256 amount, address poster)

func (*RewardDistributorFilterer) ParsePosterFeeUpdated

func (_RewardDistributor *RewardDistributorFilterer) ParsePosterFeeUpdated(log types.Log) (*RewardDistributorPosterFeeUpdated, error)

ParsePosterFeeUpdated is a log parse operation binding the contract event 0x7c7423dff6eff60ac491456a649034ee92866801bb236290a4b9190e370e8952.

Solidity: event PosterFeeUpdated(uint256 oldFee, uint256 newFee)

func (*RewardDistributorFilterer) ParseRewardClaimed

func (_RewardDistributor *RewardDistributorFilterer) ParseRewardClaimed(log types.Log) (*RewardDistributorRewardClaimed, error)

ParseRewardClaimed is a log parse operation binding the contract event 0xf80b6d248ca65e589d3f24c7ce36e2df22ba16ba4e7656aad67e114abbe971d2.

Solidity: event RewardClaimed(address recipient, uint256 amount, address claimer)

func (*RewardDistributorFilterer) ParseRewardPosted

func (_RewardDistributor *RewardDistributorFilterer) ParseRewardPosted(log types.Log) (*RewardDistributorRewardPosted, error)

ParseRewardPosted is a log parse operation binding the contract event 0x88d468d3eafea83d2406f714eb4c2737e374f70e2f01fe43ec07e118e28d7525.

Solidity: event RewardPosted(bytes32 root, uint256 amount, address poster)

func (*RewardDistributorFilterer) WatchPosterFeeUpdated

func (_RewardDistributor *RewardDistributorFilterer) WatchPosterFeeUpdated(opts *bind.WatchOpts, sink chan<- *RewardDistributorPosterFeeUpdated) (event.Subscription, error)

WatchPosterFeeUpdated is a free log subscription operation binding the contract event 0x7c7423dff6eff60ac491456a649034ee92866801bb236290a4b9190e370e8952.

Solidity: event PosterFeeUpdated(uint256 oldFee, uint256 newFee)

func (*RewardDistributorFilterer) WatchRewardClaimed

func (_RewardDistributor *RewardDistributorFilterer) WatchRewardClaimed(opts *bind.WatchOpts, sink chan<- *RewardDistributorRewardClaimed) (event.Subscription, error)

WatchRewardClaimed is a free log subscription operation binding the contract event 0xf80b6d248ca65e589d3f24c7ce36e2df22ba16ba4e7656aad67e114abbe971d2.

Solidity: event RewardClaimed(address recipient, uint256 amount, address claimer)

func (*RewardDistributorFilterer) WatchRewardPosted

func (_RewardDistributor *RewardDistributorFilterer) WatchRewardPosted(opts *bind.WatchOpts, sink chan<- *RewardDistributorRewardPosted) (event.Subscription, error)

WatchRewardPosted is a free log subscription operation binding the contract event 0x88d468d3eafea83d2406f714eb4c2737e374f70e2f01fe43ec07e118e28d7525.

Solidity: event RewardPosted(bytes32 root, uint256 amount, address poster)

type RewardDistributorPosterFeeUpdated

type RewardDistributorPosterFeeUpdated struct {
	OldFee *big.Int
	NewFee *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RewardDistributorPosterFeeUpdated represents a PosterFeeUpdated event raised by the RewardDistributor contract.

type RewardDistributorPosterFeeUpdatedIterator

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

RewardDistributorPosterFeeUpdatedIterator is returned from FilterPosterFeeUpdated and is used to iterate over the raw logs and unpacked data for PosterFeeUpdated events raised by the RewardDistributor contract.

func (*RewardDistributorPosterFeeUpdatedIterator) Close

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

func (*RewardDistributorPosterFeeUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*RewardDistributorRaw) Call

func (_RewardDistributor *RewardDistributorRaw) 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 (*RewardDistributorRaw) Transact

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

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

func (*RewardDistributorRaw) Transfer

func (_RewardDistributor *RewardDistributorRaw) 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 RewardDistributorRewardClaimed

type RewardDistributorRewardClaimed struct {
	Recipient common.Address
	Amount    *big.Int
	Claimer   common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

RewardDistributorRewardClaimed represents a RewardClaimed event raised by the RewardDistributor contract.

type RewardDistributorRewardClaimedIterator

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

RewardDistributorRewardClaimedIterator is returned from FilterRewardClaimed and is used to iterate over the raw logs and unpacked data for RewardClaimed events raised by the RewardDistributor contract.

func (*RewardDistributorRewardClaimedIterator) Close

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

func (*RewardDistributorRewardClaimedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type RewardDistributorRewardPosted struct {
	Root   [32]byte
	Amount *big.Int
	Poster common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

RewardDistributorRewardPosted represents a RewardPosted event raised by the RewardDistributor contract.

type RewardDistributorRewardPostedIterator

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

RewardDistributorRewardPostedIterator is returned from FilterRewardPosted and is used to iterate over the raw logs and unpacked data for RewardPosted events raised by the RewardDistributor contract.

func (*RewardDistributorRewardPostedIterator) Close

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

func (*RewardDistributorRewardPostedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type RewardDistributorSession struct {
	Contract     *RewardDistributor // 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
}

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

func (*RewardDistributorSession) ClaimReward

func (_RewardDistributor *RewardDistributorSession) ClaimReward(recipient common.Address, amount *big.Int, kwilBlockHash [32]byte, rewardRoot [32]byte, proofs [][32]byte) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x63e6a87c.

Solidity: function claimReward(address recipient, uint256 amount, bytes32 kwilBlockHash, bytes32 rewardRoot, bytes32[] proofs) payable returns()

func (*RewardDistributorSession) Fallback

func (_RewardDistributor *RewardDistributorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*RewardDistributorSession) IsRewardClaimed

func (_RewardDistributor *RewardDistributorSession) IsRewardClaimed(arg0 [32]byte, arg1 [32]byte) (bool, error)

IsRewardClaimed is a free data retrieval call binding the contract method 0x27dda893.

Solidity: function isRewardClaimed(bytes32 , bytes32 ) view returns(bool)

func (*RewardDistributorSession) PostReward

func (_RewardDistributor *RewardDistributorSession) PostReward(root [32]byte, amount *big.Int) (*types.Transaction, error)

PostReward is a paid mutator transaction binding the contract method 0xeb630dd3.

Solidity: function postReward(bytes32 root, uint256 amount) returns()

func (*RewardDistributorSession) PostedRewards

func (_RewardDistributor *RewardDistributorSession) PostedRewards() (*big.Int, error)

PostedRewards is a free data retrieval call binding the contract method 0x122d52de.

Solidity: function postedRewards() view returns(uint256)

func (*RewardDistributorSession) PosterFee

func (_RewardDistributor *RewardDistributorSession) PosterFee() (*big.Int, error)

PosterFee is a free data retrieval call binding the contract method 0x408422bc.

Solidity: function posterFee() view returns(uint256)

func (*RewardDistributorSession) Receive

func (_RewardDistributor *RewardDistributorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*RewardDistributorSession) RewardPoster

func (_RewardDistributor *RewardDistributorSession) RewardPoster(arg0 [32]byte) (common.Address, error)

RewardPoster is a free data retrieval call binding the contract method 0x75cbd82d.

Solidity: function rewardPoster(bytes32 ) view returns(address)

func (*RewardDistributorSession) RewardToken

func (_RewardDistributor *RewardDistributorSession) RewardToken() (common.Address, error)

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

Solidity: function rewardToken() view returns(address)

func (*RewardDistributorSession) Safe

func (_RewardDistributor *RewardDistributorSession) Safe() (common.Address, error)

Safe is a free data retrieval call binding the contract method 0x186f0354.

Solidity: function safe() view returns(address)

func (*RewardDistributorSession) Setup

func (_RewardDistributor *RewardDistributorSession) Setup(_safe common.Address, _posterFee *big.Int, _rewardToken common.Address) (*types.Transaction, error)

Setup is a paid mutator transaction binding the contract method 0xf00e5686.

Solidity: function setup(address _safe, uint256 _posterFee, address _rewardToken) returns()

func (*RewardDistributorSession) UnpostedRewards

func (_RewardDistributor *RewardDistributorSession) UnpostedRewards() (*big.Int, error)

UnpostedRewards is a free data retrieval call binding the contract method 0xd5cf76f5.

Solidity: function unpostedRewards() view returns(uint256)

func (*RewardDistributorSession) UpdatePosterFee

func (_RewardDistributor *RewardDistributorSession) UpdatePosterFee(newFee *big.Int) (*types.Transaction, error)

UpdatePosterFee is a paid mutator transaction binding the contract method 0xb19050bd.

Solidity: function updatePosterFee(uint256 newFee) returns()

type RewardDistributorTransactor

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

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

func NewRewardDistributorTransactor

func NewRewardDistributorTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardDistributorTransactor, error)

NewRewardDistributorTransactor creates a new write-only instance of RewardDistributor, bound to a specific deployed contract.

func (*RewardDistributorTransactor) ClaimReward

func (_RewardDistributor *RewardDistributorTransactor) ClaimReward(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, kwilBlockHash [32]byte, rewardRoot [32]byte, proofs [][32]byte) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x63e6a87c.

Solidity: function claimReward(address recipient, uint256 amount, bytes32 kwilBlockHash, bytes32 rewardRoot, bytes32[] proofs) payable returns()

func (*RewardDistributorTransactor) Fallback

func (_RewardDistributor *RewardDistributorTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*RewardDistributorTransactor) PostReward

func (_RewardDistributor *RewardDistributorTransactor) PostReward(opts *bind.TransactOpts, root [32]byte, amount *big.Int) (*types.Transaction, error)

PostReward is a paid mutator transaction binding the contract method 0xeb630dd3.

Solidity: function postReward(bytes32 root, uint256 amount) returns()

func (*RewardDistributorTransactor) Receive

func (_RewardDistributor *RewardDistributorTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*RewardDistributorTransactor) Setup

func (_RewardDistributor *RewardDistributorTransactor) Setup(opts *bind.TransactOpts, _safe common.Address, _posterFee *big.Int, _rewardToken common.Address) (*types.Transaction, error)

Setup is a paid mutator transaction binding the contract method 0xf00e5686.

Solidity: function setup(address _safe, uint256 _posterFee, address _rewardToken) returns()

func (*RewardDistributorTransactor) UpdatePosterFee

func (_RewardDistributor *RewardDistributorTransactor) UpdatePosterFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error)

UpdatePosterFee is a paid mutator transaction binding the contract method 0xb19050bd.

Solidity: function updatePosterFee(uint256 newFee) returns()

type RewardDistributorTransactorRaw

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

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

func (*RewardDistributorTransactorRaw) Transact

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

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

func (*RewardDistributorTransactorRaw) Transfer

func (_RewardDistributor *RewardDistributorTransactorRaw) 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 RewardDistributorTransactorSession

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

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

func (*RewardDistributorTransactorSession) ClaimReward

func (_RewardDistributor *RewardDistributorTransactorSession) ClaimReward(recipient common.Address, amount *big.Int, kwilBlockHash [32]byte, rewardRoot [32]byte, proofs [][32]byte) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x63e6a87c.

Solidity: function claimReward(address recipient, uint256 amount, bytes32 kwilBlockHash, bytes32 rewardRoot, bytes32[] proofs) payable returns()

func (*RewardDistributorTransactorSession) Fallback

func (_RewardDistributor *RewardDistributorTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*RewardDistributorTransactorSession) PostReward

func (_RewardDistributor *RewardDistributorTransactorSession) PostReward(root [32]byte, amount *big.Int) (*types.Transaction, error)

PostReward is a paid mutator transaction binding the contract method 0xeb630dd3.

Solidity: function postReward(bytes32 root, uint256 amount) returns()

func (*RewardDistributorTransactorSession) Receive

func (_RewardDistributor *RewardDistributorTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*RewardDistributorTransactorSession) Setup

func (_RewardDistributor *RewardDistributorTransactorSession) Setup(_safe common.Address, _posterFee *big.Int, _rewardToken common.Address) (*types.Transaction, error)

Setup is a paid mutator transaction binding the contract method 0xf00e5686.

Solidity: function setup(address _safe, uint256 _posterFee, address _rewardToken) returns()

func (*RewardDistributorTransactorSession) UpdatePosterFee

func (_RewardDistributor *RewardDistributorTransactorSession) UpdatePosterFee(newFee *big.Int) (*types.Transaction, error)

UpdatePosterFee is a paid mutator transaction binding the contract method 0xb19050bd.

Solidity: function updatePosterFee(uint256 newFee) returns()

type Safe

type Safe struct {
	SafeCaller     // Read-only binding to the contract
	SafeTransactor // Write-only binding to the contract
	SafeFilterer   // Log filterer for contract events
}

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

func NewSafe

func NewSafe(address common.Address, backend bind.ContractBackend) (*Safe, error)

NewSafe creates a new instance of Safe, bound to a specific deployed contract.

type SafeCaller

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

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

func NewSafeCaller

func NewSafeCaller(address common.Address, caller bind.ContractCaller) (*SafeCaller, error)

NewSafeCaller creates a new read-only instance of Safe, bound to a specific deployed contract.

func (*SafeCaller) GetOwners

func (_Safe *SafeCaller) GetOwners(opts *bind.CallOpts) ([]common.Address, error)

GetOwners is a free data retrieval call binding the contract method 0xa0e67e2b.

Solidity: function getOwners() view returns(address[])

func (*SafeCaller) GetThreshold

func (_Safe *SafeCaller) GetThreshold(opts *bind.CallOpts) (*big.Int, error)

GetThreshold is a free data retrieval call binding the contract method 0xe75235b8.

Solidity: function getThreshold() view returns(uint256)

func (*SafeCaller) Nonce

func (_Safe *SafeCaller) Nonce(opts *bind.CallOpts) (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0xaffed0e0.

Solidity: function nonce() view returns(uint256)

type SafeCallerRaw

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

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

func (*SafeCallerRaw) Call

func (_Safe *SafeCallerRaw) 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 SafeCallerSession

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

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

func (*SafeCallerSession) GetOwners

func (_Safe *SafeCallerSession) GetOwners() ([]common.Address, error)

GetOwners is a free data retrieval call binding the contract method 0xa0e67e2b.

Solidity: function getOwners() view returns(address[])

func (*SafeCallerSession) GetThreshold

func (_Safe *SafeCallerSession) GetThreshold() (*big.Int, error)

GetThreshold is a free data retrieval call binding the contract method 0xe75235b8.

Solidity: function getThreshold() view returns(uint256)

func (*SafeCallerSession) Nonce

func (_Safe *SafeCallerSession) Nonce() (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0xaffed0e0.

Solidity: function nonce() view returns(uint256)

type SafeFilterer

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

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

func NewSafeFilterer

func NewSafeFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeFilterer, error)

NewSafeFilterer creates a new log filterer instance of Safe, bound to a specific deployed contract.

type SafeRaw

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

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

func (*SafeRaw) Call

func (_Safe *SafeRaw) 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 (*SafeRaw) Transact

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

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

func (*SafeRaw) Transfer

func (_Safe *SafeRaw) 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 SafeSession

type SafeSession struct {
	Contract     *Safe             // 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
}

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

func (*SafeSession) GetOwners

func (_Safe *SafeSession) GetOwners() ([]common.Address, error)

GetOwners is a free data retrieval call binding the contract method 0xa0e67e2b.

Solidity: function getOwners() view returns(address[])

func (*SafeSession) GetThreshold

func (_Safe *SafeSession) GetThreshold() (*big.Int, error)

GetThreshold is a free data retrieval call binding the contract method 0xe75235b8.

Solidity: function getThreshold() view returns(uint256)

func (*SafeSession) Nonce

func (_Safe *SafeSession) Nonce() (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0xaffed0e0.

Solidity: function nonce() view returns(uint256)

type SafeTransactor

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

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

func NewSafeTransactor

func NewSafeTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeTransactor, error)

NewSafeTransactor creates a new write-only instance of Safe, bound to a specific deployed contract.

type SafeTransactorRaw

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

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

func (*SafeTransactorRaw) Transact

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

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

func (*SafeTransactorRaw) Transfer

func (_Safe *SafeTransactorRaw) 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 SafeTransactorSession

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳