Catalog npm
Back to packageRELEASE DETAILS

0.0.3

npm

@0xproject/migrations

0x smart contract migrations

Published18 Apr 2018
Direct dependencies10
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 10

Native requirements
10 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xproject/deployer
Environment
{
  "local_name": "@0xproject/deployer",
  "alias": false,
  "peer_metadata": null
}
^0.4.1runtime
@0xproject/utils
Environment
{
  "local_name": "@0xproject/utils",
  "alias": false,
  "peer_metadata": null
}
^0.5.2runtime
@0xproject/web3-wrapper
Environment
{
  "local_name": "@0xproject/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^0.6.1runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.4runtime
@0xproject/dev-utils
Environment
{
  "local_name": "@0xproject/dev-utils",
  "alias": false,
  "peer_metadata": null
}
^0.3.6development
@0xproject/tslint-config
Environment
{
  "local_name": "@0xproject/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^0.4.16development
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.8.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
2.7.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "8f00c4b794a4b24930ca7a2c7682863b7ce9251e",
  "tarball": "https://registry.npmjs.org/@0xproject/migrations/-/migrations-0.0.3.tgz",
  "fileCount": 47,
  "unpackedSize": 680882,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa14caCRA9TVsSAnZWagAAc2AQAJszM6NpwkLU4T3OUa25\nLTb00Uu6lR8E0WY2WqSITLrpfE2xOINTsKEA06uTljgoO3bGyJiizTOHuo0L\nq8QtGyg9ahkd/uS73UBPe0zF1gPvRYGQT4FW8fMOEnifVSzdhozbq6DnRafd\n5hgrvJ5JWnZEGNHYB3OQUGCeAu2ZnOY4xKV8Haw6JLAGXyq9hk+rWQmm75tD\nlgo8RyRNvmBgADYMBMtKIKNPMbwMKPK4kccisgGj4v9zT1Qd8gWGFwqCRxFj\n+9q3/RjdsXadsoJhc3XghXoZgnbZTbEgoi2NZIwDxO8rB49DP000Wz6wAjMB\n9M66g01W7NX3Kx1uyVWzI2QB1/fLilDQmnXM4G8x1fijKG9Fr8FNrEQ/KeBw\nIDkHt8jDFaxd4EseFtTXeODxsdIQoRCh5AMatzBkd6imAvcAS6bqtvQeD4QX\nWdwAGzyER41+KQY3IQZNN5zMA1vg9bsbOaiZvZ7divpNAtYvL2G4xYFyWpdT\nuNVJLnAOuJgSAuevWAvlqnl+Cd9en3QPti/m9WP0CbQBjvLmdhQRIX13QTdl\nyb7ppkItVQHQGiRzAmU3y4rXfChjh+ROvLWBsHxddEsxwWY2dOtYwoYwNrfI\nkqMcnLTqCsL3d7TlsApC+SpsYI/5OswPaOoNtMB6HCf+8bbSoPR2TjcEq+kL\nww2j\r\n=1p0k\r\n-----END PGP SIGNATURE-----\r\n",
  "integrity": "sha512-MTTSZk+bFqCwqEHi4xXlSEgxGW5NZUYtLNIoFQ+1VGcqy4hkjdoXAu+2c40A8I3IWA0RpFZCm565JALIOGsKdw==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIEuAxTtKNyXXXlK7GwXskq3QGzNmlTAwe3LB9GQJwDDPAiEA2NtcfPA6Ju9LlXZ88/1eNvSN+M1SNurEa1hPuKCJ4Zc="
    }
  ]
}

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:abff0c12ed1be3dfd9f77e698eeef7da0f04554fff3c5a634f84a01e5f981501

Other collected versions

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