erigon-pulse/cmd/tester/contracts/gen_phoenix.go
2020-05-20 15:26:22 +03:00

276 lines
12 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
)
// PhoenixABI is the input ABI used to generate the binding from.
const PhoenixABI = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"die\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"increment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]"
// PhoenixBin is the compiled bytecode used for deploying new contracts.
var PhoenixBin = "0x608060405234801561001057600080fd5b50610162806100206000396000f3fe6080604052600436106100385760003560e01c806335f4699414610044578063975057e71461005b578063d09de08a146100705761003f565b3661003f57005b600080fd5b34801561005057600080fd5b50610059610085565b005b34801561006757600080fd5b50610059610089565b34801561007c57600080fd5b506100596100a5565b6000ff5b6000805481526002602052604081206001908190558154019055565b60005460015411156100e85760405162461bcd60e51b81526004018080602001828103825260248152602001806101096024913960400191505060405180910390fd5b60018054600090815260026020526040902080548201905580548101905556fe74727920746f20696e6372656d656e74206e6f7420637265617465642073746f72616765a26469706673582212208d15025063bbf5edd68a8d1c73784bc9d80f3a6db7a8b30bf8dace4c6d72a23064736f6c63430006060033"
// DeployPhoenix deploys a new Ethereum contract, binding an instance of Phoenix to it.
func DeployPhoenix(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Phoenix, error) {
parsed, err := abi.JSON(strings.NewReader(PhoenixABI))
if err != nil {
return common.Address{}, nil, nil, err
}
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(PhoenixBin), backend)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &Phoenix{PhoenixCaller: PhoenixCaller{contract: contract}, PhoenixTransactor: PhoenixTransactor{contract: contract}, PhoenixFilterer: PhoenixFilterer{contract: contract}}, nil
}
// Phoenix is an auto generated Go binding around an Ethereum contract.
type Phoenix struct {
PhoenixCaller // Read-only binding to the contract
PhoenixTransactor // Write-only binding to the contract
PhoenixFilterer // Log filterer for contract events
}
// PhoenixCaller is an auto generated read-only Go binding around an Ethereum contract.
type PhoenixCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// PhoenixTransactor is an auto generated write-only Go binding around an Ethereum contract.
type PhoenixTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// PhoenixFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type PhoenixFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// PhoenixSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type PhoenixSession struct {
Contract *Phoenix // 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
}
// PhoenixCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type PhoenixCallerSession struct {
Contract *PhoenixCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// PhoenixTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type PhoenixTransactorSession struct {
Contract *PhoenixTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// PhoenixRaw is an auto generated low-level Go binding around an Ethereum contract.
type PhoenixRaw struct {
Contract *Phoenix // Generic contract binding to access the raw methods on
}
// PhoenixCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type PhoenixCallerRaw struct {
Contract *PhoenixCaller // Generic read-only contract binding to access the raw methods on
}
// PhoenixTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type PhoenixTransactorRaw struct {
Contract *PhoenixTransactor // Generic write-only contract binding to access the raw methods on
}
// NewPhoenix creates a new instance of Phoenix, bound to a specific deployed contract.
func NewPhoenix(address common.Address, backend bind.ContractBackend) (*Phoenix, error) {
contract, err := bindPhoenix(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Phoenix{PhoenixCaller: PhoenixCaller{contract: contract}, PhoenixTransactor: PhoenixTransactor{contract: contract}, PhoenixFilterer: PhoenixFilterer{contract: contract}}, nil
}
// NewPhoenixCaller creates a new read-only instance of Phoenix, bound to a specific deployed contract.
func NewPhoenixCaller(address common.Address, caller bind.ContractCaller) (*PhoenixCaller, error) {
contract, err := bindPhoenix(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &PhoenixCaller{contract: contract}, nil
}
// NewPhoenixTransactor creates a new write-only instance of Phoenix, bound to a specific deployed contract.
func NewPhoenixTransactor(address common.Address, transactor bind.ContractTransactor) (*PhoenixTransactor, error) {
contract, err := bindPhoenix(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &PhoenixTransactor{contract: contract}, nil
}
// NewPhoenixFilterer creates a new log filterer instance of Phoenix, bound to a specific deployed contract.
func NewPhoenixFilterer(address common.Address, filterer bind.ContractFilterer) (*PhoenixFilterer, error) {
contract, err := bindPhoenix(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &PhoenixFilterer{contract: contract}, nil
}
// bindPhoenix binds a generic wrapper to an already deployed contract.
func bindPhoenix(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(PhoenixABI))
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 (_Phoenix *PhoenixRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _Phoenix.Contract.PhoenixCaller.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 (_Phoenix *PhoenixRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Phoenix.Contract.PhoenixTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Phoenix *PhoenixRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Phoenix.Contract.PhoenixTransactor.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 (_Phoenix *PhoenixCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _Phoenix.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 (_Phoenix *PhoenixTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Phoenix.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Phoenix *PhoenixTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Phoenix.Contract.contract.Transact(opts, method, params...)
}
// Die is a paid mutator transaction binding the contract method 0x35f46994.
//
// Solidity: function die() returns()
func (_Phoenix *PhoenixTransactor) Die(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Phoenix.contract.Transact(opts, "die")
}
// Die is a paid mutator transaction binding the contract method 0x35f46994.
//
// Solidity: function die() returns()
func (_Phoenix *PhoenixSession) Die() (*types.Transaction, error) {
return _Phoenix.Contract.Die(&_Phoenix.TransactOpts)
}
// Die is a paid mutator transaction binding the contract method 0x35f46994.
//
// Solidity: function die() returns()
func (_Phoenix *PhoenixTransactorSession) Die() (*types.Transaction, error) {
return _Phoenix.Contract.Die(&_Phoenix.TransactOpts)
}
// Increment is a paid mutator transaction binding the contract method 0xd09de08a.
//
// Solidity: function increment() returns()
func (_Phoenix *PhoenixTransactor) Increment(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Phoenix.contract.Transact(opts, "increment")
}
// Increment is a paid mutator transaction binding the contract method 0xd09de08a.
//
// Solidity: function increment() returns()
func (_Phoenix *PhoenixSession) Increment() (*types.Transaction, error) {
return _Phoenix.Contract.Increment(&_Phoenix.TransactOpts)
}
// Increment is a paid mutator transaction binding the contract method 0xd09de08a.
//
// Solidity: function increment() returns()
func (_Phoenix *PhoenixTransactorSession) Increment() (*types.Transaction, error) {
return _Phoenix.Contract.Increment(&_Phoenix.TransactOpts)
}
// Store is a paid mutator transaction binding the contract method 0x975057e7.
//
// Solidity: function store() returns()
func (_Phoenix *PhoenixTransactor) Store(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Phoenix.contract.Transact(opts, "store")
}
// Store is a paid mutator transaction binding the contract method 0x975057e7.
//
// Solidity: function store() returns()
func (_Phoenix *PhoenixSession) Store() (*types.Transaction, error) {
return _Phoenix.Contract.Store(&_Phoenix.TransactOpts)
}
// Store is a paid mutator transaction binding the contract method 0x975057e7.
//
// Solidity: function store() returns()
func (_Phoenix *PhoenixTransactorSession) Store() (*types.Transaction, error) {
return _Phoenix.Contract.Store(&_Phoenix.TransactOpts)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_Phoenix *PhoenixTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Phoenix.contract.RawTransact(opts, nil) // calldata is disallowed for receive function
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_Phoenix *PhoenixSession) Receive() (*types.Transaction, error) {
return _Phoenix.Contract.Receive(&_Phoenix.TransactOpts)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_Phoenix *PhoenixTransactorSession) Receive() (*types.Transaction, error) {
return _Phoenix.Contract.Receive(&_Phoenix.TransactOpts)
}