Expand description
Generic deploy and upgrade primitives, usable over any alloy
Provider that has a wallet wired in. Signing is the consumer’s
concern; nothing here constructs or holds keys.
Functions§
- deploy_
behind_ proxy - Deploy an implementation from
artifactsand put it behind a fresh ERC1967 proxy whose init data isinit_callABI-encoded. Returns the proxy address. The common shape of every UUPS deploy in the stack. - deploy_
contract - Deploy a contract and return its address.
- deploy_
contract_ from - Deploy a contract, optionally fetching the sender’s nonce explicitly.
- deploy_
proxy - Deploy an ERC1967 proxy pointing at
implementationwithinit_data(the ABI-encoded initializer call). - deploy_
with_ ctor - Deploy
bytecodewith ABI-encoded constructor args appended. - upgrade_
uups - Upgrade a UUPS proxy: deploy
contract’s current implementation fromartifacts, then callupgradeToAndCall(new_impl, data)on the proxy. Returns the new implementation address.datais usually empty (state is already initialized); pass a re-initializer call when the upgrade needs one.