-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sam bacha
committed
Oct 6, 2020
1 parent
c841861
commit 17fa76d
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# ABI & AST Encoding Formats | ||
|
||
## ABI Encoder v2 | ||
|
||
> No Longer considered `experimental` , will retain this naming convention for backwards comp. reasons | ||
## solidity Parsers | ||
|
||
The standard antlr4 grammar produces a few less fields than the Consensys Dilligence one | ||
|
||
Explore the differences in `ast` formats here: [https://astexplorer.net/](https://astexplorer.net/) | ||
|
||
### Smart contract interfaces ( abi json files) can have different formats, for example: | ||
|
||
|
||
### abi-json | ||
```js | ||
{ | ||
abi: "...", | ||
evm: | ||
bytecode: | ||
object: "0x..." | ||
} | ||
``` | ||
|
||
### 0x/solcompiler | ||
|
||
0x/sol-compiler outputs JSON in this format: | ||
```js | ||
{ | ||
compiledOutput: | ||
abi: "...", | ||
evm: | ||
bytecode: | ||
object: "0x..." | ||
} | ||
``` | ||
### Truffle | ||
truffle compile outputs JSON in this format: | ||
```js | ||
{ | ||
abi: "...", | ||
bytecode: "0x...." | ||
} | ||
``` | ||
|
||
> more to follow |