Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 901 Bytes

File metadata and controls

24 lines (15 loc) · 901 Bytes

Install

  • $ npm -g install truffle
  • $ npm install -g ganache-cli

Compile:

  • $ truffle compile --all

Deploy:

  • Add testnet config in truffle-config.js then $ truffle migrate --reset
  • Or using Remix.

Examples:

Connecting external data feeds to smart contracts:
  • CoingeckoEthUsd.sol: Get ETH/USD spot price from Coingecko.com through DOS Network decentralized oracle. (deployed contract)
Providing safe & distributed random numbers to smart contracts:
  • SimpleDice.sol: Roll a dice using secure, unpreditable, off-chain generated distributed random numbers by DOS Network decentralized oracle. deployed contract

Docs: