-
Notifications
You must be signed in to change notification settings - Fork 13
Base layer ix #42
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
25
commits into
main
Choose a base branch
from
feat/base-layer-ix
base: main
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.
Open
Base layer ix #42
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9fbb56d
feat: incomplete instruction builder
taco-paco d5acfc2
feat: instruction builder done
taco-paco 1e088ce
refactor: some refactoring
taco-paco c49f8f5
feat: cleaned duplicates
taco-paco dbb4679
refactor: cleanup
taco-paco 5cc05ce
fix: update paths
taco-paco 4b8a4c8
refactor: consts
taco-paco 1ba4cd6
fix: adapt to changes in dlp
taco-paco 82da969
fix: update .lock
taco-paco cc29d67
feat: expose necessary types
taco-paco 8247da9
fix: compilation errors
taco-paco 05c0d68
feat: fix commits of magic programs
taco-paco efe367c
refactor: L1Message -> BaseIntent renamings
taco-paco 890a71c
feat: imported magicblock-core
taco-paco 10c4a88
feat: fix latest commits
taco-paco 75df35e
feat: expose dlp CallHandlerArgs from dlp
taco-paco 882aac8
fix: propagate all signers to magic-program
taco-paco 237f771
refactor: remove zombie
taco-paco b815e9a
fix: update .lock file
taco-paco abde9a8
fix: lint
taco-paco c9e27f3
fix: clippy
taco-paco 887750e
fix: clippy
taco-paco f88c2e3
fix: typo
taco-paco 54fe6f8
feat: update deps to latest
taco-paco df377d3
feat: replace dependancy from git to crates.io
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
// NOTE: this should go into a core package that both the sdk + the program can depend on | ||
use solana_program::pubkey; | ||
use solana_program::pubkey::Pubkey; | ||
|
||
/// The delegation program ID. | ||
pub const DELEGATION_PROGRAM_ID: Pubkey = pubkey!("DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh"); | ||
pub use dlp::consts::*; | ||
use magicblock_core::magic_program::MAGIC_CONTEXT_PUBKEY; | ||
|
||
/// The magic program ID. | ||
pub const MAGIC_PROGRAM_ID: Pubkey = pubkey!("Magic11111111111111111111111111111111111111"); | ||
pub const MAGIC_PROGRAM_ID: Pubkey = magicblock_core::magic_program::ID; | ||
|
||
/// The magic context ID. | ||
pub const MAGIC_CONTEXT_ID: Pubkey = pubkey!("MagicContext1111111111111111111111111111111"); | ||
|
||
/// | ||
/// The seed of the authority account PDA. | ||
pub const DELEGATION_RECORD: &[u8] = b"delegation"; | ||
|
||
/// The account to store the delegated account seeds. | ||
pub const DELEGATION_METADATA: &[u8] = b"delegation-metadata"; | ||
|
||
/// The seed of the buffer account PDA. | ||
pub const BUFFER: &[u8] = b"buffer"; | ||
|
||
/// The seed of the committed state PDA. | ||
pub const COMMIT_STATE: &[u8] = b"state-diff"; | ||
|
||
/// The seed of a commit state record PDA. | ||
pub const COMMIT_RECORD: &[u8] = b"commit-state-record"; | ||
|
||
/// The discriminator for the external undelegate instruction. | ||
pub const EXTERNAL_UNDELEGATE_DISCRIMINATOR: [u8; 8] = [196, 28, 41, 206, 48, 37, 51, 167]; | ||
pub const MAGIC_CONTEXT_ID: Pubkey = MAGIC_CONTEXT_PUBKEY; |
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.
we can't depend on github in order to publish the crate on crates.io (we could publish the other crate though)