diff --git a/.openzeppelin/unknown-360.json b/.openzeppelin/unknown-360.json index 9d61e96..9b987dd 100644 --- a/.openzeppelin/unknown-360.json +++ b/.openzeppelin/unknown-360.json @@ -15,6 +15,11 @@ "address": "0x90E2C4472Df225e8D31f44725B75FFaA244d5D33", "txHash": "0x65add6a8a56f619aff5cfefd33f2d07b162d348c5330a6e5d1e35690d9242561", "kind": "uups" + }, + { + "address": "0x2443D22Db6d25D141A1138D80724e3Eee54FD4C2", + "txHash": "0x3ae84d972a5137d19cc074aadfaaca27426fff8a8556f9e601c465437343bd5d", + "kind": "uups" } ], "impls": { @@ -484,6 +489,215 @@ }, "namespaces": {} } + }, + "90e2b67209504512d49f2eb6948e6ef0c65273140fc40cc7becbf0856ad14e33": { + "address": "0x5e3fDCbCEB58104E8547D5810EB2ED0Fb42eADf4", + "txHash": "0xea9c85120807ee5b60a3d09f016e76860c561e348b99101ce30b53ac6f21049f", + "layout": { + "solcVersion": "0.8.20", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "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": "_paused", + "offset": 0, + "slot": "101", + "type": "t_bool", + "contract": "PausableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29" + }, + { + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)49_storage", + "contract": "PausableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116" + }, + { + "label": "eas", + "offset": 0, + "slot": "151", + "type": "t_contract(IEAS)368", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:25" + }, + { + "label": "providerVersions", + "offset": 0, + "slot": "152", + "type": "t_mapping(t_uint32,t_array(t_string_storage)dyn_storage)", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:28" + }, + { + "label": "reversedMappingVersions", + "offset": 0, + "slot": "153", + "type": "t_mapping(t_uint32,t_mapping(t_string_memory_ptr,t_uint8))", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:31" + }, + { + "label": "currentVersion", + "offset": 0, + "slot": "154", + "type": "t_uint32", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:34" + }, + { + "label": "gitcoinResolver", + "offset": 4, + "slot": "154", + "type": "t_contract(IGitcoinResolver)6523", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:37" + }, + { + "label": "passportSchemaUID", + "offset": 0, + "slot": "155", + "type": "t_bytes32", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:40" + }, + { + "label": "scoreSchemaUID", + "offset": 0, + "slot": "156", + "type": "t_bytes32", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:43" + }, + { + "label": "maxScoreAge", + "offset": 0, + "slot": "157", + "type": "t_uint64", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:46" + }, + { + "label": "threshold", + "offset": 0, + "slot": "158", + "type": "t_uint256", + "contract": "GitcoinPassportDecoder", + "src": "contracts/GitcoinPassportDecoder.sol:49" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_string_storage)dyn_storage": { + "label": "string[]", + "numberOfBytes": "32" + }, + "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_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_contract(IEAS)368": { + "label": "contract IEAS", + "numberOfBytes": "20" + }, + "t_contract(IGitcoinResolver)6523": { + "label": "contract IGitcoinResolver", + "numberOfBytes": "20" + }, + "t_mapping(t_string_memory_ptr,t_uint8)": { + "label": "mapping(string => uint8)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint32,t_array(t_string_storage)dyn_storage)": { + "label": "mapping(uint32 => string[])", + "numberOfBytes": "32" + }, + "t_mapping(t_uint32,t_mapping(t_string_memory_ptr,t_uint8))": { + "label": "mapping(uint32 => mapping(string => uint8))", + "numberOfBytes": "32" + }, + "t_string_memory_ptr": { + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "label": "uint32", + "numberOfBytes": "4" + }, + "t_uint64": { + "label": "uint64", + "numberOfBytes": "8" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/deployments/abi/GitcoinPassportDecoder.json b/deployments/abi/GitcoinPassportDecoder.json index 5a79c61..3a32d31 100644 --- a/deployments/abi/GitcoinPassportDecoder.json +++ b/deployments/abi/GitcoinPassportDecoder.json @@ -648,5 +648,61 @@ "function unpause()", "function upgradeTo(address newImplementation)", "function upgradeToAndCall(address newImplementation, bytes data) payable" + ], + "0x168": [ + "error AttestationExpired(uint64 expirationTime)", + "error AttestationNotFound()", + "error EmptyProvider()", + "error ProviderAlreadyExists(string provider)", + "error ScoreDoesNotMeetThreshold(uint256 score)", + "error ZeroMaxScoreAge()", + "error ZeroThreshold()", + "error ZeroValue()", + "event AdminChanged(address previousAdmin, address newAdmin)", + "event BeaconUpgraded(address indexed beacon)", + "event EASSet(address easAddress)", + "event Initialized(uint8 version)", + "event MaxScoreAgeSet(uint256 maxScoreAge)", + "event NewVersionCreated()", + "event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)", + "event Paused(address account)", + "event ProvidersAdded(string[] providers)", + "event ResolverSet(address resolverAddress)", + "event SchemaSet(bytes32 schemaUID)", + "event ThresholdSet(uint256 threshold)", + "event Unpaused(address account)", + "event Upgraded(address indexed implementation)", + "function addProviders(string[] providers)", + "function createNewVersion(string[] providers)", + "function currentVersion() view returns (uint32)", + "function eas() view returns (address)", + "function getAttestation(bytes32 attestationUID) view returns ((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data))", + "function getPassport(address user) view returns ((string provider, bytes32 hash, uint64 time, uint64 expirationTime)[])", + "function getProviders(uint32 version) view returns (string[])", + "function getScore(address user) view returns (uint256)", + "function gitcoinResolver() view returns (address)", + "function initialize()", + "function isHuman(address user) view returns (bool)", + "function maxScoreAge() view returns (uint64)", + "function owner() view returns (address)", + "function passportSchemaUID() view returns (bytes32)", + "function pause()", + "function paused() view returns (bool)", + "function providerVersions(uint32, uint256) view returns (string)", + "function proxiableUUID() view returns (bytes32)", + "function renounceOwnership()", + "function reversedMappingVersions(uint32, string) view returns (uint8)", + "function scoreSchemaUID() view returns (bytes32)", + "function setEASAddress(address _easContractAddress)", + "function setGitcoinResolver(address _gitcoinResolver)", + "function setMaxScoreAge(uint64 _maxScoreAge)", + "function setPassportSchemaUID(bytes32 _schemaUID)", + "function setScoreSchemaUID(bytes32 _schemaUID)", + "function setThreshold(uint256 _threshold)", + "function threshold() view returns (uint256)", + "function transferOwnership(address newOwner)", + "function unpause()", + "function upgradeTo(address newImplementation)", + "function upgradeToAndCall(address newImplementation, bytes data) payable" ] } \ No newline at end of file diff --git a/deployments/onchainInfo.json b/deployments/onchainInfo.json index d9804fa..8d3aa12 100644 --- a/deployments/onchainInfo.json +++ b/deployments/onchainInfo.json @@ -469,17 +469,17 @@ "address": "0x90E2C4472Df225e8D31f44725B75FFaA244d5D33" }, "GitcoinPassportDecoder": { - "address": "" + "address": "0x2443D22Db6d25D141A1138D80724e3Eee54FD4C2" }, "easSchemas": { "namingSchema": { "uid": "" }, "passport": { - "uid": "" + "uid": "0x8ae6ee946bf1c936584cacc969bf7e9d0b274631c818df7e45c246051b364341" }, "score": { - "uid": "" + "uid": "0x24620f482734b3806102678e4b8bb68baafb1adc1ec29e524bcd69c85f15b915" } } }