Skip to content

feat: add production hardhat deployment scripts with safety checks#47

Open
ForgeCoreye wants to merge 1 commit intoxlnfinance:mainfrom
ForgeCoreye:feat/hardhat-deployment-scripts
Open

feat: add production hardhat deployment scripts with safety checks#47
ForgeCoreye wants to merge 1 commit intoxlnfinance:mainfrom
ForgeCoreye:feat/hardhat-deployment-scripts

Conversation

@ForgeCoreye
Copy link

Problem

XLN's L2 architecture requires careful deployment sequencing (netting contract → payment channel factory → initial liquidity). Manual deployment is error-prone and undocumented, blocking contributor testing.

Solution

Add Hardhat deployment suite:

  • deploy/00_netting.ts - Deploy core netting contract
  • deploy/01_factory.ts - Deploy channel factory
  • scripts/verify-deployment.ts - Validate contract state post-deployment
  • Environment-specific configs (local/testnet/mainnet) with safety prompts

Testing

Validated on local Anvil fork, Sepolia testnet. Includes pre-deployment checks (wallet balance, nonce verification) to prevent common errors.

@ForgeCoreye ForgeCoreye force-pushed the feat/hardhat-deployment-scripts branch from bb74d13 to 28d8a70 Compare February 21, 2026 03:10
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.

1 participant