faucets

package
v0.0.0-...-c88a890 Latest Latest
Warning

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

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

Documentation

Overview

* Erascan - erasure protocol explorer * https://github.com/MikaelLazarev/erascan * * Copyright (c) 2019. Mikael Lazarev

Index

Constants

View Source
const FaucetsABI = "" /* 4964-byte string literal not displayed */

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

Variables

View Source
var FaucetsBin = "0xundefined"

FaucetsBin is the compiled bytecode used for deploying new contracts.

Functions

func New

func New(faucetsStore core.FaucetsStore) core.FaucetService

Types

type Faucets

type Faucets struct {
	FaucetsCaller     // Read-only binding to the contract
	FaucetsTransactor // Write-only binding to the contract
	FaucetsFilterer   // Log filterer for contract events
}

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

func DeployFaucets

func DeployFaucets(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Faucets, error)

DeployFaucets deploys a new Ethereum contract, binding an instance of Faucets to it.

func NewFaucets

func NewFaucets(address common.Address, backend bind.ContractBackend) (*Faucets, error)

NewFaucets creates a new instance of Faucets, bound to a specific deployed contract.

type FaucetsApproval

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

FaucetsApproval represents a Approval event raised by the Faucets contract.

type FaucetsApprovalIterator

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

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

func (*FaucetsApprovalIterator) Close

func (it *FaucetsApprovalIterator) Close() error

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

func (*FaucetsApprovalIterator) Error

func (it *FaucetsApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FaucetsApprovalIterator) Next

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

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

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

func NewFaucetsCaller

func NewFaucetsCaller(address common.Address, caller bind.ContractCaller) (*FaucetsCaller, error)

NewFaucetsCaller creates a new read-only instance of Faucets, bound to a specific deployed contract.

func (*FaucetsCaller) Allowance

func (_Faucets *FaucetsCaller) 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) constant returns(uint256)

func (*FaucetsCaller) BalanceOf

func (_Faucets *FaucetsCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) constant returns(uint256)

func (*FaucetsCaller) Decimals

