Skip to content

feat(nns): Store wasm_metadata in SNS-W's stable memory - #956

Closed
aterga wants to merge 2 commits into
masterfrom
arshavir/NNS1-2997
Closed

aterga wants to merge 2 commits into
masterfrom
arshavir/NNS1-2997

Conversation

@aterga

@aterga aterga commented Aug 15, 2024

Copy link
Copy Markdown
Contributor

This PR is the first step towards enabling the SnsW.get_wasm_metadata endpoint in production. For that, we need a way to store the metadata in the stable memory, as recomputing it each time is expensive (because canister WASMs stored in SNS-W are often compressed).

@github-actions github-actions Bot added the feat label Aug 15, 2024
@max-dfinity
max-dfinity self-requested a review August 15, 2024 15:07
@aterga

aterga commented Aug 16, 2024

Copy link
Copy Markdown
Contributor Author

On second thoughts, I'm preferring the alternative approach: #977

@max-dfinity

Copy link
Copy Markdown
Contributor

@aterga should we close this PR?

@aterga aterga closed this Aug 20, 2024
github-merge-queue Bot pushed a commit that referenced this pull request Aug 23, 2024
#977)

This PR is the first step towards enabling the `SnsW.get_wasm_metadata`
endpoint in production. For that, we need a way to store the metadata in
the stable memory, as recomputing it each time is expensive (because
canister WASMs stored in SNS-W are often compressed).

Unlike the [first attempt](#956), this
PR makes it harder to represent disallowed states in the type system,
e.g., there cannot metadata that does not belong to any WASM stored in
SNS-W.

---------

Co-authored-by: IDX GitHub Automation <[email protected]>
Co-authored-by: Carly Gundy <[email protected]>
Co-authored-by: Mathias Björkqvist <[email protected]>
Co-authored-by: tim gretler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants