diff --git a/CHANGELOG.md b/CHANGELOG.md index 62e2973e76..1fd53ca84b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Changes: +- Adjust historic `WinningData` and `SlotRange` types (36-entry variant) +- Emit `decorated` event on API on metadata decoration - Dedupe and extend `WrapperKeepOpaque/WrapperOpaque` - Align `Range/RangeInclusive` usage with similar types diff --git a/packages/api/src/base/Decorate.ts b/packages/api/src/base/Decorate.ts index 33fb00fee4..8cb4cfe800 100644 --- a/packages/api/src/base/Decorate.ts +++ b/packages/api/src/base/Decorate.ts @@ -275,6 +275,8 @@ export abstract class Decorate extends Events { } augmentObject(null, decoratedMeta.consts, this._rx.consts, fromEmpty); + + this.emit('decorated'); } /** diff --git a/packages/api/src/types/index.ts b/packages/api/src/types/index.ts index 3b9ce38478..db653fb9b9 100644 --- a/packages/api/src/types/index.ts +++ b/packages/api/src/types/index.ts @@ -81,7 +81,7 @@ export interface ApiOptions extends RegisteredTypes { throwOnUnknown?: boolean; } -export type ApiInterfaceEvents = ProviderInterfaceEmitted | 'ready'; +export type ApiInterfaceEvents = ProviderInterfaceEmitted | 'ready' | 'decorated'; export interface SignerOptions extends SignatureOptions { blockNumber: BN;