Skip to content

classicdelta/Smart-Contracts

 
 

Repository files navigation

Classic Delta Smart Contracts

Introduction of Classic Delta Smart Contracts

Introduction

Vision:

Mission:

Strategy:

Getting Started

npm install

Private testnet

To start a private testnet, make sure ganache-cli is properly installed. If you haven't done so before, install it by:

npm install -g ganache-cli

Starting private testnet

npm run ganache

Run test

truffle test --network ganache

Console

truffle console --network live

Test network

web3.eth.getBlockNumber((e, block) => { console.log(block)})

Check HD wallet address

web3.eth._requestManager.provider.addresses[0]

Migration

To test network

Migrating the code to Ganache test network can be done only after starting ganache-CLI by:

npm run ganache

Migration command to just started ganache network:

truffle migrate --reset --network ganache

To main network - costs involved

Make sure you have specified a .env file according to .env.example provided. Then run the following command:

truffle migrate --reset --network live

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.0%
  • Solidity 37.5%
  • Shell 8.5%