mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
import ContractBase from "./ContractBase"
|
|
|
|
export default class GenericContract extends ContractBase {
|
|
|
|
public static async getInstance(contractName: string) {
|
|
const contract: GenericContract = new GenericContract(contractName)
|
|
await contract.init()
|
|
return contract
|
|
}
|
|
|
|
private constructor(contractName: string) {
|
|
super(contractName)
|
|
}
|
|
}
|