This repository was archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Bank: Add function to replace empty account with upgradeable program on feature activation #32783
Merged
buffalojoec
merged 33 commits into
solana-labs:master
from
buffalojoec:bank-program-replace
Oct 4, 2023
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
4ab4bf1
replace program account
buffalojoec fb1d4c9
modify for all cases
buffalojoec 99eb96e
remove non-data swap
buffalojoec acbca38
address tests & conditional feedback
buffalojoec a8800b8
get the rent involved
buffalojoec 86833f9
mix in owner & executable
buffalojoec 637dd83
feature-related cases
buffalojoec e6bfb43
stripped back to feature-specific case only
buffalojoec 24e75d5
added feature
buffalojoec a573a97
address initial feedback
buffalojoec c221038
added more lamport checks
buffalojoec b36f56a
condense tests
buffalojoec 9a61900
using test_case
buffalojoec 67986b4
add fail cases to tests
buffalojoec 453dc8a
more cleanup
buffalojoec 7d3f877
add verifiably built program
buffalojoec a6dd68e
update program account state
buffalojoec 59a4132
cleaned up serializing logic
buffalojoec acfa993
use full word capitalization
buffalojoec 6ef8353
rename old & new to dst & src
buffalojoec 069dd53
swap src and dst in parameters
buffalojoec f044890
add warnings and errors
buffalojoec 1e7b4e5
rename feature to programify
buffalojoec 251b9a9
test suite description clarity
buffalojoec 1b37cdc
remove strings from datapoints
buffalojoec 5b280fd
spell out source and destination
buffalojoec 6ccf0f1
more verbose comments in account replace functions
buffalojoec 0392ad8
move lamport calculation
buffalojoec 41c9c40
swap lamport check for state check
buffalojoec 5cadf5b
move replace functions to helper module
buffalojoec 3e7dc30
make replace_account methods fallible
buffalojoec 19b35de
refactor error handling
buffalojoec 91bfec7
add test for source program state
buffalojoec 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
modify for all cases
- Loading branch information
commit fb1d4c99ef94d037f54ac169dbd4abd1e0586ffe
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.