solc_errors

package
v1.15.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C2MetaData = bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"arg1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg2\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg3\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"arg4\",\"type\":\"bool\"}],\"name\":\"BadThing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Foo\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	ID:  "78ef2840de5b706112ca2dbfa765501a89",
	Bin: "0x6080604052348015600e575f5ffd5b506101148061001c5f395ff3fe6080604052348015600e575f5ffd5b50600436106026575f3560e01c8063bfb4ebcf14602a575b5f5ffd5b60306032565b005b5f600160025f6040517fbb6a82f1000000000000000000000000000000000000000000000000000000008152600401606c949392919060a3565b60405180910390fd5b5f819050919050565b6085816075565b82525050565b5f8115159050919050565b609d81608b565b82525050565b5f60808201905060b45f830187607e565b60bf6020830186607e565b60ca6040830185607e565b60d560608301846096565b9594505050505056fea2646970667358221220e90bf647ffc897060e44b88d54995ed0c03c988fbccaf034375c2ff4e594690764736f6c634300081c0033",
}

C2MetaData contains all meta data concerning the C2 contract.

View Source
var CMetaData = bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"arg1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg2\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg3\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"arg4\",\"type\":\"bool\"}],\"name\":\"BadThing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"arg1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg2\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg3\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"arg4\",\"type\":\"uint256\"}],\"name\":\"BadThing2\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Bar\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Foo\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	ID:  "55ef3c19a0ab1c1845f9e347540c1e51f5",
	Bin: "0x6080604052348015600e575f5ffd5b506101c58061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063b0a378b014610038578063bfb4ebcf14610042575b5f5ffd5b61004061004c565b005b61004a610092565b005b5f6001600260036040517fd233a24f00000000000000000000000000000000000000000000000000000000815260040161008994939291906100ef565b60405180910390fd5b5f600160025f6040517fbb6a82f10000000000000000000000000000000000000000000000000000000081526004016100ce949392919061014c565b60405180910390fd5b5f819050919050565b6100e9816100d7565b82525050565b5f6080820190506101025f8301876100e0565b61010f60208301866100e0565b61011c60408301856100e0565b61012960608301846100e0565b95945050505050565b5f8115159050919050565b61014681610132565b82525050565b5f60808201905061015f5f8301876100e0565b61016c60208301866100e0565b61017960408301856100e0565b610186606083018461013d565b9594505050505056fea26469706673582212206a82b4c28576e4483a81102558271cfefc891cd63b95440dea521185c1ff6a2a64736f6c634300081c0033",
}

CMetaData contains all meta data concerning the C contract.

Functions

func C2BadThingErrorID

func C2BadThingErrorID() common.Hash

ErrorID returns the hash of canonical representation of the error's signature.

Solidity: error BadThing(uint256 arg1, uint256 arg2, uint256 arg3, bool arg4)

func CBadThing2ErrorID

func CBadThing2ErrorID() common.Hash

ErrorID returns the hash of canonical representation of the error's signature.

Solidity: error BadThing2(uint256 arg1, uint256 arg2, uint256 arg3, uint256 arg4)

func CBadThingErrorID

func CBadThingErrorID() common.Hash

ErrorID returns the hash of canonical representation of the error's signature.

Solidity: error BadThing(uint256 arg1, uint256 arg2, uint256 arg3, bool arg4)

Types

type C

type C struct {
	// contains filtered or unexported fields
}

C is an auto generated Go binding around an Ethereum contract.

func NewC

func NewC() *C

NewC creates a new instance of C.

func (*C) Instance

func (c *C) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract

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) PackBar

func (c *C) PackBar() []byte

PackBar is the Go binding used to pack the parameters required for calling the contract method with ID 0xb0a378b0.

Solidity: function Bar() pure returns()

func (*C) PackFoo

func (c *C) PackFoo() []byte

PackFoo is the Go binding used to pack the parameters required for calling the contract method with ID 0xbfb4ebcf.

Solidity: function Foo() pure returns()

func (*C) UnpackBadThing2Error

func (c *C) UnpackBadThing2Error(raw []byte) (*CBadThing2, error)

UnpackBadThing2Error is the Go binding used to decode the provided error data into the corresponding Go error struct.

Solidity: error BadThing2(uint256 arg1, uint256 arg2, uint256 arg3, uint256 arg4)

func (*C) UnpackBadThingError

func (c *C) UnpackBadThingError(raw []byte) (*CBadThing, error)

UnpackBadThingError is the Go binding used to decode the provided error data into the corresponding Go error struct.

Solidity: error BadThing(uint256 arg1, uint256 arg2, uint256 arg3, bool arg4)

func (*C) UnpackError

func (c *C) UnpackError(raw []byte) (any, error)

UnpackError attempts to decode the provided error data using user-defined error definitions.

type C2

type C2 struct {
	// contains filtered or unexported fields
}

C2 is an auto generated Go binding around an Ethereum contract.

func NewC2

func NewC2() *C2

NewC2 creates a new instance of C2.

func (*C2) Instance

func (c *C2) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract

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 (*C2) PackFoo

func (c2 *C2) PackFoo() []byte

PackFoo is the Go binding used to pack the parameters required for calling the contract method with ID 0xbfb4ebcf.

Solidity: function Foo() pure returns()

func (*C2) UnpackBadThingError

func (c2 *C2) UnpackBadThingError(raw []byte) (*C2BadThing, error)

UnpackBadThingError is the Go binding used to decode the provided error data into the corresponding Go error struct.

Solidity: error BadThing(uint256 arg1, uint256 arg2, uint256 arg3, bool arg4)

func (*C2) UnpackError

func (c2 *C2) UnpackError(raw []byte) (any, error)

UnpackError attempts to decode the provided error data using user-defined error definitions.

type C2BadThing

type C2BadThing struct {
	Arg1 *big.Int
	Arg2 *big.Int
	Arg3 *big.Int
	Arg4 bool
}

C2BadThing represents a BadThing error raised by the C2 contract.

type CBadThing

type CBadThing struct {
	Arg1 *big.Int
	Arg2 *big.Int
	Arg3 *big.Int
	Arg4 bool
}

CBadThing represents a BadThing error raised by the C contract.

type CBadThing2

type CBadThing2 struct {
	Arg1 *big.Int
	Arg2 *big.Int
	Arg3 *big.Int
	Arg4 *big.Int
}

CBadThing2 represents a BadThing2 error raised by the C contract.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL