Skip to content

Conversation

@gskril
Copy link
Owner

@gskril gskril commented Feb 4, 2025

Fixes #1

This PR adds functionality to save contract deployment data (address, ABI, constructor arguments) to a deployments folder, similar to how it's done in ensdomains/ens-contracts.

Changes:

  • Add saveDeployment helper to store contract data in apps/contracts/deployments/{chainId}/
  • Return contract instance from create2 deploy function
  • Add getDeployment helper to web package for easy access to deployment data
  • Update documentation in both main and contracts README

Example usage in web app:

import { getDeployment } from '@/lib/getDeployment'

const { address, abi } = getDeployment(chainId, 'Contract')

- Add saveDeployment helper to store contract data
- Return contract instance from create2 deploy
- Add getDeployment helper to web package
- Update documentation
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.

Get deployed contract address and ABI from Hardhat

2 participants