srsly

SRSLY

Development Environment

Application Version
node 20.10.0
solana solana-cli 2.1.6
anchor anchor-cli 0.30.1 rev 6df05aa5b5d9971041e3d25a246d935252b6e576
antegen Antegen 2.0.0

nvm

brew install nvm

yarn

npm install --global yarn

1. Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

2. Install Solana CLI

sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.6/install)"

3. Install Anchor (avm)

cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
avm install latest

antegen

cargo install -f --locked antegen-cli

Overview

Tests

DYLD_INSERT_LIBRARIES=/opt/homebrew/opt/libfaketime/lib/faketime/libfaketime.1.dylib antegen localnet \
  --bpf-program SAGEqqFewepDHH6hMDcmWy7yjHPpyKLDnRXKb3Ki8e6 tests/programs/sage.so \
  --bpf-program pFACSRuobDmvfMKq1bAzwj27t6d2GJhSCHb1VcfnRmq tests/programs/profilefaction.so \
  --bpf-program pprofELXjL5Kck7Jn5hCpwAL82DpTkSYBENzahVtbc9 tests/programs/playerprofile.so \
  --bpf-program Cargo8a1e6NkGyrjy4BQEW4ASGKs9KSyDyUrXMfpJoiH tests/programs/cargo.so \
  --account-dir tests/accounts
anchor run test-all -- --skip-local-validator
anchor run test-ff -- --skip-local-validator
anchor run test-env -- --skip-local-validator
anchor run test-core -- --skip-local-validator
anchor run test-sage -- --skip-local-validator
anchor run test-rentals -- --skip-local-validator

References