@story-protocol/core-sdk 0.0.1-beta-rc.7 → 0.0.1-beta-rc.9

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -41,7 +41,7 @@ The SDK supports using `viem` for initiating SDK client. Create a typescript fil
41
41
  ```typescript index.ts
42
42
  import { privateKeyToAccount } from "viem/accounts";
43
43
 
44
- const PRIVATE_KEY = process.env.WALLET_PRIVATE_KEY || "0x";
44
+ const WALLET_PRIVATE_KEY = process.env.WALLET_PRIVATE_KEY || "0x";
45
45
  const account = privateKeyToAccount(WALLET_PRIVATE_KEY as `0x${string}`);
46
46
  ```
47
47
 
@@ -846,7 +846,6 @@ export declare class IPAssetClient {
846
846
  * @param request.ipName [Optional] The name assigned to the new IP.
847
847
  * @param request.contentHash [Optional] The content hash of the IP being registered.
848
848
  * @param request.uri [Optional] An external URI to link to the IP.
849
- * @param request.minRoyalty [Optional] The minimum royalty percentage that the IP owner will receive.
850
849
  * @param request.txOptions [Optional] The transaction options.
851
850
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
852
851
  * @emits RootIPRegistered (msg.sender, ipId, policyId)
@@ -1 +1 @@
1
- {"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAc,MAAM,MAAM,CAAC;AAK9D,OAAO,EAAE,cAAc,EAAE,+BAA4B;AACrD,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACvB,sCAAmC;AAMpC,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IACtC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAyB;gBAEzC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc;IAMtF;;;;;;;;;;;OAWG;IACU,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA+CtE,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CA8C7F"}
@@ -284,15 +284,6 @@ export declare class PolicyClient {
284
284
  readonly name: "LicensingModuleAware__CallerNotLicensingModule";
285
285
  readonly type: "error";
286
286
  } | {
287
- /**
288
- * Convenient function to register a PIL social remix policy to the registry
289
- * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
290
- * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
291
- * @param request.territories List of territories where the license is valid. If empty, global.
292
- * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
293
- * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
294
- * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
295
- */
296
287
  readonly inputs: readonly [];
297
288
  readonly name: "LicensingModule__CallerNotLicenseRegistry";
298
289
  readonly type: "error";
@@ -433,7 +424,18 @@ export declare class PolicyClient {
433
424
  readonly name: "MetadataProvider__HashInvalid";
434
425
  readonly type: "error";
435
426
  } | {
436
- readonly inputs: readonly [];
427
+ readonly inputs: readonly []; /**
428
+ * Convenient function to register a PIL social remix policy to the registry
429
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
430
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
431
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
432
+ * @param mintingFee Fee to be paid when minting a license
433
+ * @param mintingFeeToken Token to be used to pay the minting fee
434
+ * @param request.territories List of territories where the license is valid. If empty, global.
435
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
436
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
437
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
438
+ */
437
439
  readonly name: "MetadataProvider__IPAssetOwnerInvalid";
438
440
  readonly type: "error";
439
441
  } | {
@@ -999,15 +1001,6 @@ export declare class PolicyClient {
999
1001
  readonly name: "LicensingModuleAware__CallerNotLicensingModule";
1000
1002
  readonly type: "error";
1001
1003
  } | {
1002
- /**
1003
- * Convenient function to register a PIL social remix policy to the registry
1004
- * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
1005
- * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
1006
- * @param request.territories List of territories where the license is valid. If empty, global.
1007
- * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
1008
- * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
1009
- * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
1010
- */
1011
1004
  readonly inputs: readonly [];
1012
1005
  readonly name: "LicensingModule__CallerNotLicenseRegistry";
1013
1006
  readonly type: "error";
@@ -1148,7 +1141,18 @@ export declare class PolicyClient {
1148
1141
  readonly name: "MetadataProvider__HashInvalid";
1149
1142
  readonly type: "error";
1150
1143
  } | {
1151
- readonly inputs: readonly [];
1144
+ readonly inputs: readonly []; /**
1145
+ * Convenient function to register a PIL social remix policy to the registry
1146
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
1147
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
1148
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
1149
+ * @param mintingFee Fee to be paid when minting a license
1150
+ * @param mintingFeeToken Token to be used to pay the minting fee
1151
+ * @param request.territories List of territories where the license is valid. If empty, global.
1152
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
1153
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
1154
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
1155
+ */
1152
1156
  readonly name: "MetadataProvider__IPAssetOwnerInvalid";
1153
1157
  readonly type: "error";
1154
1158
  } | {
@@ -1902,15 +1906,6 @@ export declare class PolicyClient {
1902
1906
  readonly name: "LicensingModuleAware__CallerNotLicensingModule";
1903
1907
  readonly type: "error";
1904
1908
  } | {
1905
- /**
1906
- * Convenient function to register a PIL social remix policy to the registry
1907
- * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
1908
- * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
1909
- * @param request.territories List of territories where the license is valid. If empty, global.
1910
- * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
1911
- * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
1912
- * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
1913
- */
1914
1909
  readonly inputs: readonly [];
1915
1910
  readonly name: "LicensingModule__CallerNotLicenseRegistry";
1916
1911
  readonly type: "error";
@@ -2051,7 +2046,18 @@ export declare class PolicyClient {
2051
2046
  readonly name: "MetadataProvider__HashInvalid";
2052
2047
  readonly type: "error";
2053
2048
  } | {
2054
- readonly inputs: readonly [];
2049
+ readonly inputs: readonly []; /**
2050
+ * Convenient function to register a PIL social remix policy to the registry
2051
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
2052
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
2053
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
2054
+ * @param mintingFee Fee to be paid when minting a license
2055
+ * @param mintingFeeToken Token to be used to pay the minting fee
2056
+ * @param request.territories List of territories where the license is valid. If empty, global.
2057
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
2058
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
2059
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
2060
+ */
2055
2061
  readonly name: "MetadataProvider__IPAssetOwnerInvalid";
2056
2062
  readonly type: "error";
2057
2063
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"../../../../src/resources","sources":["policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAA+C,MAAM,MAAM,CAAC;AAU/F,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,sCAAsC,EACtC,oBAAoB,EACpB,qBAAqB,EAEtB,qCAAkC;AAEnC,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IAClC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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23
  };
25
24
  export type RegisterDerivativeIpResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1915,28 +1915,28 @@ var ErrorsABI = [{
1915
1915
  }];
1916
1916
 
1917
1917
  var sepolia = {
1918
- AccessController: "0x8eB53745795E2107E3568c647A77a7294C89Ef31",
1919
- AncestorsVaultLAP: "0x7FD793C4914da052022524BA17508976733B09AA",
1920
- ArbitrationPolicySP: "0xFfE389378AFa13D91485182D72700d226Cb0db16",
1921
- DisputeModule: "0xe94d7198EF5657C15be755aC3D9cb386F2Db50Bd",
1922
- Governance: "0x14Ac96796aadef6053e993aBDc3C1e7830ede901",
1923
- IPAccountImpl: "0xec3F947902fac41e59aa25669Fe39997BFA1357c",
1924
- IPAccountRegistry: "0xfe3ef84acECAd1F91583CB09E62953669C1c2bb5",
1925
- IPAssetRegistry: "0xA3a77482C64e91d4C89114D83Bd51457132ea947",
1926
- IPAssetRenderer: "0xF36c279a61b32D39e5Bc25e317f779362Be07E1d",
1927
- IPMetadataProvider: "0x40D52438C3852A872c71eB3a8b81d6274C5b6274",
1928
- IPResolver: "0x8BcE3019dBe94402A0276A2630373CDDB67fe271",
1929
- LicenseRegistry: "0x176d33Cc80ed3390256033bbf7Fd651c9C5A364F",
1930
- LicensingModule: "0x9CDDD88Dd34429a0F39eaDf91a56D1bf0533E72B",
1931
- MockERC20: "0x1219A0E87e617E6560104fA11cfd4f01FeB47362",
1932
- MockERC721: "0x9d790FF5B6A7469f32f18E677E15D48b86C6839b",
1933
- MockTokenGatedHook: "0x25018B7521E7607A7101302401bE81eDCA2E9730",
1934
- ModuleRegistry: "0x6E09516f10a4094b9B9A8C2b7Aa611A2D7827d3F",
1935
- PILPolicyFrameworkManager: "0x50c3bCAA67D4eC3f285E4328451315Ab0D9e539f",
1936
- RegistrationModule: "0x8b3f6b736b520F69c37a575293D3c1ff6383D495",
1937
- RoyaltyModule: "0x833774B42357939B4c96e1bCF5cE26e815AE3Ae6",
1938
- RoyaltyPolicyLAP: "0xda483fd6e6ecA1C2D913802F9a6B57a83b73029f",
1939
- TokenWithdrawalModule: "0x01469702E71F5C8199A15a97e8147D002C60a0B9"
1918
+ AccessController: "0xad64a4b2e18FF7D2f97aF083E7b193d7Dd141735",
1919
+ AncestorsVaultLAP: "0x1db575D163685F4b825aA2b0972B62CB6E7Ac2Db",
1920
+ ArbitrationPolicySP: "0x532BC697eFFd12Eb16C913b0df04ebEA87dea309",
1921
+ DisputeModule: "0x6157B19CBc151af2b36e0a2581001d32a22b2661",
1922
+ Governance: "0xc5Cdbb3359143C2449D03342D2F13F2F0e58c1b8",
1923
+ IPAccountImpl: "0x79792DccC6C58C303510fc1F7649e481C431aFb1",
1924
+ IPAccountRegistry: "0xBD2780F291588C8bDDf7F5874988fA9d3179d560",
1925
+ IPAssetRegistry: "0x292639452A975630802C17c9267169D93BD5a793",
1926
+ IPAssetRenderer: "0x1Ce95B7b333d71C00C3334a96713440d5A5A26dD",
1927
+ IPMetadataProvider: "0x31c65C12A6A3889cd08A055914931E2Fbe773dD6",
1928
+ IPResolver: "0x3809f4128B0B33AFb17576edafD7D4F4E2ABE933",
1929
+ LicenseRegistry: "0xc2BC7a2d5784768BDEd98436f2522A4931e2FBb4",
1930
+ LicensingModule: "0x950d766A1a0afDc33c3e653C861A8765cb42DbdC",
1931
+ MockERC20: "0x857308523a01B430cB112400976B9FC4A6429D55",
1932
+ MockERC721: "0x16d50f333B264b153B7BF1DD9fe65A2707B3281b",
1933
+ MockTokenGatedHook: "0x28C32a4B5B3E186d7f658C051d3Bb4a95243209a",
1934
+ ModuleRegistry: "0x5Aac3177F496F503Ac724A0D0A697f6ba9dA2C27",
1935
+ PILPolicyFrameworkManager: "0xeAABf2b80B7e069EE449B5629590A1cc0F9bC9C2",
1936
+ RegistrationModule: "0x613128e88b568768764824f898C8135efED97fA6",
1937
+ RoyaltyModule: "0xA6bEf9CC650A16939566c1da5d5088f3F028a865",
1938
+ RoyaltyPolicyLAP: "0x16eF58e959522727588921A92e9084d36E5d3855",
1939
+ TokenWithdrawalModule: "0x66738a5722e9Cd91B694bA39146CFEcE95457F04"
1940
1940
  };
1941
1941
 
1942
1942
  var IPAccountABI = [].concat(_toConsumableArray(IPAccountImplABI), _toConsumableArray(ErrorsABI));
@@ -2032,7 +2032,7 @@ function waitTxAndFilterLog(_x, _x2, _x3) {
2032
2032
  }
2033
2033
  function _waitTxAndFilterLog() {
2034
2034
  _waitTxAndFilterLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(client, txHash, params) {
2035
- var txReceipt, _iterator, _step, log;
2035
+ var txReceipt, targetLogs, _iterator, _step, log, currentLog;
2036
2036
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2037
2037
  while (1) switch (_context.prev = _context.next) {
2038
2038
  case 0:
@@ -2045,47 +2045,63 @@ function _waitTxAndFilterLog() {
2045
2045
  });
2046
2046
  case 2:
2047
2047
  txReceipt = _context.sent;
2048
+ targetLogs = [];
2048
2049
  _iterator = _createForOfIteratorHelper(txReceipt.logs);
2049
- _context.prev = 4;
2050
+ _context.prev = 5;
2050
2051
  _iterator.s();
2051
- case 6:
2052
+ case 7:
2052
2053
  if ((_step = _iterator.n()).done) {
2053
- _context.next = 17;
2054
+ _context.next = 21;
2054
2055
  break;
2055
2056
  }
2056
2057
  log = _step.value;
2057
- _context.prev = 8;
2058
- return _context.abrupt("return", viem.decodeEventLog({
2058
+ _context.prev = 9;
2059
+ if (!(params.from && log.address !== params.from.toLowerCase())) {
2060
+ _context.next = 12;
2061
+ break;
2062
+ }
2063
+ return _context.abrupt("continue", 19);
2064
+ case 12:
2065
+ currentLog = viem.decodeEventLog({
2059
2066
  abi: params.abi,
2060
2067
  eventName: params.eventName,
2061
2068
  data: log.data,
2062
2069
  topics: log.topics
2063
- }));
2064
- case 12:
2065
- _context.prev = 12;
2066
- _context.t0 = _context["catch"](8);
2067
- return _context.abrupt("continue", 15);
2068
- case 15:
2069
- _context.next = 6;
2070
- break;
2071
- case 17:
2072
- _context.next = 22;
2070
+ });
2071
+ targetLogs.push(currentLog);
2072
+ _context.next = 19;
2073
2073
  break;
2074
+ case 16:
2075
+ _context.prev = 16;
2076
+ _context.t0 = _context["catch"](9);
2077
+ return _context.abrupt("continue", 19);
2074
2078
  case 19:
2075
- _context.prev = 19;
2076
- _context.t1 = _context["catch"](4);
2079
+ _context.next = 7;
2080
+ break;
2081
+ case 21:
2082
+ _context.next = 26;
2083
+ break;
2084
+ case 23:
2085
+ _context.prev = 23;
2086
+ _context.t1 = _context["catch"](5);
2077
2087
  _iterator.e(_context.t1);
2078
- case 22:
2079
- _context.prev = 22;
2088
+ case 26:
2089
+ _context.prev = 26;
2080
2090
  _iterator.f();
2081
- return _context.finish(22);
2082
- case 25:
2091
+ return _context.finish(26);
2092
+ case 29:
2093
+ if (!(targetLogs.length === 0)) {
2094
+ _context.next = 31;
2095
+ break;
2096
+ }
2083
2097
  throw new Error("not found event ".concat(params.eventName, " in target transaction"));
2084
- case 26:
2098
+ case 31:
2099
+ return _context.abrupt("return", targetLogs);
2100
+ case 32:
2085
2101
  case "end":
2086
2102
  return _context.stop();
2087
2103
  }
2088
- }, _callee, null, [[4, 19, 22, 25], [8, 12]]);
2104
+ }, _callee, null, [[5, 23, 26, 29], [9, 16]]);
2089
2105
  }));
2090
2106
  return _waitTxAndFilterLog.apply(this, arguments);
2091
2107
  }
