@xyo-network/sentinel-wrapper 2.94.23 → 2.94.24
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.
- package/dist/browser/Wrapper.d.cts.map +1 -1
- package/dist/browser/Wrapper.d.mts.map +1 -1
- package/dist/browser/Wrapper.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/Wrapper.d.cts.map +1 -1
- package/dist/node/Wrapper.d.mts.map +1 -1
- package/dist/node/Wrapper.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +17 -18
- package/src/Wrapper.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAGL,gBAAgB,EAChB,cAAc,EAGf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAqB;IAC1D,OAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAmB;IACtD,OAAgB,eAAe,WAAwD;IAEvF,UAAU,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMhD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK7F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAGL,gBAAgB,EAChB,cAAc,EAGf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAqB;IAC1D,OAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAmB;IACtD,OAAgB,eA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IpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMhD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK7F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import {
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACGA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,kBAAN,cACGC,oCAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYC,SAA0BN,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,QAAAA;EAC/C;EAEAQ,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;AAGA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYC,SAA0BN,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,QAAAA;EAC/C;EAEAQ,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAGL,gBAAgB,EAChB,cAAc,EAGf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAqB;IAC1D,OAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAmB;IACtD,OAAgB,eAAe,WAAwD;IAEvF,UAAU,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,G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AAiB,CAAC;IAK7F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import {
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACGA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,mBAAN,MAAMA,yBACHC,oCAAAA;EAORC,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,UAAMC,SAAS,MAAM,KAAKC,UAAUJ,cAAcD,QAAAA;AAClD,WAAOI;EACT;EAEA,MAAME,YAAYC,SAA0BP,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKK,aAAaP,cAAcD,QAAAA;EAC/C;EAEAS,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;AAzBUF;AAGR,cAJWD,kBAIKe,yBAAwBC;AACxC,cALWhB,kBAKKiB,uBAAsBC;AACtC,cANWlB,kBAMKmB,mBAAkB;EAACX;KAA8B,+CAAMW;;AANlE,IAAMnB,kBAAN;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;AAGA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,mBAAN,MAAMA,yBACHC,cAAAA;EAORC,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,UAAMC,SAAS,MAAM,KAAKC,UAAUJ,cAAcD,QAAAA;AAClD,WAAOI;EACT;EAEA,MAAME,YAAYC,SAA0BP,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKK,aAAaP,cAAcD,QAAAA;EAC/C;EAEAS,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;AAzBUF;AAGR,cAJWD,kBAIKe,yBAAwBC;AACxC,cALWhB,kBAKKiB,uBAAsBC;AACtC,cANWlB,kBAMKmB,mBAAkB;EAACX;KAA8B,+CAAMW;;AANlE,IAAMnB,kBAAN;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
|
package/package.json
CHANGED
|
@@ -10,28 +10,27 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@
|
|
14
|
-
"@xyo-network/
|
|
15
|
-
"@xyo-network/
|
|
16
|
-
"@xyo-network/module-
|
|
17
|
-
"@xyo-network/
|
|
18
|
-
"@xyo-network/
|
|
19
|
-
"@xyo-network/
|
|
20
|
-
"@xyo-network/witness-model": "~2.94.23"
|
|
13
|
+
"@xyo-network/account-model": "~2.94.24",
|
|
14
|
+
"@xyo-network/archivist-model": "~2.94.24",
|
|
15
|
+
"@xyo-network/module-model": "~2.94.24",
|
|
16
|
+
"@xyo-network/module-wrapper": "~2.94.24",
|
|
17
|
+
"@xyo-network/payload-model": "~2.94.24",
|
|
18
|
+
"@xyo-network/sentinel-model": "~2.94.24",
|
|
19
|
+
"@xyo-network/witness-model": "~2.94.24"
|
|
21
20
|
},
|
|
22
21
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
23
22
|
"devDependencies": {
|
|
24
23
|
"@xylabs/ts-scripts-yarn3": "^3.9.0",
|
|
25
24
|
"@xylabs/tsconfig": "^3.9.0",
|
|
26
|
-
"@xyo-network/abstract-witness": "~2.94.
|
|
27
|
-
"@xyo-network/account": "~2.94.
|
|
28
|
-
"@xyo-network/archivist-memory": "~2.94.
|
|
29
|
-
"@xyo-network/boundwitness-model": "~2.94.
|
|
30
|
-
"@xyo-network/module-model": "~2.94.
|
|
31
|
-
"@xyo-network/node-memory": "~2.94.
|
|
32
|
-
"@xyo-network/payload-builder": "~2.94.
|
|
33
|
-
"@xyo-network/sentinel-memory": "~2.94.
|
|
34
|
-
"@xyo-network/witness-adhoc": "~2.94.
|
|
25
|
+
"@xyo-network/abstract-witness": "~2.94.24",
|
|
26
|
+
"@xyo-network/account": "~2.94.24",
|
|
27
|
+
"@xyo-network/archivist-memory": "~2.94.24",
|
|
28
|
+
"@xyo-network/boundwitness-model": "~2.94.24",
|
|
29
|
+
"@xyo-network/module-model": "~2.94.24",
|
|
30
|
+
"@xyo-network/node-memory": "~2.94.24",
|
|
31
|
+
"@xyo-network/payload-builder": "~2.94.24",
|
|
32
|
+
"@xyo-network/sentinel-memory": "~2.94.24",
|
|
33
|
+
"@xyo-network/witness-adhoc": "~2.94.24",
|
|
35
34
|
"typescript": "^5.4.4"
|
|
36
35
|
},
|
|
37
36
|
"types": "dist/node/index.d.ts",
|
|
@@ -72,6 +71,6 @@
|
|
|
72
71
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
73
72
|
},
|
|
74
73
|
"sideEffects": false,
|
|
75
|
-
"version": "2.94.
|
|
74
|
+
"version": "2.94.24",
|
|
76
75
|
"type": "module"
|
|
77
76
|
}
|
package/src/Wrapper.ts
CHANGED