Skip to content

Mohammed changes #1

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

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
295871f
patch-1
MohammedAlabd Apr 18, 2025
70beec4
patch-2 build passed, all tests passed but 2
MohammedAlabd Apr 18, 2025
a689a2b
patch-3 chaning idl
MohammedAlabd Apr 18, 2025
b402e98
patch-4
MohammedAlabd Apr 18, 2025
f94c0de
fix account sizes
MohammedAlabd Apr 19, 2025
493ebe1
pass config test_len
MohammedAlabd Apr 19, 2025
43cc7b1
pass test_stake_weights_increment_overflow
MohammedAlabd Apr 19, 2025
154d02b
remove dao_wallet and reciver_to_close accounts from closeEpochIx
MohammedAlabd Apr 19, 2025
36581a7
remove a test regarding config fees
MohammedAlabd Apr 19, 2025
5c2fc81
remove rewards in tests
MohammedAlabd Apr 19, 2025
fce49a1
reafactor: code cleanup
MohammedAlabd Apr 19, 2025
c1a9f6a
remove switchboard-set-weight
MohammedAlabd Apr 20, 2025
b471ad0
set the right weight for admin-set-weight
MohammedAlabd Apr 20, 2025
365f34b
refactor: rename no_feed_weight to weight
MohammedAlabd Apr 20, 2025
e3b5920
remove reward_multiplier_bps
MohammedAlabd Apr 20, 2025
f3cb82a
remove set_merkle_tree instruction
MohammedAlabd Apr 21, 2025
24bbc64
remove gcp-uploader, tip-distributiond-sdk, and tip-payments-sdk
MohammedAlabd Apr 22, 2025
aac30e1
remove switchboard
MohammedAlabd Apr 22, 2025
4f51fff
remove extra space
MohammedAlabd Apr 23, 2025
34a6bc2
change consensus from merkle_root to weather_status
MohammedAlabd Apr 24, 2025
248ff87
first-draft program-flow
MohammedAlabd Apr 25, 2025
4f5f4fb
second draft for program-flow.md
MohammedAlabd Apr 25, 2025
c806d0c
thrid draft
MohammedAlabd Apr 25, 2025
f216b0b
remove unused data
MohammedAlabd Apr 25, 2025
90a3933
remove one more reserved space
MohammedAlabd Apr 28, 2025
69b74d8
remove backup snapshots code
MohammedAlabd Apr 28, 2025
3f3577c
pass test vote_max_cu
MohammedAlabd Apr 28, 2025
de1ba50
remove file set_merkle_root.rs
MohammedAlabd Apr 28, 2025
148751a
remove spl-stake-pool program
MohammedAlabd Apr 28, 2025
1bc687c
remove unused programs
MohammedAlabd Apr 29, 2025
c1b0560
first draft of implementation guide
MohammedAlabd Apr 29, 2025
537de4b
second drafor for implementation guide
MohammedAlabd Apr 29, 2025
bfcbc36
add table of contents
MohammedAlabd Apr 30, 2025
f0717b3
fix variable name
MohammedAlabd Apr 30, 2025
b557c0f
Feat: add a permissionless way to set weight
MohammedAlabd May 1, 2025
9e58cc2
use generic set_epoch_weight instead of admin_set_weight
MohammedAlabd May 1, 2025
c674167
Feat: create a data account to hold consensus results
MohammedAlabd May 1, 2025
f34f2aa
refacor: pass 1, refactoring simulation_test and test_builder files
MohammedAlabd May 4, 2025
f01d37a
pass 2, update docs
MohammedAlabd May 4, 2025
e0e218b
feat: operators with zero stake can't vote
MohammedAlabd May 5, 2025
e3171d7
fix test, initiate the right ncn
MohammedAlabd May 5, 2025
61ec758
fix: cast_votes_for_test_ncn only votes for active operators
MohammedAlabd May 5, 2025
9db66b1
rename the program from tip-router to ncn-program
MohammedAlabd May 6, 2025
24ce509
extra env key
MohammedAlabd May 6, 2025
2ba5b50
Merge pull request #2 from Unboxed-Software/mohammed-changes--change-…
MohammedAlabd May 6, 2025
225dc8f
update docs
MohammedAlabd May 6, 2025
e8c5dab
remove keeper and operator-cli
MohammedAlabd May 6, 2025
2863293
remove unused files
MohammedAlabd May 7, 2025
532924d
clean up simulation_test.rs
MohammedAlabd May 8, 2025
1a5fc2b
remove outdated docs
MohammedAlabd May 8, 2025
0a85442
code refactor and docs update
MohammedAlabd May 8, 2025
e187b5b
update setup-test-ledger.sh by removing unused lines
MohammedAlabd May 8, 2025
c253195
add docs for the onchain program and its IXs
MohammedAlabd May 8, 2025
9d93a70
update docs for simulation-test
MohammedAlabd May 8, 2025
ec7af28
update clients
MohammedAlabd May 8, 2025
9999ebf
doc: code-review-guide first draft
MohammedAlabd May 8, 2025
04448e1
refactor: put seeds as constants
MohammedAlabd May 9, 2025
7558f00
remove generate_weather_status function
MohammedAlabd May 9, 2025
db581cf
refactor: remove unused constants
MohammedAlabd May 9, 2025
14cc8c9
refactor: add msg to make the onchin program more verbose
MohammedAlabd May 9, 2025
8937e83
update license
MohammedAlabd May 9, 2025
a457628
fix generate-clients script
MohammedAlabd May 9, 2025
491dc79
fix some todos
MohammedAlabd May 9, 2025
9adc12c
wrap the right amout of epochs for the voting to be stall
MohammedAlabd May 9, 2025
ec7dc81
refactor consensus_result.rs account
MohammedAlabd May 9, 2025
d4ece4e
rename file
MohammedAlabd May 12, 2025
b30133f
fix method name
MohammedAlabd May 12, 2025
615eec7
turn simulation test guide into a tutorial, first pass
MohammedAlabd May 12, 2025
a0064f2
simulatin-test guide second pass
MohammedAlabd May 12, 2025
5a6c583
update readme
MohammedAlabd May 12, 2025
f01faba
ncn tutorial first draft
MohammedAlabd May 12, 2025
d4a846f
add docs before each instruction
MohammedAlabd May 12, 2025
f0391ba
add documenting comments in the code
MohammedAlabd May 12, 2025
8ed24be
rename docs.md to api.docs and improve it
MohammedAlabd May 12, 2025
8fde2c1
James edits - first pass
jamesrp13 May 12, 2025
b166091
increase max CU limit for big transactions
MohammedAlabd May 12, 2025
a033f9c
update program id
MohammedAlabd May 14, 2025
1a1ff58
update readme.md
MohammedAlabd May 14, 2025
58d3a92
fix cli code
MohammedAlabd May 14, 2025
f77cb3b
cleanup cli code
MohammedAlabd May 14, 2025
997db58
add api-docs and improve getting_started docs
MohammedAlabd May 14, 2025
1be736f
refactor: cli code
MohammedAlabd May 14, 2025
d9397e4
Add TODOs and minor udpates
jamesrp13 May 15, 2025
4c98d22
Fix some inconsistent formatting/minor grammar
jamesrp13 May 15, 2025
889f8b4
docs update
MohammedAlabd May 14, 2025
0f950b7
update docs
MohammedAlabd May 15, 2025
a843b2d
token name change
MohammedAlabd May 16, 2025
53c4b3a
update readme
MohammedAlabd May 16, 2025
e6260ff
update simulation test
MohammedAlabd May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# placeholders for clippy and other tools
# Program IDs may not be correct
[env]
TIP_ROUTER_PROGRAM_ID = "RouterBmuRBkPUbgEDMtdvTZ75GBdSREZR5uGUxxxpb"
NCN_PROGRAM_ID = "7rNw1g2ZUCdTrCyVGZwCJLnbp3ssTRK5mdkH8gm9AKE8"
RESTAKING_PROGRAM_ID = "RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q"
VAULT_PROGRAM_ID = "Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8"
2 changes: 1 addition & 1 deletion .cargo/programs.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIP_ROUTER_PROGRAM_ID=RouterBmuRBkPUbgEDMtdvTZ75GBdSREZR5uGUxxxpb
NCN_PROGRAM_ID=7rNw1g2ZUCdTrCyVGZwCJLnbp3ssTRK5mdkH8gm9AKE8
RESTAKING_PROGRAM_ID=RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q
VAULT_PROGRAM_ID=Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
components: rustfmt, clippy
toolchain: nightly-2024-07-25
- name: Regenerate Shank IDL files
run: cargo b --release -p jito-tip-router-shank-cli && ./target/release/jito-tip-router-shank-cli
run: cargo b --release -p ncn-program-shank-cli && ./target/release/ncn-program-shank-cli
- name: Verify no changed files
uses: tj-actions/verify-changed-files@v20
with:
fail-if-changed: true
fail-message: 'Unexpected changes in the shank IDL files. Please run `./target/release/jito-tip-router-shank-cli` to regenerate the files.'
fail-message: 'Unexpected changes in the shank IDL files. Please run `./target/release/ncn-program-shank-cli` to regenerate the files.'
- name: Set Node.js 22.x
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -120,12 +120,12 @@ jobs:
- name: Building programs
run: cargo-build-sbf
env:
TIP_ROUTER_PROGRAM_ID: ${{ env.TIP_ROUTER_PROGRAM_ID }}
NCN_PROGRAM_ID: ${{ env.NCN_PROGRAM_ID }}
SBF_OUT_DIR: ${{ github.workspace }}/target/sbf-solana-solana/release
- name: Upload MEV Tip Distribution NCN program
uses: actions/upload-artifact@v4
with:
name: jito_tip_router_program.so
name: ncn_program.so
path: target/sbf-solana-solana/release/
if-no-files-found: error

