@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 type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
4
3
|
import type { WithHashMeta } from '@xyo-network/payload-model'
|
|
4
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
5
5
|
import type {
|
|
6
6
|
AllowedBlockPayload, ChainId, SignedHydratedBlockWithHashMeta,
|
|
7
7
|
} from '@xyo-network/xl1-protocol'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
|
-
import { PayloadBuilder } from '@xyo-network/
|
|
3
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
4
4
|
import type {
|
|
5
5
|
ChainId, ChainStakeIntent,
|
|
6
6
|
HydratedTransactionWithHashMeta,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
|
-
import { Account } from '@xyo-network/account'
|
|
3
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
|
+
import { Account } from '@xyo-network/sdk-js'
|
|
4
4
|
import { type ChainId, XYO_ZERO_ADDRESS } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
6
6
|
import { getTestProviderContext } from '../_internal/index.ts'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Hex } from '@xylabs/sdk-js'
|
|
2
2
|
import { assertEx, Base } from '@xylabs/sdk-js'
|
|
3
3
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
4
|
-
import { PayloadBuilder, type PayloadBuilderOptions } from '@xyo-network/payload-builder'
|
|
5
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
|
+
import { PayloadBuilder, type PayloadBuilderOptions } from '@xyo-network/sdk-js'
|
|
6
6
|
import type {
|
|
7
7
|
AllowedBlockPayload,
|
|
8
8
|
ChainId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } 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 { Payload, Schema } from '@xyo-network/payload-model'
|
|
4
|
+
import { Account } from '@xyo-network/sdk-js'
|
|
5
5
|
import type {
|
|
6
6
|
AllowedBlockPayload, ChainId,
|
|
7
7
|
SignedHydratedTransactionWithHashMeta,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import { assertEx, toHex } from '@xylabs/sdk-js'
|
|
3
3
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
4
|
-
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
5
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
6
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
|
+
import { BoundWitnessBuilder, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
7
6
|
import type {
|
|
8
7
|
AllowedBlockPayload,
|
|
9
8
|
ChainId,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import { toHex } from '@xylabs/sdk-js'
|
|
3
|
-
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
4
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
|
+
import { BoundWitnessBuilder, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
6
5
|
import type {
|
|
7
6
|
AllowedBlockPayload, ChainId, ExecutableFields, FromFields, TransactionBoundWitness, TransactionBoundWitnessFields, TransactionFeesBigInt,
|
|
8
7
|
UnsignedHydratedTransaction,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PayloadBuilder } from '@xyo-network/
|
|
1
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
2
2
|
import type { HydratedTransaction } from '@xyo-network/xl1-protocol'
|
|
3
3
|
|
|
4
4
|
/** The number of bytes that a transaction and its payloads will take up in a block */
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from '@xylabs/sdk-js'
|
|
4
4
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
5
5
|
import type { Signed } from '@xyo-network/boundwitness-model'
|
|
6
|
-
import { PayloadBuilder } from '@xyo-network/
|
|
6
|
+
import { PayloadBuilder } from '@xyo-network/sdk-js'
|
|
7
7
|
import type { TransactionBoundWitness, UnsignedTransactionBoundWitness } from '@xyo-network/xl1-protocol'
|
|
8
8
|
|
|
9
9
|
/**
|