Skip to content

Commit

Permalink
ON-811: ERC-7904 Wrapper (#28)
Browse files Browse the repository at this point in the history
ON-811: implemented ERC7432WrapperForERC4907
  • Loading branch information
ernanirst authored Apr 22, 2024
1 parent 7d025ed commit 694bbc3
Show file tree
Hide file tree
Showing 22 changed files with 1,612 additions and 21 deletions.
137 changes: 137 additions & 0 deletions .openzeppelin/unknown-11155111.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0xE830038A395CE7B3E4A1714e2c21eF70915741C5",
"txHash": "0x57627f959312cb51684f22b9b82cf75b6a2add230d5e668b72eb8d9f15cc3cb4"
},
"proxies": [
{
"address": "0x6F54401fA5f002F42749eA3D1E34FCDDB4A8b852",
"txHash": "0xf74a97d22f24321020bce6889b4bb4101f123b942840f451b1343240f08c0386",
"kind": "transparent"
},
{
"address": "0x6E7217d70ef133284dc77C30e29cE1c0A739F8f0",
"txHash": "0x6dd92b51cb993cfbf9277a49bfc6ddf7c5a473f862611b2547d0d2e046a395bf",
"kind": "transparent"
}
],
"impls": {
"238f836ab9403f8ca72ff26027bcc80f0a8181601fb6f5de5fa9950dced3bc7a": {
"address": "0x2F881C5c65092ebe28C31b52Ce76A8158A720ADf",
"txHash": "0x99ebc051501123cdb3f0dd565c29c40bf6d0d9d10c6534722db1bace386b879d",
"layout": {
"solcVersion": "0.8.9",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "marketplaceAddress",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:10"
},
{
"label": "wrappedTokenOf",
"offset": 0,
"slot": "102",
"type": "t_mapping(t_address,t_address)",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:13"
},
{
"label": "originalTokenOf",
"offset": 0,
"slot": "103",
"type": "t_mapping(t_address,t_address)",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:16"
},
{
"label": "maxDurationOf",
"offset": 0,
"slot": "104",
"type": "t_mapping(t_address,t_uint256)",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:19"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_address)": {
"label": "mapping(address => address)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
132 changes: 132 additions & 0 deletions .openzeppelin/unknown-1284.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0x55DaC2D38817686fb5e6Dbd4393f2dAFB2e298F5",
"txHash": "0xd8a04266e1ebb69ebb462c1ef7b68f6f22eb5c8c50284629b7f3831681a77cfd"
},
"proxies": [
{
"address": "0x5E053177c73636d4378cfB4D095cFb374eBb3Da6",
"txHash": "0xbf87b3bfa21a8d002daf48ef4a85c0f6120b380ca5b51102ac083ecc9fff32dc",
"kind": "transparent"
}
],
"impls": {
"238f836ab9403f8ca72ff26027bcc80f0a8181601fb6f5de5fa9950dced3bc7a": {
"address": "0x75EAcd67D71Aba6039bcC863E14dCe1f5263D93C",
"txHash": "0x1ce7481440e5d5055922e5b8497f629a8bc81bfd3f6efe66a75aaf3957f7f505",
"layout": {
"solcVersion": "0.8.9",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "marketplaceAddress",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:10"
},
{
"label": "wrappedTokenOf",
"offset": 0,
"slot": "102",
"type": "t_mapping(t_address,t_address)",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:13"
},
{
"label": "originalTokenOf",
"offset": 0,
"slot": "103",
"type": "t_mapping(t_address,t_address)",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:16"
},
{
"label": "maxDurationOf",
"offset": 0,
"slot": "104",
"type": "t_mapping(t_address,t_uint256)",
"contract": "OriumWrapperManager",
"src": "contracts/OriumWrapperManager.sol:19"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_address)": {
"label": "mapping(address => address)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
11 changes: 11 additions & 0 deletions addresses/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sepoliaTestnet from './sepoliaTestnet/index.json'
import moonbeam from './moonbeam/index.json'

const config = {
sepoliaTestnet,
moonbeam,
}

export default config

export type Network = keyof typeof config
8 changes: 8 additions & 0 deletions addresses/moonbeam/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"OriumWrapperManager": {
"address": "0x5E053177c73636d4378cfB4D095cFb374eBb3Da6",
"operator": "0x04c8c6c56dab836f8bd62cb6884371507e706806",
"implementation": "0x75EAcd67D71Aba6039bcC863E14dCe1f5263D93C",
"proxyAdmin": "0x55DaC2D38817686fb5e6Dbd4393f2dAFB2e298F5"
}
}
8 changes: 8 additions & 0 deletions addresses/sepoliaTestnet/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"OriumWrapperManager": {
"address": "0x6F54401fA5f002F42749eA3D1E34FCDDB4A8b852",
"operator": "0xf954Ad2d7B27aC20345631fbB776Ee423E7873b2",
"implementation": "0x2F881C5c65092ebe28C31b52Ce76A8158A720ADf",
"proxyAdmin": "0xE830038A395CE7B3E4A1714e2c21eF70915741C5"
}
}
Loading

0 comments on commit 694bbc3

Please sign in to comment.