@cardano-sdk/projection 0.11.16 → 0.11.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Bootstrap/fromCardanoNode.js +2 -2
- package/dist/cjs/Bootstrap/fromCardanoNode.js.map +1 -1
- package/dist/cjs/operators/Mappers/withAddresses.js +2 -2
- package/dist/cjs/operators/Mappers/withAddresses.js.map +1 -1
- package/dist/cjs/operators/Mappers/withCIP67.js +2 -2
- package/dist/cjs/operators/Mappers/withCIP67.js.map +1 -1
- package/dist/cjs/operators/Mappers/withNftMetadata.js +2 -2
- package/dist/cjs/operators/Mappers/withNftMetadata.js.map +1 -1
- package/dist/cjs/operators/requestNext.js +2 -2
- package/dist/cjs/operators/requestNext.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/Bootstrap/fromCardanoNode.d.ts +1 -1
- package/dist/esm/Bootstrap/fromCardanoNode.js +3 -3
- package/dist/esm/Bootstrap/fromCardanoNode.js.map +1 -1
- package/dist/esm/Bootstrap/index.d.ts +1 -1
- package/dist/esm/Bootstrap/index.js +1 -1
- package/dist/esm/InMemory/InMemoryStabilityWindowBuffer.d.ts +2 -2
- package/dist/esm/InMemory/createStore.d.ts +1 -1
- package/dist/esm/InMemory/index.d.ts +4 -4
- package/dist/esm/InMemory/index.js +4 -4
- package/dist/esm/InMemory/operators/index.d.ts +2 -2
- package/dist/esm/InMemory/operators/index.js +2 -2
- package/dist/esm/InMemory/operators/storeStakeKeys.d.ts +2 -2
- package/dist/esm/InMemory/operators/storeStakeKeys.js +1 -1
- package/dist/esm/InMemory/operators/storeStakePools.d.ts +3 -3
- package/dist/esm/InMemory/operators/storeStakePools.js +1 -1
- package/dist/esm/InMemory/operators/utils.d.ts +2 -2
- package/dist/esm/InMemory/types.d.ts +1 -1
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/operators/Mappers/certificates/index.d.ts +4 -4
- package/dist/esm/operators/Mappers/certificates/index.js +4 -4
- package/dist/esm/operators/Mappers/certificates/withCertificates.d.ts +2 -2
- package/dist/esm/operators/Mappers/certificates/withCertificates.js +1 -1
- package/dist/esm/operators/Mappers/certificates/withStakeKeyRegistrations.d.ts +2 -2
- package/dist/esm/operators/Mappers/certificates/withStakeKeyRegistrations.js +1 -1
- package/dist/esm/operators/Mappers/certificates/withStakeKeys.d.ts +2 -2
- package/dist/esm/operators/Mappers/certificates/withStakeKeys.js +1 -1
- package/dist/esm/operators/Mappers/certificates/withStakePools.d.ts +3 -3
- package/dist/esm/operators/Mappers/certificates/withStakePools.js +1 -1
- package/dist/esm/operators/Mappers/index.d.ts +8 -8
- package/dist/esm/operators/Mappers/index.js +8 -8
- package/dist/esm/operators/Mappers/withAddresses.d.ts +2 -2
- package/dist/esm/operators/Mappers/withAddresses.js +2 -2
- package/dist/esm/operators/Mappers/withAddresses.js.map +1 -1
- package/dist/esm/operators/Mappers/withCIP67.d.ts +3 -3
- package/dist/esm/operators/Mappers/withCIP67.js +2 -2
- package/dist/esm/operators/Mappers/withCIP67.js.map +1 -1
- package/dist/esm/operators/Mappers/withHandleMetadata.d.ts +5 -5
- package/dist/esm/operators/Mappers/withHandleMetadata.js +1 -1
- package/dist/esm/operators/Mappers/withHandles.d.ts +3 -3
- package/dist/esm/operators/Mappers/withHandles.js +1 -1
- package/dist/esm/operators/Mappers/withMint.d.ts +3 -3
- package/dist/esm/operators/Mappers/withMint.js +2 -2
- package/dist/esm/operators/Mappers/withNftMetadata.d.ts +4 -4
- package/dist/esm/operators/Mappers/withNftMetadata.js +1 -1
- package/dist/esm/operators/Mappers/withNftMetadata.js.map +1 -1
- package/dist/esm/operators/Mappers/withUtxo.d.ts +3 -3
- package/dist/esm/operators/Mappers/withUtxo.js +1 -1
- package/dist/esm/operators/index.d.ts +10 -10
- package/dist/esm/operators/index.js +10 -10
- package/dist/esm/operators/logProjectionProgress.d.ts +1 -1
- package/dist/esm/operators/logProjectionProgress.js +1 -1
- package/dist/esm/operators/requestNext.js +1 -1
- package/dist/esm/operators/requestNext.js.map +1 -1
- package/dist/esm/operators/utils/index.d.ts +3 -3
- package/dist/esm/operators/utils/index.js +3 -3
- package/dist/esm/operators/utils/inferProjectorEventType.d.ts +1 -1
- package/dist/esm/operators/utils/projectorOperator.d.ts +3 -3
- package/dist/esm/operators/utils/projectorOperator.js +1 -1
- package/dist/esm/operators/utils/unifiedProjectorOperator.d.ts +3 -3
- package/dist/esm/operators/utils/unifiedProjectorOperator.js +1 -1
- package/dist/esm/operators/withEpochBoundary.d.ts +1 -1
- package/dist/esm/operators/withEpochNo.d.ts +2 -2
- package/dist/esm/operators/withEpochNo.js +1 -1
- package/dist/esm/operators/withEventContext.d.ts +1 -1
- package/dist/esm/operators/withNetworkInfo.d.ts +2 -2
- package/dist/esm/operators/withNetworkInfo.js +1 -1
- package/dist/esm/operators/withRolledBackBlock.d.ts +1 -1
- package/dist/esm/operators/withStaticContext.d.ts +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObservableCardanoNode, TipOrOrigin } from '@cardano-sdk/core';
|
|
2
2
|
import { Logger } from 'ts-log';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ProjectionEvent, StabilityWindowBuffer } from '../types';
|
|
4
|
+
import { ProjectionEvent, StabilityWindowBuffer } from '../types.js';
|
|
5
5
|
export declare const fromCardanoNode: ({ blocksBufferLength, buffer, projectedTip$, cardanoNode, logger: baseLogger }: {
|
|
6
6
|
blocksBufferLength: number;
|
|
7
7
|
buffer: StabilityWindowBuffer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ChainSyncEventType, ObservableCardanoNode } from '@cardano-sdk/core';
|
|
2
2
|
import { Observable, concat, defer, map, mergeMap, noop, of, switchMap, take, takeWhile, tap } from 'rxjs';
|
|
3
3
|
import { contextLogger } from '@cardano-sdk/util';
|
|
4
|
-
import { pointDescription } from '../util';
|
|
5
|
-
import { withEpochBoundary, withEpochNo, withNetworkInfo, withRolledBackBlock } from '../operators';
|
|
6
|
-
import uniq from 'lodash/uniq';
|
|
4
|
+
import { pointDescription } from '../util.js';
|
|
5
|
+
import { withEpochBoundary, withEpochNo, withNetworkInfo, withRolledBackBlock } from '../operators/index.js';
|
|
6
|
+
import uniq from 'lodash/uniq.js';
|
|
7
7
|
const isIntersectionBlock = (block, intersection) => {
|
|
8
8
|
if (intersection.point === 'origin') {
|
|
9
9
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromCardanoNode.js","sourceRoot":"","sources":["../../../src/Bootstrap/fromCardanoNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,kBAAkB,EAElB,qBAAqB,EAGtB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3G,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACpG,OAAO,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"fromCardanoNode.js","sourceRoot":"","sources":["../../../src/Bootstrap/fromCardanoNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,kBAAkB,EAElB,qBAAqB,EAGtB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,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I,KAAK,GAAG,CAAC,IAAI,CAAC,EAC3G;gBACA,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;gBAEpC,OAAO,oBAAoB,CAAC;oBAC1B,kBAAkB;oBAClB,MAAM;oBACN,WAAW;oBACX,SAAS,EAAE,gBAAgB;oBAC3B,MAAM;oBACN,aAAa;iBACd,CAAC,CAAC;aACJ;YAED,OAAO,+BAA+B,CAAC;gBACrC,kBAAkB;gBAClB,MAAM;gBACN,WAAW;gBACX,gBAAgB;gBAChB,MAAM;gBACN,aAAa;aACd,CAAC,CAAC;QACL,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './fromCardanoNode';
|
|
1
|
+
export * from './fromCardanoNode.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './fromCardanoNode';
|
|
1
|
+
export * from './fromCardanoNode.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { Cardano, TipOrOrigin } from '@cardano-sdk/core';
|
|
3
|
-
import { StabilityWindowBuffer, UnifiedExtChainSyncObservable, WithNetworkInfo } from '../types';
|
|
3
|
+
import { StabilityWindowBuffer, UnifiedExtChainSyncObservable, WithNetworkInfo } from '../types.js';
|
|
4
4
|
export declare class InMemoryStabilityWindowBuffer implements StabilityWindowBuffer {
|
|
5
5
|
#private;
|
|
6
6
|
readonly tip$: BehaviorSubject<TipOrOrigin>;
|
|
7
7
|
getBlock(id: Cardano.BlockId): Observable<Cardano.Block | null>;
|
|
8
|
-
handleEvents<E extends WithNetworkInfo>(): (evt$: UnifiedExtChainSyncObservable<E>) => Observable<import("../types").ExtChainSyncEvent<E, E & import("../types").WithBlock>>;
|
|
8
|
+
handleEvents<E extends WithNetworkInfo>(): (evt$: UnifiedExtChainSyncObservable<E>) => Observable<import("../types.js").ExtChainSyncEvent<E, E & import("../types.js").WithBlock>>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=InMemoryStabilityWindowBuffer.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './createStore';
|
|
2
|
-
export * from './InMemoryStabilityWindowBuffer';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './operators';
|
|
1
|
+
export * from './createStore.js';
|
|
2
|
+
export * from './InMemoryStabilityWindowBuffer.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './operators/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './createStore';
|
|
2
|
-
export * from './InMemoryStabilityWindowBuffer';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './operators';
|
|
1
|
+
export * from './createStore.js';
|
|
2
|
+
export * from './InMemoryStabilityWindowBuffer.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './operators/index.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './storeStakeKeys';
|
|
2
|
-
export * from './storeStakePools';
|
|
1
|
+
export * from './storeStakeKeys.js';
|
|
2
|
+
export * from './storeStakePools.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './storeStakeKeys';
|
|
2
|
-
export * from './storeStakePools';
|
|
1
|
+
export * from './storeStakeKeys.js';
|
|
2
|
+
export * from './storeStakePools.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Mappers } from '../../operators';
|
|
2
|
-
export declare const storeStakeKeys: <E extends import("
|
|
1
|
+
import { Mappers } from '../../operators/index.js';
|
|
2
|
+
export declare const storeStakeKeys: <E extends import("../../index.js").ProjectionEvent<Mappers.WithStakeKeys & import("../index.js").WithInMemoryStore>>() => import("rxjs").OperatorFunction<E, E>;
|
|
3
3
|
//# sourceMappingURL=storeStakeKeys.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mappers } from '../../operators';
|
|
2
|
-
import { WithInMemoryStore } from '../types';
|
|
3
|
-
export declare const storeStakePools: <E extends import("
|
|
1
|
+
import { Mappers } from '../../operators/index.js';
|
|
2
|
+
import { WithInMemoryStore } from '../types.js';
|
|
3
|
+
export declare const storeStakePools: <E extends import("../../index.js").ProjectionEvent<Mappers.WithStakePools & WithInMemoryStore>>() => import("rxjs").OperatorFunction<E, E>;
|
|
4
4
|
//# sourceMappingURL=storeStakePools.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainSyncEventType } from '@cardano-sdk/core';
|
|
2
|
-
import { inMemoryStoreOperator } from './utils';
|
|
2
|
+
import { inMemoryStoreOperator } from './utils.js';
|
|
3
3
|
const findOrCreate = ({ store: { stakePools } }, poolId) => {
|
|
4
4
|
let stakePool = stakePools.get(poolId);
|
|
5
5
|
if (!stakePool) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import { ProjectionEvent } from '../../types';
|
|
3
|
-
import { WithInMemoryStore } from '../types';
|
|
2
|
+
import { ProjectionEvent } from '../../types.js';
|
|
3
|
+
import { WithInMemoryStore } from '../types.js';
|
|
4
4
|
export declare const inMemoryStoreOperator: <ExtraProps>(op: (evt: ProjectionEvent<ExtraProps & WithInMemoryStore>) => void) => <E extends ProjectionEvent<ExtraProps & WithInMemoryStore>>() => OperatorFunction<E, E>;
|
|
5
5
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { Ed25519KeyHashHex } from '@cardano-sdk/crypto';
|
|
3
|
-
import { Mappers } from '../operators';
|
|
3
|
+
import { Mappers } from '../operators/index.js';
|
|
4
4
|
export declare type InMemoryStore = {
|
|
5
5
|
stakeKeys: Set<Ed25519KeyHashHex>;
|
|
6
6
|
stakePools: Map<Cardano.PoolId, {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as InMemory from './InMemory';
|
|
2
|
-
export * as Bootstrap from './Bootstrap';
|
|
3
|
-
export * from './operators';
|
|
4
|
-
export * from './types';
|
|
1
|
+
export * as InMemory from './InMemory/index.js';
|
|
2
|
+
export * as Bootstrap from './Bootstrap/index.js';
|
|
3
|
+
export * from './operators/index.js';
|
|
4
|
+
export * from './types.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as InMemory from './InMemory';
|
|
2
|
-
export * as Bootstrap from './Bootstrap';
|
|
3
|
-
export * from './operators';
|
|
4
|
-
export * from './types';
|
|
1
|
+
export * as InMemory from './InMemory/index.js';
|
|
2
|
+
export * as Bootstrap from './Bootstrap/index.js';
|
|
3
|
+
export * from './operators/index.js';
|
|
4
|
+
export * from './types.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './withCertificates';
|
|
2
|
-
export * from './withStakeKeys';
|
|
3
|
-
export * from './withStakePools';
|
|
4
|
-
export * from './withStakeKeyRegistrations';
|
|
1
|
+
export * from './withCertificates.js';
|
|
2
|
+
export * from './withStakeKeys.js';
|
|
3
|
+
export * from './withStakePools.js';
|
|
4
|
+
export * from './withStakeKeyRegistrations.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './withCertificates';
|
|
2
|
-
export * from './withStakeKeys';
|
|
3
|
-
export * from './withStakePools';
|
|
4
|
-
export * from './withStakeKeyRegistrations';
|
|
1
|
+
export * from './withCertificates.js';
|
|
2
|
+
export * from './withStakeKeys.js';
|
|
3
|
+
export * from './withStakePools.js';
|
|
4
|
+
export * from './withStakeKeyRegistrations.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { WithBlock } from '../../../types';
|
|
2
|
+
import { WithBlock } from '../../../types.js';
|
|
3
3
|
export interface OnChainCertificate {
|
|
4
4
|
pointer: Cardano.Pointer;
|
|
5
5
|
certificate: Cardano.Certificate;
|
|
@@ -7,5 +7,5 @@ export interface OnChainCertificate {
|
|
|
7
7
|
export interface WithCertificates {
|
|
8
8
|
certificates: OnChainCertificate[];
|
|
9
9
|
}
|
|
10
|
-
export declare const withCertificates: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends WithBlock>() => import("../../../types").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithCertificates, WithCertificates>;
|
|
10
|
+
export declare const withCertificates: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends WithBlock>() => import("../../../types.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithCertificates, WithCertificates>;
|
|
11
11
|
//# sourceMappingURL=withCertificates.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { unifiedProjectorOperator } from '../../utils';
|
|
2
|
+
import { unifiedProjectorOperator } from '../../utils/index.js';
|
|
3
3
|
const blockCertificates = ({ block: { header: { slot }, body } }) => body
|
|
4
4
|
.filter((tx) => !Cardano.util.isPhase2ValidationErrTx(tx))
|
|
5
5
|
.flatMap(({ body: { certificates = [] } }, txIndex) => certificates.map((certificate, certIndex) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { Ed25519KeyHashHex } from '@cardano-sdk/crypto';
|
|
3
|
-
import { WithCertificates } from './withCertificates';
|
|
3
|
+
import { WithCertificates } from './withCertificates.js';
|
|
4
4
|
export interface StakeKeyRegistration {
|
|
5
5
|
pointer: Cardano.Pointer;
|
|
6
6
|
stakeKeyHash: Ed25519KeyHashHex;
|
|
@@ -8,5 +8,5 @@ export interface StakeKeyRegistration {
|
|
|
8
8
|
export interface WithStakeKeyRegistrations {
|
|
9
9
|
stakeKeyRegistrations: StakeKeyRegistration[];
|
|
10
10
|
}
|
|
11
|
-
export declare const withStakeKeyRegistrations: <SourceExtraRollForwardPropsIn extends WithCertificates, SourceExtraRollBackwardPropsIn extends WithCertificates & import("
|
|
11
|
+
export declare const withStakeKeyRegistrations: <SourceExtraRollForwardPropsIn extends WithCertificates, SourceExtraRollBackwardPropsIn extends WithCertificates & import("../../../index.js").WithBlock>() => import("../../../index.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithStakeKeyRegistrations, WithStakeKeyRegistrations>;
|
|
12
12
|
//# sourceMappingURL=withStakeKeyRegistrations.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { isNotNil } from '@cardano-sdk/util';
|
|
3
|
-
import { unifiedProjectorOperator } from '../../utils';
|
|
3
|
+
import { unifiedProjectorOperator } from '../../utils/index.js';
|
|
4
4
|
export const withStakeKeyRegistrations = unifiedProjectorOperator((evt) => ({
|
|
5
5
|
...evt,
|
|
6
6
|
stakeKeyRegistrations: evt.certificates
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Crypto from '@cardano-sdk/crypto';
|
|
2
|
-
import { WithCertificates } from './withCertificates';
|
|
2
|
+
import { WithCertificates } from './withCertificates.js';
|
|
3
3
|
export interface WithStakeKeys {
|
|
4
4
|
stakeKeys: {
|
|
5
5
|
insert: Crypto.Hash28ByteBase16[];
|
|
6
6
|
del: Crypto.Hash28ByteBase16[];
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export declare const withStakeKeys: <SourceExtraRollForwardPropsIn extends WithCertificates, SourceExtraRollBackwardPropsIn extends WithCertificates & import("
|
|
9
|
+
export declare const withStakeKeys: <SourceExtraRollForwardPropsIn extends WithCertificates, SourceExtraRollBackwardPropsIn extends WithCertificates & import("../../../index.js").WithBlock>() => import("../../../index.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithStakeKeys, WithStakeKeys>;
|
|
10
10
|
//# sourceMappingURL=withStakeKeys.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cardano, ChainSyncEventType } from '@cardano-sdk/core';
|
|
2
|
-
import { unifiedProjectorOperator } from '../../utils';
|
|
2
|
+
import { unifiedProjectorOperator } from '../../utils/index.js';
|
|
3
3
|
export const withStakeKeys = unifiedProjectorOperator((evt) => {
|
|
4
4
|
const register = new Set();
|
|
5
5
|
const deregister = new Set();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { WithCertificates } from './withCertificates';
|
|
3
|
-
import { WithEpochNo } from '../../../types';
|
|
2
|
+
import { WithCertificates } from './withCertificates.js';
|
|
3
|
+
import { WithEpochNo } from '../../../types.js';
|
|
4
4
|
export interface WithCertificateSource {
|
|
5
5
|
source: Cardano.Pointer;
|
|
6
6
|
}
|
|
@@ -12,5 +12,5 @@ export interface WithStakePools {
|
|
|
12
12
|
retirements: PoolRetirement[];
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
export declare const withStakePools: <SourceExtraRollForwardPropsIn extends WithCertificates & WithEpochNo, SourceExtraRollBackwardPropsIn extends WithCertificates & WithEpochNo & import("../../../types").WithBlock>() => import("../../../types").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithStakePools, WithStakePools>;
|
|
15
|
+
export declare const withStakePools: <SourceExtraRollForwardPropsIn extends WithCertificates & WithEpochNo, SourceExtraRollBackwardPropsIn extends WithCertificates & WithEpochNo & import("../../../types.js").WithBlock>() => import("../../../types.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithStakePools, WithStakePools>;
|
|
16
16
|
//# sourceMappingURL=withStakePools.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { unifiedProjectorOperator } from '../../utils';
|
|
2
|
+
import { unifiedProjectorOperator } from '../../utils/index.js';
|
|
3
3
|
export const withStakePools = unifiedProjectorOperator((evt) => {
|
|
4
4
|
const updates = {};
|
|
5
5
|
const retirements = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './certificates';
|
|
2
|
-
export * from './withUtxo';
|
|
3
|
-
export * from './withMint';
|
|
4
|
-
export * from './withHandles';
|
|
5
|
-
export * from './withHandleMetadata';
|
|
6
|
-
export * from './withNftMetadata';
|
|
7
|
-
export * from './withCIP67';
|
|
8
|
-
export * from './withAddresses';
|
|
1
|
+
export * from './certificates/index.js';
|
|
2
|
+
export * from './withUtxo.js';
|
|
3
|
+
export * from './withMint.js';
|
|
4
|
+
export * from './withHandles.js';
|
|
5
|
+
export * from './withHandleMetadata.js';
|
|
6
|
+
export * from './withNftMetadata.js';
|
|
7
|
+
export * from './withCIP67.js';
|
|
8
|
+
export * from './withAddresses.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './certificates';
|
|
2
|
-
export * from './withUtxo';
|
|
3
|
-
export * from './withMint';
|
|
4
|
-
export * from './withHandles';
|
|
5
|
-
export * from './withHandleMetadata';
|
|
6
|
-
export * from './withNftMetadata';
|
|
7
|
-
export * from './withCIP67';
|
|
8
|
-
export * from './withAddresses';
|
|
1
|
+
export * from './certificates/index.js';
|
|
2
|
+
export * from './withUtxo.js';
|
|
3
|
+
export * from './withMint.js';
|
|
4
|
+
export * from './withHandles.js';
|
|
5
|
+
export * from './withHandleMetadata.js';
|
|
6
|
+
export * from './withNftMetadata.js';
|
|
7
|
+
export * from './withCIP67.js';
|
|
8
|
+
export * from './withAddresses.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { Hash28ByteBase16 } from '@cardano-sdk/crypto';
|
|
3
|
-
import { WithUtxo } from './withUtxo';
|
|
3
|
+
import { WithUtxo } from './withUtxo.js';
|
|
4
4
|
export interface Address {
|
|
5
5
|
address: Cardano.PaymentAddress;
|
|
6
6
|
type: Cardano.AddressType;
|
|
@@ -10,5 +10,5 @@ export interface Address {
|
|
|
10
10
|
export interface WithAddresses {
|
|
11
11
|
addresses: Address[];
|
|
12
12
|
}
|
|
13
|
-
export declare const withAddresses: <SourceExtraRollForwardPropsIn extends WithUtxo, SourceExtraRollBackwardPropsIn extends WithUtxo & import("
|
|
13
|
+
export declare const withAddresses: <SourceExtraRollForwardPropsIn extends WithUtxo, SourceExtraRollBackwardPropsIn extends WithUtxo & import("../../index.js").WithBlock>() => import("../../index.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithAddresses, WithAddresses>;
|
|
14
14
|
//# sourceMappingURL=withAddresses.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { unifiedProjectorOperator } from '../utils';
|
|
3
|
-
import uniq from 'lodash/uniq';
|
|
2
|
+
import { unifiedProjectorOperator } from '../utils/index.js';
|
|
3
|
+
import uniq from 'lodash/uniq.js';
|
|
4
4
|
export const withAddresses = unifiedProjectorOperator((evt) => ({
|
|
5
5
|
...evt,
|
|
6
6
|
addresses: uniq(evt.utxo.produced.map(([_, txOut]) => txOut.address)).map((address) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withAddresses.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"withAddresses.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAgBlC,MAAM,CAAC,MAAM,aAAa,GAAG,wBAAwB,CAA0B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACvF,GAAG,GAAG;IACN,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAW,EAAE;QAC7F,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAE,CAAC;QACpD,IAAI,qBAAmD,CAAC;QACxD,IAAI,mBAAiD,CAAC;QACtD,IAAI,OAAoC,CAAC;QACzC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;QAC9B,QAAQ,IAAI,EAAE;YACZ,KAAK,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC;YAChD,KAAK,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC;YACnD,KAAK,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC;YACnD,KAAK,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;gBACrD,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAG,CAAC;gBACrC,qBAAqB,GAAG,WAAW,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC;gBAChE,mBAAmB,GAAG,WAAW,CAAC,kBAAkB,EAAE,CAAC,IAAI,CAAC;gBAC5D,MAAM;aACP;YACD,KAAK,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC;YACvC,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;gBACzC,MAAM,iBAAiB,GAAG,MAAM,CAAC,YAAY,EAAG,CAAC;gBACjD,qBAAqB,GAAG,iBAAiB,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC;gBACtE,MAAM;aACP;YACD,KAAK,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;YACpC,KAAK,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;gBACtC,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,EAAG,CAAC;gBAC3C,qBAAqB,GAAG,cAAc,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC;gBACnE,OAAO,GAAG,cAAc,CAAC,eAAe,EAAE,CAAC;gBAC3C,MAAM;aACP;SACF;QACD,OAAO;YACL,OAAO;YACP,qBAAqB;YACrB,eAAe,EAAE,mBAAmB,IAAI,OAAO;YAC/C,IAAI;SACL,CAAC;IACJ,CAAC,CAAC;CACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset, Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { ProducedUtxo, WithUtxo } from './withUtxo';
|
|
3
|
-
import { WithMint } from './withMint';
|
|
2
|
+
import { ProducedUtxo, WithUtxo } from './withUtxo.js';
|
|
3
|
+
import { WithMint } from './withMint.js';
|
|
4
4
|
export interface CIP67Asset {
|
|
5
5
|
assetId: Cardano.AssetId;
|
|
6
6
|
policyId: Cardano.PolicyId;
|
|
@@ -15,5 +15,5 @@ export interface CIP67Assets {
|
|
|
15
15
|
export interface WithCIP67 {
|
|
16
16
|
cip67: CIP67Assets;
|
|
17
17
|
}
|
|
18
|
-
export declare const withCIP67: <SourceExtraRollForwardPropsIn extends WithUtxo & WithMint, SourceExtraRollBackwardPropsIn extends WithUtxo & WithMint & import("
|
|
18
|
+
export declare const withCIP67: <SourceExtraRollForwardPropsIn extends WithUtxo & WithMint, SourceExtraRollBackwardPropsIn extends WithUtxo & WithMint & import("../../index.js").WithBlock>() => import("../../index.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithCIP67, WithCIP67>;
|
|
19
19
|
//# sourceMappingURL=withCIP67.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Asset, Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { isNotNil } from '@cardano-sdk/util';
|
|
3
|
-
import { unifiedProjectorOperator } from '../utils';
|
|
4
|
-
import groupBy from 'lodash/groupBy';
|
|
3
|
+
import { unifiedProjectorOperator } from '../utils/index.js';
|
|
4
|
+
import groupBy from 'lodash/groupBy.js';
|
|
5
5
|
export const withCIP67 = unifiedProjectorOperator((evt) => {
|
|
6
6
|
const cip67Assets = evt.utxo.produced
|
|
7
7
|
.flatMap((utxo) => [...(utxo[1].value.assets?.keys() || [])].map((assetId) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withCIP67.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withCIP67.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"withCIP67.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withCIP67.ts"],"names":[],"mappings":"AAAA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AI,CAAC;QAE1B,OAAO;YACL,GAAG,WAAW;YACd,OAAO;SACR,CAAC;IACJ,CAAC,CAAC;SACD,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEpB,OAAO;QACL,GAAG,GAAG;QACN,KAAK,EAAE;YACL,SAAS,EAAE;gBACT,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,iBAAiB,EAAE,GAAG,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;aACrG;YACD,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,iBAAiB,EAAE,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC;SAClF;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Asset, Handle } from '@cardano-sdk/core';
|
|
2
|
-
import { WithCIP67 } from './withCIP67';
|
|
3
|
-
import { FilterByPolicyIds } from './types';
|
|
2
|
+
import { WithCIP67 } from './withCIP67.js';
|
|
3
|
+
import { FilterByPolicyIds } from './types.js';
|
|
4
4
|
import { Logger } from 'ts-log';
|
|
5
|
-
import { ProducedUtxo } from './withUtxo';
|
|
6
|
-
import { WithNftMetadata } from './withNftMetadata';
|
|
7
|
-
import { ProjectionOperator } from '../../types';
|
|
5
|
+
import { ProducedUtxo } from './withUtxo.js';
|
|
6
|
+
import { WithNftMetadata } from './withNftMetadata.js';
|
|
7
|
+
import { ProjectionOperator } from '../../types.js';
|
|
8
8
|
interface PersonalizedProperties {
|
|
9
9
|
profilePicImage?: Asset.Uri;
|
|
10
10
|
backgroundImage?: Asset.Uri;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Cardano, Handle } from '@cardano-sdk/core';
|
|
2
|
-
import { WithCIP67 } from './withCIP67';
|
|
3
|
-
import { FilterByPolicyIds } from './types';
|
|
2
|
+
import { WithCIP67 } from './withCIP67.js';
|
|
3
|
+
import { FilterByPolicyIds } from './types.js';
|
|
4
4
|
import { Logger } from 'ts-log';
|
|
5
|
-
import { ProjectionOperator } from '../../types';
|
|
5
|
+
import { ProjectionOperator } from '../../types.js';
|
|
6
6
|
export interface HandleOwnership {
|
|
7
7
|
handle: Handle;
|
|
8
8
|
latestOwnerAddress: Cardano.PaymentAddress | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset, Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { HexBlob } from '@cardano-sdk/util';
|
|
3
|
-
import { assetNameToUTF8Handle } from './util';
|
|
3
|
+
import { assetNameToUTF8Handle } from './util.js';
|
|
4
4
|
import { map } from 'rxjs';
|
|
5
5
|
const assetIdToUTF8Handle = (assetId, cip67Asset, logger) => {
|
|
6
6
|
if (cip67Asset) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { FilterByPolicyIds } from './types';
|
|
3
|
-
import { ProjectionOperator } from '../../types';
|
|
2
|
+
import { FilterByPolicyIds } from './types.js';
|
|
3
|
+
import { ProjectionOperator } from '../../types.js';
|
|
4
4
|
export interface Mint {
|
|
5
5
|
assetId: Cardano.AssetId;
|
|
6
6
|
policyId: Cardano.PolicyId;
|
|
@@ -12,6 +12,6 @@ export interface Mint {
|
|
|
12
12
|
export interface WithMint {
|
|
13
13
|
mint: Mint[];
|
|
14
14
|
}
|
|
15
|
-
export declare const withMint: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends import("../../types").WithBlock>() => import("../../types").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithMint, WithMint>;
|
|
15
|
+
export declare const withMint: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends import("../../types.js").WithBlock>() => import("../../types.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithMint, WithMint>;
|
|
16
16
|
export declare const filterMintByPolicyIds: <PropsIn extends WithMint>({ policyIds }: FilterByPolicyIds) => ProjectionOperator<PropsIn, {}>;
|
|
17
17
|
//# sourceMappingURL=withMint.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { computeCompactTxId } from './util';
|
|
2
|
+
import { computeCompactTxId } from './util.js';
|
|
3
3
|
import { map } from 'rxjs';
|
|
4
|
-
import { unifiedProjectorOperator } from '../utils';
|
|
4
|
+
import { unifiedProjectorOperator } from '../utils/index.js';
|
|
5
5
|
export const withMint = unifiedProjectorOperator((evt) => ({
|
|
6
6
|
...evt,
|
|
7
7
|
mint: evt.block.body.flatMap(({ body: { mint }, auxiliaryData }, txIndex) => [...(mint?.entries() || [])].map(([assetId, quantity]) => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Asset, Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { ProjectionOperator } from '../../types';
|
|
3
|
-
import { WithCIP67 } from './withCIP67';
|
|
2
|
+
import { ProjectionOperator } from '../../types.js';
|
|
3
|
+
import { WithCIP67 } from './withCIP67.js';
|
|
4
4
|
import { WithLogger } from '@cardano-sdk/util';
|
|
5
|
-
import { WithMint } from './withMint';
|
|
6
|
-
import { WithUtxo } from './withUtxo';
|
|
5
|
+
import { WithMint } from './withMint.js';
|
|
6
|
+
import { WithUtxo } from './withUtxo.js';
|
|
7
7
|
export interface ProjectedNftMetadata {
|
|
8
8
|
userTokenAssetId: Cardano.AssetId;
|
|
9
9
|
nftMetadata: Asset.NftMetadata;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Asset, Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { isNotNil } from '@cardano-sdk/util';
|
|
3
3
|
import { map } from 'rxjs';
|
|
4
|
-
import uniqBy from 'lodash/uniqBy';
|
|
4
|
+
import uniqBy from 'lodash/uniqBy.js';
|
|
5
5
|
const getNftMetadataFromCip67 = ({ cip67 }, logger) => (cip67.byLabel[Asset.AssetNameLabelNum.ReferenceNFT] || []).map(({ decoded, assetId, policyId, utxo }) => {
|
|
6
6
|
const datum = utxo?.[1].datum;
|
|
7
7
|
if (!datum || !Cardano.util.isConstrPlutusData(datum)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withNftMetadata.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withNftMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,EAAc,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"withNftMetadata.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withNftMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,EAAc,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAetC,MAAM,uBAAuB,GAAG,CAAC,EAAE,KAAK,EAAa,EAAE,MAAc,EAAE,EAAE,CACvE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAC7D,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAA+B,EAAE;IACpE,MAAM,KAAK,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9B,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI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E,CACP,IAAI,CAAC,IAAI,CACP,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;IACV,MAAM,WAAW,GAAG,MAAM,CACxB,CAAC,GAAG,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAC7G,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,gBAAgB,CAC3C,CAAC;IACF,OAAO,EAAE,GAAG,GAAG,EAAE,WAAW,EAAE,CAAC;AACjC,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
-
import { FilterByPolicyIds } from './types';
|
|
3
|
-
import { ProjectionOperator } from '../../types';
|
|
2
|
+
import { FilterByPolicyIds } from './types.js';
|
|
3
|
+
import { ProjectionOperator } from '../../types.js';
|
|
4
4
|
export declare type ProducedUtxo = [Cardano.TxIn, Cardano.TxOut];
|
|
5
5
|
export interface WithUtxo {
|
|
6
6
|
utxo: {
|
|
@@ -8,7 +8,7 @@ export interface WithUtxo {
|
|
|
8
8
|
consumed: Cardano.TxIn[];
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
export declare const withUtxo: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends import("../../types").WithBlock>() => import("../../types").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithUtxo, WithUtxo>;
|
|
11
|
+
export declare const withUtxo: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends import("../../types.js").WithBlock>() => import("../../types.js").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithUtxo, WithUtxo>;
|
|
12
12
|
export interface FilterByPaymentAddresses {
|
|
13
13
|
addresses: Cardano.PaymentAddress[];
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cardano } from '@cardano-sdk/core';
|
|
2
2
|
import { map } from 'rxjs';
|
|
3
|
-
import { unifiedProjectorOperator } from '../utils';
|
|
3
|
+
import { unifiedProjectorOperator } from '../utils/index.js';
|
|
4
4
|
export const withUtxo = unifiedProjectorOperator((evt) => {
|
|
5
5
|
const produced = evt.block.body.flatMap(({ body: { outputs, collateralReturn }, inputSource, id }) => (inputSource === Cardano.InputSource.inputs ? outputs : collateralReturn ? [collateralReturn] : []).map((txOut, outputIndex) => [
|
|
6
6
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './withStaticContext';
|
|
2
|
-
export * from './withEventContext';
|
|
3
|
-
export * from './withRolledBackBlock';
|
|
4
|
-
export * from './withEpochNo';
|
|
5
|
-
export * from './withEpochBoundary';
|
|
6
|
-
export * from './withNetworkInfo';
|
|
7
|
-
export * as Mappers from './Mappers';
|
|
8
|
-
export * from './logProjectionProgress';
|
|
9
|
-
export * from './requestNext';
|
|
10
|
-
export * from './utils';
|
|
1
|
+
export * from './withStaticContext.js';
|
|
2
|
+
export * from './withEventContext.js';
|
|
3
|
+
export * from './withRolledBackBlock.js';
|
|
4
|
+
export * from './withEpochNo.js';
|
|
5
|
+
export * from './withEpochBoundary.js';
|
|
6
|
+
export * from './withNetworkInfo.js';
|
|
7
|
+
export * as Mappers from './Mappers/index.js';
|
|
8
|
+
export * from './logProjectionProgress.js';
|
|
9
|
+
export * from './requestNext.js';
|
|
10
|
+
export * from './utils/index.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|