Emit decorated event on API (incl. upgrades) (#4497)

This commit is contained in:
Jaco
2022-01-25 08:57:08 +02:00
committed by GitHub
parent f130f55167
commit c4427c0497
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -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
+2
View File
@@ -275,6 +275,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
}
augmentObject(null, decoratedMeta.consts, this._rx.consts, fromEmpty);
this.emit('decorated');
}
/**
+1 -1
View File
@@ -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;