codieboomboom / gm-program

Chainlink Bootcamp Day 1 Exercise 1 solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Codes from the Solana bootcamp hosted by Chainlink

How to run

Compile

To compile the solana program:

cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/program

Select & Run test cluster

You will need to install the Solana CLI first before selecting the test cluster (either local or remote devnet)

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

Test your installation:

solana --version

Local cluster

Select local cluster for testing and deploy.

solana config set --url localhost

Create a new keypair/wallet for interacting on our local validator node:

solana-keygen new

Start local validator

solana-test-validator

Test Devnet

Change the endpoint of your CLI to the devnet and also asking for some funds

solana config set --url https://api.devnet.solana.com
solana airdrop 2 

Deploy program

To deploy your smart-contract/program (replace with path to compiled library as needed):

solana program deploy dist/program/gm_program.so

Run

To run client program:

npm run start

Bootcamps docs

For more information on the bootcamp:

About

Chainlink Bootcamp Day 1 Exercise 1 solution


Languages

Language:TypeScript 85.4%Language:Rust 14.6%