Penulis: luthfi0x
Bab ini berisi pengenalan mengenai Eclipse
Note
Eclipse adalah sebuah ETH L2 yang menggunakan Solana sebagai execution layer dan Ethereum sebagai settlement layer
Bab ini berisi tutorial cara mendeploy smart contract ke Eclipse testnet
- Gitpod
- 0.1 Sepolia ETH
mkdir -p /home/gitpod/.config/fish/conf.d/
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
chmod +x /workspace/.cargo/env
/workspace/.cargo/env
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
solana config set --url https://testnet.dev2.eclipsenetwork.xyz
solana-keygen new
Caution
Simpan PK yang dihasilkan!
npm install -g yarn
git clone https://github.com/Eclipse-Laboratories-Inc/testnet-deposit && cd testnet-deposit
yarn install
node deposit.js [Address_SOL_YANG_UDAH_DIBUAT] 0x7C9e161ebe55000a3220F972058Fb83273653a6e 15000000 100 [PK_WALLET_YANG_BERISI_SEPOLIA_ETH] https://rpc.sepolia.org
git clone https://github.com/solana-labs/example-helloworld
cd example-helloworld
npm install
npm run build:program-rust
solana program deploy dist/program/helloworld.so
npm run start
Pastikan hasilnya seperti
Let's say hello to a Solana account...
Connection to cluster established: http://127.0.0.1:8899 { 'feature-set': 2045430982, 'solana-core': '1.7.8' }
Using account AiT1QgeYaK86Lf9kudqKthQPCWwpG8vFA1bAAioBoF4X containing 0.00141872 SOL to pay for fees
Using program Dro9uk45fxMcKWGb1eWALujbTssh6DW8mb4x8x3Eq5h6
Creating account 8MBmHtJvxpKdYhdw6yPpedp6X6y2U9dCpdYaZJdmwV3A to say hello to
Saying hello to 8MBmHtJvxpKdYhdw6yPpedp6X6y2U9dCpdYaZJdmwV3A
8MBmHtJvxpKdYhdw6yPpedp6X6y2U9dCpdYaZJdmwV3A has been greeted 1 times
Success
Copy 8MBmHtJvxpKdYhdw6yPpedp6X6y2U9dCpdYaZJdmwV3A
dan submit di form ini
Join komunitas Discord ZuperHunt jika kamu ada pertanyaan.
- 0.0.1
- Initial Release