Skip to content

Commit f976e66

Browse files
committed
feat: add initial commit
1 parent 51f14d2 commit f976e66

File tree

18 files changed

+5077
-0
lines changed

18 files changed

+5077
-0
lines changed

prisoners_dilemma/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.anchor
2+
.DS_Store
3+
target
4+
**/*.rs.bk
5+
node_modules
6+
test-ledger
7+
.yarn
8+
encrypted-ixs/arcis_temp_target
9+
build
10+
encrypted-ixs/src/main.rs
11+
artifacts/

prisoners_dilemma/.prettierignore

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

prisoners_dilemma/Anchor.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[toolchain]
2+
package_manager = "yarn"
3+
4+
[features]
5+
resolution = true
6+
skip-lint = false
7+
8+
[programs.localnet]
9+
prisoners_dilemma = "6Qewfu2nWLYw84CNSPfR98FTMGnPy3C29H25ncNwdYKT"
10+
11+
[registry]
12+
url = "https://api.apr.dev"
13+
14+
[provider]
15+
cluster = "localnet"
16+
wallet = "~/.config/solana/id.json"
17+
18+
[scripts]
19+
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

prisoners_dilemma/Arcium.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[localnet]
2+
# this generates all accounts needed to run a node
3+
# nodes corresponds to the number as u32 of nodes in the network
4+
nodes = 2
5+
# each nested array represents a cluster of nodes
6+
# index of the array corresponds to the cluster index
7+
# the u32s in each nested array corresponds to the node offset in that given cluster
8+
clusters = [
9+
[0, 1]
10+
]
11+
12+
# number of seconds to wait for the localnet to come online
13+
localnet_timeout_secs = 60

0 commit comments

Comments
 (0)