Diversify – 多样化区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Diversify – 多样化区块链毕设代写 是一篇很好的国外资料

Diversify

Diversify - 多样化 Diversify - 多样化 Diversify - 多样化 Diversify - 多样化 Diversify - 多样化

Diversify - 多样化

Smart contracts implemented in Solidity for Diversify.

Introduction

The Diversify Token (DIV) is an ERC20 token on the Ethereum Blockchain. It has a deflationary, democratic and diversified character.

The total issuance of the token is 1,000,000,000 DIV. With its diversified underlying asset, the token price is backed and a deflationary structure is implemented by an 1% burning rate with every transaction. The burning stops as soon as a total of 100 000 000 DIV tokens is reached. Additionally, 0.25% of every transaction are sent to the Diversify Foundation Wallet. These funds will be used to invest in shares of renewable energy companies and charity. The foundation rate of 0.25% is part of the upgradable contract, which stands for the convertibility of the contract after the initial deployment. A minimum and maximum for this rate is irreversibly defined between 0% to 2.5%. This enables the Diversify community to have a vote about how high this rate should be. There are three token offerings – a Seed Sale, a Strategic Sale and a Global Sale.

Architecture

The following uml provides a high level overview on the contracts.

Diversify - 多样化

Development

Local environment

npx hardhat node

Mainnet forking

npx hardhat node --fork <https://eth-mainnet.alchemyapi.io/v2/API_KEY>

https://hardhat.org/guides/mainnet-forking.html#mainnet-forking

Build

yarn build

Testing

yarn test

Single files

yarn test test/DiversifyToken.spec.js

Mocha & Chai with Waffle matchers (these are really useful).

https://ethereum-waffle.readthedocs.io/en/latest/matchers.html

Running Tests on VSCode

https://hardhat.org/guides/vscode-tests.html#running-tests-on-visual-studio-code

Console

yarn console  npx hardhat --network localhost console

https://hardhat.org/guides/hardhat-console.html

Coverage

yarn test:coverage

https://hardhat.org/plugins/solidity-coverage.html#tasks

Gas Usage

yarn test:gas

https://github.com/cgewecke/hardhat-gas-reporter

Lint

yarn lint

UML

yarn uml

Watch

npx hardhat watch compile

Deployment

HardHat

npx hardhat node

Mainnet

yarn mainnet:deploy
yarn mainnet:verify
hardhat tenderly:verify --network mainnet ContractName=Address
hardhat tenderly:push --network mainnet ContractName=Address

Rinkeby

yarn rinkeby:deploy
yarn rinkeby:verify
hardhat tenderly:verify --network rinkeby ContractName=Address

Community

Diversify - 多样化 Diversify - 多样化

License

All code in this repository is licensed under MIT.


Diversify

Diversify - 多样化 Diversify - 多样化 Diversify - 多样化 Diversify - 多样化 Diversify - 多样化

Diversify - 多样化

Smart contracts implemented in Solidity for Diversify.

Introduction

The Diversify Token (DIV) is an ERC20 token on the Ethereum Blockchain. It has a deflationary, democratic and diversified character.

The total issuance of the token is 1,000,000,000 DIV. With its diversified underlying asset, the token price is backed and a deflationary structure is implemented by an 1% burning rate with every transaction. The burning stops as soon as a total of 100 000 000 DIV tokens is reached. Additionally, 0.25% of every transaction are sent to the Diversify Foundation Wallet. These funds will be used to invest in shares of renewable energy companies and charity. The foundation rate of 0.25% is part of the upgradable contract, which stands for the convertibility of the contract after the initial deployment. A minimum and maximum for this rate is irreversibly defined between 0% to 2.5%. This enables the Diversify community to have a vote about how high this rate should be. There are three token offerings – a Seed Sale, a Strategic Sale and a Global Sale.

Architecture

The following uml provides a high level overview on the contracts.

Diversify - 多样化

Development

Local environment

npx hardhat node

Mainnet forking

npx hardhat node --fork <https://eth-mainnet.alchemyapi.io/v2/API_KEY>

https://hardhat.org/guides/mainnet-forking.html#mainnet-forking

Build

yarn build

Testing

yarn test

Single files

yarn test test/DiversifyToken.spec.js

Mocha & Chai with Waffle matchers (these are really useful).

https://ethereum-waffle.readthedocs.io/en/latest/matchers.html

Running Tests on VSCode

https://hardhat.org/guides/vscode-tests.html#running-tests-on-visual-studio-code

Console

yarn console  npx hardhat --network localhost console

https://hardhat.org/guides/hardhat-console.html

Coverage

yarn test:coverage

https://hardhat.org/plugins/solidity-coverage.html#tasks

Gas Usage

yarn test:gas

https://github.com/cgewecke/hardhat-gas-reporter

Lint

yarn lint

UML

yarn uml

Watch

npx hardhat watch compile

Deployment

HardHat

npx hardhat node

Mainnet

yarn mainnet:deploy
yarn mainnet:verify
hardhat tenderly:verify --network mainnet ContractName=Address
hardhat tenderly:push --network mainnet ContractName=Address

Rinkeby

yarn rinkeby:deploy
yarn rinkeby:verify
hardhat tenderly:verify --network rinkeby ContractName=Address

Community

Diversify - 多样化 Diversify - 多样化

License

All code in this repository is licensed under MIT.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/24944.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Diversify – 多样化区块链毕设代写

提供最优质的资源集合

立即查看 了解详情