Releases: polkadot-js/api
Releases · polkadot-js/api
v9.8.1
Contributed:
- Params encoding fix for
api.rpc(...)
(Thanks to https://github.com/xlc) - Support for
WeightV2
contract interfaces (Thanks to https://github.com/jasl)
Changes:
- Cater for
TransactionPaymentApi/2
runtime calls - Add getters for
has{DryRun, PaymentInfo}
on submittables (feature detection) - Polkadot 9300, Kusama 9300 & Westend 9310/9320 upgrade blocks
- Update to latest Polkadot, Kusama & Substrate metadata
v9.7.1
Contributed:
- Update
@substrate/connect
to latest (Thanks to https://github.com/wirednkod) - Add
api.rpc(method, ...params)
support (Thanks to https://github.com/xlc)
Changes:
- Align
ScProvider
code structure with other providers - Add
isClonable
getter on providers (some, e.g. sc doesn't support this) - Update to latest Substrate metadata
v9.6.2
v9.6.1
Contributed:
- Update
@substrate/connect
to latest (Thanks to https://github.com/wirednkod) - Use
.?
operators in submittable class (Thanks to https://github.com/shunjizhan)
Changes:
- Cater for latest Substrate
DispatchError
(additional preimage statuses) - Adjust
api.derive.democracy.*
to returnimageHash
asHexString
(as applicable, supports current-gen preimages) - Adjust
api.derive.preimages.*
to retrieve viademocracy
orpreimage
pallets - Ensure
apiAt.<section>.<method>.key(...)
passes through the correct arguments - Apply fallback for Weight downgrades (V2 >> V1 detection)
- Update to latest Substrate metadata
- Polkadot 9291 & Westend 9300 upgrade blocks
v9.5.2
v9.5.1
- Important While the API witll detect and decorate the weight type based on V1 or V2, the default
Weight
type (used in runtime calls and RPCs) has not been swapped from the oldu64
variant. This means that on new chains usingWeightV2
, the TS decorated type will still reflect the old version.
Changes:
- Adjust handling of
Weight
type for V2 structures - Add alis definitions for
Weight{V1, V2}
(used for type overrides) - Cater for weight v2 (along with v1 pass-through) extrinsics in
api-contract
- Update to latest Substrate, Polkadot & Kusama metadata
v9.4.3
Contributed:
- Allow for new
ink_primitives
types (Thanks to https://github.com/statictype) - Fix contracts runtime
instantiate
call params (Thanks to https://github.com/statictype)
Changes:
- Align staking derive redeemableSum with Rust source (
currentEra
vsactiveEra
usage) - Add
@deprecated
flag to RPC interface generation (contracts_*
&state_get{Pairs/Keys}
) - Polkadot 9280/9281, Kusama 9291 upgrade blocks
v9.4.2
Contributed:
- Allow for re-subscriptions on
ScProvider
(Thanks to https://github.com/wirednkod)
Changes:
- Align derives to cater for latest (& previous) Substrate interfaces
- Update to latest Substrate, Polkadot & Kusama metadata
v9.4.1
Contributed:
- Update
@substrate/connect
to latest (Thanks to https://github.com/wirednkod)
Changes:
- Cater for v1.5 Weight JSON representation (via RPC)
- Polkadot 9270, Kusama 9280 & Westend 9290 upgrade blocks
- Update to latest Substrate, Polkadot & Kusama metadata
v9.3.3
Contributed:
- Ensure JS reserved words are aliassed in types (Thanks to https://github.com/dqbd)
Changes:
- Fix and adjust tests for
AccountId{32, 33}