diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6fbb0e3fa..8d22c79c9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @LeoHChen @DonFungible @jacob-tucker @allenchuang @limengformal @lucas2brh @yingyangxu2026 @bonnie57 +* @LeoHChen @DonFungible @jacob-tucker @allenchuang @limengformal @lucas2brh @yingyangxu2026 @chao-peng-story @roycezhaoca \ No newline at end of file diff --git a/.github/workflows/pr-internal.yml b/.github/workflows/pr-internal.yml index 71efb1e51..312e96f41 100644 --- a/.github/workflows/pr-internal.yml +++ b/.github/workflows/pr-internal.yml @@ -4,9 +4,24 @@ on: pull_request: branches: - main + paths-ignore: + - '.github/**' + - '.github/CODEOWNERS' + - '**/*.md' + - 'docs/**' + - '.gitignore' + - 'LICENSE' + push: branches: - main + paths-ignore: + - '.github/**' + - '.github/CODEOWNERS' + - '**/*.md' + - 'docs/**' + - '.gitignore' + - 'LICENSE' jobs: Timestamp: @@ -19,6 +34,4 @@ jobs: with: sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} ENVIRONMENT: "odyssey" - secrets: - WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} + secrets: inherit diff --git a/.gitignore b/.gitignore index 4116d2fb3..ba91d3bc0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ node_modules .pnp .pnp.js -.pnpm-store # testing coverage diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 5ee7abd87..000000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -pnpm exec lint-staged diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5542bcc9d..48d1b81e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,10 +4,3 @@ repos: hooks: - id: gitleaks args: ['--verbose', '--redact'] - - repo: local - hooks: - - id: lint-staged - name: lint-staged (ESLint) - entry: pnpm run lint-staged - language: system - pass_filenames: false diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 50315ae65..ebef67d3d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,6 @@ This section provides the instructions on how to build Story Protocol SDK from s - Install PNPM: Execute `npm install -g pnpm` - Install TypeScript: Run `pnpm add typescript -D` - Install Yalc: Use `npm install -g yalc` -- Install dependencies: `pnpm install` (this automatically sets up Husky git hooks for ESLint checks on commit) #### Steps for Using Yalc for Local Testing of Core-SDK diff --git a/docs/v1.4.4-release.md b/docs/v1.4.4-release.md new file mode 100644 index 000000000..c6ccdabb5 --- /dev/null +++ b/docs/v1.4.4-release.md @@ -0,0 +1,160 @@ +# v1.4.4 Release Notes + +## New Features + +### Account Abstraction (AA) Wallet Support — `txHashResolver` + +Added support for Account Abstraction wallets (e.g. **ZeroDev**, **Dynamic Global Wallet**) via a new optional `txHashResolver` configuration parameter. + +#### Problem + +When using AA wallets, `writeContract` returns a **UserOperation hash** instead of a standard **transaction hash**. The SDK's `waitForTransactionReceipt` only works with regular transaction hashes, causing AA wallet transactions to fail silently or hang. + +#### Solution + +A new `txHashResolver` option can be passed when creating a `StoryClient`. This function resolves UserOperation hashes into on-chain transaction hashes before the SDK waits for receipts. The resolver is applied transparently — **all existing SDK methods work without any changes**. + +#### Usage + +**Normal wallets** — no changes needed: + +```typescript +const client = StoryClient.newClient({ + transport: http("https://aeneid.storyrpc.io"), + account: privateKeyToAccount("0x..."), +}); +``` + +**ZeroDev AA wallet — Using Kernel Client directly (recommended)**: + +ZeroDev's `createKernelAccountClient` returns a viem smart account client whose `writeContract` internally sends the UserOperation, waits for the bundler to include it on-chain, and returns the **real tx hash**. Therefore **`txHashResolver` is NOT needed** — simply pass the kernel client as the wallet: + +```typescript +import { createKernelAccountClient } from "@zerodev/sdk"; + +const kernelClient = await createKernelAccountClient({ /* ... */ }); + +const client = StoryClient.newClientUseWallet({ + transport: http("https://aeneid.storyrpc.io"), + wallet: kernelClient, + // No txHashResolver needed — kernel client handles it internally +}); + +// All SDK methods work as usual +const result = await client.ipAsset.mintAndRegisterIpAssetWithPilTerms({ + spgNftContract: "0x...", + terms: [], +}); +``` + +**Raw UserOp wallet + txHashResolver (for AA wallets that return userOpHash)**: + +Some AA wallet integrations return the **UserOperation hash** directly from `writeContract` without internally waiting for the bundler receipt. For these wallets, configure `txHashResolver` to convert the userOpHash into the real on-chain tx hash: + +```typescript +const client = StoryClient.newClientUseWallet({ + transport: http("https://aeneid.storyrpc.io"), + wallet: rawAAWallet, // writeContract returns userOpHash + txHashResolver: async (userOpHash) => { + const receipt = await bundlerClient.waitForUserOperationReceipt({ + hash: userOpHash, + }); + return receipt.receipt.transactionHash; + }, +}); +``` + +> **How to tell?** If the hash returned by the AA wallet's `writeContract` cannot be found as a transaction on a block explorer, it is a userOpHash and you need `txHashResolver`. If it can be found on-chain directly, the wallet already handles resolution internally and no resolver is needed. + +**Dynamic Global Wallet**: + +```typescript +const client = StoryClient.newClientUseWallet({ + transport: http("https://aeneid.storyrpc.io"), + wallet: dynamicWalletClient, + txHashResolver: async (userOpHash) => { + // Use Dynamic's bundler client to resolve the hash + const receipt = await dynamicBundlerClient.waitForUserOperationReceipt({ + hash: userOpHash, + }); + return receipt.receipt.transactionHash; + }, +}); +``` + +#### Supported Factory Methods + +`txHashResolver` is supported by all three client creation methods: + +- `StoryClient.newClient({ ..., txHashResolver })` +- `StoryClient.newClientUseWallet({ ..., txHashResolver })` +- `StoryClient.newClientUseAccount({ ..., txHashResolver })` + +#### API Reference + +```typescript +/** + * A function that resolves a hash returned by writeContract into an actual + * transaction hash that can be used with waitForTransactionReceipt. + * + * @param hash - The hash returned by writeContract (could be a userOpHash or txHash) + * @returns The resolved on-chain transaction hash + */ +type TxHashResolver = (hash: Hash) => Promise; +``` + +## Changed Files + +| File | Change | +|------|--------| +| `packages/core-sdk/src/types/config.ts` | Added `TxHashResolver` type; added `txHashResolver` to `StoryConfig`, `UseWalletStoryConfig`, `UseAccountStoryConfig` | +| `packages/core-sdk/src/client.ts` | Added `applyTxHashResolver()` method; patched `rpcClient.waitForTransactionReceipt` when resolver is provided; forwarded resolver in factory methods | +| `packages/core-sdk/test/unit/client.test.ts` | Added unit tests that verify resolver wiring, hash transformation, and constructor-time patching | +| `packages/core-sdk/test/integration/txHashResolver.test.ts` | ZeroDev E2E integration tests (6 passing), covering both AA wallet modes | +| `packages/core-sdk/package.json` | Added `@zerodev/sdk`, `@zerodev/ecdsa-validator` as devDependencies | +| `packages/core-sdk/src/utils/oov3.ts` | Added retry logic (up to 5 attempts) to `settleAssertion()` for `Assertion not expired` errors | +| `packages/core-sdk/test/unit/utils/oov3.test.ts` | Added `chai-as-promised`; added unit tests for retry success and max-retries failure | +| `packages/core-sdk/test/integration/dispute.test.ts` | Increased assertion expiry wait from 3s to 15s | +| `packages/core-sdk/test/integration/group.test.ts` | Added `this.retries(2)` to flaky royalty/reward tests | +| `packages/core-sdk/test/integration/ipAsset.test.ts` | Added `this.retries(2)` to batch register test | +| `.github/workflows/pr-internal.yml` | Changed to `secrets: inherit` to forward all repository secrets | + +## CI / Test Stability Improvements + +This release also includes fixes for 5 flaky integration tests that were failing due to testnet timing and nonce contention issues. These failures were **pre-existing** and unrelated to the `txHashResolver` feature. + +### Fix #1 — Dispute: `Assertion not expired` + +**Root cause**: `settleAssertion` was called before the on-chain assertion liveness period had actually expired. The previous 3-second wait was insufficient given variable testnet block times. + +**Fix**: +- `src/utils/oov3.ts` — `settleAssertion()` now retries up to 5 times (with 3s delay) when encountering `Assertion not expired`, instead of failing immediately. +- `test/integration/dispute.test.ts` — Increased the post-dispute wait from **3s → 15s** in both `beforeEach` and the multicall tagging test. +- `test/unit/utils/oov3.test.ts` — Added unit tests for retry success and max-retries failure; fixed `chai-as-promised` import. + +### Fix #2–#4 — Group: `receiver IP not registered` + cascading failures + +**Root cause**: Nonce contention from a shared test wallet caused intermittent transaction failures. When `payRoyaltyOnBehalf` failed in the "collect royalties" test, the subsequent "get claimable reward" and "claim reward" tests also failed because they depended on the state from the first test. + +**Fix**: +- `test/integration/group.test.ts` — Added `this.retries(2)` to all three tests (`collect royalties`, `get claimable reward`, `claim reward`). Mocha will automatically retry each test up to 2 additional times on failure. + +### Fix #5 — IP Asset: `replacement transaction underpriced` + +**Root cause**: Nonce collision — a pending transaction from a previous test occupied the same nonce with equal or higher gas, causing the RPC node to reject the replacement. + +**Fix**: +- `test/integration/ipAsset.test.ts` — Added `this.retries(2)` to the `should successfully register IP assets with multicall disabled` test. + +### CI Workflow: `secrets: inherit` + +- `.github/workflows/pr-internal.yml` — Changed from explicitly listing individual secrets to `secrets: inherit`, so all repository secrets (including `BUNDLER_RPC_URL`) are automatically forwarded to the reusable workflow. + +## Test Coverage Notes + +- **Unit tests**: Validate that `txHashResolver` is invoked before receipt polling and that the resolved hash is used for receipt lookup. +- **Integration tests — Pass-through & Simulated**: Cover normal wallet pass-through and simulated AA hash mapping behavior. +- **Integration tests — ZeroDev E2E (2 scenarios)**: + - **Kernel client as wallet**: Verifies that `writeContract` returns a real txHash and the SDK works correctly without a resolver. + - **Raw userOp wallet + txHashResolver**: Uses a custom wallet wrapper (whose `writeContract` returns a userOpHash) to verify end-to-end that the resolver converts the userOpHash into a real on-chain txHash. +- ZeroDev E2E tests require `BUNDLER_RPC_URL` and `WALLET_PRIVATE_KEY` in `.env`. Tests are automatically skipped when these are not configured. diff --git a/package.json b/package.json index c3a092449..84f50e0a5 100644 --- a/package.json +++ b/package.json @@ -8,22 +8,14 @@ "scripts": { "build": "turbo run build", "lint": "turbo run lint", - "lint-staged": "node scripts/precommit-run-eslint.mjs", "fix": "turbo run fix", "test": "turbo run test --no-cache --concurrency=1", - "test:integration": "turbo run test:integration --no-cache", - "prepare": "husky" + "test:integration": "turbo run test:integration --no-cache" }, "devDependencies": { "@changesets/cli": "2.29.6", - "eslint": "^9.26.0", - "husky": "^9.1.7", - "lint-staged": "^15.2.1", "turbo": "^1.10.13" }, - "lint-staged": { - "packages/core-sdk/**/*.{ts,tsx,js,jsx,mjs,cjs}": "node scripts/precommit-eslint-core-sdk.mjs" - }, "engines": { "node": "^20.0.0" }, diff --git a/packages/core-sdk/package.json b/packages/core-sdk/package.json index 49f5c6961..c76e1d37c 100644 --- a/packages/core-sdk/package.json +++ b/packages/core-sdk/package.json @@ -50,6 +50,8 @@ "@types/mocha": "^10.0.2", "@types/node": "^20.8.2", "@types/sinon": "^10.0.18", + "@zerodev/ecdsa-validator": "^5.4.9", + "@zerodev/sdk": "^5.5.7", "c8": "^8.0.1", "chai": "^4.3.10", "chai-as-promised": "^7.1.1", diff --git a/packages/core-sdk/src/abi/generated.ts b/packages/core-sdk/src/abi/generated.ts index e0e7b64e3..62b9e2184 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,479 +25,491 @@ 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) @@ -506,7 +518,7 @@ export const accessControllerAddress = { export const accessControllerConfig = { address: accessControllerAddress, abi: accessControllerAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ArbitrationPolicyUMA @@ -518,580 +530,592 @@ 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) @@ -1100,7 +1124,7 @@ export const arbitrationPolicyUmaAddress = { export const arbitrationPolicyUmaConfig = { address: arbitrationPolicyUmaAddress, abi: arbitrationPolicyUmaAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // CoreMetadataModule @@ -1112,285 +1136,297 @@ 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) @@ -1399,7 +1435,7 @@ export const coreMetadataModuleAddress = { export const coreMetadataModuleConfig = { address: coreMetadataModuleAddress, abi: coreMetadataModuleAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // DerivativeWorkflows @@ -1411,438 +1447,456 @@ 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) @@ -1851,7 +1905,7 @@ export const derivativeWorkflowsAddress = { export const derivativeWorkflowsConfig = { address: derivativeWorkflowsAddress, abi: derivativeWorkflowsAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // DisputeModule @@ -1863,765 +1917,789 @@ 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) @@ -2630,7 +2708,7 @@ export const disputeModuleAddress = { export const disputeModuleConfig = { address: disputeModuleAddress, abi: disputeModuleAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ERC20 @@ -2641,197 +2719,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 @@ -2843,411 +2921,425 @@ 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: '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: "distributeRewards", - outputs: [{ name: "rewards", internalType: "uint256[]", type: "uint256[]" }], - 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: '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) @@ -3256,7 +3348,7 @@ export const evenSplitGroupPoolAddress = { export const evenSplitGroupPoolConfig = { address: evenSplitGroupPoolAddress, abi: evenSplitGroupPoolAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // GroupingModule @@ -3268,617 +3360,639 @@ 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) @@ -3887,7 +4001,7 @@ export const groupingModuleAddress = { export const groupingModuleConfig = { address: groupingModuleAddress, abi: groupingModuleAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // GroupingWorkflows @@ -3899,558 +4013,576 @@ 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) @@ -4459,7 +4591,7 @@ export const groupingWorkflowsAddress = { export const groupingWorkflowsConfig = { address: groupingWorkflowsAddress, abi: groupingWorkflowsAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPAccountImpl @@ -4471,415 +4603,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) @@ -4888,7 +5020,7 @@ export const ipAccountImplAddress = { export const ipAccountImplConfig = { address: ipAccountImplAddress, abi: ipAccountImplAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPAssetRegistry @@ -4900,653 +5032,671 @@ 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: '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: "getGroupMembers", - outputs: [{ name: "results", internalType: "address[]", type: "address[]" }], - stateMutability: "view", + 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) @@ -5555,7 +5705,7 @@ export const ipAssetRegistryAddress = { export const ipAssetRegistryConfig = { address: ipAssetRegistryAddress, abi: ipAssetRegistryAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IpRoyaltyVaultImpl @@ -5567,456 +5717,460 @@ 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) @@ -6025,7 +6179,7 @@ export const ipRoyaltyVaultImplAddress = { export const ipRoyaltyVaultImplConfig = { address: ipRoyaltyVaultImplAddress, abi: ipRoyaltyVaultImplAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseAttachmentWorkflows @@ -6037,718 +6191,734 @@ 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) @@ -6757,7 +6927,7 @@ export const licenseAttachmentWorkflowsAddress = { export const licenseAttachmentWorkflowsConfig = { address: licenseAttachmentWorkflowsAddress, abi: licenseAttachmentWorkflowsAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseRegistry @@ -6769,986 +6939,1008 @@ 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: '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: "getRoyaltyPercent", - outputs: [{ name: "royaltyPercent", internalType: "uint32", type: "uint32" }], - stateMutability: "view", + 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) @@ -7757,7 +7949,7 @@ export const licenseRegistryAddress = { export const licenseRegistryConfig = { address: licenseRegistryAddress, abi: licenseRegistryAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicenseToken @@ -7769,667 +7961,681 @@ 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: '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: "mintLicenseTokens", - outputs: [{ name: "startLicenseTokenId", internalType: "uint256", type: "uint256" }], - 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", - 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) @@ -8438,7 +8644,7 @@ export const licenseTokenAddress = { export const licenseTokenConfig = { address: licenseTokenAddress, abi: licenseTokenAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LicensingModule @@ -8450,733 +8656,761 @@ 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: '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: "mintLicenseTokens", - outputs: [{ name: "startLicenseTokenId", internalType: "uint256", type: "uint256" }], - 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: "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) @@ -9185,7 +9419,7 @@ export const licensingModuleAddress = { export const licensingModuleConfig = { address: licensingModuleAddress, abi: licensingModuleAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ModuleRegistry @@ -9196,296 +9430,306 @@ 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) @@ -9494,7 +9738,7 @@ export const moduleRegistryAddress = { export const moduleRegistryConfig = { address: moduleRegistryAddress, abi: moduleRegistryAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Multicall3 @@ -9506,249 +9750,251 @@ 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) @@ -9757,7 +10003,7 @@ export const multicall3Address = { export const multicall3Config = { address: multicall3Address, abi: multicall3Abi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // PILicenseTemplate @@ -9769,718 +10015,750 @@ 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) @@ -10489,7 +10767,7 @@ export const piLicenseTemplateAddress = { export const piLicenseTemplateConfig = { address: piLicenseTemplateAddress, abi: piLicenseTemplateAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RegistrationWorkflows @@ -10501,362 +10779,380 @@ 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) @@ -10865,7 +11161,7 @@ export const registrationWorkflowsAddress = { export const registrationWorkflowsConfig = { address: registrationWorkflowsAddress, abi: registrationWorkflowsAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyModule @@ -10877,872 +11173,892 @@ 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) @@ -11751,7 +12067,7 @@ export const royaltyModuleAddress = { export const royaltyModuleConfig = { address: royaltyModuleAddress, abi: royaltyModuleAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyPolicyLAP @@ -11763,358 +12079,372 @@ 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: 'licensesPercent', internalType: 'uint32[]', type: 'uint32[]' }, + { name: '', internalType: 'bytes', type: 'bytes' }, + ], + name: 'onLinkToParents', + outputs: [ + { name: 'newRoyaltyStackLAP', internalType: 'uint32', type: 'uint32' }, ], - name: "onLinkToParents", - outputs: [{ name: "newRoyaltyStackLAP", internalType: "uint32", type: "uint32" }], - 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: "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) @@ -12123,7 +12453,7 @@ export const royaltyPolicyLapAddress = { export const royaltyPolicyLapConfig = { address: royaltyPolicyLapAddress, abi: royaltyPolicyLapAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyPolicyLRP @@ -12135,373 +12465,387 @@ 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) @@ -12510,7 +12854,7 @@ export const royaltyPolicyLrpAddress = { export const royaltyPolicyLrpConfig = { address: royaltyPolicyLrpAddress, abi: royaltyPolicyLrpAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyTokenDistributionWorkflows @@ -12522,722 +12866,738 @@ 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) @@ -13246,7 +13606,7 @@ export const royaltyTokenDistributionWorkflowsAddress = { export const royaltyTokenDistributionWorkflowsConfig = { address: royaltyTokenDistributionWorkflowsAddress, abi: royaltyTokenDistributionWorkflowsAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // RoyaltyWorkflows @@ -13258,177 +13618,189 @@ 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: '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: "claimAllRevenue", - outputs: [{ name: "amountsClaimed", 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", - 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) @@ -13437,7 +13809,7 @@ export const royaltyWorkflowsAddress = { export const royaltyWorkflowsConfig = { address: royaltyWorkflowsAddress, abi: royaltyWorkflowsAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SPGNFTBeacon @@ -13449,105 +13821,109 @@ 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) @@ -13556,7 +13932,7 @@ export const spgnftBeaconAddress = { export const spgnftBeaconConfig = { address: spgnftBeaconAddress, abi: spgnftBeaconAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SPGNFTImpl @@ -13568,678 +13944,682 @@ 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) @@ -14248,7 +14628,7 @@ export const spgnftImplAddress = { export const spgnftImplConfig = { address: spgnftImplAddress, abi: spgnftImplAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // TotalLicenseTokenLimitHook @@ -14260,205 +14640,217 @@ 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: '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: "calculateMintingFee", - outputs: [{ name: "totalMintingFee", internalType: "uint256", type: "uint256" }], - 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: '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) @@ -14467,7 +14859,7 @@ export const totalLicenseTokenLimitHookAddress = { export const totalLicenseTokenLimitHookConfig = { address: totalLicenseTokenLimitHookAddress, abi: totalLicenseTokenLimitHookAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WrappedIP @@ -14478,223 +14870,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) @@ -14703,7 +15095,7 @@ export const wrappedIpAddress = { export const wrappedIpConfig = { address: wrappedIpAddress, abi: wrappedIpAbi, -} as const; +} as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SDK @@ -14711,26 +15103,40 @@ 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, + functionName extends ContractFunctionName, + args extends ContractFunctionArgs< + abi, + 'payable' | 'nonpayable', + functionName + >, TChainOverride extends Chain | undefined = undefined, >( - args: WriteContractParameters, - ) => Promise; -}; + args: WriteContractParameters< + abi, + functionName, + args, + TChain, + TAccount, + TChainOverride + >, + ) => Promise +} // Contract AccessController ============================================================= @@ -14745,13 +15151,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 @@ -14761,10 +15167,10 @@ export type AccessControllerPermissionSetEvent = { * @param permission uint8 */ export type AccessControllerSetAllPermissionsRequest = { - ipAccount: Address; - signer: Address; - permission: number; -}; + ipAccount: Address + signer: Address + permission: number +} /** * AccessControllerSetBatchPermissionsRequest @@ -14773,13 +15179,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 @@ -14791,39 +15197,43 @@ 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)) }, - }); + }) } /** @@ -14832,23 +15242,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 } } @@ -14856,11 +15266,15 @@ 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 } /** @@ -14875,11 +15289,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) } /** @@ -14888,15 +15302,17 @@ 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], }), - }; + } } /** @@ -14911,11 +15327,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) } /** @@ -14931,10 +15347,10 @@ export class AccessControllerClient extends AccessControllerEventClient { to: this.address, data: encodeFunctionData({ abi: accessControllerAbi, - functionName: "setBatchPermissions", + functionName: 'setBatchPermissions', args: [request.permissions], }), - }; + } } /** @@ -14949,11 +15365,17 @@ 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) } /** @@ -14962,15 +15384,23 @@ 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, + ], }), - }; + } } } @@ -14982,10 +15412,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 @@ -14993,16 +15423,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 @@ -15011,20 +15441,21 @@ 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 } /** @@ -15039,9 +15470,9 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: "disputeIdToAssertionId", + functionName: 'disputeIdToAssertionId', args: [request.disputeId], - }); + }) } /** @@ -15056,9 +15487,9 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: "maxBonds", + functionName: 'maxBonds', args: [request.token], - }); + }) } /** @@ -15071,8 +15502,8 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: "maxLiveness", - }); + functionName: 'maxLiveness', + }) } /** @@ -15085,8 +15516,8 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: "minLiveness", - }); + functionName: 'minLiveness', + }) } /** @@ -15099,8 +15530,8 @@ export class ArbitrationPolicyUmaReadOnlyClient { return await this.rpcClient.readContract({ abi: arbitrationPolicyUmaAbi, address: this.address, - functionName: "oov3", - }); + functionName: 'oov3', + }) } } @@ -15108,11 +15539,15 @@ 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 } /** @@ -15127,11 +15562,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) } /** @@ -15147,10 +15582,10 @@ export class ArbitrationPolicyUmaClient extends ArbitrationPolicyUmaReadOnlyClie to: this.address, data: encodeFunctionData({ abi: arbitrationPolicyUmaAbi, - functionName: "disputeAssertion", + functionName: 'disputeAssertion', args: [request.assertionId, request.counterEvidenceHash], }), - }; + } } } @@ -15162,8 +15597,8 @@ export class ArbitrationPolicyUmaClient extends ArbitrationPolicyUmaReadOnlyClie * @param authority address */ export type CoreMetadataModuleAuthorityUpdatedEvent = { - authority: Address; -}; + authority: Address +} /** * CoreMetadataModuleInitializedEvent @@ -15171,8 +15606,8 @@ export type CoreMetadataModuleAuthorityUpdatedEvent = { * @param version uint64 */ export type CoreMetadataModuleInitializedEvent = { - version: bigint; -}; + version: bigint +} /** * CoreMetadataModuleMetadataFrozenEvent @@ -15180,8 +15615,8 @@ export type CoreMetadataModuleInitializedEvent = { * @param ipId address */ export type CoreMetadataModuleMetadataFrozenEvent = { - ipId: Address; -}; + ipId: Address +} /** * CoreMetadataModuleMetadataUriSetEvent @@ -15191,10 +15626,10 @@ export type CoreMetadataModuleMetadataFrozenEvent = { * @param metadataHash bytes32 */ export type CoreMetadataModuleMetadataUriSetEvent = { - ipId: Address; - metadataURI: string; - metadataHash: Hex; -}; + ipId: Address + metadataURI: string + metadataHash: Hex +} /** * CoreMetadataModuleNftTokenUriSetEvent @@ -15204,10 +15639,10 @@ export type CoreMetadataModuleMetadataUriSetEvent = { * @param nftMetadataHash bytes32 */ export type CoreMetadataModuleNftTokenUriSetEvent = { - ipId: Address; - nftTokenURI: string; - nftMetadataHash: Hex; -}; + ipId: Address + nftTokenURI: string + nftMetadataHash: Hex +} /** * CoreMetadataModuleUpgradedEvent @@ -15215,18 +15650,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 @@ -15234,14 +15669,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 @@ -15249,10 +15684,10 @@ export type CoreMetadataModuleProxiableUuidResponse = Hex; * @param interfaceId bytes4 */ export type CoreMetadataModuleSupportsInterfaceRequest = { - interfaceId: Hex; -}; + interfaceId: Hex +} -export type CoreMetadataModuleSupportsInterfaceResponse = boolean; +export type CoreMetadataModuleSupportsInterfaceResponse = boolean /** * CoreMetadataModuleFreezeMetadataRequest @@ -15260,8 +15695,8 @@ export type CoreMetadataModuleSupportsInterfaceResponse = boolean; * @param ipId address */ export type CoreMetadataModuleFreezeMetadataRequest = { - ipId: Address; -}; + ipId: Address +} /** * CoreMetadataModuleInitializeRequest @@ -15269,8 +15704,8 @@ export type CoreMetadataModuleFreezeMetadataRequest = { * @param accessManager address */ export type CoreMetadataModuleInitializeRequest = { - accessManager: Address; -}; + accessManager: Address +} /** * CoreMetadataModuleSetAllRequest @@ -15281,11 +15716,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 @@ -15293,8 +15728,8 @@ export type CoreMetadataModuleSetAllRequest = { * @param newAuthority address */ export type CoreMetadataModuleSetAuthorityRequest = { - newAuthority: Address; -}; + newAuthority: Address +} /** * CoreMetadataModuleSetMetadataUriRequest @@ -15304,10 +15739,10 @@ export type CoreMetadataModuleSetAuthorityRequest = { * @param metadataHash bytes32 */ export type CoreMetadataModuleSetMetadataUriRequest = { - ipId: Address; - metadataURI: string; - metadataHash: Hex; -}; + ipId: Address + metadataURI: string + metadataHash: Hex +} /** * CoreMetadataModuleUpdateNftTokenUriRequest @@ -15316,9 +15751,9 @@ export type CoreMetadataModuleSetMetadataUriRequest = { * @param nftMetadataHash bytes32 */ export type CoreMetadataModuleUpdateNftTokenUriRequest = { - ipId: Address; - nftMetadataHash: Hex; -}; + ipId: Address + nftMetadataHash: Hex +} /** * CoreMetadataModuleUpgradeToAndCallRequest @@ -15327,36 +15762,40 @@ 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)) }, - }); + }) } /** @@ -15365,39 +15804,42 @@ 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)) }, - }); + }) } /** @@ -15406,39 +15848,42 @@ 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)) }, - }); + }) } /** @@ -15447,39 +15892,42 @@ 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)) }, - }); + }) } /** @@ -15488,39 +15936,42 @@ 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)) }, - }); + }) } /** @@ -15529,23 +15980,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 } /** @@ -15557,11 +16008,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)) }, - }); + }) } /** @@ -15570,23 +16021,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 } } @@ -15595,7 +16046,7 @@ export class CoreMetadataModuleEventClient { */ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -15608,8 +16059,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "ACCESS_CONTROLLER", - }); + functionName: 'ACCESS_CONTROLLER', + }) } /** @@ -15622,8 +16073,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "IP_ASSET_REGISTRY", - }); + functionName: 'IP_ASSET_REGISTRY', + }) } /** @@ -15636,8 +16087,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "UPGRADE_INTERFACE_VERSION", - }); + functionName: 'UPGRADE_INTERFACE_VERSION', + }) } /** @@ -15650,8 +16101,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "authority", - }); + functionName: 'authority', + }) } /** @@ -15664,8 +16115,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "isConsumingScheduledOp", - }); + functionName: 'isConsumingScheduledOp', + }) } /** @@ -15680,9 +16131,9 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "isMetadataFrozen", + functionName: 'isMetadataFrozen', args: [request.ipId], - }); + }) } /** @@ -15695,8 +16146,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "name", - }); + functionName: 'name', + }) } /** @@ -15709,8 +16160,8 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "proxiableUUID", - }); + functionName: 'proxiableUUID', + }) } /** @@ -15725,9 +16176,9 @@ export class CoreMetadataModuleReadOnlyClient extends CoreMetadataModuleEventCli return await this.rpcClient.readContract({ abi: coreMetadataModuleAbi, address: this.address, - functionName: "supportsInterface", + functionName: 'supportsInterface', args: [request.interfaceId], - }); + }) } } @@ -15735,11 +16186,15 @@ 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 } /** @@ -15754,11 +16209,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) } /** @@ -15767,15 +16222,17 @@ 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], }), - }; + } } /** @@ -15790,11 +16247,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) } /** @@ -15803,15 +16260,17 @@ 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], }), - }; + } } /** @@ -15820,15 +16279,22 @@ 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) } /** @@ -15842,10 +16308,15 @@ 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, + ], }), - }; + } } /** @@ -15860,11 +16331,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) } /** @@ -15873,15 +16344,17 @@ 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], }), - }; + } } /** @@ -15896,11 +16369,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) } /** @@ -15909,15 +16382,17 @@ 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], }), - }; + } } /** @@ -15932,11 +16407,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) } /** @@ -15952,10 +16427,10 @@ export class CoreMetadataModuleClient extends CoreMetadataModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: coreMetadataModuleAbi, - functionName: "updateNftTokenURI", + functionName: 'updateNftTokenURI', args: [request.ipId, request.nftMetadataHash], }), - }; + } } /** @@ -15970,11 +16445,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) } /** @@ -15983,15 +16458,17 @@ 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], }), - }; + } } } @@ -16007,25 +16484,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 @@ -16038,20 +16515,21 @@ 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 @@ -16059,8 +16537,8 @@ export type DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseToke * @param data bytes[] */ export type DerivativeWorkflowsMulticallRequest = { - data: readonly Hex[]; -}; + data: readonly Hex[] +} /** * DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest @@ -16072,29 +16550,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 @@ -16107,37 +16585,43 @@ 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 } /** @@ -16152,7 +16636,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, @@ -16161,8 +16645,8 @@ export class DerivativeWorkflowsClient { request.recipient, request.allowDuplicates, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -16178,7 +16662,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: "mintAndRegisterIpAndMakeDerivative", + functionName: 'mintAndRegisterIpAndMakeDerivative', args: [ request.spgNftContract, request.derivData, @@ -16187,7 +16671,7 @@ export class DerivativeWorkflowsClient { request.allowDuplicates, ], }), - }; + } } /** @@ -16202,7 +16686,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, @@ -16213,8 +16697,8 @@ export class DerivativeWorkflowsClient { request.recipient, request.allowDuplicates, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -16230,7 +16714,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: "mintAndRegisterIpAndMakeDerivativeWithLicenseTokens", + functionName: 'mintAndRegisterIpAndMakeDerivativeWithLicenseTokens', args: [ request.spgNftContract, request.licenseTokenIds, @@ -16241,7 +16725,7 @@ export class DerivativeWorkflowsClient { request.allowDuplicates, ], }), - }; + } } /** @@ -16256,11 +16740,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) } /** @@ -16269,15 +16753,17 @@ 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], }), - }; + } } /** @@ -16292,7 +16778,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, @@ -16301,8 +16787,8 @@ export class DerivativeWorkflowsClient { request.ipMetadata, request.sigMetadataAndRegister, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -16318,7 +16804,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: "registerIpAndMakeDerivative", + functionName: 'registerIpAndMakeDerivative', args: [ request.nftContract, request.tokenId, @@ -16327,7 +16813,7 @@ export class DerivativeWorkflowsClient { request.sigMetadataAndRegister, ], }), - }; + } } /** @@ -16342,7 +16828,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, @@ -16353,8 +16839,8 @@ export class DerivativeWorkflowsClient { request.ipMetadata, request.sigMetadataAndRegister, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -16370,7 +16856,7 @@ export class DerivativeWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: derivativeWorkflowsAbi, - functionName: "registerIpAndMakeDerivativeWithLicenseTokens", + functionName: 'registerIpAndMakeDerivativeWithLicenseTokens', args: [ request.nftContract, request.tokenId, @@ -16381,7 +16867,7 @@ export class DerivativeWorkflowsClient { request.sigMetadataAndRegister, ], }), - }; + } } } @@ -16394,9 +16880,9 @@ export class DerivativeWorkflowsClient { * @param data bytes */ export type DisputeModuleDisputeCancelledEvent = { - disputeId: bigint; - data: Hex; -}; + disputeId: bigint + data: Hex +} /** * DisputeModuleDisputeRaisedEvent @@ -16411,15 +16897,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 @@ -16428,9 +16914,9 @@ export type DisputeModuleDisputeRaisedEvent = { * @param data bytes */ export type DisputeModuleDisputeResolvedEvent = { - disputeId: bigint; - data: Hex; -}; + disputeId: bigint + data: Hex +} /** * DisputeModuleIsWhitelistedDisputeTagRequest @@ -16438,8 +16924,8 @@ export type DisputeModuleDisputeResolvedEvent = { * @param tag bytes32 */ export type DisputeModuleIsWhitelistedDisputeTagRequest = { - tag: Hex; -}; + tag: Hex +} /** * DisputeModuleIsWhitelistedDisputeTagResponse @@ -16447,8 +16933,8 @@ export type DisputeModuleIsWhitelistedDisputeTagRequest = { * @param allowed bool */ export type DisputeModuleIsWhitelistedDisputeTagResponse = { - allowed: boolean; -}; + allowed: boolean +} /** * DisputeModuleCancelDisputeRequest @@ -16457,9 +16943,9 @@ export type DisputeModuleIsWhitelistedDisputeTagResponse = { * @param data bytes */ export type DisputeModuleCancelDisputeRequest = { - disputeId: bigint; - data: Hex; -}; + disputeId: bigint + data: Hex +} /** * DisputeModuleRaiseDisputeRequest @@ -16470,11 +16956,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 @@ -16483,9 +16969,9 @@ export type DisputeModuleRaiseDisputeRequest = { * @param data bytes */ export type DisputeModuleResolveDisputeRequest = { - disputeId: bigint; - data: Hex; -}; + disputeId: bigint + data: Hex +} /** * DisputeModuleTagIfRelatedIpInfringedRequest @@ -16494,36 +16980,40 @@ 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)) }, - }); + }) } /** @@ -16532,23 +17022,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 } /** @@ -16560,11 +17050,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)) }, - }); + }) } /** @@ -16573,39 +17063,42 @@ 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)) }, - }); + }) } /** @@ -16614,23 +17107,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 } } @@ -16639,7 +17132,7 @@ export class DisputeModuleEventClient { */ export class DisputeModuleReadOnlyClient extends DisputeModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -16654,12 +17147,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, - }; + } } } @@ -16667,11 +17160,15 @@ 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 } /** @@ -16686,11 +17183,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) } /** @@ -16699,15 +17196,17 @@ 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], }), - }; + } } /** @@ -16722,11 +17221,16 @@ 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) } /** @@ -16735,15 +17239,22 @@ 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, + ], }), - }; + } } /** @@ -16758,11 +17269,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) } /** @@ -16771,15 +17282,17 @@ 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], }), - }; + } } /** @@ -16794,11 +17307,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) } /** @@ -16814,10 +17327,10 @@ export class DisputeModuleClient extends DisputeModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: disputeModuleAbi, - functionName: "tagIfRelatedIpInfringed", + functionName: 'tagIfRelatedIpInfringed', args: [request.ipIdToTag, request.infringerDisputeId], }), - }; + } } } @@ -16830,11 +17343,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 @@ -16842,10 +17355,10 @@ export type Erc20AllowanceResponse = bigint; * @param account address */ export type Erc20BalanceOfRequest = { - account: Address; -}; + account: Address +} -export type Erc20BalanceOfResponse = bigint; +export type Erc20BalanceOfResponse = bigint /** * Erc20ApproveRequest @@ -16854,9 +17367,9 @@ export type Erc20BalanceOfResponse = bigint; * @param value uint256 */ export type Erc20ApproveRequest = { - spender: Address; - value: bigint; -}; + spender: Address + value: bigint +} /** * Erc20MintRequest @@ -16865,9 +17378,9 @@ export type Erc20ApproveRequest = { * @param amount uint256 */ export type Erc20MintRequest = { - to: Address; - amount: bigint; -}; + to: Address + amount: bigint +} /** * Erc20TransferRequest @@ -16876,9 +17389,9 @@ export type Erc20MintRequest = { * @param value uint256 */ export type Erc20TransferRequest = { - to: Address; - value: bigint; -}; + to: Address + value: bigint +} /** * Erc20TransferFromRequest @@ -16888,21 +17401,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 } /** @@ -16911,13 +17424,15 @@ 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], - }); + }) } /** @@ -16926,13 +17441,15 @@ 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], - }); + }) } } @@ -16940,11 +17457,15 @@ 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 } /** @@ -16953,15 +17474,17 @@ 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) } /** @@ -16975,10 +17498,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: "approve", + functionName: 'approve', args: [request.spender, request.value], }), - }; + } } /** @@ -16987,15 +17510,17 @@ 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) } /** @@ -17009,10 +17534,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: "mint", + functionName: 'mint', args: [request.to, request.amount], }), - }; + } } /** @@ -17021,15 +17546,17 @@ 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) } /** @@ -17043,10 +17570,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: "transfer", + functionName: 'transfer', args: [request.to, request.value], }), - }; + } } /** @@ -17055,15 +17582,17 @@ 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) } /** @@ -17077,10 +17606,10 @@ export class Erc20Client extends Erc20ReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: erc20Abi, - functionName: "transferFrom", + functionName: 'transferFrom', args: [request.from, request.to, request.value], }), - }; + } } } @@ -17092,8 +17621,8 @@ export class Erc20Client extends Erc20ReadOnlyClient { * @param authority address */ export type EvenSplitGroupPoolAuthorityUpdatedEvent = { - authority: Address; -}; + authority: Address +} /** * EvenSplitGroupPoolInitializedEvent @@ -17101,8 +17630,8 @@ export type EvenSplitGroupPoolAuthorityUpdatedEvent = { * @param version uint64 */ export type EvenSplitGroupPoolInitializedEvent = { - version: bigint; -}; + version: bigint +} /** * EvenSplitGroupPoolPausedEvent @@ -17110,8 +17639,8 @@ export type EvenSplitGroupPoolInitializedEvent = { * @param account address */ export type EvenSplitGroupPoolPausedEvent = { - account: Address; -}; + account: Address +} /** * EvenSplitGroupPoolUnpausedEvent @@ -17119,8 +17648,8 @@ export type EvenSplitGroupPoolPausedEvent = { * @param account address */ export type EvenSplitGroupPoolUnpausedEvent = { - account: Address; -}; + account: Address +} /** * EvenSplitGroupPoolUpgradedEvent @@ -17128,20 +17657,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 @@ -17151,12 +17680,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 @@ -17165,11 +17694,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 @@ -17179,12 +17708,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 @@ -17193,11 +17722,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 @@ -17205,10 +17734,10 @@ export type EvenSplitGroupPoolGetMinimumRewardShareResponse = bigint; * @param groupId address */ export type EvenSplitGroupPoolGetTotalAllocatedRewardShareRequest = { - groupId: Address; -}; + groupId: Address +} -export type EvenSplitGroupPoolGetTotalAllocatedRewardShareResponse = bigint; +export type EvenSplitGroupPoolGetTotalAllocatedRewardShareResponse = bigint /** * EvenSplitGroupPoolGetTotalIpsRequest @@ -17216,12 +17745,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 @@ -17230,15 +17759,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 @@ -17246,8 +17775,8 @@ export type EvenSplitGroupPoolProxiableUuidResponse = Hex; * @param accessManager address */ export type EvenSplitGroupPoolProtocolPausableInitRequest = { - accessManager: Address; -}; + accessManager: Address +} /** * EvenSplitGroupPoolAddIpRequest @@ -17257,10 +17786,10 @@ export type EvenSplitGroupPoolProtocolPausableInitRequest = { * @param minimumGroupRewardShare uint256 */ export type EvenSplitGroupPoolAddIpRequest = { - groupId: Address; - ipId: Address; - minimumGroupRewardShare: bigint; -}; + groupId: Address + ipId: Address + minimumGroupRewardShare: bigint +} /** * EvenSplitGroupPoolDepositRewardRequest @@ -17270,10 +17799,10 @@ export type EvenSplitGroupPoolAddIpRequest = { * @param amount uint256 */ export type EvenSplitGroupPoolDepositRewardRequest = { - groupId: Address; - token: Address; - amount: bigint; -}; + groupId: Address + token: Address + amount: bigint +} /** * EvenSplitGroupPoolDistributeRewardsRequest @@ -17283,10 +17812,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 @@ -17294,8 +17823,8 @@ export type EvenSplitGroupPoolDistributeRewardsRequest = { * @param accessManager address */ export type EvenSplitGroupPoolInitializeRequest = { - accessManager: Address; -}; + accessManager: Address +} /** * EvenSplitGroupPoolRemoveIpRequest @@ -17304,9 +17833,9 @@ export type EvenSplitGroupPoolInitializeRequest = { * @param ipId address */ export type EvenSplitGroupPoolRemoveIpRequest = { - groupId: Address; - ipId: Address; -}; + groupId: Address + ipId: Address +} /** * EvenSplitGroupPoolSetAuthorityRequest @@ -17314,8 +17843,8 @@ export type EvenSplitGroupPoolRemoveIpRequest = { * @param newAuthority address */ export type EvenSplitGroupPoolSetAuthorityRequest = { - newAuthority: Address; -}; + newAuthority: Address +} /** * EvenSplitGroupPoolUpgradeToAndCallRequest @@ -17324,36 +17853,40 @@ 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)) }, - }); + }) } /** @@ -17362,39 +17895,42 @@ 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)) }, - }); + }) } /** @@ -17403,23 +17939,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 } /** @@ -17431,34 +17967,36 @@ 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 } /** @@ -17470,11 +18008,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)) }, - }); + }) } /** @@ -17483,23 +18021,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 } /** @@ -17511,11 +18049,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)) }, - }); + }) } /** @@ -17524,23 +18062,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 } } @@ -17549,7 +18087,7 @@ export class EvenSplitGroupPoolEventClient { */ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -17562,8 +18100,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "GROUPING_MODULE", - }); + functionName: 'GROUPING_MODULE', + }) } /** @@ -17576,8 +18114,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', + }) } /** @@ -17590,8 +18128,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "MAX_GROUP_SIZE", - }); + functionName: 'MAX_GROUP_SIZE', + }) } /** @@ -17604,8 +18142,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "ROYALTY_MODULE", - }); + functionName: 'ROYALTY_MODULE', + }) } /** @@ -17618,8 +18156,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "UPGRADE_INTERFACE_VERSION", - }); + functionName: 'UPGRADE_INTERFACE_VERSION', + }) } /** @@ -17632,8 +18170,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "authority", - }); + functionName: 'authority', + }) } /** @@ -17648,9 +18186,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], - }); + }) } /** @@ -17665,9 +18203,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], - }); + }) } /** @@ -17682,9 +18220,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], - }); + }) } /** @@ -17699,9 +18237,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], - }); + }) } /** @@ -17716,9 +18254,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "getTotalAllocatedRewardShare", + functionName: 'getTotalAllocatedRewardShare', args: [request.groupId], - }); + }) } /** @@ -17733,9 +18271,9 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "getTotalIps", + functionName: 'getTotalIps', args: [request.groupId], - }); + }) } /** @@ -17748,8 +18286,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "isConsumingScheduledOp", - }); + functionName: 'isConsumingScheduledOp', + }) } /** @@ -17764,9 +18302,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], - }); + }) } /** @@ -17779,8 +18317,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "paused", - }); + functionName: 'paused', + }) } /** @@ -17793,8 +18331,8 @@ export class EvenSplitGroupPoolReadOnlyClient extends EvenSplitGroupPoolEventCli return await this.rpcClient.readContract({ abi: evenSplitGroupPoolAbi, address: this.address, - functionName: "proxiableUUID", - }); + functionName: 'proxiableUUID', + }) } } @@ -17802,11 +18340,15 @@ 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 } /** @@ -17821,11 +18363,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) } /** @@ -17841,10 +18383,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: "__ProtocolPausable_init", + functionName: '__ProtocolPausable_init', args: [request.accessManager], }), - }; + } } /** @@ -17853,15 +18395,17 @@ 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) } /** @@ -17875,10 +18419,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: "addIp", + functionName: 'addIp', args: [request.groupId, request.ipId, request.minimumGroupRewardShare], }), - }; + } } /** @@ -17893,11 +18437,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) } /** @@ -17906,15 +18450,17 @@ 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], }), - }; + } } /** @@ -17929,11 +18475,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) } /** @@ -17949,10 +18495,10 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: "distributeRewards", + functionName: 'distributeRewards', args: [request.groupId, request.token, request.ipIds], }), - }; + } } /** @@ -17967,11 +18513,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) } /** @@ -17980,15 +18526,17 @@ 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], }), - }; + } } /** @@ -18001,10 +18549,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) } /** @@ -18018,9 +18566,9 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: "pause", + functionName: 'pause', }), - }; + } } /** @@ -18035,11 +18583,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) } /** @@ -18048,15 +18596,17 @@ 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], }), - }; + } } /** @@ -18071,11 +18621,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) } /** @@ -18084,15 +18634,17 @@ 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], }), - }; + } } /** @@ -18105,10 +18657,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) } /** @@ -18122,9 +18674,9 @@ export class EvenSplitGroupPoolClient extends EvenSplitGroupPoolReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: evenSplitGroupPoolAbi, - functionName: "unpause", + functionName: 'unpause', }), - }; + } } /** @@ -18139,11 +18691,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) } /** @@ -18152,15 +18704,17 @@ 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], }), - }; + } } } @@ -18175,11 +18729,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 @@ -18190,11 +18744,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 @@ -18203,9 +18757,9 @@ export type GroupingModuleCollectedRoyaltiesToGroupPoolEvent = { * @param groupPool address */ export type GroupingModuleIpGroupRegisteredEvent = { - groupId: Address; - groupPool: Address; -}; + groupId: Address + groupPool: Address +} /** * GroupingModuleGetClaimableRewardRequest @@ -18215,12 +18769,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 @@ -18230,10 +18784,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 @@ -18243,10 +18797,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 @@ -18255,9 +18809,9 @@ export type GroupingModuleClaimRewardRequest = { * @param token address */ export type GroupingModuleCollectRoyaltiesRequest = { - groupId: Address; - token: Address; -}; + groupId: Address + token: Address +} /** * GroupingModuleRegisterGroupRequest @@ -18265,8 +18819,8 @@ export type GroupingModuleCollectRoyaltiesRequest = { * @param groupPool address */ export type GroupingModuleRegisterGroupRequest = { - groupPool: Address; -}; + groupPool: Address +} /** * GroupingModuleRemoveIpRequest @@ -18275,36 +18829,40 @@ 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)) }, - }); + }) } /** @@ -18313,39 +18871,42 @@ 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)) }, - }); + }) } /** @@ -18354,39 +18915,43 @@ 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)) }, - }); + }) } /** @@ -18395,23 +18960,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 } } @@ -18420,7 +18985,7 @@ export class GroupingModuleEventClient { */ export class GroupingModuleReadOnlyClient extends GroupingModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -18435,9 +19000,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], - }); + }) } } @@ -18445,11 +19010,15 @@ 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 } /** @@ -18458,15 +19027,17 @@ 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) } /** @@ -18480,10 +19051,10 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: "addIp", + functionName: 'addIp', args: [request.groupIpId, request.ipIds, request.maxAllowedRewardShare], }), - }; + } } /** @@ -18498,11 +19069,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) } /** @@ -18511,15 +19082,17 @@ 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], }), - }; + } } /** @@ -18534,11 +19107,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) } /** @@ -18547,15 +19120,17 @@ 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], }), - }; + } } /** @@ -18570,11 +19145,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) } /** @@ -18583,15 +19158,17 @@ 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], }), - }; + } } /** @@ -18600,15 +19177,17 @@ 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) } /** @@ -18622,10 +19201,10 @@ export class GroupingModuleClient extends GroupingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: groupingModuleAbi, - functionName: "removeIp", + functionName: 'removeIp', args: [request.groupIpId, request.ipIds], }), - }; + } } } @@ -18639,10 +19218,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 @@ -18656,38 +19235,39 @@ 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 @@ -18696,22 +19276,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 @@ -18722,24 +19302,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 @@ -18754,54 +19334,59 @@ 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 } /** @@ -18816,11 +19401,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) } /** @@ -18836,10 +19421,10 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: "collectRoyaltiesAndClaimReward", + functionName: 'collectRoyaltiesAndClaimReward', args: [request.groupIpId, request.currencyTokens, request.memberIpIds], }), - }; + } } /** @@ -18854,7 +19439,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, @@ -18866,8 +19451,8 @@ export class GroupingWorkflowsClient { request.sigAddToGroup, request.allowDuplicates, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -18883,7 +19468,7 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: "mintAndRegisterIpAndAttachLicenseAndAddToGroup", + functionName: 'mintAndRegisterIpAndAttachLicenseAndAddToGroup', args: [ request.spgNftContract, request.groupId, @@ -18895,7 +19480,7 @@ export class GroupingWorkflowsClient { request.allowDuplicates, ], }), - }; + } } /** @@ -18910,11 +19495,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) } /** @@ -18930,10 +19515,10 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: "registerGroupAndAttachLicense", + functionName: 'registerGroupAndAttachLicense', args: [request.groupPool, request.licenseData], }), - }; + } } /** @@ -18948,11 +19533,16 @@ 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) } /** @@ -18968,7 +19558,7 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: "registerGroupAndAttachLicenseAndAddIps", + functionName: 'registerGroupAndAttachLicenseAndAddIps', args: [ request.groupPool, request.ipIds, @@ -18976,7 +19566,7 @@ export class GroupingWorkflowsClient { request.licenseData, ], }), - }; + } } /** @@ -18991,7 +19581,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, @@ -19003,8 +19593,8 @@ export class GroupingWorkflowsClient { request.sigMetadataAndAttachAndConfig, request.sigAddToGroup, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -19020,7 +19610,7 @@ export class GroupingWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: groupingWorkflowsAbi, - functionName: "registerIpAndAttachLicenseAndAddToGroup", + functionName: 'registerIpAndAttachLicenseAndAddToGroup', args: [ request.nftContract, request.tokenId, @@ -19032,13 +19622,13 @@ export class GroupingWorkflowsClient { request.sigAddToGroup, ], }), - }; + } } } // Contract IPAccountImpl ============================================================= -export type IpAccountImplOwnerResponse = Address; +export type IpAccountImplOwnerResponse = Address /** * IpAccountImplStateResponse @@ -19046,8 +19636,8 @@ export type IpAccountImplOwnerResponse = Address; * @param result bytes32 */ export type IpAccountImplStateResponse = { - result: Hex; -}; + result: Hex +} /** * IpAccountImplTokenResponse @@ -19056,7 +19646,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 @@ -19067,11 +19657,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 @@ -19081,10 +19671,10 @@ export type IpAccountImplExecuteRequest = { * @param data bytes */ export type IpAccountImplExecute2Request = { - to: Address; - value: bigint; - data: Hex; -}; + to: Address + value: bigint + data: Hex +} /** * IpAccountImplExecuteBatchRequest @@ -19094,12 +19684,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 @@ -19112,24 +19702,25 @@ 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 } /** @@ -19142,8 +19733,8 @@ export class IpAccountImplReadOnlyClient { return await this.rpcClient.readContract({ abi: ipAccountImplAbi, address: this.address, - functionName: "owner", - }); + functionName: 'owner', + }) } /** @@ -19156,11 +19747,11 @@ export class IpAccountImplReadOnlyClient { const result = await this.rpcClient.readContract({ abi: ipAccountImplAbi, address: this.address, - functionName: "state", - }); + functionName: 'state', + }) return { result: result, - }; + } } /** @@ -19173,8 +19764,8 @@ export class IpAccountImplReadOnlyClient { return await this.rpcClient.readContract({ abi: ipAccountImplAbi, address: this.address, - functionName: "token", - }); + functionName: 'token', + }) } } @@ -19182,11 +19773,15 @@ 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 } /** @@ -19195,15 +19790,17 @@ 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) } /** @@ -19217,10 +19814,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], }), - }; + } } /** @@ -19229,15 +19826,17 @@ 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) } /** @@ -19251,10 +19850,10 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: ipAccountImplAbi, - functionName: "execute", + functionName: 'execute', args: [request.to, request.value, request.data], }), - }; + } } /** @@ -19269,11 +19868,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) } /** @@ -19282,15 +19881,17 @@ 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], }), - }; + } } /** @@ -19305,7 +19906,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, @@ -19315,8 +19916,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) } /** @@ -19325,12 +19926,14 @@ 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, @@ -19340,7 +19943,7 @@ export class IpAccountImplClient extends IpAccountImplReadOnlyClient { request.signature, ], }), - }; + } } } @@ -19356,12 +19959,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 @@ -19375,14 +19978,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 @@ -19392,12 +19995,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 @@ -19405,10 +20008,10 @@ export type IpAssetRegistryIpIdResponse = Address; * @param id address */ export type IpAssetRegistryIsRegisteredRequest = { - id: Address; -}; + id: Address +} -export type IpAssetRegistryIsRegisteredResponse = boolean; +export type IpAssetRegistryIsRegisteredResponse = boolean /** * IpAssetRegistryRegisterRequest @@ -19418,37 +20021,41 @@ 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)) }, - }); + }) } /** @@ -19457,39 +20064,42 @@ 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)) }, - }); + }) } /** @@ -19498,23 +20108,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 } } @@ -19523,7 +20133,7 @@ export class IpAssetRegistryEventClient { */ export class IpAssetRegistryReadOnlyClient extends IpAssetRegistryEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -19532,13 +20142,15 @@ 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], - }); + }) } /** @@ -19553,9 +20165,9 @@ export class IpAssetRegistryReadOnlyClient extends IpAssetRegistryEventClient { return await this.rpcClient.readContract({ abi: ipAssetRegistryAbi, address: this.address, - functionName: "isRegistered", + functionName: 'isRegistered', args: [request.id], - }); + }) } } @@ -19563,11 +20175,15 @@ 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 } /** @@ -19576,15 +20192,17 @@ 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) } /** @@ -19593,15 +20211,17 @@ 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], }), - }; + } } } @@ -19615,10 +20235,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 @@ -19626,10 +20246,10 @@ export type IpRoyaltyVaultImplRevenueTokenClaimedEvent = { * @param account address */ export type IpRoyaltyVaultImplBalanceOfRequest = { - account: Address; -}; + account: Address +} -export type IpRoyaltyVaultImplBalanceOfResponse = bigint; +export type IpRoyaltyVaultImplBalanceOfResponse = bigint /** * IpRoyaltyVaultImplClaimableRevenueRequest @@ -19638,40 +20258,44 @@ 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)) }, - }); + }) } /** @@ -19680,23 +20304,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 } } @@ -19705,7 +20329,7 @@ export class IpRoyaltyVaultImplEventClient { */ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -19720,9 +20344,9 @@ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventCli return await this.rpcClient.readContract({ abi: ipRoyaltyVaultImplAbi, address: this.address, - functionName: "balanceOf", + functionName: 'balanceOf', args: [request.account], - }); + }) } /** @@ -19737,9 +20361,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], - }); + }) } /** @@ -19752,8 +20376,8 @@ export class IpRoyaltyVaultImplReadOnlyClient extends IpRoyaltyVaultImplEventCli return await this.rpcClient.readContract({ abi: ipRoyaltyVaultImplAbi, address: this.address, - functionName: "ipId", - }); + functionName: 'ipId', + }) } } @@ -19768,48 +20392,49 @@ 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 @@ -19817,8 +20442,8 @@ export type LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest * @param data bytes[] */ export type LicenseAttachmentWorkflowsMulticallRequest = { - data: readonly Hex[]; -}; + data: readonly Hex[] +} /** * LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest @@ -19830,51 +20455,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 @@ -19884,57 +20509,63 @@ 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 } /** @@ -19949,7 +20580,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, @@ -19958,8 +20589,8 @@ export class LicenseAttachmentWorkflowsClient { request.licenseTermsData, request.allowDuplicates, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -19975,7 +20606,7 @@ export class LicenseAttachmentWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: licenseAttachmentWorkflowsAbi, - functionName: "mintAndRegisterIpAndAttachPILTerms", + functionName: 'mintAndRegisterIpAndAttachPILTerms', args: [ request.spgNftContract, request.recipient, @@ -19984,7 +20615,7 @@ export class LicenseAttachmentWorkflowsClient { request.allowDuplicates, ], }), - }; + } } /** @@ -19999,11 +20630,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) } /** @@ -20012,15 +20643,17 @@ 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], }), - }; + } } /** @@ -20035,7 +20668,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, @@ -20044,8 +20677,8 @@ export class LicenseAttachmentWorkflowsClient { request.licenseTermsData, request.sigMetadataAndAttachAndConfig, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -20061,7 +20694,7 @@ export class LicenseAttachmentWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: licenseAttachmentWorkflowsAbi, - functionName: "registerIpAndAttachPILTerms", + functionName: 'registerIpAndAttachPILTerms', args: [ request.nftContract, request.tokenId, @@ -20070,7 +20703,7 @@ export class LicenseAttachmentWorkflowsClient { request.sigMetadataAndAttachAndConfig, ], }), - }; + } } /** @@ -20085,11 +20718,15 @@ 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) } /** @@ -20105,10 +20742,14 @@ 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, + ], }), - }; + } } } @@ -20121,9 +20762,9 @@ export class LicenseAttachmentWorkflowsClient { * @param licenseTermsId uint256 */ export type LicenseRegistryGetDefaultLicenseTermsResponse = { - licenseTemplate: Address; - licenseTermsId: bigint; -}; + licenseTemplate: Address + licenseTermsId: bigint +} /** * LicenseRegistryGetLicensingConfigRequest @@ -20133,21 +20774,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 @@ -20157,10 +20798,10 @@ export type LicenseRegistryGetLicensingConfigResponse = { * @param licenseTermsId uint256 */ export type LicenseRegistryGetRoyaltyPercentRequest = { - ipId: Address; - licenseTemplate: Address; - licenseTermsId: bigint; -}; + ipId: Address + licenseTemplate: Address + licenseTermsId: bigint +} /** * LicenseRegistryGetRoyaltyPercentResponse @@ -20168,8 +20809,8 @@ export type LicenseRegistryGetRoyaltyPercentRequest = { * @param royaltyPercent uint32 */ export type LicenseRegistryGetRoyaltyPercentResponse = { - royaltyPercent: number; -}; + royaltyPercent: number +} /** * LicenseRegistryHasIpAttachedLicenseTermsRequest @@ -20179,23 +20820,24 @@ 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 } /** @@ -20208,12 +20850,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], - }; + } } /** @@ -20228,9 +20870,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], - }); + }) } /** @@ -20245,12 +20887,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, - }; + } } /** @@ -20265,9 +20907,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], - }); + }) } } @@ -20279,10 +20921,10 @@ export class LicenseRegistryReadOnlyClient { * @param tokenId uint256 */ export type LicenseTokenOwnerOfRequest = { - tokenId: bigint; -}; + tokenId: bigint +} -export type LicenseTokenOwnerOfResponse = Address; +export type LicenseTokenOwnerOfResponse = Address /** * LicenseTokenApproveRequest @@ -20291,20 +20933,21 @@ 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 } /** @@ -20313,13 +20956,15 @@ 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], - }); + }) } } @@ -20327,11 +20972,15 @@ 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 } /** @@ -20340,15 +20989,17 @@ 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) } /** @@ -20362,10 +21013,10 @@ export class LicenseTokenClient extends LicenseTokenReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licenseTokenAbi, - functionName: "approve", + functionName: 'approve', args: [request.to, request.tokenId], }), - }; + } } } @@ -20380,11 +21031,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 @@ -20398,14 +21049,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 @@ -20418,13 +21069,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 @@ -20433,9 +21084,9 @@ export type LicensingModulePredictMintingLicenseFeeRequest = { * @param tokenAmount uint256 */ export type LicensingModulePredictMintingLicenseFeeResponse = { - currencyToken: Address; - tokenAmount: bigint; -}; + currencyToken: Address + tokenAmount: bigint +} /** * LicensingModuleAttachLicenseTermsRequest @@ -20445,10 +21096,10 @@ export type LicensingModulePredictMintingLicenseFeeResponse = { * @param licenseTermsId uint256 */ export type LicensingModuleAttachLicenseTermsRequest = { - ipId: Address; - licenseTemplate: Address; - licenseTermsId: bigint; -}; + ipId: Address + licenseTemplate: Address + licenseTermsId: bigint +} /** * LicensingModuleMintLicenseTokensRequest @@ -20463,15 +21114,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 @@ -20486,15 +21137,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 @@ -20505,11 +21156,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 @@ -20520,47 +21171,51 @@ 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)) }, - }); + }) } /** @@ -20569,39 +21224,42 @@ 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)) }, - }); + }) } /** @@ -20610,23 +21268,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 } } @@ -20635,7 +21293,7 @@ export class LicensingModuleEventClient { */ export class LicensingModuleReadOnlyClient extends LicensingModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -20650,7 +21308,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, @@ -20659,11 +21317,11 @@ export class LicensingModuleReadOnlyClient extends LicensingModuleEventClient { request.receiver, request.royaltyContext, ], - }); + }) return { currencyToken: result[0], tokenAmount: result[1], - }; + } } } @@ -20671,11 +21329,15 @@ 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 } /** @@ -20690,11 +21352,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) } /** @@ -20710,10 +21372,10 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: "attachLicenseTerms", + functionName: 'attachLicenseTerms', args: [request.ipId, request.licenseTemplate, request.licenseTermsId], }), - }; + } } /** @@ -20728,7 +21390,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, @@ -20740,8 +21402,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) } /** @@ -20750,12 +21412,14 @@ 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, @@ -20767,7 +21431,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.maxRevenueShare, ], }), - }; + } } /** @@ -20782,7 +21446,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, @@ -20794,8 +21458,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) } /** @@ -20811,7 +21475,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: "registerDerivative", + functionName: 'registerDerivative', args: [ request.childIpId, request.parentIpIds, @@ -20823,7 +21487,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.maxRevenueShare, ], }), - }; + } } /** @@ -20838,11 +21502,16 @@ 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) } /** @@ -20858,10 +21527,15 @@ 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, + ], }), - }; + } } /** @@ -20876,7 +21550,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, @@ -20884,8 +21558,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) } /** @@ -20901,7 +21575,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: licensingModuleAbi, - functionName: "setLicensingConfig", + functionName: 'setLicensingConfig', args: [ request.ipId, request.licenseTemplate, @@ -20909,7 +21583,7 @@ export class LicensingModuleClient extends LicensingModuleReadOnlyClient { request.licensingConfig, ], }), - }; + } } } @@ -20921,21 +21595,22 @@ 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 } /** @@ -20950,9 +21625,9 @@ export class ModuleRegistryReadOnlyClient { return await this.rpcClient.readContract({ abi: moduleRegistryAbi, address: this.address, - functionName: "isRegistered", + functionName: 'isRegistered', args: [request.moduleAddress], - }); + }) } } @@ -20965,24 +21640,28 @@ 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 } /** @@ -20991,15 +21670,17 @@ 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) } /** @@ -21013,10 +21694,10 @@ export class Multicall3Client { to: this.address, data: encodeFunctionData({ abi: multicall3Abi, - functionName: "aggregate3", + functionName: 'aggregate3', args: [request.calls], }), - }; + } } } @@ -21028,8 +21709,8 @@ export class Multicall3Client { * @param authority address */ export type PiLicenseTemplateAuthorityUpdatedEvent = { - authority: Address; -}; + authority: Address +} /** * PiLicenseTemplateDerivativeApprovedEvent @@ -21040,11 +21721,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 @@ -21052,8 +21733,8 @@ export type PiLicenseTemplateDerivativeApprovedEvent = { * @param version uint64 */ export type PiLicenseTemplateInitializedEvent = { - version: bigint; -}; + version: bigint +} /** * PiLicenseTemplateLicenseTermsRegisteredEvent @@ -21063,10 +21744,10 @@ export type PiLicenseTemplateInitializedEvent = { * @param licenseTerms bytes */ export type PiLicenseTemplateLicenseTermsRegisteredEvent = { - licenseTermsId: bigint; - licenseTemplate: Address; - licenseTerms: Hex; -}; + licenseTermsId: bigint + licenseTemplate: Address + licenseTerms: Hex +} /** * PiLicenseTemplateUpgradedEvent @@ -21074,22 +21755,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 @@ -21097,12 +21778,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 @@ -21110,10 +21791,10 @@ export type PiLicenseTemplateAuthorityResponse = Address; * @param licenseTermsId uint256 */ export type PiLicenseTemplateCanAttachToGroupIpRequest = { - licenseTermsId: bigint; -}; + licenseTermsId: bigint +} -export type PiLicenseTemplateCanAttachToGroupIpResponse = boolean; +export type PiLicenseTemplateCanAttachToGroupIpResponse = boolean /** * PiLicenseTemplateCanOverrideRoyaltyPercentRequest @@ -21122,11 +21803,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 @@ -21134,10 +21815,10 @@ export type PiLicenseTemplateCanOverrideRoyaltyPercentResponse = boolean; * @param licenseTermsId uint256 */ export type PiLicenseTemplateExistsRequest = { - licenseTermsId: bigint; -}; + licenseTermsId: bigint +} -export type PiLicenseTemplateExistsResponse = boolean; +export type PiLicenseTemplateExistsResponse = boolean /** * PiLicenseTemplateGetEarlierExpireTimeRequest @@ -21146,11 +21827,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 @@ -21159,11 +21840,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 @@ -21171,8 +21852,8 @@ export type PiLicenseTemplateGetExpireTimeResponse = bigint; * @param selectedLicenseTermsId uint256 */ export type PiLicenseTemplateGetLicenseTermsRequest = { - selectedLicenseTermsId: bigint; -}; + selectedLicenseTermsId: bigint +} /** * PiLicenseTemplateGetLicenseTermsResponse @@ -21181,25 +21862,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 @@ -21208,25 +21889,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 @@ -21234,8 +21915,8 @@ export type PiLicenseTemplateGetLicenseTermsIdRequest = { * @param selectedLicenseTermsId uint256 */ export type PiLicenseTemplateGetLicenseTermsIdResponse = { - selectedLicenseTermsId: bigint; -}; + selectedLicenseTermsId: bigint +} /** * PiLicenseTemplateGetLicenseTermsUriRequest @@ -21243,12 +21924,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 @@ -21256,8 +21937,8 @@ export type PiLicenseTemplateGetMetadataUriResponse = string; * @param licenseTermsId uint256 */ export type PiLicenseTemplateGetRoyaltyPolicyRequest = { - licenseTermsId: bigint; -}; + licenseTermsId: bigint +} /** * PiLicenseTemplateGetRoyaltyPolicyResponse @@ -21268,13 +21949,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 @@ -21284,12 +21965,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 @@ -21297,14 +21978,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 @@ -21312,10 +21993,10 @@ export type PiLicenseTemplateProxiableUuidResponse = Hex; * @param interfaceId bytes4 */ export type PiLicenseTemplateSupportsInterfaceRequest = { - interfaceId: Hex; -}; + interfaceId: Hex +} -export type PiLicenseTemplateSupportsInterfaceResponse = boolean; +export type PiLicenseTemplateSupportsInterfaceResponse = boolean /** * PiLicenseTemplateToJsonRequest @@ -21323,12 +22004,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 @@ -21336,10 +22017,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 @@ -21349,10 +22030,10 @@ export type PiLicenseTemplateVerifyCompatibleLicensesResponse = boolean; * @param metadataURI string */ export type PiLicenseTemplateInitializeRequest = { - accessManager: Address; - name: string; - metadataURI: string; -}; + accessManager: Address + name: string + metadataURI: string +} /** * PiLicenseTemplateRegisterLicenseTermsRequest @@ -21361,25 +22042,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 @@ -21390,11 +22071,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 @@ -21402,8 +22083,8 @@ export type PiLicenseTemplateSetApprovalRequest = { * @param newAuthority address */ export type PiLicenseTemplateSetAuthorityRequest = { - newAuthority: Address; -}; + newAuthority: Address +} /** * PiLicenseTemplateUpgradeToAndCallRequest @@ -21412,9 +22093,9 @@ export type PiLicenseTemplateSetAuthorityRequest = { * @param data bytes */ export type PiLicenseTemplateUpgradeToAndCallRequest = { - newImplementation: Address; - data: Hex; -}; + newImplementation: Address + data: Hex +} /** * PiLicenseTemplateVerifyMintLicenseTokenRequest @@ -21429,7 +22110,7 @@ export type PiLicenseTemplateVerifyMintLicenseTokenRequest = readonly [ Address, Address, bigint, -]; +] /** * PiLicenseTemplateVerifyRegisterDerivativeRequest @@ -21440,11 +22121,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 @@ -21455,38 +22136,42 @@ 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)) }, - }); + }) } /** @@ -21495,39 +22180,42 @@ 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)) }, - }); + }) } /** @@ -21536,39 +22224,42 @@ 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)) }, - }); + }) } /** @@ -21577,39 +22268,42 @@ 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)) }, - }); + }) } /** @@ -21618,23 +22312,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 } /** @@ -21646,11 +22340,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)) }, - }); + }) } /** @@ -21659,23 +22353,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 } } @@ -21684,7 +22378,7 @@ export class PiLicenseTemplateEventClient { */ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -21697,8 +22391,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "ACCESS_CONTROLLER", - }); + functionName: 'ACCESS_CONTROLLER', + }) } /** @@ -21711,8 +22405,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "IP_ASSET_REGISTRY", - }); + functionName: 'IP_ASSET_REGISTRY', + }) } /** @@ -21725,8 +22419,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "LICENSE_REGISTRY", - }); + functionName: 'LICENSE_REGISTRY', + }) } /** @@ -21739,8 +22433,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "MODULE_REGISTRY", - }); + functionName: 'MODULE_REGISTRY', + }) } /** @@ -21753,8 +22447,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "ROYALTY_MODULE", - }); + functionName: 'ROYALTY_MODULE', + }) } /** @@ -21767,8 +22461,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "TERMS_RENDERER", - }); + functionName: 'TERMS_RENDERER', + }) } /** @@ -21781,8 +22475,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "UPGRADE_INTERFACE_VERSION", - }); + functionName: 'UPGRADE_INTERFACE_VERSION', + }) } /** @@ -21797,9 +22491,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "allowDerivativeRegistration", + functionName: 'allowDerivativeRegistration', args: [request.licenseTermsId], - }); + }) } /** @@ -21812,8 +22506,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "authority", - }); + functionName: 'authority', + }) } /** @@ -21828,9 +22522,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "canAttachToGroupIp", + functionName: 'canAttachToGroupIp', args: [request.licenseTermsId], - }); + }) } /** @@ -21845,9 +22539,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], - }); + }) } /** @@ -21862,9 +22556,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "exists", + functionName: 'exists', args: [request.licenseTermsId], - }); + }) } /** @@ -21879,9 +22573,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], - }); + }) } /** @@ -21896,9 +22590,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], - }); + }) } /** @@ -21913,12 +22607,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, - }; + } } /** @@ -21933,12 +22627,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, - }; + } } /** @@ -21953,9 +22647,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "getLicenseTermsURI", + functionName: 'getLicenseTermsURI', args: [request.licenseTermsId], - }); + }) } /** @@ -21968,8 +22662,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "getMetadataURI", - }); + functionName: 'getMetadataURI', + }) } /** @@ -21984,15 +22678,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], - }; + } } /** @@ -22005,8 +22699,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "isConsumingScheduledOp", - }); + functionName: 'isConsumingScheduledOp', + }) } /** @@ -22021,9 +22715,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], - }); + }) } /** @@ -22038,9 +22732,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "isLicenseTransferable", + functionName: 'isLicenseTransferable', args: [request.licenseTermsId], - }); + }) } /** @@ -22053,8 +22747,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "name", - }); + functionName: 'name', + }) } /** @@ -22067,8 +22761,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "proxiableUUID", - }); + functionName: 'proxiableUUID', + }) } /** @@ -22083,9 +22777,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "supportsInterface", + functionName: 'supportsInterface', args: [request.interfaceId], - }); + }) } /** @@ -22100,9 +22794,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "toJson", + functionName: 'toJson', args: [request.licenseTermsId], - }); + }) } /** @@ -22115,8 +22809,8 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "totalRegisteredLicenseTerms", - }); + functionName: 'totalRegisteredLicenseTerms', + }) } /** @@ -22131,9 +22825,9 @@ export class PiLicenseTemplateReadOnlyClient extends PiLicenseTemplateEventClien return await this.rpcClient.readContract({ abi: piLicenseTemplateAbi, address: this.address, - functionName: "verifyCompatibleLicenses", + functionName: 'verifyCompatibleLicenses', args: [request.licenseTermsIds], - }); + }) } } @@ -22141,11 +22835,15 @@ 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 } /** @@ -22160,11 +22858,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) } /** @@ -22173,15 +22871,17 @@ 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], }), - }; + } } /** @@ -22196,11 +22896,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) } /** @@ -22216,10 +22916,10 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: piLicenseTemplateAbi, - functionName: "registerLicenseTerms", + functionName: 'registerLicenseTerms', args: [request.terms], }), - }; + } } /** @@ -22234,11 +22934,16 @@ 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) } /** @@ -22247,15 +22952,22 @@ 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, + ], }), - }; + } } /** @@ -22270,11 +22982,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) } /** @@ -22283,15 +22995,17 @@ 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], }), - }; + } } /** @@ -22306,11 +23020,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) } /** @@ -22319,15 +23033,17 @@ 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], }), - }; + } } /** @@ -22342,11 +23058,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) } /** @@ -22362,10 +23078,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]], }), - }; + } } /** @@ -22380,11 +23096,16 @@ 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) } /** @@ -22400,10 +23121,15 @@ 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, + ], }), - }; + } } /** @@ -22418,11 +23144,16 @@ 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) } /** @@ -22438,10 +23169,15 @@ 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, + ], }), - }; + } } } @@ -22453,8 +23189,8 @@ export class PiLicenseTemplateClient extends PiLicenseTemplateReadOnlyClient { * @param spgNftContract address */ export type RegistrationWorkflowsCollectionCreatedEvent = { - spgNftContract: Address; -}; + spgNftContract: Address +} /** * RegistrationWorkflowsCreateCollectionRequest @@ -22463,19 +23199,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 @@ -22486,16 +23222,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 @@ -22503,8 +23239,8 @@ export type RegistrationWorkflowsMintAndRegisterIpRequest = { * @param data bytes[] */ export type RegistrationWorkflowsMulticallRequest = { - data: readonly Hex[]; -}; + data: readonly Hex[] +} /** * RegistrationWorkflowsRegisterIpRequest @@ -22515,47 +23251,51 @@ 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)) }, - }); + }) } /** @@ -22564,23 +23304,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 } } @@ -22588,11 +23328,15 @@ 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 } /** @@ -22607,11 +23351,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) } /** @@ -22627,10 +23371,10 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien to: this.address, data: encodeFunctionData({ abi: registrationWorkflowsAbi, - functionName: "createCollection", + functionName: 'createCollection', args: [request.spgNftInitParams], }), - }; + } } /** @@ -22645,7 +23389,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, @@ -22653,8 +23397,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) } /** @@ -22670,7 +23414,7 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien to: this.address, data: encodeFunctionData({ abi: registrationWorkflowsAbi, - functionName: "mintAndRegisterIp", + functionName: 'mintAndRegisterIp', args: [ request.spgNftContract, request.recipient, @@ -22678,7 +23422,7 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien request.allowDuplicates, ], }), - }; + } } /** @@ -22693,11 +23437,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) } /** @@ -22706,15 +23450,17 @@ 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], }), - }; + } } /** @@ -22729,11 +23475,16 @@ 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) } /** @@ -22742,15 +23493,22 @@ 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, + ], }), - }; + } } } @@ -22763,9 +23521,9 @@ export class RegistrationWorkflowsClient extends RegistrationWorkflowsEventClien * @param ipRoyaltyVault address */ export type RoyaltyModuleIpRoyaltyVaultDeployedEvent = { - ipId: Address; - ipRoyaltyVault: Address; -}; + ipId: Address + ipRoyaltyVault: Address +} /** * RoyaltyModuleRoyaltyPaidEvent @@ -22778,13 +23536,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 @@ -22792,10 +23550,10 @@ export type RoyaltyModuleRoyaltyPaidEvent = { * @param ipId address */ export type RoyaltyModuleIpRoyaltyVaultsRequest = { - ipId: Address; -}; + ipId: Address +} -export type RoyaltyModuleIpRoyaltyVaultsResponse = Address; +export type RoyaltyModuleIpRoyaltyVaultsResponse = Address /** * RoyaltyModuleIsWhitelistedRoyaltyPolicyRequest @@ -22803,10 +23561,10 @@ export type RoyaltyModuleIpRoyaltyVaultsResponse = Address; * @param royaltyPolicy address */ export type RoyaltyModuleIsWhitelistedRoyaltyPolicyRequest = { - royaltyPolicy: Address; -}; + royaltyPolicy: Address +} -export type RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse = boolean; +export type RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse = boolean /** * RoyaltyModuleIsWhitelistedRoyaltyTokenRequest @@ -22814,10 +23572,10 @@ export type RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse = boolean; * @param token address */ export type RoyaltyModuleIsWhitelistedRoyaltyTokenRequest = { - token: Address; -}; + token: Address +} -export type RoyaltyModuleIsWhitelistedRoyaltyTokenResponse = boolean; +export type RoyaltyModuleIsWhitelistedRoyaltyTokenResponse = boolean /** * RoyaltyModulePayRoyaltyOnBehalfRequest @@ -22828,38 +23586,42 @@ 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)) }, - }); + }) } /** @@ -22868,23 +23630,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 } /** @@ -22896,11 +23658,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)) }, - }); + }) } /** @@ -22909,23 +23671,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 } } @@ -22934,7 +23696,7 @@ export class RoyaltyModuleEventClient { */ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -22949,9 +23711,9 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { return await this.rpcClient.readContract({ abi: royaltyModuleAbi, address: this.address, - functionName: "ipRoyaltyVaults", + functionName: 'ipRoyaltyVaults', args: [request.ipId], - }); + }) } /** @@ -22966,9 +23728,9 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { return await this.rpcClient.readContract({ abi: royaltyModuleAbi, address: this.address, - functionName: "isWhitelistedRoyaltyPolicy", + functionName: 'isWhitelistedRoyaltyPolicy', args: [request.royaltyPolicy], - }); + }) } /** @@ -22983,9 +23745,9 @@ export class RoyaltyModuleReadOnlyClient extends RoyaltyModuleEventClient { return await this.rpcClient.readContract({ abi: royaltyModuleAbi, address: this.address, - functionName: "isWhitelistedRoyaltyToken", + functionName: 'isWhitelistedRoyaltyToken', args: [request.token], - }); + }) } } @@ -22993,11 +23755,15 @@ 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 } /** @@ -23012,11 +23778,16 @@ 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) } /** @@ -23025,15 +23796,22 @@ 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, + ], }), - }; + } } } @@ -23047,8 +23825,8 @@ export class RoyaltyModuleClient extends RoyaltyModuleReadOnlyClient { * @param authority address */ export type RoyaltyPolicyLrpAuthorityUpdatedEvent = { - authority: Address; -}; + authority: Address +} /** * RoyaltyPolicyLrpInitializedEvent @@ -23056,8 +23834,8 @@ export type RoyaltyPolicyLrpAuthorityUpdatedEvent = { * @param version uint64 */ export type RoyaltyPolicyLrpInitializedEvent = { - version: bigint; -}; + version: bigint +} /** * RoyaltyPolicyLrpPausedEvent @@ -23065,8 +23843,8 @@ export type RoyaltyPolicyLrpInitializedEvent = { * @param account address */ export type RoyaltyPolicyLrpPausedEvent = { - account: Address; -}; + account: Address +} /** * RoyaltyPolicyLrpRevenueTransferredToVaultEvent @@ -23077,11 +23855,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 @@ -23089,8 +23867,8 @@ export type RoyaltyPolicyLrpRevenueTransferredToVaultEvent = { * @param account address */ export type RoyaltyPolicyLrpUnpausedEvent = { - account: Address; -}; + account: Address +} /** * RoyaltyPolicyLrpUpgradedEvent @@ -23098,20 +23876,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 @@ -23119,10 +23897,10 @@ export type RoyaltyPolicyLrpAuthorityResponse = Address; * @param ipId address */ export type RoyaltyPolicyLrpGetPolicyRoyaltyStackRequest = { - ipId: Address; -}; + ipId: Address +} -export type RoyaltyPolicyLrpGetPolicyRoyaltyStackResponse = number; +export type RoyaltyPolicyLrpGetPolicyRoyaltyStackResponse = number /** * RoyaltyPolicyLrpGetPolicyRtsRequiredToLinkRequest @@ -23131,11 +23909,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 @@ -23145,20 +23923,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 @@ -23166,8 +23944,8 @@ export type RoyaltyPolicyLrpProxiableUuidResponse = Hex; * @param accessManager address */ export type RoyaltyPolicyLrpProtocolPausableInitRequest = { - accessManager: Address; -}; + accessManager: Address +} /** * RoyaltyPolicyLrpGetPolicyRoyaltyRequest @@ -23176,9 +23954,9 @@ export type RoyaltyPolicyLrpProtocolPausableInitRequest = { * @param ancestorIpId address */ export type RoyaltyPolicyLrpGetPolicyRoyaltyRequest = { - ipId: Address; - ancestorIpId: Address; -}; + ipId: Address + ancestorIpId: Address +} /** * RoyaltyPolicyLrpInitializeRequest @@ -23186,8 +23964,8 @@ export type RoyaltyPolicyLrpGetPolicyRoyaltyRequest = { * @param accessManager address */ export type RoyaltyPolicyLrpInitializeRequest = { - accessManager: Address; -}; + accessManager: Address +} /** * RoyaltyPolicyLrpOnLicenseMintingRequest @@ -23196,7 +23974,11 @@ export type RoyaltyPolicyLrpInitializeRequest = { * @param 1 uint32 * @param 2 bytes */ -export type RoyaltyPolicyLrpOnLicenseMintingRequest = readonly [Address, number, Hex]; +export type RoyaltyPolicyLrpOnLicenseMintingRequest = readonly [ + Address, + number, + Hex, +] /** * RoyaltyPolicyLrpOnLinkToParentsRequest @@ -23213,7 +23995,7 @@ export type RoyaltyPolicyLrpOnLinkToParentsRequest = readonly [ readonly Address[], readonly number[], Hex, -]; +] /** * RoyaltyPolicyLrpSetAuthorityRequest @@ -23221,8 +24003,8 @@ export type RoyaltyPolicyLrpOnLinkToParentsRequest = readonly [ * @param newAuthority address */ export type RoyaltyPolicyLrpSetAuthorityRequest = { - newAuthority: Address; -}; + newAuthority: Address +} /** * RoyaltyPolicyLrpTransferToVaultRequest @@ -23232,10 +24014,10 @@ export type RoyaltyPolicyLrpSetAuthorityRequest = { * @param token address */ export type RoyaltyPolicyLrpTransferToVaultRequest = { - ipId: Address; - ancestorIpId: Address; - token: Address; -}; + ipId: Address + ancestorIpId: Address + token: Address +} /** * RoyaltyPolicyLrpUpgradeToAndCallRequest @@ -23244,36 +24026,40 @@ 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)) }, - }); + }) } /** @@ -23282,39 +24068,42 @@ 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)) }, - }); + }) } /** @@ -23323,23 +24112,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 } /** @@ -23351,50 +24140,55 @@ 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)) }, - }); + }) } /** @@ -23403,23 +24197,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 } /** @@ -23431,34 +24225,36 @@ 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 } /** @@ -23470,34 +24266,36 @@ 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 } } @@ -23506,7 +24304,7 @@ export class RoyaltyPolicyLrpEventClient { */ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -23519,8 +24317,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "IP_GRAPH", - }); + functionName: 'IP_GRAPH', + }) } /** @@ -23533,8 +24331,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "IP_GRAPH_ACL", - }); + functionName: 'IP_GRAPH_ACL', + }) } /** @@ -23547,8 +24345,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "ROYALTY_MODULE", - }); + functionName: 'ROYALTY_MODULE', + }) } /** @@ -23561,8 +24359,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "ROYALTY_POLICY_LAP", - }); + functionName: 'ROYALTY_POLICY_LAP', + }) } /** @@ -23575,8 +24373,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "UPGRADE_INTERFACE_VERSION", - }); + functionName: 'UPGRADE_INTERFACE_VERSION', + }) } /** @@ -23589,8 +24387,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "authority", - }); + functionName: 'authority', + }) } /** @@ -23605,9 +24403,9 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "getPolicyRoyaltyStack", + functionName: 'getPolicyRoyaltyStack', args: [request.ipId], - }); + }) } /** @@ -23622,9 +24420,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], - }); + }) } /** @@ -23639,9 +24437,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], - }); + }) } /** @@ -23654,8 +24452,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "isConsumingScheduledOp", - }); + functionName: 'isConsumingScheduledOp', + }) } /** @@ -23668,8 +24466,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "isSupportGroup", - }); + functionName: 'isSupportGroup', + }) } /** @@ -23682,8 +24480,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "paused", - }); + functionName: 'paused', + }) } /** @@ -23696,8 +24494,8 @@ export class RoyaltyPolicyLrpReadOnlyClient extends RoyaltyPolicyLrpEventClient return await this.rpcClient.readContract({ abi: royaltyPolicyLrpAbi, address: this.address, - functionName: "proxiableUUID", - }); + functionName: 'proxiableUUID', + }) } } @@ -23705,11 +24503,15 @@ 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 } /** @@ -23724,11 +24526,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) } /** @@ -23744,10 +24546,10 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: "__ProtocolPausable_init", + functionName: '__ProtocolPausable_init', args: [request.accessManager], }), - }; + } } /** @@ -23762,11 +24564,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) } /** @@ -23775,15 +24577,17 @@ 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], }), - }; + } } /** @@ -23798,11 +24602,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) } /** @@ -23811,15 +24615,17 @@ 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], }), - }; + } } /** @@ -23834,11 +24640,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) } /** @@ -23847,15 +24653,17 @@ 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]], }), - }; + } } /** @@ -23870,11 +24678,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) } /** @@ -23883,15 +24691,17 @@ 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]], }), - }; + } } /** @@ -23904,10 +24714,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) } /** @@ -23921,9 +24731,9 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: "pause", + functionName: 'pause', }), - }; + } } /** @@ -23938,11 +24748,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) } /** @@ -23951,15 +24761,17 @@ 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], }), - }; + } } /** @@ -23974,11 +24786,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) } /** @@ -23987,15 +24799,17 @@ 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], }), - }; + } } /** @@ -24008,10 +24822,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) } /** @@ -24025,9 +24839,9 @@ export class RoyaltyPolicyLrpClient extends RoyaltyPolicyLrpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: royaltyPolicyLrpAbi, - functionName: "unpause", + functionName: 'unpause', }), - }; + } } /** @@ -24042,11 +24856,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) } /** @@ -24055,15 +24869,17 @@ 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], }), - }; + } } } @@ -24077,17 +24893,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 @@ -24101,51 +24917,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 @@ -24159,29 +24975,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 @@ -24189,8 +25005,8 @@ export type RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndMakeDerivativeA * @param data bytes[] */ export type RoyaltyTokenDistributionWorkflowsMulticallRequest = { - data: readonly Hex[]; -}; + data: readonly Hex[] +} /** * RoyaltyTokenDistributionWorkflowsRegisterIpAndAttachPilTermsAndDeployRoyaltyVaultRequest @@ -24203,51 +25019,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 @@ -24260,43 +25076,48 @@ 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 } /** @@ -24311,11 +25132,15 @@ 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) } /** @@ -24331,10 +25156,14 @@ 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, + ], }), - }; + } } /** @@ -24349,7 +25178,8 @@ 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, @@ -24359,8 +25189,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.royaltyShares, request.allowDuplicates, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -24376,7 +25206,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: "mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens", + functionName: + 'mintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokens', args: [ request.spgNftContract, request.recipient, @@ -24386,7 +25217,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.allowDuplicates, ], }), - }; + } } /** @@ -24401,7 +25232,8 @@ 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, @@ -24411,8 +25243,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.royaltyShares, request.allowDuplicates, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -24428,7 +25260,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: "mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens", + functionName: + 'mintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokens', args: [ request.spgNftContract, request.recipient, @@ -24438,7 +25271,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.allowDuplicates, ], }), - }; + } } /** @@ -24453,11 +25286,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) } /** @@ -24473,10 +25306,10 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: "multicall", + functionName: 'multicall', args: [request.data], }), - }; + } } /** @@ -24491,7 +25324,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, @@ -24500,8 +25333,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.licenseTermsData, request.sigMetadataAndAttachAndConfig, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -24517,7 +25350,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: "registerIpAndAttachPILTermsAndDeployRoyaltyVault", + functionName: 'registerIpAndAttachPILTermsAndDeployRoyaltyVault', args: [ request.nftContract, request.tokenId, @@ -24526,7 +25359,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.sigMetadataAndAttachAndConfig, ], }), - }; + } } /** @@ -24541,7 +25374,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, @@ -24550,8 +25383,8 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.derivData, request.sigMetadataAndRegister, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -24567,7 +25400,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { to: this.address, data: encodeFunctionData({ abi: royaltyTokenDistributionWorkflowsAbi, - functionName: "registerIpAndMakeDerivativeAndDeployRoyaltyVault", + functionName: 'registerIpAndMakeDerivativeAndDeployRoyaltyVault', args: [ request.nftContract, request.tokenId, @@ -24576,7 +25409,7 @@ export class RoyaltyTokenDistributionWorkflowsClient { request.sigMetadataAndRegister, ], }), - }; + } } } @@ -24592,12 +25425,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 @@ -24605,21 +25438,26 @@ 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 } /** @@ -24634,7 +25472,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, @@ -24643,8 +25481,8 @@ export class RoyaltyWorkflowsClient { request.royaltyPolicies, request.currencyTokens, ], - }); - return await this.wallet.writeContract(call as WriteContractParameters); + }) + return await this.wallet.writeContract(call as WriteContractParameters) } /** @@ -24653,12 +25491,14 @@ 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, @@ -24667,7 +25507,7 @@ export class RoyaltyWorkflowsClient { request.currencyTokens, ], }), - }; + } } /** @@ -24682,11 +25522,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) } /** @@ -24695,15 +25535,17 @@ 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], }), - }; + } } } @@ -24716,9 +25558,9 @@ export class RoyaltyWorkflowsClient { * @param newOwner address */ export type SpgnftBeaconOwnershipTransferredEvent = { - previousOwner: Address; - newOwner: Address; -}; + previousOwner: Address + newOwner: Address +} /** * SpgnftBeaconUpgradedEvent @@ -24726,12 +25568,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 @@ -24739,8 +25581,8 @@ export type SpgnftBeaconOwnerResponse = Address; * @param newOwner address */ export type SpgnftBeaconTransferOwnershipRequest = { - newOwner: Address; -}; + newOwner: Address +} /** * SpgnftBeaconUpgradeToRequest @@ -24748,35 +25590,39 @@ 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)) }, - }); + }) } /** @@ -24785,23 +25631,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 } /** @@ -24813,34 +25659,36 @@ 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 } } @@ -24849,7 +25697,7 @@ export class SpgnftBeaconEventClient { */ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) } /** @@ -24862,8 +25710,8 @@ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { return await this.rpcClient.readContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: "implementation", - }); + functionName: 'implementation', + }) } /** @@ -24876,8 +25724,8 @@ export class SpgnftBeaconReadOnlyClient extends SpgnftBeaconEventClient { return await this.rpcClient.readContract({ abi: spgnftBeaconAbi, address: this.address, - functionName: "owner", - }); + functionName: 'owner', + }) } } @@ -24885,11 +25733,15 @@ 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 } /** @@ -24902,10 +25754,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) } /** @@ -24919,9 +25771,9 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: spgnftBeaconAbi, - functionName: "renounceOwnership", + functionName: 'renounceOwnership', }), - }; + } } /** @@ -24936,11 +25788,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) } /** @@ -24949,15 +25801,17 @@ 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], }), - }; + } } /** @@ -24966,15 +25820,17 @@ 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) } /** @@ -24988,10 +25844,10 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: spgnftBeaconAbi, - functionName: "upgradeTo", + functionName: 'upgradeTo', args: [request.newImplementation], }), - }; + } } } @@ -25005,10 +25861,21 @@ export class SpgnftBeaconClient extends SpgnftBeaconReadOnlyClient { * @param tokenId uint256 */ export type SpgnftImplTransferEvent = { - from: Address; - to: Address; - tokenId: bigint; -}; + from: Address + to: Address + tokenId: bigint +} + +/** + * SpgnftImplBalanceOfRequest + * + * @param owner address + */ +export type SpgnftImplBalanceOfRequest = { + owner: Address +} + +export type SpgnftImplBalanceOfResponse = bigint /** * SpgnftImplHasRoleRequest @@ -25017,17 +25884,17 @@ export type SpgnftImplTransferEvent = { * @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 @@ -25035,10 +25902,10 @@ export type SpgnftImplPublicMintingResponse = boolean; * @param tokenId uint256 */ export type SpgnftImplTokenUriRequest = { - tokenId: bigint; -}; + tokenId: bigint +} -export type SpgnftImplTokenUriResponse = string; +export type SpgnftImplTokenUriResponse = string /** * SpgnftImplSetTokenUriRequest @@ -25047,20 +25914,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 } /** @@ -25072,34 +25939,36 @@ 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 } } @@ -25108,7 +25977,24 @@ export class SpgnftImplEventClient { */ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { constructor(rpcClient: PublicClient, address?: Address) { - super(rpcClient, address); + super(rpcClient, address) + } + + /** + * method balanceOf for contract SPGNFTImpl + * + * @param request SpgnftImplBalanceOfRequest + * @return Promise + */ + public async balanceOf( + request: SpgnftImplBalanceOfRequest, + ): Promise { + return await this.rpcClient.readContract({ + abi: spgnftImplAbi, + address: this.address, + functionName: 'balanceOf', + args: [request.owner], + }) } /** @@ -25117,13 +26003,15 @@ 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], - }); + }) } /** @@ -25136,8 +26024,8 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: "mintFee", - }); + functionName: 'mintFee', + }) } /** @@ -25150,8 +26038,8 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: "mintFeeToken", - }); + functionName: 'mintFeeToken', + }) } /** @@ -25164,8 +26052,8 @@ export class SpgnftImplReadOnlyClient extends SpgnftImplEventClient { return await this.rpcClient.readContract({ abi: spgnftImplAbi, address: this.address, - functionName: "publicMinting", - }); + functionName: 'publicMinting', + }) } /** @@ -25174,13 +26062,15 @@ 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], - }); + }) } } @@ -25188,11 +26078,15 @@ 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 } /** @@ -25207,11 +26101,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) } /** @@ -25220,15 +26114,17 @@ 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], }), - }; + } } } @@ -25243,24 +26139,30 @@ 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 } /** @@ -25275,11 +26177,16 @@ 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) } /** @@ -25295,7 +26202,7 @@ export class TotalLicenseTokenLimitHookClient { to: this.address, data: encodeFunctionData({ abi: totalLicenseTokenLimitHookAbi, - functionName: "setTotalLicenseTokenLimit", + functionName: 'setTotalLicenseTokenLimit', args: [ request.licensorIpId, request.licenseTemplate, @@ -25303,7 +26210,7 @@ export class TotalLicenseTokenLimitHookClient { request.limit, ], }), - }; + } } } @@ -25316,9 +26223,9 @@ export class TotalLicenseTokenLimitHookClient { * @param spender address */ export type WrappedIpAllowanceRequest = { - owner: Address; - spender: Address; -}; + owner: Address + spender: Address +} /** * WrappedIpAllowanceResponse @@ -25326,8 +26233,8 @@ export type WrappedIpAllowanceRequest = { * @param result uint256 */ export type WrappedIpAllowanceResponse = { - result: bigint; -}; + result: bigint +} /** * WrappedIpBalanceOfRequest @@ -25335,8 +26242,8 @@ export type WrappedIpAllowanceResponse = { * @param owner address */ export type WrappedIpBalanceOfRequest = { - owner: Address; -}; + owner: Address +} /** * WrappedIpBalanceOfResponse @@ -25344,8 +26251,8 @@ export type WrappedIpBalanceOfRequest = { * @param result uint256 */ export type WrappedIpBalanceOfResponse = { - result: bigint; -}; + result: bigint +} /** * WrappedIpApproveRequest @@ -25354,9 +26261,9 @@ export type WrappedIpBalanceOfResponse = { * @param amount uint256 */ export type WrappedIpApproveRequest = { - spender: Address; - amount: bigint; -}; + spender: Address + amount: bigint +} /** * WrappedIpTransferRequest @@ -25365,9 +26272,9 @@ export type WrappedIpApproveRequest = { * @param amount uint256 */ export type WrappedIpTransferRequest = { - to: Address; - amount: bigint; -}; + to: Address + amount: bigint +} /** * WrappedIpTransferFromRequest @@ -25377,10 +26284,10 @@ export type WrappedIpTransferRequest = { * @param amount uint256 */ export type WrappedIpTransferFromRequest = { - from: Address; - to: Address; - amount: bigint; -}; + from: Address + to: Address + amount: bigint +} /** * WrappedIpWithdrawRequest @@ -25388,19 +26295,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 } /** @@ -25409,16 +26316,18 @@ 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, - }; + } } /** @@ -25427,16 +26336,18 @@ 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, - }; + } } } @@ -25444,11 +26355,15 @@ 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 } /** @@ -25457,15 +26372,17 @@ 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) } /** @@ -25479,10 +26396,10 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: "approve", + functionName: 'approve', args: [request.spender, request.amount], }), - }; + } } /** @@ -25495,10 +26412,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) } /** @@ -25512,9 +26429,9 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: "deposit", + functionName: 'deposit', }), - }; + } } /** @@ -25523,15 +26440,17 @@ 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) } /** @@ -25545,10 +26464,10 @@ export class WrappedIpClient extends WrappedIpReadOnlyClient { to: this.address, data: encodeFunctionData({ abi: wrappedIpAbi, - functionName: "transfer", + functionName: 'transfer', args: [request.to, request.amount], }), - }; + } } /** @@ -25563,11 +26482,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) } /** @@ -25576,15 +26495,17 @@ 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], }), - }; + } } /** @@ -25593,15 +26514,17 @@ 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) } /** @@ -25615,9 +26538,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 7a564c515..433fc0ab7 100644 --- a/packages/core-sdk/src/client.ts +++ b/packages/core-sdk/src/client.ts @@ -11,7 +11,13 @@ import { NftClient } from "./resources/nftClient"; import { PermissionClient } from "./resources/permission"; import { RoyaltyClient } from "./resources/royalty"; import { WipClient } from "./resources/wip"; -import { ChainIds, StoryConfig, UseAccountStoryConfig, UseWalletStoryConfig } from "./types/config"; +import { + ChainIds, + StoryConfig, + TxHashResolver, + UseAccountStoryConfig, + UseWalletStoryConfig, +} from "./types/config"; import { chain, chainStringToViemChain, validateAddress } from "./utils/utils"; if (typeof process !== "undefined") { @@ -52,6 +58,12 @@ export class StoryClient { this.rpcClient = createPublicClient(clientConfig); + // If a txHashResolver is provided (e.g. for AA wallets like ZeroDev/Dynamic), + // patch waitForTransactionReceipt to resolve the hash first. + if (config.txHashResolver) { + this.applyTxHashResolver(config.txHashResolver); + } + if (this.config.wallet) { this.wallet = this.config.wallet; } else if (this.config.account) { @@ -66,6 +78,23 @@ export class StoryClient { } } + /** + * Patches rpcClient.waitForTransactionReceipt to first resolve the hash + * through the provided resolver. This transparently supports AA wallets + * where writeContract returns a UserOperation hash instead of a tx hash. + */ + private applyTxHashResolver(resolver: TxHashResolver): void { + const originalWaitForReceipt = this.rpcClient.waitForTransactionReceipt.bind( + this.rpcClient, + ); + this.rpcClient.waitForTransactionReceipt = async ( + args, + ): ReturnType => { + const resolvedHash = await resolver(args.hash); + return originalWaitForReceipt({ ...args, hash: resolvedHash }); + }; + } + private get chainId(): ChainIds { return this.config.chainId as ChainIds; } @@ -86,6 +115,7 @@ export class StoryClient { chainId: config.chainId, transport: config.transport, wallet: config.wallet, + txHashResolver: config.txHashResolver, }); } @@ -97,6 +127,7 @@ export class StoryClient { account: config.account, chainId: config.chainId, transport: config.transport, + txHashResolver: config.txHashResolver, }); } diff --git a/packages/core-sdk/src/resources/nftClient.ts b/packages/core-sdk/src/resources/nftClient.ts index 373b90ea6..95c9d8a81 100644 --- a/packages/core-sdk/src/resources/nftClient.ts +++ b/packages/core-sdk/src/resources/nftClient.ts @@ -11,6 +11,7 @@ import { TransactionResponse } from "../types/options"; import { CreateNFTCollectionRequest, CreateNFTCollectionResponse, + GetNFTBalanceRequest, GetTokenURIRequest, SetTokenURIRequest, } from "../types/resources/nftClient"; @@ -148,4 +149,16 @@ export class NftClient { const spgNftClient = new SpgnftImplReadOnlyClient(this.rpcClient, spgNftContract); return await spgNftClient.tokenUri({ tokenId: BigInt(tokenId) }); } + + /** + * Returns the number of NFTs owned by an address in a specific SPG NFT collection. + */ + public async getNFTBalance({ spgNftContract, owner }: GetNFTBalanceRequest): Promise { + const spgNftClient = new SpgnftImplReadOnlyClient( + this.rpcClient, + validateAddress(spgNftContract), + ); + const ownerAddress = validateAddress(owner ?? this.wallet.account!.address); + return spgNftClient.balanceOf({ owner: ownerAddress }); + } } diff --git a/packages/core-sdk/src/types/config.ts b/packages/core-sdk/src/types/config.ts index 84b33fa2e..2b3c31948 100644 --- a/packages/core-sdk/src/types/config.ts +++ b/packages/core-sdk/src/types/config.ts @@ -1,4 +1,4 @@ -import { Account, Address, Transport } from "viem"; +import { Account, Address, Hash, Transport } from "viem"; import { SimpleWalletClient } from "../abi/generated"; @@ -9,6 +9,34 @@ import { SimpleWalletClient } from "../abi/generated"; */ export type SupportedChainIds = "aeneid" | "mainnet" | ChainIds; +/** + * A function that resolves a hash returned by `writeContract` into an actual + * transaction hash that can be used with `waitForTransactionReceipt`. + * + * This is required when using Account Abstraction wallets (e.g. ZeroDev, Dynamic) + * because `writeContract` returns a UserOperation hash instead of a regular + * transaction hash. The resolver should wait for the UserOperation to be bundled + * and return the resulting on-chain transaction hash. + * + * @example ZeroDev + * ```typescript + * const client = StoryClient.newClientUseWallet({ + * transport: http("https://..."), + * wallet: kernelClient, + * txHashResolver: async (userOpHash) => { + * const receipt = await bundlerClient.waitForUserOperationReceipt({ + * hash: userOpHash, + * }); + * return receipt.receipt.transactionHash; + * }, + * }); + * ``` + * + * @param hash - The hash returned by `writeContract` (could be a userOpHash or txHash) + * @returns The resolved on-chain transaction hash + */ +export type TxHashResolver = (hash: Hash) => Promise; + /** * Configuration for the SDK Client. * @@ -23,6 +51,11 @@ export type UseAccountStoryConfig = { */ readonly chainId?: SupportedChainIds; readonly transport: Transport; + /** + * Optional resolver for Account Abstraction wallets. + * @see TxHashResolver + */ + readonly txHashResolver?: TxHashResolver; }; export type UseWalletStoryConfig = { @@ -34,6 +67,11 @@ export type UseWalletStoryConfig = { readonly chainId?: SupportedChainIds; readonly transport: Transport; readonly wallet: SimpleWalletClient; + /** + * Optional resolver for Account Abstraction wallets. + * @see TxHashResolver + */ + readonly txHashResolver?: TxHashResolver; }; export type StoryConfig = { @@ -46,6 +84,16 @@ export type StoryConfig = { readonly chainId?: SupportedChainIds; readonly wallet?: SimpleWalletClient; readonly account?: Account | Address; + /** + * Optional resolver for Account Abstraction wallets (e.g. ZeroDev, Dynamic). + * + * When provided, the SDK will call this function to resolve the hash returned + * by `writeContract` into the actual on-chain transaction hash before waiting + * for the transaction receipt. + * + * @see TxHashResolver + */ + readonly txHashResolver?: TxHashResolver; }; export type ContractAddress = { [key in SupportedChainIds]: Record }; diff --git a/packages/core-sdk/src/types/resources/nftClient.ts b/packages/core-sdk/src/types/resources/nftClient.ts index 9753f2009..72c4b1653 100644 --- a/packages/core-sdk/src/types/resources/nftClient.ts +++ b/packages/core-sdk/src/types/resources/nftClient.ts @@ -45,3 +45,10 @@ export type GetTokenURIRequest = { tokenId: TokenIdInput; spgNftContract: Address; }; + +export type GetNFTBalanceRequest = { + /** The SPG NFT collection contract address. */ + spgNftContract: Address; + /** The owner address to query. Defaults to the connected wallet address if not provided. */ + owner?: Address; +}; diff --git a/packages/core-sdk/src/utils/oov3.ts b/packages/core-sdk/src/utils/oov3.ts index e45dafd00..c1a38d775 100644 --- a/packages/core-sdk/src/utils/oov3.ts +++ b/packages/core-sdk/src/utils/oov3.ts @@ -58,6 +58,10 @@ export const getMinimumBond = async ( * - Executing the settlement transaction * - Waiting for transaction confirmation * + * Retry behavior: If the OOV3 contract reverts with "Assertion not expired" (because + * the assertion liveness period has not yet elapsed), the function retries up to 5 times + * with a 3-second delay between attempts. Other errors are not retried. + * * @see https://docs.story.foundation/docs/uma-arbitration-policy#/ * @see https://docs.uma.xyz/developers/optimistic-oracle-v3 * @@ -71,30 +75,42 @@ export const settleAssertion = async ( disputeId: DisputeId, transport?: string, ): Promise => { - try { - const baseConfig = { - chain: chainStringToViemChain("aeneid"), - transport: http(transport ?? aeneid.rpcUrls.default.http[0]), - }; - const rpcClient = createPublicClient(baseConfig); - const walletClient = createWalletClient({ - ...baseConfig, - account: privateKeyToAccount(privateKey), - }); - const arbitrationPolicyUmaClient = new ArbitrationPolicyUmaClient(rpcClient, walletClient); - const oov3Contract = await getOov3Contract(arbitrationPolicyUmaClient); - const assertionId = await arbitrationPolicyUmaClient.disputeIdToAssertionId({ - disputeId: BigInt(disputeId), - }); - const txHash = await walletClient.writeContract({ - address: oov3Contract, - abi: ASSERTION_ABI, - functionName: "settleAssertion", - args: [assertionId], - }); - await rpcClient.waitForTransactionReceipt({ hash: txHash }); - return txHash; - } catch (error) { - return handleError(error, "Failed to settle assertion"); + const maxAttempts = 5; + const retryDelayMs = 3000; + + for (let attempt = 1; attempt <= maxAttempts; attempt++) { + try { + const baseConfig = { + chain: chainStringToViemChain("aeneid"), + transport: http(transport ?? aeneid.rpcUrls.default.http[0]), + }; + const rpcClient = createPublicClient(baseConfig); + const walletClient = createWalletClient({ + ...baseConfig, + account: privateKeyToAccount(privateKey), + }); + const arbitrationPolicyUmaClient = new ArbitrationPolicyUmaClient(rpcClient, walletClient); + const oov3Contract = await getOov3Contract(arbitrationPolicyUmaClient); + const assertionId = await arbitrationPolicyUmaClient.disputeIdToAssertionId({ + disputeId: BigInt(disputeId), + }); + const txHash = await walletClient.writeContract({ + address: oov3Contract, + abi: ASSERTION_ABI, + functionName: "settleAssertion", + args: [assertionId], + }); + await rpcClient.waitForTransactionReceipt({ hash: txHash }); + return txHash; + } catch (error) { + const msg = error instanceof Error ? error.message : String(error); + if (attempt < maxAttempts && msg.includes("Assertion not expired")) { + await new Promise((resolve) => setTimeout(resolve, retryDelayMs)); + continue; + } + return handleError(error, "Failed to settle assertion"); + } } + // Unreachable — the last iteration always throws via handleError. + throw new Error("Failed to settle assertion: max retries exceeded"); }; diff --git a/packages/core-sdk/test/integration/dispute.test.ts b/packages/core-sdk/test/integration/dispute.test.ts index 8e56c3a50..e8ad4a9c7 100644 --- a/packages/core-sdk/test/integration/dispute.test.ts +++ b/packages/core-sdk/test/integration/dispute.test.ts @@ -275,7 +275,7 @@ describe("Dispute Functions", () => { // This timeout guarantees that the assertion is expired // its intended to be longer than the current block time // so it won't be included in the same block - await new Promise((resolve) => setTimeout(resolve, 3000)); + await new Promise((resolve) => setTimeout(resolve, 15000)); }); it("should tag infringing ip", async () => { @@ -368,7 +368,7 @@ describe("Dispute Functions", () => { // This timeout guarantees that the assertion is expired // its intended to be longer than the current block time // so it won't be included in the same block - await new Promise((resolve) => setTimeout(resolve, 3000)); + await new Promise((resolve) => setTimeout(resolve, 15000)); const { currentTag, targetTag } = await getDisputeState(testDisputeId); expect(currentTag).to.equal(targetTag); diff --git a/packages/core-sdk/test/integration/group.test.ts b/packages/core-sdk/test/integration/group.test.ts index a7e9a584d..e937d2135 100644 --- a/packages/core-sdk/test/integration/group.test.ts +++ b/packages/core-sdk/test/integration/group.test.ts @@ -385,7 +385,8 @@ describe("Group Functions", () => { groupIpId = await registerGroupAndAttachLicenseHelper(licenseTermsId, [ipId]); }); - it("should successfully collect royalties", async () => { + it("should successfully collect royalties", async function () { + this.retries(2); // Mint and register child IP id const childIpId = await mintAndRegisterIpAndMakeDerivativeHelper(groupIpId, licenseTermsId); @@ -402,7 +403,8 @@ describe("Group Functions", () => { expect(result.collectedRoyalties).to.equal(10n); }); - it("should successfully get claimable reward", async () => { + it("should successfully get claimable reward", async function () { + this.retries(2); const result = await client.groupClient.getClaimableReward({ groupIpId: groupIpId, currencyToken: WIP_TOKEN_ADDRESS, @@ -412,7 +414,8 @@ describe("Group Functions", () => { expect(result).to.deep.equal([10n]); }); - it("should successfully claim reward", async () => { + it("should successfully claim reward", async function () { + this.retries(2); // Mint license tokens to the IP id which doesn't have a royalty vault await client.license.mintLicenseTokens({ licensorIpId: ipId, diff --git a/packages/core-sdk/test/integration/ipAsset.test.ts b/packages/core-sdk/test/integration/ipAsset.test.ts index 4903322e0..5d7488644 100644 --- a/packages/core-sdk/test/integration/ipAsset.test.ts +++ b/packages/core-sdk/test/integration/ipAsset.test.ts @@ -2994,7 +2994,8 @@ describe("IP Asset Functions", () => { expect(result.registrationResults[2].ipRoyaltyVault?.length).equal(0); }); - it("should successfully register IP assets with multicall disabled", async () => { + it("should successfully register IP assets with multicall disabled", async function () { + this.retries(2); const tokenId1 = await getTokenId(); const tokenId2 = await getTokenId(); diff --git a/packages/core-sdk/test/integration/nftClient.test.ts b/packages/core-sdk/test/integration/nftClient.test.ts index 0cee9cd01..c629fc576 100644 --- a/packages/core-sdk/test/integration/nftClient.test.ts +++ b/packages/core-sdk/test/integration/nftClient.test.ts @@ -20,8 +20,21 @@ describe("nftClient Functions", () => { let client: StoryClient; let spgNftContract: Address; - before(() => { + before(async function () { client = getStoryClient(); + // Create shared collection for Mint Fee, set/get tokenURI, getNFTBalance tests (decoupled) + const txData = await client.nftClient.createNFTCollection({ + name: "paid-collection", + symbol: "PAID", + maxSupply: 100, + isPublicMinting: true, + mintFeeRecipient: TEST_WALLET_ADDRESS, + mintOpen: true, + contractURI: "test-uri", + mintFee: 10000000, + mintFeeToken: erc20Address[aeneid], + }); + spgNftContract = txData.spgNftContract!; }); describe("createNFTCollection", () => { @@ -41,8 +54,8 @@ describe("nftClient Functions", () => { it("should successfully create collection with custom mint fee", async () => { const txData = await client.nftClient.createNFTCollection({ - name: "paid-collection", - symbol: "PAID", + name: "paid-collection-2", + symbol: "PAID2", maxSupply: 100, isPublicMinting: true, mintFeeRecipient: TEST_WALLET_ADDRESS, @@ -52,7 +65,7 @@ describe("nftClient Functions", () => { mintFeeToken: erc20Address[aeneid], }); expect(txData.spgNftContract).to.be.a("string"); - spgNftContract = txData.spgNftContract!; + expect(txData.txHash).to.be.a("string"); }); it("should successfully create private collection", async () => { @@ -139,4 +152,29 @@ describe("nftClient Functions", () => { expect(tokenURI).to.equal(updatedMetadata); }); }); + + describe("getNFTBalance", () => { + before(async function () { + // Self-contained setup: mint at least 1 NFT for balance assertions + const erc20Client = new ERC20Client(publicClient, walletClient, erc20Address[aeneid]); + const txHash = await erc20Client.approve(spgNftContract, maxUint256); + await publicClient.waitForTransactionReceipt({ hash: txHash }); + await mintBySpg(spgNftContract, "ipfs://QmBalanceTest/"); + }); + + it("should successfully get NFT balance for wallet (default owner)", async () => { + const balance = await client.nftClient.getNFTBalance({ spgNftContract }); + expect(balance).to.be.a("bigint"); + expect(Number(balance)).to.be.at.least(1); + }); + + it("should successfully get NFT balance for explicit owner address", async () => { + const balance = await client.nftClient.getNFTBalance({ + spgNftContract, + owner: TEST_WALLET_ADDRESS, + }); + expect(balance).to.be.a("bigint"); + expect(Number(balance)).to.be.at.least(1); + }); + }); }); diff --git a/packages/core-sdk/test/integration/txHashResolver.test.ts b/packages/core-sdk/test/integration/txHashResolver.test.ts new file mode 100644 index 000000000..dc82f5ad0 --- /dev/null +++ b/packages/core-sdk/test/integration/txHashResolver.test.ts @@ -0,0 +1,489 @@ +import { signerToEcdsaValidator } from "@zerodev/ecdsa-validator"; +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"; +import { + Address, + createPublicClient, + createWalletClient, + encodeFunctionData, + Hash, + Hex, + http, + parseEther, + PublicClient, +} from "viem"; +import { privateKeyToAccount } from "viem/accounts"; + +import { + aeneid, + StoryClient, + StoryConfig, + TxHashResolver, + UseWalletStoryConfig, +} from "../../src"; +import { RPC, TEST_PRIVATE_KEY, TEST_WALLET_ADDRESS } from "./utils/util"; + +use(chaiAsPromised); + +type StoryClientPrivate = { rpcClient: PublicClient }; + +type ZeroDevWallet = UseWalletStoryConfig["wallet"]; + +type UserOperationReceipt = { receipt: { transactionHash: Hash } }; + +type CapturedUserOpRequest = { + callData: Hex; + maxFeePerGas?: bigint; + maxPriorityFeePerGas?: bigint; +}; + +type ZeroDevBundlerClient = { + waitForUserOperationReceipt: (args: { + hash: Hash; + timeout?: number; + }) => Promise; +}; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +type KernelClient = ReturnType & { [k: string]: any }; + +type KernelAccount = Awaited>; + +type ZeroDevHelper = { + /** Kernel client used directly as wallet (writeContract returns real txHash). */ + wallet: ZeroDevWallet; + /** + * A thin wrapper whose `writeContract` sends the UserOperation but returns + * the **userOpHash** immediately (without waiting for the receipt). + * This simulates AA wallets that do NOT internally resolve the hash, + * allowing `txHashResolver` to be exercised end-to-end. + */ + rawUserOpWallet: ZeroDevWallet; + /** Bundler client for resolving userOpHash → txHash via receipt. */ + bundlerClient: ZeroDevBundlerClient; +}; + +/** Minimum balance the smart account needs to pay for gas (in IP). */ +const MIN_SA_BALANCE = parseEther("0.5"); +/** Amount to top-up when balance is insufficient (in IP). */ +const SA_FUND_AMOUNT = parseEther("1"); +/** Timeout for waitForUserOperationReceipt (ms). */ +const USER_OP_RECEIPT_TIMEOUT = 180_000; + +/** + * Ensures the smart account has enough native balance to pay for gas. + * If the balance is below MIN_SA_BALANCE, transfers SA_FUND_AMOUNT from + * the EOA signer. + */ +const ensureSmartAccountFunded = async ( + smartAccountAddress: `0x${string}`, +): Promise => { + const storyPublicClient = createPublicClient({ + transport: http(RPC), + chain: aeneid, + }); + + const balance = await storyPublicClient.getBalance({ + address: smartAccountAddress, + }); + + if (balance >= MIN_SA_BALANCE) { + return; + } + + const eoaWallet = createWalletClient({ + account: privateKeyToAccount(TEST_PRIVATE_KEY), + chain: aeneid, + transport: http(RPC), + }); + + const fundHash = await eoaWallet.sendTransaction({ + to: smartAccountAddress, + value: SA_FUND_AMOUNT, + }); + + await storyPublicClient.waitForTransactionReceipt({ hash: fundHash }); +}; + +/** + * Creates a wallet adapter that wraps the kernel client but returns the + * **UserOperation hash** from `writeContract` instead of the real tx hash. + * + * This mimics the behaviour of AA wallet integrations (e.g. Dynamic, custom + * bundler setups) where `writeContract` returns the userOpHash and the + * caller is responsible for resolving it to a real tx hash. + */ +const createRawUserOpWallet = ( + kernelClient: KernelClient, + account: KernelAccount, +): ZeroDevWallet => { + const wallet: Pick = { + account: kernelClient.account, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + writeContract: async (params: any): Promise => { + const callData = encodeFunctionData({ + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + abi: params.abi, + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + functionName: params.functionName, + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access + args: params.args, + }); + + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + const callValue = params.value !== undefined ? BigInt(params.value) : 0n; + + const userOpRequest: { + callData: Awaited>; + maxFeePerGas?: bigint; + maxPriorityFeePerGas?: bigint; + } = { + callData: await account.encodeCalls([ + { + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access + to: params.address, + value: callValue, + data: callData, + }, + ]), + }; + + // Forward fee overrides when available to better match real wallet semantics. + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + if (params.maxFeePerGas !== undefined) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + userOpRequest.maxFeePerGas = BigInt(params.maxFeePerGas); + } + + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + if (params.maxPriorityFeePerGas !== undefined) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + userOpRequest.maxPriorityFeePerGas = BigInt(params.maxPriorityFeePerGas); + } + + // Send UserOperation and return userOpHash immediately (no waiting). + const userOpHash: Hash = await kernelClient.sendUserOperation(userOpRequest); + + return userOpHash; + }, + }; + + return wallet as unknown as ZeroDevWallet; +}; + +/** + * Creates a ZeroDev smart account setup directly from environment variables. + * + * Requires: + * - BUNDLER_RPC_URL – ZeroDev bundler RPC endpoint + * - WALLET_PRIVATE_KEY – EOA private key used as the ECDSA signer + * + * The smart account is self-funded (no paymaster dependency). + * If its balance is insufficient, the EOA will top it up automatically. + * + * Returns `undefined` when BUNDLER_RPC_URL is not set (test will be skipped). + */ +const getZeroDevHelper = async (): Promise => { + const bundlerRpcUrl = process.env.BUNDLER_RPC_URL; + if (!bundlerRpcUrl) { + return undefined; + } + + const signer = privateKeyToAccount(TEST_PRIVATE_KEY); + const entryPoint = getEntryPoint("0.7"); + + const zeroDevPublicClient = createPublicClient({ + transport: http(bundlerRpcUrl), + chain: aeneid, + }); + + const ecdsaValidator = await signerToEcdsaValidator(zeroDevPublicClient, { + signer, + entryPoint, + kernelVersion: KERNEL_V3_1, + }); + + const account = await createKernelAccount(zeroDevPublicClient, { + plugins: { sudo: ecdsaValidator }, + entryPoint, + kernelVersion: KERNEL_V3_1, + }); + + // Ensure the smart account has enough native balance for gas. + await ensureSmartAccountFunded(account.address); + + // Self-funded kernel client (no paymaster). + const kernelClient = createKernelAccountClient({ + account, + chain: aeneid, + bundlerTransport: http(bundlerRpcUrl), + client: zeroDevPublicClient, + }); + + return { + wallet: kernelClient as unknown as ZeroDevWallet, + rawUserOpWallet: createRawUserOpWallet(kernelClient as KernelClient, account), + bundlerClient: kernelClient as unknown as ZeroDevBundlerClient, + }; +}; + +/** + * Integration tests for txHashResolver (Account Abstraction support). + * + * These tests verify that the SDK correctly supports AA wallets like ZeroDev/Dynamic + * by allowing a custom txHashResolver that maps UserOperation hashes to real tx hashes. + * + * =========================================================================================== + * NOTE: Tests marked with [REQUIRES_ZERODEV] need BUNDLER_RPC_URL set in .env. + * Without it, those tests will be automatically skipped. + * =========================================================================================== + */ +describe("TxHashResolver Integration Tests", () => { + describe("Pass-through resolver (normal wallet with resolver)", () => { + it("should create client with a pass-through resolver", () => { + const resolverCalls: Hash[] = []; + const passThroughResolver: TxHashResolver = (hash) => { + resolverCalls.push(hash); + return Promise.resolve(hash); + }; + + const config: StoryConfig = { + chainId: "aeneid", + transport: http(RPC), + account: privateKeyToAccount(TEST_PRIVATE_KEY), + txHashResolver: passThroughResolver, + }; + + const client = StoryClient.newClient(config); + expect(client).to.be.instanceOf(StoryClient); + expect(resolverCalls).to.have.lengthOf(0); + }); + + it("should create client with resolver via newClientUseWallet", () => { + const resolver: TxHashResolver = (hash) => Promise.resolve(hash); + const config = { + chainId: "aeneid" as const, + transport: http(RPC), + wallet: createWalletClient({ + account: privateKeyToAccount(TEST_PRIVATE_KEY), + chain: aeneid, + transport: http(RPC), + }), + txHashResolver: resolver, + }; + + const client = StoryClient.newClientUseWallet(config); + expect(client).to.be.instanceOf(StoryClient); + }); + + it("should create client with resolver via newClientUseAccount", () => { + const resolver: TxHashResolver = (hash) => Promise.resolve(hash); + const client = StoryClient.newClientUseAccount({ + transport: http(RPC), + account: privateKeyToAccount(TEST_PRIVATE_KEY), + txHashResolver: resolver, + }); + expect(client).to.be.instanceOf(StoryClient); + }); + }); + + describe("Simulated AA resolver", () => { + it("should forward value and fee fields when rawUserOpWallet sends user operation", async () => { + const capturedCalls: { + to: Address; + value: bigint; + data: Hex; + }[] = []; + const captured = { + userOpRequest: undefined as CapturedUserOpRequest | undefined, + }; + + const fakeKernelClient = { + account: { address: TEST_WALLET_ADDRESS }, + sendUserOperation: (request: CapturedUserOpRequest): Promise => { + captured.userOpRequest = request; + return Promise.resolve( + "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + ); + }, + } as unknown as KernelClient; + + const fakeAccount = { + encodeCalls: ( + calls: { + to: Address; + value: bigint; + data: Hex; + }[], + ): Promise => { + capturedCalls.push(...calls); + return Promise.resolve( + "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", + ); + }, + } as unknown as KernelAccount; + + const wallet = createRawUserOpWallet(fakeKernelClient, fakeAccount); + const mockWriteContractParams = { + address: "0x1111111111111111111111111111111111111111", + abi: [ + { + type: "function", + name: "transfer", + stateMutability: "payable", + inputs: [{ name: "to", type: "address" }], + outputs: [], + }, + ], + functionName: "transfer", + args: ["0x2222222222222222222222222222222222222222"], + value: 123n, + maxFeePerGas: 456n, + maxPriorityFeePerGas: 789n, + }; + await wallet.writeContract(mockWriteContractParams as never); + + expect(capturedCalls).to.have.lengthOf(1); + expect(capturedCalls[0].value).to.equal(123n); + + if (!captured.userOpRequest) { + throw new Error("Expected sendUserOperation to capture a request"); + } + + const userOpRequest = captured.userOpRequest; + expect(userOpRequest.maxFeePerGas).to.equal(456n); + expect(userOpRequest.maxPriorityFeePerGas).to.equal(789n); + }); + + it("should invoke resolver before querying transaction receipt", async () => { + const fakeTxHash: Hash = + "0x1111111111111111111111111111111111111111111111111111111111111111"; + const realTxHash: Hash = + "0x2222222222222222222222222222222222222222222222222222222222222222"; + + const resolverCalls: Hash[] = []; + const resolver: TxHashResolver = (hash) => { + resolverCalls.push(hash); + return Promise.resolve(hash === fakeTxHash ? realTxHash : hash); + }; + + const config: StoryConfig = { + chainId: "aeneid", + transport: http(RPC), + account: privateKeyToAccount(TEST_PRIVATE_KEY), + txHashResolver: resolver, + }; + + const client = StoryClient.newClient(config); + const rpcClient = (client as unknown as StoryClientPrivate).rpcClient; + + try { + await rpcClient.waitForTransactionReceipt({ + hash: fakeTxHash, + timeout: 1000, + }); + } catch { + // The transaction hash does not exist on-chain in this simulation. + } + + expect(resolverCalls).to.deep.equal([fakeTxHash]); + expect(realTxHash).to.be.a("string"); + }); + }); + + describe("[REQUIRES_ZERODEV] End-to-end AA wallet test", () => { + /** + * ZeroDev's `createKernelAccountClient` returns a viem smart account + * client whose `writeContract` internally sends a UserOperation, waits + * for the bundler receipt, and returns the **real tx hash**. + * + * Because of this, `txHashResolver` is NOT needed — the kernel client + * already resolves the UserOp hash to a real tx hash before returning. + */ + it("should create NFT collection using ZeroDev kernel client as wallet", async function () { + this.timeout(300000); + + const helper = await getZeroDevHelper(); + if (!helper) { + this.skip(); + return; + } + + const client = StoryClient.newClientUseWallet({ + chainId: "aeneid", + transport: http(RPC), + wallet: helper.wallet, + }); + + const unique = Date.now().toString().slice(-6); + const txData = await client.nftClient.createNFTCollection({ + name: `zerodev-e2e-${unique}`, + symbol: `ZD${unique.slice(-4)}`, + maxSupply: 100, + isPublicMinting: true, + mintOpen: true, + contractURI: "ipfs://zerodev-e2e", + mintFeeRecipient: TEST_WALLET_ADDRESS, + }); + + expect(txData.txHash).to.match(/^0x[a-fA-F0-9]{64}$/); + expect(txData.spgNftContract).to.match(/^0x[a-fA-F0-9]{40}$/); + }); + + /** + * Tests `txHashResolver` end-to-end with a wallet that returns the raw + * **UserOperation hash** from `writeContract` (simulating AA wallets that + * do NOT internally wait for the bundler receipt). + * + * The resolver receives the userOpHash, waits for the bundler to bundle + * it, and returns the real on-chain tx hash — which the SDK then uses + * for `waitForTransactionReceipt`. + */ + it("should create NFT collection with txHashResolver resolving userOpHash", async function () { + this.timeout(300000); + + const helper = await getZeroDevHelper(); + if (!helper) { + this.skip(); + return; + } + + const resolverCalls: Hash[] = []; + + const client = StoryClient.newClientUseWallet({ + chainId: "aeneid", + transport: http(RPC), + wallet: helper.rawUserOpWallet, + txHashResolver: async (userOpHash) => { + resolverCalls.push(userOpHash); + const receipt = await helper.bundlerClient.waitForUserOperationReceipt({ + hash: userOpHash, + timeout: USER_OP_RECEIPT_TIMEOUT, + }); + return receipt.receipt.transactionHash; + }, + }); + + const unique = Date.now().toString().slice(-6); + const txData = await client.nftClient.createNFTCollection({ + name: `zerodev-resolver-${unique}`, + symbol: `ZR${unique.slice(-4)}`, + maxSupply: 100, + isPublicMinting: true, + mintOpen: true, + contractURI: "ipfs://zerodev-resolver-e2e", + mintFeeRecipient: TEST_WALLET_ADDRESS, + }); + + // Verify the resolver was invoked and returned a valid hash. + expect(resolverCalls.length).to.be.greaterThan(0); + expect(txData.txHash).to.match(/^0x[a-fA-F0-9]{64}$/); + expect(txData.spgNftContract).to.match(/^0x[a-fA-F0-9]{40}$/); + }); + }); +}); diff --git a/packages/core-sdk/test/integration/utils/util.ts b/packages/core-sdk/test/integration/utils/util.ts index 16d377c11..0dac6583b 100644 --- a/packages/core-sdk/test/integration/utils/util.ts +++ b/packages/core-sdk/test/integration/utils/util.ts @@ -108,13 +108,7 @@ export const mintBySpg = async ( account: walletClient.account, }); - // Explicit gas params to avoid "replacement transaction underpriced" when same nonce is reused in CI - const hash = await walletClient.writeContract({ - ...request, - gas: 300_000n, - maxFeePerGas: 50_000_000_000n, - maxPriorityFeePerGas: 2_000_000_000n, - } as typeof request); + const hash = await walletClient.writeContract(request); const receipt = await publicClient.waitForTransactionReceipt({ hash, }); diff --git a/packages/core-sdk/test/unit/client.test.ts b/packages/core-sdk/test/unit/client.test.ts index d044c403f..4c90020e6 100644 --- a/packages/core-sdk/test/unit/client.test.ts +++ b/packages/core-sdk/test/unit/client.test.ts @@ -1,11 +1,28 @@ import { expect } from "chai"; -import { createWalletClient, http, Transport } from "viem"; +import { + createWalletClient, + Hash, + http, + PublicClient, + Transport, +} from "viem"; import { generatePrivateKey, privateKeyToAccount } from "viem/accounts"; -import { aeneid, StoryClient, StoryConfig } from "../../src/index"; +import { aeneid, StoryClient, StoryConfig, TxHashResolver } from "../../src/index"; const rpc = "http://127.0.0.1:8545"; +type WaitForReceiptArgs = Parameters[0]; + +type WaitForReceiptResult = ReturnType; + +type WaitForReceiptData = Awaited; + +type StoryClientPrivate = { + rpcClient: PublicClient; + applyTxHashResolver: (resolver: TxHashResolver) => void; +}; + describe("Test StoryClient", () => { describe("Test constructor", () => { it("should succeed when passing in default params", () => { @@ -65,6 +82,112 @@ describe("Test StoryClient", () => { }); expect(client).to.be.instanceOf(StoryClient); }); + + it("should succeed when passing in txHashResolver with newClient", () => { + const resolver: TxHashResolver = (hash) => Promise.resolve(hash); + const client = StoryClient.newClient({ + transport: http(rpc), + account: privateKeyToAccount(generatePrivateKey()), + txHashResolver: resolver, + }); + expect(client).to.be.instanceOf(StoryClient); + }); + + it("should succeed when passing in txHashResolver with newClientUseWallet", () => { + const resolver: TxHashResolver = (hash) => Promise.resolve(hash); + const client = StoryClient.newClientUseWallet({ + transport: http(rpc), + wallet: createWalletClient({ + account: privateKeyToAccount(generatePrivateKey()), + chain: aeneid, + transport: http(rpc), + }), + txHashResolver: resolver, + }); + expect(client).to.be.instanceOf(StoryClient); + }); + + it("should succeed when passing in txHashResolver with newClientUseAccount", () => { + const resolver: TxHashResolver = (hash) => Promise.resolve(hash); + const client = StoryClient.newClientUseAccount({ + transport: http(rpc), + account: privateKeyToAccount(generatePrivateKey()), + txHashResolver: resolver, + }); + expect(client).to.be.instanceOf(StoryClient); + }); + }); + + describe("Test txHashResolver", () => { + const userOpHash: Hash = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const resolvedTxHash: Hash = "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; + + it("should resolve hash before calling original waitForTransactionReceipt", async () => { + let resolverCallCount = 0; + let resolverArg: Hash | undefined; + let receiptHash: Hash | undefined; + + const resolver: TxHashResolver = (hash) => { + resolverCallCount += 1; + resolverArg = hash; + return Promise.resolve(resolvedTxHash); + }; + + const expectedReceipt = { + transactionHash: resolvedTxHash, + status: "success", + } as WaitForReceiptData; + const client = StoryClient.newClient({ + transport: http(rpc), + account: privateKeyToAccount(generatePrivateKey()), + }); + const internalClient = client as unknown as StoryClientPrivate; + + internalClient.rpcClient.waitForTransactionReceipt = ( + args: WaitForReceiptArgs, + ): WaitForReceiptResult => { + receiptHash = args.hash; + return Promise.resolve(expectedReceipt); + }; + + internalClient.applyTxHashResolver(resolver); + const result = await internalClient.rpcClient.waitForTransactionReceipt({ + hash: userOpHash, + }); + + expect(resolverCallCount).to.equal(1); + expect(resolverArg).to.equal(userOpHash); + expect(receiptHash).to.equal(resolvedTxHash); + expect(result.transactionHash).to.equal(resolvedTxHash); + }); + + it("should apply resolver during construction when txHashResolver is provided", async () => { + const resolverError = new Error("resolver-called"); + const resolver: TxHashResolver = () => Promise.reject(resolverError); + const client = StoryClient.newClient({ + transport: http(rpc), + account: privateKeyToAccount(generatePrivateKey()), + txHashResolver: resolver, + }); + const internalClient = client as unknown as StoryClientPrivate; + + let thrown: unknown; + try { + await internalClient.rpcClient.waitForTransactionReceipt({ hash: userOpHash }); + } catch (error) { + thrown = error; + } + expect(thrown).to.equal(resolverError); + }); + + it("should keep waitForTransactionReceipt callable when resolver is omitted", () => { + const client = StoryClient.newClient({ + transport: http(rpc), + account: privateKeyToAccount(generatePrivateKey()), + }); + const internalClient = client as unknown as StoryClientPrivate; + expect(internalClient.rpcClient.waitForTransactionReceipt).to.be.a("function"); + }); }); describe("Test getters", () => { diff --git a/packages/core-sdk/test/unit/resources/ipAsset.test.ts b/packages/core-sdk/test/unit/resources/ipAsset.test.ts index 0a36a5896..4025e22fd 100644 --- a/packages/core-sdk/test/unit/resources/ipAsset.test.ts +++ b/packages/core-sdk/test/unit/resources/ipAsset.test.ts @@ -6265,11 +6265,13 @@ describe("Test IpAssetClient", () => { describe("Batch Register Derivatives", () => { it("should throw error when child ip is not registered", async () => { stub(ipAssetClient.ipAssetRegistryClient, "isRegistered").resolves(false); - await expect(ipAssetClient.batchRegisterDerivatives({ - requests: [{ childIpId: ipId, parentIpIds: [ipId], licenseTermsIds: [1n,2n] }], - })).to.be.rejectedWith( - `Failed to batch register derivatives at index 0: Failed to register derivative: The child IP with id ${ipId} is not registered.`, - ); + await expect( + ipAssetClient.batchRegisterDerivatives({ + requests: [{ childIpId: ipId, parentIpIds: [ipId], licenseTermsIds: [1n, 2n] }], + }), + ).to.be.rejectedWith( + `Failed to batch register derivatives at index 0: Failed to register derivative: The child IP with id ${ipId} is not registered.`, + ); }); it("should throw error when parent ip is not registered", async () => { @@ -6282,7 +6284,8 @@ describe("Test IpAssetClient", () => { .resolves(true) .onCall(3) .resolves(false); - await expect(ipAssetClient.batchRegisterDerivatives({ + await expect( + ipAssetClient.batchRegisterDerivatives({ requests: [ { childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", @@ -6295,7 +6298,8 @@ describe("Test IpAssetClient", () => { licenseTermsIds: [1n], }, ], - })).to.be.rejectedWith( + }), + ).to.be.rejectedWith( `Failed to batch register derivatives at index 1: Failed to register derivative: The parent IP with id 0xd142822Dc1674154EaF4DDF38bbF7EF8f0D8ECe4 is not registered.`, ); }); @@ -6305,22 +6309,25 @@ describe("Test IpAssetClient", () => { stub(ipAssetClient.licenseRegistryReadOnlyClient, "getRoyaltyPercent").resolves({ royaltyPercent: 100, }); - await expect(ipAssetClient.batchRegisterDerivatives({ - requests: [ - { - childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", - parentIpIds: ["0xd142822Dc1674154EaF4DDF38bbF7EF8f0D8ECe4"], - licenseTermsIds: [1n,2n], - }, - ], - })).to.be.rejectedWith( + await expect( + ipAssetClient.batchRegisterDerivatives({ + requests: [ + { + childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", + parentIpIds: ["0xd142822Dc1674154EaF4DDF38bbF7EF8f0D8ECe4"], + licenseTermsIds: [1n, 2n], + }, + ], + }), + ).to.be.rejectedWith( "Failed to batch register derivatives at index 0: Failed to register derivative: The number of parent IP IDs must match the number of license terms IDs.", ); }); it("should throw error when maxMintingFee is less than 0", async () => { stub(ipAssetClient.ipAssetRegistryClient, "isRegistered").resolves(true); - await expect(ipAssetClient.batchRegisterDerivatives({ + await expect( + ipAssetClient.batchRegisterDerivatives({ requests: [ { childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", @@ -6331,14 +6338,16 @@ describe("Test IpAssetClient", () => { maxRevenueShare: 0, }, ], - })).to.be.rejectedWith( + }), + ).to.be.rejectedWith( "Failed to batch register derivatives at index 0: Failed to register derivative: The maxMintingFee must be greater than 0.", ); }); it("should throw error when maxRts is greater than MAX_ROYALTY_TOKEN", async () => { stub(ipAssetClient.ipAssetRegistryClient, "isRegistered").resolves(true); - await expect(ipAssetClient.batchRegisterDerivatives({ + await expect( + ipAssetClient.batchRegisterDerivatives({ requests: [ { childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", @@ -6349,9 +6358,10 @@ describe("Test IpAssetClient", () => { maxRevenueShare: 0, }, ], - })).to.be.rejectedWith( - `Failed to batch register derivatives at index 0: Failed to register derivative: The maxRts must be greater than 0 and less than ${MAX_ROYALTY_TOKEN}.`, - ); + }), + ).to.be.rejectedWith( + `Failed to batch register derivatives at index 0: Failed to register derivative: The maxRts must be greater than 0 and less than ${MAX_ROYALTY_TOKEN}.`, + ); }); it("should throw error when maxRevenueShare is less than royalty percent", async () => { @@ -6360,7 +6370,8 @@ describe("Test IpAssetClient", () => { }); stub(ipAssetClient.ipAssetRegistryClient, "isRegistered").resolves(true); stub(ipAssetClient.licenseRegistryReadOnlyClient, "hasIpAttachedLicenseTerms").resolves(true); - await expect(ipAssetClient.batchRegisterDerivatives({ + await expect( + ipAssetClient.batchRegisterDerivatives({ requests: [ { childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", @@ -6371,20 +6382,20 @@ describe("Test IpAssetClient", () => { maxRevenueShare: 1, }, ], - })).to.be.rejectedWith( + }), + ).to.be.rejectedWith( "Failed to batch register derivatives at index 0: Failed to register derivative: The royalty percent for the parent IP with id 0xd142822Dc1674154EaF4DDF38bbF7EF8f0D8ECe4 is greater than the maximum revenue share 1000000.", ); }); it("should throw error when license terms are not attached to parent ip", async () => { stub(IpAssetRegistryClient.prototype, "isRegistered").resolves(true); - stub(LicenseRegistryReadOnlyClient.prototype, "hasIpAttachedLicenseTerms").resolves( - false, - ); + stub(LicenseRegistryReadOnlyClient.prototype, "hasIpAttachedLicenseTerms").resolves(false); stub(LicenseRegistryReadOnlyClient.prototype, "getRoyaltyPercent").resolves({ royaltyPercent: 100, }); - await expect(ipAssetClient.batchRegisterDerivatives({ + await expect( + ipAssetClient.batchRegisterDerivatives({ requests: [ { childIpId: "0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c", @@ -6395,9 +6406,10 @@ describe("Test IpAssetClient", () => { maxRevenueShare: 0, }, ], - })).to.be.rejectedWith( - "Failed to batch register derivatives at index 0: Failed to register derivative: License terms id 1 must be attached to the parent ipId 0xd142822Dc1674154EaF4DDF38bbF7EF8f0D8ECe4 before registering derivative.", - ); + }), + ).to.be.rejectedWith( + "Failed to batch register derivatives at index 0: Failed to register derivative: License terms id 1 must be attached to the parent ipId 0xd142822Dc1674154EaF4DDF38bbF7EF8f0D8ECe4 before registering derivative.", + ); }); it("should return txHashes when batchRegisterDerivatives given correct args", async () => { diff --git a/packages/core-sdk/test/unit/resources/license.test.ts b/packages/core-sdk/test/unit/resources/license.test.ts index 2e61b50e4..4013c1ff7 100644 --- a/packages/core-sdk/test/unit/resources/license.test.ts +++ b/packages/core-sdk/test/unit/resources/license.test.ts @@ -1288,7 +1288,7 @@ describe("Test LicenseClient", () => { mintingFee: 0n, licensingHook: zeroAddress, hookData: zeroAddress, - commercialRevShare: 10*10**6, + commercialRevShare: 10 * 10 ** 6, disabled: false, expectMinimumGroupRewardShare: 1 * 10 ** 6, expectGroupRewardPool: zeroAddress, @@ -1309,7 +1309,7 @@ describe("Test LicenseClient", () => { mintingFee: 0n, licensingHook: "0xaBAD364Bfa41230272b08f171E0Ca939bD600478", hookData: zeroAddress, - commercialRevShare: 10 * 10**6, + commercialRevShare: 10 * 10 ** 6, disabled: false, expectMinimumGroupRewardShare: 1 * 10 ** 6, expectGroupRewardPool: zeroAddress, diff --git a/packages/core-sdk/test/unit/resources/nftClient.test.ts b/packages/core-sdk/test/unit/resources/nftClient.test.ts index ec8a11db0..ff623f7da 100644 --- a/packages/core-sdk/test/unit/resources/nftClient.test.ts +++ b/packages/core-sdk/test/unit/resources/nftClient.test.ts @@ -152,4 +152,22 @@ describe("Test NftClient", () => { expect(tokenURI).equal("test-uri"); }); }); + + describe("test for getNFTBalance", () => { + it("should successfully get NFT balance with default owner (wallet)", async () => { + stub(SpgnftImplReadOnlyClient.prototype, "balanceOf").resolves(5n); + const balance = await nftClient.getNFTBalance({ spgNftContract: mockERC20 }); + expect(balance).equal(5n); + }); + + it("should successfully get NFT balance with explicit owner", async () => { + const ownerAddress = "0x73fcb515cee99e4991465ef586cfe2b072ebb512"; + stub(SpgnftImplReadOnlyClient.prototype, "balanceOf").resolves(3n); + const balance = await nftClient.getNFTBalance({ + spgNftContract: mockERC20, + owner: ownerAddress, + }); + expect(balance).equal(3n); + }); + }); }); diff --git a/packages/core-sdk/test/unit/utils/oov3.test.ts b/packages/core-sdk/test/unit/utils/oov3.test.ts index 62cf5ab1a..cb97b6712 100644 --- a/packages/core-sdk/test/unit/utils/oov3.test.ts +++ b/packages/core-sdk/test/unit/utils/oov3.test.ts @@ -1,8 +1,11 @@ -import { expect } from "chai"; -import { stub } from "sinon"; +import { expect, use } from "chai"; +import chaiAsPromised from "chai-as-promised"; +import { stub, useFakeTimers } from "sinon"; import * as viem from "viem"; import { generatePrivateKey } from "viem/accounts"; +use(chaiAsPromised); + import { ArbitrationPolicyUmaClient } from "../../../src/abi/generated"; import { getAssertionDetails, getOov3Contract, settleAssertion } from "../../../src/utils/oov3"; import { mockAddress, txHash } from "../mockData"; @@ -53,18 +56,15 @@ describe("oov3", () => { it("should throw error when call settleAssertion given privateKey is not valid", async () => { // It's not possible to stub viem functions, so we need to replace the original functions with stubs. - // Must stub createPublicClient so disputeIdToAssertionId doesn't make real HTTP calls before writeContract. - Object.defineProperty(viem, "createPublicClient", { + Object.defineProperty(viem, "createWalletClient", { value: () => ({ - readContract: stub().resolves( - "0x0000000000000000000000000000000000000000000000000000000000000001", - ), - waitForTransactionReceipt: stub().resolves(txHash), + writeContract: stub().rejects(new Error("rpc error")), }), }); - Object.defineProperty(viem, "createWalletClient", { + Object.defineProperty(viem, "createPublicClient", { value: () => ({ - writeContract: stub().rejects(new Error("rpc error")), + waitForTransactionReceipt: stub().resolves(txHash), + readContract: stub().resolves(1n), }), }); await expect(settleAssertion(privateKey, 1n)).to.be.rejectedWith( @@ -86,7 +86,53 @@ describe("oov3", () => { }), }); const hash = await settleAssertion(privateKey, 1n); - expect(hash).to.equal(hash); + expect(hash).to.equal(txHash); + }); + + it("should retry and succeed when first attempt fails with Assertion not expired", async () => { + const clock = useFakeTimers(); + const writeContractStub = stub() + .onFirstCall() + .rejects(new Error("Assertion not expired")) + .onSecondCall() + .resolves(txHash); + Object.defineProperty(viem, "createWalletClient", { + value: () => ({ + writeContract: writeContractStub, + }), + }); + Object.defineProperty(viem, "createPublicClient", { + value: () => ({ + waitForTransactionReceipt: stub().resolves(txHash), + readContract: stub().resolves(1n), + }), + }); + const promise = settleAssertion(privateKey, 1n); + await clock.tickAsync(3000); + const hash = await promise; + expect(hash).to.equal(txHash); + expect(writeContractStub.callCount).to.equal(2); + }); + + it("should throw after max retries when Assertion not expired persists", async function () { + this.timeout(20000); + const clock = useFakeTimers(); + Object.defineProperty(viem, "createWalletClient", { + value: () => ({ + writeContract: stub().rejects(new Error("Assertion not expired")), + }), + }); + Object.defineProperty(viem, "createPublicClient", { + value: () => ({ + waitForTransactionReceipt: stub().resolves(txHash), + readContract: stub().resolves(1n), + }), + }); + const promise = settleAssertion(privateKey, 1n); + await clock.tickAsync(12000); + await expect(promise).to.be.rejectedWith( + "Failed to settle assertion: Assertion not expired", + ); }); }); }); diff --git a/packages/wagmi-generator/resolveProxyContracts.ts b/packages/wagmi-generator/resolveProxyContracts.ts index 509870c0d..4b14d20f4 100644 --- a/packages/wagmi-generator/resolveProxyContracts.ts +++ b/packages/wagmi-generator/resolveProxyContracts.ts @@ -1,10 +1,9 @@ -import type { Evaluate } from "@wagmi/cli/src/types"; -import type { ContractConfig } from "@wagmi/cli/src/config"; +import type { ContractConfig } from "@wagmi/cli"; import { Address } from "viem"; export type Config = { baseUrl: string; - contracts: Evaluate>[]; + contracts: Omit[]; chainId: number; }; export type ProxyMap = (config: { diff --git a/packages/wagmi-generator/sdk.ts b/packages/wagmi-generator/sdk.ts index 34241804c..35f71d35c 100644 --- a/packages/wagmi-generator/sdk.ts +++ b/packages/wagmi-generator/sdk.ts @@ -1,7 +1,6 @@ -import { Evaluate } from "@wagmi/core/internal"; -import { Plugin } from "@wagmi/cli/dist/types/config"; -import { RequiredBy } from "viem/_types/types/utils"; -import { Contract } from "@wagmi/cli/src/config"; +import type { Plugin } from "@wagmi/cli"; +import type { RequiredBy } from "viem/_types/types/utils"; +import type { Contract } from "@wagmi/cli"; import { pascalCase, camelCase } from "change-case"; import { AbiFunction, AbiEvent, AbiParameter } from "abitype"; @@ -10,6 +9,7 @@ export type SDKConfig = { whiteList?: Record>; }; +type Evaluate = { [K in keyof T]: T[K] } & unknown; type SDKResult = Evaluate>; type RunConfig = { contracts: Array; diff --git a/packages/wagmi-generator/wagmi.config.ts b/packages/wagmi-generator/wagmi.config.ts index 9e5e214c6..f5628346f 100644 --- a/packages/wagmi-generator/wagmi.config.ts +++ b/packages/wagmi-generator/wagmi.config.ts @@ -1,7 +1,6 @@ import { defineConfig } from "@wagmi/cli"; import { sdk } from "./sdk"; -import type { Evaluate } from "@wagmi/cli/src/types"; -import type { ContractConfig } from "@wagmi/cli/src/config"; +import type { ContractConfig } from "@wagmi/cli"; import { resolveProxyContracts } from "./resolveProxyContracts"; import { optimizedBlockExplorer } from "./optimizedBlockExplorer"; const aeneidChainId = 1315; @@ -9,7 +8,7 @@ const mainnetChainId = 1514; import "dotenv/config"; export default defineConfig(async () => { - const contracts: Evaluate>[] = [ + const contracts: Omit[] = [ { name: "AccessController", address: { @@ -390,6 +389,7 @@ export default defineConfig(async () => { "tokenURI", "Transfer", "hasRole", + "balanceOf", ], TotalLicenseTokenLimitHook: ["setTotalLicenseTokenLimit"], }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2e39fa9c9..e54027c62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,15 +45,6 @@ importers: '@changesets/cli': specifier: 2.29.6 version: 2.29.6(@types/node@20.19.9) - eslint: - specifier: ^9.26.0 - version: 9.27.0 - husky: - specifier: ^9.1.7 - version: 9.1.7 - lint-staged: - specifier: ^15.2.1 - version: 15.5.2 turbo: specifier: ^1.10.13 version: 1.13.4 @@ -118,6 +109,12 @@ importers: '@types/sinon': specifier: ^10.0.18 version: 10.0.20 + '@zerodev/ecdsa-validator': + specifier: ^5.4.9 + version: 5.4.9(@zerodev/sdk@5.5.7(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4)))(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4)) + '@zerodev/sdk': + specifier: ^5.5.7 + version: 5.5.7(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4)) c8: specifier: ^8.0.1 version: 8.0.1 @@ -2382,6 +2379,17 @@ packages: '@walletconnect/window-metadata@1.0.1': resolution: {integrity: sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==} + '@zerodev/ecdsa-validator@5.4.9': + resolution: {integrity: sha512-9NVE8/sQIKRo42UOoYKkNdmmHJY8VlT4t+2MHD2ipLg21cpbY9fS17TGZh61+Bl3qlqc8pP23I6f89z9im7kuA==} + peerDependencies: + '@zerodev/sdk': ^5.4.13 + viem: ^2.28.0 + + '@zerodev/sdk@5.5.7': + resolution: {integrity: sha512-Sf4G13yi131H8ujun64obvXIpk1UWn64GiGJjfvGx8aIKg+OWTRz9AZHgGKK+bE/evAmqIg4nchuSvKPhOau1w==} + peerDependencies: + viem: ^2.28.0 + abitype@0.10.3: resolution: {integrity: sha512-tRN+7XIa7J9xugdbRzFv/95ka5ivR/sRe01eiWvM0HWWjHuigSZEACgKa0sj4wGuekTDtghCx+5Izk/cOi78pQ==} peerDependencies: @@ -2470,18 +2478,10 @@ packages: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} - ansi-escapes@7.3.0: - resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==} - engines: {node: '>=18'} - ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-regex@6.2.2: - resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} - engines: {node: '>=12'} - ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -2494,10 +2494,6 @@ packages: resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} engines: {node: '>=10'} - ansi-styles@6.2.3: - resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} - engines: {node: '>=12'} - anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -2757,10 +2753,6 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} - chalk@5.6.2: - resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} - engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} - change-case@5.4.4: resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==} @@ -2797,14 +2789,6 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} - cli-cursor@5.0.0: - resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} - engines: {node: '>=18'} - - cli-truncate@4.0.0: - resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==} - engines: {node: '>=18'} - cliui@6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} @@ -2832,9 +2816,6 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - command-line-args@5.2.1: resolution: {integrity: sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==} engines: {node: '>=4.0.0'} @@ -2847,10 +2828,6 @@ packages: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} - commander@13.1.0: - resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==} - engines: {node: '>=18'} - commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -3101,9 +3078,6 @@ packages: elliptic@6.6.1: resolution: {integrity: sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==} - emoji-regex@10.6.0: - resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} - emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -3132,10 +3106,6 @@ packages: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} - environment@1.1.0: - resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} - engines: {node: '>=18'} - error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -3351,10 +3321,6 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} - execa@8.0.1: - resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} - engines: {node: '>=16.17'} - exponential-backoff@3.1.2: resolution: {integrity: sha512-8QxYTVXUkuy7fIIoitQkPwGonB8F3Zj8eEO8Sqg9Zv/bkI7RJAzowee4gr81Hak/dUTpA2Z7VfQgoijjPNlUZA==} @@ -3512,10 +3478,6 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-east-asian-width@1.5.0: - resolution: {integrity: sha512-CQ+bEO+Tva/qlmw24dCejulK5pMzVnUOFOijVogd3KQs07HnRIgp8TGipvCCRT06xeYEbpbgwaCxglFyiuIcmA==} - engines: {node: '>=18'} - get-func-name@2.0.2: resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} @@ -3531,10 +3493,6 @@ packages: resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} engines: {node: '>= 0.4'} - get-stream@8.0.1: - resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} - engines: {node: '>=16'} - get-symbol-description@1.1.0: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} @@ -3680,15 +3638,6 @@ packages: resolution: {integrity: sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==} hasBin: true - human-signals@5.0.0: - resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} - engines: {node: '>=16.17.0'} - - husky@9.1.7: - resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} - engines: {node: '>=18'} - hasBin: true - i18next-browser-languagedetector@7.1.0: resolution: {integrity: sha512-cr2k7u1XJJ4HTOjM9GyOMtbOA47RtUoWRAtt52z43r3AoMs2StYKyjS3URPhzHaf+mn10hY9dZWamga5WPQjhA==} @@ -3828,14 +3777,6 @@ packages: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} - is-fullwidth-code-point@4.0.0: - resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} - engines: {node: '>=12'} - - is-fullwidth-code-point@5.1.0: - resolution: {integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==} - engines: {node: '>=18'} - is-generator-function@1.1.0: resolution: {integrity: sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==} engines: {node: '>= 0.4'} @@ -3886,10 +3827,6 @@ packages: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} - is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - is-string@1.1.1: resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==} engines: {node: '>= 0.4'} @@ -4118,22 +4055,9 @@ packages: lighthouse-logger@1.4.2: resolution: {integrity: sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==} - lilconfig@3.1.3: - resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} - engines: {node: '>=14'} - lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - lint-staged@15.5.2: - resolution: {integrity: sha512-YUSOLq9VeRNAo/CTaVmhGDKG+LBtA8KF1X4K5+ykMSwWST1vDxJRB2kv2COgLb1fvpCo+A/y9A0G0znNVmdx4w==} - engines: {node: '>=18.12.0'} - hasBin: true - - listr2@8.3.3: - resolution: {integrity: sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==} - engines: {node: '>=18.0.0'} - lit-element@3.3.3: resolution: {integrity: sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==} @@ -4205,10 +4129,6 @@ packages: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} engines: {node: '>=10'} - log-update@6.1.0: - resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==} - engines: {node: '>=18'} - loose-envify@1.4.0: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true @@ -4337,14 +4257,6 @@ packages: engines: {node: '>=4'} hasBin: true - mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - - mimic-function@5.0.1: - resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} - engines: {node: '>=18'} - minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} @@ -4475,10 +4387,6 @@ packages: engines: {node: '>=10'} hasBin: true - npm-run-path@5.3.0: - resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - nullthrows@1.1.1: resolution: {integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==} @@ -4534,14 +4442,6 @@ packages: once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - - onetime@7.0.0: - resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} - engines: {node: '>=18'} - open@7.4.2: resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==} engines: {node: '>=8'} @@ -4658,10 +4558,6 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} - path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} @@ -4694,11 +4590,6 @@ packages: resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} engines: {node: '>=12'} - pidtree@0.6.0: - resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} - engines: {node: '>=0.10'} - hasBin: true - pify@3.0.0: resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} engines: {node: '>=4'} @@ -4974,17 +4865,10 @@ packages: engines: {node: '>= 0.4'} hasBin: true - restore-cursor@5.1.0: - resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} - engines: {node: '>=18'} - reusify@1.1.0: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rfdc@1.4.1: - resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} - rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported @@ -5135,14 +5019,6 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} - slice-ansi@5.0.0: - resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} - engines: {node: '>=12'} - - slice-ansi@7.1.2: - resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==} - engines: {node: '>=18'} - socket.io-client@4.8.1: resolution: {integrity: sha512-hJVXfu3E28NmzGk8o1sHhN3om52tRvwYeidbj7xKy2eIIse5IoKX3USlS6Tqt3BHAtflLIkCQBkzVrEEfWUyYQ==} engines: {node: '>=10.0.0'} @@ -5216,10 +5092,6 @@ packages: resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} engines: {node: '>=4'} - string-argv@0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - string-format@2.0.0: resolution: {integrity: sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==} @@ -5227,10 +5099,6 @@ packages: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} - string-width@7.2.0: - resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} - engines: {node: '>=18'} - string.prototype.trim@1.2.10: resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==} engines: {node: '>= 0.4'} @@ -5256,18 +5124,10 @@ packages: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} - strip-ansi@7.2.0: - resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} - engines: {node: '>=12'} - strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} - strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} @@ -5791,10 +5651,6 @@ packages: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} - wrap-ansi@9.0.2: - resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==} - engines: {node: '>=18'} - wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -5848,11 +5704,6 @@ packages: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} - yaml@2.8.2: - resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==} - engines: {node: '>= 14.6'} - hasBin: true - yargs-parser@18.1.3: resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} engines: {node: '>=6'} @@ -9654,6 +9505,16 @@ snapshots: '@walletconnect/window-getters': 1.0.1 tslib: 1.14.1 + '@zerodev/ecdsa-validator@5.4.9(@zerodev/sdk@5.5.7(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4)))(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4))': + dependencies: + '@zerodev/sdk': 5.5.7(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4)) + viem: 2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4) + + '@zerodev/sdk@5.5.7(viem@2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4))': + dependencies: + semver: 7.7.2 + viem: 2.29.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@6.0.5)(zod@3.24.4) + abitype@0.10.3(typescript@5.8.3)(zod@3.24.4): optionalDependencies: typescript: 5.8.3 @@ -9720,14 +9581,8 @@ snapshots: ansi-colors@4.1.3: {} - ansi-escapes@7.3.0: - dependencies: - environment: 1.1.0 - ansi-regex@5.0.1: {} - ansi-regex@6.2.2: {} - ansi-styles@3.2.1: dependencies: color-convert: 1.9.3 @@ -9738,8 +9593,6 @@ snapshots: ansi-styles@5.2.0: {} - ansi-styles@6.2.3: {} - anymatch@3.1.3: dependencies: normalize-path: 3.0.0 @@ -10058,8 +9911,6 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 - chalk@5.6.2: {} - change-case@5.4.4: {} chardet@2.1.1: {} @@ -10112,15 +9963,6 @@ snapshots: ci-info@3.9.0: {} - cli-cursor@5.0.0: - dependencies: - restore-cursor: 5.1.0 - - cli-truncate@4.0.0: - dependencies: - slice-ansi: 5.0.0 - string-width: 7.2.0 - cliui@6.0.0: dependencies: string-width: 4.2.3 @@ -10153,8 +9995,6 @@ snapshots: color-name@1.1.4: {} - colorette@2.0.20: {} - command-line-args@5.2.1: dependencies: array-back: 3.1.0 @@ -10171,8 +10011,6 @@ snapshots: commander@12.1.0: {} - commander@13.1.0: {} - commander@2.20.3: {} commondir@1.0.1: {} @@ -10400,8 +10238,6 @@ snapshots: minimalistic-assert: 1.0.1 minimalistic-crypto-utils: 1.0.1 - emoji-regex@10.6.0: {} - emoji-regex@8.0.0: {} encode-utf8@1.0.3: {} @@ -10433,8 +10269,6 @@ snapshots: ansi-colors: 4.1.3 strip-ansi: 6.0.1 - environment@1.1.0: {} - error-ex@1.3.2: dependencies: is-arrayish: 0.2.1 @@ -10760,18 +10594,6 @@ snapshots: events@3.3.0: {} - execa@8.0.1: - dependencies: - cross-spawn: 7.0.6 - get-stream: 8.0.1 - human-signals: 5.0.0 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.3.0 - onetime: 6.0.0 - signal-exit: 4.1.0 - strip-final-newline: 3.0.0 - exponential-backoff@3.1.2: {} extendable-error@0.1.7: {} @@ -10932,8 +10754,6 @@ snapshots: get-caller-file@2.0.5: {} - get-east-asian-width@1.5.0: {} - get-func-name@2.0.2: {} get-intrinsic@1.3.0: @@ -10956,8 +10776,6 @@ snapshots: dunder-proto: 1.0.1 es-object-atoms: 1.1.1 - get-stream@8.0.1: {} - get-symbol-description@1.1.0: dependencies: call-bound: 1.0.4 @@ -11127,10 +10945,6 @@ snapshots: human-id@4.1.1: {} - human-signals@5.0.0: {} - - husky@9.1.7: {} - i18next-browser-languagedetector@7.1.0: dependencies: '@babel/runtime': 7.27.6 @@ -11261,12 +11075,6 @@ snapshots: is-fullwidth-code-point@3.0.0: {} - is-fullwidth-code-point@4.0.0: {} - - is-fullwidth-code-point@5.1.0: - dependencies: - get-east-asian-width: 1.5.0 - is-generator-function@1.1.0: dependencies: call-bound: 1.0.4 @@ -11314,8 +11122,6 @@ snapshots: is-stream@2.0.1: {} - is-stream@3.0.0: {} - is-string@1.1.1: dependencies: call-bound: 1.0.4 @@ -11580,34 +11386,8 @@ snapshots: transitivePeerDependencies: - supports-color - lilconfig@3.1.3: {} - lines-and-columns@1.2.4: {} - lint-staged@15.5.2: - dependencies: - chalk: 5.6.2 - commander: 13.1.0 - debug: 4.4.1(supports-color@8.1.1) - execa: 8.0.1 - lilconfig: 3.1.3 - listr2: 8.3.3 - micromatch: 4.0.8 - pidtree: 0.6.0 - string-argv: 0.3.2 - yaml: 2.8.2 - transitivePeerDependencies: - - supports-color - - listr2@8.3.3: - dependencies: - cli-truncate: 4.0.0 - colorette: 2.0.20 - eventemitter3: 5.0.1 - log-update: 6.1.0 - rfdc: 1.4.1 - wrap-ansi: 9.0.2 - lit-element@3.3.3: dependencies: '@lit-labs/ssr-dom-shim': 1.3.0 @@ -11679,14 +11459,6 @@ snapshots: chalk: 4.1.2 is-unicode-supported: 0.1.0 - log-update@6.1.0: - dependencies: - ansi-escapes: 7.3.0 - cli-cursor: 5.0.0 - slice-ansi: 7.1.2 - strip-ansi: 7.2.0 - wrap-ansi: 9.0.2 - loose-envify@1.4.0: dependencies: js-tokens: 4.0.0 @@ -11923,10 +11695,6 @@ snapshots: mime@1.6.0: {} - mimic-fn@4.0.0: {} - - mimic-function@5.0.1: {} - minimalistic-assert@1.0.1: {} minimalistic-crypto-utils@1.0.1: {} @@ -12073,10 +11841,6 @@ snapshots: npm-bundled: 1.1.2 npm-normalize-package-bin: 1.0.1 - npm-run-path@5.3.0: - dependencies: - path-key: 4.0.0 - nullthrows@1.1.1: {} ob1@0.82.5: @@ -12144,14 +11908,6 @@ snapshots: dependencies: wrappy: 1.0.2 - onetime@6.0.0: - dependencies: - mimic-fn: 4.0.0 - - onetime@7.0.0: - dependencies: - mimic-function: 5.0.1 - open@7.4.2: dependencies: is-docker: 2.2.1 @@ -12304,8 +12060,6 @@ snapshots: path-key@3.1.1: {} - path-key@4.0.0: {} - path-parse@1.0.7: {} path-to-regexp@8.2.0: {} @@ -12324,8 +12078,6 @@ snapshots: picomatch@4.0.2: {} - pidtree@0.6.0: {} - pify@3.0.0: {} pify@4.0.1: {} @@ -12635,15 +12387,8 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - restore-cursor@5.1.0: - dependencies: - onetime: 7.0.0 - signal-exit: 4.1.0 - reusify@1.1.0: {} - rfdc@1.4.1: {} - rimraf@3.0.2: dependencies: glob: 7.2.3 @@ -12846,16 +12591,6 @@ snapshots: slash@3.0.0: {} - slice-ansi@5.0.0: - dependencies: - ansi-styles: 6.2.3 - is-fullwidth-code-point: 4.0.0 - - slice-ansi@7.1.2: - dependencies: - ansi-styles: 6.2.3 - is-fullwidth-code-point: 5.1.0 - socket.io-client@4.8.1(bufferutil@4.0.9)(utf-8-validate@6.0.5): dependencies: '@socket.io/component-emitter': 3.1.2 @@ -12922,8 +12657,6 @@ snapshots: strict-uri-encode@2.0.0: {} - string-argv@0.3.2: {} - string-format@2.0.0: {} string-width@4.2.3: @@ -12932,12 +12665,6 @@ snapshots: is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 - string-width@7.2.0: - dependencies: - emoji-regex: 10.6.0 - get-east-asian-width: 1.5.0 - strip-ansi: 7.2.0 - string.prototype.trim@1.2.10: dependencies: call-bind: 1.0.8 @@ -12977,14 +12704,8 @@ snapshots: dependencies: ansi-regex: 5.0.1 - strip-ansi@7.2.0: - dependencies: - ansi-regex: 6.2.2 - strip-bom@3.0.0: {} - strip-final-newline@3.0.0: {} - strip-json-comments@3.1.1: {} stylis@4.2.0: {} @@ -13571,12 +13292,6 @@ snapshots: string-width: 4.2.3 strip-ansi: 6.0.1 - wrap-ansi@9.0.2: - dependencies: - ansi-styles: 6.2.3 - string-width: 7.2.0 - strip-ansi: 7.2.0 - wrappy@1.0.2: {} write-file-atomic@4.0.2: @@ -13606,8 +13321,6 @@ snapshots: yaml@1.10.2: {} - yaml@2.8.2: {} - yargs-parser@18.1.3: dependencies: camelcase: 5.3.1 diff --git a/scripts/precommit-eslint-core-sdk.mjs b/scripts/precommit-eslint-core-sdk.mjs deleted file mode 100644 index 967e34641..000000000 --- a/scripts/precommit-eslint-core-sdk.mjs +++ /dev/null @@ -1,33 +0,0 @@ -import { spawnSync } from 'node:child_process'; -import { join } from 'node:path'; - -const CORE_SDK_PREFIX = 'packages/core-sdk/'; - -const inputFiles = process.argv.slice(2); -const coreSdkFiles = inputFiles - .filter((f) => typeof f === 'string' && f.startsWith(CORE_SDK_PREFIX)) - .map((f) => f.slice(CORE_SDK_PREFIX.length)); - -// If nothing matched, do nothing (pre-commit may still call the hook). -if (coreSdkFiles.length === 0) { - process.exit(0); -} - -const root = process.cwd(); -const coreSdkDir = join(root, 'packages/core-sdk'); -// pnpm store may put bins in core-sdk/node_modules/.bin or root node_modules/.bin -const coreSdkBin = join(coreSdkDir, 'node_modules/.bin'); -const rootBin = join(root, 'node_modules/.bin'); -const sep = process.platform === 'win32' ? ';' : ':'; -const env = { - ...process.env, - PATH: [coreSdkBin, rootBin, process.env.PATH].filter(Boolean).join(sep), -}; - -const result = spawnSync( - 'pnpm', - ['run', 'lint', '--', ...coreSdkFiles], - { cwd: coreSdkDir, stdio: 'inherit', env }, -); - -process.exit(result.status ?? 1); diff --git a/scripts/precommit-run-eslint.mjs b/scripts/precommit-run-eslint.mjs deleted file mode 100644 index 9cc4d64d0..000000000 --- a/scripts/precommit-run-eslint.mjs +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env node -/** - * Pre-commit: run ESLint on staged packages/core-sdk files. - * Replicates lint-staged behavior so the hook works without relying on - * lint-staged binary in PATH (e.g. under pre-commit framework). - */ -import { execSync, spawnSync } from 'node:child_process'; -import { fileURLToPath } from 'node:url'; -import { dirname, join } from 'node:path'; - -const root = join(dirname(fileURLToPath(import.meta.url)), '..'); -const CORE_SDK_PREFIX = 'packages/core-sdk/'; -const EXT_RE = /\.(ts|tsx|js|jsx|mjs|cjs)$/i; - -const out = execSync('git diff --cached --name-only', { encoding: 'utf-8', cwd: root }); -const staged = out - .split('\n') - .map((s) => s.trim()) - .filter((s) => s.startsWith(CORE_SDK_PREFIX) && EXT_RE.test(s)); - -if (staged.length === 0) { - process.exit(0); -} - -const result = spawnSync( - process.execPath, - [join(root, 'scripts/precommit-eslint-core-sdk.mjs'), ...staged], - { stdio: 'inherit', cwd: root }, -); -process.exit(result.status ?? 1);