Commit 84fd7b8
feat: Cleaner gasless implementation (#360)
## Summary
This PR simplifies the gasless setup by removing the automatic airdrop
and introducing a native way to execute transactions without charging
the payer.
- https://github.com/magicblock-labs/magicblock-svm
- Changed the `solana-svm` dependency to use a patched version that
allows signers without lamports
- Added a test case in `transaction_execute.rs` to verify transactions
with non-existent fee payers and zero fees
- Simplified and modified genesis to set lamports per signature from the
config (base fees)
- Set the default lamports per signature to 0
## Notes
- A follow-up PR will completely remove the initial payer SOL/lamports
configuration and logic
- A follow-up PR will address rent
---------
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>1 parent fabd0f3 commit 84fd7b8
File tree
29 files changed
+1394
-1269
lines changed- .github/workflows
- configs
- magicblock-account-cloner
- src
- tests
- magicblock-accounts
- src
- tests
- magicblock-api/src
- magicblock-bank
- src
- bank_dev_utils
- tests
- magicblock-config
- src
- tests
- fixtures
- magicblock-mutator/tests
- test-integration
- test-runner/bin
- test-tools/src
29 files changed
+1394
-1269
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments