-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed constructor, deployed on rinkeby. constructor made testing a pain in the ass because of auto initialization, i forgotto * v0.1.2 * update README
- Loading branch information
Showing
10 changed files
with
312 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"catalog": "0x232Dd4a3AB377C9225E49c5932Ae8A694aa7c0b5" | ||
"catalog": "0x775B572e0CEB816625Af9779Bb686A8b47975876" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.9; | ||
|
||
import {Proxy} from "@openzeppelin/contracts/proxy/Proxy.sol"; | ||
import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; | ||
|
||
/** | ||
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an | ||
* implementation address that can be changed. This address is stored in storage in the location specified by | ||
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the | ||
* implementation behind the proxy. | ||
*/ | ||
contract CatalogProxy is Proxy, ERC1967Upgrade { | ||
/** | ||
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. | ||
* | ||
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded | ||
* function call, and allows initializating the storage of the proxy like a Solidity constructor. | ||
*/ | ||
constructor(address _logic, bytes memory _data) payable { | ||
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)); | ||
_upgradeToAndCall(_logic, _data, false); | ||
} | ||
|
||
/** | ||
* @dev Returns the current implementation address. | ||
*/ | ||
function _implementation() internal view virtual override returns (address impl) { | ||
return ERC1967Upgrade._getImplementation(); | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
118 changes: 118 additions & 0 deletions
118
data/deployments/rinkeby/solcInputs/771488a164b411230b61d1e6aef0bfe6.json
Large diffs are not rendered by default.
Oops, something went wrong.
103 changes: 103 additions & 0 deletions
103
data/deployments/rinkeby/solcInputs/dd8db5dc6b2da70fc579650b5410b0b9.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters