Upgrade priority: Low. Recommended for api-contract
developers.
- Breaking change Substrate changed the
ContractExecResult
fromapi.rpc.contracts.call
. The API does have pass-through support for both old and new variants via theContract
interface, however it means the structure has changed to accommodate the new Substrate structure. Refer to the docs for the latest interface (includingisSuccess/isError
->isOk/isErr
, and the availability of thegasConsumed
)
Contributed:
- Dedup similar types on generation (Thanks to https://github.com/monitz87)
Changes:
Contract
execution will now return contract events decoded in the result- Add
.dryRun
on extrinsics (alongside.paymentInfo
usage) - Add
system_syncState
andsyncstate_genSyncSpec
RPCs - Enhance error reporting,
Call
indicates explicit call as found - Adjust internal metadata decoration and use as exposed from
@types/metadata
- Expand Rococo known types to cater for v1 (specVersion 10)
registry.hash
now returns anH256
object (as opposed to raw Uint8Array)- Use utility logger in all relevant error messages (consistency in logging)
- Add
derive.council.proposal(<hash>)
for retrieval of a single (expanded) proposal - Correctly and transparently format type generation types (allowing for nested variants)