diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 02:47:31 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 02:47:31 +0800 |
commit | 921d9d7ed5a549878b3a9130a99b9cbe2ae11903 (patch) | |
tree | ee20d3005850619160e7dc985736e47813c4af68 /packages/migrations/src | |
parent | b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5 (diff) | |
parent | 68c15de8908b1e8eb8f04d26301fec62ed2af1c1 (diff) | |
download | dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.gz dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.bz2 dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.lz dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.xz dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.zst dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.zip |
Merge branch 'development' into feature/instant/rollbar-env
Diffstat (limited to 'packages/migrations/src')
-rw-r--r-- | packages/migrations/src/index.ts | 10 | ||||
-rw-r--r-- | packages/migrations/src/migration.ts | 11 |
2 files changed, 15 insertions, 6 deletions
diff --git a/packages/migrations/src/index.ts b/packages/migrations/src/index.ts index 8f629a24b..4f22c30b9 100644 --- a/packages/migrations/src/index.ts +++ b/packages/migrations/src/index.ts @@ -1 +1,11 @@ +export { + Provider, + TxData, + JSONRPCRequestPayload, + JSONRPCErrorCallback, + TxDataPayable, + JSONRPCResponsePayload, + JSONRPCResponseError, +} from 'ethereum-types'; +export { ContractAddresses } from '@0x/contract-addresses'; export { runMigrationsAsync, runMigrationsOnceAsync } from './migration'; diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts index 86c76a54b..61ac56938 100644 --- a/packages/migrations/src/migration.ts +++ b/packages/migrations/src/migration.ts @@ -11,10 +11,9 @@ import { erc20TokenInfo, erc721TokenInfo } from './utils/token_info'; /** * Creates and deploys all the contracts that are required for the latest - * version of the 0x protocol. Custom migrations can be defined here. This will - * be called with the CLI 'migrate:v2' command. - * @param provider Web3 provider instance. - * @param txDefaults Default transaction values to use when deploying contracts. + * version of the 0x protocol. + * @param provider Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. + * @param txDefaults Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). * @returns The addresses of the contracts that were deployed. */ export async function runMigrationsAsync(provider: Provider, txDefaults: Partial<TxData>): Promise<ContractAddresses> { @@ -159,8 +158,8 @@ let _cachedContractAddresses: ContractAddresses; * Exactly like runMigrationsAsync but will only run the migrations the first * time it is called. Any subsequent calls will return the cached contract * addresses. - * @param provider Web3 provider instance. - * @param txDefaults Default transaction values to use when deploying contracts. + * @param provider Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. + * @param txDefaults Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). * @returns The addresses of the contracts that were deployed. */ export async function runMigrationsOnceAsync( |