LogoLogo
  • Introduction
  • Sequencer
  • Cross VM Calls
  • Start Building
    • Get Whitelisted
    • Lumio on Optimism Canary Mainnet
    • Lumio on Optimism Testnet
      • Network Information
        • Contracts
      • Use Testnet
        • Pontem Wallet
        • Other Wallets
        • CLI
        • Faucet
        • Bridging
        • Whitelist
      • Deploy on Move VM
      • Deploy on EVM (Hardhat)
      • Deploy on EVM (Foundry)
      • Block Explorer
    • Lumio on Solana Devnet
      • How to connect
      • Native Bridge
      • Deploy on SVM
      • Ecosystem
  • Fees
  • VMs Differences
    • SVM
    • EVM
    • Move VM
  • Running a Node
  • Ecosystem
Powered by GitBook
On this page
  • Use Bridge
  • Architecture
  • Withdrawals
Edit on GitHub
  1. Start Building
  2. Lumio on Solana Devnet

Native Bridge

PreviousHow to connectNextDeploy on SVM

Last updated 9 months ago

Use Bridge

To be able to use the native bridge you need to get .

Native bridging is available on Solana devnet. The bridge deposits funds only to SVM for now and uses SVM addresses.

Programs addresses:

# Portal program is the main contract that is used to interact with the Lumio network. 
# It is used to deposit and withdraw funds from the Lumio network.
5EBHJtUkiN5j2vCtF7MM34W6qnyb2wKbcrL1VmMrYFvh

# Oracle program is used to store the l2 block headers.
8ymtXnUXPvKuvLtoNRdk5VcVFvxReAgSFyjcweNibZ12

# Whitelist program is used to store the list of whitelisted users.
Ccd88Zbbr2oWqoEqoLrZzvbSGMRS3Bs9BKrN4WwPPTrF

# DA
DJf4d9eNT1aLhHnvvMSPut4yYyob86dVTtwY8tdBF35a

Currently, it's possible to bridge only using the Lumio CLI, so download it from our .

After downloading, unpack the archive. The lumio-cli executable will appear. In your terminal, run the following in the directory with the CLI:

chmod +x ./lumio-cli

Now you can move the CLI to your binary path. Configure your Solana CLI to Devnet:

solana config set --url https://api.devnet.solana.com

Create an account if needed:

solana-keygen new -o ./keypair.json

Request some Devnet SOL:

solana airdrop 1

Now we are ready to bridge. Run the following command:

lumio-cli deposit-sol 1 

Switch your CLI back to the Lumio Devnet:

solana config set --url https://svm.devnet.lumio.io

Query the account:

solana account <ADDRESS>

It should show the deposited balance on your account.

Architecture

The bridge is scheduled to launch in early summer. The native bridge will operate similarly to other L2 native bridges:

  1. Send a transaction containing SOL, an SPL token, or an NFT to a Solana Program.

  2. Provide a recipient address.

  3. Specify the VM for the deposit.

  4. The smart contract emits an event.

  5. A sequencer picks up the event and proposes a new deposit transaction to the VM node.

  6. The balance appears on the provided address.

Withdrawals

Withdrawals are expected to experience a delay of 3-7 days with Optimism and approximately 7-24 hours with risc0. Initially, before rollup challenging is enabled, there will be a fixed delay of 7 days from the initiation of a withdrawal.

whitelisted
GitHub