github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/bin/ChainCallLevel3/ChainCallLevel3.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 ChainCallLevel3
     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  // ChainCallLevel3MetaData contains all meta data concerning the ChainCallLevel3 contract.
    33  var ChainCallLevel3MetaData = &bind.MetaData{
    34  	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"level4Addr\",\"type\":\"address\"}],\"name\":\"exec\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"level4Addr\",\"type\":\"address\"}],\"name\":\"get\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"t\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
    35  	Bin: "0x608060405234801561001057600080fd5b506104f6806100206000396000f3fe6080604052600436106100295760003560e01c80636bb6126e1461002e578063c2bc2efc14610043575b600080fd5b61004161003c36600461034e565b610079565b005b34801561004f57600080fd5b5061006361005e36600461034e565b610247565b60405161007091906103ae565b60405180910390f35b60408051600481526024810182526020810180516001600160e01b03166330703a7160e21b17905290516000916001600160a01b038416916100bb91906103e1565b6000604051808303816000865af19150503d80600081146100f8576040519150601f19603f3d011682016040523d82523d6000602084013e6100fd565b606091505b5050809150508061015f5760405162461bcd60e51b815260206004820152602160248201527f6661696c656420746f20706572666f726d2063616c6c20746f206c6576656c206044820152600d60fa1b60648201526084015b60405180910390fd5b60408051600481526024810182526020810180516001600160e01b03166330703a7160e21b17905290516001600160a01b0384169161019d916103e1565b600060405180830381855af49150503d80600081146101d8576040519150601f19603f3d011682016040523d82523d6000602084013e6101dd565b606091505b505080915050806102435760405162461bcd60e51b815260206004820152602a60248201527f6661696c656420746f20706572666f726d2064656c65676174652063616c6c206044820152691d1bc81b195d995b080d60b21b6064820152608401610156565b5050565b60408051600481526024810182526020810180516001600160e01b0316631b53398f60e21b179052905160609160009183916001600160a01b0386169161028e91906103e1565b600060405180830381855afa9150503d80600081146102c9576040519150601f19603f3d011682016040523d82523d6000602084013e6102ce565b606091505b509092509050816103325760405162461bcd60e51b815260206004820152602860248201527f6661696c656420746f20706572666f726d207374617469632063616c6c20746f604482015267081b195d995b080d60c21b6064820152608401610156565b808060200190518101906103469190610413565b949350505050565b60006020828403121561036057600080fd5b81356001600160a01b038116811461037757600080fd5b9392505050565b60005b83811015610399578181015183820152602001610381565b838111156103a8576000848401525b50505050565b60208152600082518060208401526103cd81604085016020870161037e565b601f01601f19169190910160400192915050565b600082516103f381846020870161037e565b9190910192915050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561042557600080fd5b815167ffffffffffffffff8082111561043d57600080fd5b818401915084601f83011261045157600080fd5b815181811115610463576104636103fd565b604051601f8201601f19908116603f0116810190838211818310171561048b5761048b6103fd565b816040528281528760208487010111156104a457600080fd5b6104b583602083016020880161037e565b97965050505050505056fea26469706673582212209bedf8d59efd5de6abd239994136138fbe5555047e0cce461bf5853bf28167db64736f6c634300080c0033",
    36  }
    37  
    38  // ChainCallLevel3ABI is the input ABI used to generate the binding from.
    39  // Deprecated: Use ChainCallLevel3MetaData.ABI instead.
    40  var ChainCallLevel3ABI = ChainCallLevel3MetaData.ABI
    41  
    42  // ChainCallLevel3Bin is the compiled bytecode used for deploying new contracts.
    43  // Deprecated: Use ChainCallLevel3MetaData.Bin instead.
    44  var ChainCallLevel3Bin = ChainCallLevel3MetaData.Bin
    45  
    46  // DeployChainCallLevel3 deploys a new Ethereum contract, binding an instance of ChainCallLevel3 to it.
    47  func DeployChainCallLevel3(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ChainCallLevel3, error) {
    48  	parsed, err := ChainCallLevel3MetaData.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(ChainCallLevel3Bin), backend)
    57  	if err != nil {
    58  		return common.Address{}, nil, nil, err
    59  	}
    60  	return address, tx, &ChainCallLevel3{ChainCallLevel3Caller: ChainCallLevel3Caller{contract: contract}, ChainCallLevel3Transactor: ChainCallLevel3Transactor{contract: contract}, ChainCallLevel3Filterer: ChainCallLevel3Filterer{contract: contract}}, nil
    61  }
    62  
    63  // ChainCallLevel3 is an auto generated Go binding around an Ethereum contract.
    64  type ChainCallLevel3 struct {
    65  	ChainCallLevel3Caller     // Read-only binding to the contract
    66  	ChainCallLevel3Transactor // Write-only binding to the contract
    67  	ChainCallLevel3Filterer   // Log filterer for contract events
    68  }
    69  
    70  // ChainCallLevel3Caller is an auto generated read-only Go binding around an Ethereum contract.
    71  type ChainCallLevel3Caller struct {
    72  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    73  }
    74  
    75  // ChainCallLevel3Transactor is an auto generated write-only Go binding around an Ethereum contract.
    76  type ChainCallLevel3Transactor struct {
    77  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    78  }
    79  
    80  // ChainCallLevel3Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
    81  type ChainCallLevel3Filterer struct {
    82  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    83  }
    84  
    85  // ChainCallLevel3Session is an auto generated Go binding around an Ethereum contract,
    86  // with pre-set call and transact options.
    87  type ChainCallLevel3Session struct {
    88  	Contract     *ChainCallLevel3  // 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  // ChainCallLevel3CallerSession is an auto generated read-only Go binding around an Ethereum contract,
    94  // with pre-set call options.
    95  type ChainCallLevel3CallerSession struct {
    96  	Contract *ChainCallLevel3Caller // Generic contract caller binding to set the session for
    97  	CallOpts bind.CallOpts          // Call options to use throughout this session
    98  }
    99  
   100  // ChainCallLevel3TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
   101  // with pre-set transact options.
   102  type ChainCallLevel3TransactorSession struct {
   103  	Contract     *ChainCallLevel3Transactor // Generic contract transactor binding to set the session for
   104  	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
   105  }
   106  
   107  // ChainCallLevel3Raw is an auto generated low-level Go binding around an Ethereum contract.
   108  type ChainCallLevel3Raw struct {
   109  	Contract *ChainCallLevel3 // Generic contract binding to access the raw methods on
   110  }
   111  
   112  // ChainCallLevel3CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   113  type ChainCallLevel3CallerRaw struct {
   114  	Contract *ChainCallLevel3Caller // Generic read-only contract binding to access the raw methods on
   115  }
   116  
   117  // ChainCallLevel3TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   118  type ChainCallLevel3TransactorRaw struct {
   119  	Contract *ChainCallLevel3Transactor // Generic write-only contract binding to access the raw methods on
   120  }
   121  
   122  // NewChainCallLevel3 creates a new instance of ChainCallLevel3, bound to a specific deployed contract.
   123  func NewChainCallLevel3(address common.Address, backend bind.ContractBackend) (*ChainCallLevel3, error) {
   124  	contract, err := bindChainCallLevel3(address, backend, backend, backend)
   125  	if err != nil {
   126  		return nil, err
   127  	}
   128  	return &ChainCallLevel3{ChainCallLevel3Caller: ChainCallLevel3Caller{contract: contract}, ChainCallLevel3Transactor: ChainCallLevel3Transactor{contract: contract}, ChainCallLevel3Filterer: ChainCallLevel3Filterer{contract: contract}}, nil
   129  }
   130  
   131  // NewChainCallLevel3Caller creates a new read-only instance of ChainCallLevel3, bound to a specific deployed contract.
   132  func NewChainCallLevel3Caller(address common.Address, caller bind.ContractCaller) (*ChainCallLevel3Caller, error) {
   133  	contract, err := bindChainCallLevel3(address, caller, nil, nil)
   134  	if err != nil {
   135  		return nil, err
   136  	}
   137  	return &ChainCallLevel3Caller{contract: contract}, nil
   138  }
   139  
   140  // NewChainCallLevel3Transactor creates a new write-only instance of ChainCallLevel3, bound to a specific deployed contract.
   141  func NewChainCallLevel3Transactor(address common.Address, transactor bind.ContractTransactor) (*ChainCallLevel3Transactor, error) {
   142  	contract, err := bindChainCallLevel3(address, nil, transactor, nil)
   143  	if err != nil {
   144  		return nil, err
   145  	}
   146  	return &ChainCallLevel3Transactor{contract: contract}, nil
   147  }
   148  
   149  // NewChainCallLevel3Filterer creates a new log filterer instance of ChainCallLevel3, bound to a specific deployed contract.
   150  func NewChainCallLevel3Filterer(address common.Address, filterer bind.ContractFilterer) (*ChainCallLevel3Filterer, error) {
   151  	contract, err := bindChainCallLevel3(address, nil, nil, filterer)
   152  	if err != nil {
   153  		return nil, err
   154  	}
   155  	return &ChainCallLevel3Filterer{contract: contract}, nil
   156  }
   157  
   158  // bindChainCallLevel3 binds a generic wrapper to an already deployed contract.
   159  func bindChainCallLevel3(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   160  	parsed, err := ChainCallLevel3MetaData.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 (_ChainCallLevel3 *ChainCallLevel3Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   172  	return _ChainCallLevel3.Contract.ChainCallLevel3Caller.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 (_ChainCallLevel3 *ChainCallLevel3Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   178  	return _ChainCallLevel3.Contract.ChainCallLevel3Transactor.contract.Transfer(opts)
   179  }
   180  
   181  // Transact invokes the (paid) contract method with params as input values.
   182  func (_ChainCallLevel3 *ChainCallLevel3Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   183  	return _ChainCallLevel3.Contract.ChainCallLevel3Transactor.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 (_ChainCallLevel3 *ChainCallLevel3CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   191  	return _ChainCallLevel3.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 (_ChainCallLevel3 *ChainCallLevel3TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   197  	return _ChainCallLevel3.Contract.contract.Transfer(opts)
   198  }
   199  
   200  // Transact invokes the (paid) contract method with params as input values.
   201  func (_ChainCallLevel3 *ChainCallLevel3TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   202  	return _ChainCallLevel3.Contract.contract.Transact(opts, method, params...)
   203  }
   204  
   205  // Get is a free data retrieval call binding the contract method 0xc2bc2efc.
   206  //
   207  // Solidity: function get(address level4Addr) view returns(string t)
   208  func (_ChainCallLevel3 *ChainCallLevel3Caller) Get(opts *bind.CallOpts, level4Addr common.Address) (string, error) {
   209  	var out []interface{}
   210  	err := _ChainCallLevel3.contract.Call(opts, &out, "get", level4Addr)
   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 0xc2bc2efc.
   223  //
   224  // Solidity: function get(address level4Addr) view returns(string t)
   225  func (_ChainCallLevel3 *ChainCallLevel3Session) Get(level4Addr common.Address) (string, error) {
   226  	return _ChainCallLevel3.Contract.Get(&_ChainCallLevel3.CallOpts, level4Addr)
   227  }
   228  
   229  // Get is a free data retrieval call binding the contract method 0xc2bc2efc.
   230  //
   231  // Solidity: function get(address level4Addr) view returns(string t)
   232  func (_ChainCallLevel3 *ChainCallLevel3CallerSession) Get(level4Addr common.Address) (string, error) {
   233  	return _ChainCallLevel3.Contract.Get(&_ChainCallLevel3.CallOpts, level4Addr)
   234  }
   235  
   236  // Exec is a paid mutator transaction binding the contract method 0x6bb6126e.
   237  //
   238  // Solidity: function exec(address level4Addr) payable returns()
   239  func (_ChainCallLevel3 *ChainCallLevel3Transactor) Exec(opts *bind.TransactOpts, level4Addr common.Address) (*types.Transaction, error) {
   240  	return _ChainCallLevel3.contract.Transact(opts, "exec", level4Addr)
   241  }
   242  
   243  // Exec is a paid mutator transaction binding the contract method 0x6bb6126e.
   244  //
   245  // Solidity: function exec(address level4Addr) payable returns()
   246  func (_ChainCallLevel3 *ChainCallLevel3Session) Exec(level4Addr common.Address) (*types.Transaction, error) {
   247  	return _ChainCallLevel3.Contract.Exec(&_ChainCallLevel3.TransactOpts, level4Addr)
   248  }
   249  
   250  // Exec is a paid mutator transaction binding the contract method 0x6bb6126e.
   251  //
   252  // Solidity: function exec(address level4Addr) payable returns()
   253  func (_ChainCallLevel3 *ChainCallLevel3TransactorSession) Exec(level4Addr common.Address) (*types.Transaction, error) {
   254  	return _ChainCallLevel3.Contract.Exec(&_ChainCallLevel3.TransactOpts, level4Addr)
   255  }