contracts

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PuzzleABI = "" /* 1816-byte string literal not displayed */

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

View Source
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 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.

func NewPuzzle

func NewPuzzle(address common.Address, backend bind.ContractBackend) (*Puzzle, error)

NewPuzzle creates a new instance of Puzzle, bound to a specific deployed contract.

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

func (_Puzzle *PuzzleCaller) GetPlayers(opts *bind.CallOpts) ([]common.Address, error)

GetPlayers is a free data retrieval call binding the contract method 0x8b5b9ccc.

Solidity: function getPlayers() constant returns(address[])

func (*PuzzleCaller) Manager

func (_Puzzle *PuzzleCaller) Manager(opts *bind.CallOpts) (common.Address, error)

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() constant returns(address)

func (*PuzzleCaller) Players

func (_Puzzle *PuzzleCaller) Players(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Players is a free data retrieval call binding the contract method 0xf71d96cb.

Solidity: function players(uint256 ) 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[])

func (*PuzzleCallerSession) Manager

func (_Puzzle *PuzzleCallerSession) Manager() (common.Address, error)

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() constant returns(address)

func (*PuzzleCallerSession) Players

func (_Puzzle *PuzzleCallerSession) Players(arg0 *big.Int) (common.Address, error)

Players is a free data retrieval call binding the contract method 0xf71d96cb.

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

func (_Puzzle *PuzzleSession) Players(arg0 *big.Int) (common.Address, error)

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

Jump to

Keyboard shortcuts

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