* feat: metadata v6, minus static and test * fix: update v5 to v6 everywhere * fix: lint and testUtil * fix typo * fix: match final metadata. constants no longer optional, StorageFunctionMetadata renamed to StorageEntryMetadata. * fix: constants constructor * fix: unit tests pass * fix: linting and renaming, make tests pass * fix: skip e2e remove console log * fix: formatting test * fix api e2e tests * fix: put the skip back * feat: yarn test:skip-e2e * fix: grumbles, add fresh flipper wasm * fix: grumbles, add fresh flipper wasm * fix: changelog * fix ci
@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) => { ... });