Closed tornadocontrib closed 6 months ago
@tornadocontrib I built exactly such an "SDK" via my Hardhat plugin xdeployer
. No need to import anything, just npm
install it and hit npx hardhat xdeploy
:). Via the 3.0.0
release, CreateX
got added.
A couple of caveats however:
xdeployer
only supports CREATE2
deployments. So if you want to make use of CREATE
, CREATE3
, or minimal proxy contracts (a.k.a. Clones
), you need to fork xdeployer
and adjust according to your needs.createXcrunch
, please be aware that I hash again the salt
value (which is submitted a string value in the Hardhat config) here before deploying. So you would need to adjust this as well before deploying.The underlying reason behind these design decisions was to make it agnostic to any kind of CREATE2
factory that might need different handling of salt
values and/or have different functions.
I'm closing this issue as I deem it as resolved. Please comment or reopen if you disagree.
@pcaversaccio Yes I saw it but since only works in Hardhat ( and since they are moving to a new deployment system called ignition ) would be great if you could create a type export with the function that could work with ethers.js
@pcaversaccio Yes I saw it but since only works in Hardhat ( and since they are moving to a new deployment system called ignition ) would be great if you could create a type export with the function that could work with ethers.js
Different people have different tastes and thus we let the community build external tooling and list it here. If you build a tooling that integrates CreateX
, I will happily list it there as well. Furthermore, you can find and download the ABI in the various formats here. If you want to generate the typechain-types
for CreateX
, you can simply clone the CreateX
repository and compile it with Hardhat: npx hardhat compile
. I attached them to this comment as well: typechain-types.zip
.
Let me mention that CreateX
is the built-in factory for Hardhat Ignition (see here).
Describe the desired feature:
Would be great if we could have some simple function exposed that could be used to deploy contracts with ethers.js provider ( or viem provider but I don't use viem ).
Something like
But with this function we don't need to import createx's ABI or type definitions for every projects.
Code example that solves the feature:
No response