-
Notifications
You must be signed in to change notification settings - Fork 516
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,3 +18,4 @@ node_modules/ | |
| **/*/yarn.lock | ||
|
|
||
| /target | ||
| deploy | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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/*", | ||
|
|
@@ -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" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't seem used anywhere?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but that dependency isn't used anywhere in your code itself |
||
| 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 |
| 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 = [] |
| 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) |
| 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 |
| 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" | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.