gitlink_blockchain/tabletest/TableTest.go

867 lines
52 KiB
Go
Raw Permalink Normal View History

2023-01-19 22:30:01 +08:00
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package tabletest
import (
"math/big"
"strings"
"github.com/FISCO-BCOS/go-sdk/abi"
"github.com/FISCO-BCOS/go-sdk/abi/bind"
"github.com/FISCO-BCOS/go-sdk/core/types"
"github.com/FISCO-BCOS/go-sdk/event"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = abi.U256
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// TableTestABI is the input ABI used to generate the binding from.
const TableTestABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"item_id\",\"type\":\"int256\"},{\"name\":\"item_name\",\"type\":\"string\"}],\"name\":\"update\",\"outputs\":[{\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"item_id\",\"type\":\"int256\"}],\"name\":\"remove\",\"outputs\":[{\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"item_id\",\"type\":\"int256\"},{\"name\":\"item_name\",\"type\":\"string\"}],\"name\":\"insert\",\"outputs\":[{\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"}],\"name\":\"select\",\"outputs\":[{\"name\":\"\",\"type\":\"string[]\"},{\"name\":\"\",\"type\":\"int256[]\"},{\"name\":\"\",\"type\":\"string[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"count\",\"type\":\"int256\"}],\"name\":\"CreateResult\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"count\",\"type\":\"int256\"}],\"name\":\"InsertResult\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"count\",\"type\":\"int256\"}],\"name\":\"UpdateResult\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"count\",\"type\":\"int256\"}],\"name\":\"RemoveResult\",\"type\":\"event\"}]"
// TableTestBin is the compiled bytecode used for deploying new contracts.
var TableTestBin = "0x60806040523480156200001157600080fd5b506110016000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166356004b6a6040805190810160405280600681526020017f745f7465737400000000000000000000000000000000000000000000000000008152506040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016200010191906200024a565b602060405180830381600087803b1580156200011c57600080fd5b505af115801562000131573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525062000157919081019062000174565b50620002f4565b60006200016c8251620002a3565b905092915050565b6000602082840312156200018757600080fd5b600062000197848285016200015e565b91505092915050565b6000620001ad8262000298565b808452620001c3816020860160208601620002ad565b620001ce81620002e3565b602085010191505092915050565b6000600482527f6e616d65000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000601182527f6974656d5f69642c6974656d5f6e616d650000000000000000000000000000006020830152604082019050919050565b60006060820190508181036000830152620002668184620001a0565b905081810360208301526200027b81620001dc565b90508181036040830152620002908162000213565b905092915050565b600081519050919050565b6000819050919050565b60005b83811015620002cd578082015181840152602081019050620002b0565b83811115620002dd576000848401525b50505050565b6000601f19601f8301169050919050565b611fc980620003046000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063487a5a1014610067578063c4f41ab3146100a4578063ebf3b24f146100e1578063fcd7e3c11461011e575b600080fd5b34801561007357600080fd5b5061008e6004803603610089919081019061193e565b61015d565b60405161009b9190611c10565b60405180910390f35b3480156100b057600080fd5b506100cb60048036036100c691908101906118ea565b610627565b6040516100d89190611c10565b60405180910390f35b3480156100ed57600080fd5b506101086004803603610103919081019061193e565b6109c6565b6040516101159190611c10565b60405180910390f35b34801561012a57600080fd5b5061014560048036036101409190810190611868565b610ded565b60405161015493929190611bc4565b60405180910390f35b60008060008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f23f63c96040805190810160405280600681526020017f745f7465737400000000000000000000000000000000000000000000000000008152506040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016102109190611c2b565b602060405180830381600087803b15801561022a57600080fd5b505af115801561023e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102629190810190611816565b93508373ffffffffffffffffffffffffffffffffffffffff166313db93466040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156102c857600080fd5b505af11580156102dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061030091908101906117ed565b92508273ffffffffffffffffffffffffffffffffffffffff1663e942b516876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016103579190611d60565b600060405180830381600087803b15801561037157600080fd5b505af1158015610385573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff16637857d7c96040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156103ed57600080fd5b505af1158015610401573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610425919081019061179b565b91508173ffffffffffffffffffffffffffffffffffffffff1663cd30a1d1896040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040161047c9190611d0b565b600060405180830381600087803b15801561049657600080fd5b505af11580156104aa573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff1663e44594b9886040518263ffffffff167c010000000000000000000000000000000000000000000000000
// DeployTableTest deploys a new contract, binding an instance of TableTest to it.
func DeployTableTest(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TableTest, error) {
parsed, err := abi.JSON(strings.NewReader(TableTestABI))
if err != nil {
return common.Address{}, nil, nil, err
}
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(TableTestBin), backend)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &TableTest{TableTestCaller: TableTestCaller{contract: contract}, TableTestTransactor: TableTestTransactor{contract: contract}, TableTestFilterer: TableTestFilterer{contract: contract}}, nil
}
func AsyncDeployTableTest(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend) (*types.Transaction, error) {
parsed, err := abi.JSON(strings.NewReader(TableTestABI))
if err != nil {
return nil, err
}
tx, err := bind.AsyncDeployContract(auth, handler, parsed, common.FromHex(TableTestBin), backend)
if err != nil {
return nil, err
}
return tx, nil
}
// TableTest is an auto generated Go binding around a Solidity contract.
type TableTest struct {
TableTestCaller // Read-only binding to the contract
TableTestTransactor // Write-only binding to the contract
TableTestFilterer // Log filterer for contract events
}
// TableTestCaller is an auto generated read-only Go binding around a Solidity contract.
type TableTestCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// TableTestTransactor is an auto generated write-only Go binding around a Solidity contract.
type TableTestTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// TableTestFilterer is an auto generated log filtering Go binding around a Solidity contract events.
type TableTestFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// TableTestSession is an auto generated Go binding around a Solidity contract,
// with pre-set call and transact options.
type TableTestSession struct {
Contract *TableTest // 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
}
// TableTestCallerSession is an auto generated read-only Go binding around a Solidity contract,
// with pre-set call options.
type TableTestCallerSession struct {
Contract *TableTestCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// TableTestTransactorSession is an auto generated write-only Go binding around a Solidity contract,
// with pre-set transact options.
type TableTestTransactorSession struct {
Contract *TableTestTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// TableTestRaw is an auto generated low-level Go binding around a Solidity contract.
type TableTestRaw struct {
Contract *TableTest // Generic contract binding to access the raw methods on
}
// TableTestCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.
type TableTestCallerRaw struct {
Contract *TableTestCaller // Generic read-only contract binding to access the raw methods on
}
// TableTestTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.
type TableTestTransactorRaw struct {
Contract *TableTestTransactor // Generic write-only contract binding to access the raw methods on
}
// NewTableTest creates a new instance of TableTest, bound to a specific deployed contract.
func NewTableTest(address common.Address, backend bind.ContractBackend) (*TableTest, error) {
contract, err := bindTableTest(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &TableTest{TableTestCaller: TableTestCaller{contract: contract}, TableTestTransactor: TableTestTransactor{contract: contract}, TableTestFilterer: TableTestFilterer{contract: contract}}, nil
}
// NewTableTestCaller creates a new read-only instance of TableTest, bound to a specific deployed contract.
func NewTableTestCaller(address common.Address, caller bind.ContractCaller) (*TableTestCaller, error) {
contract, err := bindTableTest(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &TableTestCaller{contract: contract}, nil
}
// NewTableTestTransactor creates a new write-only instance of TableTest, bound to a specific deployed contract.
func NewTableTestTransactor(address common.Address, transactor bind.ContractTransactor) (*TableTestTransactor, error) {
contract, err := bindTableTest(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &TableTestTransactor{contract: contract}, nil
}
// NewTableTestFilterer creates a new log filterer instance of TableTest, bound to a specific deployed contract.
func NewTableTestFilterer(address common.Address, filterer bind.ContractFilterer) (*TableTestFilterer, error) {
contract, err := bindTableTest(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &TableTestFilterer{contract: contract}, nil
}
// bindTableTest binds a generic wrapper to an already deployed contract.
func bindTableTest(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(TableTestABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
// 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 (_TableTest *TableTestRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _TableTest.Contract.TableTestCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_TableTest *TableTestRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.TableTestTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_TableTest *TableTestRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.TableTestTransactor.contract.Transact(opts, method, params...)
}
// 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 (_TableTest *TableTestCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _TableTest.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_TableTest *TableTestTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_TableTest *TableTestTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.contract.Transact(opts, method, params...)
}
// Select is a free data retrieval call binding the contract method 0xfcd7e3c1.
//
// Solidity: function select(string name) constant returns(string[], int256[], string[])
func (_TableTest *TableTestCaller) Select(opts *bind.CallOpts, name string) ([]string, []*big.Int, []string, error) {
var (
ret0 = new([]string)
ret1 = new([]*big.Int)
ret2 = new([]string)
)
out := &[]interface{}{
ret0,
ret1,
ret2,
}
err := _TableTest.contract.Call(opts, out, "select", name)
return *ret0, *ret1, *ret2, err
}
// Select is a free data retrieval call binding the contract method 0xfcd7e3c1.
//
// Solidity: function select(string name) constant returns(string[], int256[], string[])
func (_TableTest *TableTestSession) Select(name string) ([]string, []*big.Int, []string, error) {
return _TableTest.Contract.Select(&_TableTest.CallOpts, name)
}
// Select is a free data retrieval call binding the contract method 0xfcd7e3c1.
//
// Solidity: function select(string name) constant returns(string[], int256[], string[])
func (_TableTest *TableTestCallerSession) Select(name string) ([]string, []*big.Int, []string, error) {
return _TableTest.Contract.Select(&_TableTest.CallOpts, name)
}
// Insert is a paid mutator transaction binding the contract method 0xebf3b24f.
//
// Solidity: function insert(string name, int256 item_id, string item_name) returns(int256)
func (_TableTest *TableTestTransactor) Insert(opts *bind.TransactOpts, name string, item_id *big.Int, item_name string) (*types.Transaction, *types.Receipt, error) {
return _TableTest.contract.Transact(opts, "insert", name, item_id, item_name)
}
func (_TableTest *TableTestTransactor) AsyncInsert(handler func(*types.Receipt, error), opts *bind.TransactOpts, name string, item_id *big.Int, item_name string) (*types.Transaction, error) {
return _TableTest.contract.AsyncTransact(opts, handler, "insert", name, item_id, item_name)
}
// Insert is a paid mutator transaction binding the contract method 0xebf3b24f.
//
// Solidity: function insert(string name, int256 item_id, string item_name) returns(int256)
func (_TableTest *TableTestSession) Insert(name string, item_id *big.Int, item_name string) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.Insert(&_TableTest.TransactOpts, name, item_id, item_name)
}
func (_TableTest *TableTestSession) AsyncInsert(handler func(*types.Receipt, error), name string, item_id *big.Int, item_name string) (*types.Transaction, error) {
return _TableTest.Contract.AsyncInsert(handler, &_TableTest.TransactOpts, name, item_id, item_name)
}
// Insert is a paid mutator transaction binding the contract method 0xebf3b24f.
//
// Solidity: function insert(string name, int256 item_id, string item_name) returns(int256)
func (_TableTest *TableTestTransactorSession) Insert(name string, item_id *big.Int, item_name string) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.Insert(&_TableTest.TransactOpts, name, item_id, item_name)
}
func (_TableTest *TableTestTransactorSession) AsyncInsert(handler func(*types.Receipt, error), name string, item_id *big.Int, item_name string) (*types.Transaction, error) {
return _TableTest.Contract.AsyncInsert(handler, &_TableTest.TransactOpts, name, item_id, item_name)
}
// Remove is a paid mutator transaction binding the contract method 0xc4f41ab3.
//
// Solidity: function remove(string name, int256 item_id) returns(int256)
func (_TableTest *TableTestTransactor) Remove(opts *bind.TransactOpts, name string, item_id *big.Int) (*types.Transaction, *types.Receipt, error) {
return _TableTest.contract.Transact(opts, "remove", name, item_id)
}
func (_TableTest *TableTestTransactor) AsyncRemove(handler func(*types.Receipt, error), opts *bind.TransactOpts, name string, item_id *big.Int) (*types.Transaction, error) {
return _TableTest.contract.AsyncTransact(opts, handler, "remove", name, item_id)
}
// Remove is a paid mutator transaction binding the contract method 0xc4f41ab3.
//
// Solidity: function remove(string name, int256 item_id) returns(int256)
func (_TableTest *TableTestSession) Remove(name string, item_id *big.Int) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.Remove(&_TableTest.TransactOpts, name, item_id)
}
func (_TableTest *TableTestSession) AsyncRemove(handler func(*types.Receipt, error), name string, item_id *big.Int) (*types.Transaction, error) {
return _TableTest.Contract.AsyncRemove(handler, &_TableTest.TransactOpts, name, item_id)
}
// Remove is a paid mutator transaction binding the contract method 0xc4f41ab3.
//
// Solidity: function remove(string name, int256 item_id) returns(int256)
func (_TableTest *TableTestTransactorSession) Remove(name string, item_id *big.Int) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.Remove(&_TableTest.TransactOpts, name, item_id)
}
func (_TableTest *TableTestTransactorSession) AsyncRemove(handler func(*types.Receipt, error), name string, item_id *big.Int) (*types.Transaction, error) {
return _TableTest.Contract.AsyncRemove(handler, &_TableTest.TransactOpts, name, item_id)
}
// Update is a paid mutator transaction binding the contract method 0x487a5a10.
//
// Solidity: function update(string name, int256 item_id, string item_name) returns(int256)
func (_TableTest *TableTestTransactor) Update(opts *bind.TransactOpts, name string, item_id *big.Int, item_name string) (*types.Transaction, *types.Receipt, error) {
return _TableTest.contract.Transact(opts, "update", name, item_id, item_name)
}
func (_TableTest *TableTestTransactor) AsyncUpdate(handler func(*types.Receipt, error), opts *bind.TransactOpts, name string, item_id *big.Int, item_name string) (*types.Transaction, error) {
return _TableTest.contract.AsyncTransact(opts, handler, "update", name, item_id, item_name)
}
// Update is a paid mutator transaction binding the contract method 0x487a5a10.
//
// Solidity: function update(string name, int256 item_id, string item_name) returns(int256)
func (_TableTest *TableTestSession) Update(name string, item_id *big.Int, item_name string) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.Update(&_TableTest.TransactOpts, name, item_id, item_name)
}
func (_TableTest *TableTestSession) AsyncUpdate(handler func(*types.Receipt, error), name string, item_id *big.Int, item_name string) (*types.Transaction, error) {
return _TableTest.Contract.AsyncUpdate(handler, &_TableTest.TransactOpts, name, item_id, item_name)
}
// Update is a paid mutator transaction binding the contract method 0x487a5a10.
//
// Solidity: function update(string name, int256 item_id, string item_name) returns(int256)
func (_TableTest *TableTestTransactorSession) Update(name string, item_id *big.Int, item_name string) (*types.Transaction, *types.Receipt, error) {
return _TableTest.Contract.Update(&_TableTest.TransactOpts, name, item_id, item_name)
}
func (_TableTest *TableTestTransactorSession) AsyncUpdate(handler func(*types.Receipt, error), name string, item_id *big.Int, item_name string) (*types.Transaction, error) {
return _TableTest.Contract.AsyncUpdate(handler, &_TableTest.TransactOpts, name, item_id, item_name)
}
// TableTestCreateResultIterator is returned from FilterCreateResult and is used to iterate over the raw logs and unpacked data for CreateResult events raised by the TableTest contract.
type TableTestCreateResultIterator struct {
Event *TableTestCreateResult // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *TableTestCreateResultIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(TableTestCreateResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(TableTestCreateResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *TableTestCreateResultIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *TableTestCreateResultIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// TableTestCreateResult represents a CreateResult event raised by the TableTest contract.
type TableTestCreateResult struct {
Count *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterCreateResult is a free log retrieval operation binding the contract event 0xb5636cd912a73dcdb5b570dbe331dfa3e6435c93e029e642def2c8e40dacf210.
//
// Solidity: event CreateResult(int256 count)
func (_TableTest *TableTestFilterer) FilterCreateResult(opts *bind.FilterOpts) (*TableTestCreateResultIterator, error) {
logs, sub, err := _TableTest.contract.FilterLogs(opts, "CreateResult")
if err != nil {
return nil, err
}
return &TableTestCreateResultIterator{contract: _TableTest.contract, event: "CreateResult", logs: logs, sub: sub}, nil
}
// WatchCreateResult is a free log subscription operation binding the contract event 0xb5636cd912a73dcdb5b570dbe331dfa3e6435c93e029e642def2c8e40dacf210.
//
// Solidity: event CreateResult(int256 count)
func (_TableTest *TableTestFilterer) WatchCreateResult(opts *bind.WatchOpts, sink chan<- *TableTestCreateResult) (event.Subscription, error) {
logs, sub, err := _TableTest.contract.WatchLogs(opts, "CreateResult")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(TableTestCreateResult)
if err := _TableTest.contract.UnpackLog(event, "CreateResult", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseCreateResult is a log parse operation binding the contract event 0xb5636cd912a73dcdb5b570dbe331dfa3e6435c93e029e642def2c8e40dacf210.
//
// Solidity: event CreateResult(int256 count)
func (_TableTest *TableTestFilterer) ParseCreateResult(log types.Log) (*TableTestCreateResult, error) {
event := new(TableTestCreateResult)
if err := _TableTest.contract.UnpackLog(event, "CreateResult", log); err != nil {
return nil, err
}
return event, nil
}
// TableTestInsertResultIterator is returned from FilterInsertResult and is used to iterate over the raw logs and unpacked data for InsertResult events raised by the TableTest contract.
type TableTestInsertResultIterator struct {
Event *TableTestInsertResult // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *TableTestInsertResultIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(TableTestInsertResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(TableTestInsertResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *TableTestInsertResultIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *TableTestInsertResultIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// TableTestInsertResult represents a InsertResult event raised by the TableTest contract.
type TableTestInsertResult struct {
Count *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterInsertResult is a free log retrieval operation binding the contract event 0xc57b01fa77f41df77eaab79a0e2623fab2e7ae3e9530d9b1cab225ad65f2b7ce.
//
// Solidity: event InsertResult(int256 count)
func (_TableTest *TableTestFilterer) FilterInsertResult(opts *bind.FilterOpts) (*TableTestInsertResultIterator, error) {
logs, sub, err := _TableTest.contract.FilterLogs(opts, "InsertResult")
if err != nil {
return nil, err
}
return &TableTestInsertResultIterator{contract: _TableTest.contract, event: "InsertResult", logs: logs, sub: sub}, nil
}
// WatchInsertResult is a free log subscription operation binding the contract event 0xc57b01fa77f41df77eaab79a0e2623fab2e7ae3e9530d9b1cab225ad65f2b7ce.
//
// Solidity: event InsertResult(int256 count)
func (_TableTest *TableTestFilterer) WatchInsertResult(opts *bind.WatchOpts, sink chan<- *TableTestInsertResult) (event.Subscription, error) {
logs, sub, err := _TableTest.contract.WatchLogs(opts, "InsertResult")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(TableTestInsertResult)
if err := _TableTest.contract.UnpackLog(event, "InsertResult", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseInsertResult is a log parse operation binding the contract event 0xc57b01fa77f41df77eaab79a0e2623fab2e7ae3e9530d9b1cab225ad65f2b7ce.
//
// Solidity: event InsertResult(int256 count)
func (_TableTest *TableTestFilterer) ParseInsertResult(log types.Log) (*TableTestInsertResult, error) {
event := new(TableTestInsertResult)
if err := _TableTest.contract.UnpackLog(event, "InsertResult", log); err != nil {
return nil, err
}
return event, nil
}
// TableTestRemoveResultIterator is returned from FilterRemoveResult and is used to iterate over the raw logs and unpacked data for RemoveResult events raised by the TableTest contract.
type TableTestRemoveResultIterator struct {
Event *TableTestRemoveResult // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *TableTestRemoveResultIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(TableTestRemoveResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(TableTestRemoveResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *TableTestRemoveResultIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *TableTestRemoveResultIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// TableTestRemoveResult represents a RemoveResult event raised by the TableTest contract.
type TableTestRemoveResult struct {
Count *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterRemoveResult is a free log retrieval operation binding the contract event 0x4b930e280fe29620bdff00c88155d46d6d82a39f45dd5c3ea114dc3157358112.
//
// Solidity: event RemoveResult(int256 count)
func (_TableTest *TableTestFilterer) FilterRemoveResult(opts *bind.FilterOpts) (*TableTestRemoveResultIterator, error) {
logs, sub, err := _TableTest.contract.FilterLogs(opts, "RemoveResult")
if err != nil {
return nil, err
}
return &TableTestRemoveResultIterator{contract: _TableTest.contract, event: "RemoveResult", logs: logs, sub: sub}, nil
}
// WatchRemoveResult is a free log subscription operation binding the contract event 0x4b930e280fe29620bdff00c88155d46d6d82a39f45dd5c3ea114dc3157358112.
//
// Solidity: event RemoveResult(int256 count)
func (_TableTest *TableTestFilterer) WatchRemoveResult(opts *bind.WatchOpts, sink chan<- *TableTestRemoveResult) (event.Subscription, error) {
logs, sub, err := _TableTest.contract.WatchLogs(opts, "RemoveResult")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(TableTestRemoveResult)
if err := _TableTest.contract.UnpackLog(event, "RemoveResult", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseRemoveResult is a log parse operation binding the contract event 0x4b930e280fe29620bdff00c88155d46d6d82a39f45dd5c3ea114dc3157358112.
//
// Solidity: event RemoveResult(int256 count)
func (_TableTest *TableTestFilterer) ParseRemoveResult(log types.Log) (*TableTestRemoveResult, error) {
event := new(TableTestRemoveResult)
if err := _TableTest.contract.UnpackLog(event, "RemoveResult", log); err != nil {
return nil, err
}
return event, nil
}
// TableTestUpdateResultIterator is returned from FilterUpdateResult and is used to iterate over the raw logs and unpacked data for UpdateResult events raised by the TableTest contract.
type TableTestUpdateResultIterator struct {
Event *TableTestUpdateResult // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *TableTestUpdateResultIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(TableTestUpdateResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(TableTestUpdateResult)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *TableTestUpdateResultIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *TableTestUpdateResultIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// TableTestUpdateResult represents a UpdateResult event raised by the TableTest contract.
type TableTestUpdateResult struct {
Count *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterUpdateResult is a free log retrieval operation binding the contract event 0x8e5890af40fc24a059396aca2f83d6ce41fcef086876548fa4fb8ec27e9d292a.
//
// Solidity: event UpdateResult(int256 count)
func (_TableTest *TableTestFilterer) FilterUpdateResult(opts *bind.FilterOpts) (*TableTestUpdateResultIterator, error) {
logs, sub, err := _TableTest.contract.FilterLogs(opts, "UpdateResult")
if err != nil {
return nil, err
}
return &TableTestUpdateResultIterator{contract: _TableTest.contract, event: "UpdateResult", logs: logs, sub: sub}, nil
}
// WatchUpdateResult is a free log subscription operation binding the contract event 0x8e5890af40fc24a059396aca2f83d6ce41fcef086876548fa4fb8ec27e9d292a.
//
// Solidity: event UpdateResult(int256 count)
func (_TableTest *TableTestFilterer) WatchUpdateResult(opts *bind.WatchOpts, sink chan<- *TableTestUpdateResult) (event.Subscription, error) {
logs, sub, err := _TableTest.contract.WatchLogs(opts, "UpdateResult")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(TableTestUpdateResult)
if err := _TableTest.contract.UnpackLog(event, "UpdateResult", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseUpdateResult is a log parse operation binding the contract event 0x8e5890af40fc24a059396aca2f83d6ce41fcef086876548fa4fb8ec27e9d292a.
//
// Solidity: event UpdateResult(int256 count)
func (_TableTest *TableTestFilterer) ParseUpdateResult(log types.Log) (*TableTestUpdateResult, error) {
event := new(TableTestUpdateResult)
if err := _TableTest.contract.UnpackLog(event, "UpdateResult", log); err != nil {
return nil, err
}
return event, nil
}