Join the Rootstock Discord Community to get the latest updates from the Rootstock Ecosystem!

Flyover Protocol Documentation | Tools

Find a list of tools, scripts, and github repos to build dApps using the flyover protocol.

Liquidity Provider Server (LPS)

This is a server that interacts with a Liquidity Bridge Contract (LBC) to provide liquidity for users as part of the Flyover protocol. The server runs a local Liquidity Provider (LP), and also allows connections from remote LPs. See the Configuration File for LPS.

The Testnet LP Server is hosted at: https://flyover-lps.testnet.rsk.co/

System requirements:

  • go 1.16.5 or above
  • DB Browser for Sqlite (or equivalent) or sqlite3 cli tool

How to Set up LP Server Locally

See the liquidity provider repo for instructions.

Alternatively, you may choose to use a Testnet instance of the Liquidity Provider Server: https://flyover-lps.testnet.rsk.co/

Hardhat

In this custom script you can find an example of the hashQuote call, this uses hardhat + ethers.js to trigger hashQuote. See an example of the execution below:

npx hardhat hash-quote --quote 
'{"fedBTCAddr":"2N6JWYUb6Li4Kux6UB2eihT7n3rm3YX97uv","lbcAddr":"0x95357AE436F74E87d54f9Da6CC5fB88d91044bc3","lpRSKAddr":"0xd053b9B695BEb7104deEa56773197F05AD03E4e0","btcRefundAddr":"mnYcQxCZBbmLzNfE9BhV7E8E2u7amdz5y6","rskRefundAddr":"0x20E75e7287763de60851Ed020089ABf17a1e9a4d","lpBTCAddr":"mnYcQxCZBbmLzNfE9BhV7E8E2u7amdz5y6","callFee":1985872901000,"penaltyFee":1000000,"contractAddr":"0xa7047857679889B59fe01f6EFD01D074ab2bc2BF","data":"0xeb159db5000000000000000000000000caa520afa3c8ec7ce85bfca5a62f36159c73faa5000000000000000000000000e66fc9900e017c837f2f54fe3958f98f36064c11","gasLimit":3000000,"nonce":8863518911232213897,"value":50000000000000000,"agreementTimestamp":1659431697,"timeForDeposit":3600,"callTime":7200,"confirmations":2,"callOnRegister":false}'

Quote hash:  0x4e8cfbdcd99d1ff57ce4773ebe21d5f2c8ff240b38e751353688d6c9daba1708

Github Repos

Receive updates

Get the latest updates from the Rootstock ecosystem

Loading...