Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 6099f41

Browse files
authored
farms: Update docs to build-bpf instead of build-sbf (#3612)
1 parent 8636eb3 commit 6099f41

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

farms/docs/fund.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To build and deploy the Fund program, run:
1414

1515
```sh
1616
cd solana-program-library/farms/fund
17-
cargo build-sbf
17+
cargo build-bpf
1818
solana program deploy ../target/deploy/solana_fund.so
1919
```
2020

farms/docs/governance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To initialize the DAO, first build and deploy the governance program:
44

55
```sh
66
cd solana-program-library/governance/program
7-
cargo build-sbf
7+
cargo build-bpf
88
solana program deploy --commitment finalized target/deploy/spl_governance.so
99
```
1010

farms/docs/quick_start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ popd
4242

4343
Alternatively, you can execute instructions directly using [HTTP Client](https://github.com/solana-labs/solana-program-library/blob/master/farms/docs/http_client.md) or [Rust Client](https://github.com/solana-labs/solana-program-library/blob/master/farms/docs/rust_client.md).
4444

45-
To build on-chain programs, use the standard `cargo build-sbf` command for Solana programs:
45+
To build on-chain programs, use the standard `cargo build-bpf` command for Solana programs:
4646

4747
```sh
4848
for program in router-*; do
4949
pushd $program &>/dev/null
50-
cargo build-sbf
50+
cargo build-bpf
5151
popd &>/dev/null
5252
done
5353
```
@@ -56,7 +56,7 @@ To build Vaults, specify an additional argument that tells the compiler which st
5656

5757
```sh
5858
pusdh vaults
59-
cargo build-sbf --no-default-features --features SBR-STAKE-LP-COMPOUND
59+
cargo build-bpf --no-default-features --features SBR-STAKE-LP-COMPOUND
6060
popd
6161
```
6262

@@ -66,7 +66,7 @@ Every time you re-build the vault program with another strategy, it overwrites t
6666
pushd vaults &>/dev/null
6767
for strategy in RDM SBR ORC; do
6868
solana-keygen new -o vault_$strategy.json
69-
cargo build-sbf --no-default-features --features $strategy-STAKE-LP-COMPOUND
69+
cargo build-bpf --no-default-features --features $strategy-STAKE-LP-COMPOUND
7070
solana program deploy --program-id vault_$strategy.json target/deploy/solana_vaults.so
7171
done
7272
popd &>/dev/null

farms/farm-sdk/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Creates a file that will set constants captured from the environment.
22
//! These constants represent official accounts, program ids, and names.
3-
//! Normally lazy_static! would work, but it is not supported with build-sbf.
3+
//! Normally lazy_static! would work, but it is not supported with build-bpf.
44
55
use {
66
solana_program::pubkey::Pubkey,

farms/vaults/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ edition = "2021"
1111
[features]
1212
no-entrypoint = []
1313
debug = []
14-
test-sbf = []
1514
RDM-STAKE-LP-COMPOUND = []
1615
SBR-STAKE-LP-COMPOUND = []
1716
ORC-STAKE-LP-COMPOUND = []
@@ -29,4 +28,3 @@ solana-program-test = "1.9.18"
2928

3029
[lib]
3130
crate-type = ["cdylib", "lib"]
32-

0 commit comments

Comments
 (0)