diff --git a/README.md b/README.md index 70f267a..4a0846f 100644 --- a/README.md +++ b/README.md @@ -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. - + ## notes Forked from the [Hats Module Template](https://github.com/Hats-Protocol/hats-module-template). diff --git a/packages/foundry/broadcast/Deploy.s.sol/10/run-1715368817.json b/packages/foundry/broadcast/Deploy.s.sol/10/run-1715368817.json new file mode 100644 index 0000000..a736eac --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/10/run-1715368817.json @@ -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" +} \ No newline at end of file diff --git a/packages/foundry/broadcast/Deploy.s.sol/10/run-1715390942.json b/packages/foundry/broadcast/Deploy.s.sol/10/run-1715390942.json new file mode 100644 index 0000000..09f7020 --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/10/run-1715390942.json @@ -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" +} \ No newline at end of file diff --git a/packages/foundry/broadcast/Deploy.s.sol/10/run-1715391143.json b/packages/foundry/broadcast/Deploy.s.sol/10/run-1715391143.json new file mode 100644 index 0000000..67cbda0 --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/10/run-1715391143.json @@ -0,0 +1,63 @@ +{ + "transactions": [ + { + "hash": "0x05fa373338e9044aecc7356cb3b8a90adf491e35b0a33a8ade4bdd0c51694429", + "transactionType": "CREATE2", + "contractName": "GitcoinPassportEligibility", + "contractAddress": "0xD9FB39d25E714908ACDA64164a3488d83B6FD3a3", + "function": null, + "arguments": [ + "\"0.1.0\"" + ], + "transaction": { + "type": "0x00", + "from": "0xde193cbe6269cc78f3464c311e034af4632511de", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0xbad65", + "value": "0x0", + "data": "0x000000000000000000000000000000000000000000000000000000000000002060806040523480156200001157600080fd5b5060405162000b6238038062000b6283398101604081905262000034916200012d565b80600162000043828262000291565b506200004e62000056565b50506200035d565b600054610100900460ff1615620000c35760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000115576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200014157600080fd5b82516001600160401b03808211156200015957600080fd5b818501915085601f8301126200016e57600080fd5b81518181111562000183576200018362000117565b604051601f8201601f19908116603f01168101908382118183101715620001ae57620001ae62000117565b816040528281528886848701011115620001c757600080fd5b600093505b82841015620001eb5784840186015181850187015292850192620001cc565b600086848301015280965050505050505092915050565b600181811c908216806200021757607f821691505b6020821081036200023857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028c57600081815260208120601f850160051c81016020861015620002675750805b601f850160051c820191505b81811015620002885782815560010162000273565b5050505b505050565b81516001600160401b03811115620002ad57620002ad62000117565b620002c581620002be845462000202565b846200023e565b602080601f831160018114620002fd5760008415620002e45750858301515b600019600386901b1c1916600185901b17855562000288565b600085815260208120601f198616915b828110156200032e578886015182559484019460019091019084016200030d565b50858210156200034d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6107f5806200036d6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637150ef88116100665780637150ef881461011a578063a4f9edbf14610122578063bd68387214610137578063dd1bb1fc14610161578063f72c436f1461016957600080fd5b806307ace2b5146100a35780632149ee55146100c75780633a4741bd146100e757806354fd4d50146100fd5780635b14013a14610112575b600080fd5b3660011981013560f01c9003602801355b6040519081526020015b60405180910390f35b6100cf610191565b6040516001600160a01b0390911681526020016100be565b6100cf3660011981013560f01c90033560601c90565b6101056101ac565b6040516100be919061054f565b6100b4610229565b6100cf610247565b610135610130366004610582565b610262565b005b61014a610145366004610610565b610371565b6040805192151583529015156020830152016100be565b610105610388565b61017c61017736600461063a565b610416565b60405190151581526020016100be565b905090565b600061018c60483660011981013560f01c9003013560601c90565b60606101c43660011981013560f01c90033560601c90565b6001600160a01b031663dd1bb1fc6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610201573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261018c9190810190610672565b60003660011981013560f01c9003605c013561018c9061271061071f565b600061018c60143660011981013560f01c9003013560601c90565b600054610100900460ff16158080156102825750600054600160ff909116105b8061029c5750303b15801561029c575060005460ff166001145b6103035760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015610326576000805461ff0019166101001790555b801561036c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b60008061037d84610416565b946001945092505050565b600180546103959061074a565b80601f01602080910402602001604051908101604052809291908181526020018280546103c19061074a565b801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b505050505081565b600080610421610229565b9050600061042d610191565b9050816000036104af5760405163f72c436f60e01b81526001600160a01b03858116600483015282169063f72c436f90602401602060405180830381865afa925050508015610499575060408051601f3d908101601f1916820190925261049691810190610784565b60015b6104a7575060009392505050565b949350505050565b604051630d47875d60e41b81526001600160a01b03858116600483015282169063d47875d090602401602060405180830381865afa925050508015610511575060408051601f3d908101601f1916820190925261050e918101906107a6565b60015b61051f575060009392505050565b91909110159392505050565b60005b8381101561054657818101518382015260200161052e565b50506000910152565b602081526000825180602084015261056e81604085016020870161052b565b601f01601f19169190910160400192915050565b6000806020838503121561059557600080fd5b823567ffffffffffffffff808211156105ad57600080fd5b818501915085601f8301126105c157600080fd5b8135818111156105d057600080fd5b8660208285010111156105e257600080fd5b60209290920196919550909350505050565b80356001600160a01b038116811461060b57600080fd5b919050565b6000806040838503121561062357600080fd5b61062c836105f4565b946020939093013593505050565b60006020828403121561064c57600080fd5b610655826105f4565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561068457600080fd5b815167ffffffffffffffff8082111561069c57600080fd5b818401915084601f8301126106b057600080fd5b8151818111156106c2576106c261065c565b604051601f8201601f19908116603f011681019083821181831017156106ea576106ea61065c565b8160405282815287602084870101111561070357600080fd5b61071483602083016020880161052b565b979650505050505050565b808202811582820484141761074457634e487b7160e01b600052601160045260246000fd5b92915050565b600181811c9082168061075e57607f821691505b60208210810361077e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561079657600080fd5b8151801515811461065557600080fd5b6000602082840312156107b857600080fd5b505191905056fea2646970667358221220cc998df84736ccdf9c2fc4d643170e0aa352820edcbcfc1535f43812a956514964736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000005302e312e30000000000000000000000000000000000000000000000000000000", + "nonce": "0x2" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0x05fa373338e9044aecc7356cb3b8a90adf491e35b0a33a8ade4bdd0c51694429", + "transactionIndex": "0xc", + "blockHash": "0xf2c68e2899a7038b6f7becaaecf0dc34c639eee7855cb11e90c431a95a73c56c", + "blockNumber": "0x725786c", + "from": "0xDe193CBe6269cc78F3464C311e034aF4632511dE", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0xb3a359", + "gasUsed": "0x87503", + "contractAddress": "0xD9FB39d25E714908ACDA64164a3488d83B6FD3a3", + "logs": [ + { + "address": "0xD9FB39d25E714908ACDA64164a3488d83B6FD3a3", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xf2c68e2899a7038b6f7becaaecf0dc34c639eee7855cb11e90c431a95a73c56c", + "blockNumber": "0x725786c", + "transactionHash": "0x05fa373338e9044aecc7356cb3b8a90adf491e35b0a33a8ade4bdd0c51694429", + "transactionIndex": "0xc", + "logIndex": "0xa1", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "effectiveGasPrice": "0x3a2cec0" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1715391143, + "chain": 10, + "commit": "009e7fe" +} \ No newline at end of file diff --git a/packages/foundry/broadcast/Deploy.s.sol/10/run-latest.json b/packages/foundry/broadcast/Deploy.s.sol/10/run-latest.json new file mode 100644 index 0000000..67cbda0 --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/10/run-latest.json @@ -0,0 +1,63 @@ +{ + "transactions": [ + { + "hash": "0x05fa373338e9044aecc7356cb3b8a90adf491e35b0a33a8ade4bdd0c51694429", + "transactionType": "CREATE2", + "contractName": "GitcoinPassportEligibility", + "contractAddress": "0xD9FB39d25E714908ACDA64164a3488d83B6FD3a3", + "function": null, + "arguments": [ + "\"0.1.0\"" + ], + "transaction": { + "type": "0x00", + "from": "0xde193cbe6269cc78f3464c311e034af4632511de", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0xbad65", + "value": "0x0", + "data": "0x000000000000000000000000000000000000000000000000000000000000002060806040523480156200001157600080fd5b5060405162000b6238038062000b6283398101604081905262000034916200012d565b80600162000043828262000291565b506200004e62000056565b50506200035d565b600054610100900460ff1615620000c35760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000115576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200014157600080fd5b82516001600160401b03808211156200015957600080fd5b818501915085601f8301126200016e57600080fd5b81518181111562000183576200018362000117565b604051601f8201601f19908116603f01168101908382118183101715620001ae57620001ae62000117565b816040528281528886848701011115620001c757600080fd5b600093505b82841015620001eb5784840186015181850187015292850192620001cc565b600086848301015280965050505050505092915050565b600181811c908216806200021757607f821691505b6020821081036200023857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028c57600081815260208120601f850160051c81016020861015620002675750805b601f850160051c820191505b81811015620002885782815560010162000273565b5050505b505050565b81516001600160401b03811115620002ad57620002ad62000117565b620002c581620002be845462000202565b846200023e565b602080601f831160018114620002fd5760008415620002e45750858301515b600019600386901b1c1916600185901b17855562000288565b600085815260208120601f198616915b828110156200032e578886015182559484019460019091019084016200030d565b50858210156200034d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6107f5806200036d6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637150ef88116100665780637150ef881461011a578063a4f9edbf14610122578063bd68387214610137578063dd1bb1fc14610161578063f72c436f1461016957600080fd5b806307ace2b5146100a35780632149ee55146100c75780633a4741bd146100e757806354fd4d50146100fd5780635b14013a14610112575b600080fd5b3660011981013560f01c9003602801355b6040519081526020015b60405180910390f35b6100cf610191565b6040516001600160a01b0390911681526020016100be565b6100cf3660011981013560f01c90033560601c90565b6101056101ac565b6040516100be919061054f565b6100b4610229565b6100cf610247565b610135610130366004610582565b610262565b005b61014a610145366004610610565b610371565b6040805192151583529015156020830152016100be565b610105610388565b61017c61017736600461063a565b610416565b60405190151581526020016100be565b905090565b600061018c60483660011981013560f01c9003013560601c90565b60606101c43660011981013560f01c90033560601c90565b6001600160a01b031663dd1bb1fc6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610201573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261018c9190810190610672565b60003660011981013560f01c9003605c013561018c9061271061071f565b600061018c60143660011981013560f01c9003013560601c90565b600054610100900460ff16158080156102825750600054600160ff909116105b8061029c5750303b15801561029c575060005460ff166001145b6103035760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015610326576000805461ff0019166101001790555b801561036c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b60008061037d84610416565b946001945092505050565b600180546103959061074a565b80601f01602080910402602001604051908101604052809291908181526020018280546103c19061074a565b801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b505050505081565b600080610421610229565b9050600061042d610191565b9050816000036104af5760405163f72c436f60e01b81526001600160a01b03858116600483015282169063f72c436f90602401602060405180830381865afa925050508015610499575060408051601f3d908101601f1916820190925261049691810190610784565b60015b6104a7575060009392505050565b949350505050565b604051630d47875d60e41b81526001600160a01b03858116600483015282169063d47875d090602401602060405180830381865afa925050508015610511575060408051601f3d908101601f1916820190925261050e918101906107a6565b60015b61051f575060009392505050565b91909110159392505050565b60005b8381101561054657818101518382015260200161052e565b50506000910152565b602081526000825180602084015261056e81604085016020870161052b565b601f01601f19169190910160400192915050565b6000806020838503121561059557600080fd5b823567ffffffffffffffff808211156105ad57600080fd5b818501915085601f8301126105c157600080fd5b8135818111156105d057600080fd5b8660208285010111156105e257600080fd5b60209290920196919550909350505050565b80356001600160a01b038116811461060b57600080fd5b919050565b6000806040838503121561062357600080fd5b61062c836105f4565b946020939093013593505050565b60006020828403121561064c57600080fd5b610655826105f4565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561068457600080fd5b815167ffffffffffffffff8082111561069c57600080fd5b818401915084601f8301126106b057600080fd5b8151818111156106c2576106c261065c565b604051601f8201601f19908116603f011681019083821181831017156106ea576106ea61065c565b8160405282815287602084870101111561070357600080fd5b61071483602083016020880161052b565b979650505050505050565b808202811582820484141761074457634e487b7160e01b600052601160045260246000fd5b92915050565b600181811c9082168061075e57607f821691505b60208210810361077e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561079657600080fd5b8151801515811461065557600080fd5b6000602082840312156107b857600080fd5b505191905056fea2646970667358221220cc998df84736ccdf9c2fc4d643170e0aa352820edcbcfc1535f43812a956514964736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000005302e312e30000000000000000000000000000000000000000000000000000000", + "nonce": "0x2" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0x05fa373338e9044aecc7356cb3b8a90adf491e35b0a33a8ade4bdd0c51694429", + "transactionIndex": "0xc", + "blockHash": "0xf2c68e2899a7038b6f7becaaecf0dc34c639eee7855cb11e90c431a95a73c56c", + "blockNumber": "0x725786c", + "from": "0xDe193CBe6269cc78F3464C311e034aF4632511dE", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0xb3a359", + "gasUsed": "0x87503", + "contractAddress": "0xD9FB39d25E714908ACDA64164a3488d83B6FD3a3", + "logs": [ + { + "address": "0xD9FB39d25E714908ACDA64164a3488d83B6FD3a3", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xf2c68e2899a7038b6f7becaaecf0dc34c639eee7855cb11e90c431a95a73c56c", + "blockNumber": "0x725786c", + "transactionHash": "0x05fa373338e9044aecc7356cb3b8a90adf491e35b0a33a8ade4bdd0c51694429", + "transactionIndex": "0xc", + "logIndex": "0xa1", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "effectiveGasPrice": "0x3a2cec0" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1715391143, + "chain": 10, + "commit": "009e7fe" +} \ No newline at end of file diff --git a/packages/foundry/contracts/GitcoinPassportEligibility.sol b/packages/foundry/contracts/GitcoinPassportEligibility.sol index 2acecbc..2e88a86 100644 --- a/packages/foundry/contracts/GitcoinPassportEligibility.sol +++ b/packages/foundry/contracts/GitcoinPassportEligibility.sol @@ -91,9 +91,9 @@ contract GitcoinPassportEligibility is HatsEligibilityModule { uint256 _scoreCriterion = scoreCriterion(); IGitcoinPassportDecoder _gitcoinPassportDecoder = gitcoinPassportDecoder(); // we use a try/catch to handle cases where the user... + // - the attestation has expired // - doesn't have a score attestation, // - the attestation has been revoked, or - // - the attestation has expired if (_scoreCriterion == 0) { // if our score criterion is 0, we default to Gitcoin Passport's standard criterion try _gitcoinPassportDecoder.isHuman(wearer) returns (bool result) { diff --git a/packages/foundry/deployments/10.json b/packages/foundry/deployments/10.json new file mode 100644 index 0000000..34cc346 --- /dev/null +++ b/packages/foundry/deployments/10.json @@ -0,0 +1,3 @@ +{ + "networkName": "Optimism" +} \ No newline at end of file diff --git a/packages/foundry/foundry.toml b/packages/foundry/foundry.toml index c15273b..a549674 100644 --- a/packages/foundry/foundry.toml +++ b/packages/foundry/foundry.toml @@ -1,8 +1,9 @@ [profile.default] +solc = "0.8.19" src = 'contracts' out = 'out' libs = ['lib'] -fs_permissions = [{ access = "read-write", path = "./"}] +fs_permissions = [{ access = "read-write", path = "./" }] [rpc_endpoints] default_network = "http://127.0.0.1:8545" diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index 008d4eb..972dc34 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -4,6 +4,6 @@ */ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract"; -const deployedContracts = {} as const; +const deployedContracts = { 10: {} } as const; export default deployedContracts satisfies GenericContractsDeclaration;