Skip to content

Chore/merge master conway era #1328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8b8576a
chore: enable handle-provider in all envs, enable asset projector
mchappell May 29, 2024
083905c
Merge pull request #1308 from input-output-hk/feat/enable-asset-proje…
mchappell May 29, 2024
a5e009c
chore: disable staging-preprod asset provider and projector
mchappell Jun 3, 2024
d9386f7
chore: disable asset projector in live environments
mchappell Jun 4, 2024
c0b63c0
chore: fix handle route priority
gytis-ivaskevicius Jun 4, 2024
114328d
chore: add deployment target groups
gytis-ivaskevicius Jun 4, 2024
fcc6f5c
chore: remove unused BUILD_INFO arguments
gytis-ivaskevicius Jun 4, 2024
0e3d6d2
fix(core): plutus list now encodes to canonical CBOR
AngelCastilloB Jun 5, 2024
266db21
Merge pull request #1319 from input-output-hk/fix/plutus-list-now-enc…
AngelCastilloB Jun 5, 2024
4f0181a
ci: publish packages [skip actions]
lace-bot Jun 5, 2024
5f4f072
Merge branch 'master' into release/cardano-services/0.28.x
gytis-ivaskevicius Jun 5, 2024
9a7856a
Merge pull request #1315 from input-output-hk/release/cardano-service…
gytis-ivaskevicius Jun 5, 2024
3785092
fix: plutus list now serializes using the correct encoding depending …
AngelCastilloB Jun 6, 2024
1494ed9
fix(wallet): base wallet should now use the original CBOR if provided
AngelCastilloB Jun 7, 2024
e731cf6
feat(wallet): createWalletUtil's chainHistoryProvider parameter is no…
AngelCastilloB Jun 7, 2024
e6861d7
feat: key agents now can take optional coin purpose
AngelCastilloB Jun 5, 2024
0788606
feat(web-extension): added support to coin purpose in accounts
AngelCastilloB Jun 5, 2024
eb823b7
Merge pull request #1317 from input-output-hk/feat/lw-10571-add-suppo…
mkazlauskas Jun 7, 2024
b3e595f
Merge pull request #1321 from input-output-hk/feat/LW-10575-fix-round…
mkazlauskas Jun 10, 2024
d6b3c7b
Merge pull request #1322 from input-output-hk/feat/fix-plutus-list-en…
AngelCastilloB Jun 11, 2024
741d794
chore: add tsc-alias to make dist/esm files imports complient with la…
iccicci Jun 7, 2024
2b1ac37
Merge pull request #1325 from input-output-hk/chore/tsc-alias
iccicci Jun 12, 2024
ae99220
Merge branch 'master' into conway-era
iccicci Jun 12, 2024
e66686a
test(ogmios): update snapshot to batch the new encoding
iccicci Jun 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
'error',
{
paths: ['lodash'],
patterns: ['@cardano-sdk/*/src/*']
patterns: ['@cardano-sdk/*/src/*', 'lodash/*', '!lodash/*.js']
}
],
'no-shadow': 'off',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: 🔨 Build
run: |
yarn install --immutable --inline-builds --mode=skip-build
yarn build
yarn build:cjs
docker build --no-cache .
env:
NODE_OPTIONS: '--max_old_space_size=8192'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN yarn --immutable --inline-builds --mode=skip-build
COPY packages packages
RUN \
echo "export const unused = 'unused';" > packages/e2e/src/index.ts &&\
NODE_OPTIONS=--max_old_space_size=10240 yarn build
NODE_OPTIONS=--max_old_space_size=10240 yarn build:cjs

FROM nodejs-builder as cardano-services-production-deps
RUN yarn workspaces focus --all --production
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions nix/cardano-services/deployments/asset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
};

env = {
BUILD_INFO = values.cardano-services.buildInfo;
ALLOWED_ORIGINS = values.backend.allowedOrigins;

NETWORK = config.network;
Expand Down Expand Up @@ -68,8 +67,6 @@
port = 3000;

env = {
BUILD_INFO = values.cardano-services.buildInfo;

NETWORK = config.network;
LOGGER_MIN_SEVERITY = values.cardano-services.loggingLevel;
OGMIOS_SRV_SERVICE_NAME = values.backend.ogmiosSrvServiceName;
Expand Down
20 changes: 10 additions & 10 deletions nix/cardano-services/deployments/backend-ingress.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@
};
}
])
++ (lib.optionals config.providers.handle-provider.enabled [
{
pathType = "Prefix";
path = "/v${lib.last (lib.sort lib.versionOlder values.cardano-services.versions.handle)}/handle";
backend.service = {
name = "${chart.name}-handle-provider";
port.name = "http";
};
}
])
++ [
{
pathType = "Prefix";
Expand Down Expand Up @@ -83,16 +93,6 @@
};
}
]
++ lib.optionals config.providers.handle-provider.enabled [
{
pathType = "Prefix";
path = "/v${lib.last (lib.sort lib.versionOlder values.cardano-services.versions.handle)}/handle";
backend.service = {
name = "${chart.name}-handle-provider";
port.name = "http";
};
}
]
++ values.cardano-services.additionalRoutes;
})
values.backend.hostnames;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
env = utils.mkPodEnv {
NETWORK = config.network;
LOGGER_MIN_SEVERITY = values.cardano-services.loggingLevel;
BUILD_INFO = values.cardano-services.buildInfo;

BLOCKFROST_API_KEY = {
valueFrom.secretKeyRef = {
Expand Down
30 changes: 18 additions & 12 deletions nix/cardano-services/deployments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,13 @@ in
env.OVERRIDE_FUZZY_OPTIONS = "true";
};
handle-provider.enabled = true;
# asset-provider.enabled = true;
# asset-provider.enabled = true;
};

projectors = {
handle.enabled = true;
stake-pool.enabled = true;
# asset.enabled = true;
# asset.enabled = true;
};

values = {
Expand Down Expand Up @@ -459,7 +459,7 @@ in
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
# handle-provider.enabled = true;
handle-provider.enabled = true;
# asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
Expand Down Expand Up @@ -530,7 +530,7 @@ in
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
# handle-provider.enabled = true;
handle-provider.enabled = true;
#asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
Expand All @@ -540,7 +540,7 @@ in
projectors = {
handle.enabled = true;
stake-pool.enabled = true;
#asset.enabled = true;
# asset.enabled = true;
};

values = {
Expand Down Expand Up @@ -600,7 +600,7 @@ in
env.NODE_ENV = "production";
};
handle-provider = {
enabled = false;
enabled = true;
env.NODE_ENV = "production";
};
#asset-provider = {
Expand All @@ -614,7 +614,7 @@ in
stake-pool = {
enabled = true;
};
#asset.enabled = true;
# asset.enabled = true;
};

values = {
Expand Down Expand Up @@ -661,7 +661,7 @@ in
env.NODE_ENV = "production";
};
handle-provider = {
enabled = false;
enabled = true;
env.NODE_ENV = "production";
};
#asset-provider = {
Expand All @@ -675,7 +675,7 @@ in
stake-pool = {
enabled = true;
};
#asset.enabled = true;
# asset.enabled = true;
};

values = {
Expand Down Expand Up @@ -761,7 +761,7 @@ in
env.NODE_ENV = "production";
};
handle-provider = {
enabled = false;
enabled = true;
env.NODE_ENV = "production";
};
#asset-provider = {
Expand All @@ -775,7 +775,7 @@ in
stake-pool = {
enabled = true;
};
#asset.enabled = true;
# asset.enabled = true;
};

values = {
Expand Down Expand Up @@ -861,7 +861,7 @@ in
env.NODE_ENV = "production";
};
handle-provider = {
enabled = false;
enabled = true;
env.NODE_ENV = "production";
};
# asset-provider = {
Expand Down Expand Up @@ -1097,4 +1097,10 @@ in
# context = "eks-admin";
#};
});

targetGroups = targets: {
DEV = lib.filterAttrs (name: _: lib.hasPrefix "dev-" name) targets;
LIVE = lib.filterAttrs (name: _: lib.hasPrefix "live-" name) targets;
OPS = lib.filterAttrs (name: _: lib.hasPrefix "ops-" name) targets;
};
}
3 changes: 0 additions & 3 deletions nix/cardano-services/deployments/handle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
OGMIOS_SRV_SERVICE_NAME = values.backend.ogmiosSrvServiceName;
SERVICE_NAMES = "handle";

BUILD_INFO = values.cardano-services.buildInfo;
ALLOWED_ORIGINS = values.backend.allowedOrigins;

POSTGRES_POOL_MAX_HANDLE = "10";
Expand Down Expand Up @@ -72,8 +71,6 @@
PROJECTION_NAMES = "handle";
HANDLE_POLICY_IDS = "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a";

BUILD_INFO = values.cardano-services.buildInfo;

POSTGRES_POOL_MAX = "2";
POSTGRES_HOST = values.postgresName;
POSTGRES_PORT = "5432";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
NETWORK = config.network;
LOGGER_MIN_SEVERITY = values.cardano-services.loggingLevel;
QUEUES = values.pg-boss-worker.queues;
BUILD_INFO = values.cardano-services.buildInfo;

METADATA_FETCH_MODE = values.pg-boss-worker.metadata-fetch-mode;

Expand Down
3 changes: 0 additions & 3 deletions nix/cardano-services/deployments/stake-pool.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
USE_TYPEORM_STAKE_POOL_PROVIDER = "true";
TOKEN_METADATA_SERVER_URL = values.cardano-services.tokenMetadataServerUrl;

BUILD_INFO = values.cardano-services.buildInfo;
ALLOWED_ORIGINS = values.backend.allowedOrigins;

POSTGRES_POOL_MAX_STAKE_POOL = "10";
Expand Down Expand Up @@ -74,8 +73,6 @@
OGMIOS_SRV_SERVICE_NAME = values.backend.ogmiosSrvServiceName;
PROJECTION_NAMES = "stake-pool,stake-pool-metadata-job,stake-pool-metrics-job,stake-pool-rewards-job";

BUILD_INFO = values.cardano-services.buildInfo;

POSTGRES_POOL_MAX = "2";
POSTGRES_HOST = values.postgresName;
POSTGRES_PORT = "5432";
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
],
"scripts": {
"build": "yarn workspaces foreach -v run build",
"build:cjs": "yarn workspaces foreach -v run build:cjs",
"circular-deps:check": "yarn workspaces foreach -v run circular-deps:check",
"cleanup-build": "yarn workspaces foreach -v run cleanup && yarn install && yarn workspaces foreach -v run build",
"reinstall": "yarn workspaces foreach -v run cleanup:nm && yarn install",
Expand Down Expand Up @@ -84,6 +85,7 @@
"ts-jest": "^28.0.7",
"ts-node": "^10.0.0",
"ts-node-dev": "^1.1.8",
"tsc-alias": "^1.8.10",
"typedoc": "^0.23.24",
"typedoc-plugin-missing-exports": "^1.0.0",
"typescript": "^4.7.4"
Expand Down
4 changes: 4 additions & 0 deletions packages/cardano-services-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.19.5](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/[email protected]...@cardano-sdk/[email protected]) (2024-06-05)

**Note:** Version bump only for package @cardano-sdk/cardano-services-client

## [0.19.4](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/[email protected]...@cardano-sdk/[email protected]) (2024-05-20)

**Note:** Version bump only for package @cardano-sdk/cardano-services-client
Expand Down
11 changes: 5 additions & 6 deletions packages/cardano-services-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-sdk/cardano-services-client",
"version": "0.19.4",
"version": "0.19.5",
"description": "Cardano Services Client",
"engines": {
"node": ">=16.20.2"
Expand All @@ -20,11 +20,9 @@
},
"license": "Apache-2.0",
"scripts": {
"build:esm": "tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020",
"build:cjs": "tsc --build src",
"build:version": "bash -c 'if node ./scripts/createVersionSource.js --check ; then node ./scripts/createVersionSource.js --create && yarn lint:fix ; fi && cp ./package.json ./dist/package.json'",
"build": "yarn build:version && run-s build:cjs build:esm module-fixup",
"module-fixup": "cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json",
"build": "yarn build:cjs && tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020 && tsc-alias -p src/tsconfig.json --outDir ./dist/esm && cp ../../build/esm-package.json ./dist/esm/package.json",
"build:cjs": "yarn build:version && tsc --build src && cp ./package.json dist/ && cp ../../build/cjs-package.json ./dist/cjs/package.json",
"build:version": "bash -c 'if node ./scripts/createVersionSource.js --check ; then node ./scripts/createVersionSource.js --create && yarn lint:fix ; fi'",
"tscNoEmit": "echo typescript --noEmit command not implemented yet",
"cleanup:dist": "rm -rf dist",
"circular-deps:check": "madge --circular dist/cjs",
Expand All @@ -50,6 +48,7 @@
"madge": "^5.0.1",
"npm-run-all": "^4.1.5",
"ts-jest": "^28.0.7",
"tsc-alias": "^1.8.10",
"typescript": "^4.7.4"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/cardano-services-client/src/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
declare module '*.json';

// exclude from build, as it has to be imported at runtime
declare module '../package.json';
6 changes: 6 additions & 0 deletions packages/cardano-services/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.28.5](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/[email protected]...@cardano-sdk/[email protected]) (2024-06-05)

### Features

* **cardano-services:** chain history provider now also returns reference scripts on outputs ([8b0731d](https://github.com/input-output-hk/cardano-js-sdk/commit/8b0731de9d7c1f0b7eb22528b1e3d22071931b40))

## [0.28.4](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/[email protected]...@cardano-sdk/[email protected]) (2024-05-20)

### Features
Expand Down
7 changes: 3 additions & 4 deletions packages/cardano-services/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-sdk/cardano-services",
"version": "0.28.4",
"version": "0.28.5",
"description": "Cardano GraphQL Services",
"engines": {
"node": ">=16.20.2"
Expand All @@ -21,9 +21,8 @@
"sideEffects": false,
"license": "Apache-2.0",
"scripts": {
"build:cjs": "tsc --build src && chmod +x ./dist/cjs/cli.js",
"build:copy-assets": "bash ./copy-assets.sh",
"build": "run-s build:cjs build:copy-assets",
"build": "yarn build:cjs",
"build:cjs": "tsc --build src && chmod +x ./dist/cjs/cli.js && bash ./copy-assets.sh",
"build:test-db": "./test/jest-setup/rebuild-test-db.sh",
"cleanup:dist": "rm -rf dist",
"cleanup:nm": "rm -rf node_modules",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Logger } from 'ts-log';
import { TokenMetadataService } from './types';
import { contextLogger } from '@cardano-sdk/util';
import axios, { AxiosInstance } from 'axios';
import pick from 'lodash/pick';
import pick from 'lodash/pick.js';

export const DEFAULT_TOKEN_METADATA_CACHE_TTL = Seconds(10 * 60);
export const DEFAULT_TOKEN_METADATA_REQUEST_TIMEOUT = Milliseconds(3 * 1000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ import {
mapTxTokenMap,
mapWithdrawal
} from './mappers';
import omit from 'lodash/omit';
import orderBy from 'lodash/orderBy';
import omit from 'lodash/omit.js';
import orderBy from 'lodash/orderBy.js';

const {
CredentialType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { QueryResult } from 'pg';
import { TxMetadataService } from '../../Metadata';
import { hexStringToBuffer } from '@cardano-sdk/util';
import { mapBlock, mapTxAlonzo, mapTxIn, mapTxOut } from './mappers';
import orderBy from 'lodash/orderBy';
import orderBy from 'lodash/orderBy.js';

/** Properties that are need to create DbSyncChainHistoryProvider */
export interface ChainHistoryProviderProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Logger } from 'ts-log';
import { NetworkInfoBuilder } from './NetworkInfoBuilder';
import { RunnableModule } from '@cardano-sdk/util';
import { toGenesisParams, toLedgerTip, toProtocolParams, toSupply } from './mappers';
import memoize from 'lodash/memoize';
import memoize from 'lodash/memoize.js';

/** Dependencies that are need to create DbSyncNetworkInfoProvider */
export interface NetworkInfoProviderDependencies extends DbSyncProviderDependencies {
Expand Down
Loading
Loading