diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-10 04:57:02 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 04:37:57 +0800 |
commit | 6c8fb370dc562b128fc24a19e3f7bbf8b5381425 (patch) | |
tree | da516616c782d5c6e5f7c7df50927e69c51e9059 /packages/order-watcher/test/utils | |
parent | a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb (diff) | |
download | dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.gz dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.bz2 dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.lz dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.xz dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.tar.zst dexon-0x-contracts-6c8fb370dc562b128fc24a19e3f7bbf8b5381425.zip |
Update order-watcher to use new migrations functions
Diffstat (limited to 'packages/order-watcher/test/utils')
-rw-r--r-- | packages/order-watcher/test/utils/migrate.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/order-watcher/test/utils/migrate.ts b/packages/order-watcher/test/utils/migrate.ts new file mode 100644 index 000000000..adcc22b1a --- /dev/null +++ b/packages/order-watcher/test/utils/migrate.ts @@ -0,0 +1,13 @@ +import { devConstants } from '@0xproject/dev-utils'; +import { runMigrationsOnceAsync } from '@0xproject/migrations'; +import { ContractAddresses } from '@0xproject/types'; + +import { provider } from './web3_wrapper'; + +export async function migrateOnceAsync(): Promise<ContractAddresses> { + const txDefaults = { + gas: devConstants.GAS_LIMIT, + from: devConstants.TESTRPC_FIRST_ADDRESS, + }; + return runMigrationsOnceAsync(provider, txDefaults); +} |