diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-19 23:41:10 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-19 23:41:10 +0800 |
commit | c0e008c601d4c34da6faafce62abfd8e0ff821c5 (patch) | |
tree | 42eb285690af11dcae5503e73cae3d97d61415ae /packages/contracts/src/utils | |
parent | 9acf4458c026ca9e2748ca4291573ac95c66fe26 (diff) | |
download | dexon-sol-tools-c0e008c601d4c34da6faafce62abfd8e0ff821c5.tar.gz dexon-sol-tools-c0e008c601d4c34da6faafce62abfd8e0ff821c5.tar.zst dexon-sol-tools-c0e008c601d4c34da6faafce62abfd8e0ff821c5.zip |
Rename NewOrderFactory to OrderFactoryFromScenario for clarity
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r-- | packages/contracts/src/utils/core_combinatorial_utils.ts | 8 | ||||
-rw-r--r-- | packages/contracts/src/utils/order_factory_from_scenario.ts (renamed from packages/contracts/src/utils/new_order_factory.ts) | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/contracts/src/utils/core_combinatorial_utils.ts b/packages/contracts/src/utils/core_combinatorial_utils.ts index d6142c5fb..cdb8e579d 100644 --- a/packages/contracts/src/utils/core_combinatorial_utils.ts +++ b/packages/contracts/src/utils/core_combinatorial_utils.ts @@ -23,7 +23,7 @@ import { constants } from '../utils/constants'; import { ERC20Wrapper } from '../utils/erc20_wrapper'; import { ERC721Wrapper } from '../utils/erc721_wrapper'; import { ExchangeWrapper } from '../utils/exchange_wrapper'; -import { NewOrderFactory } from '../utils/new_order_factory'; +import { OrderFactoryFromScenario } from '../utils/order_factory_from_scenario'; import { orderUtils } from '../utils/order_utils'; import { signingUtils } from '../utils/signing_utils'; import { SimpleAssetBalanceAndProxyAllowanceFetcher } from '../utils/simple_asset_balance_and_proxy_allowance_fetcher'; @@ -111,7 +111,7 @@ export async function coreCombinatorialUtilsFactoryAsync( constants.AWAIT_TRANSACTION_MINED_MS, ); - const orderFactory = new NewOrderFactory( + const orderFactory = new OrderFactoryFromScenario( userAddresses, zrxToken.address, [erc20EighteenDecimalTokenA.address, erc20EighteenDecimalTokenB.address], @@ -135,7 +135,7 @@ export async function coreCombinatorialUtilsFactoryAsync( } export class CoreCombinatorialUtils { - public orderFactory: NewOrderFactory; + public orderFactory: OrderFactoryFromScenario; public ownerAddress: string; public makerAddress: string; public makerPrivateKey: Buffer; @@ -235,7 +235,7 @@ export class CoreCombinatorialUtils { } } constructor( - orderFactory: NewOrderFactory, + orderFactory: OrderFactoryFromScenario, ownerAddress: string, makerAddress: string, makerPrivateKey: Buffer, diff --git a/packages/contracts/src/utils/new_order_factory.ts b/packages/contracts/src/utils/order_factory_from_scenario.ts index 22705d3e7..74c2d4fa2 100644 --- a/packages/contracts/src/utils/new_order_factory.ts +++ b/packages/contracts/src/utils/order_factory_from_scenario.ts @@ -23,7 +23,7 @@ const TEN_UNITS_FIVE_DECIMALS = new BigNumber(1000000); const FIVE_UNITS_FIVE_DECIMALS = new BigNumber(500000); const ONE_NFT_UNIT = new BigNumber(1); -export class NewOrderFactory { +export class OrderFactoryFromScenario { private _userAddresses: string[]; private _zrxAddress: string; private _nonZrxERC20EighteenDecimalTokenAddresses: string[]; |