solidity-json-writer:一个帮助生成和构建用于智能合约开发的 JSON 的库

时间:2021-07-24 15:05:55
【文件属性】:
文件名称:solidity-json-writer:一个帮助生成和构建用于智能合约开发的 JSON 的库
文件大小:135KB
文件格式:ZIP
更新时间:2021-07-24 15:05:55
JavaScript Solidity JSON 编写器 一个帮助生成和构建用于智能合约开发的 JSON 的库。 使用该库从智能合约中生成符合 RFC-7159 的 JSON。 要求 坚固性 0.8+ 安装 $ npm install solidity-json-writer 用法 安装后,您可以通过导入来使用该库: pragma solidity ^ 0 . 8 . 0 ; import "solidity-json-writer/contracts/JsonWriter.sol" ; contract ExampleContract { using JsonWriter for JsonWriter.Json; function generateJSON () external pure returns ( string memory ) { JsonWri
【文件预览】:
solidity-json-writer-main
----.gitignore(69B)
----package.json(727B)
----LICENSE(1KB)
----.github()
--------workflows()
----README.md(3KB)
----hardhat.config.js(82B)
----contracts()
--------mocks()
--------JsonWriter.sol(17KB)
----docs()
--------JsonWriter.md(3KB)
----test()
--------JsonWriter.test.js(23KB)
----yarn.lock(329KB)

网友评论