diff --git a/modules/haberdasher-labs_multi-claims-hatter_v0.1.0.json b/modules/haberdasher-labs_multi-claims-hatter_v0.1.0.json index 7506fa4..d189e7a 100644 --- a/modules/haberdasher-labs_multi-claims-hatter_v0.1.0.json +++ b/modules/haberdasher-labs_multi-claims-hatter_v0.1.0.json @@ -17,7 +17,13 @@ "toggle": false, "hatter": true }, - "tags": [], + "tags": [ + { + "description": "Indicates that the module is now deprecated", + "label": "Deprecated", + "value": "deprecated" + } + ], "implementationAddress": "0xB985eA1be961f7c4A4C45504444C02c88c4fdEF9", "deployments": [ { @@ -88,7 +94,11 @@ "abi": [ { "inputs": [ - { "internalType": "string", "name": "_version", "type": "string" } + { + "internalType": "string", + "name": "_version", + "type": "string" + } ], "stateMutability": "nonpayable", "type": "constructor" @@ -100,30 +110,54 @@ }, { "inputs": [ - { "internalType": "uint256", "name": "hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } ], "name": "MultiClaimsHatter_HatNotClaimable", "type": "error" }, { "inputs": [ - { "internalType": "uint256", "name": "hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } ], "name": "MultiClaimsHatter_HatNotClaimableFor", "type": "error" }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "hatId", "type": "uint256" } + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } ], "name": "MultiClaimsHatter_NotAdminOfHat", "type": "error" }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "hatId", "type": "uint256" } + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } ], "name": "MultiClaimsHatter_NotExplicitlyEligible", "type": "error" @@ -183,7 +217,11 @@ "inputs": [], "name": "HATS", "outputs": [ - { "internalType": "contract IHats", "name": "", "type": "address" } + { + "internalType": "contract IHats", + "name": "", + "type": "address" + } ], "stateMutability": "pure", "type": "function" @@ -191,33 +229,71 @@ { "inputs": [], "name": "IMPLEMENTATION", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], "stateMutability": "pure", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "address", + "name": "_account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "accountCanClaim", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "address", + "name": "_account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "canClaimForAccount", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "claimHat", "outputs": [], @@ -226,8 +302,16 @@ }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" }, - { "internalType": "address", "name": "_account", "type": "address" } + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_account", + "type": "address" + } ], "name": "claimHatFor", "outputs": [], @@ -236,7 +320,11 @@ }, { "inputs": [ - { "internalType": "uint256[]", "name": "_hatIds", "type": "uint256[]" } + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + } ], "name": "claimHats", "outputs": [], @@ -245,7 +333,11 @@ }, { "inputs": [ - { "internalType": "uint256[]", "name": "_hatIds", "type": "uint256[]" }, + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + }, { "internalType": "address[]", "name": "_accounts", @@ -259,23 +351,43 @@ }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "hatExists", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "hatId", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "pure", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } ], "name": "hatToClaimType", "outputs": [ @@ -290,25 +402,49 @@ }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "isClaimableBy", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "isClaimableFor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + }, { "internalType": "enum MultiClaimsHatter.ClaimType", "name": "_claimType", @@ -342,8 +478,16 @@ "name": "_otherImmutableArgs", "type": "bytes" }, - { "internalType": "bytes", "name": "_initData", "type": "bytes" }, - { "internalType": "uint256", "name": "_hatId", "type": "uint256" }, + { + "internalType": "bytes", + "name": "_initData", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + }, { "internalType": "enum MultiClaimsHatter.ClaimType", "name": "_claimType", @@ -352,14 +496,22 @@ ], "name": "setHatClaimabilityAndCreateModule", "outputs": [ - { "internalType": "address", "name": "_instance", "type": "address" } + { + "internalType": "address", + "name": "_instance", + "type": "address" + } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { "internalType": "uint256[]", "name": "_hatIds", "type": "uint256[]" }, + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + }, { "internalType": "enum MultiClaimsHatter.ClaimType[]", "name": "_claimTypes", @@ -398,7 +550,11 @@ "name": "_initDataArray", "type": "bytes[]" }, - { "internalType": "uint256[]", "name": "_hatIds", "type": "uint256[]" }, + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + }, { "internalType": "enum MultiClaimsHatter.ClaimType[]", "name": "_claimTypes", @@ -407,14 +563,22 @@ ], "name": "setHatsClaimabilityAndCreateModules", "outputs": [ - { "internalType": "bool", "name": "success", "type": "bool" } + { + "internalType": "bool", + "name": "success", + "type": "bool" + } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { "internalType": "bytes", "name": "_initData", "type": "bytes" } + { + "internalType": "bytes", + "name": "_initData", + "type": "bytes" + } ], "name": "setUp", "outputs": [], @@ -424,23 +588,45 @@ { "inputs": [], "name": "version", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version_", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "_hatId", "type": "uint256" } + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } ], "name": "wearsAdmin", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "view", "type": "function" } diff --git a/modules/haberdasher-labs_multi-claims-hatter_v0.2.0.json b/modules/haberdasher-labs_multi-claims-hatter_v0.2.0.json new file mode 100644 index 0000000..6b8e036 --- /dev/null +++ b/modules/haberdasher-labs_multi-claims-hatter_v0.2.0.json @@ -0,0 +1,639 @@ +{ + "id": "haberdasher-labs_multi-claims-hatter", + "version": "v0.2.0", + "name": "Multi Claims Hatter", + "details": [ + "A Hats Protocol hatter contract enabling explicitly eligible wearers to claim a hat.", + "This version is compatible with HatsModuleFactory v0.7.0, which uses a saltNonce parameter for module deployments." + ], + "links": [ + { + "label": "GitHub", + "link": "https://github.com/Hats-Protocol/multi-claims-hatter" + } + ], + "parameters": [], + "type": { + "eligibility": false, + "toggle": false, + "hatter": true + }, + "tags": [ + { + "description": "Indicates that the module is now deprecated", + "label": "Deprecated", + "value": "deprecated" + } + ], + "implementationAddress": "0xBf931B514DECA60Fd386dEC2DCBd42650c7417d9", + "deployments": [ + { + "chainId": "11155111", + "block": "5996152" + }, + { + "chainId": "1", + "block": "19970940" + }, + { + "chainId": "10", + "block": "129187047" + }, + { + "chainId": "137", + "block": "65376155" + }, + { + "chainId": "42161", + "block": "283858084" + }, + { + "chainId": "100", + "block": "37481665" + }, + { + "chainId": "8453", + "block": "23592025" + }, + { + "chainId": "42220", + "block": "29260055" + } + ], + "creationArgs": { + "useHatId": true, + "immutable": [], + "mutable": [ + { + "name": "Initial Claimable Hats", + "description": "The IDs of the hats to set claimability for", + "type": "uint256[]", + "example": [ + "26959946667150639794667015087019630673637144422540572481103610249216" + ], + "displayType": "hat" + }, + { + "name": "Initial Claimability Types", + "description": "'1' to make a hat claimable by its wearers, '2' to make a hat also claimable on behalf of wearers", + "type": "uint8[]", + "example": [ + 1 + ], + "displayType": "default" + } + ] + }, + "customRoles": [], + "writeFunctions": [], + "abi": [ + { + "inputs": [ + { + "internalType": "string", + "name": "_version", + "type": "string" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "MultiClaimsHatter_ArrayLengthMismatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } + ], + "name": "MultiClaimsHatter_HatNotClaimable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } + ], + "name": "MultiClaimsHatter_HatNotClaimableFor", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } + ], + "name": "MultiClaimsHatter_NotAdminOfHat", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } + ], + "name": "MultiClaimsHatter_NotExplicitlyEligible", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "enum MultiClaimsHatter.ClaimType", + "name": "claimType", + "type": "uint8" + } + ], + "name": "HatClaimabilitySet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256[]", + "name": "hatIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "enum MultiClaimsHatter.ClaimType[]", + "name": "claimTypes", + "type": "uint8[]" + } + ], + "name": "HatsClaimabilitySet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "inputs": [], + "name": "HATS", + "outputs": [ + { + "internalType": "contract IHats", + "name": "", + "type": "address" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "IMPLEMENTATION", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "accountCanClaim", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "canClaimForAccount", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "claimHat", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_account", + "type": "address" + } + ], + "name": "claimHatFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + } + ], + "name": "claimHats", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + }, + { + "internalType": "address[]", + "name": "_accounts", + "type": "address[]" + } + ], + "name": "claimHatsFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "hatExists", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hatId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "hatId", + "type": "uint256" + } + ], + "name": "hatToClaimType", + "outputs": [ + { + "internalType": "enum MultiClaimsHatter.ClaimType", + "name": "claimType", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "isClaimableBy", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "isClaimableFor", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + }, + { + "internalType": "enum MultiClaimsHatter.ClaimType", + "name": "_claimType", + "type": "uint8" + } + ], + "name": "setHatClaimability", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract HatsModuleFactory", + "name": "_factory", + "type": "address" + }, + { + "internalType": "address", + "name": "_implementation", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_moduleHatId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_otherImmutableArgs", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "_initData", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "_saltNonce", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + }, + { + "internalType": "enum MultiClaimsHatter.ClaimType", + "name": "_claimType", + "type": "uint8" + } + ], + "name": "setHatClaimabilityAndCreateModule", + "outputs": [ + { + "internalType": "address", + "name": "_instance", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + }, + { + "internalType": "enum MultiClaimsHatter.ClaimType[]", + "name": "_claimTypes", + "type": "uint8[]" + } + ], + "name": "setHatsClaimability", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract HatsModuleFactory", + "name": "_factory", + "type": "address" + }, + { + "internalType": "address[]", + "name": "_implementations", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "_moduleHatIds", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "_otherImmutableArgsArray", + "type": "bytes[]" + }, + { + "internalType": "bytes[]", + "name": "_initDataArray", + "type": "bytes[]" + }, + { + "internalType": "uint256[]", + "name": "_saltNonces", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_hatIds", + "type": "uint256[]" + }, + { + "internalType": "enum MultiClaimsHatter.ClaimType[]", + "name": "_claimTypes", + "type": "uint8[]" + } + ], + "name": "setHatsClaimabilityAndCreateModules", + "outputs": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "_initData", + "type": "bytes" + } + ], + "name": "setUp", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version_", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hatId", + "type": "uint256" + } + ], + "name": "wearsAdmin", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/modules/haberdasher-labs_multi-claims-hatter_v0.3.0.json b/modules/haberdasher-labs_multi-claims-hatter_v0.3.0.json new file mode 100644 index 0000000..7735771 --- /dev/null +++ b/modules/haberdasher-labs_multi-claims-hatter_v0.3.0.json @@ -0,0 +1,94 @@ +{ + "id": "haberdasher-labs_multi-claims-hatter", + "version": "v0.3.0", + "name": "Multi Claims Hatter", + "details": [ + "A hatter contract enabling accounts that are explicitly eligible for a hat to claim it.", + "This version is compatible with HatsModuleFactory v0.7.0, which uses a saltNonce parameter for module deployments.", + "This version also supports hooks, enabling additional actions to be bundled with hat claims." + ], + "links": [ + { + "label": "GitHub", + "link": "https://github.com/Hats-Protocol/multi-claims-hatter" + } + ], + "parameters": [], + "type": { + "eligibility": false, + "toggle": false, + "hatter": true + }, + "tags": [], + "implementationAddress": "", + "deployments": [ + { + "chainId": "11155111", + "block": "" + }, + { + "chainId": "1", + "block": "" + }, + { + "chainId": "10", + "block": "" + }, + { + "chainId": "137", + "block": "" + }, + { + "chainId": "42161", + "block": "" + }, + { + "chainId": "100", + "block": "" + }, + { + "chainId": "8453", + "block": "" + }, + { + "chainId": "42220", + "block": "" + } + ], + "creationArgs": { + "useHatId": true, + "immutable": [], + "mutable": [ + { + "name": "Initial Claimable Hats", + "description": "The IDs of the hats to set claimability for", + "type": "uint256[]", + "example": [ + "26959946667150639794667015087019630673637144422540572481103610249216" + ], + "displayType": "hat" + }, + { + "name": "Initial Claimability Types", + "description": "'1' to make a hat claimable by its wearers, '2' to make a hat also claimable on behalf of wearers", + "type": "uint8[]", + "example": [ + 1 + ], + "displayType": "default" + }, + { + "name": "Initial Mint Hooks", + "description": "The addresses of the mint hooks to set for each hat. Use zero address to skip setting a mint hook.", + "type": "address[]", + "example": [ + "0x0000000000000000000000000000000000000000" + ], + "displayType": "address" + } + ] + }, + "customRoles": [], + "writeFunctions": [], + "abi": [] +} \ No newline at end of file