SwapMateDEX
Deployment Examples

Deployment examples

Notes: use --broadcast to send transactions to the network (requires a signer).

a) Deploy DEX — Alpen Labs Testnet

forge script script/DeployDEX_v2.s.sol --fork-url https://rpc.testnet.alpenlabs.io --ledger --broadcast

b) Deploy DEX — Ethereum Sepolia

forge script script/DeployDEX_V2.s.sol --fork-url https://ethereum-sepolia-rpc.publicnode.com --ledger --broadcast

For factory deployments and other variants see the repo scripts (e.g., DeployDEX_v2).

Verify contract (example BlockScout)

forge verify-contract \
  --rpc-url https://explorer.testnet.alpenlabs.io/api/eth-rpc \
  --verifier blockscout \
  --verifier-url 'https://explorer.testnet.alpenlabs.io/api/' \
  0x<ContractAddress> src/Kanari.sol:Kanari \
  --compiler-version 0.8.30