Skip to content

Truffle project to deploy an ERC1820 registry

Notifications You must be signed in to change notification settings

eastata/erc1820-registry

Repository files navigation

ERC1820 Registry

A truffle project to deploy an ERC1820 Registry for Permissioned Chains.

Install

npm install -g truffle
npm install

Configuration

Edit truffle-config.js and add networks

Deploy

truffle migrate --network your-network

On deployment you will see the contract that it has been deployed to. Use this address to initialse the Asset Token contract deployment.

Deploy using Docker

  • Ganache network

    • Run Ganache network
      docker run -d -p 8545:8545 --name ganache trufflesuite/ganache-cli:v6.9.1 --gasLimit 0xFFFFFFFF
      
    • Deploy ERC1820 Registry contract
      docker run --network="host" -t eastata/erc1820-registry
      
  • Autonity or other networks with custom settings

    • Create custom ./truffle-config.js file in local dir. Deployment will use network development
    • Deploy ERC1820 Registry contract
      docker run -v "$(pwd)"/truffle-config.js:/app/truffle-config.js --network="host" -t \
      eastata/erc1820-registry \
      deploy -- --f 2 --describe-json
      
      Any options for truffle migrate could be used

About

Truffle project to deploy an ERC1820 registry

Resources

Stars

Watchers

Forks

Packages

No packages published