@story-protocol/core-sdk 1.2.0-rc.0 → 1.2.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/abi/generated.d.ts +434 -1128
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +4 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +1 -1
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +3 -1
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +39 -8
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +1 -1
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +2 -2
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +3 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +28 -1
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +5 -6
- package/dist/declarations/src/utils/chain.d.ts.map +1 -1
- package/dist/declarations/src/utils/ipfs.d.ts +4 -0
- package/dist/declarations/src/utils/ipfs.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +593 -317
- package/dist/story-protocol-core-sdk.cjs.prod.js +593 -317
- package/dist/story-protocol-core-sdk.esm.js +588 -317
- package/package.json +3 -1
@@ -5,6 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var viem = require('viem');
|
6
6
|
var dotenv = require('dotenv');
|
7
7
|
var utils = require('viem/utils');
|
8
|
+
var cid = require('multiformats/cid');
|
9
|
+
var bs58 = require('bs58');
|
10
|
+
var base58 = require('multiformats/bases/base58');
|
11
|
+
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
8
13
|
|
9
14
|
function _interopNamespace(e) {
|
10
15
|
if (e && e.__esModule) return e;
|
@@ -25,6 +30,7 @@ function _interopNamespace(e) {
|
|
25
30
|
}
|
26
31
|
|
27
32
|
var dotenv__namespace = /*#__PURE__*/_interopNamespace(dotenv);
|
33
|
+
var bs58__default = /*#__PURE__*/_interopDefault(bs58);
|
28
34
|
|
29
35
|
function toPrimitive(t, r) {
|
30
36
|
if ("object" != typeof t || !t) return t;
|
@@ -532,9 +538,9 @@ function _objectWithoutProperties(source, excluded) {
|
|
532
538
|
return target;
|
533
539
|
}
|
534
540
|
|
535
|
-
var
|
536
|
-
id:
|
537
|
-
name: "
|
541
|
+
var odyssey = utils.defineChain({
|
542
|
+
id: 1516,
|
543
|
+
name: "odyssey",
|
538
544
|
nativeCurrency: {
|
539
545
|
name: "IP",
|
540
546
|
symbol: "IP",
|
@@ -542,17 +548,17 @@ var iliad = utils.defineChain({
|
|
542
548
|
},
|
543
549
|
rpcUrls: {
|
544
550
|
"default": {
|
545
|
-
http: ["https://
|
546
|
-
webSocket: ["wss://story-network.rpc.caldera.xyz/ws"]
|
551
|
+
http: ["https://odyssey.storyrpc.io/"]
|
547
552
|
}
|
548
553
|
},
|
549
554
|
blockExplorers: {
|
550
555
|
"default": {
|
551
556
|
name: "Explorer",
|
552
|
-
url: "https://testnet.storyscan.xyz"
|
557
|
+
url: "https://odyssey-testnet-explorer.storyscan.xyz/"
|
553
558
|
}
|
554
559
|
},
|
555
560
|
contracts: {
|
561
|
+
//TODO: need to confirm the addresses
|
556
562
|
multicall3: {
|
557
563
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
558
564
|
blockCreated: 5882
|
@@ -562,17 +568,17 @@ var iliad = utils.defineChain({
|
|
562
568
|
});
|
563
569
|
|
564
570
|
function chainStringToViemChain(chainId) {
|
565
|
-
switch (chainId) {
|
566
|
-
case "
|
567
|
-
case "
|
568
|
-
return
|
571
|
+
switch (chainId.toString()) {
|
572
|
+
case "1516":
|
573
|
+
case "odyssey":
|
574
|
+
return odyssey;
|
569
575
|
default:
|
570
576
|
throw new Error("chainId ".concat(chainId, " not supported"));
|
571
577
|
}
|
572
578
|
}
|
573
579
|
var chain = {
|
574
|
-
|
575
|
-
|
580
|
+
odyssey: "1516",
|
581
|
+
1516: "1516"
|
576
582
|
};
|
577
583
|
var getAddress$1 = function getAddress(address, name, chainId) {
|
578
584
|
if (!viem.isAddress(address, {
|
@@ -657,105 +663,111 @@ function _inherits(subClass, superClass) {
|
|
657
663
|
*
|
658
664
|
*/var accessControllerAbi=[{type:"constructor",inputs:[{name:"ipAccountRegistry",internalType:"address",type:"address"},{name:"moduleRegistry",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"signer",internalType:"address",type:"address"},{name:"to",internalType:"address",type:"address"}],name:"AccessController__BothCallerAndRecipientAreNotRegisteredModule"},{type:"error",inputs:[],name:"AccessController__CallerIsNotIPAccountOrOwner"},{type:"error",inputs:[{name:"ipAccount",internalType:"address",type:"address"}],name:"AccessController__IPAccountIsNotValid"},{type:"error",inputs:[],name:"AccessController__IPAccountIsZeroAddress"},{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:"AccessController__PermissionDenied"},{type:"error",inputs:[],name:"AccessController__PermissionIsNotValid"},{type:"error",inputs:[],name:"AccessController__SignerIsZeroAddress"},{type:"error",inputs:[],name:"AccessController__ToAndFuncAreZeroAddressShouldCallSetAllPermissions"},{type:"error",inputs:[],name:"AccessController__ZeroAccessManager"},{type:"error",inputs:[],name:"AccessController__ZeroIPAccountRegistry"},{type:"error",inputs:[],name:"AccessController__ZeroModuleRegistry"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"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:"FailedInnerCall"},{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:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"ipAccountOwner",internalType:"address",type:"address",indexed:false},{name:"ipAccount",internalType:"address",type:"address",indexed:true},{name:"signer",internalType:"address",type:"address",indexed:true},{name:"to",internalType:"address",type:"address",indexed:true},{name:"func",internalType:"bytes4",type:"bytes4",indexed:false},{name:"permission",internalType:"uint8",type:"uint8",indexed:false}],name:"PermissionSet"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"IP_ACCOUNT_REGISTRY",outputs:[{name:"",internalType:"contract IIPAccountRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"MODULE_REGISTRY",outputs:[{name:"",internalType:"contract IModuleRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipAccount",internalType:"address",type:"address"},{name:"signer",internalType:"address",type:"address"},{name:"to",internalType:"address",type:"address"},{name:"func",internalType:"bytes4",type:"bytes4"}],name:"checkPermission",outputs:[],stateMutability:"view"},{type:"function",inputs:[{name:"ipAccount",internalType:"address",type:"address"},{name:"signer",internalType:"address",type:"address"},{name:"to",internalType:"address",type:"address"},{name:"func",internalType:"bytes4",type:"bytes4"}],name:"getPermission",outputs:[{name:"",internalType:"uint8",type:"uint8"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipAccount",internalType:"address",type:"address"},{name:"signer",internalType:"address",type:"address"},{name:"permission",internalType:"uint8",type:"uint8"}],name:"setAllPermissions",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{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:"setBatchPermissions",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipAccount",internalType:"address",type:"address"},{name:"signer",internalType:"address",type:"address"},{name:"to",internalType:"address",type:"address"},{name:"func",internalType:"bytes4",type:"bytes4"},{name:"permission",internalType:"uint8",type:"uint8"}],name:"setPermission",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
659
665
|
*
|
660
|
-
*/var accessControllerAddress={
|
666
|
+
*/var accessControllerAddress={1516:"0xf709c8001E94e2ca6F98b7fFBCd5BD3943E46D81"};// CoreMetadataModule
|
661
667
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
662
668
|
/**
|
663
669
|
*
|
664
670
|
*/var coreMetadataModuleAbi=[{type:"constructor",inputs:[{name:"accessController",internalType:"address",type:"address"},{name:"ipAccountRegistry",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"ipAccount",internalType:"address",type:"address"}],name:"AccessControlled__NotIpAccount"},{type:"error",inputs:[],name:"AccessControlled__ZeroAddress"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"CoreMetadataModule__MetadataAlreadyFrozen"},{type:"error",inputs:[],name:"CoreMetadataModule__ZeroAccessManager"},{type:"error",inputs:[{name:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{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:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true}],name:"MetadataFrozen"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"metadataURI",internalType:"string",type:"string",indexed:false},{name:"metadataHash",internalType:"bytes32",type:"bytes32",indexed:false}],name:"MetadataURISet"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"nftTokenURI",internalType:"string",type:"string",indexed:false},{name:"nftMetadataHash",internalType:"bytes32",type:"bytes32",indexed:false}],name:"NFTTokenURISet"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_REGISTRY",outputs:[{name:"",internalType:"contract IIPAccountRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"freezeMetadata",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"pure"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{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:"setAll",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"metadataURI",internalType:"string",type:"string"},{name:"metadataHash",internalType:"bytes32",type:"bytes32"}],name:"setMetadataURI",outputs:[],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:"ipId",internalType:"address",type:"address"},{name:"nftMetadataHash",internalType:"bytes32",type:"bytes32"}],name:"updateNftTokenURI",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
665
671
|
*
|
666
|
-
*/var coreMetadataModuleAddress={
|
672
|
+
*/var coreMetadataModuleAddress={1516:"0x89630Ccf23277417FBdfd3076C702F5248267e78"};// DerivativeWorkflows
|
667
673
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
668
674
|
/**
|
669
675
|
*
|
670
676
|
*/var derivativeWorkflowsAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"account",internalType:"address",type:"address"}],name:"AddressInsufficientBalance"},{type:"error",inputs:[{name:"tokenId",internalType:"uint256",type:"uint256"},{name:"caller",internalType:"address",type:"address"},{name:"actualTokenOwner",internalType:"address",type:"address"}],name:"DerivativeWorkflows__CallerAndNotTokenOwner"},{type:"error",inputs:[],name:"DerivativeWorkflows__EmptyLicenseTokens"},{type:"error",inputs:[],name:"DerivativeWorkflows__ZeroAddressParam"},{type:"error",inputs:[{name:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{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:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"error",inputs:[],name:"Workflow__CallerNotAuthorizedToMint"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"CORE_METADATA_MODULE",outputs:[{name:"",internalType:"contract ICoreMetadataModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_TOKEN",outputs:[{name:"",internalType:"contract ILicenseToken",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"PIL_TEMPLATE",outputs:[{name:"",internalType:"contract IPILicenseTemplate",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract IRoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{name:"spgNftContract",internalType:"address",type:"address"},{name:"derivData",internalType:"struct WorkflowStructs.MakeDerivative",type:"tuple",components:[{name:"parentIpIds",internalType:"address[]",type:"address[]"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsIds",internalType:"uint256[]",type:"uint256[]"},{name:"royaltyContext",internalType:"bytes",type:"bytes"}]},{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:"recipient",internalType:"address",type:"address"}],name:"mintAndRegisterIpAndMakeDerivative",outputs:[{name:"ipId",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"spgNftContract",internalType:"address",type:"address"},{name:"licenseTokenIds",internalType:"uint256[]",type:"uint256[]"},{name:"royaltyContext",internalType:"bytes",type:"bytes"},{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:"recipient",internalType:"address",type:"address"}],name:"mintAndRegisterIpAndMakeDerivativeWithLicenseTokens",outputs:[{name:"ipId",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],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:"",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"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"nftContract",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"},{name:"derivData",internalType:"struct WorkflowStructs.MakeDerivative",type:"tuple",components:[{name:"parentIpIds",internalType:"address[]",type:"address[]"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsIds",internalType:"uint256[]",type:"uint256[]"},{name:"royaltyContext",internalType:"bytes",type:"bytes"}]},{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:"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:"sigRegister",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:"registerIpAndMakeDerivative",outputs:[{name:"ipId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{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:"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:"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:"sigRegister",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:"registerIpAndMakeDerivativeWithLicenseTokens",outputs:[{name:"ipId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newNftContractBeacon",internalType:"address",type:"address"}],name:"setNftContractBeacon",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
671
677
|
*
|
672
|
-
*/var derivativeWorkflowsAddress={
|
678
|
+
*/var derivativeWorkflowsAddress={1516:"0xa8815CEB96857FFb8f5F8ce920b1Ae6D70254C7B"};// DisputeModule
|
673
679
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
674
680
|
/**
|
675
681
|
*
|
676
682
|
*/var disputeModuleAbi=[{type:"constructor",inputs:[{name:"accessController",internalType:"address",type:"address"},{name:"ipAssetRegistry",internalType:"address",type:"address"},{name:"licenseRegistry",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"ipAccount",internalType:"address",type:"address"}],name:"AccessControlled__NotIpAccount"},{type:"error",inputs:[],name:"AccessControlled__ZeroAddress"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"DisputeModule__NotAbleToResolve"},{type:"error",inputs:[],name:"DisputeModule__NotAllowedToWhitelist"},{type:"error",inputs:[],name:"DisputeModule__NotDerivative"},{type:"error",inputs:[],name:"DisputeModule__NotDisputeInitiator"},{type:"error",inputs:[],name:"DisputeModule__NotInDisputeState"},{type:"error",inputs:[],name:"DisputeModule__NotRegisteredIpId"},{type:"error",inputs:[],name:"DisputeModule__NotWhitelistedArbitrationPolicy"},{type:"error",inputs:[],name:"DisputeModule__NotWhitelistedArbitrationRelayer"},{type:"error",inputs:[],name:"DisputeModule__NotWhitelistedDisputeTag"},{type:"error",inputs:[],name:"DisputeModule__ParentDisputeNotResolved"},{type:"error",inputs:[],name:"DisputeModule__ParentIpIdMismatch"},{type:"error",inputs:[],name:"DisputeModule__ParentNotTagged"},{type:"error",inputs:[],name:"DisputeModule__ZeroAccessController"},{type:"error",inputs:[],name:"DisputeModule__ZeroAccessManager"},{type:"error",inputs:[],name:"DisputeModule__ZeroArbitrationPolicy"},{type:"error",inputs:[],name:"DisputeModule__ZeroArbitrationRelayer"},{type:"error",inputs:[],name:"DisputeModule__ZeroDisputeEvidenceHash"},{type:"error",inputs:[],name:"DisputeModule__ZeroDisputeTag"},{type:"error",inputs:[],name:"DisputeModule__ZeroIPAssetRegistry"},{type:"error",inputs:[],name:"DisputeModule__ZeroLicenseRegistry"},{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:"FailedInnerCall"},{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:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"arbitrationPolicy",internalType:"address",type:"address",indexed:false}],name:"ArbitrationPolicySet"},{type:"event",anonymous:false,inputs:[{name:"arbitrationPolicy",internalType:"address",type:"address",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"ArbitrationPolicyWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"arbitrationPolicy",internalType:"address",type:"address",indexed:false},{name:"arbitrationRelayer",internalType:"address",type:"address",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"ArbitrationRelayerWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"arbitrationPolicy",internalType:"address",type:"address",indexed:false}],name:"DefaultArbitrationPolicyUpdated"},{type:"event",anonymous:false,inputs:[{name:"parentIpId",internalType:"address",type:"address",indexed:false},{name:"derivativeIpId",internalType:"address",type:"address",indexed:false},{name:"parentDisputeId",internalType:"uint256",type:"uint256",indexed:false},{name:"tag",internalType:"bytes32",type:"bytes32",indexed:false}],name:"DerivativeTaggedOnParentInfringement"},{type:"event",anonymous:false,inputs:[{name:"disputeId",internalType:"uint256",type:"uint256",indexed:false},{name:"data",internalType:"bytes",type:"bytes",indexed:false}],name:"DisputeCancelled"},{type:"event",anonymous:false,inputs:[{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:"DisputeJudgementSet"},{type:"event",anonymous:false,inputs:[{name:"disputeId",internalType:"uint256",type:"uint256",indexed:false},{name:"targetIpId",internalType:"address",type:"address",indexed:false},{name:"disputeInitiator",internalType:"address",type:"address",indexed:false},{name:"arbitrationPolicy",internalType:"address",type:"address",indexed:false},{name:"disputeEvidenceHash",internalType:"bytes32",type:"bytes32",indexed:false},{name:"targetTag",internalType:"bytes32",type:"bytes32",indexed:false},{name:"data",internalType:"bytes",type:"bytes",indexed:false}],name:"DisputeRaised"},{type:"event",anonymous:false,inputs:[{name:"disputeId",internalType:"uint256",type:"uint256",indexed:false}],name:"DisputeResolved"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"tag",internalType:"bytes32",type:"bytes32",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"TagWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IN_DISPUTE",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_REGISTRY",outputs:[{name:"",internalType:"contract IIPAccountRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],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:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"baseArbitrationPolicy",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"disputeId",internalType:"uint256",type:"uint256"},{name:"data",internalType:"bytes",type:"bytes"}],name:"cancelDispute",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"disputeCounter",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{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:"arbitrationPolicy",internalType:"address",type:"address"},{name:"disputeEvidenceHash",internalType:"bytes32",type:"bytes32"},{name:"targetTag",internalType:"bytes32",type:"bytes32"},{name:"currentTag",internalType:"bytes32",type:"bytes32"},{name:"parentDisputeId",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"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:"arbitrationRelayer",internalType:"address",type:"address"}],name:"isWhitelistedArbitrationRelayer",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:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{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:"raiseDispute",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"disputeId",internalType:"uint256",type:"uint256"},{name:"data",internalType:"bytes",type:"bytes"}],name:"resolveDispute",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"arbitrationPolicy",internalType:"address",type:"address"}],name:"setArbitrationPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"arbitrationPolicy",internalType:"address",type:"address"}],name:"setBaseArbitrationPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"disputeId",internalType:"uint256",type:"uint256"},{name:"decision",internalType:"bool",type:"bool"},{name:"data",internalType:"bytes",type:"bytes"}],name:"setDisputeJudgement",outputs:[],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:"parentIpId",internalType:"address",type:"address"},{name:"derivativeIpId",internalType:"address",type:"address"},{name:"parentDisputeId",internalType:"uint256",type:"uint256"}],name:"tagDerivativeIfParentInfringed",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"arbitrationPolicy",internalType:"address",type:"address"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistArbitrationPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"arbitrationPolicy",internalType:"address",type:"address"},{name:"arbPolicyRelayer",internalType:"address",type:"address"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistArbitrationRelayer",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"tag",internalType:"bytes32",type:"bytes32"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistDisputeTag",outputs:[],stateMutability:"nonpayable"}];/**
|
677
683
|
*
|
678
|
-
*/var disputeModuleAddress={
|
684
|
+
*/var disputeModuleAddress={1516:"0x692B47fa72eE7Ac0Ec617ea384a0cAD41098F712"};// GroupingModule
|
679
685
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
680
686
|
/**
|
681
687
|
*
|
682
688
|
*/var groupingModuleAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"ipAccount",internalType:"address",type:"address"}],name:"AccessControlled__NotIpAccount"},{type:"error",inputs:[],name:"AccessControlled__ZeroAddress"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"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:"FailedInnerCall"},{type:"error",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"childGroupId",internalType:"address",type:"address"}],name:"GroupingModule__CannotAddGroupToGroup"},{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:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"GroupingModule__GroupIPHasMintingFee"},{type:"error",inputs:[{name:"groupId",internalType:"address",type:"address"}],name:"GroupingModule__GroupIPHasNoLicenseTerms"},{type:"error",inputs:[{name:"groupId",internalType:"address",type:"address"}],name:"GroupingModule__GroupRoyaltyVaultNotCreated"},{type:"error",inputs:[{name:"groupNFT",internalType:"address",type:"address"}],name:"GroupingModule__InvalidGroupNFT"},{type:"error",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"GroupingModule__IpHasNoGroupLicenseTerms"},{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:"event",anonymous:false,inputs:[{name:"groupId",internalType:"address",type:"address",indexed:true},{name:"ipIds",internalType:"address[]",type:"address[]",indexed:false}],name:"AddedIpToGroup"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"groupId",internalType:"address",type:"address",indexed:true},{name:"token",internalType:"address",type:"address",indexed:true},{name:"ipId",internalType:"address[]",type:"address[]",indexed:false},{name:"amount",internalType:"uint256[]",type:"uint256[]",indexed:false}],name:"ClaimedReward"},{type:"event",anonymous:false,inputs:[{name:"groupId",internalType:"address",type:"address",indexed:true},{name:"token",internalType:"address",type:"address",indexed:true},{name:"pool",internalType:"address",type:"address",indexed:true},{name:"amount",internalType:"uint256",type:"uint256",indexed:false},{name:"snapshots",internalType:"uint256[]",type:"uint256[]",indexed:false}],name:"CollectedRoyaltiesToGroupPool"},{type:"event",anonymous:false,inputs:[{name:"groupId",internalType:"address",type:"address",indexed:true},{name:"groupPool",internalType:"address",type:"address",indexed:true}],name:"IPGroupRegistered"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"groupId",internalType:"address",type:"address",indexed:true},{name:"ipIds",internalType:"address[]",type:"address[]",indexed:false}],name:"RemovedIpFromGroup"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUP_IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IGroupIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUP_NFT",outputs:[{name:"",internalType:"contract IGroupNFT",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_REGISTRY",outputs:[{name:"",internalType:"contract IIPAccountRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_TOKEN",outputs:[{name:"",internalType:"contract ILicenseToken",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract IRoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupIpId",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"addIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"token",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"claimReward",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"token",internalType:"address",type:"address"},{name:"snapshotIds",internalType:"uint256[]",type:"uint256[]"}],name:"collectRoyalties",outputs:[{name:"royalties",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[{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"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[],name:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"pure"},{type:"function",inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],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:"groupIpId",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"removeIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],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:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"rewardPool",internalType:"address",type:"address"}],name:"whitelistGroupRewardPool",outputs:[],stateMutability:"nonpayable"}];/**
|
683
689
|
*
|
684
|
-
*/var groupingModuleAddress={
|
690
|
+
*/var groupingModuleAddress={1516:"0xa731948cfE05135ad77d48C71f75066333Da78Bf"};// GroupingWorkflows
|
685
691
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
686
692
|
/**
|
687
693
|
*
|
688
|
-
*/var groupingWorkflowsAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"GroupingWorkflows__ZeroAddressParam"},{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:"Workflow__CallerNotAuthorizedToMint"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"CORE_METADATA_MODULE",outputs:[{name:"",internalType:"contract ICoreMetadataModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUPING_MODULE",outputs:[{name:"",internalType:"contract IGroupingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUP_NFT",outputs:[{name:"",internalType:"contract GroupNFT",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"PIL_TEMPLATE",outputs:[{name:"",internalType:"contract IPILicenseTemplate",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"
|
694
|
+
*/var groupingWorkflowsAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"GroupingWorkflows__ZeroAddressParam"},{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:"Workflow__CallerNotAuthorizedToMint"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"CORE_METADATA_MODULE",outputs:[{name:"",internalType:"contract ICoreMetadataModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUPING_MODULE",outputs:[{name:"",internalType:"contract IGroupingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUP_NFT",outputs:[{name:"",internalType:"contract GroupNFT",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"PIL_TEMPLATE",outputs:[{name:"",internalType:"contract IPILicenseTemplate",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract RoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupIpId",internalType:"address",type:"address"},{name:"currencyTokens",internalType:"address[]",type:"address[]"},{name:"groupSnapshotIds",internalType:"uint256[]",type:"uint256[]"},{name:"memberIpIds",internalType:"address[]",type:"address[]"}],name:"collectRoyaltiesAndClaimReward",outputs:[{name:"collectedRoyalties",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{name:"spgNftContract",internalType:"address",type:"address"},{name:"groupId",internalType:"address",type:"address"},{name:"recipient",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"},{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:"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:"mintAndRegisterIpAndAttachLicenseAndAddToGroup",outputs:[{name:"ipId",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupPool",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"registerGroupAndAttachLicense",outputs:[{name:"groupId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupPool",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"registerGroupAndAttachLicenseAndAddIps",outputs:[{name:"groupId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"nftContract",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"},{name:"groupId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"},{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:"sigMetadataAndAttach",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:"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:"registerIpAndAttachLicenseAndAddToGroup",outputs:[{name:"ipId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newNftContractBeacon",internalType:"address",type:"address"}],name:"setNftContractBeacon",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
689
695
|
*
|
690
|
-
*/var groupingWorkflowsAddress={
|
696
|
+
*/var groupingWorkflowsAddress={1516:"0xcd754994eBE5Ce16D432C1f936f98ac0d4aABA0e"};// IPAccountImpl
|
691
697
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
692
698
|
/**
|
693
699
|
*
|
694
700
|
*/var 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__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:"value",internalType:"uint256",type:"uint256",indexed:false},{name:"data",internalType:"bytes",type:"bytes",indexed:false},{name:"nonce",internalType:"bytes32",type:"bytes32",indexed:false}],name:"Executed"},{type:"event",anonymous:false,inputs:[{name:"to",internalType:"address",type:"address",indexed:true},{name:"value",internalType:"uint256",type:"uint256",indexed:false},{name:"data",internalType:"bytes",type:"bytes",indexed:false},{name:"nonce",internalType:"bytes32",type:"bytes32",indexed:false},{name:"deadline",internalType:"uint256",type:"uint256",indexed:false},{name:"signer",internalType:"address",type:"address",indexed:true},{name:"signature",internalType:"bytes",type:"bytes",indexed:false}],name:"ExecutedWithSig"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"fallback",stateMutability:"payable"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"MODULE_REGISTRY",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"",internalType:"bytes32",type:"bytes32"},{name:"",internalType:"bytes32",type:"bytes32"}],name:"bytes32Data",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"",internalType:"bytes32",type:"bytes32"},{name:"",internalType:"bytes32",type:"bytes32"}],name:"bytesData",outputs:[{name:"",internalType:"bytes",type:"bytes"}],stateMutability:"view"},{type:"function",inputs:[],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[]"}],stateMutability:"view"},{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:"execute",outputs:[{name:"result",internalType:"bytes",type:"bytes"}],stateMutability:"payable"},{type:"function",inputs:[{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"},{type:"function",inputs:[{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:"operation",internalType:"uint8",type:"uint8"}],name:"executeBatch",outputs:[{name:"results",internalType:"bytes[]",type:"bytes[]"}],stateMutability:"payable"},{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:"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:"namespace",internalType:"bytes32",type:"bytes32"},{name:"key",internalType:"bytes32",type:"bytes32"}],name:"getBytes",outputs:[{name:"",internalType:"bytes",type:"bytes"}],stateMutability:"view"},{type:"function",inputs:[{name:"namespace",internalType:"bytes32",type:"bytes32"},{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",inputs:[{name:"namespaces",internalType:"bytes32[]",type:"bytes32[]"},{name:"keys",internalType:"bytes32[]",type:"bytes32[]"}],name:"getBytes32Batch",outputs:[{name:"values",internalType:"bytes32[]",type:"bytes32[]"}],stateMutability:"view"},{type:"function",inputs:[{name:"namespaces",internalType:"bytes32[]",type:"bytes32[]"},{name:"keys",internalType:"bytes32[]",type:"bytes32[]"}],name:"getBytesBatch",outputs:[{name:"values",internalType:"bytes[]",type:"bytes[]"}],stateMutability:"view"},{type:"function",inputs:[{name:"hash",internalType:"bytes32",type:"bytes32"},{name:"signature",internalType:"bytes",type:"bytes"}],name:"isValidSignature",outputs:[{name:"result",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{name:"signer",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"isValidSigner",outputs:[{name:"result",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{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"},{type:"function",inputs:[],name:"owner",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"key",internalType:"bytes32",type:"bytes32"},{name:"value",internalType:"bytes",type:"bytes"}],name:"setBytes",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"key",internalType:"bytes32",type:"bytes32"},{name:"value",internalType:"bytes32",type:"bytes32"}],name:"setBytes32",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"keys",internalType:"bytes32[]",type:"bytes32[]"},{name:"values",internalType:"bytes32[]",type:"bytes32[]"}],name:"setBytes32Batch",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"keys",internalType:"bytes32[]",type:"bytes32[]"},{name:"values",internalType:"bytes[]",type:"bytes[]"}],name:"setBytesBatch",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"token",outputs:[{name:"",internalType:"uint256",type:"uint256"},{name:"",internalType:"address",type:"address"},{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"receive",stateMutability:"payable"}];/**
|
695
701
|
*
|
696
|
-
*/var ipAccountImplAddress={
|
702
|
+
*/var ipAccountImplAddress={1516:"0x24F08796561d6E1AC08e82b68BF4d9500B374Af6"};// IPAssetRegistry
|
697
703
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
698
704
|
/**
|
699
705
|
*
|
700
|
-
*/var ipAssetRegistryAbi=[{type:"constructor",inputs:[{name:"erc6551Registry",internalType:"address",type:"address"},{name:"ipAccountImpl",internalType:"address",type:"address"},{name:"groupingModule",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"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:"FailedInnerCall"},{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:"rewardPool",internalType:"address",type:"address"}],name:"GroupIPAssetRegistry__InvalidGroupRewardPool"},{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:"IPAccountRegistry_ZeroERC6551Registry"},{type:"error",inputs:[],name:"IPAccountRegistry_ZeroIpAccountImpl"},{type:"error",inputs:[],name:"IPAssetRegistry__AlreadyRegistered"},{type:"error",inputs:[{name:"contractAddress",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],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__UnsupportedIERC721Metadata"},{type:"error",inputs:[],name:"IPAssetRegistry__ZeroAccessManager"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[{name:"value",internalType:"uint256",type:"uint256"},{name:"length",internalType:"uint256",type:"uint256"}],name:"StringsInsufficientHexLength"},{type:"error",inputs:[],name:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:true},{name:"implementation",internalType:"address",type:"address",indexed:true},{name:"chainId",internalType:"uint256",type:"uint256",indexed:true},{name:"tokenContract",internalType:"address",type:"address",indexed:false},{name:"tokenId",internalType:"uint256",type:"uint256",indexed:false}],name:"IPAccountRegistered"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"chainId",internalType:"uint256",type:"uint256",indexed:true},{name:"tokenContract",internalType:"address",type:"address",indexed:true},{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:"registrationDate",internalType:"uint256",type:"uint256",indexed:false}],name:"IPRegistered"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ERC6551_PUBLIC_REGISTRY",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUPING_MODULE",outputs:[{name:"",internalType:"contract IGroupingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_IMPL",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_SALT",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"addGroupMember",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"ipId",internalType:"address",type:"address"}],name:"containsIp",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"startIndex",internalType:"uint256",type:"uint256"},{name:"size",internalType:"uint256",type:"uint256"}],name:"getGroupMembers",outputs:[{name:"results",internalType:"address[]",type:"address[]"}],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:"getIPAccountImpl",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{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"},{type:"function",inputs:[{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"},{type:"function",inputs:[],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:"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:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{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"},{type:"function",inputs:[{name:"groupNft",internalType:"address",type:"address"},{name:"groupNftId",internalType:"uint256",type:"uint256"},{name:"rewardPool",internalType:"address",type:"address"}],name:"registerGroup",outputs:[{name:"groupId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"removeGroupMember",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],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:"totalSupply",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"rewardPool",internalType:"address",type:"address"}],name:"whitelistGroupRewardPool",outputs:[],stateMutability:"nonpayable"}];/**
|
706
|
+
*/var ipAssetRegistryAbi=[{type:"constructor",inputs:[{name:"erc6551Registry",internalType:"address",type:"address"},{name:"ipAccountImpl",internalType:"address",type:"address"},{name:"groupingModule",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"account",internalType:"address",type:"address"}],name:"AddressInsufficientBalance"},{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:"FailedInnerCall"},{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:"rewardPool",internalType:"address",type:"address"}],name:"GroupIPAssetRegistry__InvalidGroupRewardPool"},{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:"IPAccountRegistry_ZeroERC6551Registry"},{type:"error",inputs:[],name:"IPAccountRegistry_ZeroIpAccountImpl"},{type:"error",inputs:[],name:"IPAssetRegistry__AlreadyRegistered"},{type:"error",inputs:[{name:"contractAddress",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],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__UnsupportedIERC721Metadata"},{type:"error",inputs:[],name:"IPAssetRegistry__ZeroAccessManager"},{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:"token",internalType:"address",type:"address"}],name:"SafeERC20FailedOperation"},{type:"error",inputs:[{name:"value",internalType:"uint256",type:"uint256"},{name:"length",internalType:"uint256",type:"uint256"}],name:"StringsInsufficientHexLength"},{type:"error",inputs:[],name:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:true},{name:"implementation",internalType:"address",type:"address",indexed:true},{name:"chainId",internalType:"uint256",type:"uint256",indexed:true},{name:"tokenContract",internalType:"address",type:"address",indexed:false},{name:"tokenId",internalType:"uint256",type:"uint256",indexed:false}],name:"IPAccountRegistered"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"chainId",internalType:"uint256",type:"uint256",indexed:true},{name:"tokenContract",internalType:"address",type:"address",indexed:true},{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:"registrationDate",internalType:"uint256",type:"uint256",indexed:false}],name:"IPRegistered"},{type:"event",anonymous:false,inputs:[{name:"payer",internalType:"address",type:"address",indexed:true},{name:"treasury",internalType:"address",type:"address",indexed:true},{name:"feeToken",internalType:"address",type:"address",indexed:true},{name:"amount",internalType:"uint96",type:"uint96",indexed:false}],name:"IPRegistrationFeePaid"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"treasury",internalType:"address",type:"address",indexed:true},{name:"feeToken",internalType:"address",type:"address",indexed:true},{name:"feeAmount",internalType:"uint96",type:"uint96",indexed:false}],name:"RegistrationFeeSet"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ERC6551_PUBLIC_REGISTRY",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"GROUPING_MODULE",outputs:[{name:"",internalType:"contract IGroupingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_IMPL",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_SALT",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"addGroupMember",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"ipId",internalType:"address",type:"address"}],name:"containsIp",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"getFeeAmount",outputs:[{name:"",internalType:"uint96",type:"uint96"}],stateMutability:"view"},{type:"function",inputs:[],name:"getFeeToken",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"startIndex",internalType:"uint256",type:"uint256"},{name:"size",internalType:"uint256",type:"uint256"}],name:"getGroupMembers",outputs:[{name:"results",internalType:"address[]",type:"address[]"}],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:"getIPAccountImpl",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"getTreasury",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{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"},{type:"function",inputs:[{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"},{type:"function",inputs:[],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:"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:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{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"},{type:"function",inputs:[{name:"groupNft",internalType:"address",type:"address"},{name:"groupNftId",internalType:"uint256",type:"uint256"},{name:"rewardPool",internalType:"address",type:"address"}],name:"registerGroup",outputs:[{name:"groupId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"groupId",internalType:"address",type:"address"},{name:"ipIds",internalType:"address[]",type:"address[]"}],name:"removeGroupMember",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"treasury",internalType:"address",type:"address"},{name:"feeToken",internalType:"address",type:"address"},{name:"feeAmount",internalType:"uint96",type:"uint96"}],name:"setRegistrationFee",outputs:[],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:"totalSupply",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"rewardPool",internalType:"address",type:"address"}],name:"whitelistGroupRewardPool",outputs:[],stateMutability:"nonpayable"}];/**
|
701
707
|
*
|
702
|
-
*/var ipAssetRegistryAddress={
|
708
|
+
*/var ipAssetRegistryAddress={1516:"0x28E59E91C0467e89fd0f0438D47Ca839cDfEc095"};// IpRoyaltyVaultImpl
|
703
709
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
704
710
|
/**
|
705
711
|
*
|
706
712
|
*/var ipRoyaltyVaultImplAbi=[{type:"constructor",inputs:[{name:"disputeModule",internalType:"address",type:"address"},{name:"royaltyModule",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[],name:"IpRoyaltyVault__EnforcedPause"},{type:"error",inputs:[],name:"IpRoyaltyVault__InsufficientTimeElapsedSinceLastSnapshot"},{type:"error",inputs:[],name:"IpRoyaltyVault__InvalidTargetIpId"},{type:"error",inputs:[],name:"IpRoyaltyVault__NoClaimableTokens"},{type:"error",inputs:[],name:"IpRoyaltyVault__NoNewRevenueSinceLastSnapshot"},{type:"error",inputs:[],name:"IpRoyaltyVault__NotAllowedToAddTokenToVault"},{type:"error",inputs:[],name:"IpRoyaltyVault__NotWhitelistedRoyaltyToken"},{type:"error",inputs:[],name:"IpRoyaltyVault__VaultDoesNotBelongToAnAncestor"},{type:"error",inputs:[],name:"IpRoyaltyVault__VaultsMustClaimAsSelf"},{type:"error",inputs:[],name:"IpRoyaltyVault__ZeroAmount"},{type:"error",inputs:[],name:"IpRoyaltyVault__ZeroDisputeModule"},{type:"error",inputs:[],name:"IpRoyaltyVault__ZeroRoyaltyModule"},{type:"event",anonymous:false,inputs:[{name:"owner",internalType:"address",type:"address",indexed:true},{name:"spender",internalType:"address",type:"address",indexed:true},{name:"value",internalType:"uint256",type:"uint256",indexed:false}],name:"Approval"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint8",type:"uint8",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"token",internalType:"address",type:"address",indexed:false},{name:"amount",internalType:"uint256",type:"uint256",indexed:false}],name:"RevenueTokenAddedToVault"},{type:"event",anonymous:false,inputs:[{name:"claimer",internalType:"address",type:"address",indexed:false},{name:"token",internalType:"address",type:"address",indexed:false},{name:"amount",internalType:"uint256",type:"uint256",indexed:false}],name:"RevenueTokenClaimed"},{type:"event",anonymous:false,inputs:[{name:"id",internalType:"uint256",type:"uint256",indexed:false}],name:"Snapshot"},{type:"event",anonymous:false,inputs:[{name:"snapshotId",internalType:"uint256",type:"uint256",indexed:false},{name:"snapshotTimestamp",internalType:"uint256",type:"uint256",indexed:false}],name:"SnapshotCompleted"},{type:"event",anonymous:false,inputs:[{name:"from",internalType:"address",type:"address",indexed:true},{name:"to",internalType:"address",type:"address",indexed:true},{name:"value",internalType:"uint256",type:"uint256",indexed:false}],name:"Transfer"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract IRoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"owner",internalType:"address",type:"address"},{name:"spender",internalType:"address",type:"address"}],name:"allowance",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"spender",internalType:"address",type:"address"},{name:"amount",internalType:"uint256",type:"uint256"}],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:"snapshotId",internalType:"uint256",type:"uint256"}],name:"balanceOfAt",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"snapshotIds",internalType:"uint256[]",type:"uint256[]"},{name:"token",internalType:"address",type:"address"},{name:"targetIpId",internalType:"address",type:"address"}],name:"claimBySnapshotBatchAsSelf",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"tokenList",internalType:"address[]",type:"address[]"},{name:"targetIpId",internalType:"address",type:"address"}],name:"claimByTokenBatchAsSelf",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"snapshotIds",internalType:"uint256[]",type:"uint256[]"},{name:"token",internalType:"address",type:"address"},{name:"claimer",internalType:"address",type:"address"}],name:"claimRevenueOnBehalfBySnapshotBatch",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"tokenList",internalType:"address[]",type:"address[]"},{name:"claimer",internalType:"address",type:"address"}],name:"claimRevenueOnBehalfByTokenBatch",outputs:[{name:"",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"token",internalType:"address",type:"address"}],name:"claimVaultAmount",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"token",internalType:"address",type:"address"}],name:"claimableAtSnapshot",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"account",internalType:"address",type:"address"},{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"token",internalType:"address",type:"address"}],name:"claimableRevenue",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"decimals",outputs:[{name:"",internalType:"uint8",type:"uint8"}],stateMutability:"pure"},{type:"function",inputs:[{name:"spender",internalType:"address",type:"address"},{name:"subtractedValue",internalType:"uint256",type:"uint256"}],name:"decreaseAllowance",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"getCurrentSnapshotId",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"spender",internalType:"address",type:"address"},{name:"addedValue",internalType:"uint256",type:"uint256"}],name:"increaseAllowance",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"},{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:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"ipId",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"claimer",internalType:"address",type:"address"},{name:"token",internalType:"address",type:"address"}],name:"isClaimedAtSnapshot",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"lastSnapshotTimestamp",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"token",internalType:"address",type:"address"}],name:"pendingVaultAmount",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"snapshot",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"symbol",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"tokens",outputs:[{name:"",internalType:"address[]",type:"address[]"}],stateMutability:"view"},{type:"function",inputs:[],name:"totalSupply",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"}],name:"totalSupplyAt",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"to",internalType:"address",type:"address"},{name:"amount",internalType:"uint256",type:"uint256"}],name:"transfer",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"},{type:"function",inputs:[{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"},{type:"function",inputs:[{name:"token",internalType:"address",type:"address"},{name:"amount",internalType:"uint256",type:"uint256"}],name:"updateVaultBalance",outputs:[],stateMutability:"nonpayable"}];/**
|
707
713
|
*
|
708
|
-
*/var ipRoyaltyVaultImplAddress={
|
714
|
+
*/var ipRoyaltyVaultImplAddress={1516:"0x1081250219B16cc3903Aa2d2d1403A75c6A2F9f5"};// LicenseAttachmentWorkflows
|
709
715
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
710
716
|
/**
|
711
717
|
*
|
712
718
|
*/var licenseAttachmentWorkflowsAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"LicenseAttachmentWorkflows__ZeroAddressParam"},{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:"Workflow__CallerNotAuthorizedToMint"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"CORE_METADATA_MODULE",outputs:[{name:"",internalType:"contract ICoreMetadataModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"PIL_TEMPLATE",outputs:[{name:"",internalType:"contract IPILicenseTemplate",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{name:"spgNftContract",internalType:"address",type:"address"},{name:"recipient",internalType:"address",type:"address"},{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:"terms",internalType:"struct PILTerms",type:"tuple",components:[{name:"transferable",internalType:"bool",type:"bool"},{name:"royaltyPolicy",internalType:"address",type:"address"},{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:"commercializerChecker",internalType:"address",type:"address"},{name:"commercializerCheckerData",internalType:"bytes",type:"bytes"},{name:"commercialRevShare",internalType:"uint32",type:"uint32"},{name:"commercialRevCeiling",internalType:"uint256",type:"uint256"},{name:"derivativesAllowed",internalType:"bool",type:"bool"},{name:"derivativesAttribution",internalType:"bool",type:"bool"},{name:"derivativesApproval",internalType:"bool",type:"bool"},{name:"derivativesReciprocal",internalType:"bool",type:"bool"},{name:"derivativeRevCeiling",internalType:"uint256",type:"uint256"},{name:"currency",internalType:"address",type:"address"},{name:"uri",internalType:"string",type:"string"}]}],name:"mintAndRegisterIpAndAttachPILTerms",outputs:[{name:"ipId",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"nftContract",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"},{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:"terms",internalType:"struct PILTerms",type:"tuple",components:[{name:"transferable",internalType:"bool",type:"bool"},{name:"royaltyPolicy",internalType:"address",type:"address"},{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:"commercializerChecker",internalType:"address",type:"address"},{name:"commercializerCheckerData",internalType:"bytes",type:"bytes"},{name:"commercialRevShare",internalType:"uint32",type:"uint32"},{name:"commercialRevCeiling",internalType:"uint256",type:"uint256"},{name:"derivativesAllowed",internalType:"bool",type:"bool"},{name:"derivativesAttribution",internalType:"bool",type:"bool"},{name:"derivativesApproval",internalType:"bool",type:"bool"},{name:"derivativesReciprocal",internalType:"bool",type:"bool"},{name:"derivativeRevCeiling",internalType:"uint256",type:"uint256"},{name:"currency",internalType:"address",type:"address"},{name:"uri",internalType:"string",type:"string"}]},{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:"sigAttach",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:"registerIpAndAttachPILTerms",outputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"terms",internalType:"struct PILTerms",type:"tuple",components:[{name:"transferable",internalType:"bool",type:"bool"},{name:"royaltyPolicy",internalType:"address",type:"address"},{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:"commercializerChecker",internalType:"address",type:"address"},{name:"commercializerCheckerData",internalType:"bytes",type:"bytes"},{name:"commercialRevShare",internalType:"uint32",type:"uint32"},{name:"commercialRevCeiling",internalType:"uint256",type:"uint256"},{name:"derivativesAllowed",internalType:"bool",type:"bool"},{name:"derivativesAttribution",internalType:"bool",type:"bool"},{name:"derivativesApproval",internalType:"bool",type:"bool"},{name:"derivativesReciprocal",internalType:"bool",type:"bool"},{name:"derivativeRevCeiling",internalType:"uint256",type:"uint256"},{name:"currency",internalType:"address",type:"address"},{name:"uri",internalType:"string",type:"string"}]},{name:"sigAttach",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:"registerPILTermsAndAttach",outputs:[{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newNftContractBeacon",internalType:"address",type:"address"}],name:"setNftContractBeacon",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
713
719
|
*
|
714
|
-
*/var licenseAttachmentWorkflowsAddress={
|
720
|
+
*/var licenseAttachmentWorkflowsAddress={1516:"0x44Bad1E4035a44eAC1606B222873E4a85E8b7D9c"};// LicenseRegistry
|
715
721
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
716
722
|
/**
|
717
723
|
*
|
718
|
-
*/var licenseRegistryAbi=[{type:"constructor",inputs:[{name:"licensingModule",internalType:"address",type:"address"},{name:"disputeModule",internalType:"address",type:"address"},{name:"ipGraphAcl",internalType:"address",type:"address"},{name:"ipGraph",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"parentIpIds",internalType:"address[]",type:"address[]"}],name:"LicenseRegistry__AddParentIpToIPGraphFailed"},{type:"error",inputs:[],name:"LicenseRegistry__CallerNotLicensingModule"},{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__DerivativeIpAlreadyHasLicense"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"LicenseRegistry__DerivativeIsParent"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__DuplicateLicense"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"},{name:"length",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__IndexOutOfBounds"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"LicenseRegistry__IpExpired"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__LicenseTermsAlreadyAttached"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__LicenseTermsNotExists"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__LicensorIpHasNoLicenseTerms"},{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:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__ParentIpHasNoLicenseTerms"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"LicenseRegistry__ParentIpTagged"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"}],name:"LicenseRegistry__ParentIpUnmatchedLicenseTemplate"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"newLicenseTemplate",internalType:"address",type:"address"}],name:"LicenseRegistry__UnmatchedLicenseTemplate"},{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__ZeroIPGraphACL"},{type:"error",inputs:[],name:"LicenseRegistry__ZeroLicenseTemplate"},{type:"error",inputs:[],name:"LicenseRegistry__ZeroLicensingModule"},{type:"error",inputs:[],name:"LicensingModule__DerivativesCannotAddLicenseTerms"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicensingModule__LicenseTermsNotFound"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[],name:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"licenseTemplate",internalType:"address",type:"address",indexed:false},{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:false}],name:"DefaultLicenseTermsSet"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"expireTime",internalType:"uint256",type:"uint256",indexed:false}],name:"ExpirationTimeSet"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"licenseTemplate",internalType:"address",type:"address",indexed:true}],name:"LicenseTemplateRegistered"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{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"}],indexed:false}],name:"LicensingConfigSetForIP"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"licenseTemplate",internalType:"address",type:"address",indexed:true},{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:true}],name:"LicensingConfigSetForLicense"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"EXPIRATION_TIME",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_GRAPH",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_GRAPH_ACL",outputs:[{name:"",internalType:"contract IPGraphACL",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"attachLicenseTermsToIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"exists",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],name:"getAttachedLicenseTerms",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",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",inputs:[],name:"getDefaultLicenseTerms",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"parentIpId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],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:"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:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"getLicensingConfig",outputs:[{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"}]}],stateMutability:"view"},{type:"function",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],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:"parentIpId",internalType:"address",type:"address"}],name:"getParentLicenseTerms",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],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:"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"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],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:"parentIpId",internalType:"address",type:"address"},{name:"childIpId",internalType:"address",type:"address"}],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{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:"registerDerivativeIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"}],name:"registerLicenseTemplate",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newLicenseTemplate",internalType:"address",type:"address"},{name:"newLicenseTermsId",internalType:"uint256",type:"uint256"}],name:"setDefaultLicenseTerms",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{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:"setLicensingConfigForIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{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",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:"setLicensingConfigForLicense",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{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:"verifyMintLicenseToken",outputs:[{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"}]}],stateMutability:"view"}];/**
|
724
|
+
*/var licenseRegistryAbi=[{type:"constructor",inputs:[{name:"licensingModule",internalType:"address",type:"address"},{name:"disputeModule",internalType:"address",type:"address"},{name:"ipGraphAcl",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"parentIpIds",internalType:"address[]",type:"address[]"}],name:"LicenseRegistry__AddParentIpToIPGraphFailed"},{type:"error",inputs:[],name:"LicenseRegistry__CallerNotLicensingModule"},{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__DerivativeIpAlreadyHasLicense"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"LicenseRegistry__DerivativeIsParent"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__DuplicateLicense"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"},{name:"length",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__IndexOutOfBounds"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"LicenseRegistry__IpExpired"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__LicenseTermsAlreadyAttached"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__LicenseTermsNotExists"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__LicensorIpHasNoLicenseTerms"},{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:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicenseRegistry__ParentIpHasNoLicenseTerms"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"}],name:"LicenseRegistry__ParentIpTagged"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"}],name:"LicenseRegistry__ParentIpUnmatchedLicenseTemplate"},{type:"error",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"newLicenseTemplate",internalType:"address",type:"address"}],name:"LicenseRegistry__UnmatchedLicenseTemplate"},{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__ZeroIPGraphACL"},{type:"error",inputs:[],name:"LicenseRegistry__ZeroLicenseTemplate"},{type:"error",inputs:[],name:"LicenseRegistry__ZeroLicensingModule"},{type:"error",inputs:[],name:"LicensingModule__DerivativesCannotAddLicenseTerms"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicensingModule__LicenseTermsNotFound"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[],name:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"licenseTemplate",internalType:"address",type:"address",indexed:false},{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:false}],name:"DefaultLicenseTermsSet"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"expireTime",internalType:"uint256",type:"uint256",indexed:false}],name:"ExpirationTimeSet"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"licenseTemplate",internalType:"address",type:"address",indexed:true}],name:"LicenseTemplateRegistered"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{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"}],indexed:false}],name:"LicensingConfigSetForIP"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"licenseTemplate",internalType:"address",type:"address",indexed:true},{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:true}],name:"LicensingConfigSetForLicense"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"EXPIRATION_TIME",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_GRAPH",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_GRAPH_ACL",outputs:[{name:"",internalType:"contract IPGraphACL",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"attachLicenseTermsToIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"exists",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],name:"getAttachedLicenseTerms",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",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",inputs:[],name:"getDefaultLicenseTerms",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"parentIpId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],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:"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:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"getLicensingConfig",outputs:[{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"}]}],stateMutability:"view"},{type:"function",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],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:"parentIpId",internalType:"address",type:"address"}],name:"getParentLicenseTerms",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],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:"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"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],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:"parentIpId",internalType:"address",type:"address"},{name:"childIpId",internalType:"address",type:"address"}],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{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:"registerDerivativeIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"}],name:"registerLicenseTemplate",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newLicenseTemplate",internalType:"address",type:"address"},{name:"newLicenseTermsId",internalType:"uint256",type:"uint256"}],name:"setDefaultLicenseTerms",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{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:"setLicensingConfigForIp",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{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",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:"setLicensingConfigForLicense",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{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:"verifyMintLicenseToken",outputs:[{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"}]}],stateMutability:"view"}];/**
|
719
725
|
*
|
720
|
-
*/var licenseRegistryAddress={
|
726
|
+
*/var licenseRegistryAddress={1516:"0xBda3992c49E98392e75E78d82B934F3598bA495f"};// LicenseToken
|
721
727
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
722
728
|
/**
|
723
729
|
*
|
724
730
|
*/var licenseTokenAbi=[{type:"constructor",inputs:[{name:"licensingModule",internalType:"address",type:"address"},{name:"disputeModule",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"ERC721EnumerableForbiddenBatchMint"},{type:"error",inputs:[{name:"sender",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"},{name:"owner",internalType:"address",type:"address"}],name:"ERC721IncorrectOwner"},{type:"error",inputs:[{name:"operator",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],name:"ERC721InsufficientApproval"},{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:"owner",internalType:"address",type:"address"}],name:"ERC721InvalidOwner"},{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:"tokenId",internalType:"uint256",type:"uint256"}],name:"ERC721NonexistentToken"},{type:"error",inputs:[{name:"owner",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],name:"ERC721OutOfBoundsIndex"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"anotherLicenseTemplate",internalType:"address",type:"address"}],name:"LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate"},{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:"LicenseToken__CallerAndChildIPNotTokenOwner"},{type:"error",inputs:[],name:"LicenseToken__CallerNotLicensingModule"},{type:"error",inputs:[],name:"LicenseToken__NotTransferable"},{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:"value",internalType:"uint256",type:"uint256"},{name:"length",internalType:"uint256",type:"uint256"}],name:"StringsInsufficientHexLength"},{type:"error",inputs:[],name:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"owner",internalType:"address",type:"address",indexed:true},{name:"approved",internalType:"address",type:"address",indexed:true},{name:"tokenId",internalType:"uint256",type:"uint256",indexed:true}],name:"Approval"},{type:"event",anonymous:false,inputs:[{name:"owner",internalType:"address",type:"address",indexed:true},{name:"operator",internalType:"address",type:"address",indexed:true},{name:"approved",internalType:"bool",type:"bool",indexed:false}],name:"ApprovalForAll"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"_fromTokenId",internalType:"uint256",type:"uint256",indexed:false},{name:"_toTokenId",internalType:"uint256",type:"uint256",indexed:false}],name:"BatchMetadataUpdate"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"minter",internalType:"address",type:"address",indexed:true},{name:"receiver",internalType:"address",type:"address",indexed:true},{name:"tokenId",internalType:"uint256",type:"uint256",indexed:true}],name:"LicenseTokenMinted"},{type:"event",anonymous:false,inputs:[{name:"from",internalType:"address",type:"address",indexed:true},{name:"to",internalType:"address",type:"address",indexed:true},{name:"tokenId",internalType:"uint256",type:"uint256",indexed:true}],name:"Transfer"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"to",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"holder",internalType:"address",type:"address"},{name:"tokenIds",internalType:"uint256[]",type:"uint256[]"}],name:"burnLicenseTokens",outputs:[],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:"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:"getLicenseTokenMetadata",outputs:[{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"}]}],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:"accessManager",internalType:"address",type:"address"},{name:"imageUrl",internalType:"string",type:"string"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"owner",internalType:"address",type:"address"},{name:"operator",internalType:"address",type:"address"}],name:"isApprovedForAll",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],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:"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:"mintLicenseTokens",outputs:[{name:"startLicenseTokenId",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"from",internalType:"address",type:"address"},{name:"to",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable"},{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:"safeTransferFrom",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"operator",internalType:"address",type:"address"},{name:"approved",internalType:"bool",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"url",internalType:"string",type:"string"}],name:"setLicensingImageUrl",outputs:[],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:"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:"owner",internalType:"address",type:"address"},{name:"index",internalType:"uint256",type:"uint256"}],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:"totalMintedTokens",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"totalSupply",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"from",internalType:"address",type:"address"},{name:"to",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"childIpId",internalType:"address",type:"address"},{name:"tokenIds",internalType:"uint256[]",type:"uint256[]"}],name:"validateLicenseTokensForDerivative",outputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licensorIpIds",internalType:"address[]",type:"address[]"},{name:"licenseTermsIds",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"view"}];/**
|
725
731
|
*
|
726
|
-
*/var licenseTokenAddress={
|
732
|
+
*/var licenseTokenAddress={1516:"0xB138aEd64814F2845554f9DBB116491a077eEB2D"};// LicensingModule
|
727
733
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
728
734
|
/**
|
729
735
|
*
|
730
736
|
*/var licensingModuleAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"ipAccount",internalType:"address",type:"address"}],name:"AccessControlled__NotIpAccount"},{type:"error",inputs:[],name:"AccessControlled__ZeroAddress"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"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:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"LicensingModule__DisputedIpId"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"LicensingModule__InvalidLicenseTermsId"},{type:"error",inputs:[{name:"hook",internalType:"address",type:"address"}],name:"LicensingModule__InvalidLicensingHook"},{type:"error",inputs:[{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"},{name:"licensorIpId",internalType:"address",type:"address"}],name:"LicensingModule__LicenseDenyMintLicenseToken"},{type:"error",inputs:[{name:"childIpId",internalType:"address",type:"address"}],name:"LicensingModule__LicenseNotCompatibleForDerivative"},{type:"error",inputs:[{name:"ipLength",internalType:"uint256",type:"uint256"},{name:"licenseTermsLength",internalType:"uint256",type:"uint256"}],name:"LicensingModule__LicenseTermsLengthMismatch"},{type:"error",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"licenseTokenIds",internalType:"uint256[]",type:"uint256[]"}],name:"LicensingModule__LicenseTokenNotCompatibleForDerivative"},{type:"error",inputs:[],name:"LicensingModule__LicensorIpNotRegistered"},{type:"error",inputs:[],name:"LicensingModule__MintAmountZero"},{type:"error",inputs:[],name:"LicensingModule__NoLicenseToken"},{type:"error",inputs:[],name:"LicensingModule__NoParentIp"},{type:"error",inputs:[],name:"LicensingModule__ReceiverZeroAddress"},{type:"error",inputs:[],name:"LicensingModule__ZeroAccessManager"},{type:"error",inputs:[],name:"LicensingModule__ZeroDisputeModule"},{type:"error",inputs:[],name:"LicensingModule__ZeroLicenseRegistry"},{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:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"caller",internalType:"address",type:"address",indexed:true},{name:"childIpId",internalType:"address",type:"address",indexed:true},{name:"licenseTokenIds",internalType:"uint256[]",type:"uint256[]",indexed:false},{name:"parentIpIds",internalType:"address[]",type:"address[]",indexed:false},{name:"licenseTermsIds",internalType:"uint256[]",type:"uint256[]",indexed:false},{name:"licenseTemplate",internalType:"address",type:"address",indexed:false}],name:"DerivativeRegistered"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"caller",internalType:"address",type:"address",indexed:true},{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"licenseTemplate",internalType:"address",type:"address",indexed:false},{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:false}],name:"LicenseTermsAttached"},{type:"event",anonymous:false,inputs:[{name:"caller",internalType:"address",type:"address",indexed:true},{name:"licensorIpId",internalType:"address",type:"address",indexed:true},{name:"licenseTemplate",internalType:"address",type:"address",indexed:false},{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:true},{name:"amount",internalType:"uint256",type:"uint256",indexed:false},{name:"receiver",internalType:"address",type:"address",indexed:false},{name:"startLicenseTokenId",internalType:"uint256",type:"uint256",indexed:false}],name:"LicenseTokensMinted"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_REGISTRY",outputs:[{name:"",internalType:"contract IIPAccountRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_NFT",outputs:[{name:"",internalType:"contract ILicenseToken",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"MODULE_REGISTRY",outputs:[{name:"",internalType:"contract IModuleRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract RoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"licenseTemplate",internalType:"address",type:"address"},{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"attachLicenseTerms",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{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:"mintLicenseTokens",outputs:[{name:"startLicenseTokenId",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{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:"predictMintingLicenseFee",outputs:[{name:"currencyToken",internalType:"address",type:"address"},{name:"tokenAmount",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{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:"registerDerivative",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"licenseTokenIds",internalType:"uint256[]",type:"uint256[]"},{name:"royaltyContext",internalType:"bytes",type:"bytes"}],name:"registerDerivativeWithLicenseTokens",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{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",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:"setLicensingConfig",outputs:[],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:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
731
737
|
*
|
732
|
-
*/var licensingModuleAddress={
|
738
|
+
*/var licensingModuleAddress={1516:"0x5a7D9Fa17DE09350F481A53B470D798c1c1aabae"};// ModuleRegistry
|
739
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
740
|
+
/**
|
741
|
+
*
|
742
|
+
*/var moduleRegistryAbi=[{type:"constructor",inputs:[],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"ModuleRegistry__InterfaceIdZero"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleAddressNotContract"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleAddressZeroAddress"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleAlreadyRegistered"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleNotRegistered"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleTypeAlreadyRegistered"},{type:"error",inputs:[],name:"ModuleRegistry__ModuleTypeEmptyString"},{type:"error",inputs:[],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:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"name",internalType:"string",type:"string",indexed:false},{name:"module",internalType:"address",type:"address",indexed:true},{name:"moduleTypeInterfaceId",internalType:"bytes4",type:"bytes4",indexed:true},{name:"moduleType",internalType:"string",type:"string",indexed:false}],name:"ModuleAdded"},{type:"event",anonymous:false,inputs:[{name:"name",internalType:"string",type:"string",indexed:false},{name:"module",internalType:"address",type:"address",indexed:true}],name:"ModuleRemoved"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],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:"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:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"name",internalType:"string",type:"string"},{name:"moduleAddress",internalType:"address",type:"address"}],name:"registerModule",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"name",internalType:"string",type:"string"},{name:"moduleAddress",internalType:"address",type:"address"},{name:"moduleType",internalType:"string",type:"string"}],name:"registerModule",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"name",internalType:"string",type:"string"},{name:"interfaceId",internalType:"bytes4",type:"bytes4"}],name:"registerModuleType",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"name",internalType:"string",type:"string"}],name:"removeModule",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"name",internalType:"string",type:"string"}],name:"removeModuleType",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
743
|
+
*
|
744
|
+
*/var moduleRegistryAddress={1516:"0x9F18c5723BC4Ee447CF9B01a8543D3b08b7F09C7"};// PILicenseTemplate
|
733
745
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
734
746
|
/**
|
735
747
|
*
|
736
748
|
*/var piLicenseTemplateAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"ipAccount",internalType:"address",type:"address"}],name:"AccessControlled__NotIpAccount"},{type:"error",inputs:[],name:"AccessControlled__ZeroAddress"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialDisabled_CantAddAttribution"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialDisabled_CantAddCommercializers"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialDisabled_CantAddDerivativeRevCeiling"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialDisabled_CantAddRevCeiling"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialDisabled_CantAddRevShare"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialDisabled_CantAddRoyaltyPolicy"},{type:"error",inputs:[],name:"PILicenseTemplate__CommercialEnabled_RoyaltyPolicyRequired"},{type:"error",inputs:[{name:"checker",internalType:"address",type:"address"}],name:"PILicenseTemplate__CommercializerCheckerDoesNotSupportHook"},{type:"error",inputs:[],name:"PILicenseTemplate__CurrencyTokenNotWhitelisted"},{type:"error",inputs:[],name:"PILicenseTemplate__DerivativesDisabled_CantAddApproval"},{type:"error",inputs:[],name:"PILicenseTemplate__DerivativesDisabled_CantAddAttribution"},{type:"error",inputs:[],name:"PILicenseTemplate__DerivativesDisabled_CantAddDerivativeRevCeiling"},{type:"error",inputs:[],name:"PILicenseTemplate__DerivativesDisabled_CantAddReciprocal"},{type:"error",inputs:[],name:"PILicenseTemplate__RoyaltyPolicyNotWhitelisted"},{type:"error",inputs:[],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:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:true},{name:"ipId",internalType:"address",type:"address",indexed:true},{name:"caller",internalType:"address",type:"address",indexed:true},{name:"approved",internalType:"bool",type:"bool",indexed:false}],name:"DerivativeApproved"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"licenseTermsId",internalType:"uint256",type:"uint256",indexed:true},{name:"licenseTemplate",internalType:"address",type:"address",indexed:true},{name:"licenseTerms",internalType:"bytes",type:"bytes",indexed:false}],name:"LicenseTermsRegistered"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ACCOUNT_REGISTRY",outputs:[{name:"",internalType:"contract IIPAccountRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract IRoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"TERMS_RENDERER",outputs:[{name:"",internalType:"contract PILTermsRenderer",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],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:"licenseTermsIds",internalType:"uint256[]",type:"uint256[]"},{name:"start",internalType:"uint256",type:"uint256"}],name:"getEarlierExpireTime",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"licenseTermsId",internalType:"uint256",type:"uint256"},{name:"start",internalType:"uint256",type:"uint256"}],name:"getExpireTime",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"selectedLicenseTermsId",internalType:"uint256",type:"uint256"}],name:"getLicenseTerms",outputs:[{name:"terms",internalType:"struct PILTerms",type:"tuple",components:[{name:"transferable",internalType:"bool",type:"bool"},{name:"royaltyPolicy",internalType:"address",type:"address"},{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:"commercializerChecker",internalType:"address",type:"address"},{name:"commercializerCheckerData",internalType:"bytes",type:"bytes"},{name:"commercialRevShare",internalType:"uint32",type:"uint32"},{name:"commercialRevCeiling",internalType:"uint256",type:"uint256"},{name:"derivativesAllowed",internalType:"bool",type:"bool"},{name:"derivativesAttribution",internalType:"bool",type:"bool"},{name:"derivativesApproval",internalType:"bool",type:"bool"},{name:"derivativesReciprocal",internalType:"bool",type:"bool"},{name:"derivativeRevCeiling",internalType:"uint256",type:"uint256"},{name:"currency",internalType:"address",type:"address"},{name:"uri",internalType:"string",type:"string"}]}],stateMutability:"view"},{type:"function",inputs:[{name:"terms",internalType:"struct PILTerms",type:"tuple",components:[{name:"transferable",internalType:"bool",type:"bool"},{name:"royaltyPolicy",internalType:"address",type:"address"},{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:"commercializerChecker",internalType:"address",type:"address"},{name:"commercializerCheckerData",internalType:"bytes",type:"bytes"},{name:"commercialRevShare",internalType:"uint32",type:"uint32"},{name:"commercialRevCeiling",internalType:"uint256",type:"uint256"},{name:"derivativesAllowed",internalType:"bool",type:"bool"},{name:"derivativesAttribution",internalType:"bool",type:"bool"},{name:"derivativesApproval",internalType:"bool",type:"bool"},{name:"derivativesReciprocal",internalType:"bool",type:"bool"},{name:"derivativeRevCeiling",internalType:"uint256",type:"uint256"},{name:"currency",internalType:"address",type:"address"},{name:"uri",internalType:"string",type:"string"}]}],name:"getLicenseTermsId",outputs:[{name:"selectedLicenseTermsId",internalType:"uint256",type:"uint256"}],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:"getMetadataURI",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{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"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"},{name:"name",internalType:"string",type:"string"},{name:"metadataURI",internalType:"string",type:"string"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{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"},{type:"function",inputs:[{name:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"isLicenseTransferable",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"terms",internalType:"struct PILTerms",type:"tuple",components:[{name:"transferable",internalType:"bool",type:"bool"},{name:"royaltyPolicy",internalType:"address",type:"address"},{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:"commercializerChecker",internalType:"address",type:"address"},{name:"commercializerCheckerData",internalType:"bytes",type:"bytes"},{name:"commercialRevShare",internalType:"uint32",type:"uint32"},{name:"commercialRevCeiling",internalType:"uint256",type:"uint256"},{name:"derivativesAllowed",internalType:"bool",type:"bool"},{name:"derivativesAttribution",internalType:"bool",type:"bool"},{name:"derivativesApproval",internalType:"bool",type:"bool"},{name:"derivativesReciprocal",internalType:"bool",type:"bool"},{name:"derivativeRevCeiling",internalType:"uint256",type:"uint256"},{name:"currency",internalType:"address",type:"address"},{name:"uri",internalType:"string",type:"string"}]}],name:"registerLicenseTerms",outputs:[{name:"id",internalType:"uint256",type:"uint256"}],stateMutability:"nonpayable"},{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:"setApproval",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],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:"licenseTermsId",internalType:"uint256",type:"uint256"}],name:"toJson",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"totalRegisteredLicenseTerms",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],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:"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"},{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:"verifyRegisterDerivative",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"childIpId",internalType:"address",type:"address"},{name:"parentIpIds",internalType:"address[]",type:"address[]"},{name:"licenseTermsIds",internalType:"uint256[]",type:"uint256[]"},{name:"childIpOwner",internalType:"address",type:"address"}],name:"verifyRegisterDerivativeForAllParents",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"}];/**
|
737
749
|
*
|
738
|
-
*/var piLicenseTemplateAddress={
|
750
|
+
*/var piLicenseTemplateAddress={1516:"0x58E2c909D557Cd23EF90D14f8fd21667A5Ae7a93"};// RegistrationWorkflows
|
739
751
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
740
752
|
/**
|
741
753
|
*
|
742
754
|
*/var registrationWorkflowsAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[],name:"RegistrationWorkflows__ZeroAddressParam"},{type:"error",inputs:[],name:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"error",inputs:[],name:"Workflow__CallerNotAuthorizedToMint"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"spgNftContract",internalType:"address",type:"address",indexed:true}],name:"CollectionCreated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ACCESS_CONTROLLER",outputs:[{name:"",internalType:"contract IAccessController",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"CORE_METADATA_MODULE",outputs:[{name:"",internalType:"contract ICoreMetadataModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"PIL_TEMPLATE",outputs:[{name:"",internalType:"contract IPILicenseTemplate",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{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:"mintFeeRecipient",internalType:"address",type:"address"},{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"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"isConsumingScheduledOp",outputs:[{name:"",internalType:"bytes4",type:"bytes4"}],stateMutability:"view"},{type:"function",inputs:[{name:"spgNftContract",internalType:"address",type:"address"},{name:"recipient",internalType:"address",type:"address"},{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:"mintAndRegisterIp",outputs:[{name:"ipId",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"}],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"nftContract",internalType:"address",type:"address"},{name:"tokenId",internalType:"uint256",type:"uint256"},{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:"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:"registerIp",outputs:[{name:"ipId",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newNftContractBeacon",internalType:"address",type:"address"}],name:"setNftContractBeacon",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newNftContract",internalType:"address",type:"address"}],name:"upgradeCollections",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
743
755
|
*
|
744
|
-
*/var registrationWorkflowsAddress={
|
756
|
+
*/var registrationWorkflowsAddress={1516:"0xde13Be395E1cd753471447Cf6A656979ef87881c"};// RoyaltyModule
|
745
757
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
746
758
|
/**
|
747
759
|
*
|
748
|
-
*/var royaltyModuleAbi=[{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:"ipGraph",internalType:"address",type:"address"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"account",internalType:"address",type:"address"}],name:"AddressInsufficientBalance"},{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:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[],name:"ReentrancyGuardReentrantCall"},{type:"error",inputs:[],name:"RoyaltyModule__AboveAccumulatedRoyaltyPoliciesLimit"},{type:"error",inputs:[],name:"RoyaltyModule__AboveAncestorsLimit"},{type:"error",inputs:[],name:"RoyaltyModule__AboveMaxPercent"},{type:"error",inputs:[],name:"RoyaltyModule__AboveParentLimit"},{type:"error",inputs:[],name:"RoyaltyModule__IpIsTagged"},{type:"error",inputs:[],name:"RoyaltyModule__LastPositionNotAbleToMintLicense"},{type:"error",inputs:[],name:"RoyaltyModule__NoParentsOnLinking"},{type:"error",inputs:[],name:"RoyaltyModule__NotAllowedCaller"},{type:"error",inputs:[],name:"RoyaltyModule__NotWhitelistedOrRegisteredRoyaltyPolicy"},{type:"error",inputs:[],name:"RoyaltyModule__NotWhitelistedRoyaltyToken"},{type:"error",inputs:[],name:"RoyaltyModule__PolicyAlreadyWhitelistedOrRegistered"},{type:"error",inputs:[],name:"RoyaltyModule__UnlinkableToParents"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroAccessManager"},{type:"error",inputs:[],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__ZeroLicenseRegistry"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroLicensingModule"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroMaxAncestors"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroMaxParents"},{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:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"error",inputs:[],name:"VaultController__ZeroIpRoyaltyVaultBeacon"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"externalRoyaltyPolicy",internalType:"address",type:"address",indexed:false}],name:"ExternalRoyaltyPolicyRegistered"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"maxParents",internalType:"uint256",type:"uint256",indexed:false},{name:"maxAncestors",internalType:"uint256",type:"uint256",indexed:false},{name:"accumulatedRoyaltyPoliciesLimit",internalType:"uint256",type:"uint256",indexed:false}],name:"IpGraphLimitsUpdated"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"ipRoyaltyVault",internalType:"address",type:"address",indexed:false}],name:"IpRoyaltyVaultDeployed"},{type:"event",anonymous:false,inputs:[{name:"receiverIpId",internalType:"address",type:"address",indexed:false},{name:"payerAddress",internalType:"address",type:"address",indexed:false},{name:"token",internalType:"address",type:"address",indexed:false},{name:"amount",internalType:"uint256",type:"uint256",indexed:false},{name:"amountAfterFee",internalType:"uint256",type:"uint256",indexed:false}],name:"LicenseMintingFeePaid"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"royaltyPolicy",internalType:"address",type:"address",indexed:false},{name:"licensePercent",internalType:"uint32",type:"uint32",indexed:false},{name:"externalData",internalType:"bytes",type:"bytes",indexed:false}],name:"LicensedWithRoyalty"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"parentIpIds",internalType:"address[]",type:"address[]",indexed:false},{name:"licenseRoyaltyPolicies",internalType:"address[]",type:"address[]",indexed:false},{name:"licensesPercent",internalType:"uint32[]",type:"uint32[]",indexed:false},{name:"externalData",internalType:"bytes",type:"bytes",indexed:false}],name:"LinkedToParents"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"royaltyFeePercent",internalType:"uint256",type:"uint256",indexed:false}],name:"RoyaltyFeePercentSet"},{type:"event",anonymous:false,inputs:[{name:"receiverIpId",internalType:"address",type:"address",indexed:false},{name:"payerIpId",internalType:"address",type:"address",indexed:false},{name:"sender",internalType:"address",type:"address",indexed:false},{name:"token",internalType:"address",type:"address",indexed:false},{name:"amount",internalType:"uint256",type:"uint256",indexed:false},{name:"amountAfterFee",internalType:"uint256",type:"uint256",indexed:false}],name:"RoyaltyPaid"},{type:"event",anonymous:false,inputs:[{name:"royaltyPolicy",internalType:"address",type:"address",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"RoyaltyPolicyWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"token",internalType:"address",type:"address",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"RoyaltyTokenWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"treasury",internalType:"address",type:"address",indexed:false}],name:"TreasurySet"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IGroupIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_GRAPH",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"MAX_PERCENT",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],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:"authority",outputs:[{name:"",internalType:"address",type:"address"}],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:"globalRoyaltyStack",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"ancestorIpId",internalType:"address",type:"address"}],name:"hasAncestorIp",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"},{name:"parentLimit",internalType:"uint256",type:"uint256"},{name:"ancestorLimit",internalType:"uint256",type:"uint256"},{name:"accumulatedRoyaltyPoliciesLimit",internalType:"uint256",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"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:"externalRoyaltyPolicy",internalType:"address",type:"address"}],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:"token",internalType:"address",type:"address"}],name:"isWhitelistedRoyaltyToken",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxAccumulatedRoyaltyPolicies",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxAncestors",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxParents",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxPercent",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"pure"},{type:"function",inputs:[],name:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{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:"onLicenseMinting",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"parentIpIds",internalType:"address[]",type:"address[]"},{name:"licenseRoyaltyPolicies",internalType:"address[]",type:"address[]"},{name:"licensesPercent",internalType:"uint32[]",type:"uint32[]"},{name:"externalData",internalType:"bytes",type:"bytes"}],name:"onLinkToParents",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{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:"payLicenseMintingFee",outputs:[],stateMutability:"nonpayable"},{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:"payRoyaltyOnBehalf",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"externalRoyaltyPolicy",internalType:"address",type:"address"}],name:"registerExternalRoyaltyPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"royaltyFeePercent",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"view"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"parentLimit",internalType:"uint256",type:"uint256"},{name:"ancestorLimit",internalType:"uint256",type:"uint256"},{name:"accumulatedRoyaltyPoliciesLimit",internalType:"uint256",type:"uint256"}],name:"setIpGraphLimits",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"beacon",internalType:"address",type:"address"}],name:"setIpRoyaltyVaultBeacon",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"royaltyFeePercent",internalType:"uint32",type:"uint32"}],name:"setRoyaltyFeePercent",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"timestampInterval",internalType:"uint256",type:"uint256"}],name:"setSnapshotInterval",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"treasury",internalType:"address",type:"address"}],name:"setTreasury",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"snapshotInterval",outputs:[{name:"",internalType:"uint256",type:"uint256"}],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:"ipId",internalType:"address",type:"address"},{name:"token",internalType:"address",type:"address"}],name:"totalRevenueTokensReceived",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"treasury",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"newVault",internalType:"address",type:"address"}],name:"upgradeVaults",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"royaltyPolicy",internalType:"address",type:"address"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistRoyaltyPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"token",internalType:"address",type:"address"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistRoyaltyToken",outputs:[],stateMutability:"nonpayable"}];/**
|
760
|
+
*/var royaltyModuleAbi=[{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"}],stateMutability:"nonpayable"},{type:"error",inputs:[{name:"authority",internalType:"address",type:"address"}],name:"AccessManagedInvalidAuthority"},{type:"error",inputs:[{name:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"account",internalType:"address",type:"address"}],name:"AddressInsufficientBalance"},{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:"FailedInnerCall"},{type:"error",inputs:[],name:"InvalidInitialization"},{type:"error",inputs:[],name:"NotInitializing"},{type:"error",inputs:[],name:"ReentrancyGuardReentrantCall"},{type:"error",inputs:[],name:"RoyaltyModule__AboveAccumulatedRoyaltyPoliciesLimit"},{type:"error",inputs:[],name:"RoyaltyModule__AboveAncestorsLimit"},{type:"error",inputs:[],name:"RoyaltyModule__AboveMaxPercent"},{type:"error",inputs:[],name:"RoyaltyModule__AboveParentLimit"},{type:"error",inputs:[],name:"RoyaltyModule__IpIsTagged"},{type:"error",inputs:[],name:"RoyaltyModule__LastPositionNotAbleToMintLicense"},{type:"error",inputs:[],name:"RoyaltyModule__NoParentsOnLinking"},{type:"error",inputs:[],name:"RoyaltyModule__NotAllowedCaller"},{type:"error",inputs:[],name:"RoyaltyModule__NotWhitelistedOrRegisteredRoyaltyPolicy"},{type:"error",inputs:[],name:"RoyaltyModule__NotWhitelistedRoyaltyToken"},{type:"error",inputs:[],name:"RoyaltyModule__PolicyAlreadyWhitelistedOrRegistered"},{type:"error",inputs:[],name:"RoyaltyModule__UnlinkableToParents"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroAccessManager"},{type:"error",inputs:[],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__ZeroLicenseRegistry"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroLicensingModule"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroMaxAncestors"},{type:"error",inputs:[],name:"RoyaltyModule__ZeroMaxParents"},{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:"UUPSUnauthorizedCallContext"},{type:"error",inputs:[{name:"slot",internalType:"bytes32",type:"bytes32"}],name:"UUPSUnsupportedProxiableUUID"},{type:"error",inputs:[],name:"VaultController__ZeroIpRoyaltyVaultBeacon"},{type:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"externalRoyaltyPolicy",internalType:"address",type:"address",indexed:false}],name:"ExternalRoyaltyPolicyRegistered"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"maxParents",internalType:"uint256",type:"uint256",indexed:false},{name:"maxAncestors",internalType:"uint256",type:"uint256",indexed:false},{name:"accumulatedRoyaltyPoliciesLimit",internalType:"uint256",type:"uint256",indexed:false}],name:"IpGraphLimitsUpdated"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"ipRoyaltyVault",internalType:"address",type:"address",indexed:false}],name:"IpRoyaltyVaultDeployed"},{type:"event",anonymous:false,inputs:[{name:"receiverIpId",internalType:"address",type:"address",indexed:false},{name:"payerAddress",internalType:"address",type:"address",indexed:false},{name:"token",internalType:"address",type:"address",indexed:false},{name:"amount",internalType:"uint256",type:"uint256",indexed:false},{name:"amountAfterFee",internalType:"uint256",type:"uint256",indexed:false}],name:"LicenseMintingFeePaid"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"royaltyPolicy",internalType:"address",type:"address",indexed:false},{name:"licensePercent",internalType:"uint32",type:"uint32",indexed:false},{name:"externalData",internalType:"bytes",type:"bytes",indexed:false}],name:"LicensedWithRoyalty"},{type:"event",anonymous:false,inputs:[{name:"ipId",internalType:"address",type:"address",indexed:false},{name:"parentIpIds",internalType:"address[]",type:"address[]",indexed:false},{name:"licenseRoyaltyPolicies",internalType:"address[]",type:"address[]",indexed:false},{name:"licensesPercent",internalType:"uint32[]",type:"uint32[]",indexed:false},{name:"externalData",internalType:"bytes",type:"bytes",indexed:false}],name:"LinkedToParents"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Paused"},{type:"event",anonymous:false,inputs:[{name:"royaltyFeePercent",internalType:"uint256",type:"uint256",indexed:false}],name:"RoyaltyFeePercentSet"},{type:"event",anonymous:false,inputs:[{name:"receiverIpId",internalType:"address",type:"address",indexed:false},{name:"payerIpId",internalType:"address",type:"address",indexed:false},{name:"sender",internalType:"address",type:"address",indexed:false},{name:"token",internalType:"address",type:"address",indexed:false},{name:"amount",internalType:"uint256",type:"uint256",indexed:false},{name:"amountAfterFee",internalType:"uint256",type:"uint256",indexed:false}],name:"RoyaltyPaid"},{type:"event",anonymous:false,inputs:[{name:"royaltyPolicy",internalType:"address",type:"address",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"RoyaltyPolicyWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"token",internalType:"address",type:"address",indexed:false},{name:"allowed",internalType:"bool",type:"bool",indexed:false}],name:"RoyaltyTokenWhitelistUpdated"},{type:"event",anonymous:false,inputs:[{name:"treasury",internalType:"address",type:"address",indexed:false}],name:"TreasurySet"},{type:"event",anonymous:false,inputs:[{name:"account",internalType:"address",type:"address",indexed:false}],name:"Unpaused"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"DISPUTE_MODULE",outputs:[{name:"",internalType:"contract IDisputeModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_ASSET_REGISTRY",outputs:[{name:"",internalType:"contract IGroupIPAssetRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"IP_GRAPH",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSE_REGISTRY",outputs:[{name:"",internalType:"contract ILicenseRegistry",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"LICENSING_MODULE",outputs:[{name:"",internalType:"contract ILicensingModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"MAX_PERCENT",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"__ProtocolPausable_init",outputs:[],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:"authority",outputs:[{name:"",internalType:"address",type:"address"}],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:"globalRoyaltyStack",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"view"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"ancestorIpId",internalType:"address",type:"address"}],name:"hasAncestorIp",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"},{name:"parentLimit",internalType:"uint256",type:"uint256"},{name:"ancestorLimit",internalType:"uint256",type:"uint256"},{name:"accumulatedRoyaltyPoliciesLimit",internalType:"uint256",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"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:"externalRoyaltyPolicy",internalType:"address",type:"address"}],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:"token",internalType:"address",type:"address"}],name:"isWhitelistedRoyaltyToken",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxAccumulatedRoyaltyPolicies",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxAncestors",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxParents",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"maxPercent",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"pure"},{type:"function",inputs:[],name:"name",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{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:"onLicenseMinting",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"parentIpIds",internalType:"address[]",type:"address[]"},{name:"licenseRoyaltyPolicies",internalType:"address[]",type:"address[]"},{name:"licensesPercent",internalType:"uint32[]",type:"uint32[]"},{name:"externalData",internalType:"bytes",type:"bytes"}],name:"onLinkToParents",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"paused",outputs:[{name:"",internalType:"bool",type:"bool"}],stateMutability:"view"},{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:"payLicenseMintingFee",outputs:[],stateMutability:"nonpayable"},{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:"payRoyaltyOnBehalf",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"externalRoyaltyPolicy",internalType:"address",type:"address"}],name:"registerExternalRoyaltyPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"royaltyFeePercent",outputs:[{name:"",internalType:"uint32",type:"uint32"}],stateMutability:"view"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"parentLimit",internalType:"uint256",type:"uint256"},{name:"ancestorLimit",internalType:"uint256",type:"uint256"},{name:"accumulatedRoyaltyPoliciesLimit",internalType:"uint256",type:"uint256"}],name:"setIpGraphLimits",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"beacon",internalType:"address",type:"address"}],name:"setIpRoyaltyVaultBeacon",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"royaltyFeePercent",internalType:"uint32",type:"uint32"}],name:"setRoyaltyFeePercent",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"timestampInterval",internalType:"uint256",type:"uint256"}],name:"setSnapshotInterval",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"treasury",internalType:"address",type:"address"}],name:"setTreasury",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],name:"snapshotInterval",outputs:[{name:"",internalType:"uint256",type:"uint256"}],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:"ipId",internalType:"address",type:"address"},{name:"token",internalType:"address",type:"address"}],name:"totalRevenueTokensReceived",outputs:[{name:"",internalType:"uint256",type:"uint256"}],stateMutability:"view"},{type:"function",inputs:[],name:"treasury",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"},{type:"function",inputs:[{name:"newVault",internalType:"address",type:"address"}],name:"upgradeVaults",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"royaltyPolicy",internalType:"address",type:"address"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistRoyaltyPolicy",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"token",internalType:"address",type:"address"},{name:"allowed",internalType:"bool",type:"bool"}],name:"whitelistRoyaltyToken",outputs:[],stateMutability:"nonpayable"}];/**
|
749
761
|
*
|
750
|
-
*/var royaltyModuleAddress={
|
762
|
+
*/var royaltyModuleAddress={1516:"0xEa6eD700b11DfF703665CCAF55887ca56134Ae3B"};/**
|
751
763
|
*
|
752
|
-
*/var royaltyPolicyLapAddress={
|
764
|
+
*/var royaltyPolicyLapAddress={1516:"0x28b4F70ffE5ba7A26aEF979226f77Eb57fb9Fdb6"};// RoyaltyWorkflows
|
753
765
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
754
766
|
/**
|
755
767
|
*
|
756
768
|
*/var royaltyWorkflowsAbi=[{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:"caller",internalType:"address",type:"address"},{name:"delay",internalType:"uint32",type:"uint32"}],name:"AccessManagedRequiredDelay"},{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:"implementation",internalType:"address",type:"address"}],name:"ERC1967InvalidImplementation"},{type:"error",inputs:[],name:"ERC1967NonPayable"},{type:"error",inputs:[],name:"FailedInnerCall"},{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:"event",anonymous:false,inputs:[{name:"authority",internalType:"address",type:"address",indexed:false}],name:"AuthorityUpdated"},{type:"event",anonymous:false,inputs:[{name:"version",internalType:"uint64",type:"uint64",indexed:false}],name:"Initialized"},{type:"event",anonymous:false,inputs:[{name:"implementation",internalType:"address",type:"address",indexed:true}],name:"Upgraded"},{type:"function",inputs:[],name:"ROYALTY_MODULE",outputs:[{name:"",internalType:"contract IRoyaltyModule",type:"address"}],stateMutability:"view"},{type:"function",inputs:[],name:"UPGRADE_INTERFACE_VERSION",outputs:[{name:"",internalType:"string",type:"string"}],stateMutability:"view"},{type:"function",inputs:[],name:"authority",outputs:[{name:"",internalType:"address",type:"address"}],stateMutability:"view"},{type:"function",inputs:[{name:"accessManager",internalType:"address",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[],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:"proxiableUUID",outputs:[{name:"",internalType:"bytes32",type:"bytes32"}],stateMutability:"view"},{type:"function",inputs:[{name:"newAuthority",internalType:"address",type:"address"}],name:"setAuthority",outputs:[],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"claimer",internalType:"address",type:"address"},{name:"unclaimedSnapshotIds",internalType:"uint256[]",type:"uint256[]"},{name:"currencyTokens",internalType:"address[]",type:"address[]"}],name:"snapshotAndClaimBySnapshotBatch",outputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"amountsClaimed",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ipId",internalType:"address",type:"address"},{name:"claimer",internalType:"address",type:"address"},{name:"currencyTokens",internalType:"address[]",type:"address[]"}],name:"snapshotAndClaimByTokenBatch",outputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"amountsClaimed",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ancestorIpId",internalType:"address",type:"address"},{name:"claimer",internalType:"address",type:"address"},{name:"unclaimedSnapshotIds",internalType:"uint256[]",type:"uint256[]"},{name:"royaltyClaimDetails",internalType:"struct IRoyaltyWorkflows.RoyaltyClaimDetails[]",type:"tuple[]",components:[{name:"childIpId",internalType:"address",type:"address"},{name:"royaltyPolicy",internalType:"address",type:"address"},{name:"currencyToken",internalType:"address",type:"address"},{name:"amount",internalType:"uint256",type:"uint256"}]}],name:"transferToVaultAndSnapshotAndClaimBySnapshotBatch",outputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"amountsClaimed",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"ancestorIpId",internalType:"address",type:"address"},{name:"claimer",internalType:"address",type:"address"},{name:"royaltyClaimDetails",internalType:"struct IRoyaltyWorkflows.RoyaltyClaimDetails[]",type:"tuple[]",components:[{name:"childIpId",internalType:"address",type:"address"},{name:"royaltyPolicy",internalType:"address",type:"address"},{name:"currencyToken",internalType:"address",type:"address"},{name:"amount",internalType:"uint256",type:"uint256"}]}],name:"transferToVaultAndSnapshotAndClaimByTokenBatch",outputs:[{name:"snapshotId",internalType:"uint256",type:"uint256"},{name:"amountsClaimed",internalType:"uint256[]",type:"uint256[]"}],stateMutability:"nonpayable"},{type:"function",inputs:[{name:"newImplementation",internalType:"address",type:"address"},{name:"data",internalType:"bytes",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable"}];/**
|
757
769
|
*
|
758
|
-
*/var royaltyWorkflowsAddress={
|
770
|
+
*/var royaltyWorkflowsAddress={1516:"0xAf922379B8e1abc6B0D78547128579221C7F7A22"};// SDK
|
759
771
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
760
772
|
// COMMON =============================================================
|
761
773
|
function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contract AccessController =============================================================
|
@@ -824,7 +836,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
824
836
|
*
|
825
837
|
* @param request AccessControllerSetPermissionRequest
|
826
838
|
* @return EncodedTxData
|
827
|
-
*/)},{key:"setPermissionEncode",value:function setPermissionEncode(request){return {to:this.address,data:viem.encodeFunctionData({abi:accessControllerAbi,functionName:"setPermission",args:[request.ipAccount,request.signer,request.to,request.func,request.permission]})};}}]);}(AccessControllerEventClient);// Contract
|
839
|
+
*/)},{key:"setPermissionEncode",value:function setPermissionEncode(request){return {to:this.address,data:viem.encodeFunctionData({abi:accessControllerAbi,functionName:"setPermission",args:[request.ipAccount,request.signer,request.to,request.func,request.permission]})};}}]);}(AccessControllerEventClient);// Contract CoreMetadataModule =============================================================
|
828
840
|
/**
|
829
841
|
* CoreMetadataModuleAuthorityUpdatedEvent
|
830
842
|
*
|
@@ -898,85 +910,85 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
898
910
|
* @param data bytes
|
899
911
|
*/ /**
|
900
912
|
* contract CoreMetadataModule event
|
901
|
-
*/var CoreMetadataModuleEventClient=/*#__PURE__*/function(){function CoreMetadataModuleEventClient(rpcClient,address){var _rpcClient$
|
913
|
+
*/var CoreMetadataModuleEventClient=/*#__PURE__*/function(){function CoreMetadataModuleEventClient(rpcClient,address){var _rpcClient$chain2;_classCallCheck(this,CoreMetadataModuleEventClient);this.address=address||getAddress(coreMetadataModuleAddress,(_rpcClient$chain2=rpcClient.chain)===null||_rpcClient$chain2===void 0?void 0:_rpcClient$chain2.id);this.rpcClient=rpcClient;}/**
|
902
914
|
* event AuthorityUpdated for contract CoreMetadataModule
|
903
|
-
*/return _createClass(CoreMetadataModuleEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
915
|
+
*/return _createClass(CoreMetadataModuleEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(_onLogs2){return this.rpcClient.watchContractEvent({abi:coreMetadataModuleAbi,address:this.address,eventName:"AuthorityUpdated",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs2(it.transactionHash,it.args);});}});}/**
|
904
916
|
* parse tx receipt event AuthorityUpdated for contract CoreMetadataModule
|
905
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
917
|
+
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var _iterator2=_createForOfIteratorHelper(txReceipt.logs),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var log=_step2.value;try{var event=viem.decodeEventLog({abi:coreMetadataModuleAbi,eventName:"AuthorityUpdated",data:log.data,topics:log.topics});if(event.eventName==="AuthorityUpdated"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}return targetLogs;}/**
|
906
918
|
* event Initialized for contract CoreMetadataModule
|
907
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
919
|
+
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(_onLogs3){return this.rpcClient.watchContractEvent({abi:coreMetadataModuleAbi,address:this.address,eventName:"Initialized",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs3(it.transactionHash,it.args);});}});}/**
|
908
920
|
* parse tx receipt event Initialized for contract CoreMetadataModule
|
909
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
921
|
+
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var _iterator3=_createForOfIteratorHelper(txReceipt.logs),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var log=_step3.value;try{var event=viem.decodeEventLog({abi:coreMetadataModuleAbi,eventName:"Initialized",data:log.data,topics:log.topics});if(event.eventName==="Initialized"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}return targetLogs;}/**
|
910
922
|
* event MetadataFrozen for contract CoreMetadataModule
|
911
|
-
*/},{key:"watchMetadataFrozenEvent",value:function watchMetadataFrozenEvent(
|
923
|
+
*/},{key:"watchMetadataFrozenEvent",value:function watchMetadataFrozenEvent(_onLogs4){return this.rpcClient.watchContractEvent({abi:coreMetadataModuleAbi,address:this.address,eventName:"MetadataFrozen",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs4(it.transactionHash,it.args);});}});}/**
|
912
924
|
* parse tx receipt event MetadataFrozen for contract CoreMetadataModule
|
913
|
-
*/},{key:"parseTxMetadataFrozenEvent",value:function parseTxMetadataFrozenEvent(txReceipt){var targetLogs=[];var
|
925
|
+
*/},{key:"parseTxMetadataFrozenEvent",value:function parseTxMetadataFrozenEvent(txReceipt){var targetLogs=[];var _iterator4=_createForOfIteratorHelper(txReceipt.logs),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var log=_step4.value;try{var event=viem.decodeEventLog({abi:coreMetadataModuleAbi,eventName:"MetadataFrozen",data:log.data,topics:log.topics});if(event.eventName==="MetadataFrozen"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}return targetLogs;}/**
|
914
926
|
* event MetadataURISet for contract CoreMetadataModule
|
915
|
-
*/},{key:"watchMetadataUriSetEvent",value:function watchMetadataUriSetEvent(
|
927
|
+
*/},{key:"watchMetadataUriSetEvent",value:function watchMetadataUriSetEvent(_onLogs5){return this.rpcClient.watchContractEvent({abi:coreMetadataModuleAbi,address:this.address,eventName:"MetadataURISet",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs5(it.transactionHash,it.args);});}});}/**
|
916
928
|
* parse tx receipt event MetadataURISet for contract CoreMetadataModule
|
917
|
-
*/},{key:"parseTxMetadataUriSetEvent",value:function parseTxMetadataUriSetEvent(txReceipt){var targetLogs=[];var
|
929
|
+
*/},{key:"parseTxMetadataUriSetEvent",value:function parseTxMetadataUriSetEvent(txReceipt){var targetLogs=[];var _iterator5=_createForOfIteratorHelper(txReceipt.logs),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var log=_step5.value;try{var event=viem.decodeEventLog({abi:coreMetadataModuleAbi,eventName:"MetadataURISet",data:log.data,topics:log.topics});if(event.eventName==="MetadataURISet"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}return targetLogs;}/**
|
918
930
|
* event NFTTokenURISet for contract CoreMetadataModule
|
919
|
-
*/},{key:"watchNftTokenUriSetEvent",value:function watchNftTokenUriSetEvent(
|
931
|
+
*/},{key:"watchNftTokenUriSetEvent",value:function watchNftTokenUriSetEvent(_onLogs6){return this.rpcClient.watchContractEvent({abi:coreMetadataModuleAbi,address:this.address,eventName:"NFTTokenURISet",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs6(it.transactionHash,it.args);});}});}/**
|
920
932
|
* parse tx receipt event NFTTokenURISet for contract CoreMetadataModule
|
921
|
-
*/},{key:"parseTxNftTokenUriSetEvent",value:function parseTxNftTokenUriSetEvent(txReceipt){var targetLogs=[];var
|
933
|
+
*/},{key:"parseTxNftTokenUriSetEvent",value:function parseTxNftTokenUriSetEvent(txReceipt){var targetLogs=[];var _iterator6=_createForOfIteratorHelper(txReceipt.logs),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var log=_step6.value;try{var event=viem.decodeEventLog({abi:coreMetadataModuleAbi,eventName:"NFTTokenURISet",data:log.data,topics:log.topics});if(event.eventName==="NFTTokenURISet"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}return targetLogs;}/**
|
922
934
|
* event Upgraded for contract CoreMetadataModule
|
923
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
935
|
+
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(_onLogs7){return this.rpcClient.watchContractEvent({abi:coreMetadataModuleAbi,address:this.address,eventName:"Upgraded",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs7(it.transactionHash,it.args);});}});}/**
|
924
936
|
* parse tx receipt event Upgraded for contract CoreMetadataModule
|
925
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
937
|
+
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var _iterator7=_createForOfIteratorHelper(txReceipt.logs),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var log=_step7.value;try{var event=viem.decodeEventLog({abi:coreMetadataModuleAbi,eventName:"Upgraded",data:log.data,topics:log.topics});if(event.eventName==="Upgraded"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}return targetLogs;}}]);}();/**
|
926
938
|
* contract CoreMetadataModule readonly method
|
927
939
|
*/var CoreMetadataModuleReadOnlyClient=/*#__PURE__*/function(_CoreMetadataModuleEv){function CoreMetadataModuleReadOnlyClient(rpcClient,address){_classCallCheck(this,CoreMetadataModuleReadOnlyClient);return _callSuper(this,CoreMetadataModuleReadOnlyClient,[rpcClient,address]);}/**
|
928
940
|
* method ACCESS_CONTROLLER for contract CoreMetadataModule
|
929
941
|
*
|
930
942
|
* @param request CoreMetadataModuleAccessControllerRequest
|
931
943
|
* @return Promise<CoreMetadataModuleAccessControllerResponse>
|
932
|
-
*/_inherits(CoreMetadataModuleReadOnlyClient,_CoreMetadataModuleEv);return _createClass(CoreMetadataModuleReadOnlyClient,[{key:"accessController",value:(function(){var _accessController=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
944
|
+
*/_inherits(CoreMetadataModuleReadOnlyClient,_CoreMetadataModuleEv);return _createClass(CoreMetadataModuleReadOnlyClient,[{key:"accessController",value:(function(){var _accessController=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"ACCESS_CONTROLLER"});case 2:return _context4.abrupt("return",_context4.sent);case 3:case"end":return _context4.stop();}},_callee4,this);}));function accessController(){return _accessController.apply(this,arguments);}return accessController;}()/**
|
933
945
|
* method IP_ACCOUNT_REGISTRY for contract CoreMetadataModule
|
934
946
|
*
|
935
947
|
* @param request CoreMetadataModuleIpAccountRegistryRequest
|
936
948
|
* @return Promise<CoreMetadataModuleIpAccountRegistryResponse>
|
937
|
-
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
949
|
+
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"IP_ACCOUNT_REGISTRY"});case 2:return _context5.abrupt("return",_context5.sent);case 3:case"end":return _context5.stop();}},_callee5,this);}));function ipAccountRegistry(){return _ipAccountRegistry.apply(this,arguments);}return ipAccountRegistry;}()/**
|
938
950
|
* method UPGRADE_INTERFACE_VERSION for contract CoreMetadataModule
|
939
951
|
*
|
940
952
|
* @param request CoreMetadataModuleUpgradeInterfaceVersionRequest
|
941
953
|
* @return Promise<CoreMetadataModuleUpgradeInterfaceVersionResponse>
|
942
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
954
|
+
*/)},{key:"upgradeInterfaceVersion",value:(function(){var _upgradeInterfaceVersion=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){return _regeneratorRuntime().wrap(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"UPGRADE_INTERFACE_VERSION"});case 2:return _context6.abrupt("return",_context6.sent);case 3:case"end":return _context6.stop();}},_callee6,this);}));function upgradeInterfaceVersion(){return _upgradeInterfaceVersion.apply(this,arguments);}return upgradeInterfaceVersion;}()/**
|
943
955
|
* method authority for contract CoreMetadataModule
|
944
956
|
*
|
945
957
|
* @param request CoreMetadataModuleAuthorityRequest
|
946
958
|
* @return Promise<CoreMetadataModuleAuthorityResponse>
|
947
|
-
*/)},{key:"authority",value:(function(){var
|
959
|
+
*/)},{key:"authority",value:(function(){var _authority=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){return _regeneratorRuntime().wrap(function _callee7$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"authority"});case 2:return _context7.abrupt("return",_context7.sent);case 3:case"end":return _context7.stop();}},_callee7,this);}));function authority(){return _authority.apply(this,arguments);}return authority;}()/**
|
948
960
|
* method isConsumingScheduledOp for contract CoreMetadataModule
|
949
961
|
*
|
950
962
|
* @param request CoreMetadataModuleIsConsumingScheduledOpRequest
|
951
963
|
* @return Promise<CoreMetadataModuleIsConsumingScheduledOpResponse>
|
952
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
964
|
+
*/)},{key:"isConsumingScheduledOp",value:(function(){var _isConsumingScheduledOp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){return _regeneratorRuntime().wrap(function _callee8$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"isConsumingScheduledOp"});case 2:return _context8.abrupt("return",_context8.sent);case 3:case"end":return _context8.stop();}},_callee8,this);}));function isConsumingScheduledOp(){return _isConsumingScheduledOp.apply(this,arguments);}return isConsumingScheduledOp;}()/**
|
953
965
|
* method isMetadataFrozen for contract CoreMetadataModule
|
954
966
|
*
|
955
967
|
* @param request CoreMetadataModuleIsMetadataFrozenRequest
|
956
968
|
* @return Promise<CoreMetadataModuleIsMetadataFrozenResponse>
|
957
|
-
*/)},{key:"isMetadataFrozen",value:(function(){var _isMetadataFrozen=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
969
|
+
*/)},{key:"isMetadataFrozen",value:(function(){var _isMetadataFrozen=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(request){return _regeneratorRuntime().wrap(function _callee9$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"isMetadataFrozen",args:[request.ipId]});case 2:return _context9.abrupt("return",_context9.sent);case 3:case"end":return _context9.stop();}},_callee9,this);}));function isMetadataFrozen(_x4){return _isMetadataFrozen.apply(this,arguments);}return isMetadataFrozen;}()/**
|
958
970
|
* method name for contract CoreMetadataModule
|
959
971
|
*
|
960
972
|
* @param request CoreMetadataModuleNameRequest
|
961
973
|
* @return Promise<CoreMetadataModuleNameResponse>
|
962
|
-
*/)},{key:"name",value:(function(){var _name=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
974
|
+
*/)},{key:"name",value:(function(){var _name=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){return _regeneratorRuntime().wrap(function _callee10$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"name"});case 2:return _context10.abrupt("return",_context10.sent);case 3:case"end":return _context10.stop();}},_callee10,this);}));function name(){return _name.apply(this,arguments);}return name;}()/**
|
963
975
|
* method proxiableUUID for contract CoreMetadataModule
|
964
976
|
*
|
965
977
|
* @param request CoreMetadataModuleProxiableUuidRequest
|
966
978
|
* @return Promise<CoreMetadataModuleProxiableUuidResponse>
|
967
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
979
|
+
*/)},{key:"proxiableUuid",value:(function(){var _proxiableUuid=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){return _regeneratorRuntime().wrap(function _callee11$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"proxiableUUID"});case 2:return _context11.abrupt("return",_context11.sent);case 3:case"end":return _context11.stop();}},_callee11,this);}));function proxiableUuid(){return _proxiableUuid.apply(this,arguments);}return proxiableUuid;}()/**
|
968
980
|
* method supportsInterface for contract CoreMetadataModule
|
969
981
|
*
|
970
982
|
* @param request CoreMetadataModuleSupportsInterfaceRequest
|
971
983
|
* @return Promise<CoreMetadataModuleSupportsInterfaceResponse>
|
972
|
-
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
984
|
+
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(request){return _regeneratorRuntime().wrap(function _callee12$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return this.rpcClient.readContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"supportsInterface",args:[request.interfaceId]});case 2:return _context12.abrupt("return",_context12.sent);case 3:case"end":return _context12.stop();}},_callee12,this);}));function supportsInterface(_x5){return _supportsInterface.apply(this,arguments);}return supportsInterface;}())}]);}(CoreMetadataModuleEventClient);/**
|
973
985
|
* contract CoreMetadataModule write method
|
974
|
-
*/var CoreMetadataModuleClient=/*#__PURE__*/function(_CoreMetadataModuleRe){function CoreMetadataModuleClient(rpcClient,wallet,address){var
|
986
|
+
*/var CoreMetadataModuleClient=/*#__PURE__*/function(_CoreMetadataModuleRe){function CoreMetadataModuleClient(rpcClient,wallet,address){var _this2;_classCallCheck(this,CoreMetadataModuleClient);_this2=_callSuper(this,CoreMetadataModuleClient,[rpcClient,address]);_this2.wallet=wallet;return _this2;}/**
|
975
987
|
* method freezeMetadata for contract CoreMetadataModule
|
976
988
|
*
|
977
989
|
* @param request CoreMetadataModuleFreezeMetadataRequest
|
978
990
|
* @return Promise<WriteContractReturnType>
|
979
|
-
*/_inherits(CoreMetadataModuleClient,_CoreMetadataModuleRe);return _createClass(CoreMetadataModuleClient,[{key:"freezeMetadata",value:(function(){var _freezeMetadata=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
991
|
+
*/_inherits(CoreMetadataModuleClient,_CoreMetadataModuleRe);return _createClass(CoreMetadataModuleClient,[{key:"freezeMetadata",value:(function(){var _freezeMetadata=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(request){var _yield$this$rpcClient4,call;return _regeneratorRuntime().wrap(function _callee13$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"freezeMetadata",account:this.wallet.account,args:[request.ipId]});case 2:_yield$this$rpcClient4=_context13.sent;call=_yield$this$rpcClient4.request;_context13.next=6;return this.wallet.writeContract(call);case 6:return _context13.abrupt("return",_context13.sent);case 7:case"end":return _context13.stop();}},_callee13,this);}));function freezeMetadata(_x6){return _freezeMetadata.apply(this,arguments);}return freezeMetadata;}()/**
|
980
992
|
* method freezeMetadata for contract CoreMetadataModule with only encode
|
981
993
|
*
|
982
994
|
* @param request CoreMetadataModuleFreezeMetadataRequest
|
@@ -986,7 +998,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
986
998
|
*
|
987
999
|
* @param request CoreMetadataModuleInitializeRequest
|
988
1000
|
* @return Promise<WriteContractReturnType>
|
989
|
-
*/},{key:"initialize",value:(function(){var
|
1001
|
+
*/},{key:"initialize",value:(function(){var _initialize=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(request){var _yield$this$rpcClient5,call;return _regeneratorRuntime().wrap(function _callee14$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"initialize",account:this.wallet.account,args:[request.accessManager]});case 2:_yield$this$rpcClient5=_context14.sent;call=_yield$this$rpcClient5.request;_context14.next=6;return this.wallet.writeContract(call);case 6:return _context14.abrupt("return",_context14.sent);case 7:case"end":return _context14.stop();}},_callee14,this);}));function initialize(_x7){return _initialize.apply(this,arguments);}return initialize;}()/**
|
990
1002
|
* method initialize for contract CoreMetadataModule with only encode
|
991
1003
|
*
|
992
1004
|
* @param request CoreMetadataModuleInitializeRequest
|
@@ -996,7 +1008,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
996
1008
|
*
|
997
1009
|
* @param request CoreMetadataModuleSetAllRequest
|
998
1010
|
* @return Promise<WriteContractReturnType>
|
999
|
-
*/},{key:"setAll",value:(function(){var _setAll=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1011
|
+
*/},{key:"setAll",value:(function(){var _setAll=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(request){var _yield$this$rpcClient6,call;return _regeneratorRuntime().wrap(function _callee15$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"setAll",account:this.wallet.account,args:[request.ipId,request.metadataURI,request.metadataHash,request.nftMetadataHash]});case 2:_yield$this$rpcClient6=_context15.sent;call=_yield$this$rpcClient6.request;_context15.next=6;return this.wallet.writeContract(call);case 6:return _context15.abrupt("return",_context15.sent);case 7:case"end":return _context15.stop();}},_callee15,this);}));function setAll(_x8){return _setAll.apply(this,arguments);}return setAll;}()/**
|
1000
1012
|
* method setAll for contract CoreMetadataModule with only encode
|
1001
1013
|
*
|
1002
1014
|
* @param request CoreMetadataModuleSetAllRequest
|
@@ -1006,7 +1018,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1006
1018
|
*
|
1007
1019
|
* @param request CoreMetadataModuleSetAuthorityRequest
|
1008
1020
|
* @return Promise<WriteContractReturnType>
|
1009
|
-
*/},{key:"setAuthority",value:(function(){var
|
1021
|
+
*/},{key:"setAuthority",value:(function(){var _setAuthority=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(request){var _yield$this$rpcClient7,call;return _regeneratorRuntime().wrap(function _callee16$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"setAuthority",account:this.wallet.account,args:[request.newAuthority]});case 2:_yield$this$rpcClient7=_context16.sent;call=_yield$this$rpcClient7.request;_context16.next=6;return this.wallet.writeContract(call);case 6:return _context16.abrupt("return",_context16.sent);case 7:case"end":return _context16.stop();}},_callee16,this);}));function setAuthority(_x9){return _setAuthority.apply(this,arguments);}return setAuthority;}()/**
|
1010
1022
|
* method setAuthority for contract CoreMetadataModule with only encode
|
1011
1023
|
*
|
1012
1024
|
* @param request CoreMetadataModuleSetAuthorityRequest
|
@@ -1016,7 +1028,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1016
1028
|
*
|
1017
1029
|
* @param request CoreMetadataModuleSetMetadataUriRequest
|
1018
1030
|
* @return Promise<WriteContractReturnType>
|
1019
|
-
*/},{key:"setMetadataUri",value:(function(){var _setMetadataUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1031
|
+
*/},{key:"setMetadataUri",value:(function(){var _setMetadataUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(request){var _yield$this$rpcClient8,call;return _regeneratorRuntime().wrap(function _callee17$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"setMetadataURI",account:this.wallet.account,args:[request.ipId,request.metadataURI,request.metadataHash]});case 2:_yield$this$rpcClient8=_context17.sent;call=_yield$this$rpcClient8.request;_context17.next=6;return this.wallet.writeContract(call);case 6:return _context17.abrupt("return",_context17.sent);case 7:case"end":return _context17.stop();}},_callee17,this);}));function setMetadataUri(_x10){return _setMetadataUri.apply(this,arguments);}return setMetadataUri;}()/**
|
1020
1032
|
* method setMetadataURI for contract CoreMetadataModule with only encode
|
1021
1033
|
*
|
1022
1034
|
* @param request CoreMetadataModuleSetMetadataUriRequest
|
@@ -1026,7 +1038,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1026
1038
|
*
|
1027
1039
|
* @param request CoreMetadataModuleUpdateNftTokenUriRequest
|
1028
1040
|
* @return Promise<WriteContractReturnType>
|
1029
|
-
*/},{key:"updateNftTokenUri",value:(function(){var _updateNftTokenUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1041
|
+
*/},{key:"updateNftTokenUri",value:(function(){var _updateNftTokenUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(request){var _yield$this$rpcClient9,call;return _regeneratorRuntime().wrap(function _callee18$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"updateNftTokenURI",account:this.wallet.account,args:[request.ipId,request.nftMetadataHash]});case 2:_yield$this$rpcClient9=_context18.sent;call=_yield$this$rpcClient9.request;_context18.next=6;return this.wallet.writeContract(call);case 6:return _context18.abrupt("return",_context18.sent);case 7:case"end":return _context18.stop();}},_callee18,this);}));function updateNftTokenUri(_x11){return _updateNftTokenUri.apply(this,arguments);}return updateNftTokenUri;}()/**
|
1030
1042
|
* method updateNftTokenURI for contract CoreMetadataModule with only encode
|
1031
1043
|
*
|
1032
1044
|
* @param request CoreMetadataModuleUpdateNftTokenUriRequest
|
@@ -1036,7 +1048,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1036
1048
|
*
|
1037
1049
|
* @param request CoreMetadataModuleUpgradeToAndCallRequest
|
1038
1050
|
* @return Promise<WriteContractReturnType>
|
1039
|
-
*/},{key:"upgradeToAndCall",value:(function(){var
|
1051
|
+
*/},{key:"upgradeToAndCall",value:(function(){var _upgradeToAndCall=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(request){var _yield$this$rpcClient10,call;return _regeneratorRuntime().wrap(function _callee19$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return this.rpcClient.simulateContract({abi:coreMetadataModuleAbi,address:this.address,functionName:"upgradeToAndCall",account:this.wallet.account,args:[request.newImplementation,request.data]});case 2:_yield$this$rpcClient10=_context19.sent;call=_yield$this$rpcClient10.request;_context19.next=6;return this.wallet.writeContract(call);case 6:return _context19.abrupt("return",_context19.sent);case 7:case"end":return _context19.stop();}},_callee19,this);}));function upgradeToAndCall(_x12){return _upgradeToAndCall.apply(this,arguments);}return upgradeToAndCall;}()/**
|
1040
1052
|
* method upgradeToAndCall for contract CoreMetadataModule with only encode
|
1041
1053
|
*
|
1042
1054
|
* @param request CoreMetadataModuleUpgradeToAndCallRequest
|
@@ -1078,12 +1090,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1078
1090
|
* @param sigRegister tuple
|
1079
1091
|
*/ /**
|
1080
1092
|
* contract DerivativeWorkflows write method
|
1081
|
-
*/var DerivativeWorkflowsClient=/*#__PURE__*/function(){function DerivativeWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
1093
|
+
*/var DerivativeWorkflowsClient=/*#__PURE__*/function(){function DerivativeWorkflowsClient(rpcClient,wallet,address){var _rpcClient$chain3;_classCallCheck(this,DerivativeWorkflowsClient);this.address=address||getAddress(derivativeWorkflowsAddress,(_rpcClient$chain3=rpcClient.chain)===null||_rpcClient$chain3===void 0?void 0:_rpcClient$chain3.id);this.rpcClient=rpcClient;this.wallet=wallet;}/**
|
1082
1094
|
* method mintAndRegisterIpAndMakeDerivative for contract DerivativeWorkflows
|
1083
1095
|
*
|
1084
1096
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest
|
1085
1097
|
* @return Promise<WriteContractReturnType>
|
1086
|
-
*/return _createClass(DerivativeWorkflowsClient,[{key:"mintAndRegisterIpAndMakeDerivative",value:(function(){var _mintAndRegisterIpAndMakeDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1098
|
+
*/return _createClass(DerivativeWorkflowsClient,[{key:"mintAndRegisterIpAndMakeDerivative",value:(function(){var _mintAndRegisterIpAndMakeDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(request){var _yield$this$rpcClient11,call;return _regeneratorRuntime().wrap(function _callee20$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.next=2;return this.rpcClient.simulateContract({abi:derivativeWorkflowsAbi,address:this.address,functionName:"mintAndRegisterIpAndMakeDerivative",account:this.wallet.account,args:[request.spgNftContract,request.derivData,request.ipMetadata,request.recipient]});case 2:_yield$this$rpcClient11=_context20.sent;call=_yield$this$rpcClient11.request;_context20.next=6;return this.wallet.writeContract(call);case 6:return _context20.abrupt("return",_context20.sent);case 7:case"end":return _context20.stop();}},_callee20,this);}));function mintAndRegisterIpAndMakeDerivative(_x13){return _mintAndRegisterIpAndMakeDerivative.apply(this,arguments);}return mintAndRegisterIpAndMakeDerivative;}()/**
|
1087
1099
|
* method mintAndRegisterIpAndMakeDerivative for contract DerivativeWorkflows with only encode
|
1088
1100
|
*
|
1089
1101
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest
|
@@ -1093,7 +1105,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1093
1105
|
*
|
1094
1106
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
1095
1107
|
* @return Promise<WriteContractReturnType>
|
1096
|
-
*/},{key:"mintAndRegisterIpAndMakeDerivativeWithLicenseTokens",value:(function(){var _mintAndRegisterIpAndMakeDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1108
|
+
*/},{key:"mintAndRegisterIpAndMakeDerivativeWithLicenseTokens",value:(function(){var _mintAndRegisterIpAndMakeDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(request){var _yield$this$rpcClient12,call;return _regeneratorRuntime().wrap(function _callee21$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.next=2;return this.rpcClient.simulateContract({abi:derivativeWorkflowsAbi,address:this.address,functionName:"mintAndRegisterIpAndMakeDerivativeWithLicenseTokens",account:this.wallet.account,args:[request.spgNftContract,request.licenseTokenIds,request.royaltyContext,request.ipMetadata,request.recipient]});case 2:_yield$this$rpcClient12=_context21.sent;call=_yield$this$rpcClient12.request;_context21.next=6;return this.wallet.writeContract(call);case 6:return _context21.abrupt("return",_context21.sent);case 7:case"end":return _context21.stop();}},_callee21,this);}));function mintAndRegisterIpAndMakeDerivativeWithLicenseTokens(_x14){return _mintAndRegisterIpAndMakeDerivativeWithLicenseTokens.apply(this,arguments);}return mintAndRegisterIpAndMakeDerivativeWithLicenseTokens;}()/**
|
1097
1109
|
* method mintAndRegisterIpAndMakeDerivativeWithLicenseTokens for contract DerivativeWorkflows with only encode
|
1098
1110
|
*
|
1099
1111
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
@@ -1103,7 +1115,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1103
1115
|
*
|
1104
1116
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest
|
1105
1117
|
* @return Promise<WriteContractReturnType>
|
1106
|
-
*/},{key:"registerIpAndMakeDerivative",value:(function(){var _registerIpAndMakeDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1118
|
+
*/},{key:"registerIpAndMakeDerivative",value:(function(){var _registerIpAndMakeDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(request){var _yield$this$rpcClient13,call;return _regeneratorRuntime().wrap(function _callee22$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return this.rpcClient.simulateContract({abi:derivativeWorkflowsAbi,address:this.address,functionName:"registerIpAndMakeDerivative",account:this.wallet.account,args:[request.nftContract,request.tokenId,request.derivData,request.ipMetadata,request.sigMetadata,request.sigRegister]});case 2:_yield$this$rpcClient13=_context22.sent;call=_yield$this$rpcClient13.request;_context22.next=6;return this.wallet.writeContract(call);case 6:return _context22.abrupt("return",_context22.sent);case 7:case"end":return _context22.stop();}},_callee22,this);}));function registerIpAndMakeDerivative(_x15){return _registerIpAndMakeDerivative.apply(this,arguments);}return registerIpAndMakeDerivative;}()/**
|
1107
1119
|
* method registerIpAndMakeDerivative for contract DerivativeWorkflows with only encode
|
1108
1120
|
*
|
1109
1121
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest
|
@@ -1113,7 +1125,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1113
1125
|
*
|
1114
1126
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
1115
1127
|
* @return Promise<WriteContractReturnType>
|
1116
|
-
*/},{key:"registerIpAndMakeDerivativeWithLicenseTokens",value:(function(){var _registerIpAndMakeDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1128
|
+
*/},{key:"registerIpAndMakeDerivativeWithLicenseTokens",value:(function(){var _registerIpAndMakeDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(request){var _yield$this$rpcClient14,call;return _regeneratorRuntime().wrap(function _callee23$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:_context23.next=2;return this.rpcClient.simulateContract({abi:derivativeWorkflowsAbi,address:this.address,functionName:"registerIpAndMakeDerivativeWithLicenseTokens",account:this.wallet.account,args:[request.nftContract,request.tokenId,request.licenseTokenIds,request.royaltyContext,request.ipMetadata,request.sigMetadata,request.sigRegister]});case 2:_yield$this$rpcClient14=_context23.sent;call=_yield$this$rpcClient14.request;_context23.next=6;return this.wallet.writeContract(call);case 6:return _context23.abrupt("return",_context23.sent);case 7:case"end":return _context23.stop();}},_callee23,this);}));function registerIpAndMakeDerivativeWithLicenseTokens(_x16){return _registerIpAndMakeDerivativeWithLicenseTokens.apply(this,arguments);}return registerIpAndMakeDerivativeWithLicenseTokens;}()/**
|
1117
1129
|
* method registerIpAndMakeDerivativeWithLicenseTokens for contract DerivativeWorkflows with only encode
|
1118
1130
|
*
|
1119
1131
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
@@ -1157,26 +1169,26 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1157
1169
|
* @param data bytes
|
1158
1170
|
*/ /**
|
1159
1171
|
* contract DisputeModule event
|
1160
|
-
*/var DisputeModuleEventClient=/*#__PURE__*/function(){function DisputeModuleEventClient(rpcClient,address){var _rpcClient$
|
1172
|
+
*/var DisputeModuleEventClient=/*#__PURE__*/function(){function DisputeModuleEventClient(rpcClient,address){var _rpcClient$chain4;_classCallCheck(this,DisputeModuleEventClient);this.address=address||getAddress(disputeModuleAddress,(_rpcClient$chain4=rpcClient.chain)===null||_rpcClient$chain4===void 0?void 0:_rpcClient$chain4.id);this.rpcClient=rpcClient;}/**
|
1161
1173
|
* event DisputeCancelled for contract DisputeModule
|
1162
|
-
*/return _createClass(DisputeModuleEventClient,[{key:"watchDisputeCancelledEvent",value:function watchDisputeCancelledEvent(
|
1174
|
+
*/return _createClass(DisputeModuleEventClient,[{key:"watchDisputeCancelledEvent",value:function watchDisputeCancelledEvent(_onLogs8){return this.rpcClient.watchContractEvent({abi:disputeModuleAbi,address:this.address,eventName:"DisputeCancelled",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs8(it.transactionHash,it.args);});}});}/**
|
1163
1175
|
* parse tx receipt event DisputeCancelled for contract DisputeModule
|
1164
|
-
*/},{key:"parseTxDisputeCancelledEvent",value:function parseTxDisputeCancelledEvent(txReceipt){var targetLogs=[];var
|
1176
|
+
*/},{key:"parseTxDisputeCancelledEvent",value:function parseTxDisputeCancelledEvent(txReceipt){var targetLogs=[];var _iterator8=_createForOfIteratorHelper(txReceipt.logs),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var log=_step8.value;try{var event=viem.decodeEventLog({abi:disputeModuleAbi,eventName:"DisputeCancelled",data:log.data,topics:log.topics});if(event.eventName==="DisputeCancelled"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}return targetLogs;}/**
|
1165
1177
|
* event DisputeRaised for contract DisputeModule
|
1166
|
-
*/},{key:"watchDisputeRaisedEvent",value:function watchDisputeRaisedEvent(
|
1178
|
+
*/},{key:"watchDisputeRaisedEvent",value:function watchDisputeRaisedEvent(_onLogs9){return this.rpcClient.watchContractEvent({abi:disputeModuleAbi,address:this.address,eventName:"DisputeRaised",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs9(it.transactionHash,it.args);});}});}/**
|
1167
1179
|
* parse tx receipt event DisputeRaised for contract DisputeModule
|
1168
|
-
*/},{key:"parseTxDisputeRaisedEvent",value:function parseTxDisputeRaisedEvent(txReceipt){var targetLogs=[];var
|
1180
|
+
*/},{key:"parseTxDisputeRaisedEvent",value:function parseTxDisputeRaisedEvent(txReceipt){var targetLogs=[];var _iterator9=_createForOfIteratorHelper(txReceipt.logs),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var log=_step9.value;try{var event=viem.decodeEventLog({abi:disputeModuleAbi,eventName:"DisputeRaised",data:log.data,topics:log.topics});if(event.eventName==="DisputeRaised"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}return targetLogs;}/**
|
1169
1181
|
* event DisputeResolved for contract DisputeModule
|
1170
|
-
*/},{key:"watchDisputeResolvedEvent",value:function watchDisputeResolvedEvent(
|
1182
|
+
*/},{key:"watchDisputeResolvedEvent",value:function watchDisputeResolvedEvent(_onLogs10){return this.rpcClient.watchContractEvent({abi:disputeModuleAbi,address:this.address,eventName:"DisputeResolved",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs10(it.transactionHash,it.args);});}});}/**
|
1171
1183
|
* parse tx receipt event DisputeResolved for contract DisputeModule
|
1172
|
-
*/},{key:"parseTxDisputeResolvedEvent",value:function parseTxDisputeResolvedEvent(txReceipt){var targetLogs=[];var
|
1184
|
+
*/},{key:"parseTxDisputeResolvedEvent",value:function parseTxDisputeResolvedEvent(txReceipt){var targetLogs=[];var _iterator10=_createForOfIteratorHelper(txReceipt.logs),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var log=_step10.value;try{var event=viem.decodeEventLog({abi:disputeModuleAbi,eventName:"DisputeResolved",data:log.data,topics:log.topics});if(event.eventName==="DisputeResolved"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}return targetLogs;}}]);}();/**
|
1173
1185
|
* contract DisputeModule write method
|
1174
|
-
*/var DisputeModuleClient=/*#__PURE__*/function(_DisputeModuleEventCl){function DisputeModuleClient(rpcClient,wallet,address){var
|
1186
|
+
*/var DisputeModuleClient=/*#__PURE__*/function(_DisputeModuleEventCl){function DisputeModuleClient(rpcClient,wallet,address){var _this3;_classCallCheck(this,DisputeModuleClient);_this3=_callSuper(this,DisputeModuleClient,[rpcClient,address]);_this3.wallet=wallet;return _this3;}/**
|
1175
1187
|
* method cancelDispute for contract DisputeModule
|
1176
1188
|
*
|
1177
1189
|
* @param request DisputeModuleCancelDisputeRequest
|
1178
1190
|
* @return Promise<WriteContractReturnType>
|
1179
|
-
*/_inherits(DisputeModuleClient,_DisputeModuleEventCl);return _createClass(DisputeModuleClient,[{key:"cancelDispute",value:(function(){var _cancelDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1191
|
+
*/_inherits(DisputeModuleClient,_DisputeModuleEventCl);return _createClass(DisputeModuleClient,[{key:"cancelDispute",value:(function(){var _cancelDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(request){var _yield$this$rpcClient15,call;return _regeneratorRuntime().wrap(function _callee24$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:_context24.next=2;return this.rpcClient.simulateContract({abi:disputeModuleAbi,address:this.address,functionName:"cancelDispute",account:this.wallet.account,args:[request.disputeId,request.data]});case 2:_yield$this$rpcClient15=_context24.sent;call=_yield$this$rpcClient15.request;_context24.next=6;return this.wallet.writeContract(call);case 6:return _context24.abrupt("return",_context24.sent);case 7:case"end":return _context24.stop();}},_callee24,this);}));function cancelDispute(_x17){return _cancelDispute.apply(this,arguments);}return cancelDispute;}()/**
|
1180
1192
|
* method cancelDispute for contract DisputeModule with only encode
|
1181
1193
|
*
|
1182
1194
|
* @param request DisputeModuleCancelDisputeRequest
|
@@ -1186,7 +1198,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1186
1198
|
*
|
1187
1199
|
* @param request DisputeModuleRaiseDisputeRequest
|
1188
1200
|
* @return Promise<WriteContractReturnType>
|
1189
|
-
*/},{key:"raiseDispute",value:(function(){var _raiseDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1201
|
+
*/},{key:"raiseDispute",value:(function(){var _raiseDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(request){var _yield$this$rpcClient16,call;return _regeneratorRuntime().wrap(function _callee25$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:_context25.next=2;return this.rpcClient.simulateContract({abi:disputeModuleAbi,address:this.address,functionName:"raiseDispute",account:this.wallet.account,args:[request.targetIpId,request.disputeEvidenceHash,request.targetTag,request.data]});case 2:_yield$this$rpcClient16=_context25.sent;call=_yield$this$rpcClient16.request;_context25.next=6;return this.wallet.writeContract(call);case 6:return _context25.abrupt("return",_context25.sent);case 7:case"end":return _context25.stop();}},_callee25,this);}));function raiseDispute(_x18){return _raiseDispute.apply(this,arguments);}return raiseDispute;}()/**
|
1190
1202
|
* method raiseDispute for contract DisputeModule with only encode
|
1191
1203
|
*
|
1192
1204
|
* @param request DisputeModuleRaiseDisputeRequest
|
@@ -1196,7 +1208,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1196
1208
|
*
|
1197
1209
|
* @param request DisputeModuleResolveDisputeRequest
|
1198
1210
|
* @return Promise<WriteContractReturnType>
|
1199
|
-
*/},{key:"resolveDispute",value:(function(){var _resolveDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1211
|
+
*/},{key:"resolveDispute",value:(function(){var _resolveDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(request){var _yield$this$rpcClient17,call;return _regeneratorRuntime().wrap(function _callee26$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:_context26.next=2;return this.rpcClient.simulateContract({abi:disputeModuleAbi,address:this.address,functionName:"resolveDispute",account:this.wallet.account,args:[request.disputeId,request.data]});case 2:_yield$this$rpcClient17=_context26.sent;call=_yield$this$rpcClient17.request;_context26.next=6;return this.wallet.writeContract(call);case 6:return _context26.abrupt("return",_context26.sent);case 7:case"end":return _context26.stop();}},_callee26,this);}));function resolveDispute(_x19){return _resolveDispute.apply(this,arguments);}return resolveDispute;}()/**
|
1200
1212
|
* method resolveDispute for contract DisputeModule with only encode
|
1201
1213
|
*
|
1202
1214
|
* @param request DisputeModuleResolveDisputeRequest
|
@@ -1311,131 +1323,131 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1311
1323
|
* @param rewardPool address
|
1312
1324
|
*/ /**
|
1313
1325
|
* contract GroupingModule event
|
1314
|
-
*/var GroupingModuleEventClient=/*#__PURE__*/function(){function GroupingModuleEventClient(rpcClient,address){var _rpcClient$
|
1326
|
+
*/var GroupingModuleEventClient=/*#__PURE__*/function(){function GroupingModuleEventClient(rpcClient,address){var _rpcClient$chain6;_classCallCheck(this,GroupingModuleEventClient);this.address=address||getAddress(groupingModuleAddress,(_rpcClient$chain6=rpcClient.chain)===null||_rpcClient$chain6===void 0?void 0:_rpcClient$chain6.id);this.rpcClient=rpcClient;}/**
|
1315
1327
|
* event AddedIpToGroup for contract GroupingModule
|
1316
|
-
*/return _createClass(GroupingModuleEventClient,[{key:"watchAddedIpToGroupEvent",value:function watchAddedIpToGroupEvent(
|
1328
|
+
*/return _createClass(GroupingModuleEventClient,[{key:"watchAddedIpToGroupEvent",value:function watchAddedIpToGroupEvent(_onLogs16){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"AddedIpToGroup",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs16(it.transactionHash,it.args);});}});}/**
|
1317
1329
|
* parse tx receipt event AddedIpToGroup for contract GroupingModule
|
1318
|
-
*/},{key:"parseTxAddedIpToGroupEvent",value:function parseTxAddedIpToGroupEvent(txReceipt){var targetLogs=[];var
|
1330
|
+
*/},{key:"parseTxAddedIpToGroupEvent",value:function parseTxAddedIpToGroupEvent(txReceipt){var targetLogs=[];var _iterator16=_createForOfIteratorHelper(txReceipt.logs),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var log=_step16.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"AddedIpToGroup",data:log.data,topics:log.topics});if(event.eventName==="AddedIpToGroup"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}return targetLogs;}/**
|
1319
1331
|
* event AuthorityUpdated for contract GroupingModule
|
1320
|
-
*/},{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
1332
|
+
*/},{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(_onLogs17){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"AuthorityUpdated",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs17(it.transactionHash,it.args);});}});}/**
|
1321
1333
|
* parse tx receipt event AuthorityUpdated for contract GroupingModule
|
1322
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
1334
|
+
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var _iterator17=_createForOfIteratorHelper(txReceipt.logs),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var log=_step17.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"AuthorityUpdated",data:log.data,topics:log.topics});if(event.eventName==="AuthorityUpdated"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}return targetLogs;}/**
|
1323
1335
|
* event ClaimedReward for contract GroupingModule
|
1324
|
-
*/},{key:"watchClaimedRewardEvent",value:function watchClaimedRewardEvent(
|
1336
|
+
*/},{key:"watchClaimedRewardEvent",value:function watchClaimedRewardEvent(_onLogs18){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"ClaimedReward",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs18(it.transactionHash,it.args);});}});}/**
|
1325
1337
|
* parse tx receipt event ClaimedReward for contract GroupingModule
|
1326
|
-
*/},{key:"parseTxClaimedRewardEvent",value:function parseTxClaimedRewardEvent(txReceipt){var targetLogs=[];var
|
1338
|
+
*/},{key:"parseTxClaimedRewardEvent",value:function parseTxClaimedRewardEvent(txReceipt){var targetLogs=[];var _iterator18=_createForOfIteratorHelper(txReceipt.logs),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var log=_step18.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"ClaimedReward",data:log.data,topics:log.topics});if(event.eventName==="ClaimedReward"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return targetLogs;}/**
|
1327
1339
|
* event CollectedRoyaltiesToGroupPool for contract GroupingModule
|
1328
|
-
*/},{key:"watchCollectedRoyaltiesToGroupPoolEvent",value:function watchCollectedRoyaltiesToGroupPoolEvent(
|
1340
|
+
*/},{key:"watchCollectedRoyaltiesToGroupPoolEvent",value:function watchCollectedRoyaltiesToGroupPoolEvent(_onLogs19){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"CollectedRoyaltiesToGroupPool",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs19(it.transactionHash,it.args);});}});}/**
|
1329
1341
|
* parse tx receipt event CollectedRoyaltiesToGroupPool for contract GroupingModule
|
1330
|
-
*/},{key:"parseTxCollectedRoyaltiesToGroupPoolEvent",value:function parseTxCollectedRoyaltiesToGroupPoolEvent(txReceipt){var targetLogs=[];var
|
1342
|
+
*/},{key:"parseTxCollectedRoyaltiesToGroupPoolEvent",value:function parseTxCollectedRoyaltiesToGroupPoolEvent(txReceipt){var targetLogs=[];var _iterator19=_createForOfIteratorHelper(txReceipt.logs),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var log=_step19.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"CollectedRoyaltiesToGroupPool",data:log.data,topics:log.topics});if(event.eventName==="CollectedRoyaltiesToGroupPool"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return targetLogs;}/**
|
1331
1343
|
* event IPGroupRegistered for contract GroupingModule
|
1332
|
-
*/},{key:"watchIpGroupRegisteredEvent",value:function watchIpGroupRegisteredEvent(
|
1344
|
+
*/},{key:"watchIpGroupRegisteredEvent",value:function watchIpGroupRegisteredEvent(_onLogs20){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"IPGroupRegistered",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs20(it.transactionHash,it.args);});}});}/**
|
1333
1345
|
* parse tx receipt event IPGroupRegistered for contract GroupingModule
|
1334
|
-
*/},{key:"parseTxIpGroupRegisteredEvent",value:function parseTxIpGroupRegisteredEvent(txReceipt){var targetLogs=[];var
|
1346
|
+
*/},{key:"parseTxIpGroupRegisteredEvent",value:function parseTxIpGroupRegisteredEvent(txReceipt){var targetLogs=[];var _iterator20=_createForOfIteratorHelper(txReceipt.logs),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var log=_step20.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"IPGroupRegistered",data:log.data,topics:log.topics});if(event.eventName==="IPGroupRegistered"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return targetLogs;}/**
|
1335
1347
|
* event Initialized for contract GroupingModule
|
1336
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
1348
|
+
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(_onLogs21){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"Initialized",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs21(it.transactionHash,it.args);});}});}/**
|
1337
1349
|
* parse tx receipt event Initialized for contract GroupingModule
|
1338
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
1350
|
+
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var _iterator21=_createForOfIteratorHelper(txReceipt.logs),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var log=_step21.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"Initialized",data:log.data,topics:log.topics});if(event.eventName==="Initialized"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return targetLogs;}/**
|
1339
1351
|
* event Paused for contract GroupingModule
|
1340
|
-
*/},{key:"watchPausedEvent",value:function watchPausedEvent(
|
1352
|
+
*/},{key:"watchPausedEvent",value:function watchPausedEvent(_onLogs22){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"Paused",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs22(it.transactionHash,it.args);});}});}/**
|
1341
1353
|
* parse tx receipt event Paused for contract GroupingModule
|
1342
|
-
*/},{key:"parseTxPausedEvent",value:function parseTxPausedEvent(txReceipt){var targetLogs=[];var
|
1354
|
+
*/},{key:"parseTxPausedEvent",value:function parseTxPausedEvent(txReceipt){var targetLogs=[];var _iterator22=_createForOfIteratorHelper(txReceipt.logs),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var log=_step22.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"Paused",data:log.data,topics:log.topics});if(event.eventName==="Paused"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}return targetLogs;}/**
|
1343
1355
|
* event RemovedIpFromGroup for contract GroupingModule
|
1344
|
-
*/},{key:"watchRemovedIpFromGroupEvent",value:function watchRemovedIpFromGroupEvent(
|
1356
|
+
*/},{key:"watchRemovedIpFromGroupEvent",value:function watchRemovedIpFromGroupEvent(_onLogs23){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"RemovedIpFromGroup",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs23(it.transactionHash,it.args);});}});}/**
|
1345
1357
|
* parse tx receipt event RemovedIpFromGroup for contract GroupingModule
|
1346
|
-
*/},{key:"parseTxRemovedIpFromGroupEvent",value:function parseTxRemovedIpFromGroupEvent(txReceipt){var targetLogs=[];var
|
1358
|
+
*/},{key:"parseTxRemovedIpFromGroupEvent",value:function parseTxRemovedIpFromGroupEvent(txReceipt){var targetLogs=[];var _iterator23=_createForOfIteratorHelper(txReceipt.logs),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var log=_step23.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"RemovedIpFromGroup",data:log.data,topics:log.topics});if(event.eventName==="RemovedIpFromGroup"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}return targetLogs;}/**
|
1347
1359
|
* event Unpaused for contract GroupingModule
|
1348
|
-
*/},{key:"watchUnpausedEvent",value:function watchUnpausedEvent(
|
1360
|
+
*/},{key:"watchUnpausedEvent",value:function watchUnpausedEvent(_onLogs24){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"Unpaused",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs24(it.transactionHash,it.args);});}});}/**
|
1349
1361
|
* parse tx receipt event Unpaused for contract GroupingModule
|
1350
|
-
*/},{key:"parseTxUnpausedEvent",value:function parseTxUnpausedEvent(txReceipt){var targetLogs=[];var
|
1362
|
+
*/},{key:"parseTxUnpausedEvent",value:function parseTxUnpausedEvent(txReceipt){var targetLogs=[];var _iterator24=_createForOfIteratorHelper(txReceipt.logs),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var log=_step24.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"Unpaused",data:log.data,topics:log.topics});if(event.eventName==="Unpaused"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}return targetLogs;}/**
|
1351
1363
|
* event Upgraded for contract GroupingModule
|
1352
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
1364
|
+
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(_onLogs25){return this.rpcClient.watchContractEvent({abi:groupingModuleAbi,address:this.address,eventName:"Upgraded",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs25(it.transactionHash,it.args);});}});}/**
|
1353
1365
|
* parse tx receipt event Upgraded for contract GroupingModule
|
1354
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
1366
|
+
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var _iterator25=_createForOfIteratorHelper(txReceipt.logs),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var log=_step25.value;try{var event=viem.decodeEventLog({abi:groupingModuleAbi,eventName:"Upgraded",data:log.data,topics:log.topics});if(event.eventName==="Upgraded"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return targetLogs;}}]);}();/**
|
1355
1367
|
* contract GroupingModule readonly method
|
1356
1368
|
*/var GroupingModuleReadOnlyClient=/*#__PURE__*/function(_GroupingModuleEventC){function GroupingModuleReadOnlyClient(rpcClient,address){_classCallCheck(this,GroupingModuleReadOnlyClient);return _callSuper(this,GroupingModuleReadOnlyClient,[rpcClient,address]);}/**
|
1357
1369
|
* method ACCESS_CONTROLLER for contract GroupingModule
|
1358
1370
|
*
|
1359
1371
|
* @param request GroupingModuleAccessControllerRequest
|
1360
1372
|
* @return Promise<GroupingModuleAccessControllerResponse>
|
1361
|
-
*/_inherits(GroupingModuleReadOnlyClient,_GroupingModuleEventC);return _createClass(GroupingModuleReadOnlyClient,[{key:"accessController",value:(function(){var _accessController2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1373
|
+
*/_inherits(GroupingModuleReadOnlyClient,_GroupingModuleEventC);return _createClass(GroupingModuleReadOnlyClient,[{key:"accessController",value:(function(){var _accessController2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee50(){return _regeneratorRuntime().wrap(function _callee50$(_context50){while(1)switch(_context50.prev=_context50.next){case 0:_context50.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"ACCESS_CONTROLLER"});case 2:return _context50.abrupt("return",_context50.sent);case 3:case"end":return _context50.stop();}},_callee50,this);}));function accessController(){return _accessController2.apply(this,arguments);}return accessController;}()/**
|
1362
1374
|
* method GROUP_IP_ASSET_REGISTRY for contract GroupingModule
|
1363
1375
|
*
|
1364
1376
|
* @param request GroupingModuleGroupIpAssetRegistryRequest
|
1365
1377
|
* @return Promise<GroupingModuleGroupIpAssetRegistryResponse>
|
1366
|
-
*/)},{key:"groupIpAssetRegistry",value:(function(){var _groupIpAssetRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1378
|
+
*/)},{key:"groupIpAssetRegistry",value:(function(){var _groupIpAssetRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee51(){return _regeneratorRuntime().wrap(function _callee51$(_context51){while(1)switch(_context51.prev=_context51.next){case 0:_context51.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"GROUP_IP_ASSET_REGISTRY"});case 2:return _context51.abrupt("return",_context51.sent);case 3:case"end":return _context51.stop();}},_callee51,this);}));function groupIpAssetRegistry(){return _groupIpAssetRegistry2.apply(this,arguments);}return groupIpAssetRegistry;}()/**
|
1367
1379
|
* method GROUP_NFT for contract GroupingModule
|
1368
1380
|
*
|
1369
1381
|
* @param request GroupingModuleGroupNftRequest
|
1370
1382
|
* @return Promise<GroupingModuleGroupNftResponse>
|
1371
|
-
*/)},{key:"groupNft",value:(function(){var _groupNft=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1383
|
+
*/)},{key:"groupNft",value:(function(){var _groupNft=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee52(){return _regeneratorRuntime().wrap(function _callee52$(_context52){while(1)switch(_context52.prev=_context52.next){case 0:_context52.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"GROUP_NFT"});case 2:return _context52.abrupt("return",_context52.sent);case 3:case"end":return _context52.stop();}},_callee52,this);}));function groupNft(){return _groupNft.apply(this,arguments);}return groupNft;}()/**
|
1372
1384
|
* method IP_ACCOUNT_REGISTRY for contract GroupingModule
|
1373
1385
|
*
|
1374
1386
|
* @param request GroupingModuleIpAccountRegistryRequest
|
1375
1387
|
* @return Promise<GroupingModuleIpAccountRegistryResponse>
|
1376
|
-
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1388
|
+
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee53(){return _regeneratorRuntime().wrap(function _callee53$(_context53){while(1)switch(_context53.prev=_context53.next){case 0:_context53.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"IP_ACCOUNT_REGISTRY"});case 2:return _context53.abrupt("return",_context53.sent);case 3:case"end":return _context53.stop();}},_callee53,this);}));function ipAccountRegistry(){return _ipAccountRegistry2.apply(this,arguments);}return ipAccountRegistry;}()/**
|
1377
1389
|
* method LICENSE_REGISTRY for contract GroupingModule
|
1378
1390
|
*
|
1379
1391
|
* @param request GroupingModuleLicenseRegistryRequest
|
1380
1392
|
* @return Promise<GroupingModuleLicenseRegistryResponse>
|
1381
|
-
*/)},{key:"licenseRegistry",value:(function(){var _licenseRegistry=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1393
|
+
*/)},{key:"licenseRegistry",value:(function(){var _licenseRegistry=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee54(){return _regeneratorRuntime().wrap(function _callee54$(_context54){while(1)switch(_context54.prev=_context54.next){case 0:_context54.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"LICENSE_REGISTRY"});case 2:return _context54.abrupt("return",_context54.sent);case 3:case"end":return _context54.stop();}},_callee54,this);}));function licenseRegistry(){return _licenseRegistry.apply(this,arguments);}return licenseRegistry;}()/**
|
1382
1394
|
* method LICENSE_TOKEN for contract GroupingModule
|
1383
1395
|
*
|
1384
1396
|
* @param request GroupingModuleLicenseTokenRequest
|
1385
1397
|
* @return Promise<GroupingModuleLicenseTokenResponse>
|
1386
|
-
*/)},{key:"licenseToken",value:(function(){var _licenseToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1398
|
+
*/)},{key:"licenseToken",value:(function(){var _licenseToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee55(){return _regeneratorRuntime().wrap(function _callee55$(_context55){while(1)switch(_context55.prev=_context55.next){case 0:_context55.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"LICENSE_TOKEN"});case 2:return _context55.abrupt("return",_context55.sent);case 3:case"end":return _context55.stop();}},_callee55,this);}));function licenseToken(){return _licenseToken.apply(this,arguments);}return licenseToken;}()/**
|
1387
1399
|
* method ROYALTY_MODULE for contract GroupingModule
|
1388
1400
|
*
|
1389
1401
|
* @param request GroupingModuleRoyaltyModuleRequest
|
1390
1402
|
* @return Promise<GroupingModuleRoyaltyModuleResponse>
|
1391
|
-
*/)},{key:"royaltyModule",value:(function(){var _royaltyModule2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1403
|
+
*/)},{key:"royaltyModule",value:(function(){var _royaltyModule2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee56(){return _regeneratorRuntime().wrap(function _callee56$(_context56){while(1)switch(_context56.prev=_context56.next){case 0:_context56.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"ROYALTY_MODULE"});case 2:return _context56.abrupt("return",_context56.sent);case 3:case"end":return _context56.stop();}},_callee56,this);}));function royaltyModule(){return _royaltyModule2.apply(this,arguments);}return royaltyModule;}()/**
|
1392
1404
|
* method UPGRADE_INTERFACE_VERSION for contract GroupingModule
|
1393
1405
|
*
|
1394
1406
|
* @param request GroupingModuleUpgradeInterfaceVersionRequest
|
1395
1407
|
* @return Promise<GroupingModuleUpgradeInterfaceVersionResponse>
|
1396
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
1408
|
+
*/)},{key:"upgradeInterfaceVersion",value:(function(){var _upgradeInterfaceVersion3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee57(){return _regeneratorRuntime().wrap(function _callee57$(_context57){while(1)switch(_context57.prev=_context57.next){case 0:_context57.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"UPGRADE_INTERFACE_VERSION"});case 2:return _context57.abrupt("return",_context57.sent);case 3:case"end":return _context57.stop();}},_callee57,this);}));function upgradeInterfaceVersion(){return _upgradeInterfaceVersion3.apply(this,arguments);}return upgradeInterfaceVersion;}()/**
|
1397
1409
|
* method authority for contract GroupingModule
|
1398
1410
|
*
|
1399
1411
|
* @param request GroupingModuleAuthorityRequest
|
1400
1412
|
* @return Promise<GroupingModuleAuthorityResponse>
|
1401
|
-
*/)},{key:"authority",value:(function(){var
|
1413
|
+
*/)},{key:"authority",value:(function(){var _authority3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee58(){return _regeneratorRuntime().wrap(function _callee58$(_context58){while(1)switch(_context58.prev=_context58.next){case 0:_context58.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"authority"});case 2:return _context58.abrupt("return",_context58.sent);case 3:case"end":return _context58.stop();}},_callee58,this);}));function authority(){return _authority3.apply(this,arguments);}return authority;}()/**
|
1402
1414
|
* method getClaimableReward for contract GroupingModule
|
1403
1415
|
*
|
1404
1416
|
* @param request GroupingModuleGetClaimableRewardRequest
|
1405
1417
|
* @return Promise<GroupingModuleGetClaimableRewardResponse>
|
1406
|
-
*/)},{key:"getClaimableReward",value:(function(){var _getClaimableReward=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1418
|
+
*/)},{key:"getClaimableReward",value:(function(){var _getClaimableReward=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee59(request){return _regeneratorRuntime().wrap(function _callee59$(_context59){while(1)switch(_context59.prev=_context59.next){case 0:_context59.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"getClaimableReward",args:[request.groupId,request.token,request.ipIds]});case 2:return _context59.abrupt("return",_context59.sent);case 3:case"end":return _context59.stop();}},_callee59,this);}));function getClaimableReward(_x33){return _getClaimableReward.apply(this,arguments);}return getClaimableReward;}()/**
|
1407
1419
|
* method isConsumingScheduledOp for contract GroupingModule
|
1408
1420
|
*
|
1409
1421
|
* @param request GroupingModuleIsConsumingScheduledOpRequest
|
1410
1422
|
* @return Promise<GroupingModuleIsConsumingScheduledOpResponse>
|
1411
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
1423
|
+
*/)},{key:"isConsumingScheduledOp",value:(function(){var _isConsumingScheduledOp3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee60(){return _regeneratorRuntime().wrap(function _callee60$(_context60){while(1)switch(_context60.prev=_context60.next){case 0:_context60.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"isConsumingScheduledOp"});case 2:return _context60.abrupt("return",_context60.sent);case 3:case"end":return _context60.stop();}},_callee60,this);}));function isConsumingScheduledOp(){return _isConsumingScheduledOp3.apply(this,arguments);}return isConsumingScheduledOp;}()/**
|
1412
1424
|
* method name for contract GroupingModule
|
1413
1425
|
*
|
1414
1426
|
* @param request GroupingModuleNameRequest
|
1415
1427
|
* @return Promise<GroupingModuleNameResponse>
|
1416
|
-
*/)},{key:"name",value:(function(){var _name2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1428
|
+
*/)},{key:"name",value:(function(){var _name2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee61(){return _regeneratorRuntime().wrap(function _callee61$(_context61){while(1)switch(_context61.prev=_context61.next){case 0:_context61.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"name"});case 2:return _context61.abrupt("return",_context61.sent);case 3:case"end":return _context61.stop();}},_callee61,this);}));function name(){return _name2.apply(this,arguments);}return name;}()/**
|
1417
1429
|
* method paused for contract GroupingModule
|
1418
1430
|
*
|
1419
1431
|
* @param request GroupingModulePausedRequest
|
1420
1432
|
* @return Promise<GroupingModulePausedResponse>
|
1421
|
-
*/)},{key:"paused",value:(function(){var _paused2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1433
|
+
*/)},{key:"paused",value:(function(){var _paused2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee62(){return _regeneratorRuntime().wrap(function _callee62$(_context62){while(1)switch(_context62.prev=_context62.next){case 0:_context62.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"paused"});case 2:return _context62.abrupt("return",_context62.sent);case 3:case"end":return _context62.stop();}},_callee62,this);}));function paused(){return _paused2.apply(this,arguments);}return paused;}()/**
|
1422
1434
|
* method proxiableUUID for contract GroupingModule
|
1423
1435
|
*
|
1424
1436
|
* @param request GroupingModuleProxiableUuidRequest
|
1425
1437
|
* @return Promise<GroupingModuleProxiableUuidResponse>
|
1426
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
1438
|
+
*/)},{key:"proxiableUuid",value:(function(){var _proxiableUuid3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee63(){return _regeneratorRuntime().wrap(function _callee63$(_context63){while(1)switch(_context63.prev=_context63.next){case 0:_context63.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"proxiableUUID"});case 2:return _context63.abrupt("return",_context63.sent);case 3:case"end":return _context63.stop();}},_callee63,this);}));function proxiableUuid(){return _proxiableUuid3.apply(this,arguments);}return proxiableUuid;}()/**
|
1427
1439
|
* method supportsInterface for contract GroupingModule
|
1428
1440
|
*
|
1429
1441
|
* @param request GroupingModuleSupportsInterfaceRequest
|
1430
1442
|
* @return Promise<GroupingModuleSupportsInterfaceResponse>
|
1431
|
-
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1443
|
+
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee64(request){return _regeneratorRuntime().wrap(function _callee64$(_context64){while(1)switch(_context64.prev=_context64.next){case 0:_context64.next=2;return this.rpcClient.readContract({abi:groupingModuleAbi,address:this.address,functionName:"supportsInterface",args:[request.interfaceId]});case 2:return _context64.abrupt("return",_context64.sent);case 3:case"end":return _context64.stop();}},_callee64,this);}));function supportsInterface(_x34){return _supportsInterface2.apply(this,arguments);}return supportsInterface;}())}]);}(GroupingModuleEventClient);/**
|
1432
1444
|
* contract GroupingModule write method
|
1433
|
-
*/var GroupingModuleClient=/*#__PURE__*/function(_GroupingModuleReadOn){function GroupingModuleClient(rpcClient,wallet,address){var
|
1445
|
+
*/var GroupingModuleClient=/*#__PURE__*/function(_GroupingModuleReadOn){function GroupingModuleClient(rpcClient,wallet,address){var _this5;_classCallCheck(this,GroupingModuleClient);_this5=_callSuper(this,GroupingModuleClient,[rpcClient,address]);_this5.wallet=wallet;return _this5;}/**
|
1434
1446
|
* method __ProtocolPausable_init for contract GroupingModule
|
1435
1447
|
*
|
1436
1448
|
* @param request GroupingModuleProtocolPausableInitRequest
|
1437
1449
|
* @return Promise<WriteContractReturnType>
|
1438
|
-
*/_inherits(GroupingModuleClient,_GroupingModuleReadOn);return _createClass(GroupingModuleClient,[{key:"protocolPausableInit",value:(function(){var _protocolPausableInit2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1450
|
+
*/_inherits(GroupingModuleClient,_GroupingModuleReadOn);return _createClass(GroupingModuleClient,[{key:"protocolPausableInit",value:(function(){var _protocolPausableInit2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee65(request){var _yield$this$rpcClient28,call;return _regeneratorRuntime().wrap(function _callee65$(_context65){while(1)switch(_context65.prev=_context65.next){case 0:_context65.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"__ProtocolPausable_init",account:this.wallet.account,args:[request.accessManager]});case 2:_yield$this$rpcClient28=_context65.sent;call=_yield$this$rpcClient28.request;_context65.next=6;return this.wallet.writeContract(call);case 6:return _context65.abrupt("return",_context65.sent);case 7:case"end":return _context65.stop();}},_callee65,this);}));function protocolPausableInit(_x35){return _protocolPausableInit2.apply(this,arguments);}return protocolPausableInit;}()/**
|
1439
1451
|
* method __ProtocolPausable_init for contract GroupingModule with only encode
|
1440
1452
|
*
|
1441
1453
|
* @param request GroupingModuleProtocolPausableInitRequest
|
@@ -1445,7 +1457,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1445
1457
|
*
|
1446
1458
|
* @param request GroupingModuleAddIpRequest
|
1447
1459
|
* @return Promise<WriteContractReturnType>
|
1448
|
-
*/},{key:"addIp",value:(function(){var _addIp2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1460
|
+
*/},{key:"addIp",value:(function(){var _addIp2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee66(request){var _yield$this$rpcClient29,call;return _regeneratorRuntime().wrap(function _callee66$(_context66){while(1)switch(_context66.prev=_context66.next){case 0:_context66.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"addIp",account:this.wallet.account,args:[request.groupIpId,request.ipIds]});case 2:_yield$this$rpcClient29=_context66.sent;call=_yield$this$rpcClient29.request;_context66.next=6;return this.wallet.writeContract(call);case 6:return _context66.abrupt("return",_context66.sent);case 7:case"end":return _context66.stop();}},_callee66,this);}));function addIp(_x36){return _addIp2.apply(this,arguments);}return addIp;}()/**
|
1449
1461
|
* method addIp for contract GroupingModule with only encode
|
1450
1462
|
*
|
1451
1463
|
* @param request GroupingModuleAddIpRequest
|
@@ -1455,7 +1467,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1455
1467
|
*
|
1456
1468
|
* @param request GroupingModuleClaimRewardRequest
|
1457
1469
|
* @return Promise<WriteContractReturnType>
|
1458
|
-
*/},{key:"claimReward",value:(function(){var _claimReward=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1470
|
+
*/},{key:"claimReward",value:(function(){var _claimReward=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee67(request){var _yield$this$rpcClient30,call;return _regeneratorRuntime().wrap(function _callee67$(_context67){while(1)switch(_context67.prev=_context67.next){case 0:_context67.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"claimReward",account:this.wallet.account,args:[request.groupId,request.token,request.ipIds]});case 2:_yield$this$rpcClient30=_context67.sent;call=_yield$this$rpcClient30.request;_context67.next=6;return this.wallet.writeContract(call);case 6:return _context67.abrupt("return",_context67.sent);case 7:case"end":return _context67.stop();}},_callee67,this);}));function claimReward(_x37){return _claimReward.apply(this,arguments);}return claimReward;}()/**
|
1459
1471
|
* method claimReward for contract GroupingModule with only encode
|
1460
1472
|
*
|
1461
1473
|
* @param request GroupingModuleClaimRewardRequest
|
@@ -1465,7 +1477,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1465
1477
|
*
|
1466
1478
|
* @param request GroupingModuleCollectRoyaltiesRequest
|
1467
1479
|
* @return Promise<WriteContractReturnType>
|
1468
|
-
*/},{key:"collectRoyalties",value:(function(){var _collectRoyalties=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1480
|
+
*/},{key:"collectRoyalties",value:(function(){var _collectRoyalties=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee68(request){var _yield$this$rpcClient31,call;return _regeneratorRuntime().wrap(function _callee68$(_context68){while(1)switch(_context68.prev=_context68.next){case 0:_context68.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"collectRoyalties",account:this.wallet.account,args:[request.groupId,request.token,request.snapshotIds]});case 2:_yield$this$rpcClient31=_context68.sent;call=_yield$this$rpcClient31.request;_context68.next=6;return this.wallet.writeContract(call);case 6:return _context68.abrupt("return",_context68.sent);case 7:case"end":return _context68.stop();}},_callee68,this);}));function collectRoyalties(_x38){return _collectRoyalties.apply(this,arguments);}return collectRoyalties;}()/**
|
1469
1481
|
* method collectRoyalties for contract GroupingModule with only encode
|
1470
1482
|
*
|
1471
1483
|
* @param request GroupingModuleCollectRoyaltiesRequest
|
@@ -1475,7 +1487,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1475
1487
|
*
|
1476
1488
|
* @param request GroupingModuleInitializeRequest
|
1477
1489
|
* @return Promise<WriteContractReturnType>
|
1478
|
-
*/},{key:"initialize",value:(function(){var
|
1490
|
+
*/},{key:"initialize",value:(function(){var _initialize3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee69(request){var _yield$this$rpcClient32,call;return _regeneratorRuntime().wrap(function _callee69$(_context69){while(1)switch(_context69.prev=_context69.next){case 0:_context69.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"initialize",account:this.wallet.account,args:[request.accessManager]});case 2:_yield$this$rpcClient32=_context69.sent;call=_yield$this$rpcClient32.request;_context69.next=6;return this.wallet.writeContract(call);case 6:return _context69.abrupt("return",_context69.sent);case 7:case"end":return _context69.stop();}},_callee69,this);}));function initialize(_x39){return _initialize3.apply(this,arguments);}return initialize;}()/**
|
1479
1491
|
* method initialize for contract GroupingModule with only encode
|
1480
1492
|
*
|
1481
1493
|
* @param request GroupingModuleInitializeRequest
|
@@ -1485,7 +1497,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1485
1497
|
*
|
1486
1498
|
* @param request GroupingModulePauseRequest
|
1487
1499
|
* @return Promise<WriteContractReturnType>
|
1488
|
-
*/},{key:"pause",value:(function(){var _pause2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1500
|
+
*/},{key:"pause",value:(function(){var _pause2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee70(){var _yield$this$rpcClient33,call;return _regeneratorRuntime().wrap(function _callee70$(_context70){while(1)switch(_context70.prev=_context70.next){case 0:_context70.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"pause",account:this.wallet.account});case 2:_yield$this$rpcClient33=_context70.sent;call=_yield$this$rpcClient33.request;_context70.next=6;return this.wallet.writeContract(call);case 6:return _context70.abrupt("return",_context70.sent);case 7:case"end":return _context70.stop();}},_callee70,this);}));function pause(){return _pause2.apply(this,arguments);}return pause;}()/**
|
1489
1501
|
* method pause for contract GroupingModule with only encode
|
1490
1502
|
*
|
1491
1503
|
* @param request GroupingModulePauseRequest
|
@@ -1495,7 +1507,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1495
1507
|
*
|
1496
1508
|
* @param request GroupingModuleRegisterGroupRequest
|
1497
1509
|
* @return Promise<WriteContractReturnType>
|
1498
|
-
*/},{key:"registerGroup",value:(function(){var _registerGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1510
|
+
*/},{key:"registerGroup",value:(function(){var _registerGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee71(request){var _yield$this$rpcClient34,call;return _regeneratorRuntime().wrap(function _callee71$(_context71){while(1)switch(_context71.prev=_context71.next){case 0:_context71.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"registerGroup",account:this.wallet.account,args:[request.groupPool]});case 2:_yield$this$rpcClient34=_context71.sent;call=_yield$this$rpcClient34.request;_context71.next=6;return this.wallet.writeContract(call);case 6:return _context71.abrupt("return",_context71.sent);case 7:case"end":return _context71.stop();}},_callee71,this);}));function registerGroup(_x40){return _registerGroup.apply(this,arguments);}return registerGroup;}()/**
|
1499
1511
|
* method registerGroup for contract GroupingModule with only encode
|
1500
1512
|
*
|
1501
1513
|
* @param request GroupingModuleRegisterGroupRequest
|
@@ -1505,7 +1517,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1505
1517
|
*
|
1506
1518
|
* @param request GroupingModuleRemoveIpRequest
|
1507
1519
|
* @return Promise<WriteContractReturnType>
|
1508
|
-
*/},{key:"removeIp",value:(function(){var _removeIp2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1520
|
+
*/},{key:"removeIp",value:(function(){var _removeIp2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee72(request){var _yield$this$rpcClient35,call;return _regeneratorRuntime().wrap(function _callee72$(_context72){while(1)switch(_context72.prev=_context72.next){case 0:_context72.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"removeIp",account:this.wallet.account,args:[request.groupIpId,request.ipIds]});case 2:_yield$this$rpcClient35=_context72.sent;call=_yield$this$rpcClient35.request;_context72.next=6;return this.wallet.writeContract(call);case 6:return _context72.abrupt("return",_context72.sent);case 7:case"end":return _context72.stop();}},_callee72,this);}));function removeIp(_x41){return _removeIp2.apply(this,arguments);}return removeIp;}()/**
|
1509
1521
|
* method removeIp for contract GroupingModule with only encode
|
1510
1522
|
*
|
1511
1523
|
* @param request GroupingModuleRemoveIpRequest
|
@@ -1515,7 +1527,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1515
1527
|
*
|
1516
1528
|
* @param request GroupingModuleSetAuthorityRequest
|
1517
1529
|
* @return Promise<WriteContractReturnType>
|
1518
|
-
*/},{key:"setAuthority",value:(function(){var
|
1530
|
+
*/},{key:"setAuthority",value:(function(){var _setAuthority3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee73(request){var _yield$this$rpcClient36,call;return _regeneratorRuntime().wrap(function _callee73$(_context73){while(1)switch(_context73.prev=_context73.next){case 0:_context73.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"setAuthority",account:this.wallet.account,args:[request.newAuthority]});case 2:_yield$this$rpcClient36=_context73.sent;call=_yield$this$rpcClient36.request;_context73.next=6;return this.wallet.writeContract(call);case 6:return _context73.abrupt("return",_context73.sent);case 7:case"end":return _context73.stop();}},_callee73,this);}));function setAuthority(_x42){return _setAuthority3.apply(this,arguments);}return setAuthority;}()/**
|
1519
1531
|
* method setAuthority for contract GroupingModule with only encode
|
1520
1532
|
*
|
1521
1533
|
* @param request GroupingModuleSetAuthorityRequest
|
@@ -1525,7 +1537,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1525
1537
|
*
|
1526
1538
|
* @param request GroupingModuleUnpauseRequest
|
1527
1539
|
* @return Promise<WriteContractReturnType>
|
1528
|
-
*/},{key:"unpause",value:(function(){var _unpause2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1540
|
+
*/},{key:"unpause",value:(function(){var _unpause2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee74(){var _yield$this$rpcClient37,call;return _regeneratorRuntime().wrap(function _callee74$(_context74){while(1)switch(_context74.prev=_context74.next){case 0:_context74.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"unpause",account:this.wallet.account});case 2:_yield$this$rpcClient37=_context74.sent;call=_yield$this$rpcClient37.request;_context74.next=6;return this.wallet.writeContract(call);case 6:return _context74.abrupt("return",_context74.sent);case 7:case"end":return _context74.stop();}},_callee74,this);}));function unpause(){return _unpause2.apply(this,arguments);}return unpause;}()/**
|
1529
1541
|
* method unpause for contract GroupingModule with only encode
|
1530
1542
|
*
|
1531
1543
|
* @param request GroupingModuleUnpauseRequest
|
@@ -1535,7 +1547,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1535
1547
|
*
|
1536
1548
|
* @param request GroupingModuleUpgradeToAndCallRequest
|
1537
1549
|
* @return Promise<WriteContractReturnType>
|
1538
|
-
*/},{key:"upgradeToAndCall",value:(function(){var
|
1550
|
+
*/},{key:"upgradeToAndCall",value:(function(){var _upgradeToAndCall3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee75(request){var _yield$this$rpcClient38,call;return _regeneratorRuntime().wrap(function _callee75$(_context75){while(1)switch(_context75.prev=_context75.next){case 0:_context75.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"upgradeToAndCall",account:this.wallet.account,args:[request.newImplementation,request.data]});case 2:_yield$this$rpcClient38=_context75.sent;call=_yield$this$rpcClient38.request;_context75.next=6;return this.wallet.writeContract(call);case 6:return _context75.abrupt("return",_context75.sent);case 7:case"end":return _context75.stop();}},_callee75,this);}));function upgradeToAndCall(_x43){return _upgradeToAndCall3.apply(this,arguments);}return upgradeToAndCall;}()/**
|
1539
1551
|
* method upgradeToAndCall for contract GroupingModule with only encode
|
1540
1552
|
*
|
1541
1553
|
* @param request GroupingModuleUpgradeToAndCallRequest
|
@@ -1545,7 +1557,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1545
1557
|
*
|
1546
1558
|
* @param request GroupingModuleWhitelistGroupRewardPoolRequest
|
1547
1559
|
* @return Promise<WriteContractReturnType>
|
1548
|
-
*/},{key:"whitelistGroupRewardPool",value:(function(){var _whitelistGroupRewardPool=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1560
|
+
*/},{key:"whitelistGroupRewardPool",value:(function(){var _whitelistGroupRewardPool=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee76(request){var _yield$this$rpcClient39,call;return _regeneratorRuntime().wrap(function _callee76$(_context76){while(1)switch(_context76.prev=_context76.next){case 0:_context76.next=2;return this.rpcClient.simulateContract({abi:groupingModuleAbi,address:this.address,functionName:"whitelistGroupRewardPool",account:this.wallet.account,args:[request.rewardPool]});case 2:_yield$this$rpcClient39=_context76.sent;call=_yield$this$rpcClient39.request;_context76.next=6;return this.wallet.writeContract(call);case 6:return _context76.abrupt("return",_context76.sent);case 7:case"end":return _context76.stop();}},_callee76,this);}));function whitelistGroupRewardPool(_x44){return _whitelistGroupRewardPool.apply(this,arguments);}return whitelistGroupRewardPool;}()/**
|
1549
1561
|
* method whitelistGroupRewardPool for contract GroupingModule with only encode
|
1550
1562
|
*
|
1551
1563
|
* @param request GroupingModuleWhitelistGroupRewardPoolRequest
|
@@ -1587,12 +1599,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1587
1599
|
* @param sigAddToGroup tuple
|
1588
1600
|
*/ /**
|
1589
1601
|
* contract GroupingWorkflows write method
|
1590
|
-
*/var GroupingWorkflowsClient=/*#__PURE__*/function(){function GroupingWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
1602
|
+
*/var GroupingWorkflowsClient=/*#__PURE__*/function(){function GroupingWorkflowsClient(rpcClient,wallet,address){var _rpcClient$chain7;_classCallCheck(this,GroupingWorkflowsClient);this.address=address||getAddress(groupingWorkflowsAddress,(_rpcClient$chain7=rpcClient.chain)===null||_rpcClient$chain7===void 0?void 0:_rpcClient$chain7.id);this.rpcClient=rpcClient;this.wallet=wallet;}/**
|
1591
1603
|
* method mintAndRegisterIpAndAttachLicenseAndAddToGroup for contract GroupingWorkflows
|
1592
1604
|
*
|
1593
1605
|
* @param request GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest
|
1594
1606
|
* @return Promise<WriteContractReturnType>
|
1595
|
-
*/return _createClass(GroupingWorkflowsClient,[{key:"mintAndRegisterIpAndAttachLicenseAndAddToGroup",value:(function(){var _mintAndRegisterIpAndAttachLicenseAndAddToGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1607
|
+
*/return _createClass(GroupingWorkflowsClient,[{key:"mintAndRegisterIpAndAttachLicenseAndAddToGroup",value:(function(){var _mintAndRegisterIpAndAttachLicenseAndAddToGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee77(request){var _yield$this$rpcClient40,call;return _regeneratorRuntime().wrap(function _callee77$(_context77){while(1)switch(_context77.prev=_context77.next){case 0:_context77.next=2;return this.rpcClient.simulateContract({abi:groupingWorkflowsAbi,address:this.address,functionName:"mintAndRegisterIpAndAttachLicenseAndAddToGroup",account:this.wallet.account,args:[request.spgNftContract,request.groupId,request.recipient,request.licenseTemplate,request.licenseTermsId,request.ipMetadata,request.sigAddToGroup]});case 2:_yield$this$rpcClient40=_context77.sent;call=_yield$this$rpcClient40.request;_context77.next=6;return this.wallet.writeContract(call);case 6:return _context77.abrupt("return",_context77.sent);case 7:case"end":return _context77.stop();}},_callee77,this);}));function mintAndRegisterIpAndAttachLicenseAndAddToGroup(_x45){return _mintAndRegisterIpAndAttachLicenseAndAddToGroup.apply(this,arguments);}return mintAndRegisterIpAndAttachLicenseAndAddToGroup;}()/**
|
1596
1608
|
* method mintAndRegisterIpAndAttachLicenseAndAddToGroup for contract GroupingWorkflows with only encode
|
1597
1609
|
*
|
1598
1610
|
* @param request GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest
|
@@ -1602,7 +1614,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1602
1614
|
*
|
1603
1615
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseRequest
|
1604
1616
|
* @return Promise<WriteContractReturnType>
|
1605
|
-
*/},{key:"registerGroupAndAttachLicense",value:(function(){var _registerGroupAndAttachLicense=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1617
|
+
*/},{key:"registerGroupAndAttachLicense",value:(function(){var _registerGroupAndAttachLicense=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee78(request){var _yield$this$rpcClient41,call;return _regeneratorRuntime().wrap(function _callee78$(_context78){while(1)switch(_context78.prev=_context78.next){case 0:_context78.next=2;return this.rpcClient.simulateContract({abi:groupingWorkflowsAbi,address:this.address,functionName:"registerGroupAndAttachLicense",account:this.wallet.account,args:[request.groupPool,request.licenseTemplate,request.licenseTermsId]});case 2:_yield$this$rpcClient41=_context78.sent;call=_yield$this$rpcClient41.request;_context78.next=6;return this.wallet.writeContract(call);case 6:return _context78.abrupt("return",_context78.sent);case 7:case"end":return _context78.stop();}},_callee78,this);}));function registerGroupAndAttachLicense(_x46){return _registerGroupAndAttachLicense.apply(this,arguments);}return registerGroupAndAttachLicense;}()/**
|
1606
1618
|
* method registerGroupAndAttachLicense for contract GroupingWorkflows with only encode
|
1607
1619
|
*
|
1608
1620
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseRequest
|
@@ -1612,7 +1624,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1612
1624
|
*
|
1613
1625
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest
|
1614
1626
|
* @return Promise<WriteContractReturnType>
|
1615
|
-
*/},{key:"registerGroupAndAttachLicenseAndAddIps",value:(function(){var _registerGroupAndAttachLicenseAndAddIps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1627
|
+
*/},{key:"registerGroupAndAttachLicenseAndAddIps",value:(function(){var _registerGroupAndAttachLicenseAndAddIps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee79(request){var _yield$this$rpcClient42,call;return _regeneratorRuntime().wrap(function _callee79$(_context79){while(1)switch(_context79.prev=_context79.next){case 0:_context79.next=2;return this.rpcClient.simulateContract({abi:groupingWorkflowsAbi,address:this.address,functionName:"registerGroupAndAttachLicenseAndAddIps",account:this.wallet.account,args:[request.groupPool,request.ipIds,request.licenseTemplate,request.licenseTermsId]});case 2:_yield$this$rpcClient42=_context79.sent;call=_yield$this$rpcClient42.request;_context79.next=6;return this.wallet.writeContract(call);case 6:return _context79.abrupt("return",_context79.sent);case 7:case"end":return _context79.stop();}},_callee79,this);}));function registerGroupAndAttachLicenseAndAddIps(_x47){return _registerGroupAndAttachLicenseAndAddIps.apply(this,arguments);}return registerGroupAndAttachLicenseAndAddIps;}()/**
|
1616
1628
|
* method registerGroupAndAttachLicenseAndAddIps for contract GroupingWorkflows with only encode
|
1617
1629
|
*
|
1618
1630
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest
|
@@ -1622,7 +1634,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1622
1634
|
*
|
1623
1635
|
* @param request GroupingWorkflowsRegisterIpAndAttachLicenseAndAddToGroupRequest
|
1624
1636
|
* @return Promise<WriteContractReturnType>
|
1625
|
-
*/},{key:"registerIpAndAttachLicenseAndAddToGroup",value:(function(){var _registerIpAndAttachLicenseAndAddToGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1637
|
+
*/},{key:"registerIpAndAttachLicenseAndAddToGroup",value:(function(){var _registerIpAndAttachLicenseAndAddToGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee80(request){var _yield$this$rpcClient43,call;return _regeneratorRuntime().wrap(function _callee80$(_context80){while(1)switch(_context80.prev=_context80.next){case 0:_context80.next=2;return this.rpcClient.simulateContract({abi:groupingWorkflowsAbi,address:this.address,functionName:"registerIpAndAttachLicenseAndAddToGroup",account:this.wallet.account,args:[request.nftContract,request.tokenId,request.groupId,request.licenseTemplate,request.licenseTermsId,request.ipMetadata,request.sigMetadataAndAttach,request.sigAddToGroup]});case 2:_yield$this$rpcClient43=_context80.sent;call=_yield$this$rpcClient43.request;_context80.next=6;return this.wallet.writeContract(call);case 6:return _context80.abrupt("return",_context80.sent);case 7:case"end":return _context80.stop();}},_callee80,this);}));function registerIpAndAttachLicenseAndAddToGroup(_x48){return _registerIpAndAttachLicenseAndAddToGroup.apply(this,arguments);}return registerIpAndAttachLicenseAndAddToGroup;}()/**
|
1626
1638
|
* method registerIpAndAttachLicenseAndAddToGroup for contract GroupingWorkflows with only encode
|
1627
1639
|
*
|
1628
1640
|
* @param request GroupingWorkflowsRegisterIpAndAttachLicenseAndAddToGroupRequest
|
@@ -1662,24 +1674,24 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1662
1674
|
* @param signature bytes
|
1663
1675
|
*/ /**
|
1664
1676
|
* contract IPAccountImpl readonly method
|
1665
|
-
*/var IpAccountImplReadOnlyClient=/*#__PURE__*/function(){function IpAccountImplReadOnlyClient(rpcClient,address){var _rpcClient$
|
1677
|
+
*/var IpAccountImplReadOnlyClient=/*#__PURE__*/function(){function IpAccountImplReadOnlyClient(rpcClient,address){var _rpcClient$chain8;_classCallCheck(this,IpAccountImplReadOnlyClient);this.address=address||getAddress(ipAccountImplAddress,(_rpcClient$chain8=rpcClient.chain)===null||_rpcClient$chain8===void 0?void 0:_rpcClient$chain8.id);this.rpcClient=rpcClient;}/**
|
1666
1678
|
* method state for contract IPAccountImpl
|
1667
1679
|
*
|
1668
1680
|
* @param request IpAccountImplStateRequest
|
1669
1681
|
* @return Promise<IpAccountImplStateResponse>
|
1670
|
-
*/return _createClass(IpAccountImplReadOnlyClient,[{key:"state",value:(function(){var _state=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1682
|
+
*/return _createClass(IpAccountImplReadOnlyClient,[{key:"state",value:(function(){var _state=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee81(){var result;return _regeneratorRuntime().wrap(function _callee81$(_context81){while(1)switch(_context81.prev=_context81.next){case 0:_context81.next=2;return this.rpcClient.readContract({abi:ipAccountImplAbi,address:this.address,functionName:"state"});case 2:result=_context81.sent;return _context81.abrupt("return",{result:result});case 4:case"end":return _context81.stop();}},_callee81,this);}));function state(){return _state.apply(this,arguments);}return state;}()/**
|
1671
1683
|
* method token for contract IPAccountImpl
|
1672
1684
|
*
|
1673
1685
|
* @param request IpAccountImplTokenRequest
|
1674
1686
|
* @return Promise<IpAccountImplTokenResponse>
|
1675
|
-
*/)},{key:"token",value:(function(){var _token=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1687
|
+
*/)},{key:"token",value:(function(){var _token=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee82(){return _regeneratorRuntime().wrap(function _callee82$(_context82){while(1)switch(_context82.prev=_context82.next){case 0:_context82.next=2;return this.rpcClient.readContract({abi:ipAccountImplAbi,address:this.address,functionName:"token"});case 2:return _context82.abrupt("return",_context82.sent);case 3:case"end":return _context82.stop();}},_callee82,this);}));function token(){return _token.apply(this,arguments);}return token;}())}]);}();/**
|
1676
1688
|
* contract IPAccountImpl write method
|
1677
|
-
*/var IpAccountImplClient=/*#__PURE__*/function(_IpAccountImplReadOnl){function IpAccountImplClient(rpcClient,wallet,address){var
|
1689
|
+
*/var IpAccountImplClient=/*#__PURE__*/function(_IpAccountImplReadOnl){function IpAccountImplClient(rpcClient,wallet,address){var _this6;_classCallCheck(this,IpAccountImplClient);_this6=_callSuper(this,IpAccountImplClient,[rpcClient,address]);_this6.wallet=wallet;return _this6;}/**
|
1678
1690
|
* method execute for contract IPAccountImpl
|
1679
1691
|
*
|
1680
1692
|
* @param request IpAccountImplExecuteRequest
|
1681
1693
|
* @return Promise<WriteContractReturnType>
|
1682
|
-
*/_inherits(IpAccountImplClient,_IpAccountImplReadOnl);return _createClass(IpAccountImplClient,[{key:"execute",value:(function(){var _execute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1694
|
+
*/_inherits(IpAccountImplClient,_IpAccountImplReadOnl);return _createClass(IpAccountImplClient,[{key:"execute",value:(function(){var _execute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee83(request){var _yield$this$rpcClient44,call;return _regeneratorRuntime().wrap(function _callee83$(_context83){while(1)switch(_context83.prev=_context83.next){case 0:_context83.next=2;return this.rpcClient.simulateContract({abi:ipAccountImplAbi,address:this.address,functionName:"execute",account:this.wallet.account,args:[request.to,request.value,request.data,request.operation]});case 2:_yield$this$rpcClient44=_context83.sent;call=_yield$this$rpcClient44.request;_context83.next=6;return this.wallet.writeContract(call);case 6:return _context83.abrupt("return",_context83.sent);case 7:case"end":return _context83.stop();}},_callee83,this);}));function execute(_x49){return _execute.apply(this,arguments);}return execute;}()/**
|
1683
1695
|
* method execute for contract IPAccountImpl with only encode
|
1684
1696
|
*
|
1685
1697
|
* @param request IpAccountImplExecuteRequest
|
@@ -1689,7 +1701,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1689
1701
|
*
|
1690
1702
|
* @param request IpAccountImplExecute2Request
|
1691
1703
|
* @return Promise<WriteContractReturnType>
|
1692
|
-
*/},{key:"execute2",value:(function(){var _execute2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1704
|
+
*/},{key:"execute2",value:(function(){var _execute2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee84(request){var _yield$this$rpcClient45,call;return _regeneratorRuntime().wrap(function _callee84$(_context84){while(1)switch(_context84.prev=_context84.next){case 0:_context84.next=2;return this.rpcClient.simulateContract({abi:ipAccountImplAbi,address:this.address,functionName:"execute",account:this.wallet.account,args:[request.to,request.value,request.data]});case 2:_yield$this$rpcClient45=_context84.sent;call=_yield$this$rpcClient45.request;_context84.next=6;return this.wallet.writeContract(call);case 6:return _context84.abrupt("return",_context84.sent);case 7:case"end":return _context84.stop();}},_callee84,this);}));function execute2(_x50){return _execute2.apply(this,arguments);}return execute2;}()/**
|
1693
1705
|
* method execute for contract IPAccountImpl with only encode
|
1694
1706
|
*
|
1695
1707
|
* @param request IpAccountImplExecute2Request
|
@@ -1699,7 +1711,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1699
1711
|
*
|
1700
1712
|
* @param request IpAccountImplExecuteWithSigRequest
|
1701
1713
|
* @return Promise<WriteContractReturnType>
|
1702
|
-
*/},{key:"executeWithSig",value:(function(){var _executeWithSig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1714
|
+
*/},{key:"executeWithSig",value:(function(){var _executeWithSig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee85(request){var _yield$this$rpcClient46,call;return _regeneratorRuntime().wrap(function _callee85$(_context85){while(1)switch(_context85.prev=_context85.next){case 0:_context85.next=2;return this.rpcClient.simulateContract({abi:ipAccountImplAbi,address:this.address,functionName:"executeWithSig",account:this.wallet.account,args:[request.to,request.value,request.data,request.signer,request.deadline,request.signature]});case 2:_yield$this$rpcClient46=_context85.sent;call=_yield$this$rpcClient46.request;_context85.next=6;return this.wallet.writeContract(call);case 6:return _context85.abrupt("return",_context85.sent);case 7:case"end":return _context85.stop();}},_callee85,this);}));function executeWithSig(_x51){return _executeWithSig.apply(this,arguments);}return executeWithSig;}()/**
|
1703
1715
|
* method executeWithSig for contract IPAccountImpl with only encode
|
1704
1716
|
*
|
1705
1717
|
* @param request IpAccountImplExecuteWithSigRequest
|
@@ -1741,34 +1753,34 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1741
1753
|
* @param tokenId uint256
|
1742
1754
|
*/ /**
|
1743
1755
|
* contract IPAssetRegistry event
|
1744
|
-
*/var IpAssetRegistryEventClient=/*#__PURE__*/function(){function IpAssetRegistryEventClient(rpcClient,address){var _rpcClient$
|
1756
|
+
*/var IpAssetRegistryEventClient=/*#__PURE__*/function(){function IpAssetRegistryEventClient(rpcClient,address){var _rpcClient$chain9;_classCallCheck(this,IpAssetRegistryEventClient);this.address=address||getAddress(ipAssetRegistryAddress,(_rpcClient$chain9=rpcClient.chain)===null||_rpcClient$chain9===void 0?void 0:_rpcClient$chain9.id);this.rpcClient=rpcClient;}/**
|
1745
1757
|
* event IPAccountRegistered for contract IPAssetRegistry
|
1746
|
-
*/return _createClass(IpAssetRegistryEventClient,[{key:"watchIpAccountRegisteredEvent",value:function watchIpAccountRegisteredEvent(
|
1758
|
+
*/return _createClass(IpAssetRegistryEventClient,[{key:"watchIpAccountRegisteredEvent",value:function watchIpAccountRegisteredEvent(_onLogs26){return this.rpcClient.watchContractEvent({abi:ipAssetRegistryAbi,address:this.address,eventName:"IPAccountRegistered",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs26(it.transactionHash,it.args);});}});}/**
|
1747
1759
|
* parse tx receipt event IPAccountRegistered for contract IPAssetRegistry
|
1748
|
-
*/},{key:"parseTxIpAccountRegisteredEvent",value:function parseTxIpAccountRegisteredEvent(txReceipt){var targetLogs=[];var
|
1760
|
+
*/},{key:"parseTxIpAccountRegisteredEvent",value:function parseTxIpAccountRegisteredEvent(txReceipt){var targetLogs=[];var _iterator26=_createForOfIteratorHelper(txReceipt.logs),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var log=_step26.value;try{var event=viem.decodeEventLog({abi:ipAssetRegistryAbi,eventName:"IPAccountRegistered",data:log.data,topics:log.topics});if(event.eventName==="IPAccountRegistered"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return targetLogs;}/**
|
1749
1761
|
* event IPRegistered for contract IPAssetRegistry
|
1750
|
-
*/},{key:"watchIpRegisteredEvent",value:function watchIpRegisteredEvent(
|
1762
|
+
*/},{key:"watchIpRegisteredEvent",value:function watchIpRegisteredEvent(_onLogs27){return this.rpcClient.watchContractEvent({abi:ipAssetRegistryAbi,address:this.address,eventName:"IPRegistered",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs27(it.transactionHash,it.args);});}});}/**
|
1751
1763
|
* parse tx receipt event IPRegistered for contract IPAssetRegistry
|
1752
|
-
*/},{key:"parseTxIpRegisteredEvent",value:function parseTxIpRegisteredEvent(txReceipt){var targetLogs=[];var
|
1764
|
+
*/},{key:"parseTxIpRegisteredEvent",value:function parseTxIpRegisteredEvent(txReceipt){var targetLogs=[];var _iterator27=_createForOfIteratorHelper(txReceipt.logs),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var log=_step27.value;try{var event=viem.decodeEventLog({abi:ipAssetRegistryAbi,eventName:"IPRegistered",data:log.data,topics:log.topics});if(event.eventName==="IPRegistered"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}return targetLogs;}}]);}();/**
|
1753
1765
|
* contract IPAssetRegistry readonly method
|
1754
1766
|
*/var IpAssetRegistryReadOnlyClient=/*#__PURE__*/function(_IpAssetRegistryEvent){function IpAssetRegistryReadOnlyClient(rpcClient,address){_classCallCheck(this,IpAssetRegistryReadOnlyClient);return _callSuper(this,IpAssetRegistryReadOnlyClient,[rpcClient,address]);}/**
|
1755
1767
|
* method ipId for contract IPAssetRegistry
|
1756
1768
|
*
|
1757
1769
|
* @param request IpAssetRegistryIpIdRequest
|
1758
1770
|
* @return Promise<IpAssetRegistryIpIdResponse>
|
1759
|
-
*/_inherits(IpAssetRegistryReadOnlyClient,_IpAssetRegistryEvent);return _createClass(IpAssetRegistryReadOnlyClient,[{key:"ipId",value:(function(){var _ipId=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1771
|
+
*/_inherits(IpAssetRegistryReadOnlyClient,_IpAssetRegistryEvent);return _createClass(IpAssetRegistryReadOnlyClient,[{key:"ipId",value:(function(){var _ipId=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee86(request){return _regeneratorRuntime().wrap(function _callee86$(_context86){while(1)switch(_context86.prev=_context86.next){case 0:_context86.next=2;return this.rpcClient.readContract({abi:ipAssetRegistryAbi,address:this.address,functionName:"ipId",args:[request.chainId,request.tokenContract,request.tokenId]});case 2:return _context86.abrupt("return",_context86.sent);case 3:case"end":return _context86.stop();}},_callee86,this);}));function ipId(_x52){return _ipId.apply(this,arguments);}return ipId;}()/**
|
1760
1772
|
* method isRegistered for contract IPAssetRegistry
|
1761
1773
|
*
|
1762
1774
|
* @param request IpAssetRegistryIsRegisteredRequest
|
1763
1775
|
* @return Promise<IpAssetRegistryIsRegisteredResponse>
|
1764
|
-
*/)},{key:"isRegistered",value:(function(){var _isRegistered=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1776
|
+
*/)},{key:"isRegistered",value:(function(){var _isRegistered=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee87(request){return _regeneratorRuntime().wrap(function _callee87$(_context87){while(1)switch(_context87.prev=_context87.next){case 0:_context87.next=2;return this.rpcClient.readContract({abi:ipAssetRegistryAbi,address:this.address,functionName:"isRegistered",args:[request.id]});case 2:return _context87.abrupt("return",_context87.sent);case 3:case"end":return _context87.stop();}},_callee87,this);}));function isRegistered(_x53){return _isRegistered.apply(this,arguments);}return isRegistered;}())}]);}(IpAssetRegistryEventClient);/**
|
1765
1777
|
* contract IPAssetRegistry write method
|
1766
|
-
*/var IpAssetRegistryClient=/*#__PURE__*/function(_IpAssetRegistryReadO){function IpAssetRegistryClient(rpcClient,wallet,address){var
|
1778
|
+
*/var IpAssetRegistryClient=/*#__PURE__*/function(_IpAssetRegistryReadO){function IpAssetRegistryClient(rpcClient,wallet,address){var _this7;_classCallCheck(this,IpAssetRegistryClient);_this7=_callSuper(this,IpAssetRegistryClient,[rpcClient,address]);_this7.wallet=wallet;return _this7;}/**
|
1767
1779
|
* method register for contract IPAssetRegistry
|
1768
1780
|
*
|
1769
1781
|
* @param request IpAssetRegistryRegisterRequest
|
1770
1782
|
* @return Promise<WriteContractReturnType>
|
1771
|
-
*/_inherits(IpAssetRegistryClient,_IpAssetRegistryReadO);return _createClass(IpAssetRegistryClient,[{key:"register",value:(function(){var _register=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1783
|
+
*/_inherits(IpAssetRegistryClient,_IpAssetRegistryReadO);return _createClass(IpAssetRegistryClient,[{key:"register",value:(function(){var _register=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee88(request){var _yield$this$rpcClient47,call;return _regeneratorRuntime().wrap(function _callee88$(_context88){while(1)switch(_context88.prev=_context88.next){case 0:_context88.next=2;return this.rpcClient.simulateContract({abi:ipAssetRegistryAbi,address:this.address,functionName:"register",account:this.wallet.account,args:[request.chainid,request.tokenContract,request.tokenId]});case 2:_yield$this$rpcClient47=_context88.sent;call=_yield$this$rpcClient47.request;_context88.next=6;return this.wallet.writeContract(call);case 6:return _context88.abrupt("return",_context88.sent);case 7:case"end":return _context88.stop();}},_callee88,this);}));function register(_x54){return _register.apply(this,arguments);}return register;}()/**
|
1772
1784
|
* method register for contract IPAssetRegistry with only encode
|
1773
1785
|
*
|
1774
1786
|
* @param request IpAssetRegistryRegisterRequest
|
@@ -1799,34 +1811,34 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1799
1811
|
* @param claimer address
|
1800
1812
|
*/ /**
|
1801
1813
|
* contract IpRoyaltyVaultImpl event
|
1802
|
-
*/var IpRoyaltyVaultImplEventClient=/*#__PURE__*/function(){function IpRoyaltyVaultImplEventClient(rpcClient,address){var _rpcClient$
|
1814
|
+
*/var IpRoyaltyVaultImplEventClient=/*#__PURE__*/function(){function IpRoyaltyVaultImplEventClient(rpcClient,address){var _rpcClient$chain10;_classCallCheck(this,IpRoyaltyVaultImplEventClient);this.address=address||getAddress(ipRoyaltyVaultImplAddress,(_rpcClient$chain10=rpcClient.chain)===null||_rpcClient$chain10===void 0?void 0:_rpcClient$chain10.id);this.rpcClient=rpcClient;}/**
|
1803
1815
|
* event RevenueTokenClaimed for contract IpRoyaltyVaultImpl
|
1804
|
-
*/return _createClass(IpRoyaltyVaultImplEventClient,[{key:"watchRevenueTokenClaimedEvent",value:function watchRevenueTokenClaimedEvent(
|
1816
|
+
*/return _createClass(IpRoyaltyVaultImplEventClient,[{key:"watchRevenueTokenClaimedEvent",value:function watchRevenueTokenClaimedEvent(_onLogs28){return this.rpcClient.watchContractEvent({abi:ipRoyaltyVaultImplAbi,address:this.address,eventName:"RevenueTokenClaimed",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs28(it.transactionHash,it.args);});}});}/**
|
1805
1817
|
* parse tx receipt event RevenueTokenClaimed for contract IpRoyaltyVaultImpl
|
1806
|
-
*/},{key:"parseTxRevenueTokenClaimedEvent",value:function parseTxRevenueTokenClaimedEvent(txReceipt){var targetLogs=[];var
|
1818
|
+
*/},{key:"parseTxRevenueTokenClaimedEvent",value:function parseTxRevenueTokenClaimedEvent(txReceipt){var targetLogs=[];var _iterator28=_createForOfIteratorHelper(txReceipt.logs),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var log=_step28.value;try{var event=viem.decodeEventLog({abi:ipRoyaltyVaultImplAbi,eventName:"RevenueTokenClaimed",data:log.data,topics:log.topics});if(event.eventName==="RevenueTokenClaimed"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}return targetLogs;}/**
|
1807
1819
|
* event SnapshotCompleted for contract IpRoyaltyVaultImpl
|
1808
|
-
*/},{key:"watchSnapshotCompletedEvent",value:function watchSnapshotCompletedEvent(
|
1820
|
+
*/},{key:"watchSnapshotCompletedEvent",value:function watchSnapshotCompletedEvent(_onLogs29){return this.rpcClient.watchContractEvent({abi:ipRoyaltyVaultImplAbi,address:this.address,eventName:"SnapshotCompleted",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs29(it.transactionHash,it.args);});}});}/**
|
1809
1821
|
* parse tx receipt event SnapshotCompleted for contract IpRoyaltyVaultImpl
|
1810
|
-
*/},{key:"parseTxSnapshotCompletedEvent",value:function parseTxSnapshotCompletedEvent(txReceipt){var targetLogs=[];var
|
1822
|
+
*/},{key:"parseTxSnapshotCompletedEvent",value:function parseTxSnapshotCompletedEvent(txReceipt){var targetLogs=[];var _iterator29=_createForOfIteratorHelper(txReceipt.logs),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var log=_step29.value;try{var event=viem.decodeEventLog({abi:ipRoyaltyVaultImplAbi,eventName:"SnapshotCompleted",data:log.data,topics:log.topics});if(event.eventName==="SnapshotCompleted"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return targetLogs;}}]);}();/**
|
1811
1823
|
* contract IpRoyaltyVaultImpl readonly method
|
1812
1824
|
*/var IpRoyaltyVaultImplReadOnlyClient=/*#__PURE__*/function(_IpRoyaltyVaultImplEv){function IpRoyaltyVaultImplReadOnlyClient(rpcClient,address){_classCallCheck(this,IpRoyaltyVaultImplReadOnlyClient);return _callSuper(this,IpRoyaltyVaultImplReadOnlyClient,[rpcClient,address]);}/**
|
1813
1825
|
* method claimableRevenue for contract IpRoyaltyVaultImpl
|
1814
1826
|
*
|
1815
1827
|
* @param request IpRoyaltyVaultImplClaimableRevenueRequest
|
1816
1828
|
* @return Promise<IpRoyaltyVaultImplClaimableRevenueResponse>
|
1817
|
-
*/_inherits(IpRoyaltyVaultImplReadOnlyClient,_IpRoyaltyVaultImplEv);return _createClass(IpRoyaltyVaultImplReadOnlyClient,[{key:"claimableRevenue",value:(function(){var _claimableRevenue=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1829
|
+
*/_inherits(IpRoyaltyVaultImplReadOnlyClient,_IpRoyaltyVaultImplEv);return _createClass(IpRoyaltyVaultImplReadOnlyClient,[{key:"claimableRevenue",value:(function(){var _claimableRevenue=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee89(request){return _regeneratorRuntime().wrap(function _callee89$(_context89){while(1)switch(_context89.prev=_context89.next){case 0:_context89.next=2;return this.rpcClient.readContract({abi:ipRoyaltyVaultImplAbi,address:this.address,functionName:"claimableRevenue",args:[request.account,request.snapshotId,request.token]});case 2:return _context89.abrupt("return",_context89.sent);case 3:case"end":return _context89.stop();}},_callee89,this);}));function claimableRevenue(_x55){return _claimableRevenue.apply(this,arguments);}return claimableRevenue;}()/**
|
1818
1830
|
* method ipId for contract IpRoyaltyVaultImpl
|
1819
1831
|
*
|
1820
1832
|
* @param request IpRoyaltyVaultImplIpIdRequest
|
1821
1833
|
* @return Promise<IpRoyaltyVaultImplIpIdResponse>
|
1822
|
-
*/)},{key:"ipId",value:(function(){var _ipId2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1834
|
+
*/)},{key:"ipId",value:(function(){var _ipId2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee90(){return _regeneratorRuntime().wrap(function _callee90$(_context90){while(1)switch(_context90.prev=_context90.next){case 0:_context90.next=2;return this.rpcClient.readContract({abi:ipRoyaltyVaultImplAbi,address:this.address,functionName:"ipId"});case 2:return _context90.abrupt("return",_context90.sent);case 3:case"end":return _context90.stop();}},_callee90,this);}));function ipId(){return _ipId2.apply(this,arguments);}return ipId;}())}]);}(IpRoyaltyVaultImplEventClient);/**
|
1823
1835
|
* contract IpRoyaltyVaultImpl write method
|
1824
|
-
*/var IpRoyaltyVaultImplClient=/*#__PURE__*/function(_IpRoyaltyVaultImplRe){function IpRoyaltyVaultImplClient(rpcClient,wallet,address){var
|
1836
|
+
*/var IpRoyaltyVaultImplClient=/*#__PURE__*/function(_IpRoyaltyVaultImplRe){function IpRoyaltyVaultImplClient(rpcClient,wallet,address){var _this8;_classCallCheck(this,IpRoyaltyVaultImplClient);_this8=_callSuper(this,IpRoyaltyVaultImplClient,[rpcClient,address]);_this8.wallet=wallet;return _this8;}/**
|
1825
1837
|
* method claimRevenueOnBehalfBySnapshotBatch for contract IpRoyaltyVaultImpl
|
1826
1838
|
*
|
1827
1839
|
* @param request IpRoyaltyVaultImplClaimRevenueOnBehalfBySnapshotBatchRequest
|
1828
1840
|
* @return Promise<WriteContractReturnType>
|
1829
|
-
*/_inherits(IpRoyaltyVaultImplClient,_IpRoyaltyVaultImplRe);return _createClass(IpRoyaltyVaultImplClient,[{key:"claimRevenueOnBehalfBySnapshotBatch",value:(function(){var _claimRevenueOnBehalfBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1841
|
+
*/_inherits(IpRoyaltyVaultImplClient,_IpRoyaltyVaultImplRe);return _createClass(IpRoyaltyVaultImplClient,[{key:"claimRevenueOnBehalfBySnapshotBatch",value:(function(){var _claimRevenueOnBehalfBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee91(request){var _yield$this$rpcClient48,call;return _regeneratorRuntime().wrap(function _callee91$(_context91){while(1)switch(_context91.prev=_context91.next){case 0:_context91.next=2;return this.rpcClient.simulateContract({abi:ipRoyaltyVaultImplAbi,address:this.address,functionName:"claimRevenueOnBehalfBySnapshotBatch",account:this.wallet.account,args:[request.snapshotIds,request.token,request.claimer]});case 2:_yield$this$rpcClient48=_context91.sent;call=_yield$this$rpcClient48.request;_context91.next=6;return this.wallet.writeContract(call);case 6:return _context91.abrupt("return",_context91.sent);case 7:case"end":return _context91.stop();}},_callee91,this);}));function claimRevenueOnBehalfBySnapshotBatch(_x56){return _claimRevenueOnBehalfBySnapshotBatch.apply(this,arguments);}return claimRevenueOnBehalfBySnapshotBatch;}()/**
|
1830
1842
|
* method claimRevenueOnBehalfBySnapshotBatch for contract IpRoyaltyVaultImpl with only encode
|
1831
1843
|
*
|
1832
1844
|
* @param request IpRoyaltyVaultImplClaimRevenueOnBehalfBySnapshotBatchRequest
|
@@ -1836,7 +1848,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1836
1848
|
*
|
1837
1849
|
* @param request IpRoyaltyVaultImplSnapshotRequest
|
1838
1850
|
* @return Promise<WriteContractReturnType>
|
1839
|
-
*/},{key:"snapshot",value:(function(){var _snapshot=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1851
|
+
*/},{key:"snapshot",value:(function(){var _snapshot=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee92(){var _yield$this$rpcClient49,call;return _regeneratorRuntime().wrap(function _callee92$(_context92){while(1)switch(_context92.prev=_context92.next){case 0:_context92.next=2;return this.rpcClient.simulateContract({abi:ipRoyaltyVaultImplAbi,address:this.address,functionName:"snapshot",account:this.wallet.account});case 2:_yield$this$rpcClient49=_context92.sent;call=_yield$this$rpcClient49.request;_context92.next=6;return this.wallet.writeContract(call);case 6:return _context92.abrupt("return",_context92.sent);case 7:case"end":return _context92.stop();}},_callee92,this);}));function snapshot(){return _snapshot.apply(this,arguments);}return snapshot;}()/**
|
1840
1852
|
* method snapshot for contract IpRoyaltyVaultImpl with only encode
|
1841
1853
|
*
|
1842
1854
|
* @param request IpRoyaltyVaultImplSnapshotRequest
|
@@ -1866,12 +1878,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1866
1878
|
* @param sigAttach tuple
|
1867
1879
|
*/ /**
|
1868
1880
|
* contract LicenseAttachmentWorkflows write method
|
1869
|
-
*/var LicenseAttachmentWorkflowsClient=/*#__PURE__*/function(){function LicenseAttachmentWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
1881
|
+
*/var LicenseAttachmentWorkflowsClient=/*#__PURE__*/function(){function LicenseAttachmentWorkflowsClient(rpcClient,wallet,address){var _rpcClient$chain11;_classCallCheck(this,LicenseAttachmentWorkflowsClient);this.address=address||getAddress(licenseAttachmentWorkflowsAddress,(_rpcClient$chain11=rpcClient.chain)===null||_rpcClient$chain11===void 0?void 0:_rpcClient$chain11.id);this.rpcClient=rpcClient;this.wallet=wallet;}/**
|
1870
1882
|
* method mintAndRegisterIpAndAttachPILTerms for contract LicenseAttachmentWorkflows
|
1871
1883
|
*
|
1872
1884
|
* @param request LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest
|
1873
1885
|
* @return Promise<WriteContractReturnType>
|
1874
|
-
*/return _createClass(LicenseAttachmentWorkflowsClient,[{key:"mintAndRegisterIpAndAttachPilTerms",value:(function(){var _mintAndRegisterIpAndAttachPilTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1886
|
+
*/return _createClass(LicenseAttachmentWorkflowsClient,[{key:"mintAndRegisterIpAndAttachPilTerms",value:(function(){var _mintAndRegisterIpAndAttachPilTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee93(request){var _yield$this$rpcClient50,call;return _regeneratorRuntime().wrap(function _callee93$(_context93){while(1)switch(_context93.prev=_context93.next){case 0:_context93.next=2;return this.rpcClient.simulateContract({abi:licenseAttachmentWorkflowsAbi,address:this.address,functionName:"mintAndRegisterIpAndAttachPILTerms",account:this.wallet.account,args:[request.spgNftContract,request.recipient,request.ipMetadata,request.terms]});case 2:_yield$this$rpcClient50=_context93.sent;call=_yield$this$rpcClient50.request;_context93.next=6;return this.wallet.writeContract(call);case 6:return _context93.abrupt("return",_context93.sent);case 7:case"end":return _context93.stop();}},_callee93,this);}));function mintAndRegisterIpAndAttachPilTerms(_x57){return _mintAndRegisterIpAndAttachPilTerms.apply(this,arguments);}return mintAndRegisterIpAndAttachPilTerms;}()/**
|
1875
1887
|
* method mintAndRegisterIpAndAttachPILTerms for contract LicenseAttachmentWorkflows with only encode
|
1876
1888
|
*
|
1877
1889
|
* @param request LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest
|
@@ -1881,7 +1893,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1881
1893
|
*
|
1882
1894
|
* @param request LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest
|
1883
1895
|
* @return Promise<WriteContractReturnType>
|
1884
|
-
*/},{key:"registerIpAndAttachPilTerms",value:(function(){var _registerIpAndAttachPilTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1896
|
+
*/},{key:"registerIpAndAttachPilTerms",value:(function(){var _registerIpAndAttachPilTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee94(request){var _yield$this$rpcClient51,call;return _regeneratorRuntime().wrap(function _callee94$(_context94){while(1)switch(_context94.prev=_context94.next){case 0:_context94.next=2;return this.rpcClient.simulateContract({abi:licenseAttachmentWorkflowsAbi,address:this.address,functionName:"registerIpAndAttachPILTerms",account:this.wallet.account,args:[request.nftContract,request.tokenId,request.ipMetadata,request.terms,request.sigMetadata,request.sigAttach]});case 2:_yield$this$rpcClient51=_context94.sent;call=_yield$this$rpcClient51.request;_context94.next=6;return this.wallet.writeContract(call);case 6:return _context94.abrupt("return",_context94.sent);case 7:case"end":return _context94.stop();}},_callee94,this);}));function registerIpAndAttachPilTerms(_x58){return _registerIpAndAttachPilTerms.apply(this,arguments);}return registerIpAndAttachPilTerms;}()/**
|
1885
1897
|
* method registerIpAndAttachPILTerms for contract LicenseAttachmentWorkflows with only encode
|
1886
1898
|
*
|
1887
1899
|
* @param request LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest
|
@@ -1891,7 +1903,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1891
1903
|
*
|
1892
1904
|
* @param request LicenseAttachmentWorkflowsRegisterPilTermsAndAttachRequest
|
1893
1905
|
* @return Promise<WriteContractReturnType>
|
1894
|
-
*/},{key:"registerPilTermsAndAttach",value:(function(){var _registerPilTermsAndAttach=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1906
|
+
*/},{key:"registerPilTermsAndAttach",value:(function(){var _registerPilTermsAndAttach=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee95(request){var _yield$this$rpcClient52,call;return _regeneratorRuntime().wrap(function _callee95$(_context95){while(1)switch(_context95.prev=_context95.next){case 0:_context95.next=2;return this.rpcClient.simulateContract({abi:licenseAttachmentWorkflowsAbi,address:this.address,functionName:"registerPILTermsAndAttach",account:this.wallet.account,args:[request.ipId,request.terms,request.sigAttach]});case 2:_yield$this$rpcClient52=_context95.sent;call=_yield$this$rpcClient52.request;_context95.next=6;return this.wallet.writeContract(call);case 6:return _context95.abrupt("return",_context95.sent);case 7:case"end":return _context95.stop();}},_callee95,this);}));function registerPilTermsAndAttach(_x59){return _registerPilTermsAndAttach.apply(this,arguments);}return registerPilTermsAndAttach;}()/**
|
1895
1907
|
* method registerPILTermsAndAttach for contract LicenseAttachmentWorkflows with only encode
|
1896
1908
|
*
|
1897
1909
|
* @param request LicenseAttachmentWorkflowsRegisterPilTermsAndAttachRequest
|
@@ -2088,187 +2100,187 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2088
2100
|
* @param data bytes
|
2089
2101
|
*/ /**
|
2090
2102
|
* contract LicenseRegistry event
|
2091
|
-
*/var LicenseRegistryEventClient=/*#__PURE__*/function(){function LicenseRegistryEventClient(rpcClient,address){var _rpcClient$
|
2103
|
+
*/var LicenseRegistryEventClient=/*#__PURE__*/function(){function LicenseRegistryEventClient(rpcClient,address){var _rpcClient$chain12;_classCallCheck(this,LicenseRegistryEventClient);this.address=address||getAddress(licenseRegistryAddress,(_rpcClient$chain12=rpcClient.chain)===null||_rpcClient$chain12===void 0?void 0:_rpcClient$chain12.id);this.rpcClient=rpcClient;}/**
|
2092
2104
|
* event AuthorityUpdated for contract LicenseRegistry
|
2093
|
-
*/return _createClass(LicenseRegistryEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
2105
|
+
*/return _createClass(LicenseRegistryEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(_onLogs30){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"AuthorityUpdated",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs30(it.transactionHash,it.args);});}});}/**
|
2094
2106
|
* parse tx receipt event AuthorityUpdated for contract LicenseRegistry
|
2095
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
2107
|
+
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var _iterator30=_createForOfIteratorHelper(txReceipt.logs),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var log=_step30.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"AuthorityUpdated",data:log.data,topics:log.topics});if(event.eventName==="AuthorityUpdated"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}return targetLogs;}/**
|
2096
2108
|
* event DefaultLicenseTermsSet for contract LicenseRegistry
|
2097
|
-
*/},{key:"watchDefaultLicenseTermsSetEvent",value:function watchDefaultLicenseTermsSetEvent(
|
2109
|
+
*/},{key:"watchDefaultLicenseTermsSetEvent",value:function watchDefaultLicenseTermsSetEvent(_onLogs31){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"DefaultLicenseTermsSet",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs31(it.transactionHash,it.args);});}});}/**
|
2098
2110
|
* parse tx receipt event DefaultLicenseTermsSet for contract LicenseRegistry
|
2099
|
-
*/},{key:"parseTxDefaultLicenseTermsSetEvent",value:function parseTxDefaultLicenseTermsSetEvent(txReceipt){var targetLogs=[];var
|
2111
|
+
*/},{key:"parseTxDefaultLicenseTermsSetEvent",value:function parseTxDefaultLicenseTermsSetEvent(txReceipt){var targetLogs=[];var _iterator31=_createForOfIteratorHelper(txReceipt.logs),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var log=_step31.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"DefaultLicenseTermsSet",data:log.data,topics:log.topics});if(event.eventName==="DefaultLicenseTermsSet"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}return targetLogs;}/**
|
2100
2112
|
* event ExpirationTimeSet for contract LicenseRegistry
|
2101
|
-
*/},{key:"watchExpirationTimeSetEvent",value:function watchExpirationTimeSetEvent(
|
2113
|
+
*/},{key:"watchExpirationTimeSetEvent",value:function watchExpirationTimeSetEvent(_onLogs32){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"ExpirationTimeSet",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs32(it.transactionHash,it.args);});}});}/**
|
2102
2114
|
* parse tx receipt event ExpirationTimeSet for contract LicenseRegistry
|
2103
|
-
*/},{key:"parseTxExpirationTimeSetEvent",value:function parseTxExpirationTimeSetEvent(txReceipt){var targetLogs=[];var
|
2115
|
+
*/},{key:"parseTxExpirationTimeSetEvent",value:function parseTxExpirationTimeSetEvent(txReceipt){var targetLogs=[];var _iterator32=_createForOfIteratorHelper(txReceipt.logs),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var log=_step32.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"ExpirationTimeSet",data:log.data,topics:log.topics});if(event.eventName==="ExpirationTimeSet"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}return targetLogs;}/**
|
2104
2116
|
* event Initialized for contract LicenseRegistry
|
2105
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
2117
|
+
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(_onLogs33){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"Initialized",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs33(it.transactionHash,it.args);});}});}/**
|
2106
2118
|
* parse tx receipt event Initialized for contract LicenseRegistry
|
2107
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
2119
|
+
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var _iterator33=_createForOfIteratorHelper(txReceipt.logs),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var log=_step33.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"Initialized",data:log.data,topics:log.topics});if(event.eventName==="Initialized"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}return targetLogs;}/**
|
2108
2120
|
* event LicenseTemplateRegistered for contract LicenseRegistry
|
2109
|
-
*/},{key:"watchLicenseTemplateRegisteredEvent",value:function watchLicenseTemplateRegisteredEvent(
|
2121
|
+
*/},{key:"watchLicenseTemplateRegisteredEvent",value:function watchLicenseTemplateRegisteredEvent(_onLogs34){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"LicenseTemplateRegistered",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs34(it.transactionHash,it.args);});}});}/**
|
2110
2122
|
* parse tx receipt event LicenseTemplateRegistered for contract LicenseRegistry
|
2111
|
-
*/},{key:"parseTxLicenseTemplateRegisteredEvent",value:function parseTxLicenseTemplateRegisteredEvent(txReceipt){var targetLogs=[];var
|
2123
|
+
*/},{key:"parseTxLicenseTemplateRegisteredEvent",value:function parseTxLicenseTemplateRegisteredEvent(txReceipt){var targetLogs=[];var _iterator34=_createForOfIteratorHelper(txReceipt.logs),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var log=_step34.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"LicenseTemplateRegistered",data:log.data,topics:log.topics});if(event.eventName==="LicenseTemplateRegistered"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}return targetLogs;}/**
|
2112
2124
|
* event LicensingConfigSetForIP for contract LicenseRegistry
|
2113
|
-
*/},{key:"watchLicensingConfigSetForIpEvent",value:function watchLicensingConfigSetForIpEvent(
|
2125
|
+
*/},{key:"watchLicensingConfigSetForIpEvent",value:function watchLicensingConfigSetForIpEvent(_onLogs35){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"LicensingConfigSetForIP",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs35(it.transactionHash,it.args);});}});}/**
|
2114
2126
|
* parse tx receipt event LicensingConfigSetForIP for contract LicenseRegistry
|
2115
|
-
*/},{key:"parseTxLicensingConfigSetForIpEvent",value:function parseTxLicensingConfigSetForIpEvent(txReceipt){var targetLogs=[];var
|
2127
|
+
*/},{key:"parseTxLicensingConfigSetForIpEvent",value:function parseTxLicensingConfigSetForIpEvent(txReceipt){var targetLogs=[];var _iterator35=_createForOfIteratorHelper(txReceipt.logs),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var log=_step35.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"LicensingConfigSetForIP",data:log.data,topics:log.topics});if(event.eventName==="LicensingConfigSetForIP"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return targetLogs;}/**
|
2116
2128
|
* event LicensingConfigSetForLicense for contract LicenseRegistry
|
2117
|
-
*/},{key:"watchLicensingConfigSetForLicenseEvent",value:function watchLicensingConfigSetForLicenseEvent(
|
2129
|
+
*/},{key:"watchLicensingConfigSetForLicenseEvent",value:function watchLicensingConfigSetForLicenseEvent(_onLogs36){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"LicensingConfigSetForLicense",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs36(it.transactionHash,it.args);});}});}/**
|
2118
2130
|
* parse tx receipt event LicensingConfigSetForLicense for contract LicenseRegistry
|
2119
|
-
*/},{key:"parseTxLicensingConfigSetForLicenseEvent",value:function parseTxLicensingConfigSetForLicenseEvent(txReceipt){var targetLogs=[];var
|
2131
|
+
*/},{key:"parseTxLicensingConfigSetForLicenseEvent",value:function parseTxLicensingConfigSetForLicenseEvent(txReceipt){var targetLogs=[];var _iterator36=_createForOfIteratorHelper(txReceipt.logs),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var log=_step36.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"LicensingConfigSetForLicense",data:log.data,topics:log.topics});if(event.eventName==="LicensingConfigSetForLicense"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return targetLogs;}/**
|
2120
2132
|
* event Upgraded for contract LicenseRegistry
|
2121
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
2133
|
+
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(_onLogs37){return this.rpcClient.watchContractEvent({abi:licenseRegistryAbi,address:this.address,eventName:"Upgraded",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs37(it.transactionHash,it.args);});}});}/**
|
2122
2134
|
* parse tx receipt event Upgraded for contract LicenseRegistry
|
2123
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
2135
|
+
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var _iterator37=_createForOfIteratorHelper(txReceipt.logs),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var log=_step37.value;try{var event=viem.decodeEventLog({abi:licenseRegistryAbi,eventName:"Upgraded",data:log.data,topics:log.topics});if(event.eventName==="Upgraded"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}return targetLogs;}}]);}();/**
|
2124
2136
|
* contract LicenseRegistry readonly method
|
2125
2137
|
*/var LicenseRegistryReadOnlyClient=/*#__PURE__*/function(_LicenseRegistryEvent){function LicenseRegistryReadOnlyClient(rpcClient,address){_classCallCheck(this,LicenseRegistryReadOnlyClient);return _callSuper(this,LicenseRegistryReadOnlyClient,[rpcClient,address]);}/**
|
2126
2138
|
* method DISPUTE_MODULE for contract LicenseRegistry
|
2127
2139
|
*
|
2128
2140
|
* @param request LicenseRegistryDisputeModuleRequest
|
2129
2141
|
* @return Promise<LicenseRegistryDisputeModuleResponse>
|
2130
|
-
*/_inherits(LicenseRegistryReadOnlyClient,_LicenseRegistryEvent);return _createClass(LicenseRegistryReadOnlyClient,[{key:"disputeModule",value:(function(){var
|
2142
|
+
*/_inherits(LicenseRegistryReadOnlyClient,_LicenseRegistryEvent);return _createClass(LicenseRegistryReadOnlyClient,[{key:"disputeModule",value:(function(){var _disputeModule=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee96(){return _regeneratorRuntime().wrap(function _callee96$(_context96){while(1)switch(_context96.prev=_context96.next){case 0:_context96.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"DISPUTE_MODULE"});case 2:return _context96.abrupt("return",_context96.sent);case 3:case"end":return _context96.stop();}},_callee96,this);}));function disputeModule(){return _disputeModule.apply(this,arguments);}return disputeModule;}()/**
|
2131
2143
|
* method EXPIRATION_TIME for contract LicenseRegistry
|
2132
2144
|
*
|
2133
2145
|
* @param request LicenseRegistryExpirationTimeRequest
|
2134
2146
|
* @return Promise<LicenseRegistryExpirationTimeResponse>
|
2135
|
-
*/)},{key:"expirationTime",value:(function(){var _expirationTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2147
|
+
*/)},{key:"expirationTime",value:(function(){var _expirationTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee97(){return _regeneratorRuntime().wrap(function _callee97$(_context97){while(1)switch(_context97.prev=_context97.next){case 0:_context97.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"EXPIRATION_TIME"});case 2:return _context97.abrupt("return",_context97.sent);case 3:case"end":return _context97.stop();}},_callee97,this);}));function expirationTime(){return _expirationTime.apply(this,arguments);}return expirationTime;}()/**
|
2136
2148
|
* method IP_GRAPH for contract LicenseRegistry
|
2137
2149
|
*
|
2138
2150
|
* @param request LicenseRegistryIpGraphRequest
|
2139
2151
|
* @return Promise<LicenseRegistryIpGraphResponse>
|
2140
|
-
*/)},{key:"ipGraph",value:(function(){var _ipGraph=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2152
|
+
*/)},{key:"ipGraph",value:(function(){var _ipGraph=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee98(){return _regeneratorRuntime().wrap(function _callee98$(_context98){while(1)switch(_context98.prev=_context98.next){case 0:_context98.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"IP_GRAPH"});case 2:return _context98.abrupt("return",_context98.sent);case 3:case"end":return _context98.stop();}},_callee98,this);}));function ipGraph(){return _ipGraph.apply(this,arguments);}return ipGraph;}()/**
|
2141
2153
|
* method IP_GRAPH_ACL for contract LicenseRegistry
|
2142
2154
|
*
|
2143
2155
|
* @param request LicenseRegistryIpGraphAclRequest
|
2144
2156
|
* @return Promise<LicenseRegistryIpGraphAclResponse>
|
2145
|
-
*/)},{key:"ipGraphAcl",value:(function(){var _ipGraphAcl=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2157
|
+
*/)},{key:"ipGraphAcl",value:(function(){var _ipGraphAcl=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee99(){return _regeneratorRuntime().wrap(function _callee99$(_context99){while(1)switch(_context99.prev=_context99.next){case 0:_context99.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"IP_GRAPH_ACL"});case 2:return _context99.abrupt("return",_context99.sent);case 3:case"end":return _context99.stop();}},_callee99,this);}));function ipGraphAcl(){return _ipGraphAcl.apply(this,arguments);}return ipGraphAcl;}()/**
|
2146
2158
|
* method LICENSING_MODULE for contract LicenseRegistry
|
2147
2159
|
*
|
2148
2160
|
* @param request LicenseRegistryLicensingModuleRequest
|
2149
2161
|
* @return Promise<LicenseRegistryLicensingModuleResponse>
|
2150
|
-
*/)},{key:"licensingModule",value:(function(){var _licensingModule=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2162
|
+
*/)},{key:"licensingModule",value:(function(){var _licensingModule=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee100(){return _regeneratorRuntime().wrap(function _callee100$(_context100){while(1)switch(_context100.prev=_context100.next){case 0:_context100.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"LICENSING_MODULE"});case 2:return _context100.abrupt("return",_context100.sent);case 3:case"end":return _context100.stop();}},_callee100,this);}));function licensingModule(){return _licensingModule.apply(this,arguments);}return licensingModule;}()/**
|
2151
2163
|
* method UPGRADE_INTERFACE_VERSION for contract LicenseRegistry
|
2152
2164
|
*
|
2153
2165
|
* @param request LicenseRegistryUpgradeInterfaceVersionRequest
|
2154
2166
|
* @return Promise<LicenseRegistryUpgradeInterfaceVersionResponse>
|
2155
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
2167
|
+
*/)},{key:"upgradeInterfaceVersion",value:(function(){var _upgradeInterfaceVersion4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee101(){return _regeneratorRuntime().wrap(function _callee101$(_context101){while(1)switch(_context101.prev=_context101.next){case 0:_context101.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"UPGRADE_INTERFACE_VERSION"});case 2:return _context101.abrupt("return",_context101.sent);case 3:case"end":return _context101.stop();}},_callee101,this);}));function upgradeInterfaceVersion(){return _upgradeInterfaceVersion4.apply(this,arguments);}return upgradeInterfaceVersion;}()/**
|
2156
2168
|
* method authority for contract LicenseRegistry
|
2157
2169
|
*
|
2158
2170
|
* @param request LicenseRegistryAuthorityRequest
|
2159
2171
|
* @return Promise<LicenseRegistryAuthorityResponse>
|
2160
|
-
*/)},{key:"authority",value:(function(){var
|
2172
|
+
*/)},{key:"authority",value:(function(){var _authority4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee102(){return _regeneratorRuntime().wrap(function _callee102$(_context102){while(1)switch(_context102.prev=_context102.next){case 0:_context102.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"authority"});case 2:return _context102.abrupt("return",_context102.sent);case 3:case"end":return _context102.stop();}},_callee102,this);}));function authority(){return _authority4.apply(this,arguments);}return authority;}()/**
|
2161
2173
|
* method exists for contract LicenseRegistry
|
2162
2174
|
*
|
2163
2175
|
* @param request LicenseRegistryExistsRequest
|
2164
2176
|
* @return Promise<LicenseRegistryExistsResponse>
|
2165
|
-
*/)},{key:"exists",value:(function(){var _exists=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2177
|
+
*/)},{key:"exists",value:(function(){var _exists=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee103(request){return _regeneratorRuntime().wrap(function _callee103$(_context103){while(1)switch(_context103.prev=_context103.next){case 0:_context103.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"exists",args:[request.licenseTemplate,request.licenseTermsId]});case 2:return _context103.abrupt("return",_context103.sent);case 3:case"end":return _context103.stop();}},_callee103,this);}));function exists(_x60){return _exists.apply(this,arguments);}return exists;}()/**
|
2166
2178
|
* method getAttachedLicenseTerms for contract LicenseRegistry
|
2167
2179
|
*
|
2168
2180
|
* @param request LicenseRegistryGetAttachedLicenseTermsRequest
|
2169
2181
|
* @return Promise<LicenseRegistryGetAttachedLicenseTermsResponse>
|
2170
|
-
*/)},{key:"getAttachedLicenseTerms",value:(function(){var _getAttachedLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2182
|
+
*/)},{key:"getAttachedLicenseTerms",value:(function(){var _getAttachedLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee104(request){var result;return _regeneratorRuntime().wrap(function _callee104$(_context104){while(1)switch(_context104.prev=_context104.next){case 0:_context104.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getAttachedLicenseTerms",args:[request.ipId,request.index]});case 2:result=_context104.sent;return _context104.abrupt("return",{licenseTemplate:result[0],licenseTermsId:result[1]});case 4:case"end":return _context104.stop();}},_callee104,this);}));function getAttachedLicenseTerms(_x61){return _getAttachedLicenseTerms.apply(this,arguments);}return getAttachedLicenseTerms;}()/**
|
2171
2183
|
* method getAttachedLicenseTermsCount for contract LicenseRegistry
|
2172
2184
|
*
|
2173
2185
|
* @param request LicenseRegistryGetAttachedLicenseTermsCountRequest
|
2174
2186
|
* @return Promise<LicenseRegistryGetAttachedLicenseTermsCountResponse>
|
2175
|
-
*/)},{key:"getAttachedLicenseTermsCount",value:(function(){var _getAttachedLicenseTermsCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2187
|
+
*/)},{key:"getAttachedLicenseTermsCount",value:(function(){var _getAttachedLicenseTermsCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee105(request){return _regeneratorRuntime().wrap(function _callee105$(_context105){while(1)switch(_context105.prev=_context105.next){case 0:_context105.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getAttachedLicenseTermsCount",args:[request.ipId]});case 2:return _context105.abrupt("return",_context105.sent);case 3:case"end":return _context105.stop();}},_callee105,this);}));function getAttachedLicenseTermsCount(_x62){return _getAttachedLicenseTermsCount.apply(this,arguments);}return getAttachedLicenseTermsCount;}()/**
|
2176
2188
|
* method getDefaultLicenseTerms for contract LicenseRegistry
|
2177
2189
|
*
|
2178
2190
|
* @param request LicenseRegistryGetDefaultLicenseTermsRequest
|
2179
2191
|
* @return Promise<LicenseRegistryGetDefaultLicenseTermsResponse>
|
2180
|
-
*/)},{key:"getDefaultLicenseTerms",value:(function(){var _getDefaultLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2192
|
+
*/)},{key:"getDefaultLicenseTerms",value:(function(){var _getDefaultLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee106(){var result;return _regeneratorRuntime().wrap(function _callee106$(_context106){while(1)switch(_context106.prev=_context106.next){case 0:_context106.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getDefaultLicenseTerms"});case 2:result=_context106.sent;return _context106.abrupt("return",{licenseTemplate:result[0],licenseTermsId:result[1]});case 4:case"end":return _context106.stop();}},_callee106,this);}));function getDefaultLicenseTerms(){return _getDefaultLicenseTerms.apply(this,arguments);}return getDefaultLicenseTerms;}()/**
|
2181
2193
|
* method getDerivativeIp for contract LicenseRegistry
|
2182
2194
|
*
|
2183
2195
|
* @param request LicenseRegistryGetDerivativeIpRequest
|
2184
2196
|
* @return Promise<LicenseRegistryGetDerivativeIpResponse>
|
2185
|
-
*/)},{key:"getDerivativeIp",value:(function(){var _getDerivativeIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2197
|
+
*/)},{key:"getDerivativeIp",value:(function(){var _getDerivativeIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee107(request){var result;return _regeneratorRuntime().wrap(function _callee107$(_context107){while(1)switch(_context107.prev=_context107.next){case 0:_context107.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getDerivativeIp",args:[request.parentIpId,request.index]});case 2:result=_context107.sent;return _context107.abrupt("return",{childIpId:result});case 4:case"end":return _context107.stop();}},_callee107,this);}));function getDerivativeIp(_x63){return _getDerivativeIp.apply(this,arguments);}return getDerivativeIp;}()/**
|
2186
2198
|
* method getDerivativeIpCount for contract LicenseRegistry
|
2187
2199
|
*
|
2188
2200
|
* @param request LicenseRegistryGetDerivativeIpCountRequest
|
2189
2201
|
* @return Promise<LicenseRegistryGetDerivativeIpCountResponse>
|
2190
|
-
*/)},{key:"getDerivativeIpCount",value:(function(){var _getDerivativeIpCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2202
|
+
*/)},{key:"getDerivativeIpCount",value:(function(){var _getDerivativeIpCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee108(request){return _regeneratorRuntime().wrap(function _callee108$(_context108){while(1)switch(_context108.prev=_context108.next){case 0:_context108.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getDerivativeIpCount",args:[request.parentIpId]});case 2:return _context108.abrupt("return",_context108.sent);case 3:case"end":return _context108.stop();}},_callee108,this);}));function getDerivativeIpCount(_x64){return _getDerivativeIpCount.apply(this,arguments);}return getDerivativeIpCount;}()/**
|
2191
2203
|
* method getExpireTime for contract LicenseRegistry
|
2192
2204
|
*
|
2193
2205
|
* @param request LicenseRegistryGetExpireTimeRequest
|
2194
2206
|
* @return Promise<LicenseRegistryGetExpireTimeResponse>
|
2195
|
-
*/)},{key:"getExpireTime",value:(function(){var _getExpireTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2207
|
+
*/)},{key:"getExpireTime",value:(function(){var _getExpireTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee109(request){return _regeneratorRuntime().wrap(function _callee109$(_context109){while(1)switch(_context109.prev=_context109.next){case 0:_context109.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getExpireTime",args:[request.ipId]});case 2:return _context109.abrupt("return",_context109.sent);case 3:case"end":return _context109.stop();}},_callee109,this);}));function getExpireTime(_x65){return _getExpireTime.apply(this,arguments);}return getExpireTime;}()/**
|
2196
2208
|
* method getLicensingConfig for contract LicenseRegistry
|
2197
2209
|
*
|
2198
2210
|
* @param request LicenseRegistryGetLicensingConfigRequest
|
2199
2211
|
* @return Promise<LicenseRegistryGetLicensingConfigResponse>
|
2200
|
-
*/)},{key:"getLicensingConfig",value:(function(){var _getLicensingConfig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2212
|
+
*/)},{key:"getLicensingConfig",value:(function(){var _getLicensingConfig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee110(request){return _regeneratorRuntime().wrap(function _callee110$(_context110){while(1)switch(_context110.prev=_context110.next){case 0:_context110.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getLicensingConfig",args:[request.ipId,request.licenseTemplate,request.licenseTermsId]});case 2:return _context110.abrupt("return",_context110.sent);case 3:case"end":return _context110.stop();}},_callee110,this);}));function getLicensingConfig(_x66){return _getLicensingConfig.apply(this,arguments);}return getLicensingConfig;}()/**
|
2201
2213
|
* method getParentIp for contract LicenseRegistry
|
2202
2214
|
*
|
2203
2215
|
* @param request LicenseRegistryGetParentIpRequest
|
2204
2216
|
* @return Promise<LicenseRegistryGetParentIpResponse>
|
2205
|
-
*/)},{key:"getParentIp",value:(function(){var _getParentIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2217
|
+
*/)},{key:"getParentIp",value:(function(){var _getParentIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee111(request){var result;return _regeneratorRuntime().wrap(function _callee111$(_context111){while(1)switch(_context111.prev=_context111.next){case 0:_context111.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getParentIp",args:[request.childIpId,request.index]});case 2:result=_context111.sent;return _context111.abrupt("return",{parentIpId:result});case 4:case"end":return _context111.stop();}},_callee111,this);}));function getParentIp(_x67){return _getParentIp.apply(this,arguments);}return getParentIp;}()/**
|
2206
2218
|
* method getParentIpCount for contract LicenseRegistry
|
2207
2219
|
*
|
2208
2220
|
* @param request LicenseRegistryGetParentIpCountRequest
|
2209
2221
|
* @return Promise<LicenseRegistryGetParentIpCountResponse>
|
2210
|
-
*/)},{key:"getParentIpCount",value:(function(){var _getParentIpCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2222
|
+
*/)},{key:"getParentIpCount",value:(function(){var _getParentIpCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee112(request){return _regeneratorRuntime().wrap(function _callee112$(_context112){while(1)switch(_context112.prev=_context112.next){case 0:_context112.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getParentIpCount",args:[request.childIpId]});case 2:return _context112.abrupt("return",_context112.sent);case 3:case"end":return _context112.stop();}},_callee112,this);}));function getParentIpCount(_x68){return _getParentIpCount.apply(this,arguments);}return getParentIpCount;}()/**
|
2211
2223
|
* method getParentLicenseTerms for contract LicenseRegistry
|
2212
2224
|
*
|
2213
2225
|
* @param request LicenseRegistryGetParentLicenseTermsRequest
|
2214
2226
|
* @return Promise<LicenseRegistryGetParentLicenseTermsResponse>
|
2215
|
-
*/)},{key:"getParentLicenseTerms",value:(function(){var _getParentLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2227
|
+
*/)},{key:"getParentLicenseTerms",value:(function(){var _getParentLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee113(request){var result;return _regeneratorRuntime().wrap(function _callee113$(_context113){while(1)switch(_context113.prev=_context113.next){case 0:_context113.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"getParentLicenseTerms",args:[request.childIpId,request.parentIpId]});case 2:result=_context113.sent;return _context113.abrupt("return",{licenseTemplate:result[0],licenseTermsId:result[1]});case 4:case"end":return _context113.stop();}},_callee113,this);}));function getParentLicenseTerms(_x69){return _getParentLicenseTerms.apply(this,arguments);}return getParentLicenseTerms;}()/**
|
2216
2228
|
* method hasDerivativeIps for contract LicenseRegistry
|
2217
2229
|
*
|
2218
2230
|
* @param request LicenseRegistryHasDerivativeIpsRequest
|
2219
2231
|
* @return Promise<LicenseRegistryHasDerivativeIpsResponse>
|
2220
|
-
*/)},{key:"hasDerivativeIps",value:(function(){var _hasDerivativeIps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2232
|
+
*/)},{key:"hasDerivativeIps",value:(function(){var _hasDerivativeIps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee114(request){return _regeneratorRuntime().wrap(function _callee114$(_context114){while(1)switch(_context114.prev=_context114.next){case 0:_context114.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"hasDerivativeIps",args:[request.parentIpId]});case 2:return _context114.abrupt("return",_context114.sent);case 3:case"end":return _context114.stop();}},_callee114,this);}));function hasDerivativeIps(_x70){return _hasDerivativeIps.apply(this,arguments);}return hasDerivativeIps;}()/**
|
2221
2233
|
* method hasIpAttachedLicenseTerms for contract LicenseRegistry
|
2222
2234
|
*
|
2223
2235
|
* @param request LicenseRegistryHasIpAttachedLicenseTermsRequest
|
2224
2236
|
* @return Promise<LicenseRegistryHasIpAttachedLicenseTermsResponse>
|
2225
|
-
*/)},{key:"hasIpAttachedLicenseTerms",value:(function(){var _hasIpAttachedLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2237
|
+
*/)},{key:"hasIpAttachedLicenseTerms",value:(function(){var _hasIpAttachedLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee115(request){return _regeneratorRuntime().wrap(function _callee115$(_context115){while(1)switch(_context115.prev=_context115.next){case 0:_context115.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"hasIpAttachedLicenseTerms",args:[request.ipId,request.licenseTemplate,request.licenseTermsId]});case 2:return _context115.abrupt("return",_context115.sent);case 3:case"end":return _context115.stop();}},_callee115,this);}));function hasIpAttachedLicenseTerms(_x71){return _hasIpAttachedLicenseTerms.apply(this,arguments);}return hasIpAttachedLicenseTerms;}()/**
|
2226
2238
|
* method isConsumingScheduledOp for contract LicenseRegistry
|
2227
2239
|
*
|
2228
2240
|
* @param request LicenseRegistryIsConsumingScheduledOpRequest
|
2229
2241
|
* @return Promise<LicenseRegistryIsConsumingScheduledOpResponse>
|
2230
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
2242
|
+
*/)},{key:"isConsumingScheduledOp",value:(function(){var _isConsumingScheduledOp4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee116(){return _regeneratorRuntime().wrap(function _callee116$(_context116){while(1)switch(_context116.prev=_context116.next){case 0:_context116.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"isConsumingScheduledOp"});case 2:return _context116.abrupt("return",_context116.sent);case 3:case"end":return _context116.stop();}},_callee116,this);}));function isConsumingScheduledOp(){return _isConsumingScheduledOp4.apply(this,arguments);}return isConsumingScheduledOp;}()/**
|
2231
2243
|
* method isDerivativeIp for contract LicenseRegistry
|
2232
2244
|
*
|
2233
2245
|
* @param request LicenseRegistryIsDerivativeIpRequest
|
2234
2246
|
* @return Promise<LicenseRegistryIsDerivativeIpResponse>
|
2235
|
-
*/)},{key:"isDerivativeIp",value:(function(){var _isDerivativeIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2247
|
+
*/)},{key:"isDerivativeIp",value:(function(){var _isDerivativeIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee117(request){return _regeneratorRuntime().wrap(function _callee117$(_context117){while(1)switch(_context117.prev=_context117.next){case 0:_context117.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"isDerivativeIp",args:[request.childIpId]});case 2:return _context117.abrupt("return",_context117.sent);case 3:case"end":return _context117.stop();}},_callee117,this);}));function isDerivativeIp(_x72){return _isDerivativeIp.apply(this,arguments);}return isDerivativeIp;}()/**
|
2236
2248
|
* method isExpiredNow for contract LicenseRegistry
|
2237
2249
|
*
|
2238
2250
|
* @param request LicenseRegistryIsExpiredNowRequest
|
2239
2251
|
* @return Promise<LicenseRegistryIsExpiredNowResponse>
|
2240
|
-
*/)},{key:"isExpiredNow",value:(function(){var _isExpiredNow=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2252
|
+
*/)},{key:"isExpiredNow",value:(function(){var _isExpiredNow=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee118(request){return _regeneratorRuntime().wrap(function _callee118$(_context118){while(1)switch(_context118.prev=_context118.next){case 0:_context118.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"isExpiredNow",args:[request.ipId]});case 2:return _context118.abrupt("return",_context118.sent);case 3:case"end":return _context118.stop();}},_callee118,this);}));function isExpiredNow(_x73){return _isExpiredNow.apply(this,arguments);}return isExpiredNow;}()/**
|
2241
2253
|
* method isParentIp for contract LicenseRegistry
|
2242
2254
|
*
|
2243
2255
|
* @param request LicenseRegistryIsParentIpRequest
|
2244
2256
|
* @return Promise<LicenseRegistryIsParentIpResponse>
|
2245
|
-
*/)},{key:"isParentIp",value:(function(){var _isParentIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2257
|
+
*/)},{key:"isParentIp",value:(function(){var _isParentIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee119(request){return _regeneratorRuntime().wrap(function _callee119$(_context119){while(1)switch(_context119.prev=_context119.next){case 0:_context119.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"isParentIp",args:[request.parentIpId,request.childIpId]});case 2:return _context119.abrupt("return",_context119.sent);case 3:case"end":return _context119.stop();}},_callee119,this);}));function isParentIp(_x74){return _isParentIp.apply(this,arguments);}return isParentIp;}()/**
|
2246
2258
|
* method isRegisteredLicenseTemplate for contract LicenseRegistry
|
2247
2259
|
*
|
2248
2260
|
* @param request LicenseRegistryIsRegisteredLicenseTemplateRequest
|
2249
2261
|
* @return Promise<LicenseRegistryIsRegisteredLicenseTemplateResponse>
|
2250
|
-
*/)},{key:"isRegisteredLicenseTemplate",value:(function(){var _isRegisteredLicenseTemplate=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2262
|
+
*/)},{key:"isRegisteredLicenseTemplate",value:(function(){var _isRegisteredLicenseTemplate=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee120(request){return _regeneratorRuntime().wrap(function _callee120$(_context120){while(1)switch(_context120.prev=_context120.next){case 0:_context120.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"isRegisteredLicenseTemplate",args:[request.licenseTemplate]});case 2:return _context120.abrupt("return",_context120.sent);case 3:case"end":return _context120.stop();}},_callee120,this);}));function isRegisteredLicenseTemplate(_x75){return _isRegisteredLicenseTemplate.apply(this,arguments);}return isRegisteredLicenseTemplate;}()/**
|
2251
2263
|
* method proxiableUUID for contract LicenseRegistry
|
2252
2264
|
*
|
2253
2265
|
* @param request LicenseRegistryProxiableUuidRequest
|
2254
2266
|
* @return Promise<LicenseRegistryProxiableUuidResponse>
|
2255
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
2267
|
+
*/)},{key:"proxiableUuid",value:(function(){var _proxiableUuid4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee121(){return _regeneratorRuntime().wrap(function _callee121$(_context121){while(1)switch(_context121.prev=_context121.next){case 0:_context121.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"proxiableUUID"});case 2:return _context121.abrupt("return",_context121.sent);case 3:case"end":return _context121.stop();}},_callee121,this);}));function proxiableUuid(){return _proxiableUuid4.apply(this,arguments);}return proxiableUuid;}()/**
|
2256
2268
|
* method verifyMintLicenseToken for contract LicenseRegistry
|
2257
2269
|
*
|
2258
2270
|
* @param request LicenseRegistryVerifyMintLicenseTokenRequest
|
2259
2271
|
* @return Promise<LicenseRegistryVerifyMintLicenseTokenResponse>
|
2260
|
-
*/)},{key:"verifyMintLicenseToken",value:(function(){var _verifyMintLicenseToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2272
|
+
*/)},{key:"verifyMintLicenseToken",value:(function(){var _verifyMintLicenseToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee122(request){return _regeneratorRuntime().wrap(function _callee122$(_context122){while(1)switch(_context122.prev=_context122.next){case 0:_context122.next=2;return this.rpcClient.readContract({abi:licenseRegistryAbi,address:this.address,functionName:"verifyMintLicenseToken",args:[request.licensorIpId,request.licenseTemplate,request.licenseTermsId,request.isMintedByIpOwner]});case 2:return _context122.abrupt("return",_context122.sent);case 3:case"end":return _context122.stop();}},_callee122,this);}));function verifyMintLicenseToken(_x76){return _verifyMintLicenseToken.apply(this,arguments);}return verifyMintLicenseToken;}())}]);}(LicenseRegistryEventClient);/**
|
2261
2273
|
* LicenseTokenOwnerOfRequest
|
2262
2274
|
*
|
2263
2275
|
* @param tokenId uint256
|
2264
2276
|
*/ /**
|
2265
2277
|
* contract LicenseToken readonly method
|
2266
|
-
*/var LicenseTokenReadOnlyClient=/*#__PURE__*/function(){function LicenseTokenReadOnlyClient(rpcClient,address){var _rpcClient$
|
2278
|
+
*/var LicenseTokenReadOnlyClient=/*#__PURE__*/function(){function LicenseTokenReadOnlyClient(rpcClient,address){var _rpcClient$chain13;_classCallCheck(this,LicenseTokenReadOnlyClient);this.address=address||getAddress(licenseTokenAddress,(_rpcClient$chain13=rpcClient.chain)===null||_rpcClient$chain13===void 0?void 0:_rpcClient$chain13.id);this.rpcClient=rpcClient;}/**
|
2267
2279
|
* method ownerOf for contract LicenseToken
|
2268
2280
|
*
|
2269
2281
|
* @param request LicenseTokenOwnerOfRequest
|
2270
2282
|
* @return Promise<LicenseTokenOwnerOfResponse>
|
2271
|
-
*/return _createClass(LicenseTokenReadOnlyClient,[{key:"ownerOf",value:(function(){var _ownerOf=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2283
|
+
*/return _createClass(LicenseTokenReadOnlyClient,[{key:"ownerOf",value:(function(){var _ownerOf=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee132(request){return _regeneratorRuntime().wrap(function _callee132$(_context132){while(1)switch(_context132.prev=_context132.next){case 0:_context132.next=2;return this.rpcClient.readContract({abi:licenseTokenAbi,address:this.address,functionName:"ownerOf",args:[request.tokenId]});case 2:return _context132.abrupt("return",_context132.sent);case 3:case"end":return _context132.stop();}},_callee132,this);}));function ownerOf(_x86){return _ownerOf.apply(this,arguments);}return ownerOf;}())}]);}();// Contract LicensingModule =============================================================
|
2272
2284
|
/**
|
2273
2285
|
* LicensingModuleLicenseTermsAttachedEvent
|
2274
2286
|
*
|
@@ -2330,30 +2342,37 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2330
2342
|
* @param licenseTokenIds uint256[]
|
2331
2343
|
* @param royaltyContext bytes
|
2332
2344
|
*/ /**
|
2345
|
+
* LicensingModuleSetLicensingConfigRequest
|
2346
|
+
*
|
2347
|
+
* @param ipId address
|
2348
|
+
* @param licenseTemplate address
|
2349
|
+
* @param licenseTermsId uint256
|
2350
|
+
* @param licensingConfig tuple
|
2351
|
+
*/ /**
|
2333
2352
|
* contract LicensingModule event
|
2334
|
-
*/var LicensingModuleEventClient=/*#__PURE__*/function(){function LicensingModuleEventClient(rpcClient,address){var _rpcClient$
|
2353
|
+
*/var LicensingModuleEventClient=/*#__PURE__*/function(){function LicensingModuleEventClient(rpcClient,address){var _rpcClient$chain14;_classCallCheck(this,LicensingModuleEventClient);this.address=address||getAddress(licensingModuleAddress,(_rpcClient$chain14=rpcClient.chain)===null||_rpcClient$chain14===void 0?void 0:_rpcClient$chain14.id);this.rpcClient=rpcClient;}/**
|
2335
2354
|
* event LicenseTermsAttached for contract LicensingModule
|
2336
|
-
*/return _createClass(LicensingModuleEventClient,[{key:"watchLicenseTermsAttachedEvent",value:function watchLicenseTermsAttachedEvent(
|
2355
|
+
*/return _createClass(LicensingModuleEventClient,[{key:"watchLicenseTermsAttachedEvent",value:function watchLicenseTermsAttachedEvent(_onLogs38){return this.rpcClient.watchContractEvent({abi:licensingModuleAbi,address:this.address,eventName:"LicenseTermsAttached",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs38(it.transactionHash,it.args);});}});}/**
|
2337
2356
|
* parse tx receipt event LicenseTermsAttached for contract LicensingModule
|
2338
|
-
*/},{key:"parseTxLicenseTermsAttachedEvent",value:function parseTxLicenseTermsAttachedEvent(txReceipt){var targetLogs=[];var
|
2357
|
+
*/},{key:"parseTxLicenseTermsAttachedEvent",value:function parseTxLicenseTermsAttachedEvent(txReceipt){var targetLogs=[];var _iterator38=_createForOfIteratorHelper(txReceipt.logs),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var log=_step38.value;try{var event=viem.decodeEventLog({abi:licensingModuleAbi,eventName:"LicenseTermsAttached",data:log.data,topics:log.topics});if(event.eventName==="LicenseTermsAttached"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}return targetLogs;}/**
|
2339
2358
|
* event LicenseTokensMinted for contract LicensingModule
|
2340
|
-
*/},{key:"watchLicenseTokensMintedEvent",value:function watchLicenseTokensMintedEvent(
|
2359
|
+
*/},{key:"watchLicenseTokensMintedEvent",value:function watchLicenseTokensMintedEvent(_onLogs39){return this.rpcClient.watchContractEvent({abi:licensingModuleAbi,address:this.address,eventName:"LicenseTokensMinted",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs39(it.transactionHash,it.args);});}});}/**
|
2341
2360
|
* parse tx receipt event LicenseTokensMinted for contract LicensingModule
|
2342
|
-
*/},{key:"parseTxLicenseTokensMintedEvent",value:function parseTxLicenseTokensMintedEvent(txReceipt){var targetLogs=[];var
|
2361
|
+
*/},{key:"parseTxLicenseTokensMintedEvent",value:function parseTxLicenseTokensMintedEvent(txReceipt){var targetLogs=[];var _iterator39=_createForOfIteratorHelper(txReceipt.logs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var log=_step39.value;try{var event=viem.decodeEventLog({abi:licensingModuleAbi,eventName:"LicenseTokensMinted",data:log.data,topics:log.topics});if(event.eventName==="LicenseTokensMinted"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}return targetLogs;}}]);}();/**
|
2343
2362
|
* contract LicensingModule readonly method
|
2344
2363
|
*/var LicensingModuleReadOnlyClient=/*#__PURE__*/function(_LicensingModuleEvent){function LicensingModuleReadOnlyClient(rpcClient,address){_classCallCheck(this,LicensingModuleReadOnlyClient);return _callSuper(this,LicensingModuleReadOnlyClient,[rpcClient,address]);}/**
|
2345
2364
|
* method predictMintingLicenseFee for contract LicensingModule
|
2346
2365
|
*
|
2347
2366
|
* @param request LicensingModulePredictMintingLicenseFeeRequest
|
2348
2367
|
* @return Promise<LicensingModulePredictMintingLicenseFeeResponse>
|
2349
|
-
*/_inherits(LicensingModuleReadOnlyClient,_LicensingModuleEvent);return _createClass(LicensingModuleReadOnlyClient,[{key:"predictMintingLicenseFee",value:(function(){var _predictMintingLicenseFee=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2368
|
+
*/_inherits(LicensingModuleReadOnlyClient,_LicensingModuleEvent);return _createClass(LicensingModuleReadOnlyClient,[{key:"predictMintingLicenseFee",value:(function(){var _predictMintingLicenseFee=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee133(request){var result;return _regeneratorRuntime().wrap(function _callee133$(_context133){while(1)switch(_context133.prev=_context133.next){case 0:_context133.next=2;return this.rpcClient.readContract({abi:licensingModuleAbi,address:this.address,functionName:"predictMintingLicenseFee",args:[request.licensorIpId,request.licenseTemplate,request.licenseTermsId,request.amount,request.receiver,request.royaltyContext]});case 2:result=_context133.sent;return _context133.abrupt("return",{currencyToken:result[0],tokenAmount:result[1]});case 4:case"end":return _context133.stop();}},_callee133,this);}));function predictMintingLicenseFee(_x87){return _predictMintingLicenseFee.apply(this,arguments);}return predictMintingLicenseFee;}())}]);}(LicensingModuleEventClient);/**
|
2350
2369
|
* contract LicensingModule write method
|
2351
|
-
*/var LicensingModuleClient=/*#__PURE__*/function(_LicensingModuleReadO){function LicensingModuleClient(rpcClient,wallet,address){var
|
2370
|
+
*/var LicensingModuleClient=/*#__PURE__*/function(_LicensingModuleReadO){function LicensingModuleClient(rpcClient,wallet,address){var _this10;_classCallCheck(this,LicensingModuleClient);_this10=_callSuper(this,LicensingModuleClient,[rpcClient,address]);_this10.wallet=wallet;return _this10;}/**
|
2352
2371
|
* method attachLicenseTerms for contract LicensingModule
|
2353
2372
|
*
|
2354
2373
|
* @param request LicensingModuleAttachLicenseTermsRequest
|
2355
2374
|
* @return Promise<WriteContractReturnType>
|
2356
|
-
*/_inherits(LicensingModuleClient,_LicensingModuleReadO);return _createClass(LicensingModuleClient,[{key:"attachLicenseTerms",value:(function(){var _attachLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2375
|
+
*/_inherits(LicensingModuleClient,_LicensingModuleReadO);return _createClass(LicensingModuleClient,[{key:"attachLicenseTerms",value:(function(){var _attachLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee134(request){var _yield$this$rpcClient62,call;return _regeneratorRuntime().wrap(function _callee134$(_context134){while(1)switch(_context134.prev=_context134.next){case 0:_context134.next=2;return this.rpcClient.simulateContract({abi:licensingModuleAbi,address:this.address,functionName:"attachLicenseTerms",account:this.wallet.account,args:[request.ipId,request.licenseTemplate,request.licenseTermsId]});case 2:_yield$this$rpcClient62=_context134.sent;call=_yield$this$rpcClient62.request;_context134.next=6;return this.wallet.writeContract(call);case 6:return _context134.abrupt("return",_context134.sent);case 7:case"end":return _context134.stop();}},_callee134,this);}));function attachLicenseTerms(_x88){return _attachLicenseTerms.apply(this,arguments);}return attachLicenseTerms;}()/**
|
2357
2376
|
* method attachLicenseTerms for contract LicensingModule with only encode
|
2358
2377
|
*
|
2359
2378
|
* @param request LicensingModuleAttachLicenseTermsRequest
|
@@ -2363,7 +2382,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2363
2382
|
*
|
2364
2383
|
* @param request LicensingModuleMintLicenseTokensRequest
|
2365
2384
|
* @return Promise<WriteContractReturnType>
|
2366
|
-
*/},{key:"mintLicenseTokens",value:(function(){var _mintLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2385
|
+
*/},{key:"mintLicenseTokens",value:(function(){var _mintLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee135(request){var _yield$this$rpcClient63,call;return _regeneratorRuntime().wrap(function _callee135$(_context135){while(1)switch(_context135.prev=_context135.next){case 0:_context135.next=2;return this.rpcClient.simulateContract({abi:licensingModuleAbi,address:this.address,functionName:"mintLicenseTokens",account:this.wallet.account,args:[request.licensorIpId,request.licenseTemplate,request.licenseTermsId,request.amount,request.receiver,request.royaltyContext]});case 2:_yield$this$rpcClient63=_context135.sent;call=_yield$this$rpcClient63.request;_context135.next=6;return this.wallet.writeContract(call);case 6:return _context135.abrupt("return",_context135.sent);case 7:case"end":return _context135.stop();}},_callee135,this);}));function mintLicenseTokens(_x89){return _mintLicenseTokens.apply(this,arguments);}return mintLicenseTokens;}()/**
|
2367
2386
|
* method mintLicenseTokens for contract LicensingModule with only encode
|
2368
2387
|
*
|
2369
2388
|
* @param request LicensingModuleMintLicenseTokensRequest
|
@@ -2373,7 +2392,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2373
2392
|
*
|
2374
2393
|
* @param request LicensingModuleRegisterDerivativeRequest
|
2375
2394
|
* @return Promise<WriteContractReturnType>
|
2376
|
-
*/},{key:"registerDerivative",value:(function(){var _registerDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2395
|
+
*/},{key:"registerDerivative",value:(function(){var _registerDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee136(request){var _yield$this$rpcClient64,call;return _regeneratorRuntime().wrap(function _callee136$(_context136){while(1)switch(_context136.prev=_context136.next){case 0:_context136.next=2;return this.rpcClient.simulateContract({abi:licensingModuleAbi,address:this.address,functionName:"registerDerivative",account:this.wallet.account,args:[request.childIpId,request.parentIpIds,request.licenseTermsIds,request.licenseTemplate,request.royaltyContext]});case 2:_yield$this$rpcClient64=_context136.sent;call=_yield$this$rpcClient64.request;_context136.next=6;return this.wallet.writeContract(call);case 6:return _context136.abrupt("return",_context136.sent);case 7:case"end":return _context136.stop();}},_callee136,this);}));function registerDerivative(_x90){return _registerDerivative.apply(this,arguments);}return registerDerivative;}()/**
|
2377
2396
|
* method registerDerivative for contract LicensingModule with only encode
|
2378
2397
|
*
|
2379
2398
|
* @param request LicensingModuleRegisterDerivativeRequest
|
@@ -2383,12 +2402,34 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2383
2402
|
*
|
2384
2403
|
* @param request LicensingModuleRegisterDerivativeWithLicenseTokensRequest
|
2385
2404
|
* @return Promise<WriteContractReturnType>
|
2386
|
-
*/},{key:"registerDerivativeWithLicenseTokens",value:(function(){var _registerDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2405
|
+
*/},{key:"registerDerivativeWithLicenseTokens",value:(function(){var _registerDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee137(request){var _yield$this$rpcClient65,call;return _regeneratorRuntime().wrap(function _callee137$(_context137){while(1)switch(_context137.prev=_context137.next){case 0:_context137.next=2;return this.rpcClient.simulateContract({abi:licensingModuleAbi,address:this.address,functionName:"registerDerivativeWithLicenseTokens",account:this.wallet.account,args:[request.childIpId,request.licenseTokenIds,request.royaltyContext]});case 2:_yield$this$rpcClient65=_context137.sent;call=_yield$this$rpcClient65.request;_context137.next=6;return this.wallet.writeContract(call);case 6:return _context137.abrupt("return",_context137.sent);case 7:case"end":return _context137.stop();}},_callee137,this);}));function registerDerivativeWithLicenseTokens(_x91){return _registerDerivativeWithLicenseTokens.apply(this,arguments);}return registerDerivativeWithLicenseTokens;}()/**
|
2387
2406
|
* method registerDerivativeWithLicenseTokens for contract LicensingModule with only encode
|
2388
2407
|
*
|
2389
2408
|
* @param request LicensingModuleRegisterDerivativeWithLicenseTokensRequest
|
2390
2409
|
* @return EncodedTxData
|
2391
|
-
*/)},{key:"registerDerivativeWithLicenseTokensEncode",value:function registerDerivativeWithLicenseTokensEncode(request){return {to:this.address,data:viem.encodeFunctionData({abi:licensingModuleAbi,functionName:"registerDerivativeWithLicenseTokens",args:[request.childIpId,request.licenseTokenIds,request.royaltyContext]})};}
|
2410
|
+
*/)},{key:"registerDerivativeWithLicenseTokensEncode",value:function registerDerivativeWithLicenseTokensEncode(request){return {to:this.address,data:viem.encodeFunctionData({abi:licensingModuleAbi,functionName:"registerDerivativeWithLicenseTokens",args:[request.childIpId,request.licenseTokenIds,request.royaltyContext]})};}/**
|
2411
|
+
* method setLicensingConfig for contract LicensingModule
|
2412
|
+
*
|
2413
|
+
* @param request LicensingModuleSetLicensingConfigRequest
|
2414
|
+
* @return Promise<WriteContractReturnType>
|
2415
|
+
*/},{key:"setLicensingConfig",value:(function(){var _setLicensingConfig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee138(request){var _yield$this$rpcClient66,call;return _regeneratorRuntime().wrap(function _callee138$(_context138){while(1)switch(_context138.prev=_context138.next){case 0:_context138.next=2;return this.rpcClient.simulateContract({abi:licensingModuleAbi,address:this.address,functionName:"setLicensingConfig",account:this.wallet.account,args:[request.ipId,request.licenseTemplate,request.licenseTermsId,request.licensingConfig]});case 2:_yield$this$rpcClient66=_context138.sent;call=_yield$this$rpcClient66.request;_context138.next=6;return this.wallet.writeContract(call);case 6:return _context138.abrupt("return",_context138.sent);case 7:case"end":return _context138.stop();}},_callee138,this);}));function setLicensingConfig(_x92){return _setLicensingConfig.apply(this,arguments);}return setLicensingConfig;}()/**
|
2416
|
+
* method setLicensingConfig for contract LicensingModule with only encode
|
2417
|
+
*
|
2418
|
+
* @param request LicensingModuleSetLicensingConfigRequest
|
2419
|
+
* @return EncodedTxData
|
2420
|
+
*/)},{key:"setLicensingConfigEncode",value:function setLicensingConfigEncode(request){return {to:this.address,data:viem.encodeFunctionData({abi:licensingModuleAbi,functionName:"setLicensingConfig",args:[request.ipId,request.licenseTemplate,request.licenseTermsId,request.licensingConfig]})};}}]);}(LicensingModuleReadOnlyClient);// Contract MockERC20 =============================================================
|
2421
|
+
/**
|
2422
|
+
* ModuleRegistryIsRegisteredRequest
|
2423
|
+
*
|
2424
|
+
* @param moduleAddress address
|
2425
|
+
*/ /**
|
2426
|
+
* contract ModuleRegistry readonly method
|
2427
|
+
*/var ModuleRegistryReadOnlyClient=/*#__PURE__*/function(){function ModuleRegistryReadOnlyClient(rpcClient,address){var _rpcClient$chain16;_classCallCheck(this,ModuleRegistryReadOnlyClient);this.address=address||getAddress(moduleRegistryAddress,(_rpcClient$chain16=rpcClient.chain)===null||_rpcClient$chain16===void 0?void 0:_rpcClient$chain16.id);this.rpcClient=rpcClient;}/**
|
2428
|
+
* method isRegistered for contract ModuleRegistry
|
2429
|
+
*
|
2430
|
+
* @param request ModuleRegistryIsRegisteredRequest
|
2431
|
+
* @return Promise<ModuleRegistryIsRegisteredResponse>
|
2432
|
+
*/return _createClass(ModuleRegistryReadOnlyClient,[{key:"isRegistered",value:(function(){var _isRegistered2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee150(request){return _regeneratorRuntime().wrap(function _callee150$(_context150){while(1)switch(_context150.prev=_context150.next){case 0:_context150.next=2;return this.rpcClient.readContract({abi:moduleRegistryAbi,address:this.address,functionName:"isRegistered",args:[request.moduleAddress]});case 2:return _context150.abrupt("return",_context150.sent);case 3:case"end":return _context150.stop();}},_callee150,this);}));function isRegistered(_x100){return _isRegistered2.apply(this,arguments);}return isRegistered;}())}]);}();// Contract PILicenseTemplate =============================================================
|
2392
2433
|
/**
|
2393
2434
|
* PiLicenseTemplateAuthorityUpdatedEvent
|
2394
2435
|
*
|
@@ -2530,156 +2571,156 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2530
2571
|
* @param childIpOwner address
|
2531
2572
|
*/ /**
|
2532
2573
|
* contract PILicenseTemplate event
|
2533
|
-
*/var PiLicenseTemplateEventClient=/*#__PURE__*/function(){function PiLicenseTemplateEventClient(rpcClient,address){var _rpcClient$
|
2574
|
+
*/var PiLicenseTemplateEventClient=/*#__PURE__*/function(){function PiLicenseTemplateEventClient(rpcClient,address){var _rpcClient$chain17;_classCallCheck(this,PiLicenseTemplateEventClient);this.address=address||getAddress(piLicenseTemplateAddress,(_rpcClient$chain17=rpcClient.chain)===null||_rpcClient$chain17===void 0?void 0:_rpcClient$chain17.id);this.rpcClient=rpcClient;}/**
|
2534
2575
|
* event AuthorityUpdated for contract PILicenseTemplate
|
2535
|
-
*/return _createClass(PiLicenseTemplateEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
2576
|
+
*/return _createClass(PiLicenseTemplateEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(_onLogs42){return this.rpcClient.watchContractEvent({abi:piLicenseTemplateAbi,address:this.address,eventName:"AuthorityUpdated",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs42(it.transactionHash,it.args);});}});}/**
|
2536
2577
|
* parse tx receipt event AuthorityUpdated for contract PILicenseTemplate
|
2537
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
2578
|
+
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var _iterator42=_createForOfIteratorHelper(txReceipt.logs),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var log=_step42.value;try{var event=viem.decodeEventLog({abi:piLicenseTemplateAbi,eventName:"AuthorityUpdated",data:log.data,topics:log.topics});if(event.eventName==="AuthorityUpdated"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator42.e(err);}finally{_iterator42.f();}return targetLogs;}/**
|
2538
2579
|
* event DerivativeApproved for contract PILicenseTemplate
|
2539
|
-
*/},{key:"watchDerivativeApprovedEvent",value:function watchDerivativeApprovedEvent(
|
2580
|
+
*/},{key:"watchDerivativeApprovedEvent",value:function watchDerivativeApprovedEvent(_onLogs43){return this.rpcClient.watchContractEvent({abi:piLicenseTemplateAbi,address:this.address,eventName:"DerivativeApproved",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs43(it.transactionHash,it.args);});}});}/**
|
2540
2581
|
* parse tx receipt event DerivativeApproved for contract PILicenseTemplate
|
2541
|
-
*/},{key:"parseTxDerivativeApprovedEvent",value:function parseTxDerivativeApprovedEvent(txReceipt){var targetLogs=[];var
|
2582
|
+
*/},{key:"parseTxDerivativeApprovedEvent",value:function parseTxDerivativeApprovedEvent(txReceipt){var targetLogs=[];var _iterator43=_createForOfIteratorHelper(txReceipt.logs),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var log=_step43.value;try{var event=viem.decodeEventLog({abi:piLicenseTemplateAbi,eventName:"DerivativeApproved",data:log.data,topics:log.topics});if(event.eventName==="DerivativeApproved"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}return targetLogs;}/**
|
2542
2583
|
* event Initialized for contract PILicenseTemplate
|
2543
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
2584
|
+
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(_onLogs44){return this.rpcClient.watchContractEvent({abi:piLicenseTemplateAbi,address:this.address,eventName:"Initialized",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs44(it.transactionHash,it.args);});}});}/**
|
2544
2585
|
* parse tx receipt event Initialized for contract PILicenseTemplate
|
2545
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
2586
|
+
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var _iterator44=_createForOfIteratorHelper(txReceipt.logs),_step44;try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var log=_step44.value;try{var event=viem.decodeEventLog({abi:piLicenseTemplateAbi,eventName:"Initialized",data:log.data,topics:log.topics});if(event.eventName==="Initialized"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator44.e(err);}finally{_iterator44.f();}return targetLogs;}/**
|
2546
2587
|
* event LicenseTermsRegistered for contract PILicenseTemplate
|
2547
|
-
*/},{key:"watchLicenseTermsRegisteredEvent",value:function watchLicenseTermsRegisteredEvent(
|
2588
|
+
*/},{key:"watchLicenseTermsRegisteredEvent",value:function watchLicenseTermsRegisteredEvent(_onLogs45){return this.rpcClient.watchContractEvent({abi:piLicenseTemplateAbi,address:this.address,eventName:"LicenseTermsRegistered",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs45(it.transactionHash,it.args);});}});}/**
|
2548
2589
|
* parse tx receipt event LicenseTermsRegistered for contract PILicenseTemplate
|
2549
|
-
*/},{key:"parseTxLicenseTermsRegisteredEvent",value:function parseTxLicenseTermsRegisteredEvent(txReceipt){var targetLogs=[];var
|
2590
|
+
*/},{key:"parseTxLicenseTermsRegisteredEvent",value:function parseTxLicenseTermsRegisteredEvent(txReceipt){var targetLogs=[];var _iterator45=_createForOfIteratorHelper(txReceipt.logs),_step45;try{for(_iterator45.s();!(_step45=_iterator45.n()).done;){var log=_step45.value;try{var event=viem.decodeEventLog({abi:piLicenseTemplateAbi,eventName:"LicenseTermsRegistered",data:log.data,topics:log.topics});if(event.eventName==="LicenseTermsRegistered"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator45.e(err);}finally{_iterator45.f();}return targetLogs;}/**
|
2550
2591
|
* event Upgraded for contract PILicenseTemplate
|
2551
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
2592
|
+
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(_onLogs46){return this.rpcClient.watchContractEvent({abi:piLicenseTemplateAbi,address:this.address,eventName:"Upgraded",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs46(it.transactionHash,it.args);});}});}/**
|
2552
2593
|
* parse tx receipt event Upgraded for contract PILicenseTemplate
|
2553
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
2594
|
+
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var _iterator46=_createForOfIteratorHelper(txReceipt.logs),_step46;try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var log=_step46.value;try{var event=viem.decodeEventLog({abi:piLicenseTemplateAbi,eventName:"Upgraded",data:log.data,topics:log.topics});if(event.eventName==="Upgraded"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator46.e(err);}finally{_iterator46.f();}return targetLogs;}}]);}();/**
|
2554
2595
|
* contract PILicenseTemplate readonly method
|
2555
2596
|
*/var PiLicenseTemplateReadOnlyClient=/*#__PURE__*/function(_PiLicenseTemplateEve){function PiLicenseTemplateReadOnlyClient(rpcClient,address){_classCallCheck(this,PiLicenseTemplateReadOnlyClient);return _callSuper(this,PiLicenseTemplateReadOnlyClient,[rpcClient,address]);}/**
|
2556
2597
|
* method ACCESS_CONTROLLER for contract PILicenseTemplate
|
2557
2598
|
*
|
2558
2599
|
* @param request PiLicenseTemplateAccessControllerRequest
|
2559
2600
|
* @return Promise<PiLicenseTemplateAccessControllerResponse>
|
2560
|
-
*/_inherits(PiLicenseTemplateReadOnlyClient,_PiLicenseTemplateEve);return _createClass(PiLicenseTemplateReadOnlyClient,[{key:"accessController",value:(function(){var _accessController3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2601
|
+
*/_inherits(PiLicenseTemplateReadOnlyClient,_PiLicenseTemplateEve);return _createClass(PiLicenseTemplateReadOnlyClient,[{key:"accessController",value:(function(){var _accessController3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee151(){return _regeneratorRuntime().wrap(function _callee151$(_context151){while(1)switch(_context151.prev=_context151.next){case 0:_context151.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"ACCESS_CONTROLLER"});case 2:return _context151.abrupt("return",_context151.sent);case 3:case"end":return _context151.stop();}},_callee151,this);}));function accessController(){return _accessController3.apply(this,arguments);}return accessController;}()/**
|
2561
2602
|
* method IP_ACCOUNT_REGISTRY for contract PILicenseTemplate
|
2562
2603
|
*
|
2563
2604
|
* @param request PiLicenseTemplateIpAccountRegistryRequest
|
2564
2605
|
* @return Promise<PiLicenseTemplateIpAccountRegistryResponse>
|
2565
|
-
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2606
|
+
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee152(){return _regeneratorRuntime().wrap(function _callee152$(_context152){while(1)switch(_context152.prev=_context152.next){case 0:_context152.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"IP_ACCOUNT_REGISTRY"});case 2:return _context152.abrupt("return",_context152.sent);case 3:case"end":return _context152.stop();}},_callee152,this);}));function ipAccountRegistry(){return _ipAccountRegistry3.apply(this,arguments);}return ipAccountRegistry;}()/**
|
2566
2607
|
* method LICENSE_REGISTRY for contract PILicenseTemplate
|
2567
2608
|
*
|
2568
2609
|
* @param request PiLicenseTemplateLicenseRegistryRequest
|
2569
2610
|
* @return Promise<PiLicenseTemplateLicenseRegistryResponse>
|
2570
|
-
*/)},{key:"licenseRegistry",value:(function(){var _licenseRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2611
|
+
*/)},{key:"licenseRegistry",value:(function(){var _licenseRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee153(){return _regeneratorRuntime().wrap(function _callee153$(_context153){while(1)switch(_context153.prev=_context153.next){case 0:_context153.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"LICENSE_REGISTRY"});case 2:return _context153.abrupt("return",_context153.sent);case 3:case"end":return _context153.stop();}},_callee153,this);}));function licenseRegistry(){return _licenseRegistry2.apply(this,arguments);}return licenseRegistry;}()/**
|
2571
2612
|
* method ROYALTY_MODULE for contract PILicenseTemplate
|
2572
2613
|
*
|
2573
2614
|
* @param request PiLicenseTemplateRoyaltyModuleRequest
|
2574
2615
|
* @return Promise<PiLicenseTemplateRoyaltyModuleResponse>
|
2575
|
-
*/)},{key:"royaltyModule",value:(function(){var _royaltyModule3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2616
|
+
*/)},{key:"royaltyModule",value:(function(){var _royaltyModule3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee154(){return _regeneratorRuntime().wrap(function _callee154$(_context154){while(1)switch(_context154.prev=_context154.next){case 0:_context154.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"ROYALTY_MODULE"});case 2:return _context154.abrupt("return",_context154.sent);case 3:case"end":return _context154.stop();}},_callee154,this);}));function royaltyModule(){return _royaltyModule3.apply(this,arguments);}return royaltyModule;}()/**
|
2576
2617
|
* method TERMS_RENDERER for contract PILicenseTemplate
|
2577
2618
|
*
|
2578
2619
|
* @param request PiLicenseTemplateTermsRendererRequest
|
2579
2620
|
* @return Promise<PiLicenseTemplateTermsRendererResponse>
|
2580
|
-
*/)},{key:"termsRenderer",value:(function(){var _termsRenderer=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2621
|
+
*/)},{key:"termsRenderer",value:(function(){var _termsRenderer=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee155(){return _regeneratorRuntime().wrap(function _callee155$(_context155){while(1)switch(_context155.prev=_context155.next){case 0:_context155.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"TERMS_RENDERER"});case 2:return _context155.abrupt("return",_context155.sent);case 3:case"end":return _context155.stop();}},_callee155,this);}));function termsRenderer(){return _termsRenderer.apply(this,arguments);}return termsRenderer;}()/**
|
2581
2622
|
* method UPGRADE_INTERFACE_VERSION for contract PILicenseTemplate
|
2582
2623
|
*
|
2583
2624
|
* @param request PiLicenseTemplateUpgradeInterfaceVersionRequest
|
2584
2625
|
* @return Promise<PiLicenseTemplateUpgradeInterfaceVersionResponse>
|
2585
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
2626
|
+
*/)},{key:"upgradeInterfaceVersion",value:(function(){var _upgradeInterfaceVersion5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee156(){return _regeneratorRuntime().wrap(function _callee156$(_context156){while(1)switch(_context156.prev=_context156.next){case 0:_context156.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"UPGRADE_INTERFACE_VERSION"});case 2:return _context156.abrupt("return",_context156.sent);case 3:case"end":return _context156.stop();}},_callee156,this);}));function upgradeInterfaceVersion(){return _upgradeInterfaceVersion5.apply(this,arguments);}return upgradeInterfaceVersion;}()/**
|
2586
2627
|
* method authority for contract PILicenseTemplate
|
2587
2628
|
*
|
2588
2629
|
* @param request PiLicenseTemplateAuthorityRequest
|
2589
2630
|
* @return Promise<PiLicenseTemplateAuthorityResponse>
|
2590
|
-
*/)},{key:"authority",value:(function(){var
|
2631
|
+
*/)},{key:"authority",value:(function(){var _authority5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee157(){return _regeneratorRuntime().wrap(function _callee157$(_context157){while(1)switch(_context157.prev=_context157.next){case 0:_context157.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"authority"});case 2:return _context157.abrupt("return",_context157.sent);case 3:case"end":return _context157.stop();}},_callee157,this);}));function authority(){return _authority5.apply(this,arguments);}return authority;}()/**
|
2591
2632
|
* method exists for contract PILicenseTemplate
|
2592
2633
|
*
|
2593
2634
|
* @param request PiLicenseTemplateExistsRequest
|
2594
2635
|
* @return Promise<PiLicenseTemplateExistsResponse>
|
2595
|
-
*/)},{key:"exists",value:(function(){var _exists2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2636
|
+
*/)},{key:"exists",value:(function(){var _exists2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee158(request){return _regeneratorRuntime().wrap(function _callee158$(_context158){while(1)switch(_context158.prev=_context158.next){case 0:_context158.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"exists",args:[request.licenseTermsId]});case 2:return _context158.abrupt("return",_context158.sent);case 3:case"end":return _context158.stop();}},_callee158,this);}));function exists(_x101){return _exists2.apply(this,arguments);}return exists;}()/**
|
2596
2637
|
* method getEarlierExpireTime for contract PILicenseTemplate
|
2597
2638
|
*
|
2598
2639
|
* @param request PiLicenseTemplateGetEarlierExpireTimeRequest
|
2599
2640
|
* @return Promise<PiLicenseTemplateGetEarlierExpireTimeResponse>
|
2600
|
-
*/)},{key:"getEarlierExpireTime",value:(function(){var _getEarlierExpireTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2641
|
+
*/)},{key:"getEarlierExpireTime",value:(function(){var _getEarlierExpireTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee159(request){return _regeneratorRuntime().wrap(function _callee159$(_context159){while(1)switch(_context159.prev=_context159.next){case 0:_context159.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getEarlierExpireTime",args:[request.licenseTermsIds,request.start]});case 2:return _context159.abrupt("return",_context159.sent);case 3:case"end":return _context159.stop();}},_callee159,this);}));function getEarlierExpireTime(_x102){return _getEarlierExpireTime.apply(this,arguments);}return getEarlierExpireTime;}()/**
|
2601
2642
|
* method getExpireTime for contract PILicenseTemplate
|
2602
2643
|
*
|
2603
2644
|
* @param request PiLicenseTemplateGetExpireTimeRequest
|
2604
2645
|
* @return Promise<PiLicenseTemplateGetExpireTimeResponse>
|
2605
|
-
*/)},{key:"getExpireTime",value:(function(){var _getExpireTime2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2646
|
+
*/)},{key:"getExpireTime",value:(function(){var _getExpireTime2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee160(request){return _regeneratorRuntime().wrap(function _callee160$(_context160){while(1)switch(_context160.prev=_context160.next){case 0:_context160.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getExpireTime",args:[request.licenseTermsId,request.start]});case 2:return _context160.abrupt("return",_context160.sent);case 3:case"end":return _context160.stop();}},_callee160,this);}));function getExpireTime(_x103){return _getExpireTime2.apply(this,arguments);}return getExpireTime;}()/**
|
2606
2647
|
* method getLicenseTerms for contract PILicenseTemplate
|
2607
2648
|
*
|
2608
2649
|
* @param request PiLicenseTemplateGetLicenseTermsRequest
|
2609
2650
|
* @return Promise<PiLicenseTemplateGetLicenseTermsResponse>
|
2610
|
-
*/)},{key:"getLicenseTerms",value:(function(){var _getLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2651
|
+
*/)},{key:"getLicenseTerms",value:(function(){var _getLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee161(request){var result;return _regeneratorRuntime().wrap(function _callee161$(_context161){while(1)switch(_context161.prev=_context161.next){case 0:_context161.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getLicenseTerms",args:[request.selectedLicenseTermsId]});case 2:result=_context161.sent;return _context161.abrupt("return",{terms:result});case 4:case"end":return _context161.stop();}},_callee161,this);}));function getLicenseTerms(_x104){return _getLicenseTerms.apply(this,arguments);}return getLicenseTerms;}()/**
|
2611
2652
|
* method getLicenseTermsId for contract PILicenseTemplate
|
2612
2653
|
*
|
2613
2654
|
* @param request PiLicenseTemplateGetLicenseTermsIdRequest
|
2614
2655
|
* @return Promise<PiLicenseTemplateGetLicenseTermsIdResponse>
|
2615
|
-
*/)},{key:"getLicenseTermsId",value:(function(){var _getLicenseTermsId=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2656
|
+
*/)},{key:"getLicenseTermsId",value:(function(){var _getLicenseTermsId=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee162(request){var result;return _regeneratorRuntime().wrap(function _callee162$(_context162){while(1)switch(_context162.prev=_context162.next){case 0:_context162.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getLicenseTermsId",args:[request.terms]});case 2:result=_context162.sent;return _context162.abrupt("return",{selectedLicenseTermsId:result});case 4:case"end":return _context162.stop();}},_callee162,this);}));function getLicenseTermsId(_x105){return _getLicenseTermsId.apply(this,arguments);}return getLicenseTermsId;}()/**
|
2616
2657
|
* method getLicenseTermsURI for contract PILicenseTemplate
|
2617
2658
|
*
|
2618
2659
|
* @param request PiLicenseTemplateGetLicenseTermsUriRequest
|
2619
2660
|
* @return Promise<PiLicenseTemplateGetLicenseTermsUriResponse>
|
2620
|
-
*/)},{key:"getLicenseTermsUri",value:(function(){var _getLicenseTermsUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2661
|
+
*/)},{key:"getLicenseTermsUri",value:(function(){var _getLicenseTermsUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee163(request){return _regeneratorRuntime().wrap(function _callee163$(_context163){while(1)switch(_context163.prev=_context163.next){case 0:_context163.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getLicenseTermsURI",args:[request.licenseTermsId]});case 2:return _context163.abrupt("return",_context163.sent);case 3:case"end":return _context163.stop();}},_callee163,this);}));function getLicenseTermsUri(_x106){return _getLicenseTermsUri.apply(this,arguments);}return getLicenseTermsUri;}()/**
|
2621
2662
|
* method getMetadataURI for contract PILicenseTemplate
|
2622
2663
|
*
|
2623
2664
|
* @param request PiLicenseTemplateGetMetadataUriRequest
|
2624
2665
|
* @return Promise<PiLicenseTemplateGetMetadataUriResponse>
|
2625
|
-
*/)},{key:"getMetadataUri",value:(function(){var _getMetadataUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2666
|
+
*/)},{key:"getMetadataUri",value:(function(){var _getMetadataUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee164(){return _regeneratorRuntime().wrap(function _callee164$(_context164){while(1)switch(_context164.prev=_context164.next){case 0:_context164.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getMetadataURI"});case 2:return _context164.abrupt("return",_context164.sent);case 3:case"end":return _context164.stop();}},_callee164,this);}));function getMetadataUri(){return _getMetadataUri.apply(this,arguments);}return getMetadataUri;}()/**
|
2626
2667
|
* method getRoyaltyPolicy for contract PILicenseTemplate
|
2627
2668
|
*
|
2628
2669
|
* @param request PiLicenseTemplateGetRoyaltyPolicyRequest
|
2629
2670
|
* @return Promise<PiLicenseTemplateGetRoyaltyPolicyResponse>
|
2630
|
-
*/)},{key:"getRoyaltyPolicy",value:(function(){var _getRoyaltyPolicy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2671
|
+
*/)},{key:"getRoyaltyPolicy",value:(function(){var _getRoyaltyPolicy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee165(request){var result;return _regeneratorRuntime().wrap(function _callee165$(_context165){while(1)switch(_context165.prev=_context165.next){case 0:_context165.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"getRoyaltyPolicy",args:[request.licenseTermsId]});case 2:result=_context165.sent;return _context165.abrupt("return",{royaltyPolicy:result[0],royaltyPercent:result[1],mintingFee:result[2],currency:result[3]});case 4:case"end":return _context165.stop();}},_callee165,this);}));function getRoyaltyPolicy(_x107){return _getRoyaltyPolicy.apply(this,arguments);}return getRoyaltyPolicy;}()/**
|
2631
2672
|
* method isConsumingScheduledOp for contract PILicenseTemplate
|
2632
2673
|
*
|
2633
2674
|
* @param request PiLicenseTemplateIsConsumingScheduledOpRequest
|
2634
2675
|
* @return Promise<PiLicenseTemplateIsConsumingScheduledOpResponse>
|
2635
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
2676
|
+
*/)},{key:"isConsumingScheduledOp",value:(function(){var _isConsumingScheduledOp5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee166(){return _regeneratorRuntime().wrap(function _callee166$(_context166){while(1)switch(_context166.prev=_context166.next){case 0:_context166.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"isConsumingScheduledOp"});case 2:return _context166.abrupt("return",_context166.sent);case 3:case"end":return _context166.stop();}},_callee166,this);}));function isConsumingScheduledOp(){return _isConsumingScheduledOp5.apply(this,arguments);}return isConsumingScheduledOp;}()/**
|
2636
2677
|
* method isDerivativeApproved for contract PILicenseTemplate
|
2637
2678
|
*
|
2638
2679
|
* @param request PiLicenseTemplateIsDerivativeApprovedRequest
|
2639
2680
|
* @return Promise<PiLicenseTemplateIsDerivativeApprovedResponse>
|
2640
|
-
*/)},{key:"isDerivativeApproved",value:(function(){var _isDerivativeApproved=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2681
|
+
*/)},{key:"isDerivativeApproved",value:(function(){var _isDerivativeApproved=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee167(request){return _regeneratorRuntime().wrap(function _callee167$(_context167){while(1)switch(_context167.prev=_context167.next){case 0:_context167.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"isDerivativeApproved",args:[request.parentIpId,request.licenseTermsId,request.childIpId]});case 2:return _context167.abrupt("return",_context167.sent);case 3:case"end":return _context167.stop();}},_callee167,this);}));function isDerivativeApproved(_x108){return _isDerivativeApproved.apply(this,arguments);}return isDerivativeApproved;}()/**
|
2641
2682
|
* method isLicenseTransferable for contract PILicenseTemplate
|
2642
2683
|
*
|
2643
2684
|
* @param request PiLicenseTemplateIsLicenseTransferableRequest
|
2644
2685
|
* @return Promise<PiLicenseTemplateIsLicenseTransferableResponse>
|
2645
|
-
*/)},{key:"isLicenseTransferable",value:(function(){var _isLicenseTransferable=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2686
|
+
*/)},{key:"isLicenseTransferable",value:(function(){var _isLicenseTransferable=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee168(request){return _regeneratorRuntime().wrap(function _callee168$(_context168){while(1)switch(_context168.prev=_context168.next){case 0:_context168.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"isLicenseTransferable",args:[request.licenseTermsId]});case 2:return _context168.abrupt("return",_context168.sent);case 3:case"end":return _context168.stop();}},_callee168,this);}));function isLicenseTransferable(_x109){return _isLicenseTransferable.apply(this,arguments);}return isLicenseTransferable;}()/**
|
2646
2687
|
* method name for contract PILicenseTemplate
|
2647
2688
|
*
|
2648
2689
|
* @param request PiLicenseTemplateNameRequest
|
2649
2690
|
* @return Promise<PiLicenseTemplateNameResponse>
|
2650
|
-
*/)},{key:"name",value:(function(){var _name4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2691
|
+
*/)},{key:"name",value:(function(){var _name4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee169(){return _regeneratorRuntime().wrap(function _callee169$(_context169){while(1)switch(_context169.prev=_context169.next){case 0:_context169.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"name"});case 2:return _context169.abrupt("return",_context169.sent);case 3:case"end":return _context169.stop();}},_callee169,this);}));function name(){return _name4.apply(this,arguments);}return name;}()/**
|
2651
2692
|
* method proxiableUUID for contract PILicenseTemplate
|
2652
2693
|
*
|
2653
2694
|
* @param request PiLicenseTemplateProxiableUuidRequest
|
2654
2695
|
* @return Promise<PiLicenseTemplateProxiableUuidResponse>
|
2655
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
2696
|
+
*/)},{key:"proxiableUuid",value:(function(){var _proxiableUuid5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee170(){return _regeneratorRuntime().wrap(function _callee170$(_context170){while(1)switch(_context170.prev=_context170.next){case 0:_context170.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"proxiableUUID"});case 2:return _context170.abrupt("return",_context170.sent);case 3:case"end":return _context170.stop();}},_callee170,this);}));function proxiableUuid(){return _proxiableUuid5.apply(this,arguments);}return proxiableUuid;}()/**
|
2656
2697
|
* method supportsInterface for contract PILicenseTemplate
|
2657
2698
|
*
|
2658
2699
|
* @param request PiLicenseTemplateSupportsInterfaceRequest
|
2659
2700
|
* @return Promise<PiLicenseTemplateSupportsInterfaceResponse>
|
2660
|
-
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2701
|
+
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee171(request){return _regeneratorRuntime().wrap(function _callee171$(_context171){while(1)switch(_context171.prev=_context171.next){case 0:_context171.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"supportsInterface",args:[request.interfaceId]});case 2:return _context171.abrupt("return",_context171.sent);case 3:case"end":return _context171.stop();}},_callee171,this);}));function supportsInterface(_x110){return _supportsInterface3.apply(this,arguments);}return supportsInterface;}()/**
|
2661
2702
|
* method toJson for contract PILicenseTemplate
|
2662
2703
|
*
|
2663
2704
|
* @param request PiLicenseTemplateToJsonRequest
|
2664
2705
|
* @return Promise<PiLicenseTemplateToJsonResponse>
|
2665
|
-
*/)},{key:"toJson",value:(function(){var _toJson=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2706
|
+
*/)},{key:"toJson",value:(function(){var _toJson=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee172(request){return _regeneratorRuntime().wrap(function _callee172$(_context172){while(1)switch(_context172.prev=_context172.next){case 0:_context172.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"toJson",args:[request.licenseTermsId]});case 2:return _context172.abrupt("return",_context172.sent);case 3:case"end":return _context172.stop();}},_callee172,this);}));function toJson(_x111){return _toJson.apply(this,arguments);}return toJson;}()/**
|
2666
2707
|
* method totalRegisteredLicenseTerms for contract PILicenseTemplate
|
2667
2708
|
*
|
2668
2709
|
* @param request PiLicenseTemplateTotalRegisteredLicenseTermsRequest
|
2669
2710
|
* @return Promise<PiLicenseTemplateTotalRegisteredLicenseTermsResponse>
|
2670
|
-
*/)},{key:"totalRegisteredLicenseTerms",value:(function(){var _totalRegisteredLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2711
|
+
*/)},{key:"totalRegisteredLicenseTerms",value:(function(){var _totalRegisteredLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee173(){return _regeneratorRuntime().wrap(function _callee173$(_context173){while(1)switch(_context173.prev=_context173.next){case 0:_context173.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"totalRegisteredLicenseTerms"});case 2:return _context173.abrupt("return",_context173.sent);case 3:case"end":return _context173.stop();}},_callee173,this);}));function totalRegisteredLicenseTerms(){return _totalRegisteredLicenseTerms.apply(this,arguments);}return totalRegisteredLicenseTerms;}()/**
|
2671
2712
|
* method verifyCompatibleLicenses for contract PILicenseTemplate
|
2672
2713
|
*
|
2673
2714
|
* @param request PiLicenseTemplateVerifyCompatibleLicensesRequest
|
2674
2715
|
* @return Promise<PiLicenseTemplateVerifyCompatibleLicensesResponse>
|
2675
|
-
*/)},{key:"verifyCompatibleLicenses",value:(function(){var _verifyCompatibleLicenses=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2716
|
+
*/)},{key:"verifyCompatibleLicenses",value:(function(){var _verifyCompatibleLicenses=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee174(request){return _regeneratorRuntime().wrap(function _callee174$(_context174){while(1)switch(_context174.prev=_context174.next){case 0:_context174.next=2;return this.rpcClient.readContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"verifyCompatibleLicenses",args:[request.licenseTermsIds]});case 2:return _context174.abrupt("return",_context174.sent);case 3:case"end":return _context174.stop();}},_callee174,this);}));function verifyCompatibleLicenses(_x112){return _verifyCompatibleLicenses.apply(this,arguments);}return verifyCompatibleLicenses;}())}]);}(PiLicenseTemplateEventClient);/**
|
2676
2717
|
* contract PILicenseTemplate write method
|
2677
|
-
*/var PiLicenseTemplateClient=/*#__PURE__*/function(_PiLicenseTemplateRea){function PiLicenseTemplateClient(rpcClient,wallet,address){var
|
2718
|
+
*/var PiLicenseTemplateClient=/*#__PURE__*/function(_PiLicenseTemplateRea){function PiLicenseTemplateClient(rpcClient,wallet,address){var _this12;_classCallCheck(this,PiLicenseTemplateClient);_this12=_callSuper(this,PiLicenseTemplateClient,[rpcClient,address]);_this12.wallet=wallet;return _this12;}/**
|
2678
2719
|
* method initialize for contract PILicenseTemplate
|
2679
2720
|
*
|
2680
2721
|
* @param request PiLicenseTemplateInitializeRequest
|
2681
2722
|
* @return Promise<WriteContractReturnType>
|
2682
|
-
*/_inherits(PiLicenseTemplateClient,_PiLicenseTemplateRea);return _createClass(PiLicenseTemplateClient,[{key:"initialize",value:(function(){var
|
2723
|
+
*/_inherits(PiLicenseTemplateClient,_PiLicenseTemplateRea);return _createClass(PiLicenseTemplateClient,[{key:"initialize",value:(function(){var _initialize5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee175(request){var _yield$this$rpcClient72,call;return _regeneratorRuntime().wrap(function _callee175$(_context175){while(1)switch(_context175.prev=_context175.next){case 0:_context175.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"initialize",account:this.wallet.account,args:[request.accessManager,request.name,request.metadataURI]});case 2:_yield$this$rpcClient72=_context175.sent;call=_yield$this$rpcClient72.request;_context175.next=6;return this.wallet.writeContract(call);case 6:return _context175.abrupt("return",_context175.sent);case 7:case"end":return _context175.stop();}},_callee175,this);}));function initialize(_x113){return _initialize5.apply(this,arguments);}return initialize;}()/**
|
2683
2724
|
* method initialize for contract PILicenseTemplate with only encode
|
2684
2725
|
*
|
2685
2726
|
* @param request PiLicenseTemplateInitializeRequest
|
@@ -2689,7 +2730,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2689
2730
|
*
|
2690
2731
|
* @param request PiLicenseTemplateRegisterLicenseTermsRequest
|
2691
2732
|
* @return Promise<WriteContractReturnType>
|
2692
|
-
*/},{key:"registerLicenseTerms",value:(function(){var _registerLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2733
|
+
*/},{key:"registerLicenseTerms",value:(function(){var _registerLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee176(request){var _yield$this$rpcClient73,call;return _regeneratorRuntime().wrap(function _callee176$(_context176){while(1)switch(_context176.prev=_context176.next){case 0:_context176.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"registerLicenseTerms",account:this.wallet.account,args:[request.terms]});case 2:_yield$this$rpcClient73=_context176.sent;call=_yield$this$rpcClient73.request;_context176.next=6;return this.wallet.writeContract(call);case 6:return _context176.abrupt("return",_context176.sent);case 7:case"end":return _context176.stop();}},_callee176,this);}));function registerLicenseTerms(_x114){return _registerLicenseTerms.apply(this,arguments);}return registerLicenseTerms;}()/**
|
2693
2734
|
* method registerLicenseTerms for contract PILicenseTemplate with only encode
|
2694
2735
|
*
|
2695
2736
|
* @param request PiLicenseTemplateRegisterLicenseTermsRequest
|
@@ -2699,7 +2740,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2699
2740
|
*
|
2700
2741
|
* @param request PiLicenseTemplateSetApprovalRequest
|
2701
2742
|
* @return Promise<WriteContractReturnType>
|
2702
|
-
*/},{key:"setApproval",value:(function(){var _setApproval=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2743
|
+
*/},{key:"setApproval",value:(function(){var _setApproval=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee177(request){var _yield$this$rpcClient74,call;return _regeneratorRuntime().wrap(function _callee177$(_context177){while(1)switch(_context177.prev=_context177.next){case 0:_context177.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"setApproval",account:this.wallet.account,args:[request.parentIpId,request.licenseTermsId,request.childIpId,request.approved]});case 2:_yield$this$rpcClient74=_context177.sent;call=_yield$this$rpcClient74.request;_context177.next=6;return this.wallet.writeContract(call);case 6:return _context177.abrupt("return",_context177.sent);case 7:case"end":return _context177.stop();}},_callee177,this);}));function setApproval(_x115){return _setApproval.apply(this,arguments);}return setApproval;}()/**
|
2703
2744
|
* method setApproval for contract PILicenseTemplate with only encode
|
2704
2745
|
*
|
2705
2746
|
* @param request PiLicenseTemplateSetApprovalRequest
|
@@ -2709,7 +2750,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2709
2750
|
*
|
2710
2751
|
* @param request PiLicenseTemplateSetAuthorityRequest
|
2711
2752
|
* @return Promise<WriteContractReturnType>
|
2712
|
-
*/},{key:"setAuthority",value:(function(){var
|
2753
|
+
*/},{key:"setAuthority",value:(function(){var _setAuthority5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee178(request){var _yield$this$rpcClient75,call;return _regeneratorRuntime().wrap(function _callee178$(_context178){while(1)switch(_context178.prev=_context178.next){case 0:_context178.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"setAuthority",account:this.wallet.account,args:[request.newAuthority]});case 2:_yield$this$rpcClient75=_context178.sent;call=_yield$this$rpcClient75.request;_context178.next=6;return this.wallet.writeContract(call);case 6:return _context178.abrupt("return",_context178.sent);case 7:case"end":return _context178.stop();}},_callee178,this);}));function setAuthority(_x116){return _setAuthority5.apply(this,arguments);}return setAuthority;}()/**
|
2713
2754
|
* method setAuthority for contract PILicenseTemplate with only encode
|
2714
2755
|
*
|
2715
2756
|
* @param request PiLicenseTemplateSetAuthorityRequest
|
@@ -2719,7 +2760,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2719
2760
|
*
|
2720
2761
|
* @param request PiLicenseTemplateUpgradeToAndCallRequest
|
2721
2762
|
* @return Promise<WriteContractReturnType>
|
2722
|
-
*/},{key:"upgradeToAndCall",value:(function(){var
|
2763
|
+
*/},{key:"upgradeToAndCall",value:(function(){var _upgradeToAndCall5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee179(request){var _yield$this$rpcClient76,call;return _regeneratorRuntime().wrap(function _callee179$(_context179){while(1)switch(_context179.prev=_context179.next){case 0:_context179.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"upgradeToAndCall",account:this.wallet.account,args:[request.newImplementation,request.data]});case 2:_yield$this$rpcClient76=_context179.sent;call=_yield$this$rpcClient76.request;_context179.next=6;return this.wallet.writeContract(call);case 6:return _context179.abrupt("return",_context179.sent);case 7:case"end":return _context179.stop();}},_callee179,this);}));function upgradeToAndCall(_x117){return _upgradeToAndCall5.apply(this,arguments);}return upgradeToAndCall;}()/**
|
2723
2764
|
* method upgradeToAndCall for contract PILicenseTemplate with only encode
|
2724
2765
|
*
|
2725
2766
|
* @param request PiLicenseTemplateUpgradeToAndCallRequest
|
@@ -2729,7 +2770,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2729
2770
|
*
|
2730
2771
|
* @param request PiLicenseTemplateVerifyMintLicenseTokenRequest
|
2731
2772
|
* @return Promise<WriteContractReturnType>
|
2732
|
-
*/},{key:"verifyMintLicenseToken",value:(function(){var _verifyMintLicenseToken2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2773
|
+
*/},{key:"verifyMintLicenseToken",value:(function(){var _verifyMintLicenseToken2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee180(request){var _yield$this$rpcClient77,call;return _regeneratorRuntime().wrap(function _callee180$(_context180){while(1)switch(_context180.prev=_context180.next){case 0:_context180.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"verifyMintLicenseToken",account:this.wallet.account,args:[request[0],request[1],request[2],request[3]]});case 2:_yield$this$rpcClient77=_context180.sent;call=_yield$this$rpcClient77.request;_context180.next=6;return this.wallet.writeContract(call);case 6:return _context180.abrupt("return",_context180.sent);case 7:case"end":return _context180.stop();}},_callee180,this);}));function verifyMintLicenseToken(_x118){return _verifyMintLicenseToken2.apply(this,arguments);}return verifyMintLicenseToken;}()/**
|
2733
2774
|
* method verifyMintLicenseToken for contract PILicenseTemplate with only encode
|
2734
2775
|
*
|
2735
2776
|
* @param request PiLicenseTemplateVerifyMintLicenseTokenRequest
|
@@ -2739,7 +2780,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2739
2780
|
*
|
2740
2781
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeRequest
|
2741
2782
|
* @return Promise<WriteContractReturnType>
|
2742
|
-
*/},{key:"verifyRegisterDerivative",value:(function(){var _verifyRegisterDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2783
|
+
*/},{key:"verifyRegisterDerivative",value:(function(){var _verifyRegisterDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee181(request){var _yield$this$rpcClient78,call;return _regeneratorRuntime().wrap(function _callee181$(_context181){while(1)switch(_context181.prev=_context181.next){case 0:_context181.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"verifyRegisterDerivative",account:this.wallet.account,args:[request.childIpId,request.parentIpId,request.licenseTermsId,request.licensee]});case 2:_yield$this$rpcClient78=_context181.sent;call=_yield$this$rpcClient78.request;_context181.next=6;return this.wallet.writeContract(call);case 6:return _context181.abrupt("return",_context181.sent);case 7:case"end":return _context181.stop();}},_callee181,this);}));function verifyRegisterDerivative(_x119){return _verifyRegisterDerivative.apply(this,arguments);}return verifyRegisterDerivative;}()/**
|
2743
2784
|
* method verifyRegisterDerivative for contract PILicenseTemplate with only encode
|
2744
2785
|
*
|
2745
2786
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeRequest
|
@@ -2749,7 +2790,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2749
2790
|
*
|
2750
2791
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeForAllParentsRequest
|
2751
2792
|
* @return Promise<WriteContractReturnType>
|
2752
|
-
*/},{key:"verifyRegisterDerivativeForAllParents",value:(function(){var _verifyRegisterDerivativeForAllParents=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2793
|
+
*/},{key:"verifyRegisterDerivativeForAllParents",value:(function(){var _verifyRegisterDerivativeForAllParents=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee182(request){var _yield$this$rpcClient79,call;return _regeneratorRuntime().wrap(function _callee182$(_context182){while(1)switch(_context182.prev=_context182.next){case 0:_context182.next=2;return this.rpcClient.simulateContract({abi:piLicenseTemplateAbi,address:this.address,functionName:"verifyRegisterDerivativeForAllParents",account:this.wallet.account,args:[request.childIpId,request.parentIpIds,request.licenseTermsIds,request.childIpOwner]});case 2:_yield$this$rpcClient79=_context182.sent;call=_yield$this$rpcClient79.request;_context182.next=6;return this.wallet.writeContract(call);case 6:return _context182.abrupt("return",_context182.sent);case 7:case"end":return _context182.stop();}},_callee182,this);}));function verifyRegisterDerivativeForAllParents(_x120){return _verifyRegisterDerivativeForAllParents.apply(this,arguments);}return verifyRegisterDerivativeForAllParents;}()/**
|
2753
2794
|
* method verifyRegisterDerivativeForAllParents for contract PILicenseTemplate with only encode
|
2754
2795
|
*
|
2755
2796
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeForAllParentsRequest
|
@@ -2778,18 +2819,18 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2778
2819
|
* @param sigMetadata tuple
|
2779
2820
|
*/ /**
|
2780
2821
|
* contract RegistrationWorkflows event
|
2781
|
-
*/var RegistrationWorkflowsEventClient=/*#__PURE__*/function(){function RegistrationWorkflowsEventClient(rpcClient,address){var _rpcClient$
|
2822
|
+
*/var RegistrationWorkflowsEventClient=/*#__PURE__*/function(){function RegistrationWorkflowsEventClient(rpcClient,address){var _rpcClient$chain18;_classCallCheck(this,RegistrationWorkflowsEventClient);this.address=address||getAddress(registrationWorkflowsAddress,(_rpcClient$chain18=rpcClient.chain)===null||_rpcClient$chain18===void 0?void 0:_rpcClient$chain18.id);this.rpcClient=rpcClient;}/**
|
2782
2823
|
* event CollectionCreated for contract RegistrationWorkflows
|
2783
|
-
*/return _createClass(RegistrationWorkflowsEventClient,[{key:"watchCollectionCreatedEvent",value:function watchCollectionCreatedEvent(
|
2824
|
+
*/return _createClass(RegistrationWorkflowsEventClient,[{key:"watchCollectionCreatedEvent",value:function watchCollectionCreatedEvent(_onLogs47){return this.rpcClient.watchContractEvent({abi:registrationWorkflowsAbi,address:this.address,eventName:"CollectionCreated",onLogs:function onLogs(evs){evs.forEach(function(it){return _onLogs47(it.transactionHash,it.args);});}});}/**
|
2784
2825
|
* parse tx receipt event CollectionCreated for contract RegistrationWorkflows
|
2785
|
-
*/},{key:"parseTxCollectionCreatedEvent",value:function parseTxCollectionCreatedEvent(txReceipt){var targetLogs=[];var
|
2826
|
+
*/},{key:"parseTxCollectionCreatedEvent",value:function parseTxCollectionCreatedEvent(txReceipt){var targetLogs=[];var _iterator47=_createForOfIteratorHelper(txReceipt.logs),_step47;try{for(_iterator47.s();!(_step47=_iterator47.n()).done;){var log=_step47.value;try{var event=viem.decodeEventLog({abi:registrationWorkflowsAbi,eventName:"CollectionCreated",data:log.data,topics:log.topics});if(event.eventName==="CollectionCreated"){targetLogs.push(event.args);}}catch(e){/* empty */}}}catch(err){_iterator47.e(err);}finally{_iterator47.f();}return targetLogs;}}]);}();/**
|
2786
2827
|
* contract RegistrationWorkflows write method
|
2787
|
-
*/var RegistrationWorkflowsClient=/*#__PURE__*/function(_RegistrationWorkflow){function RegistrationWorkflowsClient(rpcClient,wallet,address){var
|
2828
|
+
*/var RegistrationWorkflowsClient=/*#__PURE__*/function(_RegistrationWorkflow){function RegistrationWorkflowsClient(rpcClient,wallet,address){var _this13;_classCallCheck(this,RegistrationWorkflowsClient);_this13=_callSuper(this,RegistrationWorkflowsClient,[rpcClient,address]);_this13.wallet=wallet;return _this13;}/**
|
2788
2829
|
* method createCollection for contract RegistrationWorkflows
|
2789
2830
|
*
|
2790
2831
|
* @param request RegistrationWorkflowsCreateCollectionRequest
|
2791
2832
|
* @return Promise<WriteContractReturnType>
|
2792
|
-
*/_inherits(RegistrationWorkflowsClient,_RegistrationWorkflow);return _createClass(RegistrationWorkflowsClient,[{key:"createCollection",value:(function(){var _createCollection=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2833
|
+
*/_inherits(RegistrationWorkflowsClient,_RegistrationWorkflow);return _createClass(RegistrationWorkflowsClient,[{key:"createCollection",value:(function(){var _createCollection=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee183(request){var _yield$this$rpcClient80,call;return _regeneratorRuntime().wrap(function _callee183$(_context183){while(1)switch(_context183.prev=_context183.next){case 0:_context183.next=2;return this.rpcClient.simulateContract({abi:registrationWorkflowsAbi,address:this.address,functionName:"createCollection",account:this.wallet.account,args:[request.spgNftInitParams]});case 2:_yield$this$rpcClient80=_context183.sent;call=_yield$this$rpcClient80.request;_context183.next=6;return this.wallet.writeContract(call);case 6:return _context183.abrupt("return",_context183.sent);case 7:case"end":return _context183.stop();}},_callee183,this);}));function createCollection(_x121){return _createCollection.apply(this,arguments);}return createCollection;}()/**
|
2793
2834
|
* method createCollection for contract RegistrationWorkflows with only encode
|
2794
2835
|
*
|
2795
2836
|
* @param request RegistrationWorkflowsCreateCollectionRequest
|
@@ -2799,7 +2840,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2799
2840
|
*
|
2800
2841
|
* @param request RegistrationWorkflowsMintAndRegisterIpRequest
|
2801
2842
|
* @return Promise<WriteContractReturnType>
|
2802
|
-
*/},{key:"mintAndRegisterIp",value:(function(){var _mintAndRegisterIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2843
|
+
*/},{key:"mintAndRegisterIp",value:(function(){var _mintAndRegisterIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee184(request){var _yield$this$rpcClient81,call;return _regeneratorRuntime().wrap(function _callee184$(_context184){while(1)switch(_context184.prev=_context184.next){case 0:_context184.next=2;return this.rpcClient.simulateContract({abi:registrationWorkflowsAbi,address:this.address,functionName:"mintAndRegisterIp",account:this.wallet.account,args:[request.spgNftContract,request.recipient,request.ipMetadata]});case 2:_yield$this$rpcClient81=_context184.sent;call=_yield$this$rpcClient81.request;_context184.next=6;return this.wallet.writeContract(call);case 6:return _context184.abrupt("return",_context184.sent);case 7:case"end":return _context184.stop();}},_callee184,this);}));function mintAndRegisterIp(_x122){return _mintAndRegisterIp.apply(this,arguments);}return mintAndRegisterIp;}()/**
|
2803
2844
|
* method mintAndRegisterIp for contract RegistrationWorkflows with only encode
|
2804
2845
|
*
|
2805
2846
|
* @param request RegistrationWorkflowsMintAndRegisterIpRequest
|
@@ -2809,7 +2850,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2809
2850
|
*
|
2810
2851
|
* @param request RegistrationWorkflowsRegisterIpRequest
|
2811
2852
|
* @return Promise<WriteContractReturnType>
|
2812
|
-
*/},{key:"registerIp",value:(function(){var _registerIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2853
|
+
*/},{key:"registerIp",value:(function(){var _registerIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee185(request){var _yield$this$rpcClient82,call;return _regeneratorRuntime().wrap(function _callee185$(_context185){while(1)switch(_context185.prev=_context185.next){case 0:_context185.next=2;return this.rpcClient.simulateContract({abi:registrationWorkflowsAbi,address:this.address,functionName:"registerIp",account:this.wallet.account,args:[request.nftContract,request.tokenId,request.ipMetadata,request.sigMetadata]});case 2:_yield$this$rpcClient82=_context185.sent;call=_yield$this$rpcClient82.request;_context185.next=6;return this.wallet.writeContract(call);case 6:return _context185.abrupt("return",_context185.sent);case 7:case"end":return _context185.stop();}},_callee185,this);}));function registerIp(_x123){return _registerIp.apply(this,arguments);}return registerIp;}()/**
|
2813
2854
|
* method registerIp for contract RegistrationWorkflows with only encode
|
2814
2855
|
*
|
2815
2856
|
* @param request RegistrationWorkflowsRegisterIpRequest
|
@@ -2836,29 +2877,29 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2836
2877
|
* @param amount uint256
|
2837
2878
|
*/ /**
|
2838
2879
|
* contract RoyaltyModule readonly method
|
2839
|
-
*/var RoyaltyModuleReadOnlyClient=/*#__PURE__*/function(){function RoyaltyModuleReadOnlyClient(rpcClient,address){var _rpcClient$
|
2880
|
+
*/var RoyaltyModuleReadOnlyClient=/*#__PURE__*/function(){function RoyaltyModuleReadOnlyClient(rpcClient,address){var _rpcClient$chain19;_classCallCheck(this,RoyaltyModuleReadOnlyClient);this.address=address||getAddress(royaltyModuleAddress,(_rpcClient$chain19=rpcClient.chain)===null||_rpcClient$chain19===void 0?void 0:_rpcClient$chain19.id);this.rpcClient=rpcClient;}/**
|
2840
2881
|
* method ipRoyaltyVaults for contract RoyaltyModule
|
2841
2882
|
*
|
2842
2883
|
* @param request RoyaltyModuleIpRoyaltyVaultsRequest
|
2843
2884
|
* @return Promise<RoyaltyModuleIpRoyaltyVaultsResponse>
|
2844
|
-
*/return _createClass(RoyaltyModuleReadOnlyClient,[{key:"ipRoyaltyVaults",value:(function(){var _ipRoyaltyVaults=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2885
|
+
*/return _createClass(RoyaltyModuleReadOnlyClient,[{key:"ipRoyaltyVaults",value:(function(){var _ipRoyaltyVaults=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee186(request){return _regeneratorRuntime().wrap(function _callee186$(_context186){while(1)switch(_context186.prev=_context186.next){case 0:_context186.next=2;return this.rpcClient.readContract({abi:royaltyModuleAbi,address:this.address,functionName:"ipRoyaltyVaults",args:[request.ipId]});case 2:return _context186.abrupt("return",_context186.sent);case 3:case"end":return _context186.stop();}},_callee186,this);}));function ipRoyaltyVaults(_x124){return _ipRoyaltyVaults.apply(this,arguments);}return ipRoyaltyVaults;}()/**
|
2845
2886
|
* method isWhitelistedRoyaltyPolicy for contract RoyaltyModule
|
2846
2887
|
*
|
2847
2888
|
* @param request RoyaltyModuleIsWhitelistedRoyaltyPolicyRequest
|
2848
2889
|
* @return Promise<RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse>
|
2849
|
-
*/)},{key:"isWhitelistedRoyaltyPolicy",value:(function(){var _isWhitelistedRoyaltyPolicy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2890
|
+
*/)},{key:"isWhitelistedRoyaltyPolicy",value:(function(){var _isWhitelistedRoyaltyPolicy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee187(request){return _regeneratorRuntime().wrap(function _callee187$(_context187){while(1)switch(_context187.prev=_context187.next){case 0:_context187.next=2;return this.rpcClient.readContract({abi:royaltyModuleAbi,address:this.address,functionName:"isWhitelistedRoyaltyPolicy",args:[request.royaltyPolicy]});case 2:return _context187.abrupt("return",_context187.sent);case 3:case"end":return _context187.stop();}},_callee187,this);}));function isWhitelistedRoyaltyPolicy(_x125){return _isWhitelistedRoyaltyPolicy.apply(this,arguments);}return isWhitelistedRoyaltyPolicy;}()/**
|
2850
2891
|
* method isWhitelistedRoyaltyToken for contract RoyaltyModule
|
2851
2892
|
*
|
2852
2893
|
* @param request RoyaltyModuleIsWhitelistedRoyaltyTokenRequest
|
2853
2894
|
* @return Promise<RoyaltyModuleIsWhitelistedRoyaltyTokenResponse>
|
2854
|
-
*/)},{key:"isWhitelistedRoyaltyToken",value:(function(){var _isWhitelistedRoyaltyToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2895
|
+
*/)},{key:"isWhitelistedRoyaltyToken",value:(function(){var _isWhitelistedRoyaltyToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee188(request){return _regeneratorRuntime().wrap(function _callee188$(_context188){while(1)switch(_context188.prev=_context188.next){case 0:_context188.next=2;return this.rpcClient.readContract({abi:royaltyModuleAbi,address:this.address,functionName:"isWhitelistedRoyaltyToken",args:[request.token]});case 2:return _context188.abrupt("return",_context188.sent);case 3:case"end":return _context188.stop();}},_callee188,this);}));function isWhitelistedRoyaltyToken(_x126){return _isWhitelistedRoyaltyToken.apply(this,arguments);}return isWhitelistedRoyaltyToken;}())}]);}();/**
|
2855
2896
|
* contract RoyaltyModule write method
|
2856
|
-
*/var RoyaltyModuleClient=/*#__PURE__*/function(_RoyaltyModuleReadOnl){function RoyaltyModuleClient(rpcClient,wallet,address){var
|
2897
|
+
*/var RoyaltyModuleClient=/*#__PURE__*/function(_RoyaltyModuleReadOnl){function RoyaltyModuleClient(rpcClient,wallet,address){var _this14;_classCallCheck(this,RoyaltyModuleClient);_this14=_callSuper(this,RoyaltyModuleClient,[rpcClient,address]);_this14.wallet=wallet;return _this14;}/**
|
2857
2898
|
* method payRoyaltyOnBehalf for contract RoyaltyModule
|
2858
2899
|
*
|
2859
2900
|
* @param request RoyaltyModulePayRoyaltyOnBehalfRequest
|
2860
2901
|
* @return Promise<WriteContractReturnType>
|
2861
|
-
*/_inherits(RoyaltyModuleClient,_RoyaltyModuleReadOnl);return _createClass(RoyaltyModuleClient,[{key:"payRoyaltyOnBehalf",value:(function(){var _payRoyaltyOnBehalf=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2902
|
+
*/_inherits(RoyaltyModuleClient,_RoyaltyModuleReadOnl);return _createClass(RoyaltyModuleClient,[{key:"payRoyaltyOnBehalf",value:(function(){var _payRoyaltyOnBehalf=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee189(request){var _yield$this$rpcClient83,call;return _regeneratorRuntime().wrap(function _callee189$(_context189){while(1)switch(_context189.prev=_context189.next){case 0:_context189.next=2;return this.rpcClient.simulateContract({abi:royaltyModuleAbi,address:this.address,functionName:"payRoyaltyOnBehalf",account:this.wallet.account,args:[request.receiverIpId,request.payerIpId,request.token,request.amount]});case 2:_yield$this$rpcClient83=_context189.sent;call=_yield$this$rpcClient83.request;_context189.next=6;return this.wallet.writeContract(call);case 6:return _context189.abrupt("return",_context189.sent);case 7:case"end":return _context189.stop();}},_callee189,this);}));function payRoyaltyOnBehalf(_x127){return _payRoyaltyOnBehalf.apply(this,arguments);}return payRoyaltyOnBehalf;}()/**
|
2862
2903
|
* method payRoyaltyOnBehalf for contract RoyaltyModule with only encode
|
2863
2904
|
*
|
2864
2905
|
* @param request RoyaltyModulePayRoyaltyOnBehalfRequest
|
@@ -2892,12 +2933,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2892
2933
|
* @param royaltyClaimDetails tuple[]
|
2893
2934
|
*/ /**
|
2894
2935
|
* contract RoyaltyWorkflows write method
|
2895
|
-
*/var RoyaltyWorkflowsClient=/*#__PURE__*/function(){function RoyaltyWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
2936
|
+
*/var RoyaltyWorkflowsClient=/*#__PURE__*/function(){function RoyaltyWorkflowsClient(rpcClient,wallet,address){var _rpcClient$chain21;_classCallCheck(this,RoyaltyWorkflowsClient);this.address=address||getAddress(royaltyWorkflowsAddress,(_rpcClient$chain21=rpcClient.chain)===null||_rpcClient$chain21===void 0?void 0:_rpcClient$chain21.id);this.rpcClient=rpcClient;this.wallet=wallet;}/**
|
2896
2937
|
* method snapshotAndClaimBySnapshotBatch for contract RoyaltyWorkflows
|
2897
2938
|
*
|
2898
2939
|
* @param request RoyaltyWorkflowsSnapshotAndClaimBySnapshotBatchRequest
|
2899
2940
|
* @return Promise<WriteContractReturnType>
|
2900
|
-
*/return _createClass(RoyaltyWorkflowsClient,[{key:"snapshotAndClaimBySnapshotBatch",value:(function(){var _snapshotAndClaimBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2941
|
+
*/return _createClass(RoyaltyWorkflowsClient,[{key:"snapshotAndClaimBySnapshotBatch",value:(function(){var _snapshotAndClaimBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee211(request){var _yield$this$rpcClient94,call;return _regeneratorRuntime().wrap(function _callee211$(_context211){while(1)switch(_context211.prev=_context211.next){case 0:_context211.next=2;return this.rpcClient.simulateContract({abi:royaltyWorkflowsAbi,address:this.address,functionName:"snapshotAndClaimBySnapshotBatch",account:this.wallet.account,args:[request.ipId,request.claimer,request.unclaimedSnapshotIds,request.currencyTokens]});case 2:_yield$this$rpcClient94=_context211.sent;call=_yield$this$rpcClient94.request;_context211.next=6;return this.wallet.writeContract(call);case 6:return _context211.abrupt("return",_context211.sent);case 7:case"end":return _context211.stop();}},_callee211,this);}));function snapshotAndClaimBySnapshotBatch(_x139){return _snapshotAndClaimBySnapshotBatch.apply(this,arguments);}return snapshotAndClaimBySnapshotBatch;}()/**
|
2901
2942
|
* method snapshotAndClaimBySnapshotBatch for contract RoyaltyWorkflows with only encode
|
2902
2943
|
*
|
2903
2944
|
* @param request RoyaltyWorkflowsSnapshotAndClaimBySnapshotBatchRequest
|
@@ -2907,7 +2948,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2907
2948
|
*
|
2908
2949
|
* @param request RoyaltyWorkflowsSnapshotAndClaimByTokenBatchRequest
|
2909
2950
|
* @return Promise<WriteContractReturnType>
|
2910
|
-
*/},{key:"snapshotAndClaimByTokenBatch",value:(function(){var _snapshotAndClaimByTokenBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2951
|
+
*/},{key:"snapshotAndClaimByTokenBatch",value:(function(){var _snapshotAndClaimByTokenBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee212(request){var _yield$this$rpcClient95,call;return _regeneratorRuntime().wrap(function _callee212$(_context212){while(1)switch(_context212.prev=_context212.next){case 0:_context212.next=2;return this.rpcClient.simulateContract({abi:royaltyWorkflowsAbi,address:this.address,functionName:"snapshotAndClaimByTokenBatch",account:this.wallet.account,args:[request.ipId,request.claimer,request.currencyTokens]});case 2:_yield$this$rpcClient95=_context212.sent;call=_yield$this$rpcClient95.request;_context212.next=6;return this.wallet.writeContract(call);case 6:return _context212.abrupt("return",_context212.sent);case 7:case"end":return _context212.stop();}},_callee212,this);}));function snapshotAndClaimByTokenBatch(_x140){return _snapshotAndClaimByTokenBatch.apply(this,arguments);}return snapshotAndClaimByTokenBatch;}()/**
|
2911
2952
|
* method snapshotAndClaimByTokenBatch for contract RoyaltyWorkflows with only encode
|
2912
2953
|
*
|
2913
2954
|
* @param request RoyaltyWorkflowsSnapshotAndClaimByTokenBatchRequest
|
@@ -2917,7 +2958,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2917
2958
|
*
|
2918
2959
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest
|
2919
2960
|
* @return Promise<WriteContractReturnType>
|
2920
|
-
*/},{key:"transferToVaultAndSnapshotAndClaimBySnapshotBatch",value:(function(){var _transferToVaultAndSnapshotAndClaimBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2961
|
+
*/},{key:"transferToVaultAndSnapshotAndClaimBySnapshotBatch",value:(function(){var _transferToVaultAndSnapshotAndClaimBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee213(request){var _yield$this$rpcClient96,call;return _regeneratorRuntime().wrap(function _callee213$(_context213){while(1)switch(_context213.prev=_context213.next){case 0:_context213.next=2;return this.rpcClient.simulateContract({abi:royaltyWorkflowsAbi,address:this.address,functionName:"transferToVaultAndSnapshotAndClaimBySnapshotBatch",account:this.wallet.account,args:[request.ancestorIpId,request.claimer,request.unclaimedSnapshotIds,request.royaltyClaimDetails]});case 2:_yield$this$rpcClient96=_context213.sent;call=_yield$this$rpcClient96.request;_context213.next=6;return this.wallet.writeContract(call);case 6:return _context213.abrupt("return",_context213.sent);case 7:case"end":return _context213.stop();}},_callee213,this);}));function transferToVaultAndSnapshotAndClaimBySnapshotBatch(_x141){return _transferToVaultAndSnapshotAndClaimBySnapshotBatch.apply(this,arguments);}return transferToVaultAndSnapshotAndClaimBySnapshotBatch;}()/**
|
2921
2962
|
* method transferToVaultAndSnapshotAndClaimBySnapshotBatch for contract RoyaltyWorkflows with only encode
|
2922
2963
|
*
|
2923
2964
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest
|
@@ -2927,7 +2968,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2927
2968
|
*
|
2928
2969
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimByTokenBatchRequest
|
2929
2970
|
* @return Promise<WriteContractReturnType>
|
2930
|
-
*/},{key:"transferToVaultAndSnapshotAndClaimByTokenBatch",value:(function(){var _transferToVaultAndSnapshotAndClaimByTokenBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2971
|
+
*/},{key:"transferToVaultAndSnapshotAndClaimByTokenBatch",value:(function(){var _transferToVaultAndSnapshotAndClaimByTokenBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee214(request){var _yield$this$rpcClient97,call;return _regeneratorRuntime().wrap(function _callee214$(_context214){while(1)switch(_context214.prev=_context214.next){case 0:_context214.next=2;return this.rpcClient.simulateContract({abi:royaltyWorkflowsAbi,address:this.address,functionName:"transferToVaultAndSnapshotAndClaimByTokenBatch",account:this.wallet.account,args:[request.ancestorIpId,request.claimer,request.royaltyClaimDetails]});case 2:_yield$this$rpcClient97=_context214.sent;call=_yield$this$rpcClient97.request;_context214.next=6;return this.wallet.writeContract(call);case 6:return _context214.abrupt("return",_context214.sent);case 7:case"end":return _context214.stop();}},_callee214,this);}));function transferToVaultAndSnapshotAndClaimByTokenBatch(_x142){return _transferToVaultAndSnapshotAndClaimByTokenBatch.apply(this,arguments);}return transferToVaultAndSnapshotAndClaimByTokenBatch;}()/**
|
2931
2972
|
* method transferToVaultAndSnapshotAndClaimByTokenBatch for contract RoyaltyWorkflows with only encode
|
2932
2973
|
*
|
2933
2974
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimByTokenBatchRequest
|
@@ -2973,7 +3014,7 @@ function getLicenseTermByType(type, term) {
|
|
2973
3014
|
if (!term || term.defaultMintingFee === undefined || term.currency === undefined) {
|
2974
3015
|
throw new Error("DefaultMintingFee, currency are required for commercial use PIL.");
|
2975
3016
|
}
|
2976
|
-
licenseTerms.royaltyPolicy = getAddress$1(term.
|
3017
|
+
licenseTerms.royaltyPolicy = getAddress$1(term.royaltyPolicyAddress, "term.royaltyPolicyLAPAddress");
|
2977
3018
|
licenseTerms.defaultMintingFee = BigInt(term.defaultMintingFee);
|
2978
3019
|
licenseTerms.commercialUse = true;
|
2979
3020
|
licenseTerms.commercialAttribution = true;
|
@@ -2987,7 +3028,7 @@ function getLicenseTermByType(type, term) {
|
|
2987
3028
|
if (term.commercialRevShare < 0 || term.commercialRevShare > 100) {
|
2988
3029
|
throw new Error("CommercialRevShare should be between 0 and 100.");
|
2989
3030
|
}
|
2990
|
-
licenseTerms.royaltyPolicy = getAddress$1(term.
|
3031
|
+
licenseTerms.royaltyPolicy = getAddress$1(term.royaltyPolicyAddress, "term.royaltyPolicyLAPAddress");
|
2991
3032
|
licenseTerms.defaultMintingFee = BigInt(term.defaultMintingFee);
|
2992
3033
|
licenseTerms.commercialUse = true;
|
2993
3034
|
licenseTerms.commercialAttribution = true;
|
@@ -3453,7 +3494,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3453
3494
|
encodedTxData: this.ipAssetRegistryClient.registerEncode({
|
3454
3495
|
tokenContract: object.nftContract,
|
3455
3496
|
tokenId: object.tokenId,
|
3456
|
-
chainid: chain[this.chainId]
|
3497
|
+
chainid: BigInt(chain[this.chainId])
|
3457
3498
|
})
|
3458
3499
|
});
|
3459
3500
|
case 17:
|
@@ -3500,7 +3541,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3500
3541
|
return this.ipAssetRegistryClient.register({
|
3501
3542
|
tokenContract: object.nftContract,
|
3502
3543
|
tokenId: object.tokenId,
|
3503
|
-
chainid: chain[this.chainId]
|
3544
|
+
chainid: BigInt(chain[this.chainId])
|
3504
3545
|
});
|
3505
3546
|
case 32:
|
3506
3547
|
txHash = _context.sent;
|
@@ -3790,6 +3831,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3790
3831
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
3791
3832
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
3792
3833
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
3834
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
3793
3835
|
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
3794
3836
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
3795
3837
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
@@ -3819,7 +3861,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3819
3861
|
defaultMintingFee: request.mintingFee,
|
3820
3862
|
currency: request.currency,
|
3821
3863
|
commercialRevShare: request.commercialRevShare,
|
3822
|
-
|
3864
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]]
|
3823
3865
|
});
|
3824
3866
|
object = {
|
3825
3867
|
spgNftContract: getAddress$1(request.spgNftContract, "request.spgNftContract"),
|
@@ -3898,6 +3940,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3898
3940
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
3899
3941
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
3900
3942
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
3943
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
3901
3944
|
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
3902
3945
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
3903
3946
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
@@ -3940,7 +3983,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3940
3983
|
licenseTerm = getLicenseTermByType(request.pilType, {
|
3941
3984
|
defaultMintingFee: request.mintingFee,
|
3942
3985
|
currency: request.currency,
|
3943
|
-
|
3986
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]],
|
3944
3987
|
commercialRevShare: request.commercialRevShare
|
3945
3988
|
});
|
3946
3989
|
calculatedDeadline = getDeadline(request.deadline);
|
@@ -4277,7 +4320,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
4277
4320
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
4278
4321
|
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
4279
4322
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
4280
|
-
* @returns A Promise that resolves to
|
4323
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes child ip id and token id.
|
4281
4324
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
4282
4325
|
*/
|
4283
4326
|
)
|
@@ -4361,7 +4404,8 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
4361
4404
|
log = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(receipt)[0];
|
4362
4405
|
return _context7.abrupt("return", {
|
4363
4406
|
txHash: txHash,
|
4364
|
-
childIpId: log.ipId
|
4407
|
+
childIpId: log.ipId,
|
4408
|
+
tokenId: log.tokenId
|
4365
4409
|
});
|
4366
4410
|
case 27:
|
4367
4411
|
return _context7.abrupt("return", {
|
@@ -4865,7 +4909,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
4865
4909
|
case 0:
|
4866
4910
|
_context12.next = 2;
|
4867
4911
|
return this.ipAssetRegistryClient.ipId({
|
4868
|
-
chainId: chain[this.chainId],
|
4912
|
+
chainId: BigInt(chain[this.chainId]),
|
4869
4913
|
tokenContract: getAddress$1(nftContract, "nftContract"),
|
4870
4914
|
tokenId: BigInt(tokenId)
|
4871
4915
|
});
|
@@ -5601,6 +5645,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5601
5645
|
this.licenseTemplateClient = new PiLicenseTemplateClient(rpcClient, wallet);
|
5602
5646
|
this.licenseRegistryReadOnlyClient = new LicenseRegistryReadOnlyClient(rpcClient);
|
5603
5647
|
this.ipAssetRegistryClient = new IpAssetRegistryClient(rpcClient, wallet);
|
5648
|
+
this.moduleRegistryReadOnlyClient = new ModuleRegistryReadOnlyClient(rpcClient);
|
5604
5649
|
this.rpcClient = rpcClient;
|
5605
5650
|
this.wallet = wallet;
|
5606
5651
|
this.chainId = chainId;
|
@@ -5626,7 +5671,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5626
5671
|
* @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
5627
5672
|
* @param request.uri The URI of the license terms, which can be used to fetch the offchain license terms.
|
5628
5673
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5629
|
-
* @returns A Promise that resolves to
|
5674
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license terms Id.
|
5630
5675
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5631
5676
|
*/
|
5632
5677
|
return _createClass(LicenseClient, [{
|
@@ -5711,7 +5756,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5711
5756
|
* Convenient function to register a PIL non commercial social remix license to the registry
|
5712
5757
|
* @param request - [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
|
5713
5758
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5714
|
-
* @returns A Promise that resolves to
|
5759
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license terms Id.
|
5715
5760
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5716
5761
|
*/
|
5717
5762
|
)
|
@@ -5795,8 +5840,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5795
5840
|
* @param request - The request object that contains all data needed to register a PIL commercial use license.
|
5796
5841
|
* @param request.defaultMintingFee The fee to be paid when minting a license.
|
5797
5842
|
* @param request.currency The ERC20 token to be used to pay the minting fee and the token must be registered in story protocol.
|
5843
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
5798
5844
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5799
|
-
* @returns A Promise that resolves to
|
5845
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license terms Id.
|
5800
5846
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5801
5847
|
*/
|
5802
5848
|
)
|
@@ -5812,7 +5858,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5812
5858
|
licenseTerms = getLicenseTermByType(PIL_TYPE.COMMERCIAL_USE, {
|
5813
5859
|
defaultMintingFee: request.defaultMintingFee,
|
5814
5860
|
currency: request.currency,
|
5815
|
-
|
5861
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]]
|
5816
5862
|
});
|
5817
5863
|
_context3.next = 4;
|
5818
5864
|
return this.getLicenseTermsId(licenseTerms);
|
@@ -5885,8 +5931,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5885
5931
|
* @param request.defaultMintingFee The fee to be paid when minting a license.
|
5886
5932
|
* @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
|
5887
5933
|
* @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
5934
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
5888
5935
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5889
|
-
* @returns A Promise that resolves to
|
5936
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license terms Id.
|
5890
5937
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5891
5938
|
*/
|
5892
5939
|
)
|
@@ -5902,7 +5949,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5902
5949
|
licenseTerms = getLicenseTermByType(PIL_TYPE.COMMERCIAL_REMIX, {
|
5903
5950
|
defaultMintingFee: request.defaultMintingFee,
|
5904
5951
|
currency: request.currency,
|
5905
|
-
|
5952
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]],
|
5906
5953
|
commercialRevShare: request.commercialRevShare
|
5907
5954
|
});
|
5908
5955
|
_context4.next = 4;
|
@@ -5977,7 +6024,8 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5977
6024
|
* @param request.licenseTemplate The address of the license template.
|
5978
6025
|
* @param request.licenseTermsId The ID of the license terms.
|
5979
6026
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5980
|
-
* @returns A Promise that resolves to
|
6027
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes success.
|
6028
|
+
* If Ip have attached license terms, success will return false and txhash is empty.
|
5981
6029
|
*/
|
5982
6030
|
)
|
5983
6031
|
}, {
|
@@ -6102,7 +6150,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
6102
6150
|
* @param request.amount The amount of license tokens to mint.
|
6103
6151
|
* @param request.receiver The address of the receiver.
|
6104
6152
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6105
|
-
* @returns A Promise that resolves to
|
6153
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license token IDs.
|
6106
6154
|
* @emits LicenseTokensMinted (msg.sender, licensorIpId, licenseTemplate, licenseTermsId, amount, receiver, startLicenseTokenId);
|
6107
6155
|
*/
|
6108
6156
|
)
|
@@ -6251,29 +6299,230 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
6251
6299
|
return _getLicenseTerms.apply(this, arguments);
|
6252
6300
|
}
|
6253
6301
|
return getLicenseTerms;
|
6302
|
+
}()
|
6303
|
+
/**
|
6304
|
+
* Pre-compute the minting license fee for the given IP and license terms. The function can be used to calculate the minting license fee before minting license tokens.
|
6305
|
+
* @param request - The request object that contains all data needed to predict minting licenses fee.
|
6306
|
+
* @param request.licensorIpId The IP ID of the licensor.
|
6307
|
+
* @param request.licenseTermsId The ID of the license terms.
|
6308
|
+
* @param request.amount The amount of license tokens to mint.
|
6309
|
+
* @param request.licenseTemplate [Optional] The address of the license template,default value is Programmable IP License.
|
6310
|
+
* @param request.receiver [Optional] The address of the receiver,default value is your wallet address.
|
6311
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6312
|
+
* @returns A Promise that resolves to an object containing the currency token and token amount.
|
6313
|
+
*/
|
6314
|
+
)
|
6315
|
+
}, {
|
6316
|
+
key: "predictMintingLicenseFee",
|
6317
|
+
value: (function () {
|
6318
|
+
var _predictMintingLicenseFee = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(request) {
|
6319
|
+
var isLicenseIpIdRegistered, licenseTermsId, isExisted, object;
|
6320
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
6321
|
+
while (1) switch (_context8.prev = _context8.next) {
|
6322
|
+
case 0:
|
6323
|
+
_context8.prev = 0;
|
6324
|
+
_context8.next = 3;
|
6325
|
+
return this.ipAssetRegistryClient.isRegistered({
|
6326
|
+
id: getAddress$1(request.licensorIpId, "request.licensorIpId")
|
6327
|
+
});
|
6328
|
+
case 3:
|
6329
|
+
isLicenseIpIdRegistered = _context8.sent;
|
6330
|
+
if (isLicenseIpIdRegistered) {
|
6331
|
+
_context8.next = 6;
|
6332
|
+
break;
|
6333
|
+
}
|
6334
|
+
throw new Error("The licensor IP with id ".concat(request.licensorIpId, " is not registered."));
|
6335
|
+
case 6:
|
6336
|
+
licenseTermsId = BigInt(request.licenseTermsId);
|
6337
|
+
_context8.next = 9;
|
6338
|
+
return this.piLicenseTemplateReadOnlyClient.exists({
|
6339
|
+
licenseTermsId: licenseTermsId
|
6340
|
+
});
|
6341
|
+
case 9:
|
6342
|
+
isExisted = _context8.sent;
|
6343
|
+
if (isExisted) {
|
6344
|
+
_context8.next = 12;
|
6345
|
+
break;
|
6346
|
+
}
|
6347
|
+
throw new Error("License terms id ".concat(request.licenseTermsId, " do not exist."));
|
6348
|
+
case 12:
|
6349
|
+
object = _objectSpread2(_objectSpread2({}, request), {}, {
|
6350
|
+
receiver: request.receiver && getAddress$1(request.receiver, "request.receiver") || this.wallet.account.address,
|
6351
|
+
amount: BigInt(request.amount),
|
6352
|
+
royaltyContext: viem.zeroAddress,
|
6353
|
+
licenseTemplate: request.licenseTemplate && getAddress$1(request.licenseTemplate, "request.licenseTemplate") || this.licenseTemplateClient.address,
|
6354
|
+
licenseTermsId: licenseTermsId
|
6355
|
+
});
|
6356
|
+
_context8.next = 15;
|
6357
|
+
return this.licensingModuleClient.predictMintingLicenseFee(object);
|
6358
|
+
case 15:
|
6359
|
+
return _context8.abrupt("return", _context8.sent);
|
6360
|
+
case 18:
|
6361
|
+
_context8.prev = 18;
|
6362
|
+
_context8.t0 = _context8["catch"](0);
|
6363
|
+
handleError(_context8.t0, "Failed to predict minting license fee");
|
6364
|
+
case 21:
|
6365
|
+
case "end":
|
6366
|
+
return _context8.stop();
|
6367
|
+
}
|
6368
|
+
}, _callee8, this, [[0, 18]]);
|
6369
|
+
}));
|
6370
|
+
function predictMintingLicenseFee(_x8) {
|
6371
|
+
return _predictMintingLicenseFee.apply(this, arguments);
|
6372
|
+
}
|
6373
|
+
return predictMintingLicenseFee;
|
6374
|
+
}()
|
6375
|
+
/**
|
6376
|
+
* Sets the licensing configuration for a specific license terms of an IP. If both licenseTemplate and licenseTermsId are not specified then the licensing config apply to all licenses of given IP.
|
6377
|
+
* @param request - The request object that contains all data needed to set licensing config.
|
6378
|
+
* @param request.ipId The address of the IP for which the configuration is being set.
|
6379
|
+
* @param request.licenseTermsId The ID of the license terms within the license template.
|
6380
|
+
* @param request.licenseTemplate The address of the license template used, If not specified, the configuration applies to all licenses.
|
6381
|
+
* @param request.licensingConfig The licensing configuration for the license.
|
6382
|
+
* @param request.licensingConfig.isSet Whether the configuration is set or not.
|
6383
|
+
* @param request.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
|
6384
|
+
* @param request.licensingConfig.hookData The data to be used by the licensing hook.
|
6385
|
+
* @param request.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none.
|
6386
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6387
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes success.
|
6388
|
+
*/
|
6389
|
+
)
|
6390
|
+
}, {
|
6391
|
+
key: "setLicensingConfig",
|
6392
|
+
value: (function () {
|
6393
|
+
var _setLicensingConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(request) {
|
6394
|
+
var _request$txOptions13, isLicenseIpIdRegistered, licenseTermsId, isExisted, isRegistered, object, _request$txOptions14, txHash;
|
6395
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
6396
|
+
while (1) switch (_context9.prev = _context9.next) {
|
6397
|
+
case 0:
|
6398
|
+
_context9.prev = 0;
|
6399
|
+
_context9.next = 3;
|
6400
|
+
return this.ipAssetRegistryClient.isRegistered({
|
6401
|
+
id: getAddress$1(request.ipId, "request.ipId")
|
6402
|
+
});
|
6403
|
+
case 3:
|
6404
|
+
isLicenseIpIdRegistered = _context9.sent;
|
6405
|
+
if (isLicenseIpIdRegistered) {
|
6406
|
+
_context9.next = 6;
|
6407
|
+
break;
|
6408
|
+
}
|
6409
|
+
throw new Error("The licensor IP with id ".concat(request.ipId, " is not registered."));
|
6410
|
+
case 6:
|
6411
|
+
licenseTermsId = BigInt(request.licenseTermsId);
|
6412
|
+
_context9.next = 9;
|
6413
|
+
return this.piLicenseTemplateReadOnlyClient.exists({
|
6414
|
+
licenseTermsId: licenseTermsId
|
6415
|
+
});
|
6416
|
+
case 9:
|
6417
|
+
isExisted = _context9.sent;
|
6418
|
+
if (isExisted) {
|
6419
|
+
_context9.next = 12;
|
6420
|
+
break;
|
6421
|
+
}
|
6422
|
+
throw new Error("License terms id ".concat(request.licenseTermsId, " do not exist."));
|
6423
|
+
case 12:
|
6424
|
+
if (!(request.licensingConfig.licensingHook !== viem.zeroAddress)) {
|
6425
|
+
_context9.next = 18;
|
6426
|
+
break;
|
6427
|
+
}
|
6428
|
+
_context9.next = 15;
|
6429
|
+
return this.moduleRegistryReadOnlyClient.isRegistered({
|
6430
|
+
moduleAddress: request.licensingConfig.licensingHook
|
6431
|
+
});
|
6432
|
+
case 15:
|
6433
|
+
isRegistered = _context9.sent;
|
6434
|
+
if (isRegistered) {
|
6435
|
+
_context9.next = 18;
|
6436
|
+
break;
|
6437
|
+
}
|
6438
|
+
throw new Error("The licensing hook is not registered.");
|
6439
|
+
case 18:
|
6440
|
+
if (!(request.licenseTemplate === viem.zeroAddress && request.licenseTermsId !== 0n)) {
|
6441
|
+
_context9.next = 20;
|
6442
|
+
break;
|
6443
|
+
}
|
6444
|
+
throw new Error("licenseTemplate is zero address but licenseTermsId is zero.");
|
6445
|
+
case 20:
|
6446
|
+
object = {
|
6447
|
+
ipId: request.ipId,
|
6448
|
+
licenseTemplate: getAddress$1(request.licenseTemplate, "request.licenseTemplate"),
|
6449
|
+
licenseTermsId: licenseTermsId,
|
6450
|
+
licensingConfig: {
|
6451
|
+
isSet: request.licensingConfig.isSet,
|
6452
|
+
mintingFee: BigInt(request.licensingConfig.mintingFee),
|
6453
|
+
hookData: request.licensingConfig.hookData,
|
6454
|
+
licensingHook: request.licensingConfig.licensingHook
|
6455
|
+
}
|
6456
|
+
};
|
6457
|
+
if (!((_request$txOptions13 = request.txOptions) !== null && _request$txOptions13 !== void 0 && _request$txOptions13.encodedTxDataOnly)) {
|
6458
|
+
_context9.next = 25;
|
6459
|
+
break;
|
6460
|
+
}
|
6461
|
+
return _context9.abrupt("return", {
|
6462
|
+
encodedTxData: this.licensingModuleClient.setLicensingConfigEncode(object)
|
6463
|
+
});
|
6464
|
+
case 25:
|
6465
|
+
_context9.next = 27;
|
6466
|
+
return this.licensingModuleClient.setLicensingConfig(object);
|
6467
|
+
case 27:
|
6468
|
+
txHash = _context9.sent;
|
6469
|
+
if (!((_request$txOptions14 = request.txOptions) !== null && _request$txOptions14 !== void 0 && _request$txOptions14.waitForTransaction)) {
|
6470
|
+
_context9.next = 32;
|
6471
|
+
break;
|
6472
|
+
}
|
6473
|
+
_context9.next = 31;
|
6474
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
6475
|
+
hash: txHash
|
6476
|
+
}));
|
6477
|
+
case 31:
|
6478
|
+
return _context9.abrupt("return", {
|
6479
|
+
txHash: txHash,
|
6480
|
+
success: true
|
6481
|
+
});
|
6482
|
+
case 32:
|
6483
|
+
return _context9.abrupt("return", {
|
6484
|
+
txHash: txHash
|
6485
|
+
});
|
6486
|
+
case 33:
|
6487
|
+
_context9.next = 38;
|
6488
|
+
break;
|
6489
|
+
case 35:
|
6490
|
+
_context9.prev = 35;
|
6491
|
+
_context9.t0 = _context9["catch"](0);
|
6492
|
+
handleError(_context9.t0, "Failed to set licensing config");
|
6493
|
+
case 38:
|
6494
|
+
case "end":
|
6495
|
+
return _context9.stop();
|
6496
|
+
}
|
6497
|
+
}, _callee9, this, [[0, 35]]);
|
6498
|
+
}));
|
6499
|
+
function setLicensingConfig(_x9) {
|
6500
|
+
return _setLicensingConfig.apply(this, arguments);
|
6501
|
+
}
|
6502
|
+
return setLicensingConfig;
|
6254
6503
|
}())
|
6255
6504
|
}, {
|
6256
6505
|
key: "getLicenseTermsId",
|
6257
6506
|
value: function () {
|
6258
|
-
var _getLicenseTermsId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
6507
|
+
var _getLicenseTermsId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(request) {
|
6259
6508
|
var licenseRes;
|
6260
|
-
return _regeneratorRuntime().wrap(function
|
6261
|
-
while (1) switch (
|
6509
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
6510
|
+
while (1) switch (_context10.prev = _context10.next) {
|
6262
6511
|
case 0:
|
6263
|
-
|
6512
|
+
_context10.next = 2;
|
6264
6513
|
return this.licenseTemplateClient.getLicenseTermsId({
|
6265
6514
|
terms: request
|
6266
6515
|
});
|
6267
6516
|
case 2:
|
6268
|
-
licenseRes =
|
6269
|
-
return
|
6517
|
+
licenseRes = _context10.sent;
|
6518
|
+
return _context10.abrupt("return", licenseRes.selectedLicenseTermsId);
|
6270
6519
|
case 4:
|
6271
6520
|
case "end":
|
6272
|
-
return
|
6521
|
+
return _context10.stop();
|
6273
6522
|
}
|
6274
|
-
},
|
6523
|
+
}, _callee10, this);
|
6275
6524
|
}));
|
6276
|
-
function getLicenseTermsId(
|
6525
|
+
function getLicenseTermsId(_x10) {
|
6277
6526
|
return _getLicenseTermsId.apply(this, arguments);
|
6278
6527
|
}
|
6279
6528
|
return getLicenseTermsId;
|
@@ -6281,6 +6530,31 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
6281
6530
|
}]);
|
6282
6531
|
}();
|
6283
6532
|
|
6533
|
+
var v0Prefix = "1220";
|
6534
|
+
var convertCIDtoHashIPFS = function convertCIDtoHashIPFS(cid$1) {
|
6535
|
+
var isV0 = cid$1.startsWith("Qm");
|
6536
|
+
var parsedCID = cid.CID.parse(cid$1);
|
6537
|
+
var base58CID = isV0 ? parsedCID.toString() : parsedCID.toV0().toString();
|
6538
|
+
var bytes = bs58__default["default"].decode(base58CID);
|
6539
|
+
var base16CID = Array.from(bytes).map(function (_byte) {
|
6540
|
+
return _byte.toString(16).padStart(2, "0");
|
6541
|
+
}).join("");
|
6542
|
+
return "0x" + base16CID.slice(v0Prefix.length);
|
6543
|
+
};
|
6544
|
+
var convertHashIPFStoCID = function convertHashIPFStoCID(hash) {
|
6545
|
+
var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "v0";
|
6546
|
+
var base16CID = v0Prefix + hash.slice(2);
|
6547
|
+
var bytes = new Uint8Array(base16CID.match(/.{1,2}/g).map(function (_byte2) {
|
6548
|
+
return parseInt(_byte2, 16);
|
6549
|
+
}));
|
6550
|
+
var base58CID = bs58__default["default"].encode(Buffer.from(bytes));
|
6551
|
+
if (version === "v0") {
|
6552
|
+
return base58CID;
|
6553
|
+
} else {
|
6554
|
+
return cid.CID.parse(base58CID, base58.base58btc).toV1().toString();
|
6555
|
+
}
|
6556
|
+
};
|
6557
|
+
|
6284
6558
|
var DisputeClient = /*#__PURE__*/function () {
|
6285
6559
|
function DisputeClient(rpcClient, wallet) {
|
6286
6560
|
_classCallCheck(this, DisputeClient);
|
@@ -6293,7 +6567,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
6293
6567
|
* @param request - The request object containing necessary data to raise a dispute.
|
6294
6568
|
* @param request.targetIpId The IP ID that is the target of the dispute.
|
6295
6569
|
* @param request.targetTag The target tag of the dispute.
|
6296
|
-
* @param request.
|
6570
|
+
* @param request.cid CID (Content Identifier) is a unique identifier in IPFS, including CID v0 (base58) and CID v1 (base32).
|
6297
6571
|
* @param request.data The data to initialize the policy
|
6298
6572
|
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6299
6573
|
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
@@ -6317,8 +6591,8 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
6317
6591
|
targetTag: viem.stringToHex(request.targetTag, {
|
6318
6592
|
size: 32
|
6319
6593
|
}),
|
6320
|
-
data: request.data || "
|
6321
|
-
disputeEvidenceHash: request.
|
6594
|
+
data: request.data || "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000091f6f05b08c16769d3c85867548615d270c42fc700000000000000000000000000000000000000000000000000000000000000004153534552545f54525554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7465737420636c61696d00000000000000000000000000000000000000000000",
|
6595
|
+
disputeEvidenceHash: convertCIDtoHashIPFS(request.cid)
|
6322
6596
|
};
|
6323
6597
|
if (!((_request$txOptions = request.txOptions) !== null && _request$txOptions !== void 0 && _request$txOptions.encodedTxDataOnly)) {
|
6324
6598
|
_context.next = 6;
|
@@ -7933,7 +8207,7 @@ var GroupClient = /*#__PURE__*/function () {
|
|
7933
8207
|
_context3.prev = 0;
|
7934
8208
|
_context3.next = 3;
|
7935
8209
|
return this.ipAssetRegistryClient.ipId({
|
7936
|
-
chainId: chain[this.chainId],
|
8210
|
+
chainId: BigInt(chain[this.chainId]),
|
7937
8211
|
tokenContract: getAddress$1(request.nftContract, "nftContract"),
|
7938
8212
|
tokenId: BigInt(request.tokenId)
|
7939
8213
|
});
|
@@ -8296,7 +8570,7 @@ var StoryClient = /*#__PURE__*/function () {
|
|
8296
8570
|
_defineProperty(this, "_nftClient", null);
|
8297
8571
|
_defineProperty(this, "_group", null);
|
8298
8572
|
this.config = _objectSpread2(_objectSpread2({}, config), {}, {
|
8299
|
-
chainId: config.chainId || "
|
8573
|
+
chainId: chain[config.chainId || "odyssey"]
|
8300
8574
|
});
|
8301
8575
|
if (!this.config.transport) {
|
8302
8576
|
throw new Error("transport is null, please pass in a valid RPC Provider URL as the transport.");
|
@@ -8494,5 +8768,7 @@ exports.PIL_TYPE = PIL_TYPE;
|
|
8494
8768
|
exports.PermissionClient = PermissionClient;
|
8495
8769
|
exports.RoyaltyClient = RoyaltyClient;
|
8496
8770
|
exports.StoryClient = StoryClient;
|
8771
|
+
exports.convertCIDtoHashIPFS = convertCIDtoHashIPFS;
|
8772
|
+
exports.convertHashIPFStoCID = convertHashIPFStoCID;
|
8497
8773
|
exports.getPermissionSignature = getPermissionSignature;
|
8498
|
-
exports.
|
8774
|
+
exports.odyssey = odyssey;
|