]> git.ardis.lu - erc-1967-inspector/commitdiff
Add slots for legacy ZeppelinOS proxies
authorArdis Lu <ardisglu@gmail.com>
Wed, 3 Apr 2024 05:08:39 +0000 (22:08 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 3 Apr 2024 05:08:39 +0000 (22:08 -0700)
E.g., USDC

index.html

index bd25197aff5ec667d6f9522cfd9e2731204027d0..69010a16b9398fde5f2079a092251a7b19c88dc4 100644 (file)
 
       const slotPayload = [];
       const slots = {
-        'Logic contract address': '0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc',
-        'Beacon contract address': '0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50',
-        'Admin address': '0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103'
+        // ERC-1967
+        'Logic contract address': '0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc', // keccak256('eip1967.proxy.implementation') - 1
+        'Beacon contract address': '0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50', // keccak256('eip1967.proxy.beacon') - 1
+        'Admin address': '0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103', // keccak256('eip1967.proxy.admin') - 1
+        // ZeppelinOS (used in OpenZeppelin contracts v2 and below, predecessor to ERC-1967)
+        'Admin address (ZeppelinOS)': '0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b', // keccak256('org.zeppelinos.proxy.admin')
+        'Implementation address (ZeppelinOS)': '0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3', // keccak256('org.zeppelinos.proxy.implementation')
       }
       for (const [key, value] of Object.entries(slots)) {
         slotPayload.push({
This page took 0.03457 seconds and 4 git commands to generate.