@@ -2239,7 +2255,7 @@ var IPAssetClient = /*#__PURE__*/function () {
2239
2255
  key: "registerRootIp",
2240
2256
  value: function () {
2241
2257
  var _registerRootIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2242
- var _request$txOptions, ipId, _yield$this$rpcClient, call, txHash, targetLog;
2258
+ var _request$txOptions, ipId, _yield$this$rpcClient, call, txHash, targetLogs;
2243
2259
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2244
2260
  while (1) switch (_context.prev = _context.next) {
2245
2261
  case 0:
@@ -2280,10 +2296,10 @@ var IPAssetClient = /*#__PURE__*/function () {
2280
2296
  eventName: "IPRegistered"
2281
2297
  }));
2282
2298
  case 16:
2283
- targetLog = _context.sent;
2299
+ targetLogs = _context.sent;
2284
2300
  return _context.abrupt("return", {
2285
2301
  txHash: txHash,
2286
- ipId: targetLog.args.ipId
2302
+ ipId: targetLogs[0].args.ipId
2287
2303
  });
2288
2304
  case 20:
2289
2305
  return _context.abrupt("return", {
@@ -2317,7 +2333,6 @@ var IPAssetClient = /*#__PURE__*/function () {
2317
2333
  * @param request.ipName [Optional] The name assigned to the new IP.
2318
2334
  * @param request.contentHash [Optional] The content hash of the IP being registered.
2319
2335
  * @param request.uri [Optional] An external URI to link to the IP.
2320
- * @param request.minRoyalty [Optional] The minimum royalty percentage that the IP owner will receive.
2321
2336
  * @param request.txOptions [Optional] The transaction options.
2322
2337
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
2323
2338
  * @emits RootIPRegistered (msg.sender, ipId, policyId)
@@ -2326,7 +2341,7 @@ var IPAssetClient = /*#__PURE__*/function () {
2326
2341
  key: "registerDerivativeIp",
2327
2342
  value: function () {
2328
2343
  var _registerDerivativeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
2329
- var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLog;
2344
+ var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLogs;
2330
2345
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2331
2346
  while (1) switch (_context2.prev = _context2.next) {
2332
2347
  case 0:
@@ -2375,10 +2390,10 @@ var IPAssetClient = /*#__PURE__*/function () {
2375
2390
  eventName: "IPRegistered"
2376
2391
  }));
2377
2392
  case 21:
2378
- targetLog = _context2.sent;
2393
+ targetLogs = _context2.sent;
2379
2394
  return _context2.abrupt("return", {
2380
2395
  txHash: txHash,
2381
- ipId: targetLog.args.ipId
2396
+ ipId: targetLogs[0].args.ipId
2382
2397
  });
2383
2398
  case 25:
2384
2399
  return _context2.abrupt("return", {
@@ -2574,7 +2589,7 @@ var LicenseClient = /*#__PURE__*/function () {
2574
2589
  key: "mintLicense",
2575
2590
  value: function () {
2576
2591
  var _mintLicense = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2577
- var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLog;
2592
+ var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLogs;
2578
2593
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2579
2594
  while (1) switch (_context.prev = _context.next) {
2580
2595
  case 0:
@@ -2617,13 +2632,14 @@ var LicenseClient = /*#__PURE__*/function () {
2617
2632
  }
2618
2633
  _context.next = 16;
2619
2634
  return waitTxAndFilterLog(this.rpcClient, txHash, _objectSpread2(_objectSpread2({}, this.licenseRegistryConfig), {}, {
2620
- eventName: "TransferSingle"
2635
+ eventName: "TransferSingle",
2636
+ from: this.licenseRegistryConfig.address
2621
2637
  }));
2622
2638
  case 16:
2623
- targetLog = _context.sent;
2639
+ targetLogs = _context.sent;
2624
2640
  return _context.abrupt("return", {
2625
2641
  txHash: txHash,
2626
- licenseId: targetLog.args.id.toString()
2642
+ licenseId: targetLogs[0].args.id.toString()
2627
2643
  });
2628
2644
  case 20:
2629
2645
  return _context.abrupt("return", {
@@ -2758,7 +2774,7 @@ var PolicyClient = /*#__PURE__*/function () {
2758
2774
  key: "registerPILPolicy",
2759
2775
  value: function () {
2760
2776
  var _registerPILPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2761
- var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLog;
2777
+ var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLogs;
2762
2778
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2763
2779
  while (1) switch (_context.prev = _context.next) {
2764
2780
  case 0:
@@ -2836,10 +2852,10 @@ var PolicyClient = /*#__PURE__*/function () {
2836
2852
  eventName: "PolicyRegistered"
2837
2853
  }));
2838
2854
  case 17:
2839
- targetLog = _context.sent;
2855
+ targetLogs = _context.sent;
2840
2856
  return _context.abrupt("return", {
2841
2857
  txHash: txHash,
2842
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
2858
+ policyId: targetLogs[0].args.policyId.toString()
2843
2859
  });
2844
2860
  case 21:
2845
2861
  return _context.abrupt("return", {
@@ -2957,7 +2973,7 @@ var PolicyClient = /*#__PURE__*/function () {
2957
2973
  targetLog = _context2.sent;
2958
2974
  return _context2.abrupt("return", {
2959
2975
  txHash: txHash,
2960
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
2976
+ policyId: targetLog[0].args.policyId.toString()
2961
2977
  });
2962
2978
  case 21:
2963
2979
  return _context2.abrupt("return", {
@@ -2997,7 +3013,7 @@ var PolicyClient = /*#__PURE__*/function () {
2997
3013
  key: "registerPILCommercialUsePolicy",
2998
3014
  value: function () {
2999
3015
  var _registerPILCommercialUsePolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
3000
- var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLog;
3016
+ var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLogs;
3001
3017
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3002
3018
  while (1) switch (_context3.prev = _context3.next) {
3003
3019
  case 0:
@@ -3075,10 +3091,10 @@ var PolicyClient = /*#__PURE__*/function () {
3075
3091
  eventName: "PolicyRegistered"
3076
3092
  }));
3077
3093
  case 17:
3078
- targetLog = _context3.sent;
3094
+ targetLogs = _context3.sent;
3079
3095
  return _context3.abrupt("return", {
3080
3096
  txHash: txHash,
3081
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
3097
+ policyId: targetLogs[0].args.policyId.toString()
3082
3098
  });
3083
3099
  case 21:
3084
3100
  return _context3.abrupt("return", {
@@ -3157,7 +3173,7 @@ var PolicyClient = /*#__PURE__*/function () {
3157
3173
  key: "addPolicyToIp",
3158
3174
  value: function () {
3159
3175
  var _addPolicyToIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
3160
- var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLog;
3176
+ var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLogs;
3161
3177
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3162
3178
  while (1) switch (_context5.prev = _context5.next) {
3163
3179
  case 0:
@@ -3192,10 +3208,10 @@ var PolicyClient = /*#__PURE__*/function () {
3192
3208
  eventName: "PolicyAddedToIpId"
3193
3209
  }));
3194
3210
  case 12:
3195
- targetLog = _context5.sent;
3211
+ targetLogs = _context5.sent;
3196
3212
  return _context5.abrupt("return", {
3197
3213
  txHash: txHash,
3198
- index: targetLog.args.index.toString()
3214
+ index: targetLogs[0].args.index.toString()
3199
3215
  });
3200
3216
  case 16:
3201
3217
  return _context5.abrupt("return", {
@@ -3251,7 +3267,7 @@ var DisputeClient = /*#__PURE__*/function () {
3251
3267
  key: "raiseDispute",
3252
3268
  value: function () {
3253
3269
  var _raiseDispute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
3254
- var _request$txOptions, _yield$this$rpcClient, call, txHash, logs;
3270
+ var _request$txOptions, _yield$this$rpcClient, call, txHash, targetLogs;
3255
3271
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3256
3272
  while (1) switch (_context.prev = _context.next) {
3257
3273
  case 0:
@@ -3280,10 +3296,10 @@ var DisputeClient = /*#__PURE__*/function () {
3280
3296
  eventName: "DisputeRaised"
3281
3297
  }));
3282
3298
  case 11:
3283
- logs = _context.sent;
3299
+ targetLogs = _context.sent;
3284
3300
  return _context.abrupt("return", {
3285
3301
  txHash: txHash,
3286
- disputeId: BigInt(logs.args.disputeId).toString()
3302
+ disputeId: BigInt(targetLogs[0].args.disputeId).toString()
3287
3303
  });
3288
3304
  case 13:
3289
3305
  return _context.abrupt("return", {
@@ -1915,28 +1915,28 @@ var ErrorsABI = [{
1915
1915
  }];
1916
1916
 
1917
1917
  var sepolia = {
1918
- AccessController: "0x8eB53745795E2107E3568c647A77a7294C89Ef31",
1919
- AncestorsVaultLAP: "0x7FD793C4914da052022524BA17508976733B09AA",
1920
- ArbitrationPolicySP: "0xFfE389378AFa13D91485182D72700d226Cb0db16",
1921
- DisputeModule: "0xe94d7198EF5657C15be755aC3D9cb386F2Db50Bd",
1922
- Governance: "0x14Ac96796aadef6053e993aBDc3C1e7830ede901",
1923
- IPAccountImpl: "0xec3F947902fac41e59aa25669Fe39997BFA1357c",
1924
- IPAccountRegistry: "0xfe3ef84acECAd1F91583CB09E62953669C1c2bb5",
1925
- IPAssetRegistry: "0xA3a77482C64e91d4C89114D83Bd51457132ea947",
1926
- IPAssetRenderer: "0xF36c279a61b32D39e5Bc25e317f779362Be07E1d",
1927
- IPMetadataProvider: "0x40D52438C3852A872c71eB3a8b81d6274C5b6274",
1928
- IPResolver: "0x8BcE3019dBe94402A0276A2630373CDDB67fe271",
1929
- LicenseRegistry: "0x176d33Cc80ed3390256033bbf7Fd651c9C5A364F",
1930
- LicensingModule: "0x9CDDD88Dd34429a0F39eaDf91a56D1bf0533E72B",
1931
- MockERC20: "0x1219A0E87e617E6560104fA11cfd4f01FeB47362",
1932
- MockERC721: "0x9d790FF5B6A7469f32f18E677E15D48b86C6839b",
1933
- MockTokenGatedHook: "0x25018B7521E7607A7101302401bE81eDCA2E9730",
1934
- ModuleRegistry: "0x6E09516f10a4094b9B9A8C2b7Aa611A2D7827d3F",
1935
- PILPolicyFrameworkManager: "0x50c3bCAA67D4eC3f285E4328451315Ab0D9e539f",
1936
- RegistrationModule: "0x8b3f6b736b520F69c37a575293D3c1ff6383D495",
1937
- RoyaltyModule: "0x833774B42357939B4c96e1bCF5cE26e815AE3Ae6",
1938
- RoyaltyPolicyLAP: "0xda483fd6e6ecA1C2D913802F9a6B57a83b73029f",
1939
- TokenWithdrawalModule: "0x01469702E71F5C8199A15a97e8147D002C60a0B9"
1918
+ AccessController: "0xad64a4b2e18FF7D2f97aF083E7b193d7Dd141735",
1919
+ AncestorsVaultLAP: "0x1db575D163685F4b825aA2b0972B62CB6E7Ac2Db",
1920
+ ArbitrationPolicySP: "0x532BC697eFFd12Eb16C913b0df04ebEA87dea309",
1921
+ DisputeModule: "0x6157B19CBc151af2b36e0a2581001d32a22b2661",
1922
+ Governance: "0xc5Cdbb3359143C2449D03342D2F13F2F0e58c1b8",
1923
+ IPAccountImpl: "0x79792DccC6C58C303510fc1F7649e481C431aFb1",
1924
+ IPAccountRegistry: "0xBD2780F291588C8bDDf7F5874988fA9d3179d560",
1925
+ IPAssetRegistry: "0x292639452A975630802C17c9267169D93BD5a793",
1926
+ IPAssetRenderer: "0x1Ce95B7b333d71C00C3334a96713440d5A5A26dD",
1927
+ IPMetadataProvider: "0x31c65C12A6A3889cd08A055914931E2Fbe773dD6",
1928
+ IPResolver: "0x3809f4128B0B33AFb17576edafD7D4F4E2ABE933",
1929
+ LicenseRegistry: "0xc2BC7a2d5784768BDEd98436f2522A4931e2FBb4",
1930
+ LicensingModule: "0x950d766A1a0afDc33c3e653C861A8765cb42DbdC",
1931
+ MockERC20: "0x857308523a01B430cB112400976B9FC4A6429D55",
1932
+ MockERC721: "0x16d50f333B264b153B7BF1DD9fe65A2707B3281b",
1933
+ MockTokenGatedHook: "0x28C32a4B5B3E186d7f658C051d3Bb4a95243209a",
1934
+ ModuleRegistry: "0x5Aac3177F496F503Ac724A0D0A697f6ba9dA2C27",
1935
+ PILPolicyFrameworkManager: "0xeAABf2b80B7e069EE449B5629590A1cc0F9bC9C2",
1936
+ RegistrationModule: "0x613128e88b568768764824f898C8135efED97fA6",
1937
+ RoyaltyModule: "0xA6bEf9CC650A16939566c1da5d5088f3F028a865",
1938
+ RoyaltyPolicyLAP: "0x16eF58e959522727588921A92e9084d36E5d3855",
1939
+ TokenWithdrawalModule: "0x66738a5722e9Cd91B694bA39146CFEcE95457F04"
1940
1940
  };
1941
1941
 
1942
1942
  var IPAccountABI = [].concat(_toConsumableArray(IPAccountImplABI), _toConsumableArray(ErrorsABI));
@@ -2032,7 +2032,7 @@ function waitTxAndFilterLog(_x, _x2, _x3) {
2032
2032
  }
2033
2033
  function _waitTxAndFilterLog() {
2034
2034
  _waitTxAndFilterLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(client, txHash, params) {
2035
- var txReceipt, _iterator, _step, log;
2035
+ var txReceipt, targetLogs, _iterator, _step, log, currentLog;
2036
2036
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2037
2037
  while (1) switch (_context.prev = _context.next) {
2038
2038
  case 0:
@@ -2045,47 +2045,63 @@ function _waitTxAndFilterLog() {
2045
2045
  });
2046
2046
  case 2:
2047
2047
  txReceipt = _context.sent;
2048
+ targetLogs = [];
2048
2049
  _iterator = _createForOfIteratorHelper(txReceipt.logs);
2049
- _context.prev = 4;
2050
+ _context.prev = 5;
2050
2051
  _iterator.s();
2051
- case 6:
2052
+ case 7:
2052
2053
  if ((_step = _iterator.n()).done) {
2053
- _context.next = 17;
2054
+ _context.next = 21;
2054
2055
  break;
2055
2056
  }
2056
2057
  log = _step.value;
2057
- _context.prev = 8;
2058
- return _context.abrupt("return", viem.decodeEventLog({
2058
+ _context.prev = 9;
2059
+ if (!(params.from && log.address !== params.from.toLowerCase())) {
2060
+ _context.next = 12;
2061
+ break;
2062
+ }
2063
+ return _context.abrupt("continue", 19);
2064
+ case 12:
2065
+ currentLog = viem.decodeEventLog({
2059
2066
  abi: params.abi,
2060
2067
  eventName: params.eventName,
2061
2068
  data: log.data,
2062
2069
  topics: log.topics
2063
- }));
2064
- case 12:
2065
- _context.prev = 12;
2066
- _context.t0 = _context["catch"](8);
2067
- return _context.abrupt("continue", 15);
2068
- case 15:
2069
- _context.next = 6;
2070
- break;
2071
- case 17:
2072
- _context.next = 22;
2070
+ });
2071
+ targetLogs.push(currentLog);
2072
+ _context.next = 19;
2073
2073
  break;
2074
+ case 16:
2075
+ _context.prev = 16;
2076
+ _context.t0 = _context["catch"](9);
2077
+ return _context.abrupt("continue", 19);
2074
2078
  case 19:
2075
- _context.prev = 19;
2076
- _context.t1 = _context["catch"](4);
2079
+ _context.next = 7;
2080
+ break;
2081
+ case 21:
2082
+ _context.next = 26;
2083
+ break;
2084
+ case 23:
2085
+ _context.prev = 23;
2086
+ _context.t1 = _context["catch"](5);
2077
2087
  _iterator.e(_context.t1);
2078
- case 22:
2079
- _context.prev = 22;
2088
+ case 26:
2089
+ _context.prev = 26;
2080
2090
  _iterator.f();
2081
- return _context.finish(22);
2082
- case 25:
2091
+ return _context.finish(26);
2092
+ case 29:
2093
+ if (!(targetLogs.length === 0)) {
2094
+ _context.next = 31;
2095
+ break;
2096
+ }
2083
2097
  throw new Error("not found event ".concat(params.eventName, " in target transaction"));
2084
- case 26:
2098
+ case 31:
2099
+ return _context.abrupt("return", targetLogs);
2100
+ case 32:
2085
2101
  case "end":
2086
2102
  return _context.stop();
2087
2103
  }
2088
- }, _callee, null, [[4, 19, 22, 25], [8, 12]]);
2104
+ }, _callee, null, [[5, 23, 26, 29], [9, 16]]);
2089
2105
  }));
2090
2106
  return _waitTxAndFilterLog.apply(this, arguments);
2091
2107
  }
@@ -2239,7 +2255,7 @@ var IPAssetClient = /*#__PURE__*/function () {
2239
2255
  key: "registerRootIp",
2240
2256
  value: function () {
2241
2257
  var _registerRootIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2242
- var _request$txOptions, ipId, _yield$this$rpcClient, call, txHash, targetLog;
2258
+ var _request$txOptions, ipId, _yield$this$rpcClient, call, txHash, targetLogs;
2243
2259
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2244
2260
  while (1) switch (_context.prev = _context.next) {
2245
2261
  case 0:
@@ -2280,10 +2296,10 @@ var IPAssetClient = /*#__PURE__*/function () {
2280
2296
  eventName: "IPRegistered"
2281
2297
  }));
2282
2298
  case 16:
2283
- targetLog = _context.sent;
2299
+ targetLogs = _context.sent;
2284
2300
  return _context.abrupt("return", {
2285
2301
  txHash: txHash,
2286
- ipId: targetLog.args.ipId
2302
+ ipId: targetLogs[0].args.ipId
2287
2303
  });
2288
2304
  case 20:
2289
2305
  return _context.abrupt("return", {
@@ -2317,7 +2333,6 @@ var IPAssetClient = /*#__PURE__*/function () {
2317
2333
  * @param request.ipName [Optional] The name assigned to the new IP.
2318
2334
  * @param request.contentHash [Optional] The content hash of the IP being registered.
2319
2335
  * @param request.uri [Optional] An external URI to link to the IP.
2320
- * @param request.minRoyalty [Optional] The minimum royalty percentage that the IP owner will receive.
2321
2336
  * @param request.txOptions [Optional] The transaction options.
2322
2337
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
2323
2338
  * @emits RootIPRegistered (msg.sender, ipId, policyId)
@@ -2326,7 +2341,7 @@ var IPAssetClient = /*#__PURE__*/function () {
2326
2341
  key: "registerDerivativeIp",
2327
2342
  value: function () {
2328
2343
  var _registerDerivativeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
2329
- var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLog;
2344
+ var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLogs;
2330
2345
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2331
2346
  while (1) switch (_context2.prev = _context2.next) {
2332
2347
  case 0:
@@ -2375,10 +2390,10 @@ var IPAssetClient = /*#__PURE__*/function () {
2375
2390
  eventName: "IPRegistered"
2376
2391
  }));
2377
2392
  case 21:
2378
- targetLog = _context2.sent;
2393
+ targetLogs = _context2.sent;
2379
2394
  return _context2.abrupt("return", {
2380
2395
  txHash: txHash,
2381
- ipId: targetLog.args.ipId
2396
+ ipId: targetLogs[0].args.ipId
2382
2397
  });
2383
2398
  case 25:
2384
2399
  return _context2.abrupt("return", {
@@ -2574,7 +2589,7 @@ var LicenseClient = /*#__PURE__*/function () {
2574
2589
  key: "mintLicense",
2575
2590
  value: function () {
2576
2591
  var _mintLicense = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2577
- var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLog;
2592
+ var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLogs;
2578
2593
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2579
2594
  while (1) switch (_context.prev = _context.next) {
2580
2595
  case 0:
@@ -2617,13 +2632,14 @@ var LicenseClient = /*#__PURE__*/function () {
2617
2632
  }
2618
2633
  _context.next = 16;
2619
2634
  return waitTxAndFilterLog(this.rpcClient, txHash, _objectSpread2(_objectSpread2({}, this.licenseRegistryConfig), {}, {
2620
- eventName: "TransferSingle"
2635
+ eventName: "TransferSingle",
2636
+ from: this.licenseRegistryConfig.address
2621
2637
  }));
2622
2638
  case 16:
2623
- targetLog = _context.sent;
2639
+ targetLogs = _context.sent;
2624
2640
  return _context.abrupt("return", {
2625
2641
  txHash: txHash,
2626
- licenseId: targetLog.args.id.toString()
2642
+ licenseId: targetLogs[0].args.id.toString()
2627
2643
  });
2628
2644
  case 20:
2629
2645
  return _context.abrupt("return", {
@@ -2758,7 +2774,7 @@ var PolicyClient = /*#__PURE__*/function () {
2758
2774
  key: "registerPILPolicy",
2759
2775
  value: function () {
2760
2776
  var _registerPILPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2761
- var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLog;
2777
+ var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLogs;
2762
2778
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2763
2779
  while (1) switch (_context.prev = _context.next) {
2764
2780
  case 0:
@@ -2836,10 +2852,10 @@ var PolicyClient = /*#__PURE__*/function () {
2836
2852
  eventName: "PolicyRegistered"
2837
2853
  }));
2838
2854
  case 17:
2839
- targetLog = _context.sent;
2855
+ targetLogs = _context.sent;
2840
2856
  return _context.abrupt("return", {
2841
2857
  txHash: txHash,
2842
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
2858
+ policyId: targetLogs[0].args.policyId.toString()
2843
2859
  });
2844
2860
  case 21:
2845
2861
  return _context.abrupt("return", {
@@ -2957,7 +2973,7 @@ var PolicyClient = /*#__PURE__*/function () {
2957
2973
  targetLog = _context2.sent;
2958
2974
  return _context2.abrupt("return", {
2959
2975
  txHash: txHash,
2960
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
2976
+ policyId: targetLog[0].args.policyId.toString()
2961
2977
  });
2962
2978
  case 21:
2963
2979
  return _context2.abrupt("return", {
@@ -2997,7 +3013,7 @@ var PolicyClient = /*#__PURE__*/function () {
2997
3013
  key: "registerPILCommercialUsePolicy",
2998
3014
  value: function () {
2999
3015
  var _registerPILCommercialUsePolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
3000
- var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLog;
3016
+ var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLogs;
3001
3017
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3002
3018
  while (1) switch (_context3.prev = _context3.next) {
3003
3019
  case 0:
@@ -3075,10 +3091,10 @@ var PolicyClient = /*#__PURE__*/function () {
3075
3091
  eventName: "PolicyRegistered"
3076
3092
  }));
3077
3093
  case 17:
3078
- targetLog = _context3.sent;
3094
+ targetLogs = _context3.sent;
3079
3095
  return _context3.abrupt("return", {
3080
3096
  txHash: txHash,
3081
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
3097
+ policyId: targetLogs[0].args.policyId.toString()
3082
3098
  });
3083
3099
  case 21:
3084
3100
  return _context3.abrupt("return", {
@@ -3157,7 +3173,7 @@ var PolicyClient = /*#__PURE__*/function () {
3157
3173
  key: "addPolicyToIp",
3158
3174
  value: function () {
3159
3175
  var _addPolicyToIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
3160
- var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLog;
3176
+ var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLogs;
3161
3177
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3162
3178
  while (1) switch (_context5.prev = _context5.next) {
3163
3179
  case 0:
@@ -3192,10 +3208,10 @@ var PolicyClient = /*#__PURE__*/function () {
3192
3208
  eventName: "PolicyAddedToIpId"
3193
3209
  }));
3194
3210
  case 12:
3195
- targetLog = _context5.sent;
3211
+ targetLogs = _context5.sent;
3196
3212
  return _context5.abrupt("return", {
3197
3213
  txHash: txHash,
3198
- index: targetLog.args.index.toString()
3214
+ index: targetLogs[0].args.index.toString()
3199
3215
  });
3200
3216
  case 16:
3201
3217
  return _context5.abrupt("return", {
@@ -3251,7 +3267,7 @@ var DisputeClient = /*#__PURE__*/function () {
3251
3267
  key: "raiseDispute",
3252
3268
  value: function () {
3253
3269
  var _raiseDispute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
3254
- var _request$txOptions, _yield$this$rpcClient, call, txHash, logs;
3270
+ var _request$txOptions, _yield$this$rpcClient, call, txHash, targetLogs;
3255
3271
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3256
3272
  while (1) switch (_context.prev = _context.next) {
3257
3273
  case 0:
@@ -3280,10 +3296,10 @@ var DisputeClient = /*#__PURE__*/function () {
3280
3296
  eventName: "DisputeRaised"
3281
3297
  }));
3282
3298
  case 11:
3283
- logs = _context.sent;
3299
+ targetLogs = _context.sent;
3284
3300
  return _context.abrupt("return", {
3285
3301
  txHash: txHash,
3286
- disputeId: BigInt(logs.args.disputeId).toString()
3302
+ disputeId: BigInt(targetLogs[0].args.disputeId).toString()
3287
3303
  });
3288
3304
  case 13:
3289
3305
  return _context.abrupt("return", {
@@ -1888,28 +1888,28 @@ var ErrorsABI = [{
1888
1888
  }];
1889
1889
 
1890
1890
  var sepolia = {
1891
- AccessController: "0x8eB53745795E2107E3568c647A77a7294C89Ef31",
1892
- AncestorsVaultLAP: "0x7FD793C4914da052022524BA17508976733B09AA",
1893
- ArbitrationPolicySP: "0xFfE389378AFa13D91485182D72700d226Cb0db16",
1894
- DisputeModule: "0xe94d7198EF5657C15be755aC3D9cb386F2Db50Bd",
1895
- Governance: "0x14Ac96796aadef6053e993aBDc3C1e7830ede901",
1896
- IPAccountImpl: "0xec3F947902fac41e59aa25669Fe39997BFA1357c",
1897
- IPAccountRegistry: "0xfe3ef84acECAd1F91583CB09E62953669C1c2bb5",
1898
- IPAssetRegistry: "0xA3a77482C64e91d4C89114D83Bd51457132ea947",
1899
- IPAssetRenderer: "0xF36c279a61b32D39e5Bc25e317f779362Be07E1d",
1900
- IPMetadataProvider: "0x40D52438C3852A872c71eB3a8b81d6274C5b6274",
1901
- IPResolver: "0x8BcE3019dBe94402A0276A2630373CDDB67fe271",
1902
- LicenseRegistry: "0x176d33Cc80ed3390256033bbf7Fd651c9C5A364F",
1903
- LicensingModule: "0x9CDDD88Dd34429a0F39eaDf91a56D1bf0533E72B",
1904
- MockERC20: "0x1219A0E87e617E6560104fA11cfd4f01FeB47362",
1905
- MockERC721: "0x9d790FF5B6A7469f32f18E677E15D48b86C6839b",
1906
- MockTokenGatedHook: "0x25018B7521E7607A7101302401bE81eDCA2E9730",
1907
- ModuleRegistry: "0x6E09516f10a4094b9B9A8C2b7Aa611A2D7827d3F",
1908
- PILPolicyFrameworkManager: "0x50c3bCAA67D4eC3f285E4328451315Ab0D9e539f",
1909
- RegistrationModule: "0x8b3f6b736b520F69c37a575293D3c1ff6383D495",
1910
- RoyaltyModule: "0x833774B42357939B4c96e1bCF5cE26e815AE3Ae6",
1911
- RoyaltyPolicyLAP: "0xda483fd6e6ecA1C2D913802F9a6B57a83b73029f",
1912
- TokenWithdrawalModule: "0x01469702E71F5C8199A15a97e8147D002C60a0B9"
1891
+ AccessController: "0xad64a4b2e18FF7D2f97aF083E7b193d7Dd141735",
1892
+ AncestorsVaultLAP: "0x1db575D163685F4b825aA2b0972B62CB6E7Ac2Db",
1893
+ ArbitrationPolicySP: "0x532BC697eFFd12Eb16C913b0df04ebEA87dea309",
1894
+ DisputeModule: "0x6157B19CBc151af2b36e0a2581001d32a22b2661",
1895
+ Governance: "0xc5Cdbb3359143C2449D03342D2F13F2F0e58c1b8",
1896
+ IPAccountImpl: "0x79792DccC6C58C303510fc1F7649e481C431aFb1",
1897
+ IPAccountRegistry: "0xBD2780F291588C8bDDf7F5874988fA9d3179d560",
1898
+ IPAssetRegistry: "0x292639452A975630802C17c9267169D93BD5a793",
1899
+ IPAssetRenderer: "0x1Ce95B7b333d71C00C3334a96713440d5A5A26dD",
1900
+ IPMetadataProvider: "0x31c65C12A6A3889cd08A055914931E2Fbe773dD6",
1901
+ IPResolver: "0x3809f4128B0B33AFb17576edafD7D4F4E2ABE933",
1902
+ LicenseRegistry: "0xc2BC7a2d5784768BDEd98436f2522A4931e2FBb4",
1903
+ LicensingModule: "0x950d766A1a0afDc33c3e653C861A8765cb42DbdC",
1904
+ MockERC20: "0x857308523a01B430cB112400976B9FC4A6429D55",
1905
+ MockERC721: "0x16d50f333B264b153B7BF1DD9fe65A2707B3281b",
1906
+ MockTokenGatedHook: "0x28C32a4B5B3E186d7f658C051d3Bb4a95243209a",
1907
+ ModuleRegistry: "0x5Aac3177F496F503Ac724A0D0A697f6ba9dA2C27",
1908
+ PILPolicyFrameworkManager: "0xeAABf2b80B7e069EE449B5629590A1cc0F9bC9C2",
1909
+ RegistrationModule: "0x613128e88b568768764824f898C8135efED97fA6",
1910
+ RoyaltyModule: "0xA6bEf9CC650A16939566c1da5d5088f3F028a865",
1911
+ RoyaltyPolicyLAP: "0x16eF58e959522727588921A92e9084d36E5d3855",
1912
+ TokenWithdrawalModule: "0x66738a5722e9Cd91B694bA39146CFEcE95457F04"
1913
1913
  };
1914
1914
 
1915
1915
  var IPAccountABI = [].concat(_toConsumableArray(IPAccountImplABI), _toConsumableArray(ErrorsABI));
@@ -2005,7 +2005,7 @@ function waitTxAndFilterLog(_x, _x2, _x3) {
2005
2005
  }
2006
2006
  function _waitTxAndFilterLog() {
2007
2007
  _waitTxAndFilterLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(client, txHash, params) {
2008
- var txReceipt, _iterator, _step, log;
2008
+ var txReceipt, targetLogs, _iterator, _step, log, currentLog;
2009
2009
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2010
2010
  while (1) switch (_context.prev = _context.next) {
2011
2011
  case 0:
@@ -2018,47 +2018,63 @@ function _waitTxAndFilterLog() {
2018
2018
  });
2019
2019
  case 2:
2020
2020
  txReceipt = _context.sent;
2021
+ targetLogs = [];
2021
2022
  _iterator = _createForOfIteratorHelper(txReceipt.logs);
2022
- _context.prev = 4;
2023
+ _context.prev = 5;
2023
2024
  _iterator.s();
2024
- case 6:
2025
+ case 7:
2025
2026
  if ((_step = _iterator.n()).done) {
2026
- _context.next = 17;
2027
+ _context.next = 21;
2027
2028
  break;
2028
2029
  }
2029
2030
  log = _step.value;
2030
- _context.prev = 8;
2031
- return _context.abrupt("return", decodeEventLog({
2031
+ _context.prev = 9;
2032
+ if (!(params.from && log.address !== params.from.toLowerCase())) {
2033
+ _context.next = 12;
2034
+ break;
2035
+ }
2036
+ return _context.abrupt("continue", 19);
2037
+ case 12:
2038
+ currentLog = decodeEventLog({
2032
2039
  abi: params.abi,
2033
2040
  eventName: params.eventName,
2034
2041
  data: log.data,
2035
2042
  topics: log.topics
2036
- }));
2037
- case 12:
2038
- _context.prev = 12;
2039
- _context.t0 = _context["catch"](8);
2040
- return _context.abrupt("continue", 15);
2041
- case 15:
2042
- _context.next = 6;
2043
- break;
2044
- case 17:
2045
- _context.next = 22;
2043
+ });
2044
+ targetLogs.push(currentLog);
2045
+ _context.next = 19;
2046
2046
  break;
2047
+ case 16:
2048
+ _context.prev = 16;
2049
+ _context.t0 = _context["catch"](9);
2050
+ return _context.abrupt("continue", 19);
2047
2051
  case 19:
2048
- _context.prev = 19;
2049
- _context.t1 = _context["catch"](4);
2052
+ _context.next = 7;
2053
+ break;
2054
+ case 21:
2055
+ _context.next = 26;
2056
+ break;
2057
+ case 23:
2058
+ _context.prev = 23;
2059
+ _context.t1 = _context["catch"](5);
2050
2060
  _iterator.e(_context.t1);
2051
- case 22:
2052
- _context.prev = 22;
2061
+ case 26:
2062
+ _context.prev = 26;
2053
2063
  _iterator.f();
2054
- return _context.finish(22);
2055
- case 25:
2064
+ return _context.finish(26);
2065
+ case 29:
2066
+ if (!(targetLogs.length === 0)) {
2067
+ _context.next = 31;
2068
+ break;
2069
+ }
2056
2070
  throw new Error("not found event ".concat(params.eventName, " in target transaction"));
2057
- case 26:
2071
+ case 31:
2072
+ return _context.abrupt("return", targetLogs);
2073
+ case 32:
2058
2074
  case "end":
2059
2075
  return _context.stop();
2060
2076
  }
2061
- }, _callee, null, [[4, 19, 22, 25], [8, 12]]);
2077
+ }, _callee, null, [[5, 23, 26, 29], [9, 16]]);
2062
2078
  }));
2063
2079
  return _waitTxAndFilterLog.apply(this, arguments);
2064
2080
  }
@@ -2212,7 +2228,7 @@ var IPAssetClient = /*#__PURE__*/function () {
2212
2228
  key: "registerRootIp",
2213
2229
  value: function () {
2214
2230
  var _registerRootIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2215
- var _request$txOptions, ipId, _yield$this$rpcClient, call, txHash, targetLog;
2231
+ var _request$txOptions, ipId, _yield$this$rpcClient, call, txHash, targetLogs;
2216
2232
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2217
2233
  while (1) switch (_context.prev = _context.next) {
2218
2234
  case 0:
@@ -2253,10 +2269,10 @@ var IPAssetClient = /*#__PURE__*/function () {
2253
2269
  eventName: "IPRegistered"
2254
2270
  }));
2255
2271
  case 16:
2256
- targetLog = _context.sent;
2272
+ targetLogs = _context.sent;
2257
2273
  return _context.abrupt("return", {
2258
2274
  txHash: txHash,
2259
- ipId: targetLog.args.ipId
2275
+ ipId: targetLogs[0].args.ipId
2260
2276
  });
2261
2277
  case 20:
2262
2278
  return _context.abrupt("return", {
@@ -2290,7 +2306,6 @@ var IPAssetClient = /*#__PURE__*/function () {
2290
2306
  * @param request.ipName [Optional] The name assigned to the new IP.
2291
2307
  * @param request.contentHash [Optional] The content hash of the IP being registered.
2292
2308
  * @param request.uri [Optional] An external URI to link to the IP.
2293
- * @param request.minRoyalty [Optional] The minimum royalty percentage that the IP owner will receive.
2294
2309
  * @param request.txOptions [Optional] The transaction options.
2295
2310
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
2296
2311
  * @emits RootIPRegistered (msg.sender, ipId, policyId)
@@ -2299,7 +2314,7 @@ var IPAssetClient = /*#__PURE__*/function () {
2299
2314
  key: "registerDerivativeIp",
2300
2315
  value: function () {
2301
2316
  var _registerDerivativeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
2302
- var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLog;
2317
+ var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLogs;
2303
2318
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2304
2319
  while (1) switch (_context2.prev = _context2.next) {
2305
2320
  case 0:
@@ -2348,10 +2363,10 @@ var IPAssetClient = /*#__PURE__*/function () {
2348
2363
  eventName: "IPRegistered"
2349
2364
  }));
2350
2365
  case 21:
2351
- targetLog = _context2.sent;
2366
+ targetLogs = _context2.sent;
2352
2367
  return _context2.abrupt("return", {
2353
2368
  txHash: txHash,
2354
- ipId: targetLog.args.ipId
2369
+ ipId: targetLogs[0].args.ipId
2355
2370
  });
2356
2371
  case 25:
2357
2372
  return _context2.abrupt("return", {
@@ -2547,7 +2562,7 @@ var LicenseClient = /*#__PURE__*/function () {
2547
2562
  key: "mintLicense",
2548
2563
  value: function () {
2549
2564
  var _mintLicense = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2550
- var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLog;
2565
+ var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLogs;
2551
2566
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2552
2567
  while (1) switch (_context.prev = _context.next) {
2553
2568
  case 0:
@@ -2590,13 +2605,14 @@ var LicenseClient = /*#__PURE__*/function () {
2590
2605
  }
2591
2606
  _context.next = 16;
2592
2607
  return waitTxAndFilterLog(this.rpcClient, txHash, _objectSpread2(_objectSpread2({}, this.licenseRegistryConfig), {}, {
2593
- eventName: "TransferSingle"
2608
+ eventName: "TransferSingle",
2609
+ from: this.licenseRegistryConfig.address
2594
2610
  }));
2595
2611
  case 16:
2596
- targetLog = _context.sent;
2612
+ targetLogs = _context.sent;
2597
2613
  return _context.abrupt("return", {
2598
2614
  txHash: txHash,
2599
- licenseId: targetLog.args.id.toString()
2615
+ licenseId: targetLogs[0].args.id.toString()
2600
2616
  });
2601
2617
  case 20:
2602
2618
  return _context.abrupt("return", {
@@ -2731,7 +2747,7 @@ var PolicyClient = /*#__PURE__*/function () {
2731
2747
  key: "registerPILPolicy",
2732
2748
  value: function () {
2733
2749
  var _registerPILPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
2734
- var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLog;
2750
+ var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLogs;
2735
2751
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2736
2752
  while (1) switch (_context.prev = _context.next) {
2737
2753
  case 0:
@@ -2809,10 +2825,10 @@ var PolicyClient = /*#__PURE__*/function () {
2809
2825
  eventName: "PolicyRegistered"
2810
2826
  }));
2811
2827
  case 17:
2812
- targetLog = _context.sent;
2828
+ targetLogs = _context.sent;
2813
2829
  return _context.abrupt("return", {
2814
2830
  txHash: txHash,
2815
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
2831
+ policyId: targetLogs[0].args.policyId.toString()
2816
2832
  });
2817
2833
  case 21:
2818
2834
  return _context.abrupt("return", {
@@ -2930,7 +2946,7 @@ var PolicyClient = /*#__PURE__*/function () {
2930
2946
  targetLog = _context2.sent;
2931
2947
  return _context2.abrupt("return", {
2932
2948
  txHash: txHash,
2933
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
2949
+ policyId: targetLog[0].args.policyId.toString()
2934
2950
  });
2935
2951
  case 21:
2936
2952
  return _context2.abrupt("return", {
@@ -2970,7 +2986,7 @@ var PolicyClient = /*#__PURE__*/function () {
2970
2986
  key: "registerPILCommercialUsePolicy",
2971
2987
  value: function () {
2972
2988
  var _registerPILCommercialUsePolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
2973
- var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLog;
2989
+ var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLogs;
2974
2990
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2975
2991
  while (1) switch (_context3.prev = _context3.next) {
2976
2992
  case 0:
@@ -3048,10 +3064,10 @@ var PolicyClient = /*#__PURE__*/function () {
3048
3064
  eventName: "PolicyRegistered"
3049
3065
  }));
3050
3066
  case 17:
3051
- targetLog = _context3.sent;
3067
+ targetLogs = _context3.sent;
3052
3068
  return _context3.abrupt("return", {
3053
3069
  txHash: txHash,
3054
- policyId: targetLog === null || targetLog === void 0 ? void 0 : targetLog.args.policyId.toString()
3070
+ policyId: targetLogs[0].args.policyId.toString()
3055
3071
  });
3056
3072
  case 21:
3057
3073
  return _context3.abrupt("return", {
@@ -3130,7 +3146,7 @@ var PolicyClient = /*#__PURE__*/function () {
3130
3146
  key: "addPolicyToIp",
3131
3147
  value: function () {
3132
3148
  var _addPolicyToIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
3133
- var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLog;
3149
+ var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLogs;
3134
3150
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3135
3151
  while (1) switch (_context5.prev = _context5.next) {
3136
3152
  case 0:
@@ -3165,10 +3181,10 @@ var PolicyClient = /*#__PURE__*/function () {
3165
3181
  eventName: "PolicyAddedToIpId"
3166
3182
  }));
3167
3183
  case 12:
3168
- targetLog = _context5.sent;
3184
+ targetLogs = _context5.sent;
3169
3185
  return _context5.abrupt("return", {
3170
3186
  txHash: txHash,
3171
- index: targetLog.args.index.toString()
3187
+ index: targetLogs[0].args.index.toString()
3172
3188
  });
3173
3189
  case 16:
3174
3190
  return _context5.abrupt("return", {
@@ -3224,7 +3240,7 @@ var DisputeClient = /*#__PURE__*/function () {
3224
3240
  key: "raiseDispute",
3225
3241
  value: function () {
3226
3242
  var _raiseDispute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
3227
- var _request$txOptions, _yield$this$rpcClient, call, txHash, logs;
3243
+ var _request$txOptions, _yield$this$rpcClient, call, txHash, targetLogs;
3228
3244
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3229
3245
  while (1) switch (_context.prev = _context.next) {
3230
3246
  case 0:
@@ -3253,10 +3269,10 @@ var DisputeClient = /*#__PURE__*/function () {
3253
3269
  eventName: "DisputeRaised"
3254
3270
  }));
3255
3271
  case 11:
3256
- logs = _context.sent;
3272
+ targetLogs = _context.sent;
3257
3273
  return _context.abrupt("return", {
3258
3274
  txHash: txHash,
3259
- disputeId: BigInt(logs.args.disputeId).toString()
3275
+ disputeId: BigInt(targetLogs[0].args.disputeId).toString()
3260
3276
  });
3261
3277
  case 13:
3262
3278
  return _context.abrupt("return", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@story-protocol/core-sdk",
3
- "version": "0.0.1-beta-rc.7",
3
+ "version": "0.0.1-beta-rc.9",
4
4
  "description": "Story Protocol Core SDK",
5
5
  "main": "dist/story-protocol-core-sdk.cjs.js",
6
6
  "module": "dist/story-protocol-core-sdk.esm.js",
@@ -79,10 +79,10 @@
79
79
  "src/types/**/*"
80
80
  ],
81
81
  "check-coverage": true,
82
- "lines": 40,
83
- "functions": 40,
84
- "branches": 40,
85
- "statements": 40
82
+ "lines": 90,
83
+ "functions": 90,
84
+ "branches": 90,
85
+ "statements": 90
86
86
  },
87
87
  "typedoc": {
88
88
  "entryPoint": "./src/index.ts",