@cardano-sdk/cardano-services 0.11.1-test.1 → 0.11.1
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/Asset/CardanoTokenRegistry.d.ts +1 -1
- package/dist/cjs/Asset/CardanoTokenRegistry.d.ts.map +1 -1
- package/dist/cjs/Asset/CardanoTokenRegistry.js +4 -1
- package/dist/cjs/Asset/CardanoTokenRegistry.js.map +1 -1
- package/dist/cjs/original-package.json +11 -11
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/dist/cjs/PgBoss/util.d.ts +0 -10
- package/dist/cjs/PgBoss/util.d.ts.map +0 -1
- package/dist/cjs/PgBoss/util.js +0 -30
- package/dist/cjs/PgBoss/util.js.map +0 -1
- package/dist/cjs/Program/programs/pgBossWorker.d.ts +0 -27
- package/dist/cjs/Program/programs/pgBossWorker.d.ts.map +0 -1
- package/dist/cjs/Program/programs/pgBossWorker.js +0 -50
- package/dist/cjs/Program/programs/pgBossWorker.js.map +0 -1
- package/dist/cjs/Program/services/pgboss.d.ts +0 -20
- package/dist/cjs/Program/services/pgboss.d.ts.map +0 -1
- package/dist/cjs/Program/services/pgboss.js +0 -72
- package/dist/cjs/Program/services/pgboss.js.map +0 -1
- package/dist/cjs/Projection/migrations/0-block-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/0-block-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/0-block-table.js +0 -19
- package/dist/cjs/Projection/migrations/0-block-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/1-block-data-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/1-block-data-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/1-block-data-table.js +0 -17
- package/dist/cjs/Projection/migrations/1-block-data-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/10-fk-pool-retirement.d.ts +0 -8
- package/dist/cjs/Projection/migrations/10-fk-pool-retirement.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/10-fk-pool-retirement.js +0 -17
- package/dist/cjs/Projection/migrations/10-fk-pool-retirement.js.map +0 -1
- package/dist/cjs/Projection/migrations/2-pool-registration-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/2-pool-registration-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/2-pool-registration-table.js +0 -17
- package/dist/cjs/Projection/migrations/2-pool-registration-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/3-pool-retirement-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/3-pool-retirement-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/3-pool-retirement-table.js +0 -17
- package/dist/cjs/Projection/migrations/3-pool-retirement-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/4-stake-pool-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/4-stake-pool-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/4-stake-pool-table.js +0 -19
- package/dist/cjs/Projection/migrations/4-stake-pool-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/5-pool-metadata-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/5-pool-metadata-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/5-pool-metadata-table.js +0 -23
- package/dist/cjs/Projection/migrations/5-pool-metadata-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/6-asset-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/6-asset-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/6-asset-table.js +0 -17
- package/dist/cjs/Projection/migrations/6-asset-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/7-output-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/7-output-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/7-output-table.js +0 -23
- package/dist/cjs/Projection/migrations/7-output-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/8-tokens-table.d.ts +0 -8
- package/dist/cjs/Projection/migrations/8-tokens-table.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/8-tokens-table.js +0 -19
- package/dist/cjs/Projection/migrations/8-tokens-table.js.map +0 -1
- package/dist/cjs/Projection/migrations/9-fk-pool-registration.d.ts +0 -8
- package/dist/cjs/Projection/migrations/9-fk-pool-registration.d.ts.map +0 -1
- package/dist/cjs/Projection/migrations/9-fk-pool-registration.js +0 -17
- package/dist/cjs/Projection/migrations/9-fk-pool-registration.js.map +0 -1
- package/dist/cjs/dataSource.d.ts +0 -2
- package/dist/cjs/dataSource.d.ts.map +0 -1
- package/dist/cjs/dataSource.js +0 -26
- package/dist/cjs/dataSource.js.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
import { OutputEntity } from '@cardano-sdk/projection-typeorm';
|
|
3
|
-
export declare class OutputTableMigration7 implements MigrationInterface {
|
|
4
|
-
static entity: typeof OutputEntity;
|
|
5
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=7-output-table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"7-output-table.d.ts","sourceRoot":"","sources":["../../../../src/Projection/migrations/7-output-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,qBAAa,qBAAsB,YAAW,kBAAkB;IAC9D,MAAM,CAAC,MAAM,sBAAgB;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAY3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAOpD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OutputTableMigration7 = void 0;
|
|
4
|
-
const projection_typeorm_1 = require("@cardano-sdk/projection-typeorm");
|
|
5
|
-
class OutputTableMigration7 {
|
|
6
|
-
async up(queryRunner) {
|
|
7
|
-
await queryRunner.query('CREATE TABLE "output" ("id" SERIAL NOT NULL, "address" character varying NOT NULL, "tx_id" character varying NOT NULL, "output_index" smallint NOT NULL, "coins" bigint NOT NULL, "consumed_at_slot" integer, "datum_hash" character(64), "datum" character varying, "script_reference" jsonb, "block_slot" integer NOT NULL, CONSTRAINT "PK_output_id" PRIMARY KEY ("id"))');
|
|
8
|
-
await queryRunner.query('CREATE INDEX "IDX_output_address" ON "output" ("address") ');
|
|
9
|
-
await queryRunner.query('CREATE INDEX "IDX_output_tx_id" ON "output" ("tx_id") ');
|
|
10
|
-
await queryRunner.query('CREATE INDEX "IDX_output_output_index" ON "output" ("output_index") ');
|
|
11
|
-
await queryRunner.query('ALTER TABLE "output" ADD CONSTRAINT "FK_output_block_slot" FOREIGN KEY ("block_slot") REFERENCES "block"("slot") ON DELETE CASCADE ON UPDATE NO ACTION');
|
|
12
|
-
}
|
|
13
|
-
async down(queryRunner) {
|
|
14
|
-
await queryRunner.query('ALTER TABLE "output" DROP CONSTRAINT "FK_output_block_slot"');
|
|
15
|
-
await queryRunner.query('DROP INDEX "public"."IDX_output_output_index"');
|
|
16
|
-
await queryRunner.query('DROP INDEX "public"."IDX_output_tx_id"');
|
|
17
|
-
await queryRunner.query('DROP INDEX "public"."IDX_output_address"');
|
|
18
|
-
await queryRunner.query('DROP TABLE "output"');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.OutputTableMigration7 = OutputTableMigration7;
|
|
22
|
-
OutputTableMigration7.entity = projection_typeorm_1.OutputEntity;
|
|
23
|
-
//# sourceMappingURL=7-output-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"7-output-table.js","sourceRoot":"","sources":["../../../../src/Projection/migrations/7-output-table.ts"],"names":[],"mappings":";;;AACA,wEAA+D;AAE/D,MAAa,qBAAqB;IAGhC,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,6WAA6W,CAC9W,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QACtF,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;QAClF,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;QAChG,MAAM,WAAW,CAAC,KAAK,CACrB,wJAAwJ,CACzJ,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QACvF,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACzE,MAAM,WAAW,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAClE,MAAM,WAAW,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;QACpE,MAAM,WAAW,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACjD,CAAC;;AArBH,sDAsBC;AArBQ,4BAAM,GAAG,iCAAY,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
import { TokensEntity } from '@cardano-sdk/projection-typeorm';
|
|
3
|
-
export declare class TokensTableMigration8 implements MigrationInterface {
|
|
4
|
-
static entity: typeof TokensEntity;
|
|
5
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=8-tokens-table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"8-tokens-table.d.ts","sourceRoot":"","sources":["../../../../src/Projection/migrations/8-tokens-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,qBAAa,qBAAsB,YAAW,kBAAkB;IAC9D,MAAM,CAAC,MAAM,sBAAgB;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAY3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAKpD"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TokensTableMigration8 = void 0;
|
|
4
|
-
const projection_typeorm_1 = require("@cardano-sdk/projection-typeorm");
|
|
5
|
-
class TokensTableMigration8 {
|
|
6
|
-
async up(queryRunner) {
|
|
7
|
-
await queryRunner.query('CREATE TABLE "tokens" ("id" SERIAL NOT NULL, "quantity" bigint NOT NULL, "asset_id" character varying NOT NULL, "output_id" integer NOT NULL, CONSTRAINT "PK_tokens_id" PRIMARY KEY ("id"))');
|
|
8
|
-
await queryRunner.query('ALTER TABLE "tokens" ADD CONSTRAINT "FK_tokens_asset_id" FOREIGN KEY ("asset_id") REFERENCES "asset"("id") ON DELETE CASCADE ON UPDATE NO ACTION');
|
|
9
|
-
await queryRunner.query('ALTER TABLE "tokens" ADD CONSTRAINT "FK_tokens_output_id" FOREIGN KEY ("output_id") REFERENCES "output"("id") ON DELETE CASCADE ON UPDATE NO ACTION');
|
|
10
|
-
}
|
|
11
|
-
async down(queryRunner) {
|
|
12
|
-
await queryRunner.query('ALTER TABLE "tokens" DROP CONSTRAINT "FK_tokens_output_id"');
|
|
13
|
-
await queryRunner.query('ALTER TABLE "tokens" DROP CONSTRAINT "FK_tokens_asset_id"');
|
|
14
|
-
await queryRunner.query('DROP TABLE "tokens"');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.TokensTableMigration8 = TokensTableMigration8;
|
|
18
|
-
TokensTableMigration8.entity = projection_typeorm_1.TokensEntity;
|
|
19
|
-
//# sourceMappingURL=8-tokens-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"8-tokens-table.js","sourceRoot":"","sources":["../../../../src/Projection/migrations/8-tokens-table.ts"],"names":[],"mappings":";;;AACA,wEAA+D;AAE/D,MAAa,qBAAqB;IAGhC,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,6LAA6L,CAC9L,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,kJAAkJ,CACnJ,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,qJAAqJ,CACtJ,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QACtF,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACrF,MAAM,WAAW,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACjD,CAAC;;AAnBH,sDAoBC;AAnBQ,4BAAM,GAAG,iCAAY,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
import { PoolRegistrationEntity } from '@cardano-sdk/projection-typeorm';
|
|
3
|
-
export declare class FkPoolRegistrationMigration9 implements MigrationInterface {
|
|
4
|
-
static entity: typeof PoolRegistrationEntity;
|
|
5
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=9-fk-pool-registration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"9-fk-pool-registration.d.ts","sourceRoot":"","sources":["../../../../src/Projection/migrations/9-fk-pool-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,qBAAa,4BAA6B,YAAW,kBAAkB;IACrE,MAAM,CAAC,MAAM,gCAA0B;IAEjC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAIpD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FkPoolRegistrationMigration9 = void 0;
|
|
4
|
-
const projection_typeorm_1 = require("@cardano-sdk/projection-typeorm");
|
|
5
|
-
class FkPoolRegistrationMigration9 {
|
|
6
|
-
async up(queryRunner) {
|
|
7
|
-
await queryRunner.query('ALTER TABLE "pool_registration" ADD CONSTRAINT "FK_pool_registration_stake_pool_id" FOREIGN KEY ("stake_pool_id") REFERENCES "stake_pool"("id") ON DELETE CASCADE ON UPDATE NO ACTION');
|
|
8
|
-
await queryRunner.query('ALTER TABLE "stake_pool" ADD CONSTRAINT "FK_stake_pool_last_registration_id" FOREIGN KEY ("last_registration_id") REFERENCES "pool_registration"("id") ON DELETE SET NULL ON UPDATE NO ACTION');
|
|
9
|
-
}
|
|
10
|
-
async down(queryRunner) {
|
|
11
|
-
await queryRunner.query('ALTER TABLE "stake_pool" DROP CONSTRAINT "FK_stake_pool_last_registration_id"');
|
|
12
|
-
await queryRunner.query('ALTER TABLE "pool_registration" DROP CONSTRAINT "FK_pool_registration_stake_pool_id"');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.FkPoolRegistrationMigration9 = FkPoolRegistrationMigration9;
|
|
16
|
-
FkPoolRegistrationMigration9.entity = projection_typeorm_1.PoolRegistrationEntity;
|
|
17
|
-
//# sourceMappingURL=9-fk-pool-registration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"9-fk-pool-registration.js","sourceRoot":"","sources":["../../../../src/Projection/migrations/9-fk-pool-registration.ts"],"names":[],"mappings":";;;AACA,wEAAyE;AAEzE,MAAa,4BAA4B;IAGvC,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,uLAAuL,CACxL,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,+LAA+L,CAChM,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;QACzG,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;IAClH,CAAC;;AAfH,oEAgBC;AAfQ,mCAAM,GAAG,2CAAsB,CAAC"}
|
package/dist/cjs/dataSource.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../src/dataSource.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa,8BAoBxB,CAAC"}
|
package/dist/cjs/dataSource.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppDataSource = void 0;
|
|
4
|
-
const projection_typeorm_1 = require("@cardano-sdk/projection-typeorm");
|
|
5
|
-
exports.AppDataSource = (0, projection_typeorm_1.createDataSource)({
|
|
6
|
-
connectionConfig: {
|
|
7
|
-
database: 'projection',
|
|
8
|
-
host: 'localhost',
|
|
9
|
-
password: 'doNoUseThisSecret!',
|
|
10
|
-
port: 5432,
|
|
11
|
-
username: 'postgres'
|
|
12
|
-
},
|
|
13
|
-
entities: [
|
|
14
|
-
projection_typeorm_1.AssetEntity,
|
|
15
|
-
projection_typeorm_1.BlockDataEntity,
|
|
16
|
-
projection_typeorm_1.BlockEntity,
|
|
17
|
-
projection_typeorm_1.OutputEntity,
|
|
18
|
-
projection_typeorm_1.PoolMetadataEntity,
|
|
19
|
-
projection_typeorm_1.PoolRegistrationEntity,
|
|
20
|
-
projection_typeorm_1.PoolRetirementEntity,
|
|
21
|
-
projection_typeorm_1.StakePoolEntity,
|
|
22
|
-
projection_typeorm_1.TokensEntity
|
|
23
|
-
],
|
|
24
|
-
logger: console
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=dataSource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataSource.js","sourceRoot":"","sources":["../../src/dataSource.ts"],"names":[],"mappings":";;;AAGA,wEAWyC;AAE5B,QAAA,aAAa,GAAG,IAAA,qCAAgB,EAAC;IAC5C,gBAAgB,EAAE;QAChB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,oBAAoB;QAC9B,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,UAAU;KACrB;IACD,QAAQ,EAAE;QACR,gCAAW;QACX,oCAAe;QACf,gCAAW;QACX,iCAAY;QACZ,uCAAkB;QAClB,2CAAsB;QACtB,yCAAoB;QACpB,oCAAe;QACf,iCAAY;KACb;IACD,MAAM,EAAE,OAAO;CAChB,CAAC,CAAC"}
|