import { EthAddress } from "@joincivil/typescript-types" ; import { EthApi } from "@joincivil/ethapi" ; import { BaseContract } from "./basecontract" ; export class BaseWrapper < InstanceType extends BaseContract > { protected instance : InstanceType ; protected ethApi : EthApi ; protected defaultBlock : number ; constructor ( ethApi , instance , defaultBlock ) { this . instance = instance ; this . ethApi = ethApi ; this . defaultBlock = defaultBlock ; } returns public get address ( ) : EthAddress { return this . instance . address ; } }