SwaySwap简介:以太坊模块化执行层上的极速 DEX (Introducing SwaySwap:A Blazingly Fast DEX on Ethereum's Modular Execution Layer)

Introducing SwaySwap: A Blazingly Fast DEX on Ethereum's Modular Execution Layer

Today Fuel Labs is proud to announce the launch of a Uniswap-like decentralized application running on a persistent Fuel devnet: SwaySwap.

今天,Fuel Labs 自豪地宣布推出一个类似 Uniswap 的去中心化应用程序,该应用程序在持续的 Fuel devnet上运行:SwaySwap。

Please try out SwaySwap here: https://fuellabs.github.io/swayswap

请在此处试用 SwaySwap https://fuellabs.github.io/swaywap

Both the Sway contracts and TypeScript frontend are completely free and open-source, and available on GitHub here: https://github.com/fuellabs/swayswap

Sway 合约和 TypeScript 前端都是 完全免费和开源的,可以在 GitHub 上找到:https://github.com/fuellabs/swaywap

作为用户,你能做什么?(What can you do as a user?)

  • Create a browser-based integrated Fuel wallet. (standalone wallet coming soon)
    创建一个基于浏览器的集成Feul钱包。 (独立钱包即将推出)

  • Faucet test ETH to your wallet.
    在水龙头领取 test ETH 到你的钱包。

  • Swap two different kinds of native assets: test ETH and test DAI. Native assets means no more approve + transferFrom!
    交换两种不同的原生资产:test ETH 和 test DAI。原生资产意味着不再有approve + transferFrom! (译者注:就是不需要跨链转账)

  • Pool native assets.
    汇集原生资产

The assets being swapped, transferred, and created as LP tokens are native assets, not tokens. They have the same first-class features as ETH does on Ethereum: they can be pushed with contract calls, and contracts have a balance of assets.

作为 LP 代币进行交换、转移和创建的资产是 原生资产,而不是代币。它们具有与以太坊上的 ETH 相同的一流特性:它们可以通过合约调用被 pushed,并且合约具有资产余额。

工程师和开发人员的 3 个关键要点 (The 3 key takeaways for engineers and developers)

  • This is built with a new smart contract language called Sway. Sway learns from the shortcomings of Solidity and strengths of Rust, delivering an unparalleled developer experience.
    这是使用称为 Sway 的,全新的智能合约语言构建的。 Sway 明白 Solidity 的缺点和 Rust 的优点,(学习改进后)提供了无与伦比的开发者体验。

  • Sway targets a novel, blazingly fast blockchain virtual machine, the FuelVM. The FuelVM is effectively the EVM, improved, and with waste reduced. No need to learn an entirely different smart contract programming model; if you can write contracts for the EVM you already know how to write contracts for the FuelVM!
    Sway 的目标是一种新颖、速度极快的区块链虚拟机,即 FuelVM。 FuelVM 实际上是 EVM,经过改进并减少了浪费。无需学习完全不同的智能合约编程模型;如果您可以编写EVM合约,那么您已经知道如何编写FuelVM合约!

  • SwaySwap runs on a completely new execution layer: Fuel, a UTXO-based modular execution layer.
    SwaySwap 在一个全新的执行层上运行:Fuel,一个基于 UTXO 的模块化执行层。


As the fastest modular execution layer, Fuel brings globally accessible scale to Ethereum. The result is maximum security and the highest flexible throughput. Read more about modular execution layers here.

作为最快的模块化执行层,Fuel 为以太坊带来了全球可访问的规模。结果是最大的安全性和最高的灵活吞吐量。在此处阅读有关模块化执行层的更多信息。

This demonstration should also dispel the false idea that UTXO-based blockchains can’t have a similar user experience to Ethereum. Other UTXO-based smart contract systems of the past saw users experience contention when trying to interact with the same contract at the same time. Fuel has no contention issues thanks to a research breakthrough in blockchain design: malleable transactions. Applications on Fuel can be interacted with in the same way as those on Ethereum directly.

该演示还可以消除基于 UTXO 的区块链无法拥有与以太坊类似用户体验的错误想法 。过去其他基于 UTXO 的智能合约系统在尝试同时与某一个合约交互时,会出现 用户体验争用。由于区块链设计的研究突破,Fuel 没有争用问题,请查看:可延展交易。 Fuel 上的应用可以直接与以太坊上的应用进行交互。

As a modular execution layer, Fuel can achieve global throughput in a way not possible with monolithic chains, all while inheriting security from Ethereum. Building on Fuel is building on Ethereum. #BeyondMonolithic

作为模块化执行层,Fuel 可以用单片链无法实现的方式实现全局吞吐量,同时继承以太坊的安全性。建构在 Fuel上 就是 上建构在以太坊上。 #BeyondMonolithic

Read the Sway Book to start developing: https://fuellabs.github.io/sway/latest
阅读Sway手册,马上开始开发:https://fuellabs.github.io/sway/latest

补充说明 (Additional Notes)

  • This is a demo application on a devnet. It is not a mainnet deployment.
    这是一个 devnet 上的演示应用。它不是主网的部署。

  • The block explorer is under active construction and an early version can be found here: https://fuellabs.github.io/block-explorer-v2
    区块浏览器正在积极构建中,早期版本可以在这里找到:[https://fuellabs.github.io/block-explorer-v2](https://fuellabs.github.io/block-explorer-v2 /)

  • Fuel will be supporting Ethereum-based key management in the future (i.e. MetaMask and WalletConnect for account management and transaction signing).
    Fuel 将在未来支持基于以太坊的密钥管理(即 MetaMask 和 WalletConnect 用于账户管理和交易签名)。

  • While currently a standalone network, future Fuel networks will be fully bridged to Ethereum (testnets, then mainnet), so that Ethereum assets can be used in Fuel execution contexts.
    虽然目前是一个独立的网络,但未来的Fuel网络将完全跨链到以太坊(测试网,然后是主网),进而让以太坊资产可以在Fuel执行环境中使用。

赞赏