@story-protocol/core-sdk 1.0.0-rc.21 → 1.0.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +3 -1
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +2 -0
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +17 -40
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +5 -5
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +5 -5
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +4 -5
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +3 -5
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +26 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +134 -130
- package/dist/story-protocol-core-sdk.cjs.prod.js +134 -130
- package/dist/story-protocol-core-sdk.esm.js +134 -130
- package/package.json +1 -1
@@ -18506,24 +18506,24 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18506
18506
|
* @param params.socialMedia [Optional] An array of social media profiles associated with the creator.
|
18507
18507
|
* @param params.socialMedia[].platform The name of the social media platform.
|
18508
18508
|
* @param params.socialMedia[].url The URL to the creator's profile on the platform.
|
18509
|
-
*
|
18510
|
-
*
|
18509
|
+
* @param params.contributionPercent The percentage of contribution by the creator, must add up to 100.
|
18510
|
+
* @param params.role [Optional] The role of the creator in relation to the IP.
|
18511
18511
|
* @returns An `IpCreator` object containing the provided details.
|
18512
18512
|
*/
|
18513
18513
|
return _createClass(IPAssetClient, [{
|
18514
18514
|
key: "generateCreatorMetadata",
|
18515
|
-
value: function generateCreatorMetadata(
|
18516
|
-
var name =
|
18517
|
-
address =
|
18518
|
-
|
18519
|
-
description =
|
18520
|
-
|
18521
|
-
image =
|
18522
|
-
|
18523
|
-
socialMedia =
|
18524
|
-
contributionPercent =
|
18525
|
-
|
18526
|
-
role =
|
18515
|
+
value: function generateCreatorMetadata(param) {
|
18516
|
+
var name = param.name,
|
18517
|
+
address = param.address,
|
18518
|
+
_param$description = param.description,
|
18519
|
+
description = _param$description === void 0 ? "" : _param$description,
|
18520
|
+
_param$image = param.image,
|
18521
|
+
image = _param$image === void 0 ? "" : _param$image,
|
18522
|
+
_param$socialMedia = param.socialMedia,
|
18523
|
+
socialMedia = _param$socialMedia === void 0 ? [] : _param$socialMedia,
|
18524
|
+
contributionPercent = param.contributionPercent,
|
18525
|
+
_param$role = param.role,
|
18526
|
+
role = _param$role === void 0 ? "" : _param$role;
|
18527
18527
|
return {
|
18528
18528
|
name: name,
|
18529
18529
|
address: address,
|
@@ -18552,8 +18552,8 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18552
18552
|
* @param params.creators[].description [Optional] A description of the creator.
|
18553
18553
|
* @param params.creators[].image [Optional] The URL or path to an image representing the creator.
|
18554
18554
|
* @param params.creators[].socialMedia [Optional] An array of social media profiles for the creator.
|
18555
|
-
*
|
18556
|
-
*
|
18555
|
+
* @param params.creators[].socialMedia[].platform The social media platform name.
|
18556
|
+
* @param params.creators[].socialMedia[].url The URL to the creator's profile.
|
18557
18557
|
* @param params.creators[].role [Optional] The role of the creator in relation to the IP.
|
18558
18558
|
* @param params.creators[].contributionPercent The percentage of contribution by the creator.
|
18559
18559
|
* @param params.media [Optional] An array of media related to the IP.
|
@@ -18576,30 +18576,30 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18576
18576
|
*/
|
18577
18577
|
}, {
|
18578
18578
|
key: "generateIpMetadata",
|
18579
|
-
value: function generateIpMetadata(
|
18580
|
-
var
|
18581
|
-
title =
|
18582
|
-
|
18583
|
-
description =
|
18584
|
-
|
18585
|
-
ipType =
|
18586
|
-
|
18587
|
-
relationships =
|
18588
|
-
|
18589
|
-
createdAt =
|
18590
|
-
|
18591
|
-
watermarkImg =
|
18592
|
-
|
18593
|
-
creators =
|
18594
|
-
|
18595
|
-
media =
|
18596
|
-
|
18597
|
-
attributes =
|
18598
|
-
app =
|
18599
|
-
|
18600
|
-
tags =
|
18601
|
-
robotTerms =
|
18602
|
-
additionalProperties = _objectWithoutProperties(
|
18579
|
+
value: function generateIpMetadata(param) {
|
18580
|
+
var _param$title = param.title,
|
18581
|
+
title = _param$title === void 0 ? "" : _param$title,
|
18582
|
+
_param$description2 = param.description,
|
18583
|
+
description = _param$description2 === void 0 ? "" : _param$description2,
|
18584
|
+
_param$ipType = param.ipType,
|
18585
|
+
ipType = _param$ipType === void 0 ? "" : _param$ipType,
|
18586
|
+
_param$relationships = param.relationships,
|
18587
|
+
relationships = _param$relationships === void 0 ? [] : _param$relationships,
|
18588
|
+
_param$createdAt = param.createdAt,
|
18589
|
+
createdAt = _param$createdAt === void 0 ? "" : _param$createdAt,
|
18590
|
+
_param$watermarkImg = param.watermarkImg,
|
18591
|
+
watermarkImg = _param$watermarkImg === void 0 ? "" : _param$watermarkImg,
|
18592
|
+
_param$creators = param.creators,
|
18593
|
+
creators = _param$creators === void 0 ? [] : _param$creators,
|
18594
|
+
_param$media = param.media,
|
18595
|
+
media = _param$media === void 0 ? [] : _param$media,
|
18596
|
+
_param$attributes = param.attributes,
|
18597
|
+
attributes = _param$attributes === void 0 ? [] : _param$attributes,
|
18598
|
+
app = param.app,
|
18599
|
+
_param$tags = param.tags,
|
18600
|
+
tags = _param$tags === void 0 ? [] : _param$tags,
|
18601
|
+
robotTerms = param.robotTerms,
|
18602
|
+
additionalProperties = _objectWithoutProperties(param, _excluded);
|
18603
18603
|
return _objectSpread2({
|
18604
18604
|
title: title,
|
18605
18605
|
description: description,
|
@@ -18627,7 +18627,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18627
18627
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
18628
18628
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
18629
18629
|
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
18630
|
-
* @param request.txOptions [Optional]
|
18630
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
18631
18631
|
* @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
|
18632
18632
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
|
18633
18633
|
*/
|
@@ -18745,9 +18745,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18745
18745
|
break;
|
18746
18746
|
}
|
18747
18747
|
_context.next = 36;
|
18748
|
-
return this.rpcClient.waitForTransactionReceipt({
|
18748
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
18749
18749
|
hash: txHash
|
18750
|
-
});
|
18750
|
+
}));
|
18751
18751
|
case 36:
|
18752
18752
|
txReceipt = _context.sent;
|
18753
18753
|
targetLogs = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(txReceipt);
|
@@ -18787,7 +18787,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18787
18787
|
* @param request.childIpId The derivative IP ID.
|
18788
18788
|
* @param request.parentIpIds The parent IP IDs.
|
18789
18789
|
* @param request.licenseTermsIds The IDs of the license terms that the parent IP supports.
|
18790
|
-
* @param request.txOptions [Optional]
|
18790
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
18791
18791
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
18792
18792
|
*/
|
18793
18793
|
)
|
@@ -18899,9 +18899,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18899
18899
|
break;
|
18900
18900
|
}
|
18901
18901
|
_context2.next = 49;
|
18902
|
-
return this.rpcClient.waitForTransactionReceipt({
|
18902
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
18903
18903
|
hash: txHash
|
18904
|
-
});
|
18904
|
+
}));
|
18905
18905
|
case 49:
|
18906
18906
|
return _context2.abrupt("return", {
|
18907
18907
|
txHash: txHash
|
@@ -18936,7 +18936,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
18936
18936
|
* @param request - The request object that contains all data needed to register derivative license tokens.
|
18937
18937
|
* @param request.childIpId The derivative IP ID.
|
18938
18938
|
* @param request.licenseTokenIds The IDs of the license tokens.
|
18939
|
-
* @param request.txOptions [Optional]
|
18939
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
18940
18940
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
18941
18941
|
*/
|
18942
18942
|
)
|
@@ -19019,9 +19019,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19019
19019
|
break;
|
19020
19020
|
}
|
19021
19021
|
_context3.next = 38;
|
19022
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19022
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
19023
19023
|
hash: txHash
|
19024
|
-
});
|
19024
|
+
}));
|
19025
19025
|
case 38:
|
19026
19026
|
return _context3.abrupt("return", {
|
19027
19027
|
txHash: txHash
|
@@ -19062,7 +19062,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19062
19062
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
19063
19063
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
19064
19064
|
* @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
19065
|
-
* @param request.txOptions [Optional]
|
19065
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19066
19066
|
* @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.
|
19067
19067
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
19068
19068
|
* @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
|
@@ -19117,9 +19117,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19117
19117
|
break;
|
19118
19118
|
}
|
19119
19119
|
_context4.next = 15;
|
19120
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19120
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
19121
19121
|
hash: txHash
|
19122
|
-
});
|
19122
|
+
}));
|
19123
19123
|
case 15:
|
19124
19124
|
txReceipt = _context4.sent;
|
19125
19125
|
iPRegisteredLog = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(txReceipt)[0];
|
@@ -19170,7 +19170,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19170
19170
|
* @param request.mintingFee [Optional] The fee to be paid when minting a license.
|
19171
19171
|
* @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
|
19172
19172
|
* @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
19173
|
-
* @param request.txOptions [Optional]
|
19173
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19174
19174
|
* @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.
|
19175
19175
|
* @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
|
19176
19176
|
*/
|
@@ -19297,9 +19297,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19297
19297
|
break;
|
19298
19298
|
}
|
19299
19299
|
_context5.next = 32;
|
19300
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19300
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
19301
19301
|
hash: txHash
|
19302
|
-
});
|
19302
|
+
}));
|
19303
19303
|
case 32:
|
19304
19304
|
txReceipt = _context5.sent;
|
19305
19305
|
ipRegisterEvent = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(txReceipt);
|
@@ -19349,7 +19349,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19349
19349
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
19350
19350
|
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
|
19351
19351
|
* @param request.deadline [Optional] The deadline for the signature in milliseconds,default is 1000ms.
|
19352
|
-
* @param request.txOptions [Optional]
|
19352
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19353
19353
|
* @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
|
19354
19354
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
19355
19355
|
*/
|
@@ -19503,9 +19503,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19503
19503
|
break;
|
19504
19504
|
}
|
19505
19505
|
_context6.next = 41;
|
19506
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19506
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
19507
19507
|
hash: txHash
|
19508
|
-
});
|
19508
|
+
}));
|
19509
19509
|
case 41:
|
19510
19510
|
receipt = _context6.sent;
|
19511
19511
|
log = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(receipt)[0];
|
@@ -19547,8 +19547,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19547
19547
|
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
|
19548
19548
|
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
|
19549
19549
|
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
|
19550
|
-
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.*
|
19551
|
-
* @param request.
|
19550
|
+
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.*
|
19551
|
+
* @param request.recipient [Optional] The address of the recipient of the minted NFT.
|
19552
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19552
19553
|
* @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
|
19553
19554
|
* @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
|
19554
19555
|
*/
|
@@ -19625,9 +19626,9 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
19625
19626
|
break;
|
19626
19627
|
}
|
19627
19628
|
_context7.next = 24;
|
19628
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19629
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
19629
19630
|
hash: txHash
|
19630
|
-
});
|
19631
|
+
}));
|
19631
19632
|
case 24:
|
19632
19633
|
receipt = _context7.sent;
|
19633
19634
|
log = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(receipt)[0];
|
@@ -19795,7 +19796,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19795
19796
|
* @param request.to The address that can be called by the `signer` (currently only modules can be `to`).
|
19796
19797
|
* @param request.permission The new permission level.
|
19797
19798
|
* @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.
|
19798
|
-
* @param request.txOptions [Optional]
|
19799
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19799
19800
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
19800
19801
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
19801
19802
|
*/
|
@@ -19835,9 +19836,9 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19835
19836
|
break;
|
19836
19837
|
}
|
19837
19838
|
_context.next = 14;
|
19838
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19839
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
19839
19840
|
hash: txHash
|
19840
|
-
});
|
19841
|
+
}));
|
19841
19842
|
case 14:
|
19842
19843
|
return _context.abrupt("return", {
|
19843
19844
|
txHash: txHash,
|
@@ -19874,7 +19875,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19874
19875
|
* @param request.permission The new permission level.
|
19875
19876
|
* @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.
|
19876
19877
|
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
19877
|
-
* @param request.txOptions [Optional]
|
19878
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19878
19879
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
19879
19880
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
19880
19881
|
*/
|
@@ -19883,7 +19884,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19883
19884
|
key: "createSetPermissionSignature",
|
19884
19885
|
value: (function () {
|
19885
19886
|
var _createSetPermissionSignature = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
19886
|
-
var _request$txOptions3, ipId, signer, to, txOptions, func, permission, deadline, ipAccountClient, data, _yield$ipAccountClien, state, calculatedDeadline, signature, req, txHash;
|
19887
|
+
var _request$txOptions3, ipId, signer, to, txOptions, func, permission, deadline, ipAccountClient, data, _yield$ipAccountClien, state, calculatedDeadline, signature, req, _request$txOptions4, txHash;
|
19887
19888
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
19888
19889
|
while (1) switch (_context2.prev = _context2.next) {
|
19889
19890
|
case 0:
|
@@ -19941,14 +19942,14 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19941
19942
|
return ipAccountClient.executeWithSig(req);
|
19942
19943
|
case 21:
|
19943
19944
|
txHash = _context2.sent;
|
19944
|
-
if (!(txOptions !== null &&
|
19945
|
+
if (!((_request$txOptions4 = request.txOptions) !== null && _request$txOptions4 !== void 0 && _request$txOptions4.waitForTransaction)) {
|
19945
19946
|
_context2.next = 28;
|
19946
19947
|
break;
|
19947
19948
|
}
|
19948
19949
|
_context2.next = 25;
|
19949
|
-
return this.rpcClient.waitForTransactionReceipt({
|
19950
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, txOptions), {}, {
|
19950
19951
|
hash: txHash
|
19951
|
-
});
|
19952
|
+
}));
|
19952
19953
|
case 25:
|
19953
19954
|
return _context2.abrupt("return", {
|
19954
19955
|
txHash: txHash,
|
@@ -19982,7 +19983,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19982
19983
|
* @param request.ipId The IP ID that grants the permission for `signer`
|
19983
19984
|
* @param request.signer The address of the signer receiving the permissions.
|
19984
19985
|
* @param request.permission The new permission.
|
19985
|
-
* @param request.txOptions [Optional]
|
19986
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
19986
19987
|
* @returns A Promise that resolves to an object containing the transaction hash
|
19987
19988
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
19988
19989
|
*/
|
@@ -19991,7 +19992,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
19991
19992
|
key: "setAllPermissions",
|
19992
19993
|
value: (function () {
|
19993
19994
|
var _setAllPermissions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
|
19994
|
-
var _request$
|
19995
|
+
var _request$txOptions5, req, _request$txOptions6, txHash;
|
19995
19996
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
19996
19997
|
while (1) switch (_context3.prev = _context3.next) {
|
19997
19998
|
case 0:
|
@@ -20004,7 +20005,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20004
20005
|
signer: request.signer,
|
20005
20006
|
permission: request.permission
|
20006
20007
|
};
|
20007
|
-
if (!((_request$
|
20008
|
+
if (!((_request$txOptions5 = request.txOptions) !== null && _request$txOptions5 !== void 0 && _request$txOptions5.encodedTxDataOnly)) {
|
20008
20009
|
_context3.next = 8;
|
20009
20010
|
break;
|
20010
20011
|
}
|
@@ -20016,14 +20017,14 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20016
20017
|
return this.accessControllerClient.setAllPermissions(req);
|
20017
20018
|
case 10:
|
20018
20019
|
txHash = _context3.sent;
|
20019
|
-
if (!((_request$
|
20020
|
+
if (!((_request$txOptions6 = request.txOptions) !== null && _request$txOptions6 !== void 0 && _request$txOptions6.waitForTransaction)) {
|
20020
20021
|
_context3.next = 17;
|
20021
20022
|
break;
|
20022
20023
|
}
|
20023
20024
|
_context3.next = 14;
|
20024
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20025
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20025
20026
|
hash: txHash
|
20026
|
-
});
|
20027
|
+
}));
|
20027
20028
|
case 14:
|
20028
20029
|
return _context3.abrupt("return", {
|
20029
20030
|
txHash: txHash,
|
@@ -20061,7 +20062,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20061
20062
|
* @param request.permissions[].permission The new permission level.
|
20062
20063
|
* @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.
|
20063
20064
|
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
20064
|
-
* @param request.txOptions [Optional]
|
20065
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20065
20066
|
* @returns A Promise that resolves to an object containing the transaction hash
|
20066
20067
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
20067
20068
|
*/
|
@@ -20070,7 +20071,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20070
20071
|
key: "setBatchPermissions",
|
20071
20072
|
value: (function () {
|
20072
20073
|
var _setBatchPermissions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(request) {
|
20073
|
-
var _request$
|
20074
|
+
var _request$txOptions7, permissions, txOptions, _iterator, _step, permission, req, _request$txOptions8, txHash;
|
20074
20075
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
20075
20076
|
while (1) switch (_context4.prev = _context4.next) {
|
20076
20077
|
case 0:
|
@@ -20113,7 +20114,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20113
20114
|
};
|
20114
20115
|
})
|
20115
20116
|
};
|
20116
|
-
if (!((_request$
|
20117
|
+
if (!((_request$txOptions7 = request.txOptions) !== null && _request$txOptions7 !== void 0 && _request$txOptions7.encodedTxDataOnly)) {
|
20117
20118
|
_context4.next = 24;
|
20118
20119
|
break;
|
20119
20120
|
}
|
@@ -20125,14 +20126,14 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20125
20126
|
return this.accessControllerClient.setBatchPermissions(req);
|
20126
20127
|
case 26:
|
20127
20128
|
txHash = _context4.sent;
|
20128
|
-
if (!(txOptions !== null &&
|
20129
|
+
if (!((_request$txOptions8 = request.txOptions) !== null && _request$txOptions8 !== void 0 && _request$txOptions8.waitForTransaction)) {
|
20129
20130
|
_context4.next = 33;
|
20130
20131
|
break;
|
20131
20132
|
}
|
20132
20133
|
_context4.next = 30;
|
20133
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20134
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, txOptions), {}, {
|
20134
20135
|
hash: txHash
|
20135
|
-
});
|
20136
|
+
}));
|
20136
20137
|
case 30:
|
20137
20138
|
return _context4.abrupt("return", {
|
20138
20139
|
txHash: txHash,
|
@@ -20170,7 +20171,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20170
20171
|
* @param request.permissions[].to The address that can be called by the `signer` (currently only modules can be `to`).
|
20171
20172
|
* @param request.permissions[].permission The new permission level.
|
20172
20173
|
* @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.
|
20173
|
-
* @param request.txOptions [Optional]
|
20174
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20174
20175
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
20175
20176
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
20176
20177
|
*/
|
@@ -20179,7 +20180,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20179
20180
|
key: "createBatchPermissionSignature",
|
20180
20181
|
value: (function () {
|
20181
20182
|
var _createBatchPermissionSignature = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
|
20182
|
-
var _request$
|
20183
|
+
var _request$txOptions9, permissions, deadline, ipId, txOptions, _iterator2, _step2, permission, ipAccountClient, data, _yield$ipAccountClien2, state, calculatedDeadline, signature, req, _request$txOptions10, txHash;
|
20183
20184
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
20184
20185
|
while (1) switch (_context5.prev = _context5.next) {
|
20185
20186
|
case 0:
|
@@ -20251,7 +20252,7 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20251
20252
|
deadline: calculatedDeadline,
|
20252
20253
|
signature: signature
|
20253
20254
|
};
|
20254
|
-
if (!((_request$
|
20255
|
+
if (!((_request$txOptions9 = request.txOptions) !== null && _request$txOptions9 !== void 0 && _request$txOptions9.encodedTxDataOnly)) {
|
20255
20256
|
_context5.next = 34;
|
20256
20257
|
break;
|
20257
20258
|
}
|
@@ -20263,14 +20264,14 @@ var PermissionClient = /*#__PURE__*/function () {
|
|
20263
20264
|
return ipAccountClient.executeWithSig(req);
|
20264
20265
|
case 36:
|
20265
20266
|
txHash = _context5.sent;
|
20266
|
-
if (!(txOptions !== null &&
|
20267
|
+
if (!((_request$txOptions10 = request.txOptions) !== null && _request$txOptions10 !== void 0 && _request$txOptions10.waitForTransaction)) {
|
20267
20268
|
_context5.next = 43;
|
20268
20269
|
break;
|
20269
20270
|
}
|
20270
20271
|
_context5.next = 40;
|
20271
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20272
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, txOptions), {}, {
|
20272
20273
|
hash: txHash
|
20273
|
-
});
|
20274
|
+
}));
|
20274
20275
|
case 40:
|
20275
20276
|
return _context5.abrupt("return", {
|
20276
20277
|
txHash: txHash,
|
@@ -20348,7 +20349,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20348
20349
|
/**
|
20349
20350
|
* Convenient function to register a PIL non commercial social remix license to the registry
|
20350
20351
|
* @param request - [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
|
20351
|
-
* @param request.txOptions [Optional]
|
20352
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20352
20353
|
* @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
|
20353
20354
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
20354
20355
|
*/
|
@@ -20395,9 +20396,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20395
20396
|
break;
|
20396
20397
|
}
|
20397
20398
|
_context.next = 17;
|
20398
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20399
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20399
20400
|
hash: txHash
|
20400
|
-
});
|
20401
|
+
}));
|
20401
20402
|
case 17:
|
20402
20403
|
txReceipt = _context.sent;
|
20403
20404
|
targetLogs = this.licenseTemplateClient.parseTxLicenseTermsRegisteredEvent(txReceipt);
|
@@ -20432,7 +20433,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20432
20433
|
* @param request - The request object that contains all data needed to register a PIL commercial use license.
|
20433
20434
|
* @param request.mintingFee The fee to be paid when minting a license.
|
20434
20435
|
* @param request.currency The ERC20 token to be used to pay the minting fee and the token must be registered in story protocol.
|
20435
|
-
* @param request.txOptions [Optional]
|
20436
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20436
20437
|
* @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
|
20437
20438
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
20438
20439
|
*/
|
@@ -20484,9 +20485,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20484
20485
|
break;
|
20485
20486
|
}
|
20486
20487
|
_context2.next = 17;
|
20487
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20488
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20488
20489
|
hash: txHash
|
20489
|
-
});
|
20490
|
+
}));
|
20490
20491
|
case 17:
|
20491
20492
|
txReceipt = _context2.sent;
|
20492
20493
|
targetLogs = this.licenseTemplateClient.parseTxLicenseTermsRegisteredEvent(txReceipt);
|
@@ -20522,7 +20523,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20522
20523
|
* @param request.mintingFee The fee to be paid when minting a license.
|
20523
20524
|
* @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
|
20524
20525
|
* @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
|
20525
|
-
* @param request.txOptions [Optional]
|
20526
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20526
20527
|
* @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
|
20527
20528
|
* @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
|
20528
20529
|
*/
|
@@ -20575,9 +20576,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20575
20576
|
break;
|
20576
20577
|
}
|
20577
20578
|
_context3.next = 17;
|
20578
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20579
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20579
20580
|
hash: txHash
|
20580
|
-
});
|
20581
|
+
}));
|
20581
20582
|
case 17:
|
20582
20583
|
txReceipt = _context3.sent;
|
20583
20584
|
targetLogs = this.licenseTemplateClient.parseTxLicenseTermsRegisteredEvent(txReceipt);
|
@@ -20613,7 +20614,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20613
20614
|
* @param request.ipId The address of the IP to which the license terms are attached.
|
20614
20615
|
* @param request.licenseTemplate The address of the license template.
|
20615
20616
|
* @param request.licenseTermsId The ID of the license terms.
|
20616
|
-
* @param request.txOptions [Optional]
|
20617
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20617
20618
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
20618
20619
|
*/
|
20619
20620
|
)
|
@@ -20690,9 +20691,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20690
20691
|
break;
|
20691
20692
|
}
|
20692
20693
|
_context4.next = 28;
|
20693
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20694
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20694
20695
|
hash: txHash
|
20695
|
-
});
|
20696
|
+
}));
|
20696
20697
|
case 28:
|
20697
20698
|
return _context4.abrupt("return", {
|
20698
20699
|
txHash: txHash,
|
@@ -20738,7 +20739,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20738
20739
|
* @param request.licenseTermsId The ID of the license terms within the license template.
|
20739
20740
|
* @param request.amount The amount of license tokens to mint.
|
20740
20741
|
* @param request.receiver The address of the receiver.
|
20741
|
-
* @param request.txOptions [Optional]
|
20742
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20742
20743
|
* @returns A Promise that resolves to an object containing the transaction hash and optional license token IDs if waitForTxn is set to true.
|
20743
20744
|
* @emits LicenseTokensMinted (msg.sender, licensorIpId, licenseTemplate, licenseTermsId, amount, receiver, startLicenseTokenId);
|
20744
20745
|
*/
|
@@ -20817,9 +20818,9 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
20817
20818
|
break;
|
20818
20819
|
}
|
20819
20820
|
_context5.next = 29;
|
20820
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20821
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20821
20822
|
hash: txHash
|
20822
|
-
});
|
20823
|
+
}));
|
20823
20824
|
case 29:
|
20824
20825
|
txReceipt = _context5.sent;
|
20825
20826
|
targetLogs = this.licensingModuleClient.parseTxLicenseTokensMintedEvent(txReceipt);
|
@@ -20933,7 +20934,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
20933
20934
|
* @param request.linkToDisputeEvidence - The link to the dispute evidence.
|
20934
20935
|
* @param request.targetTag - The target tag of the dispute.
|
20935
20936
|
* @param request.calldata - Optional calldata to initialize the policy.
|
20936
|
-
* @param request.txOptions - Optional transaction
|
20937
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
20937
20938
|
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
20938
20939
|
* @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
|
20939
20940
|
* @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
|
@@ -20975,9 +20976,9 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
20975
20976
|
break;
|
20976
20977
|
}
|
20977
20978
|
_context.next = 12;
|
20978
|
-
return this.rpcClient.waitForTransactionReceipt({
|
20979
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
20979
20980
|
hash: txHash
|
20980
|
-
});
|
20981
|
+
}));
|
20981
20982
|
case 12:
|
20982
20983
|
txReceipt = _context.sent;
|
20983
20984
|
targetLogs = this.disputeModuleClient.parseTxDisputeRaisedEvent(txReceipt);
|
@@ -21012,6 +21013,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
21012
21013
|
* @param request - The request object containing details to cancel the dispute.
|
21013
21014
|
* @param request.disputeId The ID of the dispute to be cancelled.
|
21014
21015
|
* @param request.calldata Optional additional data used in the cancellation process.
|
21016
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21015
21017
|
* @returns A Promise that resolves to a CancelDisputeResponse containing the transaction hash.
|
21016
21018
|
* @throws NotInDisputeState, if the currentTag of the Dispute is not being disputed
|
21017
21019
|
* @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
|
@@ -21050,9 +21052,9 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
21050
21052
|
break;
|
21051
21053
|
}
|
21052
21054
|
_context2.next = 12;
|
21053
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21055
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21054
21056
|
hash: txHash
|
21055
|
-
});
|
21057
|
+
}));
|
21056
21058
|
case 12:
|
21057
21059
|
return _context2.abrupt("return", {
|
21058
21060
|
txHash: txHash
|
@@ -21080,6 +21082,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
21080
21082
|
* @param request - The request object containing details to resolve the dispute.
|
21081
21083
|
* @param request.disputeId The ID of the dispute to be resolved.
|
21082
21084
|
* @param request.data The data to resolve the dispute.
|
21085
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21083
21086
|
* @returns A Promise that resolves to a ResolveDisputeResponse.
|
21084
21087
|
* @throws NotAbleToResolve, if currentTag is still in dispute (i.e still needs a judgement to be set)
|
21085
21088
|
* @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
|
@@ -21116,9 +21119,9 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
21116
21119
|
break;
|
21117
21120
|
}
|
21118
21121
|
_context3.next = 12;
|
21119
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21122
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21120
21123
|
hash: txHash
|
21121
|
-
});
|
21124
|
+
}));
|
21122
21125
|
case 12:
|
21123
21126
|
return _context3.abrupt("return", {
|
21124
21127
|
txHash: txHash
|
@@ -21158,6 +21161,7 @@ var IPAccountClient = /*#__PURE__*/function () {
|
|
21158
21161
|
* @param request.value The amount of Ether to send.
|
21159
21162
|
* @param request.accountAddress The ipId to send.
|
21160
21163
|
* @param request.data The data to send along with the transaction.
|
21164
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21161
21165
|
* @returns Tx hash for the transaction.
|
21162
21166
|
*/
|
21163
21167
|
return _createClass(IPAccountClient, [{
|
@@ -21196,9 +21200,9 @@ var IPAccountClient = /*#__PURE__*/function () {
|
|
21196
21200
|
break;
|
21197
21201
|
}
|
21198
21202
|
_context.next = 13;
|
21199
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21203
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21200
21204
|
hash: txHash
|
21201
|
-
});
|
21205
|
+
}));
|
21202
21206
|
case 13:
|
21203
21207
|
return _context.abrupt("return", {
|
21204
21208
|
txHash: txHash
|
@@ -21230,6 +21234,7 @@ var IPAccountClient = /*#__PURE__*/function () {
|
|
21230
21234
|
* @param request.signer The signer of the transaction.
|
21231
21235
|
* @param request.deadline The deadline of the transaction signature.
|
21232
21236
|
* @param request.signature The signature of the transaction, EIP-712 encoded.
|
21237
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21233
21238
|
* @returns Tx hash for the transaction.
|
21234
21239
|
*/
|
21235
21240
|
)
|
@@ -21268,9 +21273,9 @@ var IPAccountClient = /*#__PURE__*/function () {
|
|
21268
21273
|
break;
|
21269
21274
|
}
|
21270
21275
|
_context2.next = 13;
|
21271
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21276
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21272
21277
|
hash: txHash
|
21273
|
-
});
|
21278
|
+
}));
|
21274
21279
|
case 13:
|
21275
21280
|
return _context2.abrupt("return", {
|
21276
21281
|
txHash: txHash
|
@@ -21343,7 +21348,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21343
21348
|
* @param request - The request object that contains all data needed to collect royalty tokens.
|
21344
21349
|
* @param request.parentIpId The ip id of the ancestor to whom the royalty tokens belong to.
|
21345
21350
|
* @param request.royaltyVaultIpId The id of the royalty vault.
|
21346
|
-
* @param request.txOptions [Optional]
|
21351
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21347
21352
|
* @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.
|
21348
21353
|
* @emits RoyaltyTokensCollected (ancestorIpId, royaltyTokensCollected)
|
21349
21354
|
*/
|
@@ -21393,9 +21398,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21393
21398
|
break;
|
21394
21399
|
}
|
21395
21400
|
_context.next = 21;
|
21396
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21401
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21397
21402
|
hash: txHash
|
21398
|
-
});
|
21403
|
+
}));
|
21399
21404
|
case 21:
|
21400
21405
|
txReceipt = _context.sent;
|
21401
21406
|
targetLogs = ipRoyaltyVault.parseTxRoyaltyTokensCollectedEvent(txReceipt);
|
@@ -21432,7 +21437,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21432
21437
|
* @param request.payerIpId The ID of the IP asset that pays the royalties.
|
21433
21438
|
* @param request.token The token to use to pay the royalties.
|
21434
21439
|
* @param request.amount The amount to pay.
|
21435
|
-
* @param request.txOptions [Optional]
|
21440
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21436
21441
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
21437
21442
|
*/
|
21438
21443
|
)
|
@@ -21492,9 +21497,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21492
21497
|
break;
|
21493
21498
|
}
|
21494
21499
|
_context2.next = 22;
|
21495
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21500
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21496
21501
|
hash: txHash
|
21497
|
-
});
|
21502
|
+
}));
|
21498
21503
|
case 22:
|
21499
21504
|
return _context2.abrupt("return", {
|
21500
21505
|
txHash: txHash
|
@@ -21528,7 +21533,6 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21528
21533
|
* @param request.account The address of the token holder.
|
21529
21534
|
* @param request.snapshotId The snapshot id.
|
21530
21535
|
* @param request.token The revenue token to claim.
|
21531
|
-
* @param request.txOptions [Optional] The transaction options.
|
21532
21536
|
* @returns A Promise that contains the amount of revenue token claimable
|
21533
21537
|
*/
|
21534
21538
|
)
|
@@ -21576,7 +21580,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21576
21580
|
* @param request.royaltyVaultIpId The id of the royalty vault.
|
21577
21581
|
* @param request.token The revenue token to claim.
|
21578
21582
|
* @param request.account [Optional] The ipId to send.
|
21579
|
-
* @param request.txOptions [Optional]
|
21583
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21580
21584
|
* @returns A Promise that resolves to an object containing the transaction hash and optional claimableToken if waitForTxn is set to true.
|
21581
21585
|
* @emits RevenueTokenClaimed (claimer, token, amount).
|
21582
21586
|
*/
|
@@ -21650,9 +21654,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21650
21654
|
break;
|
21651
21655
|
}
|
21652
21656
|
_context4.next = 26;
|
21653
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21657
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21654
21658
|
hash: txHash
|
21655
|
-
});
|
21659
|
+
}));
|
21656
21660
|
case 26:
|
21657
21661
|
txReceipt = _context4.sent;
|
21658
21662
|
targetLogs = ipRoyaltyVault.parseTxRevenueTokenClaimedEvent(txReceipt);
|
@@ -21686,7 +21690,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21686
21690
|
* Snapshots the claimable revenue and royalty token amounts.
|
21687
21691
|
* @param request - The request object that contains all data needed to snapshot.
|
21688
21692
|
* @param request.royaltyVaultIpId The id of the royalty vault.
|
21689
|
-
* @param request.txOptions [Optional]
|
21693
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21690
21694
|
* @returns A Promise that resolves to an object containing the transaction hash and optional snapshotId if waitForTxn is set to true.
|
21691
21695
|
* @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
|
21692
21696
|
*/
|
@@ -21722,9 +21726,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
|
|
21722
21726
|
break;
|
21723
21727
|
}
|
21724
21728
|
_context5.next = 15;
|
21725
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21729
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21726
21730
|
hash: txHash
|
21727
|
-
});
|
21731
|
+
}));
|
21728
21732
|
case 15:
|
21729
21733
|
txReceipt = _context5.sent;
|
21730
21734
|
targetLogs = ipRoyaltyVault.parseTxSnapshotCompletedEvent(txReceipt);
|
@@ -21824,7 +21828,7 @@ var NftClient = /*#__PURE__*/function () {
|
|
21824
21828
|
* @param request.mintFee - The cost to mint a token.
|
21825
21829
|
* @param request.mintFeeToken - The token to mint.
|
21826
21830
|
* @param request.owner - The owner of the collection.
|
21827
|
-
* @param request.txOptions - Optional transaction
|
21831
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
21828
21832
|
* @returns A Promise that resolves to a CreateNFTCollectionResponse containing the transaction hash and collection address.
|
21829
21833
|
* @emits CollectionCreated (nftContract);
|
21830
21834
|
*/
|
@@ -21868,9 +21872,9 @@ var NftClient = /*#__PURE__*/function () {
|
|
21868
21872
|
break;
|
21869
21873
|
}
|
21870
21874
|
_context.next = 14;
|
21871
|
-
return this.rpcClient.waitForTransactionReceipt({
|
21875
|
+
return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
|
21872
21876
|
hash: txHash
|
21873
|
-
});
|
21877
|
+
}));
|
21874
21878
|
case 14:
|
21875
21879
|
txReceipt = _context.sent;
|
21876
21880
|
targetLogs = this.spgClient.parseTxCollectionCreatedEvent(txReceipt);
|