Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ node_modules/
**/*/yarn.lock

/target
deploy
Comment thread
dev-jodee marked this conversation as resolved.
34 changes: 27 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ members = [
"basics/hello-solana/native/program",
"basics/hello-solana/anchor/programs/*",
"basics/hello-solana/pinocchio/program",
"basics/hello-solana/asm",
"basics/pda-rent-payer/native/program",
"basics/pda-rent-payer/pinocchio/program",
"basics/pda-rent-payer/anchor/programs/*",
Expand Down Expand Up @@ -89,3 +90,4 @@ solana-keypair = "3.0.1"
solana-pubkey = "3.0.0"
solana-transaction = "3.0.1"
solana-native-token = "3.0.0"
solana-address = "2.1.0"
Comment thread
dev-jodee marked this conversation as resolved.
Outdated
11 changes: 11 additions & 0 deletions basics/hello-solana/asm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build/**/*
deploy/**/*
node_modules
.sbpf
.DS_Store
.vscode
keypair.json
package-lock.json
test-ledger
yarn.lock
target
20 changes: 20 additions & 0 deletions basics/hello-solana/asm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "hello-solana-asm-program"
version = "0.1.0"
edition = "2021"

[dependencies]

[dev-dependencies]
litesvm.workspace = true
solana-instruction.workspace = true
solana-address.workspace = true
solana-keypair.workspace = true
solana-native-token.workspace = true
solana-pubkey.workspace = true
solana-transaction.workspace = true
solana-system-interface.workspace = true


[features]
test-sbf = []
3 changes: 3 additions & 0 deletions basics/hello-solana/asm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# hello-solana-asm-program

Created with [sbpf](https://github.com/blueshift-gg/sbpf)
8 changes: 8 additions & 0 deletions basics/hello-solana/asm/cicd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# This script is for quick building & deploying of the program.
# It also serves as a reference for the commands used for building & deploying Solana programs.
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"

cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
Comment thread
dev-jodee marked this conversation as resolved.
Outdated
solana program deploy ./program/target/so/program.so
23 changes: 23 additions & 0 deletions basics/hello-solana/asm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "module",
"scripts": {
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/index.test.ts",
"build-and-test": "sbpf build --deploy-dir ./tests/fixtures && pnpm test",
"build": "sbpf build",
"deploy": "solana program deploy ./program/target/so/hello_solana_program_pinocchio.so"
},
"dependencies": {
"@solana/web3.js": "^1.98.4"
},
"devDependencies": {
"@types/bn.js": "^5.2.0",
"@types/chai": "^4.3.20",
"@types/mocha": "^9.1.1",
"@types/node": "^22.19.1",
"chai": "^4.5.0",
"mocha": "^9.2.2",
"solana-bankrun": "^0.3.1",
"ts-mocha": "^10.1.0",
"typescript": "^4.9.5"
}
}
Loading