Revert "Move contracts into api-contract"

This reverts commit af0e8cf07a.
This commit is contained in:
Jaco Greeff
2019-06-14 09:06:57 +02:00
parent af0e8cf07a
commit 7bdf0fbbe5
24 changed files with 312 additions and 610 deletions
-13
View File
@@ -1,13 +0,0 @@
# @polkadot/api-contract
Interfaces to allow for the encoding and decoding of Substrate contract ABIs.
```js
import { Abi } from '@polkadot/api-contract';
const abi = new Abi(<...JSON ABI...>);
api.tx.contract
.call(<contract addr>, <value>, <max gas>, abi.messages.<method name>(<...params...>))
.signAndSend(<keyring pair>, (result: SubmittableResult) => { ... });
```