-
Notifications
You must be signed in to change notification settings - Fork 513
add hello solana asm example #538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Perelyn-sama
merged 5 commits into
solana-developers:main
from
Perelyn-sama:asm/hello-world
Apr 13, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e35f93d
add hello solana asm example
Perelyn-sama eb34ace
improve test and fix cicd script
Perelyn-sama 53c85f9
remove solana addres
Perelyn-sama 3d92505
Merge branch 'main' into asm/hello-world
Perelyn-sama c518efa
fix biome
Perelyn-sama File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,4 @@ node_modules/ | |
| **/*/yarn.lock | ||
|
|
||
| /target | ||
| deploy | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| [package] | ||
| name = "hello-solana-asm-program" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [dependencies] | ||
|
|
||
| [dev-dependencies] | ||
| litesvm.workspace = true | ||
| solana-instruction.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 = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
| sbpf build --deploy-dir ./tests/fixtures/ | ||
| solana program deploy ./tests/fixtures/hello-solana-asm-program.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.