@@ -41,7 +41,7 @@ export interface VerifyResult {
4141export const CURRENT_CONTRACT_ARTIFACT_VERSION = 9 ;
4242
4343export const SUPPORTED_MINIMUM_VERSION = 8 ;
44- export interface ContractArtifact {
44+ export interface Artifact {
4545 /** version of artifact file */
4646 version : number ;
4747 /** version of compiler used to produce this file */
@@ -82,7 +82,7 @@ export type StepIndex = number;
8282
8383export class AbstractContract {
8484
85- public static artifact : ContractArtifact ;
85+ public static artifact : Artifact ;
8686 public static opcodes ?: OpCode [ ] ;
8787 public static hex : string ;
8888 public static abi : ABIEntity [ ] ;
@@ -129,27 +129,27 @@ export class AbstractContract {
129129 }
130130
131131 get sourceMapFile ( ) : string {
132- const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as ContractArtifact ;
132+ const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as Artifact ;
133133 return artifact . sourceMapFile ;
134134 }
135135
136136 get file ( ) : string {
137- const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as ContractArtifact ;
137+ const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as Artifact ;
138138 return artifact . file ;
139139 }
140140
141141 get contractName ( ) : string {
142- const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as ContractArtifact ;
142+ const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as Artifact ;
143143 return artifact . contract ;
144144 }
145145
146146 get stateProps ( ) : ParamEntity [ ] {
147- const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as ContractArtifact ;
147+ const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as Artifact ;
148148 return artifact . stateProps || [ ] ;
149149 }
150150
151151 get version ( ) : number {
152- const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as ContractArtifact ;
152+ const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as Artifact ;
153153 return artifact . version || 0 ;
154154 }
155155
@@ -338,7 +338,7 @@ export class AbstractContract {
338338 }
339339 } else if ( this . version <= 8 ) {
340340
341- const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as ContractArtifact ;
341+ const artifact = Object . getPrototypeOf ( this ) . constructor . artifact as Artifact ;
342342
343343 const sourceMap = loadSourceMapfromArtifact ( artifact ) ;
344344
@@ -811,7 +811,7 @@ const invalidMethodName = ['arguments',
811811
812812
813813
814- export function buildContractClass ( artifact : ContractArtifact | CompileResult ) : typeof AbstractContract {
814+ export function buildContractClass ( artifact : Artifact | CompileResult ) : typeof AbstractContract {
815815
816816
817817 if ( artifact instanceof CompileResult ) {
@@ -918,7 +918,7 @@ export function buildContractClass(artifact: ContractArtifact | CompileResult):
918918
919919
920920
921- export function buildTypeResolverFromArtifact ( artifact : ContractArtifact ) : TypeResolver {
921+ export function buildTypeResolverFromArtifact ( artifact : Artifact ) : TypeResolver {
922922 const alias : AliasEntity [ ] = artifact . alias || [ ] ;
923923 const library : LibraryEntity [ ] = artifact . library || [ ] ;
924924 const structs : StructEntity [ ] = artifact . structs || [ ] ;
0 commit comments