-
Notifications
You must be signed in to change notification settings - Fork 18
Base layer actions #485
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
taco-paco
wants to merge
207
commits into
master
Choose a base branch
from
feat/base-layer-ix/main
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+12,361
−9,005
Open
Base layer actions #485
Changes from all commits
Commits
Show all changes
207 commits
Select commit
Hold shift + click to select a range
45bdf72
test: add realloc ix to flexi counter
thlorenz 2e61882
chore: resort workspace depencencies
thlorenz 6806acf
chore: retire old remote scheduled commits processor and add new one
thlorenz 8cdc141
feat: initial impl of commits processor based on committor service
thlorenz c0d08a4
feat: initializing committor service at startup
thlorenz 9eed608
test: logging signature of failed init_committees tx
thlorenz dae8ea8
test: adapt to expect two signatures when finalizing
thlorenz 80e6777
feat: ensure ephemeral validator is funded on chain
thlorenz 3078a1c
test: add single account commit test
thlorenz 8391124
test: warn when we have issues fetching a transaction
thlorenz e5aa347
fix: adding change for validator fund check
thlorenz be98740
feat: fully integrating committor service
thlorenz 5ce7a20
chore: update ix tests cargo
thlorenz b54cd3b
chore: comment with requirements for schedule commit tests
thlorenz dc2da58
chore: improve test logs
thlorenz 560fd6b
chore: include compute unit price when initializing committor
thlorenz b3445c1
fix: mark accounts to be undelegated
thlorenz 24bb27a
chore: properly handle some unwraps
thlorenz cc389e7
test: general improvements + fixes
thlorenz f7304cf
chore: use trait for committor service and create stub to use in tests
thlorenz 04b0116
chore: update ensure accounts tests to use stub
thlorenz d770b95
chore: re-enable account cloner and ensure accounts tests
thlorenz 88dd40b
chore: move committor repo crates into magicblock monorepo
thlorenz e6f1edd
chore: move committor service integration tests
thlorenz 1c4dd78
chore: noting escrow/fee payer related test requirements
thlorenz 8c620fe
chore: minor cleanup in test runner
thlorenz f3e17d1
ix: load committor program for schedule commits
thlorenz 6d109f9
ix: allow configuring loaded accounts
thlorenz 0dceb8b
ix: match ephem validator keypair to the one we use on chain
thlorenz 7fdc795
ix: ensure we always pass same loaded chain accounts to chain + ephen…
thlorenz 47ccee4
ix: update dlp binary
thlorenz c85b529
ix: add committor tests to run_tests
thlorenz cf609d4
ix: move table mania tests to integration
thlorenz b968ea5
ix: run table mania as part of test suite
thlorenz d3bacca
Merge branch 'master' into thlorenz/committor
thlorenz 7bde596
chore: fmt
thlorenz 52fd831
chore: update delegation program reference
thlorenz 714dd68
chore: opt out of doctests for added crates
thlorenz 0f94802
ix: add rule to make committor program
thlorenz c8ddb16
fix: error misspelling
thlorenz b246170
chore: address some greptiles
thlorenz d3892d1
ix: check in missing config
thlorenz ca5e9f4
chore: more greptiles
thlorenz bc48d58
ix: move table mania/committor tests last since they are the slowest
thlorenz 9fb082a
chore: rollback delegation program version
thlorenz ee396da
chore: cleanup stray log
thlorenz 8635738
ix: give more compile time before expecting validator to listen
thlorenz 7f3e0eb
chore: greptiles
thlorenz 28504c1
chore: improved error handling in table mania manager
thlorenz bc1324d
fix: greptiles
thlorenz 644ad1c
chore: demote some no longer urgent TODOs
thlorenz 4f8ecc8
feat: committor service persists into ledger path
thlorenz 3cf473d
chore: remove duplicate code in magic validator
thlorenz a7b4aa5
feat: limiting stale reallocs until we bail
thlorenz 776bbf1
tmp: disabling ledger restore tests to isolate issues
thlorenz aeeb5ae
tmp: disable all workflows but integration tests while isolating issues
thlorenz aedf9a2
fix: ordering of worker startups
thlorenz 1e9921d
Revert "tmp: disabling ledger restore tests to isolate issues"
thlorenz 0e0ef0f
Revert "tmp: disable all workflows but integration tests while isolat…
thlorenz 2bfd49f
chore: address nits
thlorenz 05bbaec
Merge branch 'master' into thlorenz/committor
thlorenz 4d1b44f
chore: update cargo lock files
thlorenz 9e091fc
chore: match mdp version
thlorenz 8870158
Merge branch 'thlorenz/committor' into feat/base-layer-ix/main
taco-paco b7b6e4b
feat: added construction of ScheduleAction
taco-paco 0cfda9c
refactor: changed file structure
taco-paco f9f0307
feat: replace ScheduledCommit -> SceduledAction in MagicContext
taco-paco a2a372b
refactor: namings + some logging
taco-paco c0cf401
refactor: separate file for accepted commits
taco-paco 9775d7d
feat: error on process_schedule_action call until feature fully suppo…
taco-paco 597435e
feat: until supported converting ScheduledAction to old ScheduledComm…
taco-paco a955a12
fix: tests + bug
taco-paco 39c4fd4
refactor: renamings
taco-paco 1abe69c
fix: bug
taco-paco 0073370
fix: rebase
taco-paco 17e0dc1
refactor: renamings
taco-paco 7b0ea9b
feat: remove legacy code, introduce snapshots of account state at the…
taco-paco cafd31b
refactor: renaming
taco-paco 409dbb0
refactor: file structure changes + separate non program specific erro…
taco-paco a087223
fix: test compilation
taco-paco 4011e3d
fix: tests
taco-paco 49b99c4
feat: introducing raw tasks, DeliveryStrategist, TransactionPreparato…
taco-paco 18781d5
refactor: code cleanup
taco-paco b40797d
feat: buffer preparations in DeliveryPreparator
taco-paco 8bb5d58
feat: trait for tasks
taco-paco 4c05ca6
raw
taco-paco 5507bb3
fix: TaskBuilder after L1Task trait introduction
taco-paco 0761774
refactor: TaskBuilder::finalize_tasks
taco-paco b49882d
fix: some compilation errors
taco-paco 40eb0cd
fix: more compilation fixes
taco-paco 1fde056
fix: more compilation fixes
taco-paco 82b7f53
feat: TransactionUtilities to assemle TX from Tasks
taco-paco 93020a9
refactor: fmt
taco-paco 18c10a5
fix: some compilation errors
taco-paco d36ef48
feat: initial scheduler
taco-paco ef9db26
refactor: extract core schuduling logic into CommitSchedulerInner
taco-paco 9623d38
feat: initialize MessageExecutor
taco-paco 7c00710
refactor: move committor out of account manager
taco-paco 1f74fe4
fix: compilation with new RemoteCommitor
taco-paco ad8f968
feat: added CommitSchedulerWorker that populations Inner Schedule, ha…
taco-paco a7a0456
refactor: expose result stream from SchedulerWorker
taco-paco 6a63a2c
feat: initialized CommitIdTracker
taco-paco e18522a
feat: adapting Persister to new implementation
taco-paco 24a6360
feat: Persistor keeps track per Action not per Message
taco-paco 7f6dd79
fix: compilation
taco-paco be0b2b8
fix: compilation + some code cleaning
taco-paco 8df9db1
refactor: extract tasks into separate module
taco-paco eba1af5
feat: persister integration into services
taco-paco c87abac
feat: improving error handling
taco-paco 4013de1
feat: introduced visitor + compilation & persistor fixes
taco-paco e242e67
feat: added visitor into tasks
taco-paco a4f9532
feat: expose subscribe method on CommittorService
taco-paco ff8347f
fix: magicblock-committor-service compiles!
taco-paco fcefa80
feat: filter accs in L1Message
taco-paco dde67bc
feat: integrate l2 tx execution on processed commit
taco-paco d3301a0
refactor: removed unnecessary worker
taco-paco 03a9d98
fix: compilation
taco-paco 1a4889f
feat: Integrated CommittorService into AccountsManager
taco-paco d43a19c
feat: added & fixed persistor tests
taco-paco 9f1b2a0
feat: scheduler tests
taco-paco 54ff107
fix: scheduler bug in pop_next_scheduled_message + some more tests
taco-paco 1bb4b71
refactor: some docs
taco-paco 2241889
feat: add traits for testing
taco-paco f8ff5fc
feat: added initial tests to scheduler_worker
taco-paco 4f178ce
fix: replace notify with FuturesUnordered
taco-paco f40a26d
feat: addedd sleep into MockExecutor to simulate work
taco-paco 8176edc
feat: SchedulerWorker tests
taco-paco 9348ded
refactor: some warning cleanup
taco-paco c0a8da8
feat: finished implementation of CommitIdTracker
taco-paco 7be6f6b
raw
taco-paco faa5dd6
refactor: moved CommitIdTracker into executor
taco-paco e65047f
feat(config): derive merge (#476)
Dodecahedr0x 42bfd23
refactor: rename entrypoint (#481)
Dodecahedr0x 26a4004
refactor: error handling + removed some unwraps
taco-paco 1f509db
refactor: repeating function
taco-paco cddc9cc
feat: fixes + delivery preparator tests
taco-paco 0e40f41
feat: added delivery preparator test with lookup tables
taco-paco deb46a5
feat: tests for TaskStrategist
taco-paco 80763eb
feat: tests for Finalize, Undelegate + Action
taco-paco f54bb6e
refactor: warning cleanup + some file removed
taco-paco e6b79d2
fix: crash case when data.len() in instruction exceeds u16::MAX
taco-paco 9aac3cf
fix: tests within committor_service fixed
taco-paco 5ca4ae7
fix: tests
taco-paco e1204b2
fix: cargo test - passed
taco-paco 5935809
fix: escrow commitment
taco-paco e9a4811
feat: add rent_reimbisement fetching for undelegate
taco-paco 3b4312b
fix: tests
taco-paco 322cbe6
fixed versions of dlp & sdk
taco-paco 972cb0c
refactor: file cleanup
taco-paco bad27f2
refactor: cleanup
taco-paco 40e9dc5
refactor: cleanup
taco-paco aed2b89
refactor: renaming of L1Message -> BaseIntent
taco-paco 50b05dd
feat: updated sdk
taco-paco 9ff9009
fix: fixed failing tests due to low specified compute untis
taco-paco 04a33f5
fix: committor tests
taco-paco 1390309
upd .lock
taco-paco a9390e7
Merge branch 'dev' into feat/base-layer-ix/main
taco-paco 1e5d6a4
feat: option to skip ledger replay (#460)
Dodecahedr0x c527834
feat: extracted parts from magicblock-program into magicblock-core fo…
taco-paco 706ff3c
fix: integration tests compilation
taco-paco 251b2da
fix: timestamps mismatch (#454)
Dodecahedr0x dca74ee
feat(ledger): remove requirement to use the same keypair during repla…
Dodecahedr0x e206540
fix: commit via buffer bug, commit ids + some test fixes
taco-paco 44f535a
feat: fix commits of dlp
taco-paco 40787fe
feat: fixed sdk version on latest commit
taco-paco ffd211a
Merge branch 'dev' into feat/base-layer-ix/main
taco-paco f25584d
fix: ledger-restore tests - account for finalize tx
taco-paco fe67df5
fix: tests failing due to insufficient compute units
taco-paco cc3653a
fix: make committor optional for !can_clone cases
taco-paco 01685eb
refactor: remove some todos + some struct field cleaning
taco-paco af871b8
fix: clippy errors
taco-paco d583682
fix: compilation
taco-paco 31a94ea
fix: unit tests
taco-paco 4bad7a5
feat: Add validator fee claiming (#475)
BretasArthur1 da87512
fix: test-config
taco-paco b8caac3
Merge branch 'dev' into feat/base-layer-ix/main
taco-paco f08144a
feat: fix latest dlp version
taco-paco 1c871f5
feat: fix latest er-sdk version
taco-paco fbbfc62
Merge branch 'master' into dev
GabrielePicco adf3428
feat: add action test + fmt integration tests
taco-paco 44bfb2d
feat: change entrypoint to commit multiple accs + actions
taco-paco 3785e7e
refactor: remove todo!()
taco-paco f126f6b
fix: intent tests
taco-paco 1923bb9
fix: used port during test_validator_claim_fees
taco-paco 642a1ae
Merge branch 'dev' into feat/base-layer-ix/main
taco-paco 5f8d3f6
feat: removed TODOs + moved tests into test-integration. added test-s…
taco-paco cb511db
feat: addressing comments: more verbose messages, changes to log leve…
taco-paco 89a6d0c
feat: improved error handling in IntentScheduler
taco-paco 14845dd
refactor: avoid unnecessary cloning
taco-paco 73c924d
refactor: more comments, SAFETY comments + some panics removed
taco-paco 60b88c7
fix: race-condition
taco-paco 13cba33
Merge branch 'master' into feat/base-layer-ix/main
taco-paco f9d735d
feat: remove local script
taco-paco 161ab07
Merge branch 'master' into feat/base-layer-ix/main
taco-paco cecc12d
feat: returned bundle_signature table
taco-paco c6db3e7
Merge branch 'master' into feat/base-layer-ix/main
taco-paco a8ff298
Optimization: executing Commit & Finalize stages in one tx (#510)
taco-paco 46fef4a
fix: revert tests in ix_commit_local. asserting strategies returned
taco-paco b291458
refactor: Error -> <StructName>Error
taco-paco 99ea5c8
refactor: some comments addressed
taco-paco e730924
feat: architecture doc of Intent execution flow
taco-paco f34a1b7
Merge branch 'master' into feat/base-layer-ix/main
taco-paco 8c72b1f
feat: introduce SignerError handling
taco-paco 71d620d
fix: fmt + lint
taco-paco 491d30f
fix: rm local sript
taco-paco e271454
refactor: remove "l1" menations
taco-paco 5519f28
refactoring: renamings + extra comments and minor fixes
taco-paco 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
use solana_sdk::{account::AccountSharedData, clock::Slot, pubkey::Pubkey}; | ||
use solana_sdk::{ | ||
account::AccountSharedData, clock::Slot, hash::Hash, pubkey::Pubkey, | ||
}; | ||
|
||
pub trait InternalAccountProvider: Send + Sync { | ||
fn has_account(&self, pubkey: &Pubkey) -> bool; | ||
fn remove_account(&self, _pubkey: &Pubkey) {} | ||
fn get_account(&self, pubkey: &Pubkey) -> Option<AccountSharedData>; | ||
fn get_all_accounts(&self) -> Vec<(Pubkey, AccountSharedData)>; | ||
fn get_slot(&self) -> Slot; | ||
fn get_blockhash(&self) -> Hash; | ||
} |
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.
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.
ditto alphabetical