Skip to content
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

Reorg Storage program to look more like the others #3448

Merged
merged 4 commits into from
Mar 24, 2019

Conversation

garious
Copy link
Contributor

@garious garious commented Mar 22, 2019

Problem

Storage program has different file and naming conventions than the others.

Summary of Changes

  • Break up lib.rs
  • Rename StorageProgram to StorageInstruction
  • Rename StorageProgramState to StorageContract
  • Added StorageInstruction constructors
  • Boot StorageTransaction

@garious garious requested a review from sakridge March 22, 2019 20:33
@sakridge
Copy link
Member

Hmm. we have a StorageState already in storage_stage...

@garious
Copy link
Contributor Author

garious commented Mar 22, 2019

Yikes, StorageState with state field holding a StorageStateInner? Can you think of more precise names for those? Maybe even StorageStageState, perhaps? But "...Inner" yuck! Call it what it is, not where it is.

@sakridge
Copy link
Member

Sure. We can go with new names for those.. maybe SharedStorageStageState for outer and StorageStageState for what is the Inner one.

@sakridge
Copy link
Member

But StorageState vs. StorageProgramState is a less precise name.

@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

Merging #3448 into master will decrease coverage by <.1%.
The diff coverage is 94.1%.

@@           Coverage Diff            @@
##           master   #3448     +/-   ##
========================================
- Coverage    79.3%   79.3%   -0.1%     
========================================
  Files         154     156      +2     
  Lines       24191   24181     -10     
========================================
- Hits        19206   19198      -8     
+ Misses       4985    4983      -2

@garious
Copy link
Contributor Author

garious commented Mar 23, 2019

@sakridge, I agree StorageState isn't very precise as soon as its outside the storage program crate. I renamed it to StorageContract. What do you think? Better? Worse?

@sakridge
Copy link
Member

@garious StorageContract is good.

@garious garious added the automerge Merge this Pull Request automatically once CI passes label Mar 24, 2019
@solana-grimes solana-grimes merged commit c49e84c into solana-labs:master Mar 24, 2019
Lichtso added a commit to Lichtso/solana that referenced this pull request Nov 7, 2024
* Fixes test_load_transaction_accounts_program_account_executable_bypass.

* Fixes test_load_transaction_accounts_data_sizes().

* Removes test_load_transaction_accounts_program_account_not_found_but_loaded().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants