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