Skip to content

jito-foundation/jito-tip-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jito MEV Tip Distribution NCN

Testing Setup

Prerequisites

  1. 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)"
  2. 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 (coral-xyz/anchor#3392 (comment))
  3. 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

Deploy and Upgrade

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages