eluv-io / contracts

Eluvio Content Management Smart Contracts
MIT License
10 stars 0 forks source link

add abigen command based on ethereum-go v1.9.11 #79

Closed elv-gilles closed 2 years ago

elv-gilles commented 3 years ago

Closes content-fabric#1617

Take abigen from ethereum-go/v1.9.11 and modify the go template to:

// Map of Unique events types to EventInfo var EventsByType = map[reflect.Type]EventInfo{}

// Map of Unique events IDs to EventInfo var EventsByID = map[common.Hash]EventInfo{}



The generated `base_content_space.go` has been manually merged with the existing one to preserve the generated byte code (xxBin strings).

--- 
Note: branch `20200805` has similar changes for `133cb66c6e67fc946c6b73d7f7db3bbb913d4859` which is the revision currently used in fabric.

The new go bindings in branch `20200805` have been manually merged with the existing ones in order to preserve the `xxBin` constants (the contract byte code) since the `solc` currently in elv-toolchain produces byte code not exactly the same than the one that was generated at time.

For older versions (like in build/20200206) we could just rewrite the bindings to get the pre-parsed ABIS.