github.com/ethereum/go-ethereum@v1.16.1/accounts/abi/abigen/testdata/v2/empty.go.txt (about)

     1  // Code generated via abigen V2 - DO NOT EDIT.
     2  // This file is a generated binding and any manual changes will be lost.
     3  
     4  package bindtests
     5  
     6  import (
     7  	"bytes"
     8  	"errors"
     9  	"math/big"
    10  
    11  	"github.com/ethereum/go-ethereum/accounts/abi"
    12  	"github.com/ethereum/go-ethereum/accounts/abi/bind/v2"
    13  	"github.com/ethereum/go-ethereum/common"
    14  	"github.com/ethereum/go-ethereum/core/types"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var (
    19  	_ = bytes.Equal
    20  	_ = errors.New
    21  	_ = big.NewInt
    22  	_ = common.Big1
    23  	_ = types.BloomLookup
    24  	_ = abi.ConvertType
    25  )
    26  
    27  // EmptyMetaData contains all meta data concerning the Empty contract.
    28  var EmptyMetaData = bind.MetaData{
    29  	ABI: "[]",
    30  	ID:  "c4ce3210982aa6fc94dabe46dc1dbf454d",
    31  	Bin: "0x606060405260068060106000396000f3606060405200",
    32  }
    33  
    34  // Empty is an auto generated Go binding around an Ethereum contract.
    35  type Empty struct {
    36  	abi abi.ABI
    37  }
    38  
    39  // NewEmpty creates a new instance of Empty.
    40  func NewEmpty() *Empty {
    41  	parsed, err := EmptyMetaData.ParseABI()
    42  	if err != nil {
    43  		panic(errors.New("invalid ABI: " + err.Error()))
    44  	}
    45  	return &Empty{abi: *parsed}
    46  }
    47  
    48  // Instance creates a wrapper for a deployed contract instance at the given address.
    49  // Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
    50  func (c *Empty) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
    51  	return bind.NewBoundContract(addr, c.abi, backend, backend, backend)
    52  }