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

Commit 34b57d6

Browse files
authored
docs: Clarify audit status of all programs, no S word (#4046)
1 parent 0f95a25 commit 34b57d6

File tree

28 files changed

+210
-90
lines changed

28 files changed

+210
-90
lines changed

README.md

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,52 @@
1-
[![Build status][travis-image]][travis-url]
2-
3-
[travis-image]:
4-
https://travis-ci.org/solana-labs/solana-program-library.svg?branch=master
5-
[travis-url]: https://travis-ci.org/solana-labs/solana-program-library
6-
71
# Solana Program Library
82

93
The Solana Program Library (SPL) is a collection of on-chain programs targeting
104
the [Sealevel parallel
115
runtime](https://medium.com/solana-labs/sealevel-parallel-processing-thousands-of-smart-contracts-d814b378192).
126
These programs are tested against Solana's implementation of Sealevel,
13-
solana-runtime, and deployed to its mainnet. As others implement Sealevel, we
14-
will graciously accept patches to ensure the programs here are portable across
15-
all implementations.
7+
solana-runtime, and some are deployed to Mainnet Beta. As others implement
8+
Sealevel, we will graciously accept patches to ensure the programs here are
9+
portable across all implementations.
1610

1711
For more information see the [SPL documentation](https://spl.solana.com) and the [Token TypeDocs](https://solana-labs.github.io/solana-program-library/token/js/).
1812

13+
## Audits
14+
15+
Only a subset of programs within the Solana Program Library repo are deployed to
16+
the Solana Mainnet Beta. Currently, this includes:
17+
18+
| Program | Last Audit Date | Version |
19+
| --- | --- | --- |
20+
| [token](https://github.com/solana-labs/solana-program-library/tree/master/token/program) | 2022-08-04 (Peer review) | [3.4.0](https://github.com/solana-labs/solana-program-library/releases/tag/token-v3.4.0) |
21+
| [associated-token-account](https://github.com/solana-labs/solana-program-library/tree/master/associated-token-account/program) | 2022-08-04 (Peer review) | [1.1.0](https://github.com/solana-labs/solana-program-library/releases/tag/associated-token-account-v1.1.0) |
22+
| [token-2022](https://github.com/solana-labs/solana-program-library/tree/master/token/program-2022) | [2022-12-05](https://github.com/solana-labs/security-audits/blob/master/spl/ZellicToken2022Audit-2022-12-05.pdf) | [0.5.0](https://github.com/solana-labs/solana-program-library/releases/tag/token-2022-v0.5.0) |
23+
| [governance](https://github.com/solana-labs/solana-program-library/tree/master/governance/program) | N/A | [3.1.0](https://github.com/solana-labs/solana-program-library/releases/tag/governance-v3.1.0) |
24+
| [stake-pool](https://github.com/solana-labs/solana-program-library/tree/master/stake-pool/program) | [2023-01-31](https://github.com/solana-labs/security-audits/blob/master/spl/NeodymeStakePoolAudit-2023-01-31.pdf) | [1.0.0]() |
25+
| [account-compression](https://github.com/solana-labs/solana-program-library/tree/master/account-compression/programs/account-compression) | [2022-12-05](https://github.com/solana-labs/security-audits/blob/master/spl/OtterSecAccountCompressionAudit-2022-12-03.pdf) | [0.1.3](https://github.com/solana-labs/solana-program-library/releases/tag/account-compression-v0.1.3) |
26+
| [shared-memory](https://github.com/solana-labs/solana-program-library/tree/master/shared-memory/program) | [2021-02-25](https://github.com/solana-labs/security-audits/blob/master/spl/KudelskiTokenSwapSharedMemAudit-2021-02-25.pdf) | [1.0.0](https://github.com/solana-labs/solana-program-library/commit/b40e0dd3fd6c0e509dc1e8dd3da0a6d609035bbd) |
27+
| [feature-proposal](https://github.com/solana-labs/solana-program-library/tree/master/feature-proposal/program) | Not audited | [1.0.0](https://github.com/solana-labs/solana-program-library/releases/tag/feature-proposal-v1.0.0) |
28+
| [name-service](https://github.com/solana-labs/solana-program-library/tree/master/name-service/program) | Not audited | [0.3.0](https://github.com/solana-labs/solana-program-library/releases/tag/name-service-v0.3.0) |
29+
| [memo](https://github.com/solana-labs/solana-program-library/tree/master/memo/program) | Not audited | [3.0.0](https://github.com/solana-labs/solana-program-library/releases/tag/memo-v3.0.0) |
30+
31+
All other programs may be updated from time to time. These programs are not
32+
audited, so fork and deploy them at your own risk. Here is the full list of
33+
unaudited programs:
34+
35+
* [binary-option](https://github.com/solana-labs/solana-program-library/tree/master/binary-option/program)
36+
* [binary-oracle-pair](https://github.com/solana-labs/solana-program-library/tree/master/binary-oracle-pair/program)
37+
* [instruction-padding](https://github.com/solana-labs/solana-program-library/tree/master/instruction-padding/program)
38+
* [managed-token](https://github.com/solana-labs/solana-program-library/tree/master/managed-token/program)
39+
* [record](https://github.com/solana-labs/solana-program-library/tree/master/record/program)
40+
* [stateless-asks](https://github.com/solana-labs/solana-program-library/tree/master/stateless-asks/program)
41+
* [token-lending](https://github.com/solana-labs/solana-program-library/tree/master/token-lending/program)
42+
* [token-swap](https://github.com/solana-labs/solana-program-library/tree/master/token-swap/program)
43+
* [token-upgrade](https://github.com/solana-labs/solana-program-library/tree/master/token-upgrade/program)
44+
45+
More information about the repository's security policy at
46+
[SECURITY.md](https://github.com/solana-labs/solana-program-library/tree/master/SECURITY.md).
47+
48+
The [security-audits repo](https://github.com/solana-labs/security-audits) contains
49+
all past and present program audits.
1950

2051
## Development
2152

@@ -68,16 +99,17 @@ Integration testing may be performed via the per-project .js bindings. See the
6899
[token program's js project](token/js) for an example.
69100

70101
### Common Issues
102+
71103
Solutions to a few issues you might run into are mentioned here.
72104

73105
1. `Failed to open: ../../deploy/spl_<program-name>.so`
74106

75107
Update your Rust and Cargo to the latest versions and re-run `cargo build-sbf` in the relevant `<program-name>` directory,
76108
or run it at the repository root to rebuild all on-chain programs.
77109

78-
2. [Error while loading shared libraries. (libssl.so.1.1)](https://github.com/project-serum/anchor/issues/1831)
110+
2. [Error while loading shared libraries. (libssl.so.1.1)](https://solana.stackexchange.com/q/3029/36)
79111

80-
A working solution was mentioned [here](https://github.com/project-serum/anchor/issues/1831#issuecomment-1109124934).
112+
A working solution was mentioned [here](https://solana.stackexchange.com/q/3029/36).
81113
Install libssl.
82114
```bash
83115
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
@@ -110,6 +142,7 @@ $ rustup toolchain install nightly-x86_64-apple-darwin
110142

111143

112144
## Release Process
145+
113146
SPL programs are currently tagged and released manually. Each program is
114147
versioned independently of the others, with all new development occurring on
115148
master. Once a program is tested and deemed ready for release:

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for details on classes of bugs and payment amounts.
4242
## Scope
4343

4444
Only a subset of programs within the Solana Program Library repo are deployed to
45-
the Solana Mainnet Beta and maintained by the team. Currently, this includes:
45+
the Solana Mainnet Beta. Currently, this includes:
4646

4747
* [associated-token-account](https://github.com/solana-labs/solana-program-library/tree/master/associated-token-account/program)
4848
* [feature-proposal](https://github.com/solana-labs/solana-program-library/tree/master/feature-proposal/program)

account-compression/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ With a built local SDK, the test suite can be ran with:
2929
1. `yarn link @solana/spl-account-compression`
3030
2. `yarn`
3131
3. `yarn test`
32+
33+
## Audit
34+
35+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
36+
contains information about program audits.

binary-option/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Now suppose the Bucks win Game 3, and the estimated probability of the Bucks win
1212

1313
We'll discuss this mechanism in more detail later.
1414

15+
## Audit
16+
17+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
18+
contains information about program audits.
19+
1520
## Client Setup 
1621
First, clone down the repository (TODO publish to PyPI)
1722

binary-oracle-pair/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Simple Oracle Pair Token
1+
# Simple Oracle Pair Token
22

33
1. pick a deposit token
44
2. pick the decider's pubkey
@@ -10,3 +10,8 @@ the mint term end slot. After the decide term end slot the `Pass`
1010
token converts 1:1 with the deposit token if and only if the decider
1111
had set `pass` before the end of the decide term, otherwise the `Fail`
1212
token converts 1:1 with the deposit token.
13+
14+
## Audit
15+
16+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
17+
contains information about program audits.

docs/src/token-lending.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
title: Token-Lending Program
33
---
44

5-
A lending protocol for the Token program on the Solana blockchain inspired by Aave and Compound.
5+
A lending protocol for the Token program on the Solana blockchain inspired by
6+
Aave and Compound.
67

8+
## Audit
79

8-
### On-Chain Programs
9-
10-
| Cluster | Program Address |
11-
| --- | --- |
12-
| Mainnet Beta | [`LendZqTs8gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi`](https://explorer.solana.com/address/LendZqTs7gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi) |
13-
| Testnet | [`LendZqTs8gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi`](https://explorer.solana.com/address/LendZqTs8gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi?cluster=testnet) |
14-
| Devnet | [`LendZqTs8gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi`](https://explorer.solana.com/address/LendZqTs8gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi?cluster=devnet) |
10+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
11+
contains information about program audits.

docs/src/token-swap.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,22 @@ title: Token Swap Program
55
A Uniswap-like exchange for the Token program on the Solana blockchain,
66
implementing multiple automated market maker (AMM) curves.
77

8-
## Available Deployments
8+
## Audit
99

10+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
11+
contains information about program audits.
1012

11-
| Network | Version | Program Address | Fee Owner Address |
12-
| --- | --- | --- |
13-
| Devnet, Testnet | 3.0.0 | `SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw` | Any |
14-
| All | 2.0.0 | `SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8` | `HfoTxFR1Tm6kGmWgYWD6J7YHVy1UwqSULUGVLXkJqaKN` |
13+
## Available Deployments
1514

16-
The Token Swap Program was deployed to all networks by the Serum team at
17-
`SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8`, requiring a fee owner of
18-
`HfoTxFR1Tm6kGmWgYWD6J7YHVy1UwqSULUGVLXkJqaKN`, but that version was deprecated
19-
in the middle of 2021. Though that program still exists, it is not actively
20-
maintained.
15+
| Network | Version | Program Address |
16+
| --- | --- | --- |
17+
| Testnet | 3.0.0 | `SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw` |
18+
| Devnet | 3.0.0 | `SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw` |
2119

22-
For devnet and testnet, please use the maintained deployment at
23-
`SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw`, and for mainnet, please use any
24-
other AMM project on Solana. Almost all of these were based on Token Swap!
20+
While third-party deployments of token-swap exist on Mainnet Beta, the team has
21+
no plans to deploy it themselves.
2522

26-
Check out
23+
Check out the
2724
[program repository](https://github.com/solana-labs/solana-program-library/tree/master/token-swap)
2825
for more developer information.
2926

@@ -66,8 +63,7 @@ bindings](https://github.com/solana-labs/solana-program-library/blob/master/toke
6663
are available that support loading the Token Swap Program on to a chain and
6764
issuing instructions.
6865

69-
Example user interface built and maintained by Serum team is available
70-
[here](https://github.com/project-serum/oyster-swap)
66+
Example user interface is available [here](https://github.com/solana-labs/oyster-swap).
7167

7268
## Operational overview
7369

docs/src/token-upgrade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ tokens from one mint to another.
88
The program provides a simple mechanism for burning the original tokens and receiving
99
an equal number of new tokens from an escrow account controlled by the program.
1010

11+
## Audit
12+
13+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
14+
contains information about program audits.
15+
1116
## Background
1217

1318
Token-2022 contains many new features for mint owners to customize the behavior

examples/c/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ To build the examples and run the tests:
1919

2020
```bash
2121
$ make
22-
```
22+
```
23+
24+
## Audit
25+
26+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
27+
contains information about program audits.

examples/rust/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ with a live cluster.
88

99
The root [README](../../README.md) gives instructions on how to build and test
1010
these examples.
11+
12+
## Audit
13+
14+
The repository [README](https://github.com/solana-labs/solana-program-library#audits)
15+
contains information about program audits.

0 commit comments

Comments
 (0)