@cardano-sdk/projection-typeorm 0.5.3 → 0.7.0
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/TypeormStabilityWindowBuffer.d.ts +6 -7
- package/dist/cjs/TypeormStabilityWindowBuffer.d.ts.map +1 -1
- package/dist/cjs/TypeormStabilityWindowBuffer.js +40 -108
- package/dist/cjs/TypeormStabilityWindowBuffer.js.map +1 -1
- package/dist/cjs/createDataSource.d.ts +13 -0
- package/dist/cjs/createDataSource.d.ts.map +1 -1
- package/dist/cjs/createDataSource.js +53 -2
- package/dist/cjs/createDataSource.js.map +1 -1
- package/dist/cjs/createTypeormTipTracker.d.ts +16 -0
- package/dist/cjs/createTypeormTipTracker.d.ts.map +1 -0
- package/dist/cjs/createTypeormTipTracker.js +55 -0
- package/dist/cjs/createTypeormTipTracker.js.map +1 -0
- package/dist/cjs/entity/Address.entity.d.ts.map +1 -1
- package/dist/cjs/entity/Address.entity.js.map +1 -1
- package/dist/cjs/entity/CurrentPoolMetrics.entity.d.ts +2 -1
- package/dist/cjs/entity/CurrentPoolMetrics.entity.d.ts.map +1 -1
- package/dist/cjs/entity/CurrentPoolMetrics.entity.js +15 -11
- package/dist/cjs/entity/CurrentPoolMetrics.entity.js.map +1 -1
- package/dist/cjs/entity/Handle.entity.d.ts.map +1 -1
- package/dist/cjs/entity/Handle.entity.js.map +1 -1
- package/dist/cjs/entity/HandleMetadata.entity.d.ts.map +1 -1
- package/dist/cjs/entity/HandleMetadata.entity.js.map +1 -1
- package/dist/cjs/entity/NftMetadata.entity.d.ts.map +1 -1
- package/dist/cjs/entity/NftMetadata.entity.js.map +1 -1
- package/dist/cjs/entity/PoolDelisted.entity.d.ts +5 -0
- package/dist/cjs/entity/PoolDelisted.entity.d.ts.map +1 -0
- package/dist/cjs/entity/PoolDelisted.entity.js +25 -0
- package/dist/cjs/entity/PoolDelisted.entity.js.map +1 -0
- package/dist/cjs/entity/PoolRegistration.entity.d.ts +1 -0
- package/dist/cjs/entity/PoolRegistration.entity.d.ts.map +1 -1
- package/dist/cjs/entity/PoolRegistration.entity.js +4 -0
- package/dist/cjs/entity/PoolRegistration.entity.js.map +1 -1
- package/dist/cjs/entity/PoolRetirement.entity.d.ts +1 -0
- package/dist/cjs/entity/PoolRetirement.entity.d.ts.map +1 -1
- package/dist/cjs/entity/PoolRetirement.entity.js +4 -0
- package/dist/cjs/entity/PoolRetirement.entity.js.map +1 -1
- package/dist/cjs/entity/PoolRewards.entity.d.ts +18 -0
- package/dist/cjs/entity/PoolRewards.entity.d.ts.map +1 -0
- package/dist/cjs/entity/PoolRewards.entity.js +77 -0
- package/dist/cjs/entity/PoolRewards.entity.js.map +1 -0
- package/dist/cjs/entity/StakeKeyRegistration.entity.d.ts.map +1 -1
- package/dist/cjs/entity/StakeKeyRegistration.entity.js.map +1 -1
- package/dist/cjs/entity/index.d.ts +12 -10
- package/dist/cjs/entity/index.d.ts.map +1 -1
- package/dist/cjs/entity/index.js +12 -10
- package/dist/cjs/entity/index.js.map +1 -1
- package/dist/cjs/entity/util.d.ts.map +1 -1
- package/dist/cjs/entity/util.js.map +1 -1
- package/dist/cjs/index.d.ts +4 -5
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +4 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/operators/index.d.ts +10 -9
- package/dist/cjs/operators/index.d.ts.map +1 -1
- package/dist/cjs/operators/index.js +10 -11
- package/dist/cjs/operators/index.js.map +1 -1
- package/dist/cjs/operators/storePoolMetricsUpdateJob.d.ts +1 -1
- package/dist/cjs/operators/storePoolMetricsUpdateJob.d.ts.map +1 -1
- package/dist/cjs/operators/storePoolMetricsUpdateJob.js +20 -4
- package/dist/cjs/operators/storePoolMetricsUpdateJob.js.map +1 -1
- package/dist/cjs/operators/storeStakePoolMetadataJob.d.ts.map +1 -1
- package/dist/cjs/operators/storeStakePoolMetadataJob.js +3 -6
- package/dist/cjs/operators/storeStakePoolMetadataJob.js.map +1 -1
- package/dist/cjs/operators/storeStakePoolRewardsJob.d.ts +3 -0
- package/dist/cjs/operators/storeStakePoolRewardsJob.d.ts.map +1 -0
- package/dist/cjs/operators/storeStakePoolRewardsJob.js +16 -0
- package/dist/cjs/operators/storeStakePoolRewardsJob.js.map +1 -0
- package/dist/cjs/operators/withTypeormTransaction.d.ts +10 -11
- package/dist/cjs/operators/withTypeormTransaction.d.ts.map +1 -1
- package/dist/cjs/operators/withTypeormTransaction.js +4 -33
- package/dist/cjs/operators/withTypeormTransaction.js.map +1 -1
- package/dist/cjs/pgBoss.d.ts +8 -0
- package/dist/cjs/pgBoss.d.ts.map +1 -1
- package/dist/cjs/pgBoss.js +13 -1
- package/dist/cjs/pgBoss.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/TypeormStabilityWindowBuffer.d.ts +6 -7
- package/dist/esm/TypeormStabilityWindowBuffer.d.ts.map +1 -1
- package/dist/esm/TypeormStabilityWindowBuffer.js +41 -109
- package/dist/esm/TypeormStabilityWindowBuffer.js.map +1 -1
- package/dist/esm/createDataSource.d.ts +13 -0
- package/dist/esm/createDataSource.d.ts.map +1 -1
- package/dist/esm/createDataSource.js +49 -1
- package/dist/esm/createDataSource.js.map +1 -1
- package/dist/esm/createTypeormTipTracker.d.ts +16 -0
- package/dist/esm/createTypeormTipTracker.d.ts.map +1 -0
- package/dist/esm/createTypeormTipTracker.js +51 -0
- package/dist/esm/createTypeormTipTracker.js.map +1 -0
- package/dist/esm/entity/Address.entity.d.ts.map +1 -1
- package/dist/esm/entity/Address.entity.js.map +1 -1
- package/dist/esm/entity/CurrentPoolMetrics.entity.d.ts +2 -1
- package/dist/esm/entity/CurrentPoolMetrics.entity.d.ts.map +1 -1
- package/dist/esm/entity/CurrentPoolMetrics.entity.js +15 -11
- package/dist/esm/entity/CurrentPoolMetrics.entity.js.map +1 -1
- package/dist/esm/entity/Handle.entity.d.ts.map +1 -1
- package/dist/esm/entity/Handle.entity.js.map +1 -1
- package/dist/esm/entity/HandleMetadata.entity.d.ts.map +1 -1
- package/dist/esm/entity/HandleMetadata.entity.js.map +1 -1
- package/dist/esm/entity/NftMetadata.entity.d.ts.map +1 -1
- package/dist/esm/entity/NftMetadata.entity.js.map +1 -1
- package/dist/esm/entity/PoolDelisted.entity.d.ts +5 -0
- package/dist/esm/entity/PoolDelisted.entity.d.ts.map +1 -0
- package/dist/esm/entity/PoolDelisted.entity.js +22 -0
- package/dist/esm/entity/PoolDelisted.entity.js.map +1 -0
- package/dist/esm/entity/PoolRegistration.entity.d.ts +1 -0
- package/dist/esm/entity/PoolRegistration.entity.d.ts.map +1 -1
- package/dist/esm/entity/PoolRegistration.entity.js +4 -0
- package/dist/esm/entity/PoolRegistration.entity.js.map +1 -1
- package/dist/esm/entity/PoolRetirement.entity.d.ts +1 -0
- package/dist/esm/entity/PoolRetirement.entity.d.ts.map +1 -1
- package/dist/esm/entity/PoolRetirement.entity.js +4 -0
- package/dist/esm/entity/PoolRetirement.entity.js.map +1 -1
- package/dist/esm/entity/PoolRewards.entity.d.ts +18 -0
- package/dist/esm/entity/PoolRewards.entity.d.ts.map +1 -0
- package/dist/esm/entity/PoolRewards.entity.js +74 -0
- package/dist/esm/entity/PoolRewards.entity.js.map +1 -0
- package/dist/esm/entity/StakeKeyRegistration.entity.d.ts.map +1 -1
- package/dist/esm/entity/StakeKeyRegistration.entity.js.map +1 -1
- package/dist/esm/entity/index.d.ts +12 -10
- package/dist/esm/entity/index.d.ts.map +1 -1
- package/dist/esm/entity/index.js +12 -10
- package/dist/esm/entity/index.js.map +1 -1
- package/dist/esm/entity/util.d.ts.map +1 -1
- package/dist/esm/entity/util.js.map +1 -1
- package/dist/esm/index.d.ts +4 -5
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operators/index.d.ts +10 -9
- package/dist/esm/operators/index.d.ts.map +1 -1
- package/dist/esm/operators/index.js +10 -9
- package/dist/esm/operators/index.js.map +1 -1
- package/dist/esm/operators/storePoolMetricsUpdateJob.d.ts +1 -1
- package/dist/esm/operators/storePoolMetricsUpdateJob.d.ts.map +1 -1
- package/dist/esm/operators/storePoolMetricsUpdateJob.js +20 -4
- package/dist/esm/operators/storePoolMetricsUpdateJob.js.map +1 -1
- package/dist/esm/operators/storeStakePoolMetadataJob.d.ts.map +1 -1
- package/dist/esm/operators/storeStakePoolMetadataJob.js +4 -7
- package/dist/esm/operators/storeStakePoolMetadataJob.js.map +1 -1
- package/dist/esm/operators/storeStakePoolRewardsJob.d.ts +3 -0
- package/dist/esm/operators/storeStakePoolRewardsJob.d.ts.map +1 -0
- package/dist/esm/operators/storeStakePoolRewardsJob.js +13 -0
- package/dist/esm/operators/storeStakePoolRewardsJob.js.map +1 -0
- package/dist/esm/operators/withTypeormTransaction.d.ts +10 -11
- package/dist/esm/operators/withTypeormTransaction.d.ts.map +1 -1
- package/dist/esm/operators/withTypeormTransaction.js +5 -34
- package/dist/esm/operators/withTypeormTransaction.js.map +1 -1
- package/dist/esm/pgBoss.d.ts +8 -0
- package/dist/esm/pgBoss.d.ts.map +1 -1
- package/dist/esm/pgBoss.js +12 -0
- package/dist/esm/pgBoss.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NftMetadata.entity.js","sourceRoot":"","sources":["../../../src/entity/NftMetadata.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAW,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACxF,OAAO,EAAE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IAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;gDACH;AACvC;IAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAC1B;AACtB;IAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0DAClB;AACxD;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,8BAA8B,CAAC;IAC5D,UAAU,EAAE;8BAEC,WAAW;sDAAC;AAC1B;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,8BAA8B,CAAC;;yDACzB;AACpC;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACI;AAC1C;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,8BAA8B,CAAC;8BACjD,WAAW;oDAAC;AA1Bb,iBAAiB;IAD7B,MAAM,EAAE;GACI,iBAAiB,CA2B7B;SA3BY,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolDelisted.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/PoolDelisted.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,qBACa,kBAAkB;IAG7B,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Cardano } from '@cardano-sdk/core';
|
|
11
|
+
import { Entity, PrimaryColumn } from 'typeorm';
|
|
12
|
+
let PoolDelistedEntity = class PoolDelistedEntity {
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
PrimaryColumn({ length: 56, type: 'char' }),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], PoolDelistedEntity.prototype, "stakePoolId", void 0);
|
|
18
|
+
PoolDelistedEntity = __decorate([
|
|
19
|
+
Entity()
|
|
20
|
+
], PoolDelistedEntity);
|
|
21
|
+
export { PoolDelistedEntity };
|
|
22
|
+
//# sourceMappingURL=PoolDelisted.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolDelisted.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolDelisted.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGzC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAI9B,CAAA;AAFC;IAAC,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACf;AAHlB,kBAAkB;IAD9B,MAAM,EAAE;GACI,kBAAkB,CAI9B;SAJY,kBAAkB"}
|
|
@@ -17,6 +17,7 @@ export declare class PoolRegistrationEntity {
|
|
|
17
17
|
metadataHash?: string | null;
|
|
18
18
|
stakePool?: StakePoolEntity;
|
|
19
19
|
metadata?: PoolMetadataEntity | null;
|
|
20
|
+
blockSlot?: Cardano.Slot;
|
|
20
21
|
block?: BlockEntity;
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=PoolRegistration.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolRegistration.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/PoolRegistration.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBACa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"PoolRegistration.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/PoolRegistration.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBACa,sBAAsB;IAGjC,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC;IAGtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAG1B,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IAGzB,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC;IAGjC,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAGvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI7B,SAAS,CAAC,EAAE,eAAe,CAAC;IAG5B,QAAQ,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGrC,SAAS,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;IAIzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -69,6 +69,10 @@ __decorate([
|
|
|
69
69
|
OneToOne(() => PoolMetadataEntity, (metadata) => metadata.poolUpdate),
|
|
70
70
|
__metadata("design:type", Object)
|
|
71
71
|
], PoolRegistrationEntity.prototype, "metadata", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], PoolRegistrationEntity.prototype, "blockSlot", void 0);
|
|
72
76
|
__decorate([
|
|
73
77
|
ManyToOne(() => BlockEntity, OnDeleteCascadeRelationOptions),
|
|
74
78
|
JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolRegistration.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRegistration.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,O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AC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACd;AAEvB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACV;AAE5B;IAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACxB;AAE7B;IAAC,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE,8BAA8B,CAAC;8BAC7F,eAAe;yDAAC;AAE5B;IAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;;wDACjC;AAErC;IAAC,MAAM,EAAE;;yDACgB;AAEzB;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,8BAA8B,CAAC;IAC5D,UAAU,EAAE;8BACL,WAAW;qDAAC;AAlDT,sBAAsB;IADlC,MAAM,EAAE;GACI,sBAAsB,CAmDlC;SAnDY,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolRetirement.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/PoolRetirement.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBACa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"PoolRetirement.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/PoolRetirement.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBACa,oBAAoB;IAG/B,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,aAAa,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IAIhC,SAAS,CAAC,EAAE,eAAe,CAAC;IAG5B,SAAS,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;IAIzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -27,6 +27,10 @@ __decorate([
|
|
|
27
27
|
JoinColumn(),
|
|
28
28
|
__metadata("design:type", StakePoolEntity)
|
|
29
29
|
], PoolRetirementEntity.prototype, "stakePool", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], PoolRetirementEntity.prototype, "blockSlot", void 0);
|
|
30
34
|
__decorate([
|
|
31
35
|
ManyToOne(() => BlockEntity, OnDeleteCascadeRelationOptions),
|
|
32
36
|
JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolRetirement.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRetirement.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"PoolRetirement.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRetirement.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAkBhC,CAAA;AAhBC;IAAC,aAAa,CAAC,mBAAmB,CAAC;;gDACvB;AAEZ;IAAC,MAAM,EAAE;;2DACuB;AAEhC;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,8BAA8B,CAAC;IACtG,UAAU,EAAE;8BACD,eAAe;uDAAC;AAE5B;IAAC,MAAM,EAAE;;uDACgB;AAEzB;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,8BAA8B,CAAC;IAC5D,UAAU,EAAE;8BACL,WAAW;mDAAC;AAjBT,oBAAoB;IADhC,MAAM,EAAE;GACI,oBAAoB,CAkBhC;SAlBY,oBAAoB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Cardano } from '@cardano-sdk/core';
|
|
2
|
+
import { StakePoolEntity } from './StakePool.entity';
|
|
3
|
+
export declare class PoolRewardsEntity {
|
|
4
|
+
id?: number;
|
|
5
|
+
stakePoolId?: Cardano.PoolId;
|
|
6
|
+
stakePool?: StakePoolEntity;
|
|
7
|
+
epochLength?: number;
|
|
8
|
+
epochNo?: Cardano.EpochNo;
|
|
9
|
+
delegators?: number;
|
|
10
|
+
pledge?: Cardano.Lovelace;
|
|
11
|
+
activeStake?: Cardano.Lovelace;
|
|
12
|
+
memberActiveStake?: Cardano.Lovelace;
|
|
13
|
+
leaderRewards?: Cardano.Lovelace;
|
|
14
|
+
memberRewards?: Cardano.Lovelace;
|
|
15
|
+
rewards?: Cardano.Lovelace;
|
|
16
|
+
version?: number;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=PoolRewards.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolRewards.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/PoolRewards.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAEa,iBAAiB;IAE5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;IAI7B,SAAS,CAAC,EAAE,eAAe,CAAC;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IAG1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAG1B,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAG/B,iBAAiB,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAGrC,aAAa,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAGjC,aAAa,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAGjC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAG3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { BigIntColumnOptions, UInt64ColumnOptions } from './util';
|
|
11
|
+
import { Cardano } from '@cardano-sdk/core';
|
|
12
|
+
import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, Unique } from 'typeorm';
|
|
13
|
+
import { StakePoolEntity } from './StakePool.entity';
|
|
14
|
+
let PoolRewardsEntity = class PoolRewardsEntity {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryGeneratedColumn(),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], PoolRewardsEntity.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ length: 56, type: 'char' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PoolRewardsEntity.prototype, "stakePoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
ManyToOne(() => StakePoolEntity),
|
|
26
|
+
JoinColumn(),
|
|
27
|
+
__metadata("design:type", StakePoolEntity)
|
|
28
|
+
], PoolRewardsEntity.prototype, "stakePool", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({ type: 'integer' }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], PoolRewardsEntity.prototype, "epochLength", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], PoolRewardsEntity.prototype, "epochNo", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({ type: 'integer' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], PoolRewardsEntity.prototype, "delegators", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column(BigIntColumnOptions),
|
|
43
|
+
__metadata("design:type", BigInt)
|
|
44
|
+
], PoolRewardsEntity.prototype, "pledge", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Column(UInt64ColumnOptions),
|
|
47
|
+
__metadata("design:type", BigInt)
|
|
48
|
+
], PoolRewardsEntity.prototype, "activeStake", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column(UInt64ColumnOptions),
|
|
51
|
+
__metadata("design:type", BigInt)
|
|
52
|
+
], PoolRewardsEntity.prototype, "memberActiveStake", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Column(UInt64ColumnOptions),
|
|
55
|
+
__metadata("design:type", BigInt)
|
|
56
|
+
], PoolRewardsEntity.prototype, "leaderRewards", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Column(UInt64ColumnOptions),
|
|
59
|
+
__metadata("design:type", BigInt)
|
|
60
|
+
], PoolRewardsEntity.prototype, "memberRewards", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
Column(UInt64ColumnOptions),
|
|
63
|
+
__metadata("design:type", BigInt)
|
|
64
|
+
], PoolRewardsEntity.prototype, "rewards", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Column({ type: 'integer' }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], PoolRewardsEntity.prototype, "version", void 0);
|
|
69
|
+
PoolRewardsEntity = __decorate([
|
|
70
|
+
Entity(),
|
|
71
|
+
Unique(['epochNo', 'stakePoolId'])
|
|
72
|
+
], PoolRewardsEntity);
|
|
73
|
+
export { PoolRewardsEntity };
|
|
74
|
+
//# sourceMappingURL=PoolRewards.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Po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C,CAAC;GACtB,iBAAiB,CAwC7B;SAxCY,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeKeyRegistration.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/StakeKeyRegistration.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBACa,0BAA0B;
|
|
1
|
+
{"version":3,"file":"StakeKeyRegistration.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/StakeKeyRegistration.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBACa,0BAA0B;IAGrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAGjC,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeKeyRegistration.entity.js","sourceRoot":"","sources":["../../../src/entity/StakeKeyRegistration.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGjD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;
|
|
1
|
+
{"version":3,"file":"StakeKeyRegistration.entity.js","sourceRoot":"","sources":["../../../src/entity/StakeKeyRegistration.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGjD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CAUtC,CAAA;AARC;IAAC,aAAa,CAAC,mBAAmB,CAAC;;sDACvB;AACZ;IAAC,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IAC9B,KAAK,EAAE;;gEACyB;AACjC;IAAC,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,8BAA8B,CAAC;IAC5D,UAAU,EAAE;8BACL,WAAW;yDAAC;AATT,0BAA0B;IADtC,MAAM,EAAE;GACI,0BAA0B,CAUtC;SAVY,0BAA0B"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './Block.entity';
|
|
3
|
-
export * from './StakeKey.entity';
|
|
4
|
-
export * from './StakePool.entity';
|
|
5
|
-
export * from './PoolRetirement.entity';
|
|
6
|
-
export * from './PoolRegistration.entity';
|
|
7
|
-
export * from './PoolMetadata.entity';
|
|
1
|
+
export * from './Address.entity';
|
|
8
2
|
export * from './Asset.entity';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
3
|
+
export * from './Block.entity';
|
|
4
|
+
export * from './BlockData.entity';
|
|
11
5
|
export * from './CurrentPoolMetrics.entity';
|
|
12
6
|
export * from './Handle.entity';
|
|
13
7
|
export * from './HandleMetadata.entity';
|
|
14
8
|
export * from './NftMetadata.entity';
|
|
15
|
-
export * from './
|
|
9
|
+
export * from './Output.entity';
|
|
10
|
+
export * from './PoolDelisted.entity';
|
|
11
|
+
export * from './PoolMetadata.entity';
|
|
12
|
+
export * from './PoolRegistration.entity';
|
|
13
|
+
export * from './PoolRetirement.entity';
|
|
14
|
+
export * from './PoolRewards.entity';
|
|
15
|
+
export * from './StakeKey.entity';
|
|
16
16
|
export * from './StakeKeyRegistration.entity';
|
|
17
|
+
export * from './StakePool.entity';
|
|
18
|
+
export * from './Tokens.entity';
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
package/dist/esm/entity/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './Block.entity';
|
|
3
|
-
export * from './StakeKey.entity';
|
|
4
|
-
export * from './StakePool.entity';
|
|
5
|
-
export * from './PoolRetirement.entity';
|
|
6
|
-
export * from './PoolRegistration.entity';
|
|
7
|
-
export * from './PoolMetadata.entity';
|
|
1
|
+
export * from './Address.entity';
|
|
8
2
|
export * from './Asset.entity';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
3
|
+
export * from './Block.entity';
|
|
4
|
+
export * from './BlockData.entity';
|
|
11
5
|
export * from './CurrentPoolMetrics.entity';
|
|
12
6
|
export * from './Handle.entity';
|
|
13
7
|
export * from './HandleMetadata.entity';
|
|
14
8
|
export * from './NftMetadata.entity';
|
|
15
|
-
export * from './
|
|
9
|
+
export * from './Output.entity';
|
|
10
|
+
export * from './PoolDelisted.entity';
|
|
11
|
+
export * from './PoolMetadata.entity';
|
|
12
|
+
export * from './PoolRegistration.entity';
|
|
13
|
+
export * from './PoolRetirement.entity';
|
|
14
|
+
export * from './PoolRewards.entity';
|
|
15
|
+
export * from './StakeKey.entity';
|
|
16
16
|
export * from './StakeKeyRegistration.entity';
|
|
17
|
+
export * from './StakePool.entity';
|
|
18
|
+
export * from './Tokens.entity';
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/entity/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/entity/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAIzD,eAAO,MAAM,8BAA8B,EAAE,eAG5C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,eAG5C,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAG3E,CAAC;AAQF,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAKnG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/entity/util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/entity/util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,CAAC,MAAM,8BAA8B,GAAoB;IAC7D,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAoB;IAC7D,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,UAAU;CACrB,CAAC;AAGF,MAAM,CAAC,MAAM,mBAAmB,GAAgD;IAC9E,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,QAAQ;CACf,CAAC;AAQF,MAAM,CAAC,MAAM,mBAAmB,GAAwE;IACtG,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,CAAC;IACR,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,SAAS;CAChB,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './operators/withTypeormTransaction';
|
|
1
|
+
export * from './TypeormStabilityWindowBuffer';
|
|
3
2
|
export * from './createDataSource';
|
|
3
|
+
export * from './createTypeormTipTracker';
|
|
4
4
|
export * from './entity';
|
|
5
|
-
export * from './operators';
|
|
6
|
-
export * from './TypeormStabilityWindowBuffer';
|
|
7
5
|
export * from './isRecoverableTypeormError';
|
|
8
|
-
export
|
|
6
|
+
export * from './operators';
|
|
7
|
+
export * from './pgBoss';
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './operators/withTypeormTransaction';
|
|
1
|
+
export * from './TypeormStabilityWindowBuffer';
|
|
3
2
|
export * from './createDataSource';
|
|
3
|
+
export * from './createTypeormTipTracker';
|
|
4
4
|
export * from './entity';
|
|
5
|
-
export * from './operators';
|
|
6
|
-
export * from './TypeormStabilityWindowBuffer';
|
|
7
5
|
export * from './isRecoverableTypeormError';
|
|
8
|
-
export
|
|
6
|
+
export * from './operators';
|
|
7
|
+
export * from './pgBoss';
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
export * from './storeAddresses';
|
|
2
|
+
export * from './storeAssets';
|
|
3
|
+
export * from './storeBlock';
|
|
4
|
+
export * from './storeHandles';
|
|
5
|
+
export * from './storeHandleMetadata';
|
|
6
|
+
export * from './storeNftMetadata';
|
|
7
|
+
export * from './storePoolMetricsUpdateJob';
|
|
1
8
|
export * from './storeStakeKeys';
|
|
9
|
+
export * from './storeStakeKeyRegistrations';
|
|
2
10
|
export * from './storeStakePools';
|
|
3
11
|
export * from './storeStakePoolMetadataJob';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './storeBlock';
|
|
6
|
-
export * from './storeAssets';
|
|
12
|
+
export * from './storeStakePoolRewardsJob';
|
|
7
13
|
export * from './storeUtxo';
|
|
8
|
-
export { storeHandles } from './storeHandles';
|
|
9
|
-
export * from './storeHandleMetadata';
|
|
10
14
|
export * from './util';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './storeNftMetadata';
|
|
13
|
-
export * from './storeAddresses';
|
|
14
|
-
export * from './storeStakeKeyRegistrations';
|
|
15
|
+
export * from './withTypeormTransaction';
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
export * from './storeAddresses';
|
|
2
|
+
export * from './storeAssets';
|
|
3
|
+
export * from './storeBlock';
|
|
4
|
+
export * from './storeHandles';
|
|
5
|
+
export * from './storeHandleMetadata';
|
|
6
|
+
export * from './storeNftMetadata';
|
|
7
|
+
export * from './storePoolMetricsUpdateJob';
|
|
1
8
|
export * from './storeStakeKeys';
|
|
9
|
+
export * from './storeStakeKeyRegistrations';
|
|
2
10
|
export * from './storeStakePools';
|
|
3
11
|
export * from './storeStakePoolMetadataJob';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './storeBlock';
|
|
6
|
-
export * from './storeAssets';
|
|
12
|
+
export * from './storeStakePoolRewardsJob';
|
|
7
13
|
export * from './storeUtxo';
|
|
8
|
-
export { storeHandles } from './storeHandles';
|
|
9
|
-
export * from './storeHandleMetadata';
|
|
10
14
|
export * from './util';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './storeNftMetadata';
|
|
13
|
-
export * from './storeAddresses';
|
|
14
|
-
export * from './storeStakeKeyRegistrations';
|
|
15
|
+
export * from './withTypeormTransaction';
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WithPgBoss } from './withTypeormTransaction';
|
|
2
|
-
export declare const createStorePoolMetricsUpdateJob: (jobFrequency?: number) => <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & WithPgBoss, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & WithPgBoss & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
|
|
2
|
+
export declare const createStorePoolMetricsUpdateJob: (jobFrequency?: number, jobOutdatedFrequency?: number) => <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & WithPgBoss, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & WithPgBoss & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
|
|
3
3
|
//# sourceMappingURL=storePoolMetricsUpdateJob.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storePoolMetricsUpdateJob.d.ts","sourceRoot":"","sources":["../../../src/operators/storePoolMetricsUpdateJob.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"storePoolMetricsUpdateJob.d.ts","sourceRoot":"","sources":["../../../src/operators/storePoolMetricsUpdateJob.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,eAAO,MAAM,+BAA+B,iDAAgD,MAAM,+rBAsCjG,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ChainSyncEventType } from '@cardano-sdk/core';
|
|
2
2
|
import { STAKE_POOL_METRICS_UPDATE } from '../pgBoss';
|
|
3
3
|
import { typeormOperator } from './util';
|
|
4
|
-
export const createStorePoolMetricsUpdateJob = (jobFrequency = 1000) => {
|
|
4
|
+
export const createStorePoolMetricsUpdateJob = (jobFrequency = 1000, jobOutdatedFrequency) => {
|
|
5
5
|
let lastSentBlock;
|
|
6
|
+
let outdatedSlot;
|
|
6
7
|
let reachedTheTip = false;
|
|
7
8
|
return typeormOperator(async ({ eventType, pgBoss, block: { header }, tip }) => {
|
|
8
9
|
let insertFirstJob = false;
|
|
@@ -11,10 +12,25 @@ export const createStorePoolMetricsUpdateJob = (jobFrequency = 1000) => {
|
|
|
11
12
|
if (!reachedTheTip)
|
|
12
13
|
insertFirstJob = reachedTheTip = tip.slot === header.slot;
|
|
13
14
|
const { blockNo, slot } = header;
|
|
14
|
-
|
|
15
|
-
const task = { slot };
|
|
15
|
+
const sendForAll = async () => {
|
|
16
16
|
lastSentBlock = blockNo;
|
|
17
|
-
|
|
17
|
+
outdatedSlot = slot;
|
|
18
|
+
await pgBoss.send(STAKE_POOL_METRICS_UPDATE, { slot }, { slot });
|
|
19
|
+
};
|
|
20
|
+
const sendForOutdated = async () => {
|
|
21
|
+
lastSentBlock = blockNo;
|
|
22
|
+
await pgBoss.send(STAKE_POOL_METRICS_UPDATE, { outdatedSlot, slot }, { slot });
|
|
23
|
+
};
|
|
24
|
+
if (insertFirstJob) {
|
|
25
|
+
await sendForAll();
|
|
26
|
+
}
|
|
27
|
+
else if (blockNo !== lastSentBlock && reachedTheTip) {
|
|
28
|
+
if (blockNo % jobFrequency === 0) {
|
|
29
|
+
await sendForAll();
|
|
30
|
+
}
|
|
31
|
+
else if (jobOutdatedFrequency && outdatedSlot && blockNo % jobOutdatedFrequency === 0) {
|
|
32
|
+
await sendForOutdated();
|
|
33
|
+
}
|
|
18
34
|
}
|
|
19
35
|
});
|
|
20
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storePoolMetricsUpdateJob.js","sourceRoot":"","sources":["../../../src/operators/storePoolMetricsUpdateJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"storePoolMetricsUpdateJob.js","sourceRoot":"","sources":["../../../src/operators/storePoolMetricsUpdateJob.ts"],"names":[],"mappings":"A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,KAAK,aAAa,IAAI,aAAa,EAAE;YACrD,IAAI,OAAO,GAAG,YAAY,KAAK,CAAC,EAAE;gBAChC,MAAM,UAAU,EAAE,CAAC;aACpB;iBAAM,IAAI,oBAAoB,IAAI,YAAY,IAAI,OAAO,GAAG,oBAAoB,KAAK,CAAC,EAAE;gBACvF,MAAM,eAAe,EAAE,CAAC;aACzB;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storeStakePoolMetadataJob.d.ts","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"storeStakePoolMetadataJob.d.ts","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,eAAO,MAAM,yBAAyB,8uBAqBrC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ChainSyncEventType } from '@cardano-sdk/core';
|
|
2
|
-
import { STAKE_POOL_METADATA_QUEUE } from '../pgBoss';
|
|
2
|
+
import { STAKE_POOL_METADATA_QUEUE, defaultJobOptions } from '../pgBoss';
|
|
3
3
|
import { certificatePointerToId, typeormOperator } from './util';
|
|
4
|
-
export const storeStakePoolMetadataJob = typeormOperator(async ({
|
|
4
|
+
export const storeStakePoolMetadataJob = typeormOperator(async ({ block: { header }, eventType, pgBoss, stakePools }) => {
|
|
5
|
+
const { slot } = header;
|
|
5
6
|
if (eventType === ChainSyncEventType.RollBackward) {
|
|
6
7
|
return;
|
|
7
8
|
}
|
|
@@ -13,11 +14,7 @@ export const storeStakePoolMetadataJob = typeormOperator(async ({ eventType, sta
|
|
|
13
14
|
poolRegistrationId: certificatePointerToId(source).toString()
|
|
14
15
|
}));
|
|
15
16
|
for (const task of tasks) {
|
|
16
|
-
await pgBoss.send(STAKE_POOL_METADATA_QUEUE, task, {
|
|
17
|
-
retryDelay: 6 * 3600,
|
|
18
|
-
retryLimit: 1000000,
|
|
19
|
-
slot: header.slot
|
|
20
|
-
});
|
|
17
|
+
await pgBoss.send(STAKE_POOL_METADATA_QUEUE, task, { ...defaultJobOptions, slot });
|
|
21
18
|
}
|
|
22
19
|
});
|
|
23
20
|
//# sourceMappingURL=storeStakePoolMetadataJob.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storeStakePoolMetadataJob.js","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,yBAAyB,EAAwB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"storeStakePoolMetadataJob.js","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,yBAAyB,EAAwB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE/F,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CACtD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAExB,IAAI,SAAS,KAAK,kBAAkB,CAAC,YAAY,EAAE;QAEjD,OAAO;KACR;IACD,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO;SAC7B,MAAM,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SAChE,GAAG,CACF,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAwB,EAAE,CAAC,CAAC;QAC3E,YAAY,EAAE,YAAa;QAC3B,MAAM,EAAE,EAAE;QACV,kBAAkB,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;KAC9D,CAAC,CACH,CAAC;IACJ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,IAAI,EAAE,EAAE,GAAG,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;KACpF;AACH,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { WithPgBoss } from './withTypeormTransaction';
|
|
2
|
+
export declare const storeStakePoolRewardsJob: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & WithPgBoss, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & WithPgBoss & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
|
|
3
|
+
//# sourceMappingURL=storeStakePoolRewardsJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storeStakePoolRewardsJob.d.ts","sourceRoot":"","sources":["../../../src/operators/storeStakePoolRewardsJob.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,eAAO,MAAM,wBAAwB,4rBAgBpC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Cardano, ChainSyncEventType } from '@cardano-sdk/core';
|
|
2
|
+
import { STAKE_POOL_REWARDS, defaultJobOptions } from '../pgBoss';
|
|
3
|
+
import { typeormOperator } from './util';
|
|
4
|
+
export const storeStakePoolRewardsJob = typeormOperator(async ({ block: { header }, crossEpochBoundary, epochNo, eventType, pgBoss }) => {
|
|
5
|
+
const { slot } = header;
|
|
6
|
+
if (eventType === ChainSyncEventType.RollForward && crossEpochBoundary) {
|
|
7
|
+
if (epochNo === 1)
|
|
8
|
+
return;
|
|
9
|
+
epochNo = Cardano.EpochNo(epochNo - 2);
|
|
10
|
+
await pgBoss.send(STAKE_POOL_REWARDS, { epochNo }, { ...defaultJobOptions, retryDelay: 30, singletonKey: epochNo.toString(), slot });
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=storeStakePoolRewardsJob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storeStakePoolRewardsJob.js","sourceRoot":"","sources":["../../../src/operators/storeStakePoolRewardsJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CACrD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;IAC9E,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAExB,IAAI,SAAS,KAAK,kBAAkB,CAAC,WAAW,IAAI,kBAAkB,EAAE;QACtE,IAAI,OAAO,KAAK,CAAC;YAAE,OAAO;QAE1B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QAEvC,MAAM,MAAM,CAAC,IAAI,CACf,kBAAkB,EAClB,EAAE,OAAO,EAAE,EACX,EAAE,GAAG,iBAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CACjF,CAAC;KACH;AACH,CAAC,CACF,CAAC"}
|