-
Set up test-ledger:
./tip-router-operator-cli/scripts/setup-test-ledger.sh
- NOTE: This script fails on the edge version of Solana. Currently it's being ran
with
1.18.26
.sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.26/install)"
- NOTE: This script fails on the edge version of Solana. Currently it's being ran
with
-
Build the tip router program:
cargo build-sbf --manifest-path program/Cargo.toml --sbf-out-dir integration_tests/tests/fixtures
- NOTE: Given the current state of Cargo.lock, you must use a version of cargo-build-sbf that
has a rust toolchain higher than 1.74.0. For now, switch to the edge version to build this.
sh -c "$(curl -sSfL https://release.anza.xyz/v2.2.0/install)"
. Another option would be to manually set the Cargo.lock file version to 3 instead of 4 (solana-foundation/anchor#3392 (comment))
- NOTE: Given the current state of Cargo.lock, you must use a version of cargo-build-sbf that
has a rust toolchain higher than 1.74.0. For now, switch to the edge version to build this.
-
Run tests:
SBF_OUT_DIR=integration_tests/tests/fixtures cargo test
- NOTE: If you are still on the edge version of Solana CLI probably best to switch back to
1.18.26
- NOTE: If you are still on the edge version of Solana CLI probably best to switch back to
To see more info on the Tip Router CLI check out the CLI documentation
The comprehensive documentation for Tip Router has moved to jito.network/docs/tiprouter. The source files are maintained in the Jito Omnidocs repository.
-
build .so file:
cargo-build-sbf
-
create a new keypair:
solana-keygen new -o target/tmp/buffer.json
-
Deploy:
solana program deploy --use-rpc --buffer target/tmp/buffer.json --with-compute-unit-price 10000 --max-sign-attempts 10000 target/deploy/jito_tip_router_program.so
-
(Pre Upgrade) Write to buffer:
solana program write-buffer --use-rpc --buffer target/tmp/buffer.json --with-compute-unit-price 10000 --max-sign-attempts 10000 target/deploy/jito_tip_router_program.so
-
Upgrade:
solana program upgrade $(solana address --keypair target/tmp/buffer.json) $(solana address --keypair target/deploy/jito_tip_router_program-keypair.json)
-
Close Buffers:
solana program close --buffers
-
Upgrade Program Size:
solana program extend $(solana address --keypair target/deploy/jito_tip_router_program-keypair.json) 100000
Group | Date | Commit |
---|---|---|
Certora | 2025-01-05 | ac76352 |
Offside | 2024-10-25 | 443368a |
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)