regenerate bindings
This commit is contained in:
parent
fce1885317
commit
2c9c9cf4bd
|
@ -184,13 +184,9 @@ type DBInsert struct {
|
||||||
Raw *types.Log // Blockchain specific contextual infos
|
Raw *types.Log // Blockchain specific contextual infos
|
||||||
}
|
}
|
||||||
|
|
||||||
func DBInsertEventID() common.Hash {
|
const DBInsertEventName = "Insert"
|
||||||
return common.HexToHash("0x8b39ff47dca36ab5b8b80845238af53aa579625ac7fb173dc09376adada41769")
|
|
||||||
}
|
|
||||||
|
|
||||||
func (_DB *DB) UnpackInsertEvent(log *types.Log) (*DBInsert, error) {
|
func (_DB *DB) UnpackInsertEvent(log *types.Log) (*DBInsert, error) {
|
||||||
// TODO: okay to index by the original name here? I think so because we assume that the abi json is well-formed.
|
|
||||||
// and we only need normalized name when dealing with generated go symbols.
|
|
||||||
event := "Insert"
|
event := "Insert"
|
||||||
if log.Topics[0] != _DB.abi.Events[event].ID {
|
if log.Topics[0] != _DB.abi.Events[event].ID {
|
||||||
return nil, errors.New("event signature mismatch")
|
return nil, errors.New("event signature mismatch")
|
||||||
|
@ -221,13 +217,9 @@ type DBKeyedInsert struct {
|
||||||
Raw *types.Log // Blockchain specific contextual infos
|
Raw *types.Log // Blockchain specific contextual infos
|
||||||
}
|
}
|
||||||
|
|
||||||
func DBKeyedInsertEventID() common.Hash {
|
const DBKeyedInsertEventName = "KeyedInsert"
|
||||||
return common.HexToHash("0x40bed843c6c5f72002f9b469cf4c1ee9f7fb1eb48f091c1267970f98522ac02d")
|
|
||||||
}
|
|
||||||
|
|
||||||
func (_DB *DB) UnpackKeyedInsertEvent(log *types.Log) (*DBKeyedInsert, error) {
|
func (_DB *DB) UnpackKeyedInsertEvent(log *types.Log) (*DBKeyedInsert, error) {
|
||||||
// TODO: okay to index by the original name here? I think so because we assume that the abi json is well-formed.
|
|
||||||
// and we only need normalized name when dealing with generated go symbols.
|
|
||||||
event := "KeyedInsert"
|
event := "KeyedInsert"
|
||||||
if log.Topics[0] != _DB.abi.Events[event].ID {
|
if log.Topics[0] != _DB.abi.Events[event].ID {
|
||||||
return nil, errors.New("event signature mismatch")
|
return nil, errors.New("event signature mismatch")
|
||||||
|
|
|
@ -30,7 +30,7 @@ var CLibraryDeps = []*bind.MetaData{}
|
||||||
var CMetaData = &bind.MetaData{
|
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\"}]",
|
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\"}]",
|
||||||
Pattern: "55ef3c19a0ab1c1845f9e347540c1e51f5",
|
Pattern: "55ef3c19a0ab1c1845f9e347540c1e51f5",
|
||||||
Bin: "0x6080604052348015600e575f80fd5b506101c58061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063b0a378b014610038578063bfb4ebcf14610042575b5f80fd5b61004061004c565b005b61004a610092565b005b5f6001600260036040517fd233a24f00000000000000000000000000000000000000000000000000000000815260040161008994939291906100ef565b60405180910390fd5b5f600160025f6040517fbb6a82f10000000000000000000000000000000000000000000000000000000081526004016100ce949392919061014c565b60405180910390fd5b5f819050919050565b6100e9816100d7565b82525050565b5f6080820190506101025f8301876100e0565b61010f60208301866100e0565b61011c60408301856100e0565b61012960608301846100e0565b95945050505050565b5f8115159050919050565b61014681610132565b82525050565b5f60808201905061015f5f8301876100e0565b61016c60208301866100e0565b61017960408301856100e0565b610186606083018461013d565b9594505050505056fea26469706673582212203f89da086f6d7e52e75f82a20ebbf7337f166a6dbae309180c8bb95e1a157e6e64736f6c634300081a0033",
|
Bin: "0x6080604052348015600e575f80fd5b506101c58061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063b0a378b014610038578063bfb4ebcf14610042575b5f80fd5b61004061004c565b005b61004a610092565b005b5f6001600260036040517fd233a24f00000000000000000000000000000000000000000000000000000000815260040161008994939291906100ef565b60405180910390fd5b5f600160025f6040517fbb6a82f10000000000000000000000000000000000000000000000000000000081526004016100ce949392919061014c565b60405180910390fd5b5f819050919050565b6100e9816100d7565b82525050565b5f6080820190506101025f8301876100e0565b61010f60208301866100e0565b61011c60408301856100e0565b61012960608301846100e0565b95945050505050565b5f8115159050919050565b61014681610132565b82525050565b5f60808201905061015f5f8301876100e0565b61016c60208301866100e0565b61017960408301856100e0565b610186606083018461013d565b9594505050505056fea264697066735822122043974fbdd5c75b36bb8fe9dd68c112de4d094a0d8626d74e03edd5e48f18118164736f6c634300081a0033",
|
||||||
}
|
}
|
||||||
|
|
||||||
// C is an auto generated Go binding around an Ethereum contract.
|
// C is an auto generated Go binding around an Ethereum contract.
|
||||||
|
@ -93,6 +93,7 @@ func (_C *C) UnpackBadThingError(raw []byte) (*CBadThing, error) {
|
||||||
errName := "BadThing"
|
errName := "BadThing"
|
||||||
out := new(CBadThing)
|
out := new(CBadThing)
|
||||||
if err := _C.abi.UnpackIntoInterface(out, errName, raw); err != nil {
|
if err := _C.abi.UnpackIntoInterface(out, errName, raw); err != nil {
|
||||||
|
// TODO: output can be non-pointer type.
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return out, nil
|
return out, nil
|
||||||
|
@ -114,6 +115,73 @@ func (_C *C) UnpackBadThing2Error(raw []byte) (*CBadThing2, error) {
|
||||||
errName := "BadThing2"
|
errName := "BadThing2"
|
||||||
out := new(CBadThing2)
|
out := new(CBadThing2)
|
||||||
if err := _C.abi.UnpackIntoInterface(out, errName, raw); err != nil {
|
if err := _C.abi.UnpackIntoInterface(out, errName, raw); err != nil {
|
||||||
|
// TODO: output can be non-pointer type.
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var C2LibraryDeps = []*bind.MetaData{}
|
||||||
|
|
||||||
|
// TODO: convert this type to value type after everything works.
|
||||||
|
// C2MetaData contains all meta data concerning the C2 contract.
|
||||||
|
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\"}]",
|
||||||
|
Pattern: "78ef2840de5b706112ca2dbfa765501a89",
|
||||||
|
Bin: "0x6080604052348015600e575f80fd5b506101148061001c5f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c8063bfb4ebcf14602a575b5f80fd5b60306032565b005b5f600160025f6040517fbb6a82f1000000000000000000000000000000000000000000000000000000008152600401606c949392919060a3565b60405180910390fd5b5f819050919050565b6085816075565b82525050565b5f8115159050919050565b609d81608b565b82525050565b5f60808201905060b45f830187607e565b60bf6020830186607e565b60ca6040830185607e565b60d560608301846096565b9594505050505056fea264697066735822122073ad1e2383066bba44481ee5aaadd9a60a3e08e602e13ebf1c67c51ef47d191564736f6c634300081a0033",
|
||||||
|
}
|
||||||
|
|
||||||
|
// C2 is an auto generated Go binding around an Ethereum contract.
|
||||||
|
type C2 struct {
|
||||||
|
abi abi.ABI
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewC2 creates a new instance of C2.
|
||||||
|
func NewC2() (*C2, error) {
|
||||||
|
parsed, err := C2MetaData.GetAbi()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &C2{abi: *parsed}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_C2 *C2) PackConstructor() ([]byte, error) {
|
||||||
|
return _C2.abi.Pack("")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Foo is a free data retrieval call binding the contract method 0xbfb4ebcf.
|
||||||
|
//
|
||||||
|
// Solidity: function Foo() pure returns()
|
||||||
|
func (_C2 *C2) PackFoo() ([]byte, error) {
|
||||||
|
return _C2.abi.Pack("Foo")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_C2 *C2) UnpackError(raw []byte) any {
|
||||||
|
|
||||||
|
if val, err := _C2.UnpackBadThingError(raw); err == nil {
|
||||||
|
return val
|
||||||
|
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// C2BadThing represents a BadThing error raised by the C2 contract.
|
||||||
|
type C2BadThing struct {
|
||||||
|
Arg1 *big.Int
|
||||||
|
Arg2 *big.Int
|
||||||
|
Arg3 *big.Int
|
||||||
|
Arg4 bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func C2BadThingErrorID() common.Hash {
|
||||||
|
return common.HexToHash("0xbb6a82f123854747ef4381e30e497f934a3854753fec99a69c35c30d4b46714d")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_C2 *C2) UnpackBadThingError(raw []byte) (*C2BadThing, error) {
|
||||||
|
errName := "BadThing"
|
||||||
|
out := new(C2BadThing)
|
||||||
|
if err := _C2.abi.UnpackIntoInterface(out, errName, raw); err != nil {
|
||||||
|
// TODO: output can be non-pointer type.
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return out, nil
|
return out, nil
|
||||||
|
|
Loading…
Reference in New Issue