mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
remove all doo price tests (#805)
This commit is contained in:
parent
cfbc6a4642
commit
497927a0f4
@ -464,12 +464,6 @@ describe('Marketplace flow', () => {
|
|||||||
alice.getId()
|
alice.getId()
|
||||||
)
|
)
|
||||||
assert(trxReceipt)
|
assert(trxReceipt)
|
||||||
await sleep(aquaSleep)
|
|
||||||
const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0')
|
|
||||||
const resolvedDDO = await ocean.assets.resolve(ddo.id)
|
|
||||||
assert(resolvedDDO.price.type === 'exchange')
|
|
||||||
assert(resolvedDDO.price.value === 1)
|
|
||||||
assert(resolvedDDO.price.exchange_id === exchangeDetails[0].exchangeID)
|
|
||||||
})
|
})
|
||||||
it('Alice should update the FRE pricing for her asset', async () => {
|
it('Alice should update the FRE pricing for her asset', async () => {
|
||||||
const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0')
|
const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0')
|
||||||
@ -480,10 +474,6 @@ describe('Marketplace flow', () => {
|
|||||||
alice.getId()
|
alice.getId()
|
||||||
)
|
)
|
||||||
assert(trxReceipt)
|
assert(trxReceipt)
|
||||||
await sleep(aquaSleep)
|
|
||||||
const resolvedDDO = await ocean.assets.resolve(ddo.id)
|
|
||||||
assert(resolvedDDO.price.type === 'exchange')
|
|
||||||
assert(resolvedDDO.price.value === 2)
|
|
||||||
})
|
})
|
||||||
it('Alice should create a Pool pricing for her asset', async () => {
|
it('Alice should create a Pool pricing for her asset', async () => {
|
||||||
const dtAmount = '45'
|
const dtAmount = '45'
|
||||||
@ -502,23 +492,12 @@ describe('Marketplace flow', () => {
|
|||||||
assert(createTx)
|
assert(createTx)
|
||||||
const alicePoolAddress = createTx.events.BPoolRegistered.returnValues[0]
|
const alicePoolAddress = createTx.events.BPoolRegistered.returnValues[0]
|
||||||
assert(alicePoolAddress)
|
assert(alicePoolAddress)
|
||||||
await sleep(aquaSleep)
|
|
||||||
const resolvedDDO = await ocean.assets.resolve(ddoWithPool.id)
|
|
||||||
poolLastPrice = resolvedDDO.price.value
|
|
||||||
assert(resolvedDDO.price.type === 'pool')
|
|
||||||
assert(resolvedDDO.price.value)
|
|
||||||
assert(resolvedDDO.price.pools.includes(alicePoolAddress))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Alice should update the POOL pricing for her asset by buying a DT', async () => {
|
it('Alice should update the POOL pricing for her asset by buying a DT', async () => {
|
||||||
const poolAddress = await ocean.pool.searchPoolforDT(tokenAddressWithPool)
|
const poolAddress = await ocean.pool.searchPoolforDT(tokenAddressWithPool)
|
||||||
const buyTx = await ocean.pool.buyDT(alice.getId(), poolAddress[0], '1', '999')
|
const buyTx = await ocean.pool.buyDT(alice.getId(), poolAddress[0], '1', '999')
|
||||||
assert(buyTx)
|
assert(buyTx)
|
||||||
await sleep(aquaSleep)
|
|
||||||
const resolvedDDO = await ocean.assets.resolve(ddoWithPool.id)
|
|
||||||
assert(resolvedDDO.price.type === 'pool')
|
|
||||||
assert(resolvedDDO.price.value !== poolLastPrice)
|
|
||||||
assert(resolvedDDO.price.pools.includes(poolAddress[0]))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Alice publishes a dataset but passed data token is invalid', async () => {
|
it('Alice publishes a dataset but passed data token is invalid', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user