Deploying Bancor Contracts for Testing

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


  • node 12.xx

  • npm 6.9.0

  • python 3.7.3

  • 4.9.2


  • 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


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.