From 6f7d60307b58e65ca0c5e499ee9e0b9f9390c41d Mon Sep 17 00:00:00 2001 From: Yao Date: Mon, 13 Apr 2026 21:50:34 +0800 Subject: [PATCH] chore: daily sync 2026-04-13 --- packages/core-sdk/src/abi/generated.ts | 21741 ++++++++-------- packages/core-sdk/src/client.ts | 4 +- .../core-sdk/src/utils/currencyValidation.ts | 8 +- .../test/integration/txHashResolver.test.ts | 23 +- packages/core-sdk/test/unit/client.test.ts | 11 +- .../unit/utils/currencyValidation.test.ts | 16 +- .../core-sdk/test/unit/utils/oov3.test.ts | 4 +- 7 files changed, 10445 insertions(+), 11362 deletions(-) diff --git a/packages/core-sdk/src/abi/generated.ts b/packages/core-sdk/src/abi/generated.ts index 62b9e218..2708be9c 100644 --- a/packages/core-sdk/src/abi/generated.ts +++ b/packages/core-sdk/src/abi/generated.ts @@ -13,7 +13,7 @@ import { WatchContractEventReturnType, TransactionReceipt, encodeFunctionData, -} from 'viem' +} from "viem"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // AccessController @@ -25,491 +25,479 @@ import { */ export const accessControllerAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'ipAccountRegistry', internalType: 'address', type: 'address' }, - { name: 'moduleRegistry', internalType: 'address', type: 'address' }, + { name: "ipAccountRegistry", internalType: "address", type: "address" }, + { name: "moduleRegistry", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', + type: "error", inputs: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, ], - name: 'AccessController__BothCallerAndRecipientAreNotRegisteredModule', + name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule", }, { - type: 'error', + type: "error", inputs: [], - name: 'AccessController__CallerIsNotIPAccountOrOwner', + name: "AccessController__CallerIsNotIPAccountOrOwner", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessController__IPAccountIsNotValid', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessController__IPAccountIsNotValid", }, { - type: 'error', + type: "error", inputs: [], - name: 'AccessController__IPAccountIsZeroAddress', + name: "AccessController__IPAccountIsZeroAddress", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipAccount', internalType: 'address', type: 'address' }, - { name: 'owner', internalType: 'address', type: 'address' }, + { name: "ipAccount", internalType: "address", type: "address" }, + { name: "owner", internalType: "address", type: "address" }, ], - name: 'AccessController__OwnerIsIPAccount', + name: "AccessController__OwnerIsIPAccount", }, { - type: 'error', + type: "error", 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: 'AccessController__PermissionDenied', + name: "AccessController__PermissionDenied", }, - { type: 'error', inputs: [], name: 'AccessController__PermissionIsNotValid' }, - { type: 'error', inputs: [], name: 'AccessController__SignerIsZeroAddress' }, + { type: "error", inputs: [], name: "AccessController__PermissionIsNotValid" }, + { type: "error", inputs: [], name: "AccessController__SignerIsZeroAddress" }, { - type: 'error', + type: "error", inputs: [], - name: 'AccessController__ToAndFuncAreZeroAddressShouldCallSetAllPermissions', + name: "AccessController__ToAndFuncAreZeroAddressShouldCallSetAllPermissions", }, - { type: 'error', inputs: [], name: 'AccessController__ZeroAccessManager' }, + { type: "error", inputs: [], name: "AccessController__ZeroAccessManager" }, { - type: 'error', + type: "error", inputs: [], - name: 'AccessController__ZeroIPAccountRegistry', + name: "AccessController__ZeroIPAccountRegistry", }, - { type: 'error', inputs: [], name: 'AccessController__ZeroModuleRegistry' }, + { type: "error", inputs: [], name: "AccessController__ZeroModuleRegistry" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipAccountOwner', - internalType: 'address', - type: 'address', + name: "ipAccountOwner", + internalType: "address", + type: "address", indexed: false, }, { - name: 'ipAccount', - internalType: 'address', - type: 'address', + name: "ipAccount", + internalType: "address", + type: "address", indexed: true, }, { - name: 'signer', - internalType: 'address', - type: 'address', + name: "signer", + internalType: "address", + type: "address", indexed: true, }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { name: 'func', internalType: 'bytes4', type: 'bytes4', indexed: false }, + { name: "to", internalType: "address", type: "address", indexed: true }, + { name: "func", internalType: "bytes4", type: "bytes4", indexed: false }, { - name: 'permission', - internalType: 'uint8', - type: 'uint8', + name: "permission", + internalType: "uint8", + type: "uint8", indexed: false, }, ], - name: 'PermissionSet', + name: "PermissionSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipAccountOwner', - internalType: 'address', - type: 'address', + name: "ipAccountOwner", + internalType: "address", + type: "address", indexed: false, }, { - name: 'ipAccount', - internalType: 'address', - type: 'address', + name: "ipAccount", + internalType: "address", + type: "address", indexed: true, }, { - name: 'signer', - internalType: 'address', - type: 'address', + name: "signer", + internalType: "address", + type: "address", indexed: true, }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { name: 'func', internalType: 'bytes4', type: 'bytes4', indexed: false }, + { name: "to", internalType: "address", type: "address", indexed: true }, + { name: "func", internalType: "bytes4", type: "bytes4", indexed: false }, { - name: 'permission', - internalType: 'uint8', - type: 'uint8', + name: "permission", + internalType: "uint8", + type: "uint8", indexed: false, }, ], - name: 'TransientPermissionSet', + name: "TransientPermissionSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MODULE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IModuleRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "MODULE_REGISTRY", + outputs: [{ name: "", internalType: "contract IModuleRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + 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', + name: "checkPermission", outputs: [], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + 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: 'getPermanentPermission', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'view', + name: "getPermanentPermission", + outputs: [{ name: "", internalType: "uint8", type: "uint8" }], + stateMutability: "view", }, { - type: 'function', + 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: 'getPermission', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'view', + name: "getPermission", + outputs: [{ name: "", internalType: "uint8", type: "uint8" }], + stateMutability: "view", }, { - type: 'function', + 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: 'getTransientPermission', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'view', + name: "getTransientPermission", + outputs: [{ name: "", internalType: "uint8", type: "uint8" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipAccount', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'permission', internalType: 'uint8', type: 'uint8' }, + { name: "ipAccount", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "permission", internalType: "uint8", type: "uint8" }, ], - name: 'setAllPermissions', + name: "setAllPermissions", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipAccount', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'permission', internalType: 'uint8', type: 'uint8' }, + { name: "ipAccount", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "permission", internalType: "uint8", type: "uint8" }, ], - name: 'setAllTransientPermissions', + name: "setAllTransientPermissions", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'permissions', - internalType: 'struct AccessPermission.Permission[]', - type: 'tuple[]', + name: "permissions", + internalType: "struct AccessPermission.Permission[]", + type: "tuple[]", components: [ - { 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: 'setBatchPermissions', + name: "setBatchPermissions", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'permissions', - internalType: 'struct AccessPermission.Permission[]', - type: 'tuple[]', + name: "permissions", + internalType: "struct AccessPermission.Permission[]", + type: "tuple[]", components: [ - { 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: 'setBatchTransientPermissions', + name: "setBatchTransientPermissions", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + 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', + name: "setPermission", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + 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: 'setTransientPermission', + name: "setTransientPermission", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a) */ export const accessControllerAddress = { - 1315: '0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a', - 1514: '0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a', -} as const + 1315: "0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a", + 1514: "0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xcCF37d0a503Ee1D4C11208672e622ed3DFB2275a) @@ -518,7 +506,7 @@ export const accessControllerAddress = { export const accessControllerConfig = { address: accessControllerAddress, abi: accessControllerAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ArbitrationPolicyUMA @@ -530,592 +518,580 @@ export const accessControllerConfig = { */ export const arbitrationPolicyUmaAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'disputeModule', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, + { name: "disputeModule", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__BondAboveMax' }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__CannotCancel' }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__BondAboveMax" }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__CannotCancel" }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__CannotDisputeAssertionIfTagIsInherited', + name: "ArbitrationPolicyUMA__CannotDisputeAssertionIfTagIsInherited", }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__CurrencyNotWhitelisted', + name: "ArbitrationPolicyUMA__CurrencyNotWhitelisted", }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__DisputeNotFound' }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__DisputeNotFound" }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__IpOwnerTimePercentAboveMax', + name: "ArbitrationPolicyUMA__IpOwnerTimePercentAboveMax", }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__LivenessAboveMax' }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__LivenessBelowMin' }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__LivenessAboveMax" }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__LivenessBelowMin" }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__MaxBondBelowMinimumBond', + name: "ArbitrationPolicyUMA__MaxBondBelowMinimumBond", }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__MinLivenessAboveMax', + name: "ArbitrationPolicyUMA__MinLivenessAboveMax", }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__NoCounterEvidence', + name: "ArbitrationPolicyUMA__NoCounterEvidence", }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__NotDisputeModule' }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__NotOOV3' }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__NotDisputeModule" }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__NotOOV3" }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__OnlyDisputePolicyUMA', + name: "ArbitrationPolicyUMA__OnlyDisputePolicyUMA", }, { - type: 'error', + type: "error", inputs: [ - { name: 'elapsedTime', internalType: 'uint64', type: 'uint64' }, - { name: 'liveness', internalType: 'uint64', type: 'uint64' }, - { name: 'caller', internalType: 'address', type: 'address' }, + { name: "elapsedTime", internalType: "uint64", type: "uint64" }, + { name: "liveness", internalType: "uint64", type: "uint64" }, + { name: "caller", internalType: "address", type: "address" }, ], - name: 'ArbitrationPolicyUMA__OnlyTargetIpIdCanDisputeWithinTimeWindow', + name: "ArbitrationPolicyUMA__OnlyTargetIpIdCanDisputeWithinTimeWindow", }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__ZeroAccessManager', + name: "ArbitrationPolicyUMA__ZeroAccessManager", }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__ZeroDisputeModule', + name: "ArbitrationPolicyUMA__ZeroDisputeModule", }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__ZeroMaxLiveness' }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__ZeroMinLiveness' }, - { type: 'error', inputs: [], name: 'ArbitrationPolicyUMA__ZeroOOV3' }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__ZeroMaxLiveness" }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__ZeroMinLiveness" }, + { type: "error", inputs: [], name: "ArbitrationPolicyUMA__ZeroOOV3" }, { - type: 'error', + type: "error", inputs: [], - name: 'ArbitrationPolicyUMA__ZeroRoyaltyModule', + name: "ArbitrationPolicyUMA__ZeroRoyaltyModule", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'assertionId', - internalType: 'bytes32', - type: 'bytes32', + name: "assertionId", + internalType: "bytes32", + type: "bytes32", indexed: false, }, { - name: 'counterEvidenceHash', - internalType: 'bytes32', - type: 'bytes32', + name: "counterEvidenceHash", + internalType: "bytes32", + type: "bytes32", indexed: false, }, ], - name: 'AssertionDisputed', + name: "AssertionDisputed", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'assertionId', - internalType: 'bytes32', - type: 'bytes32', + name: "assertionId", + internalType: "bytes32", + type: "bytes32", indexed: false, }, { - name: 'caller', - internalType: 'address', - type: 'address', + name: "caller", + internalType: "address", + type: "address", indexed: false, }, { - name: 'liveness', - internalType: 'uint64', - type: 'uint64', + name: "liveness", + internalType: "uint64", + type: "uint64", indexed: false, }, { - name: 'currency', - internalType: 'address', - type: 'address', + name: "currency", + internalType: "address", + type: "address", indexed: false, }, { - name: 'bond', - internalType: 'uint256', - type: 'uint256', + name: "bond", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'DisputeRaisedUMA', + name: "DisputeRaisedUMA", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'minLiveness', - internalType: 'uint64', - type: 'uint64', + name: "minLiveness", + internalType: "uint64", + type: "uint64", indexed: false, }, { - name: 'maxLiveness', - internalType: 'uint64', - type: 'uint64', + name: "maxLiveness", + internalType: "uint64", + type: "uint64", indexed: false, }, { - name: 'ipOwnerTimePercent', - internalType: 'uint32', - type: 'uint32', + name: "ipOwnerTimePercent", + internalType: "uint32", + type: "uint32", indexed: false, }, ], - name: 'LivenessSet', + name: "LivenessSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'maxBond', - internalType: 'uint256', - type: 'uint256', + name: "maxBond", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'MaxBondSet', + name: "MaxBondSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'oov3', - internalType: 'address', - type: 'address', + name: "oov3", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'OOV3Set', + name: "OOV3Set", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'assertionId', internalType: 'bytes32', type: 'bytes32' }], - name: 'assertionDisputedCallback', + type: "function", + inputs: [{ name: "assertionId", internalType: "bytes32", type: "bytes32" }], + name: "assertionDisputedCallback", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'assertionId', internalType: 'bytes32', type: 'bytes32' }], - name: 'assertionIdToDisputeId', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "assertionId", internalType: "bytes32", type: "bytes32" }], + name: "assertionIdToDisputeId", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'assertionId', internalType: 'bytes32', type: 'bytes32' }, - { name: 'assertedTruthfully', internalType: 'bool', type: 'bool' }, + { name: "assertionId", internalType: "bytes32", type: "bytes32" }, + { name: "assertedTruthfully", internalType: "bool", type: "bool" }, ], - name: 'assertionResolvedCallback', + name: "assertionResolvedCallback", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'assertionId', internalType: 'bytes32', type: 'bytes32' }, - { name: 'counterEvidenceHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "assertionId", internalType: "bytes32", type: "bytes32" }, + { name: "counterEvidenceHash", internalType: "bytes32", type: "bytes32" }, ], - name: 'disputeAssertion', + name: "disputeAssertion", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'disputeId', internalType: 'uint256', type: 'uint256' }], - name: 'disputeIdToAssertionId', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "disputeId", internalType: "uint256", type: "uint256" }], + name: "disputeIdToAssertionId", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'ipOwnerTimePercent', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "ipOwnerTimePercent", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'disputeId', internalType: 'uint256', type: 'uint256' }], - name: 'ipOwnerTimePercents', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "disputeId", internalType: "uint256", type: "uint256" }], + name: "ipOwnerTimePercents", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'maxBonds', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "maxBonds", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'maxLiveness', - outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }], - stateMutability: 'view', + name: "maxLiveness", + outputs: [{ name: "", internalType: "uint64", type: "uint64" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'minLiveness', - outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }], - stateMutability: 'view', + name: "minLiveness", + outputs: [{ name: "", internalType: "uint64", type: "uint64" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'disputeId', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "disputeId", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'onDisputeCancel', + name: "onDisputeCancel", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + 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: 'onDisputeJudgement', + name: "onDisputeJudgement", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'targetIpId', internalType: 'address', type: 'address' }, - { name: 'disputeEvidenceHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'targetTag', internalType: 'bytes32', type: 'bytes32' }, - { name: 'disputeId', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "targetIpId", internalType: "address", type: "address" }, + { name: "disputeEvidenceHash", internalType: "bytes32", type: "bytes32" }, + { name: "targetTag", internalType: "bytes32", type: "bytes32" }, + { name: "disputeId", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'onRaiseDispute', + name: "onRaiseDispute", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'disputeId', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "disputeId", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'onResolveDispute', + name: "onResolveDispute", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'oov3', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "oov3", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'minLiveness', internalType: 'uint64', type: 'uint64' }, - { name: 'maxLiveness', internalType: 'uint64', type: 'uint64' }, - { name: 'ipOwnerTimePercent', internalType: 'uint32', type: 'uint32' }, + { name: "minLiveness", internalType: "uint64", type: "uint64" }, + { name: "maxLiveness", internalType: "uint64", type: "uint64" }, + { name: "ipOwnerTimePercent", internalType: "uint32", type: "uint32" }, ], - name: 'setLiveness', + name: "setLiveness", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'maxBond', internalType: 'uint256', type: 'uint256' }, + { name: "token", internalType: "address", type: "address" }, + { name: "maxBond", internalType: "uint256", type: "uint256" }, ], - name: 'setMaxBond', + name: "setMaxBond", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'oov3', internalType: 'address', type: 'address' }], - name: 'setOOV3', + type: "function", + inputs: [{ name: "oov3", internalType: "address", type: "address" }], + name: "setOOV3", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936) */ export const arbitrationPolicyUmaAddress = { - 1315: '0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936', - 1514: '0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936', -} as const + 1315: "0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936", + 1514: "0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xfFD98c3877B8789124f02C7E8239A4b0Ef11E936) @@ -1124,7 +1100,7 @@ export const arbitrationPolicyUmaAddress = { export const arbitrationPolicyUmaConfig = { address: arbitrationPolicyUmaAddress, abi: arbitrationPolicyUmaAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // CoreMetadataModule @@ -1136,297 +1112,285 @@ export const arbitrationPolicyUmaConfig = { */ export const coreMetadataModuleAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAccountRegistry', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAccountRegistry", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessControlled__NotIpAccount', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", }, - { type: 'error', inputs: [], name: 'AccessControlled__ZeroAddress' }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', + type: "error", inputs: [], - name: 'CoreMetadataModule__MetadataAlreadyFrozen', + name: "CoreMetadataModule__MetadataAlreadyFrozen", }, - { type: 'error', inputs: [], name: 'CoreMetadataModule__ZeroAccessManager' }, + { type: "error", inputs: [], name: "CoreMetadataModule__ZeroAccessManager" }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, - inputs: [ - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, - ], - name: 'MetadataFrozen', + inputs: [{ name: "ipId", internalType: "address", type: "address", indexed: true }], + name: "MetadataFrozen", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, { - name: 'metadataURI', - internalType: 'string', - type: 'string', + name: "metadataURI", + internalType: "string", + type: "string", indexed: false, }, { - name: 'metadataHash', - internalType: 'bytes32', - type: 'bytes32', + name: "metadataHash", + internalType: "bytes32", + type: "bytes32", indexed: false, }, ], - name: 'MetadataURISet', + name: "MetadataURISet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, { - name: 'nftTokenURI', - internalType: 'string', - type: 'string', + name: "nftTokenURI", + internalType: "string", + type: "string", indexed: false, }, { - name: 'nftMetadataHash', - internalType: 'bytes32', - type: 'bytes32', + name: "nftMetadataHash", + internalType: "bytes32", + type: "bytes32", indexed: false, }, ], - name: 'NFTTokenURISet', + name: "NFTTokenURISet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'freezeMetadata', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "freezeMetadata", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'isMetadataFrozen', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "isMetadataFrozen", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'pure', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "pure", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'metadataURI', internalType: 'string', type: 'string' }, - { name: 'metadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "metadataURI", internalType: "string", type: "string" }, + { name: "metadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], - name: 'setAll', + name: "setAll", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'metadataURI', internalType: 'string', type: 'string' }, - { name: 'metadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "metadataURI", internalType: "string", type: "string" }, + { name: "metadataHash", internalType: "bytes32", type: "bytes32" }, ], - name: 'setMetadataURI', + name: "setMetadataURI", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], - name: 'updateNftTokenURI', + name: "updateNftTokenURI", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16) */ export const coreMetadataModuleAddress = { - 1315: '0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16', - 1514: '0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16', -} as const + 1315: "0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16", + 1514: "0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x6E81a25C99C6e8430aeC7353325EB138aFE5DC16) @@ -1435,7 +1399,7 @@ export const coreMetadataModuleAddress = { export const coreMetadataModuleConfig = { address: coreMetadataModuleAddress, abi: coreMetadataModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // DerivativeWorkflows @@ -1447,456 +1411,438 @@ export const coreMetadataModuleConfig = { */ export const derivativeWorkflowsAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'coreMetadataModule', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseToken', internalType: 'address', type: 'address' }, - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'pilTemplate', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "coreMetadataModule", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licenseToken", internalType: "address", type: "address" }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "pilTemplate", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', + type: "error", inputs: [ - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'actualTokenOwner', internalType: 'address', type: 'address' }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "caller", internalType: "address", type: "address" }, + { name: "actualTokenOwner", internalType: "address", type: "address" }, ], - name: 'DerivativeWorkflows__CallerAndNotTokenOwner', + name: "DerivativeWorkflows__CallerAndNotTokenOwner", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, ], - name: 'DerivativeWorkflows__CallerNotSigner', + name: "DerivativeWorkflows__CallerNotSigner", }, { - type: 'error', + type: "error", inputs: [], - name: 'DerivativeWorkflows__EmptyLicenseTokens', + name: "DerivativeWorkflows__EmptyLicenseTokens", }, - { type: 'error', inputs: [], name: 'DerivativeWorkflows__ZeroAddressParam' }, + { type: "error", inputs: [], name: "DerivativeWorkflows__ZeroAddressParam" }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, { - type: 'error', + type: "error", inputs: [], - name: 'LicensingHelper__ParentIpIdsAndLicenseTermsIdsMismatch', + name: "LicensingHelper__ParentIpIdsAndLicenseTermsIdsMismatch", }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [], - name: 'PermissionHelper__ModulesAndSelectorsMismatch', + name: "PermissionHelper__ModulesAndSelectorsMismatch", }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, - { type: 'error', inputs: [], name: 'Workflow__CallerNotAuthorizedToMint' }, + { type: "error", inputs: [], name: "Workflow__CallerNotAuthorizedToMint" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'CORE_METADATA_MODULE', + name: "CORE_METADATA_MODULE", outputs: [ { - name: '', - internalType: 'contract ICoreMetadataModule', - type: 'address', + name: "", + internalType: "contract ICoreMetadataModule", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_TOKEN', - outputs: [ - { name: '', internalType: 'contract ILicenseToken', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_TOKEN", + outputs: [{ name: "", internalType: "contract ILicenseToken", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'PIL_TEMPLATE', + name: "PIL_TEMPLATE", outputs: [ { - name: '', - internalType: 'contract IPILicenseTemplate', - type: 'address', + name: "", + internalType: "contract IPILicenseTemplate", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, { - name: 'derivData', - internalType: 'struct WorkflowStructs.MakeDerivative', - type: 'tuple', + name: "derivData", + internalType: "struct WorkflowStructs.MakeDerivative", + type: "tuple", components: [ - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, { - name: 'licenseTermsIds', - internalType: 'uint256[]', - type: 'uint256[]', + name: "licenseTermsIds", + internalType: "uint256[]", + type: "uint256[]", }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, - { name: 'recipient', internalType: 'address', type: 'address' }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "recipient", internalType: "address", type: "address" }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndMakeDerivative', + name: "mintAndRegisterIpAndMakeDerivative", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'licenseTokenIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "licenseTokenIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, - { name: 'recipient', internalType: 'address', type: 'address' }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "recipient", internalType: "address", type: "address" }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndMakeDerivativeWithLicenseTokens', + name: "mintAndRegisterIpAndMakeDerivativeWithLicenseTokens", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onERC721Received', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'nonpayable', + name: "onERC721Received", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, { - name: 'derivData', - internalType: 'struct WorkflowStructs.MakeDerivative', - type: 'tuple', + name: "derivData", + internalType: "struct WorkflowStructs.MakeDerivative", + type: "tuple", components: [ - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, { - name: 'licenseTermsIds', - internalType: 'uint256[]', - type: 'uint256[]', + name: "licenseTermsIds", + internalType: "uint256[]", + type: "uint256[]", }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'sigMetadataAndRegister', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndRegister", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndMakeDerivative', - outputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerIpAndMakeDerivative", + outputs: [{ name: "ipId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'licenseTokenIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "licenseTokenIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'sigMetadataAndRegister', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndRegister", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndMakeDerivativeWithLicenseTokens', - outputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerIpAndMakeDerivativeWithLicenseTokens", + outputs: [{ name: "ipId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9e2d496f72C547C2C535B167e06ED8729B374a4f) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x9e2d496f72C547C2C535B167e06ED8729B374a4f) */ export const derivativeWorkflowsAddress = { - 1315: '0x9e2d496f72C547C2C535B167e06ED8729B374a4f', - 1514: '0x9e2d496f72C547C2C535B167e06ED8729B374a4f', -} as const + 1315: "0x9e2d496f72C547C2C535B167e06ED8729B374a4f", + 1514: "0x9e2d496f72C547C2C535B167e06ED8729B374a4f", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9e2d496f72C547C2C535B167e06ED8729B374a4f) @@ -1905,7 +1851,7 @@ export const derivativeWorkflowsAddress = { export const derivativeWorkflowsConfig = { address: derivativeWorkflowsAddress, abi: derivativeWorkflowsAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // DisputeModule @@ -1917,789 +1863,765 @@ export const derivativeWorkflowsConfig = { */ export const disputeModuleAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'ipGraphAcl', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "ipGraphAcl", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessControlled__NotIpAccount', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", }, - { type: 'error', inputs: [], name: 'AccessControlled__ZeroAddress' }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__CannotBlacklistBaseArbitrationPolicy', + name: "DisputeModule__CannotBlacklistBaseArbitrationPolicy", }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__DisputeAlreadyPropagated', + name: "DisputeModule__DisputeAlreadyPropagated", }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__DisputeWithoutInfringementTag', + name: "DisputeModule__DisputeWithoutInfringementTag", }, - { type: 'error', inputs: [], name: 'DisputeModule__EvidenceHashAlreadyUsed' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotAbleToResolve' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotAllowedToWhitelist' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotArbitrationRelayer' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotDerivativeOrGroupIp' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotDisputeInitiator' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotInDisputeState' }, - { type: 'error', inputs: [], name: 'DisputeModule__NotRegisteredIpId' }, + { type: "error", inputs: [], name: "DisputeModule__EvidenceHashAlreadyUsed" }, + { type: "error", inputs: [], name: "DisputeModule__NotAbleToResolve" }, + { type: "error", inputs: [], name: "DisputeModule__NotAllowedToWhitelist" }, + { type: "error", inputs: [], name: "DisputeModule__NotArbitrationRelayer" }, + { type: "error", inputs: [], name: "DisputeModule__NotDerivativeOrGroupIp" }, + { type: "error", inputs: [], name: "DisputeModule__NotDisputeInitiator" }, + { type: "error", inputs: [], name: "DisputeModule__NotInDisputeState" }, + { type: "error", inputs: [], name: "DisputeModule__NotRegisteredIpId" }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__NotWhitelistedArbitrationPolicy', + name: "DisputeModule__NotWhitelistedArbitrationPolicy", }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__NotWhitelistedDisputeTag', + name: "DisputeModule__NotWhitelistedDisputeTag", }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__RelatedDisputeNotResolved', + name: "DisputeModule__RelatedDisputeNotResolved", }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroAccessController' }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroArbitrationPolicy' }, + { type: "error", inputs: [], name: "DisputeModule__ZeroAccessController" }, + { type: "error", inputs: [], name: "DisputeModule__ZeroAccessManager" }, + { type: "error", inputs: [], name: "DisputeModule__ZeroArbitrationPolicy" }, { - type: 'error', + type: "error", inputs: [], - name: 'DisputeModule__ZeroArbitrationPolicyCooldown', + name: "DisputeModule__ZeroArbitrationPolicyCooldown", }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroDisputeEvidenceHash' }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroDisputeTag' }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroIPAssetRegistry' }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroIPGraphACL' }, - { type: 'error', inputs: [], name: 'DisputeModule__ZeroLicenseRegistry' }, + { type: "error", inputs: [], name: "DisputeModule__ZeroDisputeEvidenceHash" }, + { type: "error", inputs: [], name: "DisputeModule__ZeroDisputeTag" }, + { type: "error", inputs: [], name: "DisputeModule__ZeroIPAssetRegistry" }, + { type: "error", inputs: [], name: "DisputeModule__ZeroIPGraphACL" }, + { type: "error", inputs: [], name: "DisputeModule__ZeroLicenseRegistry" }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'cooldown', - internalType: 'uint256', - type: 'uint256', + name: "cooldown", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'ArbitrationPolicyCooldownUpdated', + name: "ArbitrationPolicyCooldownUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'arbitrationPolicy', - internalType: 'address', - type: 'address', + name: "arbitrationPolicy", + internalType: "address", + type: "address", indexed: false, }, { - name: 'nextArbitrationUpdateTimestamp', - internalType: 'uint256', - type: 'uint256', + name: "nextArbitrationUpdateTimestamp", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'ArbitrationPolicySet', + name: "ArbitrationPolicySet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'arbitrationPolicy', - internalType: 'address', - type: 'address', + name: "arbitrationPolicy", + internalType: "address", + type: "address", indexed: false, }, - { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false }, + { name: "allowed", internalType: "bool", type: "bool", indexed: false }, ], - name: 'ArbitrationPolicyWhitelistUpdated', + name: "ArbitrationPolicyWhitelistUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'arbitrationPolicy', - internalType: 'address', - type: 'address', + name: "arbitrationPolicy", + internalType: "address", + type: "address", indexed: false, }, { - name: 'arbitrationRelayer', - internalType: 'address', - type: 'address', + name: "arbitrationRelayer", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'ArbitrationRelayerUpdated', + name: "ArbitrationRelayerUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'arbitrationPolicy', - internalType: 'address', - type: 'address', + name: "arbitrationPolicy", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'DefaultArbitrationPolicyUpdated', + name: "DefaultArbitrationPolicyUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, - { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false }, + { name: "data", internalType: "bytes", type: "bytes", indexed: false }, ], - name: 'DisputeCancelled', + name: "DisputeCancelled", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, - { name: 'decision', internalType: 'bool', type: 'bool', indexed: false }, - { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false }, + { name: "decision", internalType: "bool", type: "bool", indexed: false }, + { name: "data", internalType: "bytes", type: "bytes", indexed: false }, ], - name: 'DisputeJudgementSet', + name: "DisputeJudgementSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'targetIpId', - internalType: 'address', - type: 'address', + name: "targetIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'disputeInitiator', - internalType: 'address', - type: 'address', + name: "disputeInitiator", + internalType: "address", + type: "address", indexed: false, }, { - name: 'disputeTimestamp', - internalType: 'uint256', - type: 'uint256', + name: "disputeTimestamp", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'arbitrationPolicy', - internalType: 'address', - type: 'address', + name: "arbitrationPolicy", + internalType: "address", + type: "address", indexed: false, }, { - name: 'disputeEvidenceHash', - internalType: 'bytes32', - type: 'bytes32', + name: "disputeEvidenceHash", + internalType: "bytes32", + type: "bytes32", indexed: false, }, { - name: 'targetTag', - internalType: 'bytes32', - type: 'bytes32', + name: "targetTag", + internalType: "bytes32", + type: "bytes32", indexed: false, }, - { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false }, + { name: "data", internalType: "bytes", type: "bytes", indexed: false }, ], - name: 'DisputeRaised', + name: "DisputeRaised", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, - { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false }, + { name: "data", internalType: "bytes", type: "bytes", indexed: false }, ], - name: 'DisputeResolved', + name: "DisputeResolved", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'disputeId', - internalType: 'uint256', - type: 'uint256', + name: "disputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'infringingIpId', - internalType: 'address', - type: 'address', + name: "infringingIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'ipIdToTag', - internalType: 'address', - type: 'address', + name: "ipIdToTag", + internalType: "address", + type: "address", indexed: false, }, { - name: 'infringerDisputeId', - internalType: 'uint256', - type: 'uint256', + name: "infringerDisputeId", + internalType: "uint256", + type: "uint256", indexed: false, }, - { name: 'tag', internalType: 'bytes32', type: 'bytes32', indexed: false }, + { name: "tag", internalType: "bytes32", type: "bytes32", indexed: false }, { - name: 'disputeTimestamp', - internalType: 'uint256', - type: 'uint256', + name: "disputeTimestamp", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'IpTaggedOnRelatedIpInfringement', + name: "IpTaggedOnRelatedIpInfringement", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'tag', internalType: 'bytes32', type: 'bytes32', indexed: false }, - { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false }, + { name: "tag", internalType: "bytes32", type: "bytes32", indexed: false }, + { name: "allowed", internalType: "bool", type: "bool", indexed: false }, ], - name: 'TagWhitelistUpdated', + name: "TagWhitelistUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUP_IP_ASSET_REGISTRY', + name: "GROUP_IP_ASSET_REGISTRY", outputs: [ { - name: '', - internalType: 'contract IGroupIPAssetRegistry', - type: 'address', + name: "", + internalType: "contract IGroupIPAssetRegistry", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IN_DISPUTE', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "IN_DISPUTE", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH_ACL', - outputs: [ - { name: '', internalType: 'contract IPGraphACL', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_GRAPH_ACL", + outputs: [{ name: "", internalType: "contract IPGraphACL", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'arbitrationPolicies', - outputs: [{ name: 'policy', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "arbitrationPolicies", + outputs: [{ name: "policy", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'arbitrationPolicyCooldown', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "arbitrationPolicyCooldown", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'arbitrationPolicy', internalType: 'address', type: 'address' }, - ], - name: 'arbitrationRelayer', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "arbitrationPolicy", internalType: "address", type: "address" }], + name: "arbitrationRelayer", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'baseArbitrationPolicy', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "baseArbitrationPolicy", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + 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', + name: "cancelDispute", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'disputeCounter', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "disputeCounter", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'disputeId', internalType: 'uint256', type: 'uint256' }], - name: 'disputes', + type: "function", + inputs: [{ name: "disputeId", internalType: "uint256", type: "uint256" }], + name: "disputes", outputs: [ - { name: 'targetIpId', internalType: 'address', type: 'address' }, - { name: 'disputeInitiator', internalType: 'address', type: 'address' }, - { name: 'disputeTimestamp', internalType: 'uint256', type: 'uint256' }, - { name: 'arbitrationPolicy', internalType: 'address', type: 'address' }, - { name: 'disputeEvidenceHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'targetTag', internalType: 'bytes32', type: 'bytes32' }, - { name: 'currentTag', internalType: 'bytes32', type: 'bytes32' }, - { name: 'infringerDisputeId', internalType: 'uint256', type: 'uint256' }, + { name: "targetIpId", internalType: "address", type: "address" }, + { name: "disputeInitiator", internalType: "address", type: "address" }, + { name: "disputeTimestamp", internalType: "uint256", type: "uint256" }, + { name: "arbitrationPolicy", internalType: "address", type: "address" }, + { name: "disputeEvidenceHash", internalType: "bytes32", type: "bytes32" }, + { name: "targetTag", internalType: "bytes32", type: "bytes32" }, + { name: "currentTag", internalType: "bytes32", type: "bytes32" }, + { name: "infringerDisputeId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'isIpTagged', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "isIpTagged", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'arbitrationPolicy', internalType: 'address', type: 'address' }, - ], - name: 'isWhitelistedArbitrationPolicy', - outputs: [{ name: 'allowed', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "arbitrationPolicy", internalType: "address", type: "address" }], + name: "isWhitelistedArbitrationPolicy", + outputs: [{ name: "allowed", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tag', internalType: 'bytes32', type: 'bytes32' }], - name: 'isWhitelistedDisputeTag', - outputs: [{ name: 'allowed', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tag", internalType: "bytes32", type: "bytes32" }], + name: "isWhitelistedDisputeTag", + outputs: [{ name: "allowed", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'nextArbitrationPolicies', - outputs: [{ name: 'policy', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "nextArbitrationPolicies", + outputs: [{ name: "policy", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'nextArbitrationUpdateTimestamps', - outputs: [{ name: 'timestamp', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "nextArbitrationUpdateTimestamps", + outputs: [{ name: "timestamp", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'targetIpId', internalType: 'address', type: 'address' }, - { name: 'disputeEvidenceHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'targetTag', internalType: 'bytes32', type: 'bytes32' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "targetIpId", internalType: "address", type: "address" }, + { name: "disputeEvidenceHash", internalType: "bytes32", type: "bytes32" }, + { name: "targetTag", internalType: "bytes32", type: "bytes32" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'raiseDispute', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "raiseDispute", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + 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: 'resolveDispute', + name: "resolveDispute", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'nextArbitrationPolicy', - internalType: 'address', - type: 'address', + name: "nextArbitrationPolicy", + internalType: "address", + type: "address", }, ], - name: 'setArbitrationPolicy', + name: "setArbitrationPolicy", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'cooldown', internalType: 'uint256', type: 'uint256' }], - name: 'setArbitrationPolicyCooldown', + type: "function", + inputs: [{ name: "cooldown", internalType: "uint256", type: "uint256" }], + name: "setArbitrationPolicyCooldown", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'arbitrationPolicy', internalType: 'address', type: 'address' }, - { name: 'arbPolicyRelayer', internalType: 'address', type: 'address' }, + { name: "arbitrationPolicy", internalType: "address", type: "address" }, + { name: "arbPolicyRelayer", internalType: "address", type: "address" }, ], - name: 'setArbitrationRelayer', + name: "setArbitrationRelayer", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'arbitrationPolicy', internalType: 'address', type: 'address' }, - ], - name: 'setBaseArbitrationPolicy', + type: "function", + inputs: [{ name: "arbitrationPolicy", internalType: "address", type: "address" }], + name: "setBaseArbitrationPolicy", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + 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', + name: "setDisputeJudgement", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipIdToTag', internalType: 'address', type: 'address' }, - { name: 'infringerDisputeId', internalType: 'uint256', type: 'uint256' }, + { name: "ipIdToTag", internalType: "address", type: "address" }, + { name: "infringerDisputeId", internalType: "uint256", type: "uint256" }, ], - name: 'tagIfRelatedIpInfringed', + name: "tagIfRelatedIpInfringed", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'updateActiveArbitrationPolicy', - outputs: [ - { name: 'arbitrationPolicy', internalType: 'address', type: 'address' }, - ], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "updateActiveArbitrationPolicy", + outputs: [{ name: "arbitrationPolicy", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + 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', + name: "whitelistArbitrationPolicy", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + 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', + name: "whitelistDisputeTag", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9b7A9c70AFF961C799110954fc06F3093aeb94C5) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x9b7A9c70AFF961C799110954fc06F3093aeb94C5) */ export const disputeModuleAddress = { - 1315: '0x9b7A9c70AFF961C799110954fc06F3093aeb94C5', - 1514: '0x9b7A9c70AFF961C799110954fc06F3093aeb94C5', -} as const + 1315: "0x9b7A9c70AFF961C799110954fc06F3093aeb94C5", + 1514: "0x9b7A9c70AFF961C799110954fc06F3093aeb94C5", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9b7A9c70AFF961C799110954fc06F3093aeb94C5) @@ -2708,7 +2630,7 @@ export const disputeModuleAddress = { export const disputeModuleConfig = { address: disputeModuleAddress, abi: disputeModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ERC20 @@ -2719,197 +2641,197 @@ export const disputeModuleConfig = { * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E) */ export const erc20Abi = [ - { type: 'constructor', inputs: [], stateMutability: 'nonpayable' }, + { type: "constructor", inputs: [], stateMutability: "nonpayable" }, { - type: 'error', + type: "error", inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'allowance', internalType: 'uint256', type: 'uint256' }, - { name: 'needed', internalType: 'uint256', type: 'uint256' }, + { name: "spender", internalType: "address", type: "address" }, + { name: "allowance", internalType: "uint256", type: "uint256" }, + { name: "needed", internalType: "uint256", type: "uint256" }, ], - name: 'ERC20InsufficientAllowance', + name: "ERC20InsufficientAllowance", }, { - type: 'error', + type: "error", inputs: [ - { name: 'sender', internalType: 'address', type: 'address' }, - { name: 'balance', internalType: 'uint256', type: 'uint256' }, - { name: 'needed', internalType: 'uint256', type: 'uint256' }, + { name: "sender", internalType: "address", type: "address" }, + { name: "balance", internalType: "uint256", type: "uint256" }, + { name: "needed", internalType: "uint256", type: "uint256" }, ], - name: 'ERC20InsufficientBalance', + name: "ERC20InsufficientBalance", }, { - type: 'error', - inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidApprover', + type: "error", + inputs: [{ name: "approver", internalType: "address", type: "address" }], + name: "ERC20InvalidApprover", }, { - type: 'error', - inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidReceiver', + type: "error", + inputs: [{ name: "receiver", internalType: "address", type: "address" }], + name: "ERC20InvalidReceiver", }, { - type: 'error', - inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSender', + type: "error", + inputs: [{ name: "sender", internalType: "address", type: "address" }], + name: "ERC20InvalidSender", }, { - type: 'error', - inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSpender', + type: "error", + inputs: [{ name: "spender", internalType: "address", type: "address" }], + name: "ERC20InvalidSpender", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'spender', - internalType: 'address', - type: 'address', + name: "spender", + internalType: "address", + type: "address", indexed: true, }, { - name: 'value', - internalType: 'uint256', - type: 'uint256', + name: "value", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Approval', + name: "Approval", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "from", internalType: "address", type: "address", indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'value', - internalType: 'uint256', - type: 'uint256', + name: "value", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Transfer', + name: "Transfer", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'spender', internalType: 'address', type: 'address' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "spender", internalType: "address", type: "address" }, ], - name: 'allowance', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "allowance", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "spender", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'approve', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "approve", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "account", internalType: "address", type: "address" }], + name: "balanceOf", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'burn', + name: "burn", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'decimals', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'view', + name: "decimals", + outputs: [{ name: "", internalType: "uint8", type: "uint8" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "to", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'mint', + name: "mint", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'symbol', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "symbol", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalSupply", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'transfer', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "transfer", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'transferFrom', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "transferFrom", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E) */ export const erc20Address = { - 1315: '0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E', - 1514: '0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E', -} as const + 1315: "0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E", + 1514: "0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xF2104833d386a2734a4eB3B8ad6FC6812F29E38E) */ -export const erc20Config = { address: erc20Address, abi: erc20Abi } as const +export const erc20Config = { address: erc20Address, abi: erc20Abi } as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // EvenSplitGroupPool @@ -2921,425 +2843,411 @@ export const erc20Config = { address: erc20Address, abi: erc20Abi } as const */ export const evenSplitGroupPoolAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'groupingModule', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, + { name: "groupingModule", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'EvenSplitGroupPool__CallerIsNotGroupingModule', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "EvenSplitGroupPool__CallerIsNotGroupingModule", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'EvenSplitGroupPool__DepositWithZeroTokenAddress', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "EvenSplitGroupPool__DepositWithZeroTokenAddress", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'groupSize', internalType: 'uint32', type: 'uint32' }, - { name: 'maxGroupSize', internalType: 'uint256', type: 'uint256' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "groupSize", internalType: "uint32", type: "uint32" }, + { name: "maxGroupSize", internalType: "uint256", type: "uint256" }, ], - name: 'EvenSplitGroupPool__MaxGroupSizeReached', + name: "EvenSplitGroupPool__MaxGroupSizeReached", }, - { type: 'error', inputs: [], name: 'EvenSplitGroupPool__ZeroGroupingModule' }, + { type: "error", inputs: [], name: "EvenSplitGroupPool__ZeroGroupingModule" }, { - type: 'error', + type: "error", inputs: [], - name: 'EvenSplitGroupPool__ZeroIPAssetRegistry', + name: "EvenSplitGroupPool__ZeroIPAssetRegistry", }, - { type: 'error', inputs: [], name: 'EvenSplitGroupPool__ZeroRoyaltyModule' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, + { type: "error", inputs: [], name: "EvenSplitGroupPool__ZeroRoyaltyModule" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'groupCurrentToken', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "groupCurrentToken", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'GroupingModule__TokenNotMatchGroupRevenueToken', + name: "GroupingModule__TokenNotMatchGroupRevenueToken", }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "GroupingModule__ZeroAccessManager" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [ - { name: 'bits', internalType: 'uint8', type: 'uint8' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "bits", internalType: "uint8", type: "uint8" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'SafeCastOverflowedUintDowncast', + name: "SafeCastOverflowedUintDowncast", }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUPING_MODULE', - outputs: [ - { name: '', internalType: 'contract IGroupingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "GROUPING_MODULE", + outputs: [{ name: "", internalType: "contract IGroupingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUP_IP_ASSET_REGISTRY', + name: "GROUP_IP_ASSET_REGISTRY", outputs: [ { - name: '', - internalType: 'contract IGroupIPAssetRegistry', - type: 'address', + name: "", + internalType: "contract IGroupIPAssetRegistry", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MAX_GROUP_SIZE', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "MAX_GROUP_SIZE", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'minimumGroupRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "minimumGroupRewardShare", + internalType: "uint256", + type: "uint256", }, ], - name: 'addIp', + name: "addIp", outputs: [ { - name: 'totalGroupRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "totalGroupRewardShare", + internalType: "uint256", + type: "uint256", }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'depositReward', + name: "depositReward", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, - ], - name: 'distributeRewards', - outputs: [ - { name: 'rewards', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - stateMutability: 'nonpayable', + name: "distributeRewards", + outputs: [{ name: "rewards", internalType: "uint256[]", type: "uint256[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - name: 'getAvailableReward', - outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], - stateMutability: 'view', + name: "getAvailableReward", + outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, ], - name: 'getIpAddedTime', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getIpAddedTime", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, ], - name: 'getIpRewardDebt', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getIpRewardDebt", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, ], - name: 'getMinimumRewardShare', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getMinimumRewardShare", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'getTotalAllocatedRewardShare', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "getTotalAllocatedRewardShare", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'getTotalIps', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "getTotalIps", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, ], - name: 'isIPAdded', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isIPAdded", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, ], - name: 'removeIp', + name: "removeIp", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89) */ export const evenSplitGroupPoolAddress = { - 1315: '0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89', - 1514: '0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89', -} as const + 1315: "0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89", + 1514: "0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xf96f2c30b41Cb6e0290de43C8528ae83d4f33F89) @@ -3348,7 +3256,7 @@ export const evenSplitGroupPoolAddress = { export const evenSplitGroupPoolConfig = { address: evenSplitGroupPoolAddress, abi: evenSplitGroupPoolAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // GroupingModule @@ -3360,639 +3268,617 @@ export const evenSplitGroupPoolConfig = { */ export const groupingModuleAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseToken', internalType: 'address', type: 'address' }, - { name: 'groupNFT', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'disputeModule', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licenseToken", internalType: "address", type: "address" }, + { name: "groupNFT", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "disputeModule", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessControlled__NotIpAccount', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", }, - { type: 'error', inputs: [], name: 'AccessControlled__ZeroAddress' }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__CannotAddDisputedIpToGroup', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "GroupingModule__CannotAddDisputedIpToGroup", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'childGroupId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "childGroupId", internalType: "address", type: "address" }, ], - name: 'GroupingModule__CannotAddGroupToGroup', + name: "GroupingModule__CannotAddGroupToGroup", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__DisputedGroupCannotAddIp', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__DisputedGroupCannotAddIp", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__DisputedGroupCannotClaimReward', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__DisputedGroupCannotClaimReward", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__DisputedGroupCannotCollectRoyalties', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__DisputedGroupCannotCollectRoyalties", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__GroupFrozenDueToAlreadyMintLicenseTokens', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__GroupFrozenDueToAlreadyMintLicenseTokens", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__GroupFrozenDueToHasDerivativeIps', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__GroupFrozenDueToHasDerivativeIps", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__GroupIPHasNoLicenseTerms', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__GroupIPHasNoLicenseTerms", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupingModule__GroupIPLicenseHasNotSpecifyRevenueToken', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupingModule__GroupIPLicenseHasNotSpecifyRevenueToken", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'groupRewardPool', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "groupRewardPool", internalType: "address", type: "address" }, ], - name: 'GroupingModule__GroupRewardPoolNotWhitelisted', + name: "GroupingModule__GroupRewardPoolNotWhitelisted", }, { - type: 'error', - inputs: [{ name: 'groupNFT', internalType: 'address', type: 'address' }], - name: 'GroupingModule__InvalidGroupNFT', + type: "error", + inputs: [{ name: "groupNFT", internalType: "address", type: "address" }], + name: "GroupingModule__InvalidGroupNFT", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'maxAllowedRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "maxAllowedRewardShare", + internalType: "uint256", + type: "uint256", }, { - name: 'expectGroupRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "expectGroupRewardShare", + internalType: "uint256", + type: "uint256", }, ], - name: 'GroupingModule__IpExpectedShareExceedsMaxAllowedShare', + name: "GroupingModule__IpExpectedShareExceedsMaxAllowedShare", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, { - name: 'maxAllowedRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "maxAllowedRewardShare", + internalType: "uint256", + type: "uint256", }, ], - name: 'GroupingModule__MaxAllowedRewardShareExceeds100Percent', + name: "GroupingModule__MaxAllowedRewardShareExceeds100Percent", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'royaltyToken', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "royaltyToken", internalType: "address", type: "address" }, ], - name: 'GroupingModule__RoyaltyTokenNotWhitelisted', + name: "GroupingModule__RoyaltyTokenNotWhitelisted", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'groupCurrentToken', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "groupCurrentToken", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'GroupingModule__TokenNotMatchGroupRevenueToken', + name: "GroupingModule__TokenNotMatchGroupRevenueToken", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, { - name: 'totalGroupRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "totalGroupRewardShare", + internalType: "uint256", + type: "uint256", }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'expectGroupRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "expectGroupRewardShare", + internalType: "uint256", + type: "uint256", }, ], - name: 'GroupingModule__TotalGroupRewardShareExceeds100Percent', + name: "GroupingModule__TotalGroupRewardShareExceeds100Percent", }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroGroupNFT' }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroGroupRewardPool' }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroIpAssetRegistry' }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroLicenseRegistry' }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroLicenseToken' }, - { type: 'error', inputs: [], name: 'GroupingModule__ZeroRoyaltyModule' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "GroupingModule__ZeroAccessManager" }, + { type: "error", inputs: [], name: "GroupingModule__ZeroGroupNFT" }, + { type: "error", inputs: [], name: "GroupingModule__ZeroGroupRewardPool" }, + { type: "error", inputs: [], name: "GroupingModule__ZeroIpAssetRegistry" }, + { type: "error", inputs: [], name: "GroupingModule__ZeroLicenseRegistry" }, + { type: "error", inputs: [], name: "GroupingModule__ZeroLicenseToken" }, + { type: "error", inputs: [], name: "GroupingModule__ZeroRoyaltyModule" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'groupId', - internalType: 'address', - type: 'address', + name: "groupId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'ipIds', - internalType: 'address[]', - type: 'address[]', + name: "ipIds", + internalType: "address[]", + type: "address[]", indexed: false, }, ], - name: 'AddedIpToGroup', + name: "AddedIpToGroup", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'groupId', - internalType: 'address', - type: 'address', + name: "groupId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: true, }, { - name: 'ipId', - internalType: 'address[]', - type: 'address[]', + name: "ipId", + internalType: "address[]", + type: "address[]", indexed: false, }, { - name: 'amount', - internalType: 'uint256[]', - type: 'uint256[]', + name: "amount", + internalType: "uint256[]", + type: "uint256[]", indexed: false, }, ], - name: 'ClaimedReward', + name: "ClaimedReward", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'groupId', - internalType: 'address', - type: 'address', + name: "groupId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: true, }, - { name: 'pool', internalType: 'address', type: 'address', indexed: true }, + { name: "pool", internalType: "address", type: "address", indexed: true }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'CollectedRoyaltiesToGroupPool', + name: "CollectedRoyaltiesToGroupPool", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'groupId', - internalType: 'address', - type: 'address', + name: "groupId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'groupPool', - internalType: 'address', - type: 'address', + name: "groupPool", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'IPGroupRegistered', + name: "IPGroupRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'groupId', - internalType: 'address', - type: 'address', + name: "groupId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'ipIds', - internalType: 'address[]', - type: 'address[]', + name: "ipIds", + internalType: "address[]", + type: "address[]", indexed: false, }, ], - name: 'RemovedIpFromGroup', + name: "RemovedIpFromGroup", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUP_IP_ASSET_REGISTRY', + name: "GROUP_IP_ASSET_REGISTRY", outputs: [ { - name: '', - internalType: 'contract IGroupIPAssetRegistry', - type: 'address', + name: "", + internalType: "contract IGroupIPAssetRegistry", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUP_NFT', - outputs: [ - { name: '', internalType: 'contract IGroupNFT', type: 'address' }, - ], - stateMutability: 'view', + name: "GROUP_NFT", + outputs: [{ name: "", internalType: "contract IGroupNFT", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_TOKEN', - outputs: [ - { name: '', internalType: 'contract ILicenseToken', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_TOKEN", + outputs: [{ name: "", internalType: "contract ILicenseToken", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupIpId', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupIpId", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, { - name: 'maxAllowedRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "maxAllowedRewardShare", + internalType: "uint256", + type: "uint256", }, ], - name: 'addIp', + name: "addIp", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - name: 'claimReward', + name: "claimReward", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'collectRoyalties', - outputs: [{ name: 'royalties', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "collectRoyalties", + outputs: [{ name: "royalties", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - name: 'getClaimableReward', - outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], - stateMutability: 'view', + name: "getClaimableReward", + outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'pure', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "pure", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'groupPool', internalType: 'address', type: 'address' }], - name: 'registerGroup', - outputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "groupPool", internalType: "address", type: "address" }], + name: "registerGroup", + outputs: [{ name: "groupId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupIpId', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupIpId", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - name: 'removeIp', + name: "removeIp", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'rewardPool', internalType: 'address', type: 'address' }, - { name: 'allowed', internalType: 'bool', type: 'bool' }, + { name: "rewardPool", internalType: "address", type: "address" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], - name: 'whitelistGroupRewardPool', + name: "whitelistGroupRewardPool", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac) */ export const groupingModuleAddress = { - 1315: '0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac', - 1514: '0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac', -} as const + 1315: "0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac", + 1514: "0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x69D3a7aa9edb72Bc226E745A7cCdd50D947b69Ac) @@ -4001,7 +3887,7 @@ export const groupingModuleAddress = { export const groupingModuleConfig = { address: groupingModuleAddress, abi: groupingModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // GroupingWorkflows @@ -4013,576 +3899,558 @@ export const groupingModuleConfig = { */ export const groupingWorkflowsAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'coreMetadataModule', internalType: 'address', type: 'address' }, - { name: 'groupingModule', internalType: 'address', type: 'address' }, - { name: 'groupNft', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'pilTemplate', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "coreMetadataModule", internalType: "address", type: "address" }, + { name: "groupingModule", internalType: "address", type: "address" }, + { name: "groupNft", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "pilTemplate", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, ], - name: 'GroupingWorkflows__CallerNotSigner', + name: "GroupingWorkflows__CallerNotSigner", }, - { type: 'error', inputs: [], name: 'GroupingWorkflows__NoLicenseData' }, - { type: 'error', inputs: [], name: 'GroupingWorkflows__ZeroAddressParam' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "GroupingWorkflows__NoLicenseData" }, + { type: "error", inputs: [], name: "GroupingWorkflows__ZeroAddressParam" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [], - name: 'PermissionHelper__ModulesAndSelectorsMismatch', + name: "PermissionHelper__ModulesAndSelectorsMismatch", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, - { type: 'error', inputs: [], name: 'Workflow__CallerNotAuthorizedToMint' }, + { type: "error", inputs: [], name: "Workflow__CallerNotAuthorizedToMint" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'CORE_METADATA_MODULE', + name: "CORE_METADATA_MODULE", outputs: [ { - name: '', - internalType: 'contract ICoreMetadataModule', - type: 'address', + name: "", + internalType: "contract ICoreMetadataModule", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUPING_MODULE', - outputs: [ - { name: '', internalType: 'contract IGroupingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "GROUPING_MODULE", + outputs: [{ name: "", internalType: "contract IGroupingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUP_NFT', - outputs: [{ name: '', internalType: 'contract GroupNFT', type: 'address' }], - stateMutability: 'view', + name: "GROUP_NFT", + outputs: [{ name: "", internalType: "contract GroupNFT", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'PIL_TEMPLATE', + name: "PIL_TEMPLATE", outputs: [ { - name: '', - internalType: 'contract IPILicenseTemplate', - type: 'address', + name: "", + internalType: "contract IPILicenseTemplate", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract RoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract RoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupIpId', internalType: 'address', type: 'address' }, - { name: 'currencyTokens', internalType: 'address[]', type: 'address[]' }, - { name: 'memberIpIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupIpId", internalType: "address", type: "address" }, + { name: "currencyTokens", internalType: "address[]", type: "address[]" }, + { name: "memberIpIds", internalType: "address[]", type: "address[]" }, ], - name: 'collectRoyaltiesAndClaimReward', + name: "collectRoyaltiesAndClaimReward", outputs: [ { - name: 'collectedRoyalties', - internalType: 'uint256[]', - type: 'uint256[]', + name: "collectedRoyalties", + internalType: "uint256[]", + type: "uint256[]", }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'recipient', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "recipient", internalType: "address", type: "address" }, { - name: 'maxAllowedRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "maxAllowedRewardShare", + internalType: "uint256", + type: "uint256", }, { - name: 'licensesData', - internalType: 'struct WorkflowStructs.LicenseData[]', - type: 'tuple[]', + name: "licensesData", + internalType: "struct WorkflowStructs.LicenseData[]", + type: "tuple[]", components: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'sigAddToGroup', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigAddToGroup", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndAttachLicenseAndAddToGroup', + name: "mintAndRegisterIpAndAttachLicenseAndAddToGroup", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onERC721Received', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'nonpayable', + name: "onERC721Received", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupPool', internalType: 'address', type: 'address' }, + { name: "groupPool", internalType: "address", type: "address" }, { - name: 'licenseData', - internalType: 'struct WorkflowStructs.LicenseData', - type: 'tuple', + name: "licenseData", + internalType: "struct WorkflowStructs.LicenseData", + type: "tuple", components: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, ], - name: 'registerGroupAndAttachLicense', - outputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerGroupAndAttachLicense", + outputs: [{ name: "groupId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupPool', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupPool", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, { - name: 'maxAllowedRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "maxAllowedRewardShare", + internalType: "uint256", + type: "uint256", }, { - name: 'licenseData', - internalType: 'struct WorkflowStructs.LicenseData', - type: 'tuple', + name: "licenseData", + internalType: "struct WorkflowStructs.LicenseData", + type: "tuple", components: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, ], - name: 'registerGroupAndAttachLicenseAndAddIps', - outputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerGroupAndAttachLicenseAndAddIps", + outputs: [{ name: "groupId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'groupId', internalType: 'address', type: 'address' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "groupId", internalType: "address", type: "address" }, { - name: 'maxAllowedRewardShare', - internalType: 'uint256', - type: 'uint256', + name: "maxAllowedRewardShare", + internalType: "uint256", + type: "uint256", }, { - name: 'licensesData', - internalType: 'struct WorkflowStructs.LicenseData[]', - type: 'tuple[]', + name: "licensesData", + internalType: "struct WorkflowStructs.LicenseData[]", + type: "tuple[]", components: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'sigMetadataAndAttachAndConfig', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndAttachAndConfig", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, { - name: 'sigAddToGroup', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigAddToGroup", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndAttachLicenseAndAddToGroup', - outputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerIpAndAttachLicenseAndAddToGroup", + outputs: [{ name: "ipId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd) */ export const groupingWorkflowsAddress = { - 1315: '0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd', - 1514: '0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd', -} as const + 1315: "0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd", + 1514: "0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xD7c0beb3aa4DCD4723465f1ecAd045676c24CDCd) @@ -4591,7 +4459,7 @@ export const groupingWorkflowsAddress = { export const groupingWorkflowsConfig = { address: groupingWorkflowsAddress, abi: groupingWorkflowsAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPAccountImpl @@ -4603,415 +4471,415 @@ export const groupingWorkflowsConfig = { */ export const ipAccountImplAbi = [ { - type: 'constructor', - inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'moduleRegistry', internalType: 'address', type: 'address' }, - ], - stateMutability: 'nonpayable', - }, - { type: 'error', inputs: [], name: 'FnSelectorNotRecognized' }, - { type: 'error', inputs: [], name: 'IPAccountStorage__InvalidBatchLengths' }, - { - type: 'error', - inputs: [{ name: 'module', internalType: 'address', type: 'address' }], - name: 'IPAccountStorage__NotRegisteredModule', - }, - { type: 'error', inputs: [], name: 'IPAccountStorage__ZeroIpAssetRegistry' }, - { type: 'error', inputs: [], name: 'IPAccountStorage__ZeroLicenseRegistry' }, - { type: 'error', inputs: [], name: 'IPAccountStorage__ZeroModuleRegistry' }, - { type: 'error', inputs: [], name: 'IPAccount__ExpiredSignature' }, - { type: 'error', inputs: [], name: 'IPAccount__InvalidCalldata' }, - { type: 'error', inputs: [], name: 'IPAccount__InvalidOperation' }, - { type: 'error', inputs: [], name: 'IPAccount__InvalidSignature' }, - { type: 'error', inputs: [], name: 'IPAccount__InvalidSigner' }, - { type: 'error', inputs: [], name: 'IPAccount__UUPSUpgradeDisabled' }, - { type: 'error', inputs: [], name: 'IPAccount__ZeroAccessController' }, - { type: 'error', inputs: [], name: 'OperationNotSupported' }, - { type: 'error', inputs: [], name: 'SelfOwnDetected' }, - { type: 'error', inputs: [], name: 'Unauthorized' }, - { type: 'error', inputs: [], name: 'UnauthorizedCallContext' }, - { type: 'error', inputs: [], name: 'UpgradeFailed' }, - { - type: 'event', + type: "constructor", + inputs: [ + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "moduleRegistry", internalType: "address", type: "address" }, + ], + stateMutability: "nonpayable", + }, + { type: "error", inputs: [], name: "FnSelectorNotRecognized" }, + { type: "error", inputs: [], name: "IPAccountStorage__InvalidBatchLengths" }, + { + type: "error", + inputs: [{ name: "module", internalType: "address", type: "address" }], + name: "IPAccountStorage__NotRegisteredModule", + }, + { type: "error", inputs: [], name: "IPAccountStorage__ZeroIpAssetRegistry" }, + { type: "error", inputs: [], name: "IPAccountStorage__ZeroLicenseRegistry" }, + { type: "error", inputs: [], name: "IPAccountStorage__ZeroModuleRegistry" }, + { type: "error", inputs: [], name: "IPAccount__ExpiredSignature" }, + { type: "error", inputs: [], name: "IPAccount__InvalidCalldata" }, + { type: "error", inputs: [], name: "IPAccount__InvalidOperation" }, + { type: "error", inputs: [], name: "IPAccount__InvalidSignature" }, + { type: "error", inputs: [], name: "IPAccount__InvalidSigner" }, + { type: "error", inputs: [], name: "IPAccount__UUPSUpgradeDisabled" }, + { type: "error", inputs: [], name: "IPAccount__ZeroAccessController" }, + { type: "error", inputs: [], name: "OperationNotSupported" }, + { type: "error", inputs: [], name: "SelfOwnDetected" }, + { type: "error", inputs: [], name: "Unauthorized" }, + { type: "error", inputs: [], name: "UnauthorizedCallContext" }, + { type: "error", inputs: [], name: "UpgradeFailed" }, + { + type: "event", anonymous: false, inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'value', - internalType: 'uint256', - type: 'uint256', + name: "value", + internalType: "uint256", + type: "uint256", indexed: false, }, - { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false }, + { name: "data", internalType: "bytes", type: "bytes", indexed: false }, { - name: 'nonce', - internalType: 'bytes32', - type: 'bytes32', + name: "nonce", + internalType: "bytes32", + type: "bytes32", indexed: false, }, ], - name: 'Executed', + name: "Executed", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'value', - internalType: 'uint256', - type: 'uint256', + name: "value", + internalType: "uint256", + type: "uint256", indexed: false, }, - { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false }, + { name: "data", internalType: "bytes", type: "bytes", indexed: false }, { - name: 'nonce', - internalType: 'bytes32', - type: 'bytes32', + name: "nonce", + internalType: "bytes32", + type: "bytes32", indexed: false, }, { - name: 'deadline', - internalType: 'uint256', - type: 'uint256', + name: "deadline", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'signer', - internalType: 'address', - type: 'address', + name: "signer", + internalType: "address", + type: "address", indexed: true, }, { - name: 'signature', - internalType: 'bytes', - type: 'bytes', + name: "signature", + internalType: "bytes", + type: "bytes", indexed: false, }, ], - name: 'ExecutedWithSig', + name: "ExecutedWithSig", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, - { type: 'fallback', stateMutability: 'payable' }, + { type: "fallback", stateMutability: "payable" }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MODULE_REGISTRY', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "MODULE_REGISTRY", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'bytes32', type: 'bytes32' }, - { name: '', internalType: 'bytes32', type: 'bytes32' }, + { name: "", internalType: "bytes32", type: "bytes32" }, + { name: "", internalType: "bytes32", type: "bytes32" }, ], - name: 'bytes32Data', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "bytes32Data", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'bytes32', type: 'bytes32' }, - { name: '', internalType: 'bytes32', type: 'bytes32' }, + { name: "", internalType: "bytes32", type: "bytes32" }, + { name: "", internalType: "bytes32", type: "bytes32" }, ], - name: 'bytesData', - outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], - stateMutability: 'view', + name: "bytesData", + outputs: [{ name: "", internalType: "bytes", type: "bytes" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'eip712Domain', + name: "eip712Domain", outputs: [ - { name: 'fields', internalType: 'bytes1', type: 'bytes1' }, - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'version', internalType: 'string', type: 'string' }, - { name: 'chainId', internalType: 'uint256', type: 'uint256' }, - { name: 'verifyingContract', internalType: 'address', type: 'address' }, - { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, - { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "fields", internalType: "bytes1", type: "bytes1" }, + { name: "name", internalType: "string", type: "string" }, + { name: "version", internalType: "string", type: "string" }, + { name: "chainId", internalType: "uint256", type: "uint256" }, + { name: "verifyingContract", internalType: "address", type: "address" }, + { name: "salt", internalType: "bytes32", type: "bytes32" }, + { name: "extensions", internalType: "uint256[]", type: "uint256[]" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, - { name: 'operation', internalType: 'uint8', type: 'uint8' }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, + { name: "operation", internalType: "uint8", type: "uint8" }, ], - name: 'execute', - outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }], - stateMutability: 'payable', + name: "execute", + outputs: [{ name: "result", internalType: "bytes", type: "bytes" }], + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'execute', - outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }], - stateMutability: 'payable', + name: "execute", + outputs: [{ name: "result", internalType: "bytes", type: "bytes" }], + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'calls', - internalType: 'struct ERC6551.Call[]', - type: 'tuple[]', + name: "calls", + internalType: "struct ERC6551.Call[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], }, - { name: 'operation', internalType: 'uint8', type: 'uint8' }, + { name: "operation", internalType: "uint8", type: "uint8" }, ], - name: 'executeBatch', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'payable', + name: "executeBatch", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], - name: 'executeWithSig', - outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }], - stateMutability: 'payable', + name: "executeWithSig", + outputs: [{ name: "result", internalType: "bytes", type: "bytes" }], + stateMutability: "payable", }, { - type: 'function', - inputs: [{ name: 'key', internalType: 'bytes32', type: 'bytes32' }], - name: 'getBytes', - outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "key", internalType: "bytes32", type: "bytes32" }], + name: "getBytes", + outputs: [{ name: "", internalType: "bytes", type: "bytes" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'namespace', internalType: 'bytes32', type: 'bytes32' }, - { name: 'key', internalType: 'bytes32', type: 'bytes32' }, + { name: "namespace", internalType: "bytes32", type: "bytes32" }, + { name: "key", internalType: "bytes32", type: "bytes32" }, ], - name: 'getBytes', - outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], - stateMutability: 'view', + name: "getBytes", + outputs: [{ name: "", internalType: "bytes", type: "bytes" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'namespace', internalType: 'bytes32', type: 'bytes32' }, - { name: 'key', internalType: 'bytes32', type: 'bytes32' }, + { name: "namespace", internalType: "bytes32", type: "bytes32" }, + { name: "key", internalType: "bytes32", type: "bytes32" }, ], - name: 'getBytes32', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "getBytes32", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'key', internalType: 'bytes32', type: 'bytes32' }], - name: 'getBytes32', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "key", internalType: "bytes32", type: "bytes32" }], + name: "getBytes32", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'namespaces', internalType: 'bytes32[]', type: 'bytes32[]' }, - { name: 'keys', internalType: 'bytes32[]', type: 'bytes32[]' }, + { name: "namespaces", internalType: "bytes32[]", type: "bytes32[]" }, + { name: "keys", internalType: "bytes32[]", type: "bytes32[]" }, ], - name: 'getBytes32Batch', - outputs: [{ name: 'values', internalType: 'bytes32[]', type: 'bytes32[]' }], - stateMutability: 'view', + name: "getBytes32Batch", + outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'namespaces', internalType: 'bytes32[]', type: 'bytes32[]' }, - { name: 'keys', internalType: 'bytes32[]', type: 'bytes32[]' }, + { name: "namespaces", internalType: "bytes32[]", type: "bytes32[]" }, + { name: "keys", internalType: "bytes32[]", type: "bytes32[]" }, ], - name: 'getBytesBatch', - outputs: [{ name: 'values', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'view', + name: "getBytesBatch", + outputs: [{ name: "values", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'hash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "hash", internalType: "bytes32", type: "bytes32" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], - name: 'isValidSignature', - outputs: [{ name: 'result', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isValidSignature", + outputs: [{ name: "result", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + 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: 'result', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isValidSigner", + outputs: [{ name: "result", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'isValidSigner', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isValidSigner", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'owner', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "owner", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'key', internalType: 'bytes32', type: 'bytes32' }, - { name: 'value', internalType: 'bytes', type: 'bytes' }, + { name: "key", internalType: "bytes32", type: "bytes32" }, + { name: "value", internalType: "bytes", type: "bytes" }, ], - name: 'setBytes', + name: "setBytes", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'key', internalType: 'bytes32', type: 'bytes32' }, - { name: 'value', internalType: 'bytes32', type: 'bytes32' }, + { name: "key", internalType: "bytes32", type: "bytes32" }, + { name: "value", internalType: "bytes32", type: "bytes32" }, ], - name: 'setBytes32', + name: "setBytes32", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'keys', internalType: 'bytes32[]', type: 'bytes32[]' }, - { name: 'values', internalType: 'bytes32[]', type: 'bytes32[]' }, + { name: "keys", internalType: "bytes32[]", type: "bytes32[]" }, + { name: "values", internalType: "bytes32[]", type: "bytes32[]" }, ], - name: 'setBytes32Batch', + name: "setBytes32Batch", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'keys', internalType: 'bytes32[]', type: 'bytes32[]' }, - { name: 'values', internalType: 'bytes[]', type: 'bytes[]' }, + { name: "keys", internalType: "bytes32[]", type: "bytes32[]" }, + { name: "values", internalType: "bytes[]", type: "bytes[]" }, ], - name: 'setBytesBatch', + name: "setBytesBatch", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'state', - outputs: [{ name: 'result', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "state", + outputs: [{ name: "result", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'token', + name: "token", outputs: [ - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, + { name: "", internalType: "uint256", type: "uint256" }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, - { type: 'receive', stateMutability: 'payable' }, -] as const + { type: "receive", stateMutability: "payable" }, +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x7343646585443F1c3F64E4F08b708788527e1C77) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x7343646585443F1c3F64E4F08b708788527e1C77) */ export const ipAccountImplAddress = { - 1315: '0x7343646585443F1c3F64E4F08b708788527e1C77', - 1514: '0x7343646585443F1c3F64E4F08b708788527e1C77', -} as const + 1315: "0x7343646585443F1c3F64E4F08b708788527e1C77", + 1514: "0x7343646585443F1c3F64E4F08b708788527e1C77", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x7343646585443F1c3F64E4F08b708788527e1C77) @@ -5020,7 +4888,7 @@ export const ipAccountImplAddress = { export const ipAccountImplConfig = { address: ipAccountImplAddress, abi: ipAccountImplAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPAssetRegistry @@ -5032,671 +4900,653 @@ export const ipAccountImplConfig = { */ export const ipAssetRegistryAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'erc6551Registry', internalType: 'address', type: 'address' }, - { name: 'ipAccountImpl', internalType: 'address', type: 'address' }, - { name: 'groupingModule', internalType: 'address', type: 'address' }, - { name: 'ipAccountImplBeacon', internalType: 'address', type: 'address' }, + { name: "erc6551Registry", internalType: "address", type: "address" }, + { name: "ipAccountImpl", internalType: "address", type: "address" }, + { name: "groupingModule", internalType: "address", type: "address" }, + { name: "ipAccountImplBeacon", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'GroupIPAssetRegistry__CallerIsNotGroupingModule', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "GroupIPAssetRegistry__CallerIsNotGroupingModule", }, { - type: 'error', - inputs: [{ name: 'groupPool', internalType: 'address', type: 'address' }], - name: 'GroupIPAssetRegistry__GroupRewardPoolNotRegistered', + type: "error", + inputs: [{ name: "groupPool", internalType: "address", type: "address" }], + name: "GroupIPAssetRegistry__GroupRewardPoolNotRegistered", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupSize', internalType: 'uint256', type: 'uint256' }, - { name: 'limit', internalType: 'uint256', type: 'uint256' }, + { name: "groupSize", internalType: "uint256", type: "uint256" }, + { name: "limit", internalType: "uint256", type: "uint256" }, ], - name: 'GroupIPAssetRegistry__GroupSizeExceedsLimit', + name: "GroupIPAssetRegistry__GroupSizeExceedsLimit", }, { - type: 'error', - inputs: [{ name: 'rewardPool', internalType: 'address', type: 'address' }], - name: 'GroupIPAssetRegistry__InvalidGroupRewardPool', + type: "error", + inputs: [{ name: "rewardPool", internalType: "address", type: "address" }], + name: "GroupIPAssetRegistry__InvalidGroupRewardPool", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'GroupIPAssetRegistry__NotRegisteredGroupIP', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "GroupIPAssetRegistry__NotRegisteredGroupIP", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'GroupIPAssetRegistry__NotRegisteredIP', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "GroupIPAssetRegistry__NotRegisteredIP", }, { - type: 'error', + type: "error", inputs: [ - { name: 'pageSize', internalType: 'uint256', type: 'uint256' }, - { name: 'limit', internalType: 'uint256', type: 'uint256' }, + { name: "pageSize", internalType: "uint256", type: "uint256" }, + { name: "limit", internalType: "uint256", type: "uint256" }, ], - name: 'GroupIPAssetRegistry__PageSizeExceedsLimit', + name: "GroupIPAssetRegistry__PageSizeExceedsLimit", }, - { type: 'error', inputs: [], name: 'IPAccountRegistry_ZeroERC6551Registry' }, - { type: 'error', inputs: [], name: 'IPAccountRegistry_ZeroIpAccountImpl' }, + { type: "error", inputs: [], name: "IPAccountRegistry_ZeroERC6551Registry" }, + { type: "error", inputs: [], name: "IPAccountRegistry_ZeroIpAccountImpl" }, { - type: 'error', + type: "error", inputs: [], - name: 'IPAccountRegistry_ZeroIpAccountImplBeacon', + name: "IPAccountRegistry_ZeroIpAccountImplBeacon", }, { - type: 'error', + type: "error", inputs: [ - { name: 'contractAddress', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "contractAddress", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'IPAssetRegistry__InvalidToken', + name: "IPAssetRegistry__InvalidToken", }, { - type: 'error', - inputs: [ - { name: 'contractAddress', internalType: 'address', type: 'address' }, - ], - name: 'IPAssetRegistry__UnsupportedIERC721', + type: "error", + inputs: [{ name: "contractAddress", internalType: "address", type: "address" }], + name: "IPAssetRegistry__UnsupportedIERC721", }, { - type: 'error', - inputs: [ - { name: 'contractAddress', internalType: 'address', type: 'address' }, - ], - name: 'IPAssetRegistry__UnsupportedIERC721Metadata', + type: "error", + inputs: [{ name: "contractAddress", internalType: "address", type: "address" }], + name: "IPAssetRegistry__UnsupportedIERC721Metadata", }, - { type: 'error', inputs: [], name: 'IPAssetRegistry__ZeroAccessManager' }, + { type: "error", inputs: [], name: "IPAssetRegistry__ZeroAccessManager" }, { - type: 'error', - inputs: [{ name: 'name', internalType: 'string', type: 'string' }], - name: 'IPAssetRegistry__ZeroAddress', + type: "error", + inputs: [{ name: "name", internalType: "string", type: "string" }], + name: "IPAssetRegistry__ZeroAddress", }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, { - type: 'error', + type: "error", inputs: [ - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'length', internalType: 'uint256', type: 'uint256' }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "length", internalType: "uint256", type: "uint256" }, ], - name: 'StringsInsufficientHexLength', + name: "StringsInsufficientHexLength", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: true, }, { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, { - name: 'chainId', - internalType: 'uint256', - type: 'uint256', + name: "chainId", + internalType: "uint256", + type: "uint256", indexed: true, }, { - name: 'tokenContract', - internalType: 'address', - type: 'address', + name: "tokenContract", + internalType: "address", + type: "address", indexed: false, }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'IPAccountRegistered', + name: "IPAccountRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'chainId', - internalType: 'uint256', - type: 'uint256', + name: "chainId", + internalType: "uint256", + type: "uint256", indexed: true, }, { - name: 'tokenContract', - internalType: 'address', - type: 'address', + name: "tokenContract", + internalType: "address", + type: "address", indexed: true, }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: true, }, - { name: 'name', internalType: 'string', type: 'string', indexed: false }, - { name: 'uri', internalType: 'string', type: 'string', indexed: false }, + { name: "name", internalType: "string", type: "string", indexed: false }, + { name: "uri", internalType: "string", type: "string", indexed: false }, { - name: 'registrationDate', - internalType: 'uint256', - type: 'uint256', + name: "registrationDate", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'IPRegistered', + name: "IPRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'payer', - internalType: 'address', - type: 'address', + name: "payer", + internalType: "address", + type: "address", indexed: true, }, { - name: 'treasury', - internalType: 'address', - type: 'address', + name: "treasury", + internalType: "address", + type: "address", indexed: true, }, { - name: 'feeToken', - internalType: 'address', - type: 'address', + name: "feeToken", + internalType: "address", + type: "address", indexed: true, }, { - name: 'amount', - internalType: 'uint96', - type: 'uint96', + name: "amount", + internalType: "uint96", + type: "uint96", indexed: false, }, ], - name: 'IPRegistrationFeePaid', + name: "IPRegistrationFeePaid", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'treasury', - internalType: 'address', - type: 'address', + name: "treasury", + internalType: "address", + type: "address", indexed: true, }, { - name: 'feeToken', - internalType: 'address', - type: 'address', + name: "feeToken", + internalType: "address", + type: "address", indexed: true, }, { - name: 'feeAmount', - internalType: 'uint96', - type: 'uint96', + name: "feeAmount", + internalType: "uint96", + type: "uint96", indexed: false, }, ], - name: 'RegistrationFeeSet', + name: "RegistrationFeeSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ERC6551_PUBLIC_REGISTRY', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ERC6551_PUBLIC_REGISTRY", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUPING_MODULE', - outputs: [ - { name: '', internalType: 'contract IGroupingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "GROUPING_MODULE", + outputs: [{ name: "", internalType: "contract IGroupingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ACCOUNT_IMPL', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_ACCOUNT_IMPL", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ACCOUNT_IMPL_UPGRADEABLE_BEACON', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_ACCOUNT_IMPL_UPGRADEABLE_BEACON", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ACCOUNT_SALT', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "IP_ACCOUNT_SALT", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MAX_GROUP_SIZE', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "MAX_GROUP_SIZE", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - name: 'addGroupMember', + name: "addGroupMember", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, ], - name: 'containsIp', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "containsIp", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getFeeAmount', - outputs: [{ name: '', internalType: 'uint96', type: 'uint96' }], - stateMutability: 'view', + name: "getFeeAmount", + outputs: [{ name: "", internalType: "uint96", type: "uint96" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getFeeToken', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "getFeeToken", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'startIndex', internalType: 'uint256', type: 'uint256' }, - { name: 'size', internalType: 'uint256', type: 'uint256' }, - ], - name: 'getGroupMembers', - outputs: [ - { name: 'results', internalType: 'address[]', type: 'address[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "startIndex", internalType: "uint256", type: "uint256" }, + { name: "size", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + name: "getGroupMembers", + outputs: [{ name: "results", internalType: "address[]", type: "address[]" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'getGroupRewardPool', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "getGroupRewardPool", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getIPAccountImpl', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "getIPAccountImpl", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getTreasury', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "getTreasury", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + 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' }], - stateMutability: 'view', + name: "ipAccount", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + 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: 'ipId', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ipId", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'id', internalType: 'address', type: 'address' }], - name: 'isRegistered', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "id", internalType: "address", type: "address" }], + name: "isRegistered", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'isRegisteredGroup', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "isRegisteredGroup", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'rewardPool', internalType: 'address', type: 'address' }], - name: 'isWhitelistedGroupRewardPool', - outputs: [{ name: 'isWhitelisted', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "rewardPool", internalType: "address", type: "address" }], + name: "isWhitelistedGroupRewardPool", + outputs: [{ name: "isWhitelisted", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + 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: 'register', - outputs: [{ name: 'id', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "register", + outputs: [{ name: "id", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupNft', internalType: 'address', type: 'address' }, - { name: 'groupNftId', internalType: 'uint256', type: 'uint256' }, - { name: 'rewardPool', internalType: 'address', type: 'address' }, - { name: 'registerFeePayer', internalType: 'address', type: 'address' }, + { name: "groupNft", internalType: "address", type: "address" }, + { name: "groupNftId", internalType: "uint256", type: "uint256" }, + { name: "rewardPool", internalType: "address", type: "address" }, + { name: "registerFeePayer", internalType: "address", type: "address" }, ], - name: 'registerGroup', - outputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerGroup", + outputs: [{ name: "groupId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipIds', internalType: 'address[]', type: 'address[]' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipIds", internalType: "address[]", type: "address[]" }, ], - name: 'removeGroupMember', + name: "removeGroupMember", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'treasury', internalType: 'address', type: 'address' }, - { name: 'feeToken', internalType: 'address', type: 'address' }, - { name: 'feeAmount', internalType: 'uint96', type: 'uint96' }, + { name: "treasury", internalType: "address", type: "address" }, + { name: "feeToken", internalType: "address", type: "address" }, + { name: "feeAmount", internalType: "uint96", type: "uint96" }, ], - name: 'setRegistrationFee', + name: "setRegistrationFee", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'totalMembers', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "totalMembers", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalSupply", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newIpAccountImpl', internalType: 'address', type: 'address' }, - ], - name: 'upgradeIPAccountImpl', + type: "function", + inputs: [{ name: "newIpAccountImpl", internalType: "address", type: "address" }], + name: "upgradeIPAccountImpl", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'rewardPool', internalType: 'address', type: 'address' }, - { name: 'allowed', internalType: 'bool', type: 'bool' }, + { name: "rewardPool", internalType: "address", type: "address" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], - name: 'whitelistGroupRewardPool', + name: "whitelistGroupRewardPool", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x77319B4031e6eF1250907aa00018B8B1c67a244b) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x77319B4031e6eF1250907aa00018B8B1c67a244b) */ export const ipAssetRegistryAddress = { - 1315: '0x77319B4031e6eF1250907aa00018B8B1c67a244b', - 1514: '0x77319B4031e6eF1250907aa00018B8B1c67a244b', -} as const + 1315: "0x77319B4031e6eF1250907aa00018B8B1c67a244b", + 1514: "0x77319B4031e6eF1250907aa00018B8B1c67a244b", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x77319B4031e6eF1250907aa00018B8B1c67a244b) @@ -5705,7 +5555,7 @@ export const ipAssetRegistryAddress = { export const ipAssetRegistryConfig = { address: ipAssetRegistryAddress, abi: ipAssetRegistryAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IpRoyaltyVaultImpl @@ -5717,460 +5567,456 @@ export const ipAssetRegistryConfig = { */ export const ipRoyaltyVaultImplAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'disputeModule', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'groupingModule', internalType: 'address', type: 'address' }, + { name: "disputeModule", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "groupingModule", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', + type: "error", inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'allowance', internalType: 'uint256', type: 'uint256' }, - { name: 'needed', internalType: 'uint256', type: 'uint256' }, + { name: "spender", internalType: "address", type: "address" }, + { name: "allowance", internalType: "uint256", type: "uint256" }, + { name: "needed", internalType: "uint256", type: "uint256" }, ], - name: 'ERC20InsufficientAllowance', + name: "ERC20InsufficientAllowance", }, { - type: 'error', + type: "error", inputs: [ - { name: 'sender', internalType: 'address', type: 'address' }, - { name: 'balance', internalType: 'uint256', type: 'uint256' }, - { name: 'needed', internalType: 'uint256', type: 'uint256' }, + { name: "sender", internalType: "address", type: "address" }, + { name: "balance", internalType: "uint256", type: "uint256" }, + { name: "needed", internalType: "uint256", type: "uint256" }, ], - name: 'ERC20InsufficientBalance', + name: "ERC20InsufficientBalance", }, { - type: 'error', - inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidApprover', + type: "error", + inputs: [{ name: "approver", internalType: "address", type: "address" }], + name: "ERC20InvalidApprover", }, { - type: 'error', - inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidReceiver', + type: "error", + inputs: [{ name: "receiver", internalType: "address", type: "address" }], + name: "ERC20InvalidReceiver", }, { - type: 'error', - inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSender', + type: "error", + inputs: [{ name: "sender", internalType: "address", type: "address" }], + name: "ERC20InvalidSender", }, { - type: 'error', - inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSpender', + type: "error", + inputs: [{ name: "spender", internalType: "address", type: "address" }], + name: "ERC20InvalidSpender", }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__EnforcedPause' }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "IpRoyaltyVault__EnforcedPause" }, { - type: 'error', + type: "error", inputs: [], - name: 'IpRoyaltyVault__GroupPoolMustClaimViaGroupingModule', + name: "IpRoyaltyVault__GroupPoolMustClaimViaGroupingModule", }, { - type: 'error', + type: "error", inputs: [ - { name: 'vault', internalType: 'address', type: 'address' }, - { name: 'account', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "vault", internalType: "address", type: "address" }, + { name: "account", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'IpRoyaltyVault__InsufficientBalance', + name: "IpRoyaltyVault__InsufficientBalance", }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__InvalidTargetIpId' }, + { type: "error", inputs: [], name: "IpRoyaltyVault__InvalidTargetIpId" }, { - type: 'error', + type: "error", inputs: [], - name: 'IpRoyaltyVault__NegativeValueUnsafeCastingToUint256', + name: "IpRoyaltyVault__NegativeValueUnsafeCastingToUint256", }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__NoClaimableTokens' }, + { type: "error", inputs: [], name: "IpRoyaltyVault__NoClaimableTokens" }, { - type: 'error', + type: "error", inputs: [], - name: 'IpRoyaltyVault__NotAllowedToAddTokenToVault', + name: "IpRoyaltyVault__NotAllowedToAddTokenToVault", }, { - type: 'error', + type: "error", inputs: [], - name: 'IpRoyaltyVault__NotWhitelistedRoyaltyToken', + name: "IpRoyaltyVault__NotWhitelistedRoyaltyToken", }, { - type: 'error', + type: "error", inputs: [ - { name: 'vault', internalType: 'address', type: 'address' }, - { name: 'from', internalType: 'address', type: 'address' }, + { name: "vault", internalType: "address", type: "address" }, + { name: "from", internalType: "address", type: "address" }, ], - name: 'IpRoyaltyVault__SameFromToAddress', + name: "IpRoyaltyVault__SameFromToAddress", }, { - type: 'error', + type: "error", inputs: [], - name: 'IpRoyaltyVault__VaultDoesNotBelongToAnAncestor', + name: "IpRoyaltyVault__VaultDoesNotBelongToAnAncestor", }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__VaultsMustClaimAsSelf' }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__ZeroAmount' }, + { type: "error", inputs: [], name: "IpRoyaltyVault__VaultsMustClaimAsSelf" }, + { type: "error", inputs: [], name: "IpRoyaltyVault__ZeroAmount" }, { - type: 'error', + type: "error", inputs: [ - { name: 'vault', internalType: 'address', type: 'address' }, - { name: 'account', internalType: 'address', type: 'address' }, + { name: "vault", internalType: "address", type: "address" }, + { name: "account", internalType: "address", type: "address" }, ], - name: 'IpRoyaltyVault__ZeroBalance', + name: "IpRoyaltyVault__ZeroBalance", }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__ZeroDisputeModule' }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__ZeroGroupingModule' }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__ZeroIpAssetRegistry' }, - { type: 'error', inputs: [], name: 'IpRoyaltyVault__ZeroRoyaltyModule' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, + { type: "error", inputs: [], name: "IpRoyaltyVault__ZeroDisputeModule" }, + { type: "error", inputs: [], name: "IpRoyaltyVault__ZeroGroupingModule" }, + { type: "error", inputs: [], name: "IpRoyaltyVault__ZeroIpAssetRegistry" }, + { type: "error", inputs: [], name: "IpRoyaltyVault__ZeroRoyaltyModule" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'spender', - internalType: 'address', - type: 'address', + name: "spender", + internalType: "address", + type: "address", indexed: true, }, { - name: 'value', - internalType: 'uint256', - type: 'uint256', + name: "value", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Approval', + name: "Approval", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'claimer', - internalType: 'address', - type: 'address', + name: "claimer", + internalType: "address", + type: "address", indexed: false, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'revenueDebt', - internalType: 'int256', - type: 'int256', + name: "revenueDebt", + internalType: "int256", + type: "int256", indexed: false, }, ], - name: 'RevenueDebtUpdated', + name: "RevenueDebtUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RevenueTokenAddedToVault', + name: "RevenueTokenAddedToVault", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'claimer', - internalType: 'address', - type: 'address', + name: "claimer", + internalType: "address", + type: "address", indexed: false, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RevenueTokenClaimed', + name: "RevenueTokenClaimed", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "from", internalType: "address", type: "address", indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'value', - internalType: 'uint256', - type: 'uint256', + name: "value", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Transfer', + name: "Transfer", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUPING_MODULE', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "GROUPING_MODULE", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', + name: "IP_ASSET_REGISTRY", outputs: [ { - name: '', - internalType: 'contract IGroupIPAssetRegistry', - type: 'address', + name: "", + internalType: "contract IGroupIPAssetRegistry", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'spender', internalType: 'address', type: 'address' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "spender", internalType: "address", type: "address" }, ], - name: 'allowance', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "allowance", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "spender", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'approve', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "approve", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "account", internalType: "address", type: "address" }], + name: "balanceOf", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'tokenList', internalType: 'address[]', type: 'address[]' }, - { name: 'targetIpId', internalType: 'address', type: 'address' }, + { name: "tokenList", internalType: "address[]", type: "address[]" }, + { name: "targetIpId", internalType: "address", type: "address" }, ], - name: 'claimByTokenBatchAsSelf', + name: "claimByTokenBatchAsSelf", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'claimer', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "claimer", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'claimRevenueOnBehalf', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "claimRevenueOnBehalf", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'claimer', internalType: 'address', type: 'address' }, - { name: 'tokenList', internalType: 'address[]', type: 'address[]' }, + { name: "claimer", internalType: "address", type: "address" }, + { name: "tokenList", internalType: "address[]", type: "address[]" }, ], - name: 'claimRevenueOnBehalfByTokenBatch', - outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], - stateMutability: 'nonpayable', + name: "claimRevenueOnBehalfByTokenBatch", + outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'claimer', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "claimer", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'claimableRevenue', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "claimableRevenue", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'claimer', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "claimer", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'claimerRevenueDebt', - outputs: [{ name: '', internalType: 'int256', type: 'int256' }], - stateMutability: 'view', + name: "claimerRevenueDebt", + outputs: [{ name: "", internalType: "int256", type: "int256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'decimals', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'pure', + name: "decimals", + outputs: [{ name: "", internalType: "uint8", type: "uint8" }], + stateMutability: "pure", }, { - type: 'function', + type: "function", inputs: [ - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'symbol', internalType: 'string', type: 'string' }, - { name: 'supply', internalType: 'uint32', type: 'uint32' }, - { name: 'ipIdAddress', internalType: 'address', type: 'address' }, - { name: 'rtReceiver', internalType: 'address', type: 'address' }, + { name: "name", internalType: "string", type: "string" }, + { name: "symbol", internalType: "string", type: "string" }, + { name: "supply", internalType: "uint32", type: "uint32" }, + { name: "ipIdAddress", internalType: "address", type: "address" }, + { name: "rtReceiver", internalType: "address", type: "address" }, ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'ipId', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ipId", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'symbol', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "symbol", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'tokens', - outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], - stateMutability: 'view', + name: "tokens", + outputs: [{ name: "", internalType: "address[]", type: "address[]" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalSupply", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'transfer', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "transfer", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, ], - name: 'transferFrom', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "transferFrom", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "token", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'updateVaultBalance', + name: "updateVaultBalance", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'vaultAccBalances', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "vaultAccBalances", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x73e2D097F71e5103824abB6562362106A8955AEc) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x63cC7611316880213f3A4Ba9bD72b0EaA2010298) */ export const ipRoyaltyVaultImplAddress = { - 1315: '0x73e2D097F71e5103824abB6562362106A8955AEc', - 1514: '0x63cC7611316880213f3A4Ba9bD72b0EaA2010298', -} as const + 1315: "0x73e2D097F71e5103824abB6562362106A8955AEc", + 1514: "0x63cC7611316880213f3A4Ba9bD72b0EaA2010298", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x73e2D097F71e5103824abB6562362106A8955AEc) @@ -6179,7 +6025,7 @@ export const ipRoyaltyVaultImplAddress = { export const ipRoyaltyVaultImplConfig = { address: ipRoyaltyVaultImplAddress, abi: ipRoyaltyVaultImplAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseAttachmentWorkflows @@ -6191,734 +6037,718 @@ export const ipRoyaltyVaultImplConfig = { */ export const licenseAttachmentWorkflowsAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'coreMetadataModule', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'pilTemplate', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "coreMetadataModule", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "pilTemplate", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, ], - name: 'LicenseAttachmentWorkflows__CallerNotSigner', + name: "LicenseAttachmentWorkflows__CallerNotSigner", }, { - type: 'error', + type: "error", inputs: [], - name: 'LicenseAttachmentWorkflows__NoLicenseTermsData', + name: "LicenseAttachmentWorkflows__NoLicenseTermsData", }, { - type: 'error', + type: "error", inputs: [], - name: 'LicenseAttachmentWorkflows__ZeroAddressParam', + name: "LicenseAttachmentWorkflows__ZeroAddressParam", }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [], - name: 'PermissionHelper__ModulesAndSelectorsMismatch', + name: "PermissionHelper__ModulesAndSelectorsMismatch", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, - { type: 'error', inputs: [], name: 'Workflow__CallerNotAuthorizedToMint' }, + { type: "error", inputs: [], name: "Workflow__CallerNotAuthorizedToMint" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'CORE_METADATA_MODULE', + name: "CORE_METADATA_MODULE", outputs: [ { - name: '', - internalType: 'contract ICoreMetadataModule', - type: 'address', + name: "", + internalType: "contract ICoreMetadataModule", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'PIL_TEMPLATE', + name: "PIL_TEMPLATE", outputs: [ { - name: '', - internalType: 'contract IPILicenseTemplate', - type: 'address', + name: "", + internalType: "contract IPILicenseTemplate", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'recipient', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "recipient", internalType: "address", type: "address" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndAttachDefaultTerms', + name: "mintAndRegisterIpAndAttachDefaultTerms", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'recipient', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "recipient", internalType: "address", type: "address" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'licenseTermsData', - internalType: 'struct WorkflowStructs.LicenseTermsData[]', - type: 'tuple[]', + name: "licenseTermsData", + internalType: "struct WorkflowStructs.LicenseTermsData[]", + type: "tuple[]", components: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, + { name: "transferable", internalType: "bool", type: "bool" }, { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, { - name: 'commercialAttribution', - internalType: 'bool', - type: 'bool', + name: "commercialAttribution", + internalType: "bool", + type: "bool", }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, { - name: 'derivativesAllowed', - internalType: 'bool', - type: 'bool', + name: "derivativesAllowed", + internalType: "bool", + type: "bool", }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, { - name: 'derivativesApproval', - internalType: 'bool', - type: 'bool', + name: "derivativesApproval", + internalType: "bool", + type: "bool", }, { - name: 'derivativesReciprocal', - internalType: 'bool', - type: 'bool', + name: "derivativesReciprocal", + internalType: "bool", + type: "bool", }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndAttachPILTerms', + name: "mintAndRegisterIpAndAttachPILTerms", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onERC721Received', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'nonpayable', + name: "onERC721Received", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'sigMetadataAndDefaultTerms', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndDefaultTerms", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndAttachDefaultTerms', - outputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerIpAndAttachDefaultTerms", + outputs: [{ name: "ipId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'licenseTermsData', - internalType: 'struct WorkflowStructs.LicenseTermsData[]', - type: 'tuple[]', + name: "licenseTermsData", + internalType: "struct WorkflowStructs.LicenseTermsData[]", + type: "tuple[]", components: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, + { name: "transferable", internalType: "bool", type: "bool" }, { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, { - name: 'commercialAttribution', - internalType: 'bool', - type: 'bool', + name: "commercialAttribution", + internalType: "bool", + type: "bool", }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, { - name: 'derivativesAllowed', - internalType: 'bool', - type: 'bool', + name: "derivativesAllowed", + internalType: "bool", + type: "bool", }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, { - name: 'derivativesApproval', - internalType: 'bool', - type: 'bool', + name: "derivativesApproval", + internalType: "bool", + type: "bool", }, { - name: 'derivativesReciprocal', - internalType: 'bool', - type: 'bool', + name: "derivativesReciprocal", + internalType: "bool", + type: "bool", }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, { - name: 'sigMetadataAndAttachAndConfig', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndAttachAndConfig", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndAttachPILTerms', + name: "registerIpAndAttachPILTerms", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'licenseTermsData', - internalType: 'struct WorkflowStructs.LicenseTermsData[]', - type: 'tuple[]', + name: "licenseTermsData", + internalType: "struct WorkflowStructs.LicenseTermsData[]", + type: "tuple[]", components: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, + { name: "transferable", internalType: "bool", type: "bool" }, { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, { - name: 'commercialAttribution', - internalType: 'bool', - type: 'bool', + name: "commercialAttribution", + internalType: "bool", + type: "bool", }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, { - name: 'derivativesAllowed', - internalType: 'bool', - type: 'bool', + name: "derivativesAllowed", + internalType: "bool", + type: "bool", }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, { - name: 'derivativesApproval', - internalType: 'bool', - type: 'bool', + name: "derivativesApproval", + internalType: "bool", + type: "bool", }, { - name: 'derivativesReciprocal', - internalType: 'bool', - type: 'bool', + name: "derivativesReciprocal", + internalType: "bool", + type: "bool", }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, { - name: 'sigAttachAndConfig', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigAttachAndConfig", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerPILTermsAndAttach', - outputs: [ - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', + name: "registerPILTermsAndAttach", + outputs: [{ name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8) */ export const licenseAttachmentWorkflowsAddress = { - 1315: '0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8', - 1514: '0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8', -} as const + 1315: "0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8", + 1514: "0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8) @@ -6927,7 +6757,7 @@ export const licenseAttachmentWorkflowsAddress = { export const licenseAttachmentWorkflowsConfig = { address: licenseAttachmentWorkflowsAddress, abi: licenseAttachmentWorkflowsAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseRegistry @@ -6939,1008 +6769,986 @@ export const licenseAttachmentWorkflowsConfig = { */ export const licenseRegistryAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ { - name: 'groupIpAssetRegistry', - internalType: 'address', - type: 'address', + name: "groupIpAssetRegistry", + internalType: "address", + type: "address", }, - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'disputeModule', internalType: 'address', type: 'address' }, - { name: 'ipGraphAcl', internalType: 'address', type: 'address' }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "disputeModule", internalType: "address", type: "address" }, + { name: "ipGraphAcl", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, { - type: 'error', + type: "error", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, ], - name: 'LicenseRegistry__AddParentIpToIPGraphFailed', + name: "LicenseRegistry__AddParentIpToIPGraphFailed", }, - { type: 'error', inputs: [], name: 'LicenseRegistry__CallFailed' }, + { type: "error", inputs: [], name: "LicenseRegistry__CallFailed" }, { - type: 'error', + type: "error", inputs: [], - name: 'LicenseRegistry__CallerNotLicensingModule', + name: "LicenseRegistry__CallerNotLicensingModule", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__CannotAddIpWithExpirationToGroup', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "LicenseRegistry__CannotAddIpWithExpirationToGroup", }, { - type: 'error', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__DerivativeAlreadyRegistered', + type: "error", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "LicenseRegistry__DerivativeAlreadyRegistered", }, { - type: 'error', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__DerivativeIpAlreadyHasChild', + type: "error", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "LicenseRegistry__DerivativeIpAlreadyHasChild", }, { - type: 'error', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__DerivativeIpAlreadyHasLicense', + type: "error", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "LicenseRegistry__DerivativeIpAlreadyHasLicense", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__DerivativeIsParent', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "LicenseRegistry__DerivativeIsParent", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'parentIpId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "parentIpId", internalType: "address", type: "address" }, ], - name: 'LicenseRegistry__DuplicateParentIp', + name: "LicenseRegistry__DuplicateParentIp", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__EmptyGroupCannotMintLicenseToken', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicenseRegistry__EmptyGroupCannotMintLicenseToken", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__GroupCannotHasParentIp', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicenseRegistry__GroupCannotHasParentIp", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__GroupIpAlreadyHasLicenseTerms', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicenseRegistry__GroupIpAlreadyHasLicenseTerms", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'ipCommercialRevShare', internalType: 'uint32', type: 'uint32' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "ipCommercialRevShare", internalType: "uint32", type: "uint32" }, { - name: 'groupCommercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "groupCommercialRevShare", + internalType: "uint32", + type: "uint32", }, ], - name: 'LicenseRegistry__GroupIpCommercialRevShareConfigMustNotLessThanIp', + name: "LicenseRegistry__GroupIpCommercialRevShareConfigMustNotLessThanIp", }, { - type: 'error', + type: "error", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'groupId', internalType: 'address', type: 'address' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "groupId", internalType: "address", type: "address" }, ], - name: 'LicenseRegistry__GroupMustBeSoleParent', + name: "LicenseRegistry__GroupMustBeSoleParent", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'index', internalType: 'uint256', type: 'uint256' }, - { name: 'length', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "index", internalType: "uint256", type: "uint256" }, + { name: "length", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__IndexOutOfBounds', + name: "LicenseRegistry__IndexOutOfBounds", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'groupRewardPool', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "groupRewardPool", internalType: "address", type: "address" }, ], - name: 'LicenseRegistry__IpExpectGroupRewardPoolNotMatch', + name: "LicenseRegistry__IpExpectGroupRewardPoolNotMatch", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__IpExpectGroupRewardPoolNotSet', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "LicenseRegistry__IpExpectGroupRewardPoolNotSet", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__IpExpired', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "LicenseRegistry__IpExpired", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__IpHasNoGroupLicenseTerms', + name: "LicenseRegistry__IpHasNoGroupLicenseTerms", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__IpLicenseDisabled', + name: "LicenseRegistry__IpLicenseDisabled", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, - { name: 'groupHookData', internalType: 'bytes', type: 'bytes' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, + { name: "groupHookData", internalType: "bytes", type: "bytes" }, ], - name: 'LicenseRegistry__IpLicensingHookDataNotMatchWithGroup', + name: "LicenseRegistry__IpLicensingHookDataNotMatchWithGroup", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'groupLicensingHook', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "groupLicensingHook", internalType: "address", type: "address" }, ], - name: 'LicenseRegistry__IpLicensingHookNotMatchWithGroup', + name: "LicenseRegistry__IpLicensingHookNotMatchWithGroup", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'groupMintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "groupMintingFee", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__IpMintingFeeNotMatchWithGroup', + name: "LicenseRegistry__IpMintingFeeNotMatchWithGroup", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__LicenseTermsAlreadyAttached', + name: "LicenseRegistry__LicenseTermsAlreadyAttached", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__LicenseTermsCannotAttachToGroupIp', + name: "LicenseRegistry__LicenseTermsCannotAttachToGroupIp", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__LicenseTermsNotExists', + name: "LicenseRegistry__LicenseTermsNotExists", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__LicensorIpHasNoLicenseTerms', + name: "LicenseRegistry__LicensorIpHasNoLicenseTerms", }, { - type: 'error', - inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - ], - name: 'LicenseRegistry__NotLicenseTemplate', + type: "error", + inputs: [{ name: "licenseTemplate", internalType: "address", type: "address" }], + name: "LicenseRegistry__NotLicenseTemplate", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__ParentIpExpired', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "LicenseRegistry__ParentIpExpired", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__ParentIpHasNoLicenseTerms', + name: "LicenseRegistry__ParentIpHasNoLicenseTerms", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__ParentIpIsEmptyGroup', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicenseRegistry__ParentIpIsEmptyGroup", }, { - type: 'error', - inputs: [{ name: 'parentIpId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__ParentIpNotRegistered', + type: "error", + inputs: [{ name: "parentIpId", internalType: "address", type: "address" }], + name: "LicenseRegistry__ParentIpNotRegistered", }, { - type: 'error', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'LicenseRegistry__ParentIpTagged', + type: "error", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "LicenseRegistry__ParentIpTagged", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, ], - name: 'LicenseRegistry__ParentIpUnmatchedLicenseTemplate', + name: "LicenseRegistry__ParentIpUnmatchedLicenseTemplate", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestors', internalType: 'uint256', type: 'uint256' }, - { name: 'maxAncestors', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestors", internalType: "uint256", type: "uint256" }, + { name: "maxAncestors", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__TooManyAncestors', + name: "LicenseRegistry__TooManyAncestors", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'parents', internalType: 'uint256', type: 'uint256' }, - { name: 'maxParents', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "parents", internalType: "uint256", type: "uint256" }, + { name: "maxParents", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseRegistry__TooManyParents', + name: "LicenseRegistry__TooManyParents", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'newLicenseTemplate', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "newLicenseTemplate", internalType: "address", type: "address" }, ], - name: 'LicenseRegistry__UnmatchedLicenseTemplate', + name: "LicenseRegistry__UnmatchedLicenseTemplate", }, { - type: 'error', - inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - ], - name: 'LicenseRegistry__UnregisteredLicenseTemplate', + type: "error", + inputs: [{ name: "licenseTemplate", internalType: "address", type: "address" }], + name: "LicenseRegistry__UnregisteredLicenseTemplate", }, - { type: 'error', inputs: [], name: 'LicenseRegistry__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'LicenseRegistry__ZeroDisputeModule' }, - { type: 'error', inputs: [], name: 'LicenseRegistry__ZeroGroupIpRegistry' }, - { type: 'error', inputs: [], name: 'LicenseRegistry__ZeroIPGraphACL' }, - { type: 'error', inputs: [], name: 'LicenseRegistry__ZeroLicenseTemplate' }, - { type: 'error', inputs: [], name: 'LicenseRegistry__ZeroLicensingModule' }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroAccessManager" }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroDisputeModule" }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroGroupIpRegistry" }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroIPGraphACL" }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroLicenseTemplate" }, + { type: "error", inputs: [], name: "LicenseRegistry__ZeroLicensingModule" }, { - type: 'error', + type: "error", inputs: [], - name: 'LicensingModule__DerivativesCannotAddLicenseTerms', + name: "LicensingModule__DerivativesCannotAddLicenseTerms", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicensingModule__LicenseTermsNotFound', + name: "LicensingModule__LicenseTermsNotFound", }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__CallFailed' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "RoyaltyModule__CallFailed" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: false, }, { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'DefaultLicenseTermsSet', + name: "DefaultLicenseTermsSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, { - name: 'expireTime', - internalType: 'uint256', - type: 'uint256', + name: "expireTime", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'ExpirationTimeSet', + name: "ExpirationTimeSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'LicenseTemplateRegistered', + name: "LicenseTemplateRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: true, }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], indexed: false, }, ], - name: 'LicensingConfigSetForLicense', + name: "LicensingConfigSetForLicense", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'EXPIRATION_TIME', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "EXPIRATION_TIME", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUP_IP_ASSET_REGISTRY', + name: "GROUP_IP_ASSET_REGISTRY", outputs: [ { - name: '', - internalType: 'contract IGroupIPAssetRegistry', - type: 'address', + name: "", + internalType: "contract IGroupIPAssetRegistry", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_GRAPH", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH_ACL', - outputs: [ - { name: '', internalType: 'contract IPGraphACL', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_GRAPH_ACL", + outputs: [{ name: "", internalType: "contract IPGraphACL", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MAX_ANCESTORS', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "MAX_ANCESTORS", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MAX_PARENTS', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "MAX_PARENTS", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'attachLicenseTermsToIp', + name: "attachLicenseTermsToIp", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'exists', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "exists", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'getAncestorsCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "getAncestorsCount", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'index', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "index", internalType: "uint256", type: "uint256" }, ], - name: 'getAttachedLicenseTerms', + name: "getAttachedLicenseTerms", outputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'getAttachedLicenseTermsCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "getAttachedLicenseTermsCount", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getDefaultLicenseTerms', + name: "getDefaultLicenseTerms", outputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'parentIpId', internalType: 'address', type: 'address' }, - { name: 'index', internalType: 'uint256', type: 'uint256' }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "index", internalType: "uint256", type: "uint256" }, ], - name: 'getDerivativeIp', - outputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "getDerivativeIp", + outputs: [{ name: "childIpId", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'parentIpId', internalType: 'address', type: 'address' }], - name: 'getDerivativeIpCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "parentIpId", internalType: "address", type: "address" }], + name: "getDerivativeIpCount", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'getExpireTime', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "getExpireTime", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'getLicensingConfig', + name: "getLicensingConfig", outputs: [ { - name: '', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'index', internalType: 'uint256', type: 'uint256' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "index", internalType: "uint256", type: "uint256" }, ], - name: 'getParentIp', - outputs: [{ name: 'parentIpId', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "getParentIp", + outputs: [{ name: "parentIpId", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'getParentIpCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "getParentIpCount", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpId', internalType: 'address', type: 'address' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpId", internalType: "address", type: "address" }, ], - name: 'getParentLicenseTerms', + name: "getParentLicenseTerms", outputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'getRoyaltyPercent', - outputs: [ - { name: 'royaltyPercent', internalType: 'uint32', type: 'uint32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + name: "getRoyaltyPercent", + outputs: [{ name: "royaltyPercent", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'parentIpId', internalType: 'address', type: 'address' }], - name: 'hasDerivativeIps', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "parentIpId", internalType: "address", type: "address" }], + name: "hasDerivativeIps", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'hasIpAttachedLicenseTerms', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "hasIpAttachedLicenseTerms", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, ], - name: 'initializeLicenseTemplate', + name: "initializeLicenseTemplate", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'isDefaultLicense', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isDefaultLicense", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'isDerivativeIp', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "isDerivativeIp", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'isExpiredNow', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "isExpiredNow", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'parentIpId', internalType: 'address', type: 'address' }, - { name: 'childIpId', internalType: 'address', type: 'address' }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "childIpId", internalType: "address", type: "address" }, ], - name: 'isParentIp', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isParentIp", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - ], - name: 'isRegisteredLicenseTemplate', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTemplate", internalType: "address", type: "address" }], + name: "isRegisteredLicenseTemplate", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'isUsingLicenseToken', internalType: 'bool', type: 'bool' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "isUsingLicenseToken", internalType: "bool", type: "bool" }, ], - name: 'registerDerivativeIp', + name: "registerDerivativeIp", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - ], - name: 'registerLicenseTemplate', + type: "function", + inputs: [{ name: "licenseTemplate", internalType: "address", type: "address" }], + name: "registerLicenseTemplate", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newLicenseTemplate', internalType: 'address', type: 'address' }, - { name: 'newLicenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "newLicenseTemplate", internalType: "address", type: "address" }, + { name: "newLicenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'setDefaultLicenseTerms', + name: "setDefaultLicenseTerms", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], - name: 'setLicensingConfigForLicense', + name: "setLicensingConfigForLicense", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'groupRewardPool', internalType: 'address', type: 'address' }, - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "groupRewardPool", internalType: "address", type: "address" }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'groupLicenseTemplate', - internalType: 'address', - type: 'address', + name: "groupLicenseTemplate", + internalType: "address", + type: "address", }, - { name: 'groupLicenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "groupLicenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'verifyGroupAddIp', + name: "verifyGroupAddIp", outputs: [ { - name: 'ipLicensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "ipLicensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'isMintedByIpOwner', internalType: 'bool', type: 'bool' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "isMintedByIpOwner", internalType: "bool", type: "bool" }, ], - name: 'verifyMintLicenseToken', + name: "verifyMintLicenseToken", outputs: [ { - name: '', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], - stateMutability: 'view', + stateMutability: "view", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x529a750E02d8E2f15649c13D69a465286a780e24) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x529a750E02d8E2f15649c13D69a465286a780e24) */ export const licenseRegistryAddress = { - 1315: '0x529a750E02d8E2f15649c13D69a465286a780e24', - 1514: '0x529a750E02d8E2f15649c13D69a465286a780e24', -} as const + 1315: "0x529a750E02d8E2f15649c13D69a465286a780e24", + 1514: "0x529a750E02d8E2f15649c13D69a465286a780e24", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x529a750E02d8E2f15649c13D69a465286a780e24) @@ -7949,7 +7757,7 @@ export const licenseRegistryAddress = { export const licenseRegistryConfig = { address: licenseRegistryAddress, abi: licenseRegistryAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseToken @@ -7961,681 +7769,667 @@ export const licenseRegistryConfig = { */ export const licenseTokenAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'disputeModule', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "disputeModule", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'ERC721EnumerableForbiddenBatchMint' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "ERC721EnumerableForbiddenBatchMint" }, { - type: 'error', + type: "error", inputs: [ - { name: 'sender', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'owner', internalType: 'address', type: 'address' }, + { name: "sender", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "owner", internalType: "address", type: "address" }, ], - name: 'ERC721IncorrectOwner', + name: "ERC721IncorrectOwner", }, { - type: 'error', + type: "error", inputs: [ - { name: 'operator', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "operator", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'ERC721InsufficientApproval', + name: "ERC721InsufficientApproval", }, { - type: 'error', - inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidApprover', + type: "error", + inputs: [{ name: "approver", internalType: "address", type: "address" }], + name: "ERC721InvalidApprover", }, { - type: 'error', - inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidOperator', + type: "error", + inputs: [{ name: "operator", internalType: "address", type: "address" }], + name: "ERC721InvalidOperator", }, { - type: 'error', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidOwner', + type: "error", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "ERC721InvalidOwner", }, { - type: 'error', - inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidReceiver', + type: "error", + inputs: [{ name: "receiver", internalType: "address", type: "address" }], + name: "ERC721InvalidReceiver", }, { - type: 'error', - inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidSender', + type: "error", + inputs: [{ name: "sender", internalType: "address", type: "address" }], + name: "ERC721InvalidSender", }, { - type: 'error', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'ERC721NonexistentToken', + type: "error", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "ERC721NonexistentToken", }, { - type: 'error', + type: "error", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'index', internalType: 'uint256', type: 'uint256' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "index", internalType: "uint256", type: "uint256" }, ], - name: 'ERC721OutOfBoundsIndex', + name: "ERC721OutOfBoundsIndex", }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, { - name: 'anotherLicenseTemplate', - internalType: 'address', - type: 'address', + name: "anotherLicenseTemplate", + internalType: "address", + type: "address", }, ], - name: 'LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate', + name: "LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate", }, { - type: 'error', + type: "error", inputs: [ - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'childIpIp', internalType: 'address', type: 'address' }, - { name: 'actualTokenOwner', internalType: 'address', type: 'address' }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "caller", internalType: "address", type: "address" }, + { name: "childIpIp", internalType: "address", type: "address" }, + { name: "actualTokenOwner", internalType: "address", type: "address" }, ], - name: 'LicenseToken__CallerAndChildIPNotTokenOwner', + name: "LicenseToken__CallerAndChildIPNotTokenOwner", }, - { type: 'error', inputs: [], name: 'LicenseToken__CallerNotLicensingModule' }, + { type: "error", inputs: [], name: "LicenseToken__CallerNotLicensingModule" }, { - type: 'error', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'LicenseToken__ChildIPAlreadyHasBeenMintedLicenseTokens', + type: "error", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "LicenseToken__ChildIPAlreadyHasBeenMintedLicenseTokens", }, { - type: 'error', + type: "error", inputs: [ { - name: 'commercialRevenueShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevenueShare", + internalType: "uint32", + type: "uint32", }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseToken__CommercialRevenueShareExceedMaxRevenueShare', + name: "LicenseToken__CommercialRevenueShareExceedMaxRevenueShare", }, { - type: 'error', + type: "error", inputs: [ - { name: 'invalidRoyaltyPercent', internalType: 'uint32', type: 'uint32' }, - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "invalidRoyaltyPercent", internalType: "uint32", type: "uint32" }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicenseToken__InvalidRoyaltyPercent', + name: "LicenseToken__InvalidRoyaltyPercent", }, - { type: 'error', inputs: [], name: 'LicenseToken__NotTransferable' }, + { type: "error", inputs: [], name: "LicenseToken__NotTransferable" }, { - type: 'error', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'LicenseToken__RevokedLicense', + type: "error", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "LicenseToken__RevokedLicense", }, - { type: 'error', inputs: [], name: 'LicenseToken__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "LicenseToken__ZeroAccessManager" }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [ - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'length', internalType: 'uint256', type: 'uint256' }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "length", internalType: "uint256", type: "uint256" }, ], - name: 'StringsInsufficientHexLength', + name: "StringsInsufficientHexLength", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'approved', - internalType: 'address', - type: 'address', + name: "approved", + internalType: "address", + type: "address", indexed: true, }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: true, }, ], - name: 'Approval', + name: "Approval", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'operator', - internalType: 'address', - type: 'address', + name: "operator", + internalType: "address", + type: "address", indexed: true, }, - { name: 'approved', internalType: 'bool', type: 'bool', indexed: false }, + { name: "approved", internalType: "bool", type: "bool", indexed: false }, ], - name: 'ApprovalForAll', + name: "ApprovalForAll", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: '_fromTokenId', - internalType: 'uint256', - type: 'uint256', + name: "_fromTokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: '_toTokenId', - internalType: 'uint256', - type: 'uint256', + name: "_toTokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'BatchMetadataUpdate', + name: "BatchMetadataUpdate", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'minter', - internalType: 'address', - type: 'address', + name: "minter", + internalType: "address", + type: "address", indexed: true, }, { - name: 'receiver', - internalType: 'address', - type: 'address', + name: "receiver", + internalType: "address", + type: "address", indexed: true, }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: true, }, ], - name: 'LicenseTokenMinted', + name: "LicenseTokenMinted", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "from", internalType: "address", type: "address", indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: true, }, ], - name: 'Transfer', + name: "Transfer", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MAX_COMMERCIAL_REVENUE_SHARE', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "MAX_COMMERCIAL_REVENUE_SHARE", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'approve', + name: "approve", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "balanceOf", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'holder', internalType: 'address', type: 'address' }, - { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "holder", internalType: "address", type: "address" }, + { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" }, ], - name: 'burnLicenseTokens', + name: "burnLicenseTokens", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'getApproved', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "getApproved", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'getLicenseTemplate', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "getLicenseTemplate", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'getLicenseTermsId', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "getLicenseTermsId", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'getLicenseTokenMetadata', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "getLicenseTokenMetadata", outputs: [ { - name: '', - internalType: 'struct ILicenseToken.LicenseTokenMetadata', - type: 'tuple', + name: "", + internalType: "struct ILicenseToken.LicenseTokenMetadata", + type: "tuple", components: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'transferable', internalType: 'bool', type: 'bool' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "transferable", internalType: "bool", type: "bool" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, ], }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'getLicensorIpId', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "getLicensorIpId", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - ], - name: 'getTotalTokensByLicensor', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licensorIpId", internalType: "address", type: "address" }], + name: "getTotalTokensByLicensor", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - { name: 'imageUrl', internalType: 'string', type: 'string' }, + { name: "accessManager", internalType: "address", type: "address" }, + { name: "imageUrl", internalType: "string", type: "string" }, ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'operator', internalType: 'address', type: 'address' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "operator", internalType: "address", type: "address" }, ], - name: 'isApprovedForAll', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isApprovedForAll", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'isLicenseTokenRevoked', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "isLicenseTokenRevoked", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - { name: 'minter', internalType: 'address', type: 'address' }, - { name: 'receiver', internalType: 'address', type: 'address' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, - ], - name: 'mintLicenseTokens', - outputs: [ - { name: 'startLicenseTokenId', internalType: 'uint256', type: 'uint256' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "amount", internalType: "uint256", type: "uint256" }, + { name: "minter", internalType: "address", type: "address" }, + { name: "receiver", internalType: "address", type: "address" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], - stateMutability: 'nonpayable', + name: "mintLicenseTokens", + outputs: [{ name: "startLicenseTokenId", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'ownerOf', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "ownerOf", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'safeTransferFrom', + name: "safeTransferFrom", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'safeTransferFrom', + name: "safeTransferFrom", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'operator', internalType: 'address', type: 'address' }, - { name: 'approved', internalType: 'bool', type: 'bool' }, + { name: "operator", internalType: "address", type: "address" }, + { name: "approved", internalType: "bool", type: "bool" }, ], - name: 'setApprovalForAll', + name: "setApprovalForAll", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'url', internalType: 'string', type: 'string' }], - name: 'setLicensingImageUrl', + type: "function", + inputs: [{ name: "url", internalType: "string", type: "string" }], + name: "setLicensingImageUrl", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'symbol', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "symbol", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }], - name: 'tokenByIndex', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "index", internalType: "uint256", type: "uint256" }], + name: "tokenByIndex", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'index', internalType: 'uint256', type: 'uint256' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "index", internalType: "uint256", type: "uint256" }, ], - name: 'tokenOfOwnerByIndex', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "tokenOfOwnerByIndex", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }], - name: 'tokenURI', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "id", internalType: "uint256", type: "uint256" }], + name: "tokenURI", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalMintedTokens', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalMintedTokens", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalSupply", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'transferFrom', + name: "transferFrom", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" }, ], - name: 'validateLicenseTokensForDerivative', + name: "validateLicenseTokensForDerivative", outputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licensorIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licensorIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, { - name: 'commercialRevShares', - internalType: 'uint32[]', - type: 'uint32[]', + name: "commercialRevShares", + internalType: "uint32[]", + type: "uint32[]", }, ], - stateMutability: 'view', + stateMutability: "view", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC) */ export const licenseTokenAddress = { - 1315: '0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC', - 1514: '0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC', -} as const + 1315: "0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC", + 1514: "0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xFe3838BFb30B34170F00030B52eA4893d8aAC6bC) @@ -8644,7 +8438,7 @@ export const licenseTokenAddress = { export const licenseTokenConfig = { address: licenseTokenAddress, abi: licenseTokenAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicensingModule @@ -8656,761 +8450,733 @@ export const licenseTokenConfig = { */ export const licensingModuleAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAccountRegistry', internalType: 'address', type: 'address' }, - { name: 'moduleRegistry', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'disputeModule', internalType: 'address', type: 'address' }, - { name: 'licenseToken', internalType: 'address', type: 'address' }, - { name: 'ipGraphAcl', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAccountRegistry", internalType: "address", type: "address" }, + { name: "moduleRegistry", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "disputeModule", internalType: "address", type: "address" }, + { name: "licenseToken", internalType: "address", type: "address" }, + { name: "ipGraphAcl", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessControlled__NotIpAccount', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", }, - { type: 'error', inputs: [], name: 'AccessControlled__ZeroAddress' }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, { - type: 'error', + type: "error", inputs: [], - name: 'LicenseRegistry__LicenseTemplateCannotBeZeroAddress', + name: "LicenseRegistry__LicenseTemplateCannotBeZeroAddress", }, { - type: 'error', - inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - ], - name: 'LicenseRegistry__UnregisteredLicenseTemplate', + type: "error", + inputs: [{ name: "licenseTemplate", internalType: "address", type: "address" }], + name: "LicenseRegistry__UnregisteredLicenseTemplate", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'newRoyaltyPercent', internalType: 'uint32', type: 'uint32' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "newRoyaltyPercent", internalType: "uint32", type: "uint32" }, ], - name: 'LicensingModule__CurrentLicenseNotAllowOverrideRoyaltyPercent', + name: "LicensingModule__CurrentLicenseNotAllowOverrideRoyaltyPercent", }, { - type: 'error', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__DerivativeAlreadyHasBeenMintedLicenseTokens', + type: "error", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "LicensingModule__DerivativeAlreadyHasBeenMintedLicenseTokens", }, - { type: 'error', inputs: [], name: 'LicensingModule__DisputedIpId' }, + { type: "error", inputs: [], name: "LicensingModule__DisputedIpId" }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'revenueShare', internalType: 'uint32', type: 'uint32' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "revenueShare", internalType: "uint32", type: "uint32" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], - name: 'LicensingModule__ExceedMaxRevenueShare', + name: "LicensingModule__ExceedMaxRevenueShare", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__GroupIpCannotChangeHookData', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicensingModule__GroupIpCannotChangeHookData", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__GroupIpCannotChangeIsSet', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicensingModule__GroupIpCannotChangeIsSet", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__GroupIpCannotChangeLicensingHook', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicensingModule__GroupIpCannotChangeLicensingHook", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__GroupIpCannotChangeMintingFee', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicensingModule__GroupIpCannotChangeMintingFee", }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'newRoyaltyPercent', internalType: 'uint32', type: 'uint32' }, - { name: 'oldRoyaltyPercent', internalType: 'uint32', type: 'uint32' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "newRoyaltyPercent", internalType: "uint32", type: "uint32" }, + { name: "oldRoyaltyPercent", internalType: "uint32", type: "uint32" }, ], - name: 'LicensingModule__GroupIpCannotDecreaseRoyalty', + name: "LicensingModule__GroupIpCannotDecreaseRoyalty", }, { - type: 'error', - inputs: [{ name: 'groupId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__GroupIpCannotSetExpectGroupRewardPool', + type: "error", + inputs: [{ name: "groupId", internalType: "address", type: "address" }], + name: "LicensingModule__GroupIpCannotSetExpectGroupRewardPool", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicensingModule__InvalidLicenseTermsId', + name: "LicensingModule__InvalidLicenseTermsId", }, { - type: 'error', - inputs: [{ name: 'hook', internalType: 'address', type: 'address' }], - name: 'LicensingModule__InvalidLicensingHook', + type: "error", + inputs: [{ name: "hook", internalType: "address", type: "address" }], + name: "LicensingModule__InvalidLicensingHook", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'licensorIpId', internalType: 'address', type: 'address' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "licensorIpId", internalType: "address", type: "address" }, ], - name: 'LicensingModule__LicenseDenyMintLicenseToken', + name: "LicensingModule__LicenseDenyMintLicenseToken", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'LicensingModule__LicenseDisabled', + name: "LicensingModule__LicenseDisabled", }, { - type: 'error', - inputs: [{ name: 'childIpId', internalType: 'address', type: 'address' }], - name: 'LicensingModule__LicenseNotCompatibleForDerivative', + type: "error", + inputs: [{ name: "childIpId", internalType: "address", type: "address" }], + name: "LicensingModule__LicenseNotCompatibleForDerivative", }, { - type: 'error', + type: "error", inputs: [ - { name: 'ipLength', internalType: 'uint256', type: 'uint256' }, - { name: 'licenseTermsLength', internalType: 'uint256', type: 'uint256' }, + { name: "ipLength", internalType: "uint256", type: "uint256" }, + { name: "licenseTermsLength", internalType: "uint256", type: "uint256" }, ], - name: 'LicensingModule__LicenseTermsLengthMismatch', + name: "LicensingModule__LicenseTermsLengthMismatch", }, { - type: 'error', + type: "error", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTokenIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "licenseTokenIds", internalType: "uint256[]", type: "uint256[]" }, ], - name: 'LicensingModule__LicenseTokenNotCompatibleForDerivative', + name: "LicensingModule__LicenseTokenNotCompatibleForDerivative", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfigMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "licensingConfigMintingFee", + internalType: "uint256", + type: "uint256", }, { - name: 'licenseTermsMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsMintingFee", + internalType: "uint256", + type: "uint256", }, ], - name: 'LicensingModule__LicensingConfigMintingFeeBelowLicenseTerms', + name: "LicensingModule__LicensingConfigMintingFeeBelowLicenseTerms", }, { - type: 'error', + type: "error", inputs: [ { - name: 'licensingHookMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "licensingHookMintingFee", + internalType: "uint256", + type: "uint256", }, { - name: 'licenseTermsMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsMintingFee", + internalType: "uint256", + type: "uint256", }, ], - name: 'LicensingModule__LicensingHookMintingFeeBelowLicenseTerms', + name: "LicensingModule__LicensingHookMintingFeeBelowLicenseTerms", }, { - type: 'error', + type: "error", inputs: [], - name: 'LicensingModule__LicensorIpNotRegistered', + name: "LicensingModule__LicensorIpNotRegistered", }, - { type: 'error', inputs: [], name: 'LicensingModule__MintAmountZero' }, + { type: "error", inputs: [], name: "LicensingModule__MintAmountZero" }, { - type: 'error', + type: "error", inputs: [ - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, ], - name: 'LicensingModule__MintingFeeExceedMaxMintingFee', + name: "LicensingModule__MintingFeeExceedMaxMintingFee", }, { - type: 'error', + type: "error", inputs: [], - name: 'LicensingModule__MintingFeeRequiresRoyaltyPolicy', + name: "LicensingModule__MintingFeeRequiresRoyaltyPolicy", }, - { type: 'error', inputs: [], name: 'LicensingModule__NoLicenseToken' }, - { type: 'error', inputs: [], name: 'LicensingModule__NoParentIp' }, - { type: 'error', inputs: [], name: 'LicensingModule__ReceiverZeroAddress' }, + { type: "error", inputs: [], name: "LicensingModule__NoLicenseToken" }, + { type: "error", inputs: [], name: "LicensingModule__NoParentIp" }, + { type: "error", inputs: [], name: "LicensingModule__ReceiverZeroAddress" }, { - type: 'error', + type: "error", inputs: [ - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, { - name: 'anotherRoyaltyPolicy', - internalType: 'address', - type: 'address', + name: "anotherRoyaltyPolicy", + internalType: "address", + type: "address", }, ], - name: 'LicensingModule__RoyaltyPolicyMismatch', + name: "LicensingModule__RoyaltyPolicyMismatch", }, { - type: 'error', + type: "error", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'ancestors', internalType: 'uint256', type: 'uint256' }, - { name: 'maxAncestors', internalType: 'uint256', type: 'uint256' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "ancestors", internalType: "uint256", type: "uint256" }, + { name: "maxAncestors", internalType: "uint256", type: "uint256" }, ], - name: 'LicensingModule__TooManyAncestorsForMintingLicenseTokenAllowRegisterDerivative', + name: "LicensingModule__TooManyAncestorsForMintingLicenseTokenAllowRegisterDerivative", }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroDisputeModule' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroIPGraphACL' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroLicenseRegistry' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroLicenseTemplate' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroLicenseToken' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroModuleRegistry' }, - { type: 'error', inputs: [], name: 'LicensingModule__ZeroRoyaltyModule' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "LicensingModule__ZeroAccessManager" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroDisputeModule" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroIPGraphACL" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroLicenseRegistry" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroLicenseTemplate" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroLicenseToken" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroModuleRegistry" }, + { type: "error", inputs: [], name: "LicensingModule__ZeroRoyaltyModule" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'caller', - internalType: 'address', - type: 'address', + name: "caller", + internalType: "address", + type: "address", indexed: true, }, { - name: 'childIpId', - internalType: 'address', - type: 'address', + name: "childIpId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licenseTokenIds', - internalType: 'uint256[]', - type: 'uint256[]', + name: "licenseTokenIds", + internalType: "uint256[]", + type: "uint256[]", indexed: false, }, { - name: 'parentIpIds', - internalType: 'address[]', - type: 'address[]', + name: "parentIpIds", + internalType: "address[]", + type: "address[]", indexed: false, }, { - name: 'licenseTermsIds', - internalType: 'uint256[]', - type: 'uint256[]', + name: "licenseTermsIds", + internalType: "uint256[]", + type: "uint256[]", indexed: false, }, { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'DerivativeRegistered', + name: "DerivativeRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'caller', - internalType: 'address', - type: 'address', + name: "caller", + internalType: "address", + type: "address", indexed: true, }, - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: false, }, { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'LicenseTermsAttached', + name: "LicenseTermsAttached", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'caller', - internalType: 'address', - type: 'address', + name: "caller", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licensorIpId', - internalType: 'address', - type: 'address', + name: "licensorIpId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: false, }, { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: true, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'receiver', - internalType: 'address', - type: 'address', + name: "receiver", + internalType: "address", + type: "address", indexed: false, }, { - name: 'startLicenseTokenId', - internalType: 'uint256', - type: 'uint256', + name: "startLicenseTokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'LicenseTokensMinted', + name: "LicenseTokensMinted", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH_ACL', - outputs: [ - { name: '', internalType: 'contract IPGraphACL', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_GRAPH_ACL", + outputs: [{ name: "", internalType: "contract IPGraphACL", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_NFT', - outputs: [ - { name: '', internalType: 'contract ILicenseToken', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_NFT", + outputs: [{ name: "", internalType: "contract ILicenseToken", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MODULE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IModuleRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "MODULE_REGISTRY", + outputs: [{ name: "", internalType: "contract IModuleRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract RoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract RoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'attachDefaultLicenseTerms', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "attachDefaultLicenseTerms", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'attachLicenseTerms', + name: "attachLicenseTerms", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - { name: 'receiver', internalType: 'address', type: 'address' }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, - ], - name: 'mintLicenseTokens', - outputs: [ - { name: 'startLicenseTokenId', internalType: 'uint256', type: 'uint256' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "amount", internalType: "uint256", type: "uint256" }, + { name: "receiver", internalType: "address", type: "address" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], - stateMutability: 'nonpayable', + name: "mintLicenseTokens", + outputs: [{ name: "startLicenseTokenId", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - { name: 'receiver', internalType: 'address', type: 'address' }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "amount", internalType: "uint256", type: "uint256" }, + { name: "receiver", internalType: "address", type: "address" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, ], - name: 'predictMintingLicenseFee', + name: "predictMintingLicenseFee", outputs: [ - { name: 'currencyToken', internalType: 'address', type: 'address' }, - { name: 'tokenAmount', internalType: 'uint256', type: 'uint256' }, + { name: "currencyToken", internalType: "address", type: "address" }, + { name: "tokenAmount", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], - name: 'registerDerivative', + name: "registerDerivative", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTokenIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "licenseTokenIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, ], - name: 'registerDerivativeWithLicenseTokens', + name: "registerDerivativeWithLicenseTokens", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'licensingHook', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "licensingHook", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], - name: 'setLicensingConfig', + name: "setLicensingConfig", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f) */ export const licensingModuleAddress = { - 1315: '0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f', - 1514: '0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f', -} as const + 1315: "0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f", + 1514: "0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f) @@ -9419,7 +9185,7 @@ export const licensingModuleAddress = { export const licensingModuleConfig = { address: licensingModuleAddress, abi: licensingModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ModuleRegistry @@ -9430,306 +9196,296 @@ export const licensingModuleConfig = { * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5) */ export const moduleRegistryAbi = [ - { type: 'constructor', inputs: [], stateMutability: 'nonpayable' }, + { type: "constructor", inputs: [], stateMutability: "nonpayable" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'ModuleRegistry__InterfaceIdZero' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "ModuleRegistry__InterfaceIdZero" }, { - type: 'error', + type: "error", inputs: [], - name: 'ModuleRegistry__ModuleAddressNotContract', + name: "ModuleRegistry__ModuleAddressNotContract", }, { - type: 'error', + type: "error", inputs: [], - name: 'ModuleRegistry__ModuleAddressZeroAddress', + name: "ModuleRegistry__ModuleAddressZeroAddress", }, { - type: 'error', + type: "error", inputs: [], - name: 'ModuleRegistry__ModuleAlreadyRegistered', + name: "ModuleRegistry__ModuleAlreadyRegistered", }, - { type: 'error', inputs: [], name: 'ModuleRegistry__ModuleNotRegistered' }, + { type: "error", inputs: [], name: "ModuleRegistry__ModuleNotRegistered" }, { - type: 'error', + type: "error", inputs: [], - name: 'ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId', + name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId", }, { - type: 'error', + type: "error", inputs: [], - name: 'ModuleRegistry__ModuleTypeAlreadyRegistered', + name: "ModuleRegistry__ModuleTypeAlreadyRegistered", }, - { type: 'error', inputs: [], name: 'ModuleRegistry__ModuleTypeEmptyString' }, + { type: "error", inputs: [], name: "ModuleRegistry__ModuleTypeEmptyString" }, { - type: 'error', + type: "error", inputs: [], - name: 'ModuleRegistry__ModuleTypeNotRegistered', + name: "ModuleRegistry__ModuleTypeNotRegistered", }, - { type: 'error', inputs: [], name: 'ModuleRegistry__NameAlreadyRegistered' }, - { type: 'error', inputs: [], name: 'ModuleRegistry__NameDoesNotMatch' }, - { type: 'error', inputs: [], name: 'ModuleRegistry__NameEmptyString' }, - { type: 'error', inputs: [], name: 'ModuleRegistry__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "ModuleRegistry__NameAlreadyRegistered" }, + { type: "error", inputs: [], name: "ModuleRegistry__NameDoesNotMatch" }, + { type: "error", inputs: [], name: "ModuleRegistry__NameEmptyString" }, + { type: "error", inputs: [], name: "ModuleRegistry__ZeroAccessManager" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'name', internalType: 'string', type: 'string', indexed: false }, + { name: "name", internalType: "string", type: "string", indexed: false }, { - name: 'module', - internalType: 'address', - type: 'address', + name: "module", + internalType: "address", + type: "address", indexed: true, }, { - name: 'moduleTypeInterfaceId', - internalType: 'bytes4', - type: 'bytes4', + name: "moduleTypeInterfaceId", + internalType: "bytes4", + type: "bytes4", indexed: true, }, { - name: 'moduleType', - internalType: 'string', - type: 'string', + name: "moduleType", + internalType: "string", + type: "string", indexed: false, }, ], - name: 'ModuleAdded', + name: "ModuleAdded", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'name', internalType: 'string', type: 'string', indexed: false }, + { name: "name", internalType: "string", type: "string", indexed: false }, { - name: 'module', - internalType: 'address', - type: 'address', + name: "module", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'ModuleRemoved', + name: "ModuleRemoved", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'name', internalType: 'string', type: 'string' }], - name: 'getModule', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "name", internalType: "string", type: "string" }], + name: "getModule", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'moduleAddress', internalType: 'address', type: 'address' }, - ], - name: 'getModuleType', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "moduleAddress", internalType: "address", type: "address" }], + name: "getModuleType", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'moduleType', internalType: 'string', type: 'string' }], - name: 'getModuleTypeInterfaceId', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "moduleType", internalType: "string", type: "string" }], + name: "getModuleTypeInterfaceId", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'moduleAddress', internalType: 'address', type: 'address' }, - ], - name: 'isRegistered', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "moduleAddress", internalType: "address", type: "address" }], + name: "isRegistered", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'moduleAddress', internalType: 'address', type: 'address' }, + { name: "name", internalType: "string", type: "string" }, + { name: "moduleAddress", internalType: "address", type: "address" }, ], - name: 'registerModule', + name: "registerModule", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'moduleAddress', internalType: 'address', type: 'address' }, - { name: 'moduleType', internalType: 'string', type: 'string' }, + { name: "name", internalType: "string", type: "string" }, + { name: "moduleAddress", internalType: "address", type: "address" }, + { name: "moduleType", internalType: "string", type: "string" }, ], - name: 'registerModule', + name: "registerModule", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }, + { name: "name", internalType: "string", type: "string" }, + { name: "interfaceId", internalType: "bytes4", type: "bytes4" }, ], - name: 'registerModuleType', + name: "registerModuleType", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'name', internalType: 'string', type: 'string' }], - name: 'removeModule', + type: "function", + inputs: [{ name: "name", internalType: "string", type: "string" }], + name: "removeModule", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'name', internalType: 'string', type: 'string' }], - name: 'removeModuleType', + type: "function", + inputs: [{ name: "name", internalType: "string", type: "string" }], + name: "removeModuleType", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5) */ export const moduleRegistryAddress = { - 1315: '0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5', - 1514: '0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5', -} as const + 1315: "0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5", + 1514: "0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x022DBAAeA5D8fB31a0Ad793335e39Ced5D631fa5) @@ -9738,7 +9494,7 @@ export const moduleRegistryAddress = { export const moduleRegistryConfig = { address: moduleRegistryAddress, abi: moduleRegistryAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Multicall3 @@ -9750,251 +9506,249 @@ export const moduleRegistryConfig = { */ export const multicall3Abi = [ { - type: 'function', + type: "function", inputs: [ { - name: 'calls', - internalType: 'struct Multicall3.Call[]', - type: 'tuple[]', + name: "calls", + internalType: "struct Multicall3.Call[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'callData', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "callData", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'aggregate', + name: "aggregate", outputs: [ - { name: 'blockNumber', internalType: 'uint256', type: 'uint256' }, - { name: 'returnData', internalType: 'bytes[]', type: 'bytes[]' }, + { name: "blockNumber", internalType: "uint256", type: "uint256" }, + { name: "returnData", internalType: "bytes[]", type: "bytes[]" }, ], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'calls', - internalType: 'struct Multicall3.Call3[]', - type: 'tuple[]', + name: "calls", + internalType: "struct Multicall3.Call3[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'allowFailure', internalType: 'bool', type: 'bool' }, - { name: 'callData', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "allowFailure", internalType: "bool", type: "bool" }, + { name: "callData", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'aggregate3', + name: "aggregate3", outputs: [ { - name: 'returnData', - internalType: 'struct Multicall3.Result[]', - type: 'tuple[]', + name: "returnData", + internalType: "struct Multicall3.Result[]", + type: "tuple[]", components: [ - { name: 'success', internalType: 'bool', type: 'bool' }, - { name: 'returnData', internalType: 'bytes', type: 'bytes' }, + { name: "success", internalType: "bool", type: "bool" }, + { name: "returnData", internalType: "bytes", type: "bytes" }, ], }, ], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'calls', - internalType: 'struct Multicall3.Call3Value[]', - type: 'tuple[]', + name: "calls", + internalType: "struct Multicall3.Call3Value[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'allowFailure', internalType: 'bool', type: 'bool' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'callData', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "allowFailure", internalType: "bool", type: "bool" }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "callData", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'aggregate3Value', + name: "aggregate3Value", outputs: [ { - name: 'returnData', - internalType: 'struct Multicall3.Result[]', - type: 'tuple[]', + name: "returnData", + internalType: "struct Multicall3.Result[]", + type: "tuple[]", components: [ - { name: 'success', internalType: 'bool', type: 'bool' }, - { name: 'returnData', internalType: 'bytes', type: 'bytes' }, + { name: "success", internalType: "bool", type: "bool" }, + { name: "returnData", internalType: "bytes", type: "bytes" }, ], }, ], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'calls', - internalType: 'struct Multicall3.Call[]', - type: 'tuple[]', + name: "calls", + internalType: "struct Multicall3.Call[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'callData', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "callData", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'blockAndAggregate', + name: "blockAndAggregate", outputs: [ - { name: 'blockNumber', internalType: 'uint256', type: 'uint256' }, - { name: 'blockHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "blockNumber", internalType: "uint256", type: "uint256" }, + { name: "blockHash", internalType: "bytes32", type: "bytes32" }, { - name: 'returnData', - internalType: 'struct Multicall3.Result[]', - type: 'tuple[]', + name: "returnData", + internalType: "struct Multicall3.Result[]", + type: "tuple[]", components: [ - { name: 'success', internalType: 'bool', type: 'bool' }, - { name: 'returnData', internalType: 'bytes', type: 'bytes' }, + { name: "success", internalType: "bool", type: "bool" }, + { name: "returnData", internalType: "bytes", type: "bytes" }, ], }, ], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [], - name: 'getBasefee', - outputs: [{ name: 'basefee', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getBasefee", + outputs: [{ name: "basefee", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'blockNumber', internalType: 'uint256', type: 'uint256' }], - name: 'getBlockHash', - outputs: [{ name: 'blockHash', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "blockNumber", internalType: "uint256", type: "uint256" }], + name: "getBlockHash", + outputs: [{ name: "blockHash", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getBlockNumber', - outputs: [ - { name: 'blockNumber', internalType: 'uint256', type: 'uint256' }, - ], - stateMutability: 'view', + name: "getBlockNumber", + outputs: [{ name: "blockNumber", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getChainId', - outputs: [{ name: 'chainid', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getChainId", + outputs: [{ name: "chainid", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getCurrentBlockCoinbase', - outputs: [{ name: 'coinbase', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "getCurrentBlockCoinbase", + outputs: [{ name: "coinbase", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getCurrentBlockDifficulty', - outputs: [{ name: 'difficulty', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getCurrentBlockDifficulty", + outputs: [{ name: "difficulty", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getCurrentBlockGasLimit', - outputs: [{ name: 'gaslimit', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getCurrentBlockGasLimit", + outputs: [{ name: "gaslimit", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getCurrentBlockTimestamp', - outputs: [{ name: 'timestamp', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getCurrentBlockTimestamp", + outputs: [{ name: "timestamp", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'addr', internalType: 'address', type: 'address' }], - name: 'getEthBalance', - outputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "addr", internalType: "address", type: "address" }], + name: "getEthBalance", + outputs: [{ name: "balance", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getLastBlockHash', - outputs: [{ name: 'blockHash', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "getLastBlockHash", + outputs: [{ name: "blockHash", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'requireSuccess', internalType: 'bool', type: 'bool' }, + { name: "requireSuccess", internalType: "bool", type: "bool" }, { - name: 'calls', - internalType: 'struct Multicall3.Call[]', - type: 'tuple[]', + name: "calls", + internalType: "struct Multicall3.Call[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'callData', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "callData", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'tryAggregate', + name: "tryAggregate", outputs: [ { - name: 'returnData', - internalType: 'struct Multicall3.Result[]', - type: 'tuple[]', + name: "returnData", + internalType: "struct Multicall3.Result[]", + type: "tuple[]", components: [ - { name: 'success', internalType: 'bool', type: 'bool' }, - { name: 'returnData', internalType: 'bytes', type: 'bytes' }, + { name: "success", internalType: "bool", type: "bool" }, + { name: "returnData", internalType: "bytes", type: "bytes" }, ], }, ], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'requireSuccess', internalType: 'bool', type: 'bool' }, + { name: "requireSuccess", internalType: "bool", type: "bool" }, { - name: 'calls', - internalType: 'struct Multicall3.Call[]', - type: 'tuple[]', + name: "calls", + internalType: "struct Multicall3.Call[]", + type: "tuple[]", components: [ - { name: 'target', internalType: 'address', type: 'address' }, - { name: 'callData', internalType: 'bytes', type: 'bytes' }, + { name: "target", internalType: "address", type: "address" }, + { name: "callData", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'tryBlockAndAggregate', + name: "tryBlockAndAggregate", outputs: [ - { name: 'blockNumber', internalType: 'uint256', type: 'uint256' }, - { name: 'blockHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "blockNumber", internalType: "uint256", type: "uint256" }, + { name: "blockHash", internalType: "bytes32", type: "bytes32" }, { - name: 'returnData', - internalType: 'struct Multicall3.Result[]', - type: 'tuple[]', + name: "returnData", + internalType: "struct Multicall3.Result[]", + type: "tuple[]", components: [ - { name: 'success', internalType: 'bool', type: 'bool' }, - { name: 'returnData', internalType: 'bytes', type: 'bytes' }, + { name: "success", internalType: "bool", type: "bool" }, + { name: "returnData", internalType: "bytes", type: "bytes" }, ], }, ], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xca11bde05977b3631167028862be2a173976ca11) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xca11bde05977b3631167028862be2a173976ca11) */ export const multicall3Address = { - 1315: '0xcA11bde05977b3631167028862bE2a173976CA11', - 1514: '0xcA11bde05977b3631167028862bE2a173976CA11', -} as const + 1315: "0xcA11bde05977b3631167028862bE2a173976CA11", + 1514: "0xcA11bde05977b3631167028862bE2a173976CA11", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xca11bde05977b3631167028862be2a173976ca11) @@ -10003,7 +9757,7 @@ export const multicall3Address = { export const multicall3Config = { address: multicall3Address, abi: multicall3Abi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // PILicenseTemplate @@ -10015,750 +9769,718 @@ export const multicall3Config = { */ export const piLicenseTemplateAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAccountRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'moduleRegistry', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAccountRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "moduleRegistry", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessControlled__NotIpAccount', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", }, - { type: 'error', inputs: [], name: 'AccessControlled__ZeroAddress' }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialDisabled_CantAddAttribution', + name: "PILicenseTemplate__CommercialDisabled_CantAddAttribution", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialDisabled_CantAddCommercializers', + name: "PILicenseTemplate__CommercialDisabled_CantAddCommercializers", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialDisabled_CantAddDerivativeRevCeiling', + name: "PILicenseTemplate__CommercialDisabled_CantAddDerivativeRevCeiling", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialDisabled_CantAddRevCeiling', + name: "PILicenseTemplate__CommercialDisabled_CantAddRevCeiling", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialDisabled_CantAddRevShare', + name: "PILicenseTemplate__CommercialDisabled_CantAddRevShare", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialDisabled_CantAddRoyaltyPolicy', + name: "PILicenseTemplate__CommercialDisabled_CantAddRoyaltyPolicy", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CommercialEnabled_RoyaltyPolicyRequired', + name: "PILicenseTemplate__CommercialEnabled_RoyaltyPolicyRequired", }, { - type: 'error', - inputs: [{ name: 'checker', internalType: 'address', type: 'address' }], - name: 'PILicenseTemplate__CommercializerCheckerDoesNotSupportHook', + type: "error", + inputs: [{ name: "checker", internalType: "address", type: "address" }], + name: "PILicenseTemplate__CommercializerCheckerDoesNotSupportHook", }, { - type: 'error', + type: "error", inputs: [ { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, ], - name: 'PILicenseTemplate__CommercializerCheckerNotRegistered', + name: "PILicenseTemplate__CommercializerCheckerNotRegistered", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__CurrencyTokenNotWhitelisted', + name: "PILicenseTemplate__CurrencyTokenNotWhitelisted", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__DerivativesDisabled_CantAddApproval', + name: "PILicenseTemplate__DerivativesDisabled_CantAddApproval", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__DerivativesDisabled_CantAddAttribution', + name: "PILicenseTemplate__DerivativesDisabled_CantAddAttribution", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__DerivativesDisabled_CantAddDerivativeRevCeiling', + name: "PILicenseTemplate__DerivativesDisabled_CantAddDerivativeRevCeiling", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__DerivativesDisabled_CantAddReciprocal', + name: "PILicenseTemplate__DerivativesDisabled_CantAddReciprocal", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__MintingFeeRequiresRoyaltyPolicy', + name: "PILicenseTemplate__MintingFeeRequiresRoyaltyPolicy", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__RoyaltyPolicyNotWhitelisted', + name: "PILicenseTemplate__RoyaltyPolicyNotWhitelisted", }, { - type: 'error', + type: "error", inputs: [], - name: 'PILicenseTemplate__RoyaltyPolicyRequiresCurrencyToken', + name: "PILicenseTemplate__RoyaltyPolicyRequiresCurrencyToken", }, - { type: 'error', inputs: [], name: 'PILicenseTemplate__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'PILicenseTemplate__ZeroLicenseRegistry' }, - { type: 'error', inputs: [], name: 'PILicenseTemplate__ZeroRoyaltyModule' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "PILicenseTemplate__ZeroAccessManager" }, + { type: "error", inputs: [], name: "PILicenseTemplate__ZeroLicenseRegistry" }, + { type: "error", inputs: [], name: "PILicenseTemplate__ZeroRoyaltyModule" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: true, }, - { name: 'ipId', internalType: 'address', type: 'address', indexed: true }, + { name: "ipId", internalType: "address", type: "address", indexed: true }, { - name: 'caller', - internalType: 'address', - type: 'address', + name: "caller", + internalType: "address", + type: "address", indexed: true, }, - { name: 'approved', internalType: 'bool', type: 'bool', indexed: false }, + { name: "approved", internalType: "bool", type: "bool", indexed: false }, ], - name: 'DerivativeApproved', + name: "DerivativeApproved", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: true, }, { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licenseTerms', - internalType: 'bytes', - type: 'bytes', + name: "licenseTerms", + internalType: "bytes", + type: "bytes", indexed: false, }, ], - name: 'LicenseTermsRegistered', + name: "LicenseTermsRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MODULE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IModuleRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "MODULE_REGISTRY", + outputs: [{ name: "", internalType: "contract IModuleRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'TERMS_RENDERER', - outputs: [ - { name: '', internalType: 'contract PILTermsRenderer', type: 'address' }, - ], - stateMutability: 'view', + name: "TERMS_RENDERER", + outputs: [{ name: "", internalType: "contract PILTermsRenderer", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'allowDerivativeRegistration', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "allowDerivativeRegistration", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'canAttachToGroupIp', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "canAttachToGroupIp", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'newRoyaltyPercent', internalType: 'uint32', type: 'uint32' }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "newRoyaltyPercent", internalType: "uint32", type: "uint32" }, ], - name: 'canOverrideRoyaltyPercent', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "canOverrideRoyaltyPercent", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'exists', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "exists", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'start', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "start", internalType: "uint256", type: "uint256" }, ], - name: 'getEarlierExpireTime', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getEarlierExpireTime", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'start', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "start", internalType: "uint256", type: "uint256" }, ], - name: 'getExpireTime', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getExpireTime", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'selectedLicenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "selectedLicenseTermsId", + internalType: "uint256", + type: "uint256", }, ], - name: 'getLicenseTerms', + name: "getLicenseTerms", outputs: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, + { name: "transferable", internalType: "bool", type: "bool" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, - { name: 'commercialAttribution', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, + { name: "commercialAttribution", internalType: "bool", type: "bool" }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'derivativesAllowed', internalType: 'bool', type: 'bool' }, + { name: "derivativesAllowed", internalType: "bool", type: "bool" }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, - { name: 'derivativesApproval', internalType: 'bool', type: 'bool' }, - { name: 'derivativesReciprocal', internalType: 'bool', type: 'bool' }, + { name: "derivativesApproval", internalType: "bool", type: "bool" }, + { name: "derivativesReciprocal", internalType: "bool", type: "bool" }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, + { name: "transferable", internalType: "bool", type: "bool" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, - { name: 'commercialAttribution', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, + { name: "commercialAttribution", internalType: "bool", type: "bool" }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'derivativesAllowed', internalType: 'bool', type: 'bool' }, + { name: "derivativesAllowed", internalType: "bool", type: "bool" }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, - { name: 'derivativesApproval', internalType: 'bool', type: 'bool' }, - { name: 'derivativesReciprocal', internalType: 'bool', type: 'bool' }, + { name: "derivativesApproval", internalType: "bool", type: "bool" }, + { name: "derivativesReciprocal", internalType: "bool", type: "bool" }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, ], - name: 'getLicenseTermsId', + name: "getLicenseTermsId", outputs: [ { - name: 'selectedLicenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "selectedLicenseTermsId", + internalType: "uint256", + type: "uint256", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'getLicenseTermsURI', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "getLicenseTermsURI", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'getMetadataURI', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "getMetadataURI", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'getRoyaltyPolicy', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "getRoyaltyPolicy", outputs: [ - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, - { name: 'royaltyPercent', internalType: 'uint32', type: 'uint32' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'currency', internalType: 'address', type: 'address' }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "royaltyPercent", internalType: "uint32", type: "uint32" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, + { name: "currency", internalType: "address", type: "address" }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'metadataURI', internalType: 'string', type: 'string' }, + { name: "accessManager", internalType: "address", type: "address" }, + { name: "name", internalType: "string", type: "string" }, + { name: "metadataURI", internalType: "string", type: "string" }, ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'parentIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'childIpId', internalType: 'address', type: 'address' }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "childIpId", internalType: "address", type: "address" }, ], - name: 'isDerivativeApproved', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isDerivativeApproved", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'isLicenseTransferable', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "isLicenseTransferable", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, + { name: "transferable", internalType: "bool", type: "bool" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, - { name: 'commercialAttribution', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, + { name: "commercialAttribution", internalType: "bool", type: "bool" }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'derivativesAllowed', internalType: 'bool', type: 'bool' }, + { name: "derivativesAllowed", internalType: "bool", type: "bool" }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, - { name: 'derivativesApproval', internalType: 'bool', type: 'bool' }, - { name: 'derivativesReciprocal', internalType: 'bool', type: 'bool' }, + { name: "derivativesApproval", internalType: "bool", type: "bool" }, + { name: "derivativesReciprocal", internalType: "bool", type: "bool" }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, ], - name: 'registerLicenseTerms', - outputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "registerLicenseTerms", + outputs: [{ name: "id", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'parentIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'approved', internalType: 'bool', type: 'bool' }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "approved", internalType: "bool", type: "bool" }, ], - name: 'setApproval', + name: "setApproval", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - ], - name: 'toJson', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsId", internalType: "uint256", type: "uint256" }], + name: "toJson", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalRegisteredLicenseTerms', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalRegisteredLicenseTerms", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', - inputs: [ - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - ], - name: 'verifyCompatibleLicenses', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }], + name: "verifyCompatibleLicenses", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'licensee', internalType: 'address', type: 'address' }, - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "licensee", internalType: "address", type: "address" }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, ], - name: 'verifyMintLicenseToken', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "verifyMintLicenseToken", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'licensee', internalType: 'address', type: 'address' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "licensee", internalType: "address", type: "address" }, ], - name: 'verifyRegisterDerivative', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "verifyRegisterDerivative", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'caller', internalType: 'address', type: 'address' }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "caller", internalType: "address", type: "address" }, ], - name: 'verifyRegisterDerivativeForAllParents', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "verifyRegisterDerivativeForAllParents", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316) */ export const piLicenseTemplateAddress = { - 1315: '0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316', - 1514: '0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316', -} as const + 1315: "0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316", + 1514: "0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316) @@ -10767,7 +10489,7 @@ export const piLicenseTemplateAddress = { export const piLicenseTemplateConfig = { address: piLicenseTemplateAddress, abi: piLicenseTemplateAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RegistrationWorkflows @@ -10779,380 +10501,362 @@ export const piLicenseTemplateConfig = { */ export const registrationWorkflowsAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'coreMetadataModule', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'pilTemplate', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "coreMetadataModule", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "pilTemplate", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, ], - name: 'RegistrationWorkflows__CallerNotSigner', + name: "RegistrationWorkflows__CallerNotSigner", }, { - type: 'error', + type: "error", inputs: [], - name: 'RegistrationWorkflows__ZeroAddressParam', + name: "RegistrationWorkflows__ZeroAddressParam", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, - { type: 'error', inputs: [], name: 'Workflow__CallerNotAuthorizedToMint' }, + { type: "error", inputs: [], name: "Workflow__CallerNotAuthorizedToMint" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'spgNftContract', - internalType: 'address', - type: 'address', + name: "spgNftContract", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'CollectionCreated', + name: "CollectionCreated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'CORE_METADATA_MODULE', + name: "CORE_METADATA_MODULE", outputs: [ { - name: '', - internalType: 'contract ICoreMetadataModule', - type: 'address', + name: "", + internalType: "contract ICoreMetadataModule", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'PIL_TEMPLATE', + name: "PIL_TEMPLATE", outputs: [ { - name: '', - internalType: 'contract IPILicenseTemplate', - type: 'address', + name: "", + internalType: "contract IPILicenseTemplate", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'spgNftInitParams', - internalType: 'struct ISPGNFT.InitParams', - type: 'tuple', + name: "spgNftInitParams", + internalType: "struct ISPGNFT.InitParams", + type: "tuple", components: [ - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'symbol', internalType: 'string', type: 'string' }, - { name: 'baseURI', internalType: 'string', type: 'string' }, - { name: 'contractURI', internalType: 'string', type: 'string' }, - { name: 'maxSupply', internalType: 'uint32', type: 'uint32' }, - { name: 'mintFee', internalType: 'uint256', type: 'uint256' }, - { name: 'mintFeeToken', internalType: 'address', type: 'address' }, + { name: "name", internalType: "string", type: "string" }, + { name: "symbol", internalType: "string", type: "string" }, + { name: "baseURI", internalType: "string", type: "string" }, + { name: "contractURI", internalType: "string", type: "string" }, + { name: "maxSupply", internalType: "uint32", type: "uint32" }, + { name: "mintFee", internalType: "uint256", type: "uint256" }, + { name: "mintFeeToken", internalType: "address", type: "address" }, { - name: 'mintFeeRecipient', - internalType: 'address', - type: 'address', + name: "mintFeeRecipient", + internalType: "address", + type: "address", }, - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'mintOpen', internalType: 'bool', type: 'bool' }, - { name: 'isPublicMinting', internalType: 'bool', type: 'bool' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "mintOpen", internalType: "bool", type: "bool" }, + { name: "isPublicMinting", internalType: "bool", type: "bool" }, ], }, ], - name: 'createCollection', - outputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - ], - stateMutability: 'nonpayable', + name: "createCollection", + outputs: [{ name: "spgNftContract", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'recipient', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "recipient", internalType: "address", type: "address" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIp', + name: "mintAndRegisterIp", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onERC721Received', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'nonpayable', + name: "onERC721Received", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'sigMetadata', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadata", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIp', - outputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - stateMutability: 'nonpayable', + name: "registerIp", + outputs: [{ name: "ipId", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'newNftContractBeacon', - internalType: 'address', - type: 'address', + name: "newNftContractBeacon", + internalType: "address", + type: "address", }, ], - name: 'setNftContractBeacon', + name: "setNftContractBeacon", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newNftContract', internalType: 'address', type: 'address' }, - ], - name: 'upgradeCollections', + type: "function", + inputs: [{ name: "newNftContract", internalType: "address", type: "address" }], + name: "upgradeCollections", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424) */ export const registrationWorkflowsAddress = { - 1315: '0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424', - 1514: '0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424', -} as const + 1315: "0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424", + 1514: "0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424) @@ -11161,7 +10865,7 @@ export const registrationWorkflowsAddress = { export const registrationWorkflowsConfig = { address: registrationWorkflowsAddress, abi: registrationWorkflowsAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyModule @@ -11173,892 +10877,872 @@ export const registrationWorkflowsConfig = { */ export const royaltyModuleAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'disputeModule', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'ipGraphAcl', internalType: 'address', type: 'address' }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "disputeModule", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "ipGraphAcl", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__AboveAccumulatedRoyaltyPoliciesLimit', + name: "RoyaltyModule__AboveAccumulatedRoyaltyPoliciesLimit", }, - { type: 'error', inputs: [], name: 'RoyaltyModule__AboveMaxPercent' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__AboveMaxRts' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__CallFailed' }, + { type: "error", inputs: [], name: "RoyaltyModule__AboveMaxPercent" }, + { type: "error", inputs: [], name: "RoyaltyModule__AboveMaxRts" }, + { type: "error", inputs: [], name: "RoyaltyModule__CallFailed" }, { - type: 'error', + type: "error", inputs: [ - { name: 'groupId', internalType: 'address', type: 'address' }, - { name: 'rewardPool', internalType: 'address', type: 'address' }, + { name: "groupId", internalType: "address", type: "address" }, + { name: "rewardPool", internalType: "address", type: "address" }, ], - name: 'RoyaltyModule__GroupRewardPoolNotWhitelisted', + name: "RoyaltyModule__GroupRewardPoolNotWhitelisted", }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__InvalidExternalRoyaltyPolicy', + name: "RoyaltyModule__InvalidExternalRoyaltyPolicy", }, - { type: 'error', inputs: [], name: 'RoyaltyModule__IpExpired' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__IpIsTagged' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__NoParentsOnLinking' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__NotAllowedCaller' }, + { type: "error", inputs: [], name: "RoyaltyModule__IpExpired" }, + { type: "error", inputs: [], name: "RoyaltyModule__IpIsTagged" }, + { type: "error", inputs: [], name: "RoyaltyModule__NoParentsOnLinking" }, + { type: "error", inputs: [], name: "RoyaltyModule__NotAllowedCaller" }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__NotWhitelistedOrRegisteredRoyaltyPolicy', + name: "RoyaltyModule__NotWhitelistedOrRegisteredRoyaltyPolicy", }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__NotWhitelistedRoyaltyToken', + name: "RoyaltyModule__NotWhitelistedRoyaltyToken", }, - { type: 'error', inputs: [], name: 'RoyaltyModule__PaymentAmountIsTooLow' }, + { type: "error", inputs: [], name: "RoyaltyModule__PaymentAmountIsTooLow" }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__PolicyAlreadyRegisteredAsExternalRoyaltyPolicy', + name: "RoyaltyModule__PolicyAlreadyRegisteredAsExternalRoyaltyPolicy", }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__PolicyAlreadyWhitelistedOrRegistered', + name: "RoyaltyModule__PolicyAlreadyWhitelistedOrRegistered", }, - { type: 'error', inputs: [], name: 'RoyaltyModule__UnlinkableToParents' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroAccessManager' }, + { type: "error", inputs: [], name: "RoyaltyModule__UnlinkableToParents" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroAccessManager" }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyModule__ZeroAccumulatedRoyaltyPoliciesLimit', + name: "RoyaltyModule__ZeroAccumulatedRoyaltyPoliciesLimit", }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroAmount' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroDisputeModule' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroIpAssetRegistry' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroIpGraphAcl' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroLicenseRegistry' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroLicensingModule' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroParentIpId' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroReceiverVault' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroRoyaltyPolicy' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroRoyaltyToken' }, - { type: 'error', inputs: [], name: 'RoyaltyModule__ZeroTreasury' }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroAmount" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroDisputeModule" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroIpAssetRegistry" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroIpGraphAcl" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroLicenseRegistry" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroLicensingModule" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroParentIpId" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroReceiverVault" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroRoyaltyPolicy" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroRoyaltyToken" }, + { type: "error", inputs: [], name: "RoyaltyModule__ZeroTreasury" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'error', + type: "error", inputs: [], - name: 'VaultController__ZeroIpRoyaltyVaultBeacon', + name: "VaultController__ZeroIpRoyaltyVaultBeacon", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'externalRoyaltyPolicy', - internalType: 'address', - type: 'address', + name: "externalRoyaltyPolicy", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'ExternalRoyaltyPolicyRegistered', + name: "ExternalRoyaltyPolicyRegistered", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'ipRoyaltyVault', - internalType: 'address', - type: 'address', + name: "ipRoyaltyVault", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'IpRoyaltyVaultDeployed', + name: "IpRoyaltyVaultDeployed", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'receiverIpId', - internalType: 'address', - type: 'address', + name: "receiverIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'payerAddress', - internalType: 'address', - type: 'address', + name: "payerAddress", + internalType: "address", + type: "address", indexed: false, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'amountAfterFee', - internalType: 'uint256', - type: 'uint256', + name: "amountAfterFee", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'LicenseMintingFeePaid', + name: "LicenseMintingFeePaid", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", indexed: false, }, { - name: 'licensePercent', - internalType: 'uint32', - type: 'uint32', + name: "licensePercent", + internalType: "uint32", + type: "uint32", indexed: false, }, { - name: 'externalData', - internalType: 'bytes', - type: 'bytes', + name: "externalData", + internalType: "bytes", + type: "bytes", indexed: false, }, ], - name: 'LicensedWithRoyalty', + name: "LicensedWithRoyalty", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'parentIpIds', - internalType: 'address[]', - type: 'address[]', + name: "parentIpIds", + internalType: "address[]", + type: "address[]", indexed: false, }, { - name: 'licenseRoyaltyPolicies', - internalType: 'address[]', - type: 'address[]', + name: "licenseRoyaltyPolicies", + internalType: "address[]", + type: "address[]", indexed: false, }, { - name: 'licensesPercent', - internalType: 'uint32[]', - type: 'uint32[]', + name: "licensesPercent", + internalType: "uint32[]", + type: "uint32[]", indexed: false, }, { - name: 'externalData', - internalType: 'bytes', - type: 'bytes', + name: "externalData", + internalType: "bytes", + type: "bytes", indexed: false, }, ], - name: 'LinkedToParents', + name: "LinkedToParents", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'royaltyFeePercent', - internalType: 'uint256', - type: 'uint256', + name: "royaltyFeePercent", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RoyaltyFeePercentSet', + name: "RoyaltyFeePercentSet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'accumulatedRoyaltyPoliciesLimit', - internalType: 'uint256', - type: 'uint256', + name: "accumulatedRoyaltyPoliciesLimit", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RoyaltyLimitsUpdated', + name: "RoyaltyLimitsUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'receiverIpId', - internalType: 'address', - type: 'address', + name: "receiverIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'payerIpId', - internalType: 'address', - type: 'address', + name: "payerIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'sender', - internalType: 'address', - type: 'address', + name: "sender", + internalType: "address", + type: "address", indexed: false, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: 'amountAfterFee', - internalType: 'uint256', - type: 'uint256', + name: "amountAfterFee", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RoyaltyPaid', + name: "RoyaltyPaid", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", indexed: false, }, - { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false }, + { name: "allowed", internalType: "bool", type: "bool", indexed: false }, ], - name: 'RoyaltyPolicyWhitelistUpdated', + name: "RoyaltyPolicyWhitelistUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, - { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false }, + { name: "allowed", internalType: "bool", type: "bool", indexed: false }, ], - name: 'RoyaltyTokenWhitelistUpdated', + name: "RoyaltyTokenWhitelistUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'treasury', - internalType: 'address', - type: 'address', + name: "treasury", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'TreasurySet', + name: "TreasurySet", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'DISPUTE_MODULE', - outputs: [ - { name: '', internalType: 'contract IDisputeModule', type: 'address' }, - ], - stateMutability: 'view', + name: "DISPUTE_MODULE", + outputs: [{ name: "", internalType: "contract IDisputeModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', + name: "IP_ASSET_REGISTRY", outputs: [ { - name: '', - internalType: 'contract IGroupIPAssetRegistry', - type: 'address', + name: "", + internalType: "contract IGroupIPAssetRegistry", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_GRAPH", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH_ACL', - outputs: [ - { name: '', internalType: 'contract IPGraphACL', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_GRAPH_ACL", + outputs: [{ name: "", internalType: "contract IPGraphACL", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'MAX_PERCENT', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "MAX_PERCENT", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'accumulatedRoyaltyPolicies', - outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "accumulatedRoyaltyPolicies", + outputs: [{ name: "", internalType: "address[]", type: "address[]" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'globalRoyaltyStack', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "globalRoyaltyStack", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, ], - name: 'hasAncestorIp', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "hasAncestorIp", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, + { name: "accessManager", internalType: "address", type: "address" }, { - name: 'accumulatedRoyaltyPoliciesLimit', - internalType: 'uint256', - type: 'uint256', + name: "accumulatedRoyaltyPoliciesLimit", + internalType: "uint256", + type: "uint256", }, ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'ipRoyaltyVaultBeacon', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ipRoyaltyVaultBeacon", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'ipRoyaltyVaults', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "ipRoyaltyVaults", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'ipRoyaltyVault', internalType: 'address', type: 'address' }, - ], - name: 'isIpRoyaltyVault', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipRoyaltyVault", internalType: "address", type: "address" }], + name: "isIpRoyaltyVault", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'externalRoyaltyPolicy', - internalType: 'address', - type: 'address', + name: "externalRoyaltyPolicy", + internalType: "address", + type: "address", }, ], - name: 'isRegisteredExternalRoyaltyPolicy', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isRegisteredExternalRoyaltyPolicy", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, - ], - name: 'isWhitelistedRoyaltyPolicy', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "royaltyPolicy", internalType: "address", type: "address" }], + name: "isWhitelistedRoyaltyPolicy", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'isWhitelistedRoyaltyToken', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "isWhitelistedRoyaltyToken", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'maxAccumulatedRoyaltyPolicies', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "maxAccumulatedRoyaltyPolicies", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'maxAncestors', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "maxAncestors", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'maxParents', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "maxParents", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'maxPercent', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'pure', + name: "maxPercent", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "pure", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, - { name: 'licensePercent', internalType: 'uint32', type: 'uint32' }, - { name: 'externalData', internalType: 'bytes', type: 'bytes' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "licensePercent", internalType: "uint32", type: "uint32" }, + { name: "externalData", internalType: "bytes", type: "bytes" }, ], - name: 'onLicenseMinting', + name: "onLicenseMinting", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, { - name: 'licenseRoyaltyPolicies', - internalType: 'address[]', - type: 'address[]', + name: "licenseRoyaltyPolicies", + internalType: "address[]", + type: "address[]", }, - { name: 'licensesPercent', internalType: 'uint32[]', type: 'uint32[]' }, - { name: 'externalData', internalType: 'bytes', type: 'bytes' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, + { name: "licensesPercent", internalType: "uint32[]", type: "uint32[]" }, + { name: "externalData", internalType: "bytes", type: "bytes" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, ], - name: 'onLinkToParents', + name: "onLinkToParents", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'receiverIpId', internalType: 'address', type: 'address' }, - { name: 'payerAddress', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "receiverIpId", internalType: "address", type: "address" }, + { name: "payerAddress", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'payLicenseMintingFee', + name: "payLicenseMintingFee", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'receiverIpId', internalType: 'address', type: 'address' }, - { name: 'payerIpId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "receiverIpId", internalType: "address", type: "address" }, + { name: "payerIpId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'payRoyaltyOnBehalf', + name: "payRoyaltyOnBehalf", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'externalRoyaltyPolicy', - internalType: 'address', - type: 'address', + name: "externalRoyaltyPolicy", + internalType: "address", + type: "address", }, ], - name: 'registerExternalRoyaltyPolicy', + name: "registerExternalRoyaltyPolicy", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'royaltyFeePercent', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "royaltyFeePercent", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'beacon', internalType: 'address', type: 'address' }], - name: 'setIpRoyaltyVaultBeacon', + type: "function", + inputs: [{ name: "beacon", internalType: "address", type: "address" }], + name: "setIpRoyaltyVaultBeacon", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'royaltyFeePercent', internalType: 'uint32', type: 'uint32' }, - ], - name: 'setRoyaltyFeePercent', + type: "function", + inputs: [{ name: "royaltyFeePercent", internalType: "uint32", type: "uint32" }], + name: "setRoyaltyFeePercent", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ { - name: 'accumulatedRoyaltyPoliciesLimit', - internalType: 'uint256', - type: 'uint256', + name: "accumulatedRoyaltyPoliciesLimit", + internalType: "uint256", + type: "uint256", }, ], - name: 'setRoyaltyLimits', + name: "setRoyaltyLimits", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'treasury', internalType: 'address', type: 'address' }], - name: 'setTreasury', + type: "function", + inputs: [{ name: "treasury", internalType: "address", type: "address" }], + name: "setTreasury", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, ], - name: 'totalRevenueTokensAccounted', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalRevenueTokensAccounted", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'totalRevenueTokensReceived', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalRevenueTokensReceived", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'treasury', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "treasury", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', - inputs: [{ name: 'newVault', internalType: 'address', type: 'address' }], - name: 'upgradeVaults', + type: "function", + inputs: [{ name: "newVault", internalType: "address", type: "address" }], + name: "upgradeVaults", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'royaltyPolicy', internalType: 'address', type: 'address' }, - { name: 'allowed', internalType: 'bool', type: 'bool' }, + { name: "royaltyPolicy", internalType: "address", type: "address" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], - name: 'whitelistRoyaltyPolicy', + name: "whitelistRoyaltyPolicy", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'token', internalType: 'address', type: 'address' }, - { name: 'allowed', internalType: 'bool', type: 'bool' }, + { name: "token", internalType: "address", type: "address" }, + { name: "allowed", internalType: "bool", type: "bool" }, ], - name: 'whitelistRoyaltyToken', + name: "whitelistRoyaltyToken", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086) */ export const royaltyModuleAddress = { - 1315: '0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086', - 1514: '0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086', -} as const + 1315: "0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086", + 1514: "0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086) @@ -12067,7 +11751,7 @@ export const royaltyModuleAddress = { export const royaltyModuleConfig = { address: royaltyModuleAddress, abi: royaltyModuleAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyPolicyLAP @@ -12079,372 +11763,358 @@ export const royaltyModuleConfig = { */ export const royaltyPolicyLapAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'ipGraphAcl', internalType: 'address', type: 'address' }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "ipGraphAcl", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__AboveMaxPercent' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__CallFailed' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__NotRoyaltyModule' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__SameIpTransfer' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__ZeroClaimableRoyalty' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__ZeroIPGraphACL' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLAP__ZeroRoyaltyModule' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__AboveMaxPercent" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__CallFailed" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__NotRoyaltyModule" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__SameIpTransfer" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__ZeroAccessManager" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__ZeroClaimableRoyalty" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__ZeroIPGraphACL" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLAP__ZeroRoyaltyModule" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'ancestorIpId', - internalType: 'address', - type: 'address', + name: "ancestorIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RevenueTransferredToVault', + name: "RevenueTransferredToVault", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_GRAPH", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH_ACL', - outputs: [ - { name: '', internalType: 'contract IPGraphACL', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_GRAPH_ACL", + outputs: [{ name: "", internalType: "contract IPGraphACL", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, ], - name: 'getPolicyRoyalty', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'nonpayable', + name: "getPolicyRoyalty", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'getPolicyRoyaltyStack', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "getPolicyRoyaltyStack", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licensePercent', internalType: 'uint32', type: 'uint32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licensePercent", internalType: "uint32", type: "uint32" }, ], - name: 'getPolicyRtsRequiredToLink', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "getPolicyRtsRequiredToLink", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'getTransferredTokens', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getTransferredTokens", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'isSupportGroup', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isSupportGroup", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licensePercent', internalType: 'uint32', type: 'uint32' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licensePercent", internalType: "uint32", type: "uint32" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onLicenseMinting', + name: "onLicenseMinting", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, { - name: 'licenseRoyaltyPolicies', - internalType: 'address[]', - type: 'address[]', + name: "licenseRoyaltyPolicies", + internalType: "address[]", + type: "address[]", }, - { name: 'licensesPercent', internalType: 'uint32[]', type: 'uint32[]' }, - { name: '', internalType: 'bytes', type: 'bytes' }, - ], - name: 'onLinkToParents', - outputs: [ - { name: 'newRoyaltyStackLAP', internalType: 'uint32', type: 'uint32' }, + { name: "licensesPercent", internalType: "uint32[]", type: "uint32[]" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - stateMutability: 'nonpayable', + name: "onLinkToParents", + outputs: [{ name: "newRoyaltyStackLAP", internalType: "uint32", type: "uint32" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'transferToVault', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "transferToVault", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E) */ export const royaltyPolicyLapAddress = { - 1315: '0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E', - 1514: '0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E', -} as const + 1315: "0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E", + 1514: "0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E) @@ -12453,7 +12123,7 @@ export const royaltyPolicyLapAddress = { export const royaltyPolicyLapConfig = { address: royaltyPolicyLapAddress, abi: royaltyPolicyLapAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyPolicyLRP @@ -12465,387 +12135,373 @@ export const royaltyPolicyLapConfig = { */ export const royaltyPolicyLrpAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'royaltyPolicyLAP', internalType: 'address', type: 'address' }, - { name: 'ipGraphAcl', internalType: 'address', type: 'address' }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "royaltyPolicyLAP", internalType: "address", type: "address" }, + { name: "ipGraphAcl", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'EnforcedPause' }, - { type: 'error', inputs: [], name: 'ExpectedPause' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__AboveMaxPercent' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__CallFailed' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__NotRoyaltyModule' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__SameIpTransfer' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__ZeroAccessManager' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__ZeroClaimableRoyalty' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__ZeroIPGraphACL' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__ZeroRoyaltyModule' }, - { type: 'error', inputs: [], name: 'RoyaltyPolicyLRP__ZeroRoyaltyPolicyLAP' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "EnforcedPause" }, + { type: "error", inputs: [], name: "ExpectedPause" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__AboveMaxPercent" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__CallFailed" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__NotRoyaltyModule" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__SameIpTransfer" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__ZeroAccessManager" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__ZeroClaimableRoyalty" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__ZeroIPGraphACL" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__ZeroRoyaltyModule" }, + { type: "error", inputs: [], name: "RoyaltyPolicyLRP__ZeroRoyaltyPolicyLAP" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Paused', + name: "Paused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'ipId', - internalType: 'address', - type: 'address', + name: "ipId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'ancestorIpId', - internalType: 'address', - type: 'address', + name: "ancestorIpId", + internalType: "address", + type: "address", indexed: false, }, { - name: 'token', - internalType: 'address', - type: 'address', + name: "token", + internalType: "address", + type: "address", indexed: false, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'RevenueTransferredToVault', + name: "RevenueTransferredToVault", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'Unpaused', + name: "Unpaused", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "IP_GRAPH", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_GRAPH_ACL', - outputs: [ - { name: '', internalType: 'contract IPGraphACL', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_GRAPH_ACL", + outputs: [{ name: "", internalType: "contract IPGraphACL", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_POLICY_LAP', + name: "ROYALTY_POLICY_LAP", outputs: [ { - name: '', - internalType: 'contract IGraphAwareRoyaltyPolicy', - type: 'address', + name: "", + internalType: "contract IGraphAwareRoyaltyPolicy", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: '__ProtocolPausable_init', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "__ProtocolPausable_init", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, ], - name: 'getPolicyRoyalty', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'nonpayable', + name: "getPolicyRoyalty", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'ipId', internalType: 'address', type: 'address' }], - name: 'getPolicyRoyaltyStack', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "ipId", internalType: "address", type: "address" }], + name: "getPolicyRoyaltyStack", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licensePercent', internalType: 'uint32', type: 'uint32' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licensePercent", internalType: "uint32", type: "uint32" }, ], - name: 'getPolicyRtsRequiredToLink', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', + name: "getPolicyRtsRequiredToLink", + outputs: [{ name: "", internalType: "uint32", type: "uint32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'getTransferredTokens', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getTransferredTokens", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'isSupportGroup', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isSupportGroup", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licensePercent', internalType: 'uint32', type: 'uint32' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licensePercent", internalType: "uint32", type: "uint32" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onLicenseMinting', + name: "onLicenseMinting", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, { - name: 'licenseRoyaltyPolicies', - internalType: 'address[]', - type: 'address[]', + name: "licenseRoyaltyPolicies", + internalType: "address[]", + type: "address[]", }, - { name: 'licensesPercent', internalType: 'uint32[]', type: 'uint32[]' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "licensesPercent", internalType: "uint32[]", type: "uint32[]" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onLinkToParents', - outputs: [ - { name: 'newRoyaltyStackLRP', internalType: 'uint32', type: 'uint32' }, - ], - stateMutability: 'nonpayable', + name: "onLinkToParents", + outputs: [{ name: "newRoyaltyStackLRP", internalType: "uint32", type: "uint32" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'pause', + name: "pause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'paused', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "paused", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, - { name: 'token', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ancestorIpId", internalType: "address", type: "address" }, + { name: "token", internalType: "address", type: "address" }, ], - name: 'transferToVault', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "transferToVault", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'unpause', + name: "unpause", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9156e603C949481883B1d3355c6f1132D191fC41) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x9156e603C949481883B1d3355c6f1132D191fC41) */ export const royaltyPolicyLrpAddress = { - 1315: '0x9156e603C949481883B1d3355c6f1132D191fC41', - 1514: '0x9156e603C949481883B1d3355c6f1132D191fC41', -} as const + 1315: "0x9156e603C949481883B1d3355c6f1132D191fC41", + 1514: "0x9156e603C949481883B1d3355c6f1132D191fC41", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9156e603C949481883B1d3355c6f1132D191fC41) @@ -12854,7 +12510,7 @@ export const royaltyPolicyLrpAddress = { export const royaltyPolicyLrpConfig = { address: royaltyPolicyLrpAddress, abi: royaltyPolicyLrpAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyTokenDistributionWorkflows @@ -12866,738 +12522,722 @@ export const royaltyPolicyLrpConfig = { */ export const royaltyTokenDistributionWorkflowsAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'coreMetadataModule', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licensingModule', internalType: 'address', type: 'address' }, - { name: 'pilTemplate', internalType: 'address', type: 'address' }, - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - { name: 'royaltyPolicyLRP', internalType: 'address', type: 'address' }, - { name: 'wip', internalType: 'address', type: 'address' }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "coreMetadataModule", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licensingModule", internalType: "address", type: "address" }, + { name: "pilTemplate", internalType: "address", type: "address" }, + { name: "royaltyModule", internalType: "address", type: "address" }, + { name: "royaltyPolicyLRP", internalType: "address", type: "address" }, + { name: "wip", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, { - type: 'error', + type: "error", inputs: [], - name: 'LicensingHelper__ParentIpIdsAndLicenseTermsIdsMismatch', + name: "LicensingHelper__ParentIpIdsAndLicenseTermsIdsMismatch", }, - { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: "error", inputs: [], name: "NotInitializing" }, { - type: 'error', + type: "error", inputs: [], - name: 'PermissionHelper__ModulesAndSelectorsMismatch', + name: "PermissionHelper__ModulesAndSelectorsMismatch", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'signer', internalType: 'address', type: 'address' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "signer", internalType: "address", type: "address" }, ], - name: 'RoyaltyTokenDistributionWorkflows__CallerNotSigner', + name: "RoyaltyTokenDistributionWorkflows__CallerNotSigner", }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyTokenDistributionWorkflows__NoLicenseTermsData', + name: "RoyaltyTokenDistributionWorkflows__NoLicenseTermsData", }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyTokenDistributionWorkflows__RoyaltyVaultNotDeployed', + name: "RoyaltyTokenDistributionWorkflows__RoyaltyVaultNotDeployed", }, { - type: 'error', + type: "error", inputs: [ - { name: 'totalShares', internalType: 'uint32', type: 'uint32' }, - { name: 'ipAccountBalance', internalType: 'uint32', type: 'uint32' }, + { name: "totalShares", internalType: "uint32", type: "uint32" }, + { name: "ipAccountBalance", internalType: "uint32", type: "uint32" }, ], - name: 'RoyaltyTokenDistributionWorkflows__TotalSharesExceedsIPAccountBalance', + name: "RoyaltyTokenDistributionWorkflows__TotalSharesExceedsIPAccountBalance", }, { - type: 'error', + type: "error", inputs: [], - name: 'RoyaltyTokenDistributionWorkflows__ZeroAddressParam', + name: "RoyaltyTokenDistributionWorkflows__ZeroAddressParam", }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, - { type: 'error', inputs: [], name: 'Workflow__CallerNotAuthorizedToMint' }, + { type: "error", inputs: [], name: "Workflow__CallerNotAuthorizedToMint" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'CORE_METADATA_MODULE', + name: "CORE_METADATA_MODULE", outputs: [ { - name: '', - internalType: 'contract ICoreMetadataModule', - type: 'address', + name: "", + internalType: "contract ICoreMetadataModule", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSING_MODULE', - outputs: [ - { name: '', internalType: 'contract ILicensingModule', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSING_MODULE", + outputs: [{ name: "", internalType: "contract ILicensingModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'PIL_TEMPLATE', + name: "PIL_TEMPLATE", outputs: [ { - name: '', - internalType: 'contract IPILicenseTemplate', - type: 'address', + name: "", + internalType: "contract IPILicenseTemplate", + type: "address", }, ], - stateMutability: 'view', + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_POLICY_LRP', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ROYALTY_POLICY_LRP", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'WIP', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "WIP", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, { - name: 'royaltyShares', - internalType: 'struct WorkflowStructs.RoyaltyShare[]', - type: 'tuple[]', + name: "royaltyShares", + internalType: "struct WorkflowStructs.RoyaltyShare[]", + type: "tuple[]", components: [ - { name: 'recipient', internalType: 'address', type: 'address' }, - { name: 'percentage', internalType: 'uint32', type: 'uint32' }, + { name: "recipient", internalType: "address", type: "address" }, + { name: "percentage", internalType: "uint32", type: "uint32" }, ], }, { - name: 'sigApproveRoyaltyTokens', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigApproveRoyaltyTokens", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'distributeRoyaltyTokens', + name: "distributeRoyaltyTokens", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'recipient', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "recipient", internalType: "address", type: "address" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'licenseTermsData', - internalType: 'struct WorkflowStructs.LicenseTermsData[]', - type: 'tuple[]', + name: "licenseTermsData", + internalType: "struct WorkflowStructs.LicenseTermsData[]", + type: "tuple[]", components: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, + { name: "transferable", internalType: "bool", type: "bool" }, { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, { - name: 'commercialAttribution', - internalType: 'bool', - type: 'bool', + name: "commercialAttribution", + internalType: "bool", + type: "bool", }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, { - name: 'derivativesAllowed', - internalType: 'bool', - type: 'bool', + name: "derivativesAllowed", + internalType: "bool", + type: "bool", }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, { - name: 'derivativesApproval', - internalType: 'bool', - type: 'bool', + name: "derivativesApproval", + internalType: "bool", + type: "bool", }, { - name: 'derivativesReciprocal', - internalType: 'bool', - type: 'bool', + name: "derivativesReciprocal", + internalType: "bool", + type: "bool", }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, { - name: 'royaltyShares', - internalType: 'struct WorkflowStructs.RoyaltyShare[]', - type: 'tuple[]', + name: "royaltyShares", + internalType: "struct WorkflowStructs.RoyaltyShare[]", + type: "tuple[]", components: [ - { name: 'recipient', internalType: 'address', type: 'address' }, - { name: 'percentage', internalType: 'uint32', type: 'uint32' }, + { name: "recipient", internalType: "address", type: "address" }, + { name: "percentage", internalType: "uint32", type: "uint32" }, ], }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens', + name: "mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'recipient', internalType: 'address', type: 'address' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "recipient", internalType: "address", type: "address" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'derivData', - internalType: 'struct WorkflowStructs.MakeDerivative', - type: 'tuple', + name: "derivData", + internalType: "struct WorkflowStructs.MakeDerivative", + type: "tuple", components: [ - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, { - name: 'licenseTermsIds', - internalType: 'uint256[]', - type: 'uint256[]', + name: "licenseTermsIds", + internalType: "uint256[]", + type: "uint256[]", }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], }, { - name: 'royaltyShares', - internalType: 'struct WorkflowStructs.RoyaltyShare[]', - type: 'tuple[]', + name: "royaltyShares", + internalType: "struct WorkflowStructs.RoyaltyShare[]", + type: "tuple[]", components: [ - { name: 'recipient', internalType: 'address', type: 'address' }, - { name: 'percentage', internalType: 'uint32', type: 'uint32' }, + { name: "recipient", internalType: "address", type: "address" }, + { name: "percentage", internalType: "uint32", type: "uint32" }, ], }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens', + name: "mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'bytes', type: 'bytes' }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "address", type: "address" }, + { name: "", internalType: "uint256", type: "uint256" }, + { name: "", internalType: "bytes", type: "bytes" }, ], - name: 'onERC721Received', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'nonpayable', + name: "onERC721Received", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'licenseTermsData', - internalType: 'struct WorkflowStructs.LicenseTermsData[]', - type: 'tuple[]', + name: "licenseTermsData", + internalType: "struct WorkflowStructs.LicenseTermsData[]", + type: "tuple[]", components: [ { - name: 'terms', - internalType: 'struct PILTerms', - type: 'tuple', + name: "terms", + internalType: "struct PILTerms", + type: "tuple", components: [ - { name: 'transferable', internalType: 'bool', type: 'bool' }, + { name: "transferable", internalType: "bool", type: "bool" }, { - name: 'royaltyPolicy', - internalType: 'address', - type: 'address', + name: "royaltyPolicy", + internalType: "address", + type: "address", }, { - name: 'defaultMintingFee', - internalType: 'uint256', - type: 'uint256', + name: "defaultMintingFee", + internalType: "uint256", + type: "uint256", }, - { name: 'expiration', internalType: 'uint256', type: 'uint256' }, - { name: 'commercialUse', internalType: 'bool', type: 'bool' }, + { name: "expiration", internalType: "uint256", type: "uint256" }, + { name: "commercialUse", internalType: "bool", type: "bool" }, { - name: 'commercialAttribution', - internalType: 'bool', - type: 'bool', + name: "commercialAttribution", + internalType: "bool", + type: "bool", }, { - name: 'commercializerChecker', - internalType: 'address', - type: 'address', + name: "commercializerChecker", + internalType: "address", + type: "address", }, { - name: 'commercializerCheckerData', - internalType: 'bytes', - type: 'bytes', + name: "commercializerCheckerData", + internalType: "bytes", + type: "bytes", }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, { - name: 'commercialRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "commercialRevCeiling", + internalType: "uint256", + type: "uint256", }, { - name: 'derivativesAllowed', - internalType: 'bool', - type: 'bool', + name: "derivativesAllowed", + internalType: "bool", + type: "bool", }, { - name: 'derivativesAttribution', - internalType: 'bool', - type: 'bool', + name: "derivativesAttribution", + internalType: "bool", + type: "bool", }, { - name: 'derivativesApproval', - internalType: 'bool', - type: 'bool', + name: "derivativesApproval", + internalType: "bool", + type: "bool", }, { - name: 'derivativesReciprocal', - internalType: 'bool', - type: 'bool', + name: "derivativesReciprocal", + internalType: "bool", + type: "bool", }, { - name: 'derivativeRevCeiling', - internalType: 'uint256', - type: 'uint256', + name: "derivativeRevCeiling", + internalType: "uint256", + type: "uint256", }, - { name: 'currency', internalType: 'address', type: 'address' }, - { name: 'uri', internalType: 'string', type: 'string' }, + { name: "currency", internalType: "address", type: "address" }, + { name: "uri", internalType: "string", type: "string" }, ], }, { - name: 'licensingConfig', - internalType: 'struct Licensing.LicensingConfig', - type: 'tuple', + name: "licensingConfig", + internalType: "struct Licensing.LicensingConfig", + type: "tuple", components: [ - { name: 'isSet', internalType: 'bool', type: 'bool' }, - { name: 'mintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "isSet", internalType: "bool", type: "bool" }, + { name: "mintingFee", internalType: "uint256", type: "uint256" }, { - name: 'licensingHook', - internalType: 'address', - type: 'address', + name: "licensingHook", + internalType: "address", + type: "address", }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "hookData", internalType: "bytes", type: "bytes" }, { - name: 'commercialRevShare', - internalType: 'uint32', - type: 'uint32', + name: "commercialRevShare", + internalType: "uint32", + type: "uint32", }, - { name: 'disabled', internalType: 'bool', type: 'bool' }, + { name: "disabled", internalType: "bool", type: "bool" }, { - name: 'expectMinimumGroupRewardShare', - internalType: 'uint32', - type: 'uint32', + name: "expectMinimumGroupRewardShare", + internalType: "uint32", + type: "uint32", }, { - name: 'expectGroupRewardPool', - internalType: 'address', - type: 'address', + name: "expectGroupRewardPool", + internalType: "address", + type: "address", }, ], }, ], }, { - name: 'sigMetadataAndAttachAndConfig', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndAttachAndConfig", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndAttachPILTermsAndDeployRoyaltyVault', + name: "registerIpAndAttachPILTermsAndDeployRoyaltyVault", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'licenseTermsIds', internalType: 'uint256[]', type: 'uint256[]' }, - { name: 'ipRoyaltyVault', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "licenseTermsIds", internalType: "uint256[]", type: "uint256[]" }, + { name: "ipRoyaltyVault", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'nftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "nftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, { - name: 'ipMetadata', - internalType: 'struct WorkflowStructs.IPMetadata', - type: 'tuple', + name: "ipMetadata", + internalType: "struct WorkflowStructs.IPMetadata", + type: "tuple", components: [ - { name: 'ipMetadataURI', internalType: 'string', type: 'string' }, - { name: 'ipMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "ipMetadataURI", internalType: "string", type: "string" }, + { name: "ipMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], }, { - name: 'derivData', - internalType: 'struct WorkflowStructs.MakeDerivative', - type: 'tuple', + name: "derivData", + internalType: "struct WorkflowStructs.MakeDerivative", + type: "tuple", components: [ - { name: 'parentIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, + { name: "parentIpIds", internalType: "address[]", type: "address[]" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, { - name: 'licenseTermsIds', - internalType: 'uint256[]', - type: 'uint256[]', + name: "licenseTermsIds", + internalType: "uint256[]", + type: "uint256[]", }, - { name: 'royaltyContext', internalType: 'bytes', type: 'bytes' }, - { name: 'maxMintingFee', internalType: 'uint256', type: 'uint256' }, - { name: 'maxRts', internalType: 'uint32', type: 'uint32' }, - { name: 'maxRevenueShare', internalType: 'uint32', type: 'uint32' }, + { name: "royaltyContext", internalType: "bytes", type: "bytes" }, + { name: "maxMintingFee", internalType: "uint256", type: "uint256" }, + { name: "maxRts", internalType: "uint32", type: "uint32" }, + { name: "maxRevenueShare", internalType: "uint32", type: "uint32" }, ], }, { - name: 'sigMetadataAndRegister', - internalType: 'struct WorkflowStructs.SignatureData', - type: 'tuple', + name: "sigMetadataAndRegister", + internalType: "struct WorkflowStructs.SignatureData", + type: "tuple", components: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'signature', internalType: 'bytes', type: 'bytes' }, + { name: "signer", internalType: "address", type: "address" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "signature", internalType: "bytes", type: "bytes" }, ], }, ], - name: 'registerIpAndMakeDerivativeAndDeployRoyaltyVault', + name: "registerIpAndMakeDerivativeAndDeployRoyaltyVault", outputs: [ - { name: 'ipId', internalType: 'address', type: 'address' }, - { name: 'ipRoyaltyVault', internalType: 'address', type: 'address' }, + { name: "ipId", internalType: "address", type: "address" }, + { name: "ipRoyaltyVault", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xa38f42B8d33809917f23997B8423054aAB97322C) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xa38f42B8d33809917f23997B8423054aAB97322C) */ export const royaltyTokenDistributionWorkflowsAddress = { - 1315: '0xa38f42B8d33809917f23997B8423054aAB97322C', - 1514: '0xa38f42B8d33809917f23997B8423054aAB97322C', -} as const + 1315: "0xa38f42B8d33809917f23997B8423054aAB97322C", + 1514: "0xa38f42B8d33809917f23997B8423054aAB97322C", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xa38f42B8d33809917f23997B8423054aAB97322C) @@ -13606,7 +13246,7 @@ export const royaltyTokenDistributionWorkflowsAddress = { export const royaltyTokenDistributionWorkflowsConfig = { address: royaltyTokenDistributionWorkflowsAddress, abi: royaltyTokenDistributionWorkflowsAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyWorkflows @@ -13618,189 +13258,177 @@ export const royaltyTokenDistributionWorkflowsConfig = { */ export const royaltyWorkflowsAbi = [ { - type: 'constructor', - inputs: [ - { name: 'royaltyModule', internalType: 'address', type: 'address' }, - ], - stateMutability: 'nonpayable', + type: "constructor", + inputs: [{ name: "royaltyModule", internalType: "address", type: "address" }], + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'authority', internalType: 'address', type: 'address' }], - name: 'AccessManagedInvalidAuthority', + type: "error", + inputs: [{ name: "authority", internalType: "address", type: "address" }], + name: "AccessManagedInvalidAuthority", }, { - type: 'error', + type: "error", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'delay', internalType: 'uint32', type: 'uint32' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "delay", internalType: "uint32", type: "uint32" }, ], - name: 'AccessManagedRequiredDelay', + name: "AccessManagedRequiredDelay", }, { - type: 'error', - inputs: [{ name: 'caller', internalType: 'address', type: 'address' }], - name: 'AccessManagedUnauthorized', + type: "error", + inputs: [{ name: "caller", internalType: "address", type: "address" }], + name: "AccessManagedUnauthorized", }, { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', + type: "error", + inputs: [{ name: "target", internalType: "address", type: "address" }], + name: "AddressEmptyCode", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'ERC1967InvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "ERC1967InvalidImplementation", }, - { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, - { type: 'error', inputs: [], name: 'FailedCall' }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'RoyaltyWorkflows__ZeroAddressParam' }, - { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, + { type: "error", inputs: [], name: "ERC1967NonPayable" }, + { type: "error", inputs: [], name: "FailedCall" }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "RoyaltyWorkflows__ZeroAddressParam" }, + { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" }, { - type: 'error', - inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], - name: 'UUPSUnsupportedProxiableUUID', + type: "error", + inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }], + name: "UUPSUnsupportedProxiableUUID", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'authority', - internalType: 'address', - type: 'address', + name: "authority", + internalType: "address", + type: "address", indexed: false, }, ], - name: 'AuthorityUpdated', + name: "AuthorityUpdated", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_MODULE', - outputs: [ - { name: '', internalType: 'contract IRoyaltyModule', type: 'address' }, - ], - stateMutability: 'view', + name: "ROYALTY_MODULE", + outputs: [{ name: "", internalType: "contract IRoyaltyModule", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'UPGRADE_INTERFACE_VERSION', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "UPGRADE_INTERFACE_VERSION", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'authority', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "authority", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'ancestorIpId', internalType: 'address', type: 'address' }, - { name: 'claimer', internalType: 'address', type: 'address' }, - { name: 'childIpIds', internalType: 'address[]', type: 'address[]' }, - { name: 'royaltyPolicies', internalType: 'address[]', type: 'address[]' }, - { name: 'currencyTokens', internalType: 'address[]', type: 'address[]' }, - ], - name: 'claimAllRevenue', - outputs: [ - { name: 'amountsClaimed', internalType: 'uint256[]', type: 'uint256[]' }, + { name: "ancestorIpId", internalType: "address", type: "address" }, + { name: "claimer", internalType: "address", type: "address" }, + { name: "childIpIds", internalType: "address[]", type: "address[]" }, + { name: "royaltyPolicies", internalType: "address[]", type: "address[]" }, + { name: "currencyTokens", internalType: "address[]", type: "address[]" }, ], - stateMutability: 'nonpayable', + name: "claimAllRevenue", + outputs: [{ name: "amountsClaimed", internalType: "uint256[]", type: "uint256[]" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'accessManager', internalType: 'address', type: 'address' }, - ], - name: 'initialize', + type: "function", + inputs: [{ name: "accessManager", internalType: "address", type: "address" }], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'isConsumingScheduledOp', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - stateMutability: 'view', + name: "isConsumingScheduledOp", + outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }], - stateMutability: 'nonpayable', + type: "function", + inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }], + name: "multicall", + outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'proxiableUUID', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "proxiableUUID", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'newAuthority', internalType: 'address', type: 'address' }, - ], - name: 'setAuthority', + type: "function", + inputs: [{ name: "newAuthority", internalType: "address", type: "address" }], + name: "setAuthority", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "newImplementation", internalType: "address", type: "address" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'upgradeToAndCall', + name: "upgradeToAndCall", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890) */ export const royaltyWorkflowsAddress = { - 1315: '0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890', - 1514: '0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890', -} as const + 1315: "0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890", + 1514: "0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x9515faE61E0c0447C6AC6dEe5628A2097aFE1890) @@ -13809,7 +13437,7 @@ export const royaltyWorkflowsAddress = { export const royaltyWorkflowsConfig = { address: royaltyWorkflowsAddress, abi: royaltyWorkflowsAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SPGNFTBeacon @@ -13821,109 +13449,105 @@ export const royaltyWorkflowsConfig = { */ export const spgnftBeaconAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'implementation_', internalType: 'address', type: 'address' }, - { name: 'initialOwner', internalType: 'address', type: 'address' }, + { name: "implementation_", internalType: "address", type: "address" }, + { name: "initialOwner", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [ - { name: 'implementation', internalType: 'address', type: 'address' }, - ], - name: 'BeaconInvalidImplementation', + type: "error", + inputs: [{ name: "implementation", internalType: "address", type: "address" }], + name: "BeaconInvalidImplementation", }, { - type: 'error', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'OwnableInvalidOwner', + type: "error", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "OwnableInvalidOwner", }, { - type: 'error', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'OwnableUnauthorizedAccount', + type: "error", + inputs: [{ name: "account", internalType: "address", type: "address" }], + name: "OwnableUnauthorizedAccount", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'previousOwner', - internalType: 'address', - type: 'address', + name: "previousOwner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'newOwner', - internalType: 'address', - type: 'address', + name: "newOwner", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'OwnershipTransferred', + name: "OwnershipTransferred", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'implementation', - internalType: 'address', - type: 'address', + name: "implementation", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'Upgraded', + name: "Upgraded", }, { - type: 'function', + type: "function", inputs: [], - name: 'implementation', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "implementation", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'owner', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "owner", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'renounceOwnership', + name: "renounceOwnership", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], - name: 'transferOwnership', + type: "function", + inputs: [{ name: "newOwner", internalType: "address", type: "address" }], + name: "transferOwnership", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newImplementation', internalType: 'address', type: 'address' }, - ], - name: 'upgradeTo', + type: "function", + inputs: [{ name: "newImplementation", internalType: "address", type: "address" }], + name: "upgradeTo", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218) */ export const spgnftBeaconAddress = { - 1315: '0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218', - 1514: '0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218', -} as const + 1315: "0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218", + 1514: "0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xD2926B9ecaE85fF59B6FB0ff02f568a680c01218) @@ -13932,7 +13556,7 @@ export const spgnftBeaconAddress = { export const spgnftBeaconConfig = { address: spgnftBeaconAddress, abi: spgnftBeaconAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SPGNFTImpl @@ -13944,682 +13568,678 @@ export const spgnftBeaconConfig = { */ export const spgnftImplAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'derivativeWorkflows', internalType: 'address', type: 'address' }, - { name: 'groupingWorkflows', internalType: 'address', type: 'address' }, + { name: "derivativeWorkflows", internalType: "address", type: "address" }, + { name: "groupingWorkflows", internalType: "address", type: "address" }, { - name: 'licenseAttachmentWorkflows', - internalType: 'address', - type: 'address', + name: "licenseAttachmentWorkflows", + internalType: "address", + type: "address", }, { - name: 'registrationWorkflows', - internalType: 'address', - type: 'address', + name: "registrationWorkflows", + internalType: "address", + type: "address", }, { - name: 'royaltyTokenDistributionWorkflows', - internalType: 'address', - type: 'address', + name: "royaltyTokenDistributionWorkflows", + internalType: "address", + type: "address", }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, - { type: 'error', inputs: [], name: 'AccessControlBadConfirmation' }, + { type: "error", inputs: [], name: "AccessControlBadConfirmation" }, { - type: 'error', + type: "error", inputs: [ - { name: 'account', internalType: 'address', type: 'address' }, - { name: 'neededRole', internalType: 'bytes32', type: 'bytes32' }, + { name: "account", internalType: "address", type: "address" }, + { name: "neededRole", internalType: "bytes32", type: "bytes32" }, ], - name: 'AccessControlUnauthorizedAccount', + name: "AccessControlUnauthorizedAccount", }, { - type: 'error', + type: "error", inputs: [ - { name: 'sender', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'owner', internalType: 'address', type: 'address' }, + { name: "sender", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "owner", internalType: "address", type: "address" }, ], - name: 'ERC721IncorrectOwner', + name: "ERC721IncorrectOwner", }, { - type: 'error', + type: "error", inputs: [ - { name: 'operator', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "operator", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'ERC721InsufficientApproval', + name: "ERC721InsufficientApproval", }, { - type: 'error', - inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidApprover', + type: "error", + inputs: [{ name: "approver", internalType: "address", type: "address" }], + name: "ERC721InvalidApprover", }, { - type: 'error', - inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidOperator', + type: "error", + inputs: [{ name: "operator", internalType: "address", type: "address" }], + name: "ERC721InvalidOperator", }, { - type: 'error', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidOwner', + type: "error", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "ERC721InvalidOwner", }, { - type: 'error', - inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidReceiver', + type: "error", + inputs: [{ name: "receiver", internalType: "address", type: "address" }], + name: "ERC721InvalidReceiver", }, { - type: 'error', - inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], - name: 'ERC721InvalidSender', + type: "error", + inputs: [{ name: "sender", internalType: "address", type: "address" }], + name: "ERC721InvalidSender", }, { - type: 'error', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'ERC721NonexistentToken', + type: "error", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "ERC721NonexistentToken", }, - { type: 'error', inputs: [], name: 'InvalidInitialization' }, - { type: 'error', inputs: [], name: 'NotInitializing' }, - { type: 'error', inputs: [], name: 'SPGNFT__CallerNotFeeRecipientOrAdmin' }, + { type: "error", inputs: [], name: "InvalidInitialization" }, + { type: "error", inputs: [], name: "NotInitializing" }, + { type: "error", inputs: [], name: "SPGNFT__CallerNotFeeRecipientOrAdmin" }, { - type: 'error', + type: "error", inputs: [ - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'owner', internalType: 'address', type: 'address' }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "caller", internalType: "address", type: "address" }, + { name: "owner", internalType: "address", type: "address" }, ], - name: 'SPGNFT__CallerNotOwner', + name: "SPGNFT__CallerNotOwner", }, - { type: 'error', inputs: [], name: 'SPGNFT__CallerNotPeripheryContract' }, + { type: "error", inputs: [], name: "SPGNFT__CallerNotPeripheryContract" }, { - type: 'error', + type: "error", inputs: [ - { name: 'spgNftContract', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, + { name: "spgNftContract", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, ], - name: 'SPGNFT__DuplicatedNFTMetadataHash', + name: "SPGNFT__DuplicatedNFTMetadataHash", }, - { type: 'error', inputs: [], name: 'SPGNFT__MaxSupplyReached' }, - { type: 'error', inputs: [], name: 'SPGNFT__MintingClosed' }, - { type: 'error', inputs: [], name: 'SPGNFT__MintingDenied' }, - { type: 'error', inputs: [], name: 'SPGNFT__ZeroAddressParam' }, - { type: 'error', inputs: [], name: 'SPGNFT__ZeroMaxSupply' }, + { type: "error", inputs: [], name: "SPGNFT__MaxSupplyReached" }, + { type: "error", inputs: [], name: "SPGNFT__MintingClosed" }, + { type: "error", inputs: [], name: "SPGNFT__MintingDenied" }, + { type: "error", inputs: [], name: "SPGNFT__ZeroAddressParam" }, + { type: "error", inputs: [], name: "SPGNFT__ZeroMaxSupply" }, { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: "error", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "SafeERC20FailedOperation", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'approved', - internalType: 'address', - type: 'address', + name: "approved", + internalType: "address", + type: "address", indexed: true, }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: true, }, ], - name: 'Approval', + name: "Approval", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'operator', - internalType: 'address', - type: 'address', + name: "operator", + internalType: "address", + type: "address", indexed: true, }, - { name: 'approved', internalType: 'bool', type: 'bool', indexed: false }, + { name: "approved", internalType: "bool", type: "bool", indexed: false }, ], - name: 'ApprovalForAll', + name: "ApprovalForAll", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: '_fromTokenId', - internalType: 'uint256', - type: 'uint256', + name: "_fromTokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, { - name: '_toTokenId', - internalType: 'uint256', - type: 'uint256', + name: "_toTokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'BatchMetadataUpdate', + name: "BatchMetadataUpdate", }, - { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' }, + { type: "event", anonymous: false, inputs: [], name: "ContractURIUpdated" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint64', - type: 'uint64', + name: "version", + internalType: "uint64", + type: "uint64", indexed: false, }, ], - name: 'Initialized', + name: "Initialized", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: '_tokenId', - internalType: 'uint256', - type: 'uint256', + name: "_tokenId", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'MetadataUpdate', + name: "MetadataUpdate", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, + { name: "role", internalType: "bytes32", type: "bytes32", indexed: true }, { - name: 'previousAdminRole', - internalType: 'bytes32', - type: 'bytes32', + name: "previousAdminRole", + internalType: "bytes32", + type: "bytes32", indexed: true, }, { - name: 'newAdminRole', - internalType: 'bytes32', - type: 'bytes32', + name: "newAdminRole", + internalType: "bytes32", + type: "bytes32", indexed: true, }, ], - name: 'RoleAdminChanged', + name: "RoleAdminChanged", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, + { name: "role", internalType: "bytes32", type: "bytes32", indexed: true }, { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: true, }, { - name: 'sender', - internalType: 'address', - type: 'address', + name: "sender", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'RoleGranted', + name: "RoleGranted", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, + { name: "role", internalType: "bytes32", type: "bytes32", indexed: true }, { - name: 'account', - internalType: 'address', - type: 'address', + name: "account", + internalType: "address", + type: "address", indexed: true, }, { - name: 'sender', - internalType: 'address', - type: 'address', + name: "sender", + internalType: "address", + type: "address", indexed: true, }, ], - name: 'RoleRevoked', + name: "RoleRevoked", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "from", internalType: "address", type: "address", indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'tokenId', - internalType: 'uint256', - type: 'uint256', + name: "tokenId", + internalType: "uint256", + type: "uint256", indexed: true, }, ], - name: 'Transfer', + name: "Transfer", }, { - type: 'function', + type: "function", inputs: [], - name: 'DEFAULT_ADMIN_ROLE', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "DEFAULT_ADMIN_ROLE", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'DERIVATIVE_WORKFLOWS_ADDRESS', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "DERIVATIVE_WORKFLOWS_ADDRESS", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'GROUPING_WORKFLOWS_ADDRESS', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "GROUPING_WORKFLOWS_ADDRESS", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_ATTACHMENT_WORKFLOWS_ADDRESS', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "LICENSE_ATTACHMENT_WORKFLOWS_ADDRESS", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'REGISTRATION_WORKFLOWS_ADDRESS', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "REGISTRATION_WORKFLOWS_ADDRESS", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'ROYALTY_TOKEN_DISTRIBUTION_WORKFLOWS_ADDRESS', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "ROYALTY_TOKEN_DISTRIBUTION_WORKFLOWS_ADDRESS", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'approve', + name: "approve", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "balanceOf", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'baseURI', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "baseURI", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'contractURI', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "contractURI", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'getApproved', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "getApproved", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }], - name: 'getRoleAdmin', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }], + name: "getRoleAdmin", + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', - inputs: [ - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - ], - name: 'getTokenIdByMetadataHash', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }], + name: "getTokenIdByMetadataHash", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'account', internalType: 'address', type: 'address' }, + { name: "role", internalType: "bytes32", type: "bytes32" }, + { name: "account", internalType: "address", type: "address" }, ], - name: 'grantRole', + name: "grantRole", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'account', internalType: 'address', type: 'address' }, + { name: "role", internalType: "bytes32", type: "bytes32" }, + { name: "account", internalType: "address", type: "address" }, ], - name: 'hasRole', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "hasRole", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ { - name: 'initParams', - internalType: 'struct ISPGNFT.InitParams', - type: 'tuple', + name: "initParams", + internalType: "struct ISPGNFT.InitParams", + type: "tuple", components: [ - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'symbol', internalType: 'string', type: 'string' }, - { name: 'baseURI', internalType: 'string', type: 'string' }, - { name: 'contractURI', internalType: 'string', type: 'string' }, - { name: 'maxSupply', internalType: 'uint32', type: 'uint32' }, - { name: 'mintFee', internalType: 'uint256', type: 'uint256' }, - { name: 'mintFeeToken', internalType: 'address', type: 'address' }, + { name: "name", internalType: "string", type: "string" }, + { name: "symbol", internalType: "string", type: "string" }, + { name: "baseURI", internalType: "string", type: "string" }, + { name: "contractURI", internalType: "string", type: "string" }, + { name: "maxSupply", internalType: "uint32", type: "uint32" }, + { name: "mintFee", internalType: "uint256", type: "uint256" }, + { name: "mintFeeToken", internalType: "address", type: "address" }, { - name: 'mintFeeRecipient', - internalType: 'address', - type: 'address', + name: "mintFeeRecipient", + internalType: "address", + type: "address", }, - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'mintOpen', internalType: 'bool', type: 'bool' }, - { name: 'isPublicMinting', internalType: 'bool', type: 'bool' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "mintOpen", internalType: "bool", type: "bool" }, + { name: "isPublicMinting", internalType: "bool", type: "bool" }, ], }, ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'operator', internalType: 'address', type: 'address' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "operator", internalType: "address", type: "address" }, ], - name: 'isApprovedForAll', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "isApprovedForAll", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "to", internalType: "address", type: "address" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mint', - outputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "mint", + outputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'payer', internalType: 'address', type: 'address' }, - { name: 'nftMetadataURI', internalType: 'string', type: 'string' }, - { name: 'nftMetadataHash', internalType: 'bytes32', type: 'bytes32' }, - { name: 'allowDuplicates', internalType: 'bool', type: 'bool' }, + { name: "to", internalType: "address", type: "address" }, + { name: "payer", internalType: "address", type: "address" }, + { name: "nftMetadataURI", internalType: "string", type: "string" }, + { name: "nftMetadataHash", internalType: "bytes32", type: "bytes32" }, + { name: "allowDuplicates", internalType: "bool", type: "bool" }, ], - name: 'mintByPeriphery', - outputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "mintByPeriphery", + outputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'mintFee', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "mintFee", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'mintFeeRecipient', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "mintFeeRecipient", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'mintFeeToken', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + name: "mintFeeToken", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'mintOpen', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "mintOpen", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'ownerOf', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "ownerOf", + outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'publicMinting', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: "publicMinting", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'callerConfirmation', internalType: 'address', type: 'address' }, + { name: "role", internalType: "bytes32", type: "bytes32" }, + { name: "callerConfirmation", internalType: "address", type: "address" }, ], - name: 'renounceRole', + name: "renounceRole", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'account', internalType: 'address', type: 'address' }, + { name: "role", internalType: "bytes32", type: "bytes32" }, + { name: "account", internalType: "address", type: "address" }, ], - name: 'revokeRole', + name: "revokeRole", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'safeTransferFrom', + name: "safeTransferFrom", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'data', internalType: 'bytes', type: 'bytes' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "data", internalType: "bytes", type: "bytes" }, ], - name: 'safeTransferFrom', + name: "safeTransferFrom", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'operator', internalType: 'address', type: 'address' }, - { name: 'approved', internalType: 'bool', type: 'bool' }, + { name: "operator", internalType: "address", type: "address" }, + { name: "approved", internalType: "bool", type: "bool" }, ], - name: 'setApprovalForAll', + name: "setApprovalForAll", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'baseURI', internalType: 'string', type: 'string' }], - name: 'setBaseURI', + type: "function", + inputs: [{ name: "baseURI", internalType: "string", type: "string" }], + name: "setBaseURI", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'contractURI', internalType: 'string', type: 'string' }], - name: 'setContractURI', + type: "function", + inputs: [{ name: "contractURI", internalType: "string", type: "string" }], + name: "setContractURI", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }], - name: 'setMintFee', + type: "function", + inputs: [{ name: "fee", internalType: "uint256", type: "uint256" }], + name: "setMintFee", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [ - { name: 'newFeeRecipient', internalType: 'address', type: 'address' }, - ], - name: 'setMintFeeRecipient', + type: "function", + inputs: [{ name: "newFeeRecipient", internalType: "address", type: "address" }], + name: "setMintFeeRecipient", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'setMintFeeToken', + type: "function", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "setMintFeeToken", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'mintOpen', internalType: 'bool', type: 'bool' }], - name: 'setMintOpen', + type: "function", + inputs: [{ name: "mintOpen", internalType: "bool", type: "bool" }], + name: "setMintOpen", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'isPublicMinting', internalType: 'bool', type: 'bool' }], - name: 'setPublicMinting', + type: "function", + inputs: [{ name: "isPublicMinting", internalType: "bool", type: "bool" }], + name: "setPublicMinting", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, - { name: 'tokenUri', internalType: 'string', type: 'string' }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, + { name: "tokenUri", internalType: "string", type: "string" }, ], - name: 'setTokenURI', + name: "setTokenURI", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'symbol', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "symbol", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], - name: 'tokenURI', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }], + name: "tokenURI", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalSupply", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "tokenId", internalType: "uint256", type: "uint256" }, ], - name: 'transferFrom', + name: "transferFrom", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'withdrawToken', + type: "function", + inputs: [{ name: "token", internalType: "address", type: "address" }], + name: "withdrawToken", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x5266215a00c31AaA2f2BB7b951Ea0028Ea8b4e37) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x6Cfa03Bc64B1a76206d0Ea10baDed31D520449F5) */ export const spgnftImplAddress = { - 1315: '0x5266215a00c31AaA2f2BB7b951Ea0028Ea8b4e37', - 1514: '0x6Cfa03Bc64B1a76206d0Ea10baDed31D520449F5', -} as const + 1315: "0x5266215a00c31AaA2f2BB7b951Ea0028Ea8b4e37", + 1514: "0x6Cfa03Bc64B1a76206d0Ea10baDed31D520449F5", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x5266215a00c31AaA2f2BB7b951Ea0028Ea8b4e37) @@ -14628,7 +14248,7 @@ export const spgnftImplAddress = { export const spgnftImplConfig = { address: spgnftImplAddress, abi: spgnftImplAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // TotalLicenseTokenLimitHook @@ -14640,217 +14260,205 @@ export const spgnftImplConfig = { */ export const totalLicenseTokenLimitHookAbi = [ { - type: 'constructor', + type: "constructor", inputs: [ - { name: 'licenseRegistry', internalType: 'address', type: 'address' }, - { name: 'licenseToken', internalType: 'address', type: 'address' }, - { name: 'accessController', internalType: 'address', type: 'address' }, - { name: 'ipAssetRegistry', internalType: 'address', type: 'address' }, + { name: "licenseRegistry", internalType: "address", type: "address" }, + { name: "licenseToken", internalType: "address", type: "address" }, + { name: "accessController", internalType: "address", type: "address" }, + { name: "ipAssetRegistry", internalType: "address", type: "address" }, ], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'error', - inputs: [{ name: 'ipAccount', internalType: 'address', type: 'address' }], - name: 'AccessControlled__NotIpAccount', + type: "error", + inputs: [{ name: "ipAccount", internalType: "address", type: "address" }], + name: "AccessControlled__NotIpAccount", }, - { type: 'error', inputs: [], name: 'AccessControlled__ZeroAddress' }, + { type: "error", inputs: [], name: "AccessControlled__ZeroAddress" }, { - type: 'error', + type: "error", inputs: [ - { name: 'totalSupply', internalType: 'uint256', type: 'uint256' }, - { name: 'limit', internalType: 'uint256', type: 'uint256' }, + { name: "totalSupply", internalType: "uint256", type: "uint256" }, + { name: "limit", internalType: "uint256", type: "uint256" }, ], - name: 'TotalLicenseTokenLimitHook_LimitLowerThanTotalSupply', + name: "TotalLicenseTokenLimitHook_LimitLowerThanTotalSupply", }, { - type: 'error', + type: "error", inputs: [ - { name: 'totalSupply', internalType: 'uint256', type: 'uint256' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - { name: 'limit', internalType: 'uint256', type: 'uint256' }, + { name: "totalSupply", internalType: "uint256", type: "uint256" }, + { name: "amount", internalType: "uint256", type: "uint256" }, + { name: "limit", internalType: "uint256", type: "uint256" }, ], - name: 'TotalLicenseTokenLimitHook_TotalLicenseTokenLimitExceeded', + name: "TotalLicenseTokenLimitHook_TotalLicenseTokenLimitExceeded", }, { - type: 'error', + type: "error", inputs: [], - name: 'TotalLicenseTokenLimitHook_ZeroLicenseRegistry', + name: "TotalLicenseTokenLimitHook_ZeroLicenseRegistry", }, { - type: 'error', + type: "error", inputs: [], - name: 'TotalLicenseTokenLimitHook_ZeroLicenseToken', + name: "TotalLicenseTokenLimitHook_ZeroLicenseToken", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'licensorIpId', - internalType: 'address', - type: 'address', + name: "licensorIpId", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licenseTemplate', - internalType: 'address', - type: 'address', + name: "licenseTemplate", + internalType: "address", + type: "address", indexed: true, }, { - name: 'licenseTermsId', - internalType: 'uint256', - type: 'uint256', + name: "licenseTermsId", + internalType: "uint256", + type: "uint256", indexed: true, }, { - name: 'limit', - internalType: 'uint256', - type: 'uint256', + name: "limit", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'SetTotalLicenseTokenLimit', + name: "SetTotalLicenseTokenLimit", }, { - type: 'function', + type: "function", inputs: [], - name: 'ACCESS_CONTROLLER', - outputs: [ - { name: '', internalType: 'contract IAccessController', type: 'address' }, - ], - stateMutability: 'view', + name: "ACCESS_CONTROLLER", + outputs: [{ name: "", internalType: "contract IAccessController", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'IP_ASSET_REGISTRY', - outputs: [ - { name: '', internalType: 'contract IIPAssetRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "IP_ASSET_REGISTRY", + outputs: [{ name: "", internalType: "contract IIPAssetRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_REGISTRY', - outputs: [ - { name: '', internalType: 'contract ILicenseRegistry', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_REGISTRY", + outputs: [{ name: "", internalType: "contract ILicenseRegistry", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'LICENSE_TOKEN', - outputs: [ - { name: '', internalType: 'contract ILicenseToken', type: 'address' }, - ], - stateMutability: 'view', + name: "LICENSE_TOKEN", + outputs: [{ name: "", internalType: "contract ILicenseToken", type: "address" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - { name: 'receiver', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "amount", internalType: "uint256", type: "uint256" }, + { name: "receiver", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, ], - name: 'beforeMintLicenseTokens', - outputs: [ - { name: 'totalMintingFee', internalType: 'uint256', type: 'uint256' }, - ], - stateMutability: 'nonpayable', + name: "beforeMintLicenseTokens", + outputs: [{ name: "totalMintingFee", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'childIpId', internalType: 'address', type: 'address' }, - { name: 'parentIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "childIpId", internalType: "address", type: "address" }, + { name: "parentIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, ], - name: 'beforeRegisterDerivative', - outputs: [{ name: 'mintingFee', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'nonpayable', + name: "beforeRegisterDerivative", + outputs: [{ name: "mintingFee", internalType: "uint256", type: "uint256" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'caller', internalType: 'address', type: 'address' }, - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - { name: 'receiver', internalType: 'address', type: 'address' }, - { name: 'hookData', internalType: 'bytes', type: 'bytes' }, - ], - name: 'calculateMintingFee', - outputs: [ - { name: 'totalMintingFee', internalType: 'uint256', type: 'uint256' }, + { name: "caller", internalType: "address", type: "address" }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "amount", internalType: "uint256", type: "uint256" }, + { name: "receiver", internalType: "address", type: "address" }, + { name: "hookData", internalType: "bytes", type: "bytes" }, ], - stateMutability: 'view', + name: "calculateMintingFee", + outputs: [{ name: "totalMintingFee", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, ], - name: 'getTotalLicenseTokenLimit', - outputs: [{ name: 'limit', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "getTotalLicenseTokenLimit", + outputs: [{ name: "limit", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'licensorIpId', internalType: 'address', type: 'address' }, - { name: 'licenseTemplate', internalType: 'address', type: 'address' }, - { name: 'licenseTermsId', internalType: 'uint256', type: 'uint256' }, - { name: 'limit', internalType: 'uint256', type: 'uint256' }, + { name: "licensorIpId", internalType: "address", type: "address" }, + { name: "licenseTemplate", internalType: "address", type: "address" }, + { name: "licenseTermsId", internalType: "uint256", type: "uint256" }, + { name: "limit", internalType: "uint256", type: "uint256" }, ], - name: 'setTotalLicenseTokenLimit', + name: "setTotalLicenseTokenLimit", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }], + name: "supportsInterface", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", }, { - type: 'function', - inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - name: 'totalLicenseTokenLimit', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], + name: "totalLicenseTokenLimit", + outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, -] as const +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xaBAD364Bfa41230272b08f171E0Ca939bD600478) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0xB72C9812114a0Fc74D49e01385bd266A75960Cda) */ export const totalLicenseTokenLimitHookAddress = { - 1315: '0xaBAD364Bfa41230272b08f171E0Ca939bD600478', - 1514: '0xB72C9812114a0Fc74D49e01385bd266A75960Cda', -} as const + 1315: "0xaBAD364Bfa41230272b08f171E0Ca939bD600478", + 1514: "0xB72C9812114a0Fc74D49e01385bd266A75960Cda", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0xaBAD364Bfa41230272b08f171E0Ca939bD600478) @@ -14859,7 +14467,7 @@ export const totalLicenseTokenLimitHookAddress = { export const totalLicenseTokenLimitHookConfig = { address: totalLicenseTokenLimitHookAddress, abi: totalLicenseTokenLimitHookAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WrappedIP @@ -14870,223 +14478,223 @@ export const totalLicenseTokenLimitHookConfig = { * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x1514000000000000000000000000000000000000) */ export const wrappedIpAbi = [ - { type: 'error', inputs: [], name: 'AllowanceOverflow' }, - { type: 'error', inputs: [], name: 'AllowanceUnderflow' }, + { type: "error", inputs: [], name: "AllowanceOverflow" }, + { type: "error", inputs: [], name: "AllowanceUnderflow" }, { - type: 'error', - inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidReceiver', + type: "error", + inputs: [{ name: "receiver", internalType: "address", type: "address" }], + name: "ERC20InvalidReceiver", }, { - type: 'error', - inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSpender', + type: "error", + inputs: [{ name: "spender", internalType: "address", type: "address" }], + name: "ERC20InvalidSpender", }, - { type: 'error', inputs: [], name: 'IPTransferFailed' }, - { type: 'error', inputs: [], name: 'InsufficientAllowance' }, - { type: 'error', inputs: [], name: 'InsufficientBalance' }, - { type: 'error', inputs: [], name: 'InvalidPermit' }, - { type: 'error', inputs: [], name: 'Permit2AllowanceIsFixedAtInfinity' }, - { type: 'error', inputs: [], name: 'PermitExpired' }, - { type: 'error', inputs: [], name: 'TotalSupplyOverflow' }, + { type: "error", inputs: [], name: "IPTransferFailed" }, + { type: "error", inputs: [], name: "InsufficientAllowance" }, + { type: "error", inputs: [], name: "InsufficientBalance" }, + { type: "error", inputs: [], name: "InvalidPermit" }, + { type: "error", inputs: [], name: "Permit2AllowanceIsFixedAtInfinity" }, + { type: "error", inputs: [], name: "PermitExpired" }, + { type: "error", inputs: [], name: "TotalSupplyOverflow" }, { - type: 'event', + type: "event", anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: "owner", + internalType: "address", + type: "address", indexed: true, }, { - name: 'spender', - internalType: 'address', - type: 'address', + name: "spender", + internalType: "address", + type: "address", indexed: true, }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Approval', + name: "Approval", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, + { name: "from", internalType: "address", type: "address", indexed: true }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Deposit', + name: "Deposit", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "from", internalType: "address", type: "address", indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Transfer', + name: "Transfer", }, { - type: 'event', + type: "event", anonymous: false, inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { name: "to", internalType: "address", type: "address", indexed: true }, { - name: 'amount', - internalType: 'uint256', - type: 'uint256', + name: "amount", + internalType: "uint256", + type: "uint256", indexed: false, }, ], - name: 'Withdrawal', + name: "Withdrawal", }, { - type: 'function', + type: "function", inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ name: 'result', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', + name: "DOMAIN_SEPARATOR", + outputs: [{ name: "result", internalType: "bytes32", type: "bytes32" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'spender', internalType: 'address', type: 'address' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "spender", internalType: "address", type: "address" }, ], - name: 'allowance', - outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "allowance", + outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "spender", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'approve', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "approve", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "balanceOf", + outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'decimals', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'view', + name: "decimals", + outputs: [{ name: "", internalType: "uint8", type: "uint8" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [], - name: 'deposit', + name: "deposit", outputs: [], - stateMutability: 'payable', + stateMutability: "payable", }, { - type: 'function', + type: "function", inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'pure', + name: "name", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "pure", }, { - type: 'function', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'nonces', - outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + type: "function", + inputs: [{ name: "owner", internalType: "address", type: "address" }], + name: "nonces", + outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'v', internalType: 'uint8', type: 'uint8' }, - { name: 'r', internalType: 'bytes32', type: 'bytes32' }, - { name: 's', internalType: 'bytes32', type: 'bytes32' }, + { name: "owner", internalType: "address", type: "address" }, + { name: "spender", internalType: "address", type: "address" }, + { name: "value", internalType: "uint256", type: "uint256" }, + { name: "deadline", internalType: "uint256", type: "uint256" }, + { name: "v", internalType: "uint8", type: "uint8" }, + { name: "r", internalType: "bytes32", type: "bytes32" }, + { name: "s", internalType: "bytes32", type: "bytes32" }, ], - name: 'permit', + name: "permit", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [], - name: 'symbol', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'pure', + name: "symbol", + outputs: [{ name: "", internalType: "string", type: "string" }], + stateMutability: "pure", }, { - type: 'function', + type: "function", inputs: [], - name: 'totalSupply', - outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: "totalSupply", + outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], + stateMutability: "view", }, { - type: 'function', + type: "function", inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "to", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'transfer', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "transfer", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', + type: "function", inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: "from", internalType: "address", type: "address" }, + { name: "to", internalType: "address", type: "address" }, + { name: "amount", internalType: "uint256", type: "uint256" }, ], - name: 'transferFrom', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: "transferFrom", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "nonpayable", }, { - type: 'function', - inputs: [{ name: 'value', internalType: 'uint256', type: 'uint256' }], - name: 'withdraw', + type: "function", + inputs: [{ name: "value", internalType: "uint256", type: "uint256" }], + name: "withdraw", outputs: [], - stateMutability: 'nonpayable', + stateMutability: "nonpayable", }, - { type: 'receive', stateMutability: 'payable' }, -] as const + { type: "receive", stateMutability: "payable" }, +] as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x1514000000000000000000000000000000000000) * - [__View Contract on Story Story Explorer__](https://storyscan.xyz/address/0x1514000000000000000000000000000000000000) */ export const wrappedIpAddress = { - 1315: '0x1514000000000000000000000000000000000000', - 1514: '0x1514000000000000000000000000000000000000', -} as const + 1315: "0x1514000000000000000000000000000000000000", + 1514: "0x1514000000000000000000000000000000000000", +} as const; /** * - [__View Contract on Story Aeneid Story Aeneid Explorer__](https://aeneid.storyscan.xyz/address/0x1514000000000000000000000000000000000000) @@ -15095,7 +14703,7 @@ export const wrappedIpAddress = { export const wrappedIpConfig = { address: wrappedIpAddress, abi: wrappedIpAbi, -} as const +} as const; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SDK @@ -15103,40 +14711,26 @@ export const wrappedIpConfig = { // COMMON ============================================================= -function getAddress( - address: Record, - chainId?: number, -): Address { - return address[chainId || 0] || '0x' +function getAddress(address: Record, chainId?: number): Address { + return address[chainId || 0] || "0x"; } -export type EncodedTxData = { to: Address; data: Hex } +export type EncodedTxData = { to: Address; data: Hex }; export type SimpleWalletClient< TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined, > = { - account?: TAccount + account?: TAccount; writeContract: < const abi extends Abi | readonly unknown[], - functionName extends ContractFunctionName, - args extends ContractFunctionArgs< - abi, - 'payable' | 'nonpayable', - functionName - >, + functionName extends ContractFunctionName, + args extends ContractFunctionArgs, TChainOverride extends Chain | undefined = undefined, >( - args: WriteContractParameters< - abi, - functionName, - args, - TChain, - TAccount, - TChainOverride - >, - ) => Promise -} + args: WriteContractParameters, + ) => Promise; +}; // Contract AccessController ============================================================= @@ -15151,13 +14745,13 @@ export type SimpleWalletClient< * @param permission uint8 */ export type AccessControllerPermissionSetEvent = { - ipAccountOwner: Address - ipAccount: Address - signer: Address - to: Address - func: Hex - permission: number -} + ipAccountOwner: Address; + ipAccount: Address; + signer: Address; + to: Address; + func: Hex; + permission: number; +}; /** * AccessControllerSetAllPermissionsRequest @@ -15167,10 +14761,10 @@ export type AccessControllerPermissionSetEvent = { * @param permission uint8 */ export type AccessControllerSetAllPermissionsRequest = { - ipAccount: Address - signer: Address - permission: number -} + ipAccount: Address; + signer: Address; + permission: number; +}; /** * AccessControllerSetBatchPermissionsRequest @@ -15179,13 +14773,13 @@ export type AccessControllerSetAllPermissionsRequest = { */ export type AccessControllerSetBatchPermissionsRequest = { permissions: { - ipAccount: Address - signer: Address - to: Address - func: Hex - permission: number - }[] -} + ipAccount: Address; + signer: Address; + to: Address; + func: Hex; + permission: number; + }[]; +}; /** * AccessControllerSetPermissionRequest @@ -15197,43 +14791,39 @@ export type AccessControllerSetBatchPermissionsRequest = { * @param permission uint8 */ export type AccessControllerSetPermissionRequest = { - ipAccount: Address - signer: Address - to: Address - func: Hex - permission: number -} + ipAccount: Address; + signer: Address; + to: Address; + func: Hex; + permission: number; +}; /** * contract AccessController event */ export class AccessControllerEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(accessControllerAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(accessControllerAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event PermissionSet for contract AccessController */ public watchPermissionSetEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: accessControllerAbi, address: this.address, - eventName: 'PermissionSet', + eventName: "PermissionSet", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -15242,23 +14832,23 @@ export class AccessControllerEventClient { public parseTxPermissionSetEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: accessControllerAbi, - eventName: 'PermissionSet', + eventName: "PermissionSet", data: log.data, topics: log.topics, - }) - if (event.eventName === 'PermissionSet') { - targetLogs.push(event.args) + }); + if (event.eventName === "PermissionSet") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -15266,15 +14856,11 @@ export class AccessControllerEventClient { * contract AccessController write method */ export class AccessControllerClient extends AccessControllerEventClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -15289,11 +14875,11 @@ export class AccessControllerClient extends AccessControllerEventClient { const { request: call } = await this.rpcClient.simulateContract({ abi: accessControllerAbi, address: this.address, - functionName: 'setAllPermissions', + functionName: "setAllPermissions", account: this.wallet.account, args: [request.ipAccount, request.signer, request.permission], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -15302,17 +14888,15 @@ export class AccessControllerClient extends AccessControllerEventClient { * @param request AccessControllerSetAllPermissionsRequest * @return EncodedTxData */ - public setAllPermissionsEncode( - request: AccessControllerSetAllPermissionsRequest, - ): EncodedTxData { + public setAllPermissionsEncode(request: AccessControllerSetAllPermissionsRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: accessControllerAbi, - functionName: 'setAllPermissions', + functionName: "setAllPermissions", args: [request.ipAccount, request.signer, request.permission], }), - } + }; } /** @@ -15327,11 +14911,11 @@ export class AccessControllerClient extends AccessControllerEventClient { const { request: call } = await this.rpcClient.simulateContract({ abi: accessControllerAbi, address: this.address, - functionName: 'setBatchPermissions', + functionName: "setBatchPermissions", account: this.wallet.account, args: [request.permissions], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -15347,10 +14931,10 @@ export class AccessControllerClient extends AccessControllerEventClient { to: this.address, data: encodeFunctionData({ abi: accessControllerAbi, - functionName: 'setBatchPermissions', + functionName: "setBatchPermissions", args: [request.permissions], }), - } + }; } /** @@ -15365,17 +14949,11 @@ export class AccessControllerClient extends AccessControllerEventClient { const { request: call } = await this.rpcClient.simulateContract({ abi: accessControllerAbi, address: this.address, - functionName: 'setPermission', + functionName: "setPermission", account: this.wallet.account, - args: [ - request.ipAccount, - request.signer, - request.to, - request.func, - request.permission, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.ipAccount, request.signer, request.to, request.func, request.permission], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -15384,23 +14962,15 @@ export class AccessControllerClient extends AccessControllerEventClient { * @param request AccessControllerSetPermissionRequest * @return EncodedTxData */ - public setPermissionEncode( - request: AccessControllerSetPermissionRequest, - ): EncodedTxData { + public setPermissionEncode(request: AccessControllerSetPermissionRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: accessControllerAbi, - functionName: 'setPermission', - args: [ - request.ipAccount, - request.signer, - request.to, - request.func, - request.permission, - ], + functionName: "setPermission", + args: [request.ipAccount, request.signer, request.to, request.func, request.permission], }), - } + }; } } @@ -15412,10 +14982,10 @@ export class AccessControllerClient extends AccessControllerEventClient { * @param disputeId uint256 */ export type ArbitrationPolicyUmaDisputeIdToAssertionIdRequest = { - disputeId: bigint -} + disputeId: bigint; +}; -export type ArbitrationPolicyUmaDisputeIdToAssertionIdResponse = Hex +export type ArbitrationPolicyUmaDisputeIdToAssertionIdResponse = Hex; /** * ArbitrationPolicyUmaMaxBondsRequest @@ -15423,16 +14993,16 @@ export type ArbitrationPolicyUmaDisputeIdToAssertionIdResponse = Hex * @param token address */ export type ArbitrationPolicyUmaMaxBondsRequest = { - token: Address -} + token: Address; +}; -export type ArbitrationPolicyUmaMaxBondsResponse = bigint +export type ArbitrationPolicyUmaMaxBondsResponse = bigint; -export type ArbitrationPolicyUmaMaxLivenessResponse = bigint +export type ArbitrationPolicyUmaMaxLivenessResponse = bigint; -export type ArbitrationPolicyUmaMinLivenessResponse = bigint +export type ArbitrationPolicyUmaMinLivenessResponse = bigint; -export type ArbitrationPolicyUmaOov3Response = Address +export type ArbitrationPolicyUmaOov3Response = Address; /** * ArbitrationPolicyUmaDisputeAssertionRequest @@ -15441,21 +15011,20 @@ export type ArbitrationPolicyUmaOov3Response = Address * @param counterEvidenceHash bytes32 */ export type ArbitrationPolicyUmaDisputeAssertionRequest = { - assertionId: Hex - counterEvidenceHash: Hex -} + assertionId: Hex; + counterEvidenceHash: Hex; +}; /** * contract ArbitrationPolicyUMA readonly method */ export class ArbitrationPolicyUmaReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(arbitrationPolicyUmaAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(arbitrationPolicyUmaAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -15470,9 +15039,9 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: 'disputeIdToAssertionId', + functionName: "disputeIdToAssertionId", args: [request.disputeId], - }) + }); } /** @@ -15487,9 +15056,9 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: 'maxBonds', + functionName: "maxBonds", args: [request.token], - }) + }); } /** @@ -15502,8 +15071,8 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: 'maxLiveness', - }) + functionName: "maxLiveness", + }); } /** @@ -15516,8 +15085,8 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: 'minLiveness', - }) + functionName: "minLiveness", + }); } /** @@ -15530,8 +15099,8 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: 'oov3', - }) + functionName: "oov3", + }); } } @@ -15539,15 +15108,11 @@ export class ArbitrationPolicyUmaReadOnlyClient { * contract ArbitrationPolicyUMA write method */ export class ArbitrationPolicyUmaClient extends ArbitrationPolicyUmaReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -15562,11 +15127,11 @@ export class ArbitrationPolicyUmaClient extends ArbitrationPolicyUmaReadOnlyClie const { request: call } = await this.rpcClient.simulateContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: 'disputeAssertion', + functionName: "disputeAssertion", account: this.wallet.account, args: [request.assertionId, request.counterEvidenceHash], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -15582,10 +15147,10 @@ export class ArbitrationPolicyUmaClient extends ArbitrationPolicyUmaReadOnlyClie to: this.address, data: encodeFunctionData({ abi: arbitrationPolicyUmaAbi, - functionName: 'disputeAssertion', + functionName: "disputeAssertion", args: [request.assertionId, request.counterEvidenceHash], }), - } + }; } } @@ -15597,8 +15162,8 @@ export class ArbitrationPolicyUmaClient extends ArbitrationPolicyUmaReadOnlyClie * @param authority address */ export type CoreMetadataModuleAuthorityUpdatedEvent = { - authority: Address -} + authority: Address; +}; /** * CoreMetadataModuleInitializedEvent @@ -15606,8 +15171,8 @@ export type CoreMetadataModuleAuthorityUpdatedEvent = { * @param version uint64 */ export type CoreMetadataModuleInitializedEvent = { - version: bigint -} + version: bigint; +}; /** * CoreMetadataModuleMetadataFrozenEvent @@ -15615,8 +15180,8 @@ export type CoreMetadataModuleInitializedEvent = { * @param ipId address */ export type CoreMetadataModuleMetadataFrozenEvent = { - ipId: Address -} + ipId: Address; +}; /** * CoreMetadataModuleMetadataUriSetEvent @@ -15626,10 +15191,10 @@ export type CoreMetadataModuleMetadataFrozenEvent = { * @param metadataHash bytes32 */ export type CoreMetadataModuleMetadataUriSetEvent = { - ipId: Address - metadataURI: string - metadataHash: Hex -} + ipId: Address; + metadataURI: string; + metadataHash: Hex; +}; /** * CoreMetadataModuleNftTokenUriSetEvent @@ -15639,10 +15204,10 @@ export type CoreMetadataModuleMetadataUriSetEvent = { * @param nftMetadataHash bytes32 */ export type CoreMetadataModuleNftTokenUriSetEvent = { - ipId: Address - nftTokenURI: string - nftMetadataHash: Hex -} + ipId: Address; + nftTokenURI: string; + nftMetadataHash: Hex; +}; /** * CoreMetadataModuleUpgradedEvent @@ -15650,18 +15215,18 @@ export type CoreMetadataModuleNftTokenUriSetEvent = { * @param implementation address */ export type CoreMetadataModuleUpgradedEvent = { - implementation: Address -} + implementation: Address; +}; -export type CoreMetadataModuleAccessControllerResponse = Address +export type CoreMetadataModuleAccessControllerResponse = Address; -export type CoreMetadataModuleIpAssetRegistryResponse = Address +export type CoreMetadataModuleIpAssetRegistryResponse = Address; -export type CoreMetadataModuleUpgradeInterfaceVersionResponse = string +export type CoreMetadataModuleUpgradeInterfaceVersionResponse = string; -export type CoreMetadataModuleAuthorityResponse = Address +export type CoreMetadataModuleAuthorityResponse = Address; -export type CoreMetadataModuleIsConsumingScheduledOpResponse = Hex +export type CoreMetadataModuleIsConsumingScheduledOpResponse = Hex; /** * CoreMetadataModuleIsMetadataFrozenRequest @@ -15669,14 +15234,14 @@ export type CoreMetadataModuleIsConsumingScheduledOpResponse = Hex * @param ipId address */ export type CoreMetadataModuleIsMetadataFrozenRequest = { - ipId: Address -} + ipId: Address; +}; -export type CoreMetadataModuleIsMetadataFrozenResponse = boolean +export type CoreMetadataModuleIsMetadataFrozenResponse = boolean; -export type CoreMetadataModuleNameResponse = string +export type CoreMetadataModuleNameResponse = string; -export type CoreMetadataModuleProxiableUuidResponse = Hex +export type CoreMetadataModuleProxiableUuidResponse = Hex; /** * CoreMetadataModuleSupportsInterfaceRequest @@ -15684,10 +15249,10 @@ export type CoreMetadataModuleProxiableUuidResponse = Hex * @param interfaceId bytes4 */ export type CoreMetadataModuleSupportsInterfaceRequest = { - interfaceId: Hex -} + interfaceId: Hex; +}; -export type CoreMetadataModuleSupportsInterfaceResponse = boolean +export type CoreMetadataModuleSupportsInterfaceResponse = boolean; /** * CoreMetadataModuleFreezeMetadataRequest @@ -15695,8 +15260,8 @@ export type CoreMetadataModuleSupportsInterfaceResponse = boolean * @param ipId address */ export type CoreMetadataModuleFreezeMetadataRequest = { - ipId: Address -} + ipId: Address; +}; /** * CoreMetadataModuleInitializeRequest @@ -15704,8 +15269,8 @@ export type CoreMetadataModuleFreezeMetadataRequest = { * @param accessManager address */ export type CoreMetadataModuleInitializeRequest = { - accessManager: Address -} + accessManager: Address; +}; /** * CoreMetadataModuleSetAllRequest @@ -15716,11 +15281,11 @@ export type CoreMetadataModuleInitializeRequest = { * @param nftMetadataHash bytes32 */ export type CoreMetadataModuleSetAllRequest = { - ipId: Address - metadataURI: string - metadataHash: Hex - nftMetadataHash: Hex -} + ipId: Address; + metadataURI: string; + metadataHash: Hex; + nftMetadataHash: Hex; +}; /** * CoreMetadataModuleSetAuthorityRequest @@ -15728,8 +15293,8 @@ export type CoreMetadataModuleSetAllRequest = { * @param newAuthority address */ export type CoreMetadataModuleSetAuthorityRequest = { - newAuthority: Address -} + newAuthority: Address; +}; /** * CoreMetadataModuleSetMetadataUriRequest @@ -15739,10 +15304,10 @@ export type CoreMetadataModuleSetAuthorityRequest = { * @param metadataHash bytes32 */ export type CoreMetadataModuleSetMetadataUriRequest = { - ipId: Address - metadataURI: string - metadataHash: Hex -} + ipId: Address; + metadataURI: string; + metadataHash: Hex; +}; /** * CoreMetadataModuleUpdateNftTokenUriRequest @@ -15751,9 +15316,9 @@ export type CoreMetadataModuleSetMetadataUriRequest = { * @param nftMetadataHash bytes32 */ export type CoreMetadataModuleUpdateNftTokenUriRequest = { - ipId: Address - nftMetadataHash: Hex -} + ipId: Address; + nftMetadataHash: Hex; +}; /** * CoreMetadataModuleUpgradeToAndCallRequest @@ -15762,40 +15327,36 @@ export type CoreMetadataModuleUpdateNftTokenUriRequest = { * @param data bytes */ export type CoreMetadataModuleUpgradeToAndCallRequest = { - newImplementation: Address - data: Hex -} + newImplementation: Address; + data: Hex; +}; /** * contract CoreMetadataModule event */ export class CoreMetadataModuleEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(coreMetadataModuleAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(coreMetadataModuleAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event AuthorityUpdated for contract CoreMetadataModule */ public watchAuthorityUpdatedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: coreMetadataModuleAbi, address: this.address, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -15804,42 +15365,39 @@ export class CoreMetadataModuleEventClient { public parseTxAuthorityUpdatedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: coreMetadataModuleAbi, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", data: log.data, topics: log.topics, - }) - if (event.eventName === 'AuthorityUpdated') { - targetLogs.push(event.args) + }); + if (event.eventName === "AuthorityUpdated") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event Initialized for contract CoreMetadataModule */ public watchInitializedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: coreMetadataModuleAbi, address: this.address, - eventName: 'Initialized', + eventName: "Initialized", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -15848,42 +15406,39 @@ export class CoreMetadataModuleEventClient { public parseTxInitializedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: coreMetadataModuleAbi, - eventName: 'Initialized', + eventName: "Initialized", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Initialized') { - targetLogs.push(event.args) + }); + if (event.eventName === "Initialized") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event MetadataFrozen for contract CoreMetadataModule */ public watchMetadataFrozenEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: coreMetadataModuleAbi, address: this.address, - eventName: 'MetadataFrozen', + eventName: "MetadataFrozen", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -15892,42 +15447,39 @@ export class CoreMetadataModuleEventClient { public parseTxMetadataFrozenEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: coreMetadataModuleAbi, - eventName: 'MetadataFrozen', + eventName: "MetadataFrozen", data: log.data, topics: log.topics, - }) - if (event.eventName === 'MetadataFrozen') { - targetLogs.push(event.args) + }); + if (event.eventName === "MetadataFrozen") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event MetadataURISet for contract CoreMetadataModule */ public watchMetadataUriSetEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: coreMetadataModuleAbi, address: this.address, - eventName: 'MetadataURISet', + eventName: "MetadataURISet", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -15936,42 +15488,39 @@ export class CoreMetadataModuleEventClient { public parseTxMetadataUriSetEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: coreMetadataModuleAbi, - eventName: 'MetadataURISet', + eventName: "MetadataURISet", data: log.data, topics: log.topics, - }) - if (event.eventName === 'MetadataURISet') { - targetLogs.push(event.args) + }); + if (event.eventName === "MetadataURISet") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event NFTTokenURISet for contract CoreMetadataModule */ public watchNftTokenUriSetEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: coreMetadataModuleAbi, address: this.address, - eventName: 'NFTTokenURISet', + eventName: "NFTTokenURISet", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -15980,23 +15529,23 @@ export class CoreMetadataModuleEventClient { public parseTxNftTokenUriSetEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: coreMetadataModuleAbi, - eventName: 'NFTTokenURISet', + eventName: "NFTTokenURISet", data: log.data, topics: log.topics, - }) - if (event.eventName === 'NFTTokenURISet') { - targetLogs.push(event.args) + }); + if (event.eventName === "NFTTokenURISet") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -16008,11 +15557,11 @@ export class CoreMetadataModuleEventClient { return this.rpcClient.watchContractEvent({ abi: coreMetadataModuleAbi, address: this.address, - eventName: 'Upgraded', + eventName: "Upgraded", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -16021,23 +15570,23 @@ export class CoreMetadataModuleEventClient { public parseTxUpgradedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: coreMetadataModuleAbi, - eventName: 'Upgraded', + eventName: "Upgraded", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Upgraded') { - targetLogs.push(event.args) + }); + if (event.eventName === "Upgraded") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -16046,7 +15595,7 @@ export class CoreMetadataModuleEventClient { */ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -16059,8 +15608,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'ACCESS_CONTROLLER', - }) + functionName: "ACCESS_CONTROLLER", + }); } /** @@ -16073,8 +15622,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'IP_ASSET_REGISTRY', - }) + functionName: "IP_ASSET_REGISTRY", + }); } /** @@ -16087,8 +15636,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'UPGRADE_INTERFACE_VERSION', - }) + functionName: "UPGRADE_INTERFACE_VERSION", + }); } /** @@ -16101,8 +15650,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'authority', - }) + functionName: "authority", + }); } /** @@ -16115,8 +15664,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'isConsumingScheduledOp', - }) + functionName: "isConsumingScheduledOp", + }); } /** @@ -16131,9 +15680,9 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'isMetadataFrozen', + functionName: "isMetadataFrozen", args: [request.ipId], - }) + }); } /** @@ -16146,8 +15695,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'name', - }) + functionName: "name", + }); } /** @@ -16160,8 +15709,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'proxiableUUID', - }) + functionName: "proxiableUUID", + }); } /** @@ -16176,9 +15725,9 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'supportsInterface', + functionName: "supportsInterface", args: [request.interfaceId], - }) + }); } } @@ -16186,15 +15735,11 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli * contract CoreMetadataModule write method */ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -16209,11 +15754,11 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'freezeMetadata', + functionName: "freezeMetadata", account: this.wallet.account, args: [request.ipId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16222,17 +15767,15 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param request CoreMetadataModuleFreezeMetadataRequest * @return EncodedTxData */ - public freezeMetadataEncode( - request: CoreMetadataModuleFreezeMetadataRequest, - ): EncodedTxData { + public freezeMetadataEncode(request: CoreMetadataModuleFreezeMetadataRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'freezeMetadata', + functionName: "freezeMetadata", args: [request.ipId], }), - } + }; } /** @@ -16247,11 +15790,11 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'initialize', + functionName: "initialize", account: this.wallet.account, args: [request.accessManager], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16260,17 +15803,15 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param request CoreMetadataModuleInitializeRequest * @return EncodedTxData */ - public initializeEncode( - request: CoreMetadataModuleInitializeRequest, - ): EncodedTxData { + public initializeEncode(request: CoreMetadataModuleInitializeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'initialize', + functionName: "initialize", args: [request.accessManager], }), - } + }; } /** @@ -16279,22 +15820,15 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param request CoreMetadataModuleSetAllRequest * @return Promise */ - public async setAll( - request: CoreMetadataModuleSetAllRequest, - ): Promise { + public async setAll(request: CoreMetadataModuleSetAllRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'setAll', + functionName: "setAll", account: this.wallet.account, - args: [ - request.ipId, - request.metadataURI, - request.metadataHash, - request.nftMetadataHash, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.ipId, request.metadataURI, request.metadataHash, request.nftMetadataHash], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16308,15 +15842,10 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'setAll', - args: [ - request.ipId, - request.metadataURI, - request.metadataHash, - request.nftMetadataHash, - ], + functionName: "setAll", + args: [request.ipId, request.metadataURI, request.metadataHash, request.nftMetadataHash], }), - } + }; } /** @@ -16331,11 +15860,11 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'setAuthority', + functionName: "setAuthority", account: this.wallet.account, args: [request.newAuthority], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16344,17 +15873,15 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param request CoreMetadataModuleSetAuthorityRequest * @return EncodedTxData */ - public setAuthorityEncode( - request: CoreMetadataModuleSetAuthorityRequest, - ): EncodedTxData { + public setAuthorityEncode(request: CoreMetadataModuleSetAuthorityRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'setAuthority', + functionName: "setAuthority", args: [request.newAuthority], }), - } + }; } /** @@ -16369,11 +15896,11 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'setMetadataURI', + functionName: "setMetadataURI", account: this.wallet.account, args: [request.ipId, request.metadataURI, request.metadataHash], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16382,17 +15909,15 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param request CoreMetadataModuleSetMetadataUriRequest * @return EncodedTxData */ - public setMetadataUriEncode( - request: CoreMetadataModuleSetMetadataUriRequest, - ): EncodedTxData { + public setMetadataUriEncode(request: CoreMetadataModuleSetMetadataUriRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'setMetadataURI', + functionName: "setMetadataURI", args: [request.ipId, request.metadataURI, request.metadataHash], }), - } + }; } /** @@ -16407,11 +15932,11 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'updateNftTokenURI', + functionName: "updateNftTokenURI", account: this.wallet.account, args: [request.ipId, request.nftMetadataHash], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16427,10 +15952,10 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'updateNftTokenURI', + functionName: "updateNftTokenURI", args: [request.ipId, request.nftMetadataHash], }), - } + }; } /** @@ -16445,11 +15970,11 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", account: this.wallet.account, args: [request.newImplementation, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16458,17 +15983,15 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param request CoreMetadataModuleUpgradeToAndCallRequest * @return EncodedTxData */ - public upgradeToAndCallEncode( - request: CoreMetadataModuleUpgradeToAndCallRequest, - ): EncodedTxData { + public upgradeToAndCallEncode(request: CoreMetadataModuleUpgradeToAndCallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", args: [request.newImplementation, request.data], }), - } + }; } } @@ -16484,25 +16007,25 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { * @param allowDuplicates bool */ export type DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest = { - spgNftContract: Address + spgNftContract: Address; derivData: { - parentIpIds: readonly Address[] - licenseTemplate: Address - licenseTermsIds: readonly bigint[] - royaltyContext: Hex - maxMintingFee: bigint - maxRts: number - maxRevenueShare: number - } + parentIpIds: readonly Address[]; + licenseTemplate: Address; + licenseTermsIds: readonly bigint[]; + royaltyContext: Hex; + maxMintingFee: bigint; + maxRts: number; + maxRevenueShare: number; + }; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } - recipient: Address - allowDuplicates: boolean -} + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; + recipient: Address; + allowDuplicates: boolean; +}; /** * DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest @@ -16515,21 +16038,20 @@ export type DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest = { * @param recipient address * @param allowDuplicates bool */ -export type DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest = - { - spgNftContract: Address - licenseTokenIds: readonly bigint[] - royaltyContext: Hex - maxRts: number - ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } - recipient: Address - allowDuplicates: boolean - } +export type DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest = { + spgNftContract: Address; + licenseTokenIds: readonly bigint[]; + royaltyContext: Hex; + maxRts: number; + ipMetadata: { + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; + recipient: Address; + allowDuplicates: boolean; +}; /** * DerivativeWorkflowsMulticallRequest @@ -16537,8 +16059,8 @@ export type DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseToke * @param data bytes[] */ export type DerivativeWorkflowsMulticallRequest = { - data: readonly Hex[] -} + data: readonly Hex[]; +}; /** * DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest @@ -16550,29 +16072,29 @@ export type DerivativeWorkflowsMulticallRequest = { * @param sigMetadataAndRegister tuple */ export type DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest = { - nftContract: Address - tokenId: bigint + nftContract: Address; + tokenId: bigint; derivData: { - parentIpIds: readonly Address[] - licenseTemplate: Address - licenseTermsIds: readonly bigint[] - royaltyContext: Hex - maxMintingFee: bigint - maxRts: number - maxRevenueShare: number - } + parentIpIds: readonly Address[]; + licenseTemplate: Address; + licenseTermsIds: readonly bigint[]; + royaltyContext: Hex; + maxMintingFee: bigint; + maxRts: number; + maxRevenueShare: number; + }; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; sigMetadataAndRegister: { - signer: Address - deadline: bigint - signature: Hex - } -} + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest @@ -16585,43 +16107,37 @@ export type DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest = { * @param ipMetadata tuple * @param sigMetadataAndRegister tuple */ -export type DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest = - { - nftContract: Address - tokenId: bigint - licenseTokenIds: readonly bigint[] - royaltyContext: Hex - maxRts: number - ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } - sigMetadataAndRegister: { - signer: Address - deadline: bigint - signature: Hex - } - } +export type DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest = { + nftContract: Address; + tokenId: bigint; + licenseTokenIds: readonly bigint[]; + royaltyContext: Hex; + maxRts: number; + ipMetadata: { + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; + sigMetadataAndRegister: { + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * contract DerivativeWorkflows write method */ export class DerivativeWorkflowsClient { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address - - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - this.address = - address || getAddress(derivativeWorkflowsAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; + + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + this.address = address || getAddress(derivativeWorkflowsAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -16636,7 +16152,7 @@ export class DerivativeWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: derivativeWorkflowsAbi, address: this.address, - functionName: 'mintAndRegisterIpAndMakeDerivative', + functionName: "mintAndRegisterIpAndMakeDerivative", account: this.wallet.account, args: [ request.spgNftContract, @@ -16645,8 +16161,8 @@ export class DerivativeWorkflowsClient { request.recipient, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16662,7 +16178,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: 'mintAndRegisterIpAndMakeDerivative', + functionName: "mintAndRegisterIpAndMakeDerivative", args: [ request.spgNftContract, request.derivData, @@ -16671,7 +16187,7 @@ export class DerivativeWorkflowsClient { request.allowDuplicates, ], }), - } + }; } /** @@ -16686,7 +16202,7 @@ export class DerivativeWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: derivativeWorkflowsAbi, address: this.address, - functionName: 'mintAndRegisterIpAndMakeDerivativeWithLicenseTokens', + functionName: "mintAndRegisterIpAndMakeDerivativeWithLicenseTokens", account: this.wallet.account, args: [ request.spgNftContract, @@ -16697,8 +16213,8 @@ export class DerivativeWorkflowsClient { request.recipient, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16714,7 +16230,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: 'mintAndRegisterIpAndMakeDerivativeWithLicenseTokens', + functionName: "mintAndRegisterIpAndMakeDerivativeWithLicenseTokens", args: [ request.spgNftContract, request.licenseTokenIds, @@ -16725,7 +16241,7 @@ export class DerivativeWorkflowsClient { request.allowDuplicates, ], }), - } + }; } /** @@ -16740,11 +16256,11 @@ export class DerivativeWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: derivativeWorkflowsAbi, address: this.address, - functionName: 'multicall', + functionName: "multicall", account: this.wallet.account, args: [request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16753,17 +16269,15 @@ export class DerivativeWorkflowsClient { * @param request DerivativeWorkflowsMulticallRequest * @return EncodedTxData */ - public multicallEncode( - request: DerivativeWorkflowsMulticallRequest, - ): EncodedTxData { + public multicallEncode(request: DerivativeWorkflowsMulticallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: 'multicall', + functionName: "multicall", args: [request.data], }), - } + }; } /** @@ -16778,7 +16292,7 @@ export class DerivativeWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: derivativeWorkflowsAbi, address: this.address, - functionName: 'registerIpAndMakeDerivative', + functionName: "registerIpAndMakeDerivative", account: this.wallet.account, args: [ request.nftContract, @@ -16787,8 +16301,8 @@ export class DerivativeWorkflowsClient { request.ipMetadata, request.sigMetadataAndRegister, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16804,7 +16318,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: 'registerIpAndMakeDerivative', + functionName: "registerIpAndMakeDerivative", args: [ request.nftContract, request.tokenId, @@ -16813,7 +16327,7 @@ export class DerivativeWorkflowsClient { request.sigMetadataAndRegister, ], }), - } + }; } /** @@ -16828,7 +16342,7 @@ export class DerivativeWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: derivativeWorkflowsAbi, address: this.address, - functionName: 'registerIpAndMakeDerivativeWithLicenseTokens', + functionName: "registerIpAndMakeDerivativeWithLicenseTokens", account: this.wallet.account, args: [ request.nftContract, @@ -16839,8 +16353,8 @@ export class DerivativeWorkflowsClient { request.ipMetadata, request.sigMetadataAndRegister, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -16856,7 +16370,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: 'registerIpAndMakeDerivativeWithLicenseTokens', + functionName: "registerIpAndMakeDerivativeWithLicenseTokens", args: [ request.nftContract, request.tokenId, @@ -16867,7 +16381,7 @@ export class DerivativeWorkflowsClient { request.sigMetadataAndRegister, ], }), - } + }; } } @@ -16880,9 +16394,9 @@ export class DerivativeWorkflowsClient { * @param data bytes */ export type DisputeModuleDisputeCancelledEvent = { - disputeId: bigint - data: Hex -} + disputeId: bigint; + data: Hex; +}; /** * DisputeModuleDisputeRaisedEvent @@ -16897,15 +16411,15 @@ export type DisputeModuleDisputeCancelledEvent = { * @param data bytes */ export type DisputeModuleDisputeRaisedEvent = { - disputeId: bigint - targetIpId: Address - disputeInitiator: Address - disputeTimestamp: bigint - arbitrationPolicy: Address - disputeEvidenceHash: Hex - targetTag: Hex - data: Hex -} + disputeId: bigint; + targetIpId: Address; + disputeInitiator: Address; + disputeTimestamp: bigint; + arbitrationPolicy: Address; + disputeEvidenceHash: Hex; + targetTag: Hex; + data: Hex; +}; /** * DisputeModuleDisputeResolvedEvent @@ -16914,9 +16428,9 @@ export type DisputeModuleDisputeRaisedEvent = { * @param data bytes */ export type DisputeModuleDisputeResolvedEvent = { - disputeId: bigint - data: Hex -} + disputeId: bigint; + data: Hex; +}; /** * DisputeModuleIsWhitelistedDisputeTagRequest @@ -16924,8 +16438,8 @@ export type DisputeModuleDisputeResolvedEvent = { * @param tag bytes32 */ export type DisputeModuleIsWhitelistedDisputeTagRequest = { - tag: Hex -} + tag: Hex; +}; /** * DisputeModuleIsWhitelistedDisputeTagResponse @@ -16933,8 +16447,8 @@ export type DisputeModuleIsWhitelistedDisputeTagRequest = { * @param allowed bool */ export type DisputeModuleIsWhitelistedDisputeTagResponse = { - allowed: boolean -} + allowed: boolean; +}; /** * DisputeModuleCancelDisputeRequest @@ -16943,9 +16457,9 @@ export type DisputeModuleIsWhitelistedDisputeTagResponse = { * @param data bytes */ export type DisputeModuleCancelDisputeRequest = { - disputeId: bigint - data: Hex -} + disputeId: bigint; + data: Hex; +}; /** * DisputeModuleRaiseDisputeRequest @@ -16956,11 +16470,11 @@ export type DisputeModuleCancelDisputeRequest = { * @param data bytes */ export type DisputeModuleRaiseDisputeRequest = { - targetIpId: Address - disputeEvidenceHash: Hex - targetTag: Hex - data: Hex -} + targetIpId: Address; + disputeEvidenceHash: Hex; + targetTag: Hex; + data: Hex; +}; /** * DisputeModuleResolveDisputeRequest @@ -16969,9 +16483,9 @@ export type DisputeModuleRaiseDisputeRequest = { * @param data bytes */ export type DisputeModuleResolveDisputeRequest = { - disputeId: bigint - data: Hex -} + disputeId: bigint; + data: Hex; +}; /** * DisputeModuleTagIfRelatedIpInfringedRequest @@ -16980,40 +16494,36 @@ export type DisputeModuleResolveDisputeRequest = { * @param infringerDisputeId uint256 */ export type DisputeModuleTagIfRelatedIpInfringedRequest = { - ipIdToTag: Address - infringerDisputeId: bigint -} + ipIdToTag: Address; + infringerDisputeId: bigint; +}; /** * contract DisputeModule event */ export class DisputeModuleEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(disputeModuleAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(disputeModuleAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event DisputeCancelled for contract DisputeModule */ public watchDisputeCancelledEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: disputeModuleAbi, address: this.address, - eventName: 'DisputeCancelled', + eventName: "DisputeCancelled", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -17022,23 +16532,23 @@ export class DisputeModuleEventClient { public parseTxDisputeCancelledEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: disputeModuleAbi, - eventName: 'DisputeCancelled', + eventName: "DisputeCancelled", data: log.data, topics: log.topics, - }) - if (event.eventName === 'DisputeCancelled') { - targetLogs.push(event.args) + }); + if (event.eventName === "DisputeCancelled") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -17050,11 +16560,11 @@ export class DisputeModuleEventClient { return this.rpcClient.watchContractEvent({ abi: disputeModuleAbi, address: this.address, - eventName: 'DisputeRaised', + eventName: "DisputeRaised", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -17063,42 +16573,39 @@ export class DisputeModuleEventClient { public parseTxDisputeRaisedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: disputeModuleAbi, - eventName: 'DisputeRaised', + eventName: "DisputeRaised", data: log.data, topics: log.topics, - }) - if (event.eventName === 'DisputeRaised') { - targetLogs.push(event.args) + }); + if (event.eventName === "DisputeRaised") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event DisputeResolved for contract DisputeModule */ public watchDisputeResolvedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: disputeModuleAbi, address: this.address, - eventName: 'DisputeResolved', + eventName: "DisputeResolved", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -17107,23 +16614,23 @@ export class DisputeModuleEventClient { public parseTxDisputeResolvedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: disputeModuleAbi, - eventName: 'DisputeResolved', + eventName: "DisputeResolved", data: log.data, topics: log.topics, - }) - if (event.eventName === 'DisputeResolved') { - targetLogs.push(event.args) + }); + if (event.eventName === "DisputeResolved") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -17132,7 +16639,7 @@ export class DisputeModuleEventClient { */ export class DisputeModuleReadOnlyClient extends DisputeModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -17147,12 +16654,12 @@ export class DisputeModuleReadOnlyClient extends DisputeModuleEventClient { const result = await this.rpcClient.readContract({ abi: disputeModuleAbi, address: this.address, - functionName: 'isWhitelistedDisputeTag', + functionName: "isWhitelistedDisputeTag", args: [request.tag], - }) + }); return { allowed: result, - } + }; } } @@ -17160,15 +16667,11 @@ export class DisputeModuleReadOnlyClient extends DisputeModuleEventClient { * contract DisputeModule write method */ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -17183,11 +16686,11 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: disputeModuleAbi, address: this.address, - functionName: 'cancelDispute', + functionName: "cancelDispute", account: this.wallet.account, args: [request.disputeId, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17196,17 +16699,15 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { * @param request DisputeModuleCancelDisputeRequest * @return EncodedTxData */ - public cancelDisputeEncode( - request: DisputeModuleCancelDisputeRequest, - ): EncodedTxData { + public cancelDisputeEncode(request: DisputeModuleCancelDisputeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: disputeModuleAbi, - functionName: 'cancelDispute', + functionName: "cancelDispute", args: [request.disputeId, request.data], }), - } + }; } /** @@ -17221,16 +16722,11 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: disputeModuleAbi, address: this.address, - functionName: 'raiseDispute', + functionName: "raiseDispute", account: this.wallet.account, - args: [ - request.targetIpId, - request.disputeEvidenceHash, - request.targetTag, - request.data, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.targetIpId, request.disputeEvidenceHash, request.targetTag, request.data], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17239,22 +16735,15 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { * @param request DisputeModuleRaiseDisputeRequest * @return EncodedTxData */ - public raiseDisputeEncode( - request: DisputeModuleRaiseDisputeRequest, - ): EncodedTxData { + public raiseDisputeEncode(request: DisputeModuleRaiseDisputeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: disputeModuleAbi, - functionName: 'raiseDispute', - args: [ - request.targetIpId, - request.disputeEvidenceHash, - request.targetTag, - request.data, - ], + functionName: "raiseDispute", + args: [request.targetIpId, request.disputeEvidenceHash, request.targetTag, request.data], }), - } + }; } /** @@ -17269,11 +16758,11 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: disputeModuleAbi, address: this.address, - functionName: 'resolveDispute', + functionName: "resolveDispute", account: this.wallet.account, args: [request.disputeId, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17282,17 +16771,15 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { * @param request DisputeModuleResolveDisputeRequest * @return EncodedTxData */ - public resolveDisputeEncode( - request: DisputeModuleResolveDisputeRequest, - ): EncodedTxData { + public resolveDisputeEncode(request: DisputeModuleResolveDisputeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: disputeModuleAbi, - functionName: 'resolveDispute', + functionName: "resolveDispute", args: [request.disputeId, request.data], }), - } + }; } /** @@ -17307,11 +16794,11 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: disputeModuleAbi, address: this.address, - functionName: 'tagIfRelatedIpInfringed', + functionName: "tagIfRelatedIpInfringed", account: this.wallet.account, args: [request.ipIdToTag, request.infringerDisputeId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17327,10 +16814,10 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: disputeModuleAbi, - functionName: 'tagIfRelatedIpInfringed', + functionName: "tagIfRelatedIpInfringed", args: [request.ipIdToTag, request.infringerDisputeId], }), - } + }; } } @@ -17343,11 +16830,11 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { * @param spender address */ export type Erc20AllowanceRequest = { - owner: Address - spender: Address -} + owner: Address; + spender: Address; +}; -export type Erc20AllowanceResponse = bigint +export type Erc20AllowanceResponse = bigint; /** * Erc20BalanceOfRequest @@ -17355,10 +16842,10 @@ export type Erc20AllowanceResponse = bigint * @param account address */ export type Erc20BalanceOfRequest = { - account: Address -} + account: Address; +}; -export type Erc20BalanceOfResponse = bigint +export type Erc20BalanceOfResponse = bigint; /** * Erc20ApproveRequest @@ -17367,9 +16854,9 @@ export type Erc20BalanceOfResponse = bigint * @param value uint256 */ export type Erc20ApproveRequest = { - spender: Address - value: bigint -} + spender: Address; + value: bigint; +}; /** * Erc20MintRequest @@ -17378,9 +16865,9 @@ export type Erc20ApproveRequest = { * @param amount uint256 */ export type Erc20MintRequest = { - to: Address - amount: bigint -} + to: Address; + amount: bigint; +}; /** * Erc20TransferRequest @@ -17389,9 +16876,9 @@ export type Erc20MintRequest = { * @param value uint256 */ export type Erc20TransferRequest = { - to: Address - value: bigint -} + to: Address; + value: bigint; +}; /** * Erc20TransferFromRequest @@ -17401,21 +16888,21 @@ export type Erc20TransferRequest = { * @param value uint256 */ export type Erc20TransferFromRequest = { - from: Address - to: Address - value: bigint -} + from: Address; + to: Address; + value: bigint; +}; /** * contract ERC20 readonly method */ export class Erc20ReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = address || getAddress(erc20Address, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(erc20Address, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -17424,15 +16911,13 @@ export class Erc20ReadOnlyClient { * @param request Erc20AllowanceRequest * @return Promise */ - public async allowance( - request: Erc20AllowanceRequest, - ): Promise { + public async allowance(request: Erc20AllowanceRequest): Promise { return await this.rpcClient.readContract({ abi: erc20Abi, address: this.address, - functionName: 'allowance', + functionName: "allowance", args: [request.owner, request.spender], - }) + }); } /** @@ -17441,15 +16926,13 @@ export class Erc20ReadOnlyClient { * @param request Erc20BalanceOfRequest * @return Promise */ - public async balanceOf( - request: Erc20BalanceOfRequest, - ): Promise { + public async balanceOf(request: Erc20BalanceOfRequest): Promise { return await this.rpcClient.readContract({ abi: erc20Abi, address: this.address, - functionName: 'balanceOf', + functionName: "balanceOf", args: [request.account], - }) + }); } } @@ -17457,15 +16940,11 @@ export class Erc20ReadOnlyClient { * contract ERC20 write method */ export class Erc20Client extends Erc20ReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -17474,17 +16953,15 @@ export class Erc20Client extends Erc20ReadOnlyClient { * @param request Erc20ApproveRequest * @return Promise */ - public async approve( - request: Erc20ApproveRequest, - ): Promise { + public async approve(request: Erc20ApproveRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: erc20Abi, address: this.address, - functionName: 'approve', + functionName: "approve", account: this.wallet.account, args: [request.spender, request.value], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17498,10 +16975,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: 'approve', + functionName: "approve", args: [request.spender, request.value], }), - } + }; } /** @@ -17510,17 +16987,15 @@ export class Erc20Client extends Erc20ReadOnlyClient { * @param request Erc20MintRequest * @return Promise */ - public async mint( - request: Erc20MintRequest, - ): Promise { + public async mint(request: Erc20MintRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: erc20Abi, address: this.address, - functionName: 'mint', + functionName: "mint", account: this.wallet.account, args: [request.to, request.amount], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17534,10 +17009,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: 'mint', + functionName: "mint", args: [request.to, request.amount], }), - } + }; } /** @@ -17546,17 +17021,15 @@ export class Erc20Client extends Erc20ReadOnlyClient { * @param request Erc20TransferRequest * @return Promise */ - public async transfer( - request: Erc20TransferRequest, - ): Promise { + public async transfer(request: Erc20TransferRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: erc20Abi, address: this.address, - functionName: 'transfer', + functionName: "transfer", account: this.wallet.account, args: [request.to, request.value], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17570,10 +17043,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: 'transfer', + functionName: "transfer", args: [request.to, request.value], }), - } + }; } /** @@ -17582,17 +17055,15 @@ export class Erc20Client extends Erc20ReadOnlyClient { * @param request Erc20TransferFromRequest * @return Promise */ - public async transferFrom( - request: Erc20TransferFromRequest, - ): Promise { + public async transferFrom(request: Erc20TransferFromRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: erc20Abi, address: this.address, - functionName: 'transferFrom', + functionName: "transferFrom", account: this.wallet.account, args: [request.from, request.to, request.value], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -17606,10 +17077,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: 'transferFrom', + functionName: "transferFrom", args: [request.from, request.to, request.value], }), - } + }; } } @@ -17621,8 +17092,8 @@ export class Erc20Client extends Erc20ReadOnlyClient { * @param authority address */ export type EvenSplitGroupPoolAuthorityUpdatedEvent = { - authority: Address -} + authority: Address; +}; /** * EvenSplitGroupPoolInitializedEvent @@ -17630,8 +17101,8 @@ export type EvenSplitGroupPoolAuthorityUpdatedEvent = { * @param version uint64 */ export type EvenSplitGroupPoolInitializedEvent = { - version: bigint -} + version: bigint; +}; /** * EvenSplitGroupPoolPausedEvent @@ -17639,8 +17110,8 @@ export type EvenSplitGroupPoolInitializedEvent = { * @param account address */ export type EvenSplitGroupPoolPausedEvent = { - account: Address -} + account: Address; +}; /** * EvenSplitGroupPoolUnpausedEvent @@ -17648,8 +17119,8 @@ export type EvenSplitGroupPoolPausedEvent = { * @param account address */ export type EvenSplitGroupPoolUnpausedEvent = { - account: Address -} + account: Address; +}; /** * EvenSplitGroupPoolUpgradedEvent @@ -17657,20 +17128,20 @@ export type EvenSplitGroupPoolUnpausedEvent = { * @param implementation address */ export type EvenSplitGroupPoolUpgradedEvent = { - implementation: Address -} + implementation: Address; +}; -export type EvenSplitGroupPoolGroupingModuleResponse = Address +export type EvenSplitGroupPoolGroupingModuleResponse = Address; -export type EvenSplitGroupPoolGroupIpAssetRegistryResponse = Address +export type EvenSplitGroupPoolGroupIpAssetRegistryResponse = Address; -export type EvenSplitGroupPoolMaxGroupSizeResponse = number +export type EvenSplitGroupPoolMaxGroupSizeResponse = number; -export type EvenSplitGroupPoolRoyaltyModuleResponse = Address +export type EvenSplitGroupPoolRoyaltyModuleResponse = Address; -export type EvenSplitGroupPoolUpgradeInterfaceVersionResponse = string +export type EvenSplitGroupPoolUpgradeInterfaceVersionResponse = string; -export type EvenSplitGroupPoolAuthorityResponse = Address +export type EvenSplitGroupPoolAuthorityResponse = Address; /** * EvenSplitGroupPoolGetAvailableRewardRequest @@ -17680,12 +17151,12 @@ export type EvenSplitGroupPoolAuthorityResponse = Address * @param ipIds address[] */ export type EvenSplitGroupPoolGetAvailableRewardRequest = { - groupId: Address - token: Address - ipIds: readonly Address[] -} + groupId: Address; + token: Address; + ipIds: readonly Address[]; +}; -export type EvenSplitGroupPoolGetAvailableRewardResponse = readonly bigint[] +export type EvenSplitGroupPoolGetAvailableRewardResponse = readonly bigint[]; /** * EvenSplitGroupPoolGetIpAddedTimeRequest @@ -17694,11 +17165,11 @@ export type EvenSplitGroupPoolGetAvailableRewardResponse = readonly bigint[] * @param ipId address */ export type EvenSplitGroupPoolGetIpAddedTimeRequest = { - groupId: Address - ipId: Address -} + groupId: Address; + ipId: Address; +}; -export type EvenSplitGroupPoolGetIpAddedTimeResponse = bigint +export type EvenSplitGroupPoolGetIpAddedTimeResponse = bigint; /** * EvenSplitGroupPoolGetIpRewardDebtRequest @@ -17708,12 +17179,12 @@ export type EvenSplitGroupPoolGetIpAddedTimeResponse = bigint * @param ipId address */ export type EvenSplitGroupPoolGetIpRewardDebtRequest = { - groupId: Address - token: Address - ipId: Address -} + groupId: Address; + token: Address; + ipId: Address; +}; -export type EvenSplitGroupPoolGetIpRewardDebtResponse = bigint +export type EvenSplitGroupPoolGetIpRewardDebtResponse = bigint; /** * EvenSplitGroupPoolGetMinimumRewardShareRequest @@ -17722,11 +17193,11 @@ export type EvenSplitGroupPoolGetIpRewardDebtResponse = bigint * @param ipId address */ export type EvenSplitGroupPoolGetMinimumRewardShareRequest = { - groupId: Address - ipId: Address -} + groupId: Address; + ipId: Address; +}; -export type EvenSplitGroupPoolGetMinimumRewardShareResponse = bigint +export type EvenSplitGroupPoolGetMinimumRewardShareResponse = bigint; /** * EvenSplitGroupPoolGetTotalAllocatedRewardShareRequest @@ -17734,10 +17205,10 @@ export type EvenSplitGroupPoolGetMinimumRewardShareResponse = bigint * @param groupId address */ export type EvenSplitGroupPoolGetTotalAllocatedRewardShareRequest = { - groupId: Address -} + groupId: Address; +}; -export type EvenSplitGroupPoolGetTotalAllocatedRewardShareResponse = bigint +export type EvenSplitGroupPoolGetTotalAllocatedRewardShareResponse = bigint; /** * EvenSplitGroupPoolGetTotalIpsRequest @@ -17745,12 +17216,12 @@ export type EvenSplitGroupPoolGetTotalAllocatedRewardShareResponse = bigint * @param groupId address */ export type EvenSplitGroupPoolGetTotalIpsRequest = { - groupId: Address -} + groupId: Address; +}; -export type EvenSplitGroupPoolGetTotalIpsResponse = bigint +export type EvenSplitGroupPoolGetTotalIpsResponse = bigint; -export type EvenSplitGroupPoolIsConsumingScheduledOpResponse = Hex +export type EvenSplitGroupPoolIsConsumingScheduledOpResponse = Hex; /** * EvenSplitGroupPoolIsIpAddedRequest @@ -17759,15 +17230,15 @@ export type EvenSplitGroupPoolIsConsumingScheduledOpResponse = Hex * @param ipId address */ export type EvenSplitGroupPoolIsIpAddedRequest = { - groupId: Address - ipId: Address -} + groupId: Address; + ipId: Address; +}; -export type EvenSplitGroupPoolIsIpAddedResponse = boolean +export type EvenSplitGroupPoolIsIpAddedResponse = boolean; -export type EvenSplitGroupPoolPausedResponse = boolean +export type EvenSplitGroupPoolPausedResponse = boolean; -export type EvenSplitGroupPoolProxiableUuidResponse = Hex +export type EvenSplitGroupPoolProxiableUuidResponse = Hex; /** * EvenSplitGroupPoolProtocolPausableInitRequest @@ -17775,8 +17246,8 @@ export type EvenSplitGroupPoolProxiableUuidResponse = Hex * @param accessManager address */ export type EvenSplitGroupPoolProtocolPausableInitRequest = { - accessManager: Address -} + accessManager: Address; +}; /** * EvenSplitGroupPoolAddIpRequest @@ -17786,10 +17257,10 @@ export type EvenSplitGroupPoolProtocolPausableInitRequest = { * @param minimumGroupRewardShare uint256 */ export type EvenSplitGroupPoolAddIpRequest = { - groupId: Address - ipId: Address - minimumGroupRewardShare: bigint -} + groupId: Address; + ipId: Address; + minimumGroupRewardShare: bigint; +}; /** * EvenSplitGroupPoolDepositRewardRequest @@ -17799,10 +17270,10 @@ export type EvenSplitGroupPoolAddIpRequest = { * @param amount uint256 */ export type EvenSplitGroupPoolDepositRewardRequest = { - groupId: Address - token: Address - amount: bigint -} + groupId: Address; + token: Address; + amount: bigint; +}; /** * EvenSplitGroupPoolDistributeRewardsRequest @@ -17812,10 +17283,10 @@ export type EvenSplitGroupPoolDepositRewardRequest = { * @param ipIds address[] */ export type EvenSplitGroupPoolDistributeRewardsRequest = { - groupId: Address - token: Address - ipIds: readonly Address[] -} + groupId: Address; + token: Address; + ipIds: readonly Address[]; +}; /** * EvenSplitGroupPoolInitializeRequest @@ -17823,8 +17294,8 @@ export type EvenSplitGroupPoolDistributeRewardsRequest = { * @param accessManager address */ export type EvenSplitGroupPoolInitializeRequest = { - accessManager: Address -} + accessManager: Address; +}; /** * EvenSplitGroupPoolRemoveIpRequest @@ -17833,9 +17304,9 @@ export type EvenSplitGroupPoolInitializeRequest = { * @param ipId address */ export type EvenSplitGroupPoolRemoveIpRequest = { - groupId: Address - ipId: Address -} + groupId: Address; + ipId: Address; +}; /** * EvenSplitGroupPoolSetAuthorityRequest @@ -17843,8 +17314,8 @@ export type EvenSplitGroupPoolRemoveIpRequest = { * @param newAuthority address */ export type EvenSplitGroupPoolSetAuthorityRequest = { - newAuthority: Address -} + newAuthority: Address; +}; /** * EvenSplitGroupPoolUpgradeToAndCallRequest @@ -17853,40 +17324,36 @@ export type EvenSplitGroupPoolSetAuthorityRequest = { * @param data bytes */ export type EvenSplitGroupPoolUpgradeToAndCallRequest = { - newImplementation: Address - data: Hex -} + newImplementation: Address; + data: Hex; +}; /** * contract EvenSplitGroupPool event */ export class EvenSplitGroupPoolEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(evenSplitGroupPoolAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(evenSplitGroupPoolAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event AuthorityUpdated for contract EvenSplitGroupPool */ public watchAuthorityUpdatedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: evenSplitGroupPoolAbi, address: this.address, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -17895,42 +17362,39 @@ export class EvenSplitGroupPoolEventClient { public parseTxAuthorityUpdatedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: evenSplitGroupPoolAbi, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", data: log.data, topics: log.topics, - }) - if (event.eventName === 'AuthorityUpdated') { - targetLogs.push(event.args) + }); + if (event.eventName === "AuthorityUpdated") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event Initialized for contract EvenSplitGroupPool */ public watchInitializedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: evenSplitGroupPoolAbi, address: this.address, - eventName: 'Initialized', + eventName: "Initialized", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -17939,23 +17403,23 @@ export class EvenSplitGroupPoolEventClient { public parseTxInitializedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: evenSplitGroupPoolAbi, - eventName: 'Initialized', + eventName: "Initialized", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Initialized') { - targetLogs.push(event.args) + }); + if (event.eventName === "Initialized") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -17967,36 +17431,34 @@ export class EvenSplitGroupPoolEventClient { return this.rpcClient.watchContractEvent({ abi: evenSplitGroupPoolAbi, address: this.address, - eventName: 'Paused', + eventName: "Paused", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** * parse tx receipt event Paused for contract EvenSplitGroupPool */ - public parseTxPausedEvent( - txReceipt: TransactionReceipt, - ): Array { - const targetLogs: Array = [] + public parseTxPausedEvent(txReceipt: TransactionReceipt): Array { + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: evenSplitGroupPoolAbi, - eventName: 'Paused', + eventName: "Paused", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Paused') { - targetLogs.push(event.args) + }); + if (event.eventName === "Paused") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -18008,11 +17470,11 @@ export class EvenSplitGroupPoolEventClient { return this.rpcClient.watchContractEvent({ abi: evenSplitGroupPoolAbi, address: this.address, - eventName: 'Unpaused', + eventName: "Unpaused", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -18021,23 +17483,23 @@ export class EvenSplitGroupPoolEventClient { public parseTxUnpausedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: evenSplitGroupPoolAbi, - eventName: 'Unpaused', + eventName: "Unpaused", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Unpaused') { - targetLogs.push(event.args) + }); + if (event.eventName === "Unpaused") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -18049,11 +17511,11 @@ export class EvenSplitGroupPoolEventClient { return this.rpcClient.watchContractEvent({ abi: evenSplitGroupPoolAbi, address: this.address, - eventName: 'Upgraded', + eventName: "Upgraded", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -18062,23 +17524,23 @@ export class EvenSplitGroupPoolEventClient { public parseTxUpgradedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: evenSplitGroupPoolAbi, - eventName: 'Upgraded', + eventName: "Upgraded", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Upgraded') { - targetLogs.push(event.args) + }); + if (event.eventName === "Upgraded") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -18087,7 +17549,7 @@ export class EvenSplitGroupPoolEventClient { */ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -18100,8 +17562,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'GROUPING_MODULE', - }) + functionName: "GROUPING_MODULE", + }); } /** @@ -18114,8 +17576,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'GROUP_IP_ASSET_REGISTRY', - }) + functionName: "GROUP_IP_ASSET_REGISTRY", + }); } /** @@ -18128,8 +17590,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'MAX_GROUP_SIZE', - }) + functionName: "MAX_GROUP_SIZE", + }); } /** @@ -18142,8 +17604,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'ROYALTY_MODULE', - }) + functionName: "ROYALTY_MODULE", + }); } /** @@ -18156,8 +17618,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'UPGRADE_INTERFACE_VERSION', - }) + functionName: "UPGRADE_INTERFACE_VERSION", + }); } /** @@ -18170,8 +17632,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'authority', - }) + functionName: "authority", + }); } /** @@ -18186,9 +17648,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'getAvailableReward', + functionName: "getAvailableReward", args: [request.groupId, request.token, request.ipIds], - }) + }); } /** @@ -18203,9 +17665,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'getIpAddedTime', + functionName: "getIpAddedTime", args: [request.groupId, request.ipId], - }) + }); } /** @@ -18220,9 +17682,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'getIpRewardDebt', + functionName: "getIpRewardDebt", args: [request.groupId, request.token, request.ipId], - }) + }); } /** @@ -18237,9 +17699,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'getMinimumRewardShare', + functionName: "getMinimumRewardShare", args: [request.groupId, request.ipId], - }) + }); } /** @@ -18254,9 +17716,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'getTotalAllocatedRewardShare', + functionName: "getTotalAllocatedRewardShare", args: [request.groupId], - }) + }); } /** @@ -18271,9 +17733,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'getTotalIps', + functionName: "getTotalIps", args: [request.groupId], - }) + }); } /** @@ -18286,8 +17748,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'isConsumingScheduledOp', - }) + functionName: "isConsumingScheduledOp", + }); } /** @@ -18302,9 +17764,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'isIPAdded', + functionName: "isIPAdded", args: [request.groupId, request.ipId], - }) + }); } /** @@ -18317,8 +17779,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'paused', - }) + functionName: "paused", + }); } /** @@ -18331,8 +17793,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'proxiableUUID', - }) + functionName: "proxiableUUID", + }); } } @@ -18340,15 +17802,11 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli * contract EvenSplitGroupPool write method */ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -18363,11 +17821,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: '__ProtocolPausable_init', + functionName: "__ProtocolPausable_init", account: this.wallet.account, args: [request.accessManager], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18383,10 +17841,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: '__ProtocolPausable_init', + functionName: "__ProtocolPausable_init", args: [request.accessManager], }), - } + }; } /** @@ -18395,17 +17853,15 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param request EvenSplitGroupPoolAddIpRequest * @return Promise */ - public async addIp( - request: EvenSplitGroupPoolAddIpRequest, - ): Promise { + public async addIp(request: EvenSplitGroupPoolAddIpRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'addIp', + functionName: "addIp", account: this.wallet.account, args: [request.groupId, request.ipId, request.minimumGroupRewardShare], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18419,10 +17875,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'addIp', + functionName: "addIp", args: [request.groupId, request.ipId, request.minimumGroupRewardShare], }), - } + }; } /** @@ -18437,11 +17893,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'depositReward', + functionName: "depositReward", account: this.wallet.account, args: [request.groupId, request.token, request.amount], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18450,17 +17906,15 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param request EvenSplitGroupPoolDepositRewardRequest * @return EncodedTxData */ - public depositRewardEncode( - request: EvenSplitGroupPoolDepositRewardRequest, - ): EncodedTxData { + public depositRewardEncode(request: EvenSplitGroupPoolDepositRewardRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'depositReward', + functionName: "depositReward", args: [request.groupId, request.token, request.amount], }), - } + }; } /** @@ -18475,11 +17929,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'distributeRewards', + functionName: "distributeRewards", account: this.wallet.account, args: [request.groupId, request.token, request.ipIds], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18495,10 +17949,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'distributeRewards', + functionName: "distributeRewards", args: [request.groupId, request.token, request.ipIds], }), - } + }; } /** @@ -18513,11 +17967,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'initialize', + functionName: "initialize", account: this.wallet.account, args: [request.accessManager], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18526,17 +17980,15 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param request EvenSplitGroupPoolInitializeRequest * @return EncodedTxData */ - public initializeEncode( - request: EvenSplitGroupPoolInitializeRequest, - ): EncodedTxData { + public initializeEncode(request: EvenSplitGroupPoolInitializeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'initialize', + functionName: "initialize", args: [request.accessManager], }), - } + }; } /** @@ -18549,10 +18001,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'pause', + functionName: "pause", account: this.wallet.account, - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18566,9 +18018,9 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'pause', + functionName: "pause", }), - } + }; } /** @@ -18583,11 +18035,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'removeIp', + functionName: "removeIp", account: this.wallet.account, args: [request.groupId, request.ipId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18596,17 +18048,15 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param request EvenSplitGroupPoolRemoveIpRequest * @return EncodedTxData */ - public removeIpEncode( - request: EvenSplitGroupPoolRemoveIpRequest, - ): EncodedTxData { + public removeIpEncode(request: EvenSplitGroupPoolRemoveIpRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'removeIp', + functionName: "removeIp", args: [request.groupId, request.ipId], }), - } + }; } /** @@ -18621,11 +18071,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'setAuthority', + functionName: "setAuthority", account: this.wallet.account, args: [request.newAuthority], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18634,17 +18084,15 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param request EvenSplitGroupPoolSetAuthorityRequest * @return EncodedTxData */ - public setAuthorityEncode( - request: EvenSplitGroupPoolSetAuthorityRequest, - ): EncodedTxData { + public setAuthorityEncode(request: EvenSplitGroupPoolSetAuthorityRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'setAuthority', + functionName: "setAuthority", args: [request.newAuthority], }), - } + }; } /** @@ -18657,10 +18105,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'unpause', + functionName: "unpause", account: this.wallet.account, - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18674,9 +18122,9 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'unpause', + functionName: "unpause", }), - } + }; } /** @@ -18691,11 +18139,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", account: this.wallet.account, args: [request.newImplementation, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -18704,17 +18152,15 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param request EvenSplitGroupPoolUpgradeToAndCallRequest * @return EncodedTxData */ - public upgradeToAndCallEncode( - request: EvenSplitGroupPoolUpgradeToAndCallRequest, - ): EncodedTxData { + public upgradeToAndCallEncode(request: EvenSplitGroupPoolUpgradeToAndCallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", args: [request.newImplementation, request.data], }), - } + }; } } @@ -18729,11 +18175,11 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { * @param amount uint256[] */ export type GroupingModuleClaimedRewardEvent = { - groupId: Address - token: Address - ipId: readonly Address[] - amount: readonly bigint[] -} + groupId: Address; + token: Address; + ipId: readonly Address[]; + amount: readonly bigint[]; +}; /** * GroupingModuleCollectedRoyaltiesToGroupPoolEvent @@ -18744,11 +18190,11 @@ export type GroupingModuleClaimedRewardEvent = { * @param amount uint256 */ export type GroupingModuleCollectedRoyaltiesToGroupPoolEvent = { - groupId: Address - token: Address - pool: Address - amount: bigint -} + groupId: Address; + token: Address; + pool: Address; + amount: bigint; +}; /** * GroupingModuleIpGroupRegisteredEvent @@ -18757,9 +18203,9 @@ export type GroupingModuleCollectedRoyaltiesToGroupPoolEvent = { * @param groupPool address */ export type GroupingModuleIpGroupRegisteredEvent = { - groupId: Address - groupPool: Address -} + groupId: Address; + groupPool: Address; +}; /** * GroupingModuleGetClaimableRewardRequest @@ -18769,12 +18215,12 @@ export type GroupingModuleIpGroupRegisteredEvent = { * @param ipIds address[] */ export type GroupingModuleGetClaimableRewardRequest = { - groupId: Address - token: Address - ipIds: readonly Address[] -} + groupId: Address; + token: Address; + ipIds: readonly Address[]; +}; -export type GroupingModuleGetClaimableRewardResponse = readonly bigint[] +export type GroupingModuleGetClaimableRewardResponse = readonly bigint[]; /** * GroupingModuleAddIpRequest @@ -18784,10 +18230,10 @@ export type GroupingModuleGetClaimableRewardResponse = readonly bigint[] * @param maxAllowedRewardShare uint256 */ export type GroupingModuleAddIpRequest = { - groupIpId: Address - ipIds: readonly Address[] - maxAllowedRewardShare: bigint -} + groupIpId: Address; + ipIds: readonly Address[]; + maxAllowedRewardShare: bigint; +}; /** * GroupingModuleClaimRewardRequest @@ -18797,10 +18243,10 @@ export type GroupingModuleAddIpRequest = { * @param ipIds address[] */ export type GroupingModuleClaimRewardRequest = { - groupId: Address - token: Address - ipIds: readonly Address[] -} + groupId: Address; + token: Address; + ipIds: readonly Address[]; +}; /** * GroupingModuleCollectRoyaltiesRequest @@ -18809,9 +18255,9 @@ export type GroupingModuleClaimRewardRequest = { * @param token address */ export type GroupingModuleCollectRoyaltiesRequest = { - groupId: Address - token: Address -} + groupId: Address; + token: Address; +}; /** * GroupingModuleRegisterGroupRequest @@ -18819,8 +18265,8 @@ export type GroupingModuleCollectRoyaltiesRequest = { * @param groupPool address */ export type GroupingModuleRegisterGroupRequest = { - groupPool: Address -} + groupPool: Address; +}; /** * GroupingModuleRemoveIpRequest @@ -18829,40 +18275,36 @@ export type GroupingModuleRegisterGroupRequest = { * @param ipIds address[] */ export type GroupingModuleRemoveIpRequest = { - groupIpId: Address - ipIds: readonly Address[] -} + groupIpId: Address; + ipIds: readonly Address[]; +}; /** * contract GroupingModule event */ export class GroupingModuleEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(groupingModuleAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(groupingModuleAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event ClaimedReward for contract GroupingModule */ public watchClaimedRewardEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: groupingModuleAbi, address: this.address, - eventName: 'ClaimedReward', + eventName: "ClaimedReward", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -18871,42 +18313,39 @@ export class GroupingModuleEventClient { public parseTxClaimedRewardEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: groupingModuleAbi, - eventName: 'ClaimedReward', + eventName: "ClaimedReward", data: log.data, topics: log.topics, - }) - if (event.eventName === 'ClaimedReward') { - targetLogs.push(event.args) + }); + if (event.eventName === "ClaimedReward") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event CollectedRoyaltiesToGroupPool for contract GroupingModule */ public watchCollectedRoyaltiesToGroupPoolEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: groupingModuleAbi, address: this.address, - eventName: 'CollectedRoyaltiesToGroupPool', + eventName: "CollectedRoyaltiesToGroupPool", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -18915,43 +18354,39 @@ export class GroupingModuleEventClient { public parseTxCollectedRoyaltiesToGroupPoolEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = - [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: groupingModuleAbi, - eventName: 'CollectedRoyaltiesToGroupPool', + eventName: "CollectedRoyaltiesToGroupPool", data: log.data, topics: log.topics, - }) - if (event.eventName === 'CollectedRoyaltiesToGroupPool') { - targetLogs.push(event.args) + }); + if (event.eventName === "CollectedRoyaltiesToGroupPool") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event IPGroupRegistered for contract GroupingModule */ public watchIpGroupRegisteredEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: groupingModuleAbi, address: this.address, - eventName: 'IPGroupRegistered', + eventName: "IPGroupRegistered", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -18960,23 +18395,23 @@ export class GroupingModuleEventClient { public parseTxIpGroupRegisteredEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: groupingModuleAbi, - eventName: 'IPGroupRegistered', + eventName: "IPGroupRegistered", data: log.data, topics: log.topics, - }) - if (event.eventName === 'IPGroupRegistered') { - targetLogs.push(event.args) + }); + if (event.eventName === "IPGroupRegistered") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -18985,7 +18420,7 @@ export class GroupingModuleEventClient { */ export class GroupingModuleReadOnlyClient extends GroupingModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -19000,9 +18435,9 @@ export class GroupingModuleReadOnlyClient extends GroupingModuleEventClient { return await this.rpcClient.readContract({ abi: groupingModuleAbi, address: this.address, - functionName: 'getClaimableReward', + functionName: "getClaimableReward", args: [request.groupId, request.token, request.ipIds], - }) + }); } } @@ -19010,15 +18445,11 @@ export class GroupingModuleReadOnlyClient extends GroupingModuleEventClient { * contract GroupingModule write method */ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -19027,17 +18458,15 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { * @param request GroupingModuleAddIpRequest * @return Promise */ - public async addIp( - request: GroupingModuleAddIpRequest, - ): Promise { + public async addIp(request: GroupingModuleAddIpRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingModuleAbi, address: this.address, - functionName: 'addIp', + functionName: "addIp", account: this.wallet.account, args: [request.groupIpId, request.ipIds, request.maxAllowedRewardShare], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19051,10 +18480,10 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: 'addIp', + functionName: "addIp", args: [request.groupIpId, request.ipIds, request.maxAllowedRewardShare], }), - } + }; } /** @@ -19069,11 +18498,11 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingModuleAbi, address: this.address, - functionName: 'claimReward', + functionName: "claimReward", account: this.wallet.account, args: [request.groupId, request.token, request.ipIds], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19082,17 +18511,15 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { * @param request GroupingModuleClaimRewardRequest * @return EncodedTxData */ - public claimRewardEncode( - request: GroupingModuleClaimRewardRequest, - ): EncodedTxData { + public claimRewardEncode(request: GroupingModuleClaimRewardRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: 'claimReward', + functionName: "claimReward", args: [request.groupId, request.token, request.ipIds], }), - } + }; } /** @@ -19107,11 +18534,11 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingModuleAbi, address: this.address, - functionName: 'collectRoyalties', + functionName: "collectRoyalties", account: this.wallet.account, args: [request.groupId, request.token], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19120,17 +18547,15 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { * @param request GroupingModuleCollectRoyaltiesRequest * @return EncodedTxData */ - public collectRoyaltiesEncode( - request: GroupingModuleCollectRoyaltiesRequest, - ): EncodedTxData { + public collectRoyaltiesEncode(request: GroupingModuleCollectRoyaltiesRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: 'collectRoyalties', + functionName: "collectRoyalties", args: [request.groupId, request.token], }), - } + }; } /** @@ -19145,11 +18570,11 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingModuleAbi, address: this.address, - functionName: 'registerGroup', + functionName: "registerGroup", account: this.wallet.account, args: [request.groupPool], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19158,17 +18583,15 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { * @param request GroupingModuleRegisterGroupRequest * @return EncodedTxData */ - public registerGroupEncode( - request: GroupingModuleRegisterGroupRequest, - ): EncodedTxData { + public registerGroupEncode(request: GroupingModuleRegisterGroupRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: 'registerGroup', + functionName: "registerGroup", args: [request.groupPool], }), - } + }; } /** @@ -19177,17 +18600,15 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { * @param request GroupingModuleRemoveIpRequest * @return Promise */ - public async removeIp( - request: GroupingModuleRemoveIpRequest, - ): Promise { + public async removeIp(request: GroupingModuleRemoveIpRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingModuleAbi, address: this.address, - functionName: 'removeIp', + functionName: "removeIp", account: this.wallet.account, args: [request.groupIpId, request.ipIds], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19201,10 +18622,10 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: 'removeIp', + functionName: "removeIp", args: [request.groupIpId, request.ipIds], }), - } + }; } } @@ -19218,10 +18639,10 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { * @param memberIpIds address[] */ export type GroupingWorkflowsCollectRoyaltiesAndClaimRewardRequest = { - groupIpId: Address - currencyTokens: readonly Address[] - memberIpIds: readonly Address[] -} + groupIpId: Address; + currencyTokens: readonly Address[]; + memberIpIds: readonly Address[]; +}; /** * GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest @@ -19235,39 +18656,38 @@ export type GroupingWorkflowsCollectRoyaltiesAndClaimRewardRequest = { * @param sigAddToGroup tuple * @param allowDuplicates bool */ -export type GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest = - { - spgNftContract: Address - groupId: Address - recipient: Address - maxAllowedRewardShare: bigint - licensesData: { - licenseTemplate: Address - licenseTermsId: bigint - licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] - ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } - sigAddToGroup: { - signer: Address - deadline: bigint - signature: Hex - } - allowDuplicates: boolean - } +export type GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest = { + spgNftContract: Address; + groupId: Address; + recipient: Address; + maxAllowedRewardShare: bigint; + licensesData: { + licenseTemplate: Address; + licenseTermsId: bigint; + licensingConfig: { + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; + ipMetadata: { + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; + sigAddToGroup: { + signer: Address; + deadline: bigint; + signature: Hex; + }; + allowDuplicates: boolean; +}; /** * GroupingWorkflowsRegisterGroupAndAttachLicenseRequest @@ -19276,22 +18696,22 @@ export type GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupReque * @param licenseData tuple */ export type GroupingWorkflowsRegisterGroupAndAttachLicenseRequest = { - groupPool: Address + groupPool: Address; licenseData: { - licenseTemplate: Address - licenseTermsId: bigint + licenseTemplate: Address; + licenseTermsId: bigint; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - } -} + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }; +}; /** * GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest @@ -19302,24 +18722,24 @@ export type GroupingWorkflowsRegisterGroupAndAttachLicenseRequest = { * @param licenseData tuple */ export type GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest = { - groupPool: Address - ipIds: readonly Address[] - maxAllowedRewardShare: bigint + groupPool: Address; + ipIds: readonly Address[]; + maxAllowedRewardShare: bigint; licenseData: { - licenseTemplate: Address - licenseTermsId: bigint + licenseTemplate: Address; + licenseTermsId: bigint; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - } -} + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }; +}; /** * GroupingWorkflowsRegisterIpAndAttachLicenseAndAddToGroupRequest @@ -19334,59 +18754,54 @@ export type GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest = { * @param sigAddToGroup tuple */ export type GroupingWorkflowsRegisterIpAndAttachLicenseAndAddToGroupRequest = { - nftContract: Address - tokenId: bigint - groupId: Address - maxAllowedRewardShare: bigint + nftContract: Address; + tokenId: bigint; + groupId: Address; + maxAllowedRewardShare: bigint; licensesData: { - licenseTemplate: Address - licenseTermsId: bigint + licenseTemplate: Address; + licenseTermsId: bigint; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; sigMetadataAndAttachAndConfig: { - signer: Address - deadline: bigint - signature: Hex - } + signer: Address; + deadline: bigint; + signature: Hex; + }; sigAddToGroup: { - signer: Address - deadline: bigint - signature: Hex - } -} + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * contract GroupingWorkflows write method */ export class GroupingWorkflowsClient { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address - - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - this.address = - address || getAddress(groupingWorkflowsAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; + + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + this.address = address || getAddress(groupingWorkflowsAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -19401,11 +18816,11 @@ export class GroupingWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingWorkflowsAbi, address: this.address, - functionName: 'collectRoyaltiesAndClaimReward', + functionName: "collectRoyaltiesAndClaimReward", account: this.wallet.account, args: [request.groupIpId, request.currencyTokens, request.memberIpIds], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19421,10 +18836,10 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: 'collectRoyaltiesAndClaimReward', + functionName: "collectRoyaltiesAndClaimReward", args: [request.groupIpId, request.currencyTokens, request.memberIpIds], }), - } + }; } /** @@ -19439,7 +18854,7 @@ export class GroupingWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingWorkflowsAbi, address: this.address, - functionName: 'mintAndRegisterIpAndAttachLicenseAndAddToGroup', + functionName: "mintAndRegisterIpAndAttachLicenseAndAddToGroup", account: this.wallet.account, args: [ request.spgNftContract, @@ -19451,8 +18866,8 @@ export class GroupingWorkflowsClient { request.sigAddToGroup, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19468,7 +18883,7 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: 'mintAndRegisterIpAndAttachLicenseAndAddToGroup', + functionName: "mintAndRegisterIpAndAttachLicenseAndAddToGroup", args: [ request.spgNftContract, request.groupId, @@ -19480,7 +18895,7 @@ export class GroupingWorkflowsClient { request.allowDuplicates, ], }), - } + }; } /** @@ -19495,11 +18910,11 @@ export class GroupingWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingWorkflowsAbi, address: this.address, - functionName: 'registerGroupAndAttachLicense', + functionName: "registerGroupAndAttachLicense", account: this.wallet.account, args: [request.groupPool, request.licenseData], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19515,10 +18930,10 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: 'registerGroupAndAttachLicense', + functionName: "registerGroupAndAttachLicense", args: [request.groupPool, request.licenseData], }), - } + }; } /** @@ -19533,16 +18948,11 @@ export class GroupingWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingWorkflowsAbi, address: this.address, - functionName: 'registerGroupAndAttachLicenseAndAddIps', + functionName: "registerGroupAndAttachLicenseAndAddIps", account: this.wallet.account, - args: [ - request.groupPool, - request.ipIds, - request.maxAllowedRewardShare, - request.licenseData, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.groupPool, request.ipIds, request.maxAllowedRewardShare, request.licenseData], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19558,7 +18968,7 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: 'registerGroupAndAttachLicenseAndAddIps', + functionName: "registerGroupAndAttachLicenseAndAddIps", args: [ request.groupPool, request.ipIds, @@ -19566,7 +18976,7 @@ export class GroupingWorkflowsClient { request.licenseData, ], }), - } + }; } /** @@ -19581,7 +18991,7 @@ export class GroupingWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: groupingWorkflowsAbi, address: this.address, - functionName: 'registerIpAndAttachLicenseAndAddToGroup', + functionName: "registerIpAndAttachLicenseAndAddToGroup", account: this.wallet.account, args: [ request.nftContract, @@ -19593,8 +19003,8 @@ export class GroupingWorkflowsClient { request.sigMetadataAndAttachAndConfig, request.sigAddToGroup, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19610,7 +19020,7 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: 'registerIpAndAttachLicenseAndAddToGroup', + functionName: "registerIpAndAttachLicenseAndAddToGroup", args: [ request.nftContract, request.tokenId, @@ -19622,13 +19032,13 @@ export class GroupingWorkflowsClient { request.sigAddToGroup, ], }), - } + }; } } // Contract IPAccountImpl ============================================================= -export type IpAccountImplOwnerResponse = Address +export type IpAccountImplOwnerResponse = Address; /** * IpAccountImplStateResponse @@ -19636,8 +19046,8 @@ export type IpAccountImplOwnerResponse = Address * @param result bytes32 */ export type IpAccountImplStateResponse = { - result: Hex -} + result: Hex; +}; /** * IpAccountImplTokenResponse @@ -19646,7 +19056,7 @@ export type IpAccountImplStateResponse = { * @param 1 address * @param 2 uint256 */ -export type IpAccountImplTokenResponse = readonly [bigint, Address, bigint] +export type IpAccountImplTokenResponse = readonly [bigint, Address, bigint]; /** * IpAccountImplExecuteRequest @@ -19657,11 +19067,11 @@ export type IpAccountImplTokenResponse = readonly [bigint, Address, bigint] * @param operation uint8 */ export type IpAccountImplExecuteRequest = { - to: Address - value: bigint - data: Hex - operation: number -} + to: Address; + value: bigint; + data: Hex; + operation: number; +}; /** * IpAccountImplExecute2Request @@ -19671,10 +19081,10 @@ export type IpAccountImplExecuteRequest = { * @param data bytes */ export type IpAccountImplExecute2Request = { - to: Address - value: bigint - data: Hex -} + to: Address; + value: bigint; + data: Hex; +}; /** * IpAccountImplExecuteBatchRequest @@ -19684,12 +19094,12 @@ export type IpAccountImplExecute2Request = { */ export type IpAccountImplExecuteBatchRequest = { calls: { - target: Address - value: bigint - data: Hex - }[] - operation: number -} + target: Address; + value: bigint; + data: Hex; + }[]; + operation: number; +}; /** * IpAccountImplExecuteWithSigRequest @@ -19702,25 +19112,24 @@ export type IpAccountImplExecuteBatchRequest = { * @param signature bytes */ export type IpAccountImplExecuteWithSigRequest = { - to: Address - value: bigint - data: Hex - signer: Address - deadline: bigint - signature: Hex -} + to: Address; + value: bigint; + data: Hex; + signer: Address; + deadline: bigint; + signature: Hex; +}; /** * contract IPAccountImpl readonly method */ export class IpAccountImplReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(ipAccountImplAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(ipAccountImplAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -19733,8 +19142,8 @@ export class IpAccountImplReadOnlyClient { return await this.rpcClient.readContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'owner', - }) + functionName: "owner", + }); } /** @@ -19747,11 +19156,11 @@ export class IpAccountImplReadOnlyClient { const result = await this.rpcClient.readContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'state', - }) + functionName: "state", + }); return { result: result, - } + }; } /** @@ -19764,8 +19173,8 @@ export class IpAccountImplReadOnlyClient { return await this.rpcClient.readContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'token', - }) + functionName: "token", + }); } } @@ -19773,15 +19182,11 @@ export class IpAccountImplReadOnlyClient { * contract IPAccountImpl write method */ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -19790,17 +19195,15 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { * @param request IpAccountImplExecuteRequest * @return Promise */ - public async execute( - request: IpAccountImplExecuteRequest, - ): Promise { + public async execute(request: IpAccountImplExecuteRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'execute', + functionName: "execute", account: this.wallet.account, args: [request.to, request.value, request.data, request.operation], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19814,10 +19217,10 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: ipAccountImplAbi, - functionName: 'execute', + functionName: "execute", args: [request.to, request.value, request.data, request.operation], }), - } + }; } /** @@ -19826,17 +19229,15 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { * @param request IpAccountImplExecute2Request * @return Promise */ - public async execute2( - request: IpAccountImplExecute2Request, - ): Promise { + public async execute2(request: IpAccountImplExecute2Request): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'execute', + functionName: "execute", account: this.wallet.account, args: [request.to, request.value, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19850,10 +19251,10 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: ipAccountImplAbi, - functionName: 'execute', + functionName: "execute", args: [request.to, request.value, request.data], }), - } + }; } /** @@ -19868,11 +19269,11 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'executeBatch', + functionName: "executeBatch", account: this.wallet.account, args: [request.calls, request.operation], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19881,17 +19282,15 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { * @param request IpAccountImplExecuteBatchRequest * @return EncodedTxData */ - public executeBatchEncode( - request: IpAccountImplExecuteBatchRequest, - ): EncodedTxData { + public executeBatchEncode(request: IpAccountImplExecuteBatchRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: ipAccountImplAbi, - functionName: 'executeBatch', + functionName: "executeBatch", args: [request.calls, request.operation], }), - } + }; } /** @@ -19906,7 +19305,7 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: ipAccountImplAbi, address: this.address, - functionName: 'executeWithSig', + functionName: "executeWithSig", account: this.wallet.account, args: [ request.to, @@ -19916,8 +19315,8 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { request.deadline, request.signature, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -19926,14 +19325,12 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { * @param request IpAccountImplExecuteWithSigRequest * @return EncodedTxData */ - public executeWithSigEncode( - request: IpAccountImplExecuteWithSigRequest, - ): EncodedTxData { + public executeWithSigEncode(request: IpAccountImplExecuteWithSigRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: ipAccountImplAbi, - functionName: 'executeWithSig', + functionName: "executeWithSig", args: [ request.to, request.value, @@ -19943,7 +19340,7 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { request.signature, ], }), - } + }; } } @@ -19959,12 +19356,12 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { * @param tokenId uint256 */ export type IpAssetRegistryIpAccountRegisteredEvent = { - account: Address - implementation: Address - chainId: bigint - tokenContract: Address - tokenId: bigint -} + account: Address; + implementation: Address; + chainId: bigint; + tokenContract: Address; + tokenId: bigint; +}; /** * IpAssetRegistryIpRegisteredEvent @@ -19978,14 +19375,14 @@ export type IpAssetRegistryIpAccountRegisteredEvent = { * @param registrationDate uint256 */ export type IpAssetRegistryIpRegisteredEvent = { - ipId: Address - chainId: bigint - tokenContract: Address - tokenId: bigint - name: string - uri: string - registrationDate: bigint -} + ipId: Address; + chainId: bigint; + tokenContract: Address; + tokenId: bigint; + name: string; + uri: string; + registrationDate: bigint; +}; /** * IpAssetRegistryIpIdRequest @@ -19995,12 +19392,12 @@ export type IpAssetRegistryIpRegisteredEvent = { * @param tokenId uint256 */ export type IpAssetRegistryIpIdRequest = { - chainId: bigint - tokenContract: Address - tokenId: bigint -} + chainId: bigint; + tokenContract: Address; + tokenId: bigint; +}; -export type IpAssetRegistryIpIdResponse = Address +export type IpAssetRegistryIpIdResponse = Address; /** * IpAssetRegistryIsRegisteredRequest @@ -20008,10 +19405,10 @@ export type IpAssetRegistryIpIdResponse = Address * @param id address */ export type IpAssetRegistryIsRegisteredRequest = { - id: Address -} + id: Address; +}; -export type IpAssetRegistryIsRegisteredResponse = boolean +export type IpAssetRegistryIsRegisteredResponse = boolean; /** * IpAssetRegistryRegisterRequest @@ -20021,41 +19418,37 @@ export type IpAssetRegistryIsRegisteredResponse = boolean * @param tokenId uint256 */ export type IpAssetRegistryRegisterRequest = { - chainid: bigint - tokenContract: Address - tokenId: bigint -} + chainid: bigint; + tokenContract: Address; + tokenId: bigint; +}; /** * contract IPAssetRegistry event */ export class IpAssetRegistryEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(ipAssetRegistryAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(ipAssetRegistryAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event IPAccountRegistered for contract IPAssetRegistry */ public watchIpAccountRegisteredEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: ipAssetRegistryAbi, address: this.address, - eventName: 'IPAccountRegistered', + eventName: "IPAccountRegistered", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -20064,42 +19457,39 @@ export class IpAssetRegistryEventClient { public parseTxIpAccountRegisteredEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: ipAssetRegistryAbi, - eventName: 'IPAccountRegistered', + eventName: "IPAccountRegistered", data: log.data, topics: log.topics, - }) - if (event.eventName === 'IPAccountRegistered') { - targetLogs.push(event.args) + }); + if (event.eventName === "IPAccountRegistered") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event IPRegistered for contract IPAssetRegistry */ public watchIpRegisteredEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: ipAssetRegistryAbi, address: this.address, - eventName: 'IPRegistered', + eventName: "IPRegistered", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -20108,23 +19498,23 @@ export class IpAssetRegistryEventClient { public parseTxIpRegisteredEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: ipAssetRegistryAbi, - eventName: 'IPRegistered', + eventName: "IPRegistered", data: log.data, topics: log.topics, - }) - if (event.eventName === 'IPRegistered') { - targetLogs.push(event.args) + }); + if (event.eventName === "IPRegistered") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -20133,7 +19523,7 @@ export class IpAssetRegistryEventClient { */ export class IpAssetRegistryReadOnlyClient extends IpAssetRegistryEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -20142,15 +19532,13 @@ export class IpAssetRegistryReadOnlyClient extends IpAssetRegistryEventClient { * @param request IpAssetRegistryIpIdRequest * @return Promise */ - public async ipId( - request: IpAssetRegistryIpIdRequest, - ): Promise { + public async ipId(request: IpAssetRegistryIpIdRequest): Promise { return await this.rpcClient.readContract({ abi: ipAssetRegistryAbi, address: this.address, - functionName: 'ipId', + functionName: "ipId", args: [request.chainId, request.tokenContract, request.tokenId], - }) + }); } /** @@ -20165,9 +19553,9 @@ export class IpAssetRegistryReadOnlyClient extends IpAssetRegistryEventClient { return await this.rpcClient.readContract({ abi: ipAssetRegistryAbi, address: this.address, - functionName: 'isRegistered', + functionName: "isRegistered", args: [request.id], - }) + }); } } @@ -20175,15 +19563,11 @@ export class IpAssetRegistryReadOnlyClient extends IpAssetRegistryEventClient { * contract IPAssetRegistry write method */ export class IpAssetRegistryClient extends IpAssetRegistryReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -20192,17 +19576,15 @@ export class IpAssetRegistryClient extends IpAssetRegistryReadOnlyClient { * @param request IpAssetRegistryRegisterRequest * @return Promise */ - public async register( - request: IpAssetRegistryRegisterRequest, - ): Promise { + public async register(request: IpAssetRegistryRegisterRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: ipAssetRegistryAbi, address: this.address, - functionName: 'register', + functionName: "register", account: this.wallet.account, args: [request.chainid, request.tokenContract, request.tokenId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -20211,17 +19593,15 @@ export class IpAssetRegistryClient extends IpAssetRegistryReadOnlyClient { * @param request IpAssetRegistryRegisterRequest * @return EncodedTxData */ - public registerEncode( - request: IpAssetRegistryRegisterRequest, - ): EncodedTxData { + public registerEncode(request: IpAssetRegistryRegisterRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: ipAssetRegistryAbi, - functionName: 'register', + functionName: "register", args: [request.chainid, request.tokenContract, request.tokenId], }), - } + }; } } @@ -20235,10 +19615,10 @@ export class IpAssetRegistryClient extends IpAssetRegistryReadOnlyClient { * @param amount uint256 */ export type IpRoyaltyVaultImplRevenueTokenClaimedEvent = { - claimer: Address - token: Address - amount: bigint -} + claimer: Address; + token: Address; + amount: bigint; +}; /** * IpRoyaltyVaultImplBalanceOfRequest @@ -20246,10 +19626,10 @@ export type IpRoyaltyVaultImplRevenueTokenClaimedEvent = { * @param account address */ export type IpRoyaltyVaultImplBalanceOfRequest = { - account: Address -} + account: Address; +}; -export type IpRoyaltyVaultImplBalanceOfResponse = bigint +export type IpRoyaltyVaultImplBalanceOfResponse = bigint; /** * IpRoyaltyVaultImplClaimableRevenueRequest @@ -20258,44 +19638,40 @@ export type IpRoyaltyVaultImplBalanceOfResponse = bigint * @param token address */ export type IpRoyaltyVaultImplClaimableRevenueRequest = { - claimer: Address - token: Address -} + claimer: Address; + token: Address; +}; -export type IpRoyaltyVaultImplClaimableRevenueResponse = bigint +export type IpRoyaltyVaultImplClaimableRevenueResponse = bigint; -export type IpRoyaltyVaultImplIpIdResponse = Address +export type IpRoyaltyVaultImplIpIdResponse = Address; /** * contract IpRoyaltyVaultImpl event */ export class IpRoyaltyVaultImplEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(ipRoyaltyVaultImplAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(ipRoyaltyVaultImplAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event RevenueTokenClaimed for contract IpRoyaltyVaultImpl */ public watchRevenueTokenClaimedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: ipRoyaltyVaultImplAbi, address: this.address, - eventName: 'RevenueTokenClaimed', + eventName: "RevenueTokenClaimed", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -20304,23 +19680,23 @@ export class IpRoyaltyVaultImplEventClient { public parseTxRevenueTokenClaimedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: ipRoyaltyVaultImplAbi, - eventName: 'RevenueTokenClaimed', + eventName: "RevenueTokenClaimed", data: log.data, topics: log.topics, - }) - if (event.eventName === 'RevenueTokenClaimed') { - targetLogs.push(event.args) + }); + if (event.eventName === "RevenueTokenClaimed") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -20329,7 +19705,7 @@ export class IpRoyaltyVaultImplEventClient { */ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -20344,9 +19720,9 @@ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventCli return await this.rpcClient.readContract({ abi: ipRoyaltyVaultImplAbi, address: this.address, - functionName: 'balanceOf', + functionName: "balanceOf", args: [request.account], - }) + }); } /** @@ -20361,9 +19737,9 @@ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventCli return await this.rpcClient.readContract({ abi: ipRoyaltyVaultImplAbi, address: this.address, - functionName: 'claimableRevenue', + functionName: "claimableRevenue", args: [request.claimer, request.token], - }) + }); } /** @@ -20376,8 +19752,8 @@ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventCli return await this.rpcClient.readContract({ abi: ipRoyaltyVaultImplAbi, address: this.address, - functionName: 'ipId', - }) + functionName: "ipId", + }); } } @@ -20392,49 +19768,48 @@ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventCli * @param licenseTermsData tuple[] * @param allowDuplicates bool */ -export type LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest = - { - spgNftContract: Address - recipient: Address - ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } - licenseTermsData: { - terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } - licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] - allowDuplicates: boolean - } +export type LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest = { + spgNftContract: Address; + recipient: Address; + ipMetadata: { + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; + licenseTermsData: { + terms: { + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; + licensingConfig: { + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; + allowDuplicates: boolean; +}; /** * LicenseAttachmentWorkflowsMulticallRequest @@ -20442,8 +19817,8 @@ export type LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest * @param data bytes[] */ export type LicenseAttachmentWorkflowsMulticallRequest = { - data: readonly Hex[] -} + data: readonly Hex[]; +}; /** * LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest @@ -20455,51 +19830,51 @@ export type LicenseAttachmentWorkflowsMulticallRequest = { * @param sigMetadataAndAttachAndConfig tuple */ export type LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest = { - nftContract: Address - tokenId: bigint + nftContract: Address; + tokenId: bigint; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; licenseTermsData: { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; sigMetadataAndAttachAndConfig: { - signer: Address - deadline: bigint - signature: Hex - } -} + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * LicenseAttachmentWorkflowsRegisterPilTermsAndAttachRequest @@ -20509,63 +19884,57 @@ export type LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest = { * @param sigAttachAndConfig tuple */ export type LicenseAttachmentWorkflowsRegisterPilTermsAndAttachRequest = { - ipId: Address + ipId: Address; licenseTermsData: { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; sigAttachAndConfig: { - signer: Address - deadline: bigint - signature: Hex - } -} + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * contract LicenseAttachmentWorkflows write method */ export class LicenseAttachmentWorkflowsClient { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address - - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - this.address = - address || - getAddress(licenseAttachmentWorkflowsAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; + + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + this.address = address || getAddress(licenseAttachmentWorkflowsAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -20580,7 +19949,7 @@ export class LicenseAttachmentWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licenseAttachmentWorkflowsAbi, address: this.address, - functionName: 'mintAndRegisterIpAndAttachPILTerms', + functionName: "mintAndRegisterIpAndAttachPILTerms", account: this.wallet.account, args: [ request.spgNftContract, @@ -20589,8 +19958,8 @@ export class LicenseAttachmentWorkflowsClient { request.licenseTermsData, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -20606,7 +19975,7 @@ export class LicenseAttachmentWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: licenseAttachmentWorkflowsAbi, - functionName: 'mintAndRegisterIpAndAttachPILTerms', + functionName: "mintAndRegisterIpAndAttachPILTerms", args: [ request.spgNftContract, request.recipient, @@ -20615,7 +19984,7 @@ export class LicenseAttachmentWorkflowsClient { request.allowDuplicates, ], }), - } + }; } /** @@ -20630,11 +19999,11 @@ export class LicenseAttachmentWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licenseAttachmentWorkflowsAbi, address: this.address, - functionName: 'multicall', + functionName: "multicall", account: this.wallet.account, args: [request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -20643,17 +20012,15 @@ export class LicenseAttachmentWorkflowsClient { * @param request LicenseAttachmentWorkflowsMulticallRequest * @return EncodedTxData */ - public multicallEncode( - request: LicenseAttachmentWorkflowsMulticallRequest, - ): EncodedTxData { + public multicallEncode(request: LicenseAttachmentWorkflowsMulticallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: licenseAttachmentWorkflowsAbi, - functionName: 'multicall', + functionName: "multicall", args: [request.data], }), - } + }; } /** @@ -20668,7 +20035,7 @@ export class LicenseAttachmentWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licenseAttachmentWorkflowsAbi, address: this.address, - functionName: 'registerIpAndAttachPILTerms', + functionName: "registerIpAndAttachPILTerms", account: this.wallet.account, args: [ request.nftContract, @@ -20677,8 +20044,8 @@ export class LicenseAttachmentWorkflowsClient { request.licenseTermsData, request.sigMetadataAndAttachAndConfig, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -20694,7 +20061,7 @@ export class LicenseAttachmentWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: licenseAttachmentWorkflowsAbi, - functionName: 'registerIpAndAttachPILTerms', + functionName: "registerIpAndAttachPILTerms", args: [ request.nftContract, request.tokenId, @@ -20703,7 +20070,7 @@ export class LicenseAttachmentWorkflowsClient { request.sigMetadataAndAttachAndConfig, ], }), - } + }; } /** @@ -20718,15 +20085,11 @@ export class LicenseAttachmentWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licenseAttachmentWorkflowsAbi, address: this.address, - functionName: 'registerPILTermsAndAttach', + functionName: "registerPILTermsAndAttach", account: this.wallet.account, - args: [ - request.ipId, - request.licenseTermsData, - request.sigAttachAndConfig, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.ipId, request.licenseTermsData, request.sigAttachAndConfig], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -20742,14 +20105,10 @@ export class LicenseAttachmentWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: licenseAttachmentWorkflowsAbi, - functionName: 'registerPILTermsAndAttach', - args: [ - request.ipId, - request.licenseTermsData, - request.sigAttachAndConfig, - ], + functionName: "registerPILTermsAndAttach", + args: [request.ipId, request.licenseTermsData, request.sigAttachAndConfig], }), - } + }; } } @@ -20762,9 +20121,9 @@ export class LicenseAttachmentWorkflowsClient { * @param licenseTermsId uint256 */ export type LicenseRegistryGetDefaultLicenseTermsResponse = { - licenseTemplate: Address - licenseTermsId: bigint -} + licenseTemplate: Address; + licenseTermsId: bigint; +}; /** * LicenseRegistryGetLicensingConfigRequest @@ -20774,21 +20133,21 @@ export type LicenseRegistryGetDefaultLicenseTermsResponse = { * @param licenseTermsId uint256 */ export type LicenseRegistryGetLicensingConfigRequest = { - ipId: Address - licenseTemplate: Address - licenseTermsId: bigint -} + ipId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; +}; export type LicenseRegistryGetLicensingConfigResponse = { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address -} + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; +}; /** * LicenseRegistryGetRoyaltyPercentRequest @@ -20798,10 +20157,10 @@ export type LicenseRegistryGetLicensingConfigResponse = { * @param licenseTermsId uint256 */ export type LicenseRegistryGetRoyaltyPercentRequest = { - ipId: Address - licenseTemplate: Address - licenseTermsId: bigint -} + ipId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; +}; /** * LicenseRegistryGetRoyaltyPercentResponse @@ -20809,8 +20168,8 @@ export type LicenseRegistryGetRoyaltyPercentRequest = { * @param royaltyPercent uint32 */ export type LicenseRegistryGetRoyaltyPercentResponse = { - royaltyPercent: number -} + royaltyPercent: number; +}; /** * LicenseRegistryHasIpAttachedLicenseTermsRequest @@ -20820,24 +20179,23 @@ export type LicenseRegistryGetRoyaltyPercentResponse = { * @param licenseTermsId uint256 */ export type LicenseRegistryHasIpAttachedLicenseTermsRequest = { - ipId: Address - licenseTemplate: Address - licenseTermsId: bigint -} + ipId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; +}; -export type LicenseRegistryHasIpAttachedLicenseTermsResponse = boolean +export type LicenseRegistryHasIpAttachedLicenseTermsResponse = boolean; /** * contract LicenseRegistry readonly method */ export class LicenseRegistryReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(licenseRegistryAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(licenseRegistryAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -20850,12 +20208,12 @@ export class LicenseRegistryReadOnlyClient { const result = await this.rpcClient.readContract({ abi: licenseRegistryAbi, address: this.address, - functionName: 'getDefaultLicenseTerms', - }) + functionName: "getDefaultLicenseTerms", + }); return { licenseTemplate: result[0], licenseTermsId: result[1], - } + }; } /** @@ -20870,9 +20228,9 @@ export class LicenseRegistryReadOnlyClient { return await this.rpcClient.readContract({ abi: licenseRegistryAbi, address: this.address, - functionName: 'getLicensingConfig', + functionName: "getLicensingConfig", args: [request.ipId, request.licenseTemplate, request.licenseTermsId], - }) + }); } /** @@ -20887,12 +20245,12 @@ export class LicenseRegistryReadOnlyClient { const result = await this.rpcClient.readContract({ abi: licenseRegistryAbi, address: this.address, - functionName: 'getRoyaltyPercent', + functionName: "getRoyaltyPercent", args: [request.ipId, request.licenseTemplate, request.licenseTermsId], - }) + }); return { royaltyPercent: result, - } + }; } /** @@ -20907,9 +20265,9 @@ export class LicenseRegistryReadOnlyClient { return await this.rpcClient.readContract({ abi: licenseRegistryAbi, address: this.address, - functionName: 'hasIpAttachedLicenseTerms', + functionName: "hasIpAttachedLicenseTerms", args: [request.ipId, request.licenseTemplate, request.licenseTermsId], - }) + }); } } @@ -20921,10 +20279,10 @@ export class LicenseRegistryReadOnlyClient { * @param tokenId uint256 */ export type LicenseTokenOwnerOfRequest = { - tokenId: bigint -} + tokenId: bigint; +}; -export type LicenseTokenOwnerOfResponse = Address +export type LicenseTokenOwnerOfResponse = Address; /** * LicenseTokenApproveRequest @@ -20933,21 +20291,20 @@ export type LicenseTokenOwnerOfResponse = Address * @param tokenId uint256 */ export type LicenseTokenApproveRequest = { - to: Address - tokenId: bigint -} + to: Address; + tokenId: bigint; +}; /** * contract LicenseToken readonly method */ export class LicenseTokenReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(licenseTokenAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(licenseTokenAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -20956,15 +20313,13 @@ export class LicenseTokenReadOnlyClient { * @param request LicenseTokenOwnerOfRequest * @return Promise */ - public async ownerOf( - request: LicenseTokenOwnerOfRequest, - ): Promise { + public async ownerOf(request: LicenseTokenOwnerOfRequest): Promise { return await this.rpcClient.readContract({ abi: licenseTokenAbi, address: this.address, - functionName: 'ownerOf', + functionName: "ownerOf", args: [request.tokenId], - }) + }); } } @@ -20972,15 +20327,11 @@ export class LicenseTokenReadOnlyClient { * contract LicenseToken write method */ export class LicenseTokenClient extends LicenseTokenReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -20989,17 +20340,15 @@ export class LicenseTokenClient extends LicenseTokenReadOnlyClient { * @param request LicenseTokenApproveRequest * @return Promise */ - public async approve( - request: LicenseTokenApproveRequest, - ): Promise { + public async approve(request: LicenseTokenApproveRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: licenseTokenAbi, address: this.address, - functionName: 'approve', + functionName: "approve", account: this.wallet.account, args: [request.to, request.tokenId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21013,10 +20362,10 @@ export class LicenseTokenClient extends LicenseTokenReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licenseTokenAbi, - functionName: 'approve', + functionName: "approve", args: [request.to, request.tokenId], }), - } + }; } } @@ -21031,11 +20380,11 @@ export class LicenseTokenClient extends LicenseTokenReadOnlyClient { * @param licenseTermsId uint256 */ export type LicensingModuleLicenseTermsAttachedEvent = { - caller: Address - ipId: Address - licenseTemplate: Address - licenseTermsId: bigint -} + caller: Address; + ipId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; +}; /** * LicensingModuleLicenseTokensMintedEvent @@ -21049,14 +20398,14 @@ export type LicensingModuleLicenseTermsAttachedEvent = { * @param startLicenseTokenId uint256 */ export type LicensingModuleLicenseTokensMintedEvent = { - caller: Address - licensorIpId: Address - licenseTemplate: Address - licenseTermsId: bigint - amount: bigint - receiver: Address - startLicenseTokenId: bigint -} + caller: Address; + licensorIpId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; + amount: bigint; + receiver: Address; + startLicenseTokenId: bigint; +}; /** * LicensingModulePredictMintingLicenseFeeRequest @@ -21069,13 +20418,13 @@ export type LicensingModuleLicenseTokensMintedEvent = { * @param royaltyContext bytes */ export type LicensingModulePredictMintingLicenseFeeRequest = { - licensorIpId: Address - licenseTemplate: Address - licenseTermsId: bigint - amount: bigint - receiver: Address - royaltyContext: Hex -} + licensorIpId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; + amount: bigint; + receiver: Address; + royaltyContext: Hex; +}; /** * LicensingModulePredictMintingLicenseFeeResponse @@ -21084,9 +20433,9 @@ export type LicensingModulePredictMintingLicenseFeeRequest = { * @param tokenAmount uint256 */ export type LicensingModulePredictMintingLicenseFeeResponse = { - currencyToken: Address - tokenAmount: bigint -} + currencyToken: Address; + tokenAmount: bigint; +}; /** * LicensingModuleAttachLicenseTermsRequest @@ -21096,10 +20445,10 @@ export type LicensingModulePredictMintingLicenseFeeResponse = { * @param licenseTermsId uint256 */ export type LicensingModuleAttachLicenseTermsRequest = { - ipId: Address - licenseTemplate: Address - licenseTermsId: bigint -} + ipId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; +}; /** * LicensingModuleMintLicenseTokensRequest @@ -21114,15 +20463,15 @@ export type LicensingModuleAttachLicenseTermsRequest = { * @param maxRevenueShare uint32 */ export type LicensingModuleMintLicenseTokensRequest = { - licensorIpId: Address - licenseTemplate: Address - licenseTermsId: bigint - amount: bigint - receiver: Address - royaltyContext: Hex - maxMintingFee: bigint - maxRevenueShare: number -} + licensorIpId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; + amount: bigint; + receiver: Address; + royaltyContext: Hex; + maxMintingFee: bigint; + maxRevenueShare: number; +}; /** * LicensingModuleRegisterDerivativeRequest @@ -21137,15 +20486,15 @@ export type LicensingModuleMintLicenseTokensRequest = { * @param maxRevenueShare uint32 */ export type LicensingModuleRegisterDerivativeRequest = { - childIpId: Address - parentIpIds: readonly Address[] - licenseTermsIds: readonly bigint[] - licenseTemplate: Address - royaltyContext: Hex - maxMintingFee: bigint - maxRts: number - maxRevenueShare: number -} + childIpId: Address; + parentIpIds: readonly Address[]; + licenseTermsIds: readonly bigint[]; + licenseTemplate: Address; + royaltyContext: Hex; + maxMintingFee: bigint; + maxRts: number; + maxRevenueShare: number; +}; /** * LicensingModuleRegisterDerivativeWithLicenseTokensRequest @@ -21156,11 +20505,11 @@ export type LicensingModuleRegisterDerivativeRequest = { * @param maxRts uint32 */ export type LicensingModuleRegisterDerivativeWithLicenseTokensRequest = { - childIpId: Address - licenseTokenIds: readonly bigint[] - royaltyContext: Hex - maxRts: number -} + childIpId: Address; + licenseTokenIds: readonly bigint[]; + royaltyContext: Hex; + maxRts: number; +}; /** * LicensingModuleSetLicensingConfigRequest @@ -21171,51 +20520,47 @@ export type LicensingModuleRegisterDerivativeWithLicenseTokensRequest = { * @param licensingConfig tuple */ export type LicensingModuleSetLicensingConfigRequest = { - ipId: Address - licenseTemplate: Address - licenseTermsId: bigint + ipId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } -} + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; +}; /** * contract LicensingModule event */ export class LicensingModuleEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(licensingModuleAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(licensingModuleAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event LicenseTermsAttached for contract LicensingModule */ public watchLicenseTermsAttachedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: licensingModuleAbi, address: this.address, - eventName: 'LicenseTermsAttached', + eventName: "LicenseTermsAttached", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -21224,42 +20569,39 @@ export class LicensingModuleEventClient { public parseTxLicenseTermsAttachedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: licensingModuleAbi, - eventName: 'LicenseTermsAttached', + eventName: "LicenseTermsAttached", data: log.data, topics: log.topics, - }) - if (event.eventName === 'LicenseTermsAttached') { - targetLogs.push(event.args) + }); + if (event.eventName === "LicenseTermsAttached") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event LicenseTokensMinted for contract LicensingModule */ public watchLicenseTokensMintedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: licensingModuleAbi, address: this.address, - eventName: 'LicenseTokensMinted', + eventName: "LicenseTokensMinted", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -21268,23 +20610,23 @@ export class LicensingModuleEventClient { public parseTxLicenseTokensMintedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: licensingModuleAbi, - eventName: 'LicenseTokensMinted', + eventName: "LicenseTokensMinted", data: log.data, topics: log.topics, - }) - if (event.eventName === 'LicenseTokensMinted') { - targetLogs.push(event.args) + }); + if (event.eventName === "LicenseTokensMinted") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -21293,7 +20635,7 @@ export class LicensingModuleEventClient { */ export class LicensingModuleReadOnlyClient extends LicensingModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -21308,7 +20650,7 @@ export class LicensingModuleReadOnlyClient extends LicensingModuleEventClient { const result = await this.rpcClient.readContract({ abi: licensingModuleAbi, address: this.address, - functionName: 'predictMintingLicenseFee', + functionName: "predictMintingLicenseFee", args: [ request.licensorIpId, request.licenseTemplate, @@ -21317,11 +20659,11 @@ export class LicensingModuleReadOnlyClient extends LicensingModuleEventClient { request.receiver, request.royaltyContext, ], - }) + }); return { currencyToken: result[0], tokenAmount: result[1], - } + }; } } @@ -21329,15 +20671,11 @@ export class LicensingModuleReadOnlyClient extends LicensingModuleEventClient { * contract LicensingModule write method */ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -21352,11 +20690,11 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licensingModuleAbi, address: this.address, - functionName: 'attachLicenseTerms', + functionName: "attachLicenseTerms", account: this.wallet.account, args: [request.ipId, request.licenseTemplate, request.licenseTermsId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21372,10 +20710,10 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: 'attachLicenseTerms', + functionName: "attachLicenseTerms", args: [request.ipId, request.licenseTemplate, request.licenseTermsId], }), - } + }; } /** @@ -21390,7 +20728,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licensingModuleAbi, address: this.address, - functionName: 'mintLicenseTokens', + functionName: "mintLicenseTokens", account: this.wallet.account, args: [ request.licensorIpId, @@ -21402,8 +20740,8 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.maxMintingFee, request.maxRevenueShare, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21412,14 +20750,12 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { * @param request LicensingModuleMintLicenseTokensRequest * @return EncodedTxData */ - public mintLicenseTokensEncode( - request: LicensingModuleMintLicenseTokensRequest, - ): EncodedTxData { + public mintLicenseTokensEncode(request: LicensingModuleMintLicenseTokensRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: 'mintLicenseTokens', + functionName: "mintLicenseTokens", args: [ request.licensorIpId, request.licenseTemplate, @@ -21431,7 +20767,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.maxRevenueShare, ], }), - } + }; } /** @@ -21446,7 +20782,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licensingModuleAbi, address: this.address, - functionName: 'registerDerivative', + functionName: "registerDerivative", account: this.wallet.account, args: [ request.childIpId, @@ -21458,8 +20794,8 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.maxRts, request.maxRevenueShare, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21475,7 +20811,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: 'registerDerivative', + functionName: "registerDerivative", args: [ request.childIpId, request.parentIpIds, @@ -21487,7 +20823,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.maxRevenueShare, ], }), - } + }; } /** @@ -21502,16 +20838,11 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licensingModuleAbi, address: this.address, - functionName: 'registerDerivativeWithLicenseTokens', + functionName: "registerDerivativeWithLicenseTokens", account: this.wallet.account, - args: [ - request.childIpId, - request.licenseTokenIds, - request.royaltyContext, - request.maxRts, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.childIpId, request.licenseTokenIds, request.royaltyContext, request.maxRts], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21527,15 +20858,10 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: 'registerDerivativeWithLicenseTokens', - args: [ - request.childIpId, - request.licenseTokenIds, - request.royaltyContext, - request.maxRts, - ], + functionName: "registerDerivativeWithLicenseTokens", + args: [request.childIpId, request.licenseTokenIds, request.royaltyContext, request.maxRts], }), - } + }; } /** @@ -21550,7 +20876,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: licensingModuleAbi, address: this.address, - functionName: 'setLicensingConfig', + functionName: "setLicensingConfig", account: this.wallet.account, args: [ request.ipId, @@ -21558,8 +20884,8 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.licenseTermsId, request.licensingConfig, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21575,7 +20901,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: 'setLicensingConfig', + functionName: "setLicensingConfig", args: [ request.ipId, request.licenseTemplate, @@ -21583,7 +20909,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.licensingConfig, ], }), - } + }; } } @@ -21595,22 +20921,21 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { * @param moduleAddress address */ export type ModuleRegistryIsRegisteredRequest = { - moduleAddress: Address -} + moduleAddress: Address; +}; -export type ModuleRegistryIsRegisteredResponse = boolean +export type ModuleRegistryIsRegisteredResponse = boolean; /** * contract ModuleRegistry readonly method */ export class ModuleRegistryReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(moduleRegistryAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(moduleRegistryAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -21625,9 +20950,9 @@ export class ModuleRegistryReadOnlyClient { return await this.rpcClient.readContract({ abi: moduleRegistryAbi, address: this.address, - functionName: 'isRegistered', + functionName: "isRegistered", args: [request.moduleAddress], - }) + }); } } @@ -21640,28 +20965,24 @@ export class ModuleRegistryReadOnlyClient { */ export type Multicall3Aggregate3Request = { calls: { - target: Address - allowFailure: boolean - callData: Hex - }[] -} + target: Address; + allowFailure: boolean; + callData: Hex; + }[]; +}; /** * contract Multicall3 write method */ export class Multicall3Client { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - this.address = address || getAddress(multicall3Address, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + this.address = address || getAddress(multicall3Address, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -21670,17 +20991,15 @@ export class Multicall3Client { * @param request Multicall3Aggregate3Request * @return Promise */ - public async aggregate3( - request: Multicall3Aggregate3Request, - ): Promise { + public async aggregate3(request: Multicall3Aggregate3Request): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: multicall3Abi, address: this.address, - functionName: 'aggregate3', + functionName: "aggregate3", account: this.wallet.account, args: [request.calls], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -21694,10 +21013,10 @@ export class Multicall3Client { to: this.address, data: encodeFunctionData({ abi: multicall3Abi, - functionName: 'aggregate3', + functionName: "aggregate3", args: [request.calls], }), - } + }; } } @@ -21709,8 +21028,8 @@ export class Multicall3Client { * @param authority address */ export type PiLicenseTemplateAuthorityUpdatedEvent = { - authority: Address -} + authority: Address; +}; /** * PiLicenseTemplateDerivativeApprovedEvent @@ -21721,11 +21040,11 @@ export type PiLicenseTemplateAuthorityUpdatedEvent = { * @param approved bool */ export type PiLicenseTemplateDerivativeApprovedEvent = { - licenseTermsId: bigint - ipId: Address - caller: Address - approved: boolean -} + licenseTermsId: bigint; + ipId: Address; + caller: Address; + approved: boolean; +}; /** * PiLicenseTemplateInitializedEvent @@ -21733,8 +21052,8 @@ export type PiLicenseTemplateDerivativeApprovedEvent = { * @param version uint64 */ export type PiLicenseTemplateInitializedEvent = { - version: bigint -} + version: bigint; +}; /** * PiLicenseTemplateLicenseTermsRegisteredEvent @@ -21744,10 +21063,10 @@ export type PiLicenseTemplateInitializedEvent = { * @param licenseTerms bytes */ export type PiLicenseTemplateLicenseTermsRegisteredEvent = { - licenseTermsId: bigint - licenseTemplate: Address - licenseTerms: Hex -} + licenseTermsId: bigint; + licenseTemplate: Address; + licenseTerms: Hex; +}; /** * PiLicenseTemplateUpgradedEvent @@ -21755,22 +21074,22 @@ export type PiLicenseTemplateLicenseTermsRegisteredEvent = { * @param implementation address */ export type PiLicenseTemplateUpgradedEvent = { - implementation: Address -} + implementation: Address; +}; -export type PiLicenseTemplateAccessControllerResponse = Address +export type PiLicenseTemplateAccessControllerResponse = Address; -export type PiLicenseTemplateIpAssetRegistryResponse = Address +export type PiLicenseTemplateIpAssetRegistryResponse = Address; -export type PiLicenseTemplateLicenseRegistryResponse = Address +export type PiLicenseTemplateLicenseRegistryResponse = Address; -export type PiLicenseTemplateModuleRegistryResponse = Address +export type PiLicenseTemplateModuleRegistryResponse = Address; -export type PiLicenseTemplateRoyaltyModuleResponse = Address +export type PiLicenseTemplateRoyaltyModuleResponse = Address; -export type PiLicenseTemplateTermsRendererResponse = Address +export type PiLicenseTemplateTermsRendererResponse = Address; -export type PiLicenseTemplateUpgradeInterfaceVersionResponse = string +export type PiLicenseTemplateUpgradeInterfaceVersionResponse = string; /** * PiLicenseTemplateAllowDerivativeRegistrationRequest @@ -21778,12 +21097,12 @@ export type PiLicenseTemplateUpgradeInterfaceVersionResponse = string * @param licenseTermsId uint256 */ export type PiLicenseTemplateAllowDerivativeRegistrationRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; -export type PiLicenseTemplateAllowDerivativeRegistrationResponse = boolean +export type PiLicenseTemplateAllowDerivativeRegistrationResponse = boolean; -export type PiLicenseTemplateAuthorityResponse = Address +export type PiLicenseTemplateAuthorityResponse = Address; /** * PiLicenseTemplateCanAttachToGroupIpRequest @@ -21791,10 +21110,10 @@ export type PiLicenseTemplateAuthorityResponse = Address * @param licenseTermsId uint256 */ export type PiLicenseTemplateCanAttachToGroupIpRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; -export type PiLicenseTemplateCanAttachToGroupIpResponse = boolean +export type PiLicenseTemplateCanAttachToGroupIpResponse = boolean; /** * PiLicenseTemplateCanOverrideRoyaltyPercentRequest @@ -21803,11 +21122,11 @@ export type PiLicenseTemplateCanAttachToGroupIpResponse = boolean * @param newRoyaltyPercent uint32 */ export type PiLicenseTemplateCanOverrideRoyaltyPercentRequest = { - licenseTermsId: bigint - newRoyaltyPercent: number -} + licenseTermsId: bigint; + newRoyaltyPercent: number; +}; -export type PiLicenseTemplateCanOverrideRoyaltyPercentResponse = boolean +export type PiLicenseTemplateCanOverrideRoyaltyPercentResponse = boolean; /** * PiLicenseTemplateExistsRequest @@ -21815,10 +21134,10 @@ export type PiLicenseTemplateCanOverrideRoyaltyPercentResponse = boolean * @param licenseTermsId uint256 */ export type PiLicenseTemplateExistsRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; -export type PiLicenseTemplateExistsResponse = boolean +export type PiLicenseTemplateExistsResponse = boolean; /** * PiLicenseTemplateGetEarlierExpireTimeRequest @@ -21827,11 +21146,11 @@ export type PiLicenseTemplateExistsResponse = boolean * @param start uint256 */ export type PiLicenseTemplateGetEarlierExpireTimeRequest = { - licenseTermsIds: readonly bigint[] - start: bigint -} + licenseTermsIds: readonly bigint[]; + start: bigint; +}; -export type PiLicenseTemplateGetEarlierExpireTimeResponse = bigint +export type PiLicenseTemplateGetEarlierExpireTimeResponse = bigint; /** * PiLicenseTemplateGetExpireTimeRequest @@ -21840,11 +21159,11 @@ export type PiLicenseTemplateGetEarlierExpireTimeResponse = bigint * @param start uint256 */ export type PiLicenseTemplateGetExpireTimeRequest = { - licenseTermsId: bigint - start: bigint -} + licenseTermsId: bigint; + start: bigint; +}; -export type PiLicenseTemplateGetExpireTimeResponse = bigint +export type PiLicenseTemplateGetExpireTimeResponse = bigint; /** * PiLicenseTemplateGetLicenseTermsRequest @@ -21852,8 +21171,8 @@ export type PiLicenseTemplateGetExpireTimeResponse = bigint * @param selectedLicenseTermsId uint256 */ export type PiLicenseTemplateGetLicenseTermsRequest = { - selectedLicenseTermsId: bigint -} + selectedLicenseTermsId: bigint; +}; /** * PiLicenseTemplateGetLicenseTermsResponse @@ -21862,25 +21181,25 @@ export type PiLicenseTemplateGetLicenseTermsRequest = { */ export type PiLicenseTemplateGetLicenseTermsResponse = { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } -} + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; +}; /** * PiLicenseTemplateGetLicenseTermsIdRequest @@ -21889,25 +21208,25 @@ export type PiLicenseTemplateGetLicenseTermsResponse = { */ export type PiLicenseTemplateGetLicenseTermsIdRequest = { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } -} + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; +}; /** * PiLicenseTemplateGetLicenseTermsIdResponse @@ -21915,8 +21234,8 @@ export type PiLicenseTemplateGetLicenseTermsIdRequest = { * @param selectedLicenseTermsId uint256 */ export type PiLicenseTemplateGetLicenseTermsIdResponse = { - selectedLicenseTermsId: bigint -} + selectedLicenseTermsId: bigint; +}; /** * PiLicenseTemplateGetLicenseTermsUriRequest @@ -21924,12 +21243,12 @@ export type PiLicenseTemplateGetLicenseTermsIdResponse = { * @param licenseTermsId uint256 */ export type PiLicenseTemplateGetLicenseTermsUriRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; -export type PiLicenseTemplateGetLicenseTermsUriResponse = string +export type PiLicenseTemplateGetLicenseTermsUriResponse = string; -export type PiLicenseTemplateGetMetadataUriResponse = string +export type PiLicenseTemplateGetMetadataUriResponse = string; /** * PiLicenseTemplateGetRoyaltyPolicyRequest @@ -21937,8 +21256,8 @@ export type PiLicenseTemplateGetMetadataUriResponse = string * @param licenseTermsId uint256 */ export type PiLicenseTemplateGetRoyaltyPolicyRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; /** * PiLicenseTemplateGetRoyaltyPolicyResponse @@ -21949,13 +21268,13 @@ export type PiLicenseTemplateGetRoyaltyPolicyRequest = { * @param currency address */ export type PiLicenseTemplateGetRoyaltyPolicyResponse = { - royaltyPolicy: Address - royaltyPercent: number - mintingFee: bigint - currency: Address -} + royaltyPolicy: Address; + royaltyPercent: number; + mintingFee: bigint; + currency: Address; +}; -export type PiLicenseTemplateIsConsumingScheduledOpResponse = Hex +export type PiLicenseTemplateIsConsumingScheduledOpResponse = Hex; /** * PiLicenseTemplateIsDerivativeApprovedRequest @@ -21965,12 +21284,12 @@ export type PiLicenseTemplateIsConsumingScheduledOpResponse = Hex * @param childIpId address */ export type PiLicenseTemplateIsDerivativeApprovedRequest = { - parentIpId: Address - licenseTermsId: bigint - childIpId: Address -} + parentIpId: Address; + licenseTermsId: bigint; + childIpId: Address; +}; -export type PiLicenseTemplateIsDerivativeApprovedResponse = boolean +export type PiLicenseTemplateIsDerivativeApprovedResponse = boolean; /** * PiLicenseTemplateIsLicenseTransferableRequest @@ -21978,14 +21297,14 @@ export type PiLicenseTemplateIsDerivativeApprovedResponse = boolean * @param licenseTermsId uint256 */ export type PiLicenseTemplateIsLicenseTransferableRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; -export type PiLicenseTemplateIsLicenseTransferableResponse = boolean +export type PiLicenseTemplateIsLicenseTransferableResponse = boolean; -export type PiLicenseTemplateNameResponse = string +export type PiLicenseTemplateNameResponse = string; -export type PiLicenseTemplateProxiableUuidResponse = Hex +export type PiLicenseTemplateProxiableUuidResponse = Hex; /** * PiLicenseTemplateSupportsInterfaceRequest @@ -21993,10 +21312,10 @@ export type PiLicenseTemplateProxiableUuidResponse = Hex * @param interfaceId bytes4 */ export type PiLicenseTemplateSupportsInterfaceRequest = { - interfaceId: Hex -} + interfaceId: Hex; +}; -export type PiLicenseTemplateSupportsInterfaceResponse = boolean +export type PiLicenseTemplateSupportsInterfaceResponse = boolean; /** * PiLicenseTemplateToJsonRequest @@ -22004,12 +21323,12 @@ export type PiLicenseTemplateSupportsInterfaceResponse = boolean * @param licenseTermsId uint256 */ export type PiLicenseTemplateToJsonRequest = { - licenseTermsId: bigint -} + licenseTermsId: bigint; +}; -export type PiLicenseTemplateToJsonResponse = string +export type PiLicenseTemplateToJsonResponse = string; -export type PiLicenseTemplateTotalRegisteredLicenseTermsResponse = bigint +export type PiLicenseTemplateTotalRegisteredLicenseTermsResponse = bigint; /** * PiLicenseTemplateVerifyCompatibleLicensesRequest @@ -22017,10 +21336,10 @@ export type PiLicenseTemplateTotalRegisteredLicenseTermsResponse = bigint * @param licenseTermsIds uint256[] */ export type PiLicenseTemplateVerifyCompatibleLicensesRequest = { - licenseTermsIds: readonly bigint[] -} + licenseTermsIds: readonly bigint[]; +}; -export type PiLicenseTemplateVerifyCompatibleLicensesResponse = boolean +export type PiLicenseTemplateVerifyCompatibleLicensesResponse = boolean; /** * PiLicenseTemplateInitializeRequest @@ -22030,10 +21349,10 @@ export type PiLicenseTemplateVerifyCompatibleLicensesResponse = boolean * @param metadataURI string */ export type PiLicenseTemplateInitializeRequest = { - accessManager: Address - name: string - metadataURI: string -} + accessManager: Address; + name: string; + metadataURI: string; +}; /** * PiLicenseTemplateRegisterLicenseTermsRequest @@ -22042,25 +21361,25 @@ export type PiLicenseTemplateInitializeRequest = { */ export type PiLicenseTemplateRegisterLicenseTermsRequest = { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } -} + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; +}; /** * PiLicenseTemplateSetApprovalRequest @@ -22071,11 +21390,11 @@ export type PiLicenseTemplateRegisterLicenseTermsRequest = { * @param approved bool */ export type PiLicenseTemplateSetApprovalRequest = { - parentIpId: Address - licenseTermsId: bigint - childIpId: Address - approved: boolean -} + parentIpId: Address; + licenseTermsId: bigint; + childIpId: Address; + approved: boolean; +}; /** * PiLicenseTemplateSetAuthorityRequest @@ -22083,8 +21402,8 @@ export type PiLicenseTemplateSetApprovalRequest = { * @param newAuthority address */ export type PiLicenseTemplateSetAuthorityRequest = { - newAuthority: Address -} + newAuthority: Address; +}; /** * PiLicenseTemplateUpgradeToAndCallRequest @@ -22093,9 +21412,9 @@ export type PiLicenseTemplateSetAuthorityRequest = { * @param data bytes */ export type PiLicenseTemplateUpgradeToAndCallRequest = { - newImplementation: Address - data: Hex -} + newImplementation: Address; + data: Hex; +}; /** * PiLicenseTemplateVerifyMintLicenseTokenRequest @@ -22110,7 +21429,7 @@ export type PiLicenseTemplateVerifyMintLicenseTokenRequest = readonly [ Address, Address, bigint, -] +]; /** * PiLicenseTemplateVerifyRegisterDerivativeRequest @@ -22121,11 +21440,11 @@ export type PiLicenseTemplateVerifyMintLicenseTokenRequest = readonly [ * @param licensee address */ export type PiLicenseTemplateVerifyRegisterDerivativeRequest = { - childIpId: Address - parentIpId: Address - licenseTermsId: bigint - licensee: Address -} + childIpId: Address; + parentIpId: Address; + licenseTermsId: bigint; + licensee: Address; +}; /** * PiLicenseTemplateVerifyRegisterDerivativeForAllParentsRequest @@ -22136,42 +21455,38 @@ export type PiLicenseTemplateVerifyRegisterDerivativeRequest = { * @param caller address */ export type PiLicenseTemplateVerifyRegisterDerivativeForAllParentsRequest = { - childIpId: Address - parentIpIds: readonly Address[] - licenseTermsIds: readonly bigint[] - caller: Address -} + childIpId: Address; + parentIpIds: readonly Address[]; + licenseTermsIds: readonly bigint[]; + caller: Address; +}; /** * contract PILicenseTemplate event */ export class PiLicenseTemplateEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(piLicenseTemplateAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(piLicenseTemplateAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event AuthorityUpdated for contract PILicenseTemplate */ public watchAuthorityUpdatedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: piLicenseTemplateAbi, address: this.address, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -22180,42 +21495,39 @@ export class PiLicenseTemplateEventClient { public parseTxAuthorityUpdatedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: piLicenseTemplateAbi, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", data: log.data, topics: log.topics, - }) - if (event.eventName === 'AuthorityUpdated') { - targetLogs.push(event.args) + }); + if (event.eventName === "AuthorityUpdated") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event DerivativeApproved for contract PILicenseTemplate */ public watchDerivativeApprovedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: piLicenseTemplateAbi, address: this.address, - eventName: 'DerivativeApproved', + eventName: "DerivativeApproved", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -22224,42 +21536,39 @@ export class PiLicenseTemplateEventClient { public parseTxDerivativeApprovedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: piLicenseTemplateAbi, - eventName: 'DerivativeApproved', + eventName: "DerivativeApproved", data: log.data, topics: log.topics, - }) - if (event.eventName === 'DerivativeApproved') { - targetLogs.push(event.args) + }); + if (event.eventName === "DerivativeApproved") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event Initialized for contract PILicenseTemplate */ public watchInitializedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: piLicenseTemplateAbi, address: this.address, - eventName: 'Initialized', + eventName: "Initialized", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -22268,42 +21577,39 @@ export class PiLicenseTemplateEventClient { public parseTxInitializedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: piLicenseTemplateAbi, - eventName: 'Initialized', + eventName: "Initialized", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Initialized') { - targetLogs.push(event.args) + }); + if (event.eventName === "Initialized") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event LicenseTermsRegistered for contract PILicenseTemplate */ public watchLicenseTermsRegisteredEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: piLicenseTemplateAbi, address: this.address, - eventName: 'LicenseTermsRegistered', + eventName: "LicenseTermsRegistered", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -22312,23 +21618,23 @@ export class PiLicenseTemplateEventClient { public parseTxLicenseTermsRegisteredEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: piLicenseTemplateAbi, - eventName: 'LicenseTermsRegistered', + eventName: "LicenseTermsRegistered", data: log.data, topics: log.topics, - }) - if (event.eventName === 'LicenseTermsRegistered') { - targetLogs.push(event.args) + }); + if (event.eventName === "LicenseTermsRegistered") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -22340,11 +21646,11 @@ export class PiLicenseTemplateEventClient { return this.rpcClient.watchContractEvent({ abi: piLicenseTemplateAbi, address: this.address, - eventName: 'Upgraded', + eventName: "Upgraded", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -22353,23 +21659,23 @@ export class PiLicenseTemplateEventClient { public parseTxUpgradedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: piLicenseTemplateAbi, - eventName: 'Upgraded', + eventName: "Upgraded", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Upgraded') { - targetLogs.push(event.args) + }); + if (event.eventName === "Upgraded") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -22378,7 +21684,7 @@ export class PiLicenseTemplateEventClient { */ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -22391,8 +21697,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'ACCESS_CONTROLLER', - }) + functionName: "ACCESS_CONTROLLER", + }); } /** @@ -22405,8 +21711,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'IP_ASSET_REGISTRY', - }) + functionName: "IP_ASSET_REGISTRY", + }); } /** @@ -22419,8 +21725,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'LICENSE_REGISTRY', - }) + functionName: "LICENSE_REGISTRY", + }); } /** @@ -22433,8 +21739,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'MODULE_REGISTRY', - }) + functionName: "MODULE_REGISTRY", + }); } /** @@ -22447,8 +21753,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'ROYALTY_MODULE', - }) + functionName: "ROYALTY_MODULE", + }); } /** @@ -22461,8 +21767,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'TERMS_RENDERER', - }) + functionName: "TERMS_RENDERER", + }); } /** @@ -22475,8 +21781,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'UPGRADE_INTERFACE_VERSION', - }) + functionName: "UPGRADE_INTERFACE_VERSION", + }); } /** @@ -22491,9 +21797,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'allowDerivativeRegistration', + functionName: "allowDerivativeRegistration", args: [request.licenseTermsId], - }) + }); } /** @@ -22506,8 +21812,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'authority', - }) + functionName: "authority", + }); } /** @@ -22522,9 +21828,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'canAttachToGroupIp', + functionName: "canAttachToGroupIp", args: [request.licenseTermsId], - }) + }); } /** @@ -22539,9 +21845,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'canOverrideRoyaltyPercent', + functionName: "canOverrideRoyaltyPercent", args: [request.licenseTermsId, request.newRoyaltyPercent], - }) + }); } /** @@ -22556,9 +21862,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'exists', + functionName: "exists", args: [request.licenseTermsId], - }) + }); } /** @@ -22573,9 +21879,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getEarlierExpireTime', + functionName: "getEarlierExpireTime", args: [request.licenseTermsIds, request.start], - }) + }); } /** @@ -22590,9 +21896,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getExpireTime', + functionName: "getExpireTime", args: [request.licenseTermsId, request.start], - }) + }); } /** @@ -22607,12 +21913,12 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien const result = await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getLicenseTerms', + functionName: "getLicenseTerms", args: [request.selectedLicenseTermsId], - }) + }); return { terms: result, - } + }; } /** @@ -22627,12 +21933,12 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien const result = await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getLicenseTermsId', + functionName: "getLicenseTermsId", args: [request.terms], - }) + }); return { selectedLicenseTermsId: result, - } + }; } /** @@ -22647,9 +21953,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getLicenseTermsURI', + functionName: "getLicenseTermsURI", args: [request.licenseTermsId], - }) + }); } /** @@ -22662,8 +21968,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getMetadataURI', - }) + functionName: "getMetadataURI", + }); } /** @@ -22678,15 +21984,15 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien const result = await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'getRoyaltyPolicy', + functionName: "getRoyaltyPolicy", args: [request.licenseTermsId], - }) + }); return { royaltyPolicy: result[0], royaltyPercent: result[1], mintingFee: result[2], currency: result[3], - } + }; } /** @@ -22699,8 +22005,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'isConsumingScheduledOp', - }) + functionName: "isConsumingScheduledOp", + }); } /** @@ -22715,9 +22021,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'isDerivativeApproved', + functionName: "isDerivativeApproved", args: [request.parentIpId, request.licenseTermsId, request.childIpId], - }) + }); } /** @@ -22732,9 +22038,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'isLicenseTransferable', + functionName: "isLicenseTransferable", args: [request.licenseTermsId], - }) + }); } /** @@ -22747,8 +22053,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'name', - }) + functionName: "name", + }); } /** @@ -22761,8 +22067,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'proxiableUUID', - }) + functionName: "proxiableUUID", + }); } /** @@ -22777,9 +22083,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'supportsInterface', + functionName: "supportsInterface", args: [request.interfaceId], - }) + }); } /** @@ -22794,9 +22100,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'toJson', + functionName: "toJson", args: [request.licenseTermsId], - }) + }); } /** @@ -22809,8 +22115,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'totalRegisteredLicenseTerms', - }) + functionName: "totalRegisteredLicenseTerms", + }); } /** @@ -22825,9 +22131,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'verifyCompatibleLicenses', + functionName: "verifyCompatibleLicenses", args: [request.licenseTermsIds], - }) + }); } } @@ -22835,15 +22141,11 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien * contract PILicenseTemplate write method */ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -22858,11 +22160,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'initialize', + functionName: "initialize", account: this.wallet.account, args: [request.accessManager, request.name, request.metadataURI], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -22871,17 +22173,15 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { * @param request PiLicenseTemplateInitializeRequest * @return EncodedTxData */ - public initializeEncode( - request: PiLicenseTemplateInitializeRequest, - ): EncodedTxData { + public initializeEncode(request: PiLicenseTemplateInitializeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'initialize', + functionName: "initialize", args: [request.accessManager, request.name, request.metadataURI], }), - } + }; } /** @@ -22896,11 +22196,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'registerLicenseTerms', + functionName: "registerLicenseTerms", account: this.wallet.account, args: [request.terms], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -22916,10 +22216,10 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'registerLicenseTerms', + functionName: "registerLicenseTerms", args: [request.terms], }), - } + }; } /** @@ -22934,16 +22234,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'setApproval', + functionName: "setApproval", account: this.wallet.account, - args: [ - request.parentIpId, - request.licenseTermsId, - request.childIpId, - request.approved, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.parentIpId, request.licenseTermsId, request.childIpId, request.approved], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -22952,22 +22247,15 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { * @param request PiLicenseTemplateSetApprovalRequest * @return EncodedTxData */ - public setApprovalEncode( - request: PiLicenseTemplateSetApprovalRequest, - ): EncodedTxData { + public setApprovalEncode(request: PiLicenseTemplateSetApprovalRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'setApproval', - args: [ - request.parentIpId, - request.licenseTermsId, - request.childIpId, - request.approved, - ], + functionName: "setApproval", + args: [request.parentIpId, request.licenseTermsId, request.childIpId, request.approved], }), - } + }; } /** @@ -22982,11 +22270,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'setAuthority', + functionName: "setAuthority", account: this.wallet.account, args: [request.newAuthority], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -22995,17 +22283,15 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { * @param request PiLicenseTemplateSetAuthorityRequest * @return EncodedTxData */ - public setAuthorityEncode( - request: PiLicenseTemplateSetAuthorityRequest, - ): EncodedTxData { + public setAuthorityEncode(request: PiLicenseTemplateSetAuthorityRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'setAuthority', + functionName: "setAuthority", args: [request.newAuthority], }), - } + }; } /** @@ -23020,11 +22306,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", account: this.wallet.account, args: [request.newImplementation, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23033,17 +22319,15 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { * @param request PiLicenseTemplateUpgradeToAndCallRequest * @return EncodedTxData */ - public upgradeToAndCallEncode( - request: PiLicenseTemplateUpgradeToAndCallRequest, - ): EncodedTxData { + public upgradeToAndCallEncode(request: PiLicenseTemplateUpgradeToAndCallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", args: [request.newImplementation, request.data], }), - } + }; } /** @@ -23058,11 +22342,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'verifyMintLicenseToken', + functionName: "verifyMintLicenseToken", account: this.wallet.account, args: [request[0], request[1], request[2], request[3]], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23078,10 +22362,10 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'verifyMintLicenseToken', + functionName: "verifyMintLicenseToken", args: [request[0], request[1], request[2], request[3]], }), - } + }; } /** @@ -23096,16 +22380,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'verifyRegisterDerivative', + functionName: "verifyRegisterDerivative", account: this.wallet.account, - args: [ - request.childIpId, - request.parentIpId, - request.licenseTermsId, - request.licensee, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.childIpId, request.parentIpId, request.licenseTermsId, request.licensee], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23121,15 +22400,10 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'verifyRegisterDerivative', - args: [ - request.childIpId, - request.parentIpId, - request.licenseTermsId, - request.licensee, - ], + functionName: "verifyRegisterDerivative", + args: [request.childIpId, request.parentIpId, request.licenseTermsId, request.licensee], }), - } + }; } /** @@ -23144,16 +22418,11 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: 'verifyRegisterDerivativeForAllParents', + functionName: "verifyRegisterDerivativeForAllParents", account: this.wallet.account, - args: [ - request.childIpId, - request.parentIpIds, - request.licenseTermsIds, - request.caller, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.childIpId, request.parentIpIds, request.licenseTermsIds, request.caller], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23169,15 +22438,10 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: 'verifyRegisterDerivativeForAllParents', - args: [ - request.childIpId, - request.parentIpIds, - request.licenseTermsIds, - request.caller, - ], + functionName: "verifyRegisterDerivativeForAllParents", + args: [request.childIpId, request.parentIpIds, request.licenseTermsIds, request.caller], }), - } + }; } } @@ -23189,8 +22453,8 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { * @param spgNftContract address */ export type RegistrationWorkflowsCollectionCreatedEvent = { - spgNftContract: Address -} + spgNftContract: Address; +}; /** * RegistrationWorkflowsCreateCollectionRequest @@ -23199,19 +22463,19 @@ export type RegistrationWorkflowsCollectionCreatedEvent = { */ export type RegistrationWorkflowsCreateCollectionRequest = { spgNftInitParams: { - name: string - symbol: string - baseURI: string - contractURI: string - maxSupply: number - mintFee: bigint - mintFeeToken: Address - mintFeeRecipient: Address - owner: Address - mintOpen: boolean - isPublicMinting: boolean - } -} + name: string; + symbol: string; + baseURI: string; + contractURI: string; + maxSupply: number; + mintFee: bigint; + mintFeeToken: Address; + mintFeeRecipient: Address; + owner: Address; + mintOpen: boolean; + isPublicMinting: boolean; + }; +}; /** * RegistrationWorkflowsMintAndRegisterIpRequest @@ -23222,16 +22486,16 @@ export type RegistrationWorkflowsCreateCollectionRequest = { * @param allowDuplicates bool */ export type RegistrationWorkflowsMintAndRegisterIpRequest = { - spgNftContract: Address - recipient: Address + spgNftContract: Address; + recipient: Address; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } - allowDuplicates: boolean -} + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; + allowDuplicates: boolean; +}; /** * RegistrationWorkflowsMulticallRequest @@ -23239,8 +22503,8 @@ export type RegistrationWorkflowsMintAndRegisterIpRequest = { * @param data bytes[] */ export type RegistrationWorkflowsMulticallRequest = { - data: readonly Hex[] -} + data: readonly Hex[]; +}; /** * RegistrationWorkflowsRegisterIpRequest @@ -23251,51 +22515,47 @@ export type RegistrationWorkflowsMulticallRequest = { * @param sigMetadata tuple */ export type RegistrationWorkflowsRegisterIpRequest = { - nftContract: Address - tokenId: bigint + nftContract: Address; + tokenId: bigint; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; sigMetadata: { - signer: Address - deadline: bigint - signature: Hex - } -} + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * contract RegistrationWorkflows event */ export class RegistrationWorkflowsEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(registrationWorkflowsAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(registrationWorkflowsAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event CollectionCreated for contract RegistrationWorkflows */ public watchCollectionCreatedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: registrationWorkflowsAbi, address: this.address, - eventName: 'CollectionCreated', + eventName: "CollectionCreated", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -23304,23 +22564,23 @@ export class RegistrationWorkflowsEventClient { public parseTxCollectionCreatedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: registrationWorkflowsAbi, - eventName: 'CollectionCreated', + eventName: "CollectionCreated", data: log.data, topics: log.topics, - }) - if (event.eventName === 'CollectionCreated') { - targetLogs.push(event.args) + }); + if (event.eventName === "CollectionCreated") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -23328,15 +22588,11 @@ export class RegistrationWorkflowsEventClient { * contract RegistrationWorkflows write method */ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -23351,11 +22607,11 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien const { request: call } = await this.rpcClient.simulateContract({ abi: registrationWorkflowsAbi, address: this.address, - functionName: 'createCollection', + functionName: "createCollection", account: this.wallet.account, args: [request.spgNftInitParams], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23371,10 +22627,10 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien to: this.address, data: encodeFunctionData({ abi: registrationWorkflowsAbi, - functionName: 'createCollection', + functionName: "createCollection", args: [request.spgNftInitParams], }), - } + }; } /** @@ -23389,7 +22645,7 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien const { request: call } = await this.rpcClient.simulateContract({ abi: registrationWorkflowsAbi, address: this.address, - functionName: 'mintAndRegisterIp', + functionName: "mintAndRegisterIp", account: this.wallet.account, args: [ request.spgNftContract, @@ -23397,8 +22653,8 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien request.ipMetadata, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23414,7 +22670,7 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien to: this.address, data: encodeFunctionData({ abi: registrationWorkflowsAbi, - functionName: 'mintAndRegisterIp', + functionName: "mintAndRegisterIp", args: [ request.spgNftContract, request.recipient, @@ -23422,7 +22678,7 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien request.allowDuplicates, ], }), - } + }; } /** @@ -23437,11 +22693,11 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien const { request: call } = await this.rpcClient.simulateContract({ abi: registrationWorkflowsAbi, address: this.address, - functionName: 'multicall', + functionName: "multicall", account: this.wallet.account, args: [request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23450,17 +22706,15 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien * @param request RegistrationWorkflowsMulticallRequest * @return EncodedTxData */ - public multicallEncode( - request: RegistrationWorkflowsMulticallRequest, - ): EncodedTxData { + public multicallEncode(request: RegistrationWorkflowsMulticallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: registrationWorkflowsAbi, - functionName: 'multicall', + functionName: "multicall", args: [request.data], }), - } + }; } /** @@ -23475,16 +22729,11 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien const { request: call } = await this.rpcClient.simulateContract({ abi: registrationWorkflowsAbi, address: this.address, - functionName: 'registerIp', + functionName: "registerIp", account: this.wallet.account, - args: [ - request.nftContract, - request.tokenId, - request.ipMetadata, - request.sigMetadata, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.nftContract, request.tokenId, request.ipMetadata, request.sigMetadata], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23493,22 +22742,15 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien * @param request RegistrationWorkflowsRegisterIpRequest * @return EncodedTxData */ - public registerIpEncode( - request: RegistrationWorkflowsRegisterIpRequest, - ): EncodedTxData { + public registerIpEncode(request: RegistrationWorkflowsRegisterIpRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: registrationWorkflowsAbi, - functionName: 'registerIp', - args: [ - request.nftContract, - request.tokenId, - request.ipMetadata, - request.sigMetadata, - ], + functionName: "registerIp", + args: [request.nftContract, request.tokenId, request.ipMetadata, request.sigMetadata], }), - } + }; } } @@ -23521,9 +22763,9 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien * @param ipRoyaltyVault address */ export type RoyaltyModuleIpRoyaltyVaultDeployedEvent = { - ipId: Address - ipRoyaltyVault: Address -} + ipId: Address; + ipRoyaltyVault: Address; +}; /** * RoyaltyModuleRoyaltyPaidEvent @@ -23536,13 +22778,13 @@ export type RoyaltyModuleIpRoyaltyVaultDeployedEvent = { * @param amountAfterFee uint256 */ export type RoyaltyModuleRoyaltyPaidEvent = { - receiverIpId: Address - payerIpId: Address - sender: Address - token: Address - amount: bigint - amountAfterFee: bigint -} + receiverIpId: Address; + payerIpId: Address; + sender: Address; + token: Address; + amount: bigint; + amountAfterFee: bigint; +}; /** * RoyaltyModuleIpRoyaltyVaultsRequest @@ -23550,10 +22792,10 @@ export type RoyaltyModuleRoyaltyPaidEvent = { * @param ipId address */ export type RoyaltyModuleIpRoyaltyVaultsRequest = { - ipId: Address -} + ipId: Address; +}; -export type RoyaltyModuleIpRoyaltyVaultsResponse = Address +export type RoyaltyModuleIpRoyaltyVaultsResponse = Address; /** * RoyaltyModuleIsWhitelistedRoyaltyPolicyRequest @@ -23561,10 +22803,10 @@ export type RoyaltyModuleIpRoyaltyVaultsResponse = Address * @param royaltyPolicy address */ export type RoyaltyModuleIsWhitelistedRoyaltyPolicyRequest = { - royaltyPolicy: Address -} + royaltyPolicy: Address; +}; -export type RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse = boolean +export type RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse = boolean; /** * RoyaltyModuleIsWhitelistedRoyaltyTokenRequest @@ -23572,10 +22814,10 @@ export type RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse = boolean * @param token address */ export type RoyaltyModuleIsWhitelistedRoyaltyTokenRequest = { - token: Address -} + token: Address; +}; -export type RoyaltyModuleIsWhitelistedRoyaltyTokenResponse = boolean +export type RoyaltyModuleIsWhitelistedRoyaltyTokenResponse = boolean; /** * RoyaltyModulePayRoyaltyOnBehalfRequest @@ -23586,42 +22828,38 @@ export type RoyaltyModuleIsWhitelistedRoyaltyTokenResponse = boolean * @param amount uint256 */ export type RoyaltyModulePayRoyaltyOnBehalfRequest = { - receiverIpId: Address - payerIpId: Address - token: Address - amount: bigint -} + receiverIpId: Address; + payerIpId: Address; + token: Address; + amount: bigint; +}; /** * contract RoyaltyModule event */ export class RoyaltyModuleEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(royaltyModuleAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(royaltyModuleAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event IpRoyaltyVaultDeployed for contract RoyaltyModule */ public watchIpRoyaltyVaultDeployedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: royaltyModuleAbi, address: this.address, - eventName: 'IpRoyaltyVaultDeployed', + eventName: "IpRoyaltyVaultDeployed", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -23630,23 +22868,23 @@ export class RoyaltyModuleEventClient { public parseTxIpRoyaltyVaultDeployedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyModuleAbi, - eventName: 'IpRoyaltyVaultDeployed', + eventName: "IpRoyaltyVaultDeployed", data: log.data, topics: log.topics, - }) - if (event.eventName === 'IpRoyaltyVaultDeployed') { - targetLogs.push(event.args) + }); + if (event.eventName === "IpRoyaltyVaultDeployed") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -23658,11 +22896,11 @@ export class RoyaltyModuleEventClient { return this.rpcClient.watchContractEvent({ abi: royaltyModuleAbi, address: this.address, - eventName: 'RoyaltyPaid', + eventName: "RoyaltyPaid", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -23671,23 +22909,23 @@ export class RoyaltyModuleEventClient { public parseTxRoyaltyPaidEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyModuleAbi, - eventName: 'RoyaltyPaid', + eventName: "RoyaltyPaid", data: log.data, topics: log.topics, - }) - if (event.eventName === 'RoyaltyPaid') { - targetLogs.push(event.args) + }); + if (event.eventName === "RoyaltyPaid") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -23696,7 +22934,7 @@ export class RoyaltyModuleEventClient { */ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -23711,9 +22949,9 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { return await this.rpcClient.readContract({ abi: royaltyModuleAbi, address: this.address, - functionName: 'ipRoyaltyVaults', + functionName: "ipRoyaltyVaults", args: [request.ipId], - }) + }); } /** @@ -23728,9 +22966,9 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { return await this.rpcClient.readContract({ abi: royaltyModuleAbi, address: this.address, - functionName: 'isWhitelistedRoyaltyPolicy', + functionName: "isWhitelistedRoyaltyPolicy", args: [request.royaltyPolicy], - }) + }); } /** @@ -23745,9 +22983,9 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { return await this.rpcClient.readContract({ abi: royaltyModuleAbi, address: this.address, - functionName: 'isWhitelistedRoyaltyToken', + functionName: "isWhitelistedRoyaltyToken", args: [request.token], - }) + }); } } @@ -23755,15 +22993,11 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { * contract RoyaltyModule write method */ export class RoyaltyModuleClient extends RoyaltyModuleReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -23778,16 +23012,11 @@ export class RoyaltyModuleClient extends RoyaltyModuleReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyModuleAbi, address: this.address, - functionName: 'payRoyaltyOnBehalf', + functionName: "payRoyaltyOnBehalf", account: this.wallet.account, - args: [ - request.receiverIpId, - request.payerIpId, - request.token, - request.amount, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.receiverIpId, request.payerIpId, request.token, request.amount], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -23796,22 +23025,15 @@ export class RoyaltyModuleClient extends RoyaltyModuleReadOnlyClient { * @param request RoyaltyModulePayRoyaltyOnBehalfRequest * @return EncodedTxData */ - public payRoyaltyOnBehalfEncode( - request: RoyaltyModulePayRoyaltyOnBehalfRequest, - ): EncodedTxData { + public payRoyaltyOnBehalfEncode(request: RoyaltyModulePayRoyaltyOnBehalfRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyModuleAbi, - functionName: 'payRoyaltyOnBehalf', - args: [ - request.receiverIpId, - request.payerIpId, - request.token, - request.amount, - ], + functionName: "payRoyaltyOnBehalf", + args: [request.receiverIpId, request.payerIpId, request.token, request.amount], }), - } + }; } } @@ -23825,8 +23047,8 @@ export class RoyaltyModuleClient extends RoyaltyModuleReadOnlyClient { * @param authority address */ export type RoyaltyPolicyLrpAuthorityUpdatedEvent = { - authority: Address -} + authority: Address; +}; /** * RoyaltyPolicyLrpInitializedEvent @@ -23834,8 +23056,8 @@ export type RoyaltyPolicyLrpAuthorityUpdatedEvent = { * @param version uint64 */ export type RoyaltyPolicyLrpInitializedEvent = { - version: bigint -} + version: bigint; +}; /** * RoyaltyPolicyLrpPausedEvent @@ -23843,8 +23065,8 @@ export type RoyaltyPolicyLrpInitializedEvent = { * @param account address */ export type RoyaltyPolicyLrpPausedEvent = { - account: Address -} + account: Address; +}; /** * RoyaltyPolicyLrpRevenueTransferredToVaultEvent @@ -23855,11 +23077,11 @@ export type RoyaltyPolicyLrpPausedEvent = { * @param amount uint256 */ export type RoyaltyPolicyLrpRevenueTransferredToVaultEvent = { - ipId: Address - ancestorIpId: Address - token: Address - amount: bigint -} + ipId: Address; + ancestorIpId: Address; + token: Address; + amount: bigint; +}; /** * RoyaltyPolicyLrpUnpausedEvent @@ -23867,8 +23089,8 @@ export type RoyaltyPolicyLrpRevenueTransferredToVaultEvent = { * @param account address */ export type RoyaltyPolicyLrpUnpausedEvent = { - account: Address -} + account: Address; +}; /** * RoyaltyPolicyLrpUpgradedEvent @@ -23876,20 +23098,20 @@ export type RoyaltyPolicyLrpUnpausedEvent = { * @param implementation address */ export type RoyaltyPolicyLrpUpgradedEvent = { - implementation: Address -} + implementation: Address; +}; -export type RoyaltyPolicyLrpIpGraphResponse = Address +export type RoyaltyPolicyLrpIpGraphResponse = Address; -export type RoyaltyPolicyLrpIpGraphAclResponse = Address +export type RoyaltyPolicyLrpIpGraphAclResponse = Address; -export type RoyaltyPolicyLrpRoyaltyModuleResponse = Address +export type RoyaltyPolicyLrpRoyaltyModuleResponse = Address; -export type RoyaltyPolicyLrpRoyaltyPolicyLapResponse = Address +export type RoyaltyPolicyLrpRoyaltyPolicyLapResponse = Address; -export type RoyaltyPolicyLrpUpgradeInterfaceVersionResponse = string +export type RoyaltyPolicyLrpUpgradeInterfaceVersionResponse = string; -export type RoyaltyPolicyLrpAuthorityResponse = Address +export type RoyaltyPolicyLrpAuthorityResponse = Address; /** * RoyaltyPolicyLrpGetPolicyRoyaltyStackRequest @@ -23897,10 +23119,10 @@ export type RoyaltyPolicyLrpAuthorityResponse = Address * @param ipId address */ export type RoyaltyPolicyLrpGetPolicyRoyaltyStackRequest = { - ipId: Address -} + ipId: Address; +}; -export type RoyaltyPolicyLrpGetPolicyRoyaltyStackResponse = number +export type RoyaltyPolicyLrpGetPolicyRoyaltyStackResponse = number; /** * RoyaltyPolicyLrpGetPolicyRtsRequiredToLinkRequest @@ -23909,11 +23131,11 @@ export type RoyaltyPolicyLrpGetPolicyRoyaltyStackResponse = number * @param licensePercent uint32 */ export type RoyaltyPolicyLrpGetPolicyRtsRequiredToLinkRequest = { - ipId: Address - licensePercent: number -} + ipId: Address; + licensePercent: number; +}; -export type RoyaltyPolicyLrpGetPolicyRtsRequiredToLinkResponse = number +export type RoyaltyPolicyLrpGetPolicyRtsRequiredToLinkResponse = number; /** * RoyaltyPolicyLrpGetTransferredTokensRequest @@ -23923,20 +23145,20 @@ export type RoyaltyPolicyLrpGetPolicyRtsRequiredToLinkResponse = number * @param token address */ export type RoyaltyPolicyLrpGetTransferredTokensRequest = { - ipId: Address - ancestorIpId: Address - token: Address -} + ipId: Address; + ancestorIpId: Address; + token: Address; +}; -export type RoyaltyPolicyLrpGetTransferredTokensResponse = bigint +export type RoyaltyPolicyLrpGetTransferredTokensResponse = bigint; -export type RoyaltyPolicyLrpIsConsumingScheduledOpResponse = Hex +export type RoyaltyPolicyLrpIsConsumingScheduledOpResponse = Hex; -export type RoyaltyPolicyLrpIsSupportGroupResponse = boolean +export type RoyaltyPolicyLrpIsSupportGroupResponse = boolean; -export type RoyaltyPolicyLrpPausedResponse = boolean +export type RoyaltyPolicyLrpPausedResponse = boolean; -export type RoyaltyPolicyLrpProxiableUuidResponse = Hex +export type RoyaltyPolicyLrpProxiableUuidResponse = Hex; /** * RoyaltyPolicyLrpProtocolPausableInitRequest @@ -23944,8 +23166,8 @@ export type RoyaltyPolicyLrpProxiableUuidResponse = Hex * @param accessManager address */ export type RoyaltyPolicyLrpProtocolPausableInitRequest = { - accessManager: Address -} + accessManager: Address; +}; /** * RoyaltyPolicyLrpGetPolicyRoyaltyRequest @@ -23954,9 +23176,9 @@ export type RoyaltyPolicyLrpProtocolPausableInitRequest = { * @param ancestorIpId address */ export type RoyaltyPolicyLrpGetPolicyRoyaltyRequest = { - ipId: Address - ancestorIpId: Address -} + ipId: Address; + ancestorIpId: Address; +}; /** * RoyaltyPolicyLrpInitializeRequest @@ -23964,8 +23186,8 @@ export type RoyaltyPolicyLrpGetPolicyRoyaltyRequest = { * @param accessManager address */ export type RoyaltyPolicyLrpInitializeRequest = { - accessManager: Address -} + accessManager: Address; +}; /** * RoyaltyPolicyLrpOnLicenseMintingRequest @@ -23974,11 +23196,7 @@ export type RoyaltyPolicyLrpInitializeRequest = { * @param 1 uint32 * @param 2 bytes */ -export type RoyaltyPolicyLrpOnLicenseMintingRequest = readonly [ - Address, - number, - Hex, -] +export type RoyaltyPolicyLrpOnLicenseMintingRequest = readonly [Address, number, Hex]; /** * RoyaltyPolicyLrpOnLinkToParentsRequest @@ -23995,7 +23213,7 @@ export type RoyaltyPolicyLrpOnLinkToParentsRequest = readonly [ readonly Address[], readonly number[], Hex, -] +]; /** * RoyaltyPolicyLrpSetAuthorityRequest @@ -24003,8 +23221,8 @@ export type RoyaltyPolicyLrpOnLinkToParentsRequest = readonly [ * @param newAuthority address */ export type RoyaltyPolicyLrpSetAuthorityRequest = { - newAuthority: Address -} + newAuthority: Address; +}; /** * RoyaltyPolicyLrpTransferToVaultRequest @@ -24014,10 +23232,10 @@ export type RoyaltyPolicyLrpSetAuthorityRequest = { * @param token address */ export type RoyaltyPolicyLrpTransferToVaultRequest = { - ipId: Address - ancestorIpId: Address - token: Address -} + ipId: Address; + ancestorIpId: Address; + token: Address; +}; /** * RoyaltyPolicyLrpUpgradeToAndCallRequest @@ -24026,40 +23244,36 @@ export type RoyaltyPolicyLrpTransferToVaultRequest = { * @param data bytes */ export type RoyaltyPolicyLrpUpgradeToAndCallRequest = { - newImplementation: Address - data: Hex -} + newImplementation: Address; + data: Hex; +}; /** * contract RoyaltyPolicyLRP event */ export class RoyaltyPolicyLrpEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(royaltyPolicyLrpAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(royaltyPolicyLrpAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event AuthorityUpdated for contract RoyaltyPolicyLRP */ public watchAuthorityUpdatedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: royaltyPolicyLrpAbi, address: this.address, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -24068,42 +23282,39 @@ export class RoyaltyPolicyLrpEventClient { public parseTxAuthorityUpdatedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyPolicyLrpAbi, - eventName: 'AuthorityUpdated', + eventName: "AuthorityUpdated", data: log.data, topics: log.topics, - }) - if (event.eventName === 'AuthorityUpdated') { - targetLogs.push(event.args) + }); + if (event.eventName === "AuthorityUpdated") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event Initialized for contract RoyaltyPolicyLRP */ public watchInitializedEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: royaltyPolicyLrpAbi, address: this.address, - eventName: 'Initialized', + eventName: "Initialized", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -24112,23 +23323,23 @@ export class RoyaltyPolicyLrpEventClient { public parseTxInitializedEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyPolicyLrpAbi, - eventName: 'Initialized', + eventName: "Initialized", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Initialized') { - targetLogs.push(event.args) + }); + if (event.eventName === "Initialized") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -24140,55 +23351,50 @@ export class RoyaltyPolicyLrpEventClient { return this.rpcClient.watchContractEvent({ abi: royaltyPolicyLrpAbi, address: this.address, - eventName: 'Paused', + eventName: "Paused", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** * parse tx receipt event Paused for contract RoyaltyPolicyLRP */ - public parseTxPausedEvent( - txReceipt: TransactionReceipt, - ): Array { - const targetLogs: Array = [] + public parseTxPausedEvent(txReceipt: TransactionReceipt): Array { + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyPolicyLrpAbi, - eventName: 'Paused', + eventName: "Paused", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Paused') { - targetLogs.push(event.args) + }); + if (event.eventName === "Paused") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** * event RevenueTransferredToVault for contract RoyaltyPolicyLRP */ public watchRevenueTransferredToVaultEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: royaltyPolicyLrpAbi, address: this.address, - eventName: 'RevenueTransferredToVault', + eventName: "RevenueTransferredToVault", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -24197,23 +23403,23 @@ export class RoyaltyPolicyLrpEventClient { public parseTxRevenueTransferredToVaultEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyPolicyLrpAbi, - eventName: 'RevenueTransferredToVault', + eventName: "RevenueTransferredToVault", data: log.data, topics: log.topics, - }) - if (event.eventName === 'RevenueTransferredToVault') { - targetLogs.push(event.args) + }); + if (event.eventName === "RevenueTransferredToVault") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -24225,36 +23431,34 @@ export class RoyaltyPolicyLrpEventClient { return this.rpcClient.watchContractEvent({ abi: royaltyPolicyLrpAbi, address: this.address, - eventName: 'Unpaused', + eventName: "Unpaused", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** * parse tx receipt event Unpaused for contract RoyaltyPolicyLRP */ - public parseTxUnpausedEvent( - txReceipt: TransactionReceipt, - ): Array { - const targetLogs: Array = [] + public parseTxUnpausedEvent(txReceipt: TransactionReceipt): Array { + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyPolicyLrpAbi, - eventName: 'Unpaused', + eventName: "Unpaused", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Unpaused') { - targetLogs.push(event.args) + }); + if (event.eventName === "Unpaused") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -24266,36 +23470,34 @@ export class RoyaltyPolicyLrpEventClient { return this.rpcClient.watchContractEvent({ abi: royaltyPolicyLrpAbi, address: this.address, - eventName: 'Upgraded', + eventName: "Upgraded", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** * parse tx receipt event Upgraded for contract RoyaltyPolicyLRP */ - public parseTxUpgradedEvent( - txReceipt: TransactionReceipt, - ): Array { - const targetLogs: Array = [] + public parseTxUpgradedEvent(txReceipt: TransactionReceipt): Array { + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: royaltyPolicyLrpAbi, - eventName: 'Upgraded', + eventName: "Upgraded", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Upgraded') { - targetLogs.push(event.args) + }); + if (event.eventName === "Upgraded") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -24304,7 +23506,7 @@ export class RoyaltyPolicyLrpEventClient { */ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -24317,8 +23519,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'IP_GRAPH', - }) + functionName: "IP_GRAPH", + }); } /** @@ -24331,8 +23533,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'IP_GRAPH_ACL', - }) + functionName: "IP_GRAPH_ACL", + }); } /** @@ -24345,8 +23547,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'ROYALTY_MODULE', - }) + functionName: "ROYALTY_MODULE", + }); } /** @@ -24359,8 +23561,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'ROYALTY_POLICY_LAP', - }) + functionName: "ROYALTY_POLICY_LAP", + }); } /** @@ -24373,8 +23575,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'UPGRADE_INTERFACE_VERSION', - }) + functionName: "UPGRADE_INTERFACE_VERSION", + }); } /** @@ -24387,8 +23589,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'authority', - }) + functionName: "authority", + }); } /** @@ -24403,9 +23605,9 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'getPolicyRoyaltyStack', + functionName: "getPolicyRoyaltyStack", args: [request.ipId], - }) + }); } /** @@ -24420,9 +23622,9 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'getPolicyRtsRequiredToLink', + functionName: "getPolicyRtsRequiredToLink", args: [request.ipId, request.licensePercent], - }) + }); } /** @@ -24437,9 +23639,9 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'getTransferredTokens', + functionName: "getTransferredTokens", args: [request.ipId, request.ancestorIpId, request.token], - }) + }); } /** @@ -24452,8 +23654,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'isConsumingScheduledOp', - }) + functionName: "isConsumingScheduledOp", + }); } /** @@ -24466,8 +23668,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'isSupportGroup', - }) + functionName: "isSupportGroup", + }); } /** @@ -24480,8 +23682,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'paused', - }) + functionName: "paused", + }); } /** @@ -24494,8 +23696,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'proxiableUUID', - }) + functionName: "proxiableUUID", + }); } } @@ -24503,15 +23705,11 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient * contract RoyaltyPolicyLRP write method */ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -24526,11 +23724,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: '__ProtocolPausable_init', + functionName: "__ProtocolPausable_init", account: this.wallet.account, args: [request.accessManager], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24546,10 +23744,10 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: '__ProtocolPausable_init', + functionName: "__ProtocolPausable_init", args: [request.accessManager], }), - } + }; } /** @@ -24564,11 +23762,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'getPolicyRoyalty', + functionName: "getPolicyRoyalty", account: this.wallet.account, args: [request.ipId, request.ancestorIpId], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24577,17 +23775,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpGetPolicyRoyaltyRequest * @return EncodedTxData */ - public getPolicyRoyaltyEncode( - request: RoyaltyPolicyLrpGetPolicyRoyaltyRequest, - ): EncodedTxData { + public getPolicyRoyaltyEncode(request: RoyaltyPolicyLrpGetPolicyRoyaltyRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'getPolicyRoyalty', + functionName: "getPolicyRoyalty", args: [request.ipId, request.ancestorIpId], }), - } + }; } /** @@ -24602,11 +23798,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'initialize', + functionName: "initialize", account: this.wallet.account, args: [request.accessManager], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24615,17 +23811,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpInitializeRequest * @return EncodedTxData */ - public initializeEncode( - request: RoyaltyPolicyLrpInitializeRequest, - ): EncodedTxData { + public initializeEncode(request: RoyaltyPolicyLrpInitializeRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'initialize', + functionName: "initialize", args: [request.accessManager], }), - } + }; } /** @@ -24640,11 +23834,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'onLicenseMinting', + functionName: "onLicenseMinting", account: this.wallet.account, args: [request[0], request[1], request[2]], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24653,17 +23847,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpOnLicenseMintingRequest * @return EncodedTxData */ - public onLicenseMintingEncode( - request: RoyaltyPolicyLrpOnLicenseMintingRequest, - ): EncodedTxData { + public onLicenseMintingEncode(request: RoyaltyPolicyLrpOnLicenseMintingRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'onLicenseMinting', + functionName: "onLicenseMinting", args: [request[0], request[1], request[2]], }), - } + }; } /** @@ -24678,11 +23870,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'onLinkToParents', + functionName: "onLinkToParents", account: this.wallet.account, args: [request[0], request[1], request[2], request[3], request[4]], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24691,17 +23883,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpOnLinkToParentsRequest * @return EncodedTxData */ - public onLinkToParentsEncode( - request: RoyaltyPolicyLrpOnLinkToParentsRequest, - ): EncodedTxData { + public onLinkToParentsEncode(request: RoyaltyPolicyLrpOnLinkToParentsRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'onLinkToParents', + functionName: "onLinkToParents", args: [request[0], request[1], request[2], request[3], request[4]], }), - } + }; } /** @@ -24714,10 +23904,10 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'pause', + functionName: "pause", account: this.wallet.account, - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24731,9 +23921,9 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'pause', + functionName: "pause", }), - } + }; } /** @@ -24748,11 +23938,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'setAuthority', + functionName: "setAuthority", account: this.wallet.account, args: [request.newAuthority], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24761,17 +23951,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpSetAuthorityRequest * @return EncodedTxData */ - public setAuthorityEncode( - request: RoyaltyPolicyLrpSetAuthorityRequest, - ): EncodedTxData { + public setAuthorityEncode(request: RoyaltyPolicyLrpSetAuthorityRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'setAuthority', + functionName: "setAuthority", args: [request.newAuthority], }), - } + }; } /** @@ -24786,11 +23974,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'transferToVault', + functionName: "transferToVault", account: this.wallet.account, args: [request.ipId, request.ancestorIpId, request.token], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24799,17 +23987,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpTransferToVaultRequest * @return EncodedTxData */ - public transferToVaultEncode( - request: RoyaltyPolicyLrpTransferToVaultRequest, - ): EncodedTxData { + public transferToVaultEncode(request: RoyaltyPolicyLrpTransferToVaultRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'transferToVault', + functionName: "transferToVault", args: [request.ipId, request.ancestorIpId, request.token], }), - } + }; } /** @@ -24822,10 +24008,10 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'unpause', + functionName: "unpause", account: this.wallet.account, - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24839,9 +24025,9 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'unpause', + functionName: "unpause", }), - } + }; } /** @@ -24856,11 +24042,11 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", account: this.wallet.account, args: [request.newImplementation, request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -24869,17 +24055,15 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param request RoyaltyPolicyLrpUpgradeToAndCallRequest * @return EncodedTxData */ - public upgradeToAndCallEncode( - request: RoyaltyPolicyLrpUpgradeToAndCallRequest, - ): EncodedTxData { + public upgradeToAndCallEncode(request: RoyaltyPolicyLrpUpgradeToAndCallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: 'upgradeToAndCall', + functionName: "upgradeToAndCall", args: [request.newImplementation, request.data], }), - } + }; } } @@ -24893,17 +24077,17 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { * @param sigApproveRoyaltyTokens tuple */ export type RoyaltyTokenDistributionWorkflowsDistributeRoyaltyTokensRequest = { - ipId: Address + ipId: Address; royaltyShares: { - recipient: Address - percentage: number - }[] + recipient: Address; + percentage: number; + }[]; sigApproveRoyaltyTokens: { - signer: Address - deadline: bigint - signature: Hex - } -} + signer: Address; + deadline: bigint; + signature: Hex; + }; +}; /** * RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndAttachPilTermsAndDistributeRoyaltyTokensRequest @@ -24917,51 +24101,51 @@ export type RoyaltyTokenDistributionWorkflowsDistributeRoyaltyTokensRequest = { */ export type RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndAttachPilTermsAndDistributeRoyaltyTokensRequest = { - spgNftContract: Address - recipient: Address + spgNftContract: Address; + recipient: Address; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; licenseTermsData: { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; royaltyShares: { - recipient: Address - percentage: number - }[] - allowDuplicates: boolean - } + recipient: Address; + percentage: number; + }[]; + allowDuplicates: boolean; + }; /** * RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest @@ -24975,29 +24159,29 @@ export type RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndAttachPilTermsA */ export type RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest = { - spgNftContract: Address - recipient: Address + spgNftContract: Address; + recipient: Address; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; derivData: { - parentIpIds: readonly Address[] - licenseTemplate: Address - licenseTermsIds: readonly bigint[] - royaltyContext: Hex - maxMintingFee: bigint - maxRts: number - maxRevenueShare: number - } + parentIpIds: readonly Address[]; + licenseTemplate: Address; + licenseTermsIds: readonly bigint[]; + royaltyContext: Hex; + maxMintingFee: bigint; + maxRts: number; + maxRevenueShare: number; + }; royaltyShares: { - recipient: Address - percentage: number - }[] - allowDuplicates: boolean - } + recipient: Address; + percentage: number; + }[]; + allowDuplicates: boolean; + }; /** * RoyaltyTokenDistributionWorkflowsMulticallRequest @@ -25005,8 +24189,8 @@ export type RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndMakeDerivativeA * @param data bytes[] */ export type RoyaltyTokenDistributionWorkflowsMulticallRequest = { - data: readonly Hex[] -} + data: readonly Hex[]; +}; /** * RoyaltyTokenDistributionWorkflowsRegisterIpAndAttachPilTermsAndDeployRoyaltyVaultRequest @@ -25019,51 +24203,51 @@ export type RoyaltyTokenDistributionWorkflowsMulticallRequest = { */ export type RoyaltyTokenDistributionWorkflowsRegisterIpAndAttachPilTermsAndDeployRoyaltyVaultRequest = { - nftContract: Address - tokenId: bigint + nftContract: Address; + tokenId: bigint; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; licenseTermsData: { terms: { - transferable: boolean - royaltyPolicy: Address - defaultMintingFee: bigint - expiration: bigint - commercialUse: boolean - commercialAttribution: boolean - commercializerChecker: Address - commercializerCheckerData: Hex - commercialRevShare: number - commercialRevCeiling: bigint - derivativesAllowed: boolean - derivativesAttribution: boolean - derivativesApproval: boolean - derivativesReciprocal: boolean - derivativeRevCeiling: bigint - currency: Address - uri: string - } + transferable: boolean; + royaltyPolicy: Address; + defaultMintingFee: bigint; + expiration: bigint; + commercialUse: boolean; + commercialAttribution: boolean; + commercializerChecker: Address; + commercializerCheckerData: Hex; + commercialRevShare: number; + commercialRevCeiling: bigint; + derivativesAllowed: boolean; + derivativesAttribution: boolean; + derivativesApproval: boolean; + derivativesReciprocal: boolean; + derivativeRevCeiling: bigint; + currency: Address; + uri: string; + }; licensingConfig: { - isSet: boolean - mintingFee: bigint - licensingHook: Address - hookData: Hex - commercialRevShare: number - disabled: boolean - expectMinimumGroupRewardShare: number - expectGroupRewardPool: Address - } - }[] + isSet: boolean; + mintingFee: bigint; + licensingHook: Address; + hookData: Hex; + commercialRevShare: number; + disabled: boolean; + expectMinimumGroupRewardShare: number; + expectGroupRewardPool: Address; + }; + }[]; sigMetadataAndAttachAndConfig: { - signer: Address - deadline: bigint - signature: Hex - } - } + signer: Address; + deadline: bigint; + signature: Hex; + }; + }; /** * RoyaltyTokenDistributionWorkflowsRegisterIpAndMakeDerivativeAndDeployRoyaltyVaultRequest @@ -25076,48 +24260,43 @@ export type RoyaltyTokenDistributionWorkflowsRegisterIpAndAttachPilTermsAndDeplo */ export type RoyaltyTokenDistributionWorkflowsRegisterIpAndMakeDerivativeAndDeployRoyaltyVaultRequest = { - nftContract: Address - tokenId: bigint + nftContract: Address; + tokenId: bigint; ipMetadata: { - ipMetadataURI: string - ipMetadataHash: Hex - nftMetadataURI: string - nftMetadataHash: Hex - } + ipMetadataURI: string; + ipMetadataHash: Hex; + nftMetadataURI: string; + nftMetadataHash: Hex; + }; derivData: { - parentIpIds: readonly Address[] - licenseTemplate: Address - licenseTermsIds: readonly bigint[] - royaltyContext: Hex - maxMintingFee: bigint - maxRts: number - maxRevenueShare: number - } + parentIpIds: readonly Address[]; + licenseTemplate: Address; + licenseTermsIds: readonly bigint[]; + royaltyContext: Hex; + maxMintingFee: bigint; + maxRts: number; + maxRevenueShare: number; + }; sigMetadataAndRegister: { - signer: Address - deadline: bigint - signature: Hex - } - } + signer: Address; + deadline: bigint; + signature: Hex; + }; + }; /** * contract RoyaltyTokenDistributionWorkflows write method */ export class RoyaltyTokenDistributionWorkflowsClient { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address - - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; + + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { this.address = - address || - getAddress(royaltyTokenDistributionWorkflowsAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + address || getAddress(royaltyTokenDistributionWorkflowsAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -25132,15 +24311,11 @@ export class RoyaltyTokenDistributionWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyTokenDistributionWorkflowsAbi, address: this.address, - functionName: 'distributeRoyaltyTokens', + functionName: "distributeRoyaltyTokens", account: this.wallet.account, - args: [ - request.ipId, - request.royaltyShares, - request.sigApproveRoyaltyTokens, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.ipId, request.royaltyShares, request.sigApproveRoyaltyTokens], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25156,14 +24331,10 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: 'distributeRoyaltyTokens', - args: [ - request.ipId, - request.royaltyShares, - request.sigApproveRoyaltyTokens, - ], + functionName: "distributeRoyaltyTokens", + args: [request.ipId, request.royaltyShares, request.sigApproveRoyaltyTokens], }), - } + }; } /** @@ -25178,8 +24349,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyTokenDistributionWorkflowsAbi, address: this.address, - functionName: - 'mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens', + functionName: "mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens", account: this.wallet.account, args: [ request.spgNftContract, @@ -25189,8 +24359,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.royaltyShares, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25206,8 +24376,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: - 'mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens', + functionName: "mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens", args: [ request.spgNftContract, request.recipient, @@ -25217,7 +24386,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.allowDuplicates, ], }), - } + }; } /** @@ -25232,8 +24401,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyTokenDistributionWorkflowsAbi, address: this.address, - functionName: - 'mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens', + functionName: "mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens", account: this.wallet.account, args: [ request.spgNftContract, @@ -25243,8 +24411,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.royaltyShares, request.allowDuplicates, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25260,8 +24428,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: - 'mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens', + functionName: "mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens", args: [ request.spgNftContract, request.recipient, @@ -25271,7 +24438,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.allowDuplicates, ], }), - } + }; } /** @@ -25286,11 +24453,11 @@ export class RoyaltyTokenDistributionWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyTokenDistributionWorkflowsAbi, address: this.address, - functionName: 'multicall', + functionName: "multicall", account: this.wallet.account, args: [request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25306,10 +24473,10 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: 'multicall', + functionName: "multicall", args: [request.data], }), - } + }; } /** @@ -25324,7 +24491,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyTokenDistributionWorkflowsAbi, address: this.address, - functionName: 'registerIpAndAttachPILTermsAndDeployRoyaltyVault', + functionName: "registerIpAndAttachPILTermsAndDeployRoyaltyVault", account: this.wallet.account, args: [ request.nftContract, @@ -25333,8 +24500,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.licenseTermsData, request.sigMetadataAndAttachAndConfig, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25350,7 +24517,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: 'registerIpAndAttachPILTermsAndDeployRoyaltyVault', + functionName: "registerIpAndAttachPILTermsAndDeployRoyaltyVault", args: [ request.nftContract, request.tokenId, @@ -25359,7 +24526,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.sigMetadataAndAttachAndConfig, ], }), - } + }; } /** @@ -25374,7 +24541,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyTokenDistributionWorkflowsAbi, address: this.address, - functionName: 'registerIpAndMakeDerivativeAndDeployRoyaltyVault', + functionName: "registerIpAndMakeDerivativeAndDeployRoyaltyVault", account: this.wallet.account, args: [ request.nftContract, @@ -25383,8 +24550,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.derivData, request.sigMetadataAndRegister, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25400,7 +24567,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: 'registerIpAndMakeDerivativeAndDeployRoyaltyVault', + functionName: "registerIpAndMakeDerivativeAndDeployRoyaltyVault", args: [ request.nftContract, request.tokenId, @@ -25409,7 +24576,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.sigMetadataAndRegister, ], }), - } + }; } } @@ -25425,12 +24592,12 @@ export class RoyaltyTokenDistributionWorkflowsClient { * @param currencyTokens address[] */ export type RoyaltyWorkflowsClaimAllRevenueRequest = { - ancestorIpId: Address - claimer: Address - childIpIds: readonly Address[] - royaltyPolicies: readonly Address[] - currencyTokens: readonly Address[] -} + ancestorIpId: Address; + claimer: Address; + childIpIds: readonly Address[]; + royaltyPolicies: readonly Address[]; + currencyTokens: readonly Address[]; +}; /** * RoyaltyWorkflowsMulticallRequest @@ -25438,26 +24605,21 @@ export type RoyaltyWorkflowsClaimAllRevenueRequest = { * @param data bytes[] */ export type RoyaltyWorkflowsMulticallRequest = { - data: readonly Hex[] -} + data: readonly Hex[]; +}; /** * contract RoyaltyWorkflows write method */ export class RoyaltyWorkflowsClient { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address - - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - this.address = - address || getAddress(royaltyWorkflowsAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; + + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + this.address = address || getAddress(royaltyWorkflowsAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -25472,7 +24634,7 @@ export class RoyaltyWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyWorkflowsAbi, address: this.address, - functionName: 'claimAllRevenue', + functionName: "claimAllRevenue", account: this.wallet.account, args: [ request.ancestorIpId, @@ -25481,8 +24643,8 @@ export class RoyaltyWorkflowsClient { request.royaltyPolicies, request.currencyTokens, ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25491,14 +24653,12 @@ export class RoyaltyWorkflowsClient { * @param request RoyaltyWorkflowsClaimAllRevenueRequest * @return EncodedTxData */ - public claimAllRevenueEncode( - request: RoyaltyWorkflowsClaimAllRevenueRequest, - ): EncodedTxData { + public claimAllRevenueEncode(request: RoyaltyWorkflowsClaimAllRevenueRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyWorkflowsAbi, - functionName: 'claimAllRevenue', + functionName: "claimAllRevenue", args: [ request.ancestorIpId, request.claimer, @@ -25507,7 +24667,7 @@ export class RoyaltyWorkflowsClient { request.currencyTokens, ], }), - } + }; } /** @@ -25522,11 +24682,11 @@ export class RoyaltyWorkflowsClient { const { request: call } = await this.rpcClient.simulateContract({ abi: royaltyWorkflowsAbi, address: this.address, - functionName: 'multicall', + functionName: "multicall", account: this.wallet.account, args: [request.data], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25535,17 +24695,15 @@ export class RoyaltyWorkflowsClient { * @param request RoyaltyWorkflowsMulticallRequest * @return EncodedTxData */ - public multicallEncode( - request: RoyaltyWorkflowsMulticallRequest, - ): EncodedTxData { + public multicallEncode(request: RoyaltyWorkflowsMulticallRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: royaltyWorkflowsAbi, - functionName: 'multicall', + functionName: "multicall", args: [request.data], }), - } + }; } } @@ -25558,9 +24716,9 @@ export class RoyaltyWorkflowsClient { * @param newOwner address */ export type SpgnftBeaconOwnershipTransferredEvent = { - previousOwner: Address - newOwner: Address -} + previousOwner: Address; + newOwner: Address; +}; /** * SpgnftBeaconUpgradedEvent @@ -25568,12 +24726,12 @@ export type SpgnftBeaconOwnershipTransferredEvent = { * @param implementation address */ export type SpgnftBeaconUpgradedEvent = { - implementation: Address -} + implementation: Address; +}; -export type SpgnftBeaconImplementationResponse = Address +export type SpgnftBeaconImplementationResponse = Address; -export type SpgnftBeaconOwnerResponse = Address +export type SpgnftBeaconOwnerResponse = Address; /** * SpgnftBeaconTransferOwnershipRequest @@ -25581,8 +24739,8 @@ export type SpgnftBeaconOwnerResponse = Address * @param newOwner address */ export type SpgnftBeaconTransferOwnershipRequest = { - newOwner: Address -} + newOwner: Address; +}; /** * SpgnftBeaconUpgradeToRequest @@ -25590,39 +24748,35 @@ export type SpgnftBeaconTransferOwnershipRequest = { * @param newImplementation address */ export type SpgnftBeaconUpgradeToRequest = { - newImplementation: Address -} + newImplementation: Address; +}; /** * contract SPGNFTBeacon event */ export class SpgnftBeaconEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = - address || getAddress(spgnftBeaconAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(spgnftBeaconAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** * event OwnershipTransferred for contract SPGNFTBeacon */ public watchOwnershipTransferredEvent( - onLogs: ( - txHash: Hex, - ev: Partial, - ) => void, + onLogs: (txHash: Hex, ev: Partial) => void, ): WatchContractEventReturnType { return this.rpcClient.watchContractEvent({ abi: spgnftBeaconAbi, address: this.address, - eventName: 'OwnershipTransferred', + eventName: "OwnershipTransferred", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** @@ -25631,23 +24785,23 @@ export class SpgnftBeaconEventClient { public parseTxOwnershipTransferredEvent( txReceipt: TransactionReceipt, ): Array { - const targetLogs: Array = [] + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: spgnftBeaconAbi, - eventName: 'OwnershipTransferred', + eventName: "OwnershipTransferred", data: log.data, topics: log.topics, - }) - if (event.eventName === 'OwnershipTransferred') { - targetLogs.push(event.args) + }); + if (event.eventName === "OwnershipTransferred") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } /** @@ -25659,36 +24813,34 @@ export class SpgnftBeaconEventClient { return this.rpcClient.watchContractEvent({ abi: spgnftBeaconAbi, address: this.address, - eventName: 'Upgraded', + eventName: "Upgraded", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** * parse tx receipt event Upgraded for contract SPGNFTBeacon */ - public parseTxUpgradedEvent( - txReceipt: TransactionReceipt, - ): Array { - const targetLogs: Array = [] + public parseTxUpgradedEvent(txReceipt: TransactionReceipt): Array { + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: spgnftBeaconAbi, - eventName: 'Upgraded', + eventName: "Upgraded", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Upgraded') { - targetLogs.push(event.args) + }); + if (event.eventName === "Upgraded") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -25697,7 +24849,7 @@ export class SpgnftBeaconEventClient { */ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -25710,8 +24862,8 @@ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { return await this.rpcClient.readContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: 'implementation', - }) + functionName: "implementation", + }); } /** @@ -25724,8 +24876,8 @@ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { return await this.rpcClient.readContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: 'owner', - }) + functionName: "owner", + }); } } @@ -25733,15 +24885,11 @@ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { * contract SPGNFTBeacon write method */ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -25754,10 +24902,10 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: 'renounceOwnership', + functionName: "renounceOwnership", account: this.wallet.account, - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25771,9 +24919,9 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: spgnftBeaconAbi, - functionName: 'renounceOwnership', + functionName: "renounceOwnership", }), - } + }; } /** @@ -25788,11 +24936,11 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: 'transferOwnership', + functionName: "transferOwnership", account: this.wallet.account, args: [request.newOwner], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25801,17 +24949,15 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { * @param request SpgnftBeaconTransferOwnershipRequest * @return EncodedTxData */ - public transferOwnershipEncode( - request: SpgnftBeaconTransferOwnershipRequest, - ): EncodedTxData { + public transferOwnershipEncode(request: SpgnftBeaconTransferOwnershipRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: spgnftBeaconAbi, - functionName: 'transferOwnership', + functionName: "transferOwnership", args: [request.newOwner], }), - } + }; } /** @@ -25820,17 +24966,15 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { * @param request SpgnftBeaconUpgradeToRequest * @return Promise */ - public async upgradeTo( - request: SpgnftBeaconUpgradeToRequest, - ): Promise { + public async upgradeTo(request: SpgnftBeaconUpgradeToRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: 'upgradeTo', + functionName: "upgradeTo", account: this.wallet.account, args: [request.newImplementation], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -25844,10 +24988,10 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: spgnftBeaconAbi, - functionName: 'upgradeTo', + functionName: "upgradeTo", args: [request.newImplementation], }), - } + }; } } @@ -25861,10 +25005,10 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { * @param tokenId uint256 */ export type SpgnftImplTransferEvent = { - from: Address - to: Address - tokenId: bigint -} + from: Address; + to: Address; + tokenId: bigint; +}; /** * SpgnftImplBalanceOfRequest @@ -25872,10 +25016,10 @@ export type SpgnftImplTransferEvent = { * @param owner address */ export type SpgnftImplBalanceOfRequest = { - owner: Address -} + owner: Address; +}; -export type SpgnftImplBalanceOfResponse = bigint +export type SpgnftImplBalanceOfResponse = bigint; /** * SpgnftImplHasRoleRequest @@ -25884,17 +25028,17 @@ export type SpgnftImplBalanceOfResponse = bigint * @param account address */ export type SpgnftImplHasRoleRequest = { - role: Hex - account: Address -} + role: Hex; + account: Address; +}; -export type SpgnftImplHasRoleResponse = boolean +export type SpgnftImplHasRoleResponse = boolean; -export type SpgnftImplMintFeeResponse = bigint +export type SpgnftImplMintFeeResponse = bigint; -export type SpgnftImplMintFeeTokenResponse = Address +export type SpgnftImplMintFeeTokenResponse = Address; -export type SpgnftImplPublicMintingResponse = boolean +export type SpgnftImplPublicMintingResponse = boolean; /** * SpgnftImplTokenUriRequest @@ -25902,10 +25046,10 @@ export type SpgnftImplPublicMintingResponse = boolean * @param tokenId uint256 */ export type SpgnftImplTokenUriRequest = { - tokenId: bigint -} + tokenId: bigint; +}; -export type SpgnftImplTokenUriResponse = string +export type SpgnftImplTokenUriResponse = string; /** * SpgnftImplSetTokenUriRequest @@ -25914,20 +25058,20 @@ export type SpgnftImplTokenUriResponse = string * @param tokenUri string */ export type SpgnftImplSetTokenUriRequest = { - tokenId: bigint - tokenUri: string -} + tokenId: bigint; + tokenUri: string; +}; /** * contract SPGNFTImpl event */ export class SpgnftImplEventClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = address || getAddress(spgnftImplAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(spgnftImplAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -25939,36 +25083,34 @@ export class SpgnftImplEventClient { return this.rpcClient.watchContractEvent({ abi: spgnftImplAbi, address: this.address, - eventName: 'Transfer', + eventName: "Transfer", onLogs: (evs) => { - evs.forEach((it) => onLogs(it.transactionHash, it.args)) + evs.forEach((it) => onLogs(it.transactionHash, it.args)); }, - }) + }); } /** * parse tx receipt event Transfer for contract SPGNFTImpl */ - public parseTxTransferEvent( - txReceipt: TransactionReceipt, - ): Array { - const targetLogs: Array = [] + public parseTxTransferEvent(txReceipt: TransactionReceipt): Array { + const targetLogs: Array = []; for (const log of txReceipt.logs) { try { const event = decodeEventLog({ abi: spgnftImplAbi, - eventName: 'Transfer', + eventName: "Transfer", data: log.data, topics: log.topics, - }) - if (event.eventName === 'Transfer') { - targetLogs.push(event.args) + }); + if (event.eventName === "Transfer") { + targetLogs.push(event.args); } } catch (e) { /* empty */ } } - return targetLogs + return targetLogs; } } @@ -25977,7 +25119,7 @@ export class SpgnftImplEventClient { */ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address) + super(rpcClient, address); } /** @@ -25992,9 +25134,9 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'balanceOf', + functionName: "balanceOf", args: [request.owner], - }) + }); } /** @@ -26003,15 +25145,13 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { * @param request SpgnftImplHasRoleRequest * @return Promise */ - public async hasRole( - request: SpgnftImplHasRoleRequest, - ): Promise { + public async hasRole(request: SpgnftImplHasRoleRequest): Promise { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'hasRole', + functionName: "hasRole", args: [request.role, request.account], - }) + }); } /** @@ -26024,8 +25164,8 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'mintFee', - }) + functionName: "mintFee", + }); } /** @@ -26038,8 +25178,8 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'mintFeeToken', - }) + functionName: "mintFeeToken", + }); } /** @@ -26052,8 +25192,8 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'publicMinting', - }) + functionName: "publicMinting", + }); } /** @@ -26062,15 +25202,13 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { * @param request SpgnftImplTokenUriRequest * @return Promise */ - public async tokenUri( - request: SpgnftImplTokenUriRequest, - ): Promise { + public async tokenUri(request: SpgnftImplTokenUriRequest): Promise { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'tokenURI', + functionName: "tokenURI", args: [request.tokenId], - }) + }); } } @@ -26078,15 +25216,11 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { * contract SPGNFTImpl write method */ export class SpgnftImplClient extends SpgnftImplReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -26101,11 +25235,11 @@ export class SpgnftImplClient extends SpgnftImplReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: spgnftImplAbi, address: this.address, - functionName: 'setTokenURI', + functionName: "setTokenURI", account: this.wallet.account, args: [request.tokenId, request.tokenUri], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26114,17 +25248,15 @@ export class SpgnftImplClient extends SpgnftImplReadOnlyClient { * @param request SpgnftImplSetTokenUriRequest * @return EncodedTxData */ - public setTokenUriEncode( - request: SpgnftImplSetTokenUriRequest, - ): EncodedTxData { + public setTokenUriEncode(request: SpgnftImplSetTokenUriRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: spgnftImplAbi, - functionName: 'setTokenURI', + functionName: "setTokenURI", args: [request.tokenId, request.tokenUri], }), - } + }; } } @@ -26139,30 +25271,24 @@ export class SpgnftImplClient extends SpgnftImplReadOnlyClient { * @param limit uint256 */ export type TotalLicenseTokenLimitHookSetTotalLicenseTokenLimitRequest = { - licensorIpId: Address - licenseTemplate: Address - licenseTermsId: bigint - limit: bigint -} + licensorIpId: Address; + licenseTemplate: Address; + licenseTermsId: bigint; + limit: bigint; +}; /** * contract TotalLicenseTokenLimitHook write method */ export class TotalLicenseTokenLimitHookClient { - protected readonly wallet: SimpleWalletClient - protected readonly rpcClient: PublicClient - public readonly address: Address - - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - this.address = - address || - getAddress(totalLicenseTokenLimitHookAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient - this.wallet = wallet + protected readonly wallet: SimpleWalletClient; + protected readonly rpcClient: PublicClient; + public readonly address: Address; + + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + this.address = address || getAddress(totalLicenseTokenLimitHookAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; + this.wallet = wallet; } /** @@ -26177,16 +25303,11 @@ export class TotalLicenseTokenLimitHookClient { const { request: call } = await this.rpcClient.simulateContract({ abi: totalLicenseTokenLimitHookAbi, address: this.address, - functionName: 'setTotalLicenseTokenLimit', + functionName: "setTotalLicenseTokenLimit", account: this.wallet.account, - args: [ - request.licensorIpId, - request.licenseTemplate, - request.licenseTermsId, - request.limit, - ], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + args: [request.licensorIpId, request.licenseTemplate, request.licenseTermsId, request.limit], + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26202,7 +25323,7 @@ export class TotalLicenseTokenLimitHookClient { to: this.address, data: encodeFunctionData({ abi: totalLicenseTokenLimitHookAbi, - functionName: 'setTotalLicenseTokenLimit', + functionName: "setTotalLicenseTokenLimit", args: [ request.licensorIpId, request.licenseTemplate, @@ -26210,7 +25331,7 @@ export class TotalLicenseTokenLimitHookClient { request.limit, ], }), - } + }; } } @@ -26223,9 +25344,9 @@ export class TotalLicenseTokenLimitHookClient { * @param spender address */ export type WrappedIpAllowanceRequest = { - owner: Address - spender: Address -} + owner: Address; + spender: Address; +}; /** * WrappedIpAllowanceResponse @@ -26233,8 +25354,8 @@ export type WrappedIpAllowanceRequest = { * @param result uint256 */ export type WrappedIpAllowanceResponse = { - result: bigint -} + result: bigint; +}; /** * WrappedIpBalanceOfRequest @@ -26242,8 +25363,8 @@ export type WrappedIpAllowanceResponse = { * @param owner address */ export type WrappedIpBalanceOfRequest = { - owner: Address -} + owner: Address; +}; /** * WrappedIpBalanceOfResponse @@ -26251,8 +25372,8 @@ export type WrappedIpBalanceOfRequest = { * @param result uint256 */ export type WrappedIpBalanceOfResponse = { - result: bigint -} + result: bigint; +}; /** * WrappedIpApproveRequest @@ -26261,9 +25382,9 @@ export type WrappedIpBalanceOfResponse = { * @param amount uint256 */ export type WrappedIpApproveRequest = { - spender: Address - amount: bigint -} + spender: Address; + amount: bigint; +}; /** * WrappedIpTransferRequest @@ -26272,9 +25393,9 @@ export type WrappedIpApproveRequest = { * @param amount uint256 */ export type WrappedIpTransferRequest = { - to: Address - amount: bigint -} + to: Address; + amount: bigint; +}; /** * WrappedIpTransferFromRequest @@ -26284,10 +25405,10 @@ export type WrappedIpTransferRequest = { * @param amount uint256 */ export type WrappedIpTransferFromRequest = { - from: Address - to: Address - amount: bigint -} + from: Address; + to: Address; + amount: bigint; +}; /** * WrappedIpWithdrawRequest @@ -26295,19 +25416,19 @@ export type WrappedIpTransferFromRequest = { * @param value uint256 */ export type WrappedIpWithdrawRequest = { - value: bigint -} + value: bigint; +}; /** * contract WrappedIP readonly method */ export class WrappedIpReadOnlyClient { - protected readonly rpcClient: PublicClient - public readonly address: Address + protected readonly rpcClient: PublicClient; + public readonly address: Address; constructor(rpcClient: PublicClient, address?: Address) { - this.address = address || getAddress(wrappedIpAddress, rpcClient.chain?.id) - this.rpcClient = rpcClient + this.address = address || getAddress(wrappedIpAddress, rpcClient.chain?.id); + this.rpcClient = rpcClient; } /** @@ -26316,18 +25437,16 @@ export class WrappedIpReadOnlyClient { * @param request WrappedIpAllowanceRequest * @return Promise */ - public async allowance( - request: WrappedIpAllowanceRequest, - ): Promise { + public async allowance(request: WrappedIpAllowanceRequest): Promise { const result = await this.rpcClient.readContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'allowance', + functionName: "allowance", args: [request.owner, request.spender], - }) + }); return { result: result, - } + }; } /** @@ -26336,18 +25455,16 @@ export class WrappedIpReadOnlyClient { * @param request WrappedIpBalanceOfRequest * @return Promise */ - public async balanceOf( - request: WrappedIpBalanceOfRequest, - ): Promise { + public async balanceOf(request: WrappedIpBalanceOfRequest): Promise { const result = await this.rpcClient.readContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'balanceOf', + functionName: "balanceOf", args: [request.owner], - }) + }); return { result: result, - } + }; } } @@ -26355,15 +25472,11 @@ export class WrappedIpReadOnlyClient { * contract WrappedIP write method */ export class WrappedIpClient extends WrappedIpReadOnlyClient { - protected readonly wallet: SimpleWalletClient + protected readonly wallet: SimpleWalletClient; - constructor( - rpcClient: PublicClient, - wallet: SimpleWalletClient, - address?: Address, - ) { - super(rpcClient, address) - this.wallet = wallet + constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, address?: Address) { + super(rpcClient, address); + this.wallet = wallet; } /** @@ -26372,17 +25485,15 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { * @param request WrappedIpApproveRequest * @return Promise */ - public async approve( - request: WrappedIpApproveRequest, - ): Promise { + public async approve(request: WrappedIpApproveRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'approve', + functionName: "approve", account: this.wallet.account, args: [request.spender, request.amount], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26396,10 +25507,10 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: 'approve', + functionName: "approve", args: [request.spender, request.amount], }), - } + }; } /** @@ -26412,10 +25523,10 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'deposit', + functionName: "deposit", account: this.wallet.account, - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26429,9 +25540,9 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: 'deposit', + functionName: "deposit", }), - } + }; } /** @@ -26440,17 +25551,15 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { * @param request WrappedIpTransferRequest * @return Promise */ - public async transfer( - request: WrappedIpTransferRequest, - ): Promise { + public async transfer(request: WrappedIpTransferRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'transfer', + functionName: "transfer", account: this.wallet.account, args: [request.to, request.amount], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26464,10 +25573,10 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: 'transfer', + functionName: "transfer", args: [request.to, request.amount], }), - } + }; } /** @@ -26482,11 +25591,11 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { const { request: call } = await this.rpcClient.simulateContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'transferFrom', + functionName: "transferFrom", account: this.wallet.account, args: [request.from, request.to, request.amount], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26495,17 +25604,15 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { * @param request WrappedIpTransferFromRequest * @return EncodedTxData */ - public transferFromEncode( - request: WrappedIpTransferFromRequest, - ): EncodedTxData { + public transferFromEncode(request: WrappedIpTransferFromRequest): EncodedTxData { return { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: 'transferFrom', + functionName: "transferFrom", args: [request.from, request.to, request.amount], }), - } + }; } /** @@ -26514,17 +25621,15 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { * @param request WrappedIpWithdrawRequest * @return Promise */ - public async withdraw( - request: WrappedIpWithdrawRequest, - ): Promise { + public async withdraw(request: WrappedIpWithdrawRequest): Promise { const { request: call } = await this.rpcClient.simulateContract({ abi: wrappedIpAbi, address: this.address, - functionName: 'withdraw', + functionName: "withdraw", account: this.wallet.account, args: [request.value], - }) - return await this.wallet.writeContract(call as WriteContractParameters) + }); + return await this.wallet.writeContract(call as WriteContractParameters); } /** @@ -26538,9 +25643,9 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: 'withdraw', + functionName: "withdraw", args: [request.value], }), - } + }; } } diff --git a/packages/core-sdk/src/client.ts b/packages/core-sdk/src/client.ts index 433fc0ab..ddd18963 100644 --- a/packages/core-sdk/src/client.ts +++ b/packages/core-sdk/src/client.ts @@ -84,9 +84,7 @@ export class StoryClient { * where writeContract returns a UserOperation hash instead of a tx hash. */ private applyTxHashResolver(resolver: TxHashResolver): void { - const originalWaitForReceipt = this.rpcClient.waitForTransactionReceipt.bind( - this.rpcClient, - ); + const originalWaitForReceipt = this.rpcClient.waitForTransactionReceipt.bind(this.rpcClient); this.rpcClient.waitForTransactionReceipt = async ( args, ): ReturnType => { diff --git a/packages/core-sdk/src/utils/currencyValidation.ts b/packages/core-sdk/src/utils/currencyValidation.ts index 8421cf54..5c9b645c 100644 --- a/packages/core-sdk/src/utils/currencyValidation.ts +++ b/packages/core-sdk/src/utils/currencyValidation.ts @@ -8,9 +8,7 @@ const AENEID_CHAIN_ID = 1315; /** Per-chain whitelist: chainId -> set of allowed currency token addresses (checksummed). */ const CURRENCY_TOKEN_WHITELIST: Record> = { - [MAINNET_CHAIN_ID]: new Set([ - getAddress(wrappedIpAddress[MAINNET_CHAIN_ID]), - ]), + [MAINNET_CHAIN_ID]: new Set([getAddress(wrappedIpAddress[MAINNET_CHAIN_ID])]), [AENEID_CHAIN_ID]: new Set([ getAddress(wrappedIpAddress[AENEID_CHAIN_ID]), getAddress(erc20Address[AENEID_CHAIN_ID]), @@ -61,8 +59,6 @@ export const validateCurrencyToken = ( const normalizedToken = getAddress(token); if (!allowedTokens.has(normalizedToken)) { - throw new Error( - `${CHAIN_CURRENCY_HINT[resolvedChainId]} The provided token is not allowed.`, - ); + throw new Error(`${CHAIN_CURRENCY_HINT[resolvedChainId]} The provided token is not allowed.`); } }; diff --git a/packages/core-sdk/test/integration/txHashResolver.test.ts b/packages/core-sdk/test/integration/txHashResolver.test.ts index dc82f5ad..5117a72e 100644 --- a/packages/core-sdk/test/integration/txHashResolver.test.ts +++ b/packages/core-sdk/test/integration/txHashResolver.test.ts @@ -1,8 +1,5 @@ import { signerToEcdsaValidator } from "@zerodev/ecdsa-validator"; -import { - createKernelAccount, - createKernelAccountClient, -} from "@zerodev/sdk"; +import { createKernelAccount, createKernelAccountClient } from "@zerodev/sdk"; import { getEntryPoint, KERNEL_V3_1 } from "@zerodev/sdk/constants"; import { expect, use } from "chai"; import chaiAsPromised from "chai-as-promised"; @@ -19,13 +16,7 @@ import { } from "viem"; import { privateKeyToAccount } from "viem/accounts"; -import { - aeneid, - StoryClient, - StoryConfig, - TxHashResolver, - UseWalletStoryConfig, -} from "../../src"; +import { aeneid, StoryClient, StoryConfig, TxHashResolver, UseWalletStoryConfig } from "../../src"; import { RPC, TEST_PRIVATE_KEY, TEST_WALLET_ADDRESS } from "./utils/util"; use(chaiAsPromised); @@ -80,9 +71,7 @@ const USER_OP_RECEIPT_TIMEOUT = 180_000; * If the balance is below MIN_SA_BALANCE, transfers SA_FUND_AMOUNT from * the EOA signer. */ -const ensureSmartAccountFunded = async ( - smartAccountAddress: `0x${string}`, -): Promise => { +const ensureSmartAccountFunded = async (smartAccountAddress: `0x${string}`): Promise => { const storyPublicClient = createPublicClient({ transport: http(RPC), chain: aeneid, @@ -361,10 +350,8 @@ describe("TxHashResolver Integration Tests", () => { }); it("should invoke resolver before querying transaction receipt", async () => { - const fakeTxHash: Hash = - "0x1111111111111111111111111111111111111111111111111111111111111111"; - const realTxHash: Hash = - "0x2222222222222222222222222222222222222222222222222222222222222222"; + const fakeTxHash: Hash = "0x1111111111111111111111111111111111111111111111111111111111111111"; + const realTxHash: Hash = "0x2222222222222222222222222222222222222222222222222222222222222222"; const resolverCalls: Hash[] = []; const resolver: TxHashResolver = (hash) => { diff --git a/packages/core-sdk/test/unit/client.test.ts b/packages/core-sdk/test/unit/client.test.ts index 4c90020e..432706d7 100644 --- a/packages/core-sdk/test/unit/client.test.ts +++ b/packages/core-sdk/test/unit/client.test.ts @@ -1,11 +1,5 @@ import { expect } from "chai"; -import { - createWalletClient, - Hash, - http, - PublicClient, - Transport, -} from "viem"; +import { createWalletClient, Hash, http, PublicClient, Transport } from "viem"; import { generatePrivateKey, privateKeyToAccount } from "viem/accounts"; import { aeneid, StoryClient, StoryConfig, TxHashResolver } from "../../src/index"; @@ -120,7 +114,8 @@ describe("Test StoryClient", () => { describe("Test txHashResolver", () => { const userOpHash: Hash = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; - const resolvedTxHash: Hash = "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; + const resolvedTxHash: Hash = + "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; it("should resolve hash before calling original waitForTransactionReceipt", async () => { let resolverCallCount = 0; diff --git a/packages/core-sdk/test/unit/utils/currencyValidation.test.ts b/packages/core-sdk/test/unit/utils/currencyValidation.test.ts index 1b29376a..973a7562 100644 --- a/packages/core-sdk/test/unit/utils/currencyValidation.test.ts +++ b/packages/core-sdk/test/unit/utils/currencyValidation.test.ts @@ -34,8 +34,9 @@ describe("validateCurrencyToken", () => { }); it("should allow WIP on Mainnet", () => { - expect(() => validateCurrencyToken(wrappedIpAddress[mainnetChainId], mainnetChainId)).to.not - .throw(); + expect(() => + validateCurrencyToken(wrappedIpAddress[mainnetChainId], mainnetChainId), + ).to.not.throw(); }); it("should throw when token is MERC20 on Mainnet", () => { @@ -46,7 +47,10 @@ describe("validateCurrencyToken", () => { it("should throw when token is not WIP on Mainnet", () => { expect(() => - validateCurrencyToken("0x73fcb515cee99e4991465ef586cfe2b072ebb513" as `0x${string}`, mainnetChainId), + validateCurrencyToken( + "0x73fcb515cee99e4991465ef586cfe2b072ebb513" as `0x${string}`, + mainnetChainId, + ), ).to.throw( "On Mainnet, only WIP is allowed as currency token. The provided token is not allowed.", ); @@ -54,8 +58,8 @@ describe("validateCurrencyToken", () => { it("should throw for unsupported chain ID", () => { const validAddress = "0x1514000000000000000000000000000000000000" as Address; - expect(() => - validateCurrencyToken(validAddress, 9999 as 1315 | 1514), - ).to.throw("Unsupported chain ID: 9999."); + expect(() => validateCurrencyToken(validAddress, 9999 as 1315 | 1514)).to.throw( + "Unsupported chain ID: 9999.", + ); }); }); diff --git a/packages/core-sdk/test/unit/utils/oov3.test.ts b/packages/core-sdk/test/unit/utils/oov3.test.ts index cb97b671..fafeefd7 100644 --- a/packages/core-sdk/test/unit/utils/oov3.test.ts +++ b/packages/core-sdk/test/unit/utils/oov3.test.ts @@ -130,9 +130,7 @@ describe("oov3", () => { }); const promise = settleAssertion(privateKey, 1n); await clock.tickAsync(12000); - await expect(promise).to.be.rejectedWith( - "Failed to settle assertion: Assertion not expired", - ); + await expect(promise).to.be.rejectedWith("Failed to settle assertion: Assertion not expired"); }); }); });