Expand All @@ -142,12 +142,12 @@ jobs:
uses: baptiste0928/cargo-install@v3
with:
crate: solana-verify
- run: solana-verify build --library-name jito_tip_router_program --base-image solanafoundation/solana-verifiable-build:2.1.11
- name: Upload jito_tip_router_program.so
- run: solana-verify build --library-name ncn_program --base-image solanafoundation/solana-verifiable-build:2.1.11
- name: Upload ncn_program.so
uses: actions/upload-artifact@v4
with:
name: jito_restaking_program.so
path: target/deploy/jito_tip_router_program.so
path: target/deploy/ncn_program.so

# coverage:
# name: coverage
Expand All @@ -163,12 +163,12 @@ jobs:
# - name: Generate code coverage
# run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
# env:
# TIP_ROUTER_PROGRAM_ID: RouterBmuRBkPUbgEDMtdvTZ75GBdSREZR5uGUxxxpb
# NCN_PROGRAM_ID: 7rNw1g2ZUCdTrCyVGZwCJLnbp3ssTRK5mdkH8gm9AKE8
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4.5.0
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: jito-foundation/jito-tip-router
# slug: jito-foundation/ncn-program
# fail_ci_if_error: true

test_sbf:
Expand All @@ -191,7 +191,7 @@ jobs:
- name: Download MEV Tip Distribution NCN program
uses: actions/download-artifact@v4
with:
name: jito_tip_router_program.so
name: ncn_program.so
path: integration_tests/tests/fixtures/
- uses: taiki-e/install-action@nextest
- run: cargo nextest run --all-features -E 'not test(ledger_utils::tests)'
Expand Down
21 changes: 13 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@
.cursorrules
node_modules
test-ledger
tip-router-operator-cli/scripts/test-validator-keys
tip-router-operator-cli/scripts/validators.txt
tip-router-operator-cli/tests/fixtures/local_validators.txt
tip-router-operator-cli/tests/fixtures/keys/
tip-router-operator-cli/tests/fixtures/tda-accounts/

# Debugging
program_errors.json
test_errors.output
tests.output
integration_tests/tests/fixtures/jito_tip_router_program.so
integration_tests/tests/fixtures/ncn_program.so
notes.md

integration_tests/tests/fixtures/jito_tip_router_program-keypair.json
integration_tests/tests/fixtures/ncn_program-keypair.json

lcov.info

credentials/

.DS_Store
.DS_Store

integration_tests/tests/fixtures/local_validators.txt
integration_tests/tests/fixtures/keys/
integration_tests/tests/fixtures/tda-accounts/

# Debugging
integration_tests/tests/fixtures/ncn_program.so

integration_tests/tests/fixtures/ncn_program-keypair.json
Loading