mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
407 lines
24 KiB
Go
407 lines
24 KiB
Go
// Code generated - DO NOT EDIT.
|
|
// This file is a generated binding and any manual changes will be lost.
|
|
|
|
package contracts
|
|
|
|
import (
|
|
"math/big"
|
|
"strings"
|
|
|
|
ethereum "github.com/ledgerwatch/turbo-geth"
|
|
"github.com/ledgerwatch/turbo-geth/accounts/abi"
|
|
"github.com/ledgerwatch/turbo-geth/accounts/abi/bind"
|
|
"github.com/ledgerwatch/turbo-geth/common"
|
|
"github.com/ledgerwatch/turbo-geth/common/math"
|
|
"github.com/ledgerwatch/turbo-geth/core/types"
|
|
"github.com/ledgerwatch/turbo-geth/event"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var (
|
|
_ = big.NewInt
|
|
_ = strings.NewReader
|
|
_ = ethereum.NotFound
|
|
_ = math.U256
|
|
_ = bind.Bind
|
|
_ = common.Big1
|
|
_ = types.BloomLookup
|
|
_ = event.NewSubscription
|
|
)
|
|
|
|
// TestcontractABI is the input ABI used to generate the binding from.
|
|
const TestcontractABI = "[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"removeAndException\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"create\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"update\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"remove\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"createAndException\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"createAndRevert\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"updateAndRevert\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"removeAndRevert\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"updateAndException\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]"
|
|
|
|
// TestcontractBin is the compiled bytecode used for deploying new contracts.
|
|
var TestcontractBin = "0x608060405234801561001057600080fd5b5060646000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061050a806100646000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063c2ce0ef711610066578063c2ce0ef71461016b578063c53e5ae314610199578063cb946a07146101c7578063d592ed1f146101f5578063f64c050d146101ff5761009e565b806327e235e3146100a3578063660cc200146100fb578063780900dc1461010557806382ab890a14610133578063a7f4377914610161575b600080fd5b6100e5600480360360208110156100b957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061022d565b6040518082815260200191505060405180910390f35b610103610245565b005b6101316004803603602081101561011b57600080fd5b8101908080359060200190929190505050610291565b005b61015f6004803603602081101561014957600080fd5b81019080803590602001909291905050506102d7565b005b61016961031d565b005b6101976004803603602081101561018157600080fd5b8101908080359060200190929190505050610361565b005b6101c5600480360360208110156101af57600080fd5b81019080803590602001909291905050506103af565b005b6101f3600480360360208110156101dd57600080fd5b81019080803590602001909291905050506103f7565b005b6101fd61043f565b005b61022b6004803603602081101561021557600080fd5b8101908080359060200190929190505050610486565b005b60006020528060005260406000206000915090505481565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600061028f57fe5b565b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055565b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006103ac57fe5b50565b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600080fd5b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600080fd5b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006104d157fe5b5056fea26469706673582212208b95c4a9bdf3319019dd91f828d39daca4d556771d8be9c9716a91b248c4440c64736f6c63430006060033"
|
|
|
|
// DeployTestcontract deploys a new Ethereum contract, binding an instance of Testcontract to it.
|
|
func DeployTestcontract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Testcontract, error) {
|
|
parsed, err := abi.JSON(strings.NewReader(TestcontractABI))
|
|
if err != nil {
|
|
return common.Address{}, nil, nil, err
|
|
}
|
|
|
|
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(TestcontractBin), backend)
|
|
if err != nil {
|
|
return common.Address{}, nil, nil, err
|
|
}
|
|
return address, tx, &Testcontract{TestcontractCaller: TestcontractCaller{contract: contract}, TestcontractTransactor: TestcontractTransactor{contract: contract}, TestcontractFilterer: TestcontractFilterer{contract: contract}}, nil
|
|
}
|
|
|
|
// Testcontract is an auto generated Go binding around an Ethereum contract.
|
|
type Testcontract struct {
|
|
TestcontractCaller // Read-only binding to the contract
|
|
TestcontractTransactor // Write-only binding to the contract
|
|
TestcontractFilterer // Log filterer for contract events
|
|
}
|
|
|
|
// TestcontractCaller is an auto generated read-only Go binding around an Ethereum contract.
|
|
type TestcontractCaller struct {
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
}
|
|
|
|
// TestcontractTransactor is an auto generated write-only Go binding around an Ethereum contract.
|
|
type TestcontractTransactor struct {
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
}
|
|
|
|
// TestcontractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
|
|
type TestcontractFilterer struct {
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
}
|
|
|
|
// TestcontractSession is an auto generated Go binding around an Ethereum contract,
|
|
// with pre-set call and transact options.
|
|
type TestcontractSession struct {
|
|
Contract *Testcontract // 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
|
|
}
|
|
|
|
// TestcontractCallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
|
// with pre-set call options.
|
|
type TestcontractCallerSession struct {
|
|
Contract *TestcontractCaller // Generic contract caller binding to set the session for
|
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
|
}
|
|
|
|
// TestcontractTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
|
// with pre-set transact options.
|
|
type TestcontractTransactorSession struct {
|
|
Contract *TestcontractTransactor // Generic contract transactor binding to set the session for
|
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
|
}
|
|
|
|
// TestcontractRaw is an auto generated low-level Go binding around an Ethereum contract.
|
|
type TestcontractRaw struct {
|
|
Contract *Testcontract // Generic contract binding to access the raw methods on
|
|
}
|
|
|
|
// TestcontractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
|
type TestcontractCallerRaw struct {
|
|
Contract *TestcontractCaller // Generic read-only contract binding to access the raw methods on
|
|
}
|
|
|
|
// TestcontractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
|
type TestcontractTransactorRaw struct {
|
|
Contract *TestcontractTransactor // Generic write-only contract binding to access the raw methods on
|
|
}
|
|
|
|
// NewTestcontract creates a new instance of Testcontract, bound to a specific deployed contract.
|
|
func NewTestcontract(address common.Address, backend bind.ContractBackend) (*Testcontract, error) {
|
|
contract, err := bindTestcontract(address, backend, backend, backend)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &Testcontract{TestcontractCaller: TestcontractCaller{contract: contract}, TestcontractTransactor: TestcontractTransactor{contract: contract}, TestcontractFilterer: TestcontractFilterer{contract: contract}}, nil
|
|
}
|
|
|
|
// NewTestcontractCaller creates a new read-only instance of Testcontract, bound to a specific deployed contract.
|
|
func NewTestcontractCaller(address common.Address, caller bind.ContractCaller) (*TestcontractCaller, error) {
|
|
contract, err := bindTestcontract(address, caller, nil, nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &TestcontractCaller{contract: contract}, nil
|
|
}
|
|
|
|
// NewTestcontractTransactor creates a new write-only instance of Testcontract, bound to a specific deployed contract.
|
|
func NewTestcontractTransactor(address common.Address, transactor bind.ContractTransactor) (*TestcontractTransactor, error) {
|
|
contract, err := bindTestcontract(address, nil, transactor, nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &TestcontractTransactor{contract: contract}, nil
|
|
}
|
|
|
|
// NewTestcontractFilterer creates a new log filterer instance of Testcontract, bound to a specific deployed contract.
|
|
func NewTestcontractFilterer(address common.Address, filterer bind.ContractFilterer) (*TestcontractFilterer, error) {
|
|
contract, err := bindTestcontract(address, nil, nil, filterer)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &TestcontractFilterer{contract: contract}, nil
|
|
}
|
|
|
|
// bindTestcontract binds a generic wrapper to an already deployed contract.
|
|
func bindTestcontract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
|
|
parsed, err := abi.JSON(strings.NewReader(TestcontractABI))
|
|
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 (_Testcontract *TestcontractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
|
return _Testcontract.Contract.TestcontractCaller.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 (_Testcontract *TestcontractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.TestcontractTransactor.contract.Transfer(opts)
|
|
}
|
|
|
|
// Transact invokes the (paid) contract method with params as input values.
|
|
func (_Testcontract *TestcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.TestcontractTransactor.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 (_Testcontract *TestcontractCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
|
return _Testcontract.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 (_Testcontract *TestcontractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.contract.Transfer(opts)
|
|
}
|
|
|
|
// Transact invokes the (paid) contract method with params as input values.
|
|
func (_Testcontract *TestcontractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.contract.Transact(opts, method, params...)
|
|
}
|
|
|
|
// Balances is a free data retrieval call binding the contract method 0x27e235e3.
|
|
//
|
|
// Solidity: function balances(address ) constant returns(uint256)
|
|
func (_Testcontract *TestcontractCaller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) {
|
|
var (
|
|
ret0 = new(*big.Int)
|
|
)
|
|
out := ret0
|
|
err := _Testcontract.contract.Call(opts, out, "balances", arg0)
|
|
return *ret0, err
|
|
}
|
|
|
|
// Balances is a free data retrieval call binding the contract method 0x27e235e3.
|
|
//
|
|
// Solidity: function balances(address ) constant returns(uint256)
|
|
func (_Testcontract *TestcontractSession) Balances(arg0 common.Address) (*big.Int, error) {
|
|
return _Testcontract.Contract.Balances(&_Testcontract.CallOpts, arg0)
|
|
}
|
|
|
|
// Balances is a free data retrieval call binding the contract method 0x27e235e3.
|
|
//
|
|
// Solidity: function balances(address ) constant returns(uint256)
|
|
func (_Testcontract *TestcontractCallerSession) Balances(arg0 common.Address) (*big.Int, error) {
|
|
return _Testcontract.Contract.Balances(&_Testcontract.CallOpts, arg0)
|
|
}
|
|
|
|
// Create is a paid mutator transaction binding the contract method 0x780900dc.
|
|
//
|
|
// Solidity: function create(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactor) Create(opts *bind.TransactOpts, newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "create", newBalance)
|
|
}
|
|
|
|
// Create is a paid mutator transaction binding the contract method 0x780900dc.
|
|
//
|
|
// Solidity: function create(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractSession) Create(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.Create(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// Create is a paid mutator transaction binding the contract method 0x780900dc.
|
|
//
|
|
// Solidity: function create(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactorSession) Create(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.Create(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// CreateAndException is a paid mutator transaction binding the contract method 0xc2ce0ef7.
|
|
//
|
|
// Solidity: function createAndException(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactor) CreateAndException(opts *bind.TransactOpts, newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "createAndException", newBalance)
|
|
}
|
|
|
|
// CreateAndException is a paid mutator transaction binding the contract method 0xc2ce0ef7.
|
|
//
|
|
// Solidity: function createAndException(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractSession) CreateAndException(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.CreateAndException(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// CreateAndException is a paid mutator transaction binding the contract method 0xc2ce0ef7.
|
|
//
|
|
// Solidity: function createAndException(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactorSession) CreateAndException(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.CreateAndException(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// CreateAndRevert is a paid mutator transaction binding the contract method 0xc53e5ae3.
|
|
//
|
|
// Solidity: function createAndRevert(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactor) CreateAndRevert(opts *bind.TransactOpts, newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "createAndRevert", newBalance)
|
|
}
|
|
|
|
// CreateAndRevert is a paid mutator transaction binding the contract method 0xc53e5ae3.
|
|
//
|
|
// Solidity: function createAndRevert(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractSession) CreateAndRevert(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.CreateAndRevert(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// CreateAndRevert is a paid mutator transaction binding the contract method 0xc53e5ae3.
|
|
//
|
|
// Solidity: function createAndRevert(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactorSession) CreateAndRevert(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.CreateAndRevert(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// Remove is a paid mutator transaction binding the contract method 0xa7f43779.
|
|
//
|
|
// Solidity: function remove() returns()
|
|
func (_Testcontract *TestcontractTransactor) Remove(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "remove")
|
|
}
|
|
|
|
// Remove is a paid mutator transaction binding the contract method 0xa7f43779.
|
|
//
|
|
// Solidity: function remove() returns()
|
|
func (_Testcontract *TestcontractSession) Remove() (*types.Transaction, error) {
|
|
return _Testcontract.Contract.Remove(&_Testcontract.TransactOpts)
|
|
}
|
|
|
|
// Remove is a paid mutator transaction binding the contract method 0xa7f43779.
|
|
//
|
|
// Solidity: function remove() returns()
|
|
func (_Testcontract *TestcontractTransactorSession) Remove() (*types.Transaction, error) {
|
|
return _Testcontract.Contract.Remove(&_Testcontract.TransactOpts)
|
|
}
|
|
|
|
// RemoveAndException is a paid mutator transaction binding the contract method 0x660cc200.
|
|
//
|
|
// Solidity: function removeAndException() returns()
|
|
func (_Testcontract *TestcontractTransactor) RemoveAndException(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "removeAndException")
|
|
}
|
|
|
|
// RemoveAndException is a paid mutator transaction binding the contract method 0x660cc200.
|
|
//
|
|
// Solidity: function removeAndException() returns()
|
|
func (_Testcontract *TestcontractSession) RemoveAndException() (*types.Transaction, error) {
|
|
return _Testcontract.Contract.RemoveAndException(&_Testcontract.TransactOpts)
|
|
}
|
|
|
|
// RemoveAndException is a paid mutator transaction binding the contract method 0x660cc200.
|
|
//
|
|
// Solidity: function removeAndException() returns()
|
|
func (_Testcontract *TestcontractTransactorSession) RemoveAndException() (*types.Transaction, error) {
|
|
return _Testcontract.Contract.RemoveAndException(&_Testcontract.TransactOpts)
|
|
}
|
|
|
|
// RemoveAndRevert is a paid mutator transaction binding the contract method 0xd592ed1f.
|
|
//
|
|
// Solidity: function removeAndRevert() returns()
|
|
func (_Testcontract *TestcontractTransactor) RemoveAndRevert(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "removeAndRevert")
|
|
}
|
|
|
|
// RemoveAndRevert is a paid mutator transaction binding the contract method 0xd592ed1f.
|
|
//
|
|
// Solidity: function removeAndRevert() returns()
|
|
func (_Testcontract *TestcontractSession) RemoveAndRevert() (*types.Transaction, error) {
|
|
return _Testcontract.Contract.RemoveAndRevert(&_Testcontract.TransactOpts)
|
|
}
|
|
|
|
// RemoveAndRevert is a paid mutator transaction binding the contract method 0xd592ed1f.
|
|
//
|
|
// Solidity: function removeAndRevert() returns()
|
|
func (_Testcontract *TestcontractTransactorSession) RemoveAndRevert() (*types.Transaction, error) {
|
|
return _Testcontract.Contract.RemoveAndRevert(&_Testcontract.TransactOpts)
|
|
}
|
|
|
|
// Update is a paid mutator transaction binding the contract method 0x82ab890a.
|
|
//
|
|
// Solidity: function update(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactor) Update(opts *bind.TransactOpts, newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "update", newBalance)
|
|
}
|
|
|
|
// Update is a paid mutator transaction binding the contract method 0x82ab890a.
|
|
//
|
|
// Solidity: function update(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractSession) Update(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.Update(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// Update is a paid mutator transaction binding the contract method 0x82ab890a.
|
|
//
|
|
// Solidity: function update(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactorSession) Update(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.Update(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// UpdateAndException is a paid mutator transaction binding the contract method 0xf64c050d.
|
|
//
|
|
// Solidity: function updateAndException(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactor) UpdateAndException(opts *bind.TransactOpts, newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "updateAndException", newBalance)
|
|
}
|
|
|
|
// UpdateAndException is a paid mutator transaction binding the contract method 0xf64c050d.
|
|
//
|
|
// Solidity: function updateAndException(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractSession) UpdateAndException(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.UpdateAndException(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// UpdateAndException is a paid mutator transaction binding the contract method 0xf64c050d.
|
|
//
|
|
// Solidity: function updateAndException(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactorSession) UpdateAndException(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.UpdateAndException(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// UpdateAndRevert is a paid mutator transaction binding the contract method 0xcb946a07.
|
|
//
|
|
// Solidity: function updateAndRevert(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactor) UpdateAndRevert(opts *bind.TransactOpts, newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.contract.Transact(opts, "updateAndRevert", newBalance)
|
|
}
|
|
|
|
// UpdateAndRevert is a paid mutator transaction binding the contract method 0xcb946a07.
|
|
//
|
|
// Solidity: function updateAndRevert(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractSession) UpdateAndRevert(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.UpdateAndRevert(&_Testcontract.TransactOpts, newBalance)
|
|
}
|
|
|
|
// UpdateAndRevert is a paid mutator transaction binding the contract method 0xcb946a07.
|
|
//
|
|
// Solidity: function updateAndRevert(uint256 newBalance) returns()
|
|
func (_Testcontract *TestcontractTransactorSession) UpdateAndRevert(newBalance *big.Int) (*types.Transaction, error) {
|
|
return _Testcontract.Contract.UpdateAndRevert(&_Testcontract.TransactOpts, newBalance)
|
|
}
|