nduchak / aesophia_http

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aesophia_http

An HTTP interface to the Sophia compiler.It handles compiling contracts and generating ACI data for contract.

HTTP interface uses port 3080, settable with application variable aesophia_http.port.

Interface paths:

/aci - generate ACI format for contract in both JSON encoded and textual decoded forms. Tags 'code' and 'options'.

/compile - compile contract and return code in a JSON structure encoded to contract_bytearray.

/decode-data - Tags 'sophia-type' and 'data'.

/encode-calldata - Tags 'source', 'function' and 'arguments'.

About

License:ISC License


Languages

Language:Erlang 91.4%Language:Makefile 5.3%Language:Dockerfile 2.4%Language:Shell 1.0%