@story-protocol/core-sdk 1.2.0-rc.1 → 1.2.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/abi/generated.d.ts +782 -0
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/group.d.ts +2 -2
- package/dist/declarations/src/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +2 -2
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +94 -20
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +2 -1
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +54 -10
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +11 -1
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +1 -1
- package/dist/declarations/src/utils/chain.d.ts.map +1 -1
- package/dist/declarations/src/utils/sign.d.ts +15 -2
- package/dist/declarations/src/utils/sign.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +1404 -763
- package/dist/story-protocol-core-sdk.cjs.prod.js +1404 -763
- package/dist/story-protocol-core-sdk.esm.js +1404 -764
- package/package.json +1 -1
@@ -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;AAC3D,OAAO,EAAE,OAAO,EAAE,yBAAsB;AACxC,OAAO,EA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,EAC3B,gBAAgB,EAChB,iBAAiB,GAClB,wCAAqC;AACtC,OAAO,EAAE,gBAAgB,EAAE,wCAAqC;AAChE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,qCAAkC;AAEnC,YAAY,EACV,uBAAuB,EACvB,wBAAwB,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;AACjC,YAAY,EACV,wCAAwC,EACxC,0BAA0B,EAC1B,aAAa,EACb,+CAA+C,GAChD,2BAAwB;AAEzB,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,wBAAqB;AACpE,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,wBAAqB"}
|
@@ -31,7 +31,7 @@ export declare class GroupClient {
|
|
31
31
|
* @param request.licenseTermsId The ID of the registered license terms that will be attached to the new IP.
|
32
32
|
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
33
33
|
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
|
34
|
-
* . @param request.deadline [Optional] The deadline for the signature in
|
34
|
+
* . @param request.deadline [Optional] The deadline for the signature in seconds, default value is 1000s.
|
35
35
|
* @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
36
36
|
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
37
37
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
@@ -49,7 +49,7 @@ export declare class GroupClient {
|
|
49
49
|
* @param request.groupId The ID of the group IP to add the newly registered IP.
|
50
50
|
* @param request.licenseTermsId The ID of the registered license terms that will be attached to the new IP.
|
51
51
|
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
|
52
|
-
* . @param request.deadline [Optional] The deadline for the signature in
|
52
|
+
* . @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
53
53
|
* @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
54
54
|
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
55
55
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"../../../../src/resources","sources":["group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiC,MAAM,MAAM,CAAC;AAEnE,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EAEzB,uBAAuB,EAKvB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EACnB,4BAAyB;AAK1B,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AACpD,OAAO,EACL,qDAAqD,EACrD,sDAAsD,EACtD,6CAA6C,EAC7C,8CAA8C,EAC9C,oCAAoC,EACpC,qCAAqC,EACrC,oBAAoB,EACpB,qBAAqB,EACrB,8CAA8C,EAC9C,+CAA+C,EAChD,oCAAiC;AAElC,qBAAa,WAAW;IACf,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,wBAAwB,EAAE,wBAAwB,CAAC;I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C,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,6BAA6B,EAAE,6BAA6B,CAAC;IAEpE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB;IAc3F;;;;;;OAMG;IACU,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA0BzF;;;;;;;;;;;;;;;;OAgBG;IACU,8CAA8C,CACzD,OAAO,EAAE,qDAAqD,GAC7D,OAAO,CAAC,sDAAsD,CAAC;IA2ElE;;;;;;;;;;;;;;;;OAgBG;IACU,uCAAuC,CAClD,OAAO,EAAE,8CAA8C,GACtD,OAAO,CAAC,+CAA+C,CAAC;IAuG3D;;;;;;;;OAQG;IACU,6BAA6B,CACxC,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,qCAAqC,CAAC;IA8BjD;;;;;;;;;OASG;IACU,sCAAsC,CACjD,OAAO,EAAE,6CAA6C,GACrD,OAAO,CAAC,8CAA8C,CAAC;CAyD3D"}
|
@@ -20,12 +20,12 @@ export declare class IPAccountClient {
|
|
20
20
|
* @param request - The request object containing necessary data to execute IP Account a transaction.
|
21
21
|
* @param request.ipId The Ip Id to get ip account.
|
22
22
|
* @param request.to The recipient of the transaction.
|
23
|
-
* @param request.value The amount of Ether to send.
|
24
23
|
* @param request.data The data to send along with the transaction.
|
25
24
|
* @param request.signer The signer of the transaction.
|
26
25
|
* @param request.deadline The deadline of the transaction signature.
|
27
26
|
* @param request.signature The signature of the transaction, EIP-712 encoded.
|
28
|
-
* @param request.
|
27
|
+
* @param request.value [Optional] The amount of Ether to send.
|
28
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
29
29
|
* @returns Tx hash for the transaction.
|
30
30
|
*/
|
31
31
|
executeWithSig(request: IPAccountExecuteWithSigRequest): Promise<IPAccountExecuteWithSigResponse>;
|
@@ -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;AAE7C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,aAAa,EACd,wCAAqC;AAEtC,OAAO,EAAuB,kBAAkB,EAAE,4BAAyB;AAG3E,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;gBAE7B,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAK/D;;;;;;;;;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;
|
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;AAE7C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,aAAa,EACd,wCAAqC;AAEtC,OAAO,EAAuB,kBAAkB,EAAE,4BAAyB;AAG3E,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;gBAE7B,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAK/D;;;;;;;;;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;CAiB7D"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { PublicClient } from "viem";
|
1
|
+
import { Hex, PublicClient } from "viem";
|
2
2
|
import { SupportedChainIds } from "../types/config.js";
|
3
|
-
import { CreateIpAssetWithPilTermsRequest, CreateIpAssetWithPilTermsResponse, GenerateCreatorMetadataParam, GenerateIpMetadataParam, IpCreator, IpMetadata, MintAndRegisterIpAndMakeDerivativeRequest, MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest, MintAndRegisterIpRequest, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpAndMakeDerivativeWithLicenseTokensRequest, RegisterIpResponse, RegisterPilTermsAndAttachRequest, RegisterPilTermsAndAttachResponse, RegisterRequest } from "../types/resources/ipAsset.js";
|
4
|
-
import { AccessControllerClient, CoreMetadataModuleClient, DerivativeWorkflowsClient, IpAssetRegistryClient, LicenseAttachmentWorkflowsClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, RegistrationWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
|
3
|
+
import { BatchMintAndRegisterIpAndMakeDerivativeRequest, BatchMintAndRegisterIpAndMakeDerivativeResponse, BatchMintAndRegisterIpAssetWithPilTermsRequest, BatchMintAndRegisterIpAssetWithPilTermsResponse, BatchRegisterDerivativeRequest, BatchRegisterDerivativeResponse, BatchRegisterRequest, BatchRegisterResponse, CreateIpAssetWithPilTermsRequest, CreateIpAssetWithPilTermsResponse, GenerateCreatorMetadataParam, GenerateIpMetadataParam, IpCreator, IpMetadata, MintAndRegisterIpAndMakeDerivativeRequest, MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest, MintAndRegisterIpRequest, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpAndMakeDerivativeWithLicenseTokensRequest, RegisterIpResponse, RegisterPilTermsAndAttachRequest, RegisterPilTermsAndAttachResponse, RegisterRequest, MintAndRegisterIpAndMakeDerivativeResponse } from "../types/resources/ipAsset.js";
|
4
|
+
import { AccessControllerClient, CoreMetadataModuleClient, DerivativeWorkflowsClient, IpAssetRegistryClient, LicenseAttachmentWorkflowsClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, Multicall3Client, PiLicenseTemplateClient, RegistrationWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
|
5
5
|
export declare class IPAssetClient {
|
6
6
|
licensingModuleClient: LicensingModuleClient;
|
7
7
|
ipAssetRegistryClient: IpAssetRegistryClient;
|
@@ -13,9 +13,11 @@ export declare class IPAssetClient {
|
|
13
13
|
registrationWorkflowsClient: RegistrationWorkflowsClient;
|
14
14
|
licenseAttachmentWorkflowsClient: LicenseAttachmentWorkflowsClient;
|
15
15
|
derivativeWorkflowsClient: DerivativeWorkflowsClient;
|
16
|
+
multicall3Client: Multicall3Client;
|
16
17
|
private readonly rpcClient;
|
17
18
|
private readonly wallet;
|
18
19
|
private readonly chainId;
|
20
|
+
private defaultLicenseTermsId;
|
19
21
|
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: SupportedChainIds);
|
20
22
|
/**
|
21
23
|
* Create a new `IpCreator` object with the specified details.
|
@@ -82,12 +84,28 @@ export declare class IPAssetClient {
|
|
82
84
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
83
85
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
84
86
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
85
|
-
* @param request.deadline [Optional] The deadline for the signature in
|
87
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
86
88
|
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
87
89
|
* @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.
|
88
90
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
|
89
91
|
*/
|
90
92
|
register(request: RegisterRequest): Promise<RegisterIpResponse>;
|
93
|
+
/**
|
94
|
+
* Batch registers an NFT as IP, creating a corresponding IP record.
|
95
|
+
* @param request - The request object that contains all data needed to batch register IP.
|
96
|
+
* @param {Array} request.args The array of objects containing the data needed to register IP.
|
97
|
+
* @param request.args.nftContract The address of the NFT.
|
98
|
+
* @param request.args.tokenId The token identifier of the NFT.
|
99
|
+
* @param request.args.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
100
|
+
* @param request.args.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
101
|
+
* @param request.args.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
102
|
+
* @param request.args.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
103
|
+
* @param request.args.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
104
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
105
|
+
* @returns A Promise that resolves to a transaction hash, if waitForTransaction is true, includes IP ID, Token ID.
|
106
|
+
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
|
107
|
+
*/
|
108
|
+
batchRegister(request: BatchRegisterRequest): Promise<BatchRegisterResponse>;
|
91
109
|
/**
|
92
110
|
* Registers a derivative directly with parent IP's license terms, without needing license tokens,
|
93
111
|
* and attaches the license terms of the parent IPs to the derivative IP.
|
@@ -99,9 +117,21 @@ export declare class IPAssetClient {
|
|
99
117
|
* @param request.parentIpIds The parent IP IDs.
|
100
118
|
* @param request.licenseTermsIds The IDs of the license terms that the parent IP supports.
|
101
119
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
102
|
-
* @returns A Promise that resolves to
|
120
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data.
|
103
121
|
*/
|
104
122
|
registerDerivative(request: RegisterDerivativeRequest): Promise<RegisterDerivativeResponse>;
|
123
|
+
/**
|
124
|
+
* Batch registers a derivative directly with parent IP's license terms.
|
125
|
+
* @param request - The request object that contains all data needed to batch register derivative IP.
|
126
|
+
* @param {Array} request.args The array of objects containing the data needed to register derivative IP.
|
127
|
+
* @param request.args.childIpId The derivative IP ID.
|
128
|
+
* @param request.args.parentIpIds The parent IP IDs.
|
129
|
+
* @param request.args.licenseTermsIds The IDs of the license terms that the parent IP supports.
|
130
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
131
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property, without encodedTxDataOnly option.
|
132
|
+
* @returns A Promise that resolves to a transaction hash.
|
133
|
+
*/
|
134
|
+
batchRegisterDerivative(request: BatchRegisterDerivativeRequest): Promise<BatchRegisterDerivativeResponse>;
|
105
135
|
/**
|
106
136
|
* Registers a derivative with license tokens.
|
107
137
|
* the derivative IP is registered with license tokens minted from the parent IP's license terms.
|
@@ -135,6 +165,28 @@ export declare class IPAssetClient {
|
|
135
165
|
* @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
|
136
166
|
*/
|
137
167
|
mintAndRegisterIpAssetWithPilTerms(request: CreateIpAssetWithPilTermsRequest): Promise<CreateIpAssetWithPilTermsResponse>;
|
168
|
+
/**
|
169
|
+
* Batch mint an NFT from a collection and register it as an IP.
|
170
|
+
* @param request - The request object that contains all data needed to batch mint and register ip.
|
171
|
+
* @param {Array} request.args The array of mint and register IP requests.
|
172
|
+
* @param request.args.spgNftContract The address of the NFT collection.
|
173
|
+
* @param request.args.pilType The type of the PIL.
|
174
|
+
* @param request.args.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
175
|
+
* @param request.args.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
176
|
+
* @param request.args.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
177
|
+
* @param request.args.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
178
|
+
* @param request.args.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
179
|
+
* @param request.args.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
180
|
+
* @param request.args.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
181
|
+
* @param request.args.mintingFee [Optional] The fee to be paid when minting a license.
|
182
|
+
* @param request.args.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
183
|
+
* @param request.args.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
184
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property, without encodedTxData option.
|
185
|
+
* @returns A Promise that resolves to a transaction hash, if waitForTransaction is true, includes IP ID, Token ID, License Terms Id.
|
186
|
+
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
187
|
+
* @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
|
188
|
+
*/
|
189
|
+
batchMintAndRegisterIpAssetWithPilTerms(request: BatchMintAndRegisterIpAssetWithPilTermsRequest): Promise<BatchMintAndRegisterIpAssetWithPilTermsResponse>;
|
138
190
|
/**
|
139
191
|
* Register a given NFT as an IP and attach Programmable IP License Terms.R.
|
140
192
|
* @param request - The request object that contains all data needed to mint and register ip.
|
@@ -147,12 +199,12 @@ export declare class IPAssetClient {
|
|
147
199
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
148
200
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
149
201
|
* @param request.royaltyPolicyAddress [Optional] The address of the royalty policy contract, default value is LAP.
|
150
|
-
* @param request.deadline [Optional] The deadline for the signature in
|
202
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
151
203
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
152
204
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
153
205
|
* @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
154
206
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
155
|
-
* @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.
|
207
|
+
* @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
208
|
* @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
|
157
209
|
*/
|
158
210
|
registerIpAndAttachPilTerms(request: RegisterIpAndAttachPilTermsRequest): Promise<RegisterIpAndAttachPilTermsResponse>;
|
@@ -170,9 +222,9 @@ export declare class IPAssetClient {
|
|
170
222
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
171
223
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
172
224
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
173
|
-
* @param request.deadline [Optional] The deadline for the signature in
|
225
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
174
226
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
175
|
-
* @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
|
227
|
+
* @returns A Promise that resolves to an object containing the transaction hash and optional IP ID, token ID if waitForTxn is set to true.
|
176
228
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
177
229
|
*/
|
178
230
|
registerDerivativeIp(request: RegisterIpAndMakeDerivativeRequest): Promise<RegisterIpAndMakeDerivativeResponse>;
|
@@ -181,20 +233,40 @@ export declare class IPAssetClient {
|
|
181
233
|
* @param request - The request object that contains all data needed to mint and register ip and make derivative.
|
182
234
|
* @param request.spgNftContract The address of the NFT collection.
|
183
235
|
* @param request.derivData The derivative data to be used for registerDerivative.
|
184
|
-
*
|
185
|
-
*
|
186
|
-
*
|
236
|
+
* @param request.derivData.parentIpIds The IDs of the parent IPs to link the registered derivative IP.
|
237
|
+
* @param request.derivData.licenseTermsIds The IDs of the license terms to be used for the linking.
|
238
|
+
* @param request.derivData.licenseTemplate [Optional] The address of the license template to be used for the linking.
|
187
239
|
* @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
188
|
-
*
|
189
|
-
*
|
190
|
-
*
|
191
|
-
*
|
240
|
+
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
241
|
+
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
242
|
+
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
243
|
+
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
192
244
|
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
193
245
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
194
246
|
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes child ip id and token id.
|
195
247
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
196
248
|
*/
|
197
|
-
mintAndRegisterIpAndMakeDerivative(request: MintAndRegisterIpAndMakeDerivativeRequest): Promise<
|
249
|
+
mintAndRegisterIpAndMakeDerivative(request: MintAndRegisterIpAndMakeDerivativeRequest): Promise<MintAndRegisterIpAndMakeDerivativeResponse>;
|
250
|
+
/**
|
251
|
+
* Batch mint an NFT from a collection and register it as a derivative IP without license tokens.
|
252
|
+
* @param request - The request object that contains all data needed to batch mint and register ip and make derivative.
|
253
|
+
* @param {Array} request.args The array of mint and register IP requests.
|
254
|
+
* @param request.args.spgNftContract The address of the NFT collection.
|
255
|
+
* @param request.args.derivData The derivative data to be used for registerDerivative.
|
256
|
+
* @param request.args.derivData.parentIpIds The IDs of the parent IPs to link the registered derivative IP.
|
257
|
+
* @param request.args.derivData.licenseTermsIds The IDs of the license terms to be used for the linking.
|
258
|
+
* @param request.args.derivData.licenseTemplate [Optional] The address of the license template to be used for the linking.
|
259
|
+
* @param request.args.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
260
|
+
* @param request.args.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
261
|
+
* @param request.args.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
262
|
+
* @param request.args.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
263
|
+
* @param request.args.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
264
|
+
* @param request.arg.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
|
265
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property, without encodedTxData option.
|
266
|
+
* @returns A Promise that resolves to a transaction hash, if waitForTransaction is true, includes child ip id and token id.
|
267
|
+
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
268
|
+
*/
|
269
|
+
batchMintAndRegisterIpAndMakeDerivative(request: BatchMintAndRegisterIpAndMakeDerivativeRequest): Promise<BatchMintAndRegisterIpAndMakeDerivativeResponse>;
|
198
270
|
/**
|
199
271
|
* Mint an NFT from a SPGNFT collection and register it with metadata as an IP.
|
200
272
|
* @param request - The request object that contains all data needed to attach license terms.
|
@@ -232,7 +304,7 @@ export declare class IPAssetClient {
|
|
232
304
|
* @param request.terms.derivativeRevCeiling The maximum revenue that can be generated from the derivative use of the work.
|
233
305
|
* @param request.terms.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
234
306
|
* @param request.terms.uri The URI of the license terms, which can be used to fetch the offchain license terms.
|
235
|
-
* @param request.deadline [Optional] The deadline for the signature in milliseconds,default is
|
307
|
+
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000s.
|
236
308
|
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
237
309
|
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license terms id.
|
238
310
|
* @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
|
@@ -260,20 +332,22 @@ export declare class IPAssetClient {
|
|
260
332
|
* @param request.nftContract The address of the NFT collection.
|
261
333
|
* @param request.licenseTokenIds The IDs of the license tokens to be burned for linking the IP to parent IPs.
|
262
334
|
* @param request.tokenId The ID of the NFT.
|
263
|
-
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
264
335
|
* @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
|
265
336
|
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
266
337
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
267
338
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
268
339
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
340
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
269
341
|
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
270
342
|
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes IP ID.
|
271
343
|
*/
|
272
344
|
registerIpAndMakeDerivativeWithLicenseTokens(request: RegisterIpAndMakeDerivativeWithLicenseTokensRequest): Promise<RegisterIpResponse>;
|
273
345
|
private getIpIdAddress;
|
274
|
-
|
346
|
+
isRegistered(ipId: Hex): Promise<boolean>;
|
275
347
|
private getSigSignatureState;
|
276
348
|
private getLicenseTermsId;
|
277
349
|
private validateLicenseTokenIds;
|
350
|
+
private getIpIdAndTokenIdFromEvent;
|
351
|
+
private getDefaultLicenseTerms;
|
278
352
|
}
|
279
353
|
//# 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,EACL,GAAG,EACH,YAAY,EAWb,MAAM,MAAM,CAAC;AAGd,OAAO,EA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,GAC1C,OAAO,CAAC,mCAAmC,CAAC;IA+H/C;;;;;;;;;;;;;;;;;OAiBG;IACU,kCAAkC,CAC7C,OAAO,EAAE,yCAAyC,GACjD,OAAO,CAAC,0CAA0C,CAAC;IAiEtD;;;;;;;;;;;;;;;;;;OAkBG;IACU,uCAAuC,CAClD,OAAO,EAAE,8CAA8C,GACtD,OAAO,CAAC,+CAA+C,CAAC;IAkC3D;;;;;;;;;;;;;OAaG;IACU,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgC9F;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACU,yBAAyB,CACpC,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,iCAAiC,CAAC;IAkE7C;;;;;;;;;;;;;;OAcG;IACU,mDAAmD,CAC9D,OAAO,EAAE,0DAA0D,GAClE,OAAO,CAAC,kBAAkB,CAAC;IA4C9B;;;;;;;;;;;;;;OAcG;IACU,4CAA4C,CACvD,OAAO,EAAE,mDAAmD,GAC3D,OAAO,CAAC,kBAAkB,CAAC;YAgGhB,cAAc;IAYf,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAItD,OAAO,CAAC,oBAAoB;IA+B5B,OAAO,CAAC,iBAAiB;YASX,uBAAuB;IAkBrC,OAAO,CAAC,0BAA0B;YAOpB,sBAAsB;CAKrC"}
|
@@ -39,7 +39,7 @@ export declare class PermissionClient {
|
|
39
39
|
* @param request.to The address that can be called by the `signer` (currently only modules can be `to`)
|
40
40
|
* @param request.permission The new permission level.
|
41
41
|
* @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.
|
42
|
-
* @param request.deadline [Optional] The deadline for the signature in
|
42
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
43
43
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
44
44
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
45
45
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
@@ -81,6 +81,7 @@ export declare class PermissionClient {
|
|
81
81
|
* @param request.permissions[].to The address that can be called by the `signer` (currently only modules can be `to`).
|
82
82
|
* @param request.permissions[].permission The new permission level.
|
83
83
|
* @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.
|
84
|
+
* @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
|
84
85
|
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
85
86
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
86
87
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
@@ -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,EACnB,4BAAyB;AAE1B,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAIpD,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,CAAoB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,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AC,sBAAsB,CAAC;IA0BlC;;;;;;;;;;;;;OAaG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,sBAAsB,CAAC;IAiClC;;;;;;;;;;;;;;OAcG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sBAAsB,CAAC;YA2DpB,iBAAiB;CAQhC"}
|
@@ -15,11 +15,11 @@ export type IPAccountExecuteResponse = {
|
|
15
15
|
export type IPAccountExecuteWithSigRequest = {
|
16
16
|
ipId: Address;
|
17
17
|
to: Address;
|
18
|
-
value: number;
|
19
18
|
data: Address;
|
20
19
|
signer: Address;
|
21
20
|
deadline: number | bigint | string;
|
22
21
|
signature: Address;
|
22
|
+
value?: number | bigint | string;
|
23
23
|
txOptions?: TxOptions;
|
24
24
|
};
|
25
25
|
export type IPAccountExecuteWithSigResponse = {
|
@@ -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;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,
|
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;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,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"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { Address } from "viem";
|
1
|
+
import { Address, Hex } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
3
|
import { PIL_TYPE, RegisterPILTermsRequest } from "./license.js";
|
4
4
|
import { EncodedTxData } from "../../abi/generated.js";
|
5
5
|
import { IpMetadataAndTxOption } from "../common.js";
|
6
6
|
export type RegisterIpResponse = {
|
7
|
-
txHash?:
|
7
|
+
txHash?: Hex;
|
8
8
|
encodedTxData?: EncodedTxData;
|
9
9
|
ipId?: Address;
|
10
10
|
tokenId?: bigint;
|
@@ -20,7 +20,7 @@ export type RegisterDerivativeWithLicenseTokensRequest = {
|
|
20
20
|
txOptions?: TxOptions;
|
21
21
|
};
|
22
22
|
export type RegisterDerivativeWithLicenseTokensResponse = {
|
23
|
-
txHash?:
|
23
|
+
txHash?: Hex;
|
24
24
|
encodedTxData?: EncodedTxData;
|
25
25
|
};
|
26
26
|
export type RegisterDerivativeRequest = {
|
@@ -31,10 +31,8 @@ export type RegisterDerivativeRequest = {
|
|
31
31
|
txOptions?: TxOptions;
|
32
32
|
};
|
33
33
|
export type RegisterDerivativeResponse = {
|
34
|
-
txHash?:
|
34
|
+
txHash?: Hex;
|
35
35
|
encodedTxData?: EncodedTxData;
|
36
|
-
childIpId?: Address;
|
37
|
-
tokenId?: bigint;
|
38
36
|
};
|
39
37
|
export type CreateIpAssetWithPilTermsRequest = {
|
40
38
|
spgNftContract: Address;
|
@@ -46,7 +44,7 @@ export type CreateIpAssetWithPilTermsRequest = {
|
|
46
44
|
royaltyPolicyAddress?: Address;
|
47
45
|
} & IpMetadataAndTxOption;
|
48
46
|
export type CreateIpAssetWithPilTermsResponse = {
|
49
|
-
txHash?:
|
47
|
+
txHash?: Hex;
|
50
48
|
encodedTxData?: EncodedTxData;
|
51
49
|
ipId?: Address;
|
52
50
|
tokenId?: bigint;
|
@@ -63,9 +61,10 @@ export type RegisterIpAndMakeDerivativeRequest = {
|
|
63
61
|
};
|
64
62
|
} & IpMetadataAndTxOption;
|
65
63
|
export type RegisterIpAndMakeDerivativeResponse = {
|
66
|
-
txHash?:
|
64
|
+
txHash?: Hex;
|
67
65
|
encodedTxData?: EncodedTxData;
|
68
66
|
ipId?: Address;
|
67
|
+
tokenId?: bigint;
|
69
68
|
};
|
70
69
|
export type RegisterIpAndAttachPilTermsRequest = {
|
71
70
|
nftContract: Address;
|
@@ -78,10 +77,11 @@ export type RegisterIpAndAttachPilTermsRequest = {
|
|
78
77
|
royaltyPolicyAddress?: Address;
|
79
78
|
} & IpMetadataAndTxOption;
|
80
79
|
export type RegisterIpAndAttachPilTermsResponse = {
|
81
|
-
txHash?:
|
80
|
+
txHash?: Hex;
|
82
81
|
encodedTxData?: EncodedTxData;
|
83
82
|
ipId?: Address;
|
84
83
|
licenseTermsId?: bigint;
|
84
|
+
tokenId?: bigint;
|
85
85
|
};
|
86
86
|
export type MintAndRegisterIpAndMakeDerivativeRequest = {
|
87
87
|
spgNftContract: Address;
|
@@ -92,6 +92,12 @@ export type MintAndRegisterIpAndMakeDerivativeRequest = {
|
|
92
92
|
};
|
93
93
|
recipient?: Address;
|
94
94
|
} & IpMetadataAndTxOption;
|
95
|
+
export type MintAndRegisterIpAndMakeDerivativeResponse = {
|
96
|
+
txHash?: Hex;
|
97
|
+
encodedTxData?: EncodedTxData;
|
98
|
+
childIpId?: Address;
|
99
|
+
tokenId?: bigint;
|
100
|
+
};
|
95
101
|
export type IpRelationship = {
|
96
102
|
parentIpId: Address;
|
97
103
|
type: string;
|
@@ -180,7 +186,7 @@ export type RegisterPilTermsAndAttachRequest = {
|
|
180
186
|
txOptions?: TxOptions;
|
181
187
|
};
|
182
188
|
export type RegisterPilTermsAndAttachResponse = {
|
183
|
-
txHash?:
|
189
|
+
txHash?: Hex;
|
184
190
|
encodedTxData?: EncodedTxData;
|
185
191
|
licenseTermsId?: bigint;
|
186
192
|
};
|
@@ -195,4 +201,42 @@ export type RegisterIpAndMakeDerivativeWithLicenseTokensRequest = {
|
|
195
201
|
licenseTokenIds: string[] | bigint[] | number[];
|
196
202
|
deadline?: string | number | bigint;
|
197
203
|
} & IpMetadataAndTxOption;
|
204
|
+
export type BatchMintAndRegisterIpAssetWithPilTermsRequest = {
|
205
|
+
args: Omit<CreateIpAssetWithPilTermsRequest, "txOptions">[];
|
206
|
+
txOptions?: Omit<TxOptions, "EncodedTxData">;
|
207
|
+
};
|
208
|
+
export type BatchMintAndRegisterIpAssetWithPilTermsResponse = {
|
209
|
+
txHash: Hex;
|
210
|
+
results?: Omit<RegisterIpResponse, "encodedTxData">[];
|
211
|
+
};
|
212
|
+
export type BatchRegisterDerivativeRequest = {
|
213
|
+
args: RegisterDerivativeRequest[];
|
214
|
+
deadline?: string | number | bigint;
|
215
|
+
txOptions?: TxOptions;
|
216
|
+
};
|
217
|
+
export type BatchRegisterDerivativeResponse = {
|
218
|
+
txHash: Hex;
|
219
|
+
};
|
220
|
+
export type BatchMintAndRegisterIpAndMakeDerivativeRequest = {
|
221
|
+
args: Omit<MintAndRegisterIpAndMakeDerivativeRequest, "txOptions">[];
|
222
|
+
txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
|
223
|
+
};
|
224
|
+
export type BatchMintAndRegisterIpAndMakeDerivativeResponse = {
|
225
|
+
txHash: string;
|
226
|
+
results?: {
|
227
|
+
ipId: Address;
|
228
|
+
tokenId: bigint;
|
229
|
+
}[];
|
230
|
+
};
|
231
|
+
export type BatchRegisterRequest = {
|
232
|
+
args: Omit<RegisterRequest, "txOptions">[];
|
233
|
+
txOptions?: TxOptions;
|
234
|
+
};
|
235
|
+
export type BatchRegisterResponse = {
|
236
|
+
txHash: Hex;
|
237
|
+
results?: {
|
238
|
+
ipId: Address;
|
239
|
+
tokenId: bigint;
|
240
|
+
}[];
|
241
|
+
};
|
198
242
|
//# sourceMappingURL=ipAsset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE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,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,yBAAyB,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AACF,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,IAAI,CAAC,yCAAyC,EAAE,WAAW,CAAC,EAAE,CAAC;IACrE,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CAClD,CAAC;AACF,MAAM,MAAM,+CAA+C,GAAG;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,EAAE,CAAC;IAC3C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAChD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Address, Hex, WalletClient } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
|
-
import { EncodedTxData } from "../../abi/generated.js";
|
3
|
+
import { EncodedTxData, SimpleWalletClient } from "../../abi/generated.js";
|
4
4
|
export type SetPermissionsRequest = {
|
5
5
|
ipId: Address;
|
6
6
|
signer: Address;
|
@@ -50,4 +50,14 @@ export type PermissionSignatureRequest = {
|
|
50
50
|
permissionFunc?: "setPermission" | "setBatchPermissions";
|
51
51
|
};
|
52
52
|
export type PermissionSignatureResponse = Hex;
|
53
|
+
export type SignatureRequest = {
|
54
|
+
state: Hex;
|
55
|
+
to: Address;
|
56
|
+
encodeData: Hex;
|
57
|
+
wallet: SimpleWalletClient;
|
58
|
+
verifyingContract: Address;
|
59
|
+
deadline: bigint | number | string;
|
60
|
+
chainId: number | bigint | string;
|
61
|
+
};
|
62
|
+
export type SignatureResponse = Hex;
|
53
63
|
//# sourceMappingURL=permission.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,+BAA4B;AAExE,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,UAAU,EAAE,gBAAgB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA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E,kBAAkB,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBlB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PermissionSignatureRequest, PermissionSignatureResponse } from "../types/resources/permission.js";
|
1
|
+
import { PermissionSignatureRequest, PermissionSignatureResponse, SignatureRequest, SignatureResponse } from "../types/resources/permission.js";
|
2
2
|
/**
|
3
3
|
* Get the signature for setting permissions.
|
4
4
|
* @param param - The parameter object containing necessary data to get the signature.
|
@@ -12,5 +12,18 @@ import { PermissionSignatureRequest, PermissionSignatureResponse } from "../type
|
|
12
12
|
* @returns A Promise that resolves to the signature.
|
13
13
|
*/
|
14
14
|
export declare const getPermissionSignature: (param: PermissionSignatureRequest) => Promise<PermissionSignatureResponse>;
|
15
|
-
export declare const getDeadline: (deadline?: bigint | number | string) => bigint;
|
15
|
+
export declare const getDeadline: (unixTimestamp: bigint, deadline?: bigint | number | string) => bigint;
|
16
|
+
/**
|
17
|
+
* Get the signature.
|
18
|
+
* @param param - The parameter object containing necessary data to get the signature.
|
19
|
+
* @param param.state - The IP Account's state.
|
20
|
+
* @param param.to - The recipient address.
|
21
|
+
* @param param.encodeData - The encoded data.
|
22
|
+
* @param param.wallet - The wallet client.
|
23
|
+
* @param param.verifyingContract - The verifying contract.
|
24
|
+
* @param param.deadline - The deadline.
|
25
|
+
* @param param.chainId - The chain ID.
|
26
|
+
* @returns A Promise that resolves to the signature.
|
27
|
+
*/
|
28
|
+
export declare const getSignature: ({ state, to, encodeData, wallet, verifyingContract, deadline, chainId, }: SignatureRequest) => Promise<SignatureResponse>;
|
16
29
|
//# sourceMappingURL=sign.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EAClB,yCAAsC;AAEvC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,QAAQ,2BAA2B,CAoCrC,CAAC;AAEF,eAAO,MAAM,WAAW,kBAAmB,MAAM,aAAa,MAAM,GAAG,MAAM,GAAG,MAAM,KAAG,MAKxF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,6EAQtB,gBAAgB,KAAG,QAAQ,iBAAiB,CAiD9C,CAAC"}
|