mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 05:53:46 +00:00
115 lines
4.2 KiB
Text
115 lines
4.2 KiB
Text
// Code generated via abigen V2 - DO NOT EDIT.
|
|
// This file is a generated binding and any manual changes will be lost.
|
|
|
|
package convertedv1bindtests
|
|
|
|
import (
|
|
"errors"
|
|
"math/big"
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/v2"
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var (
|
|
_ = errors.New
|
|
_ = big.NewInt
|
|
_ = common.Big1
|
|
_ = types.BloomLookup
|
|
_ = abi.ConvertType
|
|
)
|
|
|
|
// InputCheckerMetaData contains all meta data concerning the InputChecker contract.
|
|
var InputCheckerMetaData = bind.MetaData{
|
|
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\":[]}]",
|
|
Pattern: "e551ce092312e54f54f45ffdf06caa4cdc",
|
|
}
|
|
|
|
// InputChecker is an auto generated Go binding around an Ethereum contract.
|
|
type InputChecker struct {
|
|
abi abi.ABI
|
|
}
|
|
|
|
// NewInputChecker creates a new instance of InputChecker.
|
|
func NewInputChecker() *InputChecker {
|
|
parsed, err := InputCheckerMetaData.ParseABI()
|
|
if err != nil {
|
|
panic(errors.New("invalid ABI: " + err.Error()))
|
|
}
|
|
return &InputChecker{abi: *parsed}
|
|
}
|
|
|
|
// Instance creates a wrapper for a deployed contract instance at the given address.
|
|
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
|
func (c *InputChecker) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
|
return bind.NewContractInstance(backend, addr, c.abi)
|
|
}
|
|
|
|
// AnonInput is a free data retrieval call binding the contract method 0x3e708e82.
|
|
//
|
|
// Solidity: function anonInput(string ) returns()
|
|
func (inputChecker *InputChecker) PackAnonInput(Arg0 string) []byte {
|
|
enc, err := inputChecker.abi.Pack("anonInput", Arg0)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return enc
|
|
}
|
|
|
|
// AnonInputs is a free data retrieval call binding the contract method 0x28160527.
|
|
//
|
|
// Solidity: function anonInputs(string , string ) returns()
|
|
func (inputChecker *InputChecker) PackAnonInputs(Arg0 string, Arg1 string) []byte {
|
|
enc, err := inputChecker.abi.Pack("anonInputs", Arg0, Arg1)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return enc
|
|
}
|
|
|
|
// MixedInputs is a free data retrieval call binding the contract method 0xc689ebdc.
|
|
//
|
|
// Solidity: function mixedInputs(string , string str) returns()
|
|
func (inputChecker *InputChecker) PackMixedInputs(Arg0 string, Str string) []byte {
|
|
enc, err := inputChecker.abi.Pack("mixedInputs", Arg0, Str)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return enc
|
|
}
|
|
|
|
// NamedInput is a free data retrieval call binding the contract method 0x0d402005.
|
|
//
|
|
// Solidity: function namedInput(string str) returns()
|
|
func (inputChecker *InputChecker) PackNamedInput(Str string) []byte {
|
|
enc, err := inputChecker.abi.Pack("namedInput", Str)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return enc
|
|
}
|
|
|
|
// NamedInputs is a free data retrieval call binding the contract method 0x63c796ed.
|
|
//
|
|
// Solidity: function namedInputs(string str1, string str2) returns()
|
|
func (inputChecker *InputChecker) PackNamedInputs(Str1 string, Str2 string) []byte {
|
|
enc, err := inputChecker.abi.Pack("namedInputs", Str1, Str2)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return enc
|
|
}
|
|
|
|
// NoInput is a free data retrieval call binding the contract method 0x53539029.
|
|
//
|
|
// Solidity: function noInput() returns()
|
|
func (inputChecker *InputChecker) PackNoInput() []byte {
|
|
enc, err := inputChecker.abi.Pack("noInput")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return enc
|
|
}
|