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

Sign up to get free protection for your applications and to get access to all the features.
@@ -18482,24 +18482,24 @@ var IPAssetClient = /*#__PURE__*/function () {
18482
18482
  * @param params.socialMedia [Optional] An array of social media profiles associated with the creator.
18483
18483
  * @param params.socialMedia[].platform The name of the social media platform.
18484
18484
  * @param params.socialMedia[].url The URL to the creator's profile on the platform.
18485
- * @param params.contributionPercent The percentage of contribution by the creator, must add up to 100.
18486
- * @param params.role [Optional] The role of the creator in relation to the IP.
18485
+ * @param params.contributionPercent The percentage of contribution by the creator, must add up to 100.
18486
+ * @param params.role [Optional] The role of the creator in relation to the IP.
18487
18487
  * @returns An `IpCreator` object containing the provided details.
18488
18488
  */
18489
18489
  return _createClass(IPAssetClient, [{
18490
18490
  key: "generateCreatorMetadata",
18491
- value: function generateCreatorMetadata(_ref) {
18492
- var name = _ref.name,
18493
- address = _ref.address,
18494
- _ref$description = _ref.description,
18495
- description = _ref$description === void 0 ? "" : _ref$description,
18496
- _ref$image = _ref.image,
18497
- image = _ref$image === void 0 ? "" : _ref$image,
18498
- _ref$socialMedia = _ref.socialMedia,
18499
- socialMedia = _ref$socialMedia === void 0 ? [] : _ref$socialMedia,
18500
- contributionPercent = _ref.contributionPercent,
18501
- _ref$role = _ref.role,
18502
- role = _ref$role === void 0 ? "" : _ref$role;
18491
+ value: function generateCreatorMetadata(param) {
18492
+ var name = param.name,
18493
+ address = param.address,
18494
+ _param$description = param.description,
18495
+ description = _param$description === void 0 ? "" : _param$description,
18496
+ _param$image = param.image,
18497
+ image = _param$image === void 0 ? "" : _param$image,
18498
+ _param$socialMedia = param.socialMedia,
18499
+ socialMedia = _param$socialMedia === void 0 ? [] : _param$socialMedia,
18500
+ contributionPercent = param.contributionPercent,
18501
+ _param$role = param.role,
18502
+ role = _param$role === void 0 ? "" : _param$role;
18503
18503
  return {
18504
18504
  name: name,
18505
18505
  address: address,
@@ -18528,8 +18528,8 @@ var IPAssetClient = /*#__PURE__*/function () {
18528
18528
  * @param params.creators[].description [Optional] A description of the creator.
18529
18529
  * @param params.creators[].image [Optional] The URL or path to an image representing the creator.
18530
18530
  * @param params.creators[].socialMedia [Optional] An array of social media profiles for the creator.
18531
- * @param params.creators[].socialMedia[].platform The social media platform name.
18532
- * @param params.creators[].socialMedia[].url The URL to the creator's profile.
18531
+ * @param params.creators[].socialMedia[].platform The social media platform name.
18532
+ * @param params.creators[].socialMedia[].url The URL to the creator's profile.
18533
18533
  * @param params.creators[].role [Optional] The role of the creator in relation to the IP.
18534
18534
  * @param params.creators[].contributionPercent The percentage of contribution by the creator.
18535
18535
  * @param params.media [Optional] An array of media related to the IP.
@@ -18552,30 +18552,30 @@ var IPAssetClient = /*#__PURE__*/function () {
18552
18552
  */
18553
18553
  }, {
18554
18554
  key: "generateIpMetadata",
18555
- value: function generateIpMetadata(_ref2) {
18556
- var _ref2$title = _ref2.title,
18557
- title = _ref2$title === void 0 ? "" : _ref2$title,
18558
- _ref2$description = _ref2.description,
18559
- description = _ref2$description === void 0 ? "" : _ref2$description,
18560
- _ref2$ipType = _ref2.ipType,
18561
- ipType = _ref2$ipType === void 0 ? "" : _ref2$ipType,
18562
- _ref2$relationships = _ref2.relationships,
18563
- relationships = _ref2$relationships === void 0 ? [] : _ref2$relationships,
18564
- _ref2$createdAt = _ref2.createdAt,
18565
- createdAt = _ref2$createdAt === void 0 ? "" : _ref2$createdAt,
18566
- _ref2$watermarkImg = _ref2.watermarkImg,
18567
- watermarkImg = _ref2$watermarkImg === void 0 ? "" : _ref2$watermarkImg,
18568
- _ref2$creators = _ref2.creators,
18569
- creators = _ref2$creators === void 0 ? [] : _ref2$creators,
18570
- _ref2$media = _ref2.media,
18571
- media = _ref2$media === void 0 ? [] : _ref2$media,
18572
- _ref2$attributes = _ref2.attributes,
18573
- attributes = _ref2$attributes === void 0 ? [] : _ref2$attributes,
18574
- app = _ref2.app,
18575
- _ref2$tags = _ref2.tags,
18576
- tags = _ref2$tags === void 0 ? [] : _ref2$tags,
18577
- robotTerms = _ref2.robotTerms,
18578
- additionalProperties = _objectWithoutProperties(_ref2, _excluded);
18555
+ value: function generateIpMetadata(param) {
18556
+ var _param$title = param.title,
18557
+ title = _param$title === void 0 ? "" : _param$title,
18558
+ _param$description2 = param.description,
18559
+ description = _param$description2 === void 0 ? "" : _param$description2,
18560
+ _param$ipType = param.ipType,
18561
+ ipType = _param$ipType === void 0 ? "" : _param$ipType,
18562
+ _param$relationships = param.relationships,
18563
+ relationships = _param$relationships === void 0 ? [] : _param$relationships,
18564
+ _param$createdAt = param.createdAt,
18565
+ createdAt = _param$createdAt === void 0 ? "" : _param$createdAt,
18566
+ _param$watermarkImg = param.watermarkImg,
18567
+ watermarkImg = _param$watermarkImg === void 0 ? "" : _param$watermarkImg,
18568
+ _param$creators = param.creators,
18569
+ creators = _param$creators === void 0 ? [] : _param$creators,
18570
+ _param$media = param.media,
18571
+ media = _param$media === void 0 ? [] : _param$media,
18572
+ _param$attributes = param.attributes,
18573
+ attributes = _param$attributes === void 0 ? [] : _param$attributes,
18574
+ app = param.app,
18575
+ _param$tags = param.tags,
18576
+ tags = _param$tags === void 0 ? [] : _param$tags,
18577
+ robotTerms = param.robotTerms,
18578
+ additionalProperties = _objectWithoutProperties(param, _excluded);
18579
18579
  return _objectSpread2({
18580
18580
  title: title,
18581
18581
  description: description,
@@ -18603,7 +18603,7 @@ var IPAssetClient = /*#__PURE__*/function () {
18603
18603
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
18604
18604
  * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
18605
18605
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
18606
- * @param request.txOptions [Optional] The transaction options.
18606
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
18607
18607
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
18608
18608
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
18609
18609
  */
@@ -18721,9 +18721,9 @@ var IPAssetClient = /*#__PURE__*/function () {
18721
18721
  break;
18722
18722
  }
18723
18723
  _context.next = 36;
18724
- return this.rpcClient.waitForTransactionReceipt({
18724
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
18725
18725
  hash: txHash
18726
- });
18726
+ }));
18727
18727
  case 36:
18728
18728
  txReceipt = _context.sent;
18729
18729
  targetLogs = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(txReceipt);
@@ -18763,7 +18763,7 @@ var IPAssetClient = /*#__PURE__*/function () {
18763
18763
  * @param request.childIpId The derivative IP ID.
18764
18764
  * @param request.parentIpIds The parent IP IDs.
18765
18765
  * @param request.licenseTermsIds The IDs of the license terms that the parent IP supports.
18766
- * @param request.txOptions [Optional] The transaction options.
18766
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
18767
18767
  * @returns A Promise that resolves to an object containing the transaction hash.
18768
18768
  */
18769
18769
  )
@@ -18875,9 +18875,9 @@ var IPAssetClient = /*#__PURE__*/function () {
18875
18875
  break;
18876
18876
  }
18877
18877
  _context2.next = 49;
18878
- return this.rpcClient.waitForTransactionReceipt({
18878
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
18879
18879
  hash: txHash
18880
- });
18880
+ }));
18881
18881
  case 49:
18882
18882
  return _context2.abrupt("return", {
18883
18883
  txHash: txHash
@@ -18912,7 +18912,7 @@ var IPAssetClient = /*#__PURE__*/function () {
18912
18912
  * @param request - The request object that contains all data needed to register derivative license tokens.
18913
18913
  * @param request.childIpId The derivative IP ID.
18914
18914
  * @param request.licenseTokenIds The IDs of the license tokens.
18915
- * @param request.txOptions [Optional] The transaction options.
18915
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
18916
18916
  * @returns A Promise that resolves to an object containing the transaction hash.
18917
18917
  */
18918
18918
  )
@@ -18995,9 +18995,9 @@ var IPAssetClient = /*#__PURE__*/function () {
18995
18995
  break;
18996
18996
  }
18997
18997
  _context3.next = 38;
18998
- return this.rpcClient.waitForTransactionReceipt({
18998
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
18999
18999
  hash: txHash
19000
- });
19000
+ }));
19001
19001
  case 38:
19002
19002
  return _context3.abrupt("return", {
19003
19003
  txHash: txHash
@@ -19038,7 +19038,7 @@ var IPAssetClient = /*#__PURE__*/function () {
19038
19038
  * @param request.mintingFee [Optional] The fee to be paid when minting a license.
19039
19039
  * @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
19040
19040
  * @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
19041
- * @param request.txOptions [Optional] The transaction options.
19041
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19042
19042
  * @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.
19043
19043
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
19044
19044
  * @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
@@ -19093,9 +19093,9 @@ var IPAssetClient = /*#__PURE__*/function () {
19093
19093
  break;
19094
19094
  }
19095
19095
  _context4.next = 15;
19096
- return this.rpcClient.waitForTransactionReceipt({
19096
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
19097
19097
  hash: txHash
19098
- });
19098
+ }));
19099
19099
  case 15:
19100
19100
  txReceipt = _context4.sent;
19101
19101
  iPRegisteredLog = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(txReceipt)[0];
@@ -19146,7 +19146,7 @@ var IPAssetClient = /*#__PURE__*/function () {
19146
19146
  * @param request.mintingFee [Optional] The fee to be paid when minting a license.
19147
19147
  * @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
19148
19148
  * @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
19149
- * @param request.txOptions [Optional] The transaction options.
19149
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19150
19150
  * @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.
19151
19151
  * @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
19152
19152
  */
@@ -19273,9 +19273,9 @@ var IPAssetClient = /*#__PURE__*/function () {
19273
19273
  break;
19274
19274
  }
19275
19275
  _context5.next = 32;
19276
- return this.rpcClient.waitForTransactionReceipt({
19276
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
19277
19277
  hash: txHash
19278
- });
19278
+ }));
19279
19279
  case 32:
19280
19280
  txReceipt = _context5.sent;
19281
19281
  ipRegisterEvent = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(txReceipt);
@@ -19325,7 +19325,7 @@ var IPAssetClient = /*#__PURE__*/function () {
19325
19325
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
19326
19326
  * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
19327
19327
  * @param request.deadline [Optional] The deadline for the signature in milliseconds,default is 1000ms.
19328
- * @param request.txOptions [Optional] The transaction options.
19328
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19329
19329
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
19330
19330
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
19331
19331
  */
@@ -19479,9 +19479,9 @@ var IPAssetClient = /*#__PURE__*/function () {
19479
19479
  break;
19480
19480
  }
19481
19481
  _context6.next = 41;
19482
- return this.rpcClient.waitForTransactionReceipt({
19482
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
19483
19483
  hash: txHash
19484
- });
19484
+ }));
19485
19485
  case 41:
19486
19486
  receipt = _context6.sent;
19487
19487
  log = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(receipt)[0];
@@ -19523,8 +19523,9 @@ var IPAssetClient = /*#__PURE__*/function () {
19523
19523
  * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
19524
19524
  * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
19525
19525
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
19526
- * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.* @param request.recipient [Optional] The address of the recipient of the minted NFT.
19527
- * @param request.txOptions [Optional] The transaction options.
19526
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.*
19527
+ * @param request.recipient [Optional] The address of the recipient of the minted NFT.
19528
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19528
19529
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
19529
19530
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
19530
19531
  */
@@ -19601,9 +19602,9 @@ var IPAssetClient = /*#__PURE__*/function () {
19601
19602
  break;
19602
19603
  }
19603
19604
  _context7.next = 24;
19604
- return this.rpcClient.waitForTransactionReceipt({
19605
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
19605
19606
  hash: txHash
19606
- });
19607
+ }));
19607
19608
  case 24:
19608
19609
  receipt = _context7.sent;
19609
19610
  log = this.ipAssetRegistryClient.parseTxIpRegisteredEvent(receipt)[0];
@@ -19771,7 +19772,7 @@ var PermissionClient = /*#__PURE__*/function () {
19771
19772
  * @param request.to The address that can be called by the `signer` (currently only modules can be `to`).
19772
19773
  * @param request.permission The new permission level.
19773
19774
  * @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.
19774
- * @param request.txOptions [Optional] The transaction options.
19775
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19775
19776
  * @returns A Promise that resolves to an object containing the transaction hash.
19776
19777
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
19777
19778
  */
@@ -19811,9 +19812,9 @@ var PermissionClient = /*#__PURE__*/function () {
19811
19812
  break;
19812
19813
  }
19813
19814
  _context.next = 14;
19814
- return this.rpcClient.waitForTransactionReceipt({
19815
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
19815
19816
  hash: txHash
19816
- });
19817
+ }));
19817
19818
  case 14:
19818
19819
  return _context.abrupt("return", {
19819
19820
  txHash: txHash,
@@ -19850,7 +19851,7 @@ var PermissionClient = /*#__PURE__*/function () {
19850
19851
  * @param request.permission The new permission level.
19851
19852
  * @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.
19852
19853
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
19853
- * @param request.txOptions [Optional] The transaction options.
19854
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19854
19855
  * @returns A Promise that resolves to an object containing the transaction hash.
19855
19856
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
19856
19857
  */
@@ -19859,7 +19860,7 @@ var PermissionClient = /*#__PURE__*/function () {
19859
19860
  key: "createSetPermissionSignature",
19860
19861
  value: (function () {
19861
19862
  var _createSetPermissionSignature = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
19862
- var _request$txOptions3, ipId, signer, to, txOptions, func, permission, deadline, ipAccountClient, data, _yield$ipAccountClien, state, calculatedDeadline, signature, req, txHash;
19863
+ var _request$txOptions3, ipId, signer, to, txOptions, func, permission, deadline, ipAccountClient, data, _yield$ipAccountClien, state, calculatedDeadline, signature, req, _request$txOptions4, txHash;
19863
19864
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
19864
19865
  while (1) switch (_context2.prev = _context2.next) {
19865
19866
  case 0:
@@ -19917,14 +19918,14 @@ var PermissionClient = /*#__PURE__*/function () {
19917
19918
  return ipAccountClient.executeWithSig(req);
19918
19919
  case 21:
19919
19920
  txHash = _context2.sent;
19920
- if (!(txOptions !== null && txOptions !== void 0 && txOptions.waitForTransaction)) {
19921
+ if (!((_request$txOptions4 = request.txOptions) !== null && _request$txOptions4 !== void 0 && _request$txOptions4.waitForTransaction)) {
19921
19922
  _context2.next = 28;
19922
19923
  break;
19923
19924
  }
19924
19925
  _context2.next = 25;
19925
- return this.rpcClient.waitForTransactionReceipt({
19926
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, txOptions), {}, {
19926
19927
  hash: txHash
19927
- });
19928
+ }));
19928
19929
  case 25:
19929
19930
  return _context2.abrupt("return", {
19930
19931
  txHash: txHash,
@@ -19958,7 +19959,7 @@ var PermissionClient = /*#__PURE__*/function () {
19958
19959
  * @param request.ipId The IP ID that grants the permission for `signer`
19959
19960
  * @param request.signer The address of the signer receiving the permissions.
19960
19961
  * @param request.permission The new permission.
19961
- * @param request.txOptions [Optional] The transaction options.
19962
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19962
19963
  * @returns A Promise that resolves to an object containing the transaction hash
19963
19964
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
19964
19965
  */
@@ -19967,7 +19968,7 @@ var PermissionClient = /*#__PURE__*/function () {
19967
19968
  key: "setAllPermissions",
19968
19969
  value: (function () {
19969
19970
  var _setAllPermissions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
19970
- var _request$txOptions4, req, _request$txOptions5, txHash;
19971
+ var _request$txOptions5, req, _request$txOptions6, txHash;
19971
19972
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
19972
19973
  while (1) switch (_context3.prev = _context3.next) {
19973
19974
  case 0:
@@ -19980,7 +19981,7 @@ var PermissionClient = /*#__PURE__*/function () {
19980
19981
  signer: request.signer,
19981
19982
  permission: request.permission
19982
19983
  };
19983
- if (!((_request$txOptions4 = request.txOptions) !== null && _request$txOptions4 !== void 0 && _request$txOptions4.encodedTxDataOnly)) {
19984
+ if (!((_request$txOptions5 = request.txOptions) !== null && _request$txOptions5 !== void 0 && _request$txOptions5.encodedTxDataOnly)) {
19984
19985
  _context3.next = 8;
19985
19986
  break;
19986
19987
  }
@@ -19992,14 +19993,14 @@ var PermissionClient = /*#__PURE__*/function () {
19992
19993
  return this.accessControllerClient.setAllPermissions(req);
19993
19994
  case 10:
19994
19995
  txHash = _context3.sent;
19995
- if (!((_request$txOptions5 = request.txOptions) !== null && _request$txOptions5 !== void 0 && _request$txOptions5.waitForTransaction)) {
19996
+ if (!((_request$txOptions6 = request.txOptions) !== null && _request$txOptions6 !== void 0 && _request$txOptions6.waitForTransaction)) {
19996
19997
  _context3.next = 17;
19997
19998
  break;
19998
19999
  }
19999
20000
  _context3.next = 14;
20000
- return this.rpcClient.waitForTransactionReceipt({
20001
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20001
20002
  hash: txHash
20002
- });
20003
+ }));
20003
20004
  case 14:
20004
20005
  return _context3.abrupt("return", {
20005
20006
  txHash: txHash,
@@ -20037,7 +20038,7 @@ var PermissionClient = /*#__PURE__*/function () {
20037
20038
  * @param request.permissions[].permission The new permission level.
20038
20039
  * @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.
20039
20040
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
20040
- * @param request.txOptions [Optional] The transaction options.
20041
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20041
20042
  * @returns A Promise that resolves to an object containing the transaction hash
20042
20043
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
20043
20044
  */
@@ -20046,7 +20047,7 @@ var PermissionClient = /*#__PURE__*/function () {
20046
20047
  key: "setBatchPermissions",
20047
20048
  value: (function () {
20048
20049
  var _setBatchPermissions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(request) {
20049
- var _request$txOptions6, permissions, txOptions, _iterator, _step, permission, req, txHash;
20050
+ var _request$txOptions7, permissions, txOptions, _iterator, _step, permission, req, _request$txOptions8, txHash;
20050
20051
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
20051
20052
  while (1) switch (_context4.prev = _context4.next) {
20052
20053
  case 0:
@@ -20089,7 +20090,7 @@ var PermissionClient = /*#__PURE__*/function () {
20089
20090
  };
20090
20091
  })
20091
20092
  };
20092
- if (!((_request$txOptions6 = request.txOptions) !== null && _request$txOptions6 !== void 0 && _request$txOptions6.encodedTxDataOnly)) {
20093
+ if (!((_request$txOptions7 = request.txOptions) !== null && _request$txOptions7 !== void 0 && _request$txOptions7.encodedTxDataOnly)) {
20093
20094
  _context4.next = 24;
20094
20095
  break;
20095
20096
  }
@@ -20101,14 +20102,14 @@ var PermissionClient = /*#__PURE__*/function () {
20101
20102
  return this.accessControllerClient.setBatchPermissions(req);
20102
20103
  case 26:
20103
20104
  txHash = _context4.sent;
20104
- if (!(txOptions !== null && txOptions !== void 0 && txOptions.waitForTransaction)) {
20105
+ if (!((_request$txOptions8 = request.txOptions) !== null && _request$txOptions8 !== void 0 && _request$txOptions8.waitForTransaction)) {
20105
20106
  _context4.next = 33;
20106
20107
  break;
20107
20108
  }
20108
20109
  _context4.next = 30;
20109
- return this.rpcClient.waitForTransactionReceipt({
20110
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, txOptions), {}, {
20110
20111
  hash: txHash
20111
- });
20112
+ }));
20112
20113
  case 30:
20113
20114
  return _context4.abrupt("return", {
20114
20115
  txHash: txHash,
@@ -20146,7 +20147,7 @@ var PermissionClient = /*#__PURE__*/function () {
20146
20147
  * @param request.permissions[].to The address that can be called by the `signer` (currently only modules can be `to`).
20147
20148
  * @param request.permissions[].permission The new permission level.
20148
20149
  * @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.
20149
- * @param request.txOptions [Optional] The transaction options.
20150
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20150
20151
  * @returns A Promise that resolves to an object containing the transaction hash.
20151
20152
  * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
20152
20153
  */
@@ -20155,7 +20156,7 @@ var PermissionClient = /*#__PURE__*/function () {
20155
20156
  key: "createBatchPermissionSignature",
20156
20157
  value: (function () {
20157
20158
  var _createBatchPermissionSignature = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
20158
- var _request$txOptions7, permissions, deadline, ipId, txOptions, _iterator2, _step2, permission, ipAccountClient, data, _yield$ipAccountClien2, state, calculatedDeadline, signature, req, txHash;
20159
+ var _request$txOptions9, permissions, deadline, ipId, txOptions, _iterator2, _step2, permission, ipAccountClient, data, _yield$ipAccountClien2, state, calculatedDeadline, signature, req, _request$txOptions10, txHash;
20159
20160
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
20160
20161
  while (1) switch (_context5.prev = _context5.next) {
20161
20162
  case 0:
@@ -20227,7 +20228,7 @@ var PermissionClient = /*#__PURE__*/function () {
20227
20228
  deadline: calculatedDeadline,
20228
20229
  signature: signature
20229
20230
  };
20230
- if (!((_request$txOptions7 = request.txOptions) !== null && _request$txOptions7 !== void 0 && _request$txOptions7.encodedTxDataOnly)) {
20231
+ if (!((_request$txOptions9 = request.txOptions) !== null && _request$txOptions9 !== void 0 && _request$txOptions9.encodedTxDataOnly)) {
20231
20232
  _context5.next = 34;
20232
20233
  break;
20233
20234
  }
@@ -20239,14 +20240,14 @@ var PermissionClient = /*#__PURE__*/function () {
20239
20240
  return ipAccountClient.executeWithSig(req);
20240
20241
  case 36:
20241
20242
  txHash = _context5.sent;
20242
- if (!(txOptions !== null && txOptions !== void 0 && txOptions.waitForTransaction)) {
20243
+ if (!((_request$txOptions10 = request.txOptions) !== null && _request$txOptions10 !== void 0 && _request$txOptions10.waitForTransaction)) {
20243
20244
  _context5.next = 43;
20244
20245
  break;
20245
20246
  }
20246
20247
  _context5.next = 40;
20247
- return this.rpcClient.waitForTransactionReceipt({
20248
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, txOptions), {}, {
20248
20249
  hash: txHash
20249
- });
20250
+ }));
20250
20251
  case 40:
20251
20252
  return _context5.abrupt("return", {
20252
20253
  txHash: txHash,
@@ -20324,7 +20325,7 @@ var LicenseClient = /*#__PURE__*/function () {
20324
20325
  /**
20325
20326
  * Convenient function to register a PIL non commercial social remix license to the registry
20326
20327
  * @param request - [Optional] The request object that contains all data needed to register a PIL non commercial social remix license.
20327
- * @param request.txOptions [Optional] The transaction options.
20328
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20328
20329
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
20329
20330
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
20330
20331
  */
@@ -20371,9 +20372,9 @@ var LicenseClient = /*#__PURE__*/function () {
20371
20372
  break;
20372
20373
  }
20373
20374
  _context.next = 17;
20374
- return this.rpcClient.waitForTransactionReceipt({
20375
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20375
20376
  hash: txHash
20376
- });
20377
+ }));
20377
20378
  case 17:
20378
20379
  txReceipt = _context.sent;
20379
20380
  targetLogs = this.licenseTemplateClient.parseTxLicenseTermsRegisteredEvent(txReceipt);
@@ -20408,7 +20409,7 @@ var LicenseClient = /*#__PURE__*/function () {
20408
20409
  * @param request - The request object that contains all data needed to register a PIL commercial use license.
20409
20410
  * @param request.mintingFee The fee to be paid when minting a license.
20410
20411
  * @param request.currency The ERC20 token to be used to pay the minting fee and the token must be registered in story protocol.
20411
- * @param request.txOptions [Optional] The transaction options.
20412
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20412
20413
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
20413
20414
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
20414
20415
  */
@@ -20460,9 +20461,9 @@ var LicenseClient = /*#__PURE__*/function () {
20460
20461
  break;
20461
20462
  }
20462
20463
  _context2.next = 17;
20463
- return this.rpcClient.waitForTransactionReceipt({
20464
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20464
20465
  hash: txHash
20465
- });
20466
+ }));
20466
20467
  case 17:
20467
20468
  txReceipt = _context2.sent;
20468
20469
  targetLogs = this.licenseTemplateClient.parseTxLicenseTermsRegisteredEvent(txReceipt);
@@ -20498,7 +20499,7 @@ var LicenseClient = /*#__PURE__*/function () {
20498
20499
  * @param request.mintingFee The fee to be paid when minting a license.
20499
20500
  * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor.
20500
20501
  * @param request.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
20501
- * @param request.txOptions [Optional] The transaction options.
20502
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20502
20503
  * @returns A Promise that resolves to an object containing the optional transaction hash and optional license terms Id.
20503
20504
  * @emits LicenseTermsRegistered (licenseTermsId, licenseTemplate, licenseTerms);
20504
20505
  */
@@ -20551,9 +20552,9 @@ var LicenseClient = /*#__PURE__*/function () {
20551
20552
  break;
20552
20553
  }
20553
20554
  _context3.next = 17;
20554
- return this.rpcClient.waitForTransactionReceipt({
20555
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20555
20556
  hash: txHash
20556
- });
20557
+ }));
20557
20558
  case 17:
20558
20559
  txReceipt = _context3.sent;
20559
20560
  targetLogs = this.licenseTemplateClient.parseTxLicenseTermsRegisteredEvent(txReceipt);
@@ -20589,7 +20590,7 @@ var LicenseClient = /*#__PURE__*/function () {
20589
20590
  * @param request.ipId The address of the IP to which the license terms are attached.
20590
20591
  * @param request.licenseTemplate The address of the license template.
20591
20592
  * @param request.licenseTermsId The ID of the license terms.
20592
- * @param request.txOptions [Optional] The transaction options.
20593
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20593
20594
  * @returns A Promise that resolves to an object containing the transaction hash.
20594
20595
  */
20595
20596
  )
@@ -20666,9 +20667,9 @@ var LicenseClient = /*#__PURE__*/function () {
20666
20667
  break;
20667
20668
  }
20668
20669
  _context4.next = 28;
20669
- return this.rpcClient.waitForTransactionReceipt({
20670
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20670
20671
  hash: txHash
20671
- });
20672
+ }));
20672
20673
  case 28:
20673
20674
  return _context4.abrupt("return", {
20674
20675
  txHash: txHash,
@@ -20714,7 +20715,7 @@ var LicenseClient = /*#__PURE__*/function () {
20714
20715
  * @param request.licenseTermsId The ID of the license terms within the license template.
20715
20716
  * @param request.amount The amount of license tokens to mint.
20716
20717
  * @param request.receiver The address of the receiver.
20717
- * @param request.txOptions [Optional] The transaction options.
20718
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20718
20719
  * @returns A Promise that resolves to an object containing the transaction hash and optional license token IDs if waitForTxn is set to true.
20719
20720
  * @emits LicenseTokensMinted (msg.sender, licensorIpId, licenseTemplate, licenseTermsId, amount, receiver, startLicenseTokenId);
20720
20721
  */
@@ -20793,9 +20794,9 @@ var LicenseClient = /*#__PURE__*/function () {
20793
20794
  break;
20794
20795
  }
20795
20796
  _context5.next = 29;
20796
- return this.rpcClient.waitForTransactionReceipt({
20797
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20797
20798
  hash: txHash
20798
- });
20799
+ }));
20799
20800
  case 29:
20800
20801
  txReceipt = _context5.sent;
20801
20802
  targetLogs = this.licensingModuleClient.parseTxLicenseTokensMintedEvent(txReceipt);
@@ -20909,7 +20910,7 @@ var DisputeClient = /*#__PURE__*/function () {
20909
20910
  * @param request.linkToDisputeEvidence - The link to the dispute evidence.
20910
20911
  * @param request.targetTag - The target tag of the dispute.
20911
20912
  * @param request.calldata - Optional calldata to initialize the policy.
20912
- * @param request.txOptions - Optional transaction options.
20913
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20913
20914
  * @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
20914
20915
  * @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
20915
20916
  * @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
@@ -20951,9 +20952,9 @@ var DisputeClient = /*#__PURE__*/function () {
20951
20952
  break;
20952
20953
  }
20953
20954
  _context.next = 12;
20954
- return this.rpcClient.waitForTransactionReceipt({
20955
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
20955
20956
  hash: txHash
20956
- });
20957
+ }));
20957
20958
  case 12:
20958
20959
  txReceipt = _context.sent;
20959
20960
  targetLogs = this.disputeModuleClient.parseTxDisputeRaisedEvent(txReceipt);
@@ -20988,6 +20989,7 @@ var DisputeClient = /*#__PURE__*/function () {
20988
20989
  * @param request - The request object containing details to cancel the dispute.
20989
20990
  * @param request.disputeId The ID of the dispute to be cancelled.
20990
20991
  * @param request.calldata Optional additional data used in the cancellation process.
20992
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
20991
20993
  * @returns A Promise that resolves to a CancelDisputeResponse containing the transaction hash.
20992
20994
  * @throws NotInDisputeState, if the currentTag of the Dispute is not being disputed
20993
20995
  * @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
@@ -21026,9 +21028,9 @@ var DisputeClient = /*#__PURE__*/function () {
21026
21028
  break;
21027
21029
  }
21028
21030
  _context2.next = 12;
21029
- return this.rpcClient.waitForTransactionReceipt({
21031
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21030
21032
  hash: txHash
21031
- });
21033
+ }));
21032
21034
  case 12:
21033
21035
  return _context2.abrupt("return", {
21034
21036
  txHash: txHash
@@ -21056,6 +21058,7 @@ var DisputeClient = /*#__PURE__*/function () {
21056
21058
  * @param request - The request object containing details to resolve the dispute.
21057
21059
  * @param request.disputeId The ID of the dispute to be resolved.
21058
21060
  * @param request.data The data to resolve the dispute.
21061
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21059
21062
  * @returns A Promise that resolves to a ResolveDisputeResponse.
21060
21063
  * @throws NotAbleToResolve, if currentTag is still in dispute (i.e still needs a judgement to be set)
21061
21064
  * @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
@@ -21092,9 +21095,9 @@ var DisputeClient = /*#__PURE__*/function () {
21092
21095
  break;
21093
21096
  }
21094
21097
  _context3.next = 12;
21095
- return this.rpcClient.waitForTransactionReceipt({
21098
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21096
21099
  hash: txHash
21097
- });
21100
+ }));
21098
21101
  case 12:
21099
21102
  return _context3.abrupt("return", {
21100
21103
  txHash: txHash
@@ -21134,6 +21137,7 @@ var IPAccountClient = /*#__PURE__*/function () {
21134
21137
  * @param request.value The amount of Ether to send.
21135
21138
  * @param request.accountAddress The ipId to send.
21136
21139
  * @param request.data The data to send along with the transaction.
21140
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21137
21141
  * @returns Tx hash for the transaction.
21138
21142
  */
21139
21143
  return _createClass(IPAccountClient, [{
@@ -21172,9 +21176,9 @@ var IPAccountClient = /*#__PURE__*/function () {
21172
21176
  break;
21173
21177
  }
21174
21178
  _context.next = 13;
21175
- return this.rpcClient.waitForTransactionReceipt({
21179
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21176
21180
  hash: txHash
21177
- });
21181
+ }));
21178
21182
  case 13:
21179
21183
  return _context.abrupt("return", {
21180
21184
  txHash: txHash
@@ -21206,6 +21210,7 @@ var IPAccountClient = /*#__PURE__*/function () {
21206
21210
  * @param request.signer The signer of the transaction.
21207
21211
  * @param request.deadline The deadline of the transaction signature.
21208
21212
  * @param request.signature The signature of the transaction, EIP-712 encoded.
21213
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21209
21214
  * @returns Tx hash for the transaction.
21210
21215
  */
21211
21216
  )
@@ -21244,9 +21249,9 @@ var IPAccountClient = /*#__PURE__*/function () {
21244
21249
  break;
21245
21250
  }
21246
21251
  _context2.next = 13;
21247
- return this.rpcClient.waitForTransactionReceipt({
21252
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21248
21253
  hash: txHash
21249
- });
21254
+ }));
21250
21255
  case 13:
21251
21256
  return _context2.abrupt("return", {
21252
21257
  txHash: txHash
@@ -21319,7 +21324,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
21319
21324
  * @param request - The request object that contains all data needed to collect royalty tokens.
21320
21325
  * @param request.parentIpId The ip id of the ancestor to whom the royalty tokens belong to.
21321
21326
  * @param request.royaltyVaultIpId The id of the royalty vault.
21322
- * @param request.txOptions [Optional] The transaction options.
21327
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21323
21328
  * @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.
21324
21329
  * @emits RoyaltyTokensCollected (ancestorIpId, royaltyTokensCollected)
21325
21330
  */
@@ -21369,9 +21374,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
21369
21374
  break;
21370
21375
  }
21371
21376
  _context.next = 21;
21372
- return this.rpcClient.waitForTransactionReceipt({
21377
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21373
21378
  hash: txHash
21374
- });
21379
+ }));
21375
21380
  case 21:
21376
21381
  txReceipt = _context.sent;
21377
21382
  targetLogs = ipRoyaltyVault.parseTxRoyaltyTokensCollectedEvent(txReceipt);
@@ -21408,7 +21413,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
21408
21413
  * @param request.payerIpId The ID of the IP asset that pays the royalties.
21409
21414
  * @param request.token The token to use to pay the royalties.
21410
21415
  * @param request.amount The amount to pay.
21411
- * @param request.txOptions [Optional] The transaction options.
21416
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21412
21417
  * @returns A Promise that resolves to an object containing the transaction hash.
21413
21418
  */
21414
21419
  )
@@ -21468,9 +21473,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
21468
21473
  break;
21469
21474
  }
21470
21475
  _context2.next = 22;
21471
- return this.rpcClient.waitForTransactionReceipt({
21476
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21472
21477
  hash: txHash
21473
- });
21478
+ }));
21474
21479
  case 22:
21475
21480
  return _context2.abrupt("return", {
21476
21481
  txHash: txHash
@@ -21504,7 +21509,6 @@ var RoyaltyClient = /*#__PURE__*/function () {
21504
21509
  * @param request.account The address of the token holder.
21505
21510
  * @param request.snapshotId The snapshot id.
21506
21511
  * @param request.token The revenue token to claim.
21507
- * @param request.txOptions [Optional] The transaction options.
21508
21512
  * @returns A Promise that contains the amount of revenue token claimable
21509
21513
  */
21510
21514
  )
@@ -21552,7 +21556,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
21552
21556
  * @param request.royaltyVaultIpId The id of the royalty vault.
21553
21557
  * @param request.token The revenue token to claim.
21554
21558
  * @param request.account [Optional] The ipId to send.
21555
- * @param request.txOptions [Optional] The transaction options.
21559
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21556
21560
  * @returns A Promise that resolves to an object containing the transaction hash and optional claimableToken if waitForTxn is set to true.
21557
21561
  * @emits RevenueTokenClaimed (claimer, token, amount).
21558
21562
  */
@@ -21626,9 +21630,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
21626
21630
  break;
21627
21631
  }
21628
21632
  _context4.next = 26;
21629
- return this.rpcClient.waitForTransactionReceipt({
21633
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21630
21634
  hash: txHash
21631
- });
21635
+ }));
21632
21636
  case 26:
21633
21637
  txReceipt = _context4.sent;
21634
21638
  targetLogs = ipRoyaltyVault.parseTxRevenueTokenClaimedEvent(txReceipt);
@@ -21662,7 +21666,7 @@ var RoyaltyClient = /*#__PURE__*/function () {
21662
21666
  * Snapshots the claimable revenue and royalty token amounts.
21663
21667
  * @param request - The request object that contains all data needed to snapshot.
21664
21668
  * @param request.royaltyVaultIpId The id of the royalty vault.
21665
- * @param request.txOptions [Optional] The transaction options.
21669
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21666
21670
  * @returns A Promise that resolves to an object containing the transaction hash and optional snapshotId if waitForTxn is set to true.
21667
21671
  * @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
21668
21672
  */
@@ -21698,9 +21702,9 @@ var RoyaltyClient = /*#__PURE__*/function () {
21698
21702
  break;
21699
21703
  }
21700
21704
  _context5.next = 15;
21701
- return this.rpcClient.waitForTransactionReceipt({
21705
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21702
21706
  hash: txHash
21703
- });
21707
+ }));
21704
21708
  case 15:
21705
21709
  txReceipt = _context5.sent;
21706
21710
  targetLogs = ipRoyaltyVault.parseTxSnapshotCompletedEvent(txReceipt);
@@ -21800,7 +21804,7 @@ var NftClient = /*#__PURE__*/function () {
21800
21804
  * @param request.mintFee - The cost to mint a token.
21801
21805
  * @param request.mintFeeToken - The token to mint.
21802
21806
  * @param request.owner - The owner of the collection.
21803
- * @param request.txOptions - Optional transaction options.
21807
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
21804
21808
  * @returns A Promise that resolves to a CreateNFTCollectionResponse containing the transaction hash and collection address.
21805
21809
  * @emits CollectionCreated (nftContract);
21806
21810
  */
@@ -21844,9 +21848,9 @@ var NftClient = /*#__PURE__*/function () {
21844
21848
  break;
21845
21849
  }
21846
21850
  _context.next = 14;
21847
- return this.rpcClient.waitForTransactionReceipt({
21851
+ return this.rpcClient.waitForTransactionReceipt(_objectSpread2(_objectSpread2({}, request.txOptions), {}, {
21848
21852
  hash: txHash
21849
- });
21853
+ }));
21850
21854
  case 14:
21851
21855
  txReceipt = _context.sent;
21852
21856
  targetLogs = this.spgClient.parseTxCollectionCreatedEvent(txReceipt);