-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
2,547 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
[workspace] | ||
members = ["program"] | ||
resolver = "2" |
This file contains 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" | ||
|
||
cargo build-sbf --manifest-path=./program/Cargo.toml | ||
solana program deploy ./program/target/deploy/program.so |
This file contains 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,24 @@ | ||
{ | ||
"scripts": { | ||
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts", | ||
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test", | ||
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so", | ||
"deploy": "solana program deploy ./program/target/so/program.so" | ||
}, | ||
"dependencies": { | ||
"@solana/web3.js": "^1.95.4", | ||
"@solana/spl-token": "^0.4.9" | ||
}, | ||
"devDependencies": { | ||
"@types/bn.js": "^5.1.0", | ||
"@types/chai": "^4.3.1", | ||
"@types/mocha": "^10.0.9", | ||
"@types/node": "^22.8.6", | ||
"borsh": "0.7.0", | ||
"chai": "^4.3.4", | ||
"mocha": "^10.8.2", | ||
"solana-bankrun": "^0.4.0", | ||
"ts-mocha": "^10.0.0", | ||
"typescript": "^5" | ||
} | ||
} |
Oops, something went wrong.