func (_Faucets *FaucetsCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function decimals() constant returns(uint256)

func (*FaucetsCaller) INITIALSUPPLY

func (_Faucets *FaucetsCaller) INITIALSUPPLY(opts *bind.CallOpts) (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() constant returns(uint256)

func (*FaucetsCaller) Name

func (_Faucets *FaucetsCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() constant returns(string)

func (*FaucetsCaller) Symbol

func (_Faucets *FaucetsCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() constant returns(string)

func (*FaucetsCaller) TotalSupply

func (_Faucets *FaucetsCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type FaucetsCallerRaw

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

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

func (*FaucetsCallerRaw) Call

func (_Faucets *FaucetsCallerRaw) 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 FaucetsCallerSession

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

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

func (*FaucetsCallerSession) Allowance

func (_Faucets *FaucetsCallerSession) 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) constant returns(uint256)

func (*FaucetsCallerSession) BalanceOf

func (_Faucets *FaucetsCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) constant returns(uint256)

func (*FaucetsCallerSession) Decimals

func (_Faucets *FaucetsCallerSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() constant returns(uint256)

func (*FaucetsCallerSession) INITIALSUPPLY

func (_Faucets *FaucetsCallerSession) INITIALSUPPLY() (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() constant returns(uint256)

func (*FaucetsCallerSession) Name

func (_Faucets *FaucetsCallerSession) Name() (string, error)

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

Solidity: function name() constant returns(string)

func (*FaucetsCallerSession) Symbol

func (_Faucets *FaucetsCallerSession) Symbol() (string, error)

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

Solidity: function symbol() constant returns(string)

func (*FaucetsCallerSession) TotalSupply

func (_Faucets *FaucetsCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type FaucetsFilterer

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

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

func NewFaucetsFilterer

func NewFaucetsFilterer(address common.Address, filterer bind.ContractFilterer) (*FaucetsFilterer, error)

NewFaucetsFilterer creates a new log filterer instance of Faucets, bound to a specific deployed contract.

func (*FaucetsFilterer) FilterApproval

func (_Faucets *FaucetsFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*FaucetsApprovalIterator, 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 (*FaucetsFilterer) FilterTransfer

func (_Faucets *FaucetsFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*FaucetsTransferIterator, 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 (*FaucetsFilterer) ParseApproval

func (_Faucets *FaucetsFilterer) ParseApproval(log types.Log) (*FaucetsApproval, error)

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

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

func (*FaucetsFilterer) ParseTransfer

func (_Faucets *FaucetsFilterer) ParseTransfer(log types.Log) (*FaucetsTransfer, error)

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

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

func (*FaucetsFilterer) WatchApproval

func (_Faucets *FaucetsFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *FaucetsApproval, 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 (*FaucetsFilterer) WatchTransfer

func (_Faucets *FaucetsFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *FaucetsTransfer, 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 FaucetsRaw

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

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

func (*FaucetsRaw) Call

func (_Faucets *FaucetsRaw) 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 (*FaucetsRaw) Transact

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

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

func (*FaucetsRaw) Transfer

func (_Faucets *FaucetsRaw) 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 FaucetsSession

type FaucetsSession struct {
	Contract     *Faucets          // 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
}

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

func (*FaucetsSession) Allowance

func (_Faucets *FaucetsSession) 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) constant returns(uint256)

func (*FaucetsSession) Approve

func (_Faucets *FaucetsSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address _spender, uint256 _value) returns(bool ok)

func (*FaucetsSession) BalanceOf

func (_Faucets *FaucetsSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) constant returns(uint256)

func (*FaucetsSession) ChangeApproval

func (_Faucets *FaucetsSession) ChangeApproval(_spender common.Address, _oldValue *big.Int, _newValue *big.Int) (*types.Transaction, error)

ChangeApproval is a paid mutator transaction binding the contract method 0x9281cd65.

Solidity: function changeApproval(address _spender, uint256 _oldValue, uint256 _newValue) returns(bool ok)

func (*FaucetsSession) Decimals

func (_Faucets *FaucetsSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() constant returns(uint256)

func (*FaucetsSession) INITIALSUPPLY

func (_Faucets *FaucetsSession) INITIALSUPPLY() (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() constant returns(uint256)

func (*FaucetsSession) Mint

func (_Faucets *FaucetsSession) Mint(_value *big.Int) (*types.Transaction, error)

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

Solidity: function mint(uint256 _value) returns(bool ok)

func (*FaucetsSession) MintMockTokens

func (_Faucets *FaucetsSession) MintMockTokens(to common.Address, value *big.Int) (*types.Transaction, error)

MintMockTokens is a paid mutator transaction binding the contract method 0x5b2ae25b.

Solidity: function mintMockTokens(address to, uint256 value) returns(bool)

func (*FaucetsSession) Name

func (_Faucets *FaucetsSession) Name() (string, error)

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

Solidity: function name() constant returns(string)

func (*FaucetsSession) NumeraiTransfer

func (_Faucets *FaucetsSession) NumeraiTransfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

NumeraiTransfer is a paid mutator transaction binding the contract method 0x7c8d56b8.

Solidity: function numeraiTransfer(address _to, uint256 _value) returns(bool ok)

func (*FaucetsSession) Symbol

func (_Faucets *FaucetsSession) Symbol() (string, error)

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

Solidity: function symbol() constant returns(string)

func (*FaucetsSession) TotalSupply

func (_Faucets *FaucetsSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*FaucetsSession) Transfer

func (_Faucets *FaucetsSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool ok)

func (*FaucetsSession) TransferFrom

func (_Faucets *FaucetsSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool ok)

type FaucetsTransactor

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

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

func NewFaucetsTransactor

func NewFaucetsTransactor(address common.Address, transactor bind.ContractTransactor) (*FaucetsTransactor, error)

NewFaucetsTransactor creates a new write-only instance of Faucets, bound to a specific deployed contract.

func (*FaucetsTransactor) Approve

func (_Faucets *FaucetsTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address _spender, uint256 _value) returns(bool ok)

func (*FaucetsTransactor) ChangeApproval

func (_Faucets *FaucetsTransactor) ChangeApproval(opts *bind.TransactOpts, _spender common.Address, _oldValue *big.Int, _newValue *big.Int) (*types.Transaction, error)

ChangeApproval is a paid mutator transaction binding the contract method 0x9281cd65.

Solidity: function changeApproval(address _spender, uint256 _oldValue, uint256 _newValue) returns(bool ok)

func (*FaucetsTransactor) Mint

func (_Faucets *FaucetsTransactor) Mint(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

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

Solidity: function mint(uint256 _value) returns(bool ok)

func (*FaucetsTransactor) MintMockTokens

func (_Faucets *FaucetsTransactor) MintMockTokens(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

MintMockTokens is a paid mutator transaction binding the contract method 0x5b2ae25b.

Solidity: function mintMockTokens(address to, uint256 value) returns(bool)

func (*FaucetsTransactor) NumeraiTransfer

func (_Faucets *FaucetsTransactor) NumeraiTransfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

NumeraiTransfer is a paid mutator transaction binding the contract method 0x7c8d56b8.

Solidity: function numeraiTransfer(address _to, uint256 _value) returns(bool ok)

func (*FaucetsTransactor) Transfer

func (_Faucets *FaucetsTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool ok)

func (*FaucetsTransactor) TransferFrom

func (_Faucets *FaucetsTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool ok)

type FaucetsTransactorRaw

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

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

func (*FaucetsTransactorRaw) Transact

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

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

func (*FaucetsTransactorRaw) Transfer

func (_Faucets *FaucetsTransactorRaw) 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 FaucetsTransactorSession

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

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

func (*FaucetsTransactorSession) Approve

func (_Faucets *FaucetsTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address _spender, uint256 _value) returns(bool ok)

func (*FaucetsTransactorSession) ChangeApproval

func (_Faucets *FaucetsTransactorSession) ChangeApproval(_spender common.Address, _oldValue *big.Int, _newValue *big.Int) (*types.Transaction, error)

ChangeApproval is a paid mutator transaction binding the contract method 0x9281cd65.

Solidity: function changeApproval(address _spender, uint256 _oldValue, uint256 _newValue) returns(bool ok)

func (*FaucetsTransactorSession) Mint

func (_Faucets *FaucetsTransactorSession) Mint(_value *big.Int) (*types.Transaction, error)

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

Solidity: function mint(uint256 _value) returns(bool ok)

func (*FaucetsTransactorSession) MintMockTokens

func (_Faucets *FaucetsTransactorSession) MintMockTokens(to common.Address, value *big.Int) (*types.Transaction, error)

MintMockTokens is a paid mutator transaction binding the contract method 0x5b2ae25b.

Solidity: function mintMockTokens(address to, uint256 value) returns(bool)

func (*FaucetsTransactorSession) NumeraiTransfer

func (_Faucets *FaucetsTransactorSession) NumeraiTransfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

NumeraiTransfer is a paid mutator transaction binding the contract method 0x7c8d56b8.

Solidity: function numeraiTransfer(address _to, uint256 _value) returns(bool ok)

func (*FaucetsTransactorSession) Transfer

func (_Faucets *FaucetsTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool ok)

func (*FaucetsTransactorSession) TransferFrom

func (_Faucets *FaucetsTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool ok)

type FaucetsTransfer

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

FaucetsTransfer represents a Transfer event raised by the Faucets contract.

type FaucetsTransferIterator

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

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

func (*FaucetsTransferIterator) Close

func (it *FaucetsTransferIterator) Close() error

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

func (*FaucetsTransferIterator) Error

func (it *FaucetsTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FaucetsTransferIterator) Next

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

Jump to

Keyboard shortcuts

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