Skip to content

Commit

Permalink
official deployment on OP mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed May 11, 2024
1 parent 009e7fe commit a29e74c
Show file tree
Hide file tree
Showing 9 changed files with 270 additions and 4 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The eligibility of the target hat is dynamically determined by the status of the

Note that every time a hat with this module signs anything, this module will be called. This means that the passport score is realtime, but a hat with this module will pay more to sign a transaction than a hat without this module.

<!-- This module is simple, and relies on the protocols it bridges for its efficacy. The only configuration outside of the default is the score criterion. If the score criterion is 0, we default to Gitcoin Passport's standard criterion.
<!-- This module is simple, and relies on the protocols it bridges for its efficacy. The only configuration outside of the default is the score criterion. If the score criterion is 0, we default to Gitcoin Passport's standard criterion.
![image](https://github.com/daocoa/gitcoin-passport-eligibility/assets/3211305/e6753cc5-c819-412d-9687-9fc5a706e139)
Expand Down Expand Up @@ -70,6 +70,16 @@ See the wonderful [Seaport repo](https://github.com/ProjectOpenSea/seaport/blob/

`yarn verify --network ${network_name}`

<!--- DOESN'T WORK WITH SE2. Reccomended to use `yarn deploy:verify --network ${network_name}>
<!-- #### C. Fix verification issues (replace values in curly braces with the actual values)
```
forge verify-contract --chain-id 1 --num-of-optimizations 1000000 --watch --constructor-args $(cast abi-encode \
"constructor({argType1, argType2, argeTypeN})" "{arg1}" "{arg2}" "{argN}" ) \
--compiler-version v0.8.19 {deploymentAddress} \
src/{Counter}.sol:{Counter} --etherscan-api-key $ETHERSCAN_KEY
``` -->

## notes

Forked from the [Hats Module Template](https://github.com/Hats-Protocol/hats-module-template).
Expand Down
63 changes: 63 additions & 0 deletions packages/foundry/broadcast/Deploy.s.sol/10/run-1715368817.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"transactions": [
{
"hash": "0x9d2fc746f1ecae1ca8473804d8f720ff9ad6e46ec88b066983700b9a87a258e8",
"transactionType": "CREATE2",
"contractName": "GitcoinPassportEligibility",
"contractAddress": "0x38a00f0eE593C048101d52B03e10c21752F2b8C4",
"function": null,
"arguments": [
"\"0.1.0\""
],
"transaction": {
"type": "0x00",
"from": "0xde193cbe6269cc78f3464c311e034af4632511de",
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
"gas": "0xbad6f",
"value": "0x0",
"data": "0x000000000000000000000000000000000000000000000000000000000000002060806040523480156200001157600080fd5b5060405162000b6438038062000b6483398101604081905262000034916200012d565b80600162000043828262000293565b506200004e62000056565b50506200035f565b600054610100900460ff1615620000c35760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000115576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200014157600080fd5b82516001600160401b03808211156200015957600080fd5b818501915085601f8301126200016e57600080fd5b81518181111562000183576200018362000117565b604051601f8201601f19908116603f01168101908382118183101715620001ae57620001ae62000117565b816040528281528886848701011115620001c757600080fd5b600093505b82841015620001eb5784840186015181850187015292850192620001cc565b600086848301015280965050505050505092915050565b600181811c908216806200021757607f821691505b6020821081036200023857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028e576000816000526020600020601f850160051c81016020861015620002695750805b601f850160051c820191505b818110156200028a5782815560010162000275565b5050505b505050565b81516001600160401b03811115620002af57620002af62000117565b620002c781620002c0845462000202565b846200023e565b602080601f831160018114620002ff5760008415620002e65750858301515b600019600386901b1c1916600185901b1785556200028a565b600085815260208120601f198616915b8281101562000330578886015182559484019460019091019084016200030f565b50858210156200034f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6107f5806200036f6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637150ef88116100665780637150ef881461011a578063a4f9edbf14610122578063bd68387214610137578063dd1bb1fc14610161578063f72c436f1461016957600080fd5b806307ace2b5146100a35780632149ee55146100c75780633a4741bd146100e757806354fd4d50146100fd5780635b14013a14610112575b600080fd5b3660011981013560f01c9003602801355b6040519081526020015b60405180910390f35b6100cf610191565b6040516001600160a01b0390911681526020016100be565b6100cf3660011981013560f01c90033560601c90565b6101056101ac565b6040516100be919061054f565b6100b4610229565b6100cf610247565b610135610130366004610582565b610262565b005b61014a610145366004610610565b610371565b6040805192151583529015156020830152016100be565b610105610388565b61017c61017736600461063a565b610416565b60405190151581526020016100be565b905090565b600061018c60483660011981013560f01c9003013560601c90565b60606101c43660011981013560f01c90033560601c90565b6001600160a01b031663dd1bb1fc6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610201573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261018c9190810190610672565b60003660011981013560f01c9003605c013561018c9061271061071f565b600061018c60143660011981013560f01c9003013560601c90565b600054610100900460ff16158080156102825750600054600160ff909116105b8061029c5750303b15801561029c575060005460ff166001145b6103035760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015610326576000805461ff0019166101001790555b801561036c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b60008061037d84610416565b946001945092505050565b600180546103959061074a565b80601f01602080910402602001604051908101604052809291908181526020018280546103c19061074a565b801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b505050505081565b600080610421610229565b9050600061042d610191565b9050816000036104af5760405163f72c436f60e01b81526001600160a01b03858116600483015282169063f72c436f90602401602060405180830381865afa925050508015610499575060408051601f3d908101601f1916820190925261049691810190610784565b60015b6104a7575060009392505050565b949350505050565b604051630d47875d60e41b81526001600160a01b03858116600483015282169063d47875d090602401602060405180830381865afa925050508015610511575060408051601f3d908101601f1916820190925261050e918101906107a6565b60015b61051f575060009392505050565b91909110159392505050565b60005b8381101561054657818101518382015260200161052e565b50506000910152565b602081526000825180602084015261056e81604085016020870161052b565b601f01601f19169190910160400192915050565b6000806020838503121561059557600080fd5b823567ffffffffffffffff808211156105ad57600080fd5b818501915085601f8301126105c157600080fd5b8135818111156105d057600080fd5b8660208285010111156105e257600080fd5b60209290920196919550909350505050565b80356001600160a01b038116811461060b57600080fd5b919050565b6000806040838503121561062357600080fd5b61062c836105f4565b946020939093013593505050565b60006020828403121561064c57600080fd5b610655826105f4565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561068457600080fd5b815167ffffffffffffffff8082111561069c57600080fd5b818401915084601f8301126106b057600080fd5b8151818111156106c2576106c261065c565b604051601f8201601f19908116603f011681019083821181831017156106ea576106ea61065c565b8160405282815287602084870101111561070357600080fd5b61071483602083016020880161052b565b979650505050505050565b808202811582820484141761074457634e487b7160e01b600052601160045260246000fd5b92915050565b600181811c9082168061075e57607f821691505b60208210810361077e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561079657600080fd5b8151801515811461065557600080fd5b6000602082840312156107b857600080fd5b505191905056fea2646970667358221220a92b54914ce15c3a6f2e91564bae7eab320ecf57de9c6fcb74dda58685950dc964736f6c6343000817003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000005302e312e30000000000000000000000000000000000000000000000000000000",
"nonce": "0x0"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"transactionHash": "0x9d2fc746f1ecae1ca8473804d8f720ff9ad6e46ec88b066983700b9a87a258e8",
"transactionIndex": "0xa",
"blockHash": "0xd5cb2c530ac54512997105be66862986fee9be3774f6d9f5698dcadd2ee359ed",
"blockNumber": "0x7254cd9",
"from": "0xDe193CBe6269cc78F3464C311e034aF4632511dE",
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"cumulativeGasUsed": "0x6403cb",
"gasUsed": "0x8750b",
"contractAddress": null,
"logs": [
{
"address": "0x38a00f0eE593C048101d52B03e10c21752F2b8C4",
"topics": [
"0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000ff",
"blockHash": "0xd5cb2c530ac54512997105be66862986fee9be3774f6d9f5698dcadd2ee359ed",
"blockNumber": "0x7254cd9",
"transactionHash": "0x9d2fc746f1ecae1ca8473804d8f720ff9ad6e46ec88b066983700b9a87a258e8",
"transactionIndex": "0xa",
"logIndex": "0x4a",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000",
"type": "0x0",
"effectiveGasPrice": "0x3a34117"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1715368817,
"chain": 10,
"commit": "009e7fe"
}
63 changes: 63 additions & 0 deletions packages/foundry/broadcast/Deploy.s.sol/10/run-1715390942.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"transactions": [
{
"hash": "0x27514a605f4aea86dab7901ec1e91a63dd769364c4d396a60b9be04049a8bc49",
"transactionType": "CREATE2",
"contractName": "GitcoinPassportEligibility",
"contractAddress": "0xE7f487c78d9E37F973AaBB77d7C35b3ACB750817",
"function": null,
"arguments": [
"\"0.1.0\""
],
"transaction": {
"type": "0x00",
"from": "0xde193cbe6269cc78f3464c311e034af4632511de",
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
"gas": "0xbad65",
"value": "0x0",
"data": "0x000000000000000000000000000000000000000000000000000000000000002060806040523480156200001157600080fd5b5060405162000b6238038062000b6283398101604081905262000034916200012d565b80600162000043828262000291565b506200004e62000056565b50506200035d565b600054610100900460ff1615620000c35760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000115576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200014157600080fd5b82516001600160401b03808211156200015957600080fd5b818501915085601f8301126200016e57600080fd5b81518181111562000183576200018362000117565b604051601f8201601f19908116603f01168101908382118183101715620001ae57620001ae62000117565b816040528281528886848701011115620001c757600080fd5b600093505b82841015620001eb5784840186015181850187015292850192620001cc565b600086848301015280965050505050505092915050565b600181811c908216806200021757607f821691505b6020821081036200023857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028c57600081815260208120601f850160051c81016020861015620002675750805b601f850160051c820191505b81811015620002885782815560010162000273565b5050505b505050565b81516001600160401b03811115620002ad57620002ad62000117565b620002c581620002be845462000202565b846200023e565b602080601f831160018114620002fd5760008415620002e45750858301515b600019600386901b1c1916600185901b17855562000288565b600085815260208120601f198616915b828110156200032e578886015182559484019460019091019084016200030d565b50858210156200034d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6107f5806200036d6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637150ef88116100665780637150ef881461011a578063a4f9edbf14610122578063bd68387214610137578063dd1bb1fc14610161578063f72c436f1461016957600080fd5b806307ace2b5146100a35780632149ee55146100c75780633a4741bd146100e757806354fd4d50146100fd5780635b14013a14610112575b600080fd5b3660011981013560f01c9003602801355b6040519081526020015b60405180910390f35b6100cf610191565b6040516001600160a01b0390911681526020016100be565b6100cf3660011981013560f01c90033560601c90565b6101056101ac565b6040516100be919061054f565b6100b4610229565b6100cf610247565b610135610130366004610582565b610262565b005b61014a610145366004610610565b610371565b6040805192151583529015156020830152016100be565b610105610388565b61017c61017736600461063a565b610416565b60405190151581526020016100be565b905090565b600061018c60483660011981013560f01c9003013560601c90565b60606101c43660011981013560f01c90033560601c90565b6001600160a01b031663dd1bb1fc6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610201573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261018c9190810190610672565b60003660011981013560f01c9003605c013561018c9061271061071f565b600061018c60143660011981013560f01c9003013560601c90565b600054610100900460ff16158080156102825750600054600160ff909116105b8061029c5750303b15801561029c575060005460ff166001145b6103035760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015610326576000805461ff0019166101001790555b801561036c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b60008061037d84610416565b946001945092505050565b600180546103959061074a565b80601f01602080910402602001604051908101604052809291908181526020018280546103c19061074a565b801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b505050505081565b600080610421610229565b9050600061042d610191565b9050816000036104af5760405163f72c436f60e01b81526001600160a01b03858116600483015282169063f72c436f90602401602060405180830381865afa925050508015610499575060408051601f3d908101601f1916820190925261049691810190610784565b60015b6104a7575060009392505050565b949350505050565b604051630d47875d60e41b81526001600160a01b03858116600483015282169063d47875d090602401602060405180830381865afa925050508015610511575060408051601f3d908101601f1916820190925261050e918101906107a6565b60015b61051f575060009392505050565b91909110159392505050565b60005b8381101561054657818101518382015260200161052e565b50506000910152565b602081526000825180602084015261056e81604085016020870161052b565b601f01601f19169190910160400192915050565b6000806020838503121561059557600080fd5b823567ffffffffffffffff808211156105ad57600080fd5b818501915085601f8301126105c157600080fd5b8135818111156105d057600080fd5b8660208285010111156105e257600080fd5b60209290920196919550909350505050565b80356001600160a01b038116811461060b57600080fd5b919050565b6000806040838503121561062357600080fd5b61062c836105f4565b946020939093013593505050565b60006020828403121561064c57600080fd5b610655826105f4565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561068457600080fd5b815167ffffffffffffffff8082111561069c57600080fd5b818401915084601f8301126106b057600080fd5b8151818111156106c2576106c261065c565b604051601f8201601f19908116603f011681019083821181831017156106ea576106ea61065c565b8160405282815287602084870101111561070357600080fd5b61071483602083016020880161052b565b979650505050505050565b808202811582820484141761074457634e487b7160e01b600052601160045260246000fd5b92915050565b600181811c9082168061075e57607f821691505b60208210810361077e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561079657600080fd5b8151801515811461065557600080fd5b6000602082840312156107b857600080fd5b505191905056fea2646970667358221220c5915d825bbce146632343fe596342c523e1742d24f261d312f57ae607257aef64736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000005302e312e30000000000000000000000000000000000000000000000000000000",
"nonce": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"transactionHash": "0x27514a605f4aea86dab7901ec1e91a63dd769364c4d396a60b9be04049a8bc49",
"transactionIndex": "0xc",
"blockHash": "0x2590995f7cd511156e87311e32019bb2cd3723525e0ab7c5685f1d095f287b3b",
"blockNumber": "0x7257810",
"from": "0xDe193CBe6269cc78F3464C311e034aF4632511dE",
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"cumulativeGasUsed": "0x2cedc2",
"gasUsed": "0x87503",
"contractAddress": null,
"logs": [
{
"address": "0xE7f487c78d9E37F973AaBB77d7C35b3ACB750817",
"topics": [
"0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000ff",
"blockHash": "0x2590995f7cd511156e87311e32019bb2cd3723525e0ab7c5685f1d095f287b3b",
"blockNumber": "0x7257810",
"transactionHash": "0x27514a605f4aea86dab7901ec1e91a63dd769364c4d396a60b9be04049a8bc49",
"transactionIndex": "0xc",
"logIndex": "0x39",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x0",
"effectiveGasPrice": "0x3a3462e"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1715390942,
"chain": 10,
"commit": "009e7fe"
}
Loading

0 comments on commit a29e74c

Please sign in to comment.