@story-protocol/core-sdk 1.3.1 → 1.3.3
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 +996 -168
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/client.d.ts +6 -6
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +2 -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/group.d.ts +1 -1
- package/dist/declarations/src/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +9 -2
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +31 -3
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +1 -1
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +4 -4
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/resources/wip.d.ts +6 -5
- package/dist/declarations/src/resources/wip.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +2 -2
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +16 -10
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +34 -8
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/group.d.ts +7 -7
- package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +4 -4
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +73 -28
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +23 -7
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/nftClient.d.ts +3 -3
- package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +6 -5
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +10 -6
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/utils/wip.d.ts +4 -3
- package/dist/declarations/src/types/utils/wip.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +2 -0
- package/dist/declarations/src/utils/chain.d.ts.map +1 -1
- package/dist/declarations/src/utils/oov3.d.ts +29 -0
- package/dist/declarations/src/utils/oov3.d.ts.map +1 -0
- package/dist/declarations/src/utils/sign.d.ts.map +1 -1
- package/dist/declarations/src/utils/token.d.ts +1 -1
- package/dist/declarations/src/utils/token.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +8929 -9124
- package/dist/story-protocol-core-sdk.cjs.prod.js +8929 -9124
- package/dist/story-protocol-core-sdk.esm.js +8921 -9116
- package/package.json +8 -5
@@ -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,iBAAiB,EAAE,8BAA2B;AACvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAsB;AAChD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EA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EACV,aAAa,EACb,0BAA0B,EAC1B,+CAA+C,EAC/C,wCAAwC,GACzC,2BAAwB;AAEzB,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,2BAAwB;AAEnF,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,wBAAqB;AAEpE,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,wBAAqB;AAE1E,OAAO,EAAE,eAAe,EAAE,wBAAqB"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Hex, PublicClient } from "viem";
|
2
|
-
import { CancelDisputeRequest, CancelDisputeResponse, DisputeAssertionRequest, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, TagIfRelatedIpInfringedRequest } from "../types/resources/dispute.js";
|
3
2
|
import { ArbitrationPolicyUmaClient, DisputeModuleClient, Multicall3Client, SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
|
4
3
|
import { ChainIds } from "../types/config.js";
|
5
4
|
import { TransactionResponse } from "../types/options.js";
|
5
|
+
import { CancelDisputeRequest, CancelDisputeResponse, DisputeAssertionRequest, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, TagIfRelatedIpInfringedRequest } from "../types/resources/dispute.js";
|
6
6
|
export declare class DisputeClient {
|
7
7
|
disputeModuleClient: DisputeModuleClient;
|
8
8
|
arbitrationPolicyUmaClient: ArbitrationPolicyUmaClient;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../src/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../src/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,GAAG,EAAc,YAAY,EAAe,MAAM,MAAM,CAAC;AAE7F,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EAGnB,gBAAgB,EAChB,kBAAkB,EAClB,eA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leClient, GroupingModuleClient, GroupingModuleEventClient, GroupingWorkflowsClient, IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, RoyaltyModuleEventClient, SimpleWalletClient } from "../abi/generated.js";
|
3
3
|
import { ChainIds } from "../types/config.js";
|
4
|
-
import { MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest, MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse, RegisterGroupAndAttachLicenseAndAddIpsRequest, RegisterGroupAndAttachLicenseAndAddIpsResponse, RegisterGroupAndAttachLicenseRequest, RegisterGroupAndAttachLicenseResponse, RegisterGroupRequest, RegisterGroupResponse, RegisterIpAndAttachLicenseAndAddToGroupRequest, RegisterIpAndAttachLicenseAndAddToGroupResponse, CollectAndDistributeGroupRoyaltiesRequest, CollectAndDistributeGroupRoyaltiesResponse, AddIpRequest, ClaimRewardRequest, ClaimRewardResponse, GetClaimableRewardRequest, RemoveIpsFromGroupRequest, CollectRoyaltiesRequest, CollectRoyaltiesResponse } from "../types/resources/group.js";
|
5
4
|
import { TransactionResponse } from "../types/options.js";
|
5
|
+
import { AddIpRequest, ClaimRewardRequest, ClaimRewardResponse, CollectAndDistributeGroupRoyaltiesRequest, CollectAndDistributeGroupRoyaltiesResponse, CollectRoyaltiesRequest, CollectRoyaltiesResponse, GetClaimableRewardRequest, MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest, MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse, RegisterGroupAndAttachLicenseAndAddIpsRequest, RegisterGroupAndAttachLicenseAndAddIpsResponse, RegisterGroupAndAttachLicenseRequest, RegisterGroupAndAttachLicenseResponse, RegisterGroupRequest, RegisterGroupResponse, RegisterIpAndAttachLicenseAndAddToGroupRequest, RegisterIpAndAttachLicenseAndAddToGroupResponse, RemoveIpsFromGroupRequest } from "../types/resources/group.js";
|
6
6
|
export declare class GroupClient {
|
7
7
|
groupingWorkflowsClient: GroupingWorkflowsClient;
|
8
8
|
groupingModuleEventClient: GroupingModuleEventClient;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"../../../../src/resources","sources":["group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoC,MAAM,MAAM,CAAC;AAEtE,OAAO,EAEL,wBAAwB,EAIxB,oBAAoB,EAEpB,yBAAyB,EAGzB,uBAAuB,EAMvB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAE1B,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EACnB,4BAAyB;
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"../../../../src/resources","sources":["group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoC,MAAM,MAAM,CAAC;AAEtE,OAAO,EAEL,wBAAwB,EAIxB,oBAAoB,EAEpB,yBAAyB,EAGzB,uBAAuB,EAMvB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAE1B,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EACnB,4BAAyB;AAE1B,OAAO,EAAE,QAAQ,EAAE,2BAAwB;AAC3C,OAAO,EAAE,mBAAmB,EAAE,4BAAyB;AACvD,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,yCAAyC,EACzC,0CAA0C,EAC1C,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAGzB,qDAAqD,EACrD,sDAAsD,EACtD,6CAA6C,EAC7C,8CAA8C,EAC9C,oCAAoC,EACpC,qCAAqC,EACrC,oBAAoB,EACpB,qBAAqB,EACrB,8CAA8C,EAC9C,+CAA+C,EAC/C,yBAAyB,EAC1B,oCAAiC;AAWlC,qBAAa,WAAW;IACf,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,qBAAqB,EAAE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,yBAAyB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAchD;;;OAGG;IACU,kBAAkB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,SAAS,GACV,EAAE,yBAAyB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAiB3D;;;;OAIG;IACU,WAAW,CAAC,EACvB,SAAS,EACT,aAAa,EACb,WAAW,EACX,SAAS,GACV,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAuBpD;;;;OAIG;IACU,gBAAgB,CAAC,EAC5B,SAAS,EACT,aAAa,EACb,SAAS,GACV,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAuB9D,OAAO,CAAC,cAAc;CAYvB"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Address, Hex, PublicClient } from "viem";
|
2
|
-
import { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, IpAccountStateResponse, SetIpMetadataRequest, TokenResponse, TransferErc20Request } from "../types/resources/ipAccount.js";
|
3
2
|
import { Erc20Client, SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
|
4
3
|
import { ChainIds } from "../types/config.js";
|
5
4
|
import { TransactionResponse } from "../types/options.js";
|
5
|
+
import { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, IpAccountStateResponse, SetIpMetadataRequest, TokenResponse, TransferErc20Request } from "../types/resources/ipAccount.js";
|
6
6
|
export declare class IPAccountClient {
|
7
7
|
wrappedIpClient: WrappedIpClient;
|
8
8
|
erc20Client: Erc20Client;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
1
|
+
{"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAccount.ts"],"names":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AAmB,CAAC;CAgCvD"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Hex, PublicClient } from "viem";
|
2
|
-
import {
|
3
|
-
import { AccessControllerClient, CoreMetadataModuleClient, DerivativeWorkflowsClient, IpAssetRegistryClient, LicenseAttachmentWorkflowsClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, Multicall3Client, PiLicenseTemplateClient, RegistrationWorkflowsClient, RoyaltyModuleEventClient, RoyaltyTokenDistributionWorkflowsClient, SimpleWalletClient, SpgnftImplReadOnlyClient, WrappedIpClient } from "../abi/generated.js";
|
2
|
+
import { AccessControllerClient, CoreMetadataModuleClient, DerivativeWorkflowsClient, IpAssetRegistryClient, LicenseAttachmentWorkflowsClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, Multicall3Client, PiLicenseTemplateClient, RegistrationWorkflowsClient, RoyaltyModuleEventClient, RoyaltyTokenDistributionWorkflowsClient, SimpleWalletClient, SpgnftImplReadOnlyClient, TotalLicenseTokenLimitHookClient, WrappedIpClient } from "../abi/generated.js";
|
4
3
|
import { ChainIds } from "../types/config.js";
|
4
|
+
import { BatchMintAndRegisterIpAndMakeDerivativeRequest, BatchMintAndRegisterIpAndMakeDerivativeResponse, BatchMintAndRegisterIpAssetWithPilTermsRequest, BatchMintAndRegisterIpAssetWithPilTermsResponse, BatchRegisterDerivativeRequest, BatchRegisterDerivativeResponse, BatchRegisterIpAssetsWithOptimizedWorkflowsRequest, BatchRegisterIpAssetsWithOptimizedWorkflowsResponse, BatchRegisterRequest, BatchRegisterResponse, MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensRequest, MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensResponse, MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest, MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensResponse, MintAndRegisterIpAndMakeDerivativeRequest, MintAndRegisterIpAndMakeDerivativeResponse, MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest, MintAndRegisterIpAssetWithPilTermsRequest, MintAndRegisterIpAssetWithPilTermsResponse, MintAndRegisterIpRequest, RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest, RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest, RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpAndMakeDerivativeWithLicenseTokensRequest, RegisterIpResponse, RegisterPilTermsAndAttachRequest, RegisterPilTermsAndAttachResponse, RegisterRequest } from "../types/resources/ipAsset.js";
|
5
5
|
import { IpCreator, IpMetadata } from "../types/resources/ipMetadata.js";
|
6
6
|
export declare class IPAssetClient {
|
7
7
|
licensingModuleClient: LicensingModuleClient;
|
@@ -19,6 +19,7 @@ export declare class IPAssetClient {
|
|
19
19
|
royaltyModuleEventClient: RoyaltyModuleEventClient;
|
20
20
|
wipClient: WrappedIpClient;
|
21
21
|
spgNftClient: SpgnftImplReadOnlyClient;
|
22
|
+
totalLicenseTokenLimitHookClient: TotalLicenseTokenLimitHookClient;
|
22
23
|
private readonly rpcClient;
|
23
24
|
private readonly wallet;
|
24
25
|
private readonly chainId;
|
@@ -187,5 +188,11 @@ export declare class IPAssetClient {
|
|
187
188
|
private validateLicenseTokenIds;
|
188
189
|
private getIpIdAndTokenIdsFromEvent;
|
189
190
|
private handleRegistrationWithFees;
|
191
|
+
private setMaxLicenseTokens;
|
192
|
+
/**
|
193
|
+
* Process the `LicenseTermsIds` and `maxLicenseTokensTxHashes` for each IP asset.
|
194
|
+
*/
|
195
|
+
private processResponses;
|
196
|
+
private processIpAssetLicenseTerms;
|
190
197
|
}
|
191
198
|
//# sourceMappingURL=ipAsset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,GAAG,EACH,YAAY,EAIb,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EAOzB,qBAAqB,EACrB,gCAAgC,EAIhC,6BAA6B,EAC7B,0BAA0B,EAE1B,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAG3B,wBAAwB,EACxB,uCAAuC,EAMvC,kBAAkB,EAClB,wBAAwB,EACxB,gCAAgC,EAChC,eAAe,EAChB,4BAAyB;AAG1B,OAAO,EAAE,QAAQ,EAAE,2BAAwB;AAC3C,OAAO,EACL,8CAA8C,EAC9C,+CAA+C,EAC/C,8CAA8C,EAC9C,+CAA+C,EAE/C,8BAA8B,EAC9B,+BAA+B,EAC/B,kDAAkD,EAClD,mDAAmD,EACnD,oBAAoB,EACpB,qBAAqB,EAOrB,mEAAmE,EACnE,oEAAoE,EACpE,mEAAmE,EACnE,oEAAoE,EACpE,yCAAyC,EACzC,0CAA0C,EAC1C,0DAA0D,EAC1D,yCAAyC,EACzC,0CAA0C,EAC1C,wBAAwB,EACxB,wEAAwE,EACxE,yEAAyE,EACzE,yBAAyB,EACzB,0BAA0B,EAC1B,0CAA0C,EAC1C,2CAA2C,EAC3C,gEAAgE,EAChE,iEAAiE,EACjE,kCAAkC,EAClC,mCAAmC,EACnC,kCAAkC,EAClC,mCAAmC,EACnC,mDAAmD,EACnD,kBAAkB,EAClB,gCAAgC,EAChC,iCAAiC,EACjC,eAAe,EAGhB,sC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G;IACU,mEAAmE,CAC9E,OAAO,EAAE,wEAAwE,GAChF,OAAO,CAAC,yEAAyE,CAAC;IA8ErF;;;;OAIG;IACU,4DAA4D,CACvE,OAAO,EAAE,mEAAmE,GAC3E,OAAO,CAAC,oEAAoE,CAAC;IA6DhF;;;;OAIG;IACU,4DAA4D,CACvE,OAAO,EAAE,mEAAmE,GAC3E,OAAO,CAAC,oEAAoE,CAAC;YAuClE,uBAAuB;IAoBxB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACU,2CAA2C,CACtD,OAAO,EAAE,kDAAkD,GAC1D,OAAO,CAAC,mDAAmD,CAAC;YAuGjD,iBAAiB;YAWjB,uBAAuB;IAkBrC,OAAO,CAAC,2BAA2B;YAiBrB,0BAA0B;YAqF1B,mBAAmB;IAyBjC;;OAEG;YACW,gBAAgB;YAiChB,0BAA0B;CA8BzC"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { PublicClient } from "viem";
|
2
|
-
import { IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicensingModuleClient, LicensingModulePredictMintingLicenseFeeResponse, ModuleRegistryReadOnlyClient, Multicall3Client, PiLicenseTemplateClient, PiLicenseTemplateGetLicenseTermsResponse, PiLicenseTemplateReadOnlyClient, SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
|
3
|
-
import { RegisterNonComSocialRemixingPILRequest, RegisterPILResponse, RegisterCommercialUsePILRequest, RegisterCommercialRemixPILRequest, AttachLicenseTermsRequest, MintLicenseTokensRequest, MintLicenseTokensResponse, AttachLicenseTermsResponse, LicenseTermsId, RegisterPILTermsRequest, PredictMintingLicenseFeeRequest, SetLicensingConfigRequest, SetLicensingConfigResponse, GetLicensingConfigRequest } from "../types/resources/license.js";
|
4
|
-
import { ChainIds } from "../types/config.js";
|
2
|
+
import { IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicensingModuleClient, LicensingModulePredictMintingLicenseFeeResponse, ModuleRegistryReadOnlyClient, Multicall3Client, PiLicenseTemplateClient, PiLicenseTemplateGetLicenseTermsResponse, PiLicenseTemplateReadOnlyClient, SimpleWalletClient, TotalLicenseTokenLimitHookClient, WrappedIpClient } from "../abi/generated.js";
|
5
3
|
import { LicensingConfig } from "../types/common.js";
|
4
|
+
import { ChainIds } from "../types/config.js";
|
5
|
+
import { TransactionResponse } from "../types/options.js";
|
6
|
+
import { AttachLicenseTermsRequest, AttachLicenseTermsResponse, GetLicensingConfigRequest, LicenseTermsId, MintLicenseTokensRequest, MintLicenseTokensResponse, PredictMintingLicenseFeeRequest, RegisterCommercialRemixPILRequest, RegisterCommercialUsePILRequest, RegisterCreativeCommonsAttributionPILRequest, RegisterNonComSocialRemixingPILRequest, RegisterPILResponse, RegisterPILTermsRequest, SetLicensingConfigRequest, SetLicensingConfigResponse, SetMaxLicenseTokensRequest } from "../types/resources/license.js";
|
6
7
|
export declare class LicenseClient {
|
7
8
|
licensingModuleClient: LicensingModuleClient;
|
8
9
|
ipAssetRegistryClient: IpAssetRegistryClient;
|
@@ -11,6 +12,7 @@ export declare class LicenseClient {
|
|
11
12
|
licenseRegistryReadOnlyClient: LicenseRegistryReadOnlyClient;
|
12
13
|
moduleRegistryReadOnlyClient: ModuleRegistryReadOnlyClient;
|
13
14
|
multicall3Client: Multicall3Client;
|
15
|
+
totalLicenseTokenLimitHookClient: TotalLicenseTokenLimitHookClient;
|
14
16
|
wipClient: WrappedIpClient;
|
15
17
|
private readonly rpcClient;
|
16
18
|
private readonly wallet;
|
@@ -26,21 +28,36 @@ export declare class LicenseClient {
|
|
26
28
|
/**
|
27
29
|
* Convenient function to register a PIL non commercial social remix license to the registry
|
28
30
|
*
|
31
|
+
* For more details, see {@link https://docs.story.foundation/concepts/programmable-ip-license/pil-flavors#flavor-%231%3A-non-commercial-social-remixing | Non Commercial Social Remixing}.
|
32
|
+
*
|
29
33
|
* Emits an on-chain {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/licensing/ILicenseTemplate.sol#L19 | `LicenseTermsRegistered`} event.
|
30
34
|
*/
|
31
35
|
registerNonComSocialRemixingPIL(request?: RegisterNonComSocialRemixingPILRequest): Promise<RegisterPILResponse>;
|
32
36
|
/**
|
33
37
|
* Convenient function to register a PIL commercial use license to the registry.
|
34
38
|
*
|
39
|
+
* For more details, see {@link https://docs.story.foundation/concepts/programmable-ip-license/pil-flavors#flavor-%232%3A-commercial-use | Commercial Use}.
|
40
|
+
*
|
35
41
|
* Emits an on-chain {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/licensing/ILicenseTemplate.sol#L19 | `LicenseTermsRegistered`} event.
|
36
42
|
*/
|
37
43
|
registerCommercialUsePIL(request: RegisterCommercialUsePILRequest): Promise<RegisterPILResponse>;
|
38
44
|
/**
|
39
45
|
* Convenient function to register a PIL commercial Remix license to the registry.
|
40
46
|
*
|
47
|
+
* For more details, see {@link https://docs.story.foundation/concepts/programmable-ip-license/pil-flavors#flavor-%233%3A-commercial-remix | Commercial Remix }.
|
48
|
+
*
|
41
49
|
* Emits an on-chain {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/licensing/ILicenseTemplate.sol#L19 | `LicenseTermsRegistered`} event.
|
42
50
|
*/
|
43
51
|
registerCommercialRemixPIL(request: RegisterCommercialRemixPILRequest): Promise<RegisterPILResponse>;
|
52
|
+
/**
|
53
|
+
* Convenient function to register a PIL creative commons attribution license to the registry.
|
54
|
+
* Creates a Creative Commons Attribution (CC-BY) license terms flavor.
|
55
|
+
*
|
56
|
+
* For more details, see {@link https://docs.story.foundation/concepts/programmable-ip-license/pil-flavors#flavor-%234%3A-creative-commons-attribution | Creative Commons Attribution}.
|
57
|
+
*
|
58
|
+
* Emits an on-chain {@link https://github.com/storyprotocol/protocol-core-v1/blob/v1.3.1/contracts/interfaces/modules/licensing/ILicenseTemplate.sol#L19 | `LicenseTermsRegistered`} event.
|
59
|
+
*/
|
60
|
+
registerCreativeCommonsAttributionPIL({ currency, royaltyPolicyAddress, txOptions, }: RegisterCreativeCommonsAttributionPILRequest): Promise<RegisterPILResponse>;
|
44
61
|
/**
|
45
62
|
* Attaches license terms to an IP.
|
46
63
|
*/
|
@@ -73,7 +90,18 @@ export declare class LicenseClient {
|
|
73
90
|
* 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.
|
74
91
|
*/
|
75
92
|
setLicensingConfig(request: SetLicensingConfigRequest): Promise<SetLicensingConfigResponse>;
|
93
|
+
/**
|
94
|
+
* Set the max license token limit for a specific license.
|
95
|
+
*
|
96
|
+
* @remarks
|
97
|
+
* This method automatically configures the licensing hook to use the
|
98
|
+
* {@link https://github.com/storyprotocol/protocol-periphery-v1/blob/release/1.3/contracts/hooks/TotalLicenseTokenLimitHook.sol | TotalLicenseTokenLimitHook} contract
|
99
|
+
* if the current licensing hook is not set to `TotalLicenseTokenLimitHook`, and sets the max license tokens
|
100
|
+
* to the specified limit.
|
101
|
+
*/
|
102
|
+
setMaxLicenseTokens({ ipId, licenseTermsId, maxLicenseTokens, licenseTemplate, txOptions, }: SetMaxLicenseTokensRequest): Promise<TransactionResponse>;
|
76
103
|
getLicensingConfig(request: GetLicensingConfigRequest): Promise<LicensingConfig>;
|
77
104
|
private getLicenseTermsId;
|
105
|
+
private registerPILTermsHelper;
|
78
106
|
}
|
79
107
|
//# sourceMappingURL=license.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAe,MAAM,MAAM,CAAC;AAE1D,OAAO,EAEL,qBAAqB,EAErB,6BAA6B,EAC7B,qBAAqB,EAGrB,+CAA+C,EAE/C,4BAA4B,EAC5B,gBAAgB,EAChB,uBAAuB,EACvB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,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC;YAe/E,iBAAiB;YAKjB,sBAAsB;CA4BrC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Address, PublicClient } from "viem";
|
2
2
|
import { RegistrationWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
|
3
|
-
import { CreateNFTCollectionRequest, CreateNFTCollectionResponse, GetTokenURIRequest, SetTokenURIRequest } from "../types/resources/nftClient.js";
|
4
3
|
import { TransactionResponse } from "../types/options.js";
|
4
|
+
import { CreateNFTCollectionRequest, CreateNFTCollectionResponse, GetTokenURIRequest, SetTokenURIRequest } from "../types/resources/nftClient.js";
|
5
5
|
export declare class NftClient {
|
6
6
|
registrationWorkflowsClient: RegistrationWorkflowsClient;
|
7
7
|
private readonly rpcClient;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
1
|
+
{"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAwB,YAAY,EAAe,MAAM,MAAM,CAAC;AAEhF,OAAO,EACL,2BAA2B,EAE3B,kBAAkB,EAGnB,4BAAyB;AAC1B,OAAO,EAAE,mBAAmB,EAAE,4BAAyB;AACvD,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EACnB,wCAAqC;AAKtC,qBAAa,SAAS;IACb,2BAA2B,EAAE,2BAA2B,CAAC;IAEhE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;OAKG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;IAiDvC;;OAEG;IACU,eAAe,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAQvE;;OAEG;IACU,UAAU,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAQjE;;;;;OAKG;IACU,WAAW,CAAC,EACvB,OAAO,EACP,QAAQ,EACR,cAAc,EACd,SAAS,GACV,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqBpD;;OAEG;IACU,WAAW,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;CAI3F"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PublicClient } from "viem";
|
2
|
-
import { CreateBatchPermissionSignatureRequest, CreateSetPermissionSignatureRequest, SetAllPermissionsRequest, SetBatchPermissionsRequest, SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
|
3
2
|
import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, SimpleWalletClient } from "../abi/generated.js";
|
4
3
|
import { ChainIds } from "../types/config.js";
|
4
|
+
import { CreateBatchPermissionSignatureRequest, CreateSetPermissionSignatureRequest, SetAllPermissionsRequest, SetBatchPermissionsRequest, SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
|
5
5
|
export declare class PermissionClient {
|
6
6
|
accessControllerClient: AccessControllerClient;
|
7
7
|
ipAssetRegistryClient: IpAssetRegistryClient;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../src/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../src/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAoC,MAAM,MAAM,CAAC;AAEnG,OAAO,EAEL,sBAAsB,EACtB,wBAAwB,EAExB,qBAAqB,EACrB,kBAAkB,EACnB,4BAAyB;AAE1B,OAAO,EAAE,QAAQ,EAAE,2BAAwB;AAC3C,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACvB,yCAAsC;AAKvC,qBAAa,gBAAgB;IACpB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,wBAAwB,EAAE,wBAAwB,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;gBAEvB,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ;IASlF;;;;;;;;OAQG;IACU,aAAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA2B3F;;;;OAIG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,sBAAsB,CAAC;IA2DlC;;;;OAIG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,sBAAsB,CAAC;IAuBlC;;;;OAIG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,sBAAsB,CAAC;IA8BlC;;;;OAIG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sBAAsB,CAAC;YAsDpB,iBAAiB;CAQhC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Address, Hex, PublicClient } from "viem";
|
2
|
-
import { BatchClaimAllRevenueRequest, BatchClaimAllRevenueResponse, ClaimableRevenueRequest, ClaimableRevenueResponse, ClaimAllRevenueRequest, ClaimAllRevenueResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, TransferToVaultRequest } from "../types/resources/royalty.js";
|
3
2
|
import { IpAssetRegistryClient, IpRoyaltyVaultImplEventClient, IpRoyaltyVaultImplReadOnlyClient, Multicall3Client, RoyaltyModuleClient, RoyaltyWorkflowsClient, SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
|
4
|
-
import { TransactionResponse } from "../types/options.js";
|
5
3
|
import { ChainIds } from "../types/config.js";
|
4
|
+
import { TransactionResponse } from "../types/options.js";
|
5
|
+
import { BatchClaimAllRevenueRequest, BatchClaimAllRevenueResponse, ClaimableRevenueRequest, ClaimableRevenueResponse, ClaimAllRevenueRequest, ClaimAllRevenueResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, TransferToVaultRequest } from "../types/resources/royalty.js";
|
6
6
|
export declare class RoyaltyClient {
|
7
7
|
royaltyModuleClient: RoyaltyModuleClient;
|
8
8
|
ipAssetRegistryClient: IpAssetRegistryClient;
|
@@ -49,9 +49,9 @@ export declare class RoyaltyClient {
|
|
49
49
|
*/
|
50
50
|
claimableRevenue(request: ClaimableRevenueRequest): Promise<ClaimableRevenueResponse>;
|
51
51
|
/**
|
52
|
-
* Get the royalty vault proxy address of given
|
52
|
+
* Get the royalty vault proxy address of given ip id of the royalty vault.
|
53
53
|
*/
|
54
|
-
getRoyaltyVaultAddress(
|
54
|
+
getRoyaltyVaultAddress(ipId: Hex): Promise<Address>;
|
55
55
|
/**
|
56
56
|
* Transfers to vault an amount of revenue tokens claimable via a royalty policy.
|
57
57
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAIP,GAAG,EACH,YAAY,EAGb,MAAM,MAAM,CAAC;AAEd,OAAO,EAEL,q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,CAAC,wBAAwB,CAAC;IAapC;;OAEG;IACU,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAUhE;;OAEG;IACU,eAAe,CAAC,EAC3B,SAAS,EACT,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,KAAK,GACN,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;YAsB1C,mCAAmC;YAuBnC,cAAc;IAa5B;;;OAGG;YACW,eAAe;CAiB9B"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Address, PublicClient } from "viem";
|
2
2
|
import { SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
|
3
|
+
import { TransactionResponse } from "../types/options.js";
|
3
4
|
import { ApproveRequest, DepositRequest, TransferFromRequest, TransferRequest, WithdrawRequest } from "../types/resources/wip.js";
|
4
5
|
export declare class WipClient {
|
5
6
|
wrappedIpClient: WrappedIpClient;
|
@@ -10,15 +11,15 @@ export declare class WipClient {
|
|
10
11
|
* Wraps the selected amount of IP to WIP.
|
11
12
|
* The WIP will be deposited to the wallet that transferred the IP.
|
12
13
|
*/
|
13
|
-
deposit({ amount, txOptions }: DepositRequest): Promise<
|
14
|
+
deposit({ amount, txOptions }: DepositRequest): Promise<TransactionResponse>;
|
14
15
|
/**
|
15
16
|
* Unwraps the selected amount of WIP to IP.
|
16
17
|
*/
|
17
|
-
withdraw({ amount, txOptions }: WithdrawRequest): Promise<
|
18
|
+
withdraw({ amount, txOptions }: WithdrawRequest): Promise<TransactionResponse>;
|
18
19
|
/**
|
19
20
|
* Approve a spender to use the wallet's WIP balance.
|
20
21
|
*/
|
21
|
-
approve(req: ApproveRequest): Promise<
|
22
|
+
approve(req: ApproveRequest): Promise<TransactionResponse>;
|
22
23
|
/**
|
23
24
|
* Returns the balance of WIP for an address.
|
24
25
|
*/
|
@@ -26,10 +27,10 @@ export declare class WipClient {
|
|
26
27
|
/**
|
27
28
|
* Transfers `amount` of WIP to a recipient `to`.
|
28
29
|
*/
|
29
|
-
transfer(request: TransferRequest): Promise<
|
30
|
+
transfer(request: TransferRequest): Promise<TransactionResponse>;
|
30
31
|
/**
|
31
32
|
* Transfers `amount` of WIP from `from` to a recipient `to`.
|
32
33
|
*/
|
33
|
-
transferFrom(request: TransferFromRequest): Promise<
|
34
|
+
transferFrom(request: TransferFromRequest): Promise<TransactionResponse>;
|
34
35
|
}
|
35
36
|
//# sourceMappingURL=wip.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wip.d.ts","sourceRoot":"../../../../src/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAA2B,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"wip.d.ts","sourceRoot":"../../../../src/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAA2B,MAAM,MAAM,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAgB,eAAe,EAAE,4BAAyB;AAErF,OAAO,EAAE,mBAAmB,EAAE,4BAAyB;AACvD,OAAO,EACL,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EAChB,kCAA+B;AAKhC,qBAAa,SAAS;IACb,eAAe,EAAE,eAAe,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;OAGG;IACU,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAuBzF;;OAEG;IACU,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAiB3F;;OAEG;IACU,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqBvE;;OAEG;IACU,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAMtD;;OAEG;IACU,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoB7E;;OAEG;IACU,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAoBtF"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Account,
|
1
|
+
import { Account, Address, Transport } from "viem";
|
2
2
|
import { SimpleWalletClient } from "../abi/generated.js";
|
3
3
|
/**
|
4
4
|
* Supported chains. For convenience, both name or chain ID are supported.
|
@@ -45,5 +45,5 @@ export type StoryConfig = {
|
|
45
45
|
export type ContractAddress = {
|
46
46
|
[key in SupportedChainIds]: Record<string, string>;
|
47
47
|
};
|
48
|
-
export type ChainIds =
|
48
|
+
export type ChainIds = 1315 | 1514;
|
49
49
|
//# sourceMappingURL=config.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,4BAAyB;AAEtD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC;AAErF,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
@@ -1,10 +1,5 @@
|
|
1
1
|
import { Hash, PublicClient, TransactionReceipt, WaitForTransactionReceiptParameters } from "viem";
|
2
2
|
export type TxOptions = Omit<WaitForTransactionReceiptParameters, "hash"> & {
|
3
|
-
/**
|
4
|
-
* Whether or not to wait for the transaction so you can receive a transaction receipt in return
|
5
|
-
* (which contains data about the transaction and return values).
|
6
|
-
*/
|
7
|
-
waitForTransaction?: boolean;
|
8
3
|
/**
|
9
4
|
* When this option is set, the transaction will not submit and execute.
|
10
5
|
* It will only encode the ABI and function data and return.
|
@@ -28,7 +23,9 @@ export type ERC20Options = {
|
|
28
23
|
* Options to override the default behavior of the auto approve logic
|
29
24
|
*/
|
30
25
|
export type WithERC20Options = {
|
31
|
-
|
26
|
+
options?: {
|
27
|
+
erc20Options?: ERC20Options;
|
28
|
+
};
|
32
29
|
};
|
33
30
|
export type WipOptions = {
|
34
31
|
/**
|
@@ -59,8 +56,18 @@ export type WipOptions = {
|
|
59
56
|
* and auto approve logic.
|
60
57
|
*/
|
61
58
|
export type WithWipOptions = {
|
62
|
-
|
63
|
-
|
59
|
+
options?: {
|
60
|
+
/** options to configure WIP behavior */
|
61
|
+
wipOptions?: WipOptions;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
export type WithErc20AndWipOptions = {
|
65
|
+
options?: {
|
66
|
+
/** options to configure ERC20 behavior */
|
67
|
+
erc20Options?: ERC20Options;
|
68
|
+
/** options to configure WIP behavior */
|
69
|
+
wipOptions?: WipOptions;
|
70
|
+
};
|
64
71
|
};
|
65
72
|
export type WaitForTransactionReceiptRequest = {
|
66
73
|
txHash: Hash;
|
@@ -74,7 +81,6 @@ export type WaitForTransactionReceiptsRequest = {
|
|
74
81
|
};
|
75
82
|
export type TransactionResponse = {
|
76
83
|
txHash: Hash;
|
77
|
-
|
78
|
-
receipt?: TransactionReceipt;
|
84
|
+
receipt: TransactionReceipt;
|
79
85
|
};
|
80
86
|
//# sourceMappingURL=options.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,mCAAmC,EAAE,MAAM,MAAM,CAAC;AAEnG,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,GAAG;IAC1E;;;OAGG;IACH,
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,mCAAmC,EAAE,MAAM,MAAM,CAAC;AAEnG,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,GAAG;IAC1E;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,C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CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Address, Hex } from "viem";
|
2
|
-
import { TxOptions, WipOptions, WithTxOptions } from "../options.js";
|
1
|
+
import { Address, Hash, Hex } from "viem";
|
3
2
|
import { EncodedTxData } from "../../abi/generated.js";
|
3
|
+
import { TxOptions, WipOptions, WithTxOptions } from "../options.js";
|
4
4
|
export type RaiseDisputeRequest = WithTxOptions & {
|
5
5
|
/** The IP ID that is the target of the dispute. */
|
6
6
|
targetIpId: Address;
|
@@ -12,10 +12,10 @@ export type RaiseDisputeRequest = WithTxOptions & {
|
|
12
12
|
cid: string;
|
13
13
|
/**
|
14
14
|
* The target tag of the dispute.
|
15
|
-
* @see https://docs.story.foundation/docs/dispute-module#dispute-tags
|
16
|
-
* @example
|
15
|
+
* @see {@link https://docs.story.foundation/docs/dispute-module#dispute-tags | Dispute Tags}
|
16
|
+
* @example {@link DisputeTargetTag.IMPROPER_REGISTRATION}
|
17
17
|
*/
|
18
|
-
targetTag:
|
18
|
+
targetTag: DisputeTargetTag;
|
19
19
|
/** The liveness is the time window (in seconds) in which a counter dispute can be presented (30days). */
|
20
20
|
liveness: bigint | number | string;
|
21
21
|
/**
|
@@ -32,7 +32,7 @@ export type RaiseDisputeRequest = WithTxOptions & {
|
|
32
32
|
wipOptions?: Omit<WipOptions, "useMulticallWhenPossible">;
|
33
33
|
};
|
34
34
|
export type RaiseDisputeResponse = {
|
35
|
-
txHash?:
|
35
|
+
txHash?: Hash;
|
36
36
|
encodedTxData?: EncodedTxData;
|
37
37
|
disputeId?: bigint;
|
38
38
|
};
|
@@ -47,7 +47,7 @@ export type CancelDisputeRequest = {
|
|
47
47
|
txOptions?: TxOptions;
|
48
48
|
};
|
49
49
|
export type CancelDisputeResponse = {
|
50
|
-
txHash?:
|
50
|
+
txHash?: Hash;
|
51
51
|
encodedTxData?: EncodedTxData;
|
52
52
|
};
|
53
53
|
export type ResolveDisputeRequest = {
|
@@ -61,7 +61,7 @@ export type ResolveDisputeRequest = {
|
|
61
61
|
txOptions?: TxOptions;
|
62
62
|
};
|
63
63
|
export type ResolveDisputeResponse = {
|
64
|
-
txHash?:
|
64
|
+
txHash?: Hash;
|
65
65
|
encodedTxData?: EncodedTxData;
|
66
66
|
};
|
67
67
|
export type TagIfRelatedIpInfringedRequest = {
|
@@ -105,4 +105,30 @@ export type DisputeAssertionRequest = {
|
|
105
105
|
*/
|
106
106
|
wipOptions?: Omit<WipOptions, "useMulticallWhenPossible">;
|
107
107
|
} & WithTxOptions;
|
108
|
+
/**
|
109
|
+
* Tags refer to the “labels” that can be applied to IP Assets in the protocol when raising a dispute.
|
110
|
+
* Tags must be whitelisted by protocol governance to be used in a dispute.
|
111
|
+
* @see {@link https://docs.story.foundation/docs/dispute-module#dispute-tags | Dispute Tags}
|
112
|
+
*/
|
113
|
+
export declare enum DisputeTargetTag {
|
114
|
+
/** Refers to registration of IP that already exists. */
|
115
|
+
IMPROPER_REGISTRATION = "IMPROPER_REGISTRATION",
|
116
|
+
/**
|
117
|
+
* Refers to improper use of an IP Asset across multiple items.
|
118
|
+
* For more details, @see {@link https://docs.story.foundation/concepts/programmable-ip-license/overview | Programmable IP License (PIL)} documentation.
|
119
|
+
*/
|
120
|
+
IMPROPER_USAGE = "IMPROPER_USAGE",
|
121
|
+
/** Refers to missing payments associated with an IP. */
|
122
|
+
IMPROPER_PAYMENT = "IMPROPER_PAYMENT",
|
123
|
+
/**
|
124
|
+
* Refers to “No-Hate”, “Suitable-for-All-Ages”, “No-Drugs-or-Weapons” and “No-Pornography”.
|
125
|
+
* These items can be found in more detail in the {@link https://docs.story.foundation/concepts/programmable-ip-license/overview | 💊 Programmable IP License (PIL) } legal document.
|
126
|
+
*/
|
127
|
+
CONTENT_STANDARDS_VIOLATION = "CONTENT_STANDARDS_VIOLATION",
|
128
|
+
/**
|
129
|
+
* Different from the other 4, this is a temporary tag that goes away
|
130
|
+
* at the end of a dispute and is replaced by “0x” in case of no infringement or is replaced by one of the other tags.
|
131
|
+
*/
|
132
|
+
IN_DISPUTE = "IN_DISPUTE"
|
133
|
+
}
|
108
134
|
//# sourceMappingURL=dispute.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,sBAAmB;AAElE,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,mDAAmD;IACnD,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,SAAS,EAAE,gBAAgB,CAAC;IAC5B,yGAAyG;IACzG,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,0BAA0B,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,S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,UAAU,eAAe;CAC1B"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Address, Hash, TransactionReceipt } from "viem";
|
2
|
-
import { TxOptions } from "../options.js";
|
3
2
|
import { EncodedTxData, GroupingModuleClaimedRewardEvent, GroupingModuleCollectedRoyaltiesToGroupPoolEvent } from "../../abi/generated.js";
|
4
|
-
import { IpMetadataAndTxOptions,
|
3
|
+
import { IpMetadataAndTxOptions, LicensingConfig, LicensingConfigInput } from "../common.js";
|
4
|
+
import { TxOptions } from "../options.js";
|
5
5
|
export type LicenseDataInput = {
|
6
6
|
licenseTermsId: string | bigint | number;
|
7
7
|
/**
|
@@ -38,7 +38,7 @@ export type MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest = {
|
|
38
38
|
deadline?: string | number | bigint;
|
39
39
|
} & IpMetadataAndTxOptions;
|
40
40
|
export type MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse = {
|
41
|
-
txHash?:
|
41
|
+
txHash?: Hash;
|
42
42
|
encodedTxData?: EncodedTxData;
|
43
43
|
ipId?: Address;
|
44
44
|
tokenId?: bigint;
|
@@ -49,7 +49,7 @@ export type RegisterGroupRequest = {
|
|
49
49
|
txOptions?: TxOptions;
|
50
50
|
};
|
51
51
|
export type RegisterGroupResponse = {
|
52
|
-
txHash?:
|
52
|
+
txHash?: Hash;
|
53
53
|
encodedTxData?: EncodedTxData;
|
54
54
|
groupId?: Address;
|
55
55
|
};
|
@@ -69,7 +69,7 @@ export type RegisterIpAndAttachLicenseAndAddToGroupRequest = {
|
|
69
69
|
maxAllowedRewardShare: number | string;
|
70
70
|
} & IpMetadataAndTxOptions;
|
71
71
|
export type RegisterIpAndAttachLicenseAndAddToGroupResponse = {
|
72
|
-
txHash?:
|
72
|
+
txHash?: Hash;
|
73
73
|
encodedTxData?: EncodedTxData;
|
74
74
|
ipId?: Address;
|
75
75
|
tokenId?: bigint;
|
@@ -82,7 +82,7 @@ export type RegisterGroupAndAttachLicenseRequest = {
|
|
82
82
|
txOptions?: TxOptions;
|
83
83
|
};
|
84
84
|
export type RegisterGroupAndAttachLicenseResponse = {
|
85
|
-
txHash?:
|
85
|
+
txHash?: Hash;
|
86
86
|
encodedTxData?: EncodedTxData;
|
87
87
|
groupId?: Address;
|
88
88
|
};
|
@@ -98,7 +98,7 @@ export type RegisterGroupAndAttachLicenseAndAddIpsRequest = {
|
|
98
98
|
txOptions?: TxOptions;
|
99
99
|
};
|
100
100
|
export type RegisterGroupAndAttachLicenseAndAddIpsResponse = {
|
101
|
-
txHash?:
|
101
|
+
txHash?: Hash;
|
102
102
|
encodedTxData?: EncodedTxData;
|
103
103
|
groupId?: Address;
|
104
104
|
};
|