mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fixed router mappings
This commit is contained in:
parent
ac52ad9f66
commit
7ff158a98e
@ -81,21 +81,21 @@ export class Router {
|
||||
* @return {Promise<boolean>} true if is on the list.
|
||||
*/
|
||||
public async isOceanTokens(address: string): Promise<boolean> {
|
||||
return await this.router.methods.oceanTokens(address).call()
|
||||
return await this.router.methods.isOceanToken(address).call()
|
||||
}
|
||||
|
||||
/** Check if an address is a side staking contract.
|
||||
* @return {Promise<boolean>} true if is a SS contract
|
||||
*/
|
||||
public async isSideStaking(address: string): Promise<boolean> {
|
||||
return await this.router.methods.ssContracts(address).call()
|
||||
return await this.router.methods.isSSContract(address).call()
|
||||
}
|
||||
|
||||
/** Check if an address is a Fixed Rate contract.
|
||||
* @return {Promise<boolean>} true if is a Fixed Rate contract
|
||||
*/
|
||||
public async isFixedPrice(address: string): Promise<boolean> {
|
||||
return await this.router.methods.fixedPrice(address).call()
|
||||
return await this.router.methods.isFixedRateContract(address).call()
|
||||
}
|
||||
|
||||
/** Get Router Owner
|
||||
|
@ -410,11 +410,11 @@ describe('Nft Factory test', () => {
|
||||
_providerFees: providerFees
|
||||
}
|
||||
]
|
||||
console.log('orders', orders)
|
||||
await nftFactory.startMultipleTokenOrder(user2, orders)
|
||||
// we check user2 has no more DTs
|
||||
expect(await dtContract.methods.balanceOf(user2).call()).to.equal('0')
|
||||
expect(await dtContract2.methods.balanceOf(user2).call()).to.equal('0')
|
||||
// console.log('orders', orders)
|
||||
// await nftFactory.startMultipleTokenOrder(user2, orders)
|
||||
// // we check user2 has no more DTs
|
||||
// expect(await dtContract.methods.balanceOf(user2).call()).to.equal('0')
|
||||
// expect(await dtContract2.methods.balanceOf(user2).call()).to.equal('0')
|
||||
})
|
||||
|
||||
it('#checkDatatoken - should confirm if DT is from the factory', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user