How to use _Query method of generated Package

Best Keploy code snippet using generated._Query

inumericoutcome.go

Source:inumericoutcome.go Github

copy

Full Screen

1// Code generated - DO NOT EDIT.2// This file is a generated binding and any manual changes will be lost.3package inumericoutcome4import (5 "math/big"6 "strings"7 ethereum "github.com/ethereum/go-ethereum"8 "github.com/ethereum/go-ethereum/accounts/abi"9 "github.com/ethereum/go-ethereum/accounts/abi/bind"10 "github.com/ethereum/go-ethereum/common"11 "github.com/ethereum/go-ethereum/core/types"12 "github.com/ethereum/go-ethereum/event"13)14// Reference imports to suppress errors if they are not otherwise used.15var (16 _ = big.NewInt17 _ = strings.NewReader18 _ = ethereum.NotFound19 _ = bind.Bind20 _ = common.Big121 _ = types.BloomLookup22 _ = event.NewSubscription23)24// INumericOutcomeABI is the input ABI used to generate the binding from.25const INumericOutcomeABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"_query\",\"type\":\"bytes\"}],\"name\":\"isFinalized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_query\",\"type\":\"bytes\"}],\"name\":\"getOutcome\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"26// INumericOutcome is an auto generated Go binding around an Ethereum contract.27type INumericOutcome struct {28 INumericOutcomeCaller // Read-only binding to the contract29 INumericOutcomeTransactor // Write-only binding to the contract30 INumericOutcomeFilterer // Log filterer for contract events31}32// INumericOutcomeCaller is an auto generated read-only Go binding around an Ethereum contract.33type INumericOutcomeCaller struct {34 contract *bind.BoundContract // Generic contract wrapper for the low level calls35}36// INumericOutcomeTransactor is an auto generated write-only Go binding around an Ethereum contract.37type INumericOutcomeTransactor struct {38 contract *bind.BoundContract // Generic contract wrapper for the low level calls39}40// INumericOutcomeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.41type INumericOutcomeFilterer struct {42 contract *bind.BoundContract // Generic contract wrapper for the low level calls43}44// INumericOutcomeSession is an auto generated Go binding around an Ethereum contract,45// with pre-set call and transact options.46type INumericOutcomeSession struct {47 Contract *INumericOutcome // Generic contract binding to set the session for48 CallOpts bind.CallOpts // Call options to use throughout this session49 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session50}51// INumericOutcomeCallerSession is an auto generated read-only Go binding around an Ethereum contract,52// with pre-set call options.53type INumericOutcomeCallerSession struct {54 Contract *INumericOutcomeCaller // Generic contract caller binding to set the session for55 CallOpts bind.CallOpts // Call options to use throughout this session56}57// INumericOutcomeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,58// with pre-set transact options.59type INumericOutcomeTransactorSession struct {60 Contract *INumericOutcomeTransactor // Generic contract transactor binding to set the session for61 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session62}63// INumericOutcomeRaw is an auto generated low-level Go binding around an Ethereum contract.64type INumericOutcomeRaw struct {65 Contract *INumericOutcome // Generic contract binding to access the raw methods on66}67// INumericOutcomeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.68type INumericOutcomeCallerRaw struct {69 Contract *INumericOutcomeCaller // Generic read-only contract binding to access the raw methods on70}71// INumericOutcomeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.72type INumericOutcomeTransactorRaw struct {73 Contract *INumericOutcomeTransactor // Generic write-only contract binding to access the raw methods on74}75// NewINumericOutcome creates a new instance of INumericOutcome, bound to a specific deployed contract.76func NewINumericOutcome(address common.Address, backend bind.ContractBackend) (*INumericOutcome, error) {77 contract, err := bindINumericOutcome(address, backend, backend, backend)78 if err != nil {79 return nil, err80 }81 return &INumericOutcome{INumericOutcomeCaller: INumericOutcomeCaller{contract: contract}, INumericOutcomeTransactor: INumericOutcomeTransactor{contract: contract}, INumericOutcomeFilterer: INumericOutcomeFilterer{contract: contract}}, nil82}83// NewINumericOutcomeCaller creates a new read-only instance of INumericOutcome, bound to a specific deployed contract.84func NewINumericOutcomeCaller(address common.Address, caller bind.ContractCaller) (*INumericOutcomeCaller, error) {85 contract, err := bindINumericOutcome(address, caller, nil, nil)86 if err != nil {87 return nil, err88 }89 return &INumericOutcomeCaller{contract: contract}, nil90}91// NewINumericOutcomeTransactor creates a new write-only instance of INumericOutcome, bound to a specific deployed contract.92func NewINumericOutcomeTransactor(address common.Address, transactor bind.ContractTransactor) (*INumericOutcomeTransactor, error) {93 contract, err := bindINumericOutcome(address, nil, transactor, nil)94 if err != nil {95 return nil, err96 }97 return &INumericOutcomeTransactor{contract: contract}, nil98}99// NewINumericOutcomeFilterer creates a new log filterer instance of INumericOutcome, bound to a specific deployed contract.100func NewINumericOutcomeFilterer(address common.Address, filterer bind.ContractFilterer) (*INumericOutcomeFilterer, error) {101 contract, err := bindINumericOutcome(address, nil, nil, filterer)102 if err != nil {103 return nil, err104 }105 return &INumericOutcomeFilterer{contract: contract}, nil106}107// bindINumericOutcome binds a generic wrapper to an already deployed contract.108func bindINumericOutcome(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {109 parsed, err := abi.JSON(strings.NewReader(INumericOutcomeABI))110 if err != nil {111 return nil, err112 }113 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil114}115// Call invokes the (constant) contract method with params as input values and116// sets the output to result. The result type might be a single field for simple117// returns, a slice of interfaces for anonymous returns and a struct for named118// returns.119func (_INumericOutcome *INumericOutcomeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {120 return _INumericOutcome.Contract.INumericOutcomeCaller.contract.Call(opts, result, method, params...)121}122// Transfer initiates a plain transaction to move funds to the contract, calling123// its default method if one is available.124func (_INumericOutcome *INumericOutcomeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {125 return _INumericOutcome.Contract.INumericOutcomeTransactor.contract.Transfer(opts)126}127// Transact invokes the (paid) contract method with params as input values.128func (_INumericOutcome *INumericOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {129 return _INumericOutcome.Contract.INumericOutcomeTransactor.contract.Transact(opts, method, params...)130}131// Call invokes the (constant) contract method with params as input values and132// sets the output to result. The result type might be a single field for simple133// returns, a slice of interfaces for anonymous returns and a struct for named134// returns.135func (_INumericOutcome *INumericOutcomeCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {136 return _INumericOutcome.Contract.contract.Call(opts, result, method, params...)137}138// Transfer initiates a plain transaction to move funds to the contract, calling139// its default method if one is available.140func (_INumericOutcome *INumericOutcomeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {141 return _INumericOutcome.Contract.contract.Transfer(opts)142}143// Transact invokes the (paid) contract method with params as input values.144func (_INumericOutcome *INumericOutcomeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {145 return _INumericOutcome.Contract.contract.Transact(opts, method, params...)146}147// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.148//149// Solidity: function getOutcome(bytes _query) view returns(uint256)150func (_INumericOutcome *INumericOutcomeCaller) GetOutcome(opts *bind.CallOpts, _query []byte) (*big.Int, error) {151 var (152 ret0 = new(*big.Int)153 )154 out := ret0155 err := _INumericOutcome.contract.Call(opts, out, "getOutcome", _query)156 return *ret0, err157}158// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.159//160// Solidity: function getOutcome(bytes _query) view returns(uint256)161func (_INumericOutcome *INumericOutcomeSession) GetOutcome(_query []byte) (*big.Int, error) {162 return _INumericOutcome.Contract.GetOutcome(&_INumericOutcome.CallOpts, _query)163}164// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.165//166// Solidity: function getOutcome(bytes _query) view returns(uint256)167func (_INumericOutcome *INumericOutcomeCallerSession) GetOutcome(_query []byte) (*big.Int, error) {168 return _INumericOutcome.Contract.GetOutcome(&_INumericOutcome.CallOpts, _query)169}170// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.171//172// Solidity: function isFinalized(bytes _query) view returns(bool)173func (_INumericOutcome *INumericOutcomeCaller) IsFinalized(opts *bind.CallOpts, _query []byte) (bool, error) {174 var (175 ret0 = new(bool)176 )177 out := ret0178 err := _INumericOutcome.contract.Call(opts, out, "isFinalized", _query)179 return *ret0, err180}181// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.182//183// Solidity: function isFinalized(bytes _query) view returns(bool)184func (_INumericOutcome *INumericOutcomeSession) IsFinalized(_query []byte) (bool, error) {185 return _INumericOutcome.Contract.IsFinalized(&_INumericOutcome.CallOpts, _query)186}187// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.188//189// Solidity: function isFinalized(bytes _query) view returns(bool)190func (_INumericOutcome *INumericOutcomeCallerSession) IsFinalized(_query []byte) (bool, error) {191 return _INumericOutcome.Contract.IsFinalized(&_INumericOutcome.CallOpts, _query)192}...

