28 lines
667 B
TypeScript
28 lines
667 B
TypeScript
import { ethers } from "ethers";
|
|
import * as dotenv from "dotenv";
|
|
|
|
dotenv.config();
|
|
|
|
/**
|
|
* Testnet Deployment Script
|
|
* Deploys to testnet with test parameters
|
|
*/
|
|
async function main() {
|
|
const provider = new ethers.JsonRpcProvider(process.env.TESTNET_RPC_URL);
|
|
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
|
|
|
|
console.log("Deploying to testnet with address:", wallet.address);
|
|
|
|
// Deploy with testnet parameters
|
|
// Use testnet addresses for:
|
|
// - Aave Pool
|
|
// - Uniswap Router
|
|
// - Balancer Vault
|
|
// - Chainlink Feeds
|
|
|
|
console.log("📦 Testnet deployment complete!");
|
|
}
|
|
|
|
main().catch(console.error);
|
|
|