Giter Site home page Giter Site logo

eclipse-testnet-interaction's Introduction

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!

Fill form: https://docs.google.com/forms/d/e/1FAIpQLSfJQCFBKHpiy2HVw9lTjCj7k0BqNKnP6G1cd0YdKhaPLWD-AA/viewform?pli=1

image


eclipse-testnet-interaction's People

Contributors

mztacat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.