-
Notifications
You must be signed in to change notification settings - Fork 60
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: Add Base Testnet data #284
Conversation
WalkthroughThe recent updates enhance the blockchain development landscape by introducing the "base_testnet." This new configuration is integrated into several files, providing essential parameters for smart contract interactions and improving the testing environment. The enhancements focus on flexibility and efficiency for developers, facilitating smoother deployment processes within the blockchain ecosystem. Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant Hardhat
participant BaseTestnet
participant SmartContracts
Developer->>Hardhat: Configure base_testnet
Hardhat->>BaseTestnet: Connect to API
BaseTestnet->>SmartContracts: Deploy contracts
SmartContracts-->>BaseTestnet: Confirm deployment
BaseTestnet-->>Hardhat: Return transaction details
Hardhat-->>Developer: Provide feedback on deployment
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 as PR comments)
Additionally, you can add 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: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (6)
- v1/data/addresses.json (1 hunks)
- v1/data/addresses.testnet.json (1 hunks)
- v1/hardhat.config.ts (2 hunks)
- v1/lib/address.tools.ts (1 hunks)
- v1/lib/contracts.constants.ts (1 hunks)
- v1/lib/contracts.helpers.ts (1 hunks)
Additional context used
GitHub Check: lint
v1/hardhat.config.ts
[failure] 30-30:
Expected object keys to be in ascending order. 'base_testnet' should be before 'mainnet'
[failure] 41-41:
Insert⏎······
Gitleaks
v1/data/addresses.json
90-90: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
(generic-api-key)
Additional comments not posted (12)
v1/lib/contracts.constants.ts (1)
69-74
: Verify the appropriateness of default values forbase_testnet
.The new entry for
base_testnet
assigns default values ("0") to several keys. Ensure these values are correct and appropriate for the test network.v1/hardhat.config.ts (2)
30-30
: Ensure theBASESCAN_API_KEY
environment variable is set.The new entry for
base_testnet
usesprocess.env.BASESCAN_API_KEY
or an empty string. Verify that the environment variable is correctly set in the deployment environment.Tools
GitHub Check: lint
[failure] 30-30:
Expected object keys to be in ascending order. 'base_testnet' should be before 'mainnet'
41-47
: Verify the correctness ofchainId
and URLs forbase_testnet
.The new entry for
base_testnet
defineschainId
,network
name, and URLs for the API and browser interfaces. Ensure these values are correct and consistent with the actual test network configuration.Tools
GitHub Check: lint
[failure] 41-41:
Insert⏎······
v1/lib/address.tools.ts (2)
38-38
: Verify the correctness of the new entry forbase_testnet
inZetaProtocolTestNetwork
.The new entry for
base_testnet
adds it as a recognized test network. Ensure this addition is correct and consistent with other test network entries.
46-46
: Verify the correctness of the new entry forbase_testnet
inzetaProtocolTestNetworks
.The new entry for
base_testnet
adds it to the list of recognized test networks. Ensure this addition is correct and consistent with other test network entries.v1/lib/contracts.helpers.ts (1)
32-33
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
isEthNetworkName
are updated to recognize the new network name.Verification successful
Function usage verified successfully.
The function
isEthNetworkName
is correctly utilized across the codebase, and the new network namebase_testnet
is recognized in all relevant places.
v1/scripts/tools/update-tss-address.ts
v1/scripts/deployments/tools/deterministic-get-salt-zeta-connector.ts
v1/scripts/deployments/core/deterministic-deploy-zeta-token.ts
v1/scripts/deployments/tools/deterministic-get-salt-zeta-token.ts
v1/scripts/deployments/core/deploy-zeta-connector.ts
v1/scripts/tools/token-approval.ts
v1/scripts/deployments/core/deterministic-deploy-zeta-connector.ts
v1/scripts/deployments/core/deploy-zeta-token.ts
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all function calls to `isEthNetworkName` recognize the new network name. # Test: Search for the function usage. Expect: Only occurrences of the new network name. rg --type typescript -A 5 $'isEthNetworkName'Length of output: 79
Script:
#!/bin/bash # Description: Verify all function calls to `isEthNetworkName` recognize the new network name. # Test: Search for the function usage in all TypeScript files. rg 'isEthNetworkName' --glob '*.ts' -A 5Length of output: 9845
v1/data/addresses.json (1)
85-93
: LGTM!The addition of the
base_testnet
section is consistent with the existing structure.Tools
Gitleaks
90-90: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
(generic-api-key)
v1/data/addresses.testnet.json (5)
385-390
: LGTM!The addition of the
base_testnet
entries is consistent with the existing structure.
391-397
: LGTM!The addition of the
base_testnet
entries is consistent with the existing structure.
398-404
: LGTM!The addition of the
base_testnet
entries is consistent with the existing structure.
405-411
: LGTM!The addition of the
base_testnet
entries is consistent with the existing structure.
412-417
: LGTM!The addition of the
base_testnet
entries is consistent with the existing structure.
Besides the linter error it looks good to me. I'd like @lumtis to confirm though. |
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: 1
Outside diff range, codebase verification and nitpick comments (1)
v1/data/addresses.json (1)
85-85
: Add a description for the new section.Consider adding a brief description or comment for the
base_testnet
section to provide context for its purpose.+ // Base Testnet configuration
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- v1/data/addresses.json (1 hunks)
- v1/hardhat.config.ts (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- v1/hardhat.config.ts
Additional context used
Gitleaks
v1/data/addresses.json
91-91: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
(generic-api-key)
Additional comments not posted (6)
v1/data/addresses.json (6)
86-86
: Ensure theconnector
address is correct.Verify that the
connector
address0x6A269Be3e414e4617f01231a2485FB692C53f748
is correct and intended for thebase_testnet
.
87-87
: Ensure theimmutableCreate2Factory
address is correct.Verify that the
immutableCreate2Factory
address0x095a03c6a68137fE9a566bBc3e552F299d8b886d
is correct and intended for thebase_testnet
.
88-88
: Ensure theerc20Custody
address is correct.Verify that the
erc20Custody
address0x44e8ED4a36670966C292a21EC15C9E43502d3CB3
is correct and intended for thebase_testnet
.
89-89
: Ensure thetss
address is correct.Verify that the
tss
address0x8531a5aB847ff5B22D855633C25ED1DA3255247e
is correct and intended for thebase_testnet
.
90-90
: Ensure thetssUpdater
address is correct.Verify that the
tssUpdater
address0xdE3fb63723f0EEed8967ff9124e1c3bA89871b03
is correct and intended for thebase_testnet
.
92-93
: Ensure thezetaTokenConsumerUniV2
andzetaTokenConsumerUniV3
fields are correct.The
zetaTokenConsumerUniV2
andzetaTokenConsumerUniV3
fields are currently empty. Verify if this is intentional or if they need to be populated.
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: 1
Outside diff range, codebase verification and nitpick comments (2)
v1/data/addresses.json (1)
85-85
: Add a comment to explain the purpose ofbase_testnet
.Adding a brief comment to explain the purpose and usage of the
base_testnet
section would improve readability and maintainability.v1/data/addresses.testnet.json (1)
385-390
: Add a comment to explain the purpose ofbase_testnet
.Adding a brief comment to explain the purpose and usage of the
base_testnet
section would improve readability and maintainability.
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- v1/data/addresses.json (1 hunks)
- v1/data/addresses.testnet.json (1 hunks)
Additional context used
Gitleaks
v1/data/addresses.json
91-91: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
(generic-api-key)
Additional comments not posted (1)
v1/data/addresses.testnet.json (1)
399-403
: Potential API Key exposure.The address
0xf4e63991E7475b659bd97Bba85f32a7259239D5d
in thezetaToken
field may be a Generic API Key. Ensure that it is not exposing sensitive information.- "address": "0xf4e63991E7475b659bd97Bba85f32a7259239D5d" + "address": "<secure_value>"Likely invalid or redundant comment.
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.
LGTM
Summary by CodeRabbit
New Features
base_testnet
configuration with key parameters for enhanced smart contract interactions.base_testnet
, providing additional resources for developers.Bug Fixes
Documentation
Tests
Chores
Revert