@xyo-network/xl1-protocol 1.4.4 → 1.4.5
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/index.mjs +39 -39
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.mjs +39 -39
- package/dist/node/index.mjs.map +1 -1
- package/dist/types/block/AllowedBlockPayload.d.ts +2 -2
- package/dist/types/block/AllowedBlockPayload.d.ts.map +1 -1
- package/dist/types/chain/ChainAnalyzer.d.ts +1 -1
- package/dist/types/chain/ChainAnalyzer.d.ts.map +1 -1
- package/dist/types/index.d.ts +12 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/iterator/ChainIterator.d.ts +3 -3
- package/dist/types/iterator/ChainIterator.d.ts.map +1 -1
- package/dist/types/iterator/ChainIteratorEventData.d.ts +1 -1
- package/dist/types/iterator/ChainIteratorEventData.d.ts.map +1 -1
- package/dist/types/payload/elevatable/ChainStakeIntent.d.ts +1 -1
- package/dist/types/payload/elevatable/ChainStakeIntent.d.ts.map +1 -1
- package/dist/types/provider/v1/XyoNetwork.d.ts +1 -1
- package/dist/types/provider/v1/XyoNetwork.d.ts.map +1 -1
- package/dist/types/provider/v1/XyoProvider.d.ts +2 -2
- package/dist/types/provider/v1/XyoProvider.d.ts.map +1 -1
- package/dist/types/provider/v1/XyoRunner.d.ts +1 -1
- package/dist/types/provider/v1/XyoRunner.d.ts.map +1 -1
- package/dist/types/provider/v1/XyoSigner.d.ts +2 -2
- package/dist/types/provider/v1/XyoSigner.d.ts.map +1 -1
- package/dist/types/provider/v1/XyoViewer.d.ts +3 -3
- package/dist/types/provider/v1/XyoViewer.d.ts.map +1 -1
- package/dist/types/provider/v2/viewer/Account.d.ts +1 -1
- package/dist/types/provider/v2/viewer/Account.d.ts.map +1 -1
- package/dist/types/provider/v2/viewer/Block.d.ts +1 -1
- package/dist/types/provider/v2/viewer/Block.d.ts.map +1 -1
- package/dist/types/provider/v2/viewer/Chain.d.ts +1 -1
- package/dist/types/provider/v2/viewer/Chain.d.ts.map +1 -1
- package/dist/types/provider/v2/viewer/Transaction.d.ts +1 -1
- package/dist/types/provider/v2/viewer/Transaction.d.ts.map +1 -1
- package/dist/types/repository/TransactionReadRepository.d.ts +1 -1
- package/dist/types/repository/TransactionReadRepository.d.ts.map +1 -1
- package/dist/types/repository/TransactionRepositoryIterator.d.ts +1 -1
- package/dist/types/repository/TransactionRepositoryIterator.d.ts.map +1 -1
- package/dist/types/repository/TransactionWriteRepository.d.ts +1 -1
- package/dist/types/repository/TransactionWriteRepository.d.ts.map +1 -1
- package/dist/types/services/BlockProducer.d.ts +3 -3
- package/dist/types/services/BlockProducer.d.ts.map +1 -1
- package/dist/types/services/Election.d.ts +1 -1
- package/dist/types/services/Election.d.ts.map +1 -1
- package/dist/types/services/PendingTransactionsService.d.ts +1 -1
- package/dist/types/services/PendingTransactionsService.d.ts.map +1 -1
- package/dist/types/services/stakeIntent/StakeIntentService.d.ts +1 -1
- package/dist/types/services/stakeIntent/StakeIntentService.d.ts.map +1 -1
- package/dist/types/transaction/TransactionBoundWitness.d.ts +2 -2
- package/dist/types/transaction/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/types/validation/block/BlockValidationFunction.d.ts +1 -1
- package/dist/types/validation/block/BlockValidationFunction.d.ts.map +1 -1
- package/dist/types/validation/block/HydratedBlockStateValidationFunction.d.ts +5 -3
- package/dist/types/validation/block/HydratedBlockStateValidationFunction.d.ts.map +1 -1
- package/dist/types/validation/block/HydratedBlockValidationFunction.d.ts +1 -1
- package/dist/types/validation/block/HydratedBlockValidationFunction.d.ts.map +1 -1
- package/dist/types/validation/payload/InBlockPayloadValidationFunction.d.ts +1 -1
- package/dist/types/validation/payload/InBlockPayloadValidationFunction.d.ts.map +1 -1
- package/dist/types/validation/transaction/HydratedTransactionStateValidationFunction.d.ts +1 -1
- package/dist/types/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map +1 -1
- package/dist/types/validation/transaction/HydratedTransactionValidationFunction.d.ts +1 -1
- package/dist/types/validation/transaction/HydratedTransactionValidationFunction.d.ts.map +1 -1
- package/package.json +3 -10
- package/src/block/AllowedBlockPayload.ts +3 -3
- package/src/chain/ChainAnalyzer.ts +1 -1
- package/src/index.ts +12 -12
- package/src/iterator/ChainIterator.ts +3 -4
- package/src/iterator/ChainIteratorEventData.ts +1 -1
- package/src/payload/elevatable/ChainStakeIntent.ts +1 -2
- package/src/provider/v1/XyoNetwork.ts +1 -1
- package/src/provider/v1/XyoProvider.ts +2 -3
- package/src/provider/v1/XyoRunner.ts +1 -1
- package/src/provider/v1/XyoSigner.ts +2 -2
- package/src/provider/v1/XyoViewer.ts +3 -3
- package/src/provider/v2/viewer/Account.ts +1 -1
- package/src/provider/v2/viewer/Block.ts +1 -2
- package/src/provider/v2/viewer/Chain.ts +1 -2
- package/src/provider/v2/viewer/Transaction.ts +1 -2
- package/src/repository/TransactionReadRepository.ts +1 -2
- package/src/repository/TransactionRepositoryIterator.ts +1 -2
- package/src/repository/TransactionWriteRepository.ts +1 -2
- package/src/services/BlockProducer.ts +3 -3
- package/src/services/Election.ts +1 -2
- package/src/services/PendingTransactionsService.ts +1 -2
- package/src/services/stakeIntent/StakeIntentService.ts +1 -1
- package/src/transaction/TransactionBoundWitness.ts +2 -3
- package/src/validation/block/BlockValidationFunction.ts +1 -1
- package/src/validation/block/HydratedBlockStateValidationFunction.ts +3 -3
- package/src/validation/block/HydratedBlockValidationFunction.ts +1 -1
- package/src/validation/payload/InBlockPayloadValidationFunction.ts +1 -1
- package/src/validation/transaction/HydratedTransactionStateValidationFunction.ts +1 -1
- package/src/validation/transaction/HydratedTransactionValidationFunction.ts +1 -1
- package/tsconfig.json +0 -21
- package/dist/index.d.ts +0 -527
- package/dist/index.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { SignedHydratedTransaction } from '
|
|
3
|
+
import type { SignedHydratedTransaction } from '../../transaction/index.ts';
|
|
4
4
|
export interface XyoRunner {
|
|
5
5
|
broadcastTransaction(transaction: SignedHydratedTransaction): Promisable<Hash>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoRunner.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoRunner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"XyoRunner.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoRunner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,MAAM,WAAW,SAAS;IACxB,oBAAoB,CAAC,WAAW,EAAE,yBAAyB,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;CAC/E"}
|
|
@@ -2,8 +2,8 @@ import type { Address } from '@xylabs/hex';
|
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { Signed } from '@xyo-network/boundwitness-model';
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model';
|
|
5
|
-
import type { AllowedBlockPayload } from '
|
|
6
|
-
import type { TransactionBoundWitness, TransactionFeesBigInt } from '
|
|
5
|
+
import type { AllowedBlockPayload } from '../../block/index.ts';
|
|
6
|
+
import type { TransactionBoundWitness, TransactionFeesBigInt } from '../../transaction/index.ts';
|
|
7
7
|
export interface XyoSigner {
|
|
8
8
|
address(): Promisable<Address>;
|
|
9
9
|
createSignedTransaction(chain: Address, elevatedPayloads: AllowedBlockPayload[], additionalPayloads: Payload[], nbf: number, exp: number, fees: TransactionFeesBigInt, from?: Address): Promisable<Signed<TransactionBoundWitness>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoSigner.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoSigner.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,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"XyoSigner.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoSigner.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,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEhG,MAAM,WAAW,SAAS;IACxB,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAC9B,uBAAuB,CACrB,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,kBAAkB,EAAE,OAAO,EAAE,EAC7B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,EAC3B,IAAI,CAAC,EAAE,OAAO,GACb,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAA;CAC/C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { SignedHydratedBlock } from '
|
|
4
|
-
import type { Transfer } from '
|
|
5
|
-
import type { SignedHydratedTransaction, TransactionBoundWitness } from '
|
|
3
|
+
import type { SignedHydratedBlock } from '../../block/index.ts';
|
|
4
|
+
import type { Transfer } from '../../payload/index.ts';
|
|
5
|
+
import type { SignedHydratedTransaction, TransactionBoundWitness } from '../../transaction/index.ts';
|
|
6
6
|
export interface XyoViewer {
|
|
7
7
|
accountBalance: (address: Address) => Promisable<bigint>;
|
|
8
8
|
accountHistory: (address: Address) => Promisable<[TransactionBoundWitness[], Transfer[]]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"XyoViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAEpG,MAAM,WAAW,SAAS;IACxB,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;IACxD,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC,uBAAuB,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAA;IAEzF,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAA;IAC/D,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAA;IAC1E,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAA;IAE3E,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAE9B,YAAY,IAAI,UAAU,CAAC,mBAAmB,CAAC,CAAA;IAC/C,gBAAgB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACpC,kBAAkB,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAExC,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACvH,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IAC7H,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;CACvF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { Transfer } from '
|
|
3
|
+
import type { Transfer } from '../../../payload/index.ts';
|
|
4
4
|
export interface AccountViewer {
|
|
5
5
|
balance(): Promisable<bigint>;
|
|
6
6
|
history(limit?: number, previous?: Hash): Promisable<Transfer[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD,MAAM,WAAW,aAAa;IAC5B,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC7B,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;CACjE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
-
import type { SignedHydratedBlock } from '
|
|
2
|
+
import type { SignedHydratedBlock } from '../../../block/index.ts';
|
|
3
3
|
import type { TransactionViewer } from './Transaction.ts';
|
|
4
4
|
export interface BlockViewer {
|
|
5
5
|
chainId: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,mBAAmB,CAAA;IAC1B,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB,CAAA;CAClD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { NetworkStatus } from '
|
|
3
|
+
import type { NetworkStatus } from '../../../network/index.ts';
|
|
4
4
|
import type { AccountViewer } from './Account.ts';
|
|
5
5
|
import type { BlockViewer } from './Block.ts';
|
|
6
6
|
export interface ChainViewer {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAAA;IACxC,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,WAAW,CAAA;IACrC,YAAY,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IAChC,MAAM,IAAI,aAAa,CAAA;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../../src/provider/v2/viewer/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,yBAAyB,CAAA;CACjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HydratedTransaction, TransactionBoundWitness } from '
|
|
1
|
+
import type { HydratedTransaction, TransactionBoundWitness } from '../transaction/index.ts';
|
|
2
2
|
import type { ReadRepository } from './Repository.ts';
|
|
3
3
|
export interface TransactionReadRepository extends ReadRepository<TransactionBoundWitness, HydratedTransaction> {
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionReadRepository.d.ts","sourceRoot":"","sources":["../../../src/repository/TransactionReadRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionReadRepository.d.ts","sourceRoot":"","sources":["../../../src/repository/TransactionReadRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,uBAAuB,EAAE,mBAAmB,CAAC;CAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HydratedTransaction, TransactionBoundWitness } from '
|
|
1
|
+
import type { HydratedTransaction, TransactionBoundWitness } from '../transaction/index.ts';
|
|
2
2
|
import type { IterableRepository } from './Repository.ts';
|
|
3
3
|
export interface TransactionRepositoryIterator extends IterableRepository<TransactionBoundWitness, HydratedTransaction> {
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRepositoryIterator.d.ts","sourceRoot":"","sources":["../../../src/repository/TransactionRepositoryIterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionRepositoryIterator.d.ts","sourceRoot":"","sources":["../../../src/repository/TransactionRepositoryIterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB,CAAC,uBAAuB,EAAE,mBAAmB,CAAC;CAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HydratedTransaction } from '
|
|
1
|
+
import type { HydratedTransaction } from '../transaction/index.ts';
|
|
2
2
|
import type { WriteRepository } from './Repository.ts';
|
|
3
3
|
export interface TransactionWriteRepository extends WriteRepository<HydratedTransaction, boolean> {
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionWriteRepository.d.ts","sourceRoot":"","sources":["../../../src/repository/TransactionWriteRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionWriteRepository.d.ts","sourceRoot":"","sources":["../../../src/repository/TransactionWriteRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,MAAM,WAAW,0BAA2B,SAAQ,eAAe,CAAC,mBAAmB,EAAE,OAAO,CAAC;CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BlockBoundWitness, HydratedBlock } from '
|
|
2
|
-
import type { Addressable } from '
|
|
3
|
-
import type { IterableRepository } from '
|
|
1
|
+
import type { BlockBoundWitness, HydratedBlock } from '../block/index.ts';
|
|
2
|
+
import type { Addressable } from '../fields/index.ts';
|
|
3
|
+
import type { IterableRepository } from '../repository/index.ts';
|
|
4
4
|
export type NextBlockProducer = IterableRepository<BlockBoundWitness, HydratedBlock>;
|
|
5
5
|
export interface BlockProducer extends Addressable, NextBlockProducer {
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockProducer.d.ts","sourceRoot":"","sources":["../../../src/services/BlockProducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BlockProducer.d.ts","sourceRoot":"","sources":["../../../src/services/BlockProducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAA;AAEpF,MAAM,WAAW,aAAc,SAAQ,WAAW,EAAE,iBAAiB;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Election.d.ts","sourceRoot":"","sources":["../../../src/services/Election.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Election.d.ts","sourceRoot":"","sources":["../../../src/services/Election.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAE9C;;;OAGG;IACH,+BAA+B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;CAEhF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { HydratedTransaction } from '
|
|
2
|
+
import type { HydratedTransaction } from '../transaction/index.ts';
|
|
3
3
|
import type { Service } from './Service.ts';
|
|
4
4
|
export interface PendingTransactionsService extends Service {
|
|
5
5
|
getPendingTransactions(head: Hash, limit: number, timeout?: number): Promise<HydratedTransaction[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PendingTransactionsService.d.ts","sourceRoot":"","sources":["../../../src/services/PendingTransactionsService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PendingTransactionsService.d.ts","sourceRoot":"","sources":["../../../src/services/PendingTransactionsService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,0BAA2B,SAAQ,OAAO;IACzD,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;CACpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeIntentService.d.ts","sourceRoot":"","sources":["../../../../src/services/stakeIntent/StakeIntentService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"StakeIntentService.d.ts","sourceRoot":"","sources":["../../../../src/services/stakeIntent/StakeIntentService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IAEjC;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAE7G;;;;MAIE;IACF,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAEhF;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACpF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { BoundWitness, Signed } from '@xyo-network/boundwitness-model';
|
|
3
3
|
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
4
|
-
import type { BlockDuration } from '
|
|
5
|
-
import type { FromFields, OptionalExecutable } from '
|
|
4
|
+
import type { BlockDuration } from '../fields/index.ts';
|
|
5
|
+
import type { FromFields, OptionalExecutable } from '../payload/index.ts';
|
|
6
6
|
import type { TransactionFeesFields } from './TransactionFeesFields.ts';
|
|
7
7
|
export interface TransactionBoundWitnessFields extends BlockDuration, TransactionFeesFields {
|
|
8
8
|
chain: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/transaction/TransactionBoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/transaction/TransactionBoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,MAAM,WAAW,6BAA8B,SAAQ,aAAa,EAAE,qBAAqB;IACzF,KAAK,EAAE,OAAO,CAAA;CACf;AAED,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,6BAA6B,GAAG,kBAAkB,GAAG,UAAU,CAAC,CAAA;AAEnH,eAAO,MAAM,yBAAyB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,uBAOnE,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,uBAAuB,CAEvG,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,CAAC,CAGnE,CAAA;AAE/B,eAAO,MAAM,wCAAwC,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,eAAe,CAAC,uBAAuB,CAEjG,CAAA;AAEzB,eAAO,MAAM,8CAA8C,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAE/G,CAAA;AAEzB,eAAO,MAAM,yBAAyB;;;CAAoD,CAAA;AAC1F,eAAO,MAAM,iCAAiC,8GAA4D,CAAA;AAE1G,eAAO,MAAM,wCAAwC;;;CAAmE,CAAA;AACxH,eAAO,MAAM,gDAAgD,+HAA2E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { BlockBoundWitness } from '
|
|
3
|
+
import type { BlockBoundWitness } from '../../block/index.ts';
|
|
4
4
|
export type BlockValidatorFunction = (block: BlockBoundWitness, chainId?: Address) => Promisable<Error[]>;
|
|
5
5
|
//# sourceMappingURL=BlockValidationFunction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/BlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/BlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { HydratedBlock } from '../../block/index.ts';
|
|
4
|
+
import type { AccountBalanceService } from '../../services/index.ts';
|
|
5
5
|
/**
|
|
6
6
|
* A function that validates a hydrated block against chain state.
|
|
7
7
|
* @param hydratedBlock The hydrated block to validate.
|
|
@@ -9,5 +9,7 @@ import type { HydratedBlock } from '#block';
|
|
|
9
9
|
* @param archivist The archivist to use for validation.
|
|
10
10
|
* @returns An array of errors if the block is invalid, or an empty array if it is valid.
|
|
11
11
|
*/
|
|
12
|
-
export type HydratedBlockStateValidationFunction = (hydratedBlock: HydratedBlock, chainId: Address,
|
|
12
|
+
export type HydratedBlockStateValidationFunction = (hydratedBlock: HydratedBlock, chainId: Address, services: {
|
|
13
|
+
accountBalance: AccountBalanceService;
|
|
14
|
+
}) => Promisable<Error[]>;
|
|
13
15
|
//# sourceMappingURL=HydratedBlockStateValidationFunction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedBlockStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockStateValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"HydratedBlockStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockStateValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpE;;;;;;GAMG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,cAAc,EAAE,qBAAqB,CAAA;CAAE,KAChD,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { HydratedBlock } from '
|
|
3
|
+
import type { HydratedBlock } from '../../block/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* A function that validates a hydrated block.
|
|
6
6
|
* @param hydratedBlock The hydrated block to validate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedBlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HydratedBlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAC3C,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise';
|
|
2
2
|
import type { Payload, WithHashStorageMeta } from '@xyo-network/payload-model';
|
|
3
|
-
import type { HydratedBlock } from '
|
|
3
|
+
import type { HydratedBlock } from '../../block/index.ts';
|
|
4
4
|
export type InBlockPayloadValidationFunction = (payload: WithHashStorageMeta<Payload>, block: HydratedBlock) => Promisable<Error[]>;
|
|
5
5
|
//# sourceMappingURL=InBlockPayloadValidationFunction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InBlockPayloadValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/payload/InBlockPayloadValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"InBlockPayloadValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/payload/InBlockPayloadValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,MAAM,gCAAgC,GAAG,CAC7C,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,aAAa,KACxD,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { HydratedBoundWitnessWithStorageMeta, ReadArchivist } from '@xyo-network/archivist-model';
|
|
4
|
-
import type { TransactionBoundWitness } from '
|
|
4
|
+
import type { TransactionBoundWitness } from '../../transaction/index.ts';
|
|
5
5
|
/**
|
|
6
6
|
* A function that validates a hydrated transaction against chain state.
|
|
7
7
|
* @param hydratedTransaction The hydrated transaction to validate.
|
package/dist/types/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedTransactionStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionStateValidationFunction.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,mCAAmC,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEtG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HydratedTransactionStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionStateValidationFunction.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,mCAAmC,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEtG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAEzE;;;;;;GAMG;AACH,MAAM,MAAM,0CAA0C,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,CACpH,mBAAmB,EAAE,mCAAmC,CAAC,CAAC,CAAC,EAC3D,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,aAAa,KACrB,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { HydratedTransaction, HydratedTransactionWithHashStorageMeta, TransactionBoundWitness } from '
|
|
3
|
+
import type { HydratedTransaction, HydratedTransactionWithHashStorageMeta, TransactionBoundWitness } from '../../transaction/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* A function that validates a hydrated transaction.
|
|
6
6
|
* @param bw The hydrated transaction to validate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedTransactionValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EACV,mBAAmB,EAAE,sCAAsC,EAAE,uBAAuB,EACrF,MAAM,
|
|
1
|
+
{"version":3,"file":"HydratedTransactionValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EACV,mBAAmB,EAAE,sCAAsC,EAAE,uBAAuB,EACrF,MAAM,4BAA4B,CAAA;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,oCAAoC,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,CAC9G,mBAAmB,EAAE,sCAAsC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EACnF,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA"}
|
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.4.
|
|
4
|
+
"version": "1.4.5",
|
|
5
5
|
"description": "XYO Layer One Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"types": "./dist/index.d.ts",
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"source": "./src/index.ts",
|
|
27
27
|
"default": "./dist/neutral/index.mjs"
|
|
28
28
|
},
|
|
@@ -30,10 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"module": "./dist/neutral/index.mjs",
|
|
32
32
|
"source": "./src/index.ts",
|
|
33
|
-
"types": "./dist/index.d.ts",
|
|
34
|
-
"scripts": {
|
|
35
|
-
"package-compile": "package-compile-only && rollup --config rollup.dts.config.mjs"
|
|
36
|
-
},
|
|
33
|
+
"types": "./dist/types/index.d.ts",
|
|
37
34
|
"dependencies": {
|
|
38
35
|
"@opentelemetry/api": "^1.9.0",
|
|
39
36
|
"@xylabs/base": "^4.10.1",
|
|
@@ -50,8 +47,6 @@
|
|
|
50
47
|
"@xyo-network/wallet-model": "^3.17.0"
|
|
51
48
|
},
|
|
52
49
|
"devDependencies": {
|
|
53
|
-
"@esbuild-plugins/tsconfig-paths": "^0.1.2",
|
|
54
|
-
"@rollup/plugin-alias": "^5.1.1",
|
|
55
50
|
"@types/node": "^22.15.22",
|
|
56
51
|
"@xylabs/eslint-config-flat": "^6.5.7",
|
|
57
52
|
"@xylabs/ts-scripts-yarn3": "^6.5.7",
|
|
@@ -61,8 +56,6 @@
|
|
|
61
56
|
"eslint": "^9.27.0",
|
|
62
57
|
"eslint-import-resolver-typescript": "^4.4.1",
|
|
63
58
|
"knip": "^5.58.1",
|
|
64
|
-
"rollup": "^4.41.1",
|
|
65
|
-
"rollup-plugin-dts": "^6.2.1",
|
|
66
59
|
"typescript": "^5.8.3",
|
|
67
60
|
"vite": "^6.3.5",
|
|
68
61
|
"vite-tsconfig-paths": "^5.1.4",
|
|
@@ -6,11 +6,11 @@ import { isSchemaPayload, SchemaSchema } from '@xyo-network/schema-payload-plugi
|
|
|
6
6
|
|
|
7
7
|
import type {
|
|
8
8
|
ChainStakeIntent, HashPayload, Transfer,
|
|
9
|
-
} from '
|
|
9
|
+
} from '../payload/index.ts'
|
|
10
10
|
import {
|
|
11
11
|
ChainStakeIntentSchema, HashSchema, isChainStakeIntent, isHashPayload, isTransfer, TransferSchema,
|
|
12
|
-
} from '
|
|
13
|
-
import { isTransactionBoundWitness, type TransactionBoundWitness } from '
|
|
12
|
+
} from '../payload/index.ts'
|
|
13
|
+
import { isTransactionBoundWitness, type TransactionBoundWitness } from '../transaction/index.ts'
|
|
14
14
|
|
|
15
15
|
export type AllowedBlockPayload = Transfer | ChainStakeIntent | SchemaPayload | TransactionBoundWitness | HashPayload
|
|
16
16
|
export const AllowedBlockPayloadSchemas: Schema[] = [TransferSchema, ChainStakeIntentSchema, SchemaSchema, BoundWitnessSchema, HashSchema]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
import type { Payload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import type { HydratedBlock } from '
|
|
4
|
+
import type { HydratedBlock } from '../block/index.ts'
|
|
5
5
|
|
|
6
6
|
export interface ChainAnalyzer<T extends Payload = Payload> {
|
|
7
7
|
onBlock(block: HydratedBlock): Promisable<boolean>
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
export * from './block/index.ts'
|
|
2
|
+
export * from './chain/index.ts'
|
|
3
|
+
export * from './constants/index.ts'
|
|
4
|
+
export * from './fields/index.ts'
|
|
1
5
|
export * from './Initializable.ts'
|
|
6
|
+
export * from './iterator/index.ts'
|
|
7
|
+
export * from './network/index.ts'
|
|
2
8
|
export * from './OpenTelemetryProviders.ts'
|
|
9
|
+
export * from './payload/index.ts'
|
|
10
|
+
export * from './provider/index.ts'
|
|
11
|
+
export * from './repository/index.ts'
|
|
12
|
+
export * from './services/index.ts'
|
|
13
|
+
export * from './transaction/index.ts'
|
|
14
|
+
export * from './validation/index.ts'
|
|
3
15
|
export * from './xl1/index.ts'
|
|
4
|
-
export * from '#block'
|
|
5
|
-
export * from '#chain'
|
|
6
|
-
export * from '#constants'
|
|
7
|
-
export * from '#fields'
|
|
8
|
-
export * from '#iterator'
|
|
9
|
-
export * from '#network'
|
|
10
|
-
export * from '#payload'
|
|
11
|
-
export * from '#provider'
|
|
12
|
-
export * from '#repository'
|
|
13
|
-
export * from '#services'
|
|
14
|
-
export * from '#transaction'
|
|
15
|
-
export * from '#validation'
|
|
@@ -3,10 +3,9 @@ import type { BaseEmitter } from '@xylabs/events'
|
|
|
3
3
|
import type { Hash } from '@xylabs/hex'
|
|
4
4
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
5
5
|
|
|
6
|
-
import type { BlockBoundWitness } from '
|
|
7
|
-
import type { IterableRepository, ReadRepository } from '
|
|
8
|
-
import type { BaseServiceParams, ChainIdentification } from '
|
|
9
|
-
|
|
6
|
+
import type { BlockBoundWitness } from '../block/index.ts'
|
|
7
|
+
import type { IterableRepository, ReadRepository } from '../repository/index.ts'
|
|
8
|
+
import type { BaseServiceParams, ChainIdentification } from '../services/index.ts'
|
|
10
9
|
import type { ChainIteratorEventData } from './ChainIteratorEventData.ts'
|
|
11
10
|
|
|
12
11
|
export interface ChainIterator<TKey, THead> extends ReadRepository<TKey, BlockBoundWitness>, IterableRepository<TKey, BlockBoundWitness> {
|
|
@@ -2,8 +2,7 @@ import { AsObjectFactory } from '@xylabs/object'
|
|
|
2
2
|
import type { Payload } from '@xyo-network/payload-model'
|
|
3
3
|
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import type { BlockDuration } from '
|
|
6
|
-
|
|
5
|
+
import type { BlockDuration } from '../../fields/index.ts'
|
|
7
6
|
import type { FromFields } from './Executable.ts'
|
|
8
7
|
|
|
9
8
|
export const ChainStakeIntentSchema = 'network.xyo.chain.stake.intent' as const
|
|
@@ -2,9 +2,8 @@ import type { Address } from '@xylabs/hex'
|
|
|
2
2
|
import type { Signed } from '@xyo-network/boundwitness-model'
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import type { AllowedBlockPayload } from '
|
|
6
|
-
import type { TransactionBoundWitness, TransactionFeesBigInt } from '
|
|
7
|
-
|
|
5
|
+
import type { AllowedBlockPayload } from '../../block/index.ts'
|
|
6
|
+
import type { TransactionBoundWitness, TransactionFeesBigInt } from '../../transaction/index.ts'
|
|
8
7
|
import type { XyoDataLakeProvider } from './XyoDataLake.ts'
|
|
9
8
|
import type { XyoNetwork } from './XyoNetwork.ts'
|
|
10
9
|
import type { XyoRunner } from './XyoRunner.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { SignedHydratedTransaction } from '
|
|
4
|
+
import type { SignedHydratedTransaction } from '../../transaction/index.ts'
|
|
5
5
|
|
|
6
6
|
export interface XyoRunner {
|
|
7
7
|
broadcastTransaction(transaction: SignedHydratedTransaction): Promisable<Hash>
|
|
@@ -3,8 +3,8 @@ import type { Promisable } from '@xylabs/promise'
|
|
|
3
3
|
import type { Signed } from '@xyo-network/boundwitness-model'
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
|
-
import type { AllowedBlockPayload } from '
|
|
7
|
-
import type { TransactionBoundWitness, TransactionFeesBigInt } from '
|
|
6
|
+
import type { AllowedBlockPayload } from '../../block/index.ts'
|
|
7
|
+
import type { TransactionBoundWitness, TransactionFeesBigInt } from '../../transaction/index.ts'
|
|
8
8
|
|
|
9
9
|
export interface XyoSigner {
|
|
10
10
|
address(): Promisable<Address>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { SignedHydratedBlock } from '
|
|
5
|
-
import type { Transfer } from '
|
|
6
|
-
import type { SignedHydratedTransaction, TransactionBoundWitness } from '
|
|
4
|
+
import type { SignedHydratedBlock } from '../../block/index.ts'
|
|
5
|
+
import type { Transfer } from '../../payload/index.ts'
|
|
6
|
+
import type { SignedHydratedTransaction, TransactionBoundWitness } from '../../transaction/index.ts'
|
|
7
7
|
|
|
8
8
|
export interface XyoViewer {
|
|
9
9
|
accountBalance: (address: Address) => Promisable<bigint>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex'
|
|
2
2
|
|
|
3
|
-
import type { SignedHydratedBlock } from '
|
|
4
|
-
|
|
3
|
+
import type { SignedHydratedBlock } from '../../../block/index.ts'
|
|
5
4
|
import type { TransactionViewer } from './Transaction.ts'
|
|
6
5
|
|
|
7
6
|
export interface BlockViewer {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { NetworkStatus } from '
|
|
5
|
-
|
|
4
|
+
import type { NetworkStatus } from '../../../network/index.ts'
|
|
6
5
|
import type { AccountViewer } from './Account.ts'
|
|
7
6
|
import type { BlockViewer } from './Block.ts'
|
|
8
7
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { HydratedTransaction, TransactionBoundWitness } from '
|
|
2
|
-
|
|
1
|
+
import type { HydratedTransaction, TransactionBoundWitness } from '../transaction/index.ts'
|
|
3
2
|
import type { ReadRepository } from './Repository.ts'
|
|
4
3
|
|
|
5
4
|
export interface TransactionReadRepository extends ReadRepository<TransactionBoundWitness, HydratedTransaction> {}
|