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.
This commit is contained in:
committed by
Justin Starry
parent
f46f346710
commit
e9b08b5e7f
@ -47,11 +47,17 @@ $ npm install --save @solana/web3.js
|
||||
<script src="https://unpkg.com/@solana/web3.js@0.92.0/lib/index.iife.min.js"></script>
|
||||
```
|
||||
|
||||
## Development Environment Setup
|
||||
|
||||
### Development Environment Setup
|
||||
To build and run tests:
|
||||
1. Install Rust from https://rustup.rs/
|
||||
2. Install the latest Solana release from https://docs.solana.com/cli/install-solana-cli-tools
|
||||
Install the latest Solana release from https://docs.solana.com/cli/install-solana-cli-tools
|
||||
|
||||
### Run test validator
|
||||
|
||||
**Use `solana-test-validator` from the latest Solana release**
|
||||
|
||||
### BPF program development
|
||||
|
||||
**Use `cargo build-bpf` from the latest Solana release**
|
||||
|
||||
## Usage
|
||||
|
||||
@ -84,14 +90,6 @@ activate it:
|
||||
node_modules/@solana/web3.js/module.flow.js
|
||||
```
|
||||
|
||||
## Examples
|
||||
See the [examples/](https://github.com/solana-labs/solana-web3.js/tree/master/examples) directory for small snippets.
|
||||
|
||||
Standalone examples:
|
||||
* Message feed (BPF Rust and C): https://github.com/solana-labs/example-messagefeed
|
||||
* Tic-tac-toe (BPF C): https://github.com/solana-labs/example-tictactoe
|
||||
* Web wallet: https://github.com/solana-labs/example-webwallet
|
||||
|
||||
## Releases
|
||||
Releases are available on [Github](https://github.com/solana-labs/solana-web3.js/releases)
|
||||
and [npmjs.com](https://www.npmjs.com/package/@solana/web3.js)
|
||||
@ -99,46 +97,3 @@ and [npmjs.com](https://www.npmjs.com/package/@solana/web3.js)
|
||||
Each Github release features a tarball containing API documentation and a
|
||||
minified version of the module suitable for direct use in a browser environment
|
||||
(<script> tag)
|
||||
|
||||
## Deprecated
|
||||
|
||||
### Local Network
|
||||
|
||||
**Please use `solana-test-validator` from the latest Solana release instead of the information in this section**
|
||||
|
||||
The `solana-localnet` program is provided to easily start a test Solana cluster
|
||||
locally on your machine. Docker must be installed. The JSON RPC endpoint of
|
||||
the local cluster is `http://localhost:8899`.
|
||||
|
||||
To start, first fetch the latest Docker image by running:
|
||||
```bash
|
||||
$ npx solana-localnet update
|
||||
```
|
||||
|
||||
Then run the following command to start the cluster
|
||||
```bash
|
||||
$ npx solana-localnet up
|
||||
```
|
||||
|
||||
While the cluster is running logs are available with:
|
||||
```bash
|
||||
$ npx solana-localnet logs -f
|
||||
```
|
||||
|
||||
Stop the cluster with:
|
||||
```bash
|
||||
$ npx solana-localnet down
|
||||
```
|
||||
|
||||
### BPF program development
|
||||
|
||||
**Please use `cargo build-bpf` from the latest Solana release instead of the information in this section**
|
||||
|
||||
The Solana BPF SDK is located in the `bpf-sdk/` subdirectory if you installed
|
||||
solana-web3.js from npmjs.com.
|
||||
|
||||
From a git clone, run `npm run bpf-sdk:install` to fetch the latest BPF SDK.
|
||||
|
||||
Additionally Rust must be installed to build Rust BPF programs such as
|
||||
`examples/bpf-rust-noop/`. See https://www.rust-lang.org/install.html for
|
||||
installation details.
|
||||
|
Reference in New Issue
Block a user