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

Commit 9c4127f

Browse files
authored
token-swap-js: Cleanup for next release (#3004)
1 parent a2bbabc commit 9c4127f

17 files changed

+1904
-4892
lines changed

token-swap/js/.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/dist
2-
/dist.browser

token-swap/js/.flowconfig

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

token-swap/js/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
test-ledger/
22
dist/
3-
dist.browser/

token-swap/js/README.md

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -13,57 +13,14 @@ First fetch the npm dependencies, including `@solana/web3.js`, by running:
1313
$ npm install
1414
```
1515

16-
### Select a Network
17-
18-
The client connects to a local Solana cluster by default.
19-
20-
To enable on-chain program logs, set the `RUST_LOG` environment variable:
21-
22-
```bash
23-
$ export RUST_LOG=solana_runtime::native_loader=trace,solana_runtime::system_instruction_processor=trace,solana_runtime::bank=debug,solana_bpf_loader=debug,solana_rbpf=debug
24-
```
25-
26-
To start a local Solana cluster run:
27-
```bash
28-
$ npm run localnet:update
29-
$ npm run localnet:up
30-
```
31-
32-
Solana cluster logs are available with:
33-
```bash
34-
$ npm run localnet:logs
35-
```
36-
37-
For more details on working with a local cluster, see the [full
38-
instructions](https://github.com/solana-labs/solana-web3.js#local-network).
39-
4016
### Build the on-chain program
4117

42-
```bash
18+
```sh
4319
$ npm run build:program
4420
```
4521

4622
### Run the test client
4723

4824
```sh
49-
$ npm run start
50-
```
51-
52-
## Pointing to a public Solana cluster
53-
54-
Solana maintains three public clusters:
55-
- `devnet` - Development cluster with airdrops enabled
56-
- `testnet` - Tour De Sol test cluster without airdrops enabled
57-
- `mainnet-beta` - Main cluster
58-
59-
Use npm scripts to configure which cluster.
60-
61-
To point to `devnet`:
62-
```bash
63-
$ npm run cluster:devnet
64-
```
65-
66-
To point back to the local cluster:
67-
```bash
68-
$ npm run cluster:localnet
25+
$ npm run start-with-test-validator
6926
```

token-swap/js/cluster-devnet.env

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

token-swap/js/cluster-mainnet-beta.env

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

token-swap/js/cluster-testnet.env

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

0 commit comments

Comments
 (0)