Skip to content

Commit

Permalink
feat: have deployed decoder to arbitrum
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina committed May 21, 2024
1 parent 66615a1 commit b2af3df
Show file tree
Hide file tree
Showing 3 changed files with 270 additions and 1 deletion.
213 changes: 213 additions & 0 deletions .openzeppelin/arbitrum-one.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"address": "0x90E2C4472Df225e8D31f44725B75FFaA244d5D33",
"txHash": "0xf3aa81b80ad938689fb122f8dcc97be62775f7b1cd1e1ab84c023af53bae247d",
"kind": "uups"
},
{
"address": "0x2050256A91cbABD7C42465aA0d5325115C1dEB43",
"txHash": "0xc399cc5dba3f021f58a80f4447e71e8a85e03967c418188c304e0533217b5ef5",
"kind": "uups"
}
],
"impls": {
Expand Down Expand Up @@ -481,6 +486,214 @@
}
}
}
},
"90e2b67209504512d49f2eb6948e6ef0c65273140fc40cc7becbf0856ad14e33": {
"address": "0x2443D22Db6d25D141A1138D80724e3Eee54FD4C2",
"txHash": "0x60fe35857bea6ce86bb109a7841273800a19932694fa74cb03b68482346c9a56",
"layout": {
"solcVersion": "0.8.19",
"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)2310",
"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)9708",
"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)2310": {
"label": "contract IEAS",
"numberOfBytes": "20"
},
"t_contract(IGitcoinResolver)9708": {
"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"
}
}
}
}
}
}
56 changes: 56 additions & 0 deletions deployments/abi/GitcoinPassportDecoder.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,61 @@
"function unpause()",
"function upgradeTo(address newImplementation)",
"function upgradeToAndCall(address newImplementation, bytes data) payable"
],
"0xa4b1": [
"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"
]
}
2 changes: 1 addition & 1 deletion deployments/onchainInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
}
},
"GitcoinPassportDecoder": {
"address": ""
"address": "0x2050256A91cbABD7C42465aA0d5325115C1dEB43"
}
}
}

0 comments on commit b2af3df

Please sign in to comment.