@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.d.ts","sourceRoot":"","sources":["../../../src/entity/NftMetadata.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,oBAAY,eAAe;IACzB,KAAK,aAAa;IAClB,KAAK,aAAa;CACnB;AAED,qBACa,iBAAiB;IAE5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,CAAC,EAAE,KAAK,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAEvC,IAAI,EAAE,eAAe,CAAC;IAEtB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"NftMetadata.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/NftMetadata.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,oBAAY,eAAe;IACzB,KAAK,aAAa;IAClB,KAAK,aAAa;CACnB;AAED,qBACa,iBAAiB;IAE5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,CAAC,EAAE,KAAK,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAEvC,IAAI,EAAE,eAAe,CAAC;IAEtB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAIxD,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAE1C,SAAS,CAAC,EAAE,WAAW,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NftMetadata.entity.js","sourceRoot":"","sources":["../../../src/entity/NftMetadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAmD;AACnD,iDAA6C;AAC7C,iDAA6C;AAC7C,qCAAwF;AACxF,iCAAwF;AACxF,iDAAiD;AAEjD,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,qCAAkB,CAAA;IAClB,qCAAkB,CAAA;AACpB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"NftMetadata.entity.js","sourceRoot":"","sources":["../../../src/entity/NftMetadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAmD;AACnD,iDAA6C;AAC7C,iDAA6C;AAC7C,qCAAwF;AACxF,iCAAwF;AACxF,iDAAiD;AAEjD,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,qCAAkB,CAAA;IAClB,qCAAkB,CAAA;AACpB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA2B7B,CAAA;AA1BC;IAAC,IAAA,gCAAsB,GAAE;;6CACb;AACZ;IAAC,IAAA,gBAAM,GAAE;;+CACK;AACd;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDAChB;AAC5B;IAAC,IAAA,gBAAM,GAAE;;gDACS;AAClB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;oDAClB;AAC1B;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;gDACH;AACvC;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAC1B;AACtB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,8BAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0DAClB;AACxD;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,qCAA8B,CAAC;IAC5D,IAAA,oBAAU,GAAE;8BAEC,0BAAW;sDAAC;AAC1B;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,qCAA8B,CAAC;;yDACzB;AACpC;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACI;AAC1C;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,qCAA8B,CAAC;8BACjD,0BAAW;oDAAC;AA1Bb,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CA2B7B;AA3BY,8CAAiB"}
|
|
@@ -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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PoolDelistedEntity = void 0;
|
|
13
|
+
const core_1 = require("@cardano-sdk/core");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let PoolDelistedEntity = class PoolDelistedEntity {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryColumn)({ length: 56, type: 'char' }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], PoolDelistedEntity.prototype, "stakePoolId", void 0);
|
|
21
|
+
PoolDelistedEntity = __decorate([
|
|
22
|
+
(0, typeorm_1.Entity)()
|
|
23
|
+
], PoolDelistedEntity);
|
|
24
|
+
exports.PoolDelistedEntity = PoolDelistedEntity;
|
|
25
|
+
//# 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,4CAA4C;AAC5C,qCAAgD;AAGzC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAI9B,CAAA;AAFC;IAAC,IAAA,uBAAa,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACf;AAHlB,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAI9B;AAJY,gDAAkB"}
|
|
@@ -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"}
|
|
@@ -72,6 +72,10 @@ __decorate([
|
|
|
72
72
|
(0, typeorm_1.OneToOne)(() => PoolMetadata_entity_1.PoolMetadataEntity, (metadata) => metadata.poolUpdate),
|
|
73
73
|
__metadata("design:type", Object)
|
|
74
74
|
], PoolRegistrationEntity.prototype, "metadata", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], PoolRegistrationEntity.prototype, "blockSlot", void 0);
|
|
75
79
|
__decorate([
|
|
76
80
|
(0, typeorm_1.ManyToOne)(() => Block_entity_1.BlockEntity, util_1.OnDeleteCascadeRelationOptions),
|
|
77
81
|
(0, typeorm_1.JoinColumn)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolRegistration.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRegistration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAkG;AAClG,iDAA6C;AAC7C,4CAA4C;AAC5C,qCAAyF;AACzF,4CAA4C;AAC5C,+DAA2D;AAC3D,yDAAqD;AAG9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;
|
|
1
|
+
{"version":3,"file":"PoolRegistration.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRegistration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAkG;AAClG,iDAA6C;AAC7C,4CAA4C;AAC5C,qCAAyF;AACzF,4CAA4C;AAC5C,+DAA2D;AAC3D,yDAAqD;AAG9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAmDlC,CAAA;AAjDC;IAAC,IAAA,uBAAa,EAAC,0BAAmB,CAAC;;kDACvB;AAEZ;IAAC,IAAA,gBAAM,GAAE;;6DAC6B;AAEtC;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;sDACZ;AAEhB;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;oDACd;AAKd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;sDACA;AAE1B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;6DACH;AAExB;IAAC,IAAA,gBAAM,EAAC,OAAO,CAAC;;sDACS;AAEzB;IAAC,IAAA,gBAAM,EAAC,OAAO,CAAC;;sDACiB;AAEjC;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACd;AAEvB;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACV;AAE5B;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACxB;AAE7B;IAAC,IAAA,oBAAU,GAAE;IACZ,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE,qCAA8B,CAAC;8BAC7F,kCAAe;yDAAC;AAE5B;IAAC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,wCAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;;wDACjC;AAErC;IAAC,IAAA,gBAAM,GAAE;;yDACgB;AAEzB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,qCAA8B,CAAC;IAC5D,IAAA,oBAAU,GAAE;8BACL,0BAAW;qDAAC;AAlDT,sBAAsB;IADlC,IAAA,gBAAM,GAAE;GACI,sBAAsB,CAmDlC;AAnDY,wDAAsB"}
|
|
@@ -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"}
|
|
@@ -30,6 +30,10 @@ __decorate([
|
|
|
30
30
|
(0, typeorm_1.JoinColumn)(),
|
|
31
31
|
__metadata("design:type", StakePool_entity_1.StakePoolEntity)
|
|
32
32
|
], PoolRetirementEntity.prototype, "stakePool", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], PoolRetirementEntity.prototype, "blockSlot", void 0);
|
|
33
37
|
__decorate([
|
|
34
38
|
(0, typeorm_1.ManyToOne)(() => Block_entity_1.BlockEntity, util_1.OnDeleteCascadeRelationOptions),
|
|
35
39
|
(0, typeorm_1.JoinColumn)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolRetirement.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRetirement.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAA6E;AAC7E,iDAA6C;AAC7C,4CAA4C;AAC5C,qCAA+E;AAC/E,yDAAqD;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"PoolRetirement.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRetirement.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAA6E;AAC7E,iDAA6C;AAC7C,4CAA4C;AAC5C,qCAA+E;AAC/E,yDAAqD;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAkBhC,CAAA;AAhBC;IAAC,IAAA,uBAAa,EAAC,0BAAmB,CAAC;;gDACvB;AAEZ;IAAC,IAAA,gBAAM,GAAE;;2DACuB;AAEhC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,qCAA8B,CAAC;IACtG,IAAA,oBAAU,GAAE;8BACD,kCAAe;uDAAC;AAE5B;IAAC,IAAA,gBAAM,GAAE;;uDACgB;AAEzB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,qCAA8B,CAAC;IAC5D,IAAA,oBAAU,GAAE;8BACL,0BAAW;mDAAC;AAjBT,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAkBhC;AAlBY,oDAAoB"}
|
|
@@ -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,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PoolRewardsEntity = void 0;
|
|
13
|
+
const util_1 = require("./util");
|
|
14
|
+
const core_1 = require("@cardano-sdk/core");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const StakePool_entity_1 = require("./StakePool.entity");
|
|
17
|
+
let PoolRewardsEntity = class PoolRewardsEntity {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], PoolRewardsEntity.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ length: 56, type: 'char' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PoolRewardsEntity.prototype, "stakePoolId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => StakePool_entity_1.StakePoolEntity),
|
|
29
|
+
(0, typeorm_1.JoinColumn)(),
|
|
30
|
+
__metadata("design:type", StakePool_entity_1.StakePoolEntity)
|
|
31
|
+
], PoolRewardsEntity.prototype, "stakePool", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], PoolRewardsEntity.prototype, "epochLength", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], PoolRewardsEntity.prototype, "epochNo", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], PoolRewardsEntity.prototype, "delegators", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(util_1.BigIntColumnOptions),
|
|
46
|
+
__metadata("design:type", BigInt)
|
|
47
|
+
], PoolRewardsEntity.prototype, "pledge", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)(util_1.UInt64ColumnOptions),
|
|
50
|
+
__metadata("design:type", BigInt)
|
|
51
|
+
], PoolRewardsEntity.prototype, "activeStake", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)(util_1.UInt64ColumnOptions),
|
|
54
|
+
__metadata("design:type", BigInt)
|
|
55
|
+
], PoolRewardsEntity.prototype, "memberActiveStake", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)(util_1.UInt64ColumnOptions),
|
|
58
|
+
__metadata("design:type", BigInt)
|
|
59
|
+
], PoolRewardsEntity.prototype, "leaderRewards", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)(util_1.UInt64ColumnOptions),
|
|
62
|
+
__metadata("design:type", BigInt)
|
|
63
|
+
], PoolRewardsEntity.prototype, "memberRewards", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)(util_1.UInt64ColumnOptions),
|
|
66
|
+
__metadata("design:type", BigInt)
|
|
67
|
+
], PoolRewardsEntity.prototype, "rewards", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], PoolRewardsEntity.prototype, "version", void 0);
|
|
72
|
+
PoolRewardsEntity = __decorate([
|
|
73
|
+
(0, typeorm_1.Entity)(),
|
|
74
|
+
(0, typeorm_1.Unique)(['epochNo', 'stakePoolId'])
|
|
75
|
+
], PoolRewardsEntity);
|
|
76
|
+
exports.PoolRewardsEntity = PoolRewardsEntity;
|
|
77
|
+
//# sourceMappingURL=PoolRewards.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolRewards.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolRewards.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAkE;AAClE,4CAA4C;AAC5C,qCAAgG;AAChG,yDAAqD;AAI9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAwC7B,CAAA;AAvCC;IAAC,IAAA,gCAAsB,GAAE;;6CACb;AAEZ;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACR;AAE7B;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;IAChC,IAAA,oBAAU,GAAE;8BACD,kCAAe;oDAAC;AAE5B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACP;AAErB;IAAC,IAAA,gBAAM,GAAE;;kDACiB;AAE1B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;qDACR;AAEpB;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;iDACF;AAE1B;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;sDACG;AAE/B;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;4DACS;AAErC;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;wDACK;AAEjC;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;wDACK;AAEjC;IAAC,IAAA,gBAAM,EAAC,0BAAmB,CAAC;;kDACD;AAE3B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;kDACX;AAvCN,iBAAiB;IAF7B,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;GACtB,iBAAiB,CAwC7B;AAxCY,8CAAiB"}
|
|
@@ -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,iCAA6E;AAC7E,iDAA6C;AAC7C,qCAAsF;AACtF,gDAAwD;AAGjD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;
|
|
1
|
+
{"version":3,"file":"StakeKeyRegistration.entity.js","sourceRoot":"","sources":["../../../src/entity/StakeKeyRegistration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAA6E;AAC7E,iDAA6C;AAC7C,qCAAsF;AACtF,gDAAwD;AAGjD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CAUtC,CAAA;AARC;IAAC,IAAA,uBAAa,EAAC,0BAAmB,CAAC;;sDACvB;AACZ;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IAC9B,IAAA,eAAK,GAAE;;gEACyB;AACjC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,qCAA8B,CAAC;IAC5D,IAAA,oBAAU,GAAE;8BACL,0BAAW;yDAAC;AATT,0BAA0B;IADtC,IAAA,gBAAM,GAAE;GACI,0BAA0B,CAUtC;AAVY,gEAA0B"}
|
|
@@ -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/cjs/entity/index.js
CHANGED
|
@@ -14,20 +14,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./Block.entity"), exports);
|
|
19
|
-
__exportStar(require("./StakeKey.entity"), exports);
|
|
20
|
-
__exportStar(require("./StakePool.entity"), exports);
|
|
21
|
-
__exportStar(require("./PoolRetirement.entity"), exports);
|
|
22
|
-
__exportStar(require("./PoolRegistration.entity"), exports);
|
|
23
|
-
__exportStar(require("./PoolMetadata.entity"), exports);
|
|
17
|
+
__exportStar(require("./Address.entity"), exports);
|
|
24
18
|
__exportStar(require("./Asset.entity"), exports);
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./Block.entity"), exports);
|
|
20
|
+
__exportStar(require("./BlockData.entity"), exports);
|
|
27
21
|
__exportStar(require("./CurrentPoolMetrics.entity"), exports);
|
|
28
22
|
__exportStar(require("./Handle.entity"), exports);
|
|
29
23
|
__exportStar(require("./HandleMetadata.entity"), exports);
|
|
30
24
|
__exportStar(require("./NftMetadata.entity"), exports);
|
|
31
|
-
__exportStar(require("./
|
|
25
|
+
__exportStar(require("./Output.entity"), exports);
|
|
26
|
+
__exportStar(require("./PoolDelisted.entity"), exports);
|
|
27
|
+
__exportStar(require("./PoolMetadata.entity"), exports);
|
|
28
|
+
__exportStar(require("./PoolRegistration.entity"), exports);
|
|
29
|
+
__exportStar(require("./PoolRetirement.entity"), exports);
|
|
30
|
+
__exportStar(require("./PoolRewards.entity"), exports);
|
|
31
|
+
__exportStar(require("./StakeKey.entity"), exports);
|
|
32
32
|
__exportStar(require("./StakeKeyRegistration.entity"), exports);
|
|
33
|
+
__exportStar(require("./StakePool.entity"), exports);
|
|
34
|
+
__exportStar(require("./Tokens.entity"), exports);
|
|
33
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,kDAAgC;AAChC,0DAAwC;AACxC,uDAAqC;AACrC,kDAAgC;AAChC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,gEAA8C;AAC9C,qDAAmC;AACnC,kDAAgC"}
|
|
@@ -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,iDAA6C;
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/entity/util.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAGhC,QAAA,8BAA8B,GAAoB;IAC7D,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,SAAS;CACpB,CAAC;AAEW,QAAA,8BAA8B,GAAoB;IAC7D,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,UAAU;CACrB,CAAC;AAGW,QAAA,mBAAmB,GAAgD;IAC9E,WAAW,EAAE,0BAAW;IACxB,IAAI,EAAE,QAAQ;CACf,CAAC;AAQW,QAAA,mBAAmB,GAAwE;IACtG,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,CAAC;IACR,WAAW,EAAE,0BAAW;IACxB,IAAI,EAAE,SAAS;CAChB,CAAC"}
|
package/dist/cjs/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/cjs/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/cjs/index.js
CHANGED
|
@@ -14,17 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
require("reflect-metadata");
|
|
19
|
-
__exportStar(require("./operators/withTypeormTransaction"), exports);
|
|
17
|
+
__exportStar(require("./TypeormStabilityWindowBuffer"), exports);
|
|
20
18
|
__exportStar(require("./createDataSource"), exports);
|
|
19
|
+
__exportStar(require("./createTypeormTipTracker"), exports);
|
|
21
20
|
__exportStar(require("./entity"), exports);
|
|
22
|
-
__exportStar(require("./operators"), exports);
|
|
23
|
-
__exportStar(require("./TypeormStabilityWindowBuffer"), exports);
|
|
24
21
|
__exportStar(require("./isRecoverableTypeormError"), exports);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Object.defineProperty(exports, "STAKE_POOL_METRICS_UPDATE", { enumerable: true, get: function () { return pgBoss_1.STAKE_POOL_METRICS_UPDATE; } });
|
|
28
|
-
Object.defineProperty(exports, "createPgBoss", { enumerable: true, get: function () { return pgBoss_1.createPgBoss; } });
|
|
29
|
-
Object.defineProperty(exports, "createPgBossExtension", { enumerable: true, get: function () { return pgBoss_1.createPgBossExtension; } });
|
|
22
|
+
__exportStar(require("./operators"), exports);
|
|
23
|
+
__exportStar(require("./pgBoss"), exports);
|
|
30
24
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,qDAAmC;AACnC,4DAA0C;AAC1C,2CAAyB;AACzB,8DAA4C;AAC5C,8CAA4B;AAC5B,2CAAyB"}
|
|
@@ -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"}
|
|
@@ -14,20 +14,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports
|
|
17
|
+
__exportStar(require("./storeAddresses"), exports);
|
|
18
|
+
__exportStar(require("./storeAssets"), exports);
|
|
19
|
+
__exportStar(require("./storeBlock"), exports);
|
|
20
|
+
__exportStar(require("./storeHandles"), exports);
|
|
21
|
+
__exportStar(require("./storeHandleMetadata"), exports);
|
|
22
|
+
__exportStar(require("./storeNftMetadata"), exports);
|
|
23
|
+
__exportStar(require("./storePoolMetricsUpdateJob"), exports);
|
|
18
24
|
__exportStar(require("./storeStakeKeys"), exports);
|
|
25
|
+
__exportStar(require("./storeStakeKeyRegistrations"), exports);
|
|
19
26
|
__exportStar(require("./storeStakePools"), exports);
|
|
20
27
|
__exportStar(require("./storeStakePoolMetadataJob"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./storeBlock"), exports);
|
|
23
|
-
__exportStar(require("./storeAssets"), exports);
|
|
28
|
+
__exportStar(require("./storeStakePoolRewardsJob"), exports);
|
|
24
29
|
__exportStar(require("./storeUtxo"), exports);
|
|
25
|
-
var storeHandles_1 = require("./storeHandles");
|
|
26
|
-
Object.defineProperty(exports, "storeHandles", { enumerable: true, get: function () { return storeHandles_1.storeHandles; } });
|
|
27
|
-
__exportStar(require("./storeHandleMetadata"), exports);
|
|
28
30
|
__exportStar(require("./util"), exports);
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./storeNftMetadata"), exports);
|
|
31
|
-
__exportStar(require("./storeAddresses"), exports);
|
|
32
|
-
__exportStar(require("./storeStakeKeyRegistrations"), exports);
|
|
31
|
+
__exportStar(require("./withTypeormTransaction"), exports);
|
|
33
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,wDAAsC;AACtC,qDAAmC;AACnC,8DAA4C;AAC5C,mDAAiC;AACjC,+DAA6C;AAC7C,oDAAkC;AAClC,8DAA4C;AAC5C,6DAA2C;AAC3C,8CAA4B;AAC5B,yCAAuB;AACvB,2DAAyC"}
|
|
@@ -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"}
|
|
@@ -4,8 +4,9 @@ exports.createStorePoolMetricsUpdateJob = void 0;
|
|
|
4
4
|
const core_1 = require("@cardano-sdk/core");
|
|
5
5
|
const pgBoss_1 = require("../pgBoss");
|
|
6
6
|
const util_1 = require("./util");
|
|
7
|
-
const createStorePoolMetricsUpdateJob = (jobFrequency = 1000) => {
|
|
7
|
+
const createStorePoolMetricsUpdateJob = (jobFrequency = 1000, jobOutdatedFrequency) => {
|
|
8
8
|
let lastSentBlock;
|
|
9
|
+
let outdatedSlot;
|
|
9
10
|
let reachedTheTip = false;
|
|
10
11
|
return (0, util_1.typeormOperator)(async ({ eventType, pgBoss, block: { header }, tip }) => {
|
|
11
12
|
let insertFirstJob = false;
|
|
@@ -14,10 +15,25 @@ const createStorePoolMetricsUpdateJob = (jobFrequency = 1000) => {
|
|
|
14
15
|
if (!reachedTheTip)
|
|
15
16
|
insertFirstJob = reachedTheTip = tip.slot === header.slot;
|
|
16
17
|
const { blockNo, slot } = header;
|
|
17
|
-
|
|
18
|
-
const task = { slot };
|
|
18
|
+
const sendForAll = async () => {
|
|
19
19
|
lastSentBlock = blockNo;
|
|
20
|
-
|
|
20
|
+
outdatedSlot = slot;
|
|
21
|
+
await pgBoss.send(pgBoss_1.STAKE_POOL_METRICS_UPDATE, { slot }, { slot });
|
|
22
|
+
};
|
|
23
|
+
const sendForOutdated = async () => {
|
|
24
|
+
lastSentBlock = blockNo;
|
|
25
|
+
await pgBoss.send(pgBoss_1.STAKE_POOL_METRICS_UPDATE, { outdatedSlot, slot }, { slot });
|
|
26
|
+
};
|
|
27
|
+
if (insertFirstJob) {
|
|
28
|
+
await sendForAll();
|
|
29
|
+
}
|
|
30
|
+
else if (blockNo !== lastSentBlock && reachedTheTip) {
|
|
31
|
+
if (blockNo % jobFrequency === 0) {
|
|
32
|
+
await sendForAll();
|
|
33
|
+
}
|
|
34
|
+
else if (jobOutdatedFrequency && outdatedSlot && blockNo % jobOutdatedFrequency === 0) {
|
|
35
|
+
await sendForOutdated();
|
|
36
|
+
}
|
|
21
37
|
}
|
|
22
38
|
});
|
|
23
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storePoolMetricsUpdateJob.js","sourceRoot":"","sources":["../../../src/operators/storePoolMetricsUpdateJob.ts"],"names":[],"mappings":";;;AAAA,4CAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"storePoolMetricsUpdateJob.js","sourceRoot":"","sources":["../../../src/operators/storePoolMetricsUpdateJob.ts"],"names":[],"mappings":";;;AAAA,4CAAgE;AAChE,sCAAsD;AAEtD,iCAAyC;AAElC,MAAM,+BAA+B,GAAG,CAAC,YAAY,GAAG,IAAI,EAAE,oBAA6B,EAAE,EAAE;IAEpG,IAAI,aAA0C,CAAC;IAE/C,IAAI,YAA0B,CAAC;IAC/B,IAAI,aAAa,GAAG,KAAK,CAAC;IAE1B,OAAO,IAAA,sBAAe,EAAa,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QACzF,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,IAAI,SAAS,KAAK,yBAAkB,CAAC,YAAY;YAAE,OAAO;QAC1D,IAAI,CAAC,aAAa;YAAE,cAAc,GAAG,aAAa,GAAG,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;QAE9E,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QAEjC,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;YAE5B,aAAa,GAAG,OAAO,CAAC;YACxB,YAAY,GAAG,IAAI,CAAC;YACpB,MAAM,MAAM,CAAC,IAAI,CAAC,kCAAyB,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC,CAAC;QAEF,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE;YAEjC,aAAa,GAAG,OAAO,CAAC;YACxB,MAAM,MAAM,CAAC,IAAI,CAAC,kCAAyB,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACjF,CAAC,CAAC;QAEF,IAAI,cAAc,EAAE;YAClB,MAAM,UAAU,EAAE,CAAC;SACpB;aAAM,IAAI,OAAO,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;AAtCW,QAAA,+BAA+B,mCAsC1C"}
|
|
@@ -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"}
|
|
@@ -4,7 +4,8 @@ exports.storeStakePoolMetadataJob = void 0;
|
|
|
4
4
|
const core_1 = require("@cardano-sdk/core");
|
|
5
5
|
const pgBoss_1 = require("../pgBoss");
|
|
6
6
|
const util_1 = require("./util");
|
|
7
|
-
exports.storeStakePoolMetadataJob = (0, util_1.typeormOperator)(async ({
|
|
7
|
+
exports.storeStakePoolMetadataJob = (0, util_1.typeormOperator)(async ({ block: { header }, eventType, pgBoss, stakePools }) => {
|
|
8
|
+
const { slot } = header;
|
|
8
9
|
if (eventType === core_1.ChainSyncEventType.RollBackward) {
|
|
9
10
|
return;
|
|
10
11
|
}
|
|
@@ -16,11 +17,7 @@ exports.storeStakePoolMetadataJob = (0, util_1.typeormOperator)(async ({ eventTy
|
|
|
16
17
|
poolRegistrationId: (0, util_1.certificatePointerToId)(source).toString()
|
|
17
18
|
}));
|
|
18
19
|
for (const task of tasks) {
|
|
19
|
-
await pgBoss.send(pgBoss_1.STAKE_POOL_METADATA_QUEUE, task, {
|
|
20
|
-
retryDelay: 6 * 3600,
|
|
21
|
-
retryLimit: 1000000,
|
|
22
|
-
slot: header.slot
|
|
23
|
-
});
|
|
20
|
+
await pgBoss.send(pgBoss_1.STAKE_POOL_METADATA_QUEUE, task, { ...pgBoss_1.defaultJobOptions, slot });
|
|
24
21
|
}
|
|
25
22
|
});
|
|
26
23
|
//# sourceMappingURL=storeStakePoolMetadataJob.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storeStakePoolMetadataJob.js","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AAEvD,
|
|
1
|
+
{"version":3,"file":"storeStakePoolMetadataJob.js","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AAEvD,sCAA+F;AAE/F,iCAAiE;AAEpD,QAAA,yBAAyB,GAAG,IAAA,sBAAe,EACtD,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,yBAAkB,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,IAAA,6BAAsB,EAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;KAC9D,CAAC,CACH,CAAC;IACJ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,MAAM,CAAC,IAAI,CAAC,kCAAyB,EAAE,IAAI,EAAE,EAAE,GAAG,0BAAiB,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,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.storeStakePoolRewardsJob = void 0;
|
|
4
|
+
const core_1 = require("@cardano-sdk/core");
|
|
5
|
+
const pgBoss_1 = require("../pgBoss");
|
|
6
|
+
const util_1 = require("./util");
|
|
7
|
+
exports.storeStakePoolRewardsJob = (0, util_1.typeormOperator)(async ({ block: { header }, crossEpochBoundary, epochNo, eventType, pgBoss }) => {
|
|
8
|
+
const { slot } = header;
|
|
9
|
+
if (eventType === core_1.ChainSyncEventType.RollForward && crossEpochBoundary) {
|
|
10
|
+
if (epochNo === 1)
|
|
11
|
+
return;
|
|
12
|
+
epochNo = core_1.Cardano.EpochNo(epochNo - 2);
|
|
13
|
+
await pgBoss.send(pgBoss_1.STAKE_POOL_REWARDS, { epochNo }, { ...pgBoss_1.defaultJobOptions, retryDelay: 30, singletonKey: epochNo.toString(), slot });
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=storeStakePoolRewardsJob.js.map
|