• Hackathons
  • Features
  • Blog

Spark

Spark is an order book built on the fuel.network blockchain.

  • 0 Raised
  • 7 Views
  • 0 Juries

Categories

  • ETHDam - DeFi Track

Gallery

Description

Spark is an order book built on the fuel.network blockchain. It operates using an order book model, allowing users to trade various cryptocurrencies in a secure and transparent manner and enables peer-to-peer trading of cryptocurrencies with high transaction throughput and low fees.

demo - https://app.allspark.gg/
docs - https://docs.allspark.gg/

In Sway, predicates are essentially programs that evaluate to either true or false, without having any side effects. They are used to specify conditions or requirements that need to be met in order for a certain action to be executed.

In the context of the Sway blockchain, a predicate is a script that specifies the rules for a transaction to be valid. When a predicate is included in a transaction, it is executed on the blockchain to determine if the transaction meets the specified conditions. Predicates can be used for a wide range of purposes, including smart contract conditions, multisignature requirements, and more.

Predicates are associated with a predicate address, which is generated from the compiled byte code and is similar to a P2SH address used in Bitcoin. This address can own assets, and users can send assets to it just like any other address. However, to spend the assets associated with the predicate address, the user must provide the original byte code of the predicate along with the predicate data. If the predicate is validated successfully, the assets can then be transferred to the desired destination.

Modules

  • Predicate + Proxy 
    https://github.com/compolabs/ethglobal-predicate

  • Trading View Datafeed
    https://github.com/compolabs/spark-tv-datafeed

  • Data service
    https://github.com/compolabs/spark-data-service

  • Matcher engine

  • Frontend 
    https://github.com/compolabs/spark/tree/fe-for-predicates




Attachments