Skip to content

Commit

Permalink
Merge pull request #55 from gitcoinco/1986-decoder-deployment
Browse files Browse the repository at this point in the history
feat: deploy decoder and upgrade attester and resolver
  • Loading branch information
tim-schultz authored Feb 1, 2024
2 parents 81420db + cf5d012 commit 904238d
Show file tree
Hide file tree
Showing 15 changed files with 1,450 additions and 167 deletions.
676 changes: 674 additions & 2 deletions .openzeppelin/optimism.json

Large diffs are not rendered by default.

533 changes: 531 additions & 2 deletions .openzeppelin/unknown-59144.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions deployments/abi/GitcoinAttester.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"0xa": [
"event AdminChanged(address previousAdmin, address newAdmin)",
"event BeaconUpgraded(address indexed beacon)",
"event EASSet(address eas)",
"event Initialized(uint8 version)",
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
"event Paused(address account)",
Expand All @@ -37,6 +38,7 @@
"event VerifierAdded(address verifier)",
"event VerifierRemoved(address verifier)",
"function addVerifier(address _verifier)",
"function eas() view returns (address)",
"function initialize()",
"function owner() view returns (address)",
"function pause()",
Expand Down Expand Up @@ -110,6 +112,7 @@
"0xe708": [
"event AdminChanged(address previousAdmin, address newAdmin)",
"event BeaconUpgraded(address indexed beacon)",
"event EASSet(address eas)",
"event Initialized(uint8 version)",
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
"event Paused(address account)",
Expand All @@ -118,16 +121,17 @@
"event VerifierAdded(address verifier)",
"event VerifierRemoved(address verifier)",
"function addVerifier(address _verifier)",
"function eas() view returns (address)",
"function initialize()",
"function owner() view returns (address)",
"function pause()",
"function paused() view returns (bool)",
"function proxiableUUID() view returns (bytes32)",
"function removeVerifier(address _verifier)",
"function renounceOwnership()",
"function revokeAttestations(tuple(bytes32 schema, tuple(bytes32 uid, uint256 value)[] data)[] multiRevocationRequest) payable",
"function revokeAttestations((bytes32 schema, (bytes32 uid, uint256 value)[] data)[] multiRevocationRequest) payable",
"function setEASAddress(address _easContractAddress)",
"function submitAttestations(tuple(bytes32 schema, tuple(address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value)[] data)[] multiAttestationRequest) payable returns (bytes32[])",
"function submitAttestations((bytes32 schema, (address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value)[] data)[] multiAttestationRequest) payable returns (bytes32[])",
"function transferOwnership(address newOwner)",
"function unpause()",
"function upgradeTo(address newImplementation)",
Expand Down
112 changes: 112 additions & 0 deletions deployments/abi/GitcoinPassportDecoder.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,117 @@
"function unpause()",
"function upgradeTo(address newImplementation)",
"function upgradeToAndCall(address newImplementation, bytes data) payable"
],
"0xa": [
"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 (tuple(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 (tuple(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"
],
"0xe708": [
"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"
]
}
32 changes: 24 additions & 8 deletions deployments/abi/GitcoinResolver.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,39 @@
"0xa": [
"error AccessDenied()",
"error InsufficientValue()",
"error InvalidAttester()",
"error InvalidEAS()",
"error NotAllowlisted()",
"error NotPayable()",
"event AdminChanged(address previousAdmin, address newAdmin)",
"event BeaconUpgraded(address indexed beacon)",
"event Initialized(uint8 version)",
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
"event Paused(address account)",
"event ScoreSchemaSet(bytes32 schema)",
"event Unpaused(address account)",
"event Upgraded(address indexed implementation)",
"function _eas() view returns (address)",
"function _gitcoinAttester() view returns (address)",
"function attest(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function addToAllowlist(address addr)",
"function allowlist(address) view returns (bool)",
"function attest((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function getCachedScore(address user) view returns ((uint32 score, uint64 time, uint64 expirationTime))",
"function getUserAttestation(address user, bytes32 schema) view returns (bytes32)",
"function initialize(address eas, address gitcoinAttester)",
"function isPayable() pure returns (bool)",
"function multiAttest(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function multiRevoke(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function multiAttest((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function multiRevoke((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function owner() view returns (address)",
"function pause()",
"function paused() view returns (bool)",
"function proxiableUUID() view returns (bytes32)",
"function removeFromAllowlist(address addr)",
"function renounceOwnership()",
"function revoke(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function revoke((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function scoreSchema() view returns (bytes32)",
"function scores(address) view returns (uint32 score, uint64 time, uint64 expirationTime)",
"function setScoreSchema(bytes32 _schema)",
"function transferOwnership(address newOwner)",
"function unpause()",
"function upgradeTo(address newImplementation)",
Expand Down Expand Up @@ -153,25 +164,30 @@
"event Initialized(uint8 version)",
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
"event Paused(address account)",
"event ScoreSchemaSet(bytes32 schema)",
"event Unpaused(address account)",
"event Upgraded(address indexed implementation)",
"function _eas() view returns (address)",
"function _gitcoinAttester() view returns (address)",
"function addToAllowlist(address addr)",
"function allowlist(address) view returns (bool)",
"function attest(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function attest((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function getCachedScore(address user) view returns ((uint32 score, uint64 time, uint64 expirationTime))",
"function getUserAttestation(address user, bytes32 schema) view returns (bytes32)",
"function initialize(address eas, address gitcoinAttester)",
"function isPayable() pure returns (bool)",
"function multiAttest(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function multiRevoke(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function multiAttest((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function multiRevoke((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data)[] attestations, uint256[]) payable returns (bool)",
"function owner() view returns (address)",
"function pause()",
"function paused() view returns (bool)",
"function proxiableUUID() view returns (bytes32)",
"function removeFromAllowlist(address addr)",
"function renounceOwnership()",
"function revoke(tuple(bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function revoke((bytes32 uid, bytes32 schema, uint64 time, uint64 expirationTime, uint64 revocationTime, bytes32 refUID, address recipient, address attester, bool revocable, bytes data) attestation) payable returns (bool)",
"function scoreSchema() view returns (bytes32)",
"function scores(address) view returns (uint32 score, uint64 time, uint64 expirationTime)",
"function setScoreSchema(bytes32 _schema)",
"function transferOwnership(address newOwner)",
"function unpause()",
"function upgradeTo(address newImplementation)",
Expand Down
7 changes: 5 additions & 2 deletions deployments/abi/GitcoinVerifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"function withdrawFees(uint256 _amount)"
],
"0xa": [
"error InsufficientFee()",
"error InvalidNonce()",
"error InvalidSignature()",
"event AdminChanged(address previousAdmin, address newAdmin)",
"event BeaconUpgraded(address indexed beacon)",
"event Initialized(uint8 version)",
Expand All @@ -49,8 +52,8 @@
"function unpause()",
"function upgradeTo(address newImplementation)",
"function upgradeToAndCall(address newImplementation, bytes data) payable",
"function verifyAndAttest(tuple(tuple(bytes32 schema, tuple(address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value)[] data)[] multiAttestationRequest, uint256 nonce, uint256 fee) attestationRequest, uint8 v, bytes32 r, bytes32 s) payable returns (bytes32[])",
"function withdrawFees()"
"function verifyAndAttest(((bytes32 schema, (address recipient, uint64 expirationTime, bool revocable, bytes32 refUID, bytes data, uint256 value)[] data)[] multiAttestationRequest, uint256 nonce, uint256 fee) attestationRequest, uint8 v, bytes32 r, bytes32 s) payable returns (bytes32[])",
"function withdrawFees(uint256 _amount)"
],
"0xe704": [
"error InsufficientFee()",
Expand Down
6 changes: 6 additions & 0 deletions deployments/onchainInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
"score": {
"uid": "0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89"
}
},
"GitcoinPassportDecoder": {
"address": "0x5558D441779Eca04A329BcD6b47830D2C6607769"
}
},
"0xe704": {
Expand Down Expand Up @@ -212,6 +215,9 @@
},
"GitcoinVeraxPortal": {
"address": "0xCAa9E817f02486cE076560B77A86235Ef91c5d5D"
},
"GitcoinPassportDecoder": {
"address": "0x423cd60ab053F1b63D6F78c8c0c63e20F009d669"
}
}
}
Loading

0 comments on commit 904238d

Please sign in to comment.