Orb Labs
Search
⌃K

PingPong

PingPong, an end to end application using Earlybird
Here is another application showcasing the end to end functionality and some capabilities of the Earlybird protocol. As the name suggests, the app continuously sends messages between 2 chains until it runs out gas. You can find the code for PingPong in our repository here; the code has both the Thunderbird and Rukh versions showcasing how to use the Thunderbird and Broken link libraries respectively.
The application demonstrates the following:
  1. 1.
    Implementing the recommendations contract
  2. 2.
    Configuring the application with the Earlybird endpoint
  3. 3.
    Sending messages and paying fees
  4. 4.
    Receiving messages that have been sent from other chains
​

Using the PingPong on Testnet

Install Dependencies

  1. 1.
    ​Forge​

Run the workflow

The aforementioned PingPong is deployed on all the Broken links and is ready to send/receive messages utilizing Transport Layer.
​
Setting up your environment
  1. 1.
    Clone the Earlybird Examples repository
  2. 2.
    Init submodules
  3. 3.
    Replace <ADD YOUR MNEMONIC HERE> with your crypto wallet's mnemonic phrase in the following files (Ensure you have testnet tokens. Check the earlybird-ping-pong-app readme for more details)
    1. 1.
      /earlybird-ping-pong-app/script/sendPingOnRukhPingPoingApp.sh
    2. 2.
      /earlybird-ping-pong-app/script/sendPingOnThunderbirdPingPoingApp.sh
Your repository should be ready to use. Run any of the following functions to interact with the PingPong powered by Transport Layer​

Functions

  1. 1.
    make send-thunderbird-ping
    1. 1.
      Sends pings across chains using the thunderbird library
  2. 2.
    makesend-rukh-ping
    1. 1.
      Sends pings across chains using the rukh library
​
In case you have any questions DM us on Discord so we can help you answer your questions.