@story-protocol/core-sdk 0.1.0-alpha-rc.1 → 0.1.0-alpha-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +2 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/hookReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +1 -1
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipOrg.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipOrgReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/resources/licenseReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/resources/moduleReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/resources/relationship.d.ts.map +1 -1
- package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +1 -5
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/relationship.d.ts +0 -2
- package/dist/declarations/src/types/resources/relationship.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +84 -85
- package/dist/story-protocol-core-sdk.cjs.prod.js +84 -85
- package/dist/story-protocol-core-sdk.esm.js +86 -86
- package/package.json +2 -2
- package/dist/declarations/src/enums/Environment.d.ts +0 -8
- package/dist/declarations/src/enums/Environment.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,0BAAuB;
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EA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,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,GAAG,cAAc;IAIrE;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;IAI7C,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,IAAW,KAAK,IAAI,WAAW,GAAG,mBAAmB,CAMpD;IAED;;;;;OAKG;IACH,IAAW,YAAY,IAAI,kBAAkB,GAAG,0BAA0B,CAMzE;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,GAAG,qBAAqB,CAK1D;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,GAAG,qBAAqB,CAM1D;IAED;;;;;OAKG;IACH,IAAW,WAAW,IAAI,iBAAiB,GAAG,yBAAyB,CAMtE;IAED;;;;;OAKG;IACH,IAAW,MAAM,IAAI,YAAY,GAAG,oBAAoB,CAMvD;IAED;;;;;OAKG;IACH,IAAW,IAAI,IAAI,UAAU,GAAG,kBAAkB,CAMjD;IAED,IAAW,QAAQ,IAAI,cAAc,CAMpC;CACF"}
|
@@ -1,13 +1,12 @@
|
|
1
1
|
export { StoryClient } from "./client.js";
|
2
|
-
export { Environment } from "./enums/Environment.js";
|
3
2
|
export { IPAssetType } from "./enums/IPAssetType.js";
|
4
3
|
export { ResourceType } from "./enums/ResourceType.js";
|
5
4
|
export type { StoryConfig, StoryReadOnlyConfig } from "./types/config.js";
|
6
|
-
export type { IPOrg, GetIPOrgRequest, GetIPOrgResponse, CreateIPOrgRequest, CreateIPOrgResponse, ListIPOrgResponse, } from "./types/resources/IPOrg.js";
|
5
|
+
export type { IPOrg, GetIPOrgRequest, GetIPOrgResponse, CreateIPOrgRequest, CreateIPOrgResponse, ListIPOrgRequest, ListIPOrgResponse, } from "./types/resources/IPOrg.js";
|
7
6
|
export type { IPAsset, GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse, } from "./types/resources/ipAsset.js";
|
8
7
|
export type { License, GetLicenseRequest, GetLicenseResponse, CreateLicenseNftRequest, CreateIpaBoundLicenseRequest, CreateLicenseResponse, ListLicenseRequest, ListLicenseResponse, } from "./types/resources/license.js";
|
9
8
|
export type { Relationship, RegisterRelationshipRequest, RegisterRelationshipResponse, ListRelationshipRequest, ListRelationshipResponse, GetRelationshipRequest, GetRelationshipResponse, RegisterRelationshipTypeRequest, RegisterRelationshipTypeResponse, } from "./types/resources/relationship.js";
|
10
|
-
export type { Transaction, GetTransactionRequest, GetTransactionResponse, ListTransactionResponse, } from "./types/resources/transaction.js";
|
9
|
+
export type { Transaction, GetTransactionRequest, GetTransactionResponse, ListTransactionRequest, ListTransactionResponse, } from "./types/resources/transaction.js";
|
11
10
|
export type { Module, GetModuleRequest, GetModuleResponse, ListModuleRequest, ListModuleResponse, } from "./types/resources/module.js";
|
12
11
|
export type { Hook, GetHookRequest, GetHookResponse, ListHookRequest, ListHookResponse, } from "./types/resources/hook.js";
|
13
12
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AAEpD,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,0BAAuB;AAEvE,YAAY,EACV,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GAClB,mCAAgC;AAEjC,YAAY,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,qCAAkC;AAEnC,YAAY,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,qCAAkC;AAEnC,YAAY,EACV,YAAY,EACZ,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,gCAAgC,GACjC,0CAAuC;AAExC,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,GACxB,yCAAsC;AAEvC,YAAY,EACV,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,GACnB,oCAAiC;AAElC,YAAY,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,kCAA+B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hookReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["hookReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
1
|
+
{"version":3,"file":"hookReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["hookReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EACjB,mCAAgC;AAEjC;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IASnE;;;;;OAKG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAexE"}
|
@@ -20,6 +20,6 @@ export declare class IPAssetReadOnlyClient {
|
|
20
20
|
*
|
21
21
|
* @returns the response object that contains results from listing query.
|
22
22
|
*/
|
23
|
-
list(request
|
23
|
+
list(request?: ListIpAssetRequest): Promise<ListIpAssetResponse>;
|
24
24
|
}
|
25
25
|
//# sourceMappingURL=ipAssetReadOnly.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAssetReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAssetReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAIpC;;GAEG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAazE;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"ipAssetReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAssetReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAIpC;;GAEG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAazE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAW9E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipOrg.d.ts","sourceRoot":"../../../../src/resources","sources":["ipOrg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,YAAY,EAAE,YAAY,
|
1
|
+
{"version":3,"file":"ipOrg.d.ts","sourceRoot":"../../../../src/resources","sources":["ipOrg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oCAAiC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,2BAAwB;AAKtD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,mBAAmB;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKpF;;;;;OAKG;IACU,MAAM,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA4B/E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipOrgReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipOrgReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAa,YAAY,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAClB,oCAAiC;AAGlC;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAYrE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"ipOrgReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipOrgReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAa,YAAY,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAClB,oCAAiC;AAGlC;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAYrE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAW1E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"licenseReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["licenseReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAIpC;;;;GAIG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgBzE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"licenseReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["licenseReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAIpC;;;;GAIG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgBzE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAiB9E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moduleReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["moduleReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
1
|
+
{"version":3,"file":"moduleReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["moduleReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,qCAAkC;AAEnC;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IASvE;;;;;OAKG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAe5E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../src/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC7B,2CAAwC;AAEzC,OAAO,EAAE,0BAA0B,EAAE,kCAA+B;AAKpE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,0BAA0B;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKpF;;;;;OAKG;IACU,QAAQ,CACnB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../src/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC7B,2CAAwC;AAEzC,OAAO,EAAE,0BAA0B,EAAE,kCAA+B;AAKpE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,0BAA0B;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKpF;;;;;OAKG;IACU,QAAQ,CACnB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAoCxC;;;;;OAKG;IACU,wBAAwB,CACnC,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,gCAAgC,CAAC;CAmC7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactionReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["transactionReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
1
|
+
{"version":3,"file":"transactionReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["transactionReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,0CAAuC;AAExC;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASjF;;;;;OAKG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAWtF"}
|
@@ -1,17 +1,13 @@
|
|
1
1
|
import { Account, Chain, Transport } from "viem";
|
2
|
-
import { Environment } from "../enums/Environment.js";
|
3
2
|
/**
|
4
3
|
* Configuration for the SDK Client.
|
5
4
|
*
|
6
5
|
* @public
|
7
6
|
*/
|
8
|
-
export interface StoryCommonConfig {
|
9
|
-
readonly environment: Environment;
|
10
|
-
}
|
11
7
|
export interface StoryConfig extends StoryReadOnlyConfig {
|
12
8
|
readonly account: Account;
|
13
9
|
}
|
14
|
-
export interface StoryReadOnlyConfig
|
10
|
+
export interface StoryReadOnlyConfig {
|
15
11
|
readonly chain?: Chain;
|
16
12
|
readonly transport?: Transport;
|
17
13
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjD
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;CAChC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B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AM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
|
@@ -111,10 +111,8 @@ export type RegisterRelationshipRequest = {
|
|
111
111
|
relType: string;
|
112
112
|
srcContract: string;
|
113
113
|
srcTokenId: string;
|
114
|
-
srcType?: string;
|
115
114
|
dstContract: string;
|
116
115
|
dstTokenId: string;
|
117
|
-
dstType?: string;
|
118
116
|
preHookData: Record<string, unknown>[];
|
119
117
|
postHookData: Record<string, unknown>[];
|
120
118
|
txOptions?: TxOptions;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;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IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD,MAAM,EAAE,OAAO,CAAC;C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
/**
|
112
|
-
* @public
|
113
|
-
*/
|
114
|
-
var Environment = /*#__PURE__*/function (Environment) {
|
115
|
-
Environment["TEST"] = "TEST";
|
116
|
-
Environment["PROD"] = "PROD";
|
117
|
-
return Environment;
|
118
|
-
}({});
|
119
|
-
|
120
111
|
function _regeneratorRuntime() {
|
121
112
|
_regeneratorRuntime = function () {
|
122
113
|
return e;
|
@@ -598,20 +589,23 @@ var IPOrgReadOnlyClient = /*#__PURE__*/function () {
|
|
598
589
|
while (1) switch (_context2.prev = _context2.next) {
|
599
590
|
case 0:
|
600
591
|
_context2.prev = 0;
|
601
|
-
|
592
|
+
if (!request) {
|
593
|
+
request = {};
|
594
|
+
}
|
595
|
+
_context2.next = 4;
|
602
596
|
return this.httpClient.post("/protocol/iporg", request);
|
603
|
-
case
|
597
|
+
case 4:
|
604
598
|
response = _context2.sent;
|
605
599
|
return _context2.abrupt("return", response.data);
|
606
|
-
case
|
607
|
-
_context2.prev =
|
600
|
+
case 8:
|
601
|
+
_context2.prev = 8;
|
608
602
|
_context2.t0 = _context2["catch"](0);
|
609
603
|
handleError(_context2.t0, "Failed to list IPOrgs.");
|
610
|
-
case
|
604
|
+
case 11:
|
611
605
|
case "end":
|
612
606
|
return _context2.stop();
|
613
607
|
}
|
614
|
-
}, _callee2, this, [[0,
|
608
|
+
}, _callee2, this, [[0, 8]]);
|
615
609
|
}));
|
616
610
|
function list(_x2) {
|
617
611
|
return _list.apply(this, arguments);
|
@@ -739,14 +733,14 @@ var storyProtocolAbi = [{
|
|
739
733
|
internalType: "address",
|
740
734
|
name: "owner",
|
741
735
|
type: "address"
|
736
|
+
}, {
|
737
|
+
internalType: "uint8",
|
738
|
+
name: "ipOrgAssetType",
|
739
|
+
type: "uint8"
|
742
740
|
}, {
|
743
741
|
internalType: "string",
|
744
742
|
name: "name",
|
745
743
|
type: "string"
|
746
|
-
}, {
|
747
|
-
internalType: "uint64",
|
748
|
-
name: "ipAssetType",
|
749
|
-
type: "uint64"
|
750
744
|
}, {
|
751
745
|
internalType: "bytes32",
|
752
746
|
name: "hash",
|
@@ -838,10 +832,6 @@ var storyProtocolAbi = [{
|
|
838
832
|
internalType: "uint256",
|
839
833
|
name: "srcId",
|
840
834
|
type: "uint256"
|
841
|
-
}, {
|
842
|
-
internalType: "uint8",
|
843
|
-
name: "srcType",
|
844
|
-
type: "uint8"
|
845
835
|
}, {
|
846
836
|
internalType: "address",
|
847
837
|
name: "dstAddress",
|
@@ -850,10 +840,6 @@ var storyProtocolAbi = [{
|
|
850
840
|
internalType: "uint256",
|
851
841
|
name: "dstId",
|
852
842
|
type: "uint256"
|
853
|
-
}, {
|
854
|
-
internalType: "uint8",
|
855
|
-
name: "dstType",
|
856
|
-
type: "uint8"
|
857
843
|
}],
|
858
844
|
internalType: "struct LibRelationship.CreateRelationshipParams",
|
859
845
|
name: "params_",
|
@@ -904,23 +890,28 @@ var ipOrgControllerAbi = [{
|
|
904
890
|
inputs: [{
|
905
891
|
indexed: false,
|
906
892
|
internalType: "address",
|
907
|
-
name: "
|
893
|
+
name: "owner",
|
908
894
|
type: "address"
|
909
895
|
}, {
|
910
896
|
indexed: false,
|
911
897
|
internalType: "address",
|
912
|
-
name: "
|
898
|
+
name: "ipAssetOrg",
|
913
899
|
type: "address"
|
914
900
|
}, {
|
915
901
|
indexed: false,
|
916
902
|
internalType: "string",
|
917
|
-
name: "
|
903
|
+
name: "name",
|
918
904
|
type: "string"
|
919
905
|
}, {
|
920
906
|
indexed: false,
|
921
907
|
internalType: "string",
|
922
|
-
name: "
|
908
|
+
name: "symbol",
|
923
909
|
type: "string"
|
910
|
+
}, {
|
911
|
+
indexed: false,
|
912
|
+
internalType: "string[]",
|
913
|
+
name: "ipAssetTypes",
|
914
|
+
type: "string[]"
|
924
915
|
}],
|
925
916
|
name: "IPOrgRegistered",
|
926
917
|
type: "event"
|
@@ -1128,7 +1119,7 @@ var IPOrgClient = /*#__PURE__*/function (_IPOrgReadOnlyClient) {
|
|
1128
1119
|
_context.next = 3;
|
1129
1120
|
return this.rpcClient.simulateContract(_objectSpread2(_objectSpread2({}, storyProtocolConfig), {}, {
|
1130
1121
|
functionName: "registerIpOrg",
|
1131
|
-
args: [viem.getAddress(request.owner ||
|
1122
|
+
args: [viem.getAddress(request.owner || this.wallet.account.address), request.name, request.symbol, request.ipAssetTypes],
|
1132
1123
|
account: this.wallet.account
|
1133
1124
|
}));
|
1134
1125
|
case 3:
|
@@ -1150,7 +1141,7 @@ var IPOrgClient = /*#__PURE__*/function (_IPOrgReadOnlyClient) {
|
|
1150
1141
|
targetLog = _context.sent;
|
1151
1142
|
return _context.abrupt("return", {
|
1152
1143
|
txHash: txHash,
|
1153
|
-
ipOrgId: targetLog.args.
|
1144
|
+
ipOrgId: targetLog.args.ipAssetOrg
|
1154
1145
|
});
|
1155
1146
|
case 15:
|
1156
1147
|
return _context.abrupt("return", {
|
@@ -1337,20 +1328,23 @@ var IPAssetReadOnlyClient = /*#__PURE__*/function () {
|
|
1337
1328
|
while (1) switch (_context2.prev = _context2.next) {
|
1338
1329
|
case 0:
|
1339
1330
|
_context2.prev = 0;
|
1340
|
-
|
1331
|
+
if (!request) {
|
1332
|
+
request = {};
|
1333
|
+
}
|
1334
|
+
_context2.next = 4;
|
1341
1335
|
return this.httpClient.post("/protocol/ipasset", request);
|
1342
|
-
case
|
1336
|
+
case 4:
|
1343
1337
|
response = _context2.sent;
|
1344
1338
|
return _context2.abrupt("return", response.data);
|
1345
|
-
case
|
1346
|
-
_context2.prev =
|
1339
|
+
case 8:
|
1340
|
+
_context2.prev = 8;
|
1347
1341
|
_context2.t0 = _context2["catch"](0);
|
1348
1342
|
handleError(_context2.t0, "Failed to list IP Asset.");
|
1349
|
-
case
|
1343
|
+
case 11:
|
1350
1344
|
case "end":
|
1351
1345
|
return _context2.stop();
|
1352
1346
|
}
|
1353
|
-
}, _callee2, this, [[0,
|
1347
|
+
}, _callee2, this, [[0, 8]]);
|
1354
1348
|
}));
|
1355
1349
|
function list(_x2) {
|
1356
1350
|
return _list.apply(this, arguments);
|
@@ -1393,9 +1387,9 @@ var registrationModuleAbi = [{
|
|
1393
1387
|
type: "string"
|
1394
1388
|
}, {
|
1395
1389
|
indexed: true,
|
1396
|
-
internalType: "
|
1397
|
-
name: "
|
1398
|
-
type: "
|
1390
|
+
internalType: "uint8",
|
1391
|
+
name: "ipOrgAssetType_",
|
1392
|
+
type: "uint8"
|
1399
1393
|
}, {
|
1400
1394
|
indexed: false,
|
1401
1395
|
internalType: "bytes32",
|
@@ -1449,9 +1443,9 @@ var IPAssetClient = /*#__PURE__*/function (_IPAssetReadOnlyClien) {
|
|
1449
1443
|
return this.rpcClient.simulateContract(_objectSpread2(_objectSpread2({}, storyProtocolConfig), {}, {
|
1450
1444
|
functionName: "registerIPAsset",
|
1451
1445
|
args: [viem.getAddress(request.ipOrgId), {
|
1452
|
-
owner: viem.getAddress(request.owner),
|
1446
|
+
owner: viem.getAddress(request.owner || this.wallet.account.address),
|
1453
1447
|
name: request.name,
|
1454
|
-
|
1448
|
+
ipOrgAssetType: parseToBigInt(request.type),
|
1455
1449
|
hash: viem.toHex(request.contentHash || "", {
|
1456
1450
|
size: 32
|
1457
1451
|
}),
|
@@ -1568,31 +1562,34 @@ var LicenseReadOnlyClient = /*#__PURE__*/function () {
|
|
1568
1562
|
key: "list",
|
1569
1563
|
value: function () {
|
1570
1564
|
var _list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
1571
|
-
var response;
|
1565
|
+
var _request, _request2, _request3, response;
|
1572
1566
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1573
1567
|
while (1) switch (_context2.prev = _context2.next) {
|
1574
1568
|
case 0:
|
1575
1569
|
_context2.prev = 0;
|
1576
|
-
|
1570
|
+
if (!request) {
|
1571
|
+
request = {};
|
1572
|
+
}
|
1573
|
+
_context2.next = 4;
|
1577
1574
|
return this.httpClient.post("/protocol/license", request, {
|
1578
1575
|
params: {
|
1579
|
-
ipOrgId: request === null ||
|
1580
|
-
ipAssetId: request === null ||
|
1581
|
-
options: request === null ||
|
1576
|
+
ipOrgId: (_request = request) === null || _request === void 0 ? void 0 : _request.ipOrgId,
|
1577
|
+
ipAssetId: (_request2 = request) === null || _request2 === void 0 ? void 0 : _request2.ipAssetId,
|
1578
|
+
options: (_request3 = request) === null || _request3 === void 0 ? void 0 : _request3.options
|
1582
1579
|
}
|
1583
1580
|
});
|
1584
|
-
case
|
1581
|
+
case 4:
|
1585
1582
|
response = _context2.sent;
|
1586
1583
|
return _context2.abrupt("return", response.data);
|
1587
|
-
case
|
1588
|
-
_context2.prev =
|
1584
|
+
case 8:
|
1585
|
+
_context2.prev = 8;
|
1589
1586
|
_context2.t0 = _context2["catch"](0);
|
1590
1587
|
handleError(_context2.t0, "Failed to get licenses");
|
1591
|
-
case
|
1588
|
+
case 11:
|
1592
1589
|
case "end":
|
1593
1590
|
return _context2.stop();
|
1594
1591
|
}
|
1595
|
-
}, _callee2, this, [[0,
|
1592
|
+
}, _callee2, this, [[0, 8]]);
|
1596
1593
|
}));
|
1597
1594
|
function list(_x2) {
|
1598
1595
|
return _list.apply(this, arguments);
|
@@ -1664,20 +1661,23 @@ var TransactionReadOnlyClient = /*#__PURE__*/function () {
|
|
1664
1661
|
while (1) switch (_context2.prev = _context2.next) {
|
1665
1662
|
case 0:
|
1666
1663
|
_context2.prev = 0;
|
1667
|
-
|
1664
|
+
if (!request) {
|
1665
|
+
request = {};
|
1666
|
+
}
|
1667
|
+
_context2.next = 4;
|
1668
1668
|
return this.httpClient.post("/protocol/transaction", request);
|
1669
|
-
case
|
1669
|
+
case 4:
|
1670
1670
|
response = _context2.sent;
|
1671
1671
|
return _context2.abrupt("return", response.data);
|
1672
|
-
case
|
1673
|
-
_context2.prev =
|
1672
|
+
case 8:
|
1673
|
+
_context2.prev = 8;
|
1674
1674
|
_context2.t0 = _context2["catch"](0);
|
1675
1675
|
handleError(_context2.t0, "Failed to get transactions");
|
1676
|
-
case
|
1676
|
+
case 11:
|
1677
1677
|
case "end":
|
1678
1678
|
return _context2.stop();
|
1679
1679
|
}
|
1680
|
-
}, _callee2, this, [[0,
|
1680
|
+
}, _callee2, this, [[0, 8]]);
|
1681
1681
|
}));
|
1682
1682
|
function list(_x2) {
|
1683
1683
|
return _list.apply(this, arguments);
|
@@ -1766,29 +1766,32 @@ var ModuleReadOnlyClient = /*#__PURE__*/function () {
|
|
1766
1766
|
key: "list",
|
1767
1767
|
value: function () {
|
1768
1768
|
var _list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
1769
|
-
var response;
|
1769
|
+
var _request, response;
|
1770
1770
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1771
1771
|
while (1) switch (_context2.prev = _context2.next) {
|
1772
1772
|
case 0:
|
1773
1773
|
_context2.prev = 0;
|
1774
|
-
|
1774
|
+
if (!request) {
|
1775
|
+
request = {};
|
1776
|
+
}
|
1777
|
+
_context2.next = 4;
|
1775
1778
|
return this.httpClient.post("/protocol/module", request, {
|
1776
1779
|
params: {
|
1777
|
-
ipOrgId: request === null ||
|
1780
|
+
ipOrgId: (_request = request) === null || _request === void 0 ? void 0 : _request.ipOrgId
|
1778
1781
|
}
|
1779
1782
|
});
|
1780
|
-
case
|
1783
|
+
case 4:
|
1781
1784
|
response = _context2.sent;
|
1782
1785
|
return _context2.abrupt("return", response.data);
|
1783
|
-
case
|
1784
|
-
_context2.prev =
|
1786
|
+
case 8:
|
1787
|
+
_context2.prev = 8;
|
1785
1788
|
_context2.t0 = _context2["catch"](0);
|
1786
1789
|
handleError(_context2.t0, "Failed to get modules");
|
1787
|
-
case
|
1790
|
+
case 11:
|
1788
1791
|
case "end":
|
1789
1792
|
return _context2.stop();
|
1790
1793
|
}
|
1791
|
-
}, _callee2, this, [[0,
|
1794
|
+
}, _callee2, this, [[0, 8]]);
|
1792
1795
|
}));
|
1793
1796
|
function list(_x2) {
|
1794
1797
|
return _list.apply(this, arguments);
|
@@ -1872,29 +1875,32 @@ var HookReadOnlyClient = /*#__PURE__*/function () {
|
|
1872
1875
|
key: "list",
|
1873
1876
|
value: function () {
|
1874
1877
|
var _list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(request) {
|
1875
|
-
var response;
|
1878
|
+
var _request, response;
|
1876
1879
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1877
1880
|
while (1) switch (_context2.prev = _context2.next) {
|
1878
1881
|
case 0:
|
1879
1882
|
_context2.prev = 0;
|
1880
|
-
|
1883
|
+
if (!request) {
|
1884
|
+
request = {};
|
1885
|
+
}
|
1886
|
+
_context2.next = 4;
|
1881
1887
|
return this.httpClient.post("/protocol/hook", request, {
|
1882
1888
|
params: {
|
1883
|
-
moduleId: request === null ||
|
1889
|
+
moduleId: (_request = request) === null || _request === void 0 ? void 0 : _request.moduleId
|
1884
1890
|
}
|
1885
1891
|
});
|
1886
|
-
case
|
1892
|
+
case 4:
|
1887
1893
|
response = _context2.sent;
|
1888
1894
|
return _context2.abrupt("return", response.data);
|
1889
|
-
case
|
1890
|
-
_context2.prev =
|
1895
|
+
case 8:
|
1896
|
+
_context2.prev = 8;
|
1891
1897
|
_context2.t0 = _context2["catch"](0);
|
1892
1898
|
handleError(_context2.t0, "Failed to get hooks");
|
1893
|
-
case
|
1899
|
+
case 11:
|
1894
1900
|
case "end":
|
1895
1901
|
return _context2.stop();
|
1896
1902
|
}
|
1897
|
-
}, _callee2, this, [[0,
|
1903
|
+
}, _callee2, this, [[0, 8]]);
|
1898
1904
|
}));
|
1899
1905
|
function list(_x2) {
|
1900
1906
|
return _list.apply(this, arguments);
|
@@ -2232,11 +2238,8 @@ var RelationshipClient = /*#__PURE__*/function (_RelationshipReadOnly) {
|
|
2232
2238
|
relType: request.relType,
|
2233
2239
|
srcAddress: request.srcContract,
|
2234
2240
|
srcId: request.srcTokenId,
|
2235
|
-
srcType: request.srcType || 1,
|
2236
|
-
// This represents the n-th bit on the bit mask
|
2237
2241
|
dstAddress: request.dstContract,
|
2238
|
-
dstId: request.dstTokenId
|
2239
|
-
dstType: request.dstType || 1 // This represents the n-th bit on the bit mask,
|
2242
|
+
dstId: request.dstTokenId
|
2240
2243
|
}, [], []],
|
2241
2244
|
account: this.wallet.account
|
2242
2245
|
}));
|
@@ -2382,14 +2385,11 @@ var StoryClient = /*#__PURE__*/function () {
|
|
2382
2385
|
_defineProperty(this, "_module", null);
|
2383
2386
|
_defineProperty(this, "_hook", null);
|
2384
2387
|
_defineProperty(this, "_platform", null);
|
2385
|
-
if (config.environment !== Environment.TEST) {
|
2386
|
-
throw new Error("Invalid Environment: Only TEST environment is supported");
|
2387
|
-
}
|
2388
2388
|
this.config = config;
|
2389
2389
|
this.isReadOnly = isReadOnly;
|
2390
2390
|
var clientConfig = {
|
2391
2391
|
chain: this.config.chain || chains.sepolia,
|
2392
|
-
transport: this.config.transport || viem.http(
|
2392
|
+
transport: this.config.transport || viem.http(process.env.RPC_PROVIDER_URL)
|
2393
2393
|
};
|
2394
2394
|
this.rpcClient = viem.createPublicClient(clientConfig);
|
2395
2395
|
if (!isReadOnly) {
|
@@ -2644,7 +2644,6 @@ var ResourceType = /*#__PURE__*/function (ResourceType) {
|
|
2644
2644
|
return ResourceType;
|
2645
2645
|
}({});
|
2646
2646
|
|
2647
|
-
exports.Environment = Environment;
|
2648
2647
|
exports.IPAssetType = IPAssetType;
|
2649
2648
|
exports.ResourceType = ResourceType;
|
2650
2649
|
exports.StoryClient = StoryClient;
|