0.2.0 • Published 6 years ago

monetarycoin-distribution-dapp v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

MonetaryCoin PreDistribution-DApp

A DAPP for interacting with the MonetaryCoin distribution contract

MonetaryCoin Distribution DAPP

App Deployed to https://MonetaryCoin.io

Additional info

MonetaryCoin Homepage

MonetaryCoin smart contracts

White Paper

Core components

API Providers

  • Infura.io as JsonRPC provider (fallback for non-web3 browsers)

Features

  • Distribution general info
  • Commit to specific Window
  • Withdraw token after window is closed
  • Live Update from the blockchain

MonetaryCoin Distribution ABI

MonetaryCoin Distribution ABI

To initiate the contract we use

web3.eth.contract(distributionAbi)

Like all other network communication in the app, calls to erc20 contracts are done inside app/containers/Dashboard/saga.js. ERC20 Abi can be imported using

import { distributionAbi } from 'utils/contracts/abi';

npm scripts for MonetaryCoin PreDistribution-DApp:

npm run build:dll to build webpack DLL required for development.

npm run start to start development mode. Go to http://localhost:3002 - changes will be reflected in realtime using hot module reloading.

npm run build to create bundle for publishing

npm run generate to create new components / containers using the generator.

For more documentation regarding the react setup see react-boiledplate docs or the official repo.

After build, webpack monitor will generate stats about bundle size:

eth-hot-wallet webpack-monitor

License

This project is licensed under the MIT license, Copyright (c) 2018 The Monetary Foundation For more information see LICENSE.md.