Deploy your smart contract
After testing your contract carefully. You might want to deploy it to the U2U network. This section will guide you to deploy your smart contract.
Deployment script
scripts/
deploy.tsimport { ethers } from "hardhat";
async function main() {
// your code here
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});import { ethers } from "hardhat";
async function main() {
const currentTimestampInSeconds = Math.round(Date.now() / 1000);
const unlockTime = currentTimestampInSeconds + 60;
const lockedAmount = ethers.parseEther("0.001");
}Network configuration
Run deployment script
Last updated