Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions predictor/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[registries.arcium]
index = "sparse+https://crates.arcium.com/api/v1/crates/"
credential-provider = ["cargo:token"]
2 changes: 2 additions & 0 deletions predictor/.cargo/credentials.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[registry.arcium]
token = ""
11 changes: 11 additions & 0 deletions predictor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.anchor
.DS_Store
target
**/*.rs.bk
node_modules
test-ledger
.yarn
confidential-ixs/arcis_temp_target
confidential-ixs/build
confidential-ixs/src/main.rs
artifacts/
7 changes: 7 additions & 0 deletions predictor/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
121 changes: 121 additions & 0 deletions predictor/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
[toolchain]

[features]
resolution = true
skip-lint = false

[programs.localnet]
predictor = "GUDuZTaMjdTJtsHqhBBhcsMDpa5jWRHBDzj5QtB6FL4j"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"

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

[test]
startup_wait = 5000
shutdown_wait = 2000
upgradeable = false

[[test.genesis]]
address = "CQWpCq6BtFGNovpXrrZWtx7jNWz2XKX6yUneKu7rPZbs"
program = "artifacts/arcium_program_0.1.32.so"

[test.validator]
bind_address = "0.0.0.0"
ledger = ".anchor/test-ledger"
rpc_port = 8899


[[test.validator.account]]
address = "VWNZDN2cTXLxJCHecGWRvY5qPHJus1eAVtkAEDNb9iH"
filename = "artifacts/arcium_clock.json"

[[test.validator.account]]
address = "AXih6FLA9s3L5ro73kVKFz9dyYarA1a4hLE7gNqcoKuZ"
filename = "artifacts/arcium_pool.json"

[[test.validator.account]]
address = "67caFht6JPaJzkgbT8EJ8rd7efSVVc65dnNJgvQckwNW"
filename = "artifacts/arcium_pool_ata.json"

[[test.validator.account]]
address = "AhUd37AYGTbMupvFKe2SJ2esXr6pipikkHcvfycknYjx"
filename = "artifacts/wallet_acc_AhUd_nYjx.json"

[[test.validator.account]]
address = "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
filename = "artifacts/arx_mint_AhUd_nYjx.json"

[[test.validator.account]]
address = "8xH98sDxDZTSR9qjynm8btcsY1GhZ8XJbrUaYK9aYyAb"
filename = "artifacts/arx_ata_user_AhUd_nYjx.json"

[[test.validator.account]]
address = "Fd6vKKNb9f2MopiETNfHgQwqWXsKGzQ583etrJtxSUwM"
filename = "artifacts/primary_stake_acc_AhUd_nYjx.json"

[[test.validator.account]]
address = "Cj1xrn7SjjpXmzxp9KqB2vcytUdPDTgckDNX8hVgw7NK"
filename = "artifacts/stake_queue_acc_AhUd_nYjx.json"

[[test.validator.account]]
address = "5MqNYwB4wLuMAC8dYh7HkhSujrXF7ZL3TFQQQzWEdk1R"
filename = "artifacts/operator_acc_AhUd_nYjx.json"

[[test.validator.account]]
address = "7KfGNFoEjWBv3giYW8ZhmJYxZMpDQ8N5VurQV98KAPym"
filename = "artifacts/arx_node_AhUd_nYjx.json"

[[test.validator.account]]
address = "ariZN4ANYnFyfnF12mmUuCchjawFXnepyrWdEQakFtP"
filename = "artifacts/wallet_acc_ariZ_kFtP.json"

[[test.validator.account]]
address = "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
filename = "artifacts/arx_mint_ariZ_kFtP.json"

[[test.validator.account]]
address = "79hykNQMNeXvcpYDM2buEz1kGNnFBgnGvKPTyTUnCAEj"
filename = "artifacts/arx_ata_user_ariZ_kFtP.json"

[[test.validator.account]]
address = "DFgcMv2v6Pofp4efstBgBGUP241B1pHftsEoSVgf1X6b"
filename = "artifacts/primary_stake_acc_ariZ_kFtP.json"

[[test.validator.account]]
address = "G79scK4hrtbacLwtnUsYbhFcbW6R1jxk3GwLDQnVud8f"
filename = "artifacts/stake_queue_acc_ariZ_kFtP.json"

[[test.validator.account]]
address = "4AXAddC82khUkcEpwVDmdvZ1qgQQqai7DU3NT3fHivkc"
filename = "artifacts/operator_acc_ariZ_kFtP.json"

[[test.validator.account]]
address = "6kQZs3uTZy42aV1wjDTPKST1DJRWjeY3VayyoaRDZYnj"
filename = "artifacts/arx_node_ariZ_kFtP.json"

[[test.validator.account]]
address = "EP5C8AfUNTdP1m41gik4oZzFGRud8ES3e3o2CHmqYtqs"
filename = "artifacts/cluster_acc_0.json"

[[test.validator.account]]
address = "JDYAoE4mWfutBijovjDnw3Vjur7rqoQXdAVJs8UiSWxC"
filename = "artifacts/predict_proba_raw_circuit_0.json"

[[test.validator.account]]
address = "F7jnTm6hWXNW6PNSoiSj2i9kfd2XukLFVfaJfabAN966"
filename = "artifacts/mxe_acc.json"

[[test.validator.account]]
address = "GRno8b2iog9TcGJGhnHQxpG6wXAxT9n9Q7aDhCNxfAg3"
filename = "artifacts/mempool_acc.json"

[[test.validator.account]]
address = "E85ECj19b4UgvJzDQCVTQG7aq4yF7nDRaZVgTAZi6kJD"
filename = "artifacts/executing_pool_acc.json"
13 changes: 13 additions & 0 deletions predictor/Arcium.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[localnet]
# this generates all accounts needed to run a node
# nodes corresponds to the number as u32 of nodes in the network
nodes = 1
# each nested array represents a cluster of nodes
# index of the array corresponds to the cluster index
# the u32s in each nested array corresponds to the node offset in that given cluster
clusters = [
[0]
]

# number of seconds to wait for the DA server to come online
da_server_timeout_secs = 10
Loading