Skip to content

Commit

Permalink
fix artifacts path in all test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Jan 11, 2022
1 parent b7b7d8f commit 24425fc
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 77 deletions.
2 changes: 1 addition & 1 deletion test/TestContractHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Web3 from 'web3'
import { Contract } from 'web3-eth-contract'
import { AbiItem } from 'web3-utils/types'
import MockERC20 from '../artifacts/utils/mock/MockERC20Decimals.sol/MockERC20Decimals.json'
import MockERC20 from '../src/artifacts/utils/mock/MockERC20Decimals.sol/MockERC20Decimals.json'

const oceanAddress = '0x967da4048cd07ab37855c090aaf366e4ce1b9f48'
export class TestContractHandler {
Expand Down
1 change: 0 additions & 1 deletion test/integration/Provider.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import config from './config'
import { Provider } from '../../src/provider/Provider'
import { assert } from 'chai'
import { fetchData } from '../../src/utils'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/PublishFlows.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockERC20 from '../artifacts/utils/mock/MockERC20Decimals.sol/MockERC20Decimals.json'
import MockERC20 from '../../src/artifacts/utils/mock/MockERC20Decimals.sol/MockERC20Decimals.json'
import ProviderInstance from '../../src/provider/Provider'
import Aquarius from '../../src/aquarius/Aquarius'
import { assert } from 'chai'
Expand Down
1 change: 0 additions & 1 deletion test/integration/SimplePublishConsumeFlow.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import config from './config'
import ProviderInstance, { Provider } from '../../src/provider/Provider'
import Aquarius from '../../src/aquarius/Aquarius'
import { assert } from 'chai'
Expand Down
18 changes: 9 additions & 9 deletions test/unit/NftFactory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { assert, expect } from 'chai'
import { AbiItem } from 'web3-utils/types'
import { TestContractHandler } from '../TestContractHandler'
import Web3 from 'web3'
import ERC721Factory from '../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import Router from '../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCommunityFeeCollector from '../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import PoolTemplate from '../artifacts/pools//balancer/BPool.sol/BPool.json'
import ERC721Factory from '../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import Router from '../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCommunityFeeCollector from '../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import PoolTemplate from '../../src/artifacts/pools//balancer/BPool.sol/BPool.json'
import { NftFactory, NftCreateData, TokenOrder } from '../../src/factories/NFTFactory'
import {
FreCreationParams,
Expand Down
18 changes: 9 additions & 9 deletions test/unit/pools/Router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { assert, expect } from 'chai'
import { AbiItem } from 'web3-utils/types'
import Web3 from 'web3'
import { TestContractHandler } from '../../TestContractHandler'
import ERC721Factory from '../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCommunityFeeCollector from '../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import PoolTemplate from '../../artifacts/pools/balancer/BPool.sol/BPool.json'
import ERC721Factory from '../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCommunityFeeCollector from '../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import PoolTemplate from '../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import { NftFactory, NftCreateData } from '../../../src/factories/NFTFactory'
import { Router } from '../../../src/pools/Router'
import { Erc20CreateParams, PoolCreationParams, Operation } from '../../../src/interfaces'
Expand Down
18 changes: 9 additions & 9 deletions test/unit/pools/balancer/Pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { AbiItem } from 'web3-utils/types'
import { TestContractHandler } from '../../../TestContractHandler'
import { Contract } from 'web3-eth-contract'
import Web3 from 'web3'
import ERC721Factory from '../../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import ERC721Factory from '../../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import { LoggerInstance } from '../../../../src/utils'
import { NftFactory, NftCreateData } from '../../../../src/factories/NFTFactory'
import { Pool } from '../../../../src/pools/balancer/Pool'
Expand Down
18 changes: 9 additions & 9 deletions test/unit/pools/dispenser/Dispenser.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import Web3 from 'web3'
import { AbiItem } from 'web3-utils'
import { assert, expect } from 'chai'
import ERC721Factory from '../../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import DispenserTemplate from '../../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import ERC721Factory from '../../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import DispenserTemplate from '../../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import { NftFactory, NftCreateData } from '../../../../src/factories/'
import { Datatoken, DispenserParams } from '../../../../src/tokens/'
import { Dispenser } from '../../../../src/pools/dispenser/'
Expand Down
18 changes: 9 additions & 9 deletions test/unit/pools/fixedRate/FixedRateExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { TestContractHandler } from '../../../TestContractHandler'
import { Contract } from 'web3-eth-contract'
import Web3 from 'web3'
import BN from 'bn.js'
import ERC721Factory from '../../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SSContract from '../../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import ERC721Factory from '../../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SSContract from '../../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import { NftFactory, NftCreateData } from '../../../../src/factories/NFTFactory'
import { FixedRateExchange } from '../../../../src/pools/fixedRate/FixedRateExchange'
import { FreCreationParams, Erc20CreateParams } from '../../../../src/interfaces'
Expand Down
18 changes: 9 additions & 9 deletions test/unit/pools/ssContracts/SideStaking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { AbiItem } from 'web3-utils/types'
import { TestContractHandler } from '../../../TestContractHandler'
import { Contract } from 'web3-eth-contract'
import Web3 from 'web3'
import ERC721Factory from '../../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SSContract from '../../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import ERC721Factory from '../../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SSContract from '../../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import FactoryRouter from '../../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import PoolTemplate from '../../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import OPFCollector from '../../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import { LoggerInstance } from '../../../../src/utils'
import { NftFactory, NftCreateData } from '../../../../src/factories/NFTFactory'
import { Pool } from '../../../../src/pools/balancer/Pool'
Expand Down
20 changes: 10 additions & 10 deletions test/unit/tokens/Datatoken.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { assert } from 'chai'
import Web3 from 'web3'
import ERC20TemplateEnterprise from '../../artifacts/templates/ERC20TemplateEnterprise.sol/ERC20TemplateEnterprise.json'
import PoolTemplate from '../../artifacts/pools/balancer/BPool.sol/BPool.json'
import ERC721Factory from '../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import Router from '../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCollector from '../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import ERC20TemplateEnterprise from '../../../src/artifacts/templates/ERC20TemplateEnterprise.sol/ERC20TemplateEnterprise.json'
import PoolTemplate from '../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import ERC721Factory from '../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import Router from '../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCollector from '../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'

import { TestContractHandler } from '../../TestContractHandler'
import { NftFactory, NftCreateData } from '../../../src/factories/NFTFactory'
Expand Down
18 changes: 9 additions & 9 deletions test/unit/tokens/Nft.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { assert } from 'chai'
import Web3 from 'web3'
import PoolTemplate from '../../artifacts/pools/balancer/BPool.sol/BPool.json'
import ERC721Factory from '../../artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import Router from '../../artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCollector from '../../artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import PoolTemplate from '../../../src/artifacts/pools/balancer/BPool.sol/BPool.json'
import ERC721Factory from '../../../src/artifacts/ERC721Factory.sol/ERC721Factory.json'
import ERC721Template from '../../../src/artifacts/templates/ERC721Template.sol/ERC721Template.json'
import SideStaking from '../../../src/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json'
import Router from '../../../src/artifacts/pools/FactoryRouter.sol/FactoryRouter.json'
import ERC20Template from '../../../src/artifacts/templates/ERC20Template.sol/ERC20Template.json'
import Dispenser from '../../../src/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json'
import FixedRate from '../../../src/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json'
import OPFCollector from '../../../src/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json'
import { TestContractHandler } from '../../TestContractHandler'
import { NftFactory, NftCreateData } from '../../../src/factories/NFTFactory'
import { Nft } from '../../../src/tokens/NFT'
Expand Down

0 comments on commit 24425fc

Please sign in to comment.