Go to file
dependabot[bot] cd75252e04
chore: bump mocha from 10.1.0 to 10.2.0 in /web3.js (#30046)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 09:16:25 +00:00
.buildkite chore: stop uploading test data to buildkite (#28411) 2022-10-17 00:48:06 +08:00
.github ci: fix commit range in push event (#29755) 2023-01-19 12:28:00 +08:00
account-decoder Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
accounts-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
accounts-cluster-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
banking-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
banks-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
banks-interface Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
banks-server Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
bench-streamer Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
bench-tps Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
bloom Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
bucket_map Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
cd Create continuous delivery directory and add readme with canary details. (#27683) 2022-09-13 14:33:49 -05:00
ci Update maintainers references (#29997) 2023-01-31 08:07:13 -05:00
clap-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
clap-v3-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
cli Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
cli-config Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
cli-output Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
client-test Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
core Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
docs Add backwards compatibility clarification on CLI tooling output (#29961) 2023-01-30 12:14:25 -06:00
dos Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
download-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
entry Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
explorer [explorer] Add Account Compression Program to searchable programs on explorer (#30033) 2023-02-01 00:31:17 -05:00
faucet Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
frozen-abi Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
genesis Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
genesis-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
geyser-plugin-interface Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
geyser-plugin-manager Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
gossip Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
install Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
keygen Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
ledger Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
ledger-tool Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
local-cluster Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
log-analyzer Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
logger Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
measure Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
memory-management Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
merkle-root-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
merkle-tree Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
metrics Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
multinode-demo Added option to turn on UDP for TPU transaction and make UDP based TPU off by default (#27462) 2022-09-07 13:19:14 -07:00
net Update maintainers references (#29997) 2023-01-31 08:07:13 -05:00
net-shaper Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
net-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
notifier Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
perf Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
poh Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
poh-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
program-runtime Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
program-test Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
programs Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
pubsub-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
quic-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rayon-threadlimit Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rbpf-cli Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
remote-wallet Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc-client-api Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc-client-nonce-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc-test Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
runtime Limit loaded data per transaction to a fixed cap (#29743) 2023-01-31 22:51:35 -06:00
scripts make `scripts/cargo-fmt.sh` $PWD agnostic (#29919) 2023-01-26 04:03:39 +00:00
sdk Limit loaded data per transaction to a fixed cap (#29743) 2023-01-31 22:51:35 -06:00
send-transaction-service Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
stake-accounts Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
storage-bigtable Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
storage-proto Limit loaded data per transaction to a fixed cap (#29743) 2023-01-31 22:51:35 -06:00
streamer Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
sys-tuner Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
system-test chore: all gce performance tests use n2-standard-16 (#28509) 2022-10-22 00:34:20 +08:00
test-validator Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
thin-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
tokens Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
tpu-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
transaction-dos Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
transaction-status Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
udp-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
upload-perf Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
validator Add Admin RPC Front End for Top N Secondary Index Key Sizes Query. (#29352) 2023-01-31 22:46:55 -07:00
version Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
watchtower Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
web3.js chore: bump mocha from 10.1.0 to 10.2.0 in /web3.js (#30046) 2023-02-01 09:16:25 +00:00
web3.js-experimental Update maintainers references (#29997) 2023-01-31 08:07:13 -05:00
zk-token-sdk Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
.clippy.toml
.gitignore Ingest duplicate proofs sent through Gossip (#29227) 2023-01-19 13:00:56 -08:00
.mergify.yml Update mergify backport actions to new version numbers v1.14 and v1.15 (#30031) 2023-01-31 21:31:59 -06:00
.travis.yml closed explorer travis.yml after giving workflow permisssion in github action 2022-01-31 13:39:20 +05:30
CONTRIBUTING.md Update maintainers references (#29997) 2023-01-31 08:07:13 -05:00
Cargo.lock Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
Cargo.toml Revert "chore: workspace inheritance (#29509)" (#29892) 2023-01-25 15:50:41 +08:00
LICENSE update license 2023-01-30 15:42:44 -05:00
README.md update disclaimer 2023-01-30 17:40:53 -05:00
RELEASE.md RELEASE.md cleanup (#28007) 2022-09-24 20:30:25 -06:00
SECURITY.md security-policy: correct bounty split example 2023-01-17 16:19:38 -07:00
cargo
cargo-build-bpf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
cargo-build-sbf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
cargo-test-bpf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
cargo-test-sbf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
codecov.yml chore: tell Codecov about the web3.js move, a few years later (#27633) 2022-09-06 22:25:51 -07:00
fetch-perf-libs.sh
fetch-spl.sh solana-genesis: add support for initializing upgradeable programs (#29994) 2023-01-31 11:15:42 -07:00
run.sh
rust-toolchain.toml Upgrades to Rust 1.66.1 (#29827) 2023-01-24 15:11:10 +08:00
rustfmt.toml Add rustfmt.toml and `cargo fmt` (#23238) 2022-02-19 13:32:29 +08:00
test-abi.sh
vercel.json

README.md

Solana

Solana crate Solana documentation Build status codecov

Building

1. Install rustc, cargo and rustfmt.

$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt

When building the master branch, please make sure you are using the latest stable rust version by running:

$ rustup update

When building a specific release branch, you should check the rust version in ci/rust-version.sh and if necessary, install that version by running:

$ rustup install VERSION

Note that if this is not the latest rust version on your machine, cargo commands may require an override in order to use the correct version.

On Linux systems you may need to install libssl-dev, pkg-config, zlib1g-dev, protobuf etc.

On Ubuntu:

$ sudo apt-get update
$ sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler

On Fedora:

$ sudo dnf install openssl-devel systemd-devel pkg-config zlib-devel llvm clang cmake make protobuf-devel protobuf-compiler perl-core

2. Download the source code.

$ git clone https://github.com/solana-labs/solana.git
$ cd solana

3. Build.

$ ./cargo build

Testing

Run the test suite:

$ ./cargo test

Starting a local testnet

Start your own testnet locally, instructions are in the online docs.

Accessing the remote development cluster

  • devnet - stable public cluster for development accessible via devnet.solana.com. Runs 24/7. Learn more about the public clusters

Benchmarking

First, install the nightly build of rustc. cargo bench requires the use of the unstable features only available in the nightly build.

$ rustup install nightly

Run the benchmarks:

$ cargo +nightly bench

Release Process

The release process for this project is described here.

Code coverage

To generate code coverage statistics:

$ scripts/coverage.sh
$ open target/cov/lcov-local/index.html

Why coverage? While most see coverage as a code quality metric, we see it primarily as a developer productivity metric. When a developer makes a change to the codebase, presumably it's a solution to some problem. Our unit-test suite is how we encode the set of problems the codebase solves. Running the test suite should indicate that your change didn't infringe on anyone else's solutions. Adding a test protects your solution from future changes. Say you don't understand why a line of code exists, try deleting it and running the unit-tests. The nearest test failure should tell you what problem was solved by that code. If no test fails, go ahead and submit a Pull Request that asks, "what problem is solved by this code?" On the other hand, if a test does fail and you can think of a better way to solve the same problem, a Pull Request with your solution would most certainly be welcome! Likewise, if rewriting a test can better communicate what code it's protecting, please send us that patch!

Disclaimer

All claims, content, designs, algorithms, estimates, roadmaps, specifications, and performance measurements described in this project are done with the Solana Labs, Inc. (“SL”) good faith efforts. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore, nothing in this project constitutes a solicitation for investment.

Any content produced by SL or developer resources that SL provides are for educational and inspirational purposes only. SL does not encourage, induce or sanction the deployment, integration or use of any such applications (including the code comprising the Solana blockchain protocol) in violation of applicable laws or regulations and hereby prohibits any such deployment, integration or use. This includes the use of any such applications by the reader (a) in violation of export control or sanctions laws of the United States or any other applicable jurisdiction, (b) if the reader is located in or ordinarily resident in a country or territory subject to comprehensive sanctions administered by the U.S. Office of Foreign Assets Control (OFAC), or (c) if the reader is or is working on behalf of a Specially Designated National (SDN) or a person subject to similar blocking or denied party prohibitions.

The reader should be aware that U.S. export control and sanctions laws prohibit U.S. persons (and other persons that are subject to such laws) from transacting with persons in certain countries and territories or that are on the SDN list. Accordingly, there is a risk to individuals that other persons using any of the code contained in this repo, or a derivation thereof, may be sanctioned persons and that transactions with such persons would be a violation of U.S. export controls and sanctions law.