basic-token – 基本代币区块链毕设代写

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

basic-token

A basic smart contract token example from book: ethereum-smart-contract-development-in-solidity-1st-ed

REMIX EXAMPLE PROJECT

Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. It contains 3 directories:

  1. ‘contracts’: Holds three contracts with different complexity level, denoted with number prefix in file name.
  2. ‘scripts’: Holds two scripts to deploy a contract. It is explained below.
  3. ‘tests’: Contains one test file for ‘Ballot’ contract with unit tests in Solidity.

SCRIPTS

The ‘scripts’ folder contains example async/await scripts for deploying the ‘Storage’ contract. For the deployment of any other contract, ‘contractName’ and ‘constructorArgs’ should be updated (along with other code if required). Scripts have full access to the web3.js and ethers.js libraries.

To run a script, right click on file name in the file explorer and click ‘Run’. Remember, Solidity file must already be compiled.

Output from script will appear in remix terminal.


基本代币

书中的一个基本智能合约代币示例:以太坊eth-智能合约-开发-in-solidity-1st-ed

混音示例项目

当Remix第一次加载或者文件资源管理器中没有文件时,就会出现Remix示例项目。它包含3个目录:

  1. “合约”:持有三个复杂程度不同的合约,在文件名中用数字前缀表示
  2. “脚本”:保存两个脚本以部署契约。下文将对此进行解释
  3. “测试”:包含一个“投票”合同的测试文件,其中单元测试具有可靠性

SCRIPTS

“SCRIPTS”文件夹包含用于部署“存储”合约的异步/等待脚本示例。对于任何其他合同的部署,应更新“contractName”和“constructorArgs”(如果需要,还应更新其他代码)。脚本可以完全访问web3.js和ethers.js库

要运行脚本,请在文件资源管理器中右键单击文件名,然后单击“运行”。记住,Solidity文件必须已经编译

脚本的输出将出现在混音终端中

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情