note [1]:
using deploy from hardhat-deploy on a devnet deploy is very slow, which i think is related to ethers provider polling parameters for a receipt (it becomes apparent past the set_tlds deploy script). this is why the usage is switched over for devnet to just use viem's deployContract, but still saves the deployment into hardhat-deploy's deployment manager which allows it to easily be accessed later. live network deploys still use deploy, but speed isn't relevant for them.
changes:
ethereum-waffle
, replaced with@ensdomains/hardhat-chai-matchers-viem
for fully typed test matchersbeforeEach
viem.deploy
function [1]deployContract
for devnetdeploy
for live networksnote [1]: using
deploy
from hardhat-deploy on a devnet deploy is very slow, which i think is related to ethers provider polling parameters for a receipt (it becomes apparent past theset_tlds
deploy script). this is why the usage is switched over for devnet to just use viem'sdeployContract
, but still saves the deployment into hardhat-deploy's deployment manager which allows it to easily be accessed later. live network deploys still usedeploy
, but speed isn't relevant for them.