Fojini Decentralized Exchange – 福吉尼分散交易所区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Fojini Decentralized Exchange – 福吉尼分散交易所区块链毕设代写 是一篇很好的国外资料

Fojini Decentralized Exchange

About

Fojini is a simple Ethereum based decentralized exchange with its own token Fojini, has low or no trading fees if you are lucky. Decentralized exchange allows for trustless exchange of assets and tokens on Ethereum without giving away control of your assets.

Usage

You need to have Metamask Wallet. Connect to the app using your wallet. When connected, your address will show on the top navigation bar. You can deposit your tokens or ether, create orders by choosing the amount of token you want to get in exchange for amount of ether or vice versa, or fill open orders to make a trade.

Development Project

Deployment

Smart Contracts deployed to Ethereum Rinkeby Testnet and Kovan Testnest. The smart contracts are not upgradeable. App deployed on Heroku and is available on site XXXXX but must have Metamask installed on your computer.

Technology Stack and Tools

  • Metamask Wallet
  • Truffle – development framework
  • React – front end framework
  • Redux – front end state management framework
  • Solidity – ethereum smart contract language
  • Ganache – local blockchain development
  • Web3 – library interact with ethereum nodes
  • JavaScript – logic front end and testing smart contracts
  • Infura – connection to ethereum networks
  • Open Zeppelin – smart contract libraries
  • Oracle – Lighthouse, Rhombus for randomness

Installation

You need to have ganache-cli installed globally using npm!

Clone the project

$ git clone https://github.com/MatricksDeCoder/Fojini-DEX.git $ cd Fojini-DEX
Folder / Directory Structure
  • Fojini Dex
    • migrations
    • public
    • scripts
    • src
      • abis
      • components
      • contracts
      • flats
      • store index.js
    • tests

You will need earlier versions of node e.g 8.10.0 was used

Install dependancies

$ npm install 

Run local blockchain with ganache. Ensure truffle-config.js networks config is your Ganache port. By default it should be host: 127.0.0.1 and port: 7545 or 8545 depending you used GUI or CLI.

$ ganache-cli 

Connect your ganache addresses from list of given addresses to Metamask by copying the private key and importing these private keys to Metamask.

Compile, Test and Migrate Contracts on Ganache To deploy to rinkeby use truffle migrate –reset –network rinkeby Advisable to rerun ganache-cli before each test

$ truffle compile --all $ truffle test ./test/Token.test.js $ truffle test ./test/Exchange.test.js $ truffle migrate --reset --network development

Load exchange with some initial data, orders, trades, cancels etc

$ truffle exec scripts/seed-exchange.js

Run app locally

$ npm run start

To interact with contracts, exchange with Metamask you need Metamask installed If using ganache copy private key from ganache cli to Metmask If want to interact with deployed contracts on other networks not local switch network on Metamask

Other documents for project

Doc Available at About
Design Patterns design_pattern_decisions.md Design pattern decisions
Security avoiding_common_attacks.md Security considerations and implementations
Addresses deployed_addresses.txt Addresses and networks and testnest where contracts deployed
Contributing Contributing.md How to contribute to project

Todos

  • Add more Etheruem tokens to trade
  • Extend the Fojini token
  • Make contract upgradeable
  • Explore protocols like 0x etc
  • Explore more DEFI intergration e.g Compound
  • Explore more complex orders, matching etc and executions on exchange
  • Routing on front end eg Admin panel to show status exchange,execute emergency etc

License

MIT

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.

final draft exchange


使用情况

开发项目

Fojini是一个简单的以太坊eth式分散式交易所,拥有自己的代币Fojini,如果幸运的话,交易费用很低或没有。分散交换允许在以太坊eth上进行资产和代币的无信任交换,而不会放弃对资产的控制权。

部署

您需要有Metamask钱包。使用钱包连接应用程序。连接后,您的地址将显示在顶部导航栏上。你可以存入你的代币或以太币,通过选择你想用以太币交换的代币数量来创建订单,反之亦然,或者填写未结订单进行交易。

技术堆栈和工具

安装

部署到以太坊ethRinkeby Testnet和Kovan Testnest的智能合约。智能合约不可升级。应用程序部署在Heroku上,可在XXXXX站点上使用,但必须在您的计算机上安装Metamask。

文件夹/目录结构

  • Web3-库与以太坊eth节点交互
  • JavaScript-逻辑前端和测试智能合约src abis组件合同公寓商店索引.js测试迁移索引.js
  • abis
  • 组件
  • 合同
  • 公寓
  • 商店索引.js
  • 测试
  • 添加更多以太网要交易的代币
  • 扩展Fojini代币
  • 使合同可升级

项目的其他文档

您需要使用npm在全局范围内安装ganache cli!

克隆项目

$ git clone https://github.com/MatricksDeCoder/Fojini-DEX.git $ cd Fojini-DEX
Todos
  • 探索诸如0x等协议

您将需要早期版本的节点,例如使用8.10.0

安装依赖项

$ npm install 

使用ganache运行本地区块链blockchain。确保块菌-配置文件networks config是您的Ganache端口。默认情况下,它应该是host:127.0.0.1和port:7545或8545,具体取决于您使用的GUI或CLI。

$ ganache-cli 

通过复制私钥并将这些私钥导入Metamask,将您的ganache地址从给定地址列表连接到Metamask。

在Ganache上编译、测试和迁移契约以部署到rinkeby使用truffle Migrate–reset–network rinkeby建议在每次测试之前重新运行Ganache cli

$ truffle compile --all $ truffle test ./test/Token.test.js $ truffle test ./test/Exchange.test.js $ truffle migrate --reset --network development

使用一些初始数据、订单、交易、取消等加载交换

$ truffle exec scripts/seed-exchange.js

在本地运行应用程序

$ npm run start

与合同交互,使用Metamask交换您需要安装Metamask如果使用ganache将私钥从ganache cli复制到Metmask如果希望与其他网络上部署的契约交互,而不是Metamask上的本地交换机网络

许可

Doc Available at About
设计模式 设计模式_决策.md 设计模式决策_攻击.md
安全考虑和实现 地址 已部署_地址.txt
地址和网络以及testnest where部署的合同贡献.md 如何为项目做出贡献 Addresses and networks and testnest where contracts deployed
Contributing Contributing.md How to contribute to project

基本cookies

  • Add more Etheruem tokens to trade
  • Extend the Fojini token
  • Make contract upgradeable
  • Explore protocols like 0x etc
  • Explore more DEFI intergration e.g Compound
  • Explore more complex orders, matching etc and executions on exchange
  • Routing on front end eg Admin panel to show status exchange,execute emergency etc

始终活跃的分析cookies开发
  • Web3-库与以太坊eth节点交互
  • JavaScript-逻辑前端和测试智能合约src abis组件合同公寓商店索引.js测试迁移索引.js
  • abis
  • 组件
  • 合同
  • 公寓
  • 商店索引.js
  • 测试
  • 添加更多以太网要交易的代币
  • 扩展Fojini代币
  • 使合同可升级
  • 探索诸如0x等协议
  • 探索更多定义集成,例如复合
  • 探索更复杂的订单、匹配等以及交换上的执行
  • 在前端例如管理面板上的路由显示状态交换、执行应急etc
  • 设计模式 设计模式_决策.md 设计模式决策_攻击.md 安全考虑和实现 地址 已部署_地址.txt 地址和网络以及testnest where部署的合同贡献.md 如何为项目做出贡献

    MIT

    我们使用可选的第三方分析cookie来了解您如何使用GitHub.com网站所以我们可以打造更好的产品。了解更多。

    final draft exchange

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

    www.interchains.cc

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

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

    提供最优质的资源集合

    立即查看 了解详情