@story-protocol/core-sdk 0.0.1-beta-rc.7 → 0.0.1-beta-rc.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/policy.d.ts +36 -30
- package/dist/declarations/src/resources/policy.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +64 -47
- package/dist/story-protocol-core-sdk.cjs.prod.js +64 -47
- package/dist/story-protocol-core-sdk.esm.js +64 -47
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAkC,MAAM,MAAM,CAAC;AAMlF,OAAO,EAAE,cAAc,EAAE,+BAA4B;AACrD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAGpC,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IACtC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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,EACp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AAC,yBAAyB,CAAC;IA8ErC;;;;;;;;OAQG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,oCAAoC,CAAC;IA6EhD;;;;;;;;;;;OAWG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sCAAsC,CAAC;YA6EpC,WAAW;IA2BzB,OAAO,CAAC,mBAAmB;IAwB3B;;;;;;OAMG;IACU,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAoC1F"}
|
@@ -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 =
|
2050
|
+
_context.prev = 5;
|
2050
2051
|
_iterator.s();
|
2051
|
-
case
|
2052
|
+
case 7:
|
2052
2053
|
if ((_step = _iterator.n()).done) {
|
2053
|
-
_context.next =
|
2054
|
+
_context.next = 21;
|
2054
2055
|
break;
|
2055
2056
|
}
|
2056
2057
|
log = _step.value;
|
2057
|
-
_context.prev =
|
2058
|
-
|
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
|
-
|
2065
|
-
_context.
|
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.
|
2076
|
-
|
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
|
2079
|
-
_context.prev =
|
2088
|
+
case 26:
|
2089
|
+
_context.prev = 26;
|
2080
2090
|
_iterator.f();
|
2081
|
-
return _context.finish(
|
2082
|
-
case
|
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
|
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, [[
|
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,
|
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
|
-
|
2299
|
+
targetLogs = _context.sent;
|
2284
2300
|
return _context.abrupt("return", {
|
2285
2301
|
txHash: txHash,
|
2286
|
-
ipId:
|
2302
|
+
ipId: targetLogs[0].args.ipId
|
2287
2303
|
});
|
2288
2304
|
case 20:
|
2289
2305
|
return _context.abrupt("return", {
|
@@ -2326,7 +2342,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
2326
2342
|
key: "registerDerivativeIp",
|
2327
2343
|
value: function () {
|
2328
2344
|
var _registerDerivativeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
2329
|
-
var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash,
|
2345
|
+
var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLogs;
|
2330
2346
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2331
2347
|
while (1) switch (_context2.prev = _context2.next) {
|
2332
2348
|
case 0:
|
@@ -2375,10 +2391,10 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
2375
2391
|
eventName: "IPRegistered"
|
2376
2392
|
}));
|
2377
2393
|
case 21:
|
2378
|
-
|
2394
|
+
targetLogs = _context2.sent;
|
2379
2395
|
return _context2.abrupt("return", {
|
2380
2396
|
txHash: txHash,
|
2381
|
-
ipId:
|
2397
|
+
ipId: targetLogs[0].args.ipId
|
2382
2398
|
});
|
2383
2399
|
case 25:
|
2384
2400
|
return _context2.abrupt("return", {
|
@@ -2574,7 +2590,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
2574
2590
|
key: "mintLicense",
|
2575
2591
|
value: function () {
|
2576
2592
|
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,
|
2593
|
+
var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLogs;
|
2578
2594
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2579
2595
|
while (1) switch (_context.prev = _context.next) {
|
2580
2596
|
case 0:
|
@@ -2617,13 +2633,14 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
2617
2633
|
}
|
2618
2634
|
_context.next = 16;
|
2619
2635
|
return waitTxAndFilterLog(this.rpcClient, txHash, _objectSpread2(_objectSpread2({}, this.licenseRegistryConfig), {}, {
|
2620
|
-
eventName: "TransferSingle"
|
2636
|
+
eventName: "TransferSingle",
|
2637
|
+
from: this.licenseRegistryConfig.address
|
2621
2638
|
}));
|
2622
2639
|
case 16:
|
2623
|
-
|
2640
|
+
targetLogs = _context.sent;
|
2624
2641
|
return _context.abrupt("return", {
|
2625
2642
|
txHash: txHash,
|
2626
|
-
licenseId:
|
2643
|
+
licenseId: targetLogs[0].args.id.toString()
|
2627
2644
|
});
|
2628
2645
|
case 20:
|
2629
2646
|
return _context.abrupt("return", {
|
@@ -2758,7 +2775,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2758
2775
|
key: "registerPILPolicy",
|
2759
2776
|
value: function () {
|
2760
2777
|
var _registerPILPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
|
2761
|
-
var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash,
|
2778
|
+
var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLogs;
|
2762
2779
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2763
2780
|
while (1) switch (_context.prev = _context.next) {
|
2764
2781
|
case 0:
|
@@ -2836,10 +2853,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2836
2853
|
eventName: "PolicyRegistered"
|
2837
2854
|
}));
|
2838
2855
|
case 17:
|
2839
|
-
|
2856
|
+
targetLogs = _context.sent;
|
2840
2857
|
return _context.abrupt("return", {
|
2841
2858
|
txHash: txHash,
|
2842
|
-
policyId:
|
2859
|
+
policyId: targetLogs[0].args.policyId.toString()
|
2843
2860
|
});
|
2844
2861
|
case 21:
|
2845
2862
|
return _context.abrupt("return", {
|
@@ -2957,7 +2974,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2957
2974
|
targetLog = _context2.sent;
|
2958
2975
|
return _context2.abrupt("return", {
|
2959
2976
|
txHash: txHash,
|
2960
|
-
policyId: targetLog
|
2977
|
+
policyId: targetLog[0].args.policyId.toString()
|
2961
2978
|
});
|
2962
2979
|
case 21:
|
2963
2980
|
return _context2.abrupt("return", {
|
@@ -2997,7 +3014,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2997
3014
|
key: "registerPILCommercialUsePolicy",
|
2998
3015
|
value: function () {
|
2999
3016
|
var _registerPILCommercialUsePolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
|
3000
|
-
var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash,
|
3017
|
+
var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLogs;
|
3001
3018
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
3002
3019
|
while (1) switch (_context3.prev = _context3.next) {
|
3003
3020
|
case 0:
|
@@ -3075,10 +3092,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3075
3092
|
eventName: "PolicyRegistered"
|
3076
3093
|
}));
|
3077
3094
|
case 17:
|
3078
|
-
|
3095
|
+
targetLogs = _context3.sent;
|
3079
3096
|
return _context3.abrupt("return", {
|
3080
3097
|
txHash: txHash,
|
3081
|
-
policyId:
|
3098
|
+
policyId: targetLogs[0].args.policyId.toString()
|
3082
3099
|
});
|
3083
3100
|
case 21:
|
3084
3101
|
return _context3.abrupt("return", {
|
@@ -3157,7 +3174,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3157
3174
|
key: "addPolicyToIp",
|
3158
3175
|
value: function () {
|
3159
3176
|
var _addPolicyToIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
|
3160
|
-
var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash,
|
3177
|
+
var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLogs;
|
3161
3178
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
3162
3179
|
while (1) switch (_context5.prev = _context5.next) {
|
3163
3180
|
case 0:
|
@@ -3192,10 +3209,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3192
3209
|
eventName: "PolicyAddedToIpId"
|
3193
3210
|
}));
|
3194
3211
|
case 12:
|
3195
|
-
|
3212
|
+
targetLogs = _context5.sent;
|
3196
3213
|
return _context5.abrupt("return", {
|
3197
3214
|
txHash: txHash,
|
3198
|
-
index:
|
3215
|
+
index: targetLogs[0].args.index.toString()
|
3199
3216
|
});
|
3200
3217
|
case 16:
|
3201
3218
|
return _context5.abrupt("return", {
|
@@ -3251,7 +3268,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
3251
3268
|
key: "raiseDispute",
|
3252
3269
|
value: function () {
|
3253
3270
|
var _raiseDispute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
|
3254
|
-
var _request$txOptions, _yield$this$rpcClient, call, txHash,
|
3271
|
+
var _request$txOptions, _yield$this$rpcClient, call, txHash, targetLogs;
|
3255
3272
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
3256
3273
|
while (1) switch (_context.prev = _context.next) {
|
3257
3274
|
case 0:
|
@@ -3280,10 +3297,10 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
3280
3297
|
eventName: "DisputeRaised"
|
3281
3298
|
}));
|
3282
3299
|
case 11:
|
3283
|
-
|
3300
|
+
targetLogs = _context.sent;
|
3284
3301
|
return _context.abrupt("return", {
|
3285
3302
|
txHash: txHash,
|
3286
|
-
disputeId: BigInt(
|
3303
|
+
disputeId: BigInt(targetLogs[0].args.disputeId).toString()
|
3287
3304
|
});
|
3288
3305
|
case 13:
|
3289
3306
|
return _context.abrupt("return", {
|
@@ -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 =
|
2050
|
+
_context.prev = 5;
|
2050
2051
|
_iterator.s();
|
2051
|
-
case
|
2052
|
+
case 7:
|
2052
2053
|
if ((_step = _iterator.n()).done) {
|
2053
|
-
_context.next =
|
2054
|
+
_context.next = 21;
|
2054
2055
|
break;
|
2055
2056
|
}
|
2056
2057
|
log = _step.value;
|
2057
|
-
_context.prev =
|
2058
|
-
|
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
|
-
|
2065
|
-
_context.
|
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.
|
2076
|
-
|
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
|
2079
|
-
_context.prev =
|
2088
|
+
case 26:
|
2089
|
+
_context.prev = 26;
|
2080
2090
|
_iterator.f();
|
2081
|
-
return _context.finish(
|
2082
|
-
case
|
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
|
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, [[
|
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,
|
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
|
-
|
2299
|
+
targetLogs = _context.sent;
|
2284
2300
|
return _context.abrupt("return", {
|
2285
2301
|
txHash: txHash,
|
2286
|
-
ipId:
|
2302
|
+
ipId: targetLogs[0].args.ipId
|
2287
2303
|
});
|
2288
2304
|
case 20:
|
2289
2305
|
return _context.abrupt("return", {
|
@@ -2326,7 +2342,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
2326
2342
|
key: "registerDerivativeIp",
|
2327
2343
|
value: function () {
|
2328
2344
|
var _registerDerivativeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
2329
|
-
var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash,
|
2345
|
+
var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLogs;
|
2330
2346
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2331
2347
|
while (1) switch (_context2.prev = _context2.next) {
|
2332
2348
|
case 0:
|
@@ -2375,10 +2391,10 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
2375
2391
|
eventName: "IPRegistered"
|
2376
2392
|
}));
|
2377
2393
|
case 21:
|
2378
|
-
|
2394
|
+
targetLogs = _context2.sent;
|
2379
2395
|
return _context2.abrupt("return", {
|
2380
2396
|
txHash: txHash,
|
2381
|
-
ipId:
|
2397
|
+
ipId: targetLogs[0].args.ipId
|
2382
2398
|
});
|
2383
2399
|
case 25:
|
2384
2400
|
return _context2.abrupt("return", {
|
@@ -2574,7 +2590,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
2574
2590
|
key: "mintLicense",
|
2575
2591
|
value: function () {
|
2576
2592
|
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,
|
2593
|
+
var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLogs;
|
2578
2594
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2579
2595
|
while (1) switch (_context.prev = _context.next) {
|
2580
2596
|
case 0:
|
@@ -2617,13 +2633,14 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
2617
2633
|
}
|
2618
2634
|
_context.next = 16;
|
2619
2635
|
return waitTxAndFilterLog(this.rpcClient, txHash, _objectSpread2(_objectSpread2({}, this.licenseRegistryConfig), {}, {
|
2620
|
-
eventName: "TransferSingle"
|
2636
|
+
eventName: "TransferSingle",
|
2637
|
+
from: this.licenseRegistryConfig.address
|
2621
2638
|
}));
|
2622
2639
|
case 16:
|
2623
|
-
|
2640
|
+
targetLogs = _context.sent;
|
2624
2641
|
return _context.abrupt("return", {
|
2625
2642
|
txHash: txHash,
|
2626
|
-
licenseId:
|
2643
|
+
licenseId: targetLogs[0].args.id.toString()
|
2627
2644
|
});
|
2628
2645
|
case 20:
|
2629
2646
|
return _context.abrupt("return", {
|
@@ -2758,7 +2775,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2758
2775
|
key: "registerPILPolicy",
|
2759
2776
|
value: function () {
|
2760
2777
|
var _registerPILPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
|
2761
|
-
var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash,
|
2778
|
+
var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLogs;
|
2762
2779
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2763
2780
|
while (1) switch (_context.prev = _context.next) {
|
2764
2781
|
case 0:
|
@@ -2836,10 +2853,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2836
2853
|
eventName: "PolicyRegistered"
|
2837
2854
|
}));
|
2838
2855
|
case 17:
|
2839
|
-
|
2856
|
+
targetLogs = _context.sent;
|
2840
2857
|
return _context.abrupt("return", {
|
2841
2858
|
txHash: txHash,
|
2842
|
-
policyId:
|
2859
|
+
policyId: targetLogs[0].args.policyId.toString()
|
2843
2860
|
});
|
2844
2861
|
case 21:
|
2845
2862
|
return _context.abrupt("return", {
|
@@ -2957,7 +2974,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2957
2974
|
targetLog = _context2.sent;
|
2958
2975
|
return _context2.abrupt("return", {
|
2959
2976
|
txHash: txHash,
|
2960
|
-
policyId: targetLog
|
2977
|
+
policyId: targetLog[0].args.policyId.toString()
|
2961
2978
|
});
|
2962
2979
|
case 21:
|
2963
2980
|
return _context2.abrupt("return", {
|
@@ -2997,7 +3014,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2997
3014
|
key: "registerPILCommercialUsePolicy",
|
2998
3015
|
value: function () {
|
2999
3016
|
var _registerPILCommercialUsePolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
|
3000
|
-
var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash,
|
3017
|
+
var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLogs;
|
3001
3018
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
3002
3019
|
while (1) switch (_context3.prev = _context3.next) {
|
3003
3020
|
case 0:
|
@@ -3075,10 +3092,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3075
3092
|
eventName: "PolicyRegistered"
|
3076
3093
|
}));
|
3077
3094
|
case 17:
|
3078
|
-
|
3095
|
+
targetLogs = _context3.sent;
|
3079
3096
|
return _context3.abrupt("return", {
|
3080
3097
|
txHash: txHash,
|
3081
|
-
policyId:
|
3098
|
+
policyId: targetLogs[0].args.policyId.toString()
|
3082
3099
|
});
|
3083
3100
|
case 21:
|
3084
3101
|
return _context3.abrupt("return", {
|
@@ -3157,7 +3174,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3157
3174
|
key: "addPolicyToIp",
|
3158
3175
|
value: function () {
|
3159
3176
|
var _addPolicyToIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
|
3160
|
-
var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash,
|
3177
|
+
var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLogs;
|
3161
3178
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
3162
3179
|
while (1) switch (_context5.prev = _context5.next) {
|
3163
3180
|
case 0:
|
@@ -3192,10 +3209,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3192
3209
|
eventName: "PolicyAddedToIpId"
|
3193
3210
|
}));
|
3194
3211
|
case 12:
|
3195
|
-
|
3212
|
+
targetLogs = _context5.sent;
|
3196
3213
|
return _context5.abrupt("return", {
|
3197
3214
|
txHash: txHash,
|
3198
|
-
index:
|
3215
|
+
index: targetLogs[0].args.index.toString()
|
3199
3216
|
});
|
3200
3217
|
case 16:
|
3201
3218
|
return _context5.abrupt("return", {
|
@@ -3251,7 +3268,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
3251
3268
|
key: "raiseDispute",
|
3252
3269
|
value: function () {
|
3253
3270
|
var _raiseDispute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
|
3254
|
-
var _request$txOptions, _yield$this$rpcClient, call, txHash,
|
3271
|
+
var _request$txOptions, _yield$this$rpcClient, call, txHash, targetLogs;
|
3255
3272
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
3256
3273
|
while (1) switch (_context.prev = _context.next) {
|
3257
3274
|
case 0:
|
@@ -3280,10 +3297,10 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
3280
3297
|
eventName: "DisputeRaised"
|
3281
3298
|
}));
|
3282
3299
|
case 11:
|
3283
|
-
|
3300
|
+
targetLogs = _context.sent;
|
3284
3301
|
return _context.abrupt("return", {
|
3285
3302
|
txHash: txHash,
|
3286
|
-
disputeId: BigInt(
|
3303
|
+
disputeId: BigInt(targetLogs[0].args.disputeId).toString()
|
3287
3304
|
});
|
3288
3305
|
case 13:
|
3289
3306
|
return _context.abrupt("return", {
|
@@ -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 =
|
2023
|
+
_context.prev = 5;
|
2023
2024
|
_iterator.s();
|
2024
|
-
case
|
2025
|
+
case 7:
|
2025
2026
|
if ((_step = _iterator.n()).done) {
|
2026
|
-
_context.next =
|
2027
|
+
_context.next = 21;
|
2027
2028
|
break;
|
2028
2029
|
}
|
2029
2030
|
log = _step.value;
|
2030
|
-
_context.prev =
|
2031
|
-
|
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
|
-
|
2038
|
-
_context.
|
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.
|
2049
|
-
|
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
|
2052
|
-
_context.prev =
|
2061
|
+
case 26:
|
2062
|
+
_context.prev = 26;
|
2053
2063
|
_iterator.f();
|
2054
|
-
return _context.finish(
|
2055
|
-
case
|
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
|
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, [[
|
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,
|
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
|
-
|
2272
|
+
targetLogs = _context.sent;
|
2257
2273
|
return _context.abrupt("return", {
|
2258
2274
|
txHash: txHash,
|
2259
|
-
ipId:
|
2275
|
+
ipId: targetLogs[0].args.ipId
|
2260
2276
|
});
|
2261
2277
|
case 20:
|
2262
2278
|
return _context.abrupt("return", {
|
@@ -2299,7 +2315,7 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
2299
2315
|
key: "registerDerivativeIp",
|
2300
2316
|
value: function () {
|
2301
2317
|
var _registerDerivativeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
2302
|
-
var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash,
|
2318
|
+
var _request$txOptions2, ipId, licenseIds, royaltyContext, _yield$this$rpcClient2, call, txHash, targetLogs;
|
2303
2319
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2304
2320
|
while (1) switch (_context2.prev = _context2.next) {
|
2305
2321
|
case 0:
|
@@ -2348,10 +2364,10 @@ var IPAssetClient = /*#__PURE__*/function () {
|
|
2348
2364
|
eventName: "IPRegistered"
|
2349
2365
|
}));
|
2350
2366
|
case 21:
|
2351
|
-
|
2367
|
+
targetLogs = _context2.sent;
|
2352
2368
|
return _context2.abrupt("return", {
|
2353
2369
|
txHash: txHash,
|
2354
|
-
ipId:
|
2370
|
+
ipId: targetLogs[0].args.ipId
|
2355
2371
|
});
|
2356
2372
|
case 25:
|
2357
2373
|
return _context2.abrupt("return", {
|
@@ -2547,7 +2563,7 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
2547
2563
|
key: "mintLicense",
|
2548
2564
|
value: function () {
|
2549
2565
|
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,
|
2566
|
+
var _request$txOptions, royaltyContext, royaltyPolicy, _royaltyContext$targe, _royaltyContext$targe2, targetRoyaltyAmount, _yield$this$rpcClient, call, txHash, targetLogs;
|
2551
2567
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2552
2568
|
while (1) switch (_context.prev = _context.next) {
|
2553
2569
|
case 0:
|
@@ -2590,13 +2606,14 @@ var LicenseClient = /*#__PURE__*/function () {
|
|
2590
2606
|
}
|
2591
2607
|
_context.next = 16;
|
2592
2608
|
return waitTxAndFilterLog(this.rpcClient, txHash, _objectSpread2(_objectSpread2({}, this.licenseRegistryConfig), {}, {
|
2593
|
-
eventName: "TransferSingle"
|
2609
|
+
eventName: "TransferSingle",
|
2610
|
+
from: this.licenseRegistryConfig.address
|
2594
2611
|
}));
|
2595
2612
|
case 16:
|
2596
|
-
|
2613
|
+
targetLogs = _context.sent;
|
2597
2614
|
return _context.abrupt("return", {
|
2598
2615
|
txHash: txHash,
|
2599
|
-
licenseId:
|
2616
|
+
licenseId: targetLogs[0].args.id.toString()
|
2600
2617
|
});
|
2601
2618
|
case 20:
|
2602
2619
|
return _context.abrupt("return", {
|
@@ -2731,7 +2748,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2731
2748
|
key: "registerPILPolicy",
|
2732
2749
|
value: function () {
|
2733
2750
|
var _registerPILPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
|
2734
|
-
var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash,
|
2751
|
+
var _request$txOptions, frameworkData, policyId, _yield$this$rpcClient, call, txHash, targetLogs;
|
2735
2752
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2736
2753
|
while (1) switch (_context.prev = _context.next) {
|
2737
2754
|
case 0:
|
@@ -2809,10 +2826,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2809
2826
|
eventName: "PolicyRegistered"
|
2810
2827
|
}));
|
2811
2828
|
case 17:
|
2812
|
-
|
2829
|
+
targetLogs = _context.sent;
|
2813
2830
|
return _context.abrupt("return", {
|
2814
2831
|
txHash: txHash,
|
2815
|
-
policyId:
|
2832
|
+
policyId: targetLogs[0].args.policyId.toString()
|
2816
2833
|
});
|
2817
2834
|
case 21:
|
2818
2835
|
return _context.abrupt("return", {
|
@@ -2930,7 +2947,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2930
2947
|
targetLog = _context2.sent;
|
2931
2948
|
return _context2.abrupt("return", {
|
2932
2949
|
txHash: txHash,
|
2933
|
-
policyId: targetLog
|
2950
|
+
policyId: targetLog[0].args.policyId.toString()
|
2934
2951
|
});
|
2935
2952
|
case 21:
|
2936
2953
|
return _context2.abrupt("return", {
|
@@ -2970,7 +2987,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
2970
2987
|
key: "registerPILCommercialUsePolicy",
|
2971
2988
|
value: function () {
|
2972
2989
|
var _registerPILCommercialUsePolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(request) {
|
2973
|
-
var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash,
|
2990
|
+
var _request$txOptions3, frameworkData, policyId, _yield$this$rpcClient3, call, txHash, targetLogs;
|
2974
2991
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2975
2992
|
while (1) switch (_context3.prev = _context3.next) {
|
2976
2993
|
case 0:
|
@@ -3048,10 +3065,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3048
3065
|
eventName: "PolicyRegistered"
|
3049
3066
|
}));
|
3050
3067
|
case 17:
|
3051
|
-
|
3068
|
+
targetLogs = _context3.sent;
|
3052
3069
|
return _context3.abrupt("return", {
|
3053
3070
|
txHash: txHash,
|
3054
|
-
policyId:
|
3071
|
+
policyId: targetLogs[0].args.policyId.toString()
|
3055
3072
|
});
|
3056
3073
|
case 21:
|
3057
3074
|
return _context3.abrupt("return", {
|
@@ -3130,7 +3147,7 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3130
3147
|
key: "addPolicyToIp",
|
3131
3148
|
value: function () {
|
3132
3149
|
var _addPolicyToIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(request) {
|
3133
|
-
var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash,
|
3150
|
+
var _request$txOptions4, IPAccountConfig, _yield$this$rpcClient4, call, txHash, targetLogs;
|
3134
3151
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
3135
3152
|
while (1) switch (_context5.prev = _context5.next) {
|
3136
3153
|
case 0:
|
@@ -3165,10 +3182,10 @@ var PolicyClient = /*#__PURE__*/function () {
|
|
3165
3182
|
eventName: "PolicyAddedToIpId"
|
3166
3183
|
}));
|
3167
3184
|
case 12:
|
3168
|
-
|
3185
|
+
targetLogs = _context5.sent;
|
3169
3186
|
return _context5.abrupt("return", {
|
3170
3187
|
txHash: txHash,
|
3171
|
-
index:
|
3188
|
+
index: targetLogs[0].args.index.toString()
|
3172
3189
|
});
|
3173
3190
|
case 16:
|
3174
3191
|
return _context5.abrupt("return", {
|
@@ -3224,7 +3241,7 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
3224
3241
|
key: "raiseDispute",
|
3225
3242
|
value: function () {
|
3226
3243
|
var _raiseDispute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request) {
|
3227
|
-
var _request$txOptions, _yield$this$rpcClient, call, txHash,
|
3244
|
+
var _request$txOptions, _yield$this$rpcClient, call, txHash, targetLogs;
|
3228
3245
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
3229
3246
|
while (1) switch (_context.prev = _context.next) {
|
3230
3247
|
case 0:
|
@@ -3253,10 +3270,10 @@ var DisputeClient = /*#__PURE__*/function () {
|
|
3253
3270
|
eventName: "DisputeRaised"
|
3254
3271
|
}));
|
3255
3272
|
case 11:
|
3256
|
-
|
3273
|
+
targetLogs = _context.sent;
|
3257
3274
|
return _context.abrupt("return", {
|
3258
3275
|
txHash: txHash,
|
3259
|
-
disputeId: BigInt(
|
3276
|
+
disputeId: BigInt(targetLogs[0].args.disputeId).toString()
|
3260
3277
|
});
|
3261
3278
|
case 13:
|
3262
3279
|
return _context.abrupt("return", {
|
package/package.json
CHANGED