aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/package.json
blob: 22a71e3bc7f01ae1e1bbde94b6594a0a2fb006ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
    "name": "@0xproject/migrations",
    "version": "1.0.6",
    "engines": {
        "node": ">=6.12"
    },
    "description": "0x smart contract migrations",
    "main": "lib/index.js",
    "types": "lib/index.d.ts",
    "scripts": {
        "build": "yarn pre_build && tsc -b",
        "pre_build": "run-s compile:v2 copy_artifacts generate_contract_wrappers",
        "copy_artifacts": "copyfiles 'artifacts/**/*' ./lib",
        "clean": "shx rm -rf lib src/1.0.0/contract_wrappers src/2.0.0-testnet/contract_wrappers src/2.0.0/contract_wrappers src/development/contract_wrappers artifacts/development",
        "lint": "tslint --project . --exclude **/src/v2/contract_wrappers/**/* --exclude **/src/v1/contract_wrappers/**/*",
        "migrate:v1": "run-s build compile:v1 script:migrate:v1",
        "migrate:v2": "run-s build compile:v2 script:migrate:v2",
        "migrate:v2-beta-testnet": "run-s build compile:v2-beta-testnet script:migrate:v2-beta-testnet",
        "migrate:v2-mainnet": "run-s compile:v2-mainnet copy_artifacts generate_contract_wrappers:v2-mainnet && tsc && yarn script:migrate:v2-mainnet",
        "script:migrate:v1": "node ./lib/migrate.js --contracts-version 1.0.0",
        "script:migrate:v2": "node ./lib/migrate.js --contracts-version 2.0.0",
        "script:migrate:v2-beta-testnet": "node ./lib/migrate.js --contracts-version 2.0.0-beta-testnet",
        "script:migrate:v2-mainnet": "node ./lib/migrate.js --contracts-version 2.0.0-mainnet",
        "generate_contract_wrappers": "run-p generate_contract_wrappers:*",
        "generate_contract_wrappers:v1": "abi-gen --abis  ${npm_package_config_abis_v1} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/1.0.0/contract_wrappers --backend ethers",
        "generate_contract_wrappers:v2": "abi-gen --abis  ${npm_package_config_abis_v2} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/2.0.0/contract_wrappers --backend ethers",
        "generate_contract_wrappers:v2-beta-testnet": "abi-gen --abis  ${npm_package_config_abis_v2BetaTestnet} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/2.0.0-beta-testnet/contract_wrappers --backend ethers",
        "generate_contract_wrappers:v2-mainnet": "abi-gen --abis  ${npm_package_config_abis_v2Mainnet} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/2.0.0-mainnet/contract_wrappers --backend ethers",
        "compile:v1": "sol-compiler --artifacts-dir artifacts/1.0.0 --contracts Exchange_v1,DummyERC20Token,ZRXToken,WETH9,TokenTransferProxy_v1,MultiSigWallet,MultiSigWalletWithTimeLock,MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress,TokenRegistry",
    },
    "config": {
        "abis": {
            "v1": "artifacts/1.0.0/@(DummyERC20Token|TokenTransferProxy_v1|Exchange_v1|TokenRegistry|MultiSigWallet|MultiSigWalletWithTimeLock|MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress|TokenRegistry|ZRXToken|WETH9).json",
            "v2Testnet": "artifacts/2.0.0-testnet/@(DummyERC721Token|DummyERC20Token|ERC20Token|ERC721Token|ERC20Proxy|ERC721Proxy|Exchange|Forwarder|AssetProxyOwner|IWallet|IValidator|OrderValidator|ZRXToken).json",
            "v2": "artifacts/2.0.0/@(DummyERC721Token|DummyERC20Token|ERC20Token|ERC721Token|ERC20Proxy|ERC721Proxy|Exchange|Forwarder|AssetProxyOwner|IWallet|IValidator|OrderValidator|ZRXToken).json",
            "development": "artifacts/development/@(DummyERC721Token|DummyERC20Token|ERC20Token|ERC721Token|ERC20Proxy|ERC721Proxy|Exchange|Forwarder|AssetProxyOwner|IWallet|IValidator|OrderValidator|ZRXToken).json"
        }
    },
    "license": "Apache-2.0",
    "devDependencies": {
        "@0xproject/abi-gen": "^1.0.7",
        "@0xproject/dev-utils": "^1.0.6",
        "@0xproject/tslint-config": "^1.0.6",
        "@0xproject/types": "^1.0.1-rc.6",
        "@types/yargs": "^10.0.0",
        "copyfiles": "^2.0.0",
        "make-promises-safe": "^1.1.0",
        "npm-run-all": "^4.1.2",
        "shx": "^0.2.2",
        "tslint": "5.11.0",
        "typescript": "3.0.1",
        "yargs": "^10.0.3"
    },
    "dependencies": {
        "@0xproject/base-contract": "^2.0.1",
        "@0xproject/order-utils": "^1.0.1-rc.6",
        "@0xproject/sol-compiler": "^1.1.1",
        "@0xproject/subproviders": "^2.0.1",
        "@0xproject/typescript-typings": "^1.0.5",
        "@0xproject/utils": "^1.0.7",
        "@0xproject/web3-wrapper": "^2.0.1",
        "@ledgerhq/hw-app-eth": "^4.3.0",
        "ethereum-types": "^1.0.5",
        "ethers": "3.0.22",
        "lodash": "^4.17.5"
    },
    "optionalDependencies": {
        "@ledgerhq/hw-transport-node-hid": "^4.3.0"
    },
    "publishConfig": {
        "access": "public"
    }
}