基于区块链的毕业设计Broxus Ethereum <-> FreeTON bridge smart contracts – Broxus以太坊<;->;弗里顿桥智能合约
本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Broxus Ethereum <-> FreeTON bridge smart contracts – Broxus以太坊<;->;弗里顿桥智能合约 是一篇很好的国外资料
Broxus Ethereum <-> FreeTON bridge smart contracts
Set of smart contracts, docs, tests and additional tools for the Bridge between the Ethereum and Free TON networks.
Configuration
Clone settings.template.env
into the settings.env
and fill the data. Specify seeds for Ethereum and TON.
Docker run
After configuration is specified, run docker-compose in a single command
set -a; source settings.env; set +a; docker-compose up -d
Local run
This section explains how to run and test contracts locally.
Node version
Following versions were used for development
npm --version 6.14.8 node --version v10.22.1
Installation
Install all the dependencies both for FreeTON and Ethereum parts.
npm install
Ethereum
Run the local Ethereum node
By default, the RPC will be available on the http://127.0.0.1:8545
ganache-cli
Deploy the smart contracts
cd ethereum/ truffle migrate
FreeTON
Run the local TON node
Use the TON local-node for local environment.
docker run --rm -d --name local-node -p80:80 tonlabs/local-node
Prepare the smart contracts
By default, there’re all the necessary artifacts at the free-ton/build/
directory. To rebuild the contracts, use the one liner:
set -a; source settings.env; set +a; npm run compile-ton
Run the migrations
set -a; source settings.env; set +a; npm run migrate-ton
Run the tests
set -a; source settings.env; set +a; npm run test-ton
Broxus Ethereum<;->;FreeTON桥智能合约
一套智能合约、文档、测试和附加工具,用于连接以太坊eth和免费网络。
配置
克隆设置.template.env进入设置.env并填写数据。指定以太坊eth和吨的种子。
Docker运行
指定配置后,在单个命令中运行docker compose
set -a; source settings.env; set +a; docker-compose up -d
本地运行
本节介绍如何在本地运行和测试契约。
节点版本
以下版本用于开发
npm --version 6.14.8 node --version v10.22.1
安装
安装FreeTON和Ethereum部件的所有依赖项。
npm install
以太坊eth
部署智能合约
默认情况下,RPC将在http://127.0.0.1:8545
ganache-cli
FreeTON
cd ethereum/ truffle migrate
准备智能合约
运行迁移
将本地节点用于本地环境。
docker run --rm -d --name local-node -p80:80 tonlabs/local-node
运行测试
默认情况下,free-ton/build/目录中有所有必需的工件。要重建合同,请使用一行代码:
set -a; source settings.env; set +a; npm run compile-ton
Run the migrations
set -a; source settings.env; set +a; npm run migrate-ton
Run the tests
set -a; source settings.env; set +a; npm run test-ton
部分转自网络,侵权联系删除区块链源码网
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Broxus Ethereum <-> FreeTON bridge smart contracts – Broxus以太坊<;->;弗里顿桥智能合约