@story-protocol/core-sdk 1.3.0-beta.2 → 1.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/declarations/src/abi/generated.d.ts +4327 -3815
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/client.d.ts +1 -0
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +10 -5
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +33 -20
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/group.d.ts +11 -100
- package/dist/declarations/src/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +9 -3
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +36 -364
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +4 -21
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +9 -1
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +2 -2
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +22 -13
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/resources/wip.d.ts +15 -9
- package/dist/declarations/src/resources/wip.d.ts.map +1 -1
- package/dist/declarations/src/types/common.d.ts +20 -2
- package/dist/declarations/src/types/common.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +2 -1
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +67 -1
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +56 -4
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/group.d.ts +30 -5
- package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +10 -2
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +118 -117
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipMetadata.d.ts +274 -0
- package/dist/declarations/src/types/resources/ipMetadata.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/license.d.ts +6 -8
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +40 -119
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/wip.d.ts +7 -0
- package/dist/declarations/src/types/resources/wip.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +33 -1
- package/dist/declarations/src/utils/chain.d.ts.map +1 -1
- package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts +4 -0
- package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +2932 -2467
- package/dist/story-protocol-core-sdk.cjs.prod.js +2932 -2467
- package/dist/story-protocol-core-sdk.esm.js +2928 -2470
- package/package.json +1 -1
- package/dist/declarations/src/types/utils/txOptions.d.ts +0 -13
- package/dist/declarations/src/types/utils/txOptions.d.ts.map +0 -1
- package/dist/declarations/src/types/utils/wip.d.ts +0 -87
- package/dist/declarations/src/types/utils/wip.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,WAAW,EAAE,qBAAqB,EAAE,oBAAoB,EAA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KG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,SAAS,IAAI,eAAe,CAMtC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,SAAS,IAAI,SAAS,CAMhC;IAED;;;;;OAKG;IACH,IAAW,WAAW,IAAI,WAAW,CAMpC;IAED,IAAW,SAAS,IAAI,SAAS,CAKhC;IAEY,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAOnC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAM1D"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { StoryClient } from "./client.js";
|
2
|
-
export { AddressZero, HashZero } from "./constants/common.js";
|
3
|
-
export { aeneid } from "./utils/chain.js";
|
2
|
+
export { AddressZero, HashZero, WIP_TOKEN_ADDRESS } from "./constants/common.js";
|
3
|
+
export { aeneid, mainnet } from "./utils/chain.js";
|
4
4
|
export { IPAssetClient } from "./resources/ipAsset.js";
|
5
5
|
export { PermissionClient } from "./resources/permission.js";
|
6
6
|
export { LicenseClient } from "./resources/license.js";
|
@@ -9,11 +9,14 @@ export { NftClient } from "./resources/nftClient.js";
|
|
9
9
|
export { IPAccountClient } from "./resources/ipAccount.js";
|
10
10
|
export { RoyaltyClient } from "./resources/royalty.js";
|
11
11
|
export { GroupClient } from "./resources/group.js";
|
12
|
+
export { WipClient } from "./resources/wip.js";
|
12
13
|
export type { StoryConfig, SupportedChainIds } from "./types/config.js";
|
13
|
-
export type {
|
14
|
+
export type { LicensingConfig } from "./types/common.js";
|
15
|
+
export type { RegisterRequest, RegisterIpResponse, RegisterDerivativeResponse, RegisterDerivativeRequest, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, MintAndRegisterIpAssetWithPilTermsRequest, MintAndRegisterIpAssetWithPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, MintAndRegisterIpAndMakeDerivativeRequest, MintAndRegisterIpAndMakeDerivativeResponse, MintAndRegisterIpRequest, RegisterPilTermsAndAttachRequest, RegisterPilTermsAndAttachResponse, MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest, RegisterIpAndMakeDerivativeWithLicenseTokensRequest, BatchMintAndRegisterIpAssetWithPilTermsRequest, BatchMintAndRegisterIpAssetWithPilTermsResponse, BatchMintAndRegisterIpAndMakeDerivativeRequest, BatchMintAndRegisterIpAndMakeDerivativeResponse, BatchRegisterRequest, BatchRegisterResponse, BatchRegisterDerivativeRequest, BatchRegisterDerivativeResponse, RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest, RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse, RoyaltyShare, RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest, RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse, MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensRequest, MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensResponse, MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest, MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensResponse, LicenseTermsData, } from "./types/resources/ipAsset.js";
|
16
|
+
export * from "./types/resources/ipMetadata.js";
|
14
17
|
export type { RegisterNonComSocialRemixingPILRequest, RegisterCommercialUsePILRequest, RegisterCommercialRemixPILRequest, RegisterPILTermsRequest, RegisterPILResponse, AttachLicenseTermsRequest, AttachLicenseTermsResponse, MintLicenseTokensRequest, MintLicenseTokensResponse, LicenseTermsId, LicenseTerms, PredictMintingLicenseFeeRequest, SetLicensingConfigRequest, SetLicensingConfigResponse, } from "./types/resources/license.js";
|
15
18
|
export { PIL_TYPE } from "./types/resources/license.js";
|
16
|
-
export type { PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse,
|
19
|
+
export type { PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, ClaimableRevenueRequest, ClaimableRevenueResponse, ClaimAllRevenueRequest, ClaimAllRevenueResponse, BatchClaimAllRevenueRequest, BatchClaimAllRevenueResponse, } from "./types/resources/royalty.js";
|
17
20
|
export type { SetPermissionsRequest, SetPermissionsResponse, CreateSetPermissionSignatureRequest, SetAllPermissionsRequest, SetBatchPermissionsRequest, CreateBatchPermissionSignatureRequest, PermissionSignatureRequest, SignatureRequest, SignatureResponse, } from "./types/resources/permission.js";
|
18
21
|
export { AccessPermission } from "./types/resources/permission.js";
|
19
22
|
export type { RaiseDisputeRequest, RaiseDisputeResponse, CancelDisputeRequest, CancelDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, } from "./types/resources/dispute.js";
|
@@ -21,7 +24,9 @@ export type { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecut
|
|
21
24
|
export type { CreateNFTCollectionRequest, CreateNFTCollectionResponse, } from "./types/resources/nftClient.js";
|
22
25
|
export type { RegisterGroupRequest, RegisterGroupResponse, RegisterGroupAndAttachLicenseRequest, RegisterGroupAndAttachLicenseResponse, RegisterGroupAndAttachLicenseAndAddIpsRequest, RegisterGroupAndAttachLicenseAndAddIpsResponse, MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest, MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse, RegisterIpAndAttachLicenseAndAddToGroupRequest, RegisterIpAndAttachLicenseAndAddToGroupResponse, } from "./types/resources/group.js";
|
23
26
|
export type { PiLicenseTemplateGetLicenseTermsResponse, IpAccountImplStateResponse, EncodedTxData, LicensingModulePredictMintingLicenseFeeResponse, } from "./abi/generated.js";
|
27
|
+
export { royaltyPolicyLapAddress, royaltyPolicyLrpAddress } from "./abi/generated.js";
|
28
|
+
export type { DepositRequest, WithdrawRequest, ApproveRequest, TransferRequest, TransferFromRequest, } from "./types/resources/wip.js";
|
24
29
|
export { getPermissionSignature, getSignature } from "./utils/sign.js";
|
25
30
|
export { convertCIDtoHashIPFS, convertHashIPFStoCID } from "./utils/ipfs.js";
|
26
|
-
export type { TxOptions } from "./types/options.js";
|
31
|
+
export type { TxOptions, TransactionResponse, WipOptions, ERC20Options } from "./types/options.js";
|
27
32
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA2B;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,8BAA2B;AAC9E,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAsB;AAChD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAE,eAAe,EAAE,iCAA8B;AACxD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,WAAW,EAAE,6BAA0B;AAChD,OAAO,EAAE,SAAS,EAAE,2BAAwB;AAE5C,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,0BAAuB;AAErE,YAAY,EAAE,eAAe,EAAE,0BAAuB;AAEtD,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,0CAA0C,EAC1C,2CAA2C,EAC3C,yCAAyC,EAC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AwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,aAAa,GACd,uCAAoC;AAErC,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,GAC5B,uCAAoC;AAErC,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,oCAAoC,EACpC,qCAAqC,EACrC,6CAA6C,EAC7C,8CAA8C,EAC9C,qDAAqD,EACrD,sDAAsD,EACtD,8CAA8C,EAC9C,+CAA+C,GAChD,mCAAgC;AAEjC,YAAY,EACV,wCAAwC,EACxC,0BAA0B,EAC1B,aAAa,EACb,+CAA+C,GAChD,2BAAwB;AAEzB,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,2BAAwB;AAEnF,YAAY,EACV,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,mBAAmB,GACpB,iCAA8B;AAE/B,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,wBAAqB;AAEpE,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,wBAAqB;AAE1E,YAAY,EAAE,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,YAAY,EAAE,2BAAwB"}
|
@@ -1,28 +1,22 @@
|
|
1
|
-
import { PublicClient } from "viem";
|
2
|
-
import { CancelDisputeRequest, CancelDisputeResponse, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse } from "../types/resources/dispute.js";
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import { Hex, PublicClient } from "viem";
|
2
|
+
import { CancelDisputeRequest, CancelDisputeResponse, DisputeAssertionRequest, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, TagIfRelatedIpInfringedRequest } from "../types/resources/dispute.js";
|
3
|
+
import { ArbitrationPolicyUmaClient, DisputeModuleClient, Multicall3Client, SimpleWalletClient } from "../abi/generated.js";
|
4
|
+
import { ChainIds } from "../types/config.js";
|
5
|
+
import { TransactionResponse } from "../types/options.js";
|
5
6
|
export declare class DisputeClient {
|
6
7
|
disputeModuleClient: DisputeModuleClient;
|
7
|
-
|
8
|
+
arbitrationPolicyUmaClient: ArbitrationPolicyUmaClient;
|
9
|
+
multicall3Client: Multicall3Client;
|
8
10
|
private readonly rpcClient;
|
9
11
|
private readonly chainId;
|
10
|
-
|
12
|
+
private readonly wallet;
|
13
|
+
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: ChainIds);
|
11
14
|
/**
|
12
|
-
* Raises a dispute on a given ipId
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
* @param request.liveness The liveness time.
|
18
|
-
* @param request.bond The bond size.
|
19
|
-
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20
|
-
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
21
|
-
* @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
|
22
|
-
* @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
|
23
|
-
* @throws `ZeroLinkToDisputeEvidence` if linkToDisputeEvidence is empty
|
24
|
-
* @calls raiseDispute(address _targetIpId, string memory _linkToDisputeEvidence, bytes32 _targetTag, bytes calldata _data) external nonReentrant returns (uint256) {
|
25
|
-
* @emits DisputeRaised (disputeId_, targetIpId, msg.sender, arbitrationPolicy, linkToDisputeEvidence, targetTag, calldata);
|
15
|
+
* Raises a dispute on a given ipId.
|
16
|
+
*
|
17
|
+
* Submits a {@link DisputeRaised} event.
|
18
|
+
* @see {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/dispute/IDisputeModule.sol#L64 | IDisputeModule.sol}
|
19
|
+
* for a list of on-chain events emitted when a dispute is raised.
|
26
20
|
*/
|
27
21
|
raiseDispute(request: RaiseDisputeRequest): Promise<RaiseDisputeResponse>;
|
28
22
|
/**
|
@@ -51,5 +45,24 @@ export declare class DisputeClient {
|
|
51
45
|
* @emits DisputeResolved (_disputeId)
|
52
46
|
*/
|
53
47
|
resolveDispute(request: ResolveDisputeRequest): Promise<ResolveDisputeResponse>;
|
48
|
+
/**
|
49
|
+
* Tags a derivative if a parent has been tagged with an infringement tag
|
50
|
+
* or a group ip if a group member has been tagged with an infringement tag.
|
51
|
+
*
|
52
|
+
* @see {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/dispute/IDisputeModule.sol#L93 | IDisputeModule.sol}
|
53
|
+
* for a list of on-chain events emitted when a derivative is tagged on an infringement.
|
54
|
+
*/
|
55
|
+
tagIfRelatedIpInfringed(request: TagIfRelatedIpInfringedRequest): Promise<TransactionResponse[]>;
|
56
|
+
/**
|
57
|
+
* Counters a dispute that was raised by another party on an IP using counter evidence.
|
58
|
+
*
|
59
|
+
* This method can only be called by the IP's owner to counter a dispute by providing
|
60
|
+
* counter evidence. The counter evidence (e.g., documents, images) should be
|
61
|
+
* uploaded to IPFS, and its corresponding CID is converted to a hash for the request.
|
62
|
+
*
|
63
|
+
* If you only have a `disputeId`, call {@link disputeIdToAssertionId} to get the `assertionId` needed here.
|
64
|
+
*/
|
65
|
+
disputeAssertion(request: DisputeAssertionRequest): Promise<TransactionResponse>;
|
66
|
+
disputeIdToAssertionId(disputeId: number | bigint): Promise<Hex>;
|
54
67
|
}
|
55
68
|
//# sourceMappingURL=dispute.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../src/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoC,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../src/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,YAAY,EAAoC,MAAM,MAAM,CAAC;AAG3E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACn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GroupingModuleEventClient, GroupingWorkflowsClient, IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, SimpleWalletClient } from "../abi/generated.js";
|
3
|
-
import {
|
3
|
+
import { ChainIds } from "../types/config.js";
|
4
4
|
import { MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest, MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse, RegisterGroupAndAttachLicenseAndAddIpsRequest, RegisterGroupAndAttachLicenseAndAddIpsResponse, RegisterGroupAndAttachLicenseRequest, RegisterGroupAndAttachLicenseResponse, RegisterGroupRequest, RegisterGroupResponse, RegisterIpAndAttachLicenseAndAddToGroupRequest, RegisterIpAndAttachLicenseAndAddToGroupResponse } from "../types/resources/group.js";
|
5
5
|
export declare class GroupClient {
|
6
6
|
groupingWorkflowsClient: GroupingWorkflowsClient;
|
@@ -15,7 +15,7 @@ export declare class GroupClient {
|
|
15
15
|
private readonly rpcClient;
|
16
16
|
private readonly wallet;
|
17
17
|
private readonly chainId;
|
18
|
-
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId:
|
18
|
+
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: ChainIds);
|
19
19
|
/** Registers a Group IPA.
|
20
20
|
* @param request - The request object containing necessary data to register group.
|
21
21
|
* @param request.groupPool The address specifying how royalty will be split amongst the pool of IPs in the group.
|
@@ -24,113 +24,24 @@ export declare class GroupClient {
|
|
24
24
|
* @emits PGroupRegistered (groupId, groupPool);
|
25
25
|
*/
|
26
26
|
registerGroup(request: RegisterGroupRequest): Promise<RegisterGroupResponse>;
|
27
|
-
/**
|
28
|
-
* @
|
29
|
-
*
|
30
|
-
* @param request.groupId The ID of the group IP to add the newly registered IP.
|
31
|
-
* @param request.maxAllowedRewardShare The maximum reward share percentage that can be allocated to each member IP.
|
32
|
-
* @param {Array} request.licenseData licenseData The data of the license and its configuration to be attached to the new group IP.
|
33
|
-
* @param request.licenseData.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
|
34
|
-
* @param request.licenseData.licenseTemplate [Optional] The address of the license template to be attached to the new group IP, default value is Programmable IP License.
|
35
|
-
* @param request.licenseData.licensingConfig The licensing configuration for the IP.
|
36
|
-
* @param {Object} request.licenseTermsData.licensingConfig The PIL terms and licensing configuration data to attach to the IP.
|
37
|
-
* @param request.licenseTermsData.licensingConfig.isSet Whether the configuration is set or not.
|
38
|
-
* @param request.licenseTermsData.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
|
39
|
-
* @param request.licenseTermsData.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none
|
40
|
-
* @param request.licenseTermsData.licensingConfig.hookData The data to be used by the licensing hook.
|
41
|
-
* @param request.licenseTermsData.licensingConfig.commercialRevShare The commercial revenue share percentage.
|
42
|
-
* @param request.licenseTermsData.licensingConfig.disabled Whether the licensing is disabled or not.
|
43
|
-
* @param request.licenseTermsData.licensingConfig.expectMinimumGroupRewardShare The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100 * 10 ** 6) that can be allocated to the IP when it is added to the group.
|
44
|
-
* If the remaining reward share in the group is less than the minimumGroupRewardShare,the IP cannot be added to the group.
|
45
|
-
* @param request.licenseTermsData.licensingConfig.expectGroupRewardPool The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address, or address(0) if the IP does not want to be added to any group.
|
46
|
-
* @param request.allowDuplicates Set to true to allow minting an NFT with a duplicate metadata hash.
|
47
|
-
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
48
|
-
* . @param request.deadline [Optional] The deadline for the signature in seconds, default value is 1000s.
|
49
|
-
* @param {Object} request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
50
|
-
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
51
|
-
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
52
|
-
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
53
|
-
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
54
|
-
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
55
|
-
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes IP ID, token ID.
|
56
|
-
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
|
27
|
+
/** Mint an NFT from a SPGNFT collection, register it with metadata as an IP, attach license terms to the registered IP, and add it to a group IP.
|
28
|
+
* @see {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/registries/IIPAssetRegistry.sol#L17 | IIPAssetRegistry}
|
29
|
+
* for a list of on-chain events emitted when an IP is minted and registered, license terms are attached to an IP, and it is added to a group.
|
57
30
|
*/
|
58
31
|
mintAndRegisterIpAndAttachLicenseAndAddToGroup(request: MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest): Promise<MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse>;
|
59
32
|
/** Register an NFT as IP with metadata, attach license terms to the registered IP, and add it to a group IP.
|
60
|
-
* @
|
61
|
-
*
|
62
|
-
* @param request.tokenId The ID of the NFT.
|
63
|
-
* @param request.maxAllowedRewardShare The maximum reward share percentage that can be allocated to each member IP.
|
64
|
-
* @param request.groupId The ID of the group IP to add the newly registered IP.
|
65
|
-
* @param {Array} request.licenseData licenseData The data of the license and its configuration to be attached to the new group IP.
|
66
|
-
* @param request.licenseData.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
|
67
|
-
* @param request.licenseData.licenseTemplate [Optional] The address of the license template to be attached to the new group IP, default value is Programmable IP License.
|
68
|
-
* @param request.licenseData.licensingConfig The licensing configuration for the IP.
|
69
|
-
* @param {Object} request.licenseTermsData.licensingConfig The PIL terms and licensing configuration data to attach to the IP.
|
70
|
-
* @param request.licenseTermsData.licensingConfig.isSet Whether the configuration is set or not.
|
71
|
-
* @param request.licenseTermsData.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
|
72
|
-
* @param request.licenseTermsData.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none
|
73
|
-
* @param request.licenseTermsData.licensingConfig.hookData The data to be used by the licensing hook.
|
74
|
-
* @param request.licenseTermsData.licensingConfig.commercialRevShare The commercial revenue share percentage.
|
75
|
-
* @param request.licenseTermsData.licensingConfig.disabled Whether the licensing is disabled or not.
|
76
|
-
* @param request.licenseTermsData.licensingConfig.expectMinimumGroupRewardShare The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100 * 10 ** 6) that can be allocated to the IP when it is added to the group.
|
77
|
-
* If the remaining reward share in the group is less than the minimumGroupRewardShare,the IP cannot be added to the group.
|
78
|
-
* @param request.licenseTermsData.licensingConfig.expectGroupRewardPool The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address, or address(0) if the IP does not want to be added to any group.
|
79
|
-
* . @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
80
|
-
* @param {Object} request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
81
|
-
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
82
|
-
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
83
|
-
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
84
|
-
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
85
|
-
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
86
|
-
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes IP ID, token ID.
|
87
|
-
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
|
33
|
+
* @see {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/registries/IIPAssetRegistry.sol#L17 | IIPAssetRegistry}
|
34
|
+
* for a list of on-chain events emitted when an IP is registered, license terms are attached to an IP, and it is added to a group.
|
88
35
|
*/
|
89
36
|
registerIpAndAttachLicenseAndAddToGroup(request: RegisterIpAndAttachLicenseAndAddToGroupRequest): Promise<RegisterIpAndAttachLicenseAndAddToGroupResponse>;
|
90
37
|
/** Register a group IP with a group reward pool and attach license terms to the group IP.
|
91
|
-
* @
|
92
|
-
*
|
93
|
-
* @param {Object} request.licenseData licenseData The data of the license and its configuration to be attached to the new group IP.
|
94
|
-
* @param request.licenseData.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
|
95
|
-
* @param request.licenseData.licenseTemplate [Optional] The address of the license template to be attached to the new group IP, default value is Programmable IP License.
|
96
|
-
* @param request.licenseData.licensingConfig The licensing configuration for the IP.
|
97
|
-
* @param {Object} request.licenseTermsData.licensingConfig The PIL terms and licensing configuration data to attach to the IP.
|
98
|
-
* @param request.licenseTermsData.licensingConfig.isSet Whether the configuration is set or not.
|
99
|
-
* @param request.licenseTermsData.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
|
100
|
-
* @param request.licenseTermsData.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none
|
101
|
-
* @param request.licenseTermsData.licensingConfig.hookData The data to be used by the licensing hook.
|
102
|
-
* @param request.licenseTermsData.licensingConfig.commercialRevShare The commercial revenue share percentage.
|
103
|
-
* @param request.licenseTermsData.licensingConfig.disabled Whether the licensing is disabled or not.
|
104
|
-
* @param request.licenseTermsData.licensingConfig.expectMinimumGroupRewardShare The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100 * 10 ** 6) that can be allocated to the IP when it is added to the group.
|
105
|
-
* If the remaining reward share in the group is less than the minimumGroupRewardShare,the IP cannot be added to the group.
|
106
|
-
* @param request.licenseTermsData.licensingConfig.expectGroupRewardPool The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address, or address(0) if the IP does not want to be added to any group.
|
107
|
-
* @param request.txOptions [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
108
|
-
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes group id.
|
109
|
-
* @emits PGroupRegistered (groupId, groupPool);
|
38
|
+
* @see {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/grouping/IGroupingModule.sol#L14 | IGroupingModule}
|
39
|
+
* for a list of on-chain events emitted when a group IP is registered, license terms are attached to a group IP .
|
110
40
|
*/
|
111
41
|
registerGroupAndAttachLicense(request: RegisterGroupAndAttachLicenseRequest): Promise<RegisterGroupAndAttachLicenseResponse>;
|
112
42
|
/** Register a group IP with a group reward pool, attach license terms to the group IP, and add individual IPs to the group IP.
|
113
|
-
* @
|
114
|
-
*
|
115
|
-
* @param request.groupPool The address specifying how royalty will be split amongst the pool of IPs in the group.
|
116
|
-
* @param request.maxAllowedRewardShare The maximum reward share percentage that can be allocated to each member IP.
|
117
|
-
* @param {Object} request.licenseData licenseData The data of the license and its configuration to be attached to the new group IP.
|
118
|
-
* @param request.licenseData.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
|
119
|
-
* @param request.licenseData.licenseTemplate [Optional] The address of the license template to be attached to the new group IP, default value is Programmable IP License.
|
120
|
-
* @param request.licenseData.licensingConfig The licensing configuration for the IP.
|
121
|
-
* @param {Object} request.licenseTermsData.licensingConfig The PIL terms and licensing configuration data to attach to the IP.
|
122
|
-
* @param request.licenseTermsData.licensingConfig.isSet Whether the configuration is set or not.
|
123
|
-
* @param request.licenseTermsData.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
|
124
|
-
* @param request.licenseTermsData.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none
|
125
|
-
* @param request.licenseTermsData.licensingConfig.hookData The data to be used by the licensing hook.
|
126
|
-
* @param request.licenseTermsData.licensingConfig.commercialRevShare The commercial revenue share percentage.
|
127
|
-
* @param request.licenseTermsData.licensingConfig.disabled Whether the licensing is disabled or not.
|
128
|
-
* @param request.licenseTermsData.licensingConfig.expectMinimumGroupRewardShare The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100 * 10 ** 6) that can be allocated to the IP when it is added to the group.
|
129
|
-
* If the remaining reward share in the group is less than the minimumGroupRewardShare,the IP cannot be added to the group.
|
130
|
-
* @param request.licenseTermsData.licensingConfig.expectGroupRewardPool The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address, or address(0) if the IP does not want to be added to any group.
|
131
|
-
* @param request.txOptions [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
132
|
-
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes group id.
|
133
|
-
* @emits PGroupRegistered (groupId, groupPool);
|
43
|
+
* @see {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/grouping/IGroupingModule.sol#L14 | IGroupingModule}
|
44
|
+
* for a list of on-chain events emitted when a group IP is registered, license terms are attached to a group IP, and individual IPs are added to a group.
|
134
45
|
*/
|
135
46
|
registerGroupAndAttachLicenseAndAddIps(request: RegisterGroupAndAttachLicenseAndAddIpsRequest): Promise<RegisterGroupAndAttachLicenseAndAddIpsResponse>;
|
136
47
|
private getLicenseData;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"../../../../src/resources","sources":["group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AAEzD,OAAO,EAEL,wBAAwB,EAExB,oBAAoB,EACpB,yBAAyB,EAEzB,uBAAuB,EAMvB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAE1B,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EACnB,4BAAyB;AAK1B,OAAO,EAAE,
|
1
|
+
{"version":3,"file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E;;;OAGG;IACU,uCAAuC,CAClD,OAAO,EAAE,8CAA8C,GACtD,OAAO,CAAC,+CAA+C,CAAC;IA0G3D;;;OAGG;IACU,6BAA6B,CACxC,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,qCAAqC,CAAC;IA0BjD;;;OAGG;IACU,sCAAsC,CACjD,OAAO,EAAE,6CAA6C,GACrD,OAAO,CAAC,8CAA8C,CAAC;IAsD1D,OAAO,CAAC,cAAc;CAkBvB"}
|
@@ -1,10 +1,12 @@
|
|
1
|
-
import { Address, PublicClient } from "viem";
|
2
|
-
import { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, IpAccountStateResponse, TokenResponse } from "../types/resources/ipAccount.js";
|
1
|
+
import { Address, Hex, PublicClient } from "viem";
|
2
|
+
import { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, IpAccountStateResponse, SetIpMetadataRequest, TokenResponse } from "../types/resources/ipAccount.js";
|
3
3
|
import { SimpleWalletClient } from "../abi/generated.js";
|
4
|
+
import { ChainIds } from "../types/config.js";
|
4
5
|
export declare class IPAccountClient {
|
5
6
|
private readonly wallet;
|
6
7
|
private readonly rpcClient;
|
7
|
-
|
8
|
+
private readonly chainId;
|
9
|
+
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: ChainIds);
|
8
10
|
/** Executes a transaction from the IP Account.
|
9
11
|
* @param request - The request object containing necessary data to execute IP Account a transaction.
|
10
12
|
* @param request.ipId The Ip Id to get ip account.
|
@@ -39,5 +41,9 @@ export declare class IPAccountClient {
|
|
39
41
|
* @returns A Promise that resolves to an object containing the chain ID, token contract address, and token ID.
|
40
42
|
*/
|
41
43
|
getToken(ipId: Address): Promise<TokenResponse>;
|
44
|
+
/**
|
45
|
+
* Sets the metadataURI for an IP asset.
|
46
|
+
*/
|
47
|
+
setIpMetadata({ ipId, metadataURI, metadataHash, txOptions, }: SetIpMetadataRequest): Promise<Hex>;
|
42
48
|
}
|
43
49
|
//# sourceMappingURL=ipAccount.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAsB,YAAY,EAAE,MAAM,MAAM,CAAC;AAEtE,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACd,wCAAqC;AAEtC,OAAO,EAIL,kBAAkB,EACnB,4BAAyB;AAE1B,OAAO,EAAE,QAAQ,EAAE,2BAAwB;AAE3C,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;gBACvB,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ;IAMlF;;;;;;;;;OASG;IACU,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAgCzF;;;;;;;;;;;OAWG;IACU,cAAc,CACzB,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,CAAC;IAkC3C;;;OAGG;IACU,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAc9E;;;OAGG;IACU,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;IAiB5D;;OAEG;IACU,aAAa,CAAC,EACzB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,SAAS,GACV,EAAE,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;CAsBvC"}
|