github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/bin/ChainCallLevel4/ChainCallLevel4.go (about)

     1  // Code generated - DO NOT EDIT.
     2  // This file is a generated binding and any manual changes will be lost.
     3  
     4  package ChainCallLevel4
     5  
     6  import (
     7  	"errors"
     8  	"math/big"
     9  	"strings"
    10  
    11  	ethereum "github.com/ethereum/go-ethereum"
    12  	"github.com/ethereum/go-ethereum/accounts/abi"
    13  	"github.com/ethereum/go-ethereum/accounts/abi/bind"
    14  	"github.com/ethereum/go-ethereum/common"
    15  	"github.com/ethereum/go-ethereum/core/types"
    16  	"github.com/ethereum/go-ethereum/event"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var (
    21  	_ = errors.New
    22  	_ = big.NewInt
    23  	_ = strings.NewReader
    24  	_ = ethereum.NotFound
    25  	_ = bind.Bind
    26  	_ = common.Big1
    27  	_ = types.BloomLookup
    28  	_ = event.NewSubscription
    29  	_ = abi.ConvertType
    30  )
    31  
    32  // ChainCallLevel4MetaData contains all meta data concerning the ChainCallLevel4 contract.
    33  var ChainCallLevel4MetaData = &bind.MetaData{
    34  	ABI: "[{\"inputs\":[],\"name\":\"exec\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"get\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"t\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
    35  	Bin: "0x608060405234801561001057600080fd5b50610108806100206000396000f3fe60806040526004361060265760003560e01c80636d4ce63c14602b578063c1c0e9c4146064575b600080fd5b348015603657600080fd5b50604080518082018252600481526361686f7960e01b60208201529051605b91906080565b60405180910390f35b607e600080546001600160a01b0319163317905534600155565b005b600060208083528351808285015260005b8181101560ab578581018301518582016040015282016091565b8181111560bc576000604083870101525b50601f01601f191692909201604001939250505056fea26469706673582212207c7fc2b6008207a67e9e5557e853391335de750d1de5dcadc457558a526d437a64736f6c634300080c0033",
    36  }
    37  
    38  // ChainCallLevel4ABI is the input ABI used to generate the binding from.
    39  // Deprecated: Use ChainCallLevel4MetaData.ABI instead.
    40  var ChainCallLevel4ABI = ChainCallLevel4MetaData.ABI
    41  
    42  // ChainCallLevel4Bin is the compiled bytecode used for deploying new contracts.
    43  // Deprecated: Use ChainCallLevel4MetaData.Bin instead.
    44  var ChainCallLevel4Bin = ChainCallLevel4MetaData.Bin
    45  
    46  // DeployChainCallLevel4 deploys a new Ethereum contract, binding an instance of ChainCallLevel4 to it.
    47  func DeployChainCallLevel4(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ChainCallLevel4, error) {
    48  	parsed, err := ChainCallLevel4MetaData.GetAbi()
    49  	if err != nil {
    50  		return common.Address{}, nil, nil, err
    51  	}
    52  	if parsed == nil {
    53  		return common.Address{}, nil, nil, errors.New("GetABI returned nil")
    54  	}
    55  
    56  	address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ChainCallLevel4Bin), backend)
    57  	if err != nil {
    58  		return common.Address{}, nil, nil, err
    59  	}
    60  	return address, tx, &ChainCallLevel4{ChainCallLevel4Caller: ChainCallLevel4Caller{contract: contract}, ChainCallLevel4Transactor: ChainCallLevel4Transactor{contract: contract}, ChainCallLevel4Filterer: ChainCallLevel4Filterer{contract: contract}}, nil
    61  }
    62  
    63  // ChainCallLevel4 is an auto generated Go binding around an Ethereum contract.
    64  type ChainCallLevel4 struct {
    65  	ChainCallLevel4Caller     // Read-only binding to the contract
    66  	ChainCallLevel4Transactor // Write-only binding to the contract
    67  	ChainCallLevel4Filterer   // Log filterer for contract events
    68  }
    69  
    70  // ChainCallLevel4Caller is an auto generated read-only Go binding around an Ethereum contract.
    71  type ChainCallLevel4Caller struct {
    72  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    73  }
    74  
    75  // ChainCallLevel4Transactor is an auto generated write-only Go binding around an Ethereum contract.
    76  type ChainCallLevel4Transactor struct {
    77  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    78  }
    79  
    80  // ChainCallLevel4Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
    81  type ChainCallLevel4Filterer struct {
    82  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    83  }
    84  
    85  // ChainCallLevel4Session is an auto generated Go binding around an Ethereum contract,
    86  // with pre-set call and transact options.
    87  type ChainCallLevel4Session struct {
    88  	Contract     *ChainCallLevel4  // Generic contract binding to set the session for
    89  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    90  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    91  }
    92  
    93  // ChainCallLevel4CallerSession is an auto generated read-only Go binding around an Ethereum contract,
    94  // with pre-set call options.
    95  type ChainCallLevel4CallerSession struct {
    96  	Contract *ChainCallLevel4Caller // Generic contract caller binding to set the session for
    97  	CallOpts bind.CallOpts          // Call options to use throughout this session
    98  }
    99  
   100  // ChainCallLevel4TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
   101  // with pre-set transact options.
   102  type ChainCallLevel4TransactorSession struct {
   103  	Contract     *ChainCallLevel4Transactor // Generic contract transactor binding to set the session for
   104  	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
   105  }
   106  
   107  // ChainCallLevel4Raw is an auto generated low-level Go binding around an Ethereum contract.
   108  type ChainCallLevel4Raw struct {
   109  	Contract *ChainCallLevel4 // Generic contract binding to access the raw methods on
   110  }
   111  
   112  // ChainCallLevel4CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   113  type ChainCallLevel4CallerRaw struct {
   114  	Contract *ChainCallLevel4Caller // Generic read-only contract binding to access the raw methods on
   115  }
   116  
   117  // ChainCallLevel4TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   118  type ChainCallLevel4TransactorRaw struct {
   119  	Contract *ChainCallLevel4Transactor // Generic write-only contract binding to access the raw methods on
   120  }
   121  
   122  // NewChainCallLevel4 creates a new instance of ChainCallLevel4, bound to a specific deployed contract.
   123  func NewChainCallLevel4(address common.Address, backend bind.ContractBackend) (*ChainCallLevel4, error) {
   124  	contract, err := bindChainCallLevel4(address, backend, backend, backend)
   125  	if err != nil {
   126  		return nil, err
   127  	}
   128  	return &ChainCallLevel4{ChainCallLevel4Caller: ChainCallLevel4Caller{contract: contract}, ChainCallLevel4Transactor: ChainCallLevel4Transactor{contract: contract}, ChainCallLevel4Filterer: ChainCallLevel4Filterer{contract: contract}}, nil
   129  }
   130  
   131  // NewChainCallLevel4Caller creates a new read-only instance of ChainCallLevel4, bound to a specific deployed contract.
   132  func NewChainCallLevel4Caller(address common.Address, caller bind.ContractCaller) (*ChainCallLevel4Caller, error) {
   133  	contract, err := bindChainCallLevel4(address, caller, nil, nil)
   134  	if err != nil {
   135  		return nil, err
   136  	}
   137  	return &ChainCallLevel4Caller{contract: contract}, nil
   138  }
   139  
   140  // NewChainCallLevel4Transactor creates a new write-only instance of ChainCallLevel4, bound to a specific deployed contract.
   141  func NewChainCallLevel4Transactor(address common.Address, transactor bind.ContractTransactor) (*ChainCallLevel4Transactor, error) {
   142  	contract, err := bindChainCallLevel4(address, nil, transactor, nil)
   143  	if err != nil {
   144  		return nil, err
   145  	}
   146  	return &ChainCallLevel4Transactor{contract: contract}, nil
   147  }
   148  
   149  // NewChainCallLevel4Filterer creates a new log filterer instance of ChainCallLevel4, bound to a specific deployed contract.
   150  func NewChainCallLevel4Filterer(address common.Address, filterer bind.ContractFilterer) (*ChainCallLevel4Filterer, error) {
   151  	contract, err := bindChainCallLevel4(address, nil, nil, filterer)
   152  	if err != nil {
   153  		return nil, err
   154  	}
   155  	return &ChainCallLevel4Filterer{contract: contract}, nil
   156  }
   157  
   158  // bindChainCallLevel4 binds a generic wrapper to an already deployed contract.
   159  func bindChainCallLevel4(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   160  	parsed, err := ChainCallLevel4MetaData.GetAbi()
   161  	if err != nil {
   162  		return nil, err
   163  	}
   164  	return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
   165  }
   166  
   167  // Call invokes the (constant) contract method with params as input values and
   168  // sets the output to result. The result type might be a single field for simple
   169  // returns, a slice of interfaces for anonymous returns and a struct for named
   170  // returns.
   171  func (_ChainCallLevel4 *ChainCallLevel4Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   172  	return _ChainCallLevel4.Contract.ChainCallLevel4Caller.contract.Call(opts, result, method, params...)
   173  }
   174  
   175  // Transfer initiates a plain transaction to move funds to the contract, calling
   176  // its default method if one is available.
   177  func (_ChainCallLevel4 *ChainCallLevel4Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   178  	return _ChainCallLevel4.Contract.ChainCallLevel4Transactor.contract.Transfer(opts)
   179  }
   180  
   181  // Transact invokes the (paid) contract method with params as input values.
   182  func (_ChainCallLevel4 *ChainCallLevel4Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   183  	return _ChainCallLevel4.Contract.ChainCallLevel4Transactor.contract.Transact(opts, method, params...)
   184  }
   185  
   186  // Call invokes the (constant) contract method with params as input values and
   187  // sets the output to result. The result type might be a single field for simple
   188  // returns, a slice of interfaces for anonymous returns and a struct for named
   189  // returns.
   190  func (_ChainCallLevel4 *ChainCallLevel4CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   191  	return _ChainCallLevel4.Contract.contract.Call(opts, result, method, params...)
   192  }
   193  
   194  // Transfer initiates a plain transaction to move funds to the contract, calling
   195  // its default method if one is available.
   196  func (_ChainCallLevel4 *ChainCallLevel4TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   197  	return _ChainCallLevel4.Contract.contract.Transfer(opts)
   198  }
   199  
   200  // Transact invokes the (paid) contract method with params as input values.
   201  func (_ChainCallLevel4 *ChainCallLevel4TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   202  	return _ChainCallLevel4.Contract.contract.Transact(opts, method, params...)
   203  }
   204  
   205  // Get is a free data retrieval call binding the contract method 0x6d4ce63c.
   206  //
   207  // Solidity: function get() pure returns(string t)
   208  func (_ChainCallLevel4 *ChainCallLevel4Caller) Get(opts *bind.CallOpts) (string, error) {
   209  	var out []interface{}
   210  	err := _ChainCallLevel4.contract.Call(opts, &out, "get")
   211  
   212  	if err != nil {
   213  		return *new(string), err
   214  	}
   215  
   216  	out0 := *abi.ConvertType(out[0], new(string)).(*string)
   217  
   218  	return out0, err
   219  
   220  }
   221  
   222  // Get is a free data retrieval call binding the contract method 0x6d4ce63c.
   223  //
   224  // Solidity: function get() pure returns(string t)
   225  func (_ChainCallLevel4 *ChainCallLevel4Session) Get() (string, error) {
   226  	return _ChainCallLevel4.Contract.Get(&_ChainCallLevel4.CallOpts)
   227  }
   228  
   229  // Get is a free data retrieval call binding the contract method 0x6d4ce63c.
   230  //
   231  // Solidity: function get() pure returns(string t)
   232  func (_ChainCallLevel4 *ChainCallLevel4CallerSession) Get() (string, error) {
   233  	return _ChainCallLevel4.Contract.Get(&_ChainCallLevel4.CallOpts)
   234  }
   235  
   236  // Exec is a paid mutator transaction binding the contract method 0xc1c0e9c4.
   237  //
   238  // Solidity: function exec() payable returns()
   239  func (_ChainCallLevel4 *ChainCallLevel4Transactor) Exec(opts *bind.TransactOpts) (*types.Transaction, error) {
   240  	return _ChainCallLevel4.contract.Transact(opts, "exec")
   241  }
   242  
   243  // Exec is a paid mutator transaction binding the contract method 0xc1c0e9c4.
   244  //
   245  // Solidity: function exec() payable returns()
   246  func (_ChainCallLevel4 *ChainCallLevel4Session) Exec() (*types.Transaction, error) {
   247  	return _ChainCallLevel4.Contract.Exec(&_ChainCallLevel4.TransactOpts)
   248  }
   249  
   250  // Exec is a paid mutator transaction binding the contract method 0xc1c0e9c4.
   251  //
   252  // Solidity: function exec() payable returns()
   253  func (_ChainCallLevel4 *ChainCallLevel4TransactorSession) Exec() (*types.Transaction, error) {
   254  	return _ChainCallLevel4.Contract.Exec(&_ChainCallLevel4.TransactOpts)
   255  }