Golang bindings#73
Golang bindings#73euforic wants to merge 2 commits intoautonomoussoftware:masterfrom euforic:go-bindings
Conversation
|
When I try to generate the go code locally it fails: Running the command manually I get: I'm using a pretty recent solc and abigen: Are you using a particular version of |
|
Also, it might be best to split this into 2 PR, one for anything smart contract related and one that depends on that with the go code and the generate step that way they can be reviewed separately. Since the smart contracts are already deployed, I'm not sure if those changes can go in really (but that is more @gabmontes's area than mine). |
|
That said, I'm very happy to see go bindings here! |
|
Comments:
|
|
@jcvernaleo Sorry not sure how the typo got in, but fixed that and pushed the changes. I will break it into two commits as requested. Instead of duplicating |
|
@jcvernaleo @jgarzik I put in another PR #74 that just updates the comments to allow for the contract to compile with the latest version of |
- Add command to package.json to generate go bindings - Generate Go bindings
|
@jcvernaleo @jgarzik Ok this PR only covers the actually Go binding generation function and the generated Go code. It's built off of #74 pending PR branch so once that is merged the changes to the contract will disappear from this PR changes |
|
Would it be possible to generate the go bindings using the version of solc that was initially used (looks like Mostly wondering if we can get the go code in without touching the contracts. |
|
Regardless of the question above, the generate command now works for me and generates identical code when I run it as in the pull request (other than a single newline oddly enough). So on the go side, I'm happy with this PR (once we decide on #74). |
|
@jcvernaleo so the only changes to the contract now are just |
|
Downgrading abigen is definitely more of a pain than downgrading solc. |
|
No changes in contract needed . closing this as new PR #95 will take care of this. |
Please Merge #74 before merging this PR
I generated the GoDoc in markdown for a temporary reference.
GoBinding Docs