Coder Social home page Coder Social logo

solanabootcamp's Introduction

SolanaBootcamp

Note: We're expecting you have both rust and solana cli installed. If you are running on the MacOS M1 and encounter issues, we suggest NOT to use brew to install rust, instead use curl or install from source.

  1. Install and build - creates binary files for each of the examples in examples_baremtal/ creates inside target/

    npm i
    npm run build
  2. Set your config to localhost

    solana config set --url localhost
  3. Run in seperate terminal window. This will spin up local solana cluster for you with RPC enpoint defaulted to localhost:8899, same as running solana-test-validator --reset

    npm run start-local-cluster
  4. Monitor the logs in seperate window by running

     solana logs

Commans for each example

  1. For each example run the following commands. The program would be deployed to the network specified in solana config

    npm run deploy:n

    where n is example number from 1 to 7 what this script does in the background solana program deploy ./examples_baremetal/target/deploy/nameOfExampleProgram.so

  2. To interact with the contract, we'll be running the typescript code located in client/ within each example

    npm run call:n

    where n is example number from 1 to 7

Devnet

  1. If you want to use devnet run:

    solana config set --url https://api.devnet.solana.com
    
    # or
    
    solana config set --url devnet

solanabootcamp's People

Contributors

extropycoder avatar mmsaki avatar jafar75 avatar skaunov 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.