Catalog npm
Back to packageRELEASE DETAILS

1.0.9

npm

@0xproject/migrations

0x smart contract migrations

Published19 Sept 2018
Direct dependencies24
Transitive dependenciesNot calculated

README

Current package documentation

Migrations

Migrate the 0x system of smart contracts on the network of your choice using these migrations.

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0xproject/migrations yarn build

Or continuously rebuild on change:

PKG=@0xproject/migrations yarn watch

Clean

yarn clean

Lint

yarn lint

Migrate

V2-beta smart contracts

In order to migrate the V2-beta 0x smart contracts to Kovan using a Ledger Nano S, run:

yarn migrate:v2-beta-testnet

Note: Ledger settings contract data must be on, and browser support must be set to off.

Post-publish steps:

  1. Since we don't re-deploy the WETH9 nor ZRXToken contracts, manually copy over the artifacts for them from 2.0.0 into 2.0.0-beta-testnet and add the Kovan & ganache addresses to both of their networks sections.
  2. We now need to copy over the network 50 settings from the 2.0.0 artifacts to the 2.0.0-beta-testnet artifacts for the newly deployed contracts (e.g Exchange, ERC20Proxy, ERC721Proxy and AssetProxyOwner)

V2 (under development) smart contracts

In order to migrate the V2 (under development) 0x smart contracts to TestRPC/Ganache running at http://localhost:8545, run:

yarn migrate:v2

V1 smart contracts

In order to migrate the V1 0x smart contracts to TestRPC/Ganache running at http://localhost:8545, run:

yarn migrate:v1

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 24

Native requirements
24 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xproject/base-contract
Environment
{
  "local_name": "@0xproject/base-contract",
  "alias": false,
  "peer_metadata": null
}
^2.0.2runtime
@0xproject/order-utils
Environment
{
  "local_name": "@0xproject/order-utils",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
@0xproject/sol-compiler
Environment
{
  "local_name": "@0xproject/sol-compiler",
  "alias": false,
  "peer_metadata": null
}
^1.1.2runtime
@0xproject/subproviders
Environment
{
  "local_name": "@0xproject/subproviders",
  "alias": false,
  "peer_metadata": null
}
^2.0.2runtime
@0xproject/typescript-typings
Environment
{
  "local_name": "@0xproject/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^2.0.0runtime
@0xproject/utils
Environment
{
  "local_name": "@0xproject/utils",
  "alias": false,
  "peer_metadata": null
}
^1.0.8runtime
@0xproject/web3-wrapper
Environment
{
  "local_name": "@0xproject/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^2.0.2runtime
@ledgerhq/hw-app-eth
Environment
{
  "local_name": "@ledgerhq/hw-app-eth",
  "alias": false,
  "peer_metadata": null
}
^4.3.0runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^1.0.6runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
3.0.22runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.5runtime
@0xproject/abi-gen
Environment
{
  "local_name": "@0xproject/abi-gen",
  "alias": false,
  "peer_metadata": null
}
^1.0.8development
@0xproject/dev-utils
Environment
{
  "local_name": "@0xproject/dev-utils",
  "alias": false,
  "peer_metadata": null
}
^1.0.7development
@0xproject/tslint-config
Environment
{
  "local_name": "@0xproject/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^1.0.7development
@0xproject/types
Environment
{
  "local_name": "@0xproject/types",
  "alias": false,
  "peer_metadata": null
}
^1.0.1development
@types/yargs
Environment
{
  "local_name": "@types/yargs",
  "alias": false,
  "peer_metadata": null
}
^10.0.0development
copyfiles
Environment
{
  "local_name": "copyfiles",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
yargs
Environment
{
  "local_name": "yargs",
  "alias": false,
  "peer_metadata": null
}
^10.0.3development
@ledgerhq/hw-transport-node-hid
Environment
{
  "local_name": "@ledgerhq/hw-transport-node-hid",
  "alias": false,
  "peer_metadata": null
}
^4.3.0optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "ffb1a4229682e75f29873ac15a3b26b0d23262df",
  "tarball": "https://registry.npmjs.org/@0xproject/migrations/-/migrations-1.0.9.tgz",
  "integrity": "sha512-soYxQcdBwZp0Uo1tOwQS+uRRosZaHHKAD5tRTEtPTuEjo5/lkJtSLcpRfk5gXO8IQ0nFBh2DYKgMqCwsgQKntQ==",
  "fileCount": 341,
  "unpackedSize": 46017918,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbomemCRA9TVsSAnZWagAAy3QQAIDVymvOp3b6nEuGaym0\nN6mGlwGUfbiSKw7lpdrKzSUN3vJZBYsiFA69d4lOGwS75TylNDkVhjln9HrZ\nKukfi8hS3rZuEUEaQ9XQLI3GhMT9MLJ6G4hn8AEuF26MrRrlLTvq/oDBzxRb\nqrudDTjr4+VDzGL0rrxIr9tD/uFeT8sLrUjn1Bintl6W64k0qgCwxjvgjL90\nOChizDbQYF9iHaiKfRU3zVOKrnve4P8HVHjjMIPyI3Gg/jD2mJUrP5kUc95F\nevcY/KBFnnBz/hGUxehJJJqWPfqzJv6w923iym4EEkG+k8wovVG0EZXgG6BS\n9H4N7vIMECuWwgMQU8Jvn9U6A7ZCVnS3K4i09fgos875OAmuC5L7l2YVazlb\nnq3IxIU0xh7U/gIdOrnkwDrDoGzSTHXqIU6iz17lnOCx1oWdiAVdkmwbfayd\nEIMi8hNqyG89XiJvxf/uTWEDiZjs0wPlKywg9qdFshFrbkfqtsu5OkEpy4vq\nUsV6LMPe8wHVCb6vBDvdgavqZhDt+HyP72fq99ufhZnz3+c66Bk4eAIaLi3Q\n3iOZX4WjGmMjTouXQ4ZTyQfWbOV5eE7KYx2CqQscSfr7JhjEtjxQZ4x3a7uc\noSEOJlmD+ELViERLgGRS+v/7byBuQESnYTNH0PKYdRK2pQk/9illiKiYVLO2\n9cRk\r\n=dYbl\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIDbc3/5w68gIMxmPF439zNFBHZWrgYPM/3EFioHP+urXAiEAuB5k+qyj5wAEP8uMa8JiRq/zE37Bm4ww9d//0Z/Z8kw="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:77862b5bbcc28acd68e6bb2cbd58ec87169d8ab04b8bcd55dbb4db2f1f99ff75

Other collected versions

1.0.144 Oct1.0.1328 Sept1.0.1225 Sept1.0.1125 Sept1.0.1021 Sept1.0.818 SeptView all collected versions →