Skip to content

Commit 74775f3

Browse files
author
Onyewuchi Emeka
committed
chore(): implemented test coverage for escrow program
1 parent 7cde8f6 commit 74775f3

File tree

8 files changed

+643
-24
lines changed

8 files changed

+643
-24
lines changed

tokens/escrow/poseidon/escrow/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cluster = "Localnet"
1515
wallet = "/Users/apple/.config/solana/id.json"
1616

1717
[scripts]
18-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
18+
test = "pnpm run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

tokens/escrow/poseidon/escrow/package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@
44
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
55
},
66
"dependencies": {
7-
"@coral-xyz/anchor": "^0.29.0"
7+
"@coral-xyz/anchor": "^0.29.0",
8+
"@solanaturbine/poseidon": "^0.0.4",
9+
"anchor-bankrun": "^0.5.0",
10+
"solana-bankrun": "^0.4.0"
811
},
912
"devDependencies": {
10-
"chai": "^4.3.4",
11-
"mocha": "^9.0.3",
12-
"ts-mocha": "^10.0.0",
1313
"@types/bn.js": "^5.1.0",
1414
"@types/chai": "^4.3.0",
1515
"@types/mocha": "^9.0.0",
16-
"typescript": "^4.3.5",
17-
"prettier": "^2.6.2"
16+
"chai": "^4.3.4",
17+
"mocha": "^9.0.3",
18+
"prettier": "^2.6.2",
19+
"ts-mocha": "^10.0.0",
20+
"typescript": "^4.3.5"
1821
}
1922
}

tokens/escrow/poseidon/escrow/pnpm-lock.yaml

Lines changed: 91 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tokens/escrow/poseidon/escrow/programs/escrow/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ cpi = ["no-entrypoint"]
1616
default = []
1717

1818
[dependencies]
19-
anchor-lang = "0.29.0"
19+
anchor-lang = { version = "0.29.0", features = ["init-if-needed"] }
20+
anchor-spl = "0.29.0"

0 commit comments

Comments
 (0)