mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
test cleanup
This commit is contained in:
parent
1c60e11555
commit
e4a8a83674
@ -3,16 +3,12 @@ import { AbiItem } from 'web3-utils/types'
|
|||||||
import { TestContractHandler } from '../../TestContractHandler'
|
import { TestContractHandler } from '../../TestContractHandler'
|
||||||
import { FixedPricedContractHandler } from '../../FixedPriceContractHandler'
|
import { FixedPricedContractHandler } from '../../FixedPriceContractHandler'
|
||||||
import { DataTokens } from '../../../src/datatokens/Datatokens'
|
import { DataTokens } from '../../../src/datatokens/Datatokens'
|
||||||
import {
|
import { OceanFixedRateExchange } from '../../../src/exchange/FixedRateExchange'
|
||||||
OceanFixedRateExchange,
|
|
||||||
FixedPricedExchange
|
|
||||||
} from '../../../src/exchange/FixedRateExchange'
|
|
||||||
|
|
||||||
import Web3 from 'web3'
|
import Web3 from 'web3'
|
||||||
import factory from '@oceanprotocol/contracts/artifacts/DTFactory.json'
|
import factory from '@oceanprotocol/contracts/artifacts/DTFactory.json'
|
||||||
import datatokensTemplate from '@oceanprotocol/contracts/artifacts/DataTokenTemplate.json'
|
import datatokensTemplate from '@oceanprotocol/contracts/artifacts/DataTokenTemplate.json'
|
||||||
|
|
||||||
import BigNumber from 'bignumber.js'
|
|
||||||
import FixedRateExchangeContract = require('@oceanprotocol/contracts/artifacts/FixedRateExchange.json')
|
import FixedRateExchangeContract = require('@oceanprotocol/contracts/artifacts/FixedRateExchange.json')
|
||||||
const web3 = new Web3('http://127.0.0.1:8545')
|
const web3 = new Web3('http://127.0.0.1:8545')
|
||||||
|
|
||||||
@ -27,13 +23,10 @@ describe('FixedRateExchange flow', () => {
|
|||||||
let datatoken
|
let datatoken
|
||||||
let tokenAddress
|
let tokenAddress
|
||||||
|
|
||||||
let alicePoolAddress
|
|
||||||
let currentDtPrice
|
|
||||||
let owner
|
let owner
|
||||||
let contracts
|
let contracts
|
||||||
|
|
||||||
const consoleDebug = false
|
const consoleDebug = false
|
||||||
let greatPool
|
|
||||||
const tokenAmount = '1000000000000000000000000000000000'
|
const tokenAmount = '1000000000000000000000000000000000'
|
||||||
const fixedPriceRate = '0.5'
|
const fixedPriceRate = '0.5'
|
||||||
const updatedPriceRate = '2'
|
const updatedPriceRate = '2'
|
||||||
@ -82,7 +75,7 @@ describe('FixedRateExchange flow', () => {
|
|||||||
tokenAddress = await datatoken.create(
|
tokenAddress = await datatoken.create(
|
||||||
blob,
|
blob,
|
||||||
alice,
|
alice,
|
||||||
web3.utils.toWei('1000000000000000'),
|
'1000000000000000',
|
||||||
'AliceDT',
|
'AliceDT',
|
||||||
'DTA'
|
'DTA'
|
||||||
)
|
)
|
||||||
@ -101,7 +94,7 @@ describe('FixedRateExchange flow', () => {
|
|||||||
oceanTokenAddress = await oceandatatoken.create(
|
oceanTokenAddress = await oceandatatoken.create(
|
||||||
blob,
|
blob,
|
||||||
bob,
|
bob,
|
||||||
web3.utils.toWei('1000000000000000'),
|
'1000000000000000',
|
||||||
'BobDT',
|
'BobDT',
|
||||||
'DTB'
|
'DTB'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user