Aucune description

Ryo Onodera 0b9c040fcf Add .codecov.yml with checks disabled (#30666) il y a 2 ans
.buildkite 04e52f5475 ci: remove ejson (#30653) il y a 2 ans
.github 17369dc8f0 ci: extract vercel scope as an env (#30441) il y a 2 ans
account-decoder 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
accounts-bench df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
accounts-cluster-bench df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
banking-bench df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
banks-client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
banks-interface df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
banks-server df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
bench-streamer df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
bench-tps 2c37763d7c Improve cli args parsing in bench-tps (#30307) il y a 2 ans
bloom df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
bucket_map 2441a06e78 drop default from PhantomData::default() (#30476) il y a 2 ans
cd e48456dbbc Create continuous delivery directory and add readme with canary details. (#27683) il y a 3 ans
ci 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
clap-utils df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
clap-v3-utils df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
cli df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
cli-config df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
cli-output df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
client-test df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
connection-cache 5136ed3448 Update homepage value for all crates (#30444) il y a 2 ans
core b0112a5f43 BankingStage Consumer: test_buffered_packets* reworking (#30615) il y a 2 ans
docs 569c5fd9d6 [docs] Fix `dataSlice` definition (#30648) il y a 2 ans
dos df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
download-utils df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
entry 2badf962be doc: entry::Entry: More details on the `transactions` field (#29949) il y a 2 ans
faucet df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
frozen-abi df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
genesis 5631685d30 replaced chunks with tuples in validator (#30499) il y a 2 ans
genesis-utils df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
geyser-plugin-interface df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
geyser-plugin-manager 33e179905f getter functions for StoredAccountMeta (#30447) il y a 2 ans
gossip df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
install 35427ee5a9 test: add test_load_serde_yaml_v_0_8_config (#30558) il y a 2 ans
keygen df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
ledger 70c6c7e1f7 Uses strong types for snapshot hashes in SnapshotPackagerService (#30603) il y a 2 ans
ledger-tool db94e4564f ledger-tool: Avoid creating SanitizedTransaction in print command (#30575) il y a 2 ans
local-cluster 7b1d446001 Admin RPC Service: move post-init activation to before wait-for-supermajority (#30544) il y a 2 ans
log-analyzer df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
logger df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
measure df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
memory-management df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
merkle-root-bench df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
merkle-tree df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
metrics df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
multinode-demo 045b9fec11 Add --allow-private-addr to bootstrap-validator.sh (#30163) il y a 2 ans
net eb4e7584b9 Tweak net.sh docs for primordial stakes (#30586) il y a 2 ans
net-shaper df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
net-utils df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
notifier df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
perf ee81679804 Not to tag versioned transaction as simple_vote_tx (#30517) il y a 2 ans
poh df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
poh-bench df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
program-runtime 36d773810a Add Executor Cache Eviction Strategy (#30526) il y a 2 ans
program-test 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
programs 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
pubsub-client 9243fac18f Disambiguate tx = transaction, tx = sender in `pubsub-client` (#30519) il y a 2 ans
quic-client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
rayon-threadlimit df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
rbpf-cli df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
remote-wallet df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
rpc 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
rpc-client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
rpc-client-api df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
rpc-client-nonce-utils df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
rpc-test df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
runtime 0b9c040fcf Add .codecov.yml with checks disabled (#30666) il y a 2 ans
scripts 21f1b652a7 ci: reorg downstream projects (#30463) il y a 2 ans
sdk 3b9438fd49 Replace hardcoded loaded accounts size limit with compute budget instruction (#30506) il y a 2 ans
send-transaction-service df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
stake-accounts df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
storage-bigtable df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
storage-proto 3b9438fd49 Replace hardcoded loaded accounts size limit with compute budget instruction (#30506) il y a 2 ans
streamer df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
sys-tuner df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
system-test 676e3e1926 fix: remove unnecessary --allow-private-addr setup (#30552) il y a 2 ans
test-validator 7b1d446001 Admin RPC Service: move post-init activation to before wait-for-supermajority (#30544) il y a 2 ans
thin-client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
tokens df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
tpu-client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
transaction-dos df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
transaction-status 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
udp-client df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
upload-perf df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
validator 76eef7ed0d Require minimum of 2 ticks per slot for test val (#30646) il y a 2 ans
version df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
watchtower df3ef111f7 chore: workspace inheritance (#29893) il y a 2 ans
web3.js 18c22c7cef Add link to new web3.js repo (#30096) il y a 2 ans
zk-token-sdk af59cced5a chore: bump bincode to 1.3.3 (#30489) il y a 2 ans
.clippy.toml 30f0c25b65 Fix all remaining clippy warnings il y a 7 ans
.codecov.yml 0b9c040fcf Add .codecov.yml with checks disabled (#30666) il y a 2 ans
.gitignore b36791956e Ingest duplicate proofs sent through Gossip (#29227) il y a 2 ans
.mergify.yml 63052ed463 CI: Remove mergify backport config for v1.13 (#30520) il y a 2 ans
.travis.yml 3c01f4dd76 chore: remove Explorer build scripts from the Monorepo (#30262) il y a 2 ans
CONTRIBUTING.md a12bf8c003 Update maintainers references (#29997) il y a 2 ans
Cargo.lock 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
Cargo.toml 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
LICENSE 1de87c00a7 update license il y a 2 ans
README.md 8f8c0a4818 update disclaimer il y a 2 ans
RELEASE.md e0a10eb017 RELEASE.md cleanup (#28007) il y a 3 ans
SECURITY.md a3e4c96bc0 security.txt - pinging admins is a good way to get banned (#30567) il y a 2 ans
cargo 6cd4bc5e60 Speed up net.sh builds (#16360) il y a 4 ans
cargo-build-bpf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) il y a 2 ans
cargo-build-sbf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) il y a 2 ans
cargo-test-bpf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) il y a 2 ans
cargo-test-sbf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) il y a 2 ans
fetch-perf-libs.sh 9393dce1ff Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) il y a 5 ans
fetch-spl.sh 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) il y a 2 ans
run.sh 33de7b856f add some guidance in place of `./run.sh` il y a 4 ans
rust-toolchain.toml f91e63dfe9 Upgrades Rust to 1.67.1 (#29947) il y a 2 ans
rustfmt.toml 70ebab2c82 Add rustfmt.toml and `cargo fmt` (#23238) il y a 3 ans
test-abi.sh a4956844bd Update frozen_abi hashes il y a 5 ans
vercel.json 1c36af158f removing the "autoJobCancelation": false il y a 4 ans

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.