基于区块链的毕业设计xDAI omnibridge – xDAI omnibridge公司

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计xDAI omnibridge – xDAI omnibridge公司 是一篇很好的国外资料

xDAI omnibridge

The multi-token extension for the Arbitrary Message Bridge between Ethereum and the xDai chain is the simplest way to transfer ANY ERC20/ERC677/ERC827 token to the xDai chain.

Project Structure

This project is a monorepo created with Yarn Workspaces and Create Eth App.

xdai-omnibridge ├── README.md ├── node_modules ├── package.json ├── .gitignore └── packages     ├── contracts     │   ├── README.json     │   ├── package.json     │   └── src     │       ├── abis     │       │   ├── erc20.json     │       │   └── ownable.json     │       ├── addresses.js     │       └── index.js     ├── react-app     │   ├── README.md     │   ├── node_modules     │   ├── package.json     │   ├── public     │   │   ├── favicon.ico     │   │   ├── index.html     │   │   ├── logo192.png     │   │   ├── logo512.png     │   │   ├── manifest.json     │   │   └── robots.txt     │   └── src     │       ├── App.css     │       ├── App.js     │       ├── App.test.js     │       ├── ethereumLogo.svg     │       ├── index.css     │       ├── index.js     │       ├── serviceWorker.js     │       └── setupTests.js     └── subgraph         ├── README.md         ├── abis         │   └── erc20.json         ├── package.json         ├── schema.graphql         ├── src         │   └── mappings         │       ├── tokens.ts         │       └── transfers.ts         └── subgraph.yaml 

Owing to this dependency on Yarn Workspaces, Create Eth App can’t be used with npm.

Available Scripts

In the project directory, you can run:

React App

yarn react-app:start

Runs the React app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

yarn react-app:test

Runs the React test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.

yarn react-app:build

Builds the React app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Subgraph

yarn subgraph:codegen

Generates AssemblyScript types for smart contract ABIs and the subgraph schema.

yarn subgraph:build

Compiles the subgraph to WebAssembly.

yarn subgraph:auth

GRAPH_ACCESS_TOKEN=your-access-token-here yarn subgraph:auth

yarn subgraph:deploy

Deploys the subgraph to the official Graph Node.


xDAI omnibridge

以太坊eth和xDai链之间的任意消息桥的多令牌扩展是将任何ERC20/ERC677/ERC827令牌传输到xDai链的最简单方法。

项目结构

这个项目是一个monorepo,使用Yarn工作区和Create Eth App创建。

xdai-omnibridge ├── README.md ├── node_modules ├── package.json ├── .gitignore └── packages     ├── contracts     │   ├── README.json     │   ├── package.json     │   └── src     │       ├── abis     │       │   ├── erc20.json     │       │   └── ownable.json     │       ├── addresses.js     │       └── index.js     ├── react-app     │   ├── README.md     │   ├── node_modules     │   ├── package.json     │   ├── public     │   │   ├── favicon.ico     │   │   ├── index.html     │   │   ├── logo192.png     │   │   ├── logo512.png     │   │   ├── manifest.json     │   │   └── robots.txt     │   └── src     │       ├── App.css     │       ├── App.js     │       ├── App.test.js     │       ├── ethereumLogo.svg     │       ├── index.css     │       ├── index.js     │       ├── serviceWorker.js     │       └── setupTests.js     └── subgraph         ├── README.md         ├── abis         │   └── erc20.json         ├── package.json         ├── schema.graphql         ├── src         │   └── mappings         │       ├── tokens.ts         │       └── transfers.ts         └── subgraph.yaml 

由于对纱线工作区的依赖性,Create Eth App不能与npm一起使用。

可用脚本

在项目目录中,您可以运行:

React应用程序

yarn React-应用程序:开始纱线反应-应用程序:测试纱线反应-内部版本:应用程序

以开发模式运行React应用程序。
打开http://localhost:3000在浏览器中查看。

如果您更改了代码,页面将自动重新加载。
您将在控制台中看到生成错误和lint警告。

子图

以交互模式运行React test watcher。
默认情况下,运行与上次提交后更改的文件相关的测试。

纱线子图:codegen

将React app for production构建到build文件夹。
它在生产模式下正确捆绑React,并优化构建以获得最佳性能。

构建被缩小,文件名包括哈希值。
你的应用已经准备好部署了!

纱线子图:生成

纱线子图:auth

为智能合约ABI和子图架构生成AssemblyScript类型。

纱线子图:部署

将子图编译为WebAssembly。

yarn subgraph:auth

GRAPH_ACCESS_TOKEN=your-access-token-here yarn subgraph:auth

yarn subgraph:deploy

将子图部署到正式的图形节点。

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情