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

Add immutable project #126

Closed
wants to merge 3 commits into from

Conversation

Ben-Rey
Copy link
Collaborator

@Ben-Rey Ben-Rey commented Sep 24, 2024

No description provided.

@Ben-Rey Ben-Rey linked an issue Sep 24, 2024 that may be closed by this pull request
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it intended to push this file ?

@@ -6,3 +6,5 @@ export const CHUNK_NB_TAG = k.nextKey(); // 2 as u8
export const METADATA_TAG = k.nextKey(); // 3 as u8
export const MAX_STORAGE_VALUE_SIZE = k.nextKey(); // 4 as u8
export const FILES_PATH_LIST = new ConstantManager<Array<string>, u8>(k); // k will be 5 as u8
export const IMMUTABLE = new ConstantManager<bool, u8>(k); // k will be 6 as u8
export const DEWEB_VERSION = new ConstantManager<u32, u8>(k); // k will be 7 as u8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was more thinking about something like a \007DEWEB_VERSION
So we have a byte at the beginning, and then the variable name. So when looking into the ledger, we can check if this key exists. If so, we know it's a website.

But if we just use 7, a lot of SC might use it, so we will note a lot of SCs as websites while they won't be websites

@Ben-Rey Ben-Rey closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make immutable
2 participants