github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/bin/Revert2/Revert2.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 Revert2
     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  // Revert2MetaData contains all meta data concerning the Revert2 contract.
    33  var Revert2MetaData = &bind.MetaData{
    34  	ABI: "[{\"inputs\":[],\"name\":\"generateError\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
    35  	Bin: "0x6080604052348015600f57600080fd5b5060ae8061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80634abbb40a14602d575b600080fd5b60336035565b005b60405162461bcd60e51b8152602060048201526014602482015273546f646179206973206e6f74206a7565726e657360601b604482015260640160405180910390fdfea2646970667358221220b10f6c7dcbccc8fe7166fa5bad433bf84bfb174e480a2594f33ebeb4d996073e64736f6c634300080c0033",
    36  }
    37  
    38  // Revert2ABI is the input ABI used to generate the binding from.
    39  // Deprecated: Use Revert2MetaData.ABI instead.
    40  var Revert2ABI = Revert2MetaData.ABI
    41  
    42  // Revert2Bin is the compiled bytecode used for deploying new contracts.
    43  // Deprecated: Use Revert2MetaData.Bin instead.
    44  var Revert2Bin = Revert2MetaData.Bin
    45  
    46  // DeployRevert2 deploys a new Ethereum contract, binding an instance of Revert2 to it.
    47  func DeployRevert2(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Revert2, error) {
    48  	parsed, err := Revert2MetaData.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(Revert2Bin), backend)
    57  	if err != nil {
    58  		return common.Address{}, nil, nil, err
    59  	}
    60  	return address, tx, &Revert2{Revert2Caller: Revert2Caller{contract: contract}, Revert2Transactor: Revert2Transactor{contract: contract}, Revert2Filterer: Revert2Filterer{contract: contract}}, nil
    61  }
    62  
    63  // Revert2 is an auto generated Go binding around an Ethereum contract.
    64  type Revert2 struct {
    65  	Revert2Caller     // Read-only binding to the contract
    66  	Revert2Transactor // Write-only binding to the contract
    67  	Revert2Filterer   // Log filterer for contract events
    68  }
    69  
    70  // Revert2Caller is an auto generated read-only Go binding around an Ethereum contract.
    71  type Revert2Caller struct {
    72  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    73  }
    74  
    75  // Revert2Transactor is an auto generated write-only Go binding around an Ethereum contract.
    76  type Revert2Transactor struct {
    77  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    78  }
    79  
    80  // Revert2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
    81  type Revert2Filterer struct {
    82  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    83  }
    84  
    85  // Revert2Session is an auto generated Go binding around an Ethereum contract,
    86  // with pre-set call and transact options.
    87  type Revert2Session struct {
    88  	Contract     *Revert2          // 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  // Revert2CallerSession is an auto generated read-only Go binding around an Ethereum contract,
    94  // with pre-set call options.
    95  type Revert2CallerSession struct {
    96  	Contract *Revert2Caller // Generic contract caller binding to set the session for
    97  	CallOpts bind.CallOpts  // Call options to use throughout this session
    98  }
    99  
   100  // Revert2TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
   101  // with pre-set transact options.
   102  type Revert2TransactorSession struct {
   103  	Contract     *Revert2Transactor // Generic contract transactor binding to set the session for
   104  	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
   105  }
   106  
   107  // Revert2Raw is an auto generated low-level Go binding around an Ethereum contract.
   108  type Revert2Raw struct {
   109  	Contract *Revert2 // Generic contract binding to access the raw methods on
   110  }
   111  
   112  // Revert2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   113  type Revert2CallerRaw struct {
   114  	Contract *Revert2Caller // Generic read-only contract binding to access the raw methods on
   115  }
   116  
   117  // Revert2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   118  type Revert2TransactorRaw struct {
   119  	Contract *Revert2Transactor // Generic write-only contract binding to access the raw methods on
   120  }
   121  
   122  // NewRevert2 creates a new instance of Revert2, bound to a specific deployed contract.
   123  func NewRevert2(address common.Address, backend bind.ContractBackend) (*Revert2, error) {
   124  	contract, err := bindRevert2(address, backend, backend, backend)
   125  	if err != nil {
   126  		return nil, err
   127  	}
   128  	return &Revert2{Revert2Caller: Revert2Caller{contract: contract}, Revert2Transactor: Revert2Transactor{contract: contract}, Revert2Filterer: Revert2Filterer{contract: contract}}, nil
   129  }
   130  
   131  // NewRevert2Caller creates a new read-only instance of Revert2, bound to a specific deployed contract.
   132  func NewRevert2Caller(address common.Address, caller bind.ContractCaller) (*Revert2Caller, error) {
   133  	contract, err := bindRevert2(address, caller, nil, nil)
   134  	if err != nil {
   135  		return nil, err
   136  	}
   137  	return &Revert2Caller{contract: contract}, nil
   138  }
   139  
   140  // NewRevert2Transactor creates a new write-only instance of Revert2, bound to a specific deployed contract.
   141  func NewRevert2Transactor(address common.Address, transactor bind.ContractTransactor) (*Revert2Transactor, error) {
   142  	contract, err := bindRevert2(address, nil, transactor, nil)
   143  	if err != nil {
   144  		return nil, err
   145  	}
   146  	return &Revert2Transactor{contract: contract}, nil
   147  }
   148  
   149  // NewRevert2Filterer creates a new log filterer instance of Revert2, bound to a specific deployed contract.
   150  func NewRevert2Filterer(address common.Address, filterer bind.ContractFilterer) (*Revert2Filterer, error) {
   151  	contract, err := bindRevert2(address, nil, nil, filterer)
   152  	if err != nil {
   153  		return nil, err
   154  	}
   155  	return &Revert2Filterer{contract: contract}, nil
   156  }
   157  
   158  // bindRevert2 binds a generic wrapper to an already deployed contract.
   159  func bindRevert2(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   160  	parsed, err := Revert2MetaData.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 (_Revert2 *Revert2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   172  	return _Revert2.Contract.Revert2Caller.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 (_Revert2 *Revert2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   178  	return _Revert2.Contract.Revert2Transactor.contract.Transfer(opts)
   179  }
   180  
   181  // Transact invokes the (paid) contract method with params as input values.
   182  func (_Revert2 *Revert2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   183  	return _Revert2.Contract.Revert2Transactor.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 (_Revert2 *Revert2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   191  	return _Revert2.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 (_Revert2 *Revert2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   197  	return _Revert2.Contract.contract.Transfer(opts)
   198  }
   199  
   200  // Transact invokes the (paid) contract method with params as input values.
   201  func (_Revert2 *Revert2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   202  	return _Revert2.Contract.contract.Transact(opts, method, params...)
   203  }
   204  
   205  // GenerateError is a paid mutator transaction binding the contract method 0x4abbb40a.
   206  //
   207  // Solidity: function generateError() returns()
   208  func (_Revert2 *Revert2Transactor) GenerateError(opts *bind.TransactOpts) (*types.Transaction, error) {
   209  	return _Revert2.contract.Transact(opts, "generateError")
   210  }
   211  
   212  // GenerateError is a paid mutator transaction binding the contract method 0x4abbb40a.
   213  //
   214  // Solidity: function generateError() returns()
   215  func (_Revert2 *Revert2Session) GenerateError() (*types.Transaction, error) {
   216  	return _Revert2.Contract.GenerateError(&_Revert2.TransactOpts)
   217  }
   218  
   219  // GenerateError is a paid mutator transaction binding the contract method 0x4abbb40a.
   220  //
   221  // Solidity: function generateError() returns()
   222  func (_Revert2 *Revert2TransactorSession) GenerateError() (*types.Transaction, error) {
   223  	return _Revert2.Contract.GenerateError(&_Revert2.TransactOpts)
   224  }