@xyo-network/xl1-protocol 1.7.9 → 1.7.11
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/neutral/provider/v1/TransactionSubmitter.d.ts +3 -3
- package/dist/neutral/provider/v1/TransactionSubmitter.d.ts.map +1 -1
- package/dist/neutral/provider/v1/XyoDataLake.d.ts +8 -13
- package/dist/neutral/provider/v1/XyoDataLake.d.ts.map +1 -1
- package/package.json +19 -19
- package/src/provider/v1/TransactionSubmitter.ts +3 -3
- package/src/provider/v1/XyoDataLake.ts +8 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Address
|
|
1
|
+
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import type { AllowedBlockPayload } from '../../block/index.ts';
|
|
5
|
-
import type { TransactionFeesBigInt } from '../../transaction/index.ts';
|
|
5
|
+
import type { HydratedTransaction, TransactionFeesBigInt } from '../../transaction/index.ts';
|
|
6
6
|
export interface TransactionSubmitter {
|
|
7
7
|
submitTransaction(elevatedPayloads: AllowedBlockPayload[], additionalPayloads: Payload[], options?: {
|
|
8
8
|
chain?: Address;
|
|
@@ -10,6 +10,6 @@ export interface TransactionSubmitter {
|
|
|
10
10
|
fees?: TransactionFeesBigInt;
|
|
11
11
|
from?: Address;
|
|
12
12
|
nbf?: number;
|
|
13
|
-
}): Promisable<
|
|
13
|
+
}): Promisable<HydratedTransaction>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=TransactionSubmitter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionSubmitter.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/TransactionSubmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TransactionSubmitter.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/TransactionSubmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAE5F,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CACf,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,kBAAkB,EAAE,OAAO,EAAE,EAC7B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,IAAI,CAAC,EAAE,qBAAqB,CAAA;QAC5B,IAAI,CAAC,EAAE,OAAO,CAAA;QACd,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAA;CACtC"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export interface
|
|
11
|
-
|
|
12
|
-
get(hashes: Hash[]): Promisable<(ArrayBuffer | Payload)[]>;
|
|
13
|
-
trace(hashes: Hash[]): Promisable<[(ArrayBuffer | Payload), Payload[]][]>;
|
|
14
|
-
}
|
|
15
|
-
export interface XyoDataLakeProvider extends XyoDataLakeViewer, XyoPayloadLakeProvider {
|
|
16
|
-
add(items: ArrayBuffer[]): Promisable<Hash[]>;
|
|
4
|
+
export type DataLakeData = Payload | ArrayBuffer;
|
|
5
|
+
export interface XyoDataLakeViewer {
|
|
6
|
+
fetch(hashes: Hash[], maxDepth?: number): Promisable<DataLakeData[]>;
|
|
7
|
+
get(hashes: Hash[]): Promisable<DataLakeData[]>;
|
|
8
|
+
trace(hash: Hash): Promisable<[DataLakeData, Payload[]]>;
|
|
9
|
+
}
|
|
10
|
+
export interface XyoDataLakeProvider extends XyoDataLakeViewer {
|
|
11
|
+
add(items: DataLakeData[]): Promisable<DataLakeData[]>;
|
|
17
12
|
}
|
|
18
13
|
//# sourceMappingURL=XyoDataLake.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoDataLake.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoDataLake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,
|
|
1
|
+
{"version":3,"file":"XyoDataLake.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoDataLake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,WAAW,CAAA;AAEhD,MAAM,WAAW,iBAAiB;IAEhC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC,CAAA;IAEpE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC,CAAA;IAE/C,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC,CAAA;CACvD"}
|
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.7.
|
|
4
|
+
"version": "1.7.11",
|
|
5
5
|
"description": "XYO Layer One Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -38,34 +38,34 @@
|
|
|
38
38
|
"types": "./dist/neutral/index.d.ts",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@opentelemetry/api": "^1.9.0",
|
|
41
|
-
"@xylabs/base": "^4.13.
|
|
42
|
-
"@xylabs/events": "^4.13.
|
|
43
|
-
"@xylabs/hex": "^4.13.
|
|
44
|
-
"@xylabs/logger": "^4.13.
|
|
45
|
-
"@xylabs/object": "^4.13.
|
|
46
|
-
"@xylabs/promise": "^4.13.
|
|
47
|
-
"@xylabs/typeof": "^4.13.
|
|
48
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
49
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
50
|
-
"@xyo-network/payload-model": "^4.1.
|
|
51
|
-
"@xyo-network/schema-payload-plugin": "^4.1.
|
|
52
|
-
"@xyo-network/wallet-model": "^4.1.
|
|
41
|
+
"@xylabs/base": "^4.13.23",
|
|
42
|
+
"@xylabs/events": "^4.13.23",
|
|
43
|
+
"@xylabs/hex": "^4.13.23",
|
|
44
|
+
"@xylabs/logger": "^4.13.23",
|
|
45
|
+
"@xylabs/object": "^4.13.23",
|
|
46
|
+
"@xylabs/promise": "^4.13.23",
|
|
47
|
+
"@xylabs/typeof": "^4.13.23",
|
|
48
|
+
"@xyo-network/archivist-model": "^4.1.7",
|
|
49
|
+
"@xyo-network/boundwitness-model": "^4.1.7",
|
|
50
|
+
"@xyo-network/payload-model": "^4.1.7",
|
|
51
|
+
"@xyo-network/schema-payload-plugin": "^4.1.7",
|
|
52
|
+
"@xyo-network/wallet-model": "^4.1.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^24.0
|
|
56
|
-
"@typescript-eslint/types": "^8.
|
|
57
|
-
"@xylabs/creatable": "^4.13.
|
|
55
|
+
"@types/node": "^24.1.0",
|
|
56
|
+
"@typescript-eslint/types": "^8.38.0",
|
|
57
|
+
"@xylabs/creatable": "^4.13.23",
|
|
58
58
|
"@xylabs/eslint-config-flat": "^7.0.0",
|
|
59
59
|
"@xylabs/ts-scripts-yarn3": "^7.0.0",
|
|
60
60
|
"@xylabs/tsconfig": "^7.0.0",
|
|
61
|
-
"@xyo-network/account-model": "^4.1.
|
|
61
|
+
"@xyo-network/account-model": "^4.1.7",
|
|
62
62
|
"dependency-cruiser": "^16.10.4",
|
|
63
63
|
"dotenv": "^17.2.0",
|
|
64
64
|
"eslint": "^9.31.0",
|
|
65
65
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
66
|
-
"knip": "^5.
|
|
66
|
+
"knip": "^5.62.0",
|
|
67
67
|
"typescript": "^5.8.3",
|
|
68
|
-
"vite": "^7.0.
|
|
68
|
+
"vite": "^7.0.5",
|
|
69
69
|
"vite-tsconfig-paths": "^5.1.4",
|
|
70
70
|
"vitest": "^3.2.4"
|
|
71
71
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Address
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
5
|
import type { AllowedBlockPayload } from '../../block/index.ts'
|
|
6
|
-
import type { TransactionFeesBigInt } from '../../transaction/index.ts'
|
|
6
|
+
import type { HydratedTransaction, TransactionFeesBigInt } from '../../transaction/index.ts'
|
|
7
7
|
|
|
8
8
|
export interface TransactionSubmitter {
|
|
9
9
|
submitTransaction(
|
|
@@ -15,5 +15,5 @@ export interface TransactionSubmitter {
|
|
|
15
15
|
fees?: TransactionFeesBigInt
|
|
16
16
|
from?: Address
|
|
17
17
|
nbf?: number
|
|
18
|
-
}): Promisable<
|
|
18
|
+
}): Promisable<HydratedTransaction>
|
|
19
19
|
}
|
|
@@ -2,23 +2,17 @@ import type { Hash } from '@xylabs/hex'
|
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
getPayloads(hashes: Hash[]): Promisable<Payload[]>
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface XyoPayloadLakeProvider extends XyoPayloadLakeViewer {
|
|
10
|
-
addPayloads(payloads: Payload[]): Promisable<Hash[]>
|
|
11
|
-
}
|
|
5
|
+
export type DataLakeData = Payload | ArrayBuffer
|
|
12
6
|
|
|
13
|
-
export interface XyoDataLakeViewer
|
|
7
|
+
export interface XyoDataLakeViewer {
|
|
14
8
|
// if resolves to hash payload, keep going until hitting a non-payload or maxDepth, or unable to find
|
|
15
|
-
fetch(hashes: Hash[], maxDepth?: number): Promisable<
|
|
9
|
+
fetch(hashes: Hash[], maxDepth?: number): Promisable<DataLakeData[]>
|
|
16
10
|
// same as fetch but never follows hash payloads
|
|
17
|
-
get(hashes: Hash[]): Promisable<
|
|
18
|
-
// same as fetch, except returns each step
|
|
19
|
-
trace(
|
|
11
|
+
get(hashes: Hash[]): Promisable<DataLakeData[]>
|
|
12
|
+
// same as fetch, except returns each step in tuple containing the result and the steps
|
|
13
|
+
trace(hash: Hash): Promisable<[DataLakeData, Payload[]]>
|
|
20
14
|
}
|
|
21
15
|
|
|
22
|
-
export interface XyoDataLakeProvider extends XyoDataLakeViewer
|
|
23
|
-
add(items:
|
|
16
|
+
export interface XyoDataLakeProvider extends XyoDataLakeViewer {
|
|
17
|
+
add(items: DataLakeData[]): Promisable<DataLakeData[]>
|
|
24
18
|
}
|