Deploying Bancor Contracts for Testing

Developers can deploy Bancor contracts locally or on a testnet with custom configuration

Prerequisites

  • node 12.xx

  • npm 6.9.0

  • python 3.7.3

  • web3.py 4.9.2

Setup

  • Clone the Contracts Repo

  • Run npm install

  • Run npm run build

  • Run npm run export

  • Run npm test 1 to ensure contracts are operating as expected

  • Optional: run npm test 2 for more thorough testing

  • Run cd solidity/utils

Deploy

In the current directory, create a file named config.json . Add the token info and reserve settings necessary for your deployment (find an example of the config file here).

Run node test_deployment.js './config.json YOUR_NODE_ADDRESS YOUR_PRIVATE_KEY

Your node address would likely be an Infura url or the the url of a local node.

Last updated