https://github.com/cmditch/elm-ethereum-generator
Generate an elm-ethereum contract interface from your contract's ABI
https://github.com/cmditch/elm-ethereum-generator
Last synced: about 1 year ago
JSON representation
Generate an elm-ethereum contract interface from your contract's ABI
- Host: GitHub
- URL: https://github.com/cmditch/elm-ethereum-generator
- Owner: cmditch
- License: bsd-3-clause
- Created: 2017-11-04T23:02:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T21:33:21.000Z (over 3 years ago)
- Last Synced: 2025-03-18T04:51:49.123Z (about 1 year ago)
- Language: Haskell
- Homepage:
- Size: 154 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-ethereum-generator
Generate an [elm-ethereum](https://github.com/cmditch/elm-ethereum) binding for an Ethereum smart contract from it's ABI
Example usage:
`elm-ethereum-generator some-abi.json src/MyContract.elm`
## Changelog
## 3.0.0
- Updated to latest version of elm-ethereum and elm 0.19
- Added support for dynamic types (bytes, string, list)
### 2.0.0
- Changed imports from Abi to AbiEncode and AbiDecode
- Removed unsupported types for the time being.
- De-pluralize "ies" in type alias names. Add "y" to end.
Helpful for properly naming data returned from functions with multiple return values (structs/tuples).
- Manually entry of staticByte length required for time being. Need to majorly refactor type parsing.
### 1.1.0
- Change all occurences of Evm to Abi
- Add "Contracts." for generated module name
- De-pluralize "s" in type-alias names.
(Though not handling "ies")