@xyo-network/xl1-protocol-sdk 1.24.2 → 1.24.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/neutral/config/Actor.d.ts +854 -0
- package/dist/neutral/config/Actor.d.ts.map +1 -0
- package/dist/neutral/config/Config.d.ts +18 -8
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/HostActor.d.ts +878 -0
- package/dist/neutral/config/HostActor.d.ts.map +1 -0
- package/dist/neutral/config/getFileConfig.d.ts +133 -0
- package/dist/neutral/config/getFileConfig.d.ts.map +1 -0
- package/dist/neutral/config/index-node.d.ts +3 -0
- package/dist/neutral/config/index-node.d.ts.map +1 -0
- package/dist/neutral/config/index.d.ts +2 -0
- package/dist/neutral/config/index.d.ts.map +1 -1
- package/dist/neutral/index-node.d.ts +3 -0
- package/dist/neutral/index-node.d.ts.map +1 -0
- package/dist/neutral/index-node.mjs +5747 -0
- package/dist/neutral/index-node.mjs.map +1 -0
- package/dist/neutral/index-shared.d.ts +25 -0
- package/dist/neutral/index-shared.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +1 -24
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2395 -2282
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts.map +1 -1
- package/dist/neutral/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts.map +1 -1
- package/dist/neutral/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts +3 -1
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +2 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts +2 -2
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/balances/balancesStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts.map +1 -1
- package/dist/neutral/test/buildBlock.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomChain.d.ts +1 -1
- package/dist/neutral/test/buildRandomChain.d.ts.map +1 -1
- package/dist/neutral/test/buildRandomGenesisBlock.d.ts.map +1 -1
- package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts +1 -1
- package/dist/neutral/test/createProducerChainStakeIntentTransaction.d.ts.map +1 -1
- package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts +1 -1
- package/dist/neutral/test/getSimpleBlockViewerLocator.d.ts.map +1 -1
- package/dist/neutral/test/index.mjs +118 -61
- package/dist/neutral/test/index.mjs.map +1 -1
- package/dist/neutral/transaction/TransactionBuilder.d.ts +1 -1
- package/dist/neutral/transaction/TransactionBuilder.d.ts.map +1 -1
- package/dist/neutral/transaction/buildRandomTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/buildUnsignedTransaction.d.ts.map +1 -1
- package/dist/neutral/transaction/signTransaction.d.ts +1 -1
- package/package.json +9 -8
- package/src/config/Actor.ts +36 -0
- package/src/config/Config.ts +8 -7
- package/src/config/HostActor.ts +36 -0
- package/src/config/getFileConfig.ts +36 -0
- package/src/config/index-node.ts +3 -0
- package/src/config/index.ts +2 -0
- package/src/createDeclarationPayload.ts +1 -1
- package/src/createTransferPayload.ts +1 -1
- package/src/eip-712/sign.ts +1 -1
- package/src/eip-712/verify.ts +1 -1
- package/src/index-node.ts +3 -0
- package/src/index-shared.ts +24 -0
- package/src/index.ts +1 -24
- package/src/model/PayloadBundle/bundledPayloadToHydratedBlock.ts +1 -1
- package/src/model/PayloadBundle/bundledPayloadToHydratedTransaction.ts +1 -1
- package/src/model/PayloadBundle/hydratedBlockToPayloadBundle.ts +1 -1
- package/src/model/PayloadBundle/hydratedTransactionToPayloadBundle.ts +1 -1
- package/src/simple/blockInvalidation/SimpleBlockInvalidationViewer.ts +1 -1
- package/src/simple/blockValidation/SimpleBlockValidationViewer.ts +1 -1
- package/src/simple/datalake/RestDataLakeRunner.ts +1 -1
- package/src/simple/gateway/SimpleXyoGateway.ts +24 -0
- package/src/simple/gateway/SimpleXyoGatewayRunner.ts +24 -3
- package/src/simple/mempool/SimpleMempoolRunner.ts +1 -1
- package/src/simple/runner/SimpleXyoRunner.ts +1 -1
- package/src/simple/signer/SimpleXyoSigner.ts +1 -2
- package/src/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.ts +1 -1
- package/src/simple/transactionValidation/SimpleTransactionValidationViewer.ts +1 -1
- package/src/summary/primitives/balances/balancesStepSummaryFromRange.ts +1 -1
- package/src/summary/primitives/schemas/schemasStepSummaryFromRange.ts +1 -1
- package/src/summary/primitives/transfers/transfersStepSummaryFromRange.ts +1 -1
- package/src/test/buildBlock.ts +1 -2
- package/src/test/buildRandomChain.ts +1 -2
- package/src/test/buildRandomGenesisBlock.ts +1 -2
- package/src/test/createGenesisBlock.ts +1 -1
- package/src/test/createProducerChainStakeIntentTransaction.ts +1 -1
- package/src/test/getSimpleBlockViewerLocator.ts +1 -1
- package/src/transaction/TransactionBuilder.ts +1 -1
- package/src/transaction/buildRandomTransaction.ts +1 -1
- package/src/transaction/buildTransaction.ts +1 -2
- package/src/transaction/buildUnsignedTransaction.ts +1 -2
- package/src/transaction/primitives/transactionBlockByteCount.ts +1 -1
- package/src/transaction/signTransaction.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Base } from '@xylabs/sdk-js';
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
|
-
import { type PayloadBuilderOptions } from '@xyo-network/payload-builder';
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { type PayloadBuilderOptions } from '@xyo-network/sdk-js';
|
|
5
5
|
import type { AllowedBlockPayload, ChainId, TransactionFeesBigInt } from '@xyo-network/xl1-protocol';
|
|
6
6
|
export declare class TransactionBuilder<TPayload extends Payload> extends Base<Omit<PayloadBuilderOptions, 'schema'>> {
|
|
7
7
|
private _blockRange?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/transaction/TransactionBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"TransactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/transaction/TransactionBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,KAAK,EACV,mBAAmB,EACnB,OAAO,EACP,qBAAqB,EACtB,MAAM,2BAA2B,CAAA;AASlC,qBAAa,kBAAkB,CAAC,QAAQ,SAAS,OAAO,CAAE,SAAQ,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IAC3G,OAAO,CAAC,WAAW,CAAC,CAAkB;IACtC,OAAO,CAAC,MAAM,CAAC,CAAK;IACpB,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,KAAK,CAAmC;IAChD,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,QAAQ,CAAwB;gBAE5B,OAAO,GAAE,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAM;IAIzD,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBX,KAAK,CAAC,KAAK,EAAE,OAAO;IAKd,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaZ,eAAe,CAAC,OAAO,CAAC,EAAE,mBAAmB;IAO7C,gBAAgB,CAAC,QAAQ,CAAC,EAAE,mBAAmB,EAAE;IAQ3C,oBAAoB,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAY5D,IAAI,CAAC,IAAI,EAAE,qBAAqB;IAKhC,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ;IAK1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE;IAU9B,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IAQ5B,qBAAqB,CAAC,OAAO,EAAE,mBAAmB;IAalD,aAAa,CAAC,OAAO,EAAE,QAAQ;IAarC,MAAM,CAAC,MAAM,CAAC,EAAE,eAAe;IAO/B,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,eAAe,GAAG,IAAI,CAAC,EAAE;CAS7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRandomTransaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/buildRandomTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"buildRandomTransaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/buildRandomTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EACW,OAAO,EAC5B,qCAAqC,EAErC,cAAc,EACf,MAAM,2BAA2B,CAAA;AAMlC,eAAO,MAAM,sBAAsB,GACjC,OAAO,OAAO,EACd,WAAW,OAAO,EAAE,EACpB,UAAU,eAAe,EACzB,MAAK,cAA0C,EAC/C,MAAK,cAAmD,EACxD,wBAAuB,MAAM,EAAO,EACpC,kBAAkB,OAAO,KACxB,OAAO,CAAC,qCAAqC,CAY/C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildTransaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/buildTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"buildTransaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/buildTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,mBAAmB,EACnB,OAAO,EAGP,qCAAqC,EACmB,qBAAqB,EAC7E,cAAc,EACf,MAAM,2BAA2B,CAAA;AAGlC,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,OAAO,EACd,eAAe,EAAE,mBAAmB,EAAE,EACtC,gBAAgB,EAAE,OAAO,EAAE,EAC3B,MAAM,EAAE,eAAe,GAAG,eAAe,EAAE,EAC3C,GAAG,EAAE,cAAc,EACnB,GAAG,EAAE,cAAc,EACnB,IAAI,CAAC,EAAE,OAAO,EACd,IAAI,GAAE,qBAA8C,GACnD,OAAO,CAAC,qCAAqC,CAAC,CAwChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildUnsignedTransaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/buildUnsignedTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"buildUnsignedTransaction.d.ts","sourceRoot":"","sources":["../../../src/transaction/buildUnsignedTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAwF,qBAAqB,EACzI,2BAA2B,EAC3B,cAAc,EACf,MAAM,2BAA2B,CAAA;AAGlC,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,OAAO,EACd,eAAe,EAAE,mBAAmB,EAAE,EACtC,gBAAgB,EAAE,OAAO,EAAE,EAC3B,GAAG,EAAE,cAAc,EACnB,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE,OAAO,EACb,IAAI,GAAE,qBAA8C,GACnD,OAAO,CAAC,2BAA2B,CAAC,CAmCtC"}
|
|
@@ -17,7 +17,7 @@ export declare function signTransaction(tx: UnsignedTransactionBoundWitness, acc
|
|
|
17
17
|
readonly __address: true;
|
|
18
18
|
})[];
|
|
19
19
|
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
20
|
-
payload_schemas: import("@xyo-network/
|
|
20
|
+
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
21
21
|
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
22
22
|
$signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
|
|
23
23
|
nbf: import("@xyo-network/xl1-protocol").XL1BlockNumber;
|
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-sdk",
|
|
4
|
-
"version": "1.24.
|
|
4
|
+
"version": "1.24.4",
|
|
5
5
|
"description": "XYO Layer One SDK Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./dist/neutral/index.d.ts",
|
|
26
|
+
"node": {
|
|
27
|
+
"types": "./dist/neutral/index-node.d.ts",
|
|
28
|
+
"export": "./dist/neutral/index-node.mjs"
|
|
29
|
+
},
|
|
26
30
|
"source": "./src/index.ts",
|
|
27
31
|
"default": "./dist/neutral/index.mjs"
|
|
28
32
|
},
|
|
@@ -44,23 +48,21 @@
|
|
|
44
48
|
"!**/*.test.*"
|
|
45
49
|
],
|
|
46
50
|
"dependencies": {
|
|
47
|
-
"@opentelemetry/api": "^1.9.0",
|
|
48
51
|
"@xylabs/axios": "^5.0.79",
|
|
49
52
|
"@xylabs/sdk-js": "~5.0.79",
|
|
50
53
|
"@xylabs/zod": "~5.0.79",
|
|
51
|
-
"@xyo-network/account": "~5.3.2",
|
|
52
54
|
"@xyo-network/account-model": "~5.3.2",
|
|
53
55
|
"@xyo-network/archivist-memory": "~5.3.2",
|
|
54
56
|
"@xyo-network/archivist-model": "~5.3.2",
|
|
55
|
-
"@xyo-network/boundwitness-builder": "~5.3.2",
|
|
56
57
|
"@xyo-network/boundwitness-model": "~5.3.2",
|
|
57
58
|
"@xyo-network/id-payload-plugin": "~5.3.2",
|
|
58
|
-
"@xyo-network/payload-builder": "~5.3.2",
|
|
59
59
|
"@xyo-network/payload-model": "~5.3.2",
|
|
60
|
+
"@xyo-network/sdk-js": "~5.3.2",
|
|
60
61
|
"@xyo-network/wallet": "~5.3.2",
|
|
61
|
-
"@xyo-network/xl1-protocol": "~1.24.
|
|
62
|
-
"@xyo-network/xl1-schema": "~1.24.
|
|
62
|
+
"@xyo-network/xl1-protocol": "~1.24.4",
|
|
63
|
+
"@xyo-network/xl1-schema": "~1.24.4",
|
|
63
64
|
"async-mutex": "~0.5.0",
|
|
65
|
+
"cosmiconfig": "^9.0.0",
|
|
64
66
|
"ethers": "^6.16.0",
|
|
65
67
|
"lru-cache": "^11.2.6"
|
|
66
68
|
},
|
|
@@ -70,7 +72,6 @@
|
|
|
70
72
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
71
73
|
"@xylabs/tsconfig": "~7.3.2",
|
|
72
74
|
"@xylabs/vitest-extended": "~5.0.79",
|
|
73
|
-
"@xyo-network/account": "~5.3.2",
|
|
74
75
|
"@xyo-network/archivist-memory": "~5.3.2",
|
|
75
76
|
"@xyo-network/archivist-mongodb": "~5.3.2",
|
|
76
77
|
"@xyo-network/boundwitness-validator": "~5.3.2",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
zodAsFactory, zodIsFactory, zodToFactory,
|
|
3
|
+
} from '@xylabs/zod'
|
|
4
|
+
import { globalRegistry, z } from 'zod'
|
|
5
|
+
|
|
6
|
+
import { BaseConfigContextZod } from '../CreatableProvider/index.ts'
|
|
7
|
+
import { MnemonicStringZod } from '../validation/index.ts'
|
|
8
|
+
import { BaseConfigZod } from './Base.ts'
|
|
9
|
+
|
|
10
|
+
export const ActorConfigZod = BaseConfigZod.extend({
|
|
11
|
+
name: z.string(),
|
|
12
|
+
mnemonic: MnemonicStringZod.optional().register(globalRegistry, {
|
|
13
|
+
description: 'Mnemonic for the Actor wallet',
|
|
14
|
+
title: 'mnemonic',
|
|
15
|
+
type: 'string',
|
|
16
|
+
}),
|
|
17
|
+
healthCheckPort: z.coerce.number().optional().register(globalRegistry, {
|
|
18
|
+
description: 'Port for the Producer health checks',
|
|
19
|
+
title: 'producer.healthCheckPort',
|
|
20
|
+
type: 'number',
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export type ActorConfig = z.infer<typeof ActorConfigZod>
|
|
25
|
+
|
|
26
|
+
export const isActorConfig = zodIsFactory(ActorConfigZod)
|
|
27
|
+
export const asActorConfig = zodAsFactory(ActorConfigZod, 'asActorConfig')
|
|
28
|
+
export const toActorConfig = zodToFactory(ActorConfigZod, 'toActorConfig')
|
|
29
|
+
|
|
30
|
+
export const ActorConfigContext = BaseConfigContextZod.extend({ config: ActorConfigZod })
|
|
31
|
+
|
|
32
|
+
export type ActorConfigContext = z.infer<typeof ActorConfigContext>
|
|
33
|
+
|
|
34
|
+
export const isActorConfigContext = zodIsFactory(ActorConfigContext)
|
|
35
|
+
export const asActorConfigContext = zodAsFactory(ActorConfigContext, 'asActorConfigContext')
|
|
36
|
+
export const toActorConfigContext = zodToFactory(ActorConfigContext, 'toActorConfigContext')
|
package/src/config/Config.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { deepMerge } from '@xylabs/sdk-js'
|
|
2
1
|
import z from 'zod'
|
|
3
2
|
|
|
3
|
+
import { ActorConfigZod } from './Actor.ts'
|
|
4
4
|
import { BaseConfigZod } from './Base.ts'
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export type DeepPartial<T> = {
|
|
7
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const ActorsConfigZod = z.array(ActorConfigZod.loose()).describe('Actor-specific configurations that override the base configuration when the actor is running').default([])
|
|
7
11
|
|
|
8
12
|
export type ActorsConfig = z.infer<typeof ActorsConfigZod>
|
|
9
13
|
|
|
@@ -14,15 +18,12 @@ export type Config = z.infer<typeof ConfigZod>
|
|
|
14
18
|
export type ActorName = keyof ActorsConfig
|
|
15
19
|
|
|
16
20
|
export function resolveConfig(
|
|
17
|
-
config: Config
|
|
21
|
+
config: DeepPartial<Config>,
|
|
18
22
|
) {
|
|
19
23
|
const parsedConfig = ConfigZod.parse(config)
|
|
20
24
|
const { actors, ...rootConfig } = parsedConfig
|
|
21
25
|
parsedConfig.actors = actors.map((actorConfig) => {
|
|
22
|
-
return
|
|
26
|
+
return ActorConfigZod.loose().parse({ ...rootConfig, ...actorConfig })
|
|
23
27
|
})
|
|
24
28
|
return parsedConfig
|
|
25
29
|
}
|
|
26
|
-
|
|
27
|
-
/** @deprecated Use ConfigZod.parse({}) instead */
|
|
28
|
-
export const getDefaultConfig = (): Config => ConfigZod.parse({})
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
zodAsFactory, zodIsFactory, zodToFactory,
|
|
3
|
+
} from '@xylabs/zod'
|
|
4
|
+
import { globalRegistry, z } from 'zod'
|
|
5
|
+
|
|
6
|
+
import { BaseConfigContextZod } from '../CreatableProvider/index.ts'
|
|
7
|
+
import { ActorConfigZod } from './Actor.ts'
|
|
8
|
+
|
|
9
|
+
export const HostActorConfigZod = ActorConfigZod.extend({
|
|
10
|
+
host: z.string().default('localhost').register(globalRegistry, {
|
|
11
|
+
default: 'localhost',
|
|
12
|
+
description: 'Host for the Actor',
|
|
13
|
+
title: 'host',
|
|
14
|
+
type: 'string',
|
|
15
|
+
}),
|
|
16
|
+
port: z.coerce.number().default(8080).register(globalRegistry, {
|
|
17
|
+
default: 8080,
|
|
18
|
+
description: 'Port for the Actor',
|
|
19
|
+
title: 'port',
|
|
20
|
+
type: 'number',
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export type HostActorConfig = z.infer<typeof HostActorConfigZod>
|
|
25
|
+
|
|
26
|
+
export const isHostActorConfig = zodIsFactory(HostActorConfigZod)
|
|
27
|
+
export const asHostActorConfig = zodAsFactory(HostActorConfigZod, 'asHostActorConfig')
|
|
28
|
+
export const toHostActorConfig = zodToFactory(HostActorConfigZod, 'toHostActorConfig')
|
|
29
|
+
|
|
30
|
+
export const HostActorConfigContext = BaseConfigContextZod.extend({ config: HostActorConfigZod })
|
|
31
|
+
|
|
32
|
+
export type HostActorConfigContext = z.infer<typeof HostActorConfigContext>
|
|
33
|
+
|
|
34
|
+
export const isHostActorConfigContext = zodIsFactory(HostActorConfigContext)
|
|
35
|
+
export const asHostActorConfigContext = zodAsFactory(HostActorConfigContext, 'asHostActorConfigContext')
|
|
36
|
+
export const toHostActorConfigContext = zodToFactory(HostActorConfigContext, 'toHostActorConfigContext')
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { isDefined, isNull } from '@xylabs/sdk-js'
|
|
2
|
+
import { cosmiconfig } from 'cosmiconfig'
|
|
3
|
+
|
|
4
|
+
import { ConfigZod } from './Config.ts'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The name of the configuration file to search for.
|
|
8
|
+
*/
|
|
9
|
+
const configName = 'xyo'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The name of the section within the configuration file to parse.
|
|
13
|
+
*/
|
|
14
|
+
const configSection = 'xl1' // Default section in the config file
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Attempts to parse the configuration from a file using cosmiconfig.
|
|
18
|
+
* @returns The parsed configuration object if found and valid, otherwise undefined.
|
|
19
|
+
*/
|
|
20
|
+
export async function getFileConfig(searchPlaces?: string[]) {
|
|
21
|
+
const explorer = cosmiconfig(
|
|
22
|
+
configName,
|
|
23
|
+
{
|
|
24
|
+
cache: true,
|
|
25
|
+
searchPlaces,
|
|
26
|
+
},
|
|
27
|
+
)
|
|
28
|
+
const result = (await explorer.search())?.config
|
|
29
|
+
if (!isNull(result)) {
|
|
30
|
+
const section = result[configSection]
|
|
31
|
+
if (isDefined(section) && typeof section === 'object') {
|
|
32
|
+
return ConfigZod.loose().parse(section)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return ConfigZod.parse({})
|
|
36
|
+
}
|
package/src/config/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import { isDefined } from '@xylabs/sdk-js'
|
|
3
|
-
import { PayloadBuilder } from '@xyo-network/
|
|
3
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
4
4
|
import {
|
|
5
5
|
type ChainStakeIntent, ChainStakeIntentSchema, type Intent,
|
|
6
6
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, JsonObject } from '@xylabs/sdk-js'
|
|
2
2
|
import { toHex } from '@xylabs/sdk-js'
|
|
3
|
-
import { PayloadBuilder } from '@xyo-network/
|
|
3
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { Transfer } from '@xyo-network/xl1-protocol'
|
|
5
5
|
import { TransferSchema } from '@xyo-network/xl1-protocol'
|
|
6
6
|
|
package/src/eip-712/sign.ts
CHANGED
package/src/eip-712/verify.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asHash, isUndefined } from '@xylabs/sdk-js'
|
|
2
|
-
import { PayloadBuilder } from '@xyo-network/
|
|
2
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
3
3
|
import { verifyTypedData } from 'ethers'
|
|
4
4
|
|
|
5
5
|
import type { EIP712DataPayload, EIP712SignaturePayload } from './Payloads/index.ts'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './actor/index.ts'
|
|
2
|
+
export * from './block/index.ts'
|
|
3
|
+
export * from './constants.ts'
|
|
4
|
+
export * from './context/index.ts'
|
|
5
|
+
export * from './CreatableProvider/index.ts'
|
|
6
|
+
export * from './createDeclarationPayload.ts'
|
|
7
|
+
export * from './createTransferPayload.ts'
|
|
8
|
+
export * from './driver/index.ts'
|
|
9
|
+
export * from './eip-712/index.ts'
|
|
10
|
+
export * from './instances/index.ts'
|
|
11
|
+
export * from './model/index.ts'
|
|
12
|
+
export * from './multipliers.ts'
|
|
13
|
+
export * from './payloads/index.ts'
|
|
14
|
+
export * from './primitives/index.ts'
|
|
15
|
+
export * from './services/index.ts'
|
|
16
|
+
export * from './SignedBigInt.ts'
|
|
17
|
+
export * from './simple/index.ts'
|
|
18
|
+
export * from './status/index.ts'
|
|
19
|
+
export * from './summary/index.ts'
|
|
20
|
+
export * from './time/index.ts'
|
|
21
|
+
export * from './transaction/index.ts'
|
|
22
|
+
export * from './utils/index.ts'
|
|
23
|
+
export * from './validation/index.ts'
|
|
24
|
+
export * from './wallet/index.ts'
|
package/src/index.ts
CHANGED
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
export * from './actor/index.ts'
|
|
2
|
-
export * from './block/index.ts'
|
|
3
1
|
export * from './config/index.ts'
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './context/index.ts'
|
|
6
|
-
export * from './CreatableProvider/index.ts'
|
|
7
|
-
export * from './createDeclarationPayload.ts'
|
|
8
|
-
export * from './createTransferPayload.ts'
|
|
9
|
-
export * from './driver/index.ts'
|
|
10
|
-
export * from './eip-712/index.ts'
|
|
11
|
-
export * from './instances/index.ts'
|
|
12
|
-
export * from './model/index.ts'
|
|
13
|
-
export * from './multipliers.ts'
|
|
14
|
-
export * from './payloads/index.ts'
|
|
15
|
-
export * from './primitives/index.ts'
|
|
16
|
-
export * from './services/index.ts'
|
|
17
|
-
export * from './SignedBigInt.ts'
|
|
18
|
-
export * from './simple/index.ts'
|
|
19
|
-
export * from './status/index.ts'
|
|
20
|
-
export * from './summary/index.ts'
|
|
21
|
-
export * from './time/index.ts'
|
|
22
|
-
export * from './transaction/index.ts'
|
|
23
|
-
export * from './utils/index.ts'
|
|
24
|
-
export * from './validation/index.ts'
|
|
25
|
-
export * from './wallet/index.ts'
|
|
2
|
+
export * from './index-shared.ts'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
2
1
|
import type { PayloadBundle } from '@xyo-network/payload-model'
|
|
2
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
3
3
|
import type { SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol'
|
|
4
4
|
import { asSignedBlockBoundWitnessWithHashMeta } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
2
1
|
import type { PayloadBundle } from '@xyo-network/payload-model'
|
|
2
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
3
3
|
import type { SignedHydratedTransactionWithHashMeta } from '@xyo-network/xl1-protocol'
|
|
4
4
|
import { asSignedTransactionBoundWitnessWithHashMeta } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/sdk-js'
|
|
2
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
3
2
|
import { type PayloadBundle, PayloadBundleSchema } from '@xyo-network/payload-model'
|
|
3
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
6
6
|
import { flattenHydratedBlock } from '../../block/index.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/sdk-js'
|
|
2
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
3
2
|
import { type PayloadBundle, PayloadBundleSchema } from '@xyo-network/payload-model'
|
|
3
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { SignedHydratedTransactionWithHashMeta } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
6
6
|
import { flattenHydratedTransaction } from '../../transaction/index.ts'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertEx, exists, type Hash,
|
|
3
3
|
} from '@xylabs/sdk-js'
|
|
4
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
4
|
import { isAnyPayload } from '@xyo-network/payload-model'
|
|
5
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
6
6
|
import {
|
|
7
7
|
DataLakeData,
|
|
8
8
|
DataLakeRunner,
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
2
|
+
import {
|
|
3
|
+
isAnyPayload, isHashMeta, type Payload, type WithHashMeta,
|
|
4
|
+
} from '@xyo-network/payload-model'
|
|
1
5
|
import type {
|
|
2
6
|
DataLakesViewer,
|
|
7
|
+
SignedHydratedBlockWithHashMeta,
|
|
3
8
|
XyoConnection,
|
|
4
9
|
XyoGateway,
|
|
5
10
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -30,6 +35,25 @@ export class SimpleXyoGateway extends AbstractCreatableProvider<SimpleXyoGateway
|
|
|
30
35
|
return this._dataLakes
|
|
31
36
|
}
|
|
32
37
|
|
|
38
|
+
async blockByHash(hash: Hash): Promise<SignedHydratedBlockWithHashMeta | null> {
|
|
39
|
+
const [block, payloads] = await this.connection.viewer?.block.blockByHash(hash) ?? [null, []]
|
|
40
|
+
if (block !== null) {
|
|
41
|
+
const missingHashes = block.payload_hashes.filter(h => !payloads.some(p => p._hash === h))
|
|
42
|
+
const foundPayloads: Record<Hash, WithHashMeta<Payload>> = {}
|
|
43
|
+
const dataLakes = this.dataLakes ? this.dataLakes.dataLakes : []
|
|
44
|
+
for (const dataLake of dataLakes) {
|
|
45
|
+
const found = (await dataLake.getMany(missingHashes)).filter(p => isAnyPayload(p) && isHashMeta(p) && missingHashes.includes(p._hash)) as WithHashMeta<Payload>[]
|
|
46
|
+
for (const payload of found) {
|
|
47
|
+
foundPayloads[payload._hash] = payload
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
for (const [, payload] of Object.entries(foundPayloads)) {
|
|
51
|
+
payloads.push(payload)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return block ? [block, payloads] : null
|
|
55
|
+
}
|
|
56
|
+
|
|
33
57
|
override async createHandler() {
|
|
34
58
|
await super.createHandler()
|
|
35
59
|
this._connection = await this.locator.getInstance<XyoConnection>(XyoConnectionMoniker)
|
|
@@ -4,11 +4,13 @@ import type {
|
|
|
4
4
|
import {
|
|
5
5
|
assertEx, BigIntToJsonZod, isDefined,
|
|
6
6
|
} from '@xylabs/sdk-js'
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import {
|
|
8
|
+
isAnyPayload, isHashMeta, type Payload, type WithHashMeta,
|
|
9
|
+
} from '@xyo-network/payload-model'
|
|
10
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
9
11
|
import type {
|
|
10
12
|
AllowedBlockPayload, AttoXL1, ConfirmSubmittedTransactionOptions,
|
|
11
|
-
DataLakeRunner, DataLakesRunner, SignedHydratedTransaction, SignedHydratedTransactionWithHashMeta, TransactionOptions, Transfer, UnsignedHydratedTransaction,
|
|
13
|
+
DataLakeRunner, DataLakesRunner, SignedHydratedBlockWithHashMeta, SignedHydratedTransaction, SignedHydratedTransactionWithHashMeta, TransactionOptions, Transfer, UnsignedHydratedTransaction,
|
|
12
14
|
XyoConnection, XyoGatewayRunner, XyoSigner,
|
|
13
15
|
} from '@xyo-network/xl1-protocol'
|
|
14
16
|
import {
|
|
@@ -97,6 +99,25 @@ export class SimpleXyoGatewayRunner extends AbstractCreatableProvider<SimpleXyoG
|
|
|
97
99
|
return [await runner.broadcastTransaction([signedTx[0], signedTx[1]]), signedTx]
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
async blockByHash(hash: Hash): Promise<SignedHydratedBlockWithHashMeta | null> {
|
|
103
|
+
const [block, payloads] = await this.connection.viewer?.block.blockByHash(hash) ?? [null, []]
|
|
104
|
+
if (block !== null) {
|
|
105
|
+
const missingHashes = block.payload_hashes.filter(h => !payloads.some(p => p._hash === h))
|
|
106
|
+
const foundPayloads: Record<Hash, WithHashMeta<Payload>> = {}
|
|
107
|
+
const dataLakes = this.dataLakes ? this.dataLakes.dataLakes : []
|
|
108
|
+
for (const dataLake of dataLakes) {
|
|
109
|
+
const found = (await dataLake.getMany(missingHashes)).filter(p => isAnyPayload(p) && isHashMeta(p) && missingHashes.includes(p._hash)) as WithHashMeta<Payload>[]
|
|
110
|
+
for (const payload of found) {
|
|
111
|
+
foundPayloads[payload._hash] = payload
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
for (const [, payload] of Object.entries(foundPayloads)) {
|
|
115
|
+
payloads.push(payload)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return block ? [block, payloads] : null
|
|
119
|
+
}
|
|
120
|
+
|
|
100
121
|
async confirmSubmittedTransaction(txHash: Hash, options?: ConfirmSubmittedTransactionOptions): Promise<SignedHydratedTransaction> {
|
|
101
122
|
return await confirmSubmittedTransaction(
|
|
102
123
|
assertEx(this.connection.viewer, () => 'Connection viewer is undefined'),
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
assertEx, exists, type Hash,
|
|
3
3
|
} from '@xylabs/sdk-js'
|
|
4
4
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
5
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
6
5
|
import {
|
|
7
6
|
isPayloadBundle, Payload, Sequence,
|
|
8
7
|
WithHashMeta,
|
|
9
8
|
} from '@xyo-network/payload-model'
|
|
9
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
10
10
|
import {
|
|
11
11
|
BlockValidationViewer,
|
|
12
12
|
BlockValidationViewerMoniker,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Address, Promisable } from '@xylabs/sdk-js'
|
|
2
|
-
import { Account } from '@xyo-network/account'
|
|
3
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
4
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
3
|
import { type Payload } from '@xyo-network/payload-model'
|
|
4
|
+
import { Account, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
6
5
|
import type {
|
|
7
6
|
AllowedBlockPayload, ChainId, SignedHydratedTransactionWithHashMeta,
|
|
8
7
|
SignedTransactionBoundWitness, TransactionFeesBigInt,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Address, spanRootAsync } from '@xylabs/sdk-js'
|
|
2
2
|
import { assertEx } from '@xylabs/sdk-js'
|
|
3
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
4
3
|
import type { WithHashMeta } from '@xyo-network/payload-model'
|
|
5
4
|
import { isAnyPayload } from '@xyo-network/payload-model'
|
|
5
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
6
6
|
import type {
|
|
7
7
|
BlockViewer, CachingContext, MapType, XL1BlockRange,
|
|
8
8
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
4
3
|
import type { Schema, WithHashMeta } from '@xyo-network/payload-model'
|
|
5
4
|
import { isAnyPayload, isHashMeta } from '@xyo-network/payload-model'
|
|
5
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
6
6
|
import type {
|
|
7
7
|
BlockViewer, CachingContext, MapType, XL1BlockRange,
|
|
8
8
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable max-statements */
|
|
2
2
|
import { type Address } from '@xylabs/sdk-js'
|
|
3
3
|
import { assertEx } from '@xylabs/sdk-js'
|
|
4
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
4
|
import type { WithHashMeta } from '@xyo-network/payload-model'
|
|
6
5
|
import { isAnyPayload } from '@xyo-network/payload-model'
|
|
6
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
7
7
|
import type {
|
|
8
8
|
BlockViewer, CachingContext, MapType, XL1BlockRange,
|
|
9
9
|
} from '@xyo-network/xl1-protocol'
|
package/src/test/buildBlock.ts
CHANGED
|
@@ -4,9 +4,8 @@ import type { Hex } from '@xylabs/sdk-js'
|
|
|
4
4
|
import {
|
|
5
5
|
assertEx, isDefined, isHash, toSafeJsonString,
|
|
6
6
|
} from '@xylabs/sdk-js'
|
|
7
|
-
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
8
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
9
7
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
8
|
+
import { BoundWitnessBuilder, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
10
9
|
import type {
|
|
11
10
|
BlockBoundWitness, SignedHydratedBlockWithHashMeta, Transfer,
|
|
12
11
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import { asAddress, assertEx } from '@xylabs/sdk-js'
|
|
3
|
-
import { Account } from '@xyo-network/account'
|
|
4
3
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
5
4
|
import { MemoryArchivist } from '@xyo-network/archivist-memory'
|
|
6
5
|
import type { Id } from '@xyo-network/id-payload-plugin'
|
|
7
6
|
import { IdSchema } from '@xyo-network/id-payload-plugin'
|
|
8
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
9
7
|
import { asSchema } from '@xyo-network/payload-model'
|
|
8
|
+
import { Account, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
10
9
|
import {
|
|
11
10
|
asXL1BlockNumber,
|
|
12
11
|
type ChainId, type SignedHydratedBlockWithHashMeta, type SignedHydratedTransactionWithHashMeta,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { asAddress, assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import { Account } from '@xyo-network/account'
|
|
3
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
4
3
|
import type { Id } from '@xyo-network/id-payload-plugin'
|
|
5
4
|
import { IdSchema } from '@xyo-network/id-payload-plugin'
|
|
6
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
7
5
|
import { asSchema } from '@xyo-network/payload-model'
|
|
6
|
+
import { Account, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
8
7
|
import {
|
|
9
8
|
asXL1BlockNumber, type ChainId, type HydratedBlockWithHashMeta,
|
|
10
9
|
} from '@xyo-network/xl1-protocol'
|