OctoBay – 八达湾区块链毕设代写

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

OctoBay

Local Development Setup

Prepare

You need Node v12.18, Go 1.14 and an empty postgres database named chainlink-local with the default postgres:postgres user and port 5432 (or adjust chainlink/.env.sample) as well as a GitHub OAuth app client ID and secret and a personal access token. You need to provide those during installation.

Install

Clone the repository and install its dependencies.

git clone https://github.com/mktcode/octobay && cd octobay && yarn

Now start the local Ethereum node, the Gas Station Network and the Chainlink node and its adapters, all in their own terminal sessions.

yarn evm # or: yarn evm 'mnemonic seed phrase'
yarn evm:gsn
yarn chainlink:node
yarn chainlink:adapters

When running the Chainlink node for the first time, you will be asked to set an email address and a password. You’ll need those in the next step. When the node is running, open http://localhost:6688/config in your browser, login and copy your Chainlink node’s ACCOUNT_ADDRESS to your .env file.

CHAINLINK_NODE_ADDRESS=0x... 

Deploy Contracts

Now you can deploy the contracts. During deployment you will be asked to log in to your Chainlink node, using your email and password from before, so the necessary job specifications can be created for you.

yarn evm:deploy

This will deploy all OctoBay contracts as well as the Chainlink token and an oracle, create jobs for that oracle on the Chainlink node and configure the OctoBay contract accordingly and also make sure all contracts are funded properly.

Run App

Now run the app and open http://localhost:3000 in your browser.

yarn app

奥克托湾

本地开发设置

准备

您需要节点v12.18、Go 1.14和一个名为chainlink local的空postgres数据库postgres:postgres用户和端口5432(或调整chainlink/)。环境样品)以及GitHub OAuth应用程序客户端ID和secret以及个人访问令牌。您需要在安装过程中提供这些。

安装

克隆存储库并安装其依赖项。

git clone https://github.com/mktcode/octobay && cd octobay && yarn

现在启动本地以太坊eth节点、加油站网络和Chainlink节点及其适配器,所有这些都在它们自己的终端会话中。

yarn evm # or: yarn evm 'mnemonic seed phrase'
yarn evm:gsn
yarn chainlink:node
yarn chainlink:adapters

首次运行Chainlink节点时,将要求您设置电子邮件地址和密码。下一步你需要这些。当节点运行时,打开http://localhost:6688/config在浏览器中,登录并将链接节点的帐户地址复制到.env文件中。

CHAINLINK_NODE_ADDRESS=0x... 

部署合同

现在您可以部署契约了。在部署期间,将要求您使用以前的电子邮件和密码登录到Chainlink节点,以便为您创建必要的作业规范。

yarn evm:deploy

这将部署所有OctoBay合同以及Chainlink令牌和oracle,在Chainlink节点上为该oracle创建作业,并相应地配置OctoBay合同,还将确保所有合同都得到适当的资金支持。

运行应用程序

现在运行应用程序并打开http://localhost:3000。

yarn app

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情