├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .solhint.json ├── .solhintignore ├── LICENSE ├── README.md ├── contracts ├── Box.sol ├── BoxV2.sol ├── MetamorphicProxy.sol └── metamorphic │ └── MetaMorphicFactory.sol ├── deploy ├── 01-deploy-box.js └── 02-destroy-and-redeploy.js ├── hardhat.config.js ├── helper-functions.js ├── helper-hardhat-config.js ├── package.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | hardhat.config.js 2 | scripts 3 | test 4 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | contracts/test -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/README.md -------------------------------------------------------------------------------- /contracts/Box.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/contracts/Box.sol -------------------------------------------------------------------------------- /contracts/BoxV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/contracts/BoxV2.sol -------------------------------------------------------------------------------- /contracts/MetamorphicProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/contracts/MetamorphicProxy.sol -------------------------------------------------------------------------------- /contracts/metamorphic/MetaMorphicFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/contracts/metamorphic/MetaMorphicFactory.sol -------------------------------------------------------------------------------- /deploy/01-deploy-box.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/deploy/01-deploy-box.js -------------------------------------------------------------------------------- /deploy/02-destroy-and-redeploy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/deploy/02-destroy-and-redeploy.js -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /helper-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/helper-functions.js -------------------------------------------------------------------------------- /helper-hardhat-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/helper-hardhat-config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/package.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PatrickAlphaC/hardhat-metamorphic-upgrades-fcc/HEAD/yarn.lock --------------------------------------------------------------------------------