Solidity smart-contract flattened source file generation – Solidity智能合约源文件生成区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Solidity smart-contract flattened source file generation – Solidity智能合约源文件生成区块链毕设代写 是一篇很好的国外资料

Solidity smart-contract flattened source file generation

Solidity smart-contract flattened source file generation - Solidity智能合约源文件生成 Solidity smart-contract flattened source file generation - Solidity智能合约源文件生成 Solidity smart-contract flattened source file generation - Solidity智能合约源文件生成

Utility to combine all imports to one flatten .sol file

Installation from npm

npm i @poanet/solidity-flattener

Usage

./node_modules/.bin/poa-solidity-flattener ./contracts/example.sol

It will save flattened source of Solidity smart-contract into ./out directory

Installation from source

git clone https://github.com/poanetwork/solidity-flattener cd solidity-flattener npm install 

You can start script either

npm start "path_to_not_flat_contract_definition_file.sol" 

or without paramaters (path to input file will be extracted from ./config.json)

npm start 

Expected result:

Success! Flat file ORIGINAL_FILE_NAME_flat.sol is generated to ./out directory 

./flatContract.sol – flat .sol file is created in output directory (./out/ by default)

Note: utility doesn’t support aliases at import statements

Config

path ./config.json

{ 	"inputFilePath": "./demo/src/Oracles.sol", 	"outputDir": "./out" } 

Solidity智能合约扁平化源文件生成

Solidity smart-contract flattened source file generation - Solidity智能合约源文件生成Solidity smart-contract flattened source file generation - Solidity智能合约源文件生成>

将所有导入合并到一个flatten.sol文件的实用程序

从npm安装

npm i@poanet/solidity flatter

用法

它将稳定智能合约的源保存到./out目录

您可以启动脚本

从源安装

git clone https://github.com/poanetwork/solidity-flattener cd solidity-flattener npm install 

或不使用参数(将从中提取输入文件的路径/配置.json)

npm start "path_to_not_flat_contract_definition_file.sol" 

预期结果:

npm start 

/平面合同.sol-flat.sol文件是在输出目录中创建的(./out/默认情况下)

Success! Flat file ORIGINAL_FILE_NAME_flat.sol is generated to ./out directory 

注意:实用程序不支持import语句路径中的别名/配置.json

Note: utility doesn’t support aliases at import statements

配置

path ./config.json

{ 	"inputFilePath": "./demo/src/Oracles.sol", 	"outputDir": "./out" } 

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Solidity smart-contract flattened source file generation – Solidity智能合约源文件生成区块链毕设代写

提供最优质的资源集合

立即查看 了解详情