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

refactor: use soldeer instead of git submodules #337

Merged
merged 21 commits into from
Sep 11, 2024
Merged

Conversation

skosito
Copy link
Contributor

@skosito skosito commented Aug 19, 2024

  • uses soldeer instead of gitmodules
  • fixes remappings to point to node_modules and soldeer deps (note: using npm for openzep dep, we can also move to soldeer there?)
  • fixes workflows for v2

Summary by CodeRabbit

  • New Features

    • Enhanced dependency installation process with updated commands for yarn and forge soldeer update.
    • New section in the README providing installation instructions for dependencies.
    • Added version checks for abigen and solc in the generate script.
  • Bug Fixes

    • Improved accessibility by updating URL links in documentation for better navigation.
  • Documentation

    • Added instructions for setting up dependencies in the README.
    • Updated various documentation links to point to the latest commits for accuracy.
  • Chores

    • Removed documentation generation from the build process to streamline script execution.
    • Eliminated recursive submodule checkout from GitHub Actions workflows to simplify processes.

Copy link
Contributor

coderabbitai bot commented Aug 19, 2024

Important

Review skipped

Review was skipped due to path filters

Files ignored due to path filters (90)
  • v2/pkg/address.sol/address.go is excluded by !v2/pkg/**
  • v2/pkg/beaconproxy.sol/beaconproxy.go is excluded by !v2/pkg/**
  • v2/pkg/console.sol/console.go is excluded by !v2/pkg/**
  • v2/pkg/core.sol/core.go is excluded by !v2/pkg/**
  • v2/pkg/defender.sol/defender.go is excluded by !v2/pkg/**
  • v2/pkg/defenderdeploy.sol/defenderdeploy.go is excluded by !v2/pkg/**
  • v2/pkg/erc1967proxy.sol/erc1967proxy.go is excluded by !v2/pkg/**
  • v2/pkg/erc1967utils.sol/erc1967utils.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custody.sol/erc20custody.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custody.t.sol/erc20custodytest.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.sol/gatewayevm.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.t.sol/gatewayevmtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmupgrade.t.sol/gatewayevmuupsupgradetest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.sol/gatewayzevm.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/math.sol/math.go is excluded by !v2/pkg/**
  • v2/pkg/mockerc20.sol/mockerc20.go is excluded by !v2/pkg/**
  • v2/pkg/mockerc721.sol/mockerc721.go is excluded by !v2/pkg/**
  • v2/pkg/proxyadmin.sol/proxyadmin.go is excluded by !v2/pkg/**
  • v2/pkg/receiverevm.sol/receiverevm.go is excluded by !v2/pkg/**
  • v2/pkg/safeconsole.sol/safeconsole.go is excluded by !v2/pkg/**
  • v2/pkg/safeerc20.sol/safeerc20.go is excluded by !v2/pkg/**
  • v2/pkg/senderzevm.sol/senderzevm.go is excluded by !v2/pkg/**
  • v2/pkg/signedmath.sol/signedmath.go is excluded by !v2/pkg/**
  • v2/pkg/src/strings.sol/strings.go is excluded by !v2/pkg/**
  • v2/pkg/stderror.sol/stderror.go is excluded by !v2/pkg/**
  • v2/pkg/stdjson.sol/stdjson.go is excluded by !v2/pkg/**
  • v2/pkg/stdmath.sol/stdmath.go is excluded by !v2/pkg/**
  • v2/pkg/stdstorage.sol/stdstorage.go is excluded by !v2/pkg/**
  • v2/pkg/stdstorage.sol/stdstoragesafe.go is excluded by !v2/pkg/**
  • v2/pkg/stdstyle.sol/stdstyle.go is excluded by !v2/pkg/**
  • v2/pkg/stdtoml.sol/stdtoml.go is excluded by !v2/pkg/**
  • v2/pkg/storageslot.sol/storageslot.go is excluded by !v2/pkg/**
  • v2/pkg/strings.sol/strings.go is excluded by !v2/pkg/**
  • v2/pkg/systemcontract.sol/systemcontract.go is excluded by !v2/pkg/**
  • v2/pkg/systemcontractmock.sol/systemcontractmock.go is excluded by !v2/pkg/**
  • v2/pkg/testerc20.sol/testerc20.go is excluded by !v2/pkg/**
  • v2/pkg/testuniversalcontract.sol/testuniversalcontract.go is excluded by !v2/pkg/**
  • v2/pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go is excluded by !v2/pkg/**
  • v2/pkg/upgradeablebeacon.sol/upgradeablebeacon.go is excluded by !v2/pkg/**
  • v2/pkg/upgrades.sol/unsafeupgrades.go is excluded by !v2/pkg/**
  • v2/pkg/upgrades.sol/upgrades.go is excluded by !v2/pkg/**
  • v2/pkg/utils.sol/utils.go is excluded by !v2/pkg/**
  • v2/pkg/versions.sol/versions.go is excluded by !v2/pkg/**
  • v2/pkg/wzeta.sol/weth9.go is excluded by !v2/pkg/**
  • v2/pkg/zeta.non-eth.sol/zetanoneth.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornative.sol/zetaconnectornative.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go is excluded by !v2/pkg/**
  • v2/pkg/zrc20.sol/zrc20.go is excluded by !v2/pkg/**
  • v2/pkg/zrc20.t.sol/zrc20test.go is excluded by !v2/pkg/**
  • v2/soldeer.lock is excluded by !**/*.lock
  • v2/types/factories/Address__factory.ts is excluded by !v2/types/**
  • v2/types/factories/BeaconProxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC1967Proxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC1967Utils__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC20CustodyEchidnaTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC20Custody__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVMEchidnaTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVMUpgradeTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayZEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Math__factory.ts is excluded by !v2/types/**
  • v2/types/factories/MockERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/MockERC721__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ProxyAdmin__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ReceiverEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SafeERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SenderZEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/StdError.sol/StdError__factory.ts is excluded by !v2/types/**
  • v2/types/factories/StdStorage.sol/StdStorageSafe__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Strings__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SystemContract.sol/SystemContract__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SystemContractMock.sol/SystemContractMock__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TestERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TestUniversalContract__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/UpgradeableBeacon__factory.ts is excluded by !v2/types/**
  • v2/types/factories/WZETA.sol/WETH9__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZRC20.sol/ZRC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZetaConnectorNative__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZetaConnectorNonNative__factory.ts is excluded by !v2/types/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Walkthrough

The recent updates refine the GitHub Actions workflows by eliminating recursive submodule checkouts and improving dependency management through additional installation commands. These modifications simplify the build process while ensuring that necessary tools are current. Documentation enhancements provide clearer installation instructions and updated links, thereby facilitating a smoother onboarding experience for developers engaging with the new smart contract architecture.

Changes

Files Change Summary
.github/workflows/generated-files_v2.yaml, .github/workflows/lint_v2.yaml, .github/workflows/slither_v2.yaml, .github/workflows/test_v2.yaml Removed recursive submodule checkout from workflow configurations; enhanced dependency installation with forge soldeer update after yarn install.
.github/workflows/publish-npm_v2.yaml Updated dependency installation to include forge soldeer update following yarn install.
.gitignore Added dependencies/ to the ignore list and provided comments on ignored files for better clarity.
v2/README.md, v2/docs/src/README.md Updated documentation to include installation instructions for dependencies using yarn and forge soldeer update, and modified links for improved accessibility.
v2/docs/.../*.md (multiple files) Updated Git source links to point to new commits for clarity, without affecting functionality or structure.
v2/package.json Modified "generate" script to remove automatic documentation generation step, indicating a shift in build process.
v2/scripts/generate_go.sh Added commands to output versions of abigen and solc tools within the process_file function for enhanced environment verification.

Possibly related PRs

  • feat: deploy zrc 20 script #338: The changes in this PR involve the removal of a check in the ZRC20 constructor, which aligns with the main PR's focus on simplifying processes in the GitHub Actions workflow, particularly regarding the handling of submodules and naming conventions.

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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@skosito skosito changed the title use soldeer instead of gitsubmodules use soldeer instead of git submodules Aug 19, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.37%. Comparing base (4fed7cb) to head (ac15a64).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #337   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files           7        7           
  Lines         305      305           
  Branches       98       98           
=======================================
  Hits          297      297           
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skosito skosito changed the title use soldeer instead of git submodules refactor: use soldeer instead of git submodules Aug 19, 2024
@skosito skosito linked an issue Aug 19, 2024 that may be closed by this pull request
@skosito skosito marked this pull request as ready for review August 19, 2024 14:13
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Outside diff range, codebase verification and nitpick comments (4)
v2/README.md (1)

10-11: Remove dollar signs from commands.

Markdownlint warns about dollar signs used before commands without showing output. Consider removing them for consistency and clarity.

- $ yarn
- $ forge soldeer update
+ yarn
+ forge soldeer update
Tools
Markdownlint

10-10: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


11-11: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

v2/docs/src/README.md (1)

10-11: Remove dollar signs from commands.

Markdownlint warns about dollar signs used before commands without showing output. Consider removing them for consistency and clarity.

- $ yarn
- $ forge soldeer update
+ yarn
+ forge soldeer update
Tools
Markdownlint

10-10: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


11-11: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

.github/workflows/generated-files_v2.yaml (1)

45-45: Reconsider the inclusion of forge soldeer update in the workflow.

The command forge soldeer update is mentioned only in documentation files and not in any scripts or workflow files, suggesting it may not be necessary for automated processes. Consider removing it or making its execution conditional based on specific needs.

  • References found in:
    • v2/README.md
    • v2/docs/src/index.md
    • v2/docs/src/README.md
Analysis chain

Ensure necessity of forge soldeer update for generated files.

The addition of forge soldeer update should be verified for its necessity in the context of generating files. Consider conditional execution if it's only needed in specific scenarios.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the necessity of `forge soldeer update` in the file generation process.

# Test: Search for `forge soldeer` usage in the codebase. Expect: Usage in generation scripts or documentation.
rg --type shell --type markdown 'forge soldeer'

Length of output: 79


Script:

#!/bin/bash
# Description: Correctly verify the necessity of `forge soldeer update` in the file generation process.

# Test: Search for `forge soldeer` usage in the codebase. Expect: Usage in YAML, shell scripts, or markdown documentation.
rg 'forge soldeer' --type yaml --type sh --type md

Length of output: 177

v2/docs/src/index.md (1)

13-16: Remove dollar signs from shell commands.

Markdownlint suggests removing dollar signs from shell commands unless showing output. This improves readability and consistency.

- $ yarn
- $ forge soldeer update
+ yarn
+ forge soldeer update
Tools
Markdownlint

14-14: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


15-15: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9193cf9 and 639b8fd.

Files ignored due to path filters (99)
  • v2/pkg/address.sol/address.go is excluded by !v2/pkg/**
  • v2/pkg/beaconproxy.sol/beaconproxy.go is excluded by !v2/pkg/**
  • v2/pkg/console.sol/console.go is excluded by !v2/pkg/**
  • v2/pkg/core.sol/core.go is excluded by !v2/pkg/**
  • v2/pkg/defender.sol/defender.go is excluded by !v2/pkg/**
  • v2/pkg/defenderdeploy.sol/defenderdeploy.go is excluded by !v2/pkg/**
  • v2/pkg/erc1967proxy.sol/erc1967proxy.go is excluded by !v2/pkg/**
  • v2/pkg/erc1967utils.sol/erc1967utils.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custody.sol/erc20custody.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custody.t.sol/erc20custodytest.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.sol/gatewayevm.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.t.sol/gatewayevmtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmupgrade.t.sol/gatewayevmuupsupgradetest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.sol/gatewayzevm.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/math.sol/math.go is excluded by !v2/pkg/**
  • v2/pkg/mockerc20.sol/mockerc20.go is excluded by !v2/pkg/**
  • v2/pkg/mockerc721.sol/mockerc721.go is excluded by !v2/pkg/**
  • v2/pkg/proxyadmin.sol/proxyadmin.go is excluded by !v2/pkg/**
  • v2/pkg/receiverevm.sol/receiverevm.go is excluded by !v2/pkg/**
  • v2/pkg/safeconsole.sol/safeconsole.go is excluded by !v2/pkg/**
  • v2/pkg/safeerc20.sol/safeerc20.go is excluded by !v2/pkg/**
  • v2/pkg/senderzevm.sol/senderzevm.go is excluded by !v2/pkg/**
  • v2/pkg/signedmath.sol/signedmath.go is excluded by !v2/pkg/**
  • v2/pkg/src/strings.sol/strings.go is excluded by !v2/pkg/**
  • v2/pkg/stderror.sol/stderror.go is excluded by !v2/pkg/**
  • v2/pkg/stdjson.sol/stdjson.go is excluded by !v2/pkg/**
  • v2/pkg/stdmath.sol/stdmath.go is excluded by !v2/pkg/**
  • v2/pkg/stdstorage.sol/stdstorage.go is excluded by !v2/pkg/**
  • v2/pkg/stdstorage.sol/stdstoragesafe.go is excluded by !v2/pkg/**
  • v2/pkg/stdstyle.sol/stdstyle.go is excluded by !v2/pkg/**
  • v2/pkg/stdtoml.sol/stdtoml.go is excluded by !v2/pkg/**
  • v2/pkg/storageslot.sol/storageslot.go is excluded by !v2/pkg/**
  • v2/pkg/strings.sol/strings.go is excluded by !v2/pkg/**
  • v2/pkg/systemcontract.sol/systemcontract.go is excluded by !v2/pkg/**
  • v2/pkg/systemcontractmock.sol/systemcontractmock.go is excluded by !v2/pkg/**
  • v2/pkg/testerc20.sol/testerc20.go is excluded by !v2/pkg/**
  • v2/pkg/testuniversalcontract.sol/testuniversalcontract.go is excluded by !v2/pkg/**
  • v2/pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go is excluded by !v2/pkg/**
  • v2/pkg/upgradeablebeacon.sol/upgradeablebeacon.go is excluded by !v2/pkg/**
  • v2/pkg/upgrades.sol/unsafeupgrades.go is excluded by !v2/pkg/**
  • v2/pkg/upgrades.sol/upgrades.go is excluded by !v2/pkg/**
  • v2/pkg/utils.sol/utils.go is excluded by !v2/pkg/**
  • v2/pkg/versions.sol/versions.go is excluded by !v2/pkg/**
  • v2/pkg/vm.sol/vm.go is excluded by !v2/pkg/**
  • v2/pkg/vm.sol/vmsafe.go is excluded by !v2/pkg/**
  • v2/pkg/wzeta.sol/weth9.go is excluded by !v2/pkg/**
  • v2/pkg/zeta.non-eth.sol/zetanoneth.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornative.sol/zetaconnectornative.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go is excluded by !v2/pkg/**
  • v2/pkg/zrc20.sol/zrc20.go is excluded by !v2/pkg/**
  • v2/pkg/zrc20.t.sol/zrc20test.go is excluded by !v2/pkg/**
  • v2/soldeer.lock is excluded by !**/*.lock
  • v2/types/Strings.ts is excluded by !v2/types/**
  • v2/types/Vm.sol/Vm.ts is excluded by !v2/types/**
  • v2/types/Vm.sol/VmSafe.ts is excluded by !v2/types/**
  • v2/types/factories/Address__factory.ts is excluded by !v2/types/**
  • v2/types/factories/BeaconProxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC1967Proxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC1967Utils__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC20CustodyEchidnaTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC20Custody__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVMEchidnaTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVMUpgradeTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayZEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Math__factory.ts is excluded by !v2/types/**
  • v2/types/factories/MockERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/MockERC721__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ProxyAdmin__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ReceiverEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SafeERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SenderZEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/StdError.sol/StdError__factory.ts is excluded by !v2/types/**
  • v2/types/factories/StdStorage.sol/StdStorageSafe__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Strings__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SystemContract.sol/SystemContract__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SystemContractMock.sol/SystemContractMock__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TestERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TestUniversalContract__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/UpgradeableBeacon__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Vm.sol/VmSafe__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Vm.sol/Vm__factory.ts is excluded by !v2/types/**
  • v2/types/factories/WZETA.sol/WETH9__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZRC20.sol/ZRC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZetaConnectorNative__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZetaConnectorNonNative__factory.ts is excluded by !v2/types/**
  • v2/types/factories/index.ts is excluded by !v2/types/**
  • v2/types/index.ts is excluded by !v2/types/**
Files selected for processing (41)
  • .github/workflows/generated-files_v2.yaml (2 hunks)
  • .github/workflows/lint_v2.yaml (2 hunks)
  • .github/workflows/publish-npm_v2.yaml (1 hunks)
  • .github/workflows/slither_v2.yaml (2 hunks)
  • .github/workflows/test_v2.yaml (2 hunks)
  • .gitignore (1 hunks)
  • v2/README.md (1 hunks)
  • v2/docs/src/README.md (1 hunks)
  • v2/docs/src/contracts/Revert.sol/interface.Revertable.md (1 hunks)
  • v2/docs/src/contracts/Revert.sol/struct.RevertContext.md (1 hunks)
  • v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md (1 hunks)
  • v2/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md (1 hunks)
  • v2/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md (1 hunks)
  • v2/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md (1 hunks)
  • v2/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md (1 hunks)
  • v2/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md (1 hunks)
  • v2/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md (1 hunks)
  • v2/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md (1 hunks)
  • v2/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md (1 hunks)
  • v2/docs/src/index.md (1 hunks)
  • v2/foundry.toml (2 hunks)
Files skipped from review due to trivial changes (32)
  • .gitignore
  • v2/docs/src/contracts/Revert.sol/interface.Revertable.md
  • v2/docs/src/contracts/Revert.sol/struct.RevertContext.md
  • v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md
  • v2/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md
  • v2/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md
  • v2/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md
  • v2/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md
  • v2/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md
  • v2/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md
  • v2/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md
  • v2/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md
  • v2/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md
  • v2/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md
  • v2/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md
  • v2/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md
Additional context used
Markdownlint
v2/README.md

10-10: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


11-11: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

v2/docs/src/README.md

10-10: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


11-11: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

v2/docs/src/index.md

14-14: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)


15-15: null
Dollar signs used before commands without showing output

(MD014, commands-show-output)

Additional comments not posted (6)
.github/workflows/lint_v2.yaml (1)

42-44: Verify the impact of removing submodules checkout.

The removal of submodules: recursive in the Checkout Repository step may affect projects that rely on submodules. Ensure that all necessary dependencies are correctly managed without submodules.

Verification successful

No impact from removing submodules checkout.

The repository does not contain any configured submodules, so the removal of the submodules: recursive option will not affect the build process.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if any submodules are required for the build process.

# Test: Search for submodule references in the repository. Expect: No essential submodules.
git config --file .gitmodules --get-regexp path

Length of output: 49

.github/workflows/test_v2.yaml (1)

42-44: Verify the impact of removing submodules checkout.

The removal of submodules: recursive in the Checkout Repository step may affect projects that rely on submodules. Ensure that all necessary dependencies are correctly managed without submodules.

Verification successful

No impact from the removal of submodules checkout.

The repository does not have any configured submodules or references to submodules. Therefore, removing submodules: recursive from the workflow will not affect the build process or dependency management.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if any submodules are required for the build process.

# Test: Search for submodule references in the repository. Expect: No essential submodules.
git config --file .gitmodules --get-regexp path

Length of output: 49


Script:

#!/bin/bash
# Description: Search for any references to submodules in the repository files.

# Test: Use ripgrep to search for the term 'submodule' across the repository.
rg 'submodule' --ignore-case

Length of output: 28

v2/foundry.toml (1)

9-13: LGTM!

The updates to remappings and the addition of the [dependencies] section improve dependency management and ensure compatibility with the latest library versions.

Also applies to: 39-41

.github/workflows/publish-npm_v2.yaml (1)

31-34: Ensure forge soldeer update is necessary for all builds.

The addition of forge soldeer update aligns with the transition to Soldeer. Ensure this command is required for all builds or consider conditional execution if it's only needed in specific scenarios.

.github/workflows/slither_v2.yaml (1)

44-46: Verify the impact of removing submodules.

The removal of submodules: recursive simplifies the checkout process. Ensure that no submodules are required for this workflow, as their absence could affect the build.

Verification successful

No active submodule dependencies found.

The .gitmodules file exists but does not contain any configured submodule paths, and no references to submodules were found in the codebase. Therefore, removing submodules: recursive from the workflow should not impact the build process.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the absence of submodule dependencies in the workflow.

# Test: Search for submodule usage in the codebase. Expect: No critical submodule dependencies.
git config --file .gitmodules --get-regexp path

Length of output: 49


Script:

#!/bin/bash
# Check if the .gitmodules file exists in the repository
if [ -f .gitmodules ]; then
  echo ".gitmodules file exists."
else
  echo ".gitmodules file does not exist."
fi

# Search for any submodule-related references in the codebase
rg 'submodule' --glob '!.git' -A 3

Length of output: 118


Script:

#!/bin/bash
# List the contents of the .gitmodules file to identify configured submodules
cat .gitmodules

# Check for any references to the submodules listed in .gitmodules within the codebase
submodule_paths=$(git config --file .gitmodules --get-regexp path | awk '{print $2}')
for path in $submodule_paths; do
  echo "Searching for references to submodule path: $path"
  rg "$path" --glob '!.git' -A 3
done

Length of output: 107

v2/docs/src/index.md (1)

9-9: Improved link accessibility.

The update to an absolute URL for the V2 Localnet guide enhances accessibility and clarity in the documentation.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 639b8fd and 9c4e8cd.

Files ignored due to path filters (89)
  • v2/pkg/address.sol/address.go is excluded by !v2/pkg/**
  • v2/pkg/beaconproxy.sol/beaconproxy.go is excluded by !v2/pkg/**
  • v2/pkg/console.sol/console.go is excluded by !v2/pkg/**
  • v2/pkg/core.sol/core.go is excluded by !v2/pkg/**
  • v2/pkg/defender.sol/defender.go is excluded by !v2/pkg/**
  • v2/pkg/defenderdeploy.sol/defenderdeploy.go is excluded by !v2/pkg/**
  • v2/pkg/erc1967proxy.sol/erc1967proxy.go is excluded by !v2/pkg/**
  • v2/pkg/erc1967utils.sol/erc1967utils.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custody.sol/erc20custody.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custody.t.sol/erc20custodytest.go is excluded by !v2/pkg/**
  • v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.sol/gatewayevm.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevm.t.sol/gatewayevmtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmupgrade.t.sol/gatewayevmuupsupgradetest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.sol/gatewayzevm.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go is excluded by !v2/pkg/**
  • v2/pkg/math.sol/math.go is excluded by !v2/pkg/**
  • v2/pkg/mockerc20.sol/mockerc20.go is excluded by !v2/pkg/**
  • v2/pkg/mockerc721.sol/mockerc721.go is excluded by !v2/pkg/**
  • v2/pkg/proxyadmin.sol/proxyadmin.go is excluded by !v2/pkg/**
  • v2/pkg/receiverevm.sol/receiverevm.go is excluded by !v2/pkg/**
  • v2/pkg/safeconsole.sol/safeconsole.go is excluded by !v2/pkg/**
  • v2/pkg/safeerc20.sol/safeerc20.go is excluded by !v2/pkg/**
  • v2/pkg/senderzevm.sol/senderzevm.go is excluded by !v2/pkg/**
  • v2/pkg/signedmath.sol/signedmath.go is excluded by !v2/pkg/**
  • v2/pkg/src/strings.sol/strings.go is excluded by !v2/pkg/**
  • v2/pkg/stderror.sol/stderror.go is excluded by !v2/pkg/**
  • v2/pkg/stdjson.sol/stdjson.go is excluded by !v2/pkg/**
  • v2/pkg/stdmath.sol/stdmath.go is excluded by !v2/pkg/**
  • v2/pkg/stdstorage.sol/stdstorage.go is excluded by !v2/pkg/**
  • v2/pkg/stdstorage.sol/stdstoragesafe.go is excluded by !v2/pkg/**
  • v2/pkg/stdstyle.sol/stdstyle.go is excluded by !v2/pkg/**
  • v2/pkg/stdtoml.sol/stdtoml.go is excluded by !v2/pkg/**
  • v2/pkg/storageslot.sol/storageslot.go is excluded by !v2/pkg/**
  • v2/pkg/strings.sol/strings.go is excluded by !v2/pkg/**
  • v2/pkg/systemcontract.sol/systemcontract.go is excluded by !v2/pkg/**
  • v2/pkg/systemcontractmock.sol/systemcontractmock.go is excluded by !v2/pkg/**
  • v2/pkg/testerc20.sol/testerc20.go is excluded by !v2/pkg/**
  • v2/pkg/testuniversalcontract.sol/testuniversalcontract.go is excluded by !v2/pkg/**
  • v2/pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go is excluded by !v2/pkg/**
  • v2/pkg/upgradeablebeacon.sol/upgradeablebeacon.go is excluded by !v2/pkg/**
  • v2/pkg/upgrades.sol/unsafeupgrades.go is excluded by !v2/pkg/**
  • v2/pkg/upgrades.sol/upgrades.go is excluded by !v2/pkg/**
  • v2/pkg/utils.sol/utils.go is excluded by !v2/pkg/**
  • v2/pkg/versions.sol/versions.go is excluded by !v2/pkg/**
  • v2/pkg/wzeta.sol/weth9.go is excluded by !v2/pkg/**
  • v2/pkg/zeta.non-eth.sol/zetanoneth.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornative.sol/zetaconnectornative.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go is excluded by !v2/pkg/**
  • v2/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go is excluded by !v2/pkg/**
  • v2/pkg/zrc20.sol/zrc20.go is excluded by !v2/pkg/**
  • v2/pkg/zrc20.t.sol/zrc20test.go is excluded by !v2/pkg/**
  • v2/types/factories/Address__factory.ts is excluded by !v2/types/**
  • v2/types/factories/BeaconProxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC1967Proxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC1967Utils__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC20CustodyEchidnaTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ERC20Custody__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVMEchidnaTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVMUpgradeTest__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/GatewayZEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Math__factory.ts is excluded by !v2/types/**
  • v2/types/factories/MockERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/MockERC721__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ProxyAdmin__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ReceiverEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SafeERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SenderZEVM__factory.ts is excluded by !v2/types/**
  • v2/types/factories/StdError.sol/StdError__factory.ts is excluded by !v2/types/**
  • v2/types/factories/StdStorage.sol/StdStorageSafe__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Strings__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SystemContract.sol/SystemContract__factory.ts is excluded by !v2/types/**
  • v2/types/factories/SystemContractMock.sol/SystemContractMock__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TestERC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TestUniversalContract__factory.ts is excluded by !v2/types/**
  • v2/types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts is excluded by !v2/types/**
  • v2/types/factories/UpgradeableBeacon__factory.ts is excluded by !v2/types/**
  • v2/types/factories/WZETA.sol/WETH9__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZRC20.sol/ZRC20__factory.ts is excluded by !v2/types/**
  • v2/types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZetaConnectorNative__factory.ts is excluded by !v2/types/**
  • v2/types/factories/ZetaConnectorNonNative__factory.ts is excluded by !v2/types/**
Files selected for processing (31)
  • v2/docs/src/contracts/Revert.sol/interface.Revertable.md (1 hunks)
  • v2/docs/src/contracts/Revert.sol/struct.RevertContext.md (1 hunks)
  • v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md (1 hunks)
  • v2/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md (1 hunks)
  • v2/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md (1 hunks)
  • v2/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md (1 hunks)
  • v2/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md (1 hunks)
  • v2/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md (1 hunks)
  • v2/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md (1 hunks)
  • v2/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md (1 hunks)
  • v2/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md (1 hunks)
  • v2/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md (1 hunks)
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md (1 hunks)
Files skipped from review due to trivial changes (27)
  • v2/docs/src/contracts/Revert.sol/struct.RevertContext.md
  • v2/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md
  • v2/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md
  • v2/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md
  • v2/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md
  • v2/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md
  • v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md
  • v2/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md
  • v2/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md
  • v2/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md
  • v2/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md
  • v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md
  • v2/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md
  • v2/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md
  • v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md
  • v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md
Files skipped from review as they are similar to previous changes (4)
  • v2/docs/src/contracts/Revert.sol/interface.Revertable.md
  • v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md
  • v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md
  • v2/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md

@skosito
Copy link
Contributor Author

skosito commented Aug 19, 2024

@fadeev do we need to run yarn docs with yarn generate? unfortunately this breaks the build every time because of changes in md files like:

[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/9c4e8cd193f3cb13413316a8459936d5fae7dd6c/contracts/zevm/interfaces/IGatewayZEVM.sol)

that are updated with every commit .../blob/<COMMIT_ID>/... so CI reports diff and fails the workflow

@fadeev
Copy link
Member

fadeev commented Aug 20, 2024

@skosito let's remove yarn docs from generate.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9c4e8cd and eb1c26c.

Files selected for processing (1)
  • v2/package.json (1 hunks)
Additional comments not posted (1)
v2/package.json (1)

16-16: Consider handling documentation generation separately.

The removal of && yarn docs from the "generate" script indicates a shift in how documentation is managed. Ensure that documentation generation is handled appropriately elsewhere to maintain up-to-date documentation.

@skosito
Copy link
Contributor Author

skosito commented Sep 10, 2024

@skosito let's remove yarn docs from generate.

hey @fadeev could you please recheck this one? thanks

@fadeev
Copy link
Member

fadeev commented Sep 11, 2024

@skosito let's remove yarn docs from generate.

hey @fadeev could you please recheck this one? thanks

I've ran yarn generate, this should satisfy the check. It wasn't triggered for some reason. Conflicts with main can be solved with git merge --strategy-option theirs (they are only touching docs).

@skosito
Copy link
Contributor Author

skosito commented Sep 11, 2024

@skosito let's remove yarn docs from generate.

hey @fadeev could you please recheck this one? thanks

I've ran yarn generate, this should satisfy the check. It wasn't triggered for some reason. Conflicts with main can be solved with git merge --strategy-option theirs (they are only touching docs).

i was more referring to PR as a whole, if you could review it it would be great, to see if this is ok from package manager perspective, npm publishing and so on

i will resolve conflicts

@fadeev
Copy link
Member

fadeev commented Sep 11, 2024

@skosito I think this is good as long as we use Soldeer only for "development dependencies", so for scripts, tests, etc. (which I believe is what we're doing right now with forge-std and openzeppelin-foundry-upgrades). Everything else we install from npm to keep compatibility with tools relying on npm.

@fadeev
Copy link
Member

fadeev commented Sep 11, 2024

Should we remove lib/?

@skosito
Copy link
Contributor Author

skosito commented Sep 11, 2024

Should we remove lib/?

yes initially i removed it in first commit cb0d266#diff-397b1d5f636e2fc49d5a7c17abf7506455208f62a7415abd09fb7e5cff7ff22b but it is reverted back probably in merge commit, looking into it

@skosito skosito merged commit 292d235 into main Sep 11, 2024
9 checks passed
@skosito skosito deleted the integrate-soldeer branch September 11, 2024 16:40
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.

Migrate from git submodules to Soldeer
4 participants