* More ergnomic contracts interfaces
* extend SubmittableResult
* Allow creation of contract from blueprint
* "decorate" Contract (just playing with interfaces)
* Make actual messages calls
* Rename to Rx{Blueprint, Cond, Contract}
* Add exports
* Support contract & contracts endpoints
* Remove unneeded ApiType generics (may return)
* Comment 2.x/1.x detection
@polkadot/api-contract
Interfaces to allow for the encoding and decoding of Substrate contract ABIs.
import { Abi } from '@polkadot/api-contract';
const abi = new Abi(<...JSON ABI...>);
api.tx.contracts
.call(<contract addr>, <value>, <max gas>, abi.messages.<method name>(<...params...>))
.signAndSend(<keyring pair>, (result: SubmittableResult) => { ... });