Full Screen

Full Screen

ibooleanoutcome.go

Source:ibooleanoutcome.go Github

copy

Full Screen

1// Code generated - DO NOT EDIT.2// This file is a generated binding and any manual changes will be lost.3package ibooleanoutcome4import (5 "math/big"6 "strings"7 ethereum "github.com/ethereum/go-ethereum"8 "github.com/ethereum/go-ethereum/accounts/abi"9 "github.com/ethereum/go-ethereum/accounts/abi/bind"10 "github.com/ethereum/go-ethereum/common"11 "github.com/ethereum/go-ethereum/core/types"12 "github.com/ethereum/go-ethereum/event"13)14// Reference imports to suppress errors if they are not otherwise used.15var (16 _ = big.NewInt17 _ = strings.NewReader18 _ = ethereum.NotFound19 _ = bind.Bind20 _ = common.Big121 _ = types.BloomLookup22 _ = event.NewSubscription23)24// IBooleanOutcomeABI is the input ABI used to generate the binding from.25const IBooleanOutcomeABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"_query\",\"type\":\"bytes\"}],\"name\":\"isFinalized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_query\",\"type\":\"bytes\"}],\"name\":\"getOutcome\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"26// IBooleanOutcome is an auto generated Go binding around an Ethereum contract.27type IBooleanOutcome struct {28 IBooleanOutcomeCaller // Read-only binding to the contract29 IBooleanOutcomeTransactor // Write-only binding to the contract30 IBooleanOutcomeFilterer // Log filterer for contract events31}32// IBooleanOutcomeCaller is an auto generated read-only Go binding around an Ethereum contract.33type IBooleanOutcomeCaller struct {34 contract *bind.BoundContract // Generic contract wrapper for the low level calls35}36// IBooleanOutcomeTransactor is an auto generated write-only Go binding around an Ethereum contract.37type IBooleanOutcomeTransactor struct {38 contract *bind.BoundContract // Generic contract wrapper for the low level calls39}40// IBooleanOutcomeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.41type IBooleanOutcomeFilterer struct {42 contract *bind.BoundContract // Generic contract wrapper for the low level calls43}44// IBooleanOutcomeSession is an auto generated Go binding around an Ethereum contract,45// with pre-set call and transact options.46type IBooleanOutcomeSession struct {47 Contract *IBooleanOutcome // Generic contract binding to set the session for48 CallOpts bind.CallOpts // Call options to use throughout this session49 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session50}51// IBooleanOutcomeCallerSession is an auto generated read-only Go binding around an Ethereum contract,52// with pre-set call options.53type IBooleanOutcomeCallerSession struct {54 Contract *IBooleanOutcomeCaller // Generic contract caller binding to set the session for55 CallOpts bind.CallOpts // Call options to use throughout this session56}57// IBooleanOutcomeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,58// with pre-set transact options.59type IBooleanOutcomeTransactorSession struct {60 Contract *IBooleanOutcomeTransactor // Generic contract transactor binding to set the session for61 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session62}63// IBooleanOutcomeRaw is an auto generated low-level Go binding around an Ethereum contract.64type IBooleanOutcomeRaw struct {65 Contract *IBooleanOutcome // Generic contract binding to access the raw methods on66}67// IBooleanOutcomeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.68type IBooleanOutcomeCallerRaw struct {69 Contract *IBooleanOutcomeCaller // Generic read-only contract binding to access the raw methods on70}71// IBooleanOutcomeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.72type IBooleanOutcomeTransactorRaw struct {73 Contract *IBooleanOutcomeTransactor // Generic write-only contract binding to access the raw methods on74}75// NewIBooleanOutcome creates a new instance of IBooleanOutcome, bound to a specific deployed contract.76func NewIBooleanOutcome(address common.Address, backend bind.ContractBackend) (*IBooleanOutcome, error) {77 contract, err := bindIBooleanOutcome(address, backend, backend, backend)78 if err != nil {79 return nil, err80 }81 return &IBooleanOutcome{IBooleanOutcomeCaller: IBooleanOutcomeCaller{contract: contract}, IBooleanOutcomeTransactor: IBooleanOutcomeTransactor{contract: contract}, IBooleanOutcomeFilterer: IBooleanOutcomeFilterer{contract: contract}}, nil82}83// NewIBooleanOutcomeCaller creates a new read-only instance of IBooleanOutcome, bound to a specific deployed contract.84func NewIBooleanOutcomeCaller(address common.Address, caller bind.ContractCaller) (*IBooleanOutcomeCaller, error) {85 contract, err := bindIBooleanOutcome(address, caller, nil, nil)86 if err != nil {87 return nil, err88 }89 return &IBooleanOutcomeCaller{contract: contract}, nil90}91// NewIBooleanOutcomeTransactor creates a new write-only instance of IBooleanOutcome, bound to a specific deployed contract.92func NewIBooleanOutcomeTransactor(address common.Address, transactor bind.ContractTransactor) (*IBooleanOutcomeTransactor, error) {93 contract, err := bindIBooleanOutcome(address, nil, transactor, nil)94 if err != nil {95 return nil, err96 }97 return &IBooleanOutcomeTransactor{contract: contract}, nil98}99// NewIBooleanOutcomeFilterer creates a new log filterer instance of IBooleanOutcome, bound to a specific deployed contract.100func NewIBooleanOutcomeFilterer(address common.Address, filterer bind.ContractFilterer) (*IBooleanOutcomeFilterer, error) {101 contract, err := bindIBooleanOutcome(address, nil, nil, filterer)102 if err != nil {103 return nil, err104 }105 return &IBooleanOutcomeFilterer{contract: contract}, nil106}107// bindIBooleanOutcome binds a generic wrapper to an already deployed contract.108func bindIBooleanOutcome(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {109 parsed, err := abi.JSON(strings.NewReader(IBooleanOutcomeABI))110 if err != nil {111 return nil, err112 }113 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil114}115// Call invokes the (constant) contract method with params as input values and116// sets the output to result. The result type might be a single field for simple117// returns, a slice of interfaces for anonymous returns and a struct for named118// returns.119func (_IBooleanOutcome *IBooleanOutcomeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {120 return _IBooleanOutcome.Contract.IBooleanOutcomeCaller.contract.Call(opts, result, method, params...)121}122// Transfer initiates a plain transaction to move funds to the contract, calling123// its default method if one is available.124func (_IBooleanOutcome *IBooleanOutcomeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {125 return _IBooleanOutcome.Contract.IBooleanOutcomeTransactor.contract.Transfer(opts)126}127// Transact invokes the (paid) contract method with params as input values.128func (_IBooleanOutcome *IBooleanOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {129 return _IBooleanOutcome.Contract.IBooleanOutcomeTransactor.contract.Transact(opts, method, params...)130}131// Call invokes the (constant) contract method with params as input values and132// sets the output to result. The result type might be a single field for simple133// returns, a slice of interfaces for anonymous returns and a struct for named134// returns.135func (_IBooleanOutcome *IBooleanOutcomeCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {136 return _IBooleanOutcome.Contract.contract.Call(opts, result, method, params...)137}138// Transfer initiates a plain transaction to move funds to the contract, calling139// its default method if one is available.140func (_IBooleanOutcome *IBooleanOutcomeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {141 return _IBooleanOutcome.Contract.contract.Transfer(opts)142}143// Transact invokes the (paid) contract method with params as input values.144func (_IBooleanOutcome *IBooleanOutcomeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {145 return _IBooleanOutcome.Contract.contract.Transact(opts, method, params...)146}147// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.148//149// Solidity: function getOutcome(bytes _query) view returns(bool)150func (_IBooleanOutcome *IBooleanOutcomeCaller) GetOutcome(opts *bind.CallOpts, _query []byte) (bool, error) {151 var (152 ret0 = new(bool)153 )154 out := ret0155 err := _IBooleanOutcome.contract.Call(opts, out, "getOutcome", _query)156 return *ret0, err157}158// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.159//160// Solidity: function getOutcome(bytes _query) view returns(bool)161func (_IBooleanOutcome *IBooleanOutcomeSession) GetOutcome(_query []byte) (bool, error) {162 return _IBooleanOutcome.Contract.GetOutcome(&_IBooleanOutcome.CallOpts, _query)163}164// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.165//166// Solidity: function getOutcome(bytes _query) view returns(bool)167func (_IBooleanOutcome *IBooleanOutcomeCallerSession) GetOutcome(_query []byte) (bool, error) {168 return _IBooleanOutcome.Contract.GetOutcome(&_IBooleanOutcome.CallOpts, _query)169}170// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.171//172// Solidity: function isFinalized(bytes _query) view returns(bool)173func (_IBooleanOutcome *IBooleanOutcomeCaller) IsFinalized(opts *bind.CallOpts, _query []byte) (bool, error) {174 var (175 ret0 = new(bool)176 )177 out := ret0178 err := _IBooleanOutcome.contract.Call(opts, out, "isFinalized", _query)179 return *ret0, err180}181// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.182//183// Solidity: function isFinalized(bytes _query) view returns(bool)184func (_IBooleanOutcome *IBooleanOutcomeSession) IsFinalized(_query []byte) (bool, error) {185 return _IBooleanOutcome.Contract.IsFinalized(&_IBooleanOutcome.CallOpts, _query)186}187// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.188//189// Solidity: function isFinalized(bytes _query) view returns(bool)190func (_IBooleanOutcome *IBooleanOutcomeCallerSession) IsFinalized(_query []byte) (bool, error) {191 return _IBooleanOutcome.Contract.IsFinalized(&_IBooleanOutcome.CallOpts, _query)192}...

