Youssef Profile picture
Dec 7 7 tweets 3 min read Read on X
Now that the dust has settled and we're all friends again

Let's see how this Solana-Base actually works under the hood

Settle down, relax and follow the thread 🧵 Image
How do transactions actually move between Base and Solana?

- The transaction is submitted on Base/Solana
- The gas is paid and the instruction is added to the transaction
- Validators pick up events and relay the transaction to Solana/Base
What if you want to bridge a Solana token to Base?

Just deploy a canonical ERC20 using the `CrossChainERC20Factory` (and seed liquidity).

Every SPL token gets its own deterministic ERC20 on Base. No permission needed.

Works both ways - deploy Base tokens on Solana too. Image
The bridge uses a simple rule to prevent double-spending:

On the source chain: Native tokens get LOCKED and Foreign tokens get BURNED

On the destination chain: Native tokens get UNLOCKED and Foreign tokens get MINTED Image
As you can see, those are some basic token bridging mechanics. However, the REAL INNOVATION lies in the Twin Contracts:

- Every Solana wallet gets a deterministic smart contract on Base called a "Twin"
- So your Solana wallet can interact with Base protocols using its Twin Image
When you attach one or more contract call(s) to a bridge message:

- The call executes FROM your Twin contract
- The Twin becomes msg.sender on Base
- You get full Base smart contract capabilities from Solana

As it's shown in the video
Want to learn more? Read the docs
docs.base.org/base-chain/qui…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Youssef

Youssef Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(