-
Notifications
You must be signed in to change notification settings - Fork 26
Add testnet program ID support for tip-distribution #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
064c7de
Add testnet program ID support for tip-distribution
ebatsell 7133969
Fix verified_build: update nightly, solana-verify, add libudev-dev
ebatsell eda7eae
Fix: use sudo for mv after Docker build
ebatsell 6c7f63c
Update cargo-audit to 0.22.0 for CVSS 4.0 support
ebatsell 06eb584
Add explicit testnet feature flag for tip-distribution
ebatsell 257d1db
Revert "Add explicit testnet feature flag for tip-distribution"
ebatsell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ jobs: | |
| uses: baptiste0928/cargo-install@v3 | ||
| with: | ||
| crate: cargo-audit | ||
| version: "0.21.2" | ||
| version: "0.22.0" | ||
| - run: cargo audit --ignore RUSTSEC-2022-0093 --ignore RUSTSEC-2024-0344 --ignore RUSTSEC-2024-0421 --ignore RUSTSEC-2025-0022 | ||
| working-directory: ./mev-programs | ||
|
|
||
|
|
@@ -93,10 +93,9 @@ jobs: | |
| - name: Install yarn dependencies | ||
| working-directory: ./mev-programs | ||
| run: yarn | ||
| # Build | ||
| - name: Build jito_tip_distribution | ||
| working-directory: ./mev-programs | ||
| run: RUSTUP_TOOLCHAIN=nightly-2025-04-16 anchor build --idl idl --program-name jito_tip_distribution | ||
| run: RUSTUP_TOOLCHAIN=nightly-2025-04-16 anchor build --idl idl --program-name jito_tip_distribution -- --features jito-tip-distribution/mainnet | ||
| - name: Build jito_tip_payment | ||
| working-directory: ./mev-programs | ||
| run: RUSTUP_TOOLCHAIN=nightly-2025-04-16 anchor build --idl idl --program-name jito_tip_payment | ||
|
|
@@ -114,9 +113,16 @@ jobs: | |
|
|
||
| # Slow anchor tests | ||
| - run: solana-keygen new --no-bip39-passphrase # needed for tests | ||
| - name: Copy IDLs for tests | ||
| working-directory: ./mev-programs | ||
| run: | | ||
| mkdir -p target/idl target/types | ||
| cp programs/tip-distribution/idl/*.json target/idl/ | ||
| cp programs/tip-payment/idl/*.json target/idl/ | ||
| cp programs/priority-fee-distribution/idl/*.json target/idl/ | ||
| - name: Run Anchor test | ||
| working-directory: ./mev-programs | ||
| run: RUSTUP_TOOLCHAIN=nightly-2025-04-16 anchor test | ||
| run: RUSTUP_TOOLCHAIN=nightly-2025-04-16 anchor test --skip-build | ||
|
|
||
| verified_build: | ||
| name: verified_build | ||
|
|
@@ -132,40 +138,45 @@ jobs: | |
| ./mev-programs/ | ||
| - name: Install Solana Verify | ||
| run: | | ||
| RUSTUP_TOOLCHAIN=nightly-2025-04-01 cargo install [email protected] | ||
| sudo apt-get update && sudo apt-get install -y libudev-dev | ||
| rustup install nightly-2025-11-01 | ||
| RUSTUP_TOOLCHAIN=nightly-2025-11-01 cargo install [email protected] | ||
| solana-verify --version | ||
|
|
||
| - name: Verifiable Build | ||
| working-directory: ./mev-programs | ||
| run: | | ||
| solana-verify build --library-name jito_tip_distribution --base-image solanafoundation/solana-verifiable-build:2.2.13 | ||
| solana-verify build --library-name jito_tip_distribution --base-image solanafoundation/solana-verifiable-build:2.2.13 -- --features jito-tip-distribution/mainnet | ||
| sudo mv target/deploy/jito_tip_distribution.so target/deploy/jito_tip_distribution-mainnet.so | ||
| solana-verify build --library-name jito_tip_payment --base-image solanafoundation/solana-verifiable-build:2.2.13 | ||
| solana-verify build --library-name jito_priority_fee_distribution --base-image solanafoundation/solana-verifiable-build:2.2.13 | ||
|
|
||
| solana-verify build --library-name jito_tip_distribution --base-image solanafoundation/solana-verifiable-build:2.2.13 | ||
| sudo mv target/deploy/jito_tip_distribution.so target/deploy/jito_tip_distribution-testnet.so | ||
|
|
||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: build | ||
| path: | | ||
| mev-programs/target/deploy/jito_tip_distribution.so | ||
| mev-programs/target/deploy/jito_tip_distribution-mainnet.so | ||
| mev-programs/target/deploy/jito_tip_distribution-testnet.so | ||
| mev-programs/target/deploy/jito_tip_payment.so | ||
| mev-programs/target/deploy/jito_priority_fee_distribution.so | ||
| mev-programs/programs/tip-distribution/idl/jito_tip_distribution.json | ||
| mev-programs/programs/tip-payment/idl/jito_tip_payment.json | ||
| mev-programs/programs/priority-fee-distribution/idl/jito_priority_fee_distribution.json | ||
| - name: Cleanup rust cache un-cacheable files | ||
| run: | | ||
| sudo rm ./mev-programs/target/deploy/jito_tip_distribution-keypair.json | ||
| sudo rm ./mev-programs/target/deploy/jito_tip_payment-keypair.json | ||
| sudo rm -f ./mev-programs/target/deploy/jito_tip_distribution-keypair.json | ||
| sudo rm -f ./mev-programs/target/deploy/jito_tip_payment-keypair.json | ||
|
|
||
| # Tag related steps | ||
| - name: Release | ||
| uses: softprops/action-gh-release@v1 | ||
| if: startsWith(github.ref, 'refs/tags/') | ||
| with: | ||
| files: | | ||
| mev-programs/target/deploy/jito_tip_distribution.so | ||
| mev-programs/target/deploy/jito_tip_distribution-mainnet.so | ||
| mev-programs/target/deploy/jito_tip_distribution-testnet.so | ||
| mev-programs/target/deploy/jito_tip_payment.so | ||
| mev-programs/target/deploy/jito_priority_fee_distribution.so | ||
| mev-programs/target/idl/jito_tip_distribution.json | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feature = testnet?