@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
@@ -1,6 +1,9 @@
|
|
1
1
|
import { isAddress, checksumAddress, encodeFunctionData, decodeEventLog, zeroAddress, toFunctionSelector, keccak256, encodeAbiParameters, toHex, zeroHash, stringToHex, maxUint32, createPublicClient, createWalletClient } from 'viem';
|
2
2
|
import * as dotenv from 'dotenv';
|
3
3
|
import { defineChain } from 'viem/utils';
|
4
|
+
import { CID } from 'multiformats/cid';
|
5
|
+
import bs58 from 'bs58';
|
6
|
+
import { base58btc } from 'multiformats/bases/base58';
|
4
7
|
|
5
8
|
function toPrimitive(t, r) {
|
6
9
|
if ("object" != typeof t || !t) return t;
|
@@ -508,9 +511,9 @@ function _objectWithoutProperties(source, excluded) {
|
|
508
511
|
return target;
|
509
512
|
}
|
510
513
|
|
511
|
-
var
|
512
|
-
id:
|
513
|
-
name: "
|
514
|
+
var odyssey = defineChain({
|
515
|
+
id: 1516,
|
516
|
+
name: "odyssey",
|
514
517
|
nativeCurrency: {
|
515
518
|
name: "IP",
|
516
519
|
symbol: "IP",
|
@@ -518,17 +521,17 @@ var iliad = defineChain({
|
|
518
521
|
},
|
519
522
|
rpcUrls: {
|
520
523
|
"default": {
|
521
|
-
http: ["https://
|
522
|
-
webSocket: ["wss://story-network.rpc.caldera.xyz/ws"]
|
524
|
+
http: ["https://odyssey.storyrpc.io/"]
|
523
525
|
}
|
524
526
|
},
|
525
527
|
blockExplorers: {
|
526
528
|
"default": {
|
527
529
|
name: "Explorer",
|
528
|
-
url: "https://testnet.storyscan.xyz"
|
530
|
+
url: "https://odyssey-testnet-explorer.storyscan.xyz/"
|
529
531
|
}
|
530
532
|
},
|
531
533
|
contracts: {
|
534
|
+
//TODO: need to confirm the addresses
|
532
535
|
multicall3: {
|
533
536
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
534
537
|
blockCreated: 5882
|
@@ -538,17 +541,17 @@ var iliad = defineChain({
|
|
538
541
|
});
|
539
542
|
|
540
543
|
function chainStringToViemChain(chainId) {
|
541
|
-
switch (chainId) {
|
542
|
-
case "
|
543
|
-
case "
|
544
|
-
return
|
544
|
+
switch (chainId.toString()) {
|
545
|
+
case "1516":
|
546
|
+
case "odyssey":
|
547
|
+
return odyssey;
|
545
548
|
default:
|
546
549
|
throw new Error("chainId ".concat(chainId, " not supported"));
|
547
550
|
}
|
548
551
|
}
|
549
552
|
var chain = {
|
550
|
-
|
551
|
-
|
553
|
+
odyssey: "1516",
|
554
|
+
1516: "1516"
|
552
555
|
};
|
553
556
|
var getAddress$1 = function getAddress(address, name, chainId) {
|
554
557
|
if (!isAddress(address, {
|
@@ -633,105 +636,111 @@ function _inherits(subClass, superClass) {
|
|
633
636
|
*
|
634
637
|
*/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"}];/**
|
635
638
|
*
|
636
|
-
*/var accessControllerAddress={
|
639
|
+
*/var accessControllerAddress={1516:"0xf709c8001E94e2ca6F98b7fFBCd5BD3943E46D81"};// CoreMetadataModule
|
637
640
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
638
641
|
/**
|
639
642
|
*
|
640
643
|
*/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"}];/**
|
641
644
|
*
|
642
|
-
*/var coreMetadataModuleAddress={
|
645
|
+
*/var coreMetadataModuleAddress={1516:"0x89630Ccf23277417FBdfd3076C702F5248267e78"};// DerivativeWorkflows
|
643
646
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
644
647
|
/**
|
645
648
|
*
|
646
649
|
*/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"}];/**
|
647
650
|
*
|
648
|
-
*/var derivativeWorkflowsAddress={
|
651
|
+
*/var derivativeWorkflowsAddress={1516:"0xa8815CEB96857FFb8f5F8ce920b1Ae6D70254C7B"};// DisputeModule
|
649
652
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
650
653
|
/**
|
651
654
|
*
|
652
655
|
*/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"}];/**
|
653
656
|
*
|
654
|
-
*/var disputeModuleAddress={
|
657
|
+
*/var disputeModuleAddress={1516:"0x692B47fa72eE7Ac0Ec617ea384a0cAD41098F712"};// GroupingModule
|
655
658
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
656
659
|
/**
|
657
660
|
*
|
658
661
|
*/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"}];/**
|
659
662
|
*
|
660
|
-
*/var groupingModuleAddress={
|
663
|
+
*/var groupingModuleAddress={1516:"0xa731948cfE05135ad77d48C71f75066333Da78Bf"};// GroupingWorkflows
|
661
664
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
662
665
|
/**
|
663
666
|
*
|
664
|
-
*/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:"
|
667
|
+
*/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"}];/**
|
665
668
|
*
|
666
|
-
*/var groupingWorkflowsAddress={
|
669
|
+
*/var groupingWorkflowsAddress={1516:"0xcd754994eBE5Ce16D432C1f936f98ac0d4aABA0e"};// IPAccountImpl
|
667
670
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
668
671
|
/**
|
669
672
|
*
|
670
673
|
*/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"}];/**
|
671
674
|
*
|
672
|
-
*/var ipAccountImplAddress={
|
675
|
+
*/var ipAccountImplAddress={1516:"0x24F08796561d6E1AC08e82b68BF4d9500B374Af6"};// IPAssetRegistry
|
673
676
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
674
677
|
/**
|
675
678
|
*
|
676
|
-
*/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"}];/**
|
679
|
+
*/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"}];/**
|
677
680
|
*
|
678
|
-
*/var ipAssetRegistryAddress={
|
681
|
+
*/var ipAssetRegistryAddress={1516:"0x28E59E91C0467e89fd0f0438D47Ca839cDfEc095"};// IpRoyaltyVaultImpl
|
679
682
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
680
683
|
/**
|
681
684
|
*
|
682
685
|
*/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"}];/**
|
683
686
|
*
|
684
|
-
*/var ipRoyaltyVaultImplAddress={
|
687
|
+
*/var ipRoyaltyVaultImplAddress={1516:"0x1081250219B16cc3903Aa2d2d1403A75c6A2F9f5"};// LicenseAttachmentWorkflows
|
685
688
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
686
689
|
/**
|
687
690
|
*
|
688
691
|
*/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"}];/**
|
689
692
|
*
|
690
|
-
*/var licenseAttachmentWorkflowsAddress={
|
693
|
+
*/var licenseAttachmentWorkflowsAddress={1516:"0x44Bad1E4035a44eAC1606B222873E4a85E8b7D9c"};// LicenseRegistry
|
691
694
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
692
695
|
/**
|
693
696
|
*
|
694
|
-
*/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"}];/**
|
697
|
+
*/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"}];/**
|
695
698
|
*
|
696
|
-
*/var licenseRegistryAddress={
|
699
|
+
*/var licenseRegistryAddress={1516:"0xBda3992c49E98392e75E78d82B934F3598bA495f"};// LicenseToken
|
697
700
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
698
701
|
/**
|
699
702
|
*
|
700
703
|
*/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"}];/**
|
701
704
|
*
|
702
|
-
*/var licenseTokenAddress={
|
705
|
+
*/var licenseTokenAddress={1516:"0xB138aEd64814F2845554f9DBB116491a077eEB2D"};// LicensingModule
|
703
706
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
704
707
|
/**
|
705
708
|
*
|
706
709
|
*/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"}];/**
|
707
710
|
*
|
708
|
-
*/var licensingModuleAddress={
|
711
|
+
*/var licensingModuleAddress={1516:"0x5a7D9Fa17DE09350F481A53B470D798c1c1aabae"};// ModuleRegistry
|
712
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
713
|
+
/**
|
714
|
+
*
|
715
|
+
*/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"}];/**
|
716
|
+
*
|
717
|
+
*/var moduleRegistryAddress={1516:"0x9F18c5723BC4Ee447CF9B01a8543D3b08b7F09C7"};// PILicenseTemplate
|
709
718
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
710
719
|
/**
|
711
720
|
*
|
712
721
|
*/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"}];/**
|
713
722
|
*
|
714
|
-
*/var piLicenseTemplateAddress={
|
723
|
+
*/var piLicenseTemplateAddress={1516:"0x58E2c909D557Cd23EF90D14f8fd21667A5Ae7a93"};// RegistrationWorkflows
|
715
724
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
716
725
|
/**
|
717
726
|
*
|
718
727
|
*/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"}];/**
|
719
728
|
*
|
720
|
-
*/var registrationWorkflowsAddress={
|
729
|
+
*/var registrationWorkflowsAddress={1516:"0xde13Be395E1cd753471447Cf6A656979ef87881c"};// RoyaltyModule
|
721
730
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
722
731
|
/**
|
723
732
|
*
|
724
|
-
*/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"}];/**
|
733
|
+
*/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"}];/**
|
725
734
|
*
|
726
|
-
*/var royaltyModuleAddress={
|
735
|
+
*/var royaltyModuleAddress={1516:"0xEa6eD700b11DfF703665CCAF55887ca56134Ae3B"};/**
|
727
736
|
*
|
728
|
-
*/var royaltyPolicyLapAddress={
|
737
|
+
*/var royaltyPolicyLapAddress={1516:"0x28b4F70ffE5ba7A26aEF979226f77Eb57fb9Fdb6"};// RoyaltyWorkflows
|
729
738
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
730
739
|
/**
|
731
740
|
*
|
732
741
|
*/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"}];/**
|
733
742
|
*
|
734
|
-
*/var royaltyWorkflowsAddress={
|
743
|
+
*/var royaltyWorkflowsAddress={1516:"0xAf922379B8e1abc6B0D78547128579221C7F7A22"};// SDK
|
735
744
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
736
745
|
// COMMON =============================================================
|
737
746
|
function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contract AccessController =============================================================
|
@@ -800,7 +809,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
800
809
|
*
|
801
810
|
* @param request AccessControllerSetPermissionRequest
|
802
811
|
* @return EncodedTxData
|
803
|
-
*/)},{key:"setPermissionEncode",value:function setPermissionEncode(request){return {to:this.address,data:encodeFunctionData({abi:accessControllerAbi,functionName:"setPermission",args:[request.ipAccount,request.signer,request.to,request.func,request.permission]})};}}]);}(AccessControllerEventClient);// Contract
|
812
|
+
*/)},{key:"setPermissionEncode",value:function setPermissionEncode(request){return {to:this.address,data:encodeFunctionData({abi:accessControllerAbi,functionName:"setPermission",args:[request.ipAccount,request.signer,request.to,request.func,request.permission]})};}}]);}(AccessControllerEventClient);// Contract CoreMetadataModule =============================================================
|
804
813
|
/**
|
805
814
|
* CoreMetadataModuleAuthorityUpdatedEvent
|
806
815
|
*
|
@@ -874,85 +883,85 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
874
883
|
* @param data bytes
|
875
884
|
*/ /**
|
876
885
|
* contract CoreMetadataModule event
|
877
|
-
*/var CoreMetadataModuleEventClient=/*#__PURE__*/function(){function CoreMetadataModuleEventClient(rpcClient,address){var _rpcClient$
|
886
|
+
*/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;}/**
|
878
887
|
* event AuthorityUpdated for contract CoreMetadataModule
|
879
|
-
*/return _createClass(CoreMetadataModuleEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
888
|
+
*/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);});}});}/**
|
880
889
|
* parse tx receipt event AuthorityUpdated for contract CoreMetadataModule
|
881
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
890
|
+
*/},{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=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;}/**
|
882
891
|
* event Initialized for contract CoreMetadataModule
|
883
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
892
|
+
*/},{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);});}});}/**
|
884
893
|
* parse tx receipt event Initialized for contract CoreMetadataModule
|
885
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
894
|
+
*/},{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=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;}/**
|
886
895
|
* event MetadataFrozen for contract CoreMetadataModule
|
887
|
-
*/},{key:"watchMetadataFrozenEvent",value:function watchMetadataFrozenEvent(
|
896
|
+
*/},{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);});}});}/**
|
888
897
|
* parse tx receipt event MetadataFrozen for contract CoreMetadataModule
|
889
|
-
*/},{key:"parseTxMetadataFrozenEvent",value:function parseTxMetadataFrozenEvent(txReceipt){var targetLogs=[];var
|
898
|
+
*/},{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=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;}/**
|
890
899
|
* event MetadataURISet for contract CoreMetadataModule
|
891
|
-
*/},{key:"watchMetadataUriSetEvent",value:function watchMetadataUriSetEvent(
|
900
|
+
*/},{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);});}});}/**
|
892
901
|
* parse tx receipt event MetadataURISet for contract CoreMetadataModule
|
893
|
-
*/},{key:"parseTxMetadataUriSetEvent",value:function parseTxMetadataUriSetEvent(txReceipt){var targetLogs=[];var
|
902
|
+
*/},{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=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;}/**
|
894
903
|
* event NFTTokenURISet for contract CoreMetadataModule
|
895
|
-
*/},{key:"watchNftTokenUriSetEvent",value:function watchNftTokenUriSetEvent(
|
904
|
+
*/},{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);});}});}/**
|
896
905
|
* parse tx receipt event NFTTokenURISet for contract CoreMetadataModule
|
897
|
-
*/},{key:"parseTxNftTokenUriSetEvent",value:function parseTxNftTokenUriSetEvent(txReceipt){var targetLogs=[];var
|
906
|
+
*/},{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=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;}/**
|
898
907
|
* event Upgraded for contract CoreMetadataModule
|
899
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
908
|
+
*/},{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);});}});}/**
|
900
909
|
* parse tx receipt event Upgraded for contract CoreMetadataModule
|
901
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
910
|
+
*/},{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=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;}}]);}();/**
|
902
911
|
* contract CoreMetadataModule readonly method
|
903
912
|
*/var CoreMetadataModuleReadOnlyClient=/*#__PURE__*/function(_CoreMetadataModuleEv){function CoreMetadataModuleReadOnlyClient(rpcClient,address){_classCallCheck(this,CoreMetadataModuleReadOnlyClient);return _callSuper(this,CoreMetadataModuleReadOnlyClient,[rpcClient,address]);}/**
|
904
913
|
* method ACCESS_CONTROLLER for contract CoreMetadataModule
|
905
914
|
*
|
906
915
|
* @param request CoreMetadataModuleAccessControllerRequest
|
907
916
|
* @return Promise<CoreMetadataModuleAccessControllerResponse>
|
908
|
-
*/_inherits(CoreMetadataModuleReadOnlyClient,_CoreMetadataModuleEv);return _createClass(CoreMetadataModuleReadOnlyClient,[{key:"accessController",value:(function(){var _accessController=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
917
|
+
*/_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;}()/**
|
909
918
|
* method IP_ACCOUNT_REGISTRY for contract CoreMetadataModule
|
910
919
|
*
|
911
920
|
* @param request CoreMetadataModuleIpAccountRegistryRequest
|
912
921
|
* @return Promise<CoreMetadataModuleIpAccountRegistryResponse>
|
913
|
-
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
922
|
+
*/)},{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;}()/**
|
914
923
|
* method UPGRADE_INTERFACE_VERSION for contract CoreMetadataModule
|
915
924
|
*
|
916
925
|
* @param request CoreMetadataModuleUpgradeInterfaceVersionRequest
|
917
926
|
* @return Promise<CoreMetadataModuleUpgradeInterfaceVersionResponse>
|
918
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
927
|
+
*/)},{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;}()/**
|
919
928
|
* method authority for contract CoreMetadataModule
|
920
929
|
*
|
921
930
|
* @param request CoreMetadataModuleAuthorityRequest
|
922
931
|
* @return Promise<CoreMetadataModuleAuthorityResponse>
|
923
|
-
*/)},{key:"authority",value:(function(){var
|
932
|
+
*/)},{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;}()/**
|
924
933
|
* method isConsumingScheduledOp for contract CoreMetadataModule
|
925
934
|
*
|
926
935
|
* @param request CoreMetadataModuleIsConsumingScheduledOpRequest
|
927
936
|
* @return Promise<CoreMetadataModuleIsConsumingScheduledOpResponse>
|
928
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
937
|
+
*/)},{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;}()/**
|
929
938
|
* method isMetadataFrozen for contract CoreMetadataModule
|
930
939
|
*
|
931
940
|
* @param request CoreMetadataModuleIsMetadataFrozenRequest
|
932
941
|
* @return Promise<CoreMetadataModuleIsMetadataFrozenResponse>
|
933
|
-
*/)},{key:"isMetadataFrozen",value:(function(){var _isMetadataFrozen=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
942
|
+
*/)},{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;}()/**
|
934
943
|
* method name for contract CoreMetadataModule
|
935
944
|
*
|
936
945
|
* @param request CoreMetadataModuleNameRequest
|
937
946
|
* @return Promise<CoreMetadataModuleNameResponse>
|
938
|
-
*/)},{key:"name",value:(function(){var _name=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
947
|
+
*/)},{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;}()/**
|
939
948
|
* method proxiableUUID for contract CoreMetadataModule
|
940
949
|
*
|
941
950
|
* @param request CoreMetadataModuleProxiableUuidRequest
|
942
951
|
* @return Promise<CoreMetadataModuleProxiableUuidResponse>
|
943
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
952
|
+
*/)},{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;}()/**
|
944
953
|
* method supportsInterface for contract CoreMetadataModule
|
945
954
|
*
|
946
955
|
* @param request CoreMetadataModuleSupportsInterfaceRequest
|
947
956
|
* @return Promise<CoreMetadataModuleSupportsInterfaceResponse>
|
948
|
-
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
957
|
+
*/)},{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);/**
|
949
958
|
* contract CoreMetadataModule write method
|
950
|
-
*/var CoreMetadataModuleClient=/*#__PURE__*/function(_CoreMetadataModuleRe){function CoreMetadataModuleClient(rpcClient,wallet,address){var
|
959
|
+
*/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;}/**
|
951
960
|
* method freezeMetadata for contract CoreMetadataModule
|
952
961
|
*
|
953
962
|
* @param request CoreMetadataModuleFreezeMetadataRequest
|
954
963
|
* @return Promise<WriteContractReturnType>
|
955
|
-
*/_inherits(CoreMetadataModuleClient,_CoreMetadataModuleRe);return _createClass(CoreMetadataModuleClient,[{key:"freezeMetadata",value:(function(){var _freezeMetadata=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
964
|
+
*/_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;}()/**
|
956
965
|
* method freezeMetadata for contract CoreMetadataModule with only encode
|
957
966
|
*
|
958
967
|
* @param request CoreMetadataModuleFreezeMetadataRequest
|
@@ -962,7 +971,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
962
971
|
*
|
963
972
|
* @param request CoreMetadataModuleInitializeRequest
|
964
973
|
* @return Promise<WriteContractReturnType>
|
965
|
-
*/},{key:"initialize",value:(function(){var
|
974
|
+
*/},{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;}()/**
|
966
975
|
* method initialize for contract CoreMetadataModule with only encode
|
967
976
|
*
|
968
977
|
* @param request CoreMetadataModuleInitializeRequest
|
@@ -972,7 +981,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
972
981
|
*
|
973
982
|
* @param request CoreMetadataModuleSetAllRequest
|
974
983
|
* @return Promise<WriteContractReturnType>
|
975
|
-
*/},{key:"setAll",value:(function(){var _setAll=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
984
|
+
*/},{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;}()/**
|
976
985
|
* method setAll for contract CoreMetadataModule with only encode
|
977
986
|
*
|
978
987
|
* @param request CoreMetadataModuleSetAllRequest
|
@@ -982,7 +991,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
982
991
|
*
|
983
992
|
* @param request CoreMetadataModuleSetAuthorityRequest
|
984
993
|
* @return Promise<WriteContractReturnType>
|
985
|
-
*/},{key:"setAuthority",value:(function(){var
|
994
|
+
*/},{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;}()/**
|
986
995
|
* method setAuthority for contract CoreMetadataModule with only encode
|
987
996
|
*
|
988
997
|
* @param request CoreMetadataModuleSetAuthorityRequest
|
@@ -992,7 +1001,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
992
1001
|
*
|
993
1002
|
* @param request CoreMetadataModuleSetMetadataUriRequest
|
994
1003
|
* @return Promise<WriteContractReturnType>
|
995
|
-
*/},{key:"setMetadataUri",value:(function(){var _setMetadataUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1004
|
+
*/},{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;}()/**
|
996
1005
|
* method setMetadataURI for contract CoreMetadataModule with only encode
|
997
1006
|
*
|
998
1007
|
* @param request CoreMetadataModuleSetMetadataUriRequest
|
@@ -1002,7 +1011,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1002
1011
|
*
|
1003
1012
|
* @param request CoreMetadataModuleUpdateNftTokenUriRequest
|
1004
1013
|
* @return Promise<WriteContractReturnType>
|
1005
|
-
*/},{key:"updateNftTokenUri",value:(function(){var _updateNftTokenUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1014
|
+
*/},{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;}()/**
|
1006
1015
|
* method updateNftTokenURI for contract CoreMetadataModule with only encode
|
1007
1016
|
*
|
1008
1017
|
* @param request CoreMetadataModuleUpdateNftTokenUriRequest
|
@@ -1012,7 +1021,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1012
1021
|
*
|
1013
1022
|
* @param request CoreMetadataModuleUpgradeToAndCallRequest
|
1014
1023
|
* @return Promise<WriteContractReturnType>
|
1015
|
-
*/},{key:"upgradeToAndCall",value:(function(){var
|
1024
|
+
*/},{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;}()/**
|
1016
1025
|
* method upgradeToAndCall for contract CoreMetadataModule with only encode
|
1017
1026
|
*
|
1018
1027
|
* @param request CoreMetadataModuleUpgradeToAndCallRequest
|
@@ -1054,12 +1063,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1054
1063
|
* @param sigRegister tuple
|
1055
1064
|
*/ /**
|
1056
1065
|
* contract DerivativeWorkflows write method
|
1057
|
-
*/var DerivativeWorkflowsClient=/*#__PURE__*/function(){function DerivativeWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
1066
|
+
*/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;}/**
|
1058
1067
|
* method mintAndRegisterIpAndMakeDerivative for contract DerivativeWorkflows
|
1059
1068
|
*
|
1060
1069
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest
|
1061
1070
|
* @return Promise<WriteContractReturnType>
|
1062
|
-
*/return _createClass(DerivativeWorkflowsClient,[{key:"mintAndRegisterIpAndMakeDerivative",value:(function(){var _mintAndRegisterIpAndMakeDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1071
|
+
*/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;}()/**
|
1063
1072
|
* method mintAndRegisterIpAndMakeDerivative for contract DerivativeWorkflows with only encode
|
1064
1073
|
*
|
1065
1074
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest
|
@@ -1069,7 +1078,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1069
1078
|
*
|
1070
1079
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
1071
1080
|
* @return Promise<WriteContractReturnType>
|
1072
|
-
*/},{key:"mintAndRegisterIpAndMakeDerivativeWithLicenseTokens",value:(function(){var _mintAndRegisterIpAndMakeDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1081
|
+
*/},{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;}()/**
|
1073
1082
|
* method mintAndRegisterIpAndMakeDerivativeWithLicenseTokens for contract DerivativeWorkflows with only encode
|
1074
1083
|
*
|
1075
1084
|
* @param request DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
@@ -1079,7 +1088,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1079
1088
|
*
|
1080
1089
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest
|
1081
1090
|
* @return Promise<WriteContractReturnType>
|
1082
|
-
*/},{key:"registerIpAndMakeDerivative",value:(function(){var _registerIpAndMakeDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1091
|
+
*/},{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;}()/**
|
1083
1092
|
* method registerIpAndMakeDerivative for contract DerivativeWorkflows with only encode
|
1084
1093
|
*
|
1085
1094
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest
|
@@ -1089,7 +1098,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1089
1098
|
*
|
1090
1099
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
1091
1100
|
* @return Promise<WriteContractReturnType>
|
1092
|
-
*/},{key:"registerIpAndMakeDerivativeWithLicenseTokens",value:(function(){var _registerIpAndMakeDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1101
|
+
*/},{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;}()/**
|
1093
1102
|
* method registerIpAndMakeDerivativeWithLicenseTokens for contract DerivativeWorkflows with only encode
|
1094
1103
|
*
|
1095
1104
|
* @param request DerivativeWorkflowsRegisterIpAndMakeDerivativeWithLicenseTokensRequest
|
@@ -1133,26 +1142,26 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1133
1142
|
* @param data bytes
|
1134
1143
|
*/ /**
|
1135
1144
|
* contract DisputeModule event
|
1136
|
-
*/var DisputeModuleEventClient=/*#__PURE__*/function(){function DisputeModuleEventClient(rpcClient,address){var _rpcClient$
|
1145
|
+
*/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;}/**
|
1137
1146
|
* event DisputeCancelled for contract DisputeModule
|
1138
|
-
*/return _createClass(DisputeModuleEventClient,[{key:"watchDisputeCancelledEvent",value:function watchDisputeCancelledEvent(
|
1147
|
+
*/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);});}});}/**
|
1139
1148
|
* parse tx receipt event DisputeCancelled for contract DisputeModule
|
1140
|
-
*/},{key:"parseTxDisputeCancelledEvent",value:function parseTxDisputeCancelledEvent(txReceipt){var targetLogs=[];var
|
1149
|
+
*/},{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=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;}/**
|
1141
1150
|
* event DisputeRaised for contract DisputeModule
|
1142
|
-
*/},{key:"watchDisputeRaisedEvent",value:function watchDisputeRaisedEvent(
|
1151
|
+
*/},{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);});}});}/**
|
1143
1152
|
* parse tx receipt event DisputeRaised for contract DisputeModule
|
1144
|
-
*/},{key:"parseTxDisputeRaisedEvent",value:function parseTxDisputeRaisedEvent(txReceipt){var targetLogs=[];var
|
1153
|
+
*/},{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=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;}/**
|
1145
1154
|
* event DisputeResolved for contract DisputeModule
|
1146
|
-
*/},{key:"watchDisputeResolvedEvent",value:function watchDisputeResolvedEvent(
|
1155
|
+
*/},{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);});}});}/**
|
1147
1156
|
* parse tx receipt event DisputeResolved for contract DisputeModule
|
1148
|
-
*/},{key:"parseTxDisputeResolvedEvent",value:function parseTxDisputeResolvedEvent(txReceipt){var targetLogs=[];var
|
1157
|
+
*/},{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=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;}}]);}();/**
|
1149
1158
|
* contract DisputeModule write method
|
1150
|
-
*/var DisputeModuleClient=/*#__PURE__*/function(_DisputeModuleEventCl){function DisputeModuleClient(rpcClient,wallet,address){var
|
1159
|
+
*/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;}/**
|
1151
1160
|
* method cancelDispute for contract DisputeModule
|
1152
1161
|
*
|
1153
1162
|
* @param request DisputeModuleCancelDisputeRequest
|
1154
1163
|
* @return Promise<WriteContractReturnType>
|
1155
|
-
*/_inherits(DisputeModuleClient,_DisputeModuleEventCl);return _createClass(DisputeModuleClient,[{key:"cancelDispute",value:(function(){var _cancelDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1164
|
+
*/_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;}()/**
|
1156
1165
|
* method cancelDispute for contract DisputeModule with only encode
|
1157
1166
|
*
|
1158
1167
|
* @param request DisputeModuleCancelDisputeRequest
|
@@ -1162,7 +1171,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1162
1171
|
*
|
1163
1172
|
* @param request DisputeModuleRaiseDisputeRequest
|
1164
1173
|
* @return Promise<WriteContractReturnType>
|
1165
|
-
*/},{key:"raiseDispute",value:(function(){var _raiseDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1174
|
+
*/},{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;}()/**
|
1166
1175
|
* method raiseDispute for contract DisputeModule with only encode
|
1167
1176
|
*
|
1168
1177
|
* @param request DisputeModuleRaiseDisputeRequest
|
@@ -1172,7 +1181,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1172
1181
|
*
|
1173
1182
|
* @param request DisputeModuleResolveDisputeRequest
|
1174
1183
|
* @return Promise<WriteContractReturnType>
|
1175
|
-
*/},{key:"resolveDispute",value:(function(){var _resolveDispute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1184
|
+
*/},{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;}()/**
|
1176
1185
|
* method resolveDispute for contract DisputeModule with only encode
|
1177
1186
|
*
|
1178
1187
|
* @param request DisputeModuleResolveDisputeRequest
|
@@ -1287,131 +1296,131 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1287
1296
|
* @param rewardPool address
|
1288
1297
|
*/ /**
|
1289
1298
|
* contract GroupingModule event
|
1290
|
-
*/var GroupingModuleEventClient=/*#__PURE__*/function(){function GroupingModuleEventClient(rpcClient,address){var _rpcClient$
|
1299
|
+
*/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;}/**
|
1291
1300
|
* event AddedIpToGroup for contract GroupingModule
|
1292
|
-
*/return _createClass(GroupingModuleEventClient,[{key:"watchAddedIpToGroupEvent",value:function watchAddedIpToGroupEvent(
|
1301
|
+
*/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);});}});}/**
|
1293
1302
|
* parse tx receipt event AddedIpToGroup for contract GroupingModule
|
1294
|
-
*/},{key:"parseTxAddedIpToGroupEvent",value:function parseTxAddedIpToGroupEvent(txReceipt){var targetLogs=[];var
|
1303
|
+
*/},{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=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;}/**
|
1295
1304
|
* event AuthorityUpdated for contract GroupingModule
|
1296
|
-
*/},{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
1305
|
+
*/},{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);});}});}/**
|
1297
1306
|
* parse tx receipt event AuthorityUpdated for contract GroupingModule
|
1298
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
1307
|
+
*/},{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=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;}/**
|
1299
1308
|
* event ClaimedReward for contract GroupingModule
|
1300
|
-
*/},{key:"watchClaimedRewardEvent",value:function watchClaimedRewardEvent(
|
1309
|
+
*/},{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);});}});}/**
|
1301
1310
|
* parse tx receipt event ClaimedReward for contract GroupingModule
|
1302
|
-
*/},{key:"parseTxClaimedRewardEvent",value:function parseTxClaimedRewardEvent(txReceipt){var targetLogs=[];var
|
1311
|
+
*/},{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=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;}/**
|
1303
1312
|
* event CollectedRoyaltiesToGroupPool for contract GroupingModule
|
1304
|
-
*/},{key:"watchCollectedRoyaltiesToGroupPoolEvent",value:function watchCollectedRoyaltiesToGroupPoolEvent(
|
1313
|
+
*/},{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);});}});}/**
|
1305
1314
|
* parse tx receipt event CollectedRoyaltiesToGroupPool for contract GroupingModule
|
1306
|
-
*/},{key:"parseTxCollectedRoyaltiesToGroupPoolEvent",value:function parseTxCollectedRoyaltiesToGroupPoolEvent(txReceipt){var targetLogs=[];var
|
1315
|
+
*/},{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=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;}/**
|
1307
1316
|
* event IPGroupRegistered for contract GroupingModule
|
1308
|
-
*/},{key:"watchIpGroupRegisteredEvent",value:function watchIpGroupRegisteredEvent(
|
1317
|
+
*/},{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);});}});}/**
|
1309
1318
|
* parse tx receipt event IPGroupRegistered for contract GroupingModule
|
1310
|
-
*/},{key:"parseTxIpGroupRegisteredEvent",value:function parseTxIpGroupRegisteredEvent(txReceipt){var targetLogs=[];var
|
1319
|
+
*/},{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=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;}/**
|
1311
1320
|
* event Initialized for contract GroupingModule
|
1312
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
1321
|
+
*/},{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);});}});}/**
|
1313
1322
|
* parse tx receipt event Initialized for contract GroupingModule
|
1314
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
1323
|
+
*/},{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=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;}/**
|
1315
1324
|
* event Paused for contract GroupingModule
|
1316
|
-
*/},{key:"watchPausedEvent",value:function watchPausedEvent(
|
1325
|
+
*/},{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);});}});}/**
|
1317
1326
|
* parse tx receipt event Paused for contract GroupingModule
|
1318
|
-
*/},{key:"parseTxPausedEvent",value:function parseTxPausedEvent(txReceipt){var targetLogs=[];var
|
1327
|
+
*/},{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=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;}/**
|
1319
1328
|
* event RemovedIpFromGroup for contract GroupingModule
|
1320
|
-
*/},{key:"watchRemovedIpFromGroupEvent",value:function watchRemovedIpFromGroupEvent(
|
1329
|
+
*/},{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);});}});}/**
|
1321
1330
|
* parse tx receipt event RemovedIpFromGroup for contract GroupingModule
|
1322
|
-
*/},{key:"parseTxRemovedIpFromGroupEvent",value:function parseTxRemovedIpFromGroupEvent(txReceipt){var targetLogs=[];var
|
1331
|
+
*/},{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=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;}/**
|
1323
1332
|
* event Unpaused for contract GroupingModule
|
1324
|
-
*/},{key:"watchUnpausedEvent",value:function watchUnpausedEvent(
|
1333
|
+
*/},{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);});}});}/**
|
1325
1334
|
* parse tx receipt event Unpaused for contract GroupingModule
|
1326
|
-
*/},{key:"parseTxUnpausedEvent",value:function parseTxUnpausedEvent(txReceipt){var targetLogs=[];var
|
1335
|
+
*/},{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=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;}/**
|
1327
1336
|
* event Upgraded for contract GroupingModule
|
1328
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
1337
|
+
*/},{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);});}});}/**
|
1329
1338
|
* parse tx receipt event Upgraded for contract GroupingModule
|
1330
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
1339
|
+
*/},{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=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;}}]);}();/**
|
1331
1340
|
* contract GroupingModule readonly method
|
1332
1341
|
*/var GroupingModuleReadOnlyClient=/*#__PURE__*/function(_GroupingModuleEventC){function GroupingModuleReadOnlyClient(rpcClient,address){_classCallCheck(this,GroupingModuleReadOnlyClient);return _callSuper(this,GroupingModuleReadOnlyClient,[rpcClient,address]);}/**
|
1333
1342
|
* method ACCESS_CONTROLLER for contract GroupingModule
|
1334
1343
|
*
|
1335
1344
|
* @param request GroupingModuleAccessControllerRequest
|
1336
1345
|
* @return Promise<GroupingModuleAccessControllerResponse>
|
1337
|
-
*/_inherits(GroupingModuleReadOnlyClient,_GroupingModuleEventC);return _createClass(GroupingModuleReadOnlyClient,[{key:"accessController",value:(function(){var _accessController2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1346
|
+
*/_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;}()/**
|
1338
1347
|
* method GROUP_IP_ASSET_REGISTRY for contract GroupingModule
|
1339
1348
|
*
|
1340
1349
|
* @param request GroupingModuleGroupIpAssetRegistryRequest
|
1341
1350
|
* @return Promise<GroupingModuleGroupIpAssetRegistryResponse>
|
1342
|
-
*/)},{key:"groupIpAssetRegistry",value:(function(){var _groupIpAssetRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1351
|
+
*/)},{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;}()/**
|
1343
1352
|
* method GROUP_NFT for contract GroupingModule
|
1344
1353
|
*
|
1345
1354
|
* @param request GroupingModuleGroupNftRequest
|
1346
1355
|
* @return Promise<GroupingModuleGroupNftResponse>
|
1347
|
-
*/)},{key:"groupNft",value:(function(){var _groupNft=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1356
|
+
*/)},{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;}()/**
|
1348
1357
|
* method IP_ACCOUNT_REGISTRY for contract GroupingModule
|
1349
1358
|
*
|
1350
1359
|
* @param request GroupingModuleIpAccountRegistryRequest
|
1351
1360
|
* @return Promise<GroupingModuleIpAccountRegistryResponse>
|
1352
|
-
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1361
|
+
*/)},{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;}()/**
|
1353
1362
|
* method LICENSE_REGISTRY for contract GroupingModule
|
1354
1363
|
*
|
1355
1364
|
* @param request GroupingModuleLicenseRegistryRequest
|
1356
1365
|
* @return Promise<GroupingModuleLicenseRegistryResponse>
|
1357
|
-
*/)},{key:"licenseRegistry",value:(function(){var _licenseRegistry=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1366
|
+
*/)},{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;}()/**
|
1358
1367
|
* method LICENSE_TOKEN for contract GroupingModule
|
1359
1368
|
*
|
1360
1369
|
* @param request GroupingModuleLicenseTokenRequest
|
1361
1370
|
* @return Promise<GroupingModuleLicenseTokenResponse>
|
1362
|
-
*/)},{key:"licenseToken",value:(function(){var _licenseToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1371
|
+
*/)},{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;}()/**
|
1363
1372
|
* method ROYALTY_MODULE for contract GroupingModule
|
1364
1373
|
*
|
1365
1374
|
* @param request GroupingModuleRoyaltyModuleRequest
|
1366
1375
|
* @return Promise<GroupingModuleRoyaltyModuleResponse>
|
1367
|
-
*/)},{key:"royaltyModule",value:(function(){var _royaltyModule2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1376
|
+
*/)},{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;}()/**
|
1368
1377
|
* method UPGRADE_INTERFACE_VERSION for contract GroupingModule
|
1369
1378
|
*
|
1370
1379
|
* @param request GroupingModuleUpgradeInterfaceVersionRequest
|
1371
1380
|
* @return Promise<GroupingModuleUpgradeInterfaceVersionResponse>
|
1372
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
1381
|
+
*/)},{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;}()/**
|
1373
1382
|
* method authority for contract GroupingModule
|
1374
1383
|
*
|
1375
1384
|
* @param request GroupingModuleAuthorityRequest
|
1376
1385
|
* @return Promise<GroupingModuleAuthorityResponse>
|
1377
|
-
*/)},{key:"authority",value:(function(){var
|
1386
|
+
*/)},{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;}()/**
|
1378
1387
|
* method getClaimableReward for contract GroupingModule
|
1379
1388
|
*
|
1380
1389
|
* @param request GroupingModuleGetClaimableRewardRequest
|
1381
1390
|
* @return Promise<GroupingModuleGetClaimableRewardResponse>
|
1382
|
-
*/)},{key:"getClaimableReward",value:(function(){var _getClaimableReward=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1391
|
+
*/)},{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;}()/**
|
1383
1392
|
* method isConsumingScheduledOp for contract GroupingModule
|
1384
1393
|
*
|
1385
1394
|
* @param request GroupingModuleIsConsumingScheduledOpRequest
|
1386
1395
|
* @return Promise<GroupingModuleIsConsumingScheduledOpResponse>
|
1387
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
1396
|
+
*/)},{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;}()/**
|
1388
1397
|
* method name for contract GroupingModule
|
1389
1398
|
*
|
1390
1399
|
* @param request GroupingModuleNameRequest
|
1391
1400
|
* @return Promise<GroupingModuleNameResponse>
|
1392
|
-
*/)},{key:"name",value:(function(){var _name2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1401
|
+
*/)},{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;}()/**
|
1393
1402
|
* method paused for contract GroupingModule
|
1394
1403
|
*
|
1395
1404
|
* @param request GroupingModulePausedRequest
|
1396
1405
|
* @return Promise<GroupingModulePausedResponse>
|
1397
|
-
*/)},{key:"paused",value:(function(){var _paused2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1406
|
+
*/)},{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;}()/**
|
1398
1407
|
* method proxiableUUID for contract GroupingModule
|
1399
1408
|
*
|
1400
1409
|
* @param request GroupingModuleProxiableUuidRequest
|
1401
1410
|
* @return Promise<GroupingModuleProxiableUuidResponse>
|
1402
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
1411
|
+
*/)},{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;}()/**
|
1403
1412
|
* method supportsInterface for contract GroupingModule
|
1404
1413
|
*
|
1405
1414
|
* @param request GroupingModuleSupportsInterfaceRequest
|
1406
1415
|
* @return Promise<GroupingModuleSupportsInterfaceResponse>
|
1407
|
-
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1416
|
+
*/)},{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);/**
|
1408
1417
|
* contract GroupingModule write method
|
1409
|
-
*/var GroupingModuleClient=/*#__PURE__*/function(_GroupingModuleReadOn){function GroupingModuleClient(rpcClient,wallet,address){var
|
1418
|
+
*/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;}/**
|
1410
1419
|
* method __ProtocolPausable_init for contract GroupingModule
|
1411
1420
|
*
|
1412
1421
|
* @param request GroupingModuleProtocolPausableInitRequest
|
1413
1422
|
* @return Promise<WriteContractReturnType>
|
1414
|
-
*/_inherits(GroupingModuleClient,_GroupingModuleReadOn);return _createClass(GroupingModuleClient,[{key:"protocolPausableInit",value:(function(){var _protocolPausableInit2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1423
|
+
*/_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;}()/**
|
1415
1424
|
* method __ProtocolPausable_init for contract GroupingModule with only encode
|
1416
1425
|
*
|
1417
1426
|
* @param request GroupingModuleProtocolPausableInitRequest
|
@@ -1421,7 +1430,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1421
1430
|
*
|
1422
1431
|
* @param request GroupingModuleAddIpRequest
|
1423
1432
|
* @return Promise<WriteContractReturnType>
|
1424
|
-
*/},{key:"addIp",value:(function(){var _addIp2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1433
|
+
*/},{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;}()/**
|
1425
1434
|
* method addIp for contract GroupingModule with only encode
|
1426
1435
|
*
|
1427
1436
|
* @param request GroupingModuleAddIpRequest
|
@@ -1431,7 +1440,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1431
1440
|
*
|
1432
1441
|
* @param request GroupingModuleClaimRewardRequest
|
1433
1442
|
* @return Promise<WriteContractReturnType>
|
1434
|
-
*/},{key:"claimReward",value:(function(){var _claimReward=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1443
|
+
*/},{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;}()/**
|
1435
1444
|
* method claimReward for contract GroupingModule with only encode
|
1436
1445
|
*
|
1437
1446
|
* @param request GroupingModuleClaimRewardRequest
|
@@ -1441,7 +1450,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1441
1450
|
*
|
1442
1451
|
* @param request GroupingModuleCollectRoyaltiesRequest
|
1443
1452
|
* @return Promise<WriteContractReturnType>
|
1444
|
-
*/},{key:"collectRoyalties",value:(function(){var _collectRoyalties=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1453
|
+
*/},{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;}()/**
|
1445
1454
|
* method collectRoyalties for contract GroupingModule with only encode
|
1446
1455
|
*
|
1447
1456
|
* @param request GroupingModuleCollectRoyaltiesRequest
|
@@ -1451,7 +1460,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1451
1460
|
*
|
1452
1461
|
* @param request GroupingModuleInitializeRequest
|
1453
1462
|
* @return Promise<WriteContractReturnType>
|
1454
|
-
*/},{key:"initialize",value:(function(){var
|
1463
|
+
*/},{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;}()/**
|
1455
1464
|
* method initialize for contract GroupingModule with only encode
|
1456
1465
|
*
|
1457
1466
|
* @param request GroupingModuleInitializeRequest
|
@@ -1461,7 +1470,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1461
1470
|
*
|
1462
1471
|
* @param request GroupingModulePauseRequest
|
1463
1472
|
* @return Promise<WriteContractReturnType>
|
1464
|
-
*/},{key:"pause",value:(function(){var _pause2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1473
|
+
*/},{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;}()/**
|
1465
1474
|
* method pause for contract GroupingModule with only encode
|
1466
1475
|
*
|
1467
1476
|
* @param request GroupingModulePauseRequest
|
@@ -1471,7 +1480,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1471
1480
|
*
|
1472
1481
|
* @param request GroupingModuleRegisterGroupRequest
|
1473
1482
|
* @return Promise<WriteContractReturnType>
|
1474
|
-
*/},{key:"registerGroup",value:(function(){var _registerGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1483
|
+
*/},{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;}()/**
|
1475
1484
|
* method registerGroup for contract GroupingModule with only encode
|
1476
1485
|
*
|
1477
1486
|
* @param request GroupingModuleRegisterGroupRequest
|
@@ -1481,7 +1490,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1481
1490
|
*
|
1482
1491
|
* @param request GroupingModuleRemoveIpRequest
|
1483
1492
|
* @return Promise<WriteContractReturnType>
|
1484
|
-
*/},{key:"removeIp",value:(function(){var _removeIp2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1493
|
+
*/},{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;}()/**
|
1485
1494
|
* method removeIp for contract GroupingModule with only encode
|
1486
1495
|
*
|
1487
1496
|
* @param request GroupingModuleRemoveIpRequest
|
@@ -1491,7 +1500,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1491
1500
|
*
|
1492
1501
|
* @param request GroupingModuleSetAuthorityRequest
|
1493
1502
|
* @return Promise<WriteContractReturnType>
|
1494
|
-
*/},{key:"setAuthority",value:(function(){var
|
1503
|
+
*/},{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;}()/**
|
1495
1504
|
* method setAuthority for contract GroupingModule with only encode
|
1496
1505
|
*
|
1497
1506
|
* @param request GroupingModuleSetAuthorityRequest
|
@@ -1501,7 +1510,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1501
1510
|
*
|
1502
1511
|
* @param request GroupingModuleUnpauseRequest
|
1503
1512
|
* @return Promise<WriteContractReturnType>
|
1504
|
-
*/},{key:"unpause",value:(function(){var _unpause2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1513
|
+
*/},{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;}()/**
|
1505
1514
|
* method unpause for contract GroupingModule with only encode
|
1506
1515
|
*
|
1507
1516
|
* @param request GroupingModuleUnpauseRequest
|
@@ -1511,7 +1520,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1511
1520
|
*
|
1512
1521
|
* @param request GroupingModuleUpgradeToAndCallRequest
|
1513
1522
|
* @return Promise<WriteContractReturnType>
|
1514
|
-
*/},{key:"upgradeToAndCall",value:(function(){var
|
1523
|
+
*/},{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;}()/**
|
1515
1524
|
* method upgradeToAndCall for contract GroupingModule with only encode
|
1516
1525
|
*
|
1517
1526
|
* @param request GroupingModuleUpgradeToAndCallRequest
|
@@ -1521,7 +1530,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1521
1530
|
*
|
1522
1531
|
* @param request GroupingModuleWhitelistGroupRewardPoolRequest
|
1523
1532
|
* @return Promise<WriteContractReturnType>
|
1524
|
-
*/},{key:"whitelistGroupRewardPool",value:(function(){var _whitelistGroupRewardPool=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1533
|
+
*/},{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;}()/**
|
1525
1534
|
* method whitelistGroupRewardPool for contract GroupingModule with only encode
|
1526
1535
|
*
|
1527
1536
|
* @param request GroupingModuleWhitelistGroupRewardPoolRequest
|
@@ -1563,12 +1572,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1563
1572
|
* @param sigAddToGroup tuple
|
1564
1573
|
*/ /**
|
1565
1574
|
* contract GroupingWorkflows write method
|
1566
|
-
*/var GroupingWorkflowsClient=/*#__PURE__*/function(){function GroupingWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
1575
|
+
*/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;}/**
|
1567
1576
|
* method mintAndRegisterIpAndAttachLicenseAndAddToGroup for contract GroupingWorkflows
|
1568
1577
|
*
|
1569
1578
|
* @param request GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest
|
1570
1579
|
* @return Promise<WriteContractReturnType>
|
1571
|
-
*/return _createClass(GroupingWorkflowsClient,[{key:"mintAndRegisterIpAndAttachLicenseAndAddToGroup",value:(function(){var _mintAndRegisterIpAndAttachLicenseAndAddToGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1580
|
+
*/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;}()/**
|
1572
1581
|
* method mintAndRegisterIpAndAttachLicenseAndAddToGroup for contract GroupingWorkflows with only encode
|
1573
1582
|
*
|
1574
1583
|
* @param request GroupingWorkflowsMintAndRegisterIpAndAttachLicenseAndAddToGroupRequest
|
@@ -1578,7 +1587,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1578
1587
|
*
|
1579
1588
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseRequest
|
1580
1589
|
* @return Promise<WriteContractReturnType>
|
1581
|
-
*/},{key:"registerGroupAndAttachLicense",value:(function(){var _registerGroupAndAttachLicense=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1590
|
+
*/},{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;}()/**
|
1582
1591
|
* method registerGroupAndAttachLicense for contract GroupingWorkflows with only encode
|
1583
1592
|
*
|
1584
1593
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseRequest
|
@@ -1588,7 +1597,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1588
1597
|
*
|
1589
1598
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest
|
1590
1599
|
* @return Promise<WriteContractReturnType>
|
1591
|
-
*/},{key:"registerGroupAndAttachLicenseAndAddIps",value:(function(){var _registerGroupAndAttachLicenseAndAddIps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1600
|
+
*/},{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;}()/**
|
1592
1601
|
* method registerGroupAndAttachLicenseAndAddIps for contract GroupingWorkflows with only encode
|
1593
1602
|
*
|
1594
1603
|
* @param request GroupingWorkflowsRegisterGroupAndAttachLicenseAndAddIpsRequest
|
@@ -1598,7 +1607,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1598
1607
|
*
|
1599
1608
|
* @param request GroupingWorkflowsRegisterIpAndAttachLicenseAndAddToGroupRequest
|
1600
1609
|
* @return Promise<WriteContractReturnType>
|
1601
|
-
*/},{key:"registerIpAndAttachLicenseAndAddToGroup",value:(function(){var _registerIpAndAttachLicenseAndAddToGroup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1610
|
+
*/},{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;}()/**
|
1602
1611
|
* method registerIpAndAttachLicenseAndAddToGroup for contract GroupingWorkflows with only encode
|
1603
1612
|
*
|
1604
1613
|
* @param request GroupingWorkflowsRegisterIpAndAttachLicenseAndAddToGroupRequest
|
@@ -1638,24 +1647,24 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1638
1647
|
* @param signature bytes
|
1639
1648
|
*/ /**
|
1640
1649
|
* contract IPAccountImpl readonly method
|
1641
|
-
*/var IpAccountImplReadOnlyClient=/*#__PURE__*/function(){function IpAccountImplReadOnlyClient(rpcClient,address){var _rpcClient$
|
1650
|
+
*/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;}/**
|
1642
1651
|
* method state for contract IPAccountImpl
|
1643
1652
|
*
|
1644
1653
|
* @param request IpAccountImplStateRequest
|
1645
1654
|
* @return Promise<IpAccountImplStateResponse>
|
1646
|
-
*/return _createClass(IpAccountImplReadOnlyClient,[{key:"state",value:(function(){var _state=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1655
|
+
*/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;}()/**
|
1647
1656
|
* method token for contract IPAccountImpl
|
1648
1657
|
*
|
1649
1658
|
* @param request IpAccountImplTokenRequest
|
1650
1659
|
* @return Promise<IpAccountImplTokenResponse>
|
1651
|
-
*/)},{key:"token",value:(function(){var _token=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1660
|
+
*/)},{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;}())}]);}();/**
|
1652
1661
|
* contract IPAccountImpl write method
|
1653
|
-
*/var IpAccountImplClient=/*#__PURE__*/function(_IpAccountImplReadOnl){function IpAccountImplClient(rpcClient,wallet,address){var
|
1662
|
+
*/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;}/**
|
1654
1663
|
* method execute for contract IPAccountImpl
|
1655
1664
|
*
|
1656
1665
|
* @param request IpAccountImplExecuteRequest
|
1657
1666
|
* @return Promise<WriteContractReturnType>
|
1658
|
-
*/_inherits(IpAccountImplClient,_IpAccountImplReadOnl);return _createClass(IpAccountImplClient,[{key:"execute",value:(function(){var _execute=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1667
|
+
*/_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;}()/**
|
1659
1668
|
* method execute for contract IPAccountImpl with only encode
|
1660
1669
|
*
|
1661
1670
|
* @param request IpAccountImplExecuteRequest
|
@@ -1665,7 +1674,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1665
1674
|
*
|
1666
1675
|
* @param request IpAccountImplExecute2Request
|
1667
1676
|
* @return Promise<WriteContractReturnType>
|
1668
|
-
*/},{key:"execute2",value:(function(){var _execute2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1677
|
+
*/},{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;}()/**
|
1669
1678
|
* method execute for contract IPAccountImpl with only encode
|
1670
1679
|
*
|
1671
1680
|
* @param request IpAccountImplExecute2Request
|
@@ -1675,7 +1684,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1675
1684
|
*
|
1676
1685
|
* @param request IpAccountImplExecuteWithSigRequest
|
1677
1686
|
* @return Promise<WriteContractReturnType>
|
1678
|
-
*/},{key:"executeWithSig",value:(function(){var _executeWithSig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1687
|
+
*/},{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;}()/**
|
1679
1688
|
* method executeWithSig for contract IPAccountImpl with only encode
|
1680
1689
|
*
|
1681
1690
|
* @param request IpAccountImplExecuteWithSigRequest
|
@@ -1717,34 +1726,34 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1717
1726
|
* @param tokenId uint256
|
1718
1727
|
*/ /**
|
1719
1728
|
* contract IPAssetRegistry event
|
1720
|
-
*/var IpAssetRegistryEventClient=/*#__PURE__*/function(){function IpAssetRegistryEventClient(rpcClient,address){var _rpcClient$
|
1729
|
+
*/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;}/**
|
1721
1730
|
* event IPAccountRegistered for contract IPAssetRegistry
|
1722
|
-
*/return _createClass(IpAssetRegistryEventClient,[{key:"watchIpAccountRegisteredEvent",value:function watchIpAccountRegisteredEvent(
|
1731
|
+
*/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);});}});}/**
|
1723
1732
|
* parse tx receipt event IPAccountRegistered for contract IPAssetRegistry
|
1724
|
-
*/},{key:"parseTxIpAccountRegisteredEvent",value:function parseTxIpAccountRegisteredEvent(txReceipt){var targetLogs=[];var
|
1733
|
+
*/},{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=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;}/**
|
1725
1734
|
* event IPRegistered for contract IPAssetRegistry
|
1726
|
-
*/},{key:"watchIpRegisteredEvent",value:function watchIpRegisteredEvent(
|
1735
|
+
*/},{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);});}});}/**
|
1727
1736
|
* parse tx receipt event IPRegistered for contract IPAssetRegistry
|
1728
|
-
*/},{key:"parseTxIpRegisteredEvent",value:function parseTxIpRegisteredEvent(txReceipt){var targetLogs=[];var
|
1737
|
+
*/},{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=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;}}]);}();/**
|
1729
1738
|
* contract IPAssetRegistry readonly method
|
1730
1739
|
*/var IpAssetRegistryReadOnlyClient=/*#__PURE__*/function(_IpAssetRegistryEvent){function IpAssetRegistryReadOnlyClient(rpcClient,address){_classCallCheck(this,IpAssetRegistryReadOnlyClient);return _callSuper(this,IpAssetRegistryReadOnlyClient,[rpcClient,address]);}/**
|
1731
1740
|
* method ipId for contract IPAssetRegistry
|
1732
1741
|
*
|
1733
1742
|
* @param request IpAssetRegistryIpIdRequest
|
1734
1743
|
* @return Promise<IpAssetRegistryIpIdResponse>
|
1735
|
-
*/_inherits(IpAssetRegistryReadOnlyClient,_IpAssetRegistryEvent);return _createClass(IpAssetRegistryReadOnlyClient,[{key:"ipId",value:(function(){var _ipId=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1744
|
+
*/_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;}()/**
|
1736
1745
|
* method isRegistered for contract IPAssetRegistry
|
1737
1746
|
*
|
1738
1747
|
* @param request IpAssetRegistryIsRegisteredRequest
|
1739
1748
|
* @return Promise<IpAssetRegistryIsRegisteredResponse>
|
1740
|
-
*/)},{key:"isRegistered",value:(function(){var _isRegistered=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1749
|
+
*/)},{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);/**
|
1741
1750
|
* contract IPAssetRegistry write method
|
1742
|
-
*/var IpAssetRegistryClient=/*#__PURE__*/function(_IpAssetRegistryReadO){function IpAssetRegistryClient(rpcClient,wallet,address){var
|
1751
|
+
*/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;}/**
|
1743
1752
|
* method register for contract IPAssetRegistry
|
1744
1753
|
*
|
1745
1754
|
* @param request IpAssetRegistryRegisterRequest
|
1746
1755
|
* @return Promise<WriteContractReturnType>
|
1747
|
-
*/_inherits(IpAssetRegistryClient,_IpAssetRegistryReadO);return _createClass(IpAssetRegistryClient,[{key:"register",value:(function(){var _register=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1756
|
+
*/_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;}()/**
|
1748
1757
|
* method register for contract IPAssetRegistry with only encode
|
1749
1758
|
*
|
1750
1759
|
* @param request IpAssetRegistryRegisterRequest
|
@@ -1775,34 +1784,34 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1775
1784
|
* @param claimer address
|
1776
1785
|
*/ /**
|
1777
1786
|
* contract IpRoyaltyVaultImpl event
|
1778
|
-
*/var IpRoyaltyVaultImplEventClient=/*#__PURE__*/function(){function IpRoyaltyVaultImplEventClient(rpcClient,address){var _rpcClient$
|
1787
|
+
*/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;}/**
|
1779
1788
|
* event RevenueTokenClaimed for contract IpRoyaltyVaultImpl
|
1780
|
-
*/return _createClass(IpRoyaltyVaultImplEventClient,[{key:"watchRevenueTokenClaimedEvent",value:function watchRevenueTokenClaimedEvent(
|
1789
|
+
*/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);});}});}/**
|
1781
1790
|
* parse tx receipt event RevenueTokenClaimed for contract IpRoyaltyVaultImpl
|
1782
|
-
*/},{key:"parseTxRevenueTokenClaimedEvent",value:function parseTxRevenueTokenClaimedEvent(txReceipt){var targetLogs=[];var
|
1791
|
+
*/},{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=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;}/**
|
1783
1792
|
* event SnapshotCompleted for contract IpRoyaltyVaultImpl
|
1784
|
-
*/},{key:"watchSnapshotCompletedEvent",value:function watchSnapshotCompletedEvent(
|
1793
|
+
*/},{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);});}});}/**
|
1785
1794
|
* parse tx receipt event SnapshotCompleted for contract IpRoyaltyVaultImpl
|
1786
|
-
*/},{key:"parseTxSnapshotCompletedEvent",value:function parseTxSnapshotCompletedEvent(txReceipt){var targetLogs=[];var
|
1795
|
+
*/},{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=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;}}]);}();/**
|
1787
1796
|
* contract IpRoyaltyVaultImpl readonly method
|
1788
1797
|
*/var IpRoyaltyVaultImplReadOnlyClient=/*#__PURE__*/function(_IpRoyaltyVaultImplEv){function IpRoyaltyVaultImplReadOnlyClient(rpcClient,address){_classCallCheck(this,IpRoyaltyVaultImplReadOnlyClient);return _callSuper(this,IpRoyaltyVaultImplReadOnlyClient,[rpcClient,address]);}/**
|
1789
1798
|
* method claimableRevenue for contract IpRoyaltyVaultImpl
|
1790
1799
|
*
|
1791
1800
|
* @param request IpRoyaltyVaultImplClaimableRevenueRequest
|
1792
1801
|
* @return Promise<IpRoyaltyVaultImplClaimableRevenueResponse>
|
1793
|
-
*/_inherits(IpRoyaltyVaultImplReadOnlyClient,_IpRoyaltyVaultImplEv);return _createClass(IpRoyaltyVaultImplReadOnlyClient,[{key:"claimableRevenue",value:(function(){var _claimableRevenue=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1802
|
+
*/_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;}()/**
|
1794
1803
|
* method ipId for contract IpRoyaltyVaultImpl
|
1795
1804
|
*
|
1796
1805
|
* @param request IpRoyaltyVaultImplIpIdRequest
|
1797
1806
|
* @return Promise<IpRoyaltyVaultImplIpIdResponse>
|
1798
|
-
*/)},{key:"ipId",value:(function(){var _ipId2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1807
|
+
*/)},{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);/**
|
1799
1808
|
* contract IpRoyaltyVaultImpl write method
|
1800
|
-
*/var IpRoyaltyVaultImplClient=/*#__PURE__*/function(_IpRoyaltyVaultImplRe){function IpRoyaltyVaultImplClient(rpcClient,wallet,address){var
|
1809
|
+
*/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;}/**
|
1801
1810
|
* method claimRevenueOnBehalfBySnapshotBatch for contract IpRoyaltyVaultImpl
|
1802
1811
|
*
|
1803
1812
|
* @param request IpRoyaltyVaultImplClaimRevenueOnBehalfBySnapshotBatchRequest
|
1804
1813
|
* @return Promise<WriteContractReturnType>
|
1805
|
-
*/_inherits(IpRoyaltyVaultImplClient,_IpRoyaltyVaultImplRe);return _createClass(IpRoyaltyVaultImplClient,[{key:"claimRevenueOnBehalfBySnapshotBatch",value:(function(){var _claimRevenueOnBehalfBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1814
|
+
*/_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;}()/**
|
1806
1815
|
* method claimRevenueOnBehalfBySnapshotBatch for contract IpRoyaltyVaultImpl with only encode
|
1807
1816
|
*
|
1808
1817
|
* @param request IpRoyaltyVaultImplClaimRevenueOnBehalfBySnapshotBatchRequest
|
@@ -1812,7 +1821,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1812
1821
|
*
|
1813
1822
|
* @param request IpRoyaltyVaultImplSnapshotRequest
|
1814
1823
|
* @return Promise<WriteContractReturnType>
|
1815
|
-
*/},{key:"snapshot",value:(function(){var _snapshot=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1824
|
+
*/},{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;}()/**
|
1816
1825
|
* method snapshot for contract IpRoyaltyVaultImpl with only encode
|
1817
1826
|
*
|
1818
1827
|
* @param request IpRoyaltyVaultImplSnapshotRequest
|
@@ -1842,12 +1851,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1842
1851
|
* @param sigAttach tuple
|
1843
1852
|
*/ /**
|
1844
1853
|
* contract LicenseAttachmentWorkflows write method
|
1845
|
-
*/var LicenseAttachmentWorkflowsClient=/*#__PURE__*/function(){function LicenseAttachmentWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
1854
|
+
*/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;}/**
|
1846
1855
|
* method mintAndRegisterIpAndAttachPILTerms for contract LicenseAttachmentWorkflows
|
1847
1856
|
*
|
1848
1857
|
* @param request LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest
|
1849
1858
|
* @return Promise<WriteContractReturnType>
|
1850
|
-
*/return _createClass(LicenseAttachmentWorkflowsClient,[{key:"mintAndRegisterIpAndAttachPilTerms",value:(function(){var _mintAndRegisterIpAndAttachPilTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1859
|
+
*/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;}()/**
|
1851
1860
|
* method mintAndRegisterIpAndAttachPILTerms for contract LicenseAttachmentWorkflows with only encode
|
1852
1861
|
*
|
1853
1862
|
* @param request LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest
|
@@ -1857,7 +1866,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1857
1866
|
*
|
1858
1867
|
* @param request LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest
|
1859
1868
|
* @return Promise<WriteContractReturnType>
|
1860
|
-
*/},{key:"registerIpAndAttachPilTerms",value:(function(){var _registerIpAndAttachPilTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1869
|
+
*/},{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;}()/**
|
1861
1870
|
* method registerIpAndAttachPILTerms for contract LicenseAttachmentWorkflows with only encode
|
1862
1871
|
*
|
1863
1872
|
* @param request LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest
|
@@ -1867,7 +1876,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
1867
1876
|
*
|
1868
1877
|
* @param request LicenseAttachmentWorkflowsRegisterPilTermsAndAttachRequest
|
1869
1878
|
* @return Promise<WriteContractReturnType>
|
1870
|
-
*/},{key:"registerPilTermsAndAttach",value:(function(){var _registerPilTermsAndAttach=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
1879
|
+
*/},{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;}()/**
|
1871
1880
|
* method registerPILTermsAndAttach for contract LicenseAttachmentWorkflows with only encode
|
1872
1881
|
*
|
1873
1882
|
* @param request LicenseAttachmentWorkflowsRegisterPilTermsAndAttachRequest
|
@@ -2064,187 +2073,187 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2064
2073
|
* @param data bytes
|
2065
2074
|
*/ /**
|
2066
2075
|
* contract LicenseRegistry event
|
2067
|
-
*/var LicenseRegistryEventClient=/*#__PURE__*/function(){function LicenseRegistryEventClient(rpcClient,address){var _rpcClient$
|
2076
|
+
*/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;}/**
|
2068
2077
|
* event AuthorityUpdated for contract LicenseRegistry
|
2069
|
-
*/return _createClass(LicenseRegistryEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
2078
|
+
*/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);});}});}/**
|
2070
2079
|
* parse tx receipt event AuthorityUpdated for contract LicenseRegistry
|
2071
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
2080
|
+
*/},{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=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;}/**
|
2072
2081
|
* event DefaultLicenseTermsSet for contract LicenseRegistry
|
2073
|
-
*/},{key:"watchDefaultLicenseTermsSetEvent",value:function watchDefaultLicenseTermsSetEvent(
|
2082
|
+
*/},{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);});}});}/**
|
2074
2083
|
* parse tx receipt event DefaultLicenseTermsSet for contract LicenseRegistry
|
2075
|
-
*/},{key:"parseTxDefaultLicenseTermsSetEvent",value:function parseTxDefaultLicenseTermsSetEvent(txReceipt){var targetLogs=[];var
|
2084
|
+
*/},{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=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;}/**
|
2076
2085
|
* event ExpirationTimeSet for contract LicenseRegistry
|
2077
|
-
*/},{key:"watchExpirationTimeSetEvent",value:function watchExpirationTimeSetEvent(
|
2086
|
+
*/},{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);});}});}/**
|
2078
2087
|
* parse tx receipt event ExpirationTimeSet for contract LicenseRegistry
|
2079
|
-
*/},{key:"parseTxExpirationTimeSetEvent",value:function parseTxExpirationTimeSetEvent(txReceipt){var targetLogs=[];var
|
2088
|
+
*/},{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=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;}/**
|
2080
2089
|
* event Initialized for contract LicenseRegistry
|
2081
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
2090
|
+
*/},{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);});}});}/**
|
2082
2091
|
* parse tx receipt event Initialized for contract LicenseRegistry
|
2083
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
2092
|
+
*/},{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=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;}/**
|
2084
2093
|
* event LicenseTemplateRegistered for contract LicenseRegistry
|
2085
|
-
*/},{key:"watchLicenseTemplateRegisteredEvent",value:function watchLicenseTemplateRegisteredEvent(
|
2094
|
+
*/},{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);});}});}/**
|
2086
2095
|
* parse tx receipt event LicenseTemplateRegistered for contract LicenseRegistry
|
2087
|
-
*/},{key:"parseTxLicenseTemplateRegisteredEvent",value:function parseTxLicenseTemplateRegisteredEvent(txReceipt){var targetLogs=[];var
|
2096
|
+
*/},{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=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;}/**
|
2088
2097
|
* event LicensingConfigSetForIP for contract LicenseRegistry
|
2089
|
-
*/},{key:"watchLicensingConfigSetForIpEvent",value:function watchLicensingConfigSetForIpEvent(
|
2098
|
+
*/},{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);});}});}/**
|
2090
2099
|
* parse tx receipt event LicensingConfigSetForIP for contract LicenseRegistry
|
2091
|
-
*/},{key:"parseTxLicensingConfigSetForIpEvent",value:function parseTxLicensingConfigSetForIpEvent(txReceipt){var targetLogs=[];var
|
2100
|
+
*/},{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=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;}/**
|
2092
2101
|
* event LicensingConfigSetForLicense for contract LicenseRegistry
|
2093
|
-
*/},{key:"watchLicensingConfigSetForLicenseEvent",value:function watchLicensingConfigSetForLicenseEvent(
|
2102
|
+
*/},{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);});}});}/**
|
2094
2103
|
* parse tx receipt event LicensingConfigSetForLicense for contract LicenseRegistry
|
2095
|
-
*/},{key:"parseTxLicensingConfigSetForLicenseEvent",value:function parseTxLicensingConfigSetForLicenseEvent(txReceipt){var targetLogs=[];var
|
2104
|
+
*/},{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=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;}/**
|
2096
2105
|
* event Upgraded for contract LicenseRegistry
|
2097
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
2106
|
+
*/},{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);});}});}/**
|
2098
2107
|
* parse tx receipt event Upgraded for contract LicenseRegistry
|
2099
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
2108
|
+
*/},{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=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;}}]);}();/**
|
2100
2109
|
* contract LicenseRegistry readonly method
|
2101
2110
|
*/var LicenseRegistryReadOnlyClient=/*#__PURE__*/function(_LicenseRegistryEvent){function LicenseRegistryReadOnlyClient(rpcClient,address){_classCallCheck(this,LicenseRegistryReadOnlyClient);return _callSuper(this,LicenseRegistryReadOnlyClient,[rpcClient,address]);}/**
|
2102
2111
|
* method DISPUTE_MODULE for contract LicenseRegistry
|
2103
2112
|
*
|
2104
2113
|
* @param request LicenseRegistryDisputeModuleRequest
|
2105
2114
|
* @return Promise<LicenseRegistryDisputeModuleResponse>
|
2106
|
-
*/_inherits(LicenseRegistryReadOnlyClient,_LicenseRegistryEvent);return _createClass(LicenseRegistryReadOnlyClient,[{key:"disputeModule",value:(function(){var
|
2115
|
+
*/_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;}()/**
|
2107
2116
|
* method EXPIRATION_TIME for contract LicenseRegistry
|
2108
2117
|
*
|
2109
2118
|
* @param request LicenseRegistryExpirationTimeRequest
|
2110
2119
|
* @return Promise<LicenseRegistryExpirationTimeResponse>
|
2111
|
-
*/)},{key:"expirationTime",value:(function(){var _expirationTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2120
|
+
*/)},{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;}()/**
|
2112
2121
|
* method IP_GRAPH for contract LicenseRegistry
|
2113
2122
|
*
|
2114
2123
|
* @param request LicenseRegistryIpGraphRequest
|
2115
2124
|
* @return Promise<LicenseRegistryIpGraphResponse>
|
2116
|
-
*/)},{key:"ipGraph",value:(function(){var _ipGraph=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2125
|
+
*/)},{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;}()/**
|
2117
2126
|
* method IP_GRAPH_ACL for contract LicenseRegistry
|
2118
2127
|
*
|
2119
2128
|
* @param request LicenseRegistryIpGraphAclRequest
|
2120
2129
|
* @return Promise<LicenseRegistryIpGraphAclResponse>
|
2121
|
-
*/)},{key:"ipGraphAcl",value:(function(){var _ipGraphAcl=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2130
|
+
*/)},{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;}()/**
|
2122
2131
|
* method LICENSING_MODULE for contract LicenseRegistry
|
2123
2132
|
*
|
2124
2133
|
* @param request LicenseRegistryLicensingModuleRequest
|
2125
2134
|
* @return Promise<LicenseRegistryLicensingModuleResponse>
|
2126
|
-
*/)},{key:"licensingModule",value:(function(){var _licensingModule=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2135
|
+
*/)},{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;}()/**
|
2127
2136
|
* method UPGRADE_INTERFACE_VERSION for contract LicenseRegistry
|
2128
2137
|
*
|
2129
2138
|
* @param request LicenseRegistryUpgradeInterfaceVersionRequest
|
2130
2139
|
* @return Promise<LicenseRegistryUpgradeInterfaceVersionResponse>
|
2131
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
2140
|
+
*/)},{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;}()/**
|
2132
2141
|
* method authority for contract LicenseRegistry
|
2133
2142
|
*
|
2134
2143
|
* @param request LicenseRegistryAuthorityRequest
|
2135
2144
|
* @return Promise<LicenseRegistryAuthorityResponse>
|
2136
|
-
*/)},{key:"authority",value:(function(){var
|
2145
|
+
*/)},{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;}()/**
|
2137
2146
|
* method exists for contract LicenseRegistry
|
2138
2147
|
*
|
2139
2148
|
* @param request LicenseRegistryExistsRequest
|
2140
2149
|
* @return Promise<LicenseRegistryExistsResponse>
|
2141
|
-
*/)},{key:"exists",value:(function(){var _exists=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2150
|
+
*/)},{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;}()/**
|
2142
2151
|
* method getAttachedLicenseTerms for contract LicenseRegistry
|
2143
2152
|
*
|
2144
2153
|
* @param request LicenseRegistryGetAttachedLicenseTermsRequest
|
2145
2154
|
* @return Promise<LicenseRegistryGetAttachedLicenseTermsResponse>
|
2146
|
-
*/)},{key:"getAttachedLicenseTerms",value:(function(){var _getAttachedLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2155
|
+
*/)},{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;}()/**
|
2147
2156
|
* method getAttachedLicenseTermsCount for contract LicenseRegistry
|
2148
2157
|
*
|
2149
2158
|
* @param request LicenseRegistryGetAttachedLicenseTermsCountRequest
|
2150
2159
|
* @return Promise<LicenseRegistryGetAttachedLicenseTermsCountResponse>
|
2151
|
-
*/)},{key:"getAttachedLicenseTermsCount",value:(function(){var _getAttachedLicenseTermsCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2160
|
+
*/)},{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;}()/**
|
2152
2161
|
* method getDefaultLicenseTerms for contract LicenseRegistry
|
2153
2162
|
*
|
2154
2163
|
* @param request LicenseRegistryGetDefaultLicenseTermsRequest
|
2155
2164
|
* @return Promise<LicenseRegistryGetDefaultLicenseTermsResponse>
|
2156
|
-
*/)},{key:"getDefaultLicenseTerms",value:(function(){var _getDefaultLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2165
|
+
*/)},{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;}()/**
|
2157
2166
|
* method getDerivativeIp for contract LicenseRegistry
|
2158
2167
|
*
|
2159
2168
|
* @param request LicenseRegistryGetDerivativeIpRequest
|
2160
2169
|
* @return Promise<LicenseRegistryGetDerivativeIpResponse>
|
2161
|
-
*/)},{key:"getDerivativeIp",value:(function(){var _getDerivativeIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2170
|
+
*/)},{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;}()/**
|
2162
2171
|
* method getDerivativeIpCount for contract LicenseRegistry
|
2163
2172
|
*
|
2164
2173
|
* @param request LicenseRegistryGetDerivativeIpCountRequest
|
2165
2174
|
* @return Promise<LicenseRegistryGetDerivativeIpCountResponse>
|
2166
|
-
*/)},{key:"getDerivativeIpCount",value:(function(){var _getDerivativeIpCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2175
|
+
*/)},{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;}()/**
|
2167
2176
|
* method getExpireTime for contract LicenseRegistry
|
2168
2177
|
*
|
2169
2178
|
* @param request LicenseRegistryGetExpireTimeRequest
|
2170
2179
|
* @return Promise<LicenseRegistryGetExpireTimeResponse>
|
2171
|
-
*/)},{key:"getExpireTime",value:(function(){var _getExpireTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2180
|
+
*/)},{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;}()/**
|
2172
2181
|
* method getLicensingConfig for contract LicenseRegistry
|
2173
2182
|
*
|
2174
2183
|
* @param request LicenseRegistryGetLicensingConfigRequest
|
2175
2184
|
* @return Promise<LicenseRegistryGetLicensingConfigResponse>
|
2176
|
-
*/)},{key:"getLicensingConfig",value:(function(){var _getLicensingConfig=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2185
|
+
*/)},{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;}()/**
|
2177
2186
|
* method getParentIp for contract LicenseRegistry
|
2178
2187
|
*
|
2179
2188
|
* @param request LicenseRegistryGetParentIpRequest
|
2180
2189
|
* @return Promise<LicenseRegistryGetParentIpResponse>
|
2181
|
-
*/)},{key:"getParentIp",value:(function(){var _getParentIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2190
|
+
*/)},{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;}()/**
|
2182
2191
|
* method getParentIpCount for contract LicenseRegistry
|
2183
2192
|
*
|
2184
2193
|
* @param request LicenseRegistryGetParentIpCountRequest
|
2185
2194
|
* @return Promise<LicenseRegistryGetParentIpCountResponse>
|
2186
|
-
*/)},{key:"getParentIpCount",value:(function(){var _getParentIpCount=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2195
|
+
*/)},{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;}()/**
|
2187
2196
|
* method getParentLicenseTerms for contract LicenseRegistry
|
2188
2197
|
*
|
2189
2198
|
* @param request LicenseRegistryGetParentLicenseTermsRequest
|
2190
2199
|
* @return Promise<LicenseRegistryGetParentLicenseTermsResponse>
|
2191
|
-
*/)},{key:"getParentLicenseTerms",value:(function(){var _getParentLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2200
|
+
*/)},{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;}()/**
|
2192
2201
|
* method hasDerivativeIps for contract LicenseRegistry
|
2193
2202
|
*
|
2194
2203
|
* @param request LicenseRegistryHasDerivativeIpsRequest
|
2195
2204
|
* @return Promise<LicenseRegistryHasDerivativeIpsResponse>
|
2196
|
-
*/)},{key:"hasDerivativeIps",value:(function(){var _hasDerivativeIps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2205
|
+
*/)},{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;}()/**
|
2197
2206
|
* method hasIpAttachedLicenseTerms for contract LicenseRegistry
|
2198
2207
|
*
|
2199
2208
|
* @param request LicenseRegistryHasIpAttachedLicenseTermsRequest
|
2200
2209
|
* @return Promise<LicenseRegistryHasIpAttachedLicenseTermsResponse>
|
2201
|
-
*/)},{key:"hasIpAttachedLicenseTerms",value:(function(){var _hasIpAttachedLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2210
|
+
*/)},{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;}()/**
|
2202
2211
|
* method isConsumingScheduledOp for contract LicenseRegistry
|
2203
2212
|
*
|
2204
2213
|
* @param request LicenseRegistryIsConsumingScheduledOpRequest
|
2205
2214
|
* @return Promise<LicenseRegistryIsConsumingScheduledOpResponse>
|
2206
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
2215
|
+
*/)},{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;}()/**
|
2207
2216
|
* method isDerivativeIp for contract LicenseRegistry
|
2208
2217
|
*
|
2209
2218
|
* @param request LicenseRegistryIsDerivativeIpRequest
|
2210
2219
|
* @return Promise<LicenseRegistryIsDerivativeIpResponse>
|
2211
|
-
*/)},{key:"isDerivativeIp",value:(function(){var _isDerivativeIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2220
|
+
*/)},{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;}()/**
|
2212
2221
|
* method isExpiredNow for contract LicenseRegistry
|
2213
2222
|
*
|
2214
2223
|
* @param request LicenseRegistryIsExpiredNowRequest
|
2215
2224
|
* @return Promise<LicenseRegistryIsExpiredNowResponse>
|
2216
|
-
*/)},{key:"isExpiredNow",value:(function(){var _isExpiredNow=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2225
|
+
*/)},{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;}()/**
|
2217
2226
|
* method isParentIp for contract LicenseRegistry
|
2218
2227
|
*
|
2219
2228
|
* @param request LicenseRegistryIsParentIpRequest
|
2220
2229
|
* @return Promise<LicenseRegistryIsParentIpResponse>
|
2221
|
-
*/)},{key:"isParentIp",value:(function(){var _isParentIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2230
|
+
*/)},{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;}()/**
|
2222
2231
|
* method isRegisteredLicenseTemplate for contract LicenseRegistry
|
2223
2232
|
*
|
2224
2233
|
* @param request LicenseRegistryIsRegisteredLicenseTemplateRequest
|
2225
2234
|
* @return Promise<LicenseRegistryIsRegisteredLicenseTemplateResponse>
|
2226
|
-
*/)},{key:"isRegisteredLicenseTemplate",value:(function(){var _isRegisteredLicenseTemplate=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2235
|
+
*/)},{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;}()/**
|
2227
2236
|
* method proxiableUUID for contract LicenseRegistry
|
2228
2237
|
*
|
2229
2238
|
* @param request LicenseRegistryProxiableUuidRequest
|
2230
2239
|
* @return Promise<LicenseRegistryProxiableUuidResponse>
|
2231
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
2240
|
+
*/)},{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;}()/**
|
2232
2241
|
* method verifyMintLicenseToken for contract LicenseRegistry
|
2233
2242
|
*
|
2234
2243
|
* @param request LicenseRegistryVerifyMintLicenseTokenRequest
|
2235
2244
|
* @return Promise<LicenseRegistryVerifyMintLicenseTokenResponse>
|
2236
|
-
*/)},{key:"verifyMintLicenseToken",value:(function(){var _verifyMintLicenseToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2245
|
+
*/)},{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);/**
|
2237
2246
|
* LicenseTokenOwnerOfRequest
|
2238
2247
|
*
|
2239
2248
|
* @param tokenId uint256
|
2240
2249
|
*/ /**
|
2241
2250
|
* contract LicenseToken readonly method
|
2242
|
-
*/var LicenseTokenReadOnlyClient=/*#__PURE__*/function(){function LicenseTokenReadOnlyClient(rpcClient,address){var _rpcClient$
|
2251
|
+
*/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;}/**
|
2243
2252
|
* method ownerOf for contract LicenseToken
|
2244
2253
|
*
|
2245
2254
|
* @param request LicenseTokenOwnerOfRequest
|
2246
2255
|
* @return Promise<LicenseTokenOwnerOfResponse>
|
2247
|
-
*/return _createClass(LicenseTokenReadOnlyClient,[{key:"ownerOf",value:(function(){var _ownerOf=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2256
|
+
*/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 =============================================================
|
2248
2257
|
/**
|
2249
2258
|
* LicensingModuleLicenseTermsAttachedEvent
|
2250
2259
|
*
|
@@ -2306,30 +2315,37 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2306
2315
|
* @param licenseTokenIds uint256[]
|
2307
2316
|
* @param royaltyContext bytes
|
2308
2317
|
*/ /**
|
2318
|
+
* LicensingModuleSetLicensingConfigRequest
|
2319
|
+
*
|
2320
|
+
* @param ipId address
|
2321
|
+
* @param licenseTemplate address
|
2322
|
+
* @param licenseTermsId uint256
|
2323
|
+
* @param licensingConfig tuple
|
2324
|
+
*/ /**
|
2309
2325
|
* contract LicensingModule event
|
2310
|
-
*/var LicensingModuleEventClient=/*#__PURE__*/function(){function LicensingModuleEventClient(rpcClient,address){var _rpcClient$
|
2326
|
+
*/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;}/**
|
2311
2327
|
* event LicenseTermsAttached for contract LicensingModule
|
2312
|
-
*/return _createClass(LicensingModuleEventClient,[{key:"watchLicenseTermsAttachedEvent",value:function watchLicenseTermsAttachedEvent(
|
2328
|
+
*/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);});}});}/**
|
2313
2329
|
* parse tx receipt event LicenseTermsAttached for contract LicensingModule
|
2314
|
-
*/},{key:"parseTxLicenseTermsAttachedEvent",value:function parseTxLicenseTermsAttachedEvent(txReceipt){var targetLogs=[];var
|
2330
|
+
*/},{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=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;}/**
|
2315
2331
|
* event LicenseTokensMinted for contract LicensingModule
|
2316
|
-
*/},{key:"watchLicenseTokensMintedEvent",value:function watchLicenseTokensMintedEvent(
|
2332
|
+
*/},{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);});}});}/**
|
2317
2333
|
* parse tx receipt event LicenseTokensMinted for contract LicensingModule
|
2318
|
-
*/},{key:"parseTxLicenseTokensMintedEvent",value:function parseTxLicenseTokensMintedEvent(txReceipt){var targetLogs=[];var
|
2334
|
+
*/},{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=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;}}]);}();/**
|
2319
2335
|
* contract LicensingModule readonly method
|
2320
2336
|
*/var LicensingModuleReadOnlyClient=/*#__PURE__*/function(_LicensingModuleEvent){function LicensingModuleReadOnlyClient(rpcClient,address){_classCallCheck(this,LicensingModuleReadOnlyClient);return _callSuper(this,LicensingModuleReadOnlyClient,[rpcClient,address]);}/**
|
2321
2337
|
* method predictMintingLicenseFee for contract LicensingModule
|
2322
2338
|
*
|
2323
2339
|
* @param request LicensingModulePredictMintingLicenseFeeRequest
|
2324
2340
|
* @return Promise<LicensingModulePredictMintingLicenseFeeResponse>
|
2325
|
-
*/_inherits(LicensingModuleReadOnlyClient,_LicensingModuleEvent);return _createClass(LicensingModuleReadOnlyClient,[{key:"predictMintingLicenseFee",value:(function(){var _predictMintingLicenseFee=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2341
|
+
*/_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);/**
|
2326
2342
|
* contract LicensingModule write method
|
2327
|
-
*/var LicensingModuleClient=/*#__PURE__*/function(_LicensingModuleReadO){function LicensingModuleClient(rpcClient,wallet,address){var
|
2343
|
+
*/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;}/**
|
2328
2344
|
* method attachLicenseTerms for contract LicensingModule
|
2329
2345
|
*
|
2330
2346
|
* @param request LicensingModuleAttachLicenseTermsRequest
|
2331
2347
|
* @return Promise<WriteContractReturnType>
|
2332
|
-
*/_inherits(LicensingModuleClient,_LicensingModuleReadO);return _createClass(LicensingModuleClient,[{key:"attachLicenseTerms",value:(function(){var _attachLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2348
|
+
*/_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;}()/**
|
2333
2349
|
* method attachLicenseTerms for contract LicensingModule with only encode
|
2334
2350
|
*
|
2335
2351
|
* @param request LicensingModuleAttachLicenseTermsRequest
|
@@ -2339,7 +2355,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2339
2355
|
*
|
2340
2356
|
* @param request LicensingModuleMintLicenseTokensRequest
|
2341
2357
|
* @return Promise<WriteContractReturnType>
|
2342
|
-
*/},{key:"mintLicenseTokens",value:(function(){var _mintLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2358
|
+
*/},{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;}()/**
|
2343
2359
|
* method mintLicenseTokens for contract LicensingModule with only encode
|
2344
2360
|
*
|
2345
2361
|
* @param request LicensingModuleMintLicenseTokensRequest
|
@@ -2349,7 +2365,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2349
2365
|
*
|
2350
2366
|
* @param request LicensingModuleRegisterDerivativeRequest
|
2351
2367
|
* @return Promise<WriteContractReturnType>
|
2352
|
-
*/},{key:"registerDerivative",value:(function(){var _registerDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2368
|
+
*/},{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;}()/**
|
2353
2369
|
* method registerDerivative for contract LicensingModule with only encode
|
2354
2370
|
*
|
2355
2371
|
* @param request LicensingModuleRegisterDerivativeRequest
|
@@ -2359,12 +2375,34 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2359
2375
|
*
|
2360
2376
|
* @param request LicensingModuleRegisterDerivativeWithLicenseTokensRequest
|
2361
2377
|
* @return Promise<WriteContractReturnType>
|
2362
|
-
*/},{key:"registerDerivativeWithLicenseTokens",value:(function(){var _registerDerivativeWithLicenseTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2378
|
+
*/},{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;}()/**
|
2363
2379
|
* method registerDerivativeWithLicenseTokens for contract LicensingModule with only encode
|
2364
2380
|
*
|
2365
2381
|
* @param request LicensingModuleRegisterDerivativeWithLicenseTokensRequest
|
2366
2382
|
* @return EncodedTxData
|
2367
|
-
*/)},{key:"registerDerivativeWithLicenseTokensEncode",value:function registerDerivativeWithLicenseTokensEncode(request){return {to:this.address,data:encodeFunctionData({abi:licensingModuleAbi,functionName:"registerDerivativeWithLicenseTokens",args:[request.childIpId,request.licenseTokenIds,request.royaltyContext]})};}
|
2383
|
+
*/)},{key:"registerDerivativeWithLicenseTokensEncode",value:function registerDerivativeWithLicenseTokensEncode(request){return {to:this.address,data:encodeFunctionData({abi:licensingModuleAbi,functionName:"registerDerivativeWithLicenseTokens",args:[request.childIpId,request.licenseTokenIds,request.royaltyContext]})};}/**
|
2384
|
+
* method setLicensingConfig for contract LicensingModule
|
2385
|
+
*
|
2386
|
+
* @param request LicensingModuleSetLicensingConfigRequest
|
2387
|
+
* @return Promise<WriteContractReturnType>
|
2388
|
+
*/},{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;}()/**
|
2389
|
+
* method setLicensingConfig for contract LicensingModule with only encode
|
2390
|
+
*
|
2391
|
+
* @param request LicensingModuleSetLicensingConfigRequest
|
2392
|
+
* @return EncodedTxData
|
2393
|
+
*/)},{key:"setLicensingConfigEncode",value:function setLicensingConfigEncode(request){return {to:this.address,data:encodeFunctionData({abi:licensingModuleAbi,functionName:"setLicensingConfig",args:[request.ipId,request.licenseTemplate,request.licenseTermsId,request.licensingConfig]})};}}]);}(LicensingModuleReadOnlyClient);// Contract MockERC20 =============================================================
|
2394
|
+
/**
|
2395
|
+
* ModuleRegistryIsRegisteredRequest
|
2396
|
+
*
|
2397
|
+
* @param moduleAddress address
|
2398
|
+
*/ /**
|
2399
|
+
* contract ModuleRegistry readonly method
|
2400
|
+
*/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;}/**
|
2401
|
+
* method isRegistered for contract ModuleRegistry
|
2402
|
+
*
|
2403
|
+
* @param request ModuleRegistryIsRegisteredRequest
|
2404
|
+
* @return Promise<ModuleRegistryIsRegisteredResponse>
|
2405
|
+
*/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 =============================================================
|
2368
2406
|
/**
|
2369
2407
|
* PiLicenseTemplateAuthorityUpdatedEvent
|
2370
2408
|
*
|
@@ -2506,156 +2544,156 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2506
2544
|
* @param childIpOwner address
|
2507
2545
|
*/ /**
|
2508
2546
|
* contract PILicenseTemplate event
|
2509
|
-
*/var PiLicenseTemplateEventClient=/*#__PURE__*/function(){function PiLicenseTemplateEventClient(rpcClient,address){var _rpcClient$
|
2547
|
+
*/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;}/**
|
2510
2548
|
* event AuthorityUpdated for contract PILicenseTemplate
|
2511
|
-
*/return _createClass(PiLicenseTemplateEventClient,[{key:"watchAuthorityUpdatedEvent",value:function watchAuthorityUpdatedEvent(
|
2549
|
+
*/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);});}});}/**
|
2512
2550
|
* parse tx receipt event AuthorityUpdated for contract PILicenseTemplate
|
2513
|
-
*/},{key:"parseTxAuthorityUpdatedEvent",value:function parseTxAuthorityUpdatedEvent(txReceipt){var targetLogs=[];var
|
2551
|
+
*/},{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=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;}/**
|
2514
2552
|
* event DerivativeApproved for contract PILicenseTemplate
|
2515
|
-
*/},{key:"watchDerivativeApprovedEvent",value:function watchDerivativeApprovedEvent(
|
2553
|
+
*/},{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);});}});}/**
|
2516
2554
|
* parse tx receipt event DerivativeApproved for contract PILicenseTemplate
|
2517
|
-
*/},{key:"parseTxDerivativeApprovedEvent",value:function parseTxDerivativeApprovedEvent(txReceipt){var targetLogs=[];var
|
2555
|
+
*/},{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=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;}/**
|
2518
2556
|
* event Initialized for contract PILicenseTemplate
|
2519
|
-
*/},{key:"watchInitializedEvent",value:function watchInitializedEvent(
|
2557
|
+
*/},{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);});}});}/**
|
2520
2558
|
* parse tx receipt event Initialized for contract PILicenseTemplate
|
2521
|
-
*/},{key:"parseTxInitializedEvent",value:function parseTxInitializedEvent(txReceipt){var targetLogs=[];var
|
2559
|
+
*/},{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=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;}/**
|
2522
2560
|
* event LicenseTermsRegistered for contract PILicenseTemplate
|
2523
|
-
*/},{key:"watchLicenseTermsRegisteredEvent",value:function watchLicenseTermsRegisteredEvent(
|
2561
|
+
*/},{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);});}});}/**
|
2524
2562
|
* parse tx receipt event LicenseTermsRegistered for contract PILicenseTemplate
|
2525
|
-
*/},{key:"parseTxLicenseTermsRegisteredEvent",value:function parseTxLicenseTermsRegisteredEvent(txReceipt){var targetLogs=[];var
|
2563
|
+
*/},{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=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;}/**
|
2526
2564
|
* event Upgraded for contract PILicenseTemplate
|
2527
|
-
*/},{key:"watchUpgradedEvent",value:function watchUpgradedEvent(
|
2565
|
+
*/},{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);});}});}/**
|
2528
2566
|
* parse tx receipt event Upgraded for contract PILicenseTemplate
|
2529
|
-
*/},{key:"parseTxUpgradedEvent",value:function parseTxUpgradedEvent(txReceipt){var targetLogs=[];var
|
2567
|
+
*/},{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=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;}}]);}();/**
|
2530
2568
|
* contract PILicenseTemplate readonly method
|
2531
2569
|
*/var PiLicenseTemplateReadOnlyClient=/*#__PURE__*/function(_PiLicenseTemplateEve){function PiLicenseTemplateReadOnlyClient(rpcClient,address){_classCallCheck(this,PiLicenseTemplateReadOnlyClient);return _callSuper(this,PiLicenseTemplateReadOnlyClient,[rpcClient,address]);}/**
|
2532
2570
|
* method ACCESS_CONTROLLER for contract PILicenseTemplate
|
2533
2571
|
*
|
2534
2572
|
* @param request PiLicenseTemplateAccessControllerRequest
|
2535
2573
|
* @return Promise<PiLicenseTemplateAccessControllerResponse>
|
2536
|
-
*/_inherits(PiLicenseTemplateReadOnlyClient,_PiLicenseTemplateEve);return _createClass(PiLicenseTemplateReadOnlyClient,[{key:"accessController",value:(function(){var _accessController3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2574
|
+
*/_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;}()/**
|
2537
2575
|
* method IP_ACCOUNT_REGISTRY for contract PILicenseTemplate
|
2538
2576
|
*
|
2539
2577
|
* @param request PiLicenseTemplateIpAccountRegistryRequest
|
2540
2578
|
* @return Promise<PiLicenseTemplateIpAccountRegistryResponse>
|
2541
|
-
*/)},{key:"ipAccountRegistry",value:(function(){var _ipAccountRegistry3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2579
|
+
*/)},{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;}()/**
|
2542
2580
|
* method LICENSE_REGISTRY for contract PILicenseTemplate
|
2543
2581
|
*
|
2544
2582
|
* @param request PiLicenseTemplateLicenseRegistryRequest
|
2545
2583
|
* @return Promise<PiLicenseTemplateLicenseRegistryResponse>
|
2546
|
-
*/)},{key:"licenseRegistry",value:(function(){var _licenseRegistry2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2584
|
+
*/)},{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;}()/**
|
2547
2585
|
* method ROYALTY_MODULE for contract PILicenseTemplate
|
2548
2586
|
*
|
2549
2587
|
* @param request PiLicenseTemplateRoyaltyModuleRequest
|
2550
2588
|
* @return Promise<PiLicenseTemplateRoyaltyModuleResponse>
|
2551
|
-
*/)},{key:"royaltyModule",value:(function(){var _royaltyModule3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2589
|
+
*/)},{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;}()/**
|
2552
2590
|
* method TERMS_RENDERER for contract PILicenseTemplate
|
2553
2591
|
*
|
2554
2592
|
* @param request PiLicenseTemplateTermsRendererRequest
|
2555
2593
|
* @return Promise<PiLicenseTemplateTermsRendererResponse>
|
2556
|
-
*/)},{key:"termsRenderer",value:(function(){var _termsRenderer=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2594
|
+
*/)},{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;}()/**
|
2557
2595
|
* method UPGRADE_INTERFACE_VERSION for contract PILicenseTemplate
|
2558
2596
|
*
|
2559
2597
|
* @param request PiLicenseTemplateUpgradeInterfaceVersionRequest
|
2560
2598
|
* @return Promise<PiLicenseTemplateUpgradeInterfaceVersionResponse>
|
2561
|
-
*/)},{key:"upgradeInterfaceVersion",value:(function(){var
|
2599
|
+
*/)},{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;}()/**
|
2562
2600
|
* method authority for contract PILicenseTemplate
|
2563
2601
|
*
|
2564
2602
|
* @param request PiLicenseTemplateAuthorityRequest
|
2565
2603
|
* @return Promise<PiLicenseTemplateAuthorityResponse>
|
2566
|
-
*/)},{key:"authority",value:(function(){var
|
2604
|
+
*/)},{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;}()/**
|
2567
2605
|
* method exists for contract PILicenseTemplate
|
2568
2606
|
*
|
2569
2607
|
* @param request PiLicenseTemplateExistsRequest
|
2570
2608
|
* @return Promise<PiLicenseTemplateExistsResponse>
|
2571
|
-
*/)},{key:"exists",value:(function(){var _exists2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2609
|
+
*/)},{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;}()/**
|
2572
2610
|
* method getEarlierExpireTime for contract PILicenseTemplate
|
2573
2611
|
*
|
2574
2612
|
* @param request PiLicenseTemplateGetEarlierExpireTimeRequest
|
2575
2613
|
* @return Promise<PiLicenseTemplateGetEarlierExpireTimeResponse>
|
2576
|
-
*/)},{key:"getEarlierExpireTime",value:(function(){var _getEarlierExpireTime=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2614
|
+
*/)},{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;}()/**
|
2577
2615
|
* method getExpireTime for contract PILicenseTemplate
|
2578
2616
|
*
|
2579
2617
|
* @param request PiLicenseTemplateGetExpireTimeRequest
|
2580
2618
|
* @return Promise<PiLicenseTemplateGetExpireTimeResponse>
|
2581
|
-
*/)},{key:"getExpireTime",value:(function(){var _getExpireTime2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2619
|
+
*/)},{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;}()/**
|
2582
2620
|
* method getLicenseTerms for contract PILicenseTemplate
|
2583
2621
|
*
|
2584
2622
|
* @param request PiLicenseTemplateGetLicenseTermsRequest
|
2585
2623
|
* @return Promise<PiLicenseTemplateGetLicenseTermsResponse>
|
2586
|
-
*/)},{key:"getLicenseTerms",value:(function(){var _getLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2624
|
+
*/)},{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;}()/**
|
2587
2625
|
* method getLicenseTermsId for contract PILicenseTemplate
|
2588
2626
|
*
|
2589
2627
|
* @param request PiLicenseTemplateGetLicenseTermsIdRequest
|
2590
2628
|
* @return Promise<PiLicenseTemplateGetLicenseTermsIdResponse>
|
2591
|
-
*/)},{key:"getLicenseTermsId",value:(function(){var _getLicenseTermsId=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2629
|
+
*/)},{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;}()/**
|
2592
2630
|
* method getLicenseTermsURI for contract PILicenseTemplate
|
2593
2631
|
*
|
2594
2632
|
* @param request PiLicenseTemplateGetLicenseTermsUriRequest
|
2595
2633
|
* @return Promise<PiLicenseTemplateGetLicenseTermsUriResponse>
|
2596
|
-
*/)},{key:"getLicenseTermsUri",value:(function(){var _getLicenseTermsUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2634
|
+
*/)},{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;}()/**
|
2597
2635
|
* method getMetadataURI for contract PILicenseTemplate
|
2598
2636
|
*
|
2599
2637
|
* @param request PiLicenseTemplateGetMetadataUriRequest
|
2600
2638
|
* @return Promise<PiLicenseTemplateGetMetadataUriResponse>
|
2601
|
-
*/)},{key:"getMetadataUri",value:(function(){var _getMetadataUri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2639
|
+
*/)},{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;}()/**
|
2602
2640
|
* method getRoyaltyPolicy for contract PILicenseTemplate
|
2603
2641
|
*
|
2604
2642
|
* @param request PiLicenseTemplateGetRoyaltyPolicyRequest
|
2605
2643
|
* @return Promise<PiLicenseTemplateGetRoyaltyPolicyResponse>
|
2606
|
-
*/)},{key:"getRoyaltyPolicy",value:(function(){var _getRoyaltyPolicy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2644
|
+
*/)},{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;}()/**
|
2607
2645
|
* method isConsumingScheduledOp for contract PILicenseTemplate
|
2608
2646
|
*
|
2609
2647
|
* @param request PiLicenseTemplateIsConsumingScheduledOpRequest
|
2610
2648
|
* @return Promise<PiLicenseTemplateIsConsumingScheduledOpResponse>
|
2611
|
-
*/)},{key:"isConsumingScheduledOp",value:(function(){var
|
2649
|
+
*/)},{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;}()/**
|
2612
2650
|
* method isDerivativeApproved for contract PILicenseTemplate
|
2613
2651
|
*
|
2614
2652
|
* @param request PiLicenseTemplateIsDerivativeApprovedRequest
|
2615
2653
|
* @return Promise<PiLicenseTemplateIsDerivativeApprovedResponse>
|
2616
|
-
*/)},{key:"isDerivativeApproved",value:(function(){var _isDerivativeApproved=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2654
|
+
*/)},{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;}()/**
|
2617
2655
|
* method isLicenseTransferable for contract PILicenseTemplate
|
2618
2656
|
*
|
2619
2657
|
* @param request PiLicenseTemplateIsLicenseTransferableRequest
|
2620
2658
|
* @return Promise<PiLicenseTemplateIsLicenseTransferableResponse>
|
2621
|
-
*/)},{key:"isLicenseTransferable",value:(function(){var _isLicenseTransferable=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2659
|
+
*/)},{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;}()/**
|
2622
2660
|
* method name for contract PILicenseTemplate
|
2623
2661
|
*
|
2624
2662
|
* @param request PiLicenseTemplateNameRequest
|
2625
2663
|
* @return Promise<PiLicenseTemplateNameResponse>
|
2626
|
-
*/)},{key:"name",value:(function(){var _name4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2664
|
+
*/)},{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;}()/**
|
2627
2665
|
* method proxiableUUID for contract PILicenseTemplate
|
2628
2666
|
*
|
2629
2667
|
* @param request PiLicenseTemplateProxiableUuidRequest
|
2630
2668
|
* @return Promise<PiLicenseTemplateProxiableUuidResponse>
|
2631
|
-
*/)},{key:"proxiableUuid",value:(function(){var
|
2669
|
+
*/)},{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;}()/**
|
2632
2670
|
* method supportsInterface for contract PILicenseTemplate
|
2633
2671
|
*
|
2634
2672
|
* @param request PiLicenseTemplateSupportsInterfaceRequest
|
2635
2673
|
* @return Promise<PiLicenseTemplateSupportsInterfaceResponse>
|
2636
|
-
*/)},{key:"supportsInterface",value:(function(){var _supportsInterface3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2674
|
+
*/)},{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;}()/**
|
2637
2675
|
* method toJson for contract PILicenseTemplate
|
2638
2676
|
*
|
2639
2677
|
* @param request PiLicenseTemplateToJsonRequest
|
2640
2678
|
* @return Promise<PiLicenseTemplateToJsonResponse>
|
2641
|
-
*/)},{key:"toJson",value:(function(){var _toJson=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2679
|
+
*/)},{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;}()/**
|
2642
2680
|
* method totalRegisteredLicenseTerms for contract PILicenseTemplate
|
2643
2681
|
*
|
2644
2682
|
* @param request PiLicenseTemplateTotalRegisteredLicenseTermsRequest
|
2645
2683
|
* @return Promise<PiLicenseTemplateTotalRegisteredLicenseTermsResponse>
|
2646
|
-
*/)},{key:"totalRegisteredLicenseTerms",value:(function(){var _totalRegisteredLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2684
|
+
*/)},{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;}()/**
|
2647
2685
|
* method verifyCompatibleLicenses for contract PILicenseTemplate
|
2648
2686
|
*
|
2649
2687
|
* @param request PiLicenseTemplateVerifyCompatibleLicensesRequest
|
2650
2688
|
* @return Promise<PiLicenseTemplateVerifyCompatibleLicensesResponse>
|
2651
|
-
*/)},{key:"verifyCompatibleLicenses",value:(function(){var _verifyCompatibleLicenses=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2689
|
+
*/)},{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);/**
|
2652
2690
|
* contract PILicenseTemplate write method
|
2653
|
-
*/var PiLicenseTemplateClient=/*#__PURE__*/function(_PiLicenseTemplateRea){function PiLicenseTemplateClient(rpcClient,wallet,address){var
|
2691
|
+
*/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;}/**
|
2654
2692
|
* method initialize for contract PILicenseTemplate
|
2655
2693
|
*
|
2656
2694
|
* @param request PiLicenseTemplateInitializeRequest
|
2657
2695
|
* @return Promise<WriteContractReturnType>
|
2658
|
-
*/_inherits(PiLicenseTemplateClient,_PiLicenseTemplateRea);return _createClass(PiLicenseTemplateClient,[{key:"initialize",value:(function(){var
|
2696
|
+
*/_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;}()/**
|
2659
2697
|
* method initialize for contract PILicenseTemplate with only encode
|
2660
2698
|
*
|
2661
2699
|
* @param request PiLicenseTemplateInitializeRequest
|
@@ -2665,7 +2703,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2665
2703
|
*
|
2666
2704
|
* @param request PiLicenseTemplateRegisterLicenseTermsRequest
|
2667
2705
|
* @return Promise<WriteContractReturnType>
|
2668
|
-
*/},{key:"registerLicenseTerms",value:(function(){var _registerLicenseTerms=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2706
|
+
*/},{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;}()/**
|
2669
2707
|
* method registerLicenseTerms for contract PILicenseTemplate with only encode
|
2670
2708
|
*
|
2671
2709
|
* @param request PiLicenseTemplateRegisterLicenseTermsRequest
|
@@ -2675,7 +2713,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2675
2713
|
*
|
2676
2714
|
* @param request PiLicenseTemplateSetApprovalRequest
|
2677
2715
|
* @return Promise<WriteContractReturnType>
|
2678
|
-
*/},{key:"setApproval",value:(function(){var _setApproval=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2716
|
+
*/},{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;}()/**
|
2679
2717
|
* method setApproval for contract PILicenseTemplate with only encode
|
2680
2718
|
*
|
2681
2719
|
* @param request PiLicenseTemplateSetApprovalRequest
|
@@ -2685,7 +2723,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2685
2723
|
*
|
2686
2724
|
* @param request PiLicenseTemplateSetAuthorityRequest
|
2687
2725
|
* @return Promise<WriteContractReturnType>
|
2688
|
-
*/},{key:"setAuthority",value:(function(){var
|
2726
|
+
*/},{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;}()/**
|
2689
2727
|
* method setAuthority for contract PILicenseTemplate with only encode
|
2690
2728
|
*
|
2691
2729
|
* @param request PiLicenseTemplateSetAuthorityRequest
|
@@ -2695,7 +2733,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2695
2733
|
*
|
2696
2734
|
* @param request PiLicenseTemplateUpgradeToAndCallRequest
|
2697
2735
|
* @return Promise<WriteContractReturnType>
|
2698
|
-
*/},{key:"upgradeToAndCall",value:(function(){var
|
2736
|
+
*/},{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;}()/**
|
2699
2737
|
* method upgradeToAndCall for contract PILicenseTemplate with only encode
|
2700
2738
|
*
|
2701
2739
|
* @param request PiLicenseTemplateUpgradeToAndCallRequest
|
@@ -2705,7 +2743,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2705
2743
|
*
|
2706
2744
|
* @param request PiLicenseTemplateVerifyMintLicenseTokenRequest
|
2707
2745
|
* @return Promise<WriteContractReturnType>
|
2708
|
-
*/},{key:"verifyMintLicenseToken",value:(function(){var _verifyMintLicenseToken2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2746
|
+
*/},{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;}()/**
|
2709
2747
|
* method verifyMintLicenseToken for contract PILicenseTemplate with only encode
|
2710
2748
|
*
|
2711
2749
|
* @param request PiLicenseTemplateVerifyMintLicenseTokenRequest
|
@@ -2715,7 +2753,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2715
2753
|
*
|
2716
2754
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeRequest
|
2717
2755
|
* @return Promise<WriteContractReturnType>
|
2718
|
-
*/},{key:"verifyRegisterDerivative",value:(function(){var _verifyRegisterDerivative=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2756
|
+
*/},{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;}()/**
|
2719
2757
|
* method verifyRegisterDerivative for contract PILicenseTemplate with only encode
|
2720
2758
|
*
|
2721
2759
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeRequest
|
@@ -2725,7 +2763,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2725
2763
|
*
|
2726
2764
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeForAllParentsRequest
|
2727
2765
|
* @return Promise<WriteContractReturnType>
|
2728
|
-
*/},{key:"verifyRegisterDerivativeForAllParents",value:(function(){var _verifyRegisterDerivativeForAllParents=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2766
|
+
*/},{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;}()/**
|
2729
2767
|
* method verifyRegisterDerivativeForAllParents for contract PILicenseTemplate with only encode
|
2730
2768
|
*
|
2731
2769
|
* @param request PiLicenseTemplateVerifyRegisterDerivativeForAllParentsRequest
|
@@ -2754,18 +2792,18 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2754
2792
|
* @param sigMetadata tuple
|
2755
2793
|
*/ /**
|
2756
2794
|
* contract RegistrationWorkflows event
|
2757
|
-
*/var RegistrationWorkflowsEventClient=/*#__PURE__*/function(){function RegistrationWorkflowsEventClient(rpcClient,address){var _rpcClient$
|
2795
|
+
*/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;}/**
|
2758
2796
|
* event CollectionCreated for contract RegistrationWorkflows
|
2759
|
-
*/return _createClass(RegistrationWorkflowsEventClient,[{key:"watchCollectionCreatedEvent",value:function watchCollectionCreatedEvent(
|
2797
|
+
*/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);});}});}/**
|
2760
2798
|
* parse tx receipt event CollectionCreated for contract RegistrationWorkflows
|
2761
|
-
*/},{key:"parseTxCollectionCreatedEvent",value:function parseTxCollectionCreatedEvent(txReceipt){var targetLogs=[];var
|
2799
|
+
*/},{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=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;}}]);}();/**
|
2762
2800
|
* contract RegistrationWorkflows write method
|
2763
|
-
*/var RegistrationWorkflowsClient=/*#__PURE__*/function(_RegistrationWorkflow){function RegistrationWorkflowsClient(rpcClient,wallet,address){var
|
2801
|
+
*/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;}/**
|
2764
2802
|
* method createCollection for contract RegistrationWorkflows
|
2765
2803
|
*
|
2766
2804
|
* @param request RegistrationWorkflowsCreateCollectionRequest
|
2767
2805
|
* @return Promise<WriteContractReturnType>
|
2768
|
-
*/_inherits(RegistrationWorkflowsClient,_RegistrationWorkflow);return _createClass(RegistrationWorkflowsClient,[{key:"createCollection",value:(function(){var _createCollection=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2806
|
+
*/_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;}()/**
|
2769
2807
|
* method createCollection for contract RegistrationWorkflows with only encode
|
2770
2808
|
*
|
2771
2809
|
* @param request RegistrationWorkflowsCreateCollectionRequest
|
@@ -2775,7 +2813,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2775
2813
|
*
|
2776
2814
|
* @param request RegistrationWorkflowsMintAndRegisterIpRequest
|
2777
2815
|
* @return Promise<WriteContractReturnType>
|
2778
|
-
*/},{key:"mintAndRegisterIp",value:(function(){var _mintAndRegisterIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2816
|
+
*/},{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;}()/**
|
2779
2817
|
* method mintAndRegisterIp for contract RegistrationWorkflows with only encode
|
2780
2818
|
*
|
2781
2819
|
* @param request RegistrationWorkflowsMintAndRegisterIpRequest
|
@@ -2785,7 +2823,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2785
2823
|
*
|
2786
2824
|
* @param request RegistrationWorkflowsRegisterIpRequest
|
2787
2825
|
* @return Promise<WriteContractReturnType>
|
2788
|
-
*/},{key:"registerIp",value:(function(){var _registerIp=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2826
|
+
*/},{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;}()/**
|
2789
2827
|
* method registerIp for contract RegistrationWorkflows with only encode
|
2790
2828
|
*
|
2791
2829
|
* @param request RegistrationWorkflowsRegisterIpRequest
|
@@ -2812,29 +2850,29 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2812
2850
|
* @param amount uint256
|
2813
2851
|
*/ /**
|
2814
2852
|
* contract RoyaltyModule readonly method
|
2815
|
-
*/var RoyaltyModuleReadOnlyClient=/*#__PURE__*/function(){function RoyaltyModuleReadOnlyClient(rpcClient,address){var _rpcClient$
|
2853
|
+
*/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;}/**
|
2816
2854
|
* method ipRoyaltyVaults for contract RoyaltyModule
|
2817
2855
|
*
|
2818
2856
|
* @param request RoyaltyModuleIpRoyaltyVaultsRequest
|
2819
2857
|
* @return Promise<RoyaltyModuleIpRoyaltyVaultsResponse>
|
2820
|
-
*/return _createClass(RoyaltyModuleReadOnlyClient,[{key:"ipRoyaltyVaults",value:(function(){var _ipRoyaltyVaults=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2858
|
+
*/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;}()/**
|
2821
2859
|
* method isWhitelistedRoyaltyPolicy for contract RoyaltyModule
|
2822
2860
|
*
|
2823
2861
|
* @param request RoyaltyModuleIsWhitelistedRoyaltyPolicyRequest
|
2824
2862
|
* @return Promise<RoyaltyModuleIsWhitelistedRoyaltyPolicyResponse>
|
2825
|
-
*/)},{key:"isWhitelistedRoyaltyPolicy",value:(function(){var _isWhitelistedRoyaltyPolicy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2863
|
+
*/)},{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;}()/**
|
2826
2864
|
* method isWhitelistedRoyaltyToken for contract RoyaltyModule
|
2827
2865
|
*
|
2828
2866
|
* @param request RoyaltyModuleIsWhitelistedRoyaltyTokenRequest
|
2829
2867
|
* @return Promise<RoyaltyModuleIsWhitelistedRoyaltyTokenResponse>
|
2830
|
-
*/)},{key:"isWhitelistedRoyaltyToken",value:(function(){var _isWhitelistedRoyaltyToken=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2868
|
+
*/)},{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;}())}]);}();/**
|
2831
2869
|
* contract RoyaltyModule write method
|
2832
|
-
*/var RoyaltyModuleClient=/*#__PURE__*/function(_RoyaltyModuleReadOnl){function RoyaltyModuleClient(rpcClient,wallet,address){var
|
2870
|
+
*/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;}/**
|
2833
2871
|
* method payRoyaltyOnBehalf for contract RoyaltyModule
|
2834
2872
|
*
|
2835
2873
|
* @param request RoyaltyModulePayRoyaltyOnBehalfRequest
|
2836
2874
|
* @return Promise<WriteContractReturnType>
|
2837
|
-
*/_inherits(RoyaltyModuleClient,_RoyaltyModuleReadOnl);return _createClass(RoyaltyModuleClient,[{key:"payRoyaltyOnBehalf",value:(function(){var _payRoyaltyOnBehalf=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2875
|
+
*/_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;}()/**
|
2838
2876
|
* method payRoyaltyOnBehalf for contract RoyaltyModule with only encode
|
2839
2877
|
*
|
2840
2878
|
* @param request RoyaltyModulePayRoyaltyOnBehalfRequest
|
@@ -2868,12 +2906,12 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2868
2906
|
* @param royaltyClaimDetails tuple[]
|
2869
2907
|
*/ /**
|
2870
2908
|
* contract RoyaltyWorkflows write method
|
2871
|
-
*/var RoyaltyWorkflowsClient=/*#__PURE__*/function(){function RoyaltyWorkflowsClient(rpcClient,wallet,address){var _rpcClient$
|
2909
|
+
*/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;}/**
|
2872
2910
|
* method snapshotAndClaimBySnapshotBatch for contract RoyaltyWorkflows
|
2873
2911
|
*
|
2874
2912
|
* @param request RoyaltyWorkflowsSnapshotAndClaimBySnapshotBatchRequest
|
2875
2913
|
* @return Promise<WriteContractReturnType>
|
2876
|
-
*/return _createClass(RoyaltyWorkflowsClient,[{key:"snapshotAndClaimBySnapshotBatch",value:(function(){var _snapshotAndClaimBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2914
|
+
*/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;}()/**
|
2877
2915
|
* method snapshotAndClaimBySnapshotBatch for contract RoyaltyWorkflows with only encode
|
2878
2916
|
*
|
2879
2917
|
* @param request RoyaltyWorkflowsSnapshotAndClaimBySnapshotBatchRequest
|
@@ -2883,7 +2921,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2883
2921
|
*
|
2884
2922
|
* @param request RoyaltyWorkflowsSnapshotAndClaimByTokenBatchRequest
|
2885
2923
|
* @return Promise<WriteContractReturnType>
|
2886
|
-
*/},{key:"snapshotAndClaimByTokenBatch",value:(function(){var _snapshotAndClaimByTokenBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2924
|
+
*/},{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;}()/**
|
2887
2925
|
* method snapshotAndClaimByTokenBatch for contract RoyaltyWorkflows with only encode
|
2888
2926
|
*
|
2889
2927
|
* @param request RoyaltyWorkflowsSnapshotAndClaimByTokenBatchRequest
|
@@ -2893,7 +2931,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2893
2931
|
*
|
2894
2932
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest
|
2895
2933
|
* @return Promise<WriteContractReturnType>
|
2896
|
-
*/},{key:"transferToVaultAndSnapshotAndClaimBySnapshotBatch",value:(function(){var _transferToVaultAndSnapshotAndClaimBySnapshotBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2934
|
+
*/},{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;}()/**
|
2897
2935
|
* method transferToVaultAndSnapshotAndClaimBySnapshotBatch for contract RoyaltyWorkflows with only encode
|
2898
2936
|
*
|
2899
2937
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest
|
@@ -2903,7 +2941,7 @@ function getAddress(address,chainId){return address[chainId||0]||"0x";}// Contra
|
|
2903
2941
|
*
|
2904
2942
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimByTokenBatchRequest
|
2905
2943
|
* @return Promise<WriteContractReturnType>
|
2906
|
-
*/},{key:"transferToVaultAndSnapshotAndClaimByTokenBatch",value:(function(){var _transferToVaultAndSnapshotAndClaimByTokenBatch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
2944
|
+
*/},{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;}()/**
|
2907
2945
|
* method transferToVaultAndSnapshotAndClaimByTokenBatch for contract RoyaltyWorkflows with only encode
|
2908
2946
|
*
|
2909
2947
|
* @param request RoyaltyWorkflowsTransferToVaultAndSnapshotAndClaimByTokenBatchRequest
|
@@ -2949,7 +2987,7 @@ function getLicenseTermByType(type, term) {
|
|
2949
2987
|
if (!term || term.defaultMintingFee === undefined || term.currency === undefined) {
|
2950
2988
|
throw new Error("DefaultMintingFee, currency are required for commercial use PIL.");
|
2951
2989
|
}
|
2952
|
-
licenseTerms.royaltyPolicy = getAddress$1(term.
|
2990
|
+
licenseTerms.royaltyPolicy = getAddress$1(term.royaltyPolicyAddress, "term.royaltyPolicyLAPAddress");
|
2953
2991
|
licenseTerms.defaultMintingFee = BigInt(term.defaultMintingFee);
|
2954
2992
|
licenseTerms.commercialUse = true;
|
2955
2993
|
licenseTerms.commercialAttribution = true;
|
@@ -2963,7 +3001,7 @@ function getLicenseTermByType(type, term) {
|
|
2963
3001
|
if (term.commercialRevShare < 0 || term.commercialRevShare > 100) {
|
2964
3002
|
throw new Error("CommercialRevShare should be between 0 and 100.");
|
2965
3003
|
}
|
2966
|
-
licenseTerms.royaltyPolicy = getAddress$1(term.
|
3004
|
+
licenseTerms.royaltyPolicy = getAddress$1(term.royaltyPolicyAddress, "term.royaltyPolicyLAPAddress");
|
2967
3005
|
licenseTerms.defaultMintingFee = BigInt(term.defaultMintingFee);
|
2968
3006
|
licenseTerms.commercialUse = true;
|
2969
3007
|
licenseTerms.commercialAttribution = true;
|
@@ -3429,7 +3467,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3429
3467
|
encodedTxData: this.ipAssetRegistryClient.registerEncode({
|
3430
3468
|
tokenContract: object.nftContract,
|
3431
3469
|
tokenId: object.tokenId,
|
3432
|
-
chainid: chain[this.chainId]
|
3470
|
+
chainid: BigInt(chain[this.chainId])
|
3433
3471
|
})
|
3434
3472
|
});
|
3435
3473
|
case 17:
|
@@ -3476,7 +3514,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3476
3514
|
return this.ipAssetRegistryClient.register({
|
3477
3515
|
tokenContract: object.nftContract,
|
3478
3516
|
tokenId: object.tokenId,
|
3479
|
-
chainid: chain[this.chainId]
|
3517
|
+
chainid: BigInt(chain[this.chainId])
|
3480
3518
|
});
|
3481
3519
|
case 32:
|
3482
3520
|
txHash = _context.sent;
|
@@ -3766,6 +3804,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3766
3804
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
3767
3805
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
3768
3806
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
3807
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
3769
3808
|
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
3770
3809
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
3771
3810
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
@@ -3795,7 +3834,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3795
3834
|
defaultMintingFee: request.mintingFee,
|
3796
3835
|
currency: request.currency,
|
3797
3836
|
commercialRevShare: request.commercialRevShare,
|
3798
|
-
|
3837
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]]
|
3799
3838
|
});
|
3800
3839
|
object = {
|
3801
3840
|
spgNftContract: getAddress$1(request.spgNftContract, "request.spgNftContract"),
|
@@ -3874,6 +3913,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3874
3913
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
3875
3914
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
3876
3915
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
3916
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
3877
3917
|
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
3878
3918
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
3879
3919
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
@@ -3916,7 +3956,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
3916
3956
|
licenseTerm = getLicenseTermByType(request.pilType, {
|
3917
3957
|
defaultMintingFee: request.mintingFee,
|
3918
3958
|
currency: request.currency,
|
3919
|
-
|
3959
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]],
|
3920
3960
|
commercialRevShare: request.commercialRevShare
|
3921
3961
|
});
|
3922
3962
|
calculatedDeadline = getDeadline(request.deadline);
|
@@ -4253,7 +4293,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
4253
4293
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
4254
4294
|
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
4255
4295
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
4256
|
-
* @returns A Promise that resolves to
|
4296
|
+
* @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.
|
4257
4297
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
4258
4298
|
*/
|
4259
4299
|
)
|
@@ -4337,7 +4377,8 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
4337
4377
|
log = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(receipt)[0];
|
4338
4378
|
return _context7.abrupt("return", {
|
4339
4379
|
txHash: txHash,
|
4340
|
-
childIpId: log.ipId
|
4380
|
+
childIpId: log.ipId,
|
4381
|
+
tokenId: log.tokenId
|
4341
4382
|
});
|
4342
4383
|
case 27:
|
4343
4384
|
return _context7.abrupt("return", {
|
@@ -4841,7 +4882,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
4841
4882
|
case 0:
|
4842
4883
|
_context12.next = 2;
|
4843
4884
|
return this.ipAssetRegistryClient.ipId({
|
4844
|
-
chainId: chain[this.chainId],
|
4885
|
+
chainId: BigInt(chain[this.chainId]),
|
4845
4886
|
tokenContract: getAddress$1(nftContract, "nftContract"),
|
4846
4887
|
tokenId: BigInt(tokenId)
|
4847
4888
|
});
|
@@ -5577,6 +5618,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5577
5618
|
this.licenseTemplateClient = new PiLicenseTemplateClient(rpcClient, wallet);
|
5578
5619
|
this.licenseRegistryReadOnlyClient = new LicenseRegistryReadOnlyClient(rpcClient);
|
5579
5620
|
this.ipAssetRegistryClient = new IpAssetRegistryClient(rpcClient, wallet);
|
5621
|
+
this.moduleRegistryReadOnlyClient = new ModuleRegistryReadOnlyClient(rpcClient);
|
5580
5622
|
this.rpcClient = rpcClient;
|
5581
5623
|
this.wallet = wallet;
|
5582
5624
|
this.chainId = chainId;
|
@@ -5602,7 +5644,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5602
5644
|
* @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
5603
5645
|
* @param request.uri The URI of the license terms, which can be used to fetch the offchain license terms.
|
5604
5646
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5605
|
-
* @returns A Promise that resolves to
|
5647
|
+
* @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.
|
5606
5648
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5607
5649
|
*/
|
5608
5650
|
return _createClass(LicenseClient, [{
|
@@ -5687,7 +5729,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5687
5729
|
* Convenient function to register a PIL non commercial social remix license to the registry
|
5688
5730
|
* @param request - [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
|
5689
5731
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5690
|
-
* @returns A Promise that resolves to
|
5732
|
+
* @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.
|
5691
5733
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5692
5734
|
*/
|
5693
5735
|
)
|
@@ -5771,8 +5813,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5771
5813
|
* @param request - The request object that contains all data needed to register a PIL commercial use license.
|
5772
5814
|
* @param request.defaultMintingFee The fee to be paid when minting a license.
|
5773
5815
|
* @param request.currency The ERC20 token to be used to pay the minting fee and the token must be registered in story protocol.
|
5816
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
5774
5817
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5775
|
-
* @returns A Promise that resolves to
|
5818
|
+
* @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.
|
5776
5819
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5777
5820
|
*/
|
5778
5821
|
)
|
@@ -5788,7 +5831,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5788
5831
|
licenseTerms = getLicenseTermByType(PIL_TYPE.COMMERCIAL_USE, {
|
5789
5832
|
defaultMintingFee: request.defaultMintingFee,
|
5790
5833
|
currency: request.currency,
|
5791
|
-
|
5834
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]]
|
5792
5835
|
});
|
5793
5836
|
_context3.next = 4;
|
5794
5837
|
return this.getLicenseTermsId(licenseTerms);
|
@@ -5861,8 +5904,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5861
5904
|
* @param request.defaultMintingFee The fee to be paid when minting a license.
|
5862
5905
|
* @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
|
5863
5906
|
* @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
5907
|
+
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
5864
5908
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5865
|
-
* @returns A Promise that resolves to
|
5909
|
+
* @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.
|
5866
5910
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
5867
5911
|
*/
|
5868
5912
|
)
|
@@ -5878,7 +5922,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5878
5922
|
licenseTerms = getLicenseTermByType(PIL_TYPE.COMMERCIAL_REMIX, {
|
5879
5923
|
defaultMintingFee: request.defaultMintingFee,
|
5880
5924
|
currency: request.currency,
|
5881
|
-
|
5925
|
+
royaltyPolicyAddress: request.royaltyPolicyAddress && getAddress$1(request.royaltyPolicyAddress, "request.royaltyPolicyAddress") || royaltyPolicyLapAddress[chain[this.chainId]],
|
5882
5926
|
commercialRevShare: request.commercialRevShare
|
5883
5927
|
});
|
5884
5928
|
_context4.next = 4;
|
@@ -5953,7 +5997,8 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
5953
5997
|
* @param request.licenseTemplate The address of the license template.
|
5954
5998
|
* @param request.licenseTermsId The ID of the license terms.
|
5955
5999
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
5956
|
-
* @returns A Promise that resolves to
|
6000
|
+
* @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.
|
6001
|
+
* If Ip have attached license terms, success will return false and txhash is empty.
|
5957
6002
|
*/
|
5958
6003
|
)
|
5959
6004
|
}, {
|
@@ -6078,7 +6123,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
6078
6123
|
* @param request.amount The amount of license tokens to mint.
|
6079
6124
|
* @param request.receiver The address of the receiver.
|
6080
6125
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6081
|
-
* @returns A Promise that resolves to
|
6126
|
+
* @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.
|
6082
6127
|
* @emits LicenseTokensMinted (msg.sender, licensorIpId, licenseTemplate, licenseTermsId, amount, receiver, startLicenseTokenId);
|
6083
6128
|
*/
|
6084
6129
|
)
|
@@ -6227,29 +6272,230 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
6227
6272
|
return _getLicenseTerms.apply(this, arguments);
|
6228
6273
|
}
|
6229
6274
|
return getLicenseTerms;
|
6275
|
+
}()
|
6276
|
+
/**
|
6277
|
+
* 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.
|
6278
|
+
* @param request - The request object that contains all data needed to predict minting licenses fee.
|
6279
|
+
* @param request.licensorIpId The IP ID of the licensor.
|
6280
|
+
* @param request.licenseTermsId The ID of the license terms.
|
6281
|
+
* @param request.amount The amount of license tokens to mint.
|
6282
|
+
* @param request.licenseTemplate [Optional] The address of the license template,default value is Programmable IP License.
|
6283
|
+
* @param request.receiver [Optional] The address of the receiver,default value is your wallet address.
|
6284
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6285
|
+
* @returns A Promise that resolves to an object containing the currency token and token amount.
|
6286
|
+
*/
|
6287
|
+
)
|
6288
|
+
}, {
|
6289
|
+
key: "predictMintingLicenseFee",
|
6290
|
+
value: (function () {
|
6291
|
+
var _predictMintingLicenseFee = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(request) {
|
6292
|
+
var isLicenseIpIdRegistered, licenseTermsId, isExisted, object;
|
6293
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
6294
|
+
while (1) switch (_context8.prev = _context8.next) {
|
6295
|
+
case 0:
|
6296
|
+
_context8.prev = 0;
|
6297
|
+
_context8.next = 3;
|
6298
|
+
return this.ipAssetRegistryClient.isRegistered({
|
6299
|
+
id: getAddress$1(request.licensorIpId, "request.licensorIpId")
|
6300
|
+
});
|
6301
|
+
case 3:
|
6302
|
+
isLicenseIpIdRegistered = _context8.sent;
|
6303
|
+
if (isLicenseIpIdRegistered) {
|
6304
|
+
_context8.next = 6;
|
6305
|
+
break;
|
6306
|
+
}
|
6307
|
+
throw new Error("The licensor IP with id ".concat(request.licensorIpId, " is not registered."));
|
6308
|
+
case 6:
|
6309
|
+
licenseTermsId = BigInt(request.licenseTermsId);
|
6310
|
+
_context8.next = 9;
|
6311
|
+
return this.piLicenseTemplateReadOnlyClient.exists({
|
6312
|
+
licenseTermsId: licenseTermsId
|
6313
|
+
});
|
6314
|
+
case 9:
|
6315
|
+
isExisted = _context8.sent;
|
6316
|
+
if (isExisted) {
|
6317
|
+
_context8.next = 12;
|
6318
|
+
break;
|
6319
|
+
}
|
6320
|
+
throw new Error("License terms id ".concat(request.licenseTermsId, " do not exist."));
|
6321
|
+
case 12:
|
6322
|
+
object = _objectSpread2(_objectSpread2({}, request), {}, {
|
6323
|
+
receiver: request.receiver && getAddress$1(request.receiver, "request.receiver") || this.wallet.account.address,
|
6324
|
+
amount: BigInt(request.amount),
|
6325
|
+
royaltyContext: zeroAddress,
|
6326
|
+
licenseTemplate: request.licenseTemplate && getAddress$1(request.licenseTemplate, "request.licenseTemplate") || this.licenseTemplateClient.address,
|
6327
|
+
licenseTermsId: licenseTermsId
|
6328
|
+
});
|
6329
|
+
_context8.next = 15;
|
6330
|
+
return this.licensingModuleClient.predictMintingLicenseFee(object);
|
6331
|
+
case 15:
|
6332
|
+
return _context8.abrupt("return", _context8.sent);
|
6333
|
+
case 18:
|
6334
|
+
_context8.prev = 18;
|
6335
|
+
_context8.t0 = _context8["catch"](0);
|
6336
|
+
handleError(_context8.t0, "Failed to predict minting license fee");
|
6337
|
+
case 21:
|
6338
|
+
case "end":
|
6339
|
+
return _context8.stop();
|
6340
|
+
}
|
6341
|
+
}, _callee8, this, [[0, 18]]);
|
6342
|
+
}));
|
6343
|
+
function predictMintingLicenseFee(_x8) {
|
6344
|
+
return _predictMintingLicenseFee.apply(this, arguments);
|
6345
|
+
}
|
6346
|
+
return predictMintingLicenseFee;
|
6347
|
+
}()
|
6348
|
+
/**
|
6349
|
+
* 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.
|
6350
|
+
* @param request - The request object that contains all data needed to set licensing config.
|
6351
|
+
* @param request.ipId The address of the IP for which the configuration is being set.
|
6352
|
+
* @param request.licenseTermsId The ID of the license terms within the license template.
|
6353
|
+
* @param request.licenseTemplate The address of the license template used, If not specified, the configuration applies to all licenses.
|
6354
|
+
* @param request.licensingConfig The licensing configuration for the license.
|
6355
|
+
* @param request.licensingConfig.isSet Whether the configuration is set or not.
|
6356
|
+
* @param request.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
|
6357
|
+
* @param request.licensingConfig.hookData The data to be used by the licensing hook.
|
6358
|
+
* @param request.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none.
|
6359
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6360
|
+
* @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.
|
6361
|
+
*/
|
6362
|
+
)
|
6363
|
+
}, {
|
6364
|
+
key: "setLicensingConfig",
|
6365
|
+
value: (function () {
|
6366
|
+
var _setLicensingConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(request) {
|
6367
|
+
var _request$txOptions13, isLicenseIpIdRegistered, licenseTermsId, isExisted, isRegistered, object, _request$txOptions14, txHash;
|
6368
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
6369
|
+
while (1) switch (_context9.prev = _context9.next) {
|
6370
|
+
case 0:
|
6371
|
+
_context9.prev = 0;
|
6372
|
+
_context9.next = 3;
|
6373
|
+
return this.ipAssetRegistryClient.isRegistered({
|
6374
|
+
id: getAddress$1(request.ipId, "request.ipId")
|
6375
|
+
});
|
6376
|
+
case 3:
|
6377
|
+
isLicenseIpIdRegistered = _context9.sent;
|
6378
|
+
if (isLicenseIpIdRegistered) {
|
6379
|
+
_context9.next = 6;
|
6380
|
+
break;
|
6381
|
+
}
|
6382
|
+
throw new Error("The licensor IP with id ".concat(request.ipId, " is not registered."));
|
6383
|
+
case 6:
|
6384
|
+
licenseTermsId = BigInt(request.licenseTermsId);
|
6385
|
+
_context9.next = 9;
|
6386
|
+
return this.piLicenseTemplateReadOnlyClient.exists({
|
6387
|
+
licenseTermsId: licenseTermsId
|
6388
|
+
});
|
6389
|
+
case 9:
|
6390
|
+
isExisted = _context9.sent;
|
6391
|
+
if (isExisted) {
|
6392
|
+
_context9.next = 12;
|
6393
|
+
break;
|
6394
|
+
}
|
6395
|
+
throw new Error("License terms id ".concat(request.licenseTermsId, " do not exist."));
|
6396
|
+
case 12:
|
6397
|
+
if (!(request.licensingConfig.licensingHook !== zeroAddress)) {
|
6398
|
+
_context9.next = 18;
|
6399
|
+
break;
|
6400
|
+
}
|
6401
|
+
_context9.next = 15;
|
6402
|
+
return this.moduleRegistryReadOnlyClient.isRegistered({
|
6403
|
+
moduleAddress: request.licensingConfig.licensingHook
|
6404
|
+
});
|
6405
|
+
case 15:
|
6406
|
+
isRegistered = _context9.sent;
|
6407
|
+
if (isRegistered) {
|
6408
|
+
_context9.next = 18;
|
6409
|
+
break;
|
6410
|
+
}
|
6411
|
+
throw new Error("The licensing hook is not registered.");
|
6412
|
+
case 18:
|
6413
|
+
if (!(request.licenseTemplate === zeroAddress && request.licenseTermsId !== 0n)) {
|
6414
|
+
_context9.next = 20;
|
6415
|
+
break;
|
6416
|
+
}
|
6417
|
+
throw new Error("licenseTemplate is zero address but licenseTermsId is zero.");
|
6418
|
+
case 20:
|
6419
|
+
object = {
|
6420
|
+
ipId: request.ipId,
|
6421
|
+
licenseTemplate: getAddress$1(request.licenseTemplate, "request.licenseTemplate"),
|
6422
|
+
licenseTermsId: licenseTermsId,
|
6423
|
+
licensingConfig: {
|
6424
|
+
isSet: request.licensingConfig.isSet,
|
6425
|
+
mintingFee: BigInt(request.licensingConfig.mintingFee),
|
6426
|
+
hookData: request.licensingConfig.hookData,
|
6427
|
+
licensingHook: request.licensingConfig.licensingHook
|
6428
|
+
}
|
6429
|
+
};
|
6430
|
+
if (!((_request$txOptions13 = request.txOptions) !== null && _request$txOptions13 !== void 0 && _request$txOptions13.encodedTxDataOnly)) {
|
6431
|
+
_context9.next = 25;
|
6432
|
+
break;
|
6433
|
+
}
|
6434
|
+
return _context9.abrupt("return", {
|
6435
|
+
encodedTxData: this.licensingModuleClient.setLicensingConfigEncode(object)
|
6436
|
+
});
|
6437
|
+
case 25:
|
6438
|
+
_context9.next = 27;
|
6439
|
+
return this.licensingModuleClient.setLicensingConfig(object);
|
6440
|
+
case 27:
|
6441
|
+
txHash = _context9.sent;
|
6442
|
+
if (!((_request$txOptions14 = request.txOptions) !== null && _request$txOptions14 !== void 0 && _request$txOptions14.waitForTransaction)) {
|
6443
|
+
_context9.next = 32;
|
6444
|
+
break;
|
6445
|
+
}
|
6446
|
+
_context9.next = 31;
|
6447
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
6448
|
+
hash: txHash
|
6449
|
+
}));
|
6450
|
+
case 31:
|
6451
|
+
return _context9.abrupt("return", {
|
6452
|
+
txHash: txHash,
|
6453
|
+
success: true
|
6454
|
+
});
|
6455
|
+
case 32:
|
6456
|
+
return _context9.abrupt("return", {
|
6457
|
+
txHash: txHash
|
6458
|
+
});
|
6459
|
+
case 33:
|
6460
|
+
_context9.next = 38;
|
6461
|
+
break;
|
6462
|
+
case 35:
|
6463
|
+
_context9.prev = 35;
|
6464
|
+
_context9.t0 = _context9["catch"](0);
|
6465
|
+
handleError(_context9.t0, "Failed to set licensing config");
|
6466
|
+
case 38:
|
6467
|
+
case "end":
|
6468
|
+
return _context9.stop();
|
6469
|
+
}
|
6470
|
+
}, _callee9, this, [[0, 35]]);
|
6471
|
+
}));
|
6472
|
+
function setLicensingConfig(_x9) {
|
6473
|
+
return _setLicensingConfig.apply(this, arguments);
|
6474
|
+
}
|
6475
|
+
return setLicensingConfig;
|
6230
6476
|
}())
|
6231
6477
|
}, {
|
6232
6478
|
key: "getLicenseTermsId",
|
6233
6479
|
value: function () {
|
6234
|
-
var _getLicenseTermsId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
6480
|
+
var _getLicenseTermsId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(request) {
|
6235
6481
|
var licenseRes;
|
6236
|
-
return _regeneratorRuntime().wrap(function
|
6237
|
-
while (1) switch (
|
6482
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
6483
|
+
while (1) switch (_context10.prev = _context10.next) {
|
6238
6484
|
case 0:
|
6239
|
-
|
6485
|
+
_context10.next = 2;
|
6240
6486
|
return this.licenseTemplateClient.getLicenseTermsId({
|
6241
6487
|
terms: request
|
6242
6488
|
});
|
6243
6489
|
case 2:
|
6244
|
-
licenseRes =
|
6245
|
-
return
|
6490
|
+
licenseRes = _context10.sent;
|
6491
|
+
return _context10.abrupt("return", licenseRes.selectedLicenseTermsId);
|
6246
6492
|
case 4:
|
6247
6493
|
case "end":
|
6248
|
-
return
|
6494
|
+
return _context10.stop();
|
6249
6495
|
}
|
6250
|
-
},
|
6496
|
+
}, _callee10, this);
|
6251
6497
|
}));
|
6252
|
-
function getLicenseTermsId(
|
6498
|
+
function getLicenseTermsId(_x10) {
|
6253
6499
|
return _getLicenseTermsId.apply(this, arguments);
|
6254
6500
|
}
|
6255
6501
|
return getLicenseTermsId;
|
@@ -6257,6 +6503,31 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
6257
6503
|
}]);
|
6258
6504
|
}();
|
6259
6505
|
|
6506
|
+
var v0Prefix = "1220";
|
6507
|
+
var convertCIDtoHashIPFS = function convertCIDtoHashIPFS(cid) {
|
6508
|
+
var isV0 = cid.startsWith("Qm");
|
6509
|
+
var parsedCID = CID.parse(cid);
|
6510
|
+
var base58CID = isV0 ? parsedCID.toString() : parsedCID.toV0().toString();
|
6511
|
+
var bytes = bs58.decode(base58CID);
|
6512
|
+
var base16CID = Array.from(bytes).map(function (_byte) {
|
6513
|
+
return _byte.toString(16).padStart(2, "0");
|
6514
|
+
}).join("");
|
6515
|
+
return "0x" + base16CID.slice(v0Prefix.length);
|
6516
|
+
};
|
6517
|
+
var convertHashIPFStoCID = function convertHashIPFStoCID(hash) {
|
6518
|
+
var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "v0";
|
6519
|
+
var base16CID = v0Prefix + hash.slice(2);
|
6520
|
+
var bytes = new Uint8Array(base16CID.match(/.{1,2}/g).map(function (_byte2) {
|
6521
|
+
return parseInt(_byte2, 16);
|
6522
|
+
}));
|
6523
|
+
var base58CID = bs58.encode(Buffer.from(bytes));
|
6524
|
+
if (version === "v0") {
|
6525
|
+
return base58CID;
|
6526
|
+
} else {
|
6527
|
+
return CID.parse(base58CID, base58btc).toV1().toString();
|
6528
|
+
}
|
6529
|
+
};
|
6530
|
+
|
6260
6531
|
var DisputeClient = /*#__PURE__*/function () {
|
6261
6532
|
function DisputeClient(rpcClient, wallet) {
|
6262
6533
|
_classCallCheck(this, DisputeClient);
|
@@ -6269,7 +6540,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
6269
6540
|
* @param request - The request object containing necessary data to raise a dispute.
|
6270
6541
|
* @param request.targetIpId The IP ID that is the target of the dispute.
|
6271
6542
|
* @param request.targetTag The target tag of the dispute.
|
6272
|
-
* @param request.
|
6543
|
+
* @param request.cid CID (Content Identifier) is a unique identifier in IPFS, including CID v0 (base58) and CID v1 (base32).
|
6273
6544
|
* @param request.data The data to initialize the policy
|
6274
6545
|
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
6275
6546
|
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
@@ -6293,8 +6564,8 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
6293
6564
|
targetTag: stringToHex(request.targetTag, {
|
6294
6565
|
size: 32
|
6295
6566
|
}),
|
6296
|
-
data: request.data || "
|
6297
|
-
disputeEvidenceHash: request.
|
6567
|
+
data: request.data || "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000091f6f05b08c16769d3c85867548615d270c42fc700000000000000000000000000000000000000000000000000000000000000004153534552545f54525554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7465737420636c61696d00000000000000000000000000000000000000000000",
|
6568
|
+
disputeEvidenceHash: convertCIDtoHashIPFS(request.cid)
|
6298
6569
|
};
|
6299
6570
|
if (!((_request$txOptions = request.txOptions) !== null && _request$txOptions !== void 0 && _request$txOptions.encodedTxDataOnly)) {
|
6300
6571
|
_context.next = 6;
|
@@ -7909,7 +8180,7 @@ var GroupClient = /*#__PURE__*/function () {
|
|
7909
8180
|
_context3.prev = 0;
|
7910
8181
|
_context3.next = 3;
|
7911
8182
|
return this.ipAssetRegistryClient.ipId({
|
7912
|
-
chainId: chain[this.chainId],
|
8183
|
+
chainId: BigInt(chain[this.chainId]),
|
7913
8184
|
tokenContract: getAddress$1(request.nftContract, "nftContract"),
|
7914
8185
|
tokenId: BigInt(request.tokenId)
|
7915
8186
|
});
|
@@ -8272,7 +8543,7 @@ var StoryClient = /*#__PURE__*/function () {
|
|
8272
8543
|
_defineProperty(this, "_nftClient", null);
|
8273
8544
|
_defineProperty(this, "_group", null);
|
8274
8545
|
this.config = _objectSpread2(_objectSpread2({}, config), {}, {
|
8275
|
-
chainId: config.chainId || "
|
8546
|
+
chainId: chain[config.chainId || "odyssey"]
|
8276
8547
|
});
|
8277
8548
|
if (!this.config.transport) {
|
8278
8549
|
throw new Error("transport is null, please pass in a valid RPC Provider URL as the transport.");
|
@@ -8457,4 +8728,4 @@ var StoryClient = /*#__PURE__*/function () {
|
|
8457
8728
|
}]);
|
8458
8729
|
}();
|
8459
8730
|
|
8460
|
-
export { AccessPermission, AddressZero, DisputeClient, GroupClient, HashZero, IPAccountClient, IPAssetClient, LicenseClient, NftClient, PIL_TYPE, PermissionClient, RoyaltyClient, StoryClient, getPermissionSignature,
|
8731
|
+
export { AccessPermission, AddressZero, DisputeClient, GroupClient, HashZero, IPAccountClient, IPAssetClient, LicenseClient, NftClient, PIL_TYPE, PermissionClient, RoyaltyClient, StoryClient, convertCIDtoHashIPFS, convertHashIPFStoCID, getPermissionSignature, odyssey };
|