Skip to content

Commit 9f07219

Browse files
committed
add hello world from poseidon
1 parent 5191fea commit 9f07219

File tree

16 files changed

+3680
-42
lines changed

16 files changed

+3680
-42
lines changed

Cargo.lock

Lines changed: 127 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.anchor
2+
.DS_Store
3+
target
4+
**/*.rs.bk
5+
node_modules
6+
test-ledger
7+
.yarn
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.anchor
2+
.DS_Store
3+
target
4+
node_modules
5+
dist
6+
build
7+
test-ledger
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[toolchain]
2+
3+
[features]
4+
resolution = true
5+
skip-lint = false
6+
7+
[programs.localnet]
8+
hello_world = "6SoSn3xSXpLnJeys6p5ChaoUNdAv7rA4SCdxCanK2zjB"
9+
10+
[registry]
11+
url = "https://api.apr.dev"
12+
13+
[provider]
14+
cluster = "Localnet"
15+
wallet = "~/.config/solana/id.json"
16+
17+
[scripts]
18+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[workspace]
2+
members = [
3+
"programs/*"
4+
]
5+
resolver = "2"
6+
7+
[profile.release]
8+
overflow-checks = true
9+
lto = "fat"
10+
codegen-units = 1
11+
[profile.release.build-override]
12+
opt-level = 3
13+
incremental = false
14+
codegen-units = 1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} **/
2+
module.exports = {
3+
transform: {
4+
"^.+\\.tsx?$": "ts-jest",
5+
},
6+
testEnvironment: "node",
7+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
8+
testTimeout: 10000,
9+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Migrations are an early feature. Currently, they're nothing more than this
2+
// single deploy script that's invoked from the CLI, injecting a provider
3+
// configured from the workspace's Anchor.toml.
4+
5+
const anchor = require("@coral-xyz/anchor");
6+
7+
module.exports = async function (provider) {
8+
// Configure client to use the provider.
9+
anchor.setProvider(provider);
10+
11+
// Add your deploy script here.
12+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"license": "ISC",
3+
"scripts": {
4+
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
5+
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
6+
"test": "jest"
7+
},
8+
"dependencies": {
9+
"@coral-xyz/anchor": "^0.30.1",
10+
"anchor-bankrun": "^0.5.0",
11+
"solana-bankrun": "^0.4.0"
12+
},
13+
"devDependencies": {
14+
"@jest/globals": "^29.7.0",
15+
"@types/bn.js": "^5.1.0",
16+
"@types/chai": "^4.3.0",
17+
"@types/jest": "^29.5.13",
18+
"@types/mocha": "^9.0.0",
19+
"chai": "^4.3.4",
20+
"jest": "^29.7.0",
21+
"mocha": "^9.0.3",
22+
"prettier": "^2.6.2",
23+
"ts-jest": "^29.2.5",
24+
"ts-mocha": "^10.0.0",
25+
"typescript": "^4.3.5"
26+
}
27+
}

0 commit comments

Comments
 (0)