文件名称:sampleUsingTellor:usingTellor软件包的示例仓库
文件大小:63KB
文件格式:ZIP
更新时间:2024-06-03 03:02:27
JavaScript
样例项目UsingTellor 柜员Oracle是一个去中心化的Oracle。 它为合同提供了与链外安全交互并从其获取数据的选项。 有关Tellor结帐的更多详细信息,请访问我们的,和页面。 快速参考如下: 在您的项目中实施Tellor这个已经包含了软件包。 如何使用 1.克隆项目并安装依赖项 git clone git@github.com:tellor-io/sampleUsingTellor.git npm install 2.使用方法 只需继承UsingTellor合同,将Tellor地址作为构造函数参数传递即可: 这是一个例子 import "usingtellor/contracts/UsingTellor.sol" ; import "usingtellor/contracts/TellorPlayground.sol" ; contract BtcPriceCont
【文件预览】:
sampleUsingTellor-master
----.env.example(282B)
----migrations()
--------1_initial_migration.js(125B)
--------2_sampleUsingTellor.js(807B)
----contracts()
--------SampleUsingTellor.sol(1KB)
--------Migrations.sol(381B)
----test()
--------testSampleTellor.js(1KB)
----truffle-config.js(1KB)
----README.md(8KB)
----.gitignore(60B)
----package-lock.json(211KB)
----package.json(694B)