Move .isEmpty to $isEmpty (#5424)

* Move .isEmpty to $isEmpty

* Adjust usages
This commit is contained in:
Jaco
2023-01-19 11:07:29 +02:00
committed by GitHub
parent 4688291ecf
commit 6f19084a4d
66 changed files with 249 additions and 146 deletions
+7 -7
View File
@@ -75,19 +75,19 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
}
export class Abi {
public readonly events: AbiEvent[];
readonly events: AbiEvent[];
public readonly constructors: AbiConstructor[];
readonly constructors: AbiConstructor[];
public readonly info: ContractProjectInfo;
readonly info: ContractProjectInfo;
public readonly json: Record<string, unknown>;
readonly json: Record<string, unknown>;
public readonly messages: AbiMessage[];
readonly messages: AbiMessage[];
public readonly metadata: ContractMetadataLatest;
readonly metadata: ContractMetadataLatest;
public readonly registry: Registry;
readonly registry: Registry;
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
[this.json, this.registry, this.metadata, this.info] = parseJson(