Code Monkey home page Code Monkey logo

solana's Introduction

Henryk's Solana repo

Folders (Each one has a Read Me)

booth_exchange

This folder contains code for the Exchange Booth Solana Bootcamp milestone project. This is the Youtube series: https://www.youtube.com/watch?v=O0uhZEfVPt8&list=PLilwLeBwGuK7Z2dXft_pmLZ675fuPgkA0&index=1

The project is built using the Anchor framework and Type Script.

The project allows an admin to initilize the Exchange Booth Smart Contract where someone is able to exchange two different tokens based on a set exchange rate.

Mint Creation (tooltip displayed in screenshot for easier address reading): Exchange Booth

Account Creation with certain Mint: Exchange Booth

Vaults for the Admin to use in the Exchange Booth (Notice PDA created for what will be exchanged): Exchange Booth

Creation of the Exchange Booth between mints, with fee and rate: Exchange Booth

echo

This folder contains code for the following specifiction: https://github.com/henryksarat/solana/blob/main/echo/Echo_Program_Specification.pdf

This was part of the Solana Bootcamp that can be found here: https://www.youtube.com/watch?v=O0uhZEfVPt8&list=PLilwLeBwGuK7Z2dXft_pmLZ675fuPgkA0&index=1

It is written using plain rust with Borsch and a javascript runner. Not using Type Script or anchor

rust_examples

Sample rust examples for myself while learning the language

token_contract

A smart contract written as a wrapper around mint and transfer using Type Script and anchor.

Helpful Solana commands

  • Recover lost SOL from a deploy *
solana-keygen recover -o recover.json --force
solana program close recover.json
  • Get around rate limit on devnet *
# make a new key
solana-keygen new -o localkey.json

# get public key
solana address -k localkey.json

# airdrop a bunch of SOL
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}
solana airdrop 2 {public_key}

# transfer from the key just made to the address locally
solana address -k /Users/{name}/.config/solana/id.json
solana transfer --from localkey.json {public_key} 18
  • Change environment*
solana config set --url devnet
solana config set --url localhost

Helpful articles/git requests

solana's People

Contributors

henryksarat avatar

Stargazers

Matthias avatar

Watchers

 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.