mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
caseing
This commit is contained in:
parent
a43db07334
commit
78311773ca
30
src/Tribe.ts
Normal file
30
src/Tribe.ts
Normal 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";
|
||||
}
|
||||
}
|
25
src/tribe.js
25
src/tribe.js
@ -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'
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user