Arro Token Contract – 阿罗代币合约区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Arro Token Contract – 阿罗代币合约区块链毕设代写 是一篇很好的国外资料

Arro Token Contract

This repo contains the solidity contract code for the Arro.io (ARRO) ERC20 Token. It uses OpenZeppelin SDK to create an upgradeable ERC20 Token contract.

Installation

Install yarn and install dependencies

yarn install 

Development

Use a development blockchain to test the deployment of the smart contract. In another tab / window run:

npx ganache-cli --deterministic 

Take note of the accounts created.

Then compile and deploy

npx oz compile npx oz deploy 

When deploying run the initialize() function with the expected owner.

To test instance methods on the contract use

npx oz call 

Example:

? Pick a network development ? Pick an instance ArroToken at 0xA57B8a5584442B467b4689F1144D269d096A3daF ? Select which function owner() ✓ Method 'owner()' returned: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 

To test transactions similarly use

npx oz send-tx 

Use the flag -f to specific from to test a transaction

Testing

TDB

Any questions reach out to robinhood@arro.io

Merge pull request


Arro代币合约

本回购协议包含阿罗约(ARRO)ERC20代币。它使用openzeppelinsdk创建一个可升级的ERC20令牌契约。

安装

安装yarn并安装依赖项

yarn install 

开发

使用开发区块链blockchain测试智能合约的部署。在另一个选项卡/窗口中运行:

npx ganache-cli --deterministic 

记录创建的帐户。

然后编译并部署

npx oz compile npx oz deploy 

在部署时使用预期所有者运行initialize()函数。

要测试契约上的实例方法,请使用

npx oz call 

示例:

? Pick a network development ? Pick an instance ArroToken at 0xA57B8a5584442B467b4689F1144D269d096A3daF ? Select which function owner() ✓ Method 'owner()' returned: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 

要测试事务,请类似地使用

npx oz send-tx 

使用标志-f来指定from来测试事务

测试

TDB

任何问题都可以联系到robinhood@arro.io

Merge pull request

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情