lang: add AnchorProgram trait to make declare_id! optional#4293
lang: add AnchorProgram trait to make declare_id! optional#4293AvhiMaz wants to merge 13 commits into
AnchorProgram trait to make declare_id! optional#4293Conversation
|
@AvhiMaz is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
5e5fabe to
84f267a
Compare
d6b9fc0 to
9eaea21
Compare
|
gm @nutafrost, MR is ready for review, happy to make further changes. thanks :) |
|
Please address the CI failures |
@jamie-osec pushed some changes, hope ci passes now. i’m still concerned about the bench. it increased some cus in the tests/bench, but ig that’s because i’m using the latest version of solana cli. let’s see if the ci gets green 🤞🏻 |
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
ba4d76b to
6981c8c
Compare
|
can you rebase and resolve conflicts? |
0x4ka5h
left a comment
There was a problem hiding this comment.
The new no-declare-id fixture is not actually run in CI
|
@AvhiMaz can you handle the failed CI + requested changes? |
sure, on it 🫡 |
4b410cb to
e277ca4
Compare
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
e277ca4 to
96fd954
Compare
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Summary
makes
declare_id!optional by introducing theAnchorProgramtrait withconst IDas an associated constant, replacing the hardcoded global static in the entrypoint.
programs can now declare their ID inline inside the
#[program]module instead ofrelying on
declare_id!, enabling flexible multi-instance deployments and easier testing.Closes