-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Proxy upgrade through uups proxy
- store contract bytecode - all test passing - Proxy deployment to 0xd1D374DDE031075157fDb64536eF5cC13Ae75000 - README.md update
- Loading branch information
1 parent
f416855
commit a5936e9
Showing
21 changed files
with
452 additions
and
137 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
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ build/ | |
typechain/ | ||
typechain-types/ | ||
dist/ | ||
EIP1056Registry.json | ||
DIDRegistry.bin |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"rules": { | ||
"compiler-version": [ | ||
"error", | ||
"^0.8.15" | ||
"^0.8.20" | ||
], | ||
"func-visibility": [ | ||
"warn", | ||
|
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
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,6 +1,6 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.15; | ||
pragma solidity ^0.8.20; | ||
|
||
/** | ||
* @title EIP1056Registry | ||
|
25 changes: 25 additions & 0 deletions
25
packages/did-eth-registry/contracts/EIP1056RegistryProxy.sol
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,25 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.20; | ||
|
||
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
import { ERC1967Utils } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol"; | ||
|
||
import { EIP1056RegistryProxy } from "./EIP1056RegistryProxy.sol"; | ||
import { DIDRegistry } from "./DIDRegistry.sol"; | ||
|
||
contract EIP1056RegistryProxy is ERC1967Proxy { | ||
constructor(address _logic, address _roleAdmin) | ||
ERC1967Proxy(_logic, abi.encodeWithSignature("initialize(address)", _roleAdmin)) | ||
// solhint-disable-next-line no-empty-blocks | ||
{ | ||
|
||
} | ||
} | ||
|
||
// solhint-disable-next-line func-visibility | ||
function createEIP1056Registry(address _roleAdmin) returns (address) { | ||
DIDRegistry logic = new DIDRegistry(); // logic contract | ||
EIP1056RegistryProxy proxy = new EIP1056RegistryProxy(address(logic), _roleAdmin); | ||
return address(proxy); | ||
} |
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
Submodule openzeppelin-contracts
added at
932fdd
Oops, something went wrong.