An open API service indexing awesome lists of open source software.

https://github.com/clemsos/sol-upgrade-pattern


https://github.com/clemsos/sol-upgrade-pattern

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Solidity Upgrade patterns

A simple repo to demonstrate varioous patterns to deploy contracts from a contract in Solidity.

Two main deployer contracts are available:

- `DummyDeployer` : deploy 3rd part contracts from a `Deployer` contract
- `ProxyDeployer` : deploy a contract through openzeppelin's [`TransparentUpgradeableProxy`](https://docs.openzeppelin.com/contracts/4.x/api/proxy#TransparentUpgradeableProxy) from a `Deployer` contract

### Run the tests

```shell
yarn hardhat test
```

### TODO:

- deploy transparent proxies and proxy admins using clone2