How to use _App method of generated Package

Best Keploy code snippet using generated._App

TrivialApp.go

Source:TrivialApp.go Github

copy

Full Screen

...145// Call invokes the (constant) contract method with params as input values and146// sets the output to result. The result type might be a single field for simple147// returns, a slice of interfaces for anonymous returns and a struct for named148// returns.149func (_App *AppRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {150 return _App.Contract.AppCaller.contract.Call(opts, result, method, params...)151}152// Transfer initiates a plain transaction to move funds to the contract, calling153// its default method if one is available.154func (_App *AppRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {155 return _App.Contract.AppTransactor.contract.Transfer(opts)156}157// Transact invokes the (paid) contract method with params as input values.158func (_App *AppRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {159 return _App.Contract.AppTransactor.contract.Transact(opts, method, params...)160}161// Call invokes the (constant) contract method with params as input values and162// sets the output to result. The result type might be a single field for simple163// returns, a slice of interfaces for anonymous returns and a struct for named164// returns.165func (_App *AppCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {166 return _App.Contract.contract.Call(opts, result, method, params...)167}168// Transfer initiates a plain transaction to move funds to the contract, calling169// its default method if one is available.170func (_App *AppTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {171 return _App.Contract.contract.Transfer(opts)172}173// Transact invokes the (paid) contract method with params as input values.174func (_App *AppTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {175 return _App.Contract.contract.Transact(opts, method, params...)176}177// ValidTransition is a free data retrieval call binding the contract method 0xec29dd7e.178//179// Solidity: function validTransition((uint256,uint256,address,address[]) params, (bytes32,uint64,(address[],uint256[][],(bytes32,uint256[])[]),bytes,bool) from, (bytes32,uint64,(address[],uint256[][],(bytes32,uint256[])[]),bytes,bool) to, uint256 actorIdx) pure returns()180func (_App *AppCaller) ValidTransition(opts *bind.CallOpts, params ChannelParams, from ChannelState, to ChannelState, actorIdx *big.Int) error {181 var out []interface{}182 err := _App.contract.Call(opts, &out, "validTransition", params, from, to, actorIdx)183 if err != nil {184 return err185 }186 return err187}188// ValidTransition is a free data retrieval call binding the contract method 0xec29dd7e.189//190// Solidity: function validTransition((uint256,uint256,address,address[]) params, (bytes32,uint64,(address[],uint256[][],(bytes32,uint256[])[]),bytes,bool) from, (bytes32,uint64,(address[],uint256[][],(bytes32,uint256[])[]),bytes,bool) to, uint256 actorIdx) pure returns()191func (_App *AppSession) ValidTransition(params ChannelParams, from ChannelState, to ChannelState, actorIdx *big.Int) error {192 return _App.Contract.ValidTransition(&_App.CallOpts, params, from, to, actorIdx)193}194// ValidTransition is a free data retrieval call binding the contract method 0xec29dd7e.195//196// Solidity: function validTransition((uint256,uint256,address,address[]) params, (bytes32,uint64,(address[],uint256[][],(bytes32,uint256[])[]),bytes,bool) from, (bytes32,uint64,(address[],uint256[][],(bytes32,uint256[])[]),bytes,bool) to, uint256 actorIdx) pure returns()197func (_App *AppCallerSession) ValidTransition(params ChannelParams, from ChannelState, to ChannelState, actorIdx *big.Int) error {198 return _App.Contract.ValidTransition(&_App.CallOpts, params, from, to, actorIdx)199}200// ChannelABI is the input ABI used to generate the binding from.201const ChannelABI = "[]"202// ChannelBin is the compiled bytecode used for deploying new contracts.203var ChannelBin = "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220208099144372c97375de94980b3d933b82573a938707a25ea71992260c4f300c64736f6c63430007040033"204// DeployChannel deploys a new Ethereum contract, binding an instance of Channel to it.205func DeployChannel(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Channel, error) {206 parsed, err := abi.JSON(strings.NewReader(ChannelABI))207 if err != nil {208 return common.Address{}, nil, nil, err209 }210 address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(ChannelBin), backend)211 if err != nil {212 return common.Address{}, nil, nil, err...

Full Screen

Full Screen

SignedDataVersion01.go

Source:SignedDataVersion01.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 SignedDataVersion014import (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// SignedDataVersion01ABI is the input ABI used to generate the binding from.15const SignedDataVersion01ABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"kill\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_app\",\"type\":\"uint256\"},{\"name\":\"_name\",\"type\":\"uint256\"}],\"name\":\"getData\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getBalanceContract\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_minPayment\",\"type\":\"uint256\"}],\"name\":\"setMinPayment\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getMinPayment\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_app\",\"type\":\"uint256\"},{\"name\":\"_name\",\"type\":\"uint256\"},{\"name\":\"_data\",\"type\":\"bytes32\"}],\"name\":\"setData\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"application\",\"type\":\"uint256\"},{\"name\":\"payFor\",\"type\":\"uint256\"}],\"name\":\"genReceivedFunds\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"init\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"App\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"Name\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"Value\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"By\",\"type\":\"address\"}],\"name\":\"DataChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"application\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"payFor\",\"type\":\"uint256\"}],\"name\":\"ReceivedFunds\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"}]"16// SignedDataVersion01 is an auto generated Go binding around an Ethereum contract.17type SignedDataVersion01 struct {18 SignedDataVersion01Caller // Read-only binding to the contract19 SignedDataVersion01Transactor // Write-only binding to the contract20 SignedDataVersion01Filterer // Log filterer for contract events21}22// SignedDataVersion01Caller is an auto generated read-only Go binding around an Ethereum contract.23type SignedDataVersion01Caller struct {24 contract *bind.BoundContract // Generic contract wrapper for the low level calls25}26// SignedDataVersion01Transactor is an auto generated write-only Go binding around an Ethereum contract.27type SignedDataVersion01Transactor struct {28 contract *bind.BoundContract // Generic contract wrapper for the low level calls29}30// SignedDataVersion01Filterer is an auto generated log filtering Go binding around an Ethereum contract events.31type SignedDataVersion01Filterer struct {32 contract *bind.BoundContract // Generic contract wrapper for the low level calls33}34// SignedDataVersion01Session is an auto generated Go binding around an Ethereum contract,35// with pre-set call and transact options.36type SignedDataVersion01Session struct {37 Contract *SignedDataVersion01 // Generic contract binding to set the session for38 CallOpts bind.CallOpts // Call options to use throughout this session39 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session40}41// SignedDataVersion01CallerSession is an auto generated read-only Go binding around an Ethereum contract,42// with pre-set call options.43type SignedDataVersion01CallerSession struct {44 Contract *SignedDataVersion01Caller // Generic contract caller binding to set the session for45 CallOpts bind.CallOpts // Call options to use throughout this session46}47// SignedDataVersion01TransactorSession is an auto generated write-only Go binding around an Ethereum contract,48// with pre-set transact options.49type SignedDataVersion01TransactorSession struct {50 Contract *SignedDataVersion01Transactor // Generic contract transactor binding to set the session for51 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session52}53// SignedDataVersion01Raw is an auto generated low-level Go binding around an Ethereum contract.54type SignedDataVersion01Raw struct {55 Contract *SignedDataVersion01 // Generic contract binding to access the raw methods on56}57// SignedDataVersion01CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.58type SignedDataVersion01CallerRaw struct {59 Contract *SignedDataVersion01Caller // Generic read-only contract binding to access the raw methods on60}61// SignedDataVersion01TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.62type SignedDataVersion01TransactorRaw struct {63 Contract *SignedDataVersion01Transactor // Generic write-only contract binding to access the raw methods on64}65// NewSignedDataVersion01 creates a new instance of SignedDataVersion01, bound to a specific deployed contract.66func NewSignedDataVersion01(address common.Address, backend bind.ContractBackend) (*SignedDataVersion01, error) {67 contract, err := bindSignedDataVersion01(address, backend, backend, backend)68 if err != nil {69 return nil, err70 }71 return &SignedDataVersion01{SignedDataVersion01Caller: SignedDataVersion01Caller{contract: contract}, SignedDataVersion01Transactor: SignedDataVersion01Transactor{contract: contract}, SignedDataVersion01Filterer: SignedDataVersion01Filterer{contract: contract}}, nil72}73// NewSignedDataVersion01Caller creates a new read-only instance of SignedDataVersion01, bound to a specific deployed contract.74func NewSignedDataVersion01Caller(address common.Address, caller bind.ContractCaller) (*SignedDataVersion01Caller, error) {75 contract, err := bindSignedDataVersion01(address, caller, nil, nil)76 if err != nil {77 return nil, err78 }79 return &SignedDataVersion01Caller{contract: contract}, nil80}81// NewSignedDataVersion01Transactor creates a new write-only instance of SignedDataVersion01, bound to a specific deployed contract.82func NewSignedDataVersion01Transactor(address common.Address, transactor bind.ContractTransactor) (*SignedDataVersion01Transactor, error) {83 contract, err := bindSignedDataVersion01(address, nil, transactor, nil)84 if err != nil {85 return nil, err86 }87 return &SignedDataVersion01Transactor{contract: contract}, nil88}89// NewSignedDataVersion01Filterer creates a new log filterer instance of SignedDataVersion01, bound to a specific deployed contract.90func NewSignedDataVersion01Filterer(address common.Address, filterer bind.ContractFilterer) (*SignedDataVersion01Filterer, error) {91 contract, err := bindSignedDataVersion01(address, nil, nil, filterer)92 if err != nil {93 return nil, err94 }95 return &SignedDataVersion01Filterer{contract: contract}, nil96}97// bindSignedDataVersion01 binds a generic wrapper to an already deployed contract.98func bindSignedDataVersion01(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {99 parsed, err := abi.JSON(strings.NewReader(SignedDataVersion01ABI))100 if err != nil {101 return nil, err102 }103 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil104}105// Call invokes the (constant) contract method with params as input values and106// sets the output to result. The result type might be a single field for simple107// returns, a slice of interfaces for anonymous returns and a struct for named108// returns.109func (_SignedDataVersion01 *SignedDataVersion01Raw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {110 return _SignedDataVersion01.Contract.SignedDataVersion01Caller.contract.Call(opts, result, method, params...)111}112// Transfer initiates a plain transaction to move funds to the contract, calling113// its default method if one is available.114func (_SignedDataVersion01 *SignedDataVersion01Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {115 return _SignedDataVersion01.Contract.SignedDataVersion01Transactor.contract.Transfer(opts)116}117// Transact invokes the (paid) contract method with params as input values.118func (_SignedDataVersion01 *SignedDataVersion01Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {119 return _SignedDataVersion01.Contract.SignedDataVersion01Transactor.contract.Transact(opts, method, params...)120}121// Call invokes the (constant) contract method with params as input values and122// sets the output to result. The result type might be a single field for simple123// returns, a slice of interfaces for anonymous returns and a struct for named124// returns.125func (_SignedDataVersion01 *SignedDataVersion01CallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {126 return _SignedDataVersion01.Contract.contract.Call(opts, result, method, params...)127}128// Transfer initiates a plain transaction to move funds to the contract, calling129// its default method if one is available.130func (_SignedDataVersion01 *SignedDataVersion01TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {131 return _SignedDataVersion01.Contract.contract.Transfer(opts)132}133// Transact invokes the (paid) contract method with params as input values.134func (_SignedDataVersion01 *SignedDataVersion01TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {135 return _SignedDataVersion01.Contract.contract.Transact(opts, method, params...)136}137// GetBalanceContract is a free data retrieval call binding the contract method 0x66bd78fd.138//139// Solidity: function getBalanceContract() constant returns(uint256)140func (_SignedDataVersion01 *SignedDataVersion01Caller) GetBalanceContract(opts *bind.CallOpts) (*big.Int, error) {141 var (142 ret0 = new(*big.Int)143 )144 out := ret0145 err := _SignedDataVersion01.contract.Call(opts, out, "getBalanceContract")146 return *ret0, err147}148// GetBalanceContract is a free data retrieval call binding the contract method 0x66bd78fd.149//150// Solidity: function getBalanceContract() constant returns(uint256)151func (_SignedDataVersion01 *SignedDataVersion01Session) GetBalanceContract() (*big.Int, error) {152 return _SignedDataVersion01.Contract.GetBalanceContract(&_SignedDataVersion01.CallOpts)153}154// GetBalanceContract is a free data retrieval call binding the contract method 0x66bd78fd.155//156// Solidity: function getBalanceContract() constant returns(uint256)157func (_SignedDataVersion01 *SignedDataVersion01CallerSession) GetBalanceContract() (*big.Int, error) {158 return _SignedDataVersion01.Contract.GetBalanceContract(&_SignedDataVersion01.CallOpts)159}160// GetData is a free data retrieval call binding the contract method 0x4e4fe306.161//162// Solidity: function getData(_app uint256, _name uint256) constant returns(bytes32)163func (_SignedDataVersion01 *SignedDataVersion01Caller) GetData(opts *bind.CallOpts, _app *big.Int, _name *big.Int) ([32]byte, error) {164 var (165 ret0 = new([32]byte)166 )167 out := ret0168 err := _SignedDataVersion01.contract.Call(opts, out, "getData", _app, _name)169 return *ret0, err170}171// GetData is a free data retrieval call binding the contract method 0x4e4fe306.172//173// Solidity: function getData(_app uint256, _name uint256) constant returns(bytes32)174func (_SignedDataVersion01 *SignedDataVersion01Session) GetData(_app *big.Int, _name *big.Int) ([32]byte, error) {175 return _SignedDataVersion01.Contract.GetData(&_SignedDataVersion01.CallOpts, _app, _name)176}177// GetData is a free data retrieval call binding the contract method 0x4e4fe306.178//179// Solidity: function getData(_app uint256, _name uint256) constant returns(bytes32)180func (_SignedDataVersion01 *SignedDataVersion01CallerSession) GetData(_app *big.Int, _name *big.Int) ([32]byte, error) {181 return _SignedDataVersion01.Contract.GetData(&_SignedDataVersion01.CallOpts, _app, _name)182}183// GetMinPayment is a free data retrieval call binding the contract method 0x77a890cd.184//185// Solidity: function getMinPayment() constant returns(uint256)186func (_SignedDataVersion01 *SignedDataVersion01Caller) GetMinPayment(opts *bind.CallOpts) (*big.Int, error) {187 var (188 ret0 = new(*big.Int)189 )190 out := ret0191 err := _SignedDataVersion01.contract.Call(opts, out, "getMinPayment")192 return *ret0, err193}194// GetMinPayment is a free data retrieval call binding the contract method 0x77a890cd.195//196// Solidity: function getMinPayment() constant returns(uint256)197func (_SignedDataVersion01 *SignedDataVersion01Session) GetMinPayment() (*big.Int, error) {198 return _SignedDataVersion01.Contract.GetMinPayment(&_SignedDataVersion01.CallOpts)199}200// GetMinPayment is a free data retrieval call binding the contract method 0x77a890cd.201//202// Solidity: function getMinPayment() constant returns(uint256)203func (_SignedDataVersion01 *SignedDataVersion01CallerSession) GetMinPayment() (*big.Int, error) {204 return _SignedDataVersion01.Contract.GetMinPayment(&_SignedDataVersion01.CallOpts)205}206// IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.207//208// Solidity: function isOwner() constant returns(bool)209func (_SignedDataVersion01 *SignedDataVersion01Caller) IsOwner(opts *bind.CallOpts) (bool, error) {210 var (211 ret0 = new(bool)212 )213 out := ret0214 err := _SignedDataVersion01.contract.Call(opts, out, "isOwner")215 return *ret0, err216}217// IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.218//219// Solidity: function isOwner() constant returns(bool)220func (_SignedDataVersion01 *SignedDataVersion01Session) IsOwner() (bool, error) {221 return _SignedDataVersion01.Contract.IsOwner(&_SignedDataVersion01.CallOpts)222}223// IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.224//225// Solidity: function isOwner() constant returns(bool)226func (_SignedDataVersion01 *SignedDataVersion01CallerSession) IsOwner() (bool, error) {227 return _SignedDataVersion01.Contract.IsOwner(&_SignedDataVersion01.CallOpts)228}229// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.230//231// Solidity: function owner() constant returns(address)232func (_SignedDataVersion01 *SignedDataVersion01Caller) Owner(opts *bind.CallOpts) (common.Address, error) {233 var (234 ret0 = new(common.Address)235 )236 out := ret0237 err := _SignedDataVersion01.contract.Call(opts, out, "owner")238 return *ret0, err239}240// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.241//242// Solidity: function owner() constant returns(address)243func (_SignedDataVersion01 *SignedDataVersion01Session) Owner() (common.Address, error) {244 return _SignedDataVersion01.Contract.Owner(&_SignedDataVersion01.CallOpts)245}246// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.247//248// Solidity: function owner() constant returns(address)249func (_SignedDataVersion01 *SignedDataVersion01CallerSession) Owner() (common.Address, error) {250 return _SignedDataVersion01.Contract.Owner(&_SignedDataVersion01.CallOpts)251}252// GenReceivedFunds is a paid mutator transaction binding the contract method 0xbe2b1636.253//254// Solidity: function genReceivedFunds(application uint256, payFor uint256) returns()255func (_SignedDataVersion01 *SignedDataVersion01Transactor) GenReceivedFunds(opts *bind.TransactOpts, application *big.Int, payFor *big.Int) (*types.Transaction, error) {256 return _SignedDataVersion01.contract.Transact(opts, "genReceivedFunds", application, payFor)257}258// GenReceivedFunds is a paid mutator transaction binding the contract method 0xbe2b1636.259//260// Solidity: function genReceivedFunds(application uint256, payFor uint256) returns()261func (_SignedDataVersion01 *SignedDataVersion01Session) GenReceivedFunds(application *big.Int, payFor *big.Int) (*types.Transaction, error) {262 return _SignedDataVersion01.Contract.GenReceivedFunds(&_SignedDataVersion01.TransactOpts, application, payFor)263}264// GenReceivedFunds is a paid mutator transaction binding the contract method 0xbe2b1636.265//266// Solidity: function genReceivedFunds(application uint256, payFor uint256) returns()267func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) GenReceivedFunds(application *big.Int, payFor *big.Int) (*types.Transaction, error) {268 return _SignedDataVersion01.Contract.GenReceivedFunds(&_SignedDataVersion01.TransactOpts, application, payFor)269}270// Init is a paid mutator transaction binding the contract method 0xe1c7392a.271//272// Solidity: function init() returns()273func (_SignedDataVersion01 *SignedDataVersion01Transactor) Init(opts *bind.TransactOpts) (*types.Transaction, error) {274 return _SignedDataVersion01.contract.Transact(opts, "init")275}276// Init is a paid mutator transaction binding the contract method 0xe1c7392a.277//278// Solidity: function init() returns()279func (_SignedDataVersion01 *SignedDataVersion01Session) Init() (*types.Transaction, error) {280 return _SignedDataVersion01.Contract.Init(&_SignedDataVersion01.TransactOpts)281}282// Init is a paid mutator transaction binding the contract method 0xe1c7392a.283//284// Solidity: function init() returns()285func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) Init() (*types.Transaction, error) {286 return _SignedDataVersion01.Contract.Init(&_SignedDataVersion01.TransactOpts)287}288// Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.289//290// Solidity: function kill() returns()291func (_SignedDataVersion01 *SignedDataVersion01Transactor) Kill(opts *bind.TransactOpts) (*types.Transaction, error) {292 return _SignedDataVersion01.contract.Transact(opts, "kill")293}294// Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.295//296// Solidity: function kill() returns()297func (_SignedDataVersion01 *SignedDataVersion01Session) Kill() (*types.Transaction, error) {298 return _SignedDataVersion01.Contract.Kill(&_SignedDataVersion01.TransactOpts)299}300// Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.301//302// Solidity: function kill() returns()303func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) Kill() (*types.Transaction, error) {304 return _SignedDataVersion01.Contract.Kill(&_SignedDataVersion01.TransactOpts)305}306// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.307//308// Solidity: function renounceOwnership() returns()309func (_SignedDataVersion01 *SignedDataVersion01Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {310 return _SignedDataVersion01.contract.Transact(opts, "renounceOwnership")311}312// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.313//314// Solidity: function renounceOwnership() returns()315func (_SignedDataVersion01 *SignedDataVersion01Session) RenounceOwnership() (*types.Transaction, error) {316 return _SignedDataVersion01.Contract.RenounceOwnership(&_SignedDataVersion01.TransactOpts)317}318// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.319//320// Solidity: function renounceOwnership() returns()321func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) RenounceOwnership() (*types.Transaction, error) {322 return _SignedDataVersion01.Contract.RenounceOwnership(&_SignedDataVersion01.TransactOpts)323}324// SetData is a paid mutator transaction binding the contract method 0x8c58ae24.325//326// Solidity: function setData(_app uint256, _name uint256, _data bytes32) returns()327func (_SignedDataVersion01 *SignedDataVersion01Transactor) SetData(opts *bind.TransactOpts, _app *big.Int, _name *big.Int, _data [32]byte) (*types.Transaction, error) {328 return _SignedDataVersion01.contract.Transact(opts, "setData", _app, _name, _data)329}330// SetData is a paid mutator transaction binding the contract method 0x8c58ae24.331//332// Solidity: function setData(_app uint256, _name uint256, _data bytes32) returns()333func (_SignedDataVersion01 *SignedDataVersion01Session) SetData(_app *big.Int, _name *big.Int, _data [32]byte) (*types.Transaction, error) {334 return _SignedDataVersion01.Contract.SetData(&_SignedDataVersion01.TransactOpts, _app, _name, _data)335}336// SetData is a paid mutator transaction binding the contract method 0x8c58ae24.337//338// Solidity: function setData(_app uint256, _name uint256, _data bytes32) returns()339func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) SetData(_app *big.Int, _name *big.Int, _data [32]byte) (*types.Transaction, error) {340 return _SignedDataVersion01.Contract.SetData(&_SignedDataVersion01.TransactOpts, _app, _name, _data)341}342// SetMinPayment is a paid mutator transaction binding the contract method 0x6d427fa3.343//344// Solidity: function setMinPayment(_minPayment uint256) returns()345func (_SignedDataVersion01 *SignedDataVersion01Transactor) SetMinPayment(opts *bind.TransactOpts, _minPayment *big.Int) (*types.Transaction, error) {346 return _SignedDataVersion01.contract.Transact(opts, "setMinPayment", _minPayment)347}348// SetMinPayment is a paid mutator transaction binding the contract method 0x6d427fa3.349//350// Solidity: function setMinPayment(_minPayment uint256) returns()351func (_SignedDataVersion01 *SignedDataVersion01Session) SetMinPayment(_minPayment *big.Int) (*types.Transaction, error) {352 return _SignedDataVersion01.Contract.SetMinPayment(&_SignedDataVersion01.TransactOpts, _minPayment)353}354// SetMinPayment is a paid mutator transaction binding the contract method 0x6d427fa3.355//356// Solidity: function setMinPayment(_minPayment uint256) returns()357func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) SetMinPayment(_minPayment *big.Int) (*types.Transaction, error) {358 return _SignedDataVersion01.Contract.SetMinPayment(&_SignedDataVersion01.TransactOpts, _minPayment)359}360// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.361//362// Solidity: function transferOwnership(newOwner address) returns()363func (_SignedDataVersion01 *SignedDataVersion01Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {364 return _SignedDataVersion01.contract.Transact(opts, "transferOwnership", newOwner)365}366// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.367//368// Solidity: function transferOwnership(newOwner address) returns()369func (_SignedDataVersion01 *SignedDataVersion01Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {370 return _SignedDataVersion01.Contract.TransferOwnership(&_SignedDataVersion01.TransactOpts, newOwner)371}372// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.373//374// Solidity: function transferOwnership(newOwner address) returns()375func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {376 return _SignedDataVersion01.Contract.TransferOwnership(&_SignedDataVersion01.TransactOpts, newOwner)377}378// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.379//380// Solidity: function withdraw(amount uint256) returns(bool)381func (_SignedDataVersion01 *SignedDataVersion01Transactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) {382 return _SignedDataVersion01.contract.Transact(opts, "withdraw", amount)383}384// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.385//386// Solidity: function withdraw(amount uint256) returns(bool)387func (_SignedDataVersion01 *SignedDataVersion01Session) Withdraw(amount *big.Int) (*types.Transaction, error) {388 return _SignedDataVersion01.Contract.Withdraw(&_SignedDataVersion01.TransactOpts, amount)389}390// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.391//392// Solidity: function withdraw(amount uint256) returns(bool)393func (_SignedDataVersion01 *SignedDataVersion01TransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error) {394 return _SignedDataVersion01.Contract.Withdraw(&_SignedDataVersion01.TransactOpts, amount)395}396// SignedDataVersion01DataChangeIterator is returned from FilterDataChange and is used to iterate over the raw logs and unpacked data for DataChange events raised by the SignedDataVersion01 contract.397type SignedDataVersion01DataChangeIterator struct {398 Event *SignedDataVersion01DataChange // Event containing the contract specifics and raw log399 contract *bind.BoundContract // Generic contract to use for unpacking event data400 event string // Event name to use for unpacking event data401 logs chan types.Log // Log channel receiving the found contract events402 sub ethereum.Subscription // Subscription for errors, completion and termination403 done bool // Whether the subscription completed delivering logs404 fail error // Occurred error to stop iteration405}406// Next advances the iterator to the subsequent event, returning whether there407// are any more events found. In case of a retrieval or parsing error, false is408// returned and Error() can be queried for the exact failure.409func (it *SignedDataVersion01DataChangeIterator) Next() bool {410 // If the iterator failed, stop iterating411 if it.fail != nil {412 return false413 }414 // If the iterator completed, deliver directly whatever's available415 if it.done {416 select {417 case log := <-it.logs:418 it.Event = new(SignedDataVersion01DataChange)419 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {420 it.fail = err421 return false422 }423 it.Event.Raw = log424 return true425 default:426 return false427 }428 }429 // Iterator still in progress, wait for either a data or an error event430 select {431 case log := <-it.logs:432 it.Event = new(SignedDataVersion01DataChange)433 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {434 it.fail = err435 return false436 }437 it.Event.Raw = log438 return true439 case err := <-it.sub.Err():440 it.done = true441 it.fail = err442 return it.Next()443 }444}445// Error returns any retrieval or parsing error occurred during filtering.446func (it *SignedDataVersion01DataChangeIterator) Error() error {447 return it.fail448}449// Close terminates the iteration process, releasing any pending underlying450// resources.451func (it *SignedDataVersion01DataChangeIterator) Close() error {452 it.sub.Unsubscribe()453 return nil454}455// SignedDataVersion01DataChange represents a DataChange event raised by the SignedDataVersion01 contract.456type SignedDataVersion01DataChange struct {457 App *big.Int458 Name *big.Int459 Value [32]byte460 By common.Address461 Raw types.Log // Blockchain specific contextual infos462}463// FilterDataChange is a free log retrieval operation binding the contract event 0xc9bbb9d40eb6b265e9e7f7c2c367f761494e11148c80a704ed4a44184fe4313a.464//465// Solidity: e DataChange(App uint256, Name uint256, Value bytes32, By address)466func (_SignedDataVersion01 *SignedDataVersion01Filterer) FilterDataChange(opts *bind.FilterOpts) (*SignedDataVersion01DataChangeIterator, error) {467 logs, sub, err := _SignedDataVersion01.contract.FilterLogs(opts, "DataChange")468 if err != nil {469 return nil, err470 }471 return &SignedDataVersion01DataChangeIterator{contract: _SignedDataVersion01.contract, event: "DataChange", logs: logs, sub: sub}, nil472}473// WatchDataChange is a free log subscription operation binding the contract event 0xc9bbb9d40eb6b265e9e7f7c2c367f761494e11148c80a704ed4a44184fe4313a.474//475// Solidity: e DataChange(App uint256, Name uint256, Value bytes32, By address)476func (_SignedDataVersion01 *SignedDataVersion01Filterer) WatchDataChange(opts *bind.WatchOpts, sink chan<- *SignedDataVersion01DataChange) (event.Subscription, error) {477 logs, sub, err := _SignedDataVersion01.contract.WatchLogs(opts, "DataChange")478 if err != nil {479 return nil, err480 }481 return event.NewSubscription(func(quit <-chan struct{}) error {482 defer sub.Unsubscribe()483 for {484 select {485 case log := <-logs:486 // New log arrived, parse the event and forward to the user487 event := new(SignedDataVersion01DataChange)488 if err := _SignedDataVersion01.contract.UnpackLog(event, "DataChange", log); err != nil {489 return err490 }491 event.Raw = log492 select {493 case sink <- event:494 case err := <-sub.Err():495 return err496 case <-quit:497 return nil498 }499 case err := <-sub.Err():500 return err501 case <-quit:502 return nil503 }504 }505 }), nil506}507// SignedDataVersion01OwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the SignedDataVersion01 contract.508type SignedDataVersion01OwnershipTransferredIterator struct {509 Event *SignedDataVersion01OwnershipTransferred // Event containing the contract specifics and raw log510 contract *bind.BoundContract // Generic contract to use for unpacking event data511 event string // Event name to use for unpacking event data512 logs chan types.Log // Log channel receiving the found contract events513 sub ethereum.Subscription // Subscription for errors, completion and termination514 done bool // Whether the subscription completed delivering logs515 fail error // Occurred error to stop iteration516}517// Next advances the iterator to the subsequent event, returning whether there518// are any more events found. In case of a retrieval or parsing error, false is519// returned and Error() can be queried for the exact failure.520func (it *SignedDataVersion01OwnershipTransferredIterator) Next() bool {521 // If the iterator failed, stop iterating522 if it.fail != nil {523 return false524 }525 // If the iterator completed, deliver directly whatever's available526 if it.done {527 select {528 case log := <-it.logs:529 it.Event = new(SignedDataVersion01OwnershipTransferred)530 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {531 it.fail = err532 return false533 }534 it.Event.Raw = log535 return true536 default:537 return false538 }539 }540 // Iterator still in progress, wait for either a data or an error event541 select {542 case log := <-it.logs:543 it.Event = new(SignedDataVersion01OwnershipTransferred)544 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {545 it.fail = err546 return false547 }548 it.Event.Raw = log549 return true550 case err := <-it.sub.Err():551 it.done = true552 it.fail = err553 return it.Next()554 }555}556// Error returns any retrieval or parsing error occurred during filtering.557func (it *SignedDataVersion01OwnershipTransferredIterator) Error() error {558 return it.fail559}560// Close terminates the iteration process, releasing any pending underlying561// resources.562func (it *SignedDataVersion01OwnershipTransferredIterator) Close() error {563 it.sub.Unsubscribe()564 return nil565}566// SignedDataVersion01OwnershipTransferred represents a OwnershipTransferred event raised by the SignedDataVersion01 contract.567type SignedDataVersion01OwnershipTransferred struct {568 PreviousOwner common.Address569 NewOwner common.Address570 Raw types.Log // Blockchain specific contextual infos571}572// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.573//574// Solidity: e OwnershipTransferred(previousOwner indexed address, newOwner indexed address)575func (_SignedDataVersion01 *SignedDataVersion01Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SignedDataVersion01OwnershipTransferredIterator, error) {576 var previousOwnerRule []interface{}577 for _, previousOwnerItem := range previousOwner {578 previousOwnerRule = append(previousOwnerRule, previousOwnerItem)579 }580 var newOwnerRule []interface{}581 for _, newOwnerItem := range newOwner {582 newOwnerRule = append(newOwnerRule, newOwnerItem)583 }584 logs, sub, err := _SignedDataVersion01.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)585 if err != nil {586 return nil, err587 }588 return &SignedDataVersion01OwnershipTransferredIterator{contract: _SignedDataVersion01.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil589}590// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.591//592// Solidity: e OwnershipTransferred(previousOwner indexed address, newOwner indexed address)593func (_SignedDataVersion01 *SignedDataVersion01Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SignedDataVersion01OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {594 var previousOwnerRule []interface{}595 for _, previousOwnerItem := range previousOwner {596 previousOwnerRule = append(previousOwnerRule, previousOwnerItem)597 }598 var newOwnerRule []interface{}599 for _, newOwnerItem := range newOwner {600 newOwnerRule = append(newOwnerRule, newOwnerItem)601 }602 logs, sub, err := _SignedDataVersion01.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)603 if err != nil {604 return nil, err605 }606 return event.NewSubscription(func(quit <-chan struct{}) error {607 defer sub.Unsubscribe()608 for {609 select {610 case log := <-logs:611 // New log arrived, parse the event and forward to the user612 event := new(SignedDataVersion01OwnershipTransferred)613 if err := _SignedDataVersion01.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {614 return err615 }616 event.Raw = log617 select {618 case sink <- event:619 case err := <-sub.Err():620 return err621 case <-quit:622 return nil623 }624 case err := <-sub.Err():625 return err626 case <-quit:627 return nil628 }629 }630 }), nil631}632// SignedDataVersion01ReceivedFundsIterator is returned from FilterReceivedFunds and is used to iterate over the raw logs and unpacked data for ReceivedFunds events raised by the SignedDataVersion01 contract.633type SignedDataVersion01ReceivedFundsIterator struct {634 Event *SignedDataVersion01ReceivedFunds // Event containing the contract specifics and raw log635 contract *bind.BoundContract // Generic contract to use for unpacking event data636 event string // Event name to use for unpacking event data637 logs chan types.Log // Log channel receiving the found contract events638 sub ethereum.Subscription // Subscription for errors, completion and termination639 done bool // Whether the subscription completed delivering logs640 fail error // Occurred error to stop iteration641}642// Next advances the iterator to the subsequent event, returning whether there643// are any more events found. In case of a retrieval or parsing error, false is644// returned and Error() can be queried for the exact failure.645func (it *SignedDataVersion01ReceivedFundsIterator) Next() bool {646 // If the iterator failed, stop iterating647 if it.fail != nil {648 return false649 }650 // If the iterator completed, deliver directly whatever's available651 if it.done {652 select {653 case log := <-it.logs:654 it.Event = new(SignedDataVersion01ReceivedFunds)655 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {656 it.fail = err657 return false658 }659 it.Event.Raw = log660 return true661 default:662 return false663 }664 }665 // Iterator still in progress, wait for either a data or an error event666 select {667 case log := <-it.logs:668 it.Event = new(SignedDataVersion01ReceivedFunds)669 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {670 it.fail = err671 return false672 }673 it.Event.Raw = log674 return true675 case err := <-it.sub.Err():676 it.done = true677 it.fail = err678 return it.Next()679 }680}681// Error returns any retrieval or parsing error occurred during filtering.682func (it *SignedDataVersion01ReceivedFundsIterator) Error() error {683 return it.fail684}685// Close terminates the iteration process, releasing any pending underlying686// resources.687func (it *SignedDataVersion01ReceivedFundsIterator) Close() error {688 it.sub.Unsubscribe()689 return nil690}691// SignedDataVersion01ReceivedFunds represents a ReceivedFunds event raised by the SignedDataVersion01 contract.692type SignedDataVersion01ReceivedFunds struct {693 Sender common.Address694 Value *big.Int695 Application *big.Int696 PayFor *big.Int697 Raw types.Log // Blockchain specific contextual infos698}699// FilterReceivedFunds is a free log retrieval operation binding the contract event 0x5f74095c3cf9cd2b4407992767113d77fc65cb2423a83ecc71977f3ace6b34f4.700//701// Solidity: e ReceivedFunds(sender address, value uint256, application uint256, payFor uint256)702func (_SignedDataVersion01 *SignedDataVersion01Filterer) FilterReceivedFunds(opts *bind.FilterOpts) (*SignedDataVersion01ReceivedFundsIterator, error) {703 logs, sub, err := _SignedDataVersion01.contract.FilterLogs(opts, "ReceivedFunds")704 if err != nil {705 return nil, err706 }707 return &SignedDataVersion01ReceivedFundsIterator{contract: _SignedDataVersion01.contract, event: "ReceivedFunds", logs: logs, sub: sub}, nil708}709// WatchReceivedFunds is a free log subscription operation binding the contract event 0x5f74095c3cf9cd2b4407992767113d77fc65cb2423a83ecc71977f3ace6b34f4.710//711// Solidity: e ReceivedFunds(sender address, value uint256, application uint256, payFor uint256)712func (_SignedDataVersion01 *SignedDataVersion01Filterer) WatchReceivedFunds(opts *bind.WatchOpts, sink chan<- *SignedDataVersion01ReceivedFunds) (event.Subscription, error) {713 logs, sub, err := _SignedDataVersion01.contract.WatchLogs(opts, "ReceivedFunds")714 if err != nil {715 return nil, err716 }717 return event.NewSubscription(func(quit <-chan struct{}) error {718 defer sub.Unsubscribe()719 for {720 select {721 case log := <-logs:722 // New log arrived, parse the event and forward to the user723 event := new(SignedDataVersion01ReceivedFunds)724 if err := _SignedDataVersion01.contract.UnpackLog(event, "ReceivedFunds", log); err != nil {725 return err726 }727 event.Raw = log728 select {729 case sink <- event:730 case err := <-sub.Err():731 return err732 case <-quit:733 return nil734 }735 case err := <-sub.Err():736 return err737 case <-quit:738 return nil739 }740 }741 }), nil742}743// SignedDataVersion01WithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the SignedDataVersion01 contract.744type SignedDataVersion01WithdrawnIterator struct {745 Event *SignedDataVersion01Withdrawn // Event containing the contract specifics and raw log746 contract *bind.BoundContract // Generic contract to use for unpacking event data747 event string // Event name to use for unpacking event data748 logs chan types.Log // Log channel receiving the found contract events749 sub ethereum.Subscription // Subscription for errors, completion and termination750 done bool // Whether the subscription completed delivering logs751 fail error // Occurred error to stop iteration752}753// Next advances the iterator to the subsequent event, returning whether there754// are any more events found. In case of a retrieval or parsing error, false is755// returned and Error() can be queried for the exact failure.756func (it *SignedDataVersion01WithdrawnIterator) Next() bool {757 // If the iterator failed, stop iterating758 if it.fail != nil {759 return false760 }761 // If the iterator completed, deliver directly whatever's available762 if it.done {763 select {764 case log := <-it.logs:765 it.Event = new(SignedDataVersion01Withdrawn)766 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {767 it.fail = err768 return false769 }770 it.Event.Raw = log771 return true772 default:773 return false774 }775 }776 // Iterator still in progress, wait for either a data or an error event777 select {778 case log := <-it.logs:779 it.Event = new(SignedDataVersion01Withdrawn)780 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {781 it.fail = err782 return false783 }784 it.Event.Raw = log785 return true786 case err := <-it.sub.Err():787 it.done = true788 it.fail = err789 return it.Next()790 }791}792// Error returns any retrieval or parsing error occurred during filtering.793func (it *SignedDataVersion01WithdrawnIterator) Error() error {794 return it.fail795}796// Close terminates the iteration process, releasing any pending underlying797// resources.798func (it *SignedDataVersion01WithdrawnIterator) Close() error {799 it.sub.Unsubscribe()800 return nil801}802// SignedDataVersion01Withdrawn represents a Withdrawn event raised by the SignedDataVersion01 contract.803type SignedDataVersion01Withdrawn struct {804 To common.Address805 Amount *big.Int806 Raw types.Log // Blockchain specific contextual infos807}808// FilterWithdrawn is a free log retrieval operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.809//810// Solidity: e Withdrawn(to address, amount uint256)811func (_SignedDataVersion01 *SignedDataVersion01Filterer) FilterWithdrawn(opts *bind.FilterOpts) (*SignedDataVersion01WithdrawnIterator, error) {812 logs, sub, err := _SignedDataVersion01.contract.FilterLogs(opts, "Withdrawn")813 if err != nil {814 return nil, err815 }816 return &SignedDataVersion01WithdrawnIterator{contract: _SignedDataVersion01.contract, event: "Withdrawn", logs: logs, sub: sub}, nil817}818// WatchWithdrawn is a free log subscription operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.819//820// Solidity: e Withdrawn(to address, amount uint256)821func (_SignedDataVersion01 *SignedDataVersion01Filterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *SignedDataVersion01Withdrawn) (event.Subscription, error) {822 logs, sub, err := _SignedDataVersion01.contract.WatchLogs(opts, "Withdrawn")823 if err != nil {824 return nil, err825 }826 return event.NewSubscription(func(quit <-chan struct{}) error {827 defer sub.Unsubscribe()828 for {829 select {830 case log := <-logs:831 // New log arrived, parse the event and forward to the user832 event := new(SignedDataVersion01Withdrawn)833 if err := _SignedDataVersion01.contract.UnpackLog(event, "Withdrawn", log); err != nil {834 return err835 }836 event.Raw = log837 select {838 case sink <- event:839 case err := <-sub.Err():840 return err841 case <-quit:842 return nil843 }844 case err := <-sub.Err():845 return err846 case <-quit:847 return nil848 }849 }850 }), nil851}...

Full Screen

Full Screen

_App

Using AI Code Generation

copy

Full Screen

1import (2type App struct {3}4func (a *App) _App(ctx *fasthttp.RequestCtx) {5 fmt.Println("code to use _App method of generated class")6}7func main() {8 app := &App{}9 fasthttp.ListenAndServe(":8080", app._App)10}

Full Screen

Full Screen

_App

Using AI Code Generation

copy

Full Screen

1import "github.com/gopherjs/gopherjs/js"2func main() {3 js.Global.Get("document").Call("write", "Hello, world!")4 js.Global.Get("document").Call("write", "Hello, world!")5 js.Global.Get("document").Call("write", "Hello, world!")6}7import "github.com/gopherjs/gopherjs/js"8func main() {9 js.Global.Get("document").Call("write", "Hello, world!")10 js.Global.Get("document").Call("write", "Hello, world!")11 js.Global.Get("document").Call("write", "Hello, world!")12}

Full Screen

Full Screen

_App

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 transport, err := thrift.NewTSocket("localhost:9090")4 if err != nil {5 fmt.Println("Error opening socket:", err)6 }7 defer transport.Close()8 protocolFactory := thrift.NewTBinaryProtocolFactoryDefault()9 client := tutorial.NewCalculatorClientFactory(transport, protocolFactory)10 if err := transport.Open(); err != nil {11 fmt.Println("Error opening socket:", err)12 }13 sum, err := client.Add(1, 1)14 if err != nil {15 fmt.Println("Error calling Add:", err)16 }17 fmt.Println("1+1=", sum)18}19import (20func main() {21 transport, err := thrift.NewTSocket("localhost:9090")22 if err != nil {23 fmt.Println("Error opening socket:", err)24 }25 defer transport.Close()26 protocolFactory := thrift.NewTBinaryProtocolFactoryDefault()27 client := tutorial.NewCalculatorClientFactory(transport, protocolFactory)28 if err := transport.Open(); err != nil {29 fmt.Println("Error opening socket:", err)30 }31 work := tutorial.NewWork()32 sum, err := client.Calculate(1, work)33 if err != nil {34 fmt.Println("Error calling Calculate:", err)35 }36 fmt.Println("1+2=", sum)37}38import (39func main() {40 transport, err := thrift.NewTSocket("localhost:9090")41 if err != nil {42 fmt.Println("Error opening socket:", err)43 }44 defer transport.Close()45 protocolFactory := thrift.NewTBinaryProtocolFactoryDefault()46 client := tutorial.NewCalculatorClientFactory(transport, protocolFactory)47 if err := transport.Open(); err != nil {48 fmt.Println("Error opening socket:", err)49 }

Full Screen

Full Screen

_App

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 fmt.Println("1.go")4 fmt.Println(_App.GetApp())5}6import (7var (8func GetApp() string {9}10func main() {11 if len(os.Args) < 2 {12 fmt.Println("Usage: go run go_gen.go -input=1.go -output=_App")13 }14 if !strings.HasPrefix(inputFile, "-input=") {15 fmt.Println("Usage: go run go_gen.go -input=1.go -output=_App")16 }17 inputFile = strings.TrimPrefix(inputFile, "-input=")18 if !strings.HasPrefix(outputFile, "-output=") {19 fmt.Println("Usage: go run go_gen.go -input=1.go -output=_App")20 }21 outputFile = strings.TrimPrefix(outputFile, "-output=")22 if !strings.HasPrefix(packageName, "-package=") {23 fmt.Println("Usage: go run go_gen.go -input=1.go -output=_App -package=_App")24 }25 packageName = strings.TrimPrefix(packageName, "-package=")26 if !strings.HasPrefix(className, "-class=") {27 fmt.Println("Usage: go run go_gen.go -input=1.go -output=_App -package=_App -class=_App")28 }29 className = strings.TrimPrefix(className, "-class=")30 fset := token.NewFileSet()31 f, err := parser.ParseFile(fset, inputFile

Full Screen

Full Screen

_App

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 fmt.Println(_App.Get())4}5import (6func main() {7 fmt.Println(_App.Get())8}9import (10func main() {11 fmt.Println(_App.Get())12}13import (14func main() {15 fmt.Println(_App.Get())16}17import (18func main() {19 fmt.Println(_App.Get())20}21import (22func main() {23 fmt.Println(_App.Get())24}25import (26func main() {27 fmt.Println(_App.Get())28}29import (30func main() {31 fmt.Println(_App.Get())32}

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