Skip to content

MarcelCloud/Eclipse-Testnet-Interaction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

REMEMBER, THIS IS ONLY FOR EDUCATIONAL PURPOSES! NOTHING IS PROMISED!


Amount Raised

Eclipse raised a total of $65M HackVC, Polychain Capital among other Investors image


Gettings Started

Installing Perequisite

sudo apt update
sudo apt upgrade -y

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Reply with 1 image

Environment Variable

. "$HOME/.cargo/env"

image

check RUST version

rustc --version

Install Solana CLI

sh -c "$(curl -sSfL https://release.solana.com/stable/install)"

image

export PATH="/root/.local/share/solana/install/active_release/bin:$PATH"

image

check version if installed properly

solana --version

image

Install dependencies

Reply with y and proceed

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
npm install --global yarn

Checking version

node -v
npm --version
yarn --version

image

Install Anchor

cargo install --git https://github.com/project-serum/anchor anchor-cli --locked

image


Check version

anchor --version

Create a Solana Wallet

solana-keygen new -o /path-to-wallet/my-wallet.json

image

Press ENTER ans save the Info image

Update configuration to use new wallet

solana config set --url https://testnet.dev2.eclipsenetwork.xyz/

image

solana config set --keypair /path-to-wallet/my-wallet.json

Save Solana address

solana address

Import the same seedphrase to Metamask/Rabby Wallet --- for we are gonna send Ethereum Sepolia to it

I renamed it so i won't mix it up with my wallet

image

Request Sepolia gas on your main wallet:

MINE SEPOLIA GAS ---https://sepolia-faucet.pk910.de/ Request from Quicknode --- https://faucet.quicknode.com/ethereum/sepolia image image


Send Sepolia ETH to the wallet imported

image


Clone Eclipse Bridge Script

git clone https://github.com/Eclipse-Laboratories-Inc/testnet-deposit

image

Navigate to testnet-deposit

cd testnet-deposit
npm install

image

AMENDEMENT BEFORE WE PROCEED

Update Node version

sudo apt-get remove nodejs

press `y``` and proceed

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
nvm install --lts
nvm use --lts
node -v

image

Run Bridge script

node deposit.js [Solana Address] 0x7C9e161ebe55000a3220F972058Fb83273653a6e [Amount in Gwei] [Fee in Gwei] [Ethereum Private Key] [Sepolia RPC Endpoint]

Repalce solana address with the one you coped alonside the seedphrase

Amount in GWEI 3000000

Fee in GWEI 100000

Private key [view the private key of that seedphrase imported in Rabby wallet and paste

Sepolia RPC Endpoint -- https://rpc.sepolia.org/


E.g End product will look like this

node deposit.js Cz2CCCtzqUAB97NAkVM6FzdF6d3EPx7pa4pN1JaWwrxz 0x7C9e161ebe55000a3220F972058Fb83273653a6e 3000000 3000000 0xeeeeeeeeeeeeeeeeeeprivatekey https://rpc.sepolia.org/

image

REPEAT PROCESS 3 - 4 TIMES

Ckeck balance

solana balance

image


Creating a Token

spl-token create-token --enable-metadata -p TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

image

Mint Token

spl-token create-account <YOUR_TOKEN_ADDRESS>

Replace with your token address previously deplyed from above step

image

Mint token

spl-token mint <YOUR_TOKEN_ADDRESS> 10000

image

Check token balance

spl-token accounts

image

DONE! !!

THAT'S ALL FOR NOW, REMEMBER, THIS IS ONLY FOR EDUCATIONAL PURPOSES! NOTHING IS PROMISED!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published