@story-protocol/core-sdk 1.0.0-rc.21 → 1.0.0-rc.23

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.
Files changed (33) hide show
  1. package/dist/declarations/src/abi/generated.d.ts +300 -3
  2. package/dist/declarations/src/abi/generated.d.ts.map +1 -1
  3. package/dist/declarations/src/index.d.ts +4 -3
  4. package/dist/declarations/src/index.d.ts.map +1 -1
  5. package/dist/declarations/src/resources/dispute.d.ts +3 -1
  6. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/ipAccount.d.ts +11 -4
  8. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
  9. package/dist/declarations/src/resources/ipAsset.d.ts +17 -40
  10. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  11. package/dist/declarations/src/resources/license.d.ts +37 -9
  12. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  13. package/dist/declarations/src/resources/nftClient.d.ts +1 -1
  14. package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
  15. package/dist/declarations/src/resources/permission.d.ts +5 -5
  16. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  17. package/dist/declarations/src/resources/royalty.d.ts +4 -5
  18. package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
  19. package/dist/declarations/src/types/options.d.ts +3 -5
  20. package/dist/declarations/src/types/options.d.ts.map +1 -1
  21. package/dist/declarations/src/types/resources/ipAccount.d.ts +5 -0
  22. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
  23. package/dist/declarations/src/types/resources/ipAsset.d.ts +26 -0
  24. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  25. package/dist/declarations/src/types/resources/license.d.ts +18 -7
  26. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  27. package/dist/declarations/src/utils/chain.d.ts +34 -0
  28. package/dist/declarations/src/utils/chain.d.ts.map +1 -0
  29. package/dist/declarations/src/utils/sign.d.ts.map +1 -1
  30. package/dist/story-protocol-core-sdk.cjs.dev.js +1781 -1200
  31. package/dist/story-protocol-core-sdk.cjs.prod.js +1781 -1200
  32. package/dist/story-protocol-core-sdk.esm.js +1781 -1201
  33. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { PublicClient, Address } from "viem";
1
+ import { PublicClient } from "viem";
2
2
  import { SupportedChainIds } from "../types/config.js";
3
- import { CreateIpAssetWithPilTermsRequest, CreateIpAssetWithPilTermsResponse, IpAttribute, IpCreator, IpCreatorSocial, IpMedia, IpMetadata, IpRelationship, IPRobotTerms, MintAndRegisterIpAndMakeDerivativeRequest, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpResponse, RegisterRequest, StoryProtocolApp } from "../types/resources/ipAsset.js";
3
+ import { CreateIpAssetWithPilTermsRequest, CreateIpAssetWithPilTermsResponse, GenerateCreatorMetadataParam, GenerateIpMetadataParam, IpCreator, IpMetadata, MintAndRegisterIpAndMakeDerivativeRequest, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpResponse, RegisterRequest } from "../types/resources/ipAsset.js";
4
4
  import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, RoyaltyPolicyLapClient, SimpleWalletClient, SpgClient } from "../abi/generated.js";
5
5
  export declare class IPAssetClient {
6
6
  licensingModuleClient: LicensingModuleClient;
@@ -26,19 +26,11 @@ export declare class IPAssetClient {
26
26
  * @param params.socialMedia [Optional] An array of social media profiles associated with the creator.
27
27
  * @param params.socialMedia[].platform The name of the social media platform.
28
28
  * @param params.socialMedia[].url The URL to the creator's profile on the platform.
29
- * @param params.contributionPercent The percentage of contribution by the creator, must add up to 100.
30
- * @param params.role [Optional] The role of the creator in relation to the IP.
29
+ * @param params.contributionPercent The percentage of contribution by the creator, must add up to 100.
30
+ * @param params.role [Optional] The role of the creator in relation to the IP.
31
31
  * @returns An `IpCreator` object containing the provided details.
32
32
  */
33
- generateCreatorMetadata({ name, address, description, image, socialMedia, contributionPercent, role, }: {
34
- name: string;
35
- address: Address;
36
- contributionPercent: number;
37
- description?: string;
38
- image?: string;
39
- socialMedia?: IpCreatorSocial[];
40
- role?: string;
41
- }): IpCreator;
33
+ generateCreatorMetadata(param: GenerateCreatorMetadataParam): IpCreator;
42
34
  /**
43
35
  * Create a new `IpMetadata` object with the specified details.
44
36
  * @param params - The parameters required to create the `IpMetadata` object.
@@ -56,8 +48,8 @@ export declare class IPAssetClient {
56
48
  * @param params.creators[].description [Optional] A description of the creator.
57
49
  * @param params.creators[].image [Optional] The URL or path to an image representing the creator.
58
50
  * @param params.creators[].socialMedia [Optional] An array of social media profiles for the creator.
59
- * @param params.creators[].socialMedia[].platform The social media platform name.
60
- * @param params.creators[].socialMedia[].url The URL to the creator's profile.
51
+ * @param params.creators[].socialMedia[].platform The social media platform name.
52
+ * @param params.creators[].socialMedia[].url The URL to the creator's profile.
61
53
  * @param params.creators[].role [Optional] The role of the creator in relation to the IP.
62
54
  * @param params.creators[].contributionPercent The percentage of contribution by the creator.
63
55
  * @param params.media [Optional] An array of media related to the IP.
@@ -78,23 +70,7 @@ export declare class IPAssetClient {
78
70
  * @param params.additionalProperties [Optional] Any additional key-value pairs to include in the metadata.
79
71
  * @returns An `IpMetadata` object containing the provided details and any additional properties.
80
72
  */
81
- generateIpMetadata({ title, description, ipType, relationships, createdAt, watermarkImg, creators, media, attributes, app, tags, robotTerms, ...additionalProperties }: {
82
- title?: string;
83
- description?: string;
84
- ipType?: string;
85
- relationships?: IpRelationship[];
86
- createdAt?: string;
87
- watermarkImg?: string;
88
- creators?: IpCreator[];
89
- media?: IpMedia[];
90
- attributes?: IpAttribute[];
91
- app?: StoryProtocolApp;
92
- tags?: string[];
93
- robotTerms?: IPRobotTerms;
94
- additionalProperties?: {
95
- [key: string]: unknown;
96
- };
97
- }): IpMetadata;
73
+ generateIpMetadata(param: GenerateIpMetadataParam): IpMetadata;
98
74
  /**
99
75
  * Registers an NFT as IP, creating a corresponding IP record.
100
76
  * @param request - The request object that contains all data needed to register IP.
@@ -106,7 +82,7 @@ export declare class IPAssetClient {
106
82
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
107
83
  * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
108
84
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
109
- * @param request.txOptions [Optional] The transaction options.
85
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
110
86
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
111
87
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
112
88
  */
@@ -121,7 +97,7 @@ export declare class IPAssetClient {
121
97
  * @param request.childIpId The derivative IP ID.
122
98
  * @param request.parentIpIds The parent IP IDs.
123
99
  * @param request.licenseTermsIds The IDs of the license terms that the parent IP supports.
124
- * @param request.txOptions [Optional] The transaction options.
100
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
125
101
  * @returns A Promise that resolves to an object containing the transaction hash.
126
102
  */
127
103
  registerDerivative(request: RegisterDerivativeRequest): Promise<RegisterDerivativeResponse>;
@@ -133,7 +109,7 @@ export declare class IPAssetClient {
133
109
  * @param request - The request object that contains all data needed to register derivative license tokens.
134
110
  * @param request.childIpId The derivative IP ID.
135
111
  * @param request.licenseTokenIds The IDs of the license tokens.
136
- * @param request.txOptions [Optional] The transaction options.
112
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
137
113
  * @returns A Promise that resolves to an object containing the transaction hash.
138
114
  */
139
115
  registerDerivativeWithLicenseTokens(request: RegisterDerivativeWithLicenseTokensRequest): Promise<RegisterDerivativeWithLicenseTokensResponse>;
@@ -151,7 +127,7 @@ export declare class IPAssetClient {
151
127
  * @param request.mintingFee [Optional] The fee to be paid when minting a license.
152
128
  * @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
153
129
  * @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
154
- * @param request.txOptions [Optional] The transaction options.
130
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
155
131
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID, Token ID, License Terms Id if waitForTxn is set to true.
156
132
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
157
133
  * @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
@@ -172,7 +148,7 @@ export declare class IPAssetClient {
172
148
  * @param request.mintingFee [Optional] The fee to be paid when minting a license.
173
149
  * @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
174
150
  * @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
175
- * @param request.txOptions [Optional] The transaction options.
151
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
176
152
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID, License Terms Id if waitForTxn is set to true.
177
153
  * @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
178
154
  */
@@ -192,7 +168,7 @@ export declare class IPAssetClient {
192
168
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
193
169
  * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
194
170
  * @param request.deadline [Optional] The deadline for the signature in milliseconds,default is 1000ms.
195
- * @param request.txOptions [Optional] The transaction options.
171
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
196
172
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
197
173
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
198
174
  */
@@ -209,8 +185,9 @@ export declare class IPAssetClient {
209
185
  * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
210
186
  * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
211
187
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
212
- * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.* @param request.recipient [Optional] The address of the recipient of the minted NFT.
213
- * @param request.txOptions [Optional] The transaction options.
188
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.*
189
+ * @param request.recipient [Optional] The address of the recipient of the minted NFT.
190
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
214
191
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
215
192
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
216
193
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,OAAO,EASR,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAEpD,OAAO,EACL,gCAAgC,EAChC,iCAAiC,EACjC,WAAW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C/B,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,mCAAmC,CAAC;IA6H/C;;;;;;;;;;;;;;;;;OAiBG;IACU,kCAAkC,CAC7C,OAAO,EAAE,yCAAyC,GACjD,OAAO,CAAC,0BAA0B,CAAC;YA4DxB,cAAc;YAYd,YAAY;IAI1B,OAAO,CAAC,oBAAoB;YA+Bd,iBAAiB;CAYhC"}
@@ -1,6 +1,6 @@
1
1
  import { PublicClient } from "viem";
2
- import { IpAssetRegistryClient, LicenseRegistryEventClient, LicenseRegistryReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, PiLicenseTemplateGetLicenseTermsResponse, PiLicenseTemplateReadOnlyClient, RoyaltyPolicyLapClient, SimpleWalletClient } from "../abi/generated.js";
3
- import { RegisterNonComSocialRemixingPILRequest, RegisterPILResponse, RegisterCommercialUsePILRequest, RegisterCommercialRemixPILRequest, AttachLicenseTermsRequest, MintLicenseTokensRequest, MintLicenseTokensResponse, AttachLicenseTermsResponse, LicenseTermsId } from "../types/resources/license.js";
2
+ import { IpAssetRegistryClient, LicenseRegistryEventClient, LicenseRegistryReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, PiLicenseTemplateGetLicenseTermsResponse, PiLicenseTemplateReadOnlyClient, RoyaltyModuleReadOnlyClient, RoyaltyPolicyLapClient, SimpleWalletClient } from "../abi/generated.js";
3
+ import { RegisterNonComSocialRemixingPILRequest, RegisterPILResponse, RegisterCommercialUsePILRequest, RegisterCommercialRemixPILRequest, AttachLicenseTermsRequest, MintLicenseTokensRequest, MintLicenseTokensResponse, AttachLicenseTermsResponse, LicenseTermsId, RegisterPILTermsRequest } from "../types/resources/license.js";
4
4
  export declare class LicenseClient {
5
5
  licenseRegistryClient: LicenseRegistryEventClient;
6
6
  licensingModuleClient: LicensingModuleClient;
@@ -8,14 +8,40 @@ export declare class LicenseClient {
8
8
  piLicenseTemplateReadOnlyClient: PiLicenseTemplateReadOnlyClient;
9
9
  licenseTemplateClient: PiLicenseTemplateClient;
10
10
  royaltyPolicyLAPClient: RoyaltyPolicyLapClient;
11
+ royaltyModuleReadOnlyClient: RoyaltyModuleReadOnlyClient;
11
12
  licenseRegistryReadOnlyClient: LicenseRegistryReadOnlyClient;
12
13
  private readonly rpcClient;
13
14
  private readonly wallet;
14
15
  constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
16
+ /**
17
+ * Registers new license terms and return the ID of the newly registered license terms.
18
+ * @param request - The request object that contains all data needed to register a license term.
19
+ * @param request.transferable Indicates whether the license is transferable or not.
20
+ * @param request.royaltyPolicy The address of the royalty policy contract which required to StoryProtocol in advance.
21
+ * @param request.mintingFee The fee to be paid when minting a license.
22
+ * @param request.expiration The expiration period of the license.
23
+ * @param request.commercialUse Indicates whether the work can be used commercially or not.
24
+ * @param request.commercialAttribution Whether attribution is required when reproducing the work commercially or not.
25
+ * @param request.commercializerChecker Commercializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced.
26
+ * @param request.commercializerCheckerData The data to be passed to the commercializer checker contract.
27
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
28
+ * @param request.commercialRevCeiling The maximum revenue that can be generated from the commercial use of the work.
29
+ * @param request.derivativesAllowed Indicates whether the licensee can create derivatives of his work or not.
30
+ * @param request.derivativesAttribution Indicates whether attribution is required for derivatives of the work or not.
31
+ * @param request.derivativesApproval Indicates whether the licensor must approve derivatives of the work before they can be linked to the licensor IP ID or not.
32
+ * @param request.derivativesReciprocal Indicates whether the licensee must license derivatives of the work under the same terms or not.
33
+ * @param request.derivativeRevCeiling The maximum revenue that can be generated from the derivative use of the work.
34
+ * @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
35
+ * @param request.uri The URI of the license terms, which can be used to fetch the offchain license terms.
36
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
37
+ * @returns A Promise that resolves to an object containing the optional transaction hash, optional transaction encodedTxData and optional license terms Id.
38
+ * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
39
+ */
40
+ registerPILTerms(request: RegisterPILTermsRequest): Promise<RegisterPILResponse>;
15
41
  /**
16
42
  * Convenient function to register a PIL non commercial social remix license to the registry
17
43
  * @param request - [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
18
- * @param request.txOptions [Optional] The transaction options.
44
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19
45
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
20
46
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
21
47
  */
@@ -23,9 +49,9 @@ export declare class LicenseClient {
23
49
  /**
24
50
  * Convenient function to register a PIL commercial use license to the registry.
25
51
  * @param request - The request object that contains all data needed to register a PIL commercial use license.
26
- * @param request.mintingFee The fee to be paid when minting a license.
52
+ * @param request.defaultMintingFee The fee to be paid when minting a license.
27
53
  * @param request.currency The ERC20 token to be used to pay the minting fee and the token must be registered in story protocol.
28
- * @param request.txOptions [Optional] The transaction options.
54
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
29
55
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
30
56
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
31
57
  */
@@ -33,10 +59,10 @@ export declare class LicenseClient {
33
59
  /**
34
60
  * Convenient function to register a PIL commercial Remix license to the registry.
35
61
  * @param request - The request object that contains all data needed to register license.
36
- * @param request.mintingFee The fee to be paid when minting a license.
62
+ * @param request.defaultMintingFee The fee to be paid when minting a license.
37
63
  * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
38
64
  * @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
39
- * @param request.txOptions [Optional] The transaction options.
65
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
40
66
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
41
67
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
42
68
  */
@@ -47,7 +73,7 @@ export declare class LicenseClient {
47
73
  * @param request.ipId The address of the IP to which the license terms are attached.
48
74
  * @param request.licenseTemplate The address of the license template.
49
75
  * @param request.licenseTermsId The ID of the license terms.
50
- * @param request.txOptions [Optional] The transaction options.
76
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
51
77
  * @returns A Promise that resolves to an object containing the transaction hash.
52
78
  */
53
79
  attachLicenseTerms(request: AttachLicenseTermsRequest): Promise<AttachLicenseTermsResponse>;
@@ -69,7 +95,7 @@ export declare class LicenseClient {
69
95
  * @param request.licenseTermsId The ID of the license terms within the license template.
70
96
  * @param request.amount The amount of license tokens to mint.
71
97
  * @param request.receiver The address of the receiver.
72
- * @param request.txOptions [Optional] The transaction options.
98
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
73
99
  * @returns A Promise that resolves to an object containing the transaction hash and optional license token IDs if waitForTxn is set to true.
74
100
  * @emits LicenseTokensMinted (msg.sender, licensorIpId, licenseTemplate, licenseTermsId, amount, receiver, startLicenseTokenId);
75
101
  */
@@ -81,5 +107,7 @@ export declare class LicenseClient {
81
107
  */
82
108
  getLicenseTerms(selectedLicenseTermsId: LicenseTermsId): Promise<PiLicenseTemplateGetLicenseTermsResponse>;
83
109
  private getLicenseTermsId;
110
+ private verifyCommercialUse;
111
+ private verifyDerivatives;
84
112
  }
85
113
  //# sourceMappingURL=license.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,MAAM,CAAC;AAEjD,OAAO,EACL,qBAAqB,EACrB,0BAA0B,E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CACnC,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,mBAAmB,CAAC;IAqC/B;;;;;;;;;OASG;IACU,0BAA0B,CACrC,OAAO,EAAE,iCAAiC,GACzC,OAAO,CAAC,mBAAmB,CAAC;IAuC/B;;;;;;;;OAQG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IAmDtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,yBAAyB,CAAC;IAiErC;;;;OAIG;IACU,eAAe,CAC1B,sBAAsB,EAAE,cAAc,GACrC,OAAO,CAAC,wCAAwC,CAAC;YAUtC,iBAAiB;IAI/B,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,iBAAiB;CAgB1B"}
@@ -15,7 +15,7 @@ export declare class NftClient {
15
15
  * @param request.mintFee - The cost to mint a token.
16
16
  * @param request.mintFeeToken - The token to mint.
17
17
  * @param request.owner - The owner of the collection.
18
- * @param request.txOptions - Optional transaction options.
18
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19
19
  * @returns A Promise that resolves to a CreateNFTCollectionResponse containing the transaction hash and collection address.
20
20
  * @emits CollectionCreated (nftContract);
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqC,MAAM,MAAM,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,4BAAyB;AACjE,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC5B,wCAAqC;AAItC,qBAAa,SAAS;IACb,SAAS,EAAE,SAAS,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;;;;;;;;OAYG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;CAsCxC"}
1
+ {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqC,MAAM,MAAM,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,4BAAyB;AACjE,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC5B,wCAAqC;AAItC,qBAAa,SAAS;IACb,SAAS,EAAE,SAAS,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;;;;;;;;OAYG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;CAyCxC"}
@@ -27,7 +27,7 @@ export declare class PermissionClient {
27
27
  * @param request.to The address that can be called by the `signer` (currently only modules can be `to`).
28
28
  * @param request.permission The new permission level.
29
29
  * @param request.func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
30
- * @param request.txOptions [Optional] The transaction options.
30
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
31
31
  * @returns A Promise that resolves to an object containing the transaction hash.
32
32
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
33
33
  */
@@ -41,7 +41,7 @@ export declare class PermissionClient {
41
41
  * @param request.permission The new permission level.
42
42
  * @param request.func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
43
43
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
44
- * @param request.txOptions [Optional] The transaction options.
44
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
45
45
  * @returns A Promise that resolves to an object containing the transaction hash.
46
46
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
47
47
  */
@@ -52,7 +52,7 @@ export declare class PermissionClient {
52
52
  * @param request.ipId The IP ID that grants the permission for `signer`
53
53
  * @param request.signer The address of the signer receiving the permissions.
54
54
  * @param request.permission The new permission.
55
- * @param request.txOptions [Optional] The transaction options.
55
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
56
56
  * @returns A Promise that resolves to an object containing the transaction hash
57
57
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
58
58
  */
@@ -67,7 +67,7 @@ export declare class PermissionClient {
67
67
  * @param request.permissions[].permission The new permission level.
68
68
  * @param request.permissions[].func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
69
69
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
70
- * @param request.txOptions [Optional] The transaction options.
70
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
71
71
  * @returns A Promise that resolves to an object containing the transaction hash
72
72
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
73
73
  */
@@ -82,7 +82,7 @@ export declare class PermissionClient {
82
82
  * @param request.permissions[].to The address that can be called by the `signer` (currently only modules can be `to`).
83
83
  * @param request.permissions[].permission The new permission level.
84
84
  * @param request.permissions[].func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
85
- * @param request.txOptions [Optional] The transaction options.
85
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
86
86
  * @returns A Promise that resolves to an object containing the transaction hash.
87
87
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
88
88
  */
@@ -1 +1 @@
1
- {"version":3,"file":"permission.d.ts","sourceRoot":"../../../../src/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiE,MAAM,MAAM,CAAC;AAGnG,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACvB,yCAAsC;AACvC,OAAO,EAEL,sBAAsB,EACtB,wBAAwB,EAExB,qBAAqB,EACrB,kBAAkB,EAClB,SAAS,EACV,4BAAyB;AAE1B,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAIpD,qBAAa,gBAAgB;IACpB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,SAAS,EAAE,SAAS,CAAC;IACrB,wBAAwB,EAAE,wBAAwB,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB;IAU3F;;;;;;;;;;;;;;;;;;;OAmBG;IACU,aAAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA2B3F;;;;;;;;;;;;OAYG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,sBAAsB,CAAC;IA2DlC;;;;;;;;;OASG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,sBAAsB,CAAC;IAuBlC;;;;;;;;;;;;;OAaG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,C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,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,sBAAsB,CAAC;IAiClC;;;;;;;;;;;;;OAaG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sBAAsB,CAAC;YA0DpB,iBAAiB;CAQhC"}
@@ -15,7 +15,7 @@ export declare class RoyaltyClient {
15
15
  * @param request - The request object that contains all data needed to collect royalty tokens.
16
16
  * @param request.parentIpId The ip id of the ancestor to whom the royalty tokens belong to.
17
17
  * @param request.royaltyVaultIpId The id of the royalty vault.
18
- * @param request.txOptions [Optional] The transaction options.
18
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19
19
  * @returns A Promise that resolves to an object containing the transaction hash and optional the amount of royalty tokens collected if waitForTxn is set to true.
20
20
  * @emits RoyaltyTokensCollected (ancestorIpId, royaltyTokensCollected)
21
21
  */
@@ -27,7 +27,7 @@ export declare class RoyaltyClient {
27
27
  * @param request.payerIpId The ID of the IP asset that pays the royalties.
28
28
  * @param request.token The token to use to pay the royalties.
29
29
  * @param request.amount The amount to pay.
30
- * @param request.txOptions [Optional] The transaction options.
30
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
31
31
  * @returns A Promise that resolves to an object containing the transaction hash.
32
32
  */
33
33
  payRoyaltyOnBehalf(request: PayRoyaltyOnBehalfRequest): Promise<PayRoyaltyOnBehalfResponse>;
@@ -38,7 +38,6 @@ export declare class RoyaltyClient {
38
38
  * @param request.account The address of the token holder.
39
39
  * @param request.snapshotId The snapshot id.
40
40
  * @param request.token The revenue token to claim.
41
- * @param request.txOptions [Optional] The transaction options.
42
41
  * @returns A Promise that contains the amount of revenue token claimable
43
42
  */
44
43
  claimableRevenue(request: ClaimableRevenueRequest): Promise<ClaimableRevenueResponse>;
@@ -49,7 +48,7 @@ export declare class RoyaltyClient {
49
48
  * @param request.royaltyVaultIpId The id of the royalty vault.
50
49
  * @param request.token The revenue token to claim.
51
50
  * @param request.account [Optional] The ipId to send.
52
- * @param request.txOptions [Optional] The transaction options.
51
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
53
52
  * @returns A Promise that resolves to an object containing the transaction hash and optional claimableToken if waitForTxn is set to true.
54
53
  * @emits RevenueTokenClaimed (claimer, token, amount).
55
54
  */
@@ -58,7 +57,7 @@ export declare class RoyaltyClient {
58
57
  * Snapshots the claimable revenue and royalty token amounts.
59
58
  * @param request - The request object that contains all data needed to snapshot.
60
59
  * @param request.royaltyVaultIpId The id of the royalty vault.
61
- * @param request.txOptions [Optional] The transaction options.
60
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
62
61
  * @returns A Promise that resolves to an object containing the transaction hash and optional snapshotId if waitForTxn is set to true.
63
62
  * @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
64
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAsB,MAAM,MAAM,CAAC;AAGtE,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACrB,sCAAmC;AACpC,OAAO,EACL,qBAAqB,EAErB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAEnB,4BAAyB;AAC1B,OAAO,EAAE,eAAe,EAAE,uBAAoB;AAG9C,qBAAa,aAAa;IACjB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C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AAC;IAC/C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,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;IAS/D;;;;;;;;OAQG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IA0CxC;;;;;;;;;OASG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IA0CtC;;;;;;;;OAQG;IACU,gBAAgB,CAC3B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;IAoBpC;;;;;;;;;;OAUG;IACU,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAqDtF;;;;;;;OAOG;IACU,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA8B1E;;;;OAIG;IACU,sBAAsB,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;CAe7E"}
@@ -1,10 +1,8 @@
1
- export type TxOptions = {
1
+ import { WaitForTransactionReceiptParameters } from "viem";
2
+ export interface TxOptions extends Omit<WaitForTransactionReceiptParameters, "hash"> {
2
3
  waitForTransaction?: boolean;
3
4
  encodedTxDataOnly?: boolean;
4
- gasPrice?: bigint;
5
- maxFeePerGas?: bigint;
6
- numBlockConfirmations?: number;
7
- };
5
+ }
8
6
  export type WithTxOptions<T> = T & {
9
7
  txOptions?: TxOptions;
10
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IAItB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAI7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,MAAM,CAAC;AAE3D,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC;IAIlF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAI7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
@@ -27,4 +27,9 @@ export type IPAccountExecuteWithSigResponse = {
27
27
  encodedTxData?: EncodedTxData;
28
28
  };
29
29
  export type IpAccountStateResponse = Hex;
30
+ export type TokenResponse = {
31
+ chainId: bigint;
32
+ tokenContract: Address;
33
+ tokenId: bigint;
34
+ };
30
35
  //# sourceMappingURL=ipAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC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AC/B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAEzC,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -128,10 +128,36 @@ export type StoryProtocolApp = {
128
128
  website: string;
129
129
  action?: string;
130
130
  };
131
+ export type GenerateCreatorMetadataParam = {
132
+ name: string;
133
+ address: Address;
134
+ contributionPercent: number;
135
+ description?: string;
136
+ image?: string;
137
+ socialMedia?: IpCreatorSocial[];
138
+ role?: string;
139
+ };
131
140
  export type IPRobotTerms = {
132
141
  userAgent: string;
133
142
  allow: string;
134
143
  };
144
+ export type GenerateIpMetadataParam = {
145
+ title?: string;
146
+ description?: string;
147
+ ipType?: string;
148
+ relationships?: IpRelationship[];
149
+ createdAt?: string;
150
+ watermarkImg?: string;
151
+ creators?: IpCreator[];
152
+ media?: IpMedia[];
153
+ attributes?: IpAttribute[];
154
+ app?: StoryProtocolApp;
155
+ tags?: string[];
156
+ robotTerms?: IPRobotTerms;
157
+ additionalProperties?: {
158
+ [key: string]: unknown;
159
+ };
160
+ };
135
161
  export type IpMetadata = {
136
162
  title?: string;
137
163
  description?: string;
@@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est = {
13
13
  txOptions?: TxOptions;
14
14
  };
15
+ /**
16
+ * This structure defines the terms for a Programmable IP License (PIL). These terms can be attached to IP Assets. The legal document of the PIL can be found in this repository.
17
+ * @type LicenseTerms
18
+ **/
15
19
  export type LicenseTerms = {
16
- defaultMintingFee: bigint;
17
- expiration: bigint;
18
- commercialRevCeiling: bigint;
19
- derivativeRevCeiling: bigint;
20
- commercializerCheckerData: Address;
21
20
  transferable: boolean;
22
21
  royaltyPolicy: Address;
22
+ defaultMintingFee: bigint;
23
+ expiration: bigint;
23
24
  commercialUse: boolean;
24
25
  commercialAttribution: boolean;
25
26
  commercializerChecker: Address;
27
+ commercializerCheckerData: Address;
26
28
  commercialRevShare: number;
29
+ commercialRevCeiling: bigint;
27
30
  derivativesAllowed: boolean;
28
31
  derivativesAttribution: boolean;
29
32
  derivativesApproval: boolean;
30
33
  derivativesReciprocal: boolean;
34
+ derivativeRevCeiling: bigint;
31
35
  currency: Address;
32
36
  uri: string;
33
37
  };
38
+ export type RegisterPILTermsRequest = Omit<LicenseTerms, "defaultMintingFee" | "expiration" | "commercialRevCeiling" | "derivativeRevCeiling"> & {
39
+ defaultMintingFee: bigint | string | number;
40
+ expiration: bigint | string | number;
41
+ commercialRevCeiling: bigint | string | number;
42
+ derivativeRevCeiling: bigint | string | number;
43
+ txOptions?: TxOptions;
44
+ };
34
45
  export type LicenseTermsIdResponse = bigint;
35
46
  export type RegisterPILResponse = {
36
47
  licenseTermsId?: bigint;
@@ -38,12 +49,12 @@ export type RegisterPILResponse = {
38
49
  encodedTxData?: EncodedTxData;
39
50
  };
40
51
  export type RegisterCommercialUsePILRequest = {
41
- mintingFee: string | number | bigint;
52
+ defaultMintingFee: string | number | bigint;
42
53
  currency: Address;
43
54
  txOptions?: TxOptions;
44
55
  };
45
56
  export type RegisterCommercialRemixPILRequest = {
46
- mintingFee: string | number | bigint;
57
+ defaultMintingFee: string | number | bigint;
47
58
  commercialRevShare: number;
48
59
  currency: Address;
49
60
  txOptions?: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0B,GAAG;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,oBAAY,QAAQ;IAClB,oBAAoB,IAAA;IACpB,cAAc,IAAA;IACd,gBAAgB,IAAA;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC"}
@@ -0,0 +1,34 @@
1
+ export declare const iliad: {
2
+ blockExplorers: {
3
+ readonly default: {
4
+ readonly name: "Explorer";
5
+ readonly url: "https://testnet.storyscan.xyz";
6
+ };
7
+ };
8
+ contracts: {
9
+ readonly multicall3: {
10
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
11
+ readonly blockCreated: 5882;
12
+ };
13
+ };
14
+ id: 1513;
15
+ name: "iliad";
16
+ nativeCurrency: {
17
+ readonly name: "IP";
18
+ readonly symbol: "IP";
19
+ readonly decimals: 18;
20
+ };
21
+ rpcUrls: {
22
+ readonly default: {
23
+ readonly http: readonly ["https://testnet.storyrpc.io"];
24
+ readonly webSocket: readonly ["wss://story-network.rpc.caldera.xyz/ws"];
25
+ };
26
+ };
27
+ sourceId?: number | undefined;
28
+ testnet: true;
29
+ custom?: Record<string, unknown> | undefined;
30
+ formatters?: undefined;
31
+ serializers?: import("viem").ChainSerializers<undefined> | undefined;
32
+ fees?: import("viem").ChainFees<undefined> | undefined;
33
+ };
34
+ //# sourceMappingURL=chain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,2BAAwB;AAE1F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,OAAO,CAAC,2BAA2B,CA8ErC,CAAC;AAEF,eAAO,MAAM,WAAW,cAAe,MAAM,GAAG,MAAM,GAAG,MAAM,KAAG,MAMjE,CAAC"}
1
+ {"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,2BAAwB;AAE1F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,QAAQ,2BAA2B,CA8ErC,CAAC;AAEF,eAAO,MAAM,WAAW,cAAe,MAAM,GAAG,MAAM,GAAG,MAAM,KAAG,MAMjE,CAAC"}