Skip to content

Comments

Added Chain support for ETH Classic Testnet with chain wise contract address selection#76

Merged
adityabhattad2021 merged 8 commits intoStabilityNexus:developfrom
shivambisen:develop
Mar 9, 2025
Merged

Added Chain support for ETH Classic Testnet with chain wise contract address selection#76
adityabhattad2021 merged 8 commits intoStabilityNexus:developfrom
shivambisen:develop

Conversation

@shivambisen
Copy link
Contributor

@shivambisen shivambisen commented Feb 26, 2025

Related Issue:
Fixes #45.

Overview
Previously, FairFund smart contracts and the frontend were deployed and configured only for Polygon. To reach a wider audience, this update adds support for an additional EVM-compatible network—Ethereum Classic Testnet—by updating both the deployment process and frontend integration.

Changes Made:

Ethereum Classic Testnet Deployment:
Updated deployment scripts to deploy and verify the FairFund smart contracts on Ethereum Modor and verification trough Blockscout.

Contract Registry:
Implemented a registry mapping that maps each supported chain (currently Polygon and Ethereum Classic Testnet) to its corresponding deployed contract address. This registry is maintained in production/FairFunddeployment.json file for frontend consumption.(Deployfaifund.s.sol)

Frontend Architecture Updates:

Dynamic Contract Address Mapping:
Refactored the constants.ts file and vault-form.tsx to implement a chain-to-contract-address mapping system. The frontend now dynamically selects the correct contract address based on the connected chain.

Networks:
added a networks file to configure addition networks which are not included into @reown/appkit/networks

Updated Wagmi Configuration:
Modified the Wagmi configuration to support multiple networks.

Testing

Smart Contract Testing:
The contract functions have been verified on both Polygon amoy and Ethereum Classic Testnets.

Frontend Testing:
Dynamic contract address selection and network-specific configurations were tested by creating test vaults and adding funds into vault

Test Video:- https://drive.google.com/file/d/1atsLyzyhKwLftdZKxec8HfOytbBTnWd4/view?usp=sharing

@shivambisen shivambisen changed the title Develop Added Chain support for ETH Classic Testnet with chain wise contract address selection Feb 26, 2025
@adityabhattad2021 adityabhattad2021 merged commit 694245f into StabilityNexus:develop Mar 9, 2025
1 check passed
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.

3 participants