Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊桥合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊桥合同区块链毕设代写 是一篇很好的国外资料

Hedera <-> Ethereum Bridge Contracts

This repository contains the smart contracts for the Hedera <-> Ethereum bridge. Contracts consist of the ERC20 WHBAR and the Bridge contract responsible for the minting/burning of tokens.

Contract Addresses & ABI

This is a WIP and the contracts have not been deployed yet.

Development

etherlime – framework used for the development and testing of the contracts

Compilation

Before you deploy the contracts, you will need to compile them using:

etherlime compile --solcVersion 0.6.0 

Scripts

Eth deployment – local

etherlime deploy 

Eth deployment

etherlime deploy --network 'network' --secret '0x..' 

Deploy for testnet with three members

  • Deploys the WHBAR token and Governance contracts

  • Generates three member accounts and send them 0.1 ethers

  • Sets the required validators to be members of the Governance contract

  • Prints out WHBAR, Bridge, Alice, Bob and Carol Wallets

How to run:

etherlime compile --solcVersion 0.6.0 
etherlime deploy ./deployment/testnet-env-deployments.js --compile false --network /network name or id/ --secret /your private key/ 

Diagrams

UML diagram for the 2 major contracts are presented here.

Bridge contract

以太坊eth桥合同” style=”max-width:100%;” alt=”Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊eth桥合同”>

Governance contract

以太坊eth桥合同” style=”max-width:100%;” alt=”Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊eth桥合同”>


Hedera&lt;-&gt;以太坊eth桥合同

此存储库包含Hedera&lt;-&gt;以太坊eth桥的智能合约。合同包括ERC20 WHBAR和负责代币铸造/燃烧的桥梁合同。

合同地址&amp;ABI

这是一个WIP,合同尚未部署。

开发

etherlime-用于合同开发和测试的框架,在部署合同之前,您需要使用以下方式编译它们:

编译

部署WHBAR令牌和治理契约

etherlime compile --solcVersion 0.6.0 

脚本

Eth部署-本地

etherlime deploy 

Eth部署

etherlime deploy --network 'network' --secret '0x..' 

为具有三个成员的testnet部署

  • 部署WHBAR令牌和治理contracts生成三个成员帐户并向它们发送0.1以太
  • 将所需的验证器设置为治理契约的成员
  • 打印WHBAR、Bridge、Alice、Bob和Carol Wallets
  • 这里给出了两个主要合同的UML图。

如何运行:

etherlime compile --solcVersion 0.6.0 
etherlime deploy ./deployment/testnet-env-deployments.js --compile false --network /network name or id/ --secret /your private key/ 

图表

以太坊eth桥合同” style=”max-width:100%;” alt=”Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊eth桥合同”>

桥接契约

以太坊eth桥合同” style=”max-width:100%;” alt=”Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊eth桥合同”>

治理契约

以太坊eth桥合同” style=”max-width:100%;” alt=”Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊eth桥合同”>

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Hedera <-> Ethereum Bridge Contracts – Hedera&lt;-&gt;以太坊桥合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情