Emit decorated event on API (incl. upgrades) (#4497)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -275,6 +275,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
}
|
||||
|
||||
augmentObject(null, decoratedMeta.consts, this._rx.consts, fromEmpty);
|
||||
|
||||
this.emit('decorated');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user