Skip to content

Commit

Permalink
simple interface tests implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Dec 5, 2024
1 parent 0cadb53 commit 9567540
Show file tree
Hide file tree
Showing 16 changed files with 990 additions and 17 deletions.
25 changes: 8 additions & 17 deletions contracts/Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
[toolchain]
anchor_version = "0.29.0"

[features]
seeds = false
skip-lint = false

[programs.localnet]
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
contract-reader-interface = "6AfuXF6HapDUhQfE4nQG9C1SGtA1YjP3icaJyRfU4RyE"
log-read-test = "J1zQwrBNBngz26jRPNWsUSZMHJwBwpkoDitXRV95LdK4"
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ"
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"

[registry]
url = "https://anchor.projectserum.com"

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

[scripts]
test = "pnpm run test"

# [programs.mainnet]
# TODO: add pubkeys

# [programs.testnet]
# TODO: add pubkeys

# [programs.devnet]
# TODO: add pubkeys

[programs.localnet]
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
log-read-test = "J1zQwrBNBngz26jRPNWsUSZMHJwBwpkoDitXRV95LdK4"
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ" # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
7 changes: 7 additions & 0 deletions contracts/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 188 additions & 0 deletions contracts/generated/contract_reader_interface/Initialize.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions contracts/generated/contract_reader_interface/Initialize_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 83 additions & 0 deletions contracts/generated/contract_reader_interface/accounts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9567540

Please sign in to comment.