Skip to content

Commit

Permalink
chore: bump utils&tests + fix nix
Browse files Browse the repository at this point in the history
  • Loading branch information
1000101 committed Aug 18, 2023
1 parent 84d5103 commit f5d4662
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 35 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- support defining a postgres password in config or env
- new custom index on `redeemer` table to README

### Changed

- !bump blockfrost-utils to 2.7.1
- BREAKING CHANGE: changes behaviour of `from`&`to`
- 400 instead of [] when `from` > `to`
- bump blockfrost-tests to 1.9.2
- CI to run on Node 18

### Fixed

- bump blockfrost-utils to 2.6.2
- README config example
- shell.nix default to Node 18

## [1.6.0] - 2023-06-28

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you are using an authenticated db connection that requires a password, you'd
dbSync: {
host: 'cdbsync-dev.mydomain.com',
user: 'username',
database: 'password',
database: 'dbname',
// Optionally define a password
password: 'randomstringthatissolongandpowerfulthatnoonecanguess'
},
Expand Down
20 changes: 10 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
outputs = { self, nixpkgs }:
let
lib = nixpkgs.lib;
supportedSystems = [
supportedSystems = [
"x86_64-linux"
"x86_64-darwin"
"x86_64-darwin"
];
forAllSystems = f: lib.genAttrs supportedSystems (system: f system);
legacyPkgs = nixpkgs.legacyPackages;
Expand All @@ -25,13 +25,13 @@
packages = forAllSystems (system: {
inherit (default.${system}) blockfrost-backend-ryo;
dockerImage =
let
configs = legacyPkgs.${system}.runCommand "app-configs" { }
''
mkdir -p $out/app
cp -a ${self.packages.${system}.blockfrost-backend-ryo}/libexec/source/config $out/app/config
'';
in
let
configs = legacyPkgs.${system}.runCommand "app-configs" { }
''
mkdir -p $out/app
cp -a ${self.packages.${system}.blockfrost-backend-ryo}/libexec/source/config $out/app/config
'';
in
legacyPkgs.${system}.dockerTools.buildImage {
name = "backend-ryo";
copyToRoot = [ configs ];
Expand All @@ -58,7 +58,7 @@
overlays.default = final: prev: {
inherit (self.packages.${prev.system}) blockfrost-backend-ryo;
};
nixosModules.default = {pkgs, ...}: {
nixosModules.default = { pkgs, ... }: {
imports = [ ./nixos-module.nix ];
services.blockfrost.package = self.packages.${pkgs.system}.blockfrost-backend-ryo;
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@blockfrost/blockfrost-js": "5.2.0",
"@blockfrost/blockfrost-utils": "2.6.2",
"@blockfrost/blockfrost-utils": "2.7.1",
"@blockfrost/openapi": "0.1.58",
"@emurgo/cardano-serialization-lib-nodejs": "11.3.0",
"@emurgo/cip14-js": "^3.0.1",
Expand All @@ -47,7 +47,7 @@
"rimraf": "^4.3.1"
},
"devDependencies": {
"@blockfrost/blockfrost-tests": "1.8.1",
"@blockfrost/blockfrost-tests": "1.9.2",
"@esbuild/darwin-x64": "npm:0.16.17",
"@esbuild/linux-x64": "npm:0.16.17",
"@types/config": "3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{ }
}:
let
nodejs = pkgs.nodejs-16_x;
nodejs = pkgs.nodejs-18_x;
in
pkgs.stdenv.mkDerivation {
name = "blockfrost-backend";
Expand Down
6 changes: 3 additions & 3 deletions yarn-project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cacheEntries = {
"sinon@npm:15.0.1" = { filename = "sinon-npm-15.0.1-115ae39e4c-4b5acff291.zip"; sha512 = "4b5acff291b4650cf736bf45fc9eceed44dceca63b663cbd55926dd688fe8e9baa4b4629e296ee5d5b64245aedec5c540fea0416b8bb35bccfb98ca9e9ed87f3"; };
"methods@npm:1.1.2" = { filename = "methods-npm-1.1.2-92f6fdb39b-0917ff4041.zip"; sha512 = "0917ff4041fa8e2f2fda5425a955fe16ca411591fbd123c0d722fcf02b73971ed6f764d85f0a6f547ce49ee0221ce2c19a5fa692157931cecb422984f1dcd13a"; };
"@blockfrost/blockfrost-js@npm:5.2.0" = { filename = "@blockfrost-blockfrost-js-npm-5.2.0-5dd47056e0-285a000e95.zip"; sha512 = "285a000e95c83be4d10da903f4a2a145b4c8d01ba8a3fce37e6f1b3211e97c5d1f317d923fe81dc6b8beff5e1eeee2b68728db589f8ec46eb6c00069f306bdf2"; };
"@blockfrost/blockfrost-utils@npm:2.6.2" = { filename = "@blockfrost-blockfrost-utils-npm-2.6.2-50b0e94315-6e8b00e9e0.zip"; sha512 = "6e8b00e9e0fd05177db8ff14f1c2d326acf69ede063438e47e6e0a7dd047cab09368812490e5b0416b5d66342b0718312a82817513e996591ec7035e26a9632f"; };
"@blockfrost/blockfrost-utils@npm:2.7.1" = { filename = "@blockfrost-blockfrost-utils-npm-2.7.1-e45decfbd8-2f24289fca.zip"; sha512 = "2f24289fcad64b24dc5d6e3ad46bb8d90ea41c25b205c93661f95b2e149c48f336c35541c7dfe331db7a87cc2ea931bb9230eee67f202dbd641f05c51aa976f8"; };
"yaml@npm:2.2.1" = { filename = "yaml-npm-2.2.1-b7f7f5e84d-84f68cbe46.zip"; sha512 = "84f68cbe462d5da4e7ded4a8bded949ffa912bc264472e5a684c3d45b22d8f73a3019963a32164023bdf3d83cfb6f5b58ff7b2b10ef5b717c630f40bd6369a23"; };
"mnemonist@npm:0.39.5" = { filename = "mnemonist-npm-0.39.5-cbd4ee161e-6669d687a4.zip"; sha512 = "6669d687a434226924b2c84ee6eb7ce7d0f83dfc5caad8bcc164c73c0c11fb6d43cbe32636e710f068046f4b40a56c3032532554e93e02640aafc6ca3dd222e6"; };
"@sentry/node@npm:7.41.0" = { filename = "@sentry-node-npm-7.41.0-3c90733fbe-44a98b4c66.zip"; sha512 = "44a98b4c66c7d27d46da57921433d9608fde8b2307842ddb0a09fc927eeaa0b2e02c0d59520bca143843e5a598fc4ca2ff8e84049afcd305357e191afe3817d0"; };
Expand Down Expand Up @@ -1094,11 +1094,11 @@ cacheEntries = {
"prelude-ls@npm:1.1.2" = { filename = "prelude-ls-npm-1.1.2-a0daac0886-c4867c8748.zip"; sha512 = "c4867c87488e4a0c233e158e4d0d5565b609b105d75e4c05dc760840475f06b731332eb93cc8c9cecb840aa8ec323ca3c9a56ad7820ad2e63f0261dadcb154e4"; };
"type-check@npm:0.3.2" = { filename = "type-check-npm-0.3.2-a4a38bb0b6-dd3b149564.zip"; sha512 = "dd3b1495642731bc0e1fc40abe5e977e0263005551ac83342ecb6f4f89551d106b368ec32ad3fb2da19b3bd7b2d1f64330da2ea9176d8ddbfe389fb286eb5124"; };
"levn@npm:0.3.0" = { filename = "levn-npm-0.3.0-48d774b1c2-0d084a5242.zip"; sha512 = "0d084a524231a8246bb10fec48cdbb35282099f6954838604f3c7fc66f2e16fa66fd9cc2f3f20a541a113c4dafdf181e822c887c8a319c9195444e6c64ac395e"; };
"@blockfrost/blockfrost-tests@npm:1.8.1" = { filename = "@blockfrost-blockfrost-tests-npm-1.8.1-fe3faa631d-920e9e6139.zip"; sha512 = "920e9e6139b96ab8ece2c7bb76a199b7c4f89f4754d22cdb08419115f68dd81bc891857ecdaf96c1fde2da9182fc29dc88f2aafce6b8c391cb2c2cfa458cafbc"; };
"@blockfrost/blockfrost-tests@npm:1.9.2" = { filename = "@blockfrost-blockfrost-tests-npm-1.9.2-0c40337446-4553508a63.zip"; sha512 = "4553508a636e022747c6f4217c76eb874e092e3e63cafc904f3a19d97ec17171bb3a14368d3c380925229bc8ea1a9434e00231402c2d5e2ca012b208655d5628"; };
"node-match-path@npm:0.6.3" = { filename = "node-match-path-npm-0.6.3-0c492cdac8-d515bc069f.zip"; sha512 = "d515bc069f293688109c058ee02567528fdaa856290d362b80a2254734975014e4eefcdcc5164a8adfd5560aa870e277c97fe8be648074d5088056cf61553c7c"; };
"jdenticon@npm:3.2.0" = { filename = "jdenticon-npm-3.2.0-da0f1bbe59-cdc0651532.zip"; sha512 = "cdc0651532f38e02c8e6661f0185735dcd29b7cd17677c69be31916ed38d81ded8bc749deb79925ad8aaf68da0b7a49f0835879c70a7dea042caa6c47faaebee"; };
"jest-extended@npm:3.2.4" = { filename = "jest-extended-npm-3.2.4-b882af7fa5-16e4f300d9.zip"; sha512 = "16e4f300d9c5bf110f7f3422e49e06c968a99a44cede2b2821ddd480c33b3d9cd4dc58035b2f022e6018247da8f887295d6c2499647675dedb6e305142604e7d"; };
"@blockfrost/openapi@npm:0.1.57" = { filename = "@blockfrost-openapi-npm-0.1.57-24a811b8f9-4bc4fa9952.zip"; sha512 = "4bc4fa9952817b6fa0758db063867d40db3f82e41c75a91179908212c7291cc66ea5e45728a09de717d522d71c27526d47953a8e8d613df6674836b94ef450a9"; };
"@blockfrost/openapi@npm:0.1.59" = { filename = "@blockfrost-openapi-npm-0.1.59-565be7762f-8846c0bb7e.zip"; sha512 = "8846c0bb7e09388aa79a23795e602304ddd8d17eb8335509330988c3a51063a6e06ec5a0d3278c5ba145f69da2a673913b8aeebae68a99f37b59ebdb2ec3a978"; };
"expect@npm:29.3.1" = { filename = "expect-npm-29.3.1-2892df60b8-e9588c2a43.zip"; sha512 = "e9588c2a430b558b9a3dc72d4ad05f36b047cb477bc6a7bb9cfeef7614fe7e5edbab424c2c0ce82739ee21ecbbbd24596259528209f84cd72500cc612d910d30"; };
"canvas-renderer@npm:2.2.1" = { filename = "canvas-renderer-npm-2.2.1-c863d920bc-91d8807aee.zip"; sha512 = "91d8807aee0fa0549862a4124455bea7833d4c739df39b6519df367ec4f57683735d6bf873dfbc0d47ce49e4d92a02cc2bd15eda2a025fa961d3d1c0539d85e8"; };
"jest-get-type@npm:29.4.3" = { filename = "jest-get-type-npm-29.4.3-790eefdb01-6ac7f2dde1.zip"; sha512 = "6ac7f2dde1c65e292e4355b6c63b3a4897d7e92cb4c8afcf6d397f2682f8080e094c8b0b68205a74d269882ec06bf696a9de6cd3e1b7333531e5ed7b112605ce"; };
Expand Down
34 changes: 17 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,17 @@ __metadata:
languageName: node
linkType: hard

"@blockfrost/blockfrost-tests@npm:1.8.1":
version: 1.8.1
resolution: "@blockfrost/blockfrost-tests@npm:1.8.1"
"@blockfrost/blockfrost-tests@npm:1.9.2":
version: 1.9.2
resolution: "@blockfrost/blockfrost-tests@npm:1.9.2"
dependencies:
"@blockfrost/openapi": ^0.1.57
"@blockfrost/openapi": 0.1.59
expect: ^29.3.1
form-data: ^4.0.0
jdenticon: ^3.2.0
jest-extended: ^3.1.0
node-match-path: ^0.6.3
checksum: 920e9e6139b96ab8ece2c7bb76a199b7c4f89f4754d22cdb08419115f68dd81bc891857ecdaf96c1fde2da9182fc29dc88f2aafce6b8c391cb2c2cfa458cafbc
checksum: 4553508a636e022747c6f4217c76eb874e092e3e63cafc904f3a19d97ec17171bb3a14368d3c380925229bc8ea1a9434e00231402c2d5e2ca012b208655d5628
languageName: node
linkType: hard

Expand All @@ -243,9 +243,9 @@ __metadata:
languageName: node
linkType: hard

"@blockfrost/blockfrost-utils@npm:2.6.2":
version: 2.6.2
resolution: "@blockfrost/blockfrost-utils@npm:2.6.2"
"@blockfrost/blockfrost-utils@npm:2.7.1":
version: 2.7.1
resolution: "@blockfrost/blockfrost-utils@npm:2.7.1"
dependencies:
"@emurgo/cardano-serialization-lib-nodejs": ^11.4.0
bech32: ^2.0.0
Expand All @@ -254,7 +254,7 @@ __metadata:
pm2: ^5.3.0
prom-client: ^14.2.0
yaml: ^2.3.1
checksum: 6e8b00e9e0fd05177db8ff14f1c2d326acf69ede063438e47e6e0a7dd047cab09368812490e5b0416b5d66342b0718312a82817513e996591ec7035e26a9632f
checksum: 2f24289fcad64b24dc5d6e3ad46bb8d90ea41c25b205c93661f95b2e149c48f336c35541c7dfe331db7a87cc2ea931bb9230eee67f202dbd641f05c51aa976f8
languageName: node
linkType: hard

Expand All @@ -279,14 +279,14 @@ __metadata:
languageName: node
linkType: hard

"@blockfrost/openapi@npm:^0.1.57":
version: 0.1.57
resolution: "@blockfrost/openapi@npm:0.1.57"
"@blockfrost/openapi@npm:0.1.59":
version: 0.1.59
resolution: "@blockfrost/openapi@npm:0.1.59"
dependencies:
"@redocly/cli": ^1.0.0-beta.123
ajv: ^8.11.2
cbor: ^8.1.0
yaml: ^2.2.1
checksum: 4bc4fa9952817b6fa0758db063867d40db3f82e41c75a91179908212c7291cc66ea5e45728a09de717d522d71c27526d47953a8e8d613df6674836b94ef450a9
checksum: 8846c0bb7e09388aa79a23795e602304ddd8d17eb8335509330988c3a51063a6e06ec5a0d3278c5ba145f69da2a673913b8aeebae68a99f37b59ebdb2ec3a978
languageName: node
linkType: hard

Expand Down Expand Up @@ -1760,7 +1760,7 @@ __metadata:
languageName: node
linkType: hard

"ajv@npm:^8.12.0":
"ajv@npm:^8.11.2, ajv@npm:^8.12.0":
version: 8.12.0
resolution: "ajv@npm:8.12.0"
dependencies:
Expand Down Expand Up @@ -2208,8 +2208,8 @@ __metadata:
resolution: "blockfrost-backend-ryo@workspace:."
dependencies:
"@blockfrost/blockfrost-js": 5.2.0
"@blockfrost/blockfrost-tests": 1.8.1
"@blockfrost/blockfrost-utils": 2.6.2
"@blockfrost/blockfrost-tests": 1.9.2
"@blockfrost/blockfrost-utils": 2.7.1
"@blockfrost/openapi": 0.1.58
"@emurgo/cardano-serialization-lib-nodejs": 11.3.0
"@emurgo/cip14-js": ^3.0.1
Expand Down

0 comments on commit f5d4662

Please sign in to comment.