Commit Graph

1821 Commits

Author SHA1 Message Date
Chris Guimaraes
07073139cc fix: on attachments_new events processing 2023-08-22 11:13:01 +01:00
Chris Guimaraes
82eadcbe2f fix: lint 2023-08-22 11:13:01 +01:00
Chris Guimaraes
62a12bdef9 fix: changed processing order 2023-08-22 11:13:01 +01:00
Chris Guimaraes
c77ac57a96 fix: better args handlling 2023-08-22 11:13:01 +01:00
Chris Guimaraes
8c67ae532b fix: lint 2023-08-22 11:13:01 +01:00
Chris Guimaraes
1bd8f17f07 fix: better path handling for workers 2023-08-22 11:13:01 +01:00
Chris Guimaraes
3ede07f134 feat: event-replay remainder events handling 2023-08-22 11:13:01 +01:00
Chris Guimaraes
7a6f241923 feat: processing raw events in parallel 2023-08-22 11:13:01 +01:00
Chris Guimaraes
bb70ca99c0 feat: better handling of raw events insertion 2023-08-22 11:13:01 +01:00
Chris Guimaraes
81f43cf7c3 feat: event-replay raw events handling 2023-08-22 11:13:01 +01:00
Chris Guimaraes
d02a7e8ad8 feat: parallel processing using node cluster 2023-08-22 11:13:01 +01:00
Chris Guimaraes
6b1605b74d fix: upgrade semver package to fix ReDoS vulnerability 2023-08-22 11:13:01 +01:00
Chris Guimaraes
fc379ebab9 fix: re-enable indexes when finishing the replay 2023-08-22 11:13:00 +01:00
Chris Guimaraes
62a48ae37d fix: remove dangling promise 2023-08-22 11:13:00 +01:00
Chris Guimaraes
f33ecee858 feat: event-replay supporting parallel insertions 2023-08-22 11:13:00 +01:00
Chris Guimaraes
4211328438 feat: add dataset store 2023-08-22 11:13:00 +01:00
Chris Guimaraes
1708b42c02 feat: event-replay new_block events handling 2023-08-22 11:13:00 +01:00
Chris Guimaraes
6c0f4481c0 feat: event-replay new_burn_block events handling 2023-08-22 11:13:00 +01:00
Chris Guimaraes
2d08e18760 working new_burn_block 2023-08-22 11:13:00 +01:00
Rafael Cárdenas
76df6a0f9a docs: build and deploy to Vercel (#1707) 2023-08-21 12:27:00 -06:00
Scofield Idehen
79576f8854 docs: Update README.md (#1702)
Grammar and errors in README file.
2023-08-15 12:39:18 -06:00
Matthew Little
163b76a31a fix: allow contract-principals in /extended/v1/address/:principal/mempool endpoint #1685 (#1704) 2023-08-07 18:57:51 +02:00
Lavanya Kasturi
d9efad9893 docs: Expanded RPM as Rate per minute (#1698) 2023-07-28 10:25:41 +02:00
Scott McClellan
271cd43fb1 chore: improve README.md standardization (#1692) 2023-07-13 12:46:45 -05:00
Matthew Little
86304beb34 fix: add indexes to pox3_events table used for stacker lookup endpoints 2023-07-06 17:34:48 +02:00
Matthew Little
58427849b7 chore: ensure last added migration file has newest timestamp 2023-07-06 15:41:32 +02:00
Matthew Little
04602b4640 Merge branch 'master' into develop
# Conflicts:
#	.env
#	.github/workflows/ci.yml
#	.vscode/launch.json
#	package.json
#	src/api/init.ts
#	src/datastore/common.ts
#	src/datastore/pg-store.ts
#	src/event-stream/event-server.ts
#	src/event-stream/reader.ts
#	src/index.ts
#	src/test-utils/test-helpers.ts
#	src/tests-bns-e2e/bns-integration-tests.ts
#	src/tests-bns/v1-import-tests.ts
#	src/tests-subnets/env-setup.ts
#	src/tests-subnets/global-setup.ts
#	src/tests-subnets/global-teardown.ts
#	src/tests-tokens-metadata/tokens-metadata-tests.ts
2023-07-06 15:30:30 +02:00
Matthew Little
6977141233 Merge pull request #1682 from hirosystems/chore/merge-master-develop
Merge branch 'master' into develop
2023-07-06 15:20:53 +02:00
Matthew Little
935c4363fe chore: fix subnets tests 2023-07-06 15:00:13 +02:00
Matthew Little
872f7e6144 fix: use pox3 for /extended/beta/stacking/... endpoint 2023-07-06 14:12:57 +02:00
Matthew Little
3dec5d1b62 Merge branch 'master' into develop
# Conflicts:
#	.env
#	.github/workflows/ci.yml
#	.vscode/launch.json
#	package.json
#	src/api/init.ts
#	src/datastore/common.ts
#	src/datastore/pg-store.ts
#	src/event-stream/event-server.ts
#	src/event-stream/reader.ts
#	src/index.ts
#	src/test-utils/test-helpers.ts
#	src/tests-2.4/pox-3-delegate-aggregation.ts
#	src/tests-bns-e2e/bns-integration-tests.ts
#	src/tests-bns/v1-import-tests.ts
#	src/tests-tokens-metadata/tokens-metadata-tests.ts
2023-07-06 13:51:39 +02:00
Lavanya Kasturi
e39f7e3845 docs: Update title for overview (#1672) 2023-06-16 08:56:48 -06:00
Matthew Little
1c6e35a2dc feat: support custom chain_id (e.g. for subnets) (#1669)
* feat: support custom chain_id (e.g. for subnets)

* feat: add chain_id config sanity check during init

* ci: lint fix
2023-06-10 14:08:23 +02:00
semantic-release-bot
9b6e1d0e09 chore(release): 7.2.2 [skip ci]
## [7.2.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.2.1...v7.2.2) (2023-06-07)

### Bug Fixes

* option to skip RPC request during init which may avoid startup deadlocks [#1584](https://github.com/hirosystems/stacks-blockchain-api/issues/1584) ([#1640](https://github.com/hirosystems/stacks-blockchain-api/issues/1640)) ([e0e61d3](e0e61d3839))
2023-06-07 16:11:22 +00:00
Matthew Little
e0e61d3839 fix: option to skip RPC request during init which may avoid startup deadlocks #1584 (#1640) 2023-06-07 17:54:10 +02:00
semantic-release-bot
214829157c chore(release): 7.2.1 [skip ci]
## [7.2.1](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.2.0...v7.2.1) (2023-05-24)

### Bug Fixes

* bump socket.io-parser from 4.2.1 to 4.2.3 ([#1663](https://github.com/hirosystems/stacks-blockchain-api/issues/1663)) ([c7eb1c2](c7eb1c2983))
2023-05-24 10:28:59 +00:00
dependabot[bot]
c7eb1c2983 fix: bump socket.io-parser from 4.2.1 to 4.2.3 (#1663)
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.2.1 to 4.2.3.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.2.1...4.2.3)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 04:14:09 -06:00
semantic-release-bot
362442a7f3 chore(release): 7.2.0 [skip ci]
## [7.2.0](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.1.10...v7.2.0) (2023-05-23)

### Features

* Stacks 2.4 / `pox-3` ([#1650](https://github.com/hirosystems/stacks-blockchain-api/issues/1650)) ([30922c8](30922c8a73))
2023-05-23 15:01:05 +00:00
Matthew Little
30922c8a73 feat: Stacks 2.4 / pox-3 (#1650)
* chore: bump stacks-node test images to 2.4

* test: switch pox-2 tests to pox-3

* fix: add pox-3 events table migration

* fix: add pox3_events array

* fix: switching routes/methods to pox3

* chore: update stacks.js

* chore: update to latest krypton

* chore: fix stacks-node docker setup

* test: use epoch2.4 in RPC tests

* test: fix more pox-3 behaviors

* fix: include pox-3 events in reader filter

* test: fix rosetta test with tricky cycle timing

* tests: fix tokens tests

* tests: fix tokens tests

* test: mostly fixed rosetta tests

* test: fix bns tests

* test: trace wait-upon txids

* ci: lint fix

* test: more Rosetta fixes "pox" to "pox-3"

* test: more logging for failure to find tx

* test: update rosetta fee values

* test: update rosetta fee values, 2

* tests: couple more Rosetta test fixes

* test: pull rosetta-construction tests into its own

* fix: pox-3 support in Rosetta stacking ops parsing

* test: fix rosetta delegate_stx integration test

* tests: fix token metadata tests

* ci: attempt to improve test flake

* ci: lint fix

* ci: attempt fix rosettal-cli-data tests

* ci: disable busted rosetta-cli-data tests

* test: remove duplicate file

* test: another attempt to fix bns-e2e tests

* test: attempt at fixing token-metadata flake

* revert: accidental discord notification removal

* ci: repair rosetta-cli-data test

* ci: repair rosetta-cli-data test

* chore: fix `test:integration:rosetta-cli:construction` command

* test: verbose logging for `rosetta-cli-data`

* test: attempt fix `rosetta-cli-data`

* test: speed up rosetta-cli-data test, possible fix for CI

* chore: replace stacks-2.1 referenaces with stacks-krypton

* ci: run `rosetta-cli:construction` tests against Stacks 2.4

* ci: improve `rosetta-construction` test flake

* ci: improve `rosetta-data` test flake

* ci: enable prelease off of `feat/stacks-2.4` branch

* chore: reduce token-metadata test flake

* ci: fix prerelase config

* test: add pox-3 delegation revoke test

* test: remove commented test

* test: unskip test

* ci: use `stacks-2.4` prerelease branch

* chore(release): 7.1.11-stacks-2.4.1 [skip ci]

## [7.1.11-stacks-2.4.1](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.1.10...v7.1.11-stacks-2.4.1) (2023-05-09)

### Bug Fixes

* add pox-3 events table migration ([4c78556](4c785565a1))
* add pox3_events array ([f9f4f42](f9f4f42c35))
* include pox-3 events in reader filter ([dc36080](dc360802ab))
* pox-3 support in Rosetta stacking ops parsing ([2397186](2397186262))
* switching routes/methods to pox3 ([b0c6bef](b0c6beffb3))

### Reverts

* accidental discord notification removal ([a150258](a150258bdd))

---------

Co-authored-by: janniks <janniks@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
2023-05-23 16:43:34 +02:00
wileyj
b050b1bf2a chore: update rosetta dockerfile (#1651)
* Rewrite of rosetta dockerfile

This close to a full rewrite of the built image.
- runit is removed
- `/entrypoint.sh` now starts all processes via single script
- all logs are piped to stdout
- remove printf in favor of heredoc
- add a script to seed the chainstate when env var `SEED_CHAINSTATE=true`
- adds a postgres init script in case of genesis sync and DB != `postgres`

* chore - address PR comments

updating docs where stx-rosetta is used
add some docs around `SEED_CHAINSTATE`
add -W to pg_ctl and removing sleep
2023-05-19 11:14:02 +02:00
Chris Guimarães
2015b9c880 fix: enable requests auto logging (#1656) 2023-05-12 12:26:20 +01:00
semantic-release-bot
9dc72488bf chore(release): 7.1.10 [skip ci]
## [7.1.10](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.1.9...v7.1.10) (2023-05-04)

### Bug Fixes

* bump engine.io and socket.io ([#1643](https://github.com/hirosystems/stacks-blockchain-api/issues/1643)) ([04b92ce](04b92ce1cc))
2023-05-04 10:55:43 +00:00
dependabot[bot]
04b92ce1cc fix: bump engine.io and socket.io (#1643)
Bumps [engine.io](https://github.com/socketio/engine.io) to 6.4.2 and updates ancestor dependency [socket.io](https://github.com/socketio/socket.io). These dependencies need to be updated together.


Updates `engine.io` from 6.2.1 to 6.4.2
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/6.2.1...6.4.2)

Updates `socket.io` from 4.5.4 to 4.6.1
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.5.4...4.6.1)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
- dependency-name: socket.io
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 09:56:30 +02:00
Chris Guimarães
14bb9f2c6d Logging migration to Pino library (#1630)
* feat: add new logger based on Pino library

* feat: changes on api/init.ts to use Pino logging library

* feat: changes on helpers.ts to use Pino logging library

* feat: changes on event-stream/event-server.ts to use Pino logging library

* feat: changes on API tests to use Pino logging library

* feat: changes on API codebase to use Pino logging library

* fix: lint

* feat: changes on logger

* feat: remove logError function

* feat: change logger.verbose to logger.debug

* fix: lint

* fix: first argument on logger should be an object

* feat: add logging information to ErrorRequestHandler

* fix: remove logger from ErrorRequestHandler

* fix: remove try-catch statement

Errors shoud be handled by the ErrorRequestHandler middleware

* feat: disable automatic 'request completed' logging
2023-05-03 17:25:46 +01:00
semantic-release-bot
fe7fd50b16 chore(release): 7.1.9 [skip ci]
## [7.1.9](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.1.8...v7.1.9) (2023-05-01)

### Bug Fixes

* generate synthetic `stx_unlock` rosetta operations for all locked accounts after pox2 force unlock [#1639](https://github.com/hirosystems/stacks-blockchain-api/issues/1639) ([#1638](https://github.com/hirosystems/stacks-blockchain-api/issues/1638)) ([9b58bb6](9b58bb6b06))
2023-05-01 14:11:52 +00:00
Matthew Little
9b58bb6b06 fix: generate synthetic stx_unlock rosetta operations for all locked accounts after pox2 force unlock #1639 (#1638) 2023-05-01 16:04:12 +02:00
semantic-release-bot
18e99b147a chore(release): 7.1.8 [skip ci]
## [7.1.8](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.1.7...v7.1.8) (2023-04-28)

### Bug Fixes

* support Stacks 2.2 force pox-2 unlocks [#1634](https://github.com/hirosystems/stacks-blockchain-api/issues/1634) ([#1636](https://github.com/hirosystems/stacks-blockchain-api/issues/1636)) ([14706bd](14706bd64a))
2023-04-28 18:32:07 +00:00
Matthew Little
14706bd64a fix: support Stacks 2.2 force pox-2 unlocks #1634 (#1636) 2023-04-28 20:18:21 +02:00
Chris Guimarães
a6c8f16b6c add mempool nonces to address endpoint JSON response (#1633)
* fix: address endpoint returning mempool nonces

* fix: add mempool nonces to tests
2023-04-28 17:38:41 +01:00
Matthew Little
bfac932f09 feat: support for subnets (#1625)
* feat: beta release with subnets support

* chore(release): 7.1.0-beta.1 [skip ci]

## [7.1.0-beta.1](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.0.0...v7.1.0-beta.1) (2023-02-14)

### Features

* beta release with subnets support ([06164eb](06164eb1dd))
* support for subnets ([#1549](https://github.com/hirosystems/stacks-blockchain-api/issues/1549)) ([5d7056c](5d7056c1ba))

### Bug Fixes

* fixed the order of microblocks_streamed returned in reverse order in block endpoint ([#1528](https://github.com/hirosystems/stacks-blockchain-api/issues/1528)) ([764f64a](764f64a538))

* Merge master into beta

* chore: update l1 and l2 subnet contracts

* chore: update subnets docker compose to latest 2.1 image

* chore: enable subnet STX transfer tests

* chore: progress on fixing test for subnet to L1 FT withdrawal

* feat: support register asset event synthetic tx parsing (#1583)

* feat: support register asset event synthetic tx parsing

* test: integration tests for register-new-ft-contract and register-new-nft-contract synthetic txs

* feat: update 'register-asset-contract' event parsing

* chore: bump to latest subnet docker image (also include subnets.Dockerfile for local dev)

* chore(release): 7.1.0-beta.2 [skip ci]

## [7.1.0-beta.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.1.0-beta.1...v7.1.0-beta.2) (2023-03-16)

### Features

* support register asset event synthetic tx parsing ([#1583](https://github.com/hirosystems/stacks-blockchain-api/issues/1583)) ([57d58f2](57d58f2f8d))

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
2023-04-20 17:45:04 +02:00