-
Notifications
You must be signed in to change notification settings - Fork 290
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
chore: rename starcoin-natives to starcoin-frameworks #4189
Conversation
Warning Rate limit exceeded@nkysg has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 37 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe changes involve a comprehensive renaming and restructuring within the Starcoin project, where references to "starcoin-natives" have been updated to "starcoin-frameworks" across multiple files. This includes modifications in dependency declarations, import statements, and function implementations, reflecting a shift in the organization and categorization of the project's components. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Framework
participant GasMeter
participant Runtime
User->>Framework: Request gas parameters
Framework->>GasMeter: Fetch GasParameters
GasMeter->>Runtime: Provide gas calculations
Runtime-->>User: Return gas information
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
Cargo.lock
is excluded by!**/*.lock
Files selected for processing (8)
- Cargo.toml (3 hunks)
- vm/frameworks/Cargo.toml (1 hunks)
- vm/gas-algebra-ext/Cargo.toml (1 hunks)
- vm/gas-algebra-ext/src/starcoin_framework.rs (1 hunks)
- vm/starcoin-gas-meter/Cargo.toml (1 hunks)
- vm/starcoin-gas-meter/src/gas_meter.rs (2 hunks)
- vm/vm-runtime/Cargo.toml (2 hunks)
- vm/vm-runtime/src/natives.rs (3 hunks)
Files skipped from review due to trivial changes (3)
- Cargo.toml
- vm/frameworks/Cargo.toml
- vm/gas-algebra-ext/Cargo.toml
Additional comments not posted (13)
vm/starcoin-gas-meter/Cargo.toml (1)
9-9
: LGTM!The dependency change from
starcoin-natives
tostarcoin-frameworks
aligns with the PR objective of renaming.vm/vm-runtime/Cargo.toml (2)
25-25
: LGTM!The dependency change from
starcoin-natives
tostarcoin-frameworks
aligns with the PR objective of renaming.
47-47
: LGTM!The
testing
feature update to includestarcoin-frameworks/testing
instead ofstarcoin-natives/testing
aligns with the PR objective of renaming.vm/gas-algebra-ext/src/starcoin_framework.rs (1)
5-5
: LGTM!The import statement change from
starcoin_natives
tostarcoin_frameworks
aligns with the PR objective of renaming.vm/vm-runtime/src/natives.rs (7)
32-32
: LGTM!The renaming from
starcoin_natives::hash::make_all
tostarcoin_frameworks::hash::make_all
is correct and consistent.
40-40
: LGTM!The renaming from
starcoin_natives::from_bcs::make_all
tostarcoin_frameworks::from_bcs::make_all
is correct and consistent.
44-44
: LGTM!The renaming from
starcoin_natives::signature::make_all
tostarcoin_frameworks::signature::make_all
is correct and consistent.
56-56
: LGTM!The renaming from
starcoin_natives::account::make_all
tostarcoin_frameworks::account::make_all
is correct and consistent.
64-64
: LGTM!The renaming from
starcoin_natives::token::make_all
tostarcoin_frameworks::token::make_all
is correct and consistent.
68-68
: LGTM!The renaming from
starcoin_natives::u256::make_all
tostarcoin_frameworks::u256::make_all
is correct and consistent.
85-85
: LGTM!The renaming from
starcoin_natives::secp256k1::make_all
tostarcoin_frameworks::secp256k1::make_all
is correct and consistent.vm/starcoin-gas-meter/src/gas_meter.rs (2)
43-43
: LGTM!The renaming from
starcoin_natives::GasParameters
tostarcoin_frameworks::GasParameters
is correct and consistent.
73-73
: LGTM!The renaming from
starcoin_natives::GasParameters::zeros
tostarcoin_frameworks::GasParameters::zeros
is correct and consistent.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (11)
- vm/frameworks/src/lib.rs (1 hunks)
- vm/frameworks/src/natives/account.rs (1 hunks)
- vm/frameworks/src/natives/from_bcs.rs (2 hunks)
- vm/frameworks/src/natives/hash.rs (4 hunks)
- vm/frameworks/src/natives/secp256k1.rs (2 hunks)
- vm/frameworks/src/natives/signature.rs (2 hunks)
- vm/frameworks/src/natives/token.rs (1 hunks)
- vm/frameworks/src/natives/u256.rs (2 hunks)
- vm/gas-algebra-ext/src/starcoin_framework.rs (1 hunks)
- vm/starcoin-gas-meter/src/gas_meter.rs (2 hunks)
- vm/vm-runtime/src/natives.rs (3 hunks)
Files skipped from review due to trivial changes (5)
- vm/frameworks/src/natives/from_bcs.rs
- vm/frameworks/src/natives/hash.rs
- vm/frameworks/src/natives/secp256k1.rs
- vm/frameworks/src/natives/signature.rs
- vm/frameworks/src/natives/u256.rs
Files skipped from review as they are similar to previous changes (3)
- vm/gas-algebra-ext/src/starcoin_framework.rs
- vm/starcoin-gas-meter/src/gas_meter.rs
- vm/vm-runtime/src/natives.rs
Additional comments not posted (4)
vm/frameworks/src/lib.rs (2)
2-2
: LGTM!The comment provides useful context by referencing a similar file in another project.
3-3
: LGTM!The module declaration is correct and aligns with the file's purpose.
vm/frameworks/src/natives/account.rs (1)
101-101
: LGTM! But verify the function usage in the codebase.The change in the namespace indicates a restructuring of the module organization. Ensure that all references to
make_module_natives
are updated accordingly.Run the following script to verify the function usage:
Verification successful
Function usage verified successfully.
All references to
make_module_natives
have been updated to use the new namespacecrate::natives::helpers::make_module_natives
consistently across the codebase. No issues were found.
- Files checked include:
u256.rs
,token.rs
,signature.rs
,hash.rs
,from_bcs.rs
,account.rs
, andsecp256k1.rs
.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all references to `make_module_natives` are updated. # Test: Search for the function usage. Expect: Only occurrences of the new namespace. rg --type rust -A 5 $'make_module_natives'Length of output: 1887
vm/frameworks/src/natives/token.rs (1)
90-90
: LGTM! But verify the function usage in the codebase.The change in the namespace indicates a restructuring of the module organization. Ensure that all references to
make_module_natives
are updated accordingly.Run the following script to verify the function usage:
Verification successful
Verification Successful: Namespace Update Consistent
All references to the
make_module_natives
function have been updated to use the new namespacecrate::natives::helpers
across the codebase. No outdated references were found.
- Files verified include:
u256.rs
,signature.rs
,secp256k1.rs
,helpers.rs
,hash.rs
,from_bcs.rs
,account.rs
, andtoken.rs
.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all references to `make_module_natives` are updated. # Test: Search for the function usage. Expect: Only occurrences of the new namespace. rg --type rust -A 5 $'make_module_natives'Length of output: 1887
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information
Summary by CodeRabbit
New Features
Bug Fixes
Chores
natives
module for better organization and modularity.