Giter Site home page Giter Site logo

solana-developers / pirate-bootcamp Goto Github PK

View Code? Open in Web Editor NEW
222.0 9.0 131.0 145.11 MB

A pirate-theme bootcamp for getting up to speed on Solana programming!

Shell 0.12% TypeScript 15.18% Rust 4.10% JavaScript 0.56% CSS 0.58% Dockerfile 0.01% C# 61.04% Objective-C 9.02% C 0.09% ShaderLab 8.51% HLSL 0.38% HTML 0.40%
blockchain crypto defi javascript payments pirates rust smart-contracts solana solana-pay

pirate-bootcamp's Introduction

๐Ÿดโ€โ˜ ๏ธ Solana Pirate Bootcamp

ship

Ahoy! Ready to embark on a pirate-themed coding adventure? Join our Solana programming bootcamp and discover the treasures of blockchain development. Learn to build smart contracts and DApps using our hands-on approach and practical coding exercises. Set sail with us and become a Solana pirate!


Interested in conducting this bootcamp, are ye? How to Conduct this Bootcamp


Feast 'yer eyes on the bootcamp agenda!

โ›ด๏ธ Mint a Pirate Ship NFT
๐ŸŒŠ Set Sail with Solana Programs
๐Ÿ’ฐ Learn to Earn Gold
๐Ÿ’Ž Smuggling, Bargaining, and Upgrading Your Ship
โœจย An Efficient Port is a Profitable Port
โš”๏ธย Prepare for Battle Using Oracles
๐Ÿ’ฅย Use Solana Pay to Defend Your Ship

pirate-bootcamp's People

Contributors

buffalojoec avatar cogoo avatar jacobcreech avatar nickfrosty avatar woody4618 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pirate-bootcamp's Issues

getOrCreateAssociatedTokenAccount not working as intended.

Cloned the repo.
Installed all the dependencies.
Successfully ran all the scripts in quest-1 in order.
Here's a link to the token mint on devnet.
After trying to run script 4.mintTokes.ts, I am getting a TokenAccountNotFoundError and the script exits, transaction fails.
The source code for getOrCreateAssociatedTokenAccount in the spl-token library looks to be correct, it should go ahead and create the new account.

Tried reloading VSCODE. Tried running script in different Terminal emulators. Same problem. Any thoughts?

Screenshot 2024-01-30 at 11 38 45โ€ฏAM

Cannot build the project

I am using WSL on Windows 11 (Linux, Ubuntu)
I followed the manual: Rust, NodeJs.. etc are installed

$ rustc -V
rustc 1.77.2 (25ef9e3d8 2024-04-09)
$ node -v
v20.12.2
$ yarn -v
1.22.22
$ solana -V
solana-cli 1.17.25 (src:d0ed878d; feat:3580551090, client:SolanaLabs)

Solana is setup on Dev

$ solana config set -ud
Config File: .../.config/solana/cli/config.yml
RPC URL: https://api.devnet.solana.com
WebSocket URL: wss://api.devnet.solana.com/ (computed)
Keypair Path: .../.config/solana/id.json
Commitment: confirmed
$ solana balance
1 SOL

I had to change the *.sh files to be executable and on running the build:

$ setup (main *)$ ./build.sh
....
[2024-04-26T08:29:12.863287462Z ERROR cargo_build_sbf] Failed to obtain package metadata: `cargo metadata` exited with an error: error: failed to load manifest for workspace member `.../pirate-bootcamp/quest-1/.local_keys`

    Caused by:
      failed to read `.../pirate-bootcamp/quest-1/.local_keys/Cargo.toml`

    Caused by:
      No such file or directory (os error 2)

Setup Bundle

We should sync on how the setup bundling might work for a "bootcamp in a box" type of approach.

I've laid down some general ideas, such as:

"How to conduct the bootcamp" docs: setup/README.md

Cargo workspace (Cargo.toml):

[workspace]
members = [
    "quest-1/**/*",
    "quest-2/**/*",
    "quest-3/**/*",
    "quest-4/**/*",
    "quest-5/**/*",
    "quest-6/**/*",
    "quest-7/**/*",
]

Node scripts to create assets (setup/package.json):

"scripts": {
    "build": "ncc build ./src/index.ts --out dist/",
    "create-cannons": "node dist/index.js --spl 120",
    "create-compasses": "node dist/index.js --spl 60",
    "create-fishing-nets": "node dist/index.js --spl 60",
    "create-gold": "node dist/index.js --spl 10000",
    "create-grappling-hooks": "node dist/index.js --spl 60",
    "create-gunpowder": "node dist/index.js --spl 160",
    "create-kraken": "node dist/index.js --nft 1",
    "create-muskets": "node dist/index.js --spl 80",
    "create-rum": "node dist/index.js --spl 200",
    "create-telescopes": "node dist/index.js --nft 30",
    "create-treasure-maps": "node dist/index.js --nft 30",
    "create-trophies": "node dist/index.js --nft 10"
  }

This is just a start, but we can probably align to make sure this thing actually works out-of-the-box, and we can even align on this after the bootcamp is over, maybe.

Quest 2 - errors after connecting wallet

after connecting wallet getting this in the browser console

Invoking error handler due to
RuntimeError: null function or function signature mismatch

tested with solflare on waterfox and backpack on brave browser

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.