[Kickstart] Portales debut on Moonriver Grant Hackathon #1
Labels
documentation
Improvements or additions to documentation
task
A small task in the scope of a bigger project
What is Portales?
Portales is a Cross-Bridge solution for fast wrapping assets. Portales' long-term goal is to make off-chain event listeners (Oyentes) decentralized by incentivizing node maintainers with PORT tokens.
How does Portales work?
A user wants to bridge assets between two chains. By interacting with Portales Front-End DAPP, it is possible to send a request using a Crypto Wallet (i.e., Metamask) to the Portales Smart Contract requesting a cross-chain swap to initiate. Upon receiving the request from the user, a transaction is sent to the blockchain resulting in a SwapStarted event.
A listener instance called Oyente leverage Ethers.js ability to filter EVM events to monitor all SwapStarted events originating from a Portales Smart Contract and handle these as user requests for a cross-chain swap. Oyente is responsible for calling a fillSwapRequest() function on the target chain. There are four possible states for a transaction once Oyente catches a new SwapStarted event:
Oyente is also responsible for populating a database with the following data:
Our authorial API will make this data available for the front-end so the end-user can follow the transaction status live on the web app.
In the Scope of the Moonriver Grant Hackathon, what is the definition of done?
Front-End: Fully functional React App that
Back-End: Complete infrastructure to process user swap requests on the blockchain
Blockchain: Portales Smart Contracts that can
Relevant links:
Moonriver Grant Hackathon
What Are Blockchain Bridges?
Filtering EVM Events using Ethers.js
The text was updated successfully, but these errors were encountered: