Documentation ¶
Index ¶
- Constants
- Variables
- type Todo
- type TodoCaller
- type TodoCallerRaw
- type TodoCallerSession
- type TodoFilterer
- type TodoRaw
- func (_Todo *TodoRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Todo *TodoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Todo *TodoRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TodoSession
- func (_Todo *TodoSession) Add(_content string) (*types.Transaction, error)
- func (_Todo *TodoSession) Get(_id *big.Int) (TodoTask, error)
- func (_Todo *TodoSession) List() ([]TodoTask, error)
- func (_Todo *TodoSession) Owner() (common.Address, error)
- func (_Todo *TodoSession) Remove(_id *big.Int) (*types.Transaction, error)
- func (_Todo *TodoSession) Toggle(_id *big.Int) (*types.Transaction, error)
- func (_Todo *TodoSession) Update(_id *big.Int, _content string) (*types.Transaction, error)
- type TodoTask
- type TodoTransactor
- func (_Todo *TodoTransactor) Add(opts *bind.TransactOpts, _content string) (*types.Transaction, error)
- func (_Todo *TodoTransactor) Remove(opts *bind.TransactOpts, _id *big.Int) (*types.Transaction, error)
- func (_Todo *TodoTransactor) Toggle(opts *bind.TransactOpts, _id *big.Int) (*types.Transaction, error)
- func (_Todo *TodoTransactor) Update(opts *bind.TransactOpts, _id *big.Int, _content string) (*types.Transaction, error)
- type TodoTransactorRaw
- type TodoTransactorSession
- func (_Todo *TodoTransactorSession) Add(_content string) (*types.Transaction, error)
- func (_Todo *TodoTransactorSession) Remove(_id *big.Int) (*types.Transaction, error)
- func (_Todo *TodoTransactorSession) Toggle(_id *big.Int) (*types.Transaction, error)
- func (_Todo *TodoTransactorSession) Update(_id *big.Int, _content string) (*types.Transaction, error)
Constants ¶
const TodoABI = "" /* 1740-byte string literal not displayed */
TodoABI is the input ABI used to generate the binding from.
Variables ¶
var TodoBin = "" /* 8770-byte string literal not displayed */
TodoBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type Todo ¶
type Todo struct { TodoCaller // Read-only binding to the contract TodoTransactor // Write-only binding to the contract TodoFilterer // Log filterer for contract events }
Todo is an auto generated Go binding around an Ethereum contract.
func DeployTodo ¶
func DeployTodo(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Todo, error)
DeployTodo deploys a new Ethereum contract, binding an instance of Todo to it.
type TodoCaller ¶
type TodoCaller struct {
// contains filtered or unexported fields
}
TodoCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTodoCaller ¶
func NewTodoCaller(address common.Address, caller bind.ContractCaller) (*TodoCaller, error)
NewTodoCaller creates a new read-only instance of Todo, bound to a specific deployed contract.
func (*TodoCaller) Get ¶
Get is a free data retrieval call binding the contract method 0x9507d39a.
Solidity: function get(uint256 _id) view returns((string,bool))
type TodoCallerRaw ¶
type TodoCallerRaw struct {
Contract *TodoCaller // Generic read-only contract binding to access the raw methods on
}
TodoCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TodoCallerRaw) Call ¶
func (_Todo *TodoCallerRaw) 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 TodoCallerSession ¶
type TodoCallerSession struct { Contract *TodoCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TodoCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TodoCallerSession) Get ¶
func (_Todo *TodoCallerSession) Get(_id *big.Int) (TodoTask, error)
Get is a free data retrieval call binding the contract method 0x9507d39a.
Solidity: function get(uint256 _id) view returns((string,bool))
func (*TodoCallerSession) List ¶
func (_Todo *TodoCallerSession) List() ([]TodoTask, error)
List is a free data retrieval call binding the contract method 0x0f560cd7.
Solidity: function list() view returns((string,bool)[])
type TodoFilterer ¶
type TodoFilterer struct {
// contains filtered or unexported fields
}
TodoFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTodoFilterer ¶
func NewTodoFilterer(address common.Address, filterer bind.ContractFilterer) (*TodoFilterer, error)
NewTodoFilterer creates a new log filterer instance of Todo, bound to a specific deployed contract.
type TodoRaw ¶
type TodoRaw struct {
Contract *Todo // Generic contract binding to access the raw methods on
}
TodoRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TodoRaw) Call ¶
func (_Todo *TodoRaw) 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 (*TodoRaw) Transact ¶
func (_Todo *TodoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TodoRaw) Transfer ¶
func (_Todo *TodoRaw) 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 TodoSession ¶
type TodoSession struct { Contract *Todo // 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 }
TodoSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TodoSession) Add ¶
func (_Todo *TodoSession) Add(_content string) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0xb0c8f9dc.
Solidity: function add(string _content) returns()
func (*TodoSession) Get ¶
func (_Todo *TodoSession) Get(_id *big.Int) (TodoTask, error)
Get is a free data retrieval call binding the contract method 0x9507d39a.
Solidity: function get(uint256 _id) view returns((string,bool))
func (*TodoSession) List ¶
func (_Todo *TodoSession) List() ([]TodoTask, error)
List is a free data retrieval call binding the contract method 0x0f560cd7.
Solidity: function list() view returns((string,bool)[])
func (*TodoSession) Owner ¶
func (_Todo *TodoSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*TodoSession) Remove ¶
func (_Todo *TodoSession) Remove(_id *big.Int) (*types.Transaction, error)
Remove is a paid mutator transaction binding the contract method 0x4cc82215.
Solidity: function remove(uint256 _id) returns()
func (*TodoSession) Toggle ¶
func (_Todo *TodoSession) Toggle(_id *big.Int) (*types.Transaction, error)
Toggle is a paid mutator transaction binding the contract method 0x751ef753.
Solidity: function toggle(uint256 _id) returns()
func (*TodoSession) Update ¶
func (_Todo *TodoSession) Update(_id *big.Int, _content string) (*types.Transaction, error)
Update is a paid mutator transaction binding the contract method 0xf745630f.
Solidity: function update(uint256 _id, string _content) returns()
type TodoTransactor ¶
type TodoTransactor struct {
// contains filtered or unexported fields
}
TodoTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTodoTransactor ¶
func NewTodoTransactor(address common.Address, transactor bind.ContractTransactor) (*TodoTransactor, error)
NewTodoTransactor creates a new write-only instance of Todo, bound to a specific deployed contract.
func (*TodoTransactor) Add ¶
func (_Todo *TodoTransactor) Add(opts *bind.TransactOpts, _content string) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0xb0c8f9dc.
Solidity: function add(string _content) returns()
func (*TodoTransactor) Remove ¶
func (_Todo *TodoTransactor) Remove(opts *bind.TransactOpts, _id *big.Int) (*types.Transaction, error)
Remove is a paid mutator transaction binding the contract method 0x4cc82215.
Solidity: function remove(uint256 _id) returns()
func (*TodoTransactor) Toggle ¶
func (_Todo *TodoTransactor) Toggle(opts *bind.TransactOpts, _id *big.Int) (*types.Transaction, error)
Toggle is a paid mutator transaction binding the contract method 0x751ef753.
Solidity: function toggle(uint256 _id) returns()
func (*TodoTransactor) Update ¶
func (_Todo *TodoTransactor) Update(opts *bind.TransactOpts, _id *big.Int, _content string) (*types.Transaction, error)
Update is a paid mutator transaction binding the contract method 0xf745630f.
Solidity: function update(uint256 _id, string _content) returns()
type TodoTransactorRaw ¶
type TodoTransactorRaw struct {
Contract *TodoTransactor // Generic write-only contract binding to access the raw methods on
}
TodoTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TodoTransactorRaw) Transact ¶
func (_Todo *TodoTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TodoTransactorRaw) Transfer ¶
func (_Todo *TodoTransactorRaw) 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 TodoTransactorSession ¶
type TodoTransactorSession struct { Contract *TodoTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TodoTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TodoTransactorSession) Add ¶
func (_Todo *TodoTransactorSession) Add(_content string) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0xb0c8f9dc.
Solidity: function add(string _content) returns()
func (*TodoTransactorSession) Remove ¶
func (_Todo *TodoTransactorSession) Remove(_id *big.Int) (*types.Transaction, error)
Remove is a paid mutator transaction binding the contract method 0x4cc82215.
Solidity: function remove(uint256 _id) returns()
func (*TodoTransactorSession) Toggle ¶
func (_Todo *TodoTransactorSession) Toggle(_id *big.Int) (*types.Transaction, error)
Toggle is a paid mutator transaction binding the contract method 0x751ef753.
Solidity: function toggle(uint256 _id) returns()
func (*TodoTransactorSession) Update ¶
func (_Todo *TodoTransactorSession) Update(_id *big.Int, _content string) (*types.Transaction, error)
Update is a paid mutator transaction binding the contract method 0xf745630f.
Solidity: function update(uint256 _id, string _content) returns()