Project specifications and code associated with the January 2022 Solana Bootcamp in Chicago.
A recording of the lectures can be found here.
Learn to build on Solana!
Project specifications and code associated with the January 2022 Solana Bootcamp in Chicago.
A recording of the lectures can be found here.
The program is working fine but it is always "Generating a new counter address" that is, it is never updating the already existing count.
I don't see lecture 2, from the first two videos in the playlist
Hi, i follow solana bootcamp lecture from youtube and trying to run some code from this repo.
got error when running cargo build-bpf
rustup show:
Default host: x86_64-apple-darwin
rustup home: /Users/kafin/.rustup
installed toolchains
--------------------
stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)
bpf
active toolchain
----------------
nightly-x86_64-apple-darwin (default)
rustc 1.60.0-nightly (6abb6385b 2022-01-26)
complete error log after executing cargo build-bpf
:
BPF SDK: /Users/kafin/.local/share/solana/install/releases/1.8.1/solana-release/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: failed to download `solana-frozen-abi v1.9.5`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/Users/kafin/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-frozen-abi-1.9.5/Cargo.toml`
Caused by:
feature `edition2021` is required
consider adding `cargo-features = ["edition2021"]` to the manifest
I tried deploying the 2 program and running the js code (after updating the program ids).
➜ js git:(master) ✗ node index.js
Tracker Program 5TGVmbsK1C9zCtoMA23pwLk2w4YSuiKgMyrccvNYqHVE
Counter Program Gjf9qSDhygUCLR8kyXRzRL9EpPtBU8URjpjqfaXMRZXL
Requesting Airdrop of 1 SOL...
Airdrop received
Generating new counter address
-> No tracker account found. Creating new tracker account
Incrementing counter
Error: Transaction 4eVxfZR236nR2UD5VJ1msLTDJGXRyny2phb3vdQ3PAxBnV5QDnXQv1u2sWvq4Ku5942fcYRnLRdAzg1gzHm2i9ww failed ({"err":{"InstructionError":[1,{"BorshIoError":"Unknown"}]}})
at sendAndConfirmTransaction (/home/pc/Documents/funspace/crypto-world/lab/solanaworkspace/solana-bootcamp-lectures/lecture_3/js/node_modules/@solana/web3.js/lib/index.cjs.js:2965:11)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async main (/home/pc/Documents/funspace/crypto-world/lab/solanaworkspace/solana-bootcamp-lectures/lecture_3/js/index.js:160:14)
log
Transaction executed in slot 1548:
Signature: 4eVxfZR236nR2UD5VJ1msLTDJGXRyny2phb3vdQ3PAxBnV5QDnXQv1u2sWvq4Ku5942fcYRnLRdAzg1gzHm2i9ww
Status: Error processing Instruction 1: Failed to serialize or deserialize account data: Unknown
Log Messages:
Program 11111111111111111111111111111111 invoke [1]
Program 11111111111111111111111111111111 success
Program 5TGVmbsK1C9zCtoMA23pwLk2w4YSuiKgMyrccvNYqHVE invoke [1]
Program log: process_instruction: 5TGVmbsK1C9zCtoMA23pwLk2w4YSuiKgMyrccvNYqHVE: 5 accounts, data=[0]
Program log: Instruction: Increment
Program 5TGVmbsK1C9zCtoMA23pwLk2w4YSuiKgMyrccvNYqHVE consumed 15070 of 200000 compute units
Program 5TGVmbsK1C9zCtoMA23pwLk2w4YSuiKgMyrccvNYqHVE failed: Failed to serialize or deserialize account data: Unknown
Sorry for the direct approach, and I know this is a long shot, but desperate times, desperate measures.
In your video, you talked about cargo build-bpf
and it seems you deeply understand all those things.
My problem is when trying to add the h3ron
crate to the example-helloworld solana program.
You don't have to write any code, just adding the dependency will have the helloworld fail at build time.
I created this issue: solana-labs/solana#22725
To get there I tried many things with the h3ron creator here: nmandery/h3ron#30
Unfortunately, I am not going to be able to update the build.rs
myself.
I don't find it normal that solana would not support adding a C-binding rust library to his dependencies.
Sorry for the direct approach. Can you please help me unlock the situation, please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.