Skip to content

Commit 21a52cb

Browse files
authored
build bpf -> build sbf (#101)
1 parent c7c58ae commit 21a52cb

File tree

26 files changed

+52
-52
lines changed

26 files changed

+52
-52
lines changed

Diff for: basics/account-data/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/checking-accounts/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/close-account/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/counter/mpl-stack/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This example program is written using Solana native using MPL stack.
55

66
## Setup
77

8-
1. Build the program with `cargo build-bpf`
8+
1. Build the program with `cargo build-sbf`
99
2. Compile the idl with `shank build`
1010
3. Build the typescript SDK with `yarn solita`
11-
- Temporarily, we have to modify line 58 in ts/generated/accounts/Counter.ts
11+
- Temporarily, we have to modify line 58 in ts/generated/accounts/Counter.ts
1212
to `const accountInfo = await connection.getAccountInfo(address, { commitment: "confirmed" });` in order to allow the tests to pass. In the future versions of Solita, this will be fixed.
1313
4. Run tests with `yarn test`

Diff for: basics/counter/native/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example program is written in Solana using only the Solana toolsuite.
44

55
## Setup
66

7-
1. Build the program with `cargo build-bpf`
7+
1. Build the program with `cargo build-sbf`
88
2. Run tests + local validator with `yarn test`
99

1010
## Debugging

Diff for: basics/create-account/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/cross-program-invocation/native/cicd.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --bpf-out-dir=./target/so
7+
cargo build-sbf --bpf-out-dir=./target/so
88
echo "Hand:"
99
solana program deploy ./target/so/hand.so | grep "Program Id:"
1010
echo "Lever:"

Diff for: basics/hello-solana/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/pda-rent-payer/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/processing-instructions/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Custom Instruction Data
22

3-
Let's take a look at how to pass our own custom instruction data to a program. This data must be *serialized* to *Berkeley Packet Filter (BPF)* format - which is what the Solana runtime supports for serialized data.
3+
Let's take a look at how to pass our own custom instruction data to a program. This data must be *serialized* to *Berkeley Packet Filter (BPF)* format - which is what the Solana runtime supports for serialized data.
44

5-
BPF is exactly why we use `cargo build-bpf` to build Solana programs in Rust. For instructions sent over RPC it's no different. We'll use a library called `borsh` on both client and program side.
5+
BPF is exactly why we use `cargo build-sbf` to build Solana programs in Rust. For instructions sent over RPC it's no different. We'll use a library called `borsh` on both client and program side.
66

77
_____
88

9-
**For native**, we need to add `borsh` and `borsh-derive` to `Cargo.toml` so we can mark a struct as serializable to/from **BPF format**.
9+
**For native**, we need to add `borsh` and `borsh-derive` to `Cargo.toml` so we can mark a struct as serializable to/from **BPF format**.
1010

11-
**For Anchor**, you'll see that they've made it quite easy (as in, they do all of the serializing for you).
11+
**For Anchor**, you'll see that they've made it quite easy (as in, they do all of the serializing for you).

Diff for: basics/processing-instructions/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/program-derived-addresses/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/realloc/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/rent/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/repository-layout/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: basics/transfer-sol/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so

Diff for: tokens/create-token/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/nft-minter/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/pda-mint-authority/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/spl-token-minter/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/token-2022/default-account-state/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/token-2022/mint-close-authority/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/token-2022/multiple-extensions/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/token-2022/non-transferable/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/token-2022/transfer-fee/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

Diff for: tokens/transfer-tokens/native/cicd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-bpf --manifest-path=./program/Cargo.toml
8-
solana program deploy ./program/target/deploy/program.so
7+
cargo build-sbf --manifest-path=./program/Cargo.toml
8+
solana program deploy ./program/target/deploy/program.so

0 commit comments

Comments
 (0)