Initial commit
This commit is contained in:
27
scripts/testnet.ts
Normal file
27
scripts/testnet.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user