OpenZeppelin / OpenZeppelin/openzeppelin-upgrades
Allow different signers for deployment of implementation and proxy
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 658
- Forks
- 286
- PR merge metrics
- No merged PRs in 30d
Description
It would be great if it was possible to use different signers for each deployment transaction, since we use vanity addresses the first proxy deployed would have a random address instead of the vanity address.
I.e.
const [proxySigner, implementationSigner] = await hre.ethers.getSigners()
const initializerArguments = [...]
await upgrades.deployProxy(
await hre.ethers.getContractFactory('MyContract', proxySigner),
initializerArguments,
{
kind: 'uups',
implementationSigner,
},
)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the deployProxy entry point and the getContractFactory signer handling shown in the example. Trace how deployment transactions select a signer, then define completion as allowing implementationSigner to control the implementation deployment while proxySigner controls the proxy deployment, without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100