diff --git a/.husky/pre-commit b/.husky/pre-commit index 528094f0..9be7aac4 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ #!/usr/bin/env sh -# . "$(dirname -- "$0")/_/husky.sh" +. "$(dirname -- "$0")/_/husky.sh" -# pnpm fix +pnpm fix git add . diff --git a/package.json b/package.json index 84bd33e1..e76d3e07 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,5 @@ }, "engines": { "node": "^20.0.0" - }, - "dependencies": { - "@babel/core": "^7.23.0", - "@babel/preset-env": "^7.22.20" } } diff --git a/packages/eslint-config-story/index.js b/packages/eslint-config-story/index.js index 4adf9007..c1ffc5e3 100644 --- a/packages/eslint-config-story/index.js +++ b/packages/eslint-config-story/index.js @@ -1,39 +1,69 @@ module.exports = { - parser: "@typescript-eslint/parser", - extends: [ - "eslint:recommended", - "turbo", - "prettier", - "plugin:import/typescript", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", + parser: "@typescript-eslint/parser", + extends: [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended", + "turbo", + "prettier", + "plugin:import/typescript", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + ], + plugins: [ + "@typescript-eslint", + "react", + "react-hooks", + "eslint-plugin-tsdoc", + "import" + ], + env: { + browser: true, + es2021: true, + node: true, + }, + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + ecmaVersion: 12, + sourceType: 'module', + project: './tsconfig.json', + }, + settings: { + react: { + version: 'detect', + }, + }, + rules: { + // eslint rules + "curly": "error", + "eqeqeq": "error", + "no-implicit-coercion": ["error", { boolean: false }], + "no-unused-expressions": "error", + "no-useless-computed-key": "error", + "no-console": "error", + // Typescript rules + "no-shadow": "off", + "@typescript-eslint/no-shadow": "error", + "@typescript-eslint/no-unused-vars": "error", + '@typescript-eslint/no-unsafe-argument': 'off', // if you are experiencing false positives + // import rules + "import/newline-after-import": "error", + "import/no-cycle": "error", + "import/no-useless-path-segments": "error", + "import/order": [ + "error", + { + "groups": ["builtin", "external", "internal"], + "newlines-between": "always" + } ], - plugins: ["@typescript-eslint", "eslint-plugin-tsdoc", "import"], - rules: { - // eslint - "curly": "error", - "eqeqeq": "error", - "no-implicit-coercion": ["error", { boolean: false }], - "no-unused-expressions": "error", - "no-useless-computed-key": "error", - "no-console": "error", - - // Typescript - "no-shadow": "off", - "@typescript-eslint/no-shadow": "error", - "@typescript-eslint/no-unused-vars": "error", - '@typescript-eslint/no-unsafe-argument': 'off', // causing a lot of IDE false positives. - - // import rules - "import/newline-after-import": "error", - "import/no-cycle": "error", - "import/no-useless-path-segments": "error", - "import/order": [ - "error", - { - "groups": ["builtin", "external", "internal"], - "newlines-between": "always" - } - ] - } -} \ No newline at end of file + // react rules + 'react/react-in-jsx-scope': 'off', // not needed for React 17+ + 'react/prop-types': 'off', // if using TypeScript for type checking + // react-hooks rules + 'react-hooks/rules-of-hooks': 'error', // checks rules of Hooks + 'react-hooks/exhaustive-deps': 'warn', // checks effect dependencies + }, +}; diff --git a/packages/eslint-config-story/package.json b/packages/eslint-config-story/package.json index 40394922..f6400181 100644 --- a/packages/eslint-config-story/package.json +++ b/packages/eslint-config-story/package.json @@ -3,16 +3,18 @@ "version": "0.1.0", "private": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "^6.2.0", - "eslint-plugin-import": "^2.28.0", - "eslint-plugin-tsdoc": "^0.2.17", - "@typescript-eslint/parser": "^6.2.0", "eslint-config-prettier": "^8.10.0", "eslint-config-turbo": "^1.10.0" }, "devDependencies": { "@story-protocol/prettier-config": "workspace:*", - "eslint": "^8.40.0", + "@typescript-eslint/eslint-plugin": "^6.5.0", + "@typescript-eslint/parser": "^6.5.0", + "eslint": "^8.48.0", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-tsdoc": "^0.2.17", "prettier": "^3.0.0" }, "peerDependencies": { diff --git a/packages/protocol-core b/packages/protocol-core index e3918a80..03b8c2b9 160000 --- a/packages/protocol-core +++ b/packages/protocol-core @@ -1 +1 @@ -Subproject commit e3918a805d6529a3f1bc2d8f9f0f84d30f939a96 +Subproject commit 03b8c2b9fa011c5e0d6858f19deac48674c4c041 diff --git a/packages/react/babel.config.js b/packages/react/babel.config.ts similarity index 100% rename from packages/react/babel.config.js rename to packages/react/babel.config.ts diff --git a/packages/react/contracts.json b/packages/react/contracts.json new file mode 100644 index 00000000..a20c8b1e --- /dev/null +++ b/packages/react/contracts.json @@ -0,0 +1,25 @@ +{ + "AccessController": "0x31dd83a3FebB5fAD7F7bc8D4E05B623461B74a02", + "AncestorsVaultLAP": "0x9Faa4E491a211bFa415d44554120B1b31b6f4e59", + "ArbitrationPolicySP": "0x75e181d5eb307eCccf8d3b4724109eca14719A75", + "DisputeModule": "0x11dAA3F573C4d6673BBE7f2D96B4C91073A0d55d", + "Governance": "0xa18252Aa11Ff1B20b89C10109050CC46A4067b22", + "IPAccountImpl": "0x7BBaB2BD68fd3990c8dA2c26334a6DF8Acc7E96E", + "IPAccountRegistry": "0x7184bAdAdf24dc261C7C27BceFF53d7A25a06846", + "IPAssetRegistry": "0xF59adB67B7CC87436A7CC41040A7dB24AE90aDB8", + "IPAssetRenderer": "0x986d8E96b30b688FCD84e9A5A757C3d4304B47b6", + "IPMetadataProvider": "0xfcD468A72F76e89F2Df517274063ef7210a32e2A", + "IPResolver": "0xF0920314Fb4C375cdEB5b15c4e77277aCf36E3D7", + "LicenseRegistry": "0x4D6a54B467332dF675cFa689cb294A4cB9122866", + "LicensingModule": "0x0C72b24067a15994f91D92Fd9bA23eB5ebcF8378", + "MetadataProviderV1": "0xfcD468A72F76e89F2Df517274063ef7210a32e2A", + "MockERC20": "0xd53C2A80D24F6B3Ff009E48CF88D3b482E8E1457", + "MockERC721": "0xD3719824a768c139AAa7C5eFc8BDb5D1d13A1564", + "MockTokenGatedHook": "0x2d3ED4354eD09B0E6aa252938aEF41920aB6FC40", + "ModuleRegistry": "0x17Ad1cD06d44ae5F5480A675A4D8BD8DAED40410", + "PILPolicyFrameworkManager": "0x49cF5C5523011F8B4A0489969096Eb68C571C197", + "RegistrationModule": "0x248c8CbF469ec7CB22Dc9914E569920b93d717a3", + "RoyaltyModule": "0x512bbF310452cC96E0E9818B0870EcA557b86d4D", + "RoyaltyPolicyLAP": "0x8404061350BA0CA85c4E733B0be78c5519679003", + "TaggingModule": "0xED445f1DeE74Cf470Aab47F4b63734653C4C9537" +} diff --git a/packages/react/package.json b/packages/react/package.json index 4685b894..ff285987 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@story-protocol/react", - "version": "0.0.3-test-1", + "version": "0.0.4-test-1", "description": "Story Protocol React SDK", "main": "dist/story-protocol-react.cjs.js", "module": "dist/story-protocol-react.esm.js", @@ -20,13 +20,11 @@ "scripts": { "build": "pnpm run fix && preconstruct build", "test": "pnpm run test:unit && pnpm run test:integration", - "fix": "pnpm run format:fix && pnpm run lint:fix", "format": "prettier --check .", "format:fix": "prettier --write .", - "lint:fix": "pnpm run lint --fix", - "lint": "eslint .", "tsc": "tsc --noEmit", - "build-all": "cd ../protocol-core && git pull origin main && yarn && forge build && cd ../react && pnpm wagmi generate && preconstruct build" + "update": "cd ../protocol-core && git pull origin main && yarn && forge build && cd ../react", + "update:build": "pnpm run update && pnpm wagmi generate && preconstruct build" }, "keywords": [], "author": "", diff --git a/packages/react/src/generated/PILPolicyFrameworkManager.ts b/packages/react/src/generated/PILPolicyFrameworkManager.ts new file mode 100644 index 00000000..51d7900a --- /dev/null +++ b/packages/react/src/generated/PILPolicyFrameworkManager.ts @@ -0,0 +1,565 @@ +import { + createUseReadContract, + createUseWriteContract, + createUseSimulateContract, + createUseWatchContractEvent, +} from "wagmi/codegen"; + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// PILPolicyFrameworkManager +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const pilPolicyFrameworkManagerAbi = [ + { + stateMutability: "nonpayable", + type: "constructor", + inputs: [ + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAccountRegistry", internalType: "address", type: "address" }, + { name: "licensing", internalType: "address", type: "address" }, + { name: "name_", internalType: "string", type: "string" }, + { name: "licenseUrl_", internalType: "string", type: "string" }, + ], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "IP_ACCOUNT_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAccountRegistry", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "getAggregator", + outputs: [ + { + name: "rights", + internalType: "struct PILAggregator", + type: "tuple", + components: [ + { name: "commercial", internalType: "bool", type: "bool" }, + { name: "derivativesReciprocal", internalType: "bool", type: "bool" }, + { name: "lastPolicyId", internalType: "uint256", type: "uint256" }, + { name: "territoriesAcc", internalType: "bytes32", type: "bytes32" }, + { name: "distributionChannelsAcc", internalType: "bytes32", type: "bytes32" }, + { name: "contentRestrictionsAcc", internalType: "bytes32", type: "bytes32" }, + ], + }, + ], + }, + { + stateMutability: "view", + type: "function", + inputs: [{ name: "policyId", internalType: "uint256", type: "uint256" }], + name: "getPILPolicy", + outputs: [ + { + name: "policy", + internalType: "struct PILPolicy", + type: "tuple", + components: [ + { name: "attribution", internalType: "bool", type: "bool" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, + { name: "commercialAttribution", internalType: "bool", type: "bool" }, + { name: "commercializerChecker", internalType: "address", type: "address" }, + { name: "commercializerCheckerData", internalType: "bytes", type: "bytes" }, + { name: "commercialRevShare", internalType: "uint32", type: "uint32" }, + { name: "derivativesAllowed", internalType: "bool", type: "bool" }, + { name: "derivativesAttribution", internalType: "bool", type: "bool" }, + { name: "derivativesApproval", internalType: "bool", type: "bool" }, + { name: "derivativesReciprocal", internalType: "bool", type: "bool" }, + { name: "territories", internalType: "string[]", type: "string[]" }, + { name: "distributionChannels", internalType: "string[]", type: "string[]" }, + { name: "contentRestrictions", internalType: "string[]", type: "string[]" }, + ], + }, + ], + }, + { + stateMutability: "view", + type: "function", + inputs: [ + { name: "licenseId", internalType: "uint256", type: "uint256" }, + { name: "childIpId", internalType: "address", type: "address" }, + ], + name: "isDerivativeApproved", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "licenseTextUrl", + outputs: [{ name: "", internalType: "string", type: "string" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + }, + { + stateMutability: "pure", + type: "function", + inputs: [{ name: "policyData", internalType: "bytes", type: "bytes" }], + name: "policyToJson", + outputs: [{ name: "", internalType: "string", type: "string" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [ + { name: "aggregator", internalType: "bytes", type: "bytes" }, + { name: "policyId", internalType: "uint256", type: "uint256" }, + { name: "policy", internalType: "bytes", type: "bytes" }, + ], + name: "processInheritedPolicies", + outputs: [ + { name: "changedAgg", internalType: "bool", type: "bool" }, + { name: "newAggregator", internalType: "bytes", type: "bytes" }, + ], + }, + { + stateMutability: "nonpayable", + type: "function", + inputs: [ + { + name: "params", + internalType: "struct RegisterPILPolicyParams", + type: "tuple", + components: [ + { name: "transferable", internalType: "bool", type: "bool" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "mintingFeeToken", internalType: "address", type: "address" }, + { + name: "policy", + internalType: "struct PILPolicy", + type: "tuple", + components: [ + { name: "attribution", internalType: "bool", type: "bool" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, + { name: "commercialAttribution", internalType: "bool", type: "bool" }, + { name: "commercializerChecker", internalType: "address", type: "address" }, + { name: "commercializerCheckerData", internalType: "bytes", type: "bytes" }, + { name: "commercialRevShare", internalType: "uint32", type: "uint32" }, + { name: "derivativesAllowed", internalType: "bool", type: "bool" }, + { name: "derivativesAttribution", internalType: "bool", type: "bool" }, + { name: "derivativesApproval", internalType: "bool", type: "bool" }, + { name: "derivativesReciprocal", internalType: "bool", type: "bool" }, + { name: "territories", internalType: "string[]", type: "string[]" }, + { name: "distributionChannels", internalType: "string[]", type: "string[]" }, + { name: "contentRestrictions", internalType: "string[]", type: "string[]" }, + ], + }, + ], + }, + ], + name: "registerPolicy", + outputs: [{ name: "policyId", internalType: "uint256", type: "uint256" }], + }, + { + stateMutability: "nonpayable", + type: "function", + inputs: [ + { name: "licenseId", internalType: "uint256", type: "uint256" }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "approved", internalType: "bool", type: "bool" }, + ], + name: "setApproval", + outputs: [], + }, + { + stateMutability: "view", + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + }, + { + stateMutability: "nonpayable", + type: "function", + inputs: [ + { name: "licenseId", internalType: "uint256", type: "uint256" }, + { name: "caller", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "policyData", internalType: "bytes", type: "bytes" }, + ], + name: "verifyLink", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + }, + { + stateMutability: "nonpayable", + type: "function", + inputs: [ + { name: "caller", internalType: "address", type: "address" }, + { name: "mintingFromADerivative", internalType: "bool", type: "bool" }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "receiver", internalType: "address", type: "address" }, + { name: "mintAmount", internalType: "uint256", type: "uint256" }, + { name: "policyData", internalType: "bytes", type: "bytes" }, + ], + name: "verifyMint", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + }, + { + type: "event", + anonymous: false, + inputs: [ + { name: "licenseId", internalType: "uint256", type: "uint256", indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, + { name: "caller", internalType: "address", type: "address", indexed: true }, + { name: "approved", internalType: "bool", type: "bool", indexed: false }, + ], + name: "DerivativeApproved", + }, + { + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", + }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, + { type: "error", inputs: [], name: "LicensingModuleAware__CallerNotLicensingModule" }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialDisabled_CantAddAttribution", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialDisabled_CantAddCommercializers", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialDisabled_CantAddMintingFee", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialDisabled_CantAddMintingFeeToken", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialDisabled_CantAddRevShare", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialDisabled_CantAddRoyaltyPolicy", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__CommercialEnabled_RoyaltyPolicyRequired", + }, + { type: "error", inputs: [], name: "PILPolicyFrameworkManager__CommercialValueMismatch" }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__DerivativesDisabled_CantAddApproval", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__DerivativesDisabled_CantAddAttribution", + }, + { + type: "error", + inputs: [], + name: "PILPolicyFrameworkManager__DerivativesDisabled_CantAddReciprocal", + }, + { type: "error", inputs: [], name: "PILPolicyFrameworkManager__ReciprocalButDifferentPolicyIds" }, + { type: "error", inputs: [], name: "PILPolicyFrameworkManager__ReciprocalValueMismatch" }, + { type: "error", inputs: [], name: "PILPolicyFrameworkManager__RightsNotFound" }, + { type: "error", inputs: [], name: "PILPolicyFrameworkManager__StringArrayMismatch" }, + { + type: "error", + inputs: [{ name: "commercializer", internalType: "address", type: "address" }], + name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook", + }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { + type: "error", + inputs: [ + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "length", internalType: "uint256", type: "uint256" }, + ], + name: "StringsInsufficientHexLength", + }, +] as const; + +export const pilPolicyFrameworkManagerAddress = + "0x49cF5C5523011F8B4A0489969096Eb68C571C197" as const; + +export const pilPolicyFrameworkManagerConfig = { + address: pilPolicyFrameworkManagerAddress, + abi: pilPolicyFrameworkManagerAbi, +} as const; + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// React +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ + */ +export const useReadPilPolicyFrameworkManager = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"ACCESS_CONTROLLER"` + */ +export const useReadPilPolicyFrameworkManagerAccessController = /*#__PURE__*/ createUseReadContract( + { + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "ACCESS_CONTROLLER", + }, +); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"IP_ACCOUNT_REGISTRY"` + */ +export const useReadPilPolicyFrameworkManagerIpAccountRegistry = + /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "IP_ACCOUNT_REGISTRY", + }); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"LICENSE_REGISTRY"` + */ +export const useReadPilPolicyFrameworkManagerLicenseRegistry = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "LICENSE_REGISTRY", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"LICENSING_MODULE"` + */ +export const useReadPilPolicyFrameworkManagerLicensingModule6 = /*#__PURE__*/ createUseReadContract( + { + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "LICENSING_MODULE", + }, +); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"getAggregator"` + */ +export const useReadPilPolicyFrameworkManagerGetAggregator = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "getAggregator", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"getPILPolicy"` + */ +export const useReadPilPolicyFrameworkManagerGetPilPolicy = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "getPILPolicy", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"isDerivativeApproved"` + */ +export const useReadPilPolicyFrameworkManagerIsDerivativeApproved = + /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "isDerivativeApproved", + }); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"licenseTextUrl"` + */ +export const useReadPilPolicyFrameworkManagerLicenseTextUrl = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "licenseTextUrl", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"name"` + */ +export const useReadPilPolicyFrameworkManagerName = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "name", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"policyToJson"` + */ +export const useReadPilPolicyFrameworkManagerPolicyToJson = /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "policyToJson", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"processInheritedPolicies"` + */ +export const useReadPilPolicyFrameworkManagerProcessInheritedPolicies = + /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "processInheritedPolicies", + }); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"supportsInterface"` + */ +export const useReadPilPolicyFrameworkManagerSupportsInterface = + /*#__PURE__*/ createUseReadContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "supportsInterface", + }); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ + */ +export const useWritePilPolicyFrameworkManager = /*#__PURE__*/ createUseWriteContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, +}); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"registerPolicy"` + */ +export const useWritePilPolicyFrameworkManagerRegisterPolicy = /*#__PURE__*/ createUseWriteContract( + { + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "registerPolicy", + }, +); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"setApproval"` + */ +export const useSetApproval = /*#__PURE__*/ createUseWriteContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "setApproval", +}); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyLink"` + */ +export const useVerifyLink = /*#__PURE__*/ createUseWriteContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "verifyLink", +}); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyMint"` + */ +export const useVerifyMint = /*#__PURE__*/ createUseWriteContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "verifyMint", +}); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ + */ +export const useSimulatePilPolicyFrameworkManager = /*#__PURE__*/ createUseSimulateContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, +}); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"registerPolicy"` + */ +export const useSimulatePilPolicyFrameworkManagerRegisterPolicy = + /*#__PURE__*/ createUseSimulateContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "registerPolicy", + }); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"setApproval"` + */ +export const useSimulatePilPolicyFrameworkManagerSetApproval = + /*#__PURE__*/ createUseSimulateContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "setApproval", + }); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyLink"` + */ +export const useSimulatePilPolicyFrameworkManagerVerifyLink = + /*#__PURE__*/ createUseSimulateContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "verifyLink", + }); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyMint"` + */ +export const useSimulatePilPolicyFrameworkManagerVerifyMint = + /*#__PURE__*/ createUseSimulateContract({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + functionName: "verifyMint", + }); + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ + */ +export const useWatchPilPolicyFrameworkManager = /*#__PURE__*/ createUseWatchContractEvent({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, +}); + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pilPolicyFrameworkManagerAbi}__ and `eventName` set to `"DerivativeApproved"` + */ +export const useWatchPilPolicyFrameworkManagerDerivativeApproved = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: pilPolicyFrameworkManagerAbi, + address: pilPolicyFrameworkManagerAddress, + eventName: "DerivativeApproved", + }); diff --git a/packages/react/src/generated/UMLPolicyFrameworkManager.ts b/packages/react/src/generated/UMLPolicyFrameworkManager.ts index 11fe581e..b9929582 100644 --- a/packages/react/src/generated/UMLPolicyFrameworkManager.ts +++ b/packages/react/src/generated/UMLPolicyFrameworkManager.ts @@ -3,7 +3,7 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // UMLPolicyFrameworkManager @@ -383,15 +383,15 @@ export const umlPolicyFrameworkManagerAbi = [ { type: "error", inputs: [], name: "UMLPolicyFrameworkManager__ReciprocalValueMismatch" }, { type: "error", inputs: [], name: "UMLPolicyFrameworkManager__RightsNotFound" }, { type: "error", inputs: [], name: "UMLPolicyFrameworkManager__StringArrayMismatch" }, -] as const +] as const; export const umlPolicyFrameworkManagerAddress = - "0x30A18EA9abca9ff72fB9ce33F4f060A44a09f515" as const + "0x30A18EA9abca9ff72fB9ce33F4f060A44a09f515" as const; export const umlPolicyFrameworkManagerConfig = { address: umlPolicyFrameworkManagerAddress, abi: umlPolicyFrameworkManagerAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -403,7 +403,7 @@ export const umlPolicyFrameworkManagerConfig = { export const useReadUmlPolicyFrameworkManager = /*#__PURE__*/ createUseReadContract({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"ACCESS_CONTROLLER"` @@ -414,7 +414,7 @@ export const useReadUmlPolicyFrameworkManagerAccessController = /*#__PURE__*/ cr address: umlPolicyFrameworkManagerAddress, functionName: "ACCESS_CONTROLLER", }, -) +); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"IP_ACCOUNT_REGISTRY"` @@ -424,7 +424,7 @@ export const useReadUmlPolicyFrameworkManagerIpAccountRegistry = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "IP_ACCOUNT_REGISTRY", - }) + }); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"LICENSE_REGISTRY"` @@ -433,7 +433,7 @@ export const useReadUmlPolicyFrameworkManagerLicenseRegistry = /*#__PURE__*/ cre abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "LICENSE_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"LICENSING_MODULE"` @@ -444,7 +444,7 @@ export const useReadUmlPolicyFrameworkManagerLicensingModule6 = /*#__PURE__*/ cr address: umlPolicyFrameworkManagerAddress, functionName: "LICENSING_MODULE", }, -) +); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"getAggregator"` @@ -453,7 +453,7 @@ export const useReadUmlPolicyFrameworkManagerGetAggregator = /*#__PURE__*/ creat abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "getAggregator", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"getCommercialRevenueShare"` @@ -463,7 +463,7 @@ export const useReadUmlPolicyFrameworkManagerGetCommercialRevenueShare = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "getCommercialRevenueShare", - }) + }); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"getPolicy"` @@ -472,7 +472,7 @@ export const useReadUmlPolicyFrameworkManagerGetPolicy = /*#__PURE__*/ createUse abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "getPolicy", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"getPolicyId"` @@ -481,7 +481,7 @@ export const useReadUmlPolicyFrameworkManagerGetPolicyId = /*#__PURE__*/ createU abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "getPolicyId", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"getRoyaltyPolicy"` @@ -492,7 +492,7 @@ export const useReadUmlPolicyFrameworkManagerGetRoyaltyPolicy = /*#__PURE__*/ cr address: umlPolicyFrameworkManagerAddress, functionName: "getRoyaltyPolicy", }, -) +); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"isDerivativeApproved"` @@ -502,7 +502,7 @@ export const useReadUmlPolicyFrameworkManagerIsDerivativeApproved = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "isDerivativeApproved", - }) + }); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"isPolicyCommercial"` @@ -512,7 +512,7 @@ export const useReadUmlPolicyFrameworkManagerIsPolicyCommercial = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "isPolicyCommercial", - }) + }); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"licenseTextUrl"` @@ -521,7 +521,7 @@ export const useReadUmlPolicyFrameworkManagerLicenseTextUrl = /*#__PURE__*/ crea abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "licenseTextUrl", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"licensingModule"` @@ -532,7 +532,7 @@ export const useReadUmlPolicyFrameworkManagerLicensingModule7 = /*#__PURE__*/ cr address: umlPolicyFrameworkManagerAddress, functionName: "licensingModule", }, -) +); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"name"` @@ -541,7 +541,7 @@ export const useReadUmlPolicyFrameworkManagerName = /*#__PURE__*/ createUseReadC abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "name", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"policyToJson"` @@ -550,7 +550,7 @@ export const useReadUmlPolicyFrameworkManagerPolicyToJson = /*#__PURE__*/ create abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "policyToJson", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"processInheritedPolicies"` @@ -560,7 +560,7 @@ export const useReadUmlPolicyFrameworkManagerProcessInheritedPolicies = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "processInheritedPolicies", - }) + }); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"supportsInterface"` @@ -570,7 +570,7 @@ export const useReadUmlPolicyFrameworkManagerSupportsInterface = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "supportsInterface", - }) + }); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ @@ -578,7 +578,7 @@ export const useReadUmlPolicyFrameworkManagerSupportsInterface = export const useWriteUmlPolicyFrameworkManager = /*#__PURE__*/ createUseWriteContract({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"registerPolicy"` @@ -589,7 +589,7 @@ export const useWriteUmlPolicyFrameworkManagerRegisterPolicy = /*#__PURE__*/ cre address: umlPolicyFrameworkManagerAddress, functionName: "registerPolicy", }, -) +); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"setApproval"` @@ -598,7 +598,7 @@ export const useSetApproval = /*#__PURE__*/ createUseWriteContract({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "setApproval", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyLink"` @@ -607,7 +607,7 @@ export const useVerifyLink = /*#__PURE__*/ createUseWriteContract({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "verifyLink", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyMint"` @@ -616,7 +616,7 @@ export const useVerifyMint = /*#__PURE__*/ createUseWriteContract({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "verifyMint", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ @@ -624,7 +624,7 @@ export const useVerifyMint = /*#__PURE__*/ createUseWriteContract({ export const useSimulateUmlPolicyFrameworkManager = /*#__PURE__*/ createUseSimulateContract({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"registerPolicy"` @@ -634,7 +634,7 @@ export const useSimulateUmlPolicyFrameworkManagerRegisterPolicy = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "registerPolicy", - }) + }); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"setApproval"` @@ -644,7 +644,7 @@ export const useSimulateUmlPolicyFrameworkManagerSetApproval = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "setApproval", - }) + }); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyLink"` @@ -654,7 +654,7 @@ export const useSimulateUmlPolicyFrameworkManagerVerifyLink = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "verifyLink", - }) + }); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `functionName` set to `"verifyMint"` @@ -664,7 +664,7 @@ export const useSimulateUmlPolicyFrameworkManagerVerifyMint = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, functionName: "verifyMint", - }) + }); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ @@ -672,7 +672,7 @@ export const useSimulateUmlPolicyFrameworkManagerVerifyMint = export const useWatchUmlPolicyFrameworkManager = /*#__PURE__*/ createUseWatchContractEvent({ abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link umlPolicyFrameworkManagerAbi}__ and `eventName` set to `"DerivativeApproved"` @@ -682,4 +682,4 @@ export const useWatchUmlPolicyFrameworkManagerDerivativeApproved = abi: umlPolicyFrameworkManagerAbi, address: umlPolicyFrameworkManagerAddress, eventName: "DerivativeApproved", - }) + }); diff --git a/packages/react/src/generated/accessController.ts b/packages/react/src/generated/accessController.ts index 993e06bf..c94f116f 100644 --- a/packages/react/src/generated/accessController.ts +++ b/packages/react/src/generated/accessController.ts @@ -3,7 +3,7 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // AccessController @@ -33,10 +33,10 @@ export const accessControllerAbi = [ stateMutability: "view", type: "function", inputs: [ - { name: "ipAccount_", internalType: "address", type: "address" }, - { name: "signer_", internalType: "address", type: "address" }, - { name: "to_", internalType: "address", type: "address" }, - { name: "func_", internalType: "bytes4", type: "bytes4" }, + { name: "ipAccount", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "func", internalType: "bytes4", type: "bytes4" }, ], name: "checkPermission", outputs: [], @@ -77,19 +77,12 @@ export const accessControllerAbi = [ name: "initialize", outputs: [], }, - { - stateMutability: "view", - type: "function", - inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], - name: "permissions", - outputs: [{ name: "", internalType: "uint8", type: "uint8" }], - }, { stateMutability: "nonpayable", type: "function", inputs: [ { - name: "permissions_", + name: "permissions", internalType: "struct AccessPermission.Permission[]", type: "tuple[]", components: [ @@ -108,10 +101,10 @@ export const accessControllerAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "signer_", internalType: "address", type: "address" }, - { name: "to_", internalType: "address", type: "address" }, - { name: "func_", internalType: "bytes4", type: "bytes4" }, - { name: "permission_", internalType: "uint8", type: "uint8" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "func", internalType: "bytes4", type: "bytes4" }, + { name: "permission", internalType: "uint8", type: "uint8" }, ], name: "setGlobalPermission", outputs: [], @@ -127,11 +120,11 @@ export const accessControllerAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "ipAccount_", internalType: "address", type: "address" }, - { name: "signer_", internalType: "address", type: "address" }, - { name: "to_", internalType: "address", type: "address" }, - { name: "func_", internalType: "bytes4", type: "bytes4" }, - { name: "permission_", internalType: "uint8", type: "uint8" }, + { name: "ipAccount", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "func", internalType: "bytes4", type: "bytes4" }, + { name: "permission", internalType: "uint8", type: "uint8" }, ], name: "setPermission", outputs: [], @@ -146,6 +139,7 @@ export const accessControllerAbi = [ type: "event", anonymous: false, inputs: [ + { name: "ipAccountOwner", internalType: "address", type: "address", indexed: false }, { name: "ipAccount", internalType: "address", type: "address", indexed: true }, { name: "signer", internalType: "address", type: "address", indexed: true }, { name: "to", internalType: "address", type: "address", indexed: true }, @@ -187,14 +181,14 @@ export const accessControllerAbi = [ name: "Governance__UnsupportedInterface", }, { type: "error", inputs: [], name: "Governance__ZeroAddress" }, -] as const +] as const; -export const accessControllerAddress = "0xfeDc2A52AA77977E291d9077C7AbB60be76399FC" as const +export const accessControllerAddress = "0x31dd83a3FebB5fAD7F7bc8D4E05B623461B74a02" as const; export const accessControllerConfig = { address: accessControllerAddress, abi: accessControllerAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -206,7 +200,7 @@ export const accessControllerConfig = { export const useReadAccessController = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"IP_ACCOUNT_REGISTRY"` @@ -215,7 +209,7 @@ export const useReadIpAccountRegistry = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "IP_ACCOUNT_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"MODULE_REGISTRY"` @@ -224,7 +218,7 @@ export const useReadModuleRegistry = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "MODULE_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"checkPermission"` @@ -233,7 +227,7 @@ export const useReadCheckPermission = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "checkPermission", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"getGovernance"` @@ -242,7 +236,7 @@ export const useReadGetGovernance = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "getGovernance", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"getPermission"` @@ -251,7 +245,7 @@ export const useReadGetPermission = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "getPermission", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"governance"` @@ -260,16 +254,7 @@ export const useReadGovernance = /*#__PURE__*/ createUseReadContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "governance", -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"permissions"` - */ -export const useReadPermissions = /*#__PURE__*/ createUseReadContract({ - abi: accessControllerAbi, - address: accessControllerAddress, - functionName: "permissions", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link accessControllerAbi}__ @@ -277,7 +262,7 @@ export const useReadPermissions = /*#__PURE__*/ createUseReadContract({ export const useWriteAccessController = /*#__PURE__*/ createUseWriteContract({ abi: accessControllerAbi, address: accessControllerAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"initialize"` @@ -286,7 +271,7 @@ export const useInitialize = /*#__PURE__*/ createUseWriteContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "initialize", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setBatchPermissions"` @@ -295,7 +280,7 @@ export const useSetBatchPermissions = /*#__PURE__*/ createUseWriteContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "setBatchPermissions", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setGlobalPermission"` @@ -304,7 +289,7 @@ export const useSetGlobalPermission = /*#__PURE__*/ createUseWriteContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "setGlobalPermission", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setGovernance"` @@ -313,7 +298,7 @@ export const useSetGovernance = /*#__PURE__*/ createUseWriteContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "setGovernance", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setPermission"` @@ -322,7 +307,7 @@ export const useSetPermission = /*#__PURE__*/ createUseWriteContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "setPermission", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link accessControllerAbi}__ @@ -330,7 +315,7 @@ export const useSetPermission = /*#__PURE__*/ createUseWriteContract({ export const useSimulateAccessController = /*#__PURE__*/ createUseSimulateContract({ abi: accessControllerAbi, address: accessControllerAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"initialize"` @@ -339,7 +324,7 @@ export const useSimulateInitialize = /*#__PURE__*/ createUseSimulateContract({ abi: accessControllerAbi, address: accessControllerAddress, functionName: "initialize", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setBatchPermissions"` @@ -348,7 +333,7 @@ export const useSimulateSetBatchPermissions = /*#__PURE__*/ createUseSimulateCon abi: accessControllerAbi, address: accessControllerAddress, functionName: "setBatchPermissions", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setGlobalPermission"` @@ -357,7 +342,7 @@ export const useSimulateSetGlobalPermission = /*#__PURE__*/ createUseSimulateCon abi: accessControllerAbi, address: accessControllerAddress, functionName: "setGlobalPermission", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setGovernance"` @@ -366,7 +351,7 @@ export const useSimulateSetGovernance = /*#__PURE__*/ createUseSimulateContract( abi: accessControllerAbi, address: accessControllerAddress, functionName: "setGovernance", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link accessControllerAbi}__ and `functionName` set to `"setPermission"` @@ -375,7 +360,7 @@ export const useSimulateSetPermission = /*#__PURE__*/ createUseSimulateContract( abi: accessControllerAbi, address: accessControllerAddress, functionName: "setPermission", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link accessControllerAbi}__ @@ -383,7 +368,7 @@ export const useSimulateSetPermission = /*#__PURE__*/ createUseSimulateContract( export const useWatchAccessController = /*#__PURE__*/ createUseWatchContractEvent({ abi: accessControllerAbi, address: accessControllerAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link accessControllerAbi}__ and `eventName` set to `"GovernanceUpdated"` @@ -392,7 +377,7 @@ export const useWatchGovernanceUpdated = /*#__PURE__*/ createUseWatchContractEve abi: accessControllerAbi, address: accessControllerAddress, eventName: "GovernanceUpdated", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link accessControllerAbi}__ and `eventName` set to `"PermissionSet"` @@ -401,4 +386,4 @@ export const useWatchPermissionSet = /*#__PURE__*/ createUseWatchContractEvent({ abi: accessControllerAbi, address: accessControllerAddress, eventName: "PermissionSet", -}) +}); diff --git a/packages/react/src/generated/disputeModule.ts b/packages/react/src/generated/disputeModule.ts index 6fafafdc..571a10cd 100644 --- a/packages/react/src/generated/disputeModule.ts +++ b/packages/react/src/generated/disputeModule.ts @@ -3,7 +3,7 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // DisputeModule @@ -65,8 +65,8 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_disputeId", internalType: "uint256", type: "uint256" }, - { name: "_data", internalType: "bytes", type: "bytes" }, + { name: "disputeId", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], name: "cancelDispute", outputs: [], @@ -75,7 +75,7 @@ export const disputeModuleAbi = [ stateMutability: "view", type: "function", inputs: [], - name: "disputeId", + name: "disputeCounter", outputs: [{ name: "", internalType: "uint256", type: "uint256" }], }, { @@ -106,6 +106,13 @@ export const disputeModuleAbi = [ name: "governance", outputs: [{ name: "", internalType: "address", type: "address" }], }, + { + stateMutability: "view", + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "isIpTagged", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + }, { stateMutability: "view", type: "function", @@ -131,7 +138,7 @@ export const disputeModuleAbi = [ outputs: [{ name: "allowed", internalType: "bool", type: "bool" }], }, { - stateMutability: "pure", + stateMutability: "view", type: "function", inputs: [], name: "name", @@ -141,10 +148,10 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_targetIpId", internalType: "address", type: "address" }, - { name: "_linkToDisputeEvidence", internalType: "string", type: "string" }, - { name: "_targetTag", internalType: "bytes32", type: "bytes32" }, - { name: "_data", internalType: "bytes", type: "bytes" }, + { name: "targetIpId", internalType: "address", type: "address" }, + { name: "linkToDisputeEvidence", internalType: "string", type: "string" }, + { name: "targetTag", internalType: "bytes32", type: "bytes32" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], name: "raiseDispute", outputs: [{ name: "", internalType: "uint256", type: "uint256" }], @@ -152,7 +159,7 @@ export const disputeModuleAbi = [ { stateMutability: "nonpayable", type: "function", - inputs: [{ name: "_disputeId", internalType: "uint256", type: "uint256" }], + inputs: [{ name: "disputeId", internalType: "uint256", type: "uint256" }], name: "resolveDispute", outputs: [], }, @@ -160,8 +167,8 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_ipId", internalType: "address", type: "address" }, - { name: "_arbitrationPolicy", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "arbitrationPolicy", internalType: "address", type: "address" }, ], name: "setArbitrationPolicy", outputs: [], @@ -169,7 +176,7 @@ export const disputeModuleAbi = [ { stateMutability: "nonpayable", type: "function", - inputs: [{ name: "_arbitrationPolicy", internalType: "address", type: "address" }], + inputs: [{ name: "arbitrationPolicy", internalType: "address", type: "address" }], name: "setBaseArbitrationPolicy", outputs: [], }, @@ -177,9 +184,9 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_disputeId", internalType: "uint256", type: "uint256" }, - { name: "_decision", internalType: "bool", type: "bool" }, - { name: "_data", internalType: "bytes", type: "bytes" }, + { name: "disputeId", internalType: "uint256", type: "uint256" }, + { name: "decision", internalType: "bool", type: "bool" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], name: "setDisputeJudgement", outputs: [], @@ -202,8 +209,8 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_arbitrationPolicy", internalType: "address", type: "address" }, - { name: "_allowed", internalType: "bool", type: "bool" }, + { name: "arbitrationPolicy", internalType: "address", type: "address" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], name: "whitelistArbitrationPolicy", outputs: [], @@ -212,9 +219,9 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_arbitrationPolicy", internalType: "address", type: "address" }, - { name: "_arbPolicyRelayer", internalType: "address", type: "address" }, - { name: "_allowed", internalType: "bool", type: "bool" }, + { name: "arbitrationPolicy", internalType: "address", type: "address" }, + { name: "arbPolicyRelayer", internalType: "address", type: "address" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], name: "whitelistArbitrationRelayer", outputs: [], @@ -223,8 +230,8 @@ export const disputeModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "_tag", internalType: "bytes32", type: "bytes32" }, - { name: "_allowed", internalType: "bool", type: "bool" }, + { name: "tag", internalType: "bytes32", type: "bytes32" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], name: "whitelistDisputeTag", outputs: [], @@ -350,11 +357,14 @@ export const disputeModuleAbi = [ inputs: [{ name: "str", internalType: "string", type: "string" }], name: "StringTooLong", }, -] as const +] as const; -export const disputeModuleAddress = "0xfE1Af9c0F78Df4570Ed54A1bc21487AB88923dc6" as const +export const disputeModuleAddress = "0x11dAA3F573C4d6673BBE7f2D96B4C91073A0d55d" as const; -export const disputeModuleConfig = { address: disputeModuleAddress, abi: disputeModuleAbi } as const +export const disputeModuleConfig = { + address: disputeModuleAddress, + abi: disputeModuleAbi, +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -366,7 +376,7 @@ export const disputeModuleConfig = { address: disputeModuleAddress, abi: dispute export const useReadDisputeModule = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"ACCESS_CONTROLLER"` @@ -375,7 +385,7 @@ export const useReadDisputeModuleAccessController4 = /*#__PURE__*/ createUseRead abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "ACCESS_CONTROLLER", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"IN_DISPUTE"` @@ -384,7 +394,7 @@ export const useReadInDispute = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "IN_DISPUTE", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"IP_ACCOUNT_REGISTRY"` @@ -393,7 +403,7 @@ export const useReadDisputeModuleIpAccountRegistry5 = /*#__PURE__*/ createUseRea abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "IP_ACCOUNT_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"IP_ASSET_REGISTRY"` @@ -402,7 +412,7 @@ export const useReadIpAssetRegistry = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "IP_ASSET_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"arbitrationPolicies"` @@ -411,7 +421,7 @@ export const useReadArbitrationPolicies = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "arbitrationPolicies", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"baseArbitrationPolicy"` @@ -420,16 +430,16 @@ export const useReadBaseArbitrationPolicy = /*#__PURE__*/ createUseReadContract( abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "baseArbitrationPolicy", -}) +}); /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"disputeId"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"disputeCounter"` */ -export const useReadDisputeId = /*#__PURE__*/ createUseReadContract({ +export const useReadDisputeCounter = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, - functionName: "disputeId", -}) + functionName: "disputeCounter", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"disputes"` @@ -438,7 +448,7 @@ export const useReadDisputes = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "disputes", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"getGovernance"` @@ -447,7 +457,7 @@ export const useReadGetGovernance = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "getGovernance", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"governance"` @@ -456,7 +466,16 @@ export const useReadGovernance = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "governance", -}) +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"isIpTagged"` + */ +export const useReadIsIpTagged = /*#__PURE__*/ createUseReadContract({ + abi: disputeModuleAbi, + address: disputeModuleAddress, + functionName: "isIpTagged", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"isWhitelistedArbitrationPolicy"` @@ -465,7 +484,7 @@ export const useReadIsWhitelistedArbitrationPolicy = /*#__PURE__*/ createUseRead abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "isWhitelistedArbitrationPolicy", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"isWhitelistedArbitrationRelayer"` @@ -474,7 +493,7 @@ export const useReadIsWhitelistedArbitrationRelayer = /*#__PURE__*/ createUseRea abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "isWhitelistedArbitrationRelayer", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"isWhitelistedDisputeTag"` @@ -483,7 +502,7 @@ export const useReadIsWhitelistedDisputeTag = /*#__PURE__*/ createUseReadContrac abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "isWhitelistedDisputeTag", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"name"` @@ -492,7 +511,7 @@ export const useReadDisputeModuleName = /*#__PURE__*/ createUseReadContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "name", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"supportsInterface"` @@ -501,7 +520,7 @@ export const useReadDisputeModuleSupportsInterface = /*#__PURE__*/ createUseRead abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "supportsInterface", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ @@ -509,7 +528,7 @@ export const useReadDisputeModuleSupportsInterface = /*#__PURE__*/ createUseRead export const useWriteDisputeModule = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"cancelDispute"` @@ -518,7 +537,7 @@ export const useCancelDispute = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "cancelDispute", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"raiseDispute"` @@ -527,7 +546,7 @@ export const useRaiseDispute = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "raiseDispute", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"resolveDispute"` @@ -536,7 +555,7 @@ export const useResolveDispute = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "resolveDispute", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setArbitrationPolicy"` @@ -545,7 +564,7 @@ export const useSetArbitrationPolicy = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setArbitrationPolicy", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setBaseArbitrationPolicy"` @@ -554,7 +573,7 @@ export const useSetBaseArbitrationPolicy = /*#__PURE__*/ createUseWriteContract( abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setBaseArbitrationPolicy", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setDisputeJudgement"` @@ -563,7 +582,7 @@ export const useSetDisputeJudgement = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setDisputeJudgement", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setGovernance"` @@ -572,7 +591,7 @@ export const useSetGovernance = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setGovernance", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"whitelistArbitrationPolicy"` @@ -581,7 +600,7 @@ export const useWhitelistArbitrationPolicy = /*#__PURE__*/ createUseWriteContrac abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "whitelistArbitrationPolicy", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"whitelistArbitrationRelayer"` @@ -590,7 +609,7 @@ export const useWhitelistArbitrationRelayer = /*#__PURE__*/ createUseWriteContra abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "whitelistArbitrationRelayer", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"whitelistDisputeTag"` @@ -599,7 +618,7 @@ export const useWhitelistDisputeTag = /*#__PURE__*/ createUseWriteContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "whitelistDisputeTag", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ @@ -607,7 +626,7 @@ export const useWhitelistDisputeTag = /*#__PURE__*/ createUseWriteContract({ export const useSimulateDisputeModule = /*#__PURE__*/ createUseSimulateContract({ abi: disputeModuleAbi, address: disputeModuleAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"cancelDispute"` @@ -616,7 +635,7 @@ export const useSimulateCancelDispute = /*#__PURE__*/ createUseSimulateContract( abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "cancelDispute", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"raiseDispute"` @@ -625,7 +644,7 @@ export const useSimulateRaiseDispute = /*#__PURE__*/ createUseSimulateContract({ abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "raiseDispute", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"resolveDispute"` @@ -634,7 +653,7 @@ export const useSimulateResolveDispute = /*#__PURE__*/ createUseSimulateContract abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "resolveDispute", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setArbitrationPolicy"` @@ -643,7 +662,7 @@ export const useSimulateSetArbitrationPolicy = /*#__PURE__*/ createUseSimulateCo abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setArbitrationPolicy", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setBaseArbitrationPolicy"` @@ -652,7 +671,7 @@ export const useSimulateSetBaseArbitrationPolicy = /*#__PURE__*/ createUseSimula abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setBaseArbitrationPolicy", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setDisputeJudgement"` @@ -661,7 +680,7 @@ export const useSimulateSetDisputeJudgement = /*#__PURE__*/ createUseSimulateCon abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setDisputeJudgement", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"setGovernance"` @@ -670,7 +689,7 @@ export const useSimulateSetGovernance = /*#__PURE__*/ createUseSimulateContract( abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "setGovernance", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"whitelistArbitrationPolicy"` @@ -679,7 +698,7 @@ export const useSimulateWhitelistArbitrationPolicy = /*#__PURE__*/ createUseSimu abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "whitelistArbitrationPolicy", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"whitelistArbitrationRelayer"` @@ -688,7 +707,7 @@ export const useSimulateWhitelistArbitrationRelayer = /*#__PURE__*/ createUseSim abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "whitelistArbitrationRelayer", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link disputeModuleAbi}__ and `functionName` set to `"whitelistDisputeTag"` @@ -697,7 +716,7 @@ export const useSimulateWhitelistDisputeTag = /*#__PURE__*/ createUseSimulateCon abi: disputeModuleAbi, address: disputeModuleAddress, functionName: "whitelistDisputeTag", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ @@ -705,7 +724,7 @@ export const useSimulateWhitelistDisputeTag = /*#__PURE__*/ createUseSimulateCon export const useWatchDisputeModule = /*#__PURE__*/ createUseWatchContractEvent({ abi: disputeModuleAbi, address: disputeModuleAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"ArbitrationPolicySet"` @@ -714,7 +733,7 @@ export const useWatchArbitrationPolicySet = /*#__PURE__*/ createUseWatchContract abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "ArbitrationPolicySet", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"ArbitrationPolicyWhitelistUpdated"` @@ -723,7 +742,7 @@ export const useWatchArbitrationPolicyWhitelistUpdated = /*#__PURE__*/ createUse abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "ArbitrationPolicyWhitelistUpdated", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"ArbitrationRelayerWhitelistUpdated"` @@ -734,7 +753,7 @@ export const useWatchArbitrationRelayerWhitelistUpdated = /*#__PURE__*/ createUs address: disputeModuleAddress, eventName: "ArbitrationRelayerWhitelistUpdated", }, -) +); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"DefaultArbitrationPolicyUpdated"` @@ -743,7 +762,7 @@ export const useWatchDefaultArbitrationPolicyUpdated = /*#__PURE__*/ createUseWa abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "DefaultArbitrationPolicyUpdated", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"DisputeCancelled"` @@ -752,7 +771,7 @@ export const useWatchDisputeCancelled = /*#__PURE__*/ createUseWatchContractEven abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "DisputeCancelled", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"DisputeJudgementSet"` @@ -761,7 +780,7 @@ export const useWatchDisputeJudgementSet = /*#__PURE__*/ createUseWatchContractE abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "DisputeJudgementSet", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"DisputeRaised"` @@ -770,7 +789,7 @@ export const useWatchDisputeRaised = /*#__PURE__*/ createUseWatchContractEvent({ abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "DisputeRaised", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"DisputeResolved"` @@ -779,7 +798,7 @@ export const useWatchDisputeResolved = /*#__PURE__*/ createUseWatchContractEvent abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "DisputeResolved", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"GovernanceUpdated"` @@ -788,7 +807,7 @@ export const useWatchGovernanceUpdated = /*#__PURE__*/ createUseWatchContractEve abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "GovernanceUpdated", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link disputeModuleAbi}__ and `eventName` set to `"TagWhitelistUpdated"` @@ -797,4 +816,4 @@ export const useWatchTagWhitelistUpdated = /*#__PURE__*/ createUseWatchContractE abi: disputeModuleAbi, address: disputeModuleAddress, eventName: "TagWhitelistUpdated", -}) +}); diff --git a/packages/react/src/generated/ipAccountImpl.ts b/packages/react/src/generated/ipAccountImpl.ts index 208f1e19..79ac372d 100644 --- a/packages/react/src/generated/ipAccountImpl.ts +++ b/packages/react/src/generated/ipAccountImpl.ts @@ -3,13 +3,18 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPAccountImpl ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const ipAccountImplAbi = [ + { + stateMutability: "nonpayable", + type: "constructor", + inputs: [{ name: "accessController_", internalType: "address", type: "address" }], + }, { stateMutability: "payable", type: "receive" }, { stateMutability: "view", @@ -43,19 +48,12 @@ export const ipAccountImplAbi = [ name: "executeWithSig", outputs: [{ name: "result", internalType: "bytes", type: "bytes" }], }, - { - stateMutability: "nonpayable", - type: "function", - inputs: [{ name: "accessController_", internalType: "address", type: "address" }], - name: "initialize", - outputs: [], - }, { stateMutability: "view", type: "function", inputs: [ - { name: "signer_", internalType: "address", type: "address" }, - { name: "data_", internalType: "bytes", type: "bytes" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], name: "isValidSigner", outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], @@ -115,7 +113,7 @@ export const ipAccountImplAbi = [ { stateMutability: "pure", type: "function", - inputs: [{ name: "interfaceId_", internalType: "bytes4", type: "bytes4" }], + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], name: "supportsInterface", outputs: [{ name: "", internalType: "bool", type: "bool" }], }, @@ -156,10 +154,11 @@ export const ipAccountImplAbi = [ name: "ExecutedWithSig", }, { type: "error", inputs: [], name: "IPAccount__ExpiredSignature" }, + { type: "error", inputs: [], name: "IPAccount__InvalidAccessController" }, { type: "error", inputs: [], name: "IPAccount__InvalidCalldata" }, { type: "error", inputs: [], name: "IPAccount__InvalidSignature" }, { type: "error", inputs: [], name: "IPAccount__InvalidSigner" }, -] as const +] as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -168,7 +167,7 @@ export const ipAccountImplAbi = [ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ */ -export const useReadIpAccountImpl = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi }) +export const useReadIpAccountImpl = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi }); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"accessController"` @@ -176,7 +175,7 @@ export const useReadIpAccountImpl = /*#__PURE__*/ createUseReadContract({ abi: i export const useReadIpAccountImplAccessController3 = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "accessController", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"isValidSigner"` @@ -184,7 +183,7 @@ export const useReadIpAccountImplAccessController3 = /*#__PURE__*/ createUseRead export const useReadIsValidSigner = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "isValidSigner", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"onERC1155BatchReceived"` @@ -192,7 +191,7 @@ export const useReadIsValidSigner = /*#__PURE__*/ createUseReadContract({ export const useReadOnErc1155BatchReceived = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "onERC1155BatchReceived", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"onERC1155Received"` @@ -200,7 +199,7 @@ export const useReadOnErc1155BatchReceived = /*#__PURE__*/ createUseReadContract export const useReadOnErc1155Received = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "onERC1155Received", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"onERC721Received"` @@ -208,7 +207,7 @@ export const useReadOnErc1155Received = /*#__PURE__*/ createUseReadContract({ export const useReadOnErc721Received = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "onERC721Received", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"owner"` @@ -216,7 +215,7 @@ export const useReadOnErc721Received = /*#__PURE__*/ createUseReadContract({ export const useReadOwner = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "owner", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"state"` @@ -224,7 +223,7 @@ export const useReadOwner = /*#__PURE__*/ createUseReadContract({ export const useReadState = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "state", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"supportsInterface"` @@ -232,7 +231,7 @@ export const useReadState = /*#__PURE__*/ createUseReadContract({ export const useReadIpAccountImplSupportsInterface = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "supportsInterface", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"token"` @@ -240,12 +239,14 @@ export const useReadIpAccountImplSupportsInterface = /*#__PURE__*/ createUseRead export const useReadToken = /*#__PURE__*/ createUseReadContract({ abi: ipAccountImplAbi, functionName: "token", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAccountImplAbi}__ */ -export const useWriteIpAccountImpl = /*#__PURE__*/ createUseWriteContract({ abi: ipAccountImplAbi }) +export const useWriteIpAccountImpl = /*#__PURE__*/ createUseWriteContract({ + abi: ipAccountImplAbi, +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"execute"` @@ -253,7 +254,7 @@ export const useWriteIpAccountImpl = /*#__PURE__*/ createUseWriteContract({ abi: export const useExecute = /*#__PURE__*/ createUseWriteContract({ abi: ipAccountImplAbi, functionName: "execute", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"executeWithSig"` @@ -261,22 +262,14 @@ export const useExecute = /*#__PURE__*/ createUseWriteContract({ export const useExecuteWithSig = /*#__PURE__*/ createUseWriteContract({ abi: ipAccountImplAbi, functionName: "executeWithSig", -}) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"initialize"` - */ -export const useInitialize = /*#__PURE__*/ createUseWriteContract({ - abi: ipAccountImplAbi, - functionName: "initialize", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAccountImplAbi}__ */ export const useSimulateIpAccountImpl = /*#__PURE__*/ createUseSimulateContract({ abi: ipAccountImplAbi, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"execute"` @@ -284,7 +277,7 @@ export const useSimulateIpAccountImpl = /*#__PURE__*/ createUseSimulateContract( export const useSimulateExecute = /*#__PURE__*/ createUseSimulateContract({ abi: ipAccountImplAbi, functionName: "execute", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"executeWithSig"` @@ -292,22 +285,14 @@ export const useSimulateExecute = /*#__PURE__*/ createUseSimulateContract({ export const useSimulateExecuteWithSig = /*#__PURE__*/ createUseSimulateContract({ abi: ipAccountImplAbi, functionName: "executeWithSig", -}) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAccountImplAbi}__ and `functionName` set to `"initialize"` - */ -export const useSimulateInitialize = /*#__PURE__*/ createUseSimulateContract({ - abi: ipAccountImplAbi, - functionName: "initialize", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAccountImplAbi}__ */ export const useWatchIpAccountImpl = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAccountImplAbi, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAccountImplAbi}__ and `eventName` set to `"Executed"` @@ -315,7 +300,7 @@ export const useWatchIpAccountImpl = /*#__PURE__*/ createUseWatchContractEvent({ export const useWatchExecuted = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAccountImplAbi, eventName: "Executed", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAccountImplAbi}__ and `eventName` set to `"ExecutedWithSig"` @@ -323,4 +308,4 @@ export const useWatchExecuted = /*#__PURE__*/ createUseWatchContractEvent({ export const useWatchExecutedWithSig = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAccountImplAbi, eventName: "ExecutedWithSig", -}) +}); diff --git a/packages/react/src/generated/ipAssetRegistry.ts b/packages/react/src/generated/ipAssetRegistry.ts index 6f977ce5..76b9e0a5 100644 --- a/packages/react/src/generated/ipAssetRegistry.ts +++ b/packages/react/src/generated/ipAssetRegistry.ts @@ -3,7 +3,7 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IpAssetRegistry @@ -14,20 +14,12 @@ export const ipAssetRegistryAbi = [ stateMutability: "nonpayable", type: "constructor", inputs: [ - { name: "accessController", internalType: "address", type: "address" }, { name: "erc6551Registry", internalType: "address", type: "address" }, { name: "ipAccountImpl", internalType: "address", type: "address" }, { name: "moduleRegistry", internalType: "address", type: "address" }, { name: "governance", internalType: "address", type: "address" }, ], }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "ACCESS_CONTROLLER", - outputs: [{ name: "", internalType: "address", type: "address" }], - }, { stateMutability: "view", type: "function", @@ -88,9 +80,9 @@ export const ipAssetRegistryAbi = [ stateMutability: "view", type: "function", inputs: [ - { name: "chainId_", internalType: "uint256", type: "uint256" }, - { name: "tokenContract_", internalType: "address", type: "address" }, - { name: "tokenId_", internalType: "uint256", type: "uint256" }, + { name: "chainId", internalType: "uint256", type: "uint256" }, + { name: "tokenContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], name: "ipAccount", outputs: [{ name: "", internalType: "address", type: "address" }], @@ -148,39 +140,39 @@ export const ipAssetRegistryAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "licenseIds", internalType: "uint256[]", type: "uint256[]" }, - { name: "minRoyalty", internalType: "uint32", type: "uint32" }, { name: "chainId", internalType: "uint256", type: "uint256" }, { name: "tokenContract", internalType: "address", type: "address" }, { name: "tokenId", internalType: "uint256", type: "uint256" }, { name: "resolverAddr", internalType: "address", type: "address" }, { name: "createAccount", internalType: "bool", type: "bool" }, - { name: "data", internalType: "bytes", type: "bytes" }, + { name: "metadata_", internalType: "bytes", type: "bytes" }, ], name: "register", - outputs: [{ name: "id", internalType: "address", type: "address" }], + outputs: [{ name: "ipId_", internalType: "address", type: "address" }], }, { stateMutability: "nonpayable", type: "function", inputs: [ + { name: "licenseIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, { name: "chainId", internalType: "uint256", type: "uint256" }, { name: "tokenContract", internalType: "address", type: "address" }, { name: "tokenId", internalType: "uint256", type: "uint256" }, { name: "resolverAddr", internalType: "address", type: "address" }, { name: "createAccount", internalType: "bool", type: "bool" }, - { name: "data", internalType: "bytes", type: "bytes" }, + { name: "metadata_", internalType: "bytes", type: "bytes" }, ], name: "register", - outputs: [{ name: "id", internalType: "address", type: "address" }], + outputs: [{ name: "ipId_", internalType: "address", type: "address" }], }, { stateMutability: "nonpayable", type: "function", inputs: [ - { name: "chainId_", internalType: "uint256", type: "uint256" }, - { name: "tokenContract_", internalType: "address", type: "address" }, - { name: "tokenId_", internalType: "uint256", type: "uint256" }, + { name: "chainId", internalType: "uint256", type: "uint256" }, + { name: "tokenContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], name: "registerIpAccount", outputs: [{ name: "ipAccountAddress", internalType: "address", type: "address" }], @@ -326,14 +318,14 @@ export const ipAssetRegistryAbi = [ { type: "error", inputs: [], name: "IPAssetRegistry__NotYetRegistered" }, { type: "error", inputs: [], name: "IPAssetRegistry__RegistrantUnauthorized" }, { type: "error", inputs: [], name: "IPAssetRegistry__Unauthorized" }, -] as const +] as const; -export const ipAssetRegistryAddress = "0xef1d6eD8c51c63d3918ccb8377c62C039d27f9b2" as const +export const ipAssetRegistryAddress = "0xF59adB67B7CC87436A7CC41040A7dB24AE90aDB8" as const; export const ipAssetRegistryConfig = { address: ipAssetRegistryAddress, abi: ipAssetRegistryAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -345,16 +337,7 @@ export const ipAssetRegistryConfig = { export const useReadIpAssetRegistry = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"ACCESS_CONTROLLER"` - */ -export const useReadAccessController = /*#__PURE__*/ createUseReadContract({ - abi: ipAssetRegistryAbi, - address: ipAssetRegistryAddress, - functionName: "ACCESS_CONTROLLER", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"ERC6551_PUBLIC_REGISTRY"` @@ -363,7 +346,7 @@ export const useReadErc6551PublicRegistry = /*#__PURE__*/ createUseReadContract( abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "ERC6551_PUBLIC_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"IP_ACCOUNT_IMPL"` @@ -372,7 +355,7 @@ export const useReadIpAccountImpl = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "IP_ACCOUNT_IMPL", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"IP_ACCOUNT_SALT"` @@ -381,7 +364,7 @@ export const useReadIpAccountSalt = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "IP_ACCOUNT_SALT", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"MODULE_REGISTRY"` @@ -390,7 +373,7 @@ export const useReadModuleRegistry = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "MODULE_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"REGISTRATION_MODULE"` @@ -399,7 +382,7 @@ export const useReadRegistrationModule = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "REGISTRATION_MODULE", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"getGovernance"` @@ -408,7 +391,7 @@ export const useReadGetGovernance = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "getGovernance", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"getIPAccountImpl"` @@ -417,7 +400,7 @@ export const useReadGetIpAccountImpl = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "getIPAccountImpl", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"governance"` @@ -426,7 +409,7 @@ export const useReadGovernance = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "governance", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"ipAccount"` @@ -435,7 +418,7 @@ export const useReadIpAccount = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "ipAccount", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"ipId"` @@ -444,7 +427,7 @@ export const useReadIpId = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "ipId", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"isApprovedForAll"` @@ -453,7 +436,7 @@ export const useReadIsApprovedForAll = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "isApprovedForAll", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"isRegistered"` @@ -462,7 +445,7 @@ export const useReadIsRegistered = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "isRegistered", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"metadata"` @@ -471,7 +454,7 @@ export const useReadMetadata = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "metadata", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"metadataProvider"` @@ -480,7 +463,7 @@ export const useReadMetadataProvider = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "metadataProvider", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"resolver"` @@ -489,7 +472,7 @@ export const useReadResolver = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "resolver", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"totalSupply"` @@ -498,7 +481,7 @@ export const useReadTotalSupply = /*#__PURE__*/ createUseReadContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "totalSupply", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ @@ -506,7 +489,7 @@ export const useReadTotalSupply = /*#__PURE__*/ createUseReadContract({ export const useWriteIpAssetRegistry = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"register"` @@ -515,7 +498,7 @@ export const useRegister = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "register", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"registerIpAccount"` @@ -524,7 +507,7 @@ export const useRegisterIpAccount = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "registerIpAccount", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setApprovalForAll"` @@ -533,7 +516,7 @@ export const useSetApprovalForAll = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setApprovalForAll", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setGovernance"` @@ -542,7 +525,7 @@ export const useSetGovernance = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setGovernance", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setMetadata"` @@ -551,7 +534,7 @@ export const useSetMetadata = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setMetadata", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setMetadataProvider"` @@ -560,7 +543,7 @@ export const useSetMetadataProvider = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setMetadataProvider", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setRegistrationModule"` @@ -569,7 +552,7 @@ export const useSetRegistrationModule = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setRegistrationModule", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setResolver"` @@ -578,7 +561,7 @@ export const useSetResolver = /*#__PURE__*/ createUseWriteContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setResolver", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ @@ -586,7 +569,7 @@ export const useSetResolver = /*#__PURE__*/ createUseWriteContract({ export const useSimulateIpAssetRegistry = /*#__PURE__*/ createUseSimulateContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"register"` @@ -595,7 +578,7 @@ export const useSimulateRegister = /*#__PURE__*/ createUseSimulateContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "register", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"registerIpAccount"` @@ -604,7 +587,7 @@ export const useSimulateRegisterIpAccount = /*#__PURE__*/ createUseSimulateContr abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "registerIpAccount", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setApprovalForAll"` @@ -613,7 +596,7 @@ export const useSimulateSetApprovalForAll = /*#__PURE__*/ createUseSimulateContr abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setApprovalForAll", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setGovernance"` @@ -622,7 +605,7 @@ export const useSimulateSetGovernance = /*#__PURE__*/ createUseSimulateContract( abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setGovernance", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setMetadata"` @@ -631,7 +614,7 @@ export const useSimulateSetMetadata = /*#__PURE__*/ createUseSimulateContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setMetadata", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setMetadataProvider"` @@ -640,7 +623,7 @@ export const useSimulateSetMetadataProvider = /*#__PURE__*/ createUseSimulateCon abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setMetadataProvider", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setRegistrationModule"` @@ -649,7 +632,7 @@ export const useSimulateSetRegistrationModule = /*#__PURE__*/ createUseSimulateC abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setRegistrationModule", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `functionName` set to `"setResolver"` @@ -658,7 +641,7 @@ export const useSimulateSetResolver = /*#__PURE__*/ createUseSimulateContract({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, functionName: "setResolver", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ @@ -666,7 +649,7 @@ export const useSimulateSetResolver = /*#__PURE__*/ createUseSimulateContract({ export const useWatchIpAssetRegistry = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `eventName` set to `"ApprovalForAll"` @@ -675,7 +658,7 @@ export const useWatchApprovalForAll = /*#__PURE__*/ createUseWatchContractEvent( abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, eventName: "ApprovalForAll", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `eventName` set to `"GovernanceUpdated"` @@ -684,7 +667,7 @@ export const useWatchGovernanceUpdated = /*#__PURE__*/ createUseWatchContractEve abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, eventName: "GovernanceUpdated", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `eventName` set to `"IPAccountRegistered"` @@ -693,7 +676,7 @@ export const useWatchIpAccountRegistered = /*#__PURE__*/ createUseWatchContractE abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, eventName: "IPAccountRegistered", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `eventName` set to `"IPRegistered"` @@ -702,7 +685,7 @@ export const useWatchIpRegistered = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, eventName: "IPRegistered", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `eventName` set to `"IPResolverSet"` @@ -711,7 +694,7 @@ export const useWatchIpResolverSet = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, eventName: "IPResolverSet", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ipAssetRegistryAbi}__ and `eventName` set to `"MetadataSet"` @@ -720,4 +703,4 @@ export const useWatchMetadataSet = /*#__PURE__*/ createUseWatchContractEvent({ abi: ipAssetRegistryAbi, address: ipAssetRegistryAddress, eventName: "MetadataSet", -}) +}); diff --git a/packages/react/src/generated/licenseRegistry.ts b/packages/react/src/generated/licenseRegistry.ts index 54314891..1c75642a 100644 --- a/packages/react/src/generated/licenseRegistry.ts +++ b/packages/react/src/generated/licenseRegistry.ts @@ -3,14 +3,32 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseRegistry ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const licenseRegistryAbi = [ - { stateMutability: "nonpayable", type: "constructor", inputs: [] }, + { + stateMutability: "nonpayable", + type: "constructor", + inputs: [{ name: "governance", internalType: "address", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + }, { stateMutability: "view", type: "function", @@ -41,6 +59,20 @@ export const licenseRegistryAbi = [ name: "burnLicenses", outputs: [], }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "getGovernance", + outputs: [{ name: "", internalType: "address", type: "address" }], + }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "governance", + outputs: [{ name: "", internalType: "address", type: "address" }], + }, { stateMutability: "view", type: "function", @@ -51,6 +83,13 @@ export const licenseRegistryAbi = [ name: "isApprovedForAll", outputs: [{ name: "", internalType: "bool", type: "bool" }], }, + { + stateMutability: "view", + type: "function", + inputs: [{ name: "licenseId", internalType: "uint256", type: "uint256" }], + name: "isLicenseRevoked", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + }, { stateMutability: "view", type: "function", @@ -79,13 +118,6 @@ export const licenseRegistryAbi = [ }, ], }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "licensingModule", - outputs: [{ name: "", internalType: "address", type: "address" }], - }, { stateMutability: "view", type: "function", @@ -98,7 +130,7 @@ export const licenseRegistryAbi = [ type: "function", inputs: [ { name: "policyId", internalType: "uint256", type: "uint256" }, - { name: "licensorIp", internalType: "address", type: "address" }, + { name: "licensorIpId_", internalType: "address", type: "address" }, { name: "transferable", internalType: "bool", type: "bool" }, { name: "amount", internalType: "uint256", type: "uint256" }, { name: "receiver", internalType: "address", type: "address" }, @@ -156,6 +188,20 @@ export const licenseRegistryAbi = [ name: "setApprovalForAll", outputs: [], }, + { + stateMutability: "nonpayable", + type: "function", + inputs: [{ name: "newDisputeModule", internalType: "address", type: "address" }], + name: "setDisputeModule", + outputs: [], + }, + { + stateMutability: "nonpayable", + type: "function", + inputs: [{ name: "newGovernance", internalType: "address", type: "address" }], + name: "setGovernance", + outputs: [], + }, { stateMutability: "nonpayable", type: "function", @@ -187,6 +233,12 @@ export const licenseRegistryAbi = [ ], name: "ApprovalForAll", }, + { + type: "event", + anonymous: false, + inputs: [{ name: "newGovernance", internalType: "address", type: "address", indexed: true }], + name: "GovernanceUpdated", + }, { type: "event", anonymous: false, @@ -288,17 +340,35 @@ export const licenseRegistryAbi = [ ], name: "ERC1155MissingApprovalForAll", }, + { type: "error", inputs: [], name: "Governance__InconsistentState" }, + { type: "error", inputs: [], name: "Governance__OnlyProtocolAdmin" }, + { + type: "error", + inputs: [{ name: "interfaceName", internalType: "string", type: "string" }], + name: "Governance__UnsupportedInterface", + }, + { type: "error", inputs: [], name: "Governance__ZeroAddress" }, { type: "error", inputs: [], name: "LicenseRegistry__CallerNotLicensingModule" }, { type: "error", inputs: [], name: "LicenseRegistry__NotTransferable" }, + { type: "error", inputs: [], name: "LicenseRegistry__RevokedLicense" }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroDisputeModule" }, { type: "error", inputs: [], name: "LicenseRegistry__ZeroLicensingModule" }, -] as const + { + type: "error", + inputs: [ + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "length", internalType: "uint256", type: "uint256" }, + ], + name: "StringsInsufficientHexLength", + }, +] as const; -export const licenseRegistryAddress = "0x6F7FB37F668ba0F85b6a9C7Ffa02fEA1b3036aEF" as const +export const licenseRegistryAddress = "0x4D6a54B467332dF675cFa689cb294A4cB9122866" as const; export const licenseRegistryConfig = { address: licenseRegistryAddress, abi: licenseRegistryAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -310,7 +380,25 @@ export const licenseRegistryConfig = { export const useReadLicenseRegistry = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, -}) +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"DISPUTE_MODULE"` + */ +export const useReadDisputeModule = /*#__PURE__*/ createUseReadContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "DISPUTE_MODULE", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"LICENSING_MODULE"` + */ +export const useReadLicensingModule = /*#__PURE__*/ createUseReadContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "LICENSING_MODULE", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"balanceOf"` @@ -319,7 +407,7 @@ export const useReadBalanceOf = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "balanceOf", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"balanceOfBatch"` @@ -328,7 +416,25 @@ export const useReadBalanceOfBatch = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "balanceOfBatch", -}) +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"getGovernance"` + */ +export const useReadGetGovernance = /*#__PURE__*/ createUseReadContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "getGovernance", +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"governance"` + */ +export const useReadGovernance = /*#__PURE__*/ createUseReadContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "governance", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"isApprovedForAll"` @@ -337,7 +443,16 @@ export const useReadIsApprovedForAll = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "isApprovedForAll", -}) +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"isLicenseRevoked"` + */ +export const useReadIsLicenseRevoked = /*#__PURE__*/ createUseReadContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "isLicenseRevoked", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"isLicensee"` @@ -346,7 +461,7 @@ export const useReadIsLicensee = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "isLicensee", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"license"` @@ -355,16 +470,7 @@ export const useReadLicense = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "license", -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"licensingModule"` - */ -export const useReadLicensingModule = /*#__PURE__*/ createUseReadContract({ - abi: licenseRegistryAbi, - address: licenseRegistryAddress, - functionName: "licensingModule", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"licensorIpId"` @@ -373,7 +479,7 @@ export const useReadLicensorIpId = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "licensorIpId", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"mintedLicenses"` @@ -382,7 +488,7 @@ export const useReadMintedLicenses = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "mintedLicenses", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"policyIdForLicense"` @@ -391,7 +497,7 @@ export const useReadPolicyIdForLicense = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "policyIdForLicense", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"supportsInterface"` @@ -400,7 +506,7 @@ export const useReadLicenseRegistrySupportsInterface = /*#__PURE__*/ createUseRe abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "supportsInterface", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"uri"` @@ -409,7 +515,7 @@ export const useReadUri = /*#__PURE__*/ createUseReadContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "uri", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ @@ -417,7 +523,7 @@ export const useReadUri = /*#__PURE__*/ createUseReadContract({ export const useWriteLicenseRegistry = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"burnLicenses"` @@ -426,7 +532,7 @@ export const useBurnLicenses = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "burnLicenses", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"mintLicense"` @@ -435,7 +541,7 @@ export const useMintLicense = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "mintLicense", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"safeBatchTransferFrom"` @@ -444,7 +550,7 @@ export const useSafeBatchTransferFrom = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "safeBatchTransferFrom", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"safeTransferFrom"` @@ -453,7 +559,7 @@ export const useSafeTransferFrom = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "safeTransferFrom", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setApprovalForAll"` @@ -462,7 +568,25 @@ export const useSetApprovalForAll = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "setApprovalForAll", -}) +}); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setDisputeModule"` + */ +export const useSetDisputeModule = /*#__PURE__*/ createUseWriteContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "setDisputeModule", +}); + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setGovernance"` + */ +export const useSetGovernance = /*#__PURE__*/ createUseWriteContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "setGovernance", +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setLicensingModule"` @@ -471,7 +595,7 @@ export const useSetLicensingModule = /*#__PURE__*/ createUseWriteContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "setLicensingModule", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ @@ -479,7 +603,7 @@ export const useSetLicensingModule = /*#__PURE__*/ createUseWriteContract({ export const useSimulateLicenseRegistry = /*#__PURE__*/ createUseSimulateContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"burnLicenses"` @@ -488,7 +612,7 @@ export const useSimulateBurnLicenses = /*#__PURE__*/ createUseSimulateContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "burnLicenses", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"mintLicense"` @@ -497,7 +621,7 @@ export const useSimulateMintLicense = /*#__PURE__*/ createUseSimulateContract({ abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "mintLicense", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"safeBatchTransferFrom"` @@ -506,7 +630,7 @@ export const useSimulateSafeBatchTransferFrom = /*#__PURE__*/ createUseSimulateC abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "safeBatchTransferFrom", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"safeTransferFrom"` @@ -515,7 +639,7 @@ export const useSimulateSafeTransferFrom = /*#__PURE__*/ createUseSimulateContra abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "safeTransferFrom", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setApprovalForAll"` @@ -524,7 +648,25 @@ export const useSimulateSetApprovalForAll = /*#__PURE__*/ createUseSimulateContr abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "setApprovalForAll", -}) +}); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setDisputeModule"` + */ +export const useSimulateSetDisputeModule = /*#__PURE__*/ createUseSimulateContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "setDisputeModule", +}); + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setGovernance"` + */ +export const useSimulateSetGovernance = /*#__PURE__*/ createUseSimulateContract({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + functionName: "setGovernance", +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licenseRegistryAbi}__ and `functionName` set to `"setLicensingModule"` @@ -533,7 +675,7 @@ export const useSimulateSetLicensingModule = /*#__PURE__*/ createUseSimulateCont abi: licenseRegistryAbi, address: licenseRegistryAddress, functionName: "setLicensingModule", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ @@ -541,7 +683,7 @@ export const useSimulateSetLicensingModule = /*#__PURE__*/ createUseSimulateCont export const useWatchLicenseRegistry = /*#__PURE__*/ createUseWatchContractEvent({ abi: licenseRegistryAbi, address: licenseRegistryAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ and `eventName` set to `"ApprovalForAll"` @@ -550,7 +692,16 @@ export const useWatchApprovalForAll = /*#__PURE__*/ createUseWatchContractEvent( abi: licenseRegistryAbi, address: licenseRegistryAddress, eventName: "ApprovalForAll", -}) +}); + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ and `eventName` set to `"GovernanceUpdated"` + */ +export const useWatchGovernanceUpdated = /*#__PURE__*/ createUseWatchContractEvent({ + abi: licenseRegistryAbi, + address: licenseRegistryAddress, + eventName: "GovernanceUpdated", +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ and `eventName` set to `"LicenseMinted"` @@ -559,7 +710,7 @@ export const useWatchLicenseMinted = /*#__PURE__*/ createUseWatchContractEvent({ abi: licenseRegistryAbi, address: licenseRegistryAddress, eventName: "LicenseMinted", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ and `eventName` set to `"TransferBatch"` @@ -568,7 +719,7 @@ export const useWatchTransferBatch = /*#__PURE__*/ createUseWatchContractEvent({ abi: licenseRegistryAbi, address: licenseRegistryAddress, eventName: "TransferBatch", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ and `eventName` set to `"TransferSingle"` @@ -577,7 +728,7 @@ export const useWatchTransferSingle = /*#__PURE__*/ createUseWatchContractEvent( abi: licenseRegistryAbi, address: licenseRegistryAddress, eventName: "TransferSingle", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licenseRegistryAbi}__ and `eventName` set to `"URI"` @@ -586,4 +737,4 @@ export const useWatchUri = /*#__PURE__*/ createUseWatchContractEvent({ abi: licenseRegistryAbi, address: licenseRegistryAddress, eventName: "URI", -}) +}); diff --git a/packages/react/src/generated/licensingModule.ts b/packages/react/src/generated/licensingModule.ts index f100990f..987f7348 100644 --- a/packages/react/src/generated/licensingModule.ts +++ b/packages/react/src/generated/licensingModule.ts @@ -3,7 +3,7 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicensingModule @@ -18,6 +18,7 @@ export const licensingModuleAbi = [ { name: "ipAccountRegistry", internalType: "address", type: "address" }, { name: "royaltyModule", internalType: "address", type: "address" }, { name: "registry", internalType: "address", type: "address" }, + { name: "disputeModule", internalType: "address", type: "address" }, ], }, { @@ -27,6 +28,13 @@ export const licensingModuleAbi = [ name: "ACCESS_CONTROLLER", outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], }, + { + stateMutability: "view", + type: "function", + inputs: [], + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + }, { stateMutability: "view", type: "function", @@ -62,9 +70,20 @@ export const licensingModuleAbi = [ stateMutability: "view", type: "function", inputs: [ - { name: "framework", internalType: "address", type: "address" }, - { name: "isLicenseTransferable", internalType: "bool", type: "bool" }, - { name: "data", internalType: "bytes", type: "bytes" }, + { + name: "pol", + internalType: "struct Licensing.Policy", + type: "tuple", + components: [ + { name: "isLicenseTransferable", internalType: "bool", type: "bool" }, + { name: "policyFramework", internalType: "address", type: "address" }, + { name: "frameworkData", internalType: "bytes", type: "bytes" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "royaltyData", internalType: "bytes", type: "bytes" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "mintingFeeToken", internalType: "address", type: "address" }, + ], + }, ], name: "getPolicyId", outputs: [{ name: "policyId", internalType: "uint256", type: "uint256" }], @@ -114,20 +133,13 @@ export const licensingModuleAbi = [ name: "isPolicyInherited", outputs: [{ name: "", internalType: "bool", type: "bool" }], }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "licenseRegistry", - outputs: [{ name: "", internalType: "address", type: "address" }], - }, { stateMutability: "nonpayable", type: "function", inputs: [ { name: "licenseIds", internalType: "uint256[]", type: "uint256[]" }, { name: "childIpId", internalType: "address", type: "address" }, - { name: "minRoyalty", internalType: "uint32", type: "uint32" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, ], name: "linkIpToParents", outputs: [], @@ -137,9 +149,10 @@ export const licensingModuleAbi = [ type: "function", inputs: [ { name: "policyId", internalType: "uint256", type: "uint256" }, - { name: "licensorIp", internalType: "address", type: "address" }, + { name: "licensorIpId", internalType: "address", type: "address" }, { name: "amount", internalType: "uint256", type: "uint256" }, { name: "receiver", internalType: "address", type: "address" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, ], name: "mintLicense", outputs: [{ name: "licenseId", internalType: "uint256", type: "uint256" }], @@ -169,9 +182,13 @@ export const licensingModuleAbi = [ internalType: "struct Licensing.Policy", type: "tuple", components: [ - { name: "policyFramework", internalType: "address", type: "address" }, { name: "isLicenseTransferable", internalType: "bool", type: "bool" }, - { name: "data", internalType: "bytes", type: "bytes" }, + { name: "policyFramework", internalType: "address", type: "address" }, + { name: "frameworkData", internalType: "bytes", type: "bytes" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "royaltyData", internalType: "bytes", type: "bytes" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "mintingFeeToken", internalType: "address", type: "address" }, ], }, ], @@ -201,9 +218,13 @@ export const licensingModuleAbi = [ internalType: "struct Licensing.Policy", type: "tuple", components: [ - { name: "policyFramework", internalType: "address", type: "address" }, { name: "isLicenseTransferable", internalType: "bool", type: "bool" }, - { name: "data", internalType: "bytes", type: "bytes" }, + { name: "policyFramework", internalType: "address", type: "address" }, + { name: "frameworkData", internalType: "bytes", type: "bytes" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "royaltyData", internalType: "bytes", type: "bytes" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "mintingFeeToken", internalType: "address", type: "address" }, ], }, ], @@ -247,8 +268,20 @@ export const licensingModuleAbi = [ stateMutability: "nonpayable", type: "function", inputs: [ - { name: "isLicenseTransferable", internalType: "bool", type: "bool" }, - { name: "data", internalType: "bytes", type: "bytes" }, + { + name: "pol", + internalType: "struct Licensing.Policy", + type: "tuple", + components: [ + { name: "isLicenseTransferable", internalType: "bool", type: "bool" }, + { name: "policyFramework", internalType: "address", type: "address" }, + { name: "frameworkData", internalType: "bytes", type: "bytes" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "royaltyData", internalType: "bytes", type: "bytes" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "mintingFeeToken", internalType: "address", type: "address" }, + ], + }, ], name: "registerPolicy", outputs: [{ name: "policyId", internalType: "uint256", type: "uint256" }], @@ -327,9 +360,13 @@ export const licensingModuleAbi = [ type: "event", anonymous: false, inputs: [ - { name: "policyFrameworkManager", internalType: "address", type: "address", indexed: true }, { name: "policyId", internalType: "uint256", type: "uint256", indexed: true }, - { name: "policy", internalType: "bytes", type: "bytes", indexed: false }, + { name: "policyFrameworkManager", internalType: "address", type: "address", indexed: true }, + { name: "frameworkData", internalType: "bytes", type: "bytes", indexed: false }, + { name: "royaltyPolicy", internalType: "address", type: "address", indexed: false }, + { name: "royaltyData", internalType: "bytes", type: "bytes", indexed: false }, + { name: "mintingFee", internalType: "uint256", type: "uint256", indexed: false }, + { name: "mintingFeeToken", internalType: "address", type: "address", indexed: false }, ], name: "PolicyRegistered", }, @@ -340,40 +377,32 @@ export const licensingModuleAbi = [ }, { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { type: "error", inputs: [], name: "LicensingModule__CallerNotLicensorAndPolicyNotSet" }, - { type: "error", inputs: [], name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply" }, { type: "error", inputs: [], name: "LicensingModule__DerivativesCannotAddPolicy" }, + { type: "error", inputs: [], name: "LicensingModule__DisputedIpId" }, { type: "error", inputs: [], name: "LicensingModule__EmptyLicenseUrl" }, { type: "error", inputs: [], name: "LicensingModule__FrameworkNotFound" }, { type: "error", inputs: [], name: "LicensingModule__IncompatibleLicensorCommercialPolicy" }, - { type: "error", inputs: [], name: "LicensingModule__IncompatibleRoyaltyPolicyAddress" }, - { - type: "error", - inputs: [], - name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare", - }, { type: "error", inputs: [], name: "LicensingModule__InvalidPolicyFramework" }, { type: "error", inputs: [], name: "LicensingModule__LicensorNotRegistered" }, { type: "error", inputs: [], name: "LicensingModule__LinkParentParamFailed" }, + { type: "error", inputs: [], name: "LicensingModule__LinkingRevokedLicense" }, { type: "error", inputs: [], name: "LicensingModule__MintLicenseParamFailed" }, - { - type: "error", - inputs: [], - name: "LicensingModule__MismatchBetweenCommercialRevenueShareAndMinRoyalty", - }, - { type: "error", inputs: [], name: "LicensingModule__MismatchBetweenRoyaltyPolicy" }, + { type: "error", inputs: [], name: "LicensingModule__MintingFeeTokenNotWhitelisted" }, { type: "error", inputs: [], name: "LicensingModule__NotLicensee" }, { type: "error", inputs: [], name: "LicensingModule__ParentIdEqualThanChild" }, { type: "error", inputs: [], name: "LicensingModule__PolicyAlreadySetForIpId" }, { type: "error", inputs: [], name: "LicensingModule__PolicyNotFound" }, + { type: "error", inputs: [], name: "LicensingModule__RegisterPolicyFrameworkMismatch" }, + { type: "error", inputs: [], name: "LicensingModule__RoyaltyPolicyNotWhitelisted" }, { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, -] as const +] as const; -export const licensingModuleAddress = "0x6F7FB37F668ba0F85b6a9C7Ffa02fEA1b3036aEF" as const +export const licensingModuleAddress = "0x4D6a54B467332dF675cFa689cb294A4cB9122866" as const; export const licensingModuleConfig = { address: licensingModuleAddress, abi: licensingModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -385,7 +414,7 @@ export const licensingModuleConfig = { export const useReadLicensingModule = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"ACCESS_CONTROLLER"` @@ -394,7 +423,16 @@ export const useReadAccessController = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "ACCESS_CONTROLLER", -}) +}); + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"DISPUTE_MODULE"` + */ +export const useReadLicensingModuleDisputeModule1 = /*#__PURE__*/ createUseReadContract({ + abi: licensingModuleAbi, + address: licensingModuleAddress, + functionName: "DISPUTE_MODULE", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"IP_ACCOUNT_REGISTRY"` @@ -403,16 +441,16 @@ export const useReadIpAccountRegistry = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "IP_ACCOUNT_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"LICENSE_REGISTRY"` */ -export const useReadLicensingModuleLicenseRegistry1 = /*#__PURE__*/ createUseReadContract({ +export const useReadLicensingModuleLicenseRegistry2 = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "LICENSE_REGISTRY", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"ROYALTY_MODULE"` @@ -421,7 +459,7 @@ export const useReadRoyaltyModule = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "ROYALTY_MODULE", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"getPolicyId"` @@ -430,7 +468,7 @@ export const useReadGetPolicyId = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "getPolicyId", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"isFrameworkRegistered"` @@ -439,7 +477,7 @@ export const useReadIsFrameworkRegistered = /*#__PURE__*/ createUseReadContract( abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "isFrameworkRegistered", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"isParent"` @@ -448,7 +486,7 @@ export const useReadIsParent = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "isParent", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"isPolicyDefined"` @@ -457,7 +495,7 @@ export const useReadIsPolicyDefined = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "isPolicyDefined", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"isPolicyIdSetForIp"` @@ -466,7 +504,7 @@ export const useReadIsPolicyIdSetForIp = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "isPolicyIdSetForIp", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"isPolicyInherited"` @@ -475,16 +513,7 @@ export const useReadIsPolicyInherited = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "isPolicyInherited", -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"licenseRegistry"` - */ -export const useReadLicensingModuleLicenseRegistry2 = /*#__PURE__*/ createUseReadContract({ - abi: licensingModuleAbi, - address: licensingModuleAddress, - functionName: "licenseRegistry", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"name"` @@ -493,7 +522,7 @@ export const useReadLicensingModuleName = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "name", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"parentIpIds"` @@ -502,7 +531,7 @@ export const useReadParentIpIds = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "parentIpIds", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"policy"` @@ -511,7 +540,7 @@ export const useReadPolicy = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "policy", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"policyAggregatorData"` @@ -520,7 +549,7 @@ export const useReadPolicyAggregatorData = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "policyAggregatorData", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"policyForIpAtIndex"` @@ -529,7 +558,7 @@ export const useReadPolicyForIpAtIndex = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "policyForIpAtIndex", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"policyIdForIpAtIndex"` @@ -538,7 +567,7 @@ export const useReadPolicyIdForIpAtIndex = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "policyIdForIpAtIndex", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"policyIdsForIp"` @@ -547,7 +576,7 @@ export const useReadPolicyIdsForIp = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "policyIdsForIp", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"policyStatus"` @@ -556,7 +585,7 @@ export const useReadPolicyStatus = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "policyStatus", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"supportsInterface"` @@ -565,7 +594,7 @@ export const useReadLicensingModuleSupportsInterface = /*#__PURE__*/ createUseRe abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "supportsInterface", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"totalParentsForIpId"` @@ -574,7 +603,7 @@ export const useReadTotalParentsForIpId = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "totalParentsForIpId", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"totalPolicies"` @@ -583,7 +612,7 @@ export const useReadTotalPolicies = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "totalPolicies", -}) +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"totalPoliciesForIp"` @@ -592,7 +621,7 @@ export const useReadTotalPoliciesForIp = /*#__PURE__*/ createUseReadContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "totalPoliciesForIp", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licensingModuleAbi}__ @@ -600,7 +629,7 @@ export const useReadTotalPoliciesForIp = /*#__PURE__*/ createUseReadContract({ export const useWriteLicensingModule = /*#__PURE__*/ createUseWriteContract({ abi: licensingModuleAbi, address: licensingModuleAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"addPolicyToIp"` @@ -609,7 +638,7 @@ export const useAddPolicyToIp = /*#__PURE__*/ createUseWriteContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "addPolicyToIp", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"linkIpToParents"` @@ -618,7 +647,7 @@ export const useLinkIpToParents = /*#__PURE__*/ createUseWriteContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "linkIpToParents", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"mintLicense"` @@ -627,7 +656,7 @@ export const useMintLicense = /*#__PURE__*/ createUseWriteContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "mintLicense", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"registerPolicy"` @@ -636,7 +665,7 @@ export const useRegisterPolicy = /*#__PURE__*/ createUseWriteContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "registerPolicy", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"registerPolicyFrameworkManager"` @@ -645,7 +674,7 @@ export const useRegisterPolicyFrameworkManager = /*#__PURE__*/ createUseWriteCon abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "registerPolicyFrameworkManager", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licensingModuleAbi}__ @@ -653,7 +682,7 @@ export const useRegisterPolicyFrameworkManager = /*#__PURE__*/ createUseWriteCon export const useSimulateLicensingModule = /*#__PURE__*/ createUseSimulateContract({ abi: licensingModuleAbi, address: licensingModuleAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"addPolicyToIp"` @@ -662,7 +691,7 @@ export const useSimulateAddPolicyToIp = /*#__PURE__*/ createUseSimulateContract( abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "addPolicyToIp", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"linkIpToParents"` @@ -671,7 +700,7 @@ export const useSimulateLinkIpToParents = /*#__PURE__*/ createUseSimulateContrac abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "linkIpToParents", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"mintLicense"` @@ -680,7 +709,7 @@ export const useSimulateMintLicense = /*#__PURE__*/ createUseSimulateContract({ abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "mintLicense", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"registerPolicy"` @@ -689,7 +718,7 @@ export const useSimulateRegisterPolicy = /*#__PURE__*/ createUseSimulateContract abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "registerPolicy", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link licensingModuleAbi}__ and `functionName` set to `"registerPolicyFrameworkManager"` @@ -698,7 +727,7 @@ export const useSimulateRegisterPolicyFrameworkManager = /*#__PURE__*/ createUse abi: licensingModuleAbi, address: licensingModuleAddress, functionName: "registerPolicyFrameworkManager", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licensingModuleAbi}__ @@ -706,7 +735,7 @@ export const useSimulateRegisterPolicyFrameworkManager = /*#__PURE__*/ createUse export const useWatchLicensingModule = /*#__PURE__*/ createUseWatchContractEvent({ abi: licensingModuleAbi, address: licensingModuleAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licensingModuleAbi}__ and `eventName` set to `"IpIdLinkedToParents"` @@ -715,7 +744,7 @@ export const useWatchIpIdLinkedToParents = /*#__PURE__*/ createUseWatchContractE abi: licensingModuleAbi, address: licensingModuleAddress, eventName: "IpIdLinkedToParents", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licensingModuleAbi}__ and `eventName` set to `"PolicyAddedToIpId"` @@ -724,7 +753,7 @@ export const useWatchPolicyAddedToIpId = /*#__PURE__*/ createUseWatchContractEve abi: licensingModuleAbi, address: licensingModuleAddress, eventName: "PolicyAddedToIpId", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licensingModuleAbi}__ and `eventName` set to `"PolicyFrameworkRegistered"` @@ -733,7 +762,7 @@ export const useWatchPolicyFrameworkRegistered = /*#__PURE__*/ createUseWatchCon abi: licensingModuleAbi, address: licensingModuleAddress, eventName: "PolicyFrameworkRegistered", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link licensingModuleAbi}__ and `eventName` set to `"PolicyRegistered"` @@ -742,4 +771,4 @@ export const useWatchPolicyRegistered = /*#__PURE__*/ createUseWatchContractEven abi: licensingModuleAbi, address: licensingModuleAddress, eventName: "PolicyRegistered", -}) +}); diff --git a/packages/react/src/generated/registrationModule.ts b/packages/react/src/generated/registrationModule.ts index 102ddb54..9112bc5c 100644 --- a/packages/react/src/generated/registrationModule.ts +++ b/packages/react/src/generated/registrationModule.ts @@ -3,7 +3,7 @@ import { createUseWriteContract, createUseSimulateContract, createUseWatchContractEvent, -} from "wagmi/codegen" +} from "wagmi/codegen"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RegistrationModule @@ -20,7 +20,14 @@ export const registrationModuleAbi = [ ], }, { - stateMutability: "pure", + stateMutability: "view", + type: "function", + inputs: [], + name: "ipResolver", + outputs: [{ name: "", internalType: "contract IPResolver", type: "address" }], + }, + { + stateMutability: "view", type: "function", inputs: [], name: "name", @@ -36,7 +43,7 @@ export const registrationModuleAbi = [ { name: "ipName", internalType: "string", type: "string" }, { name: "contentHash", internalType: "bytes32", type: "bytes32" }, { name: "externalURL", internalType: "string", type: "string" }, - { name: "minRoyalty", internalType: "uint32", type: "uint32" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, ], name: "registerDerivativeIp", outputs: [], @@ -55,13 +62,6 @@ export const registrationModuleAbi = [ name: "registerRootIp", outputs: [{ name: "", internalType: "address", type: "address" }], }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "resolver", - outputs: [{ name: "", internalType: "contract IPResolver", type: "address" }], - }, { stateMutability: "view", type: "function", @@ -90,14 +90,14 @@ export const registrationModuleAbi = [ name: "RootIPRegistered", }, { type: "error", inputs: [], name: "RegistrationModule__InvalidOwner" }, -] as const +] as const; -export const registrationModuleAddress = "0x27c899af5AD9024570B9e5c58831726b48430212" as const +export const registrationModuleAddress = "0x248c8CbF469ec7CB22Dc9914E569920b93d717a3" as const; export const registrationModuleConfig = { address: registrationModuleAddress, abi: registrationModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // React @@ -109,25 +109,25 @@ export const registrationModuleConfig = { export const useReadRegistrationModule = /*#__PURE__*/ createUseReadContract({ abi: registrationModuleAbi, address: registrationModuleAddress, -}) +}); /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"name"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"ipResolver"` */ -export const useReadRegistrationModuleName = /*#__PURE__*/ createUseReadContract({ +export const useReadIpResolver = /*#__PURE__*/ createUseReadContract({ abi: registrationModuleAbi, address: registrationModuleAddress, - functionName: "name", -}) + functionName: "ipResolver", +}); /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"resolver"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"name"` */ -export const useReadResolver = /*#__PURE__*/ createUseReadContract({ +export const useReadRegistrationModuleName = /*#__PURE__*/ createUseReadContract({ abi: registrationModuleAbi, address: registrationModuleAddress, - functionName: "resolver", -}) + functionName: "name", +}); /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"supportsInterface"` @@ -136,7 +136,7 @@ export const useReadRegistrationModuleSupportsInterface = /*#__PURE__*/ createUs abi: registrationModuleAbi, address: registrationModuleAddress, functionName: "supportsInterface", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link registrationModuleAbi}__ @@ -144,7 +144,7 @@ export const useReadRegistrationModuleSupportsInterface = /*#__PURE__*/ createUs export const useWriteRegistrationModule = /*#__PURE__*/ createUseWriteContract({ abi: registrationModuleAbi, address: registrationModuleAddress, -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"registerDerivativeIp"` @@ -153,7 +153,7 @@ export const useRegisterDerivativeIp = /*#__PURE__*/ createUseWriteContract({ abi: registrationModuleAbi, address: registrationModuleAddress, functionName: "registerDerivativeIp", -}) +}); /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"registerRootIp"` @@ -162,7 +162,7 @@ export const useRegisterRootIp = /*#__PURE__*/ createUseWriteContract({ abi: registrationModuleAbi, address: registrationModuleAddress, functionName: "registerRootIp", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link registrationModuleAbi}__ @@ -170,7 +170,7 @@ export const useRegisterRootIp = /*#__PURE__*/ createUseWriteContract({ export const useSimulateRegistrationModule = /*#__PURE__*/ createUseSimulateContract({ abi: registrationModuleAbi, address: registrationModuleAddress, -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"registerDerivativeIp"` @@ -179,7 +179,7 @@ export const useSimulateRegisterDerivativeIp = /*#__PURE__*/ createUseSimulateCo abi: registrationModuleAbi, address: registrationModuleAddress, functionName: "registerDerivativeIp", -}) +}); /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link registrationModuleAbi}__ and `functionName` set to `"registerRootIp"` @@ -188,7 +188,7 @@ export const useSimulateRegisterRootIp = /*#__PURE__*/ createUseSimulateContract abi: registrationModuleAbi, address: registrationModuleAddress, functionName: "registerRootIp", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link registrationModuleAbi}__ @@ -196,7 +196,7 @@ export const useSimulateRegisterRootIp = /*#__PURE__*/ createUseSimulateContract export const useWatchRegistrationModule = /*#__PURE__*/ createUseWatchContractEvent({ abi: registrationModuleAbi, address: registrationModuleAddress, -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link registrationModuleAbi}__ and `eventName` set to `"DerivativeIPRegistered"` @@ -205,7 +205,7 @@ export const useWatchDerivativeIpRegistered = /*#__PURE__*/ createUseWatchContra abi: registrationModuleAbi, address: registrationModuleAddress, eventName: "DerivativeIPRegistered", -}) +}); /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link registrationModuleAbi}__ and `eventName` set to `"RootIPRegistered"` @@ -214,4 +214,4 @@ export const useWatchRootIpRegistered = /*#__PURE__*/ createUseWatchContractEven abi: registrationModuleAbi, address: registrationModuleAddress, eventName: "RootIPRegistered", -}) +}); diff --git a/packages/react/src/permissions.ts b/packages/react/src/permissions.ts index d3a72101..68c1254d 100644 --- a/packages/react/src/permissions.ts +++ b/packages/react/src/permissions.ts @@ -1,5 +1,5 @@ import { useCallback } from "react"; -import { useWriteIpAccountImplExecute } from "./generated/ipAccountImpl"; +import { useExecute } from "./generated/ipAccountImpl"; interface SetPermissionState { // Define the structure expected in your state @@ -21,7 +21,7 @@ export function useSetPermission(): { writeContractAsync: (args: SetPermissionArgs) => Promise; state: SetPermissionState; } { - const { writeContractAsync: writeContractAsyncRaw, ...state } = useWriteIpAccountImplExecute(); + const { writeContractAsync: writeContractAsyncRaw, ...state } = useExecute(); const writeContractAsync = useCallback( async ({ diff --git a/packages/react/src/utils.ts b/packages/react/src/utils.ts new file mode 100644 index 00000000..2297b696 --- /dev/null +++ b/packages/react/src/utils.ts @@ -0,0 +1,42 @@ +import { pascalCase } from "change-case"; + +export function defaultGetHookName({ + contractName, + itemName, + type, +}: { + contractName: string; + itemName: string | undefined; + type: string; +}): `use${string}` { + if (itemName?.toLowerCase() === "name" || itemName?.toLowerCase() === "supportsinterface") + return `use${pascalCase(type)}${pascalCase(contractName)}${pascalCase(itemName)}`; + + if (!itemName) return `use${pascalCase(type)}${pascalCase(contractName)}`; + + if (type.toLowerCase() === "write") { + return `use${pascalCase( + itemName ? itemName : `${pascalCase(type)}${pascalCase(contractName)}`, + )}`; + } + return `use${pascalCase(type)}${itemName}`; +} + +export function defaultWagmiGetHookName({ + contractName, + itemName, + type, +}: { + contractName: string; + itemName: string | undefined; + type: string; +}): `use${string}` { + if (!itemName) return `use${pascalCase(type)}${pascalCase(contractName)}`; + + if (type.toLowerCase() === "write") { + return `use${pascalCase( + itemName ? itemName : `${pascalCase(type)}${pascalCase(contractName)}`, + )}`; + } + return `use${pascalCase(type)}${pascalCase(contractName)}${itemName}`; +} diff --git a/packages/react/wagmi.config.ts b/packages/react/wagmi.config.ts index 8d51af14..6f56e9d0 100644 --- a/packages/react/wagmi.config.ts +++ b/packages/react/wagmi.config.ts @@ -4,49 +4,25 @@ import * as dotenv from "dotenv"; import { Abi } from "abitype"; import { pascalCase } from "change-case"; -import { abi as ipAccountRegistryAbi } from "../protocol-core/out/IIPAccountRegistry.sol/IIPAccountRegistry.json"; +import { defaultGetHookName, defaultWagmiGetHookName } from "./src/utils"; +import contracts from "./contracts.json"; import { abi as registrationModuleAbi } from "../protocol-core/out/RegistrationModule.sol/RegistrationModule.json"; import { abi as disputeModuleAbi } from "../protocol-core/out/DisputeModule.sol/DisputeModule.json"; import { abi as ipAssetRegistryAbi } from "../protocol-core/out/IPAssetRegistry.sol/IPAssetRegistry.json"; import { abi as licenseRegistryAbi } from "../protocol-core/out/LicenseRegistry.sol/LicenseRegistry.json"; -import { abi as moduleRegistryAbi } from "../protocol-core/out/ModuleRegistry.sol/ModuleRegistry.json"; import { abi as licensingModuleAbi } from "../protocol-core/out/LicensingModule.sol/LicensingModule.json"; import { abi as accessControllerAbi } from "../protocol-core/out/AccessController.sol/AccessController.json"; import { abi as ipAccountImplAbi } from "../protocol-core/out/IPAccountImpl.sol/IPAccountImpl.json"; -import { abi as UMLPolicyFrameworkManagerAbi } from "../protocol-core/out/UMLPolicyFrameworkManager.sol/UMLPolicyFrameworkManager.json"; +import { abi as PILPolicyFrameworkManagerAbi } from "../protocol-core/out/PILPolicyFrameworkManager.sol/PILPolicyFrameworkManager.json"; +dotenv.config(); +console.log("Contracts:", contracts); type GetHookNameProps = { contractName: string; type: string; itemName?: string | undefined; }; -dotenv.config(); - -const contracts = { - AccessController: "0xfeDc2A52AA77977E291d9077C7AbB60be76399FC", - ArbitrationPolicySP: "0x7EcF3E32C61511fbfeC5bcA9040bD1b253C0d1fe", - DisputeModule: "0xfE1Af9c0F78Df4570Ed54A1bc21487AB88923dc6", - Governance: "0xA8A4DA2991BC4D17D1F95eA5B2ef9661187F2002", - IPAccountImpl: "0x0421369bC566A9f64edDcF8e8339564e1aB1a0f3", - IPAccountRegistry: "0x6F86118e938a5727f1f0914da4320c7D856Fd997", - IPAssetRegistry: "0xef1d6eD8c51c63d3918ccb8377c62C039d27f9b2", - IPAssetRenderer: "0x1ba70C07368131a644b8Be1d47d78CDdCb52cAdb", - IPMetadataProvider: "0xf71BaDfb93e94fCb8E3046D9dB07d43D2CF0b084", - IPResolver: "0x9A937de5C2960b269057E4BF94B37280E41A5910", - LicenseRegistry: "0x6F7FB37F668ba0F85b6a9C7Ffa02fEA1b3036aEF", - LicensingModule: "0xFA83236c5Ed58E0943652Ad075940517420498Ad", - MetadataProviderV1: "0xf71BaDfb93e94fCb8E3046D9dB07d43D2CF0b084", - MockERC20: "0x020D1075E73b555F4EbC059b8641DB53FE721c45", - MockERC721: "0xbfBb6753596C0937a939421de87987E4df7CF3E4", - ModuleRegistry: "0x1DA8Ae6f360bBD44b3f148B1274Dc3bf1af829a5", - RegistrationModule: "0x27c899af5AD9024570B9e5c58831726b48430212", - RoyaltyModule: "0x3290C74e287394E9a41329Da3Df6d7174f05b81b", - RoyaltyPolicyLS: "0xD781f120C8c3d95d9bf6230898096Dc59fEcB21b", - TaggingModule: "0x5c2Ce76e3BB99a05F797177E15D6E2abA101aCD1", - UMLPolicyFrameworkManager: "0x30A18EA9abca9ff72fB9ce33F4f060A44a09f515", -}; - let counter = 0; function generateConfig( @@ -105,7 +81,7 @@ const licensingModuleConfig = generateConfig( licensingModuleAbi as Abi, contracts.LicenseRegistry as `0x${string}`, ({ contractName, itemName, type }: GetHookNameProps) => { - if (itemName === "LicenseRegistry") { + if (itemName === "LicenseRegistry" || itemName === "DisputeModule") { counter = counter + 1; return (`use${pascalCase(type)}${contractName}${itemName ? itemName : ""}` + counter.toString()) as `use${string}`; @@ -164,11 +140,11 @@ const disputeModuleConfig = generateConfig( }, ); -const UMLPolicyFrameworkManager = generateConfig( - "UMLPolicyFrameworkManager", - "UMLPolicyFrameworkManager", - UMLPolicyFrameworkManagerAbi as Abi, - contracts.UMLPolicyFrameworkManager as `0x${string}`, +const PILPolicyFrameworkManager = generateConfig( + "PILPolicyFrameworkManager", + "PILPolicyFrameworkManager", + PILPolicyFrameworkManagerAbi as Abi, + contracts.PILPolicyFrameworkManager as `0x${string}`, ({ contractName, itemName, type }: GetHookNameProps) => { if (itemName === "LicensingModule") { counter = counter + 1; @@ -189,92 +165,5 @@ export default defineConfig([ licensingModuleConfig, ipAccountImplConfig, disputeModuleConfig, - UMLPolicyFrameworkManager, + PILPolicyFrameworkManager, ]); - -// export default defineConfig({ -// out: "lib/generated.ts", -// plugins: [ -// foundry({ -// project: "../protocol-core", -// exclude: ["../protocol-core/lib/reference/src/interfaces/**"], -// }), -// actions({ -// getActionName({ contractName, type }) { -// return `${contractName}__${type}`; -// }, -// }), -// ], -// }); - -function defaultGetHookName({ - contractName, - itemName, - type, -}: { - contractName: string; - itemName: string | undefined; - type: string; -}): `use${string}` { - if (itemName?.toLowerCase() === "name" || itemName?.toLowerCase() === "supportsinterface") - return `use${pascalCase(type)}${pascalCase(contractName)}${pascalCase(itemName)}`; - - if (!itemName) return `use${pascalCase(type)}${pascalCase(contractName)}`; - - if (type.toLowerCase() === "write") { - return `use${pascalCase( - itemName ? itemName : `${pascalCase(type)}${pascalCase(contractName)}`, - )}`; - } - return `use${pascalCase(type)}${itemName}`; -} - -function defaultWagmiGetHookName({ - contractName, - itemName, - type, -}: { - contractName: string; - itemName: string | undefined; - type: string; -}): `use${string}` { - if (!itemName) return `use${pascalCase(type)}${pascalCase(contractName)}`; - - if (type.toLowerCase() === "write") { - return `use${pascalCase( - itemName ? itemName : `${pascalCase(type)}${pascalCase(contractName)}`, - )}`; - } - return `use${pascalCase(type)}${pascalCase(contractName)}${itemName}`; -} - -// let functionName; -// if ( -// itemName === "LicenseRegistry" || -// (itemName === "LicensingModule" && contractName.toLowerCase() === "umlpolicyframeworkmanager") -// ) { -// // Handle duplicate function names -// counter = counter + 1; -// functionName = -// `use${pascalCase(type)}${contractName}${itemName ? itemName : ""}` + counter.toString(); -// } else { -// if (type.toLowerCase() === "write") { -// functionName = `use${pascalCase( -// itemName ? itemName : `${pascalCase(type)}${pascalCase(contractName)}`, -// )}`; -// } else { -// if ( -// itemName && -// itemName.toLowerCase() !== "name" && -// itemName.toLowerCase() !== "supportsinterface" -// ) { -// functionName = `use${pascalCase(type)}${pascalCase(itemName as string)}`; -// } else { -// functionName = `use${pascalCase(type)}${pascalCase(contractName)}${itemName}`; -// } -// } -// // functionName = `use${pascalCase(type)}${pascalCase(contractName)}${pascalCase( -// // itemName ? itemName : "", -// // )}`; -// } -// return functionName; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4002441a..53eaeb5a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,13 +7,6 @@ settings: importers: .: - dependencies: - '@babel/core': - specifier: ^7.23.0 - version: 7.23.0 - '@babel/preset-env': - specifier: ^7.22.20 - version: 7.22.20(@babel/core@7.23.0) devDependencies: '@changesets/cli': specifier: ^2.26.2 @@ -109,31 +102,37 @@ importers: packages/eslint-config-story: dependencies: - '@typescript-eslint/eslint-plugin': - specifier: ^6.2.0 - version: 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@5.3.3) - '@typescript-eslint/parser': - specifier: ^6.2.0 - version: 6.5.0(eslint@8.48.0)(typescript@5.3.3) eslint-config-prettier: specifier: ^8.10.0 version: 8.10.0(eslint@8.48.0) eslint-config-turbo: specifier: ^1.10.0 version: 1.10.14(eslint@8.48.0) - eslint-plugin-import: - specifier: ^2.28.0 - version: 2.28.1(@typescript-eslint/parser@6.5.0)(eslint@8.48.0) - eslint-plugin-tsdoc: - specifier: ^0.2.17 - version: 0.2.17 devDependencies: '@story-protocol/prettier-config': specifier: workspace:* version: link:../prettier-config + '@typescript-eslint/eslint-plugin': + specifier: ^6.5.0 + version: 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@5.3.3) + '@typescript-eslint/parser': + specifier: ^6.5.0 + version: 6.5.0(eslint@8.48.0)(typescript@5.3.3) eslint: - specifier: ^8.40.0 + specifier: ^8.48.0 version: 8.48.0 + eslint-plugin-import: + specifier: ^2.28.1 + version: 2.28.1(@typescript-eslint/parser@6.5.0)(eslint@8.48.0) + eslint-plugin-react: + specifier: ^7.33.2 + version: 7.33.2(eslint@8.48.0) + eslint-plugin-react-hooks: + specifier: ^4.6.0 + version: 4.6.0(eslint@8.48.0) + eslint-plugin-tsdoc: + specifier: ^0.2.17 + version: 0.2.17 prettier: specifier: ^3.0.0 version: 3.0.3 @@ -3138,11 +3137,11 @@ packages: ajv: 6.12.6 jju: 1.4.0 resolve: 1.19.0 - dev: false + dev: true /@microsoft/tsdoc@0.14.2: resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - dev: false + dev: true /@motionone/animation@10.17.0: resolution: {integrity: sha512-ANfIN9+iq1kGgsZxs+Nz96uiNcPLGTXwfNo2Xz/fcJXniPYpaz/Uyrfa+7I5BPLxCP82sh7quVDudf1GABqHbg==} @@ -4866,11 +4865,11 @@ packages: /@types/json-schema@7.0.12: resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} - dev: false + dev: true /@types/json5@0.0.29: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} - dev: false + dev: true /@types/lru-cache@5.1.1: resolution: {integrity: sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==} @@ -4966,6 +4965,7 @@ packages: /@types/semver@7.5.0: resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} + dev: true /@types/sinon@10.0.18: resolution: {integrity: sha512-OpQC9ug8BcnNxue2WF5aTruMaDRFn6NyfaE4DmAKOlQMn54b7CnCvDFV3wj5fk/HbSSTYmOYs2bTb5ShANjyQg==} @@ -5028,7 +5028,7 @@ packages: typescript: 5.3.3 transitivePeerDependencies: - supports-color - dev: false + dev: true /@typescript-eslint/parser@6.5.0(eslint@8.48.0)(typescript@5.3.3): resolution: {integrity: sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ==} @@ -5049,7 +5049,7 @@ packages: typescript: 5.3.3 transitivePeerDependencies: - supports-color - dev: false + dev: true /@typescript-eslint/scope-manager@6.5.0: resolution: {integrity: sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==} @@ -5057,7 +5057,7 @@ packages: dependencies: '@typescript-eslint/types': 6.5.0 '@typescript-eslint/visitor-keys': 6.5.0 - dev: false + dev: true /@typescript-eslint/type-utils@6.5.0(eslint@8.48.0)(typescript@5.3.3): resolution: {integrity: sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A==} @@ -5077,12 +5077,12 @@ packages: typescript: 5.3.3 transitivePeerDependencies: - supports-color - dev: false + dev: true /@typescript-eslint/types@6.5.0: resolution: {integrity: sha512-eqLLOEF5/lU8jW3Bw+8auf4lZSbbljHR2saKnYqON12G/WsJrGeeDHWuQePoEf9ro22+JkbPfWQwKEC5WwLQ3w==} engines: {node: ^16.0.0 || >=18.0.0} - dev: false + dev: true /@typescript-eslint/typescript-estree@6.5.0(typescript@5.3.3): resolution: {integrity: sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ==} @@ -5103,7 +5103,7 @@ packages: typescript: 5.3.3 transitivePeerDependencies: - supports-color - dev: false + dev: true /@typescript-eslint/utils@6.5.0(eslint@8.48.0)(typescript@5.3.3): resolution: {integrity: sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==} @@ -5122,7 +5122,7 @@ packages: transitivePeerDependencies: - supports-color - typescript - dev: false + dev: true /@typescript-eslint/visitor-keys@6.5.0: resolution: {integrity: sha512-yCB/2wkbv3hPsh02ZS8dFQnij9VVQXJMN/gbQsaaY+zxALkZnxa/wagvLEFsAWMPv7d7lxQmNsIzGU1w/T/WyA==} @@ -5130,7 +5130,7 @@ packages: dependencies: '@typescript-eslint/types': 6.5.0 eslint-visitor-keys: 3.4.3 - dev: false + dev: true /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -5911,12 +5911,6 @@ packages: engines: {node: '>=8'} dev: true - /array-buffer-byte-length@1.0.0: - resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} - dependencies: - call-bind: 1.0.6 - is-array-buffer: 3.0.2 - /array-buffer-byte-length@1.0.1: resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} engines: {node: '>= 0.4'} @@ -5929,15 +5923,17 @@ packages: resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 get-intrinsic: 1.2.4 is-string: 1.0.7 + dev: true /array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} + dev: true /array-uniq@1.0.3: resolution: {integrity: sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==} @@ -5948,9 +5944,9 @@ packages: resolution: {integrity: sha512-BMtLxpV+8BD+6ZPFIWmnUBpQoy+A+ujcg4rhp2iwCRJYA7PEh2MS4NL3lz8EiDlLrJPp2hg9qWihr5pd//jcGw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 es-errors: 1.3.0 es-shim-unscopables: 1.0.2 dev: true @@ -5964,7 +5960,7 @@ packages: es-abstract: 1.22.3 es-shim-unscopables: 1.0.2 get-intrinsic: 1.2.4 - dev: false + dev: true /array.prototype.flat@1.3.2: resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==} @@ -5974,38 +5970,28 @@ packages: define-properties: 1.2.1 es-abstract: 1.22.3 es-shim-unscopables: 1.0.2 + dev: true /array.prototype.flatmap@1.3.2: resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 es-shim-unscopables: 1.0.2 + dev: true /array.prototype.tosorted@1.1.3: resolution: {integrity: sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 es-errors: 1.3.0 es-shim-unscopables: 1.0.2 dev: true - /arraybuffer.prototype.slice@1.0.2: - resolution: {integrity: sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==} - engines: {node: '>= 0.4'} - dependencies: - array-buffer-byte-length: 1.0.0 - call-bind: 1.0.6 - define-properties: 1.2.1 - es-abstract: 1.22.3 - get-intrinsic: 1.2.4 - is-array-buffer: 3.0.2 - is-shared-array-buffer: 1.0.2 - /arraybuffer.prototype.slice@1.0.3: resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} engines: {node: '>= 0.4'} @@ -6493,6 +6479,7 @@ packages: function-bind: 1.1.2 get-intrinsic: 1.2.4 set-function-length: 1.2.1 + dev: true /call-bind@1.0.7: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} @@ -6503,7 +6490,6 @@ packages: function-bind: 1.1.2 get-intrinsic: 1.2.4 set-function-length: 1.2.1 - dev: true /caller-callsite@2.0.0: resolution: {integrity: sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==} @@ -7211,7 +7197,7 @@ packages: optional: true dependencies: ms: 2.1.2 - dev: false + dev: true /debug@4.3.4(supports-color@8.1.1): resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} @@ -7299,7 +7285,7 @@ packages: es-errors: 1.3.0 get-intrinsic: 1.2.4 gopd: 1.0.1 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 /define-lazy-prop@2.0.0: resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} @@ -7310,8 +7296,9 @@ packages: engines: {node: '>= 0.4'} dependencies: define-data-property: 1.1.2 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 object-keys: 1.1.1 + dev: true /defu@6.1.4: resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} @@ -7397,12 +7384,14 @@ packages: engines: {node: '>=8'} dependencies: path-type: 4.0.0 + dev: true /doctrine@2.1.0: resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} engines: {node: '>=0.10.0'} dependencies: esutils: 2.0.3 + dev: true /doctrine@3.0.0: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} @@ -7556,45 +7545,46 @@ packages: resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} engines: {node: '>= 0.4'} dependencies: - array-buffer-byte-length: 1.0.0 - arraybuffer.prototype.slice: 1.0.2 + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 available-typed-arrays: 1.0.6 - call-bind: 1.0.6 - es-set-tostringtag: 2.0.1 + call-bind: 1.0.7 + es-set-tostringtag: 2.0.2 es-to-primitive: 1.2.1 function.prototype.name: 1.1.6 get-intrinsic: 1.2.4 - get-symbol-description: 1.0.0 + get-symbol-description: 1.0.2 globalthis: 1.0.3 gopd: 1.0.1 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 has-proto: 1.0.1 has-symbols: 1.0.3 hasown: 2.0.1 - internal-slot: 1.0.5 - is-array-buffer: 3.0.2 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 is-callable: 1.2.7 is-negative-zero: 2.0.2 is-regex: 1.1.4 is-shared-array-buffer: 1.0.2 is-string: 1.0.7 - is-typed-array: 1.1.12 + is-typed-array: 1.1.13 is-weakref: 1.0.2 object-inspect: 1.13.1 object-keys: 1.1.1 - object.assign: 4.1.4 - regexp.prototype.flags: 1.5.1 - safe-array-concat: 1.0.1 - safe-regex-test: 1.0.0 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.0 + safe-regex-test: 1.0.3 string.prototype.trim: 1.2.8 string.prototype.trimend: 1.0.7 string.prototype.trimstart: 1.0.7 - typed-array-buffer: 1.0.0 + typed-array-buffer: 1.0.1 typed-array-byte-length: 1.0.0 typed-array-byte-offset: 1.0.0 typed-array-length: 1.0.4 unbox-primitive: 1.0.2 which-typed-array: 1.1.14 + dev: true /es-abstract@1.22.4: resolution: {integrity: sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==} @@ -7648,7 +7638,6 @@ packages: engines: {node: '>= 0.4'} dependencies: get-intrinsic: 1.2.4 - dev: true /es-errors@1.3.0: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} @@ -7675,14 +7664,6 @@ packages: safe-array-concat: 1.1.0 dev: true - /es-set-tostringtag@2.0.1: - resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} - engines: {node: '>= 0.4'} - dependencies: - get-intrinsic: 1.2.4 - has: 1.0.3 - has-tostringtag: 1.0.2 - /es-set-tostringtag@2.0.2: resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==} engines: {node: '>= 0.4'} @@ -7696,6 +7677,7 @@ packages: resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} dependencies: hasown: 2.0.1 + dev: true /es-to-primitive@1.2.1: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} @@ -7704,6 +7686,7 @@ packages: is-callable: 1.2.7 is-date-object: 1.0.5 is-symbol: 1.0.4 + dev: true /esbuild@0.19.12: resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} @@ -7796,7 +7779,7 @@ packages: resolve: 1.22.6 transitivePeerDependencies: - supports-color - dev: false + dev: true /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.5.0)(eslint-import-resolver-node@0.3.9)(eslint@8.48.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} @@ -7825,7 +7808,7 @@ packages: eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color - dev: false + dev: true /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.5.0)(eslint@8.48.0): resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} @@ -7860,7 +7843,7 @@ packages: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - dev: false + dev: true /eslint-plugin-prettier@5.1.3(eslint@8.56.0)(prettier@3.0.3): resolution: {integrity: sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==} @@ -7882,6 +7865,40 @@ packages: synckit: 0.8.8 dev: true + /eslint-plugin-react-hooks@4.6.0(eslint@8.48.0): + resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} + engines: {node: '>=10'} + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + dependencies: + eslint: 8.48.0 + dev: true + + /eslint-plugin-react@7.33.2(eslint@8.48.0): + resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==} + engines: {node: '>=4'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + array-includes: 3.1.7 + array.prototype.flatmap: 1.3.2 + array.prototype.tosorted: 1.1.3 + doctrine: 2.1.0 + es-iterator-helpers: 1.0.17 + eslint: 8.48.0 + estraverse: 5.3.0 + jsx-ast-utils: 3.3.5 + minimatch: 3.1.2 + object.entries: 1.1.7 + object.fromentries: 2.0.7 + object.hasown: 1.1.3 + object.values: 1.1.7 + prop-types: 15.8.1 + resolve: 2.0.0-next.5 + semver: 6.3.1 + string.prototype.matchall: 4.0.10 + dev: true + /eslint-plugin-react@7.33.2(eslint@8.56.0): resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==} engines: {node: '>=4'} @@ -7912,7 +7929,7 @@ packages: dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - dev: false + dev: true /eslint-plugin-turbo@1.10.14(eslint@8.48.0): resolution: {integrity: sha512-sBdBDnYr9AjT1g4lR3PBkZDonTrMnR4TvuGv5W0OiF7z9az1rI68yj2UHJZvjkwwcGu5mazWA1AfB0oaagpmfg==} @@ -8450,6 +8467,7 @@ packages: glob-parent: 5.1.2 merge2: 1.4.1 micromatch: 4.0.5 + dev: true /fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} @@ -8741,10 +8759,11 @@ packages: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 functions-have-names: 1.2.3 + dev: true /functional-red-black-tree@1.0.1: resolution: {integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==} @@ -8752,6 +8771,7 @@ packages: /functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + dev: true /futoin-hkdf@1.5.3: resolution: {integrity: sha512-SewY5KdMpaoCeh7jachEWFsh1nNlaDjNHZXWqL5IGwtpEYHTgkr2+AMCgNwKWkcc0wpSYrZfR7he4WdmHFtDxQ==} @@ -8798,13 +8818,6 @@ packages: engines: {node: '>=16'} dev: false - /get-symbol-description@1.0.0: - resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.6 - get-intrinsic: 1.2.4 - /get-symbol-description@1.0.2: resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} @@ -8939,6 +8952,7 @@ packages: engines: {node: '>= 0.4'} dependencies: define-properties: 1.2.1 + dev: true /globby@10.0.2: resolution: {integrity: sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==} @@ -8964,6 +8978,7 @@ packages: ignore: 5.2.4 merge2: 1.4.1 slash: 3.0.0 + dev: true /globby@13.2.2: resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} @@ -9187,6 +9202,7 @@ packages: /has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} + dev: true /has-flag@1.0.0: resolution: {integrity: sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==} @@ -9201,16 +9217,10 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - /has-property-descriptors@1.0.1: - resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} - dependencies: - get-intrinsic: 1.2.4 - /has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} dependencies: es-define-property: 1.0.0 - dev: true /has-proto@1.0.1: resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} @@ -9495,14 +9505,6 @@ packages: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} dev: true - /internal-slot@1.0.5: - resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} - engines: {node: '>= 0.4'} - dependencies: - get-intrinsic: 1.2.4 - has: 1.0.3 - side-channel: 1.0.4 - /internal-slot@1.0.7: resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} engines: {node: '>= 0.4'} @@ -9558,17 +9560,10 @@ packages: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 has-tostringtag: 1.0.2 dev: false - /is-array-buffer@3.0.2: - resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} - dependencies: - call-bind: 1.0.6 - get-intrinsic: 1.2.4 - is-typed-array: 1.1.12 - /is-array-buffer@3.0.4: resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} engines: {node: '>= 0.4'} @@ -9591,6 +9586,7 @@ packages: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} dependencies: has-bigints: 1.0.2 + dev: true /is-binary-path@2.1.0: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} @@ -9602,8 +9598,9 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 has-tostringtag: 1.0.2 + dev: true /is-buffer@2.0.5: resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} @@ -9638,6 +9635,7 @@ packages: engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.2 + dev: true /is-directory@0.3.1: resolution: {integrity: sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==} @@ -9736,12 +9734,14 @@ packages: /is-negative-zero@2.0.2: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} engines: {node: '>= 0.4'} + dev: true /is-number-object@1.0.7: resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.2 + dev: true /is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} @@ -9777,8 +9777,9 @@ packages: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 has-tostringtag: 1.0.2 + dev: true /is-set@2.0.2: resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==} @@ -9787,7 +9788,8 @@ packages: /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 + dev: true /is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} @@ -9803,6 +9805,7 @@ packages: engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.2 + dev: true /is-subdir@1.2.0: resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==} @@ -9816,19 +9819,13 @@ packages: engines: {node: '>= 0.4'} dependencies: has-symbols: 1.0.3 - - /is-typed-array@1.1.12: - resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} - engines: {node: '>= 0.4'} - dependencies: - which-typed-array: 1.1.14 + dev: true /is-typed-array@1.1.13: resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} engines: {node: '>= 0.4'} dependencies: which-typed-array: 1.1.14 - dev: true /is-unicode-supported@0.1.0: resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} @@ -9846,7 +9843,8 @@ packages: /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 + dev: true /is-weakset@2.0.2: resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} @@ -9894,6 +9892,7 @@ packages: /isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + dev: true /isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -10041,7 +10040,7 @@ packages: /jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - dev: false + dev: true /joi@17.12.1: resolution: {integrity: sha512-vtxmq+Lsc5SlfqotnfVjlViWfOL9nt/avKNbKYizwf6gsCfq9NYY/ceYRMFD8XDdrjJ9abJyScWmhmIiy+XRtQ==} @@ -10175,7 +10174,7 @@ packages: hasBin: true dependencies: minimist: 1.2.8 - dev: false + dev: true /json5@2.2.3: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} @@ -10215,7 +10214,7 @@ packages: dependencies: array-includes: 3.1.7 array.prototype.flat: 1.3.2 - object.assign: 4.1.4 + object.assign: 4.1.5 object.values: 1.1.7 dev: true @@ -10681,6 +10680,7 @@ packages: /merge2@1.4.1: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} + dev: true /metro-babel-transformer@0.80.5: resolution: {integrity: sha512-sxH6hcWCorhTbk4kaShCWsadzu99WBL4Nvq4m/sDTbp32//iGuxtAnUK+ZV+6IEygr2u9Z0/4XoZ8Sbcl71MpA==} @@ -11315,19 +11315,12 @@ packages: /object-inspect@1.13.1: resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} + dev: true /object-keys@1.1.1: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} - - /object.assign@4.1.4: - resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.6 - define-properties: 1.2.1 - has-symbols: 1.0.3 - object-keys: 1.1.1 + dev: true /object.assign@4.1.5: resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} @@ -11343,9 +11336,9 @@ packages: resolution: {integrity: sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 dev: true /object.fromentries@2.0.7: @@ -11355,6 +11348,7 @@ packages: call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 + dev: true /object.groupby@1.0.1: resolution: {integrity: sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==} @@ -11363,13 +11357,13 @@ packages: define-properties: 1.2.1 es-abstract: 1.22.3 get-intrinsic: 1.2.4 - dev: false + dev: true /object.hasown@1.1.3: resolution: {integrity: sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==} dependencies: define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 dev: true /object.values@1.1.7: @@ -11379,6 +11373,7 @@ packages: call-bind: 1.0.6 define-properties: 1.2.1 es-abstract: 1.22.3 + dev: true /obliterator@2.0.4: resolution: {integrity: sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==} @@ -12373,14 +12368,6 @@ packages: dependencies: '@babel/runtime': 7.23.9 - /regexp.prototype.flags@1.5.1: - resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.6 - define-properties: 1.2.1 - set-function-name: 2.0.1 - /regexp.prototype.flags@1.5.2: resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} engines: {node: '>= 0.4'} @@ -12480,7 +12467,7 @@ packages: dependencies: is-core-module: 2.13.0 path-parse: 1.0.7 - dev: false + dev: true /resolve@1.22.6: resolution: {integrity: sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==} @@ -12601,15 +12588,6 @@ packages: resolution: {integrity: sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==} dev: true - /safe-array-concat@1.0.1: - resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} - engines: {node: '>=0.4'} - dependencies: - call-bind: 1.0.6 - get-intrinsic: 1.2.4 - has-symbols: 1.0.3 - isarray: 2.0.5 - /safe-array-concat@1.1.0: resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==} engines: {node: '>=0.4'} @@ -12626,13 +12604,6 @@ packages: /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - /safe-regex-test@1.0.0: - resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} - dependencies: - call-bind: 1.0.6 - get-intrinsic: 1.2.4 - is-regex: 1.1.4 - /safe-regex-test@1.0.3: resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} engines: {node: '>= 0.4'} @@ -12786,7 +12757,7 @@ packages: function-bind: 1.1.2 get-intrinsic: 1.2.4 gopd: 1.0.1 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 /set-function-name@2.0.1: resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} @@ -12794,7 +12765,8 @@ packages: dependencies: define-data-property: 1.1.2 functions-have-names: 1.2.3 - has-property-descriptors: 1.0.1 + has-property-descriptors: 1.0.2 + dev: true /setimmediate@1.0.5: resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} @@ -12863,9 +12835,10 @@ packages: /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 get-intrinsic: 1.2.4 object-inspect: 1.13.1 + dev: true /signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -13254,13 +13227,13 @@ packages: /string.prototype.matchall@4.0.10: resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 get-intrinsic: 1.2.4 has-symbols: 1.0.3 - internal-slot: 1.0.5 - regexp.prototype.flags: 1.5.1 + internal-slot: 1.0.7 + regexp.prototype.flags: 1.5.2 set-function-name: 2.0.1 side-channel: 1.0.4 dev: true @@ -13269,23 +13242,26 @@ packages: resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 + dev: true /string.prototype.trimend@1.0.7: resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 + dev: true /string.prototype.trimstart@1.0.7: resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.3 + es-abstract: 1.22.4 + dev: true /string_decoder@1.0.3: resolution: {integrity: sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==} @@ -13333,6 +13309,7 @@ packages: /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} + dev: true /strip-final-newline@2.0.0: resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} @@ -13598,7 +13575,7 @@ packages: typescript: '>=4.2.0' dependencies: typescript: 5.3.3 - dev: false + dev: true /ts-command-line-args@2.5.1: resolution: {integrity: sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==} @@ -13700,7 +13677,7 @@ packages: json5: 1.0.2 minimist: 1.2.8 strip-bom: 3.0.0 - dev: false + dev: true /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} @@ -13890,14 +13867,6 @@ packages: - supports-color dev: true - /typed-array-buffer@1.0.0: - resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.6 - get-intrinsic: 1.2.4 - is-typed-array: 1.1.12 - /typed-array-buffer@1.0.1: resolution: {integrity: sha512-RSqu1UEuSlrBhHTWC8O9FnPjOduNs4M7rJ4pRKoEjtx1zUNOPN2sSXHLDX+Y2WPbHIxbvg4JFo2DNAEfPIKWoQ==} engines: {node: '>= 0.4'} @@ -13911,27 +13880,30 @@ packages: resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 for-each: 0.3.3 has-proto: 1.0.1 - is-typed-array: 1.1.12 + is-typed-array: 1.1.13 + dev: true /typed-array-byte-offset@1.0.0: resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.6 - call-bind: 1.0.6 + call-bind: 1.0.7 for-each: 0.3.3 has-proto: 1.0.1 - is-typed-array: 1.1.12 + is-typed-array: 1.1.13 + dev: true /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 for-each: 0.3.3 - is-typed-array: 1.1.12 + is-typed-array: 1.1.13 + dev: true /typedarray@0.0.6: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} @@ -13978,10 +13950,11 @@ packages: /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: - call-bind: 1.0.6 + call-bind: 1.0.7 has-bigints: 1.0.2 has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 + dev: true /uncrypto@0.1.3: resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} @@ -14175,7 +14148,7 @@ packages: inherits: 2.0.4 is-arguments: 1.1.1 is-generator-function: 1.0.10 - is-typed-array: 1.1.12 + is-typed-array: 1.1.13 which-typed-array: 1.1.14 dev: false @@ -14418,6 +14391,7 @@ packages: is-number-object: 1.0.7 is-string: 1.0.7 is-symbol: 1.0.4 + dev: true /which-builtin-type@1.1.3: resolution: {integrity: sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==} @@ -14462,7 +14436,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.6 - call-bind: 1.0.6 + call-bind: 1.0.7 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.2