Open miketsl opened 3 years ago
Looked into the ethereum Go packages that you reference like abi for example, and there is no U256 in it, .. also the UnPack function in the wrapper doesn't take an interface as a first parameter as your code attempts to do. So this leads me to believe this goLang package requires an older version of go-ethereum abi etc. Its not immediately clear to me how to get this to compile or work.
Any help appreciated.
PS: All I am trying to do is make a goLang GraphQL client to talk to the mesh thats running in docker, using your published golang graphql mod.
Context
Please provide any relevant information about your setup
I am running mesh as a standalone server inside the docker container as shown in the documentation.
8.0.1
instead oflatest
or8
).11.1.0
Golang client 1.0.7 / golang version 1.16.3
Expected Behavior
go build should work?
Current Behavior
Currently there are a bunch of errors compiling the 0xmesh golang graphQL client.
Failure Information (for bugs)
Looks like it just doesn't compile the module / supporting files...
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Failure Logs
../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/zeroex/orderwatch/decoder/event_decoder.go:660:33: cannot call non-function event.ID (type common.Hash) ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/zeroex/orderwatch/decoder/event_decoder.go:664:34: cannot call non-function event.ID (type common.Hash) ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/zeroex/orderwatch/decoder/event_decoder.go:668:35: cannot call non-function event.ID (type common.Hash) ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/zeroex/orderwatch/decoder/event_decoder.go:672:36: cannot call non-function event.ID (type common.Hash) ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/zeroex/orderwatch/decoder/event_decoder.go:912:10: assignment mismatch: 1 variable but _abi.Unpack returns 2 values ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/zeroex/orderwatch/decoder/event_decoder.go:912:24: too many arguments in call to _abi.Unpack have (interface {}, string, []byte) want (string, []byte)
github.com/0xProject/0x-mesh/ethereum/wrappers
../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/coordinator_registry.go:23:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/coordinator_registry.go:142:78: cannot use result (type interface {}) as type []interface {} in argument to _CoordinatorRegistry.Contract.CoordinatorRegistryCaller.contract.Call: need type assertion ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/coordinator_registry.go:161:52: cannot use result (type interface {}) as type []interface {} in argument to _CoordinatorRegistry.Contract.contract.Call: need type assertion ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/coordinator_registry.go:183:43: cannot use out (type string) as type []interface {} in argument to _CoordinatorRegistry.contract.Call ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/dev_utils.go:23:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/dummy_erc721_token.go:23:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/erc1155_mintable.go:23:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/exchange.go:24:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/weth9.go:23:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/zrx_token.go:23:6: undefined: abi.U256 ../../../go/pkg/mod/github.com/0x!project/0x-mesh@v1.0.7/ethereum/wrappers/coordinator_registry.go:183:43: too many errors