@xyo-network/xl1-protocol 1.3.16 → 1.3.17
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
|
+
import type { BaseEmitter } from '@xylabs/events';
|
|
2
3
|
import type { Hash } from '@xylabs/hex';
|
|
3
4
|
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
4
|
-
import type { ModuleBaseEmitter } from '@xyo-network/module-event-emitter';
|
|
5
5
|
import type { ChainIteratorEventData } from './ChainIteratorEventData.ts';
|
|
6
6
|
import type { BlockBoundWitness } from './protocol/index.ts';
|
|
7
7
|
import type { IterableRepository, ReadRepository } from './repository/index.ts';
|
|
@@ -12,7 +12,7 @@ export interface ChainIterator<TKey, THead> extends ReadRepository<TKey, BlockBo
|
|
|
12
12
|
previous(cursor?: TKey | undefined, limit?: number): Promise<BlockBoundWitness[]>;
|
|
13
13
|
updateHead(head: THead): Promise<void>;
|
|
14
14
|
}
|
|
15
|
-
export interface EventingChainIterator<TKey, THead> extends ChainIterator<TKey, THead>,
|
|
15
|
+
export interface EventingChainIterator<TKey, THead> extends ChainIterator<TKey, THead>, BaseEmitter<BaseParams, ChainIteratorEventData> {
|
|
16
16
|
}
|
|
17
17
|
export interface ChainBlockNumberIterator extends ChainIterator<number, BlockBoundWitness> {
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIterator.d.ts","sourceRoot":"","sources":["../../src/ChainIterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ChainIterator.d.ts","sourceRoot":"","sources":["../../src/ChainIterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OA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E,IAAI,CAAC;CAAI;AACxE,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC;CAAI;AAExF,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,cAAc,EAAE,iBAAiB,CAAA;IACjC,IAAI,EAAE,iBAAiB,CAAA;CACxB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/xl1-protocol",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.17",
|
|
5
5
|
"description": "XYO Layer One Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -31,32 +31,30 @@
|
|
|
31
31
|
"types": "./dist/types/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@opentelemetry/api": "^1.9.0",
|
|
34
|
-
"@xylabs/base": "^4.9.
|
|
35
|
-
"@xylabs/events": "^4.9.
|
|
36
|
-
"@xylabs/hex": "^4.9.
|
|
37
|
-
"@xylabs/logger": "^4.9.
|
|
38
|
-
"@xylabs/object": "^4.9.
|
|
39
|
-
"@xylabs/promise": "^4.9.
|
|
40
|
-
"@xyo-network/account-model": "^3.15.
|
|
41
|
-
"@xyo-network/archivist-model": "^3.15.
|
|
42
|
-
"@xyo-network/boundwitness-model": "^3.15.
|
|
43
|
-
"@xyo-network/
|
|
44
|
-
"@xyo-network/
|
|
45
|
-
"@xyo-network/
|
|
46
|
-
"@xyo-network/schema-payload-plugin": "^3.15.7",
|
|
47
|
-
"@xyo-network/wallet-model": "^3.15.7",
|
|
34
|
+
"@xylabs/base": "^4.9.18",
|
|
35
|
+
"@xylabs/events": "^4.9.18",
|
|
36
|
+
"@xylabs/hex": "^4.9.18",
|
|
37
|
+
"@xylabs/logger": "^4.9.18",
|
|
38
|
+
"@xylabs/object": "^4.9.18",
|
|
39
|
+
"@xylabs/promise": "^4.9.18",
|
|
40
|
+
"@xyo-network/account-model": "^3.15.10",
|
|
41
|
+
"@xyo-network/archivist-model": "^3.15.10",
|
|
42
|
+
"@xyo-network/boundwitness-model": "^3.15.10",
|
|
43
|
+
"@xyo-network/payload-model": "^3.15.10",
|
|
44
|
+
"@xyo-network/schema-payload-plugin": "^3.15.10",
|
|
45
|
+
"@xyo-network/wallet-model": "^3.15.10",
|
|
48
46
|
"ethers": "6.14.0"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
|
-
"@types/node": "^22.15.
|
|
52
|
-
"@xylabs/eslint-config-flat": "^6.5.
|
|
53
|
-
"@xylabs/ts-scripts-yarn3": "^6.5.
|
|
54
|
-
"@xylabs/tsconfig": "^6.5.
|
|
49
|
+
"@types/node": "^22.15.18",
|
|
50
|
+
"@xylabs/eslint-config-flat": "^6.5.6",
|
|
51
|
+
"@xylabs/ts-scripts-yarn3": "^6.5.6",
|
|
52
|
+
"@xylabs/tsconfig": "^6.5.6",
|
|
55
53
|
"dependency-cruiser": "^16.10.2",
|
|
56
54
|
"dotenv": "^16.5.0",
|
|
57
55
|
"eslint": "^9.26.0",
|
|
58
56
|
"eslint-import-resolver-typescript": "^4.3.4",
|
|
59
|
-
"knip": "^5.
|
|
57
|
+
"knip": "^5.56.0",
|
|
60
58
|
"react": "^19.1.0",
|
|
61
59
|
"rimraf": "^6.0.1",
|
|
62
60
|
"typescript": "^5.8.3",
|
package/src/ChainIterator.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base'
|
|
2
|
+
import type { BaseEmitter } from '@xylabs/events'
|
|
2
3
|
import type { Hash } from '@xylabs/hex'
|
|
3
4
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
|
-
import type { ModuleBaseEmitter } from '@xyo-network/module-event-emitter'
|
|
5
5
|
|
|
6
6
|
import type { ChainIteratorEventData } from './ChainIteratorEventData.ts'
|
|
7
7
|
import type { BlockBoundWitness } from './protocol/index.ts'
|
|
@@ -15,7 +15,7 @@ export interface ChainIterator<TKey, THead> extends ReadRepository<TKey, BlockBo
|
|
|
15
15
|
updateHead(head: THead): Promise<void>
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export interface EventingChainIterator<TKey, THead> extends ChainIterator<TKey, THead>,
|
|
18
|
+
export interface EventingChainIterator<TKey, THead> extends ChainIterator<TKey, THead>, BaseEmitter<BaseParams, ChainIteratorEventData> { }
|
|
19
19
|
|
|
20
20
|
export interface ChainBlockNumberIterator extends ChainIterator<number, BlockBoundWitness> { }
|
|
21
21
|
export interface EventingChainBlockNumberIterator extends EventingChainIterator<number, BlockBoundWitness> { }
|