github.com/ethereum/go-ethereum@v1.16.1/accounts/abi/abigen/testdata/v2/inputchecker.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 // InputCheckerMetaData contains all meta data concerning the InputChecker contract. 28 var InputCheckerMetaData = bind.MetaData{ 29 ABI: "[{\"type\":\"function\",\"name\":\"noInput\",\"constant\":true,\"inputs\":[],\"outputs\":[]},{\"type\":\"function\",\"name\":\"namedInput\",\"constant\":true,\"inputs\":[{\"name\":\"str\",\"type\":\"string\"}],\"outputs\":[]},{\"type\":\"function\",\"name\":\"anonInput\",\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"string\"}],\"outputs\":[]},{\"type\":\"function\",\"name\":\"namedInputs\",\"constant\":true,\"inputs\":[{\"name\":\"str1\",\"type\":\"string\"},{\"name\":\"str2\",\"type\":\"string\"}],\"outputs\":[]},{\"type\":\"function\",\"name\":\"anonInputs\",\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"string\"}],\"outputs\":[]},{\"type\":\"function\",\"name\":\"mixedInputs\",\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"string\"},{\"name\":\"str\",\"type\":\"string\"}],\"outputs\":[]}]", 30 ID: "e551ce092312e54f54f45ffdf06caa4cdc", 31 } 32 33 // InputChecker is an auto generated Go binding around an Ethereum contract. 34 type InputChecker struct { 35 abi abi.ABI 36 } 37 38 // NewInputChecker creates a new instance of InputChecker. 39 func NewInputChecker() *InputChecker { 40 parsed, err := InputCheckerMetaData.ParseABI() 41 if err != nil { 42 panic(errors.New("invalid ABI: " + err.Error())) 43 } 44 return &InputChecker{abi: *parsed} 45 } 46 47 // Instance creates a wrapper for a deployed contract instance at the given address. 48 // Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc. 49 func (c *InputChecker) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract { 50 return bind.NewBoundContract(addr, c.abi, backend, backend, backend) 51 } 52 53 // PackAnonInput is the Go binding used to pack the parameters required for calling 54 // the contract method with ID 0x3e708e82. This method will panic if any 55 // invalid/nil inputs are passed. 56 // 57 // Solidity: function anonInput(string ) returns() 58 func (inputChecker *InputChecker) PackAnonInput(arg0 string) []byte { 59 enc, err := inputChecker.abi.Pack("anonInput", arg0) 60 if err != nil { 61 panic(err) 62 } 63 return enc 64 } 65 66 // TryPackAnonInput is the Go binding used to pack the parameters required for calling 67 // the contract method with ID 0x3e708e82. This method will return an error 68 // if any inputs are invalid/nil. 69 // 70 // Solidity: function anonInput(string ) returns() 71 func (inputChecker *InputChecker) TryPackAnonInput(arg0 string) ([]byte, error) { 72 return inputChecker.abi.Pack("anonInput", arg0) 73 } 74 75 // PackAnonInputs is the Go binding used to pack the parameters required for calling 76 // the contract method with ID 0x28160527. This method will panic if any 77 // invalid/nil inputs are passed. 78 // 79 // Solidity: function anonInputs(string , string ) returns() 80 func (inputChecker *InputChecker) PackAnonInputs(arg0 string, arg1 string) []byte { 81 enc, err := inputChecker.abi.Pack("anonInputs", arg0, arg1) 82 if err != nil { 83 panic(err) 84 } 85 return enc 86 } 87 88 // TryPackAnonInputs is the Go binding used to pack the parameters required for calling 89 // the contract method with ID 0x28160527. This method will return an error 90 // if any inputs are invalid/nil. 91 // 92 // Solidity: function anonInputs(string , string ) returns() 93 func (inputChecker *InputChecker) TryPackAnonInputs(arg0 string, arg1 string) ([]byte, error) { 94 return inputChecker.abi.Pack("anonInputs", arg0, arg1) 95 } 96 97 // PackMixedInputs is the Go binding used to pack the parameters required for calling 98 // the contract method with ID 0xc689ebdc. This method will panic if any 99 // invalid/nil inputs are passed. 100 // 101 // Solidity: function mixedInputs(string , string str) returns() 102 func (inputChecker *InputChecker) PackMixedInputs(arg0 string, str string) []byte { 103 enc, err := inputChecker.abi.Pack("mixedInputs", arg0, str) 104 if err != nil { 105 panic(err) 106 } 107 return enc 108 } 109 110 // TryPackMixedInputs is the Go binding used to pack the parameters required for calling 111 // the contract method with ID 0xc689ebdc. This method will return an error 112 // if any inputs are invalid/nil. 113 // 114 // Solidity: function mixedInputs(string , string str) returns() 115 func (inputChecker *InputChecker) TryPackMixedInputs(arg0 string, str string) ([]byte, error) { 116 return inputChecker.abi.Pack("mixedInputs", arg0, str) 117 } 118 119 // PackNamedInput is the Go binding used to pack the parameters required for calling 120 // the contract method with ID 0x0d402005. This method will panic if any 121 // invalid/nil inputs are passed. 122 // 123 // Solidity: function namedInput(string str) returns() 124 func (inputChecker *InputChecker) PackNamedInput(str string) []byte { 125 enc, err := inputChecker.abi.Pack("namedInput", str) 126 if err != nil { 127 panic(err) 128 } 129 return enc 130 } 131 132 // TryPackNamedInput is the Go binding used to pack the parameters required for calling 133 // the contract method with ID 0x0d402005. This method will return an error 134 // if any inputs are invalid/nil. 135 // 136 // Solidity: function namedInput(string str) returns() 137 func (inputChecker *InputChecker) TryPackNamedInput(str string) ([]byte, error) { 138 return inputChecker.abi.Pack("namedInput", str) 139 } 140 141 // PackNamedInputs is the Go binding used to pack the parameters required for calling 142 // the contract method with ID 0x63c796ed. This method will panic if any 143 // invalid/nil inputs are passed. 144 // 145 // Solidity: function namedInputs(string str1, string str2) returns() 146 func (inputChecker *InputChecker) PackNamedInputs(str1 string, str2 string) []byte { 147 enc, err := inputChecker.abi.Pack("namedInputs", str1, str2) 148 if err != nil { 149 panic(err) 150 } 151 return enc 152 } 153 154 // TryPackNamedInputs is the Go binding used to pack the parameters required for calling 155 // the contract method with ID 0x63c796ed. This method will return an error 156 // if any inputs are invalid/nil. 157 // 158 // Solidity: function namedInputs(string str1, string str2) returns() 159 func (inputChecker *InputChecker) TryPackNamedInputs(str1 string, str2 string) ([]byte, error) { 160 return inputChecker.abi.Pack("namedInputs", str1, str2) 161 } 162 163 // PackNoInput is the Go binding used to pack the parameters required for calling 164 // the contract method with ID 0x53539029. This method will panic if any 165 // invalid/nil inputs are passed. 166 // 167 // Solidity: function noInput() returns() 168 func (inputChecker *InputChecker) PackNoInput() []byte { 169 enc, err := inputChecker.abi.Pack("noInput") 170 if err != nil { 171 panic(err) 172 } 173 return enc 174 } 175 176 // TryPackNoInput is the Go binding used to pack the parameters required for calling 177 // the contract method with ID 0x53539029. This method will return an error 178 // if any inputs are invalid/nil. 179 // 180 // Solidity: function noInput() returns() 181 func (inputChecker *InputChecker) TryPackNoInput() ([]byte, error) { 182 return inputChecker.abi.Pack("noInput") 183 }