Skip to content

Commit c0cc430

Browse files
authored
add tokens/escrow/native (#316)
1 parent 3c74f3b commit c0cc430

File tree

17 files changed

+2547
-0
lines changed

17 files changed

+2547
-0
lines changed

tokens/escrow/native/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[workspace]
2+
members = ["program"]
3+
resolver = "2"

tokens/escrow/native/cicd.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# This script is for quick building & deploying of the program.
4+
# It also serves as a reference for the commands used for building & deploying Solana programs.
5+
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
6+
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

tokens/escrow/native/package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"scripts": {
3+
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
4+
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
5+
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so",
6+
"deploy": "solana program deploy ./program/target/so/program.so"
7+
},
8+
"dependencies": {
9+
"@solana/web3.js": "^1.95.4",
10+
"@solana/spl-token": "^0.4.9"
11+
},
12+
"devDependencies": {
13+
"@types/bn.js": "^5.1.0",
14+
"@types/chai": "^4.3.1",
15+
"@types/mocha": "^10.0.9",
16+
"@types/node": "^22.8.6",
17+
"borsh": "0.7.0",
18+
"chai": "^4.3.4",
19+
"mocha": "^10.8.2",
20+
"solana-bankrun": "^0.4.0",
21+
"ts-mocha": "^10.0.0",
22+
"typescript": "^5"
23+
}
24+
}

0 commit comments

Comments
 (0)