@xyo-network/sentinel-model 2.70.3 → 2.70.4
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/docs.json +444 -266
- package/dist/types/Instance.d.ts +8 -2
- package/dist/types/Instance.d.ts.map +1 -1
- package/package.json +10 -9
- package/src/Instance.ts +10 -2
package/dist/types/Instance.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
1
2
|
import { ModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { Promisable } from '@xyo-network/promise';
|
|
4
|
+
import { WitnessInstance } from '@xyo-network/witness-model';
|
|
2
5
|
import { SentinelModuleEventData } from './EventData';
|
|
3
6
|
import { CustomSentinelModule, SentinelModule } from './Module';
|
|
4
7
|
import { SentinelParams } from './Params';
|
|
5
8
|
import { Sentinel } from './Sentinel';
|
|
6
|
-
export type SentinelInstance<TParams extends SentinelParams = SentinelParams> = SentinelModule<TParams> & Sentinel & ModuleInstance
|
|
7
|
-
|
|
9
|
+
export type SentinelInstance<TParams extends SentinelParams = SentinelParams> = SentinelModule<TParams> & Sentinel & ModuleInstance & {
|
|
10
|
+
archivists: () => Promisable<ArchivistInstance[]>;
|
|
11
|
+
witnesses: () => Promisable<WitnessInstance[]>;
|
|
12
|
+
};
|
|
13
|
+
export type CustomSentinelInstance<TParams extends SentinelParams = SentinelParams, TEvents extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> = CustomSentinelModule<TParams, TEvents> & Sentinel & SentinelInstance<TParams>;
|
|
8
14
|
//# sourceMappingURL=Instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../src/Instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../src/Instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,IAAI,cAAc,CAAC,OAAO,CAAC,GACrG,QAAQ,GACR,cAAc,GAAG;IACf,UAAU,EAAE,MAAM,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAA;IACjD,SAAS,EAAE,MAAM,UAAU,CAAC,eAAe,EAAE,CAAC,CAAA;CAC/C,CAAA;AAEH,MAAM,MAAM,sBAAsB,CAChC,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,OAAO,SAAS,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IACrH,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/archivist": "~2.70.
|
|
14
|
-
"@xyo-network/boundwitness-model": "~2.70.
|
|
15
|
-
"@xyo-network/core": "~2.70.
|
|
16
|
-
"@xyo-network/module": "~2.70.
|
|
17
|
-
"@xyo-network/module-model": "~2.70.
|
|
18
|
-
"@xyo-network/object-identity": "~2.70.
|
|
19
|
-
"@xyo-network/payload-model": "~2.70.
|
|
20
|
-
"@xyo-network/promise": "~2.70.
|
|
13
|
+
"@xyo-network/archivist": "~2.70.4",
|
|
14
|
+
"@xyo-network/boundwitness-model": "~2.70.4",
|
|
15
|
+
"@xyo-network/core": "~2.70.4",
|
|
16
|
+
"@xyo-network/module": "~2.70.4",
|
|
17
|
+
"@xyo-network/module-model": "~2.70.4",
|
|
18
|
+
"@xyo-network/object-identity": "~2.70.4",
|
|
19
|
+
"@xyo-network/payload-model": "~2.70.4",
|
|
20
|
+
"@xyo-network/promise": "~2.70.4",
|
|
21
|
+
"@xyo-network/witness-model": "~2.70.4"
|
|
21
22
|
},
|
|
22
23
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
23
24
|
"devDependencies": {
|
|
@@ -57,5 +58,5 @@
|
|
|
57
58
|
},
|
|
58
59
|
"sideEffects": false,
|
|
59
60
|
"types": "dist/types/index.d.ts",
|
|
60
|
-
"version": "2.70.
|
|
61
|
+
"version": "2.70.4"
|
|
61
62
|
}
|
package/src/Instance.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
+
import { ArchivistInstance } from '@xyo-network/archivist'
|
|
1
2
|
import { ModuleInstance } from '@xyo-network/module-model'
|
|
3
|
+
import { Promisable } from '@xyo-network/promise'
|
|
4
|
+
import { WitnessInstance } from '@xyo-network/witness-model'
|
|
2
5
|
|
|
3
6
|
import { SentinelModuleEventData } from './EventData'
|
|
4
7
|
import { CustomSentinelModule, SentinelModule } from './Module'
|
|
5
8
|
import { SentinelParams } from './Params'
|
|
6
9
|
import { Sentinel } from './Sentinel'
|
|
7
10
|
|
|
8
|
-
export type SentinelInstance<TParams extends SentinelParams = SentinelParams> = SentinelModule<TParams> &
|
|
11
|
+
export type SentinelInstance<TParams extends SentinelParams = SentinelParams> = SentinelModule<TParams> &
|
|
12
|
+
Sentinel &
|
|
13
|
+
ModuleInstance & {
|
|
14
|
+
archivists: () => Promisable<ArchivistInstance[]>
|
|
15
|
+
witnesses: () => Promisable<WitnessInstance[]>
|
|
16
|
+
}
|
|
9
17
|
|
|
10
18
|
export type CustomSentinelInstance<
|
|
11
19
|
TParams extends SentinelParams = SentinelParams,
|
|
12
20
|
TEvents extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>,
|
|
13
|
-
> = CustomSentinelModule<TParams, TEvents> & Sentinel &
|
|
21
|
+
> = CustomSentinelModule<TParams, TEvents> & Sentinel & SentinelInstance<TParams>
|