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

[Moveosstd] Refactor tableinfo create and store typetag in table info #1223

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

baichuan3
Copy link
Collaborator

Summary

Create TableInfo object in Move module to make easy auto-index for table changes.

  1. Add table new native function, create table data and table info, and store table info object in contract, excluding system reserve accounts, like 0x1, 0x2, 0x3...
  2. Store type tag in TableInfo and TableChange, prepare for [RPC] how to use rooch_listStates to list table keys #1179
  3. For system reserve accounts (0x1, 0x2, 0x3...), the contract deployment precedes the table creation operation, so the module table cannot be created directly in the contract. The table data and table info of such accounts are completed in the VM, the TableInfo object is updated and maintenance (size and state root) is also handled in the VM to avoid having two sets of logic in the VM and the contract.

Copy link

vercel bot commented Dec 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Dec 13, 2023 1:32am

@baichuan3 baichuan3 merged commit 92f01ca into main Dec 13, 2023
6 checks passed
@baichuan3 baichuan3 deleted the refactor_table_create branch December 13, 2023 02:33
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.

[MoveosStd] Create TableInfo object in Move module
2 participants