github.com/ethereum/go-ethereum@v1.16.1/accounts/abi/abigen/testdata/v2/identifiercollision.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 // IdentifierCollisionMetaData contains all meta data concerning the IdentifierCollision contract. 28 var IdentifierCollisionMetaData = bind.MetaData{ 29 ABI: "[{\"constant\":true,\"inputs\":[],\"name\":\"MyVar\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"_myVar\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]", 30 ID: "1863c5622f8ac2c09c42f063ca883fe438", 31 Bin: "0x60806040523480156100115760006000fd5b50610017565b60c3806100256000396000f3fe608060405234801560105760006000fd5b506004361060365760003560e01c806301ad4d8714603c5780634ef1f0ad146058576036565b60006000fd5b60426074565b6040518082815260200191505060405180910390f35b605e607d565b6040518082815260200191505060405180910390f35b60006000505481565b60006000600050549050608b565b9056fea265627a7a7231582067c8d84688b01c4754ba40a2a871cede94ea1f28b5981593ab2a45b46ac43af664736f6c634300050c0032", 32 } 33 34 // IdentifierCollision is an auto generated Go binding around an Ethereum contract. 35 type IdentifierCollision struct { 36 abi abi.ABI 37 } 38 39 // NewIdentifierCollision creates a new instance of IdentifierCollision. 40 func NewIdentifierCollision() *IdentifierCollision { 41 parsed, err := IdentifierCollisionMetaData.ParseABI() 42 if err != nil { 43 panic(errors.New("invalid ABI: " + err.Error())) 44 } 45 return &IdentifierCollision{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 *IdentifierCollision) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract { 51 return bind.NewBoundContract(addr, c.abi, backend, backend, backend) 52 } 53 54 // PackMyVar is the Go binding used to pack the parameters required for calling 55 // the contract method with ID 0x4ef1f0ad. This method will panic if any 56 // invalid/nil inputs are passed. 57 // 58 // Solidity: function MyVar() view returns(uint256) 59 func (identifierCollision *IdentifierCollision) PackMyVar() []byte { 60 enc, err := identifierCollision.abi.Pack("MyVar") 61 if err != nil { 62 panic(err) 63 } 64 return enc 65 } 66 67 // TryPackMyVar is the Go binding used to pack the parameters required for calling 68 // the contract method with ID 0x4ef1f0ad. This method will return an error 69 // if any inputs are invalid/nil. 70 // 71 // Solidity: function MyVar() view returns(uint256) 72 func (identifierCollision *IdentifierCollision) TryPackMyVar() ([]byte, error) { 73 return identifierCollision.abi.Pack("MyVar") 74 } 75 76 // UnpackMyVar is the Go binding that unpacks the parameters returned 77 // from invoking the contract method with ID 0x4ef1f0ad. 78 // 79 // Solidity: function MyVar() view returns(uint256) 80 func (identifierCollision *IdentifierCollision) UnpackMyVar(data []byte) (*big.Int, error) { 81 out, err := identifierCollision.abi.Unpack("MyVar", data) 82 if err != nil { 83 return new(big.Int), err 84 } 85 out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int) 86 return out0, nil 87 } 88 89 // PackPubVar is the Go binding used to pack the parameters required for calling 90 // the contract method with ID 0x01ad4d87. This method will panic if any 91 // invalid/nil inputs are passed. 92 // 93 // Solidity: function _myVar() view returns(uint256) 94 func (identifierCollision *IdentifierCollision) PackPubVar() []byte { 95 enc, err := identifierCollision.abi.Pack("_myVar") 96 if err != nil { 97 panic(err) 98 } 99 return enc 100 } 101 102 // TryPackPubVar is the Go binding used to pack the parameters required for calling 103 // the contract method with ID 0x01ad4d87. This method will return an error 104 // if any inputs are invalid/nil. 105 // 106 // Solidity: function _myVar() view returns(uint256) 107 func (identifierCollision *IdentifierCollision) TryPackPubVar() ([]byte, error) { 108 return identifierCollision.abi.Pack("_myVar") 109 } 110 111 // UnpackPubVar is the Go binding that unpacks the parameters returned 112 // from invoking the contract method with ID 0x01ad4d87. 113 // 114 // Solidity: function _myVar() view returns(uint256) 115 func (identifierCollision *IdentifierCollision) UnpackPubVar(data []byte) (*big.Int, error) { 116 out, err := identifierCollision.abi.Unpack("_myVar", data) 117 if err != nil { 118 return new(big.Int), err 119 } 120 out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int) 121 return out0, nil 122 }