@ownables/core 0.1.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +47 -0
  2. package/dist/index.d.ts +21 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +20 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.test.d.ts +2 -0
  7. package/dist/index.test.d.ts.map +1 -0
  8. package/dist/index.test.js +7 -0
  9. package/dist/index.test.js.map +1 -0
  10. package/dist/interfaces/core.d.ts +53 -0
  11. package/dist/interfaces/core.d.ts.map +1 -0
  12. package/dist/interfaces/core.js +2 -0
  13. package/dist/interfaces/core.js.map +1 -0
  14. package/dist/logger.d.ts +3 -0
  15. package/dist/logger.d.ts.map +1 -0
  16. package/dist/logger.js +2 -0
  17. package/dist/logger.js.map +1 -0
  18. package/dist/ownableErrorMessage.d.ts +2 -0
  19. package/dist/ownableErrorMessage.d.ts.map +1 -0
  20. package/dist/ownableErrorMessage.js +20 -0
  21. package/dist/ownableErrorMessage.js.map +1 -0
  22. package/dist/progress.d.ts +3 -0
  23. package/dist/progress.d.ts.map +1 -0
  24. package/dist/progress.js +8 -0
  25. package/dist/progress.js.map +1 -0
  26. package/dist/services/EventChain.service.d.ts +47 -0
  27. package/dist/services/EventChain.service.d.ts.map +1 -0
  28. package/dist/services/EventChain.service.js +113 -0
  29. package/dist/services/EventChain.service.js.map +1 -0
  30. package/dist/services/Ownable.service.d.ts +60 -0
  31. package/dist/services/Ownable.service.d.ts.map +1 -0
  32. package/dist/services/Ownable.service.js +421 -0
  33. package/dist/services/Ownable.service.js.map +1 -0
  34. package/dist/services/Polling.service.d.ts +31 -0
  35. package/dist/services/Polling.service.d.ts.map +1 -0
  36. package/dist/services/Polling.service.js +109 -0
  37. package/dist/services/Polling.service.js.map +1 -0
  38. package/dist/services/SIWE.service.d.ts +16 -0
  39. package/dist/services/SIWE.service.d.ts.map +1 -0
  40. package/dist/services/SIWE.service.js +123 -0
  41. package/dist/services/SIWE.service.js.map +1 -0
  42. package/dist/services/StateStoreRecordStore.service.d.ts +13 -0
  43. package/dist/services/StateStoreRecordStore.service.d.ts.map +1 -0
  44. package/dist/services/StateStoreRecordStore.service.js +76 -0
  45. package/dist/services/StateStoreRecordStore.service.js.map +1 -0
  46. package/dist/services/WorkerRPC.service.d.ts +37 -0
  47. package/dist/services/WorkerRPC.service.d.ts.map +1 -0
  48. package/dist/services/WorkerRPC.service.js +219 -0
  49. package/dist/services/WorkerRPC.service.js.map +1 -0
  50. package/dist/services/workerSource.d.ts +2 -0
  51. package/dist/services/workerSource.d.ts.map +1 -0
  52. package/dist/services/workerSource.js +72 -0
  53. package/dist/services/workerSource.js.map +1 -0
  54. package/dist/types/Authority.d.ts +40 -0
  55. package/dist/types/Authority.d.ts.map +1 -0
  56. package/dist/types/Authority.js +2 -0
  57. package/dist/types/Authority.js.map +1 -0
  58. package/dist/types/EventChainStore.d.ts +12 -0
  59. package/dist/types/EventChainStore.d.ts.map +1 -0
  60. package/dist/types/EventChainStore.js +2 -0
  61. package/dist/types/EventChainStore.js.map +1 -0
  62. package/dist/types/MessageInfo.d.ts +19 -0
  63. package/dist/types/MessageInfo.d.ts.map +1 -0
  64. package/dist/types/MessageInfo.js +2 -0
  65. package/dist/types/MessageInfo.js.map +1 -0
  66. package/dist/types/OwnableRuntime.d.ts +40 -0
  67. package/dist/types/OwnableRuntime.d.ts.map +1 -0
  68. package/dist/types/OwnableRuntime.js +2 -0
  69. package/dist/types/OwnableRuntime.js.map +1 -0
  70. package/dist/types/Polling.d.ts +14 -0
  71. package/dist/types/Polling.d.ts.map +1 -0
  72. package/dist/types/Polling.js +2 -0
  73. package/dist/types/Polling.js.map +1 -0
  74. package/dist/types/SIWE.d.ts +30 -0
  75. package/dist/types/SIWE.d.ts.map +1 -0
  76. package/dist/types/SIWE.js +2 -0
  77. package/dist/types/SIWE.js.map +1 -0
  78. package/dist/types/TypedCosmWasmMsg.d.ts +12 -0
  79. package/dist/types/TypedCosmWasmMsg.d.ts.map +1 -0
  80. package/dist/types/TypedCosmWasmMsg.js +2 -0
  81. package/dist/types/TypedCosmWasmMsg.js.map +1 -0
  82. package/dist/types/TypedDict.d.ts +4 -0
  83. package/dist/types/TypedDict.d.ts.map +1 -0
  84. package/dist/types/TypedDict.js +2 -0
  85. package/dist/types/TypedDict.js.map +1 -0
  86. package/dist/types/TypedOwnableInfo.d.ts +34 -0
  87. package/dist/types/TypedOwnableInfo.d.ts.map +1 -0
  88. package/dist/types/TypedOwnableInfo.js +2 -0
  89. package/dist/types/TypedOwnableInfo.js.map +1 -0
  90. package/dist/types/TypedPackage.d.ts +35 -0
  91. package/dist/types/TypedPackage.d.ts.map +1 -0
  92. package/dist/types/TypedPackage.js +2 -0
  93. package/dist/types/TypedPackage.js.map +1 -0
  94. package/package.json +7 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authority.js","sourceRoot":"","sources":["../../src/types/Authority.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { IEventChainJSON } from 'eqty-core';
2
+ export interface StoredChainInfo {
3
+ chain: IEventChainJSON;
4
+ state: string;
5
+ package: string;
6
+ isConsumed?: boolean;
7
+ uniqueMessageHash: string;
8
+ created: Date;
9
+ latestHash: string;
10
+ keywords: string[];
11
+ }
12
+ //# sourceMappingURL=EventChainStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventChainStore.d.ts","sourceRoot":"","sources":["../../src/types/EventChainStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EventChainStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventChainStore.js","sourceRoot":"","sources":["../../src/types/EventChainStore.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { Binary } from "eqty-core";
2
+ export interface MessageInfo {
3
+ hash: string;
4
+ recipient: string;
5
+ sender: string | Object;
6
+ size: number;
7
+ timestamp: Date;
8
+ type: string;
9
+ }
10
+ export interface MessageExt extends MessageInfo {
11
+ data: any;
12
+ sender: Object;
13
+ signature: Binary;
14
+ _hash: Binary;
15
+ parsedData: string;
16
+ messageHash?: string | any;
17
+ message?: MessageExt | any;
18
+ }
19
+ //# sourceMappingURL=MessageInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageInfo.d.ts","sourceRoot":"","sources":["../../src/types/MessageInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAC3B,OAAO,CAAC,EAAE,UAAU,GAAG,GAAG,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MessageInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageInfo.js","sourceRoot":"","sources":["../../src/types/MessageInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ import type TypedDict from './TypedDict';
2
+ export type StateDump = Array<[ArrayLike<number>, ArrayLike<number>]>;
3
+ export interface CosmWasmMessageInfo {
4
+ sender: string;
5
+ funds: object[];
6
+ }
7
+ export interface CosmWasmEvent {
8
+ type: string;
9
+ attributes: TypedDict<string>;
10
+ }
11
+ export interface OwnableRPC {
12
+ initialize: (js: string, wasm: Uint8Array) => Promise<void>;
13
+ instantiate: (msg: TypedDict, info: CosmWasmMessageInfo) => Promise<{
14
+ attributes: TypedDict<string>;
15
+ state: StateDump;
16
+ }>;
17
+ execute: (msg: TypedDict, info: CosmWasmMessageInfo, state: StateDump) => Promise<{
18
+ attributes: TypedDict<string>;
19
+ events: Array<CosmWasmEvent>;
20
+ data: string;
21
+ state: StateDump;
22
+ }>;
23
+ externalEvent: (msg: TypedDict, info: TypedDict, state: StateDump) => Promise<{
24
+ attributes: TypedDict<string>;
25
+ events: Array<CosmWasmEvent>;
26
+ data: string;
27
+ state: StateDump;
28
+ }>;
29
+ query: (msg: TypedDict, state: StateDump) => Promise<any>;
30
+ refresh: (state: StateDump) => Promise<void>;
31
+ terminate: () => void;
32
+ setWidgetWindow: (win: unknown | null) => void;
33
+ }
34
+ export interface StateSnapshot {
35
+ eventIndex: number;
36
+ blockHash: string;
37
+ stateDump: StateDump;
38
+ timestamp: Date;
39
+ }
40
+ //# sourceMappingURL=OwnableRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OwnableRuntime.d.ts","sourceRoot":"","sources":["../../src/types/OwnableRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,WAAW,EAAE,CACX,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,mBAAmB,KACtB,OAAO,CAAC;QAAE,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IAClE,OAAO,EAAE,CACP,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,SAAS,KACb,OAAO,CAAC;QACX,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9B,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC,CAAC;IACH,aAAa,EAAE,CACb,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,SAAS,KACb,OAAO,CAAC;QACX,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9B,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC,CAAC;IACH,KAAK,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OwnableRuntime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OwnableRuntime.js","sourceRoot":"","sources":["../../src/types/OwnableRuntime.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @deprecated Relay polling is legacy and will be removed in a future major version.
3
+ * Prefer hub-backed notification flows.
4
+ */
5
+ export interface RelayPollingClient {
6
+ url?: string;
7
+ relay: {
8
+ get(path: string, headers?: Record<string, string>): Promise<any>;
9
+ };
10
+ isAvailable(): Promise<boolean>;
11
+ ensureAuthenticated(): Promise<boolean>;
12
+ getAuthHeaders(): Record<string, string>;
13
+ }
14
+ //# sourceMappingURL=Polling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polling.d.ts","sourceRoot":"","sources":["../../src/types/Polling.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IAC7E,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,mBAAmB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Polling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polling.js","sourceRoot":"","sources":["../../src/types/Polling.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ export interface SIWEMessage {
2
+ domain: string;
3
+ address: string;
4
+ statement?: string;
5
+ uri: string;
6
+ version: string;
7
+ chainId: number;
8
+ nonce: string;
9
+ issuedAt: string;
10
+ expirationTime?: string;
11
+ notBefore?: string;
12
+ requestId?: string;
13
+ resources?: string[];
14
+ }
15
+ export interface SIWEAuthResult {
16
+ success: boolean;
17
+ address?: string;
18
+ token?: string;
19
+ expiresIn?: string;
20
+ error?: string;
21
+ }
22
+ export interface SIWEClientDeps {
23
+ fetchFn?: (input: string, init?: RequestInit) => Promise<{
24
+ ok: boolean;
25
+ json(): Promise<any>;
26
+ }>;
27
+ now?: () => Date;
28
+ nonceGenerator?: () => string;
29
+ }
30
+ //# sourceMappingURL=SIWE.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SIWE.d.ts","sourceRoot":"","sources":["../../src/types/SIWE.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;IAChG,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,MAAM,CAAC;CAC/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SIWE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SIWE.js","sourceRoot":"","sources":["../../src/types/SIWE.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ interface TypedCosmWasmMethod {
2
+ required: string[];
3
+ properties: {
4
+ [methodName: string]: object;
5
+ };
6
+ }
7
+ export interface TypedCosmWasmMsg {
8
+ title: string;
9
+ oneOf: Array<TypedCosmWasmMethod>;
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=TypedCosmWasmMsg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedCosmWasmMsg.d.ts","sourceRoot":"","sources":["../../src/types/TypedCosmWasmMsg.ts"],"names":[],"mappings":"AAAA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE;QACV,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TypedCosmWasmMsg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedCosmWasmMsg.js","sourceRoot":"","sources":["../../src/types/TypedCosmWasmMsg.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export default interface TypedDict<T = any> {
2
+ [_: string]: T;
3
+ }
4
+ //# sourceMappingURL=TypedDict.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedDict.d.ts","sourceRoot":"","sources":["../../src/types/TypedDict.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC,CAAC,GAAG,GAAG;IACxC,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TypedDict.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedDict.js","sourceRoot":"","sources":["../../src/types/TypedDict.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ export interface TypedOwnableInfo {
2
+ owner: string;
3
+ issuer: string;
4
+ ownable_type?: string;
5
+ nft?: NftObject;
6
+ }
7
+ export interface NftObject {
8
+ address: string;
9
+ id: string;
10
+ lock_service?: any;
11
+ network: string;
12
+ }
13
+ export interface TypedMetadata {
14
+ name: string;
15
+ image?: string;
16
+ image_data?: string;
17
+ external_url?: string;
18
+ description?: string;
19
+ background_color?: string;
20
+ animation_url?: string;
21
+ youtube_url?: string;
22
+ }
23
+ export interface TypedOwnable {
24
+ owner: string;
25
+ email?: string;
26
+ name: string;
27
+ description?: string;
28
+ keywords?: string[];
29
+ evmAddress: string;
30
+ network: string;
31
+ image: unknown | null;
32
+ templateId?: string;
33
+ }
34
+ //# sourceMappingURL=TypedOwnableInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedOwnableInfo.d.ts","sourceRoot":"","sources":["../../src/types/TypedOwnableInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TypedOwnableInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedOwnableInfo.js","sourceRoot":"","sources":["../../src/types/TypedOwnableInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ export interface TypedPackageCapabilities {
2
+ isDynamic: boolean;
3
+ hasMetadata: boolean;
4
+ hasWidgetState: boolean;
5
+ isConsumable: boolean;
6
+ isConsumer: boolean;
7
+ isTransferable: boolean;
8
+ }
9
+ export interface TypedPackage extends TypedPackageCapabilities {
10
+ title: string;
11
+ detail?: unknown;
12
+ name: string;
13
+ version?: string;
14
+ ownablesAbi?: string;
15
+ wireFormat?: string;
16
+ description?: string;
17
+ cid: string;
18
+ chain?: unknown;
19
+ isNotLocal?: boolean;
20
+ uniqueMessageHash?: string;
21
+ versions: Array<{
22
+ date: Date;
23
+ cid: string;
24
+ uniqueMessageHash?: string;
25
+ }>;
26
+ keywords?: string[];
27
+ }
28
+ export interface TypedPackageStub {
29
+ title: string;
30
+ name: string;
31
+ description?: string;
32
+ stub: true;
33
+ isNotLocal?: boolean;
34
+ }
35
+ //# sourceMappingURL=TypedPackage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedPackage.d.ts","sourceRoot":"","sources":["../../src/types/TypedPackage.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,YAAa,SAAQ,wBAAwB;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TypedPackage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypedPackage.js","sourceRoot":"","sources":["../../src/types/TypedPackage.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ownables/core",
3
- "version": "0.1.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@
8
8
  "dist"
9
9
  ],
10
10
  "dependencies": {
11
+ "cbor-x": "^1.6.0",
11
12
  "eqty-core": "^1.0.2",
12
13
  "jszip": "^3.10.1"
13
14
  },
@@ -18,5 +19,10 @@
18
19
  },
19
20
  "publishConfig": {
20
21
  "access": "public"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/eqty-dao/ownables-js.git",
26
+ "directory": "packages/core"
21
27
  }
22
28
  }