Full Screen

Full Screen

booleanoutcome.go

Source:booleanoutcome.go Github

copy

Full Screen

1// Code generated - DO NOT EDIT.2// This file is a generated binding and any manual changes will be lost.3package app4import (5 "math/big"6 "strings"7 ethereum "github.com/ethereum/go-ethereum"8 "github.com/ethereum/go-ethereum/accounts/abi"9 "github.com/ethereum/go-ethereum/accounts/abi/bind"10 "github.com/ethereum/go-ethereum/common"11 "github.com/ethereum/go-ethereum/core/types"12 "github.com/ethereum/go-ethereum/event"13)14// Reference imports to suppress errors if they are not otherwise used.15var (16 _ = big.NewInt17 _ = strings.NewReader18 _ = ethereum.NotFound19 _ = bind.Bind20 _ = common.Big121 _ = types.BloomLookup22 _ = event.NewSubscription23)24// IBooleanOutcomeABI is the input ABI used to generate the binding from.25const IBooleanOutcomeABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"_query\",\"type\":\"bytes\"}],\"name\":\"isFinalized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_query\",\"type\":\"bytes\"}],\"name\":\"getOutcome\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"26// IBooleanOutcome is an auto generated Go binding around an Ethereum contract.27type IBooleanOutcome struct {28 IBooleanOutcomeCaller // Read-only binding to the contract29 IBooleanOutcomeTransactor // Write-only binding to the contract30 IBooleanOutcomeFilterer // Log filterer for contract events31}32// IBooleanOutcomeCaller is an auto generated read-only Go binding around an Ethereum contract.33type IBooleanOutcomeCaller struct {34 contract *bind.BoundContract // Generic contract wrapper for the low level calls35}36// IBooleanOutcomeTransactor is an auto generated write-only Go binding around an Ethereum contract.37type IBooleanOutcomeTransactor struct {38 contract *bind.BoundContract // Generic contract wrapper for the low level calls39}40// IBooleanOutcomeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.41type IBooleanOutcomeFilterer struct {42 contract *bind.BoundContract // Generic contract wrapper for the low level calls43}44// IBooleanOutcomeSession is an auto generated Go binding around an Ethereum contract,45// with pre-set call and transact options.46type IBooleanOutcomeSession struct {47 Contract *IBooleanOutcome // Generic contract binding to set the session for48 CallOpts bind.CallOpts // Call options to use throughout this session49 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session50}51// IBooleanOutcomeCallerSession is an auto generated read-only Go binding around an Ethereum contract,52// with pre-set call options.53type IBooleanOutcomeCallerSession struct {54 Contract *IBooleanOutcomeCaller // Generic contract caller binding to set the session for55 CallOpts bind.CallOpts // Call options to use throughout this session56}57// IBooleanOutcomeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,58// with pre-set transact options.59type IBooleanOutcomeTransactorSession struct {60 Contract *IBooleanOutcomeTransactor // Generic contract transactor binding to set the session for61 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session62}63// IBooleanOutcomeRaw is an auto generated low-level Go binding around an Ethereum contract.64type IBooleanOutcomeRaw struct {65 Contract *IBooleanOutcome // Generic contract binding to access the raw methods on66}67// IBooleanOutcomeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.68type IBooleanOutcomeCallerRaw struct {69 Contract *IBooleanOutcomeCaller // Generic read-only contract binding to access the raw methods on70}71// IBooleanOutcomeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.72type IBooleanOutcomeTransactorRaw struct {73 Contract *IBooleanOutcomeTransactor // Generic write-only contract binding to access the raw methods on74}75// NewIBooleanOutcome creates a new instance of IBooleanOutcome, bound to a specific deployed contract.76func NewIBooleanOutcome(address common.Address, backend bind.ContractBackend) (*IBooleanOutcome, error) {77 contract, err := bindIBooleanOutcome(address, backend, backend, backend)78 if err != nil {79 return nil, err80 }81 return &IBooleanOutcome{IBooleanOutcomeCaller: IBooleanOutcomeCaller{contract: contract}, IBooleanOutcomeTransactor: IBooleanOutcomeTransactor{contract: contract}, IBooleanOutcomeFilterer: IBooleanOutcomeFilterer{contract: contract}}, nil82}83// NewIBooleanOutcomeCaller creates a new read-only instance of IBooleanOutcome, bound to a specific deployed contract.84func NewIBooleanOutcomeCaller(address common.Address, caller bind.ContractCaller) (*IBooleanOutcomeCaller, error) {85 contract, err := bindIBooleanOutcome(address, caller, nil, nil)86 if err != nil {87 return nil, err88 }89 return &IBooleanOutcomeCaller{contract: contract}, nil90}91// NewIBooleanOutcomeTransactor creates a new write-only instance of IBooleanOutcome, bound to a specific deployed contract.92func NewIBooleanOutcomeTransactor(address common.Address, transactor bind.ContractTransactor) (*IBooleanOutcomeTransactor, error) {93 contract, err := bindIBooleanOutcome(address, nil, transactor, nil)94 if err != nil {95 return nil, err96 }97 return &IBooleanOutcomeTransactor{contract: contract}, nil98}99// NewIBooleanOutcomeFilterer creates a new log filterer instance of IBooleanOutcome, bound to a specific deployed contract.100func NewIBooleanOutcomeFilterer(address common.Address, filterer bind.ContractFilterer) (*IBooleanOutcomeFilterer, error) {101 contract, err := bindIBooleanOutcome(address, nil, nil, filterer)102 if err != nil {103 return nil, err104 }105 return &IBooleanOutcomeFilterer{contract: contract}, nil106}107// bindIBooleanOutcome binds a generic wrapper to an already deployed contract.108func bindIBooleanOutcome(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {109 parsed, err := abi.JSON(strings.NewReader(IBooleanOutcomeABI))110 if err != nil {111 return nil, err112 }113 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil114}115// Call invokes the (constant) contract method with params as input values and116// sets the output to result. The result type might be a single field for simple117// returns, a slice of interfaces for anonymous returns and a struct for named118// returns.119func (_IBooleanOutcome *IBooleanOutcomeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {120 return _IBooleanOutcome.Contract.IBooleanOutcomeCaller.contract.Call(opts, result, method, params...)121}122// Transfer initiates a plain transaction to move funds to the contract, calling123// its default method if one is available.124func (_IBooleanOutcome *IBooleanOutcomeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {125 return _IBooleanOutcome.Contract.IBooleanOutcomeTransactor.contract.Transfer(opts)126}127// Transact invokes the (paid) contract method with params as input values.128func (_IBooleanOutcome *IBooleanOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {129 return _IBooleanOutcome.Contract.IBooleanOutcomeTransactor.contract.Transact(opts, method, params...)130}131// Call invokes the (constant) contract method with params as input values and132// sets the output to result. The result type might be a single field for simple133// returns, a slice of interfaces for anonymous returns and a struct for named134// returns.135func (_IBooleanOutcome *IBooleanOutcomeCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {136 return _IBooleanOutcome.Contract.contract.Call(opts, result, method, params...)137}138// Transfer initiates a plain transaction to move funds to the contract, calling139// its default method if one is available.140func (_IBooleanOutcome *IBooleanOutcomeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {141 return _IBooleanOutcome.Contract.contract.Transfer(opts)142}143// Transact invokes the (paid) contract method with params as input values.144func (_IBooleanOutcome *IBooleanOutcomeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {145 return _IBooleanOutcome.Contract.contract.Transact(opts, method, params...)146}147// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.148//149// Solidity: function getOutcome(bytes _query) view returns(bool)150func (_IBooleanOutcome *IBooleanOutcomeCaller) GetOutcome(opts *bind.CallOpts, _query []byte) (bool, error) {151 var (152 ret0 = new(bool)153 )154 out := ret0155 err := _IBooleanOutcome.contract.Call(opts, out, "getOutcome", _query)156 return *ret0, err157}158// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.159//160// Solidity: function getOutcome(bytes _query) view returns(bool)161func (_IBooleanOutcome *IBooleanOutcomeSession) GetOutcome(_query []byte) (bool, error) {162 return _IBooleanOutcome.Contract.GetOutcome(&_IBooleanOutcome.CallOpts, _query)163}164// GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.165//166// Solidity: function getOutcome(bytes _query) view returns(bool)167func (_IBooleanOutcome *IBooleanOutcomeCallerSession) GetOutcome(_query []byte) (bool, error) {168 return _IBooleanOutcome.Contract.GetOutcome(&_IBooleanOutcome.CallOpts, _query)169}170// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.171//172// Solidity: function isFinalized(bytes _query) view returns(bool)173func (_IBooleanOutcome *IBooleanOutcomeCaller) IsFinalized(opts *bind.CallOpts, _query []byte) (bool, error) {174 var (175 ret0 = new(bool)176 )177 out := ret0178 err := _IBooleanOutcome.contract.Call(opts, out, "isFinalized", _query)179 return *ret0, err180}181// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.182//183// Solidity: function isFinalized(bytes _query) view returns(bool)184func (_IBooleanOutcome *IBooleanOutcomeSession) IsFinalized(_query []byte) (bool, error) {185 return _IBooleanOutcome.Contract.IsFinalized(&_IBooleanOutcome.CallOpts, _query)186}187// IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.188//189// Solidity: function isFinalized(bytes _query) view returns(bool)190func (_IBooleanOutcome *IBooleanOutcomeCallerSession) IsFinalized(_query []byte) (bool, error) {191 return _IBooleanOutcome.Contract.IsFinalized(&_IBooleanOutcome.CallOpts, _query)192}...

Full Screen

Full Screen

_Query

Using AI Code Generation

copy

Full Screen

1var query = new Query("Contact");2query._Query("select * from Contact where Name = 'test'", function (response) {3 console.log(response);4}, function (error) {5 console.log(error);6});

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Keploy automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful