import { QtumRPC } from "./QtumRPC" ; import { IContractsRepoData , ContractsRepo } from "./ContractsRepo" ; import { Contract , IContractInfo } from "./Contract" ; param providerURL param repoData export class Qtum extends QtumRPC { private repo : ContractsRepo ; constructor ( providerURL , repoData ? ) { super ( providerURL ) ; this . repo = new ContractsRepo ( this , { contracts : { } , libraries : { } , related : { } , ... repoData , } ) ; } param name public contract ( name , info ? ) { return this . repo . contract ( name , info ) ; } }