github.com/ethereum/go-ethereum@v1.16.1/accounts/abi/abigen/testdata/v2/rangekeyword.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 // RangeKeywordMetaData contains all meta data concerning the RangeKeyword contract. 28 var RangeKeywordMetaData = bind.MetaData{ 29 ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"range\",\"type\":\"uint256\"}],\"name\":\"functionWithKeywordParameter\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"}]", 30 ID: "cec8c872ba06feb1b8f0a00e7b237eb226", 31 Bin: "0x608060405234801561001057600080fd5b5060dc8061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063527a119f14602d575b600080fd5b60436004803603810190603f9190605b565b6045565b005b50565b6000813590506055816092565b92915050565b600060208284031215606e57606d608d565b5b6000607a848285016048565b91505092915050565b6000819050919050565b600080fd5b6099816083565b811460a357600080fd5b5056fea2646970667358221220d4f4525e2615516394055d369fb17df41c359e5e962734f27fd683ea81fd9db164736f6c63430008070033", 32 } 33 34 // RangeKeyword is an auto generated Go binding around an Ethereum contract. 35 type RangeKeyword struct { 36 abi abi.ABI 37 } 38 39 // NewRangeKeyword creates a new instance of RangeKeyword. 40 func NewRangeKeyword() *RangeKeyword { 41 parsed, err := RangeKeywordMetaData.ParseABI() 42 if err != nil { 43 panic(errors.New("invalid ABI: " + err.Error())) 44 } 45 return &RangeKeyword{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 *RangeKeyword) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract { 51 return bind.NewBoundContract(addr, c.abi, backend, backend, backend) 52 } 53 54 // PackFunctionWithKeywordParameter is the Go binding used to pack the parameters required for calling 55 // the contract method with ID 0x527a119f. This method will panic if any 56 // invalid/nil inputs are passed. 57 // 58 // Solidity: function functionWithKeywordParameter(uint256 range) pure returns() 59 func (rangeKeyword *RangeKeyword) PackFunctionWithKeywordParameter(arg0 *big.Int) []byte { 60 enc, err := rangeKeyword.abi.Pack("functionWithKeywordParameter", arg0) 61 if err != nil { 62 panic(err) 63 } 64 return enc 65 } 66 67 // TryPackFunctionWithKeywordParameter is the Go binding used to pack the parameters required for calling 68 // the contract method with ID 0x527a119f. This method will return an error 69 // if any inputs are invalid/nil. 70 // 71 // Solidity: function functionWithKeywordParameter(uint256 range) pure returns() 72 func (rangeKeyword *RangeKeyword) TryPackFunctionWithKeywordParameter(arg0 *big.Int) ([]byte, error) { 73 return rangeKeyword.abi.Pack("functionWithKeywordParameter", arg0) 74 }