- Set up test-ledger:
./tip-router-operator-cli/scripts/setup-test-ledger.sh
- Build the tip router program:
cargo build-sbf --manifest-path program/Cargo.toml --sbf-out-dir integration_tests/tests/fixtures
- Run tests:
SBF_OUT_DIR=integration_tests/tests/fixtures cargo test
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.
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)