diff --git a/src/Tribe.ts b/src/Tribe.ts new file mode 100644 index 0000000..8e296e1 --- /dev/null +++ b/src/Tribe.ts @@ -0,0 +1,30 @@ +import Web3Helper from "./keeper/Web3Helper"; + +export default class Tribe { + + public static getInstance(web3Helper: Web3Helper) { + + return new Tribe(web3Helper); + } + + private web3Helper: Web3Helper; + + private constructor(web3Helper: Web3Helper) { + + this.web3Helper = web3Helper; + } + + // did ddo for tribes/marketplaces + public registerTribe() { + return ""; + } + + public tribessList() { + return ""; + } + + public resolveTribeDID() { + // verify DDO + return "DDO"; + } +} diff --git a/src/tribe.js b/src/tribe.js deleted file mode 100644 index 995609b..0000000 --- a/src/tribe.js +++ /dev/null @@ -1,25 +0,0 @@ -import KeeperBase from './keeper/keeper-base' - -export default class Tribe extends KeeperBase { - constructor(web3Helper) { - super(web3Helper) - - return (async () => { - return this - })() - } - - // did ddo for tribes/marketplaces - registerTribe() { - return '' - } - - tribessList() { - return '' - } - - resolveTribeDID() { - // verify DDO - return 'DDO' - } -}