-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace json format with protobuf Struct #1192
Conversation
I don't understand why you don't directly use If I compile with the official struct I have in my generated file a new type imported Also, please description, labels, issue solved, project related on the pull requests ;) |
We have to pass path to struct when building (flag
What do you mean "is not recognized by proto"/"will not do any processing on the message" - any more info.
Yes, the import path is different (if this is what you mean) because the go_package in the officaial file is different. But they are pretty much the same after generation. https://github.com/golang/protobuf/blob/master/ptypes/struct/struct.pb.go
Sure :) |
fix #1176 wip: need to fix ethwallet as well. |
systemservices/ethwallet/go.mod
Outdated
@@ -8,7 +8,9 @@ require ( | |||
github.com/deckarep/golang-set v1.7.1 // indirect | |||
github.com/ethereum/go-ethereum v1.8.27 | |||
github.com/go-stack/stack v1.8.0 // indirect | |||
github.com/mesg-foundation/engine v0.5.1-0.20190702155243-a2826b3949a7 | |||
github.com/mesg-foundation/core v0.10.1 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it needed?
Ok I think I'm done here, only tests left but for tests I need cli updated @NicolasMahe @antho1404 can you prepare an update of cli so I can test eth wallet and marketplace? |
can't this be tested just with the api? Also is this ready to review? there is still the wip label? Please also add details on this PR as discussed |
I don't know because it might be hard to pass
It's ready for review, but it's not tested this is why I left |
This would actually make example:
instead of something like
Also yes cli and lib needs to be updated when this development is finished and tested You did update the ethwallet service so you could do the tests with this service and execute tasks/events to see if everything works fine. From my tests, it doesn't work
My execution stays in progress |
840ef51
to
3e81717
Compare
I have a lot of issues testing with the Example: Invalid inputs for the list taskgrpcurl -plaintext -d "{\"instanceHash\":\"Hsy6y2i7ZxrTMHFb39sm1bLrSB2QenjXEcGKcNjb7kbw\", \"taskKey\":\"list\", \"inputs\":{\"passphrase\":\"1\"}}" localhost:50052 api.Execution/Create No errors in the engine, execution with the passphrase as input and still in pending. Generate a new addressgrpcurl -plaintext -d "{\"instanceHash\":\"Hsy6y2i7ZxrTMHFb39sm1bLrSB2QenjXEcGKcNjb7kbw\", \"taskKey\":\"create\", \"inputs\":{\"passphrase\":\"1\"}}" localhost:50052 api.Execution/Create Execution working but with an error |
This is not related to this PR. The Engine only check for required data and their type, not for data that are not declared by the task. |
sure but the execution should be completed and it is not but I agree, the parameter is irrelevant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a big breaking change but I'm ok to release it in this week release though :) It's really nicer.
I'm excited to see the simplification on the js lib :)
This pull request has been mentioned on MESG Community. There might be relevant details there: https://forum.mesg.com/t/release-notes-of-engine-v0-12-cli-v1-2-and-js-library-v4-2/367/1 |
fix #1176