Skip to content

57blocks/evm-to-solana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVM to Solana Token Staking Migration

A token staking implementation showcasing the migration from EVM to Solana, demonstrating the same business logic on both blockchain platforms.

📁 Project Structure

evm-to-solana-contract/
├── contract/
│   ├── evm-staking/      # Solidity + Foundry
│   └── solana-staking/   # Rust + Anchor
└── frontend/
    ├── evm-dapp/        # Vite + wagmi
    └── solana-dapp/     # Vite + Wallet Adapter

✨ Features

  • Token Staking: Stake tokens to earn rewards over time
  • Flexible Unstaking: Partial or full unstaking
  • Reward System: 1% daily reward rate (configurable)
  • Admin Controls: Owner-only configuration functions
  • Blacklist System: Address restriction capabilities

Solana Advanced Features

  • Address Lookup Tables: Optimize transaction size and fees
  • Priority Fees: Dynamic fee adjustment for faster processing
  • Transaction Retry: Automatic retry with blockhash management

🔧 Key Differences

Feature EVM Solana
Language Solidity Rust
Data Storage Contract variables Account structures
Token Standard ERC20 SPL Token
Addresses Contract addresses Program Derived Addresses
Fees Gas (variable) Fixed fees + rent

📖 Documentation

Each component has detailed documentation:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors