-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat: support list fields for object.move #3142
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@jolestar is attempting to deploy a commit to the Rooch Team on Vercel. A member of the Team first needs to authorize it. |
frameworks/moveos-stdlib/src/natives/moveos_stdlib/object/object_field_fn.rs
Outdated
Show resolved
Hide resolved
frameworks/moveos-stdlib/src/natives/moveos_stdlib/object/object_field_fn.rs
Outdated
Show resolved
Hide resolved
frameworks/rooch-framework/src/natives/gas_parameter/object_list_field_keys.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要构造一个测试用例:
第一个交易写 fields,第二个交易写并且读 fields。
测试目标:
- 测试从 db 中加载的场景。
- 测试如果 RuntimeObject 的 fields 中混合了 fresh 和 cached fields 后的翻页。
- 同一个交易中,数据有变化的情况下,多次遍历的结果是否一致。
这种测试需要通过集成测试来实现,参看 https://github.com/rooch-network/rooch/blob/be131eef2bb313c19d45c84ac5832ba96fbdbb69/crates/rooch-framework-tests/tests/cases
crates/rooch-framework-tests/tests/cases/table/list_field_keys.move
Outdated
Show resolved
Hide resolved
* feat: support list fields for object.move * fix UNKNOWN_INVARIANT_VIOLATION_ERROR * rename list_fields to list_field_names * fix native return types * make code tidy * make code tidy * make code tidy * support cursor and limit for list_field_keys * update object list_field_keys gas handle and adjust fetch data from db * make code tidy * update native_list_field_keys default value to 0 * check is_empty that before add native_list_field_keys * update is_empty for ListFieldsGasParametersOption * fix review notes * fix lint * add list_field_keys for table and add rooch-framework-tests * update ut assert value * update list_field_keys of table notes * add length ut for list_field_keys * add more ut for list_field_keys * make ut tidy * add iterator for table * fix next/next_mut for table issue * update borrow_field_key_internal and borrow_mut_field_key_internal notes * add How to test move contract? notes * update borrow_field_key_internal and borrow_mut_field_key_internal notes * update review notes * update review notes --------- Co-authored-by: jolestar <jolestar@gmail.com>
No description provided.