Skip to content
Open
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Run an example's tests with the command for its framework, from the framework di
- **Anchor v2** (in `anchor/`): `anchor test` (runs `cargo test`, per the `[scripts]` table in `Anchor.toml`), with the v2 CLI: `cargo install anchor-cli --version 2.0.0-rc.4 --locked`.
- **Anchor v1** (in `anchor-v1/`): the same `anchor test`, with the v1 CLI: `avm install 1.2.1 && avm use 1.2.1`. Selecting the wrong CLI is the usual cause of a confusing build failure in these directories.
Both Anchor copies' tests send v1 transactions (4,096 bytes, resource limits in the message)
through `solana-kite`: 0.6 for Anchor v1, 0.7 for Anchor v2. Its senders take a last `compute_unit_limit: Option<u32>`: pass `None` and kite
through `solana-kite` 0.7. Its senders take a last `compute_unit_limit: Option<u32>`: pass `None` and kite
simulates the transaction and sends it with the compute units the simulation used. A test that needs the
transaction's metadata (logs, compute units, a program error code) builds it with kite's
`build_transaction_from_instructions` and sends it through LiteSVM itself. Kite rejects ComputeBudget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ litesvm = "0.18.2"
solana-signer = "3.0.0"
solana-kite = "0.7.0"
# The named limit for the one transaction the test builds itself. Same version
# solana-kite 0.6 builds against.
solana-compute-budget = "4.2"
# solana-kite 0.7 builds against.
solana-compute-budget = "4.3"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }
4 changes: 2 additions & 2 deletions compression/cnft-burn/anchor-v1/programs/cnft-burn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ solana-signer = "3.0.0"
# Builds each v1 transaction the tests send. They send it through LiteSVM
# themselves to read the program error a failure carries.
solana-kite = "0.7.0"
# The named limit those transactions get. Same version solana-kite 0.6 builds
# The named limit those transactions get. Same version solana-kite 0.7 builds
# against.
solana-compute-budget = "4.2"
solana-compute-budget = "4.3"
solana-keccak-hasher = "3.0.0"

[lints.rust]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ solana-signer = "3.0.0"
# Builds each v1 transaction the tests send. They send it through LiteSVM
# themselves to read the program error a failure carries.
solana-kite = "0.7.0"
# The named limit those transactions get. Same version solana-kite 0.6 builds
# The named limit those transactions get. Same version solana-kite 0.7 builds
# against.
solana-compute-budget = "4.2"
solana-compute-budget = "4.3"
solana-keccak-hasher = "3.0.0"
4 changes: 2 additions & 2 deletions compression/cutils/anchor-v1/programs/cutils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ solana-signer = "3.0.0"
# Builds each v1 transaction the tests send. They send it through LiteSVM
# themselves to read the program error a failure carries.
solana-kite = "0.7.0"
# The named limit those transactions get. Same version solana-kite 0.6 builds
# The named limit those transactions get. Same version solana-kite 0.7 builds
# against.
solana-compute-budget = "4.2"
solana-compute-budget = "4.3"
solana-keccak-hasher = "3.0.0"
4 changes: 2 additions & 2 deletions finance/options/anchor-v1/programs/options/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ solana-kite = "0.7.0"
# LiteSVM itself rather than through solana-kite's sender, so it can read the
# transaction's metadata back: the inner instructions say how many token
# transfers a handler made. This crate names the compute unit limit those
# transactions get; same version solana-kite 0.6 builds against.
solana-compute-budget = "4.2"
# transactions get; same version solana-kite 0.7 builds against.
solana-compute-budget = "4.3"
borsh = "1.6.1"

[lints.rust]
Expand Down
4 changes: 2 additions & 2 deletions finance/order-book/anchor-v1/programs/order-book/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ solana-kite = "0.7.0"
# The depth tests build transactions with solana-kite and send them through
# LiteSVM themselves to read the compute units each one used, which
# solana-kite's sender does not return. This crate names the compute unit
# limit those transactions get; same version solana-kite 0.6 builds against.
solana-compute-budget = "4.2"
# limit those transactions get; same version solana-kite 0.7 builds against.
solana-compute-budget = "4.3"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }
Loading