Documentation ¶
Index ¶
- Constants
- type Faucet
- type FaucetCaller
- type FaucetCallerRaw
- type FaucetCallerSession
- type FaucetFilterer
- type FaucetRaw
- func (_Faucet *FaucetRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Faucet *FaucetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Faucet *FaucetRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type FaucetSession
- type FaucetTransactor
- type FaucetTransactorRaw
- type FaucetTransactorSession
- type Puzzle
- type PuzzleCaller
- type PuzzleCallerRaw
- type PuzzleCallerSession
- type PuzzleFilterer
- type PuzzleRaw
- func (_Puzzle *PuzzleRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Puzzle *PuzzleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Puzzle *PuzzleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PuzzleSession
- func (_Puzzle *PuzzleSession) EndGame(player common.Address) (*types.Transaction, error)
- func (_Puzzle *PuzzleSession) GetPlayers() ([]common.Address, error)
- func (_Puzzle *PuzzleSession) Manager() (common.Address, error)
- func (_Puzzle *PuzzleSession) Payout(player common.Address, level *big.Int, arg2 string) (*types.Transaction, error)
- func (_Puzzle *PuzzleSession) Play() (*types.Transaction, error)
- func (_Puzzle *PuzzleSession) Players(arg0 *big.Int) (common.Address, error)
- func (_Puzzle *PuzzleSession) Reset() (*types.Transaction, error)
- func (_Puzzle *PuzzleSession) ResetPlayer(player common.Address) (*types.Transaction, error)
- func (_Puzzle *PuzzleSession) SetLevel(player common.Address, level *big.Int) (*types.Transaction, error)
- type PuzzleTransactor
- func (_Puzzle *PuzzleTransactor) EndGame(opts *bind.TransactOpts, player common.Address) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactor) Payout(opts *bind.TransactOpts, player common.Address, level *big.Int, arg2 string) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactor) Play(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactor) Reset(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactor) ResetPlayer(opts *bind.TransactOpts, player common.Address) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactor) SetLevel(opts *bind.TransactOpts, player common.Address, level *big.Int) (*types.Transaction, error)
- type PuzzleTransactorRaw
- type PuzzleTransactorSession
- func (_Puzzle *PuzzleTransactorSession) EndGame(player common.Address) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactorSession) Payout(player common.Address, level *big.Int, arg2 string) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactorSession) Play() (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactorSession) Reset() (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactorSession) ResetPlayer(player common.Address) (*types.Transaction, error)
- func (_Puzzle *PuzzleTransactorSession) SetLevel(player common.Address, level *big.Int) (*types.Transaction, error)
Constants ¶
const FaucetABI = "" /* 455-byte string literal not displayed */
FaucetABI is the input ABI used to generate the binding from.
const FaucetBin = `` /* 768-byte string literal not displayed */
FaucetBin is the compiled bytecode used for deploying new contracts.
const PuzzleABI = "" /* 1816-byte string literal not displayed */
PuzzleABI is the input ABI used to generate the binding from.
const PuzzleBin = `` /* 4416-byte string literal not displayed */
PuzzleBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Faucet ¶
type Faucet struct { FaucetCaller // Read-only binding to the contract FaucetTransactor // Write-only binding to the contract FaucetFilterer // Log filterer for contract events }
Faucet is an auto generated Go binding around an Ethereum contract.
func DeployFaucet ¶
func DeployFaucet(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Faucet, error)
DeployFaucet deploys a new Ethereum contract, binding an instance of Faucet to it.
type FaucetCaller ¶
type FaucetCaller struct {
// contains filtered or unexported fields
}
FaucetCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFaucetCaller ¶
func NewFaucetCaller(address common.Address, caller bind.ContractCaller) (*FaucetCaller, error)
NewFaucetCaller creates a new read-only instance of Faucet, bound to a specific deployed contract.
type FaucetCallerRaw ¶
type FaucetCallerRaw struct {
Contract *FaucetCaller // Generic read-only contract binding to access the raw methods on
}
FaucetCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FaucetCallerRaw) Call ¶
func (_Faucet *FaucetCallerRaw) 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 FaucetCallerSession ¶
type FaucetCallerSession struct { Contract *FaucetCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FaucetCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type FaucetFilterer ¶
type FaucetFilterer struct {
// contains filtered or unexported fields
}
FaucetFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFaucetFilterer ¶
func NewFaucetFilterer(address common.Address, filterer bind.ContractFilterer) (*FaucetFilterer, error)
NewFaucetFilterer creates a new log filterer instance of Faucet, bound to a specific deployed contract.
type FaucetRaw ¶
type FaucetRaw struct {
Contract *Faucet // Generic contract binding to access the raw methods on
}
FaucetRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FaucetRaw) Call ¶
func (_Faucet *FaucetRaw) 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 (*FaucetRaw) Transact ¶
func (_Faucet *FaucetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FaucetRaw) Transfer ¶
func (_Faucet *FaucetRaw) 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 FaucetSession ¶
type FaucetSession struct { Contract *Faucet // 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 }
FaucetSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FaucetSession) Money ¶
func (_Faucet *FaucetSession) Money() (*big.Int, error)
Money is a free data retrieval call binding the contract method 0x4ddd108a.
Solidity: function money() constant returns(uint256)
func (*FaucetSession) Request ¶
func (_Faucet *FaucetSession) Request(requestor common.Address) (*types.Transaction, error)
Request is a paid mutator transaction binding the contract method 0x27c78c42.
Solidity: function request(address requestor) returns()
type FaucetTransactor ¶
type FaucetTransactor struct {
// contains filtered or unexported fields
}
FaucetTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFaucetTransactor ¶
func NewFaucetTransactor(address common.Address, transactor bind.ContractTransactor) (*FaucetTransactor, error)
NewFaucetTransactor creates a new write-only instance of Faucet, bound to a specific deployed contract.
func (*FaucetTransactor) Request ¶
func (_Faucet *FaucetTransactor) Request(opts *bind.TransactOpts, requestor common.Address) (*types.Transaction, error)
Request is a paid mutator transaction binding the contract method 0x27c78c42.
Solidity: function request(address requestor) returns()
type FaucetTransactorRaw ¶
type FaucetTransactorRaw struct {
Contract *FaucetTransactor // Generic write-only contract binding to access the raw methods on
}
FaucetTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FaucetTransactorRaw) Transact ¶
func (_Faucet *FaucetTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FaucetTransactorRaw) Transfer ¶
func (_Faucet *FaucetTransactorRaw) 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 FaucetTransactorSession ¶
type FaucetTransactorSession struct { Contract *FaucetTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FaucetTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FaucetTransactorSession) Request ¶
func (_Faucet *FaucetTransactorSession) Request(requestor common.Address) (*types.Transaction, error)
Request is a paid mutator transaction binding the contract method 0x27c78c42.
Solidity: function request(address requestor) returns()
type Puzzle ¶
type Puzzle struct { PuzzleCaller // Read-only binding to the contract PuzzleTransactor // Write-only binding to the contract PuzzleFilterer // Log filterer for contract events }
Puzzle is an auto generated Go binding around an Ethereum contract.
func DeployPuzzle ¶
func DeployPuzzle(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Puzzle, error)
DeployPuzzle deploys a new Ethereum contract, binding an instance of Puzzle to it.
type PuzzleCaller ¶
type PuzzleCaller struct {
// contains filtered or unexported fields
}
PuzzleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPuzzleCaller ¶
func NewPuzzleCaller(address common.Address, caller bind.ContractCaller) (*PuzzleCaller, error)
NewPuzzleCaller creates a new read-only instance of Puzzle, bound to a specific deployed contract.
func (*PuzzleCaller) GetPlayers ¶
GetPlayers is a free data retrieval call binding the contract method 0x8b5b9ccc.
Solidity: function getPlayers() constant returns(address[])
type PuzzleCallerRaw ¶
type PuzzleCallerRaw struct {
Contract *PuzzleCaller // Generic read-only contract binding to access the raw methods on
}
PuzzleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PuzzleCallerRaw) Call ¶
func (_Puzzle *PuzzleCallerRaw) 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 PuzzleCallerSession ¶
type PuzzleCallerSession struct { Contract *PuzzleCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PuzzleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PuzzleCallerSession) GetPlayers ¶
func (_Puzzle *PuzzleCallerSession) GetPlayers() ([]common.Address, error)
GetPlayers is a free data retrieval call binding the contract method 0x8b5b9ccc.
Solidity: function getPlayers() constant returns(address[])
type PuzzleFilterer ¶
type PuzzleFilterer struct {
// contains filtered or unexported fields
}
PuzzleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPuzzleFilterer ¶
func NewPuzzleFilterer(address common.Address, filterer bind.ContractFilterer) (*PuzzleFilterer, error)
NewPuzzleFilterer creates a new log filterer instance of Puzzle, bound to a specific deployed contract.
type PuzzleRaw ¶
type PuzzleRaw struct {
Contract *Puzzle // Generic contract binding to access the raw methods on
}
PuzzleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PuzzleRaw) Call ¶
func (_Puzzle *PuzzleRaw) 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 (*PuzzleRaw) Transact ¶
func (_Puzzle *PuzzleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PuzzleRaw) Transfer ¶
func (_Puzzle *PuzzleRaw) 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 PuzzleSession ¶
type PuzzleSession struct { Contract *Puzzle // 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 }
PuzzleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PuzzleSession) EndGame ¶
func (_Puzzle *PuzzleSession) EndGame(player common.Address) (*types.Transaction, error)
EndGame is a paid mutator transaction binding the contract method 0x2a035b6c.
Solidity: function endGame(address player) returns()
func (*PuzzleSession) GetPlayers ¶
func (_Puzzle *PuzzleSession) GetPlayers() ([]common.Address, error)
GetPlayers is a free data retrieval call binding the contract method 0x8b5b9ccc.
Solidity: function getPlayers() constant returns(address[])
func (*PuzzleSession) Manager ¶
func (_Puzzle *PuzzleSession) Manager() (common.Address, error)
Manager is a free data retrieval call binding the contract method 0x481c6a75.
Solidity: function manager() constant returns(address)
func (*PuzzleSession) Payout ¶
func (_Puzzle *PuzzleSession) Payout(player common.Address, level *big.Int, arg2 string) (*types.Transaction, error)
Payout is a paid mutator transaction binding the contract method 0x52bcd7c8.
Solidity: function payout(address player, uint256 level, string ) returns()
func (*PuzzleSession) Play ¶
func (_Puzzle *PuzzleSession) Play() (*types.Transaction, error)
Play is a paid mutator transaction binding the contract method 0x93e84cd9.
Solidity: function play() returns()
func (*PuzzleSession) Players ¶
Players is a free data retrieval call binding the contract method 0xf71d96cb.
Solidity: function players(uint256 ) constant returns(address)
func (*PuzzleSession) Reset ¶
func (_Puzzle *PuzzleSession) Reset() (*types.Transaction, error)
Reset is a paid mutator transaction binding the contract method 0xd826f88f.
Solidity: function reset() returns()
func (*PuzzleSession) ResetPlayer ¶
func (_Puzzle *PuzzleSession) ResetPlayer(player common.Address) (*types.Transaction, error)
ResetPlayer is a paid mutator transaction binding the contract method 0xc95e0909.
Solidity: function resetPlayer(address player) returns()
func (*PuzzleSession) SetLevel ¶
func (_Puzzle *PuzzleSession) SetLevel(player common.Address, level *big.Int) (*types.Transaction, error)
SetLevel is a paid mutator transaction binding the contract method 0x722dcd8f.
Solidity: function setLevel(address player, uint256 level) returns()
type PuzzleTransactor ¶
type PuzzleTransactor struct {
// contains filtered or unexported fields
}
PuzzleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPuzzleTransactor ¶
func NewPuzzleTransactor(address common.Address, transactor bind.ContractTransactor) (*PuzzleTransactor, error)
NewPuzzleTransactor creates a new write-only instance of Puzzle, bound to a specific deployed contract.
func (*PuzzleTransactor) EndGame ¶
func (_Puzzle *PuzzleTransactor) EndGame(opts *bind.TransactOpts, player common.Address) (*types.Transaction, error)
EndGame is a paid mutator transaction binding the contract method 0x2a035b6c.
Solidity: function endGame(address player) returns()
func (*PuzzleTransactor) Payout ¶
func (_Puzzle *PuzzleTransactor) Payout(opts *bind.TransactOpts, player common.Address, level *big.Int, arg2 string) (*types.Transaction, error)
Payout is a paid mutator transaction binding the contract method 0x52bcd7c8.
Solidity: function payout(address player, uint256 level, string ) returns()
func (*PuzzleTransactor) Play ¶
func (_Puzzle *PuzzleTransactor) Play(opts *bind.TransactOpts) (*types.Transaction, error)
Play is a paid mutator transaction binding the contract method 0x93e84cd9.
Solidity: function play() returns()
func (*PuzzleTransactor) Reset ¶
func (_Puzzle *PuzzleTransactor) Reset(opts *bind.TransactOpts) (*types.Transaction, error)
Reset is a paid mutator transaction binding the contract method 0xd826f88f.
Solidity: function reset() returns()
func (*PuzzleTransactor) ResetPlayer ¶
func (_Puzzle *PuzzleTransactor) ResetPlayer(opts *bind.TransactOpts, player common.Address) (*types.Transaction, error)
ResetPlayer is a paid mutator transaction binding the contract method 0xc95e0909.
Solidity: function resetPlayer(address player) returns()
func (*PuzzleTransactor) SetLevel ¶
func (_Puzzle *PuzzleTransactor) SetLevel(opts *bind.TransactOpts, player common.Address, level *big.Int) (*types.Transaction, error)
SetLevel is a paid mutator transaction binding the contract method 0x722dcd8f.
Solidity: function setLevel(address player, uint256 level) returns()
type PuzzleTransactorRaw ¶
type PuzzleTransactorRaw struct {
Contract *PuzzleTransactor // Generic write-only contract binding to access the raw methods on
}
PuzzleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PuzzleTransactorRaw) Transact ¶
func (_Puzzle *PuzzleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PuzzleTransactorRaw) Transfer ¶
func (_Puzzle *PuzzleTransactorRaw) 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 PuzzleTransactorSession ¶
type PuzzleTransactorSession struct { Contract *PuzzleTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PuzzleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PuzzleTransactorSession) EndGame ¶
func (_Puzzle *PuzzleTransactorSession) EndGame(player common.Address) (*types.Transaction, error)
EndGame is a paid mutator transaction binding the contract method 0x2a035b6c.
Solidity: function endGame(address player) returns()
func (*PuzzleTransactorSession) Payout ¶
func (_Puzzle *PuzzleTransactorSession) Payout(player common.Address, level *big.Int, arg2 string) (*types.Transaction, error)
Payout is a paid mutator transaction binding the contract method 0x52bcd7c8.
Solidity: function payout(address player, uint256 level, string ) returns()
func (*PuzzleTransactorSession) Play ¶
func (_Puzzle *PuzzleTransactorSession) Play() (*types.Transaction, error)
Play is a paid mutator transaction binding the contract method 0x93e84cd9.
Solidity: function play() returns()
func (*PuzzleTransactorSession) Reset ¶
func (_Puzzle *PuzzleTransactorSession) Reset() (*types.Transaction, error)
Reset is a paid mutator transaction binding the contract method 0xd826f88f.
Solidity: function reset() returns()
func (*PuzzleTransactorSession) ResetPlayer ¶
func (_Puzzle *PuzzleTransactorSession) ResetPlayer(player common.Address) (*types.Transaction, error)
ResetPlayer is a paid mutator transaction binding the contract method 0xc95e0909.
Solidity: function resetPlayer(address player) returns()
func (*PuzzleTransactorSession) SetLevel ¶
func (_Puzzle *PuzzleTransactorSession) SetLevel(player common.Address, level *big.Int) (*types.Transaction, error)
SetLevel is a paid mutator transaction binding the contract method 0x722dcd8f.
Solidity: function setLevel(address player, uint256 level) returns()