Skip to content
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

bump openapi, tests #158

Merged
merged 5 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
required for `cardano-db-sync 13.1.1.3` and newer [#130](https://github.com/blockfrost/blockfrost-backend-ryo/pull/130)
- indices improving `/assets/{asset}` when querying CIP68 assets and `/txs/{tx_hash}` with redeemers
- IS_LOCAL env for testing
- Parsing version 2 of CIP68 metadata (`@blockfrost/openapi` 0.1.62)
- `/txs/:hash/required_signers` endpoint

### Changed

- node_modules
- yarn
- updated vitest
- removed token registry mock server, using function mocking instead
- bump blockfrost-tests to `dd9b2fe5ed7fa5cad60b34555b3c05d287382226`

### Fixed

- ordering in `/assets/asset/txs`, `/assets/asset/transactions` and `/epochs/{number}/stakes`
- port configuration via config option `dbSync.port`
- live_stake for retired pools in `/pools/{pool_id}` was always 0, instead of displaying the delegated amount
- error in `/epochs/n/parameters` for epochs without PlutusV1/PlutusV2 cost models
- `metadata/txs/labels/:num` and `/scripts/:hash/json` json encoding for primitive types (eg. string) (`@blockfrost/openapi` 0.1.62)


## [1.7.0] - 2023-08-30

Expand Down
3 changes: 2 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ pkgs ? import nixpkgs {}
, blockfrost-tests ?
(builtins.fetchGit {
url = "ssh://[email protected]/blockfrost/blockfrost-tests.git";
rev = "19350708ee2e401f0f50dc6bd25c71a6d030ce6f";
rev = "b8144ba04a14b46a165d73b39940097baeedaf57";
allRefs = true;
})
, system ? builtins.currentSystem
}:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@blockfrost/blockfrost-js": "5.4.0",
"@blockfrost/blockfrost-utils": "2.8.0",
"@blockfrost/openapi": "0.1.61",
"@blockfrost/openapi": "0.1.62",
"@emurgo/cardano-serialization-lib-nodejs": "11.5.0",
"@fastify/cors": "^8.3.0",
"@fastify/postgres": "^5.2.0",
Expand Down
6 changes: 3 additions & 3 deletions yarn-project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ cacheEntries = {
"blake2b@npm:2.1.4" = { filename = "blake2b-npm-2.1.4-3a13da4cf0-cd598c96d4.zip"; sha512 = "cd598c96d459017714b7f9cb8892ef2b0a94f362e26e6baa46b7b8b189af0006ce25ab1713e3ec1484eb18ce7ebe1eb24e07d01e42ab1147067de2419c7f6158"; };
"eslint-plugin-prettier@npm:5.0.0" = { filename = "eslint-plugin-prettier-npm-5.0.0-2f21113cba-84e88744b9.zip"; sha512 = "84e88744b9050f2d5ef31b94e85294dda16f3a53c2449f9d33eac8ae6264889b459bf35a68e438fb6b329c2a1d6491aac4bfa00d86317e7009de3dad0311bec6"; };
"supertest@npm:6.3.3" = { filename = "supertest-npm-6.3.3-2e2b5bc83a-38239e517f.zip"; sha512 = "38239e517f7ba62b7a139a79c5c48d55f8d67b5ff4b6e51d5b07732ca8bbc4a28ffa1b10916fbb403dd013a054dbf028edc5850057d9a43aecbff439d494673e"; };
"@blockfrost/openapi@npm:0.1.61" = { filename = "@blockfrost-openapi-npm-0.1.61-48047efd13-f845be0e05.zip"; sha512 = "f845be0e054a5d1c99fc98603d919bfab30205423d56a4cf3c24fdad114eb0d4f3345c877174ea477f9f6fa1eeb8381333cbb4f6e12ca5a0d51cb186f38a2a46"; };
"@blockfrost/openapi@npm:0.1.62" = { filename = "@blockfrost-openapi-npm-0.1.62-a107e684e0-d47476ec5b.zip"; sha512 = "d47476ec5bb9655c5a717e5d828ebfce686d9eeda6e46cff349b8dea4e626cc806e82e9efcb62993de02affcb0aae58417bf57d55fd573398c0af78f2c37da70"; };
"@types/pg@npm:8.10.2" = { filename = "@types-pg-npm-8.10.2-de8ade0e64-49da89f64c.zip"; sha512 = "49da89f64cec1bd12a3fbc0c72b17d685c2fee579726a529f62fcab395dbc5696d80455073409947a577164b3c53a90181a331e4a5d9357679f724d4ce37f4b9"; };
"axios@npm:1.5.0" = { filename = "axios-npm-1.5.0-35a845e191-e7405a5dbb.zip"; sha512 = "e7405a5dbbea97760d0e6cd58fecba311b0401ddb4a8efbc4108f5537da9b3f278bde566deb777935a960beec4fa18e7b8353881f2f465e4f2c0e949fead35be"; };
"@types/express@npm:4.17.17" = { filename = "@types-express-npm-4.17.17-46fe8173db-0196dacc27.zip"; sha512 = "0196dacc275ac3ce89d7364885cb08e7fb61f53ca101f65886dbf1daf9b7eb05c0943e2e4bbd01b0cc5e50f37e0eea7e4cbe97d0304094411ac73e1b7998f4da"; };
Expand All @@ -160,15 +160,15 @@ cacheEntries = {
"@blockfrost/blockfrost-js@npm:5.4.0" = { filename = "@blockfrost-blockfrost-js-npm-5.4.0-32c36ce5a9-76bdd7e1b4.zip"; sha512 = "76bdd7e1b4d5b386db0db66be648123b22d03808b66f42f85bf0899cc67170922cec6b9b289fd797db1a27c752b20c931a7586f5b4a0bdce2c2c07599c2bc4eb"; };
"@blockfrost/blockfrost-tests@npm:1.11.0" = { filename = "@blockfrost-blockfrost-tests-npm-1.11.0-645f02b66a-cd19044838.zip"; sha512 = "cd19044838f20705b4a748d3dbae48c5b39a73155ea10b6b6132c608c4d2285c1e8d512ff1b232bfe657bb59c8e8db45d33e1adce648bfec839591c434eed28e"; };
"@blockfrost/blockfrost-utils@npm:2.8.0" = { filename = "@blockfrost-blockfrost-utils-npm-2.8.0-7809fac5e3-f46163e55d.zip"; sha512 = "f46163e55d2ad686efcf8eadd9d10a320ba866acb75a829620eed9ccbe356ad2b53e29e36ead37a8b6eb62a38ac4d97c959a3fbc3d9994b6f2fdd2274a38bc08"; };
"yaml@npm:2.3.4" = { filename = "yaml-npm-2.3.4-8bb6dc2c0d-e6d1dae1c6.zip"; sha512 = "e6d1dae1c6383bcc8ba11796eef3b8c02d5082911c6723efeeb5ba50fc8e881df18d645e64de68e421b577296000bea9c75d6d9097c2f6699da3ae0406c030d8"; };
"yaml@npm:2.4.0" = { filename = "yaml-npm-2.4.0-c777792a53-3c25ebae34.zip"; sha512 = "3c25ebae34ee702af772ebbd1855a980b1487cd21d6220d952592edb4f7d89322aafd14753d99924ba7076eb4c5b3d809c64bb532402b01af280f7af674277f1"; };
"mnemonist@npm:0.39.5" = { filename = "mnemonist-npm-0.39.5-cbd4ee161e-6669d687a4.zip"; sha512 = "6669d687a434226924b2c84ee6eb7ce7d0f83dfc5caad8bcc164c73c0c11fb6d43cbe32636e710f068046f4b40a56c3032532554e93e02640aafc6ca3dd222e6"; };
"@types/node@npm:14.14.28" = { filename = "@types-node-npm-14.14.28-f643c75c74-a8dcec1fc4.zip"; sha512 = "a8dcec1fc45a8c1573f519d33d1d017562432f939a5ec2fd6f71343a51085b2c5d105db1186086cd1bba9abf95e80c7538ef2eb459e8719d48b77458eb19be64"; };
"pg-protocol@npm:1.5.0" = { filename = "pg-protocol-npm-1.5.0-390f8d9ed8-b839d12caf.zip"; sha512 = "b839d12cafe942ef9cbc5b13c174eb2356804fb4fe8ead8279f46a36be90722d19a91409955beb8a3d5301639c44854e49749de4aef02dc361fee3e2a61fb1e4"; };
"@types/superagent@npm:4.1.10" = { filename = "@types-superagent-npm-4.1.10-56c7076140-19bef11de0.zip"; sha512 = "19bef11de02b0d319459d3993612637a95005ba8f2ca18b370253bb379aa0c38fdf7cff461a6d9258e9e8ef4495b7b04b8f7f4284998305b77eccc8e05ef2750"; };
"follow-redirects@npm:1.15.2" = { filename = "follow-redirects-npm-1.15.2-1ec1dd82be-faa66059b6.zip"; sha512 = "faa66059b66358ba65c234c2f2a37fcec029dc22775f35d9ad6abac56003268baf41e55f9ee645957b32c7d9f62baf1f0b906e68267276f54ec4b4c597c2b190"; };
"proxy-from-env@npm:1.1.0" = { filename = "proxy-from-env-npm-1.1.0-c13d07f26b-ed7fcc2ba0.zip"; sha512 = "ed7fcc2ba0a33404958e34d95d18638249a68c430e30fcb6c478497d72739ba64ce9810a24f53a7d921d0c065e5b78e3822759800698167256b04659366ca4d4"; };
"prettier-linter-helpers@npm:1.0.0" = { filename = "prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip"; sha512 = "00ce8011cf6430158d27f9c92cfea0a7699405633f7f1d4a45f07e21bf78e99895911cbcdc3853db3a824201a7c745bd49bfea8abd5fb9883e765a90f74f8392"; };
"cbor@npm:9.0.1" = { filename = "cbor-npm-9.0.1-3a5a6b7751-42333ac3d4.zip"; sha512 = "42333ac3d42cc3f6fcc7a529e68417a2dd8099eda43ca4be1304cdc5bc7494efe058e2db8a3d3b46ae60d69c7331ea813c22dbd019c4ac592d23e599d72bbcc9"; };
"cbor@npm:9.0.2" = { filename = "cbor-npm-9.0.2-dcdfe6a47e-925edae7bf.zip"; sha512 = "925edae7bf964be5a26dba1b7ba6311ac12b6a66234dc958958997a0576cdc740632dc19852a5b84d8a75101936bea1fe122dc22539d6e11f4539c731853ba2e"; };
"@sentry/node@npm:7.69.0" = { filename = "@sentry-node-npm-7.69.0-5b1090f2f6-97210ced96.zip"; sha512 = "97210ced968a3d968fd9d93e67e1f3c9613b99b223f87fad944e6e94db40ebc10a7c339c848e0529c5ded69f94f1f689b4a6df1da4df1aad6663a752ac591d03"; };
"@types/qs@npm:6.9.7" = { filename = "@types-qs-npm-6.9.7-4a3e6ca0d0-7fd6f9c250.zip"; sha512 = "7fd6f9c25053e9b5bb6bc9f9f76c1d89e6c04f7707a7ba0e44cc01f17ef5284adb82f230f542c2d5557d69407c9a40f0f3515e8319afd14e1e16b5543ac6cdba"; };
"fast-deep-equal@npm:3.1.3" = { filename = "fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip"; sha512 = "e21a9d8d84f53493b6aa15efc9cfd53dd5b714a1f23f67fb5dc8f574af80df889b3bce25dc081887c6d25457cce704e636395333abad896ccdec03abaf1f3f9d"; };
Expand Down
24 changes: 13 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ __metadata:
languageName: node
linkType: hard

"@blockfrost/openapi@npm:0.1.61":
version: 0.1.61
resolution: "@blockfrost/openapi@npm:0.1.61"
"@blockfrost/openapi@npm:0.1.62":
version: 0.1.62
resolution: "@blockfrost/openapi@npm:0.1.62"
dependencies:
ajv: ^8.12.0
cbor: ^9.0.1
yaml: ^2.3.4
checksum: f845be0e054a5d1c99fc98603d919bfab30205423d56a4cf3c24fdad114eb0d4f3345c877174ea477f9f6fa1eeb8381333cbb4f6e12ca5a0d51cb186f38a2a46
checksum: d47476ec5bb9655c5a717e5d828ebfce686d9eeda6e46cff349b8dea4e626cc806e82e9efcb62993de02affcb0aae58417bf57d55fd573398c0af78f2c37da70
languageName: node
linkType: hard

Expand Down Expand Up @@ -2224,7 +2224,7 @@ __metadata:
"@blockfrost/blockfrost-js": 5.4.0
"@blockfrost/blockfrost-tests": 1.11.0
"@blockfrost/blockfrost-utils": 2.8.0
"@blockfrost/openapi": 0.1.61
"@blockfrost/openapi": 0.1.62
"@emurgo/cardano-serialization-lib-nodejs": 11.5.0
"@fastify/cors": ^8.3.0
"@fastify/postgres": ^5.2.0
Expand Down Expand Up @@ -2459,11 +2459,11 @@ __metadata:
linkType: hard

"cbor@npm:^9.0.1":
version: 9.0.1
resolution: "cbor@npm:9.0.1"
version: 9.0.2
resolution: "cbor@npm:9.0.2"
dependencies:
nofilter: ^3.1.0
checksum: 42333ac3d42cc3f6fcc7a529e68417a2dd8099eda43ca4be1304cdc5bc7494efe058e2db8a3d3b46ae60d69c7331ea813c22dbd019c4ac592d23e599d72bbcc9
checksum: 925edae7bf964be5a26dba1b7ba6311ac12b6a66234dc958958997a0576cdc740632dc19852a5b84d8a75101936bea1fe122dc22539d6e11f4539c731853ba2e
languageName: node
linkType: hard

Expand Down Expand Up @@ -9597,9 +9597,11 @@ resolve@^1.10.0:
linkType: hard

"yaml@npm:^2.3.4":
version: 2.3.4
resolution: "yaml@npm:2.3.4"
checksum: e6d1dae1c6383bcc8ba11796eef3b8c02d5082911c6723efeeb5ba50fc8e881df18d645e64de68e421b577296000bea9c75d6d9097c2f6699da3ae0406c030d8
version: 2.4.0
resolution: "yaml@npm:2.4.0"
bin:
yaml: bin.mjs
checksum: 3c25ebae34ee702af772ebbd1855a980b1487cd21d6220d952592edb4f7d89322aafd14753d99924ba7076eb4c5b3d809c64bb532402b01af280f7af674277f1
languageName: node
linkType: hard

Expand Down
Loading