@cardano-sdk/projection 0.11.28 → 0.11.30

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.
@@ -9,7 +9,7 @@ const blockCertificates = ({ block: { header: { slot }, body } }) => body
9
9
  certificate,
10
10
  pointer: {
11
11
  certIndex: core_1.Cardano.CertIndex(certIndex),
12
- slot: core_1.Cardano.Slot(slot),
12
+ slot: BigInt(slot),
13
13
  txIndex: core_1.Cardano.TxIndex(txIndex)
14
14
  }
15
15
  })));
@@ -1 +1 @@
1
- {"version":3,"file":"withCertificates.js","sourceRoot":"","sources":["../../../../../src/operators/Mappers/certificates/withCertificates.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAE5C,uCAAuD;AAWvD,MAAM,iBAAiB,GAAG,CAAC,EACzB,KAAK,EAAE,EACL,MAAM,EAAE,EAAE,IAAI,EAAE,EAChB,IAAI,EACL,EACS,EAAE,EAAE,CACd,IAAI;KACD,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,cAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;KACzD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CACpD,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAC5C,WAAW;IACX,OAAO,EAAE;QACP,SAAS,EAAE,cAAO,CAAC,SAAS,CAAC,SAAS,CAAC;QACvC,IAAI,EAAE,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QACxB,OAAO,EAAE,cAAO,CAAC,OAAO,CAAC,OAAO,CAAC;KAClC;CACF,CAAC,CAAC,CACJ,CAAC;AAGO,QAAA,gBAAgB,GAAG,IAAA,gCAAwB,EAAuB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACvF,GAAG,GAAG;IACN,YAAY,EAAE,iBAAiB,CAAC,GAAG,CAAC;CACrC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"withCertificates.js","sourceRoot":"","sources":["../../../../../src/operators/Mappers/certificates/withCertificates.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAE5C,uCAAuD;AAWvD,MAAM,iBAAiB,GAAG,CAAC,EACzB,KAAK,EAAE,EACL,MAAM,EAAE,EAAE,IAAI,EAAE,EAChB,IAAI,EACL,EACS,EAAE,EAAE,CACd,IAAI;KACD,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,cAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;KACzD,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CACpD,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAC5C,WAAW;IACX,OAAO,EAAE;QACP,SAAS,EAAE,cAAO,CAAC,SAAS,CAAC,SAAS,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;QAClB,OAAO,EAAE,cAAO,CAAC,OAAO,CAAC,OAAO,CAAC;KAClC;CACF,CAAC,CAAC,CACJ,CAAC;AAGO,QAAA,gBAAgB,GAAG,IAAA,gCAAwB,EAAuB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACvF,GAAG,GAAG;IACN,YAAY,EAAE,iBAAiB,CAAC,GAAG,CAAC;CACrC,CAAC,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './certificates';
2
2
  export * from './withUtxo';
3
3
  export * from './withMint';
4
+ export * from './withGovernanceActions';
4
5
  export * from './withHandles';
5
6
  export * from './withHandleMetadata';
6
7
  export * from './withNftMetadata';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operators/Mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operators/Mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./certificates"), exports);
18
18
  __exportStar(require("./withUtxo"), exports);
19
19
  __exportStar(require("./withMint"), exports);
20
+ __exportStar(require("./withGovernanceActions"), exports);
20
21
  __exportStar(require("./withHandles"), exports);
21
22
  __exportStar(require("./withHandleMetadata"), exports);
22
23
  __exportStar(require("./withNftMetadata"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,8CAA4B;AAC5B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,6CAA2B;AAC3B,6CAA2B;AAC3B,0DAAwC;AACxC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,8CAA4B;AAC5B,kDAAgC"}
@@ -0,0 +1,10 @@
1
+ import { Cardano } from '@cardano-sdk/core';
2
+ export declare type WithGovernanceActions = {
3
+ governanceActions: {
4
+ action: Cardano.ProposalProcedure;
5
+ index: Cardano.GovernanceActionId;
6
+ slot: Cardano.Slot;
7
+ }[];
8
+ };
9
+ export declare const withGovernanceActions: <SourceExtraRollForwardPropsIn extends {}, SourceExtraRollBackwardPropsIn extends import("../..").WithBlock>() => import("../..").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, WithGovernanceActions, WithGovernanceActions>;
10
+ //# sourceMappingURL=withGovernanceActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withGovernanceActions.d.ts","sourceRoot":"","sources":["../../../../src/operators/Mappers/withGovernanceActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,oBAAY,qBAAqB,GAAG;IAClC,iBAAiB,EAAE;QACjB,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC;QAClC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC;QAGlC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,qBAAqB,qQAUhC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withGovernanceActions = void 0;
4
+ const utils_1 = require("../utils");
5
+ exports.withGovernanceActions = (0, utils_1.unifiedProjectorOperator)((evt) => {
6
+ const { body, header } = evt.block;
7
+ const governanceActions = [];
8
+ for (const tx of body)
9
+ if (tx.body.proposalProcedures)
10
+ for (const [actionIndex, action] of tx.body.proposalProcedures.entries())
11
+ governanceActions.push({ action, index: { actionIndex, id: tx.id }, slot: header.slot });
12
+ return { ...evt, governanceActions };
13
+ });
14
+ //# sourceMappingURL=withGovernanceActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withGovernanceActions.js","sourceRoot":"","sources":["../../../../src/operators/Mappers/withGovernanceActions.ts"],"names":[],"mappings":";;;AACA,oCAAoD;AAYvC,QAAA,qBAAqB,GAAG,IAAA,gCAAwB,EAA4B,CAAC,GAAG,EAAE,EAAE;IAC/F,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IACnC,MAAM,iBAAiB,GAA+C,EAAE,CAAC;IAEzE,KAAK,MAAM,EAAE,IAAI,IAAI;QACnB,IAAI,EAAE,CAAC,IAAI,CAAC,kBAAkB;YAC5B,KAAK,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;gBACtE,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAE/F,OAAO,EAAE,GAAG,GAAG,EAAE,iBAAiB,EAAE,CAAC;AACvC,CAAC,CAAC,CAAC"}