文件名称:tezos-example-box:使用Truffle开发Tezos的简单示例框
文件大小:167KB
文件格式:ZIP
更新时间:2024-05-30 10:40:26
javascript smart-contracts blockchain truffle ligo
Tezos示例框 注意:实验性的。 目前仅设计用于演示目的。 此框包含一个Counter和SimpleStorage合同,以显示Tezos LIGO与Truffle集成的基础。 先决条件 用于LIGO编译和运行本地沙盒Tezos节点。 v8.9.4至v12.2.0 安装 全局安装Truffle。 确保安装truffle@tezos 。 npm install -g truffle@tezos 下载盒子。 这也需要安装必要的依赖项。 truffle unbox tezos-example 用法 编译示例智能合约 truffle compile 启动本地ganache-cli沙盒Tezos节点 npm run start-sandbox 迁移合同 truffle migrate 运行合同测试 truffle test 沙箱管理 此框中提供了归档模式ganache-cli沙箱T
【文件预览】:
tezos-example-box-master
----truffle-box.json(297B)
----migrations()
--------1_initial_migration.js(201B)
--------3_deploy_counter.js(112B)
--------2_deploy_simple_storage.js(130B)
----scripts()
--------sandbox()
----contracts()
--------Counter.ligo(508B)
--------SimpleStorage.ligo(172B)
--------Migrations.ligo(385B)
----LICENSE(1KB)
----test()
--------counter.test.js(733B)
--------simpleStorage.test.js(397B)
----truffle-config.js(753B)
----README.md(2KB)
----.gitignore(37B)
----package-lock.json(734KB)
----package.json(696B)