Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
19 changes: 10 additions & 9 deletions .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,29 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"

- name: Enable Corepack
run: corepack enable

- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.85.0"
override: true
toolchain: "1.94.0"
Comment thread
Dodecahedr0x marked this conversation as resolved.

- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev pkg-config

- name: Install Solana
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/v2.3.13/install)"
sh -c "$(curl -sSfL https://release.anza.xyz/v3.1.7/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH

- name: Install Anchor
run: |
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
avm install 0.32.1
avm use 0.32.1
echo "$HOME/.avm/bin" >> $GITHUB_PATH
cargo install --git https://github.com/solana-foundation/anchor --tag v0.32.1 anchor-cli

- name: Install MagicBlock Ephemeral Validator
run: |
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
**/.next/
**/.env
**/tsconfig.tsbuildinfo
!/anchor-counter/target/deploy/
/anchor-counter/target/deploy/*
!/anchor-counter/target/deploy/*-keypair.json
!/bolt-counter/target/deploy/counter-keypair.json
!/bolt-counter/target/deploy/increase-keypair.json

Expand Down
4 changes: 4 additions & 0 deletions anchor-ephemeral-permission-counter/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PROVIDER_ENDPOINT=https://api.devnet.solana.com
EPHEMERAL_PROVIDER_ENDPOINT=
ROUTER_ENDPOINT=
TEE_PROVIDER_ENDPOINT=
20 changes: 20 additions & 0 deletions anchor-ephemeral-permission-counter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*.DS_Store
.idea
**/*.rs.bk
**/target/*
**/node_modules
**/test-ledger
**/.anchor
**/.bolt
**/.yarn
**/.next/
**/.env
**/magicblock-test-storage
!/bolt-counter/target/deploy/counter-keypair.json
!/bolt-counter/target/deploy/increase-keypair.json

# But don't ignore the target/idl/ directory
!**/anchor-minter/target/idl/
!**/anchor-counter/target/idl/
!**/anchor-minter/target/deploy/anchor-counter/magicblock-test-storage/
anchor-counter/magicblock-test-storage/
16 changes: 16 additions & 0 deletions anchor-ephemeral-permission-counter/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[toolchain]
anchor_version = "0.32.1"

[features]
resolution = true
skip-lint = false

[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\""
Loading
Loading