1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
This commit is contained in:
Sebastian Gerske 2018-10-01 18:28:34 +02:00
parent a43db07334
commit 78311773ca
2 changed files with 30 additions and 25 deletions

30
src/Tribe.ts Normal file
View File

@ -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";
}
}

View File

@ -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'
}
}