Skip to content

Commit 4232ee9

Browse files
committed
fix: remove deprecated bpf-sdk, localnet, and examples
BREAKING CHANGE: Removed binaries solana-localnet and solana-bpf-sdk-install. Please install the Solana CLI tools to download the BPF SDK and to install the solana-test-validator binary intead.
1 parent e27af76 commit 4232ee9

26 files changed

+33
-472
lines changed

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ doc
2222
# VIM swap files
2323
*.sw*
2424

25-
# bpf-sdk
26-
/bpf-sdk
27-
/bpf-sdk.tar.bz2
28-
29-
# fixtures
30-
/test/fixtures
31-
3225
# `solana-test-validator` ledger location
3326
test-ledger/
3427

.releaserc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"repositoryUrl": "[email protected]:solana-labs/solana-web3.js.git",
3+
"preset": "conventionalcommits",
4+
"presetConfig": {
5+
"issueUrlFormat": "{{host}}/{{owner}}/solana/issues/{{id}}"
6+
}
7+
}

.travis/before_install.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ sudo apt-get install -y libssl-dev --allow-unauthenticated
99
sudo apt-get install -y libssl1.1 --allow-unauthenticated
1010
clang-7 --version
1111

12-
curl https://sh.rustup.rs -sSf | sh -s -- -y
13-
PATH=$HOME/.cargo/bin:$PATH
14-
rustup --version
15-
1612
sh -c "$(curl -sSfL https://release.solana.com/edge/install)"
1713
PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
1814
solana --version

.travis/script.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ test -r lib/index.esm.js
1010
npm run doc
1111
npm run lint
1212
npm run codecov
13-
make -C examples/bpf-c-noop/
14-
cargo build-bpf --manifest-path examples/bpf-rust-noop/Cargo.toml
1513
npm run test:live-with-test-validator
1614
npm run test:browser-with-test-validator

README.md

Lines changed: 10 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,17 @@ $ npm install --save @solana/web3.js
4747
<script src="https://unpkg.com/@solana/[email protected]/lib/index.iife.min.js"></script>
4848
```
4949

50+
## Development Environment Setup
5051

51-
### Development Environment Setup
52-
To build and run tests:
53-
1. Install Rust from https://rustup.rs/
54-
2. Install the latest Solana release from https://docs.solana.com/cli/install-solana-cli-tools
52+
Install the latest Solana release from https://docs.solana.com/cli/install-solana-cli-tools
53+
54+
### Run test validator
55+
56+
**Use `solana-test-validator` from the latest Solana release**
57+
58+
### BPF program development
59+
60+
**Use `cargo build-bpf` from the latest Solana release**
5561

5662
## Usage
5763

@@ -84,61 +90,10 @@ activate it:
8490
node_modules/@solana/web3.js/module.flow.js
8591
```
8692

87-
## Examples
88-
See the [examples/](https://github.com/solana-labs/solana-web3.js/tree/master/examples) directory for small snippets.
89-
90-
Standalone examples:
91-
* Message feed (BPF Rust and C): https://github.com/solana-labs/example-messagefeed
92-
* Tic-tac-toe (BPF C): https://github.com/solana-labs/example-tictactoe
93-
* Web wallet: https://github.com/solana-labs/example-webwallet
94-
9593
## Releases
9694
Releases are available on [Github](https://github.com/solana-labs/solana-web3.js/releases)
9795
and [npmjs.com](https://www.npmjs.com/package/@solana/web3.js)
9896

9997
Each Github release features a tarball containing API documentation and a
10098
minified version of the module suitable for direct use in a browser environment
10199
(&lt;script&gt; tag)
102-
103-
## Deprecated
104-
105-
### Local Network
106-
107-
**Please use `solana-test-validator` from the latest Solana release instead of the information in this section**
108-
109-
The `solana-localnet` program is provided to easily start a test Solana cluster
110-
locally on your machine. Docker must be installed. The JSON RPC endpoint of
111-
the local cluster is `http://localhost:8899`.
112-
113-
To start, first fetch the latest Docker image by running:
114-
```bash
115-
$ npx solana-localnet update
116-
```
117-
118-
Then run the following command to start the cluster
119-
```bash
120-
$ npx solana-localnet up
121-
```
122-
123-
While the cluster is running logs are available with:
124-
```bash
125-
$ npx solana-localnet logs -f
126-
```
127-
128-
Stop the cluster with:
129-
```bash
130-
$ npx solana-localnet down
131-
```
132-
133-
### BPF program development
134-
135-
**Please use `cargo build-bpf` from the latest Solana release instead of the information in this section**
136-
137-
The Solana BPF SDK is located in the `bpf-sdk/` subdirectory if you installed
138-
solana-web3.js from npmjs.com.
139-
140-
From a git clone, run `npm run bpf-sdk:install` to fetch the latest BPF SDK.
141-
142-
Additionally Rust must be installed to build Rust BPF programs such as
143-
`examples/bpf-rust-noop/`. See https://www.rust-lang.org/install.html for
144-
installation details.

bin/bpf-sdk-install.sh

Lines changed: 0 additions & 38 deletions
This file was deleted.

bin/localnet.sh

Lines changed: 0 additions & 161 deletions
This file was deleted.

examples/README.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/account.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/account.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)