r001 / dpass

Dpass contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diamond network Dpass ERC-721 smart contract

One of the main purposes of Diamond Network Project is to create a diamond backed stable coin. Each diamond has his own Dpass contract with purchase history, attributes like price, sale ability and etc. To use the services of the platform you will need a utility token called DPT - Diamond Platform Token. Current repository contains the ERC721 compatible smart contract of Dpass token.

Prerequisities

In order to compile smart contracts you need to install Dapphub's utilities. Namely: dapp, seth, solc, hevm, and ethsign.

Command Description
bash <(curl https://nixos.org/nix/install) install nix package manager.
. "$HOME/.nix-profile/etc/profile.d/nix.sh" load config for nix
git clone --recursive https://github.com/dapphub/dapptools $HOME/.dapp/dapptools download dapp seth solc hevm ethsign utilities
nix-env -f $HOME/.dapp/dapptools -iA dapp seth solc hevm ethsign install dapp seth solc hevm ethsign. This will install utilities for current user only!!

Installing smart contracts

As a result of installation .abi and .bin files will be created in dpt-token/out/ folder. These files can be installed later on mainnet.

Command Description
git clone https://github.com/Cdiamondcoin/dpass.git Clone the smart contract code.
cd dpass && git submodule update --init --recursive Update libraries to the latest version.
cd lib/openzeppelin-solidity/ && ln -s contracts src Make openzeppelin lib compatible with dapp tools.
cd ../../ && dapp test Compile and test the smart contracts.

Building smart contracts

The build command invokes solc to compile all code in src and lib to out.

dapp build

Deploying smart contracts

In order to deploy smart contracts you need to do the followings.

  • Deploy dpass/out/Dpass.abi dpass/out/Dpass.bin to install Dpass smart contract.

Authors

License

This project is licensed under the GPL v3 License - see the LICENSE for details.

About

Dpass contract

License:GNU General Public License v3.0


Languages

Language:Solidity 84.8%Language:Shell 14.8%Language:Makefile 0.4%