1.0.4 • Published 4 years ago

dbs-coin v1.0.4

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

DBS_coin

version

node v10.16.0 npm 6.9.0 python env 2.7

run

  • compile smart contract npm run compile

  • build sdk npm pack

example

import {contractAddress, Web3Wrapper, DbsCoinWrapper} from "dbs-coin/wrapper";
const infura = JSON.parse(require('./src/keys/infura.json'))
const privateKeyFile = JSON.parse(fs.readFileSync('./src/keys/privateKey.json', 'utf8'))
const privateKey = privateKeyFile.DBS.privateKey;
const provider = "https://kovan.infura.io/v3/" +infura.token;
const web3Wrapper = new Web3Wrapper(provider, privateKey);
const smartcontractAddress = contractAddress.kovan.DBS.address;
const DbsCoinWrapper = new DbsCoinWrapper(web3Wrapper, blockchainAddress);