@xyo-network/xl1-protocol 1.5.2 → 1.5.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/types/iterator/ChainIterator.d.ts +0 -6
- package/dist/types/iterator/ChainIterator.d.ts.map +1 -1
- package/dist/types/services/Service.d.ts +1 -5
- package/dist/types/services/Service.d.ts.map +1 -1
- package/dist/types/services/index.d.ts +0 -1
- package/dist/types/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/iterator/ChainIterator.ts +0 -7
- package/src/services/Service.ts +2 -6
- package/src/services/index.ts +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
2
|
import type { BaseEmitter } from '@xylabs/events';
|
|
3
3
|
import type { Address, Hash } from '@xylabs/hex';
|
|
4
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
5
4
|
import type { BlockBoundWitness } from '../block/index.ts';
|
|
6
5
|
import type { IterableRepository, ReadRepository } from '../repository/index.ts';
|
|
7
|
-
import type { BaseServiceParams } from '../services/index.ts';
|
|
8
6
|
import type { ChainIteratorEventData } from './ChainIteratorEventData.ts';
|
|
9
7
|
export interface ChainIterator<TKey, THead> extends ReadRepository<TKey, BlockBoundWitness>, IterableRepository<TKey, BlockBoundWitness> {
|
|
10
8
|
chainId: Address;
|
|
@@ -22,8 +20,4 @@ export interface ChainHashIterator extends ChainIterator<Hash, Hash> {
|
|
|
22
20
|
}
|
|
23
21
|
export interface EventingChainHashIterator extends EventingChainIterator<Hash, Hash> {
|
|
24
22
|
}
|
|
25
|
-
export interface XyoChainIteratorParams extends BaseServiceParams {
|
|
26
|
-
chainArchivist: ArchivistInstance;
|
|
27
|
-
head: BlockBoundWitness;
|
|
28
|
-
}
|
|
29
23
|
//# sourceMappingURL=ChainIterator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIterator.d.ts","sourceRoot":"","sources":["../../../src/iterator/ChainIterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainIterator.d.ts","sourceRoot":"","sources":["../../../src/iterator/ChainIterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAEzE,MAAM,WAAW,aAAa,CAAC,IAAI,EAAE,KAAK,CAAE,SAAQ,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,EAAE,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACtI,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAA;IACjF,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACvC;AAED,MAAM,WAAW,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAE,SAAQ,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,EAAE,sBAAsB,CAAC;CAAI;AAE3I,MAAM,WAAW,wBAAyB,SAAQ,aAAa,CAAC,MAAM,EAAE,iBAAiB,CAAC;CAAI;AAC9F,MAAM,WAAW,gCAAiC,SAAQ,qBAAqB,CAAC,MAAM,EAAE,iBAAiB,CAAC;CAAI;AAE9G,MAAM,WAAW,iBAAkB,SAAQ,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC;CAAI;AACxE,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC;CAAI"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export type ServiceName = Exclude<string, 'reserved-service-name-value'> & CreatableName;
|
|
3
|
-
export type Service = CreatableInstance<{
|
|
4
|
-
name: ServiceName;
|
|
5
|
-
}>;
|
|
1
|
+
export type Service = {};
|
|
6
2
|
//# sourceMappingURL=Service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Service.d.ts","sourceRoot":"","sources":["../../../src/services/Service.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Service.d.ts","sourceRoot":"","sources":["../../../src/services/Service.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,EAErB,CAAA"}
|
|
@@ -4,7 +4,6 @@ export * from './BlockRewardService.ts';
|
|
|
4
4
|
export * from './Chain/index.ts';
|
|
5
5
|
export * from './ChainServiceCollection.ts';
|
|
6
6
|
export * from './Election.ts';
|
|
7
|
-
export * from './Params.ts';
|
|
8
7
|
export * from './PendingTransactionsService.ts';
|
|
9
8
|
export * from './Service.ts';
|
|
10
9
|
export * from './StakeIntentService/index.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,eAAe,CAAA;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,eAAe,CAAA;AAC7B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,cAAc,CAAA;AAC5B,cAAc,+BAA+B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base'
|
|
2
2
|
import type { BaseEmitter } from '@xylabs/events'
|
|
3
3
|
import type { Address, Hash } from '@xylabs/hex'
|
|
4
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
5
4
|
|
|
6
5
|
import type { BlockBoundWitness } from '../block/index.ts'
|
|
7
6
|
import type { IterableRepository, ReadRepository } from '../repository/index.ts'
|
|
8
|
-
import type { BaseServiceParams } from '../services/index.ts'
|
|
9
7
|
import type { ChainIteratorEventData } from './ChainIteratorEventData.ts'
|
|
10
8
|
|
|
11
9
|
export interface ChainIterator<TKey, THead> extends ReadRepository<TKey, BlockBoundWitness>, IterableRepository<TKey, BlockBoundWitness> {
|
|
@@ -22,8 +20,3 @@ export interface EventingChainBlockNumberIterator extends EventingChainIterator<
|
|
|
22
20
|
|
|
23
21
|
export interface ChainHashIterator extends ChainIterator<Hash, Hash> { }
|
|
24
22
|
export interface EventingChainHashIterator extends EventingChainIterator<Hash, Hash> { }
|
|
25
|
-
|
|
26
|
-
export interface XyoChainIteratorParams extends BaseServiceParams {
|
|
27
|
-
chainArchivist: ArchivistInstance
|
|
28
|
-
head: BlockBoundWitness
|
|
29
|
-
}
|
package/src/services/Service.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export type Service = {
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type Service = CreatableInstance<{
|
|
6
|
-
name: ServiceName
|
|
7
|
-
}>
|
|
3
|
+
}
|
package/src/services/index.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './BlockRewardService.ts'
|
|
|
4
4
|
export * from './Chain/index.ts'
|
|
5
5
|
export * from './ChainServiceCollection.ts'
|
|
6
6
|
export * from './Election.ts'
|
|
7
|
-
export * from './Params.ts'
|
|
8
7
|
export * from './PendingTransactionsService.ts'
|
|
9
8
|
export * from './Service.ts'
|
|
10
9
|
export * from './StakeIntentService/index.ts'
|