Commit bd65fcf
feat!: refactor from express to fastify (#2045)
* feat: route splitting between express and fastify
* feat: refactor `/extended/v1/tx/*` endpoints to fastify
* feat: refactor `/extended/v1/stx_supply/*` endpoints to fastify
* feat: refactor `/extended/v1/info/*` endpoints to fastify
* feat: refactor `/extended/v1/tokens/*` endpoints to fastify
* feat: refactor `/extended/v1/tokens/*` endpoints to fastify
* feat: refactor `/extended/v1/contract/*` endpoints to fastify
* feat: refactor `/extended/v1/fee_rate/*` endpoints to fastify
* feat: refactor `/extended/v1/microblock/*` endpoints to fastify
* feat: refactor `/extended/v1/block/*` endpoints to fastify
* feat: refactor `/extended/v1/burnchain/*` endpoints to fastify
* feat: refactor `/extended/v1/address/*` endpoints to fastify
* feat: refactor `/extended/v1/search/*` endpoints to fastify
* feat: refactor `/extended/v1/pox*` endpoints to fastify
* feat: refactor `/extended/v1/faucets/*` endpoints to fastify
* feat: refactor `/extended/v1/debug/*` endpoints to fastify
* feat: refactor `/extended/v2/blocks/*` and `/extended/v2/burn-blocks/*` endpoints to fastify
* feat: refactor `/extended/v2/smart-contracts/*` endpoints to fastify
* feat: refactor `/extended/v2/mempool/*` endpoints to fastify
* feat: refactor `/extended/v2/pox/*` endpoints to fastify
* feat: refactor `/extended/v2/addresses/*` endpoints to fastify
* feat: refactor `/v1/names/*` endpoints to fastify
* feat: refactor `/v1/namespaces/*` endpoints to fastify
* feat: refactor `/v1/addresses/*` endpoints to fastify
* feat: refactor `/v2/prices/*` endpoints to fastify
* feat: refactor core-node RPC proxy (/v2/*) to fastify
* chore: remove dead code
* feat: openAPI spec generation from fastify routes
* chore: remove references to legacy generated types
* docs: missing openapi tag on burn-blocks route
* docs: update docs and client generation scripts
* fix: several query params should be optional
* fix: only use a GET route for extended status
* chore: simpify typing for TransactionSchema and MempoolTransactionSchema
* feat: refactor client library
* chore: remove dependencies on old generated types
* chore: isolate rosetta json schemas and delete the rest
* chore: cleanup prometheus metrics
* fix: misc tests
* test: misc rosetta fixes
* fix: batch insert length assertion (#2042)
* fix: batch insert length assertion
* build: upgrade docker-compose
* build: use docker compose
* test: misc bns test fixes
* test: misc pox fixes
* ci: misc fixes
* chore: fix unused exports lint
* chore: simplify docs and client package.json scripts
* feat: refactor event-server from express to fastify
* chore: expose more helper types in the client lib
* ci: fix client npm lib building
* fix: openapi and client support for comma-separated query params
* chore: expose more helper types to client lib
* ci: fix lint and tests
* fix: ensure height-or-hash params are parsed correctly and have correct openapi and client types
* docs: client library migration guide
* fix: tx event pagination limit
* docs: note RPC client library change
* fix: tx event-limit default should be 100
* fix: missing event limit max overrides on a few endpoints
* chore: use PrincipalSchema in multiple areas
* chore: use UntilBlockSchema in multiple areas
* fix: perform status endpoint sql inside transactions
* chore: do not commit openapi schema files
* chore: fix tests
---------
Co-authored-by: Rafael Cárdenas <rafael@rafaelcr.com>1 parent f401a0f commit bd65fcf
File tree
706 files changed
+49876
-72060
lines changed- .github/workflows
- .vscode
- client
- src
- generated
- .openapi-generator
- apis
- models
- socket-io
- ws
- test
- docs
- api
- address
- blocks
- bns
- errors
- manage-names
- name-querying
- namespace-operations
- subdomains
- burnchain
- contract
- core-node
- errors
- faucet
- info
- mempool
- microblocks
- search
- smart-contracts
- stacking
- tokens
- transaction
- entities
- address
- balance
- blocks
- burnchain
- contracts
- info
- mempool-transactions
- microblocks
- nft-events
- post-conditions
- smart-contracts
- stacking
- tokens
- transaction-events
- asset-types
- transactions
- transfers
- ws-rpc
- scripts
- socket-io
- src
- @types/fastify
- api
- controllers
- routes
- bns
- rosetta
- v2
- ws
- channels
- schemas
- entities
- responses
- serializers
- core-rpc
- datastore
- event-replay/parquet-based
- event-stream
- rosetta
- json-schemas
- test-utils
- tests-2.5
- tests-bns
- tests-rosetta-construction
- tests-rosetta
- tests-rpc
- tests-subnets
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
706 files changed
+49876
-72060
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 55 | | |
106 | 56 | | |
107 | 57 | | |
| |||
133 | 83 | | |
134 | 84 | | |
135 | 85 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 86 | | |
141 | 87 | | |
142 | 88 | | |
| |||
415 | 361 | | |
416 | 362 | | |
417 | 363 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | 364 | | |
481 | 365 | | |
482 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 6 | | |
15 | 7 | | |
16 | 8 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments