OTP-002: Contract ABI
ABI defines how to communicate with smart contracts. It contains information about the contract’s receivers, data structures, etc.
Motivation
ABI is an essential tool that allows developers to generate handy bindings, UIs, etc. One of the best consumer usages would be using a DAO and being able to confirm what exactly it is trying to do before signing a transaction.
Guide
This OTP is based on types that are defined in TLB+ and it is advised to know them before reading this OTP.
Specification
ABI is a JSON file:
Drawbacks
- Binary and compact representation of ABI could be better, but it is not critical for now.
Prior art
- OTP-001, that is complimentary to this OTP.