A collection of basic contracts that I reuse all the time
Install with
npm i -D soliutils @openzeppelin/contracts-upgradeable
and use as usual. For example, the UUPSUgradeable template:
import "soliutils/contracts/UUPSUpgradeableTemplate.sol";
contract YourUpgradeableContract is UUPSUpgradeableTemplate {
function initialize() public initializer {
__UUPSUpgradableTemplate_init();
}
...
0.0.6
- Emit
emit ImplementationUpgraded(newImplementation);
in_authorizeUpgrade
0.0.3
- Just set adding
ERC721Receiver.sol
andUUPSUpgradeableTemplate.sol
and fixed some minor issue
MIT
(c) 2021 Francesco Sullo