172 Commits

Author SHA1 Message Date
Matthew Little
7ea3ae368f fix: npm audit fixes, dependency cleanup (#945) 2022-01-04 17:57:49 +01:00
CharlieC3
55bd5d44e5 ci: test installing client and docs deps 2021-12-22 13:22:15 -05:00
Matthew Little
0ddd18f248 chore: remove nodejs polyfill lib for abort-controller (#926) 2021-12-20 17:59:06 +01:00
Matthew Little
dc3588ec2d chore: upgrade to nodejs v16 #845 (#918) 2021-12-20 11:58:52 +01:00
Matthew Little
319e331954 refactor: remove @await/express usage #878 (#880) 2021-12-15 19:27:49 +01:00
Matthew Little
5697f6f477 chore: fix jest not quickly finishing tests (#888) 2021-12-09 22:01:16 +01:00
M Hassan Tariq
fdbc548e28 chore: lint and remove unused exports #806 2021-12-07 11:43:11 +01:00
Rafael Cárdenas
216b9ab715 feat: docker cleanup
* cleaning up docker

feat/cleanup needed it's own cleanup since it was so out of date. better to just start over with an up to date pull of develop

* Update paths for docker-compose files

* Updating paths and compose version

* switch network to testnet

* adjusting stacks-blockchain configs

* use correct context to build api image

* use the defaults from develop branch

* feat: update to latest stacks blockchain

* fix: rosetta output paths

* chore: update stacks api to v0.71.2

Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>

* fix: remove magic_byte from mainnet toml

Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>

* fix: update stacks node everywhere

Co-authored-by: wileyj <2847772+wileyj@users.noreply.github.com>
Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>
2021-12-01 17:03:21 -06:00
Asim Mehmood
f764054cb8 feat: rosetta data api and construction validation with rosetta-cli
* test: added test for rosetta cli check:construction and check:data

* ci: added github workflow to test  roseta-cli:data

* ci: add github action for rosetta-cli: construction

* refactor: refactor cli tests

* fix: use localhoust for github actions in rosetta config file

* fix: github actions

* fix: rebase issue

* refactor: update rosetta-cli env files path

* refactor: remove hard coded cli container and use rosetta-cli ouput

* perf: remove unnecessary wait of 20 seconds
2021-11-16 10:18:04 -06:00
Matthew Little
285632a983 feat: stx addr encoding LRU cache 2021-11-16 12:39:25 +01:00
Rafael Cárdenas
5ce474f1ef chore: rename github references from blockstack/ to hirosystems/ 2021-11-03 08:42:10 -06:00
Matthew Little
6e9807e09e chore: update c32check and cross-sha256 (including transitive) dependencies 2021-11-01 23:49:59 +01:00
Rafael Cárdenas
26e50fd1b0 feat: add broadcast/confirmed tx logs
* feat: add broadcast/confirmed tx logs

* chore: add comment and return type

* fix: setting /v2 proxy header on response object

* fix: use structured logging (json metadata) for the tx broadcast and tx confirm logs

* chore: update 'http-proxy-middleware' lib

* fix: http proxy lib types after upgrade

* fix: use URL pathname for checking `/v2/transactions`

Co-authored-by: Matthew Little <zone117x@gmail.com>
2021-10-15 11:14:34 -05:00
Asim Mehmood
9f721c1b18 chore: update stacks.js dependency #712 2021-10-12 12:40:59 +02:00
Rafael Cárdenas
1b9126e73d feat: set api version in openapi schema automatically
* feat: add real api version to schema

* fix: separate postman from spec resolution

* fix: add workflow_run condition

* fix: vercel broken build

* fix: vercel generate resolved
2021-10-06 08:37:03 -05:00
Rafael Cárdenas
d1adca4d50 feat: add read-only mode
* feat: add readonly vscode launch config and .env var

* feat: add pg-listen dependency

* feat: first successful messages

* chore: modify event emitter types to use only ids

* chore: apply changes to ws rpc

* chore: reduce size of address tx updates

* fix: build tests

* chore: move pg-listen logic to separate class

* fix: incorrect message forwarding

* chore: remove special treatment for test env

* fix: rosetta, bns, tokens tests

* fix: ws-rpc tests and serialization

* fix: block height on ws rpc test

* fix: remove manual notifier connection

* fix: remove circular dependency on PgNotifier

* fix: move away from Map and Set

* fix: close pg channels correcty before disconnecting

* fix: update socket-io with latest messages

* chore: reduce size of token metadata messages

* chore: remove logs on readonly task

* chore: restore old style on rosetta tests

* chore: remove tx_id array from block update message

* feat: don't send tx events on address updates

* fix: remove logs from devenv docker

* chore: remove unused interface

* fix: skip db migrations during read-only mode

* chore: compound debug for dual reader-writer mode

* chore: restore removed line

* chore: delete unused docker config

* chore: update ts string management

* chore: remove readonly npm script

* chore: don't use notifier on event replay

* chore: make notifications be non-blocking

* feat: ignore limit/offset when getting asset transfers for a single block

* chore: make limit and offset optional args too

* chore: fix websocket unit test

* fix: fetch block txs correctly

Co-authored-by: Matthew Little <zone117x@gmail.com>
2021-09-29 12:11:49 -05:00
Rafael Cárdenas
6c3944515f chore: update typescript to 4.4.2
* chore: update typescript to 4.4.2

* fix: update eslint parser to latest version, remove unnecessary type casts

* fix: add any type to errors in bns tests
2021-09-10 10:46:50 -05:00
Asim Mehmood
33f11bbcf3 feat: token metadata 2021-09-01 18:14:05 -05:00
Rafael Cárdenas
0538ae297f feat: return git info in /extended/v1/status
* feat: add build script to write git info to usable ts file

* fix: run git-info before tests

* fix: fetch all git history for running tests

* fix: try moving git-info run to workflow

* fix: add some debug info to setup

* fix: try using the module as a relative route

* chore: remove test commands now that tests pass

* chore: create status endpoint openapi schema and example

* feat: create a plain text file instead

* chore: undo github workflow changes since they are no longer necessary

* fix: make import paths relative
2021-08-27 14:24:26 -05:00
Asim Mehmood
f5190c53f4 feat(rosetta): support stacking, delegate stacking and revoke stacking event 2021-08-05 20:35:24 -05:00
Matthew Little
f7c5e28fc4 Merge branch 'master' into develop 2021-08-02 16:55:57 -06:00
Asim Mehmood
95cd1be128 fix: preprocess bug to remove network from the dummy transaction 2021-07-29 09:32:58 -05:00
Jason Schrader
d3f23d39b8 feat: new database connection options 2021-07-27 18:25:07 -05:00
dependabot[bot]
0da61dc5ac chore(deps): bump ws from 7.4.5 to 7.4.6
Bumps [ws](https://github.com/websockets/ws) from 7.4.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.5...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-16 08:46:08 -05:00
Matthew Little
2505648563 chore: fix log levels for 4xx and 5xx http responses 2021-07-15 13:07:39 -05:00
Matthew Little
89a6a5e3de chore: progress on fixing unit tests after opt-in unanchored changes 2021-07-15 13:07:39 -05:00
Matthew Little
912113ded8 feat: option to export all raw event observer requests to file via program args, progress on replaying requests through the observer interface 2021-07-15 13:07:39 -05:00
Matthew Little
51664e54fb chore(ci): single command to build client and openAPI docs 2021-07-15 13:07:39 -05:00
Matthew Little
176990a37a test: scaffolding for microblock tests 2021-07-15 13:07:39 -05:00
Matthew Little
029570b486 chore: repair rosetta and bns integration tests, only working with microblocks disabled 2021-07-15 13:07:39 -05:00
Matthew Little
f6a307a0ce feat: add anchored microblock hash array to API anchor block response 2021-07-15 13:07:39 -05:00
Lola Dam
ba2e4ed86c feat: [rosetta] delegated stacking 2021-05-19 00:51:01 +02:00
Matthew Little
20bb6f3e6f fix: subdomains not queried in /v1/addresses/* 2021-05-19 00:51:01 +02:00
Matthew Little
7bc1c97a59 chore: fix npm run dev issues 2021-05-19 00:51:01 +02:00
Matthew Little
715e2b36df feat: socket.io server and client implementation 2021-05-19 00:51:01 +02:00
Lola Dam
9718c3557e feat: [rosetta] delegated stacking 2021-05-18 23:48:31 +02:00
Matthew Little
ea233a6950 fix: subdomains not queried in /v1/addresses/* 2021-05-13 12:41:06 +02:00
Matthew Little
132b89b558 chore: fix npm run dev issues 2021-05-12 10:52:07 +02:00
Matthew Little
fd8f62ff69 feat: socket.io server and client implementation 2021-05-06 18:43:00 +02:00
Matthew Little
7f8886024a fix: use index_block_hash for unresolved subdomain attachment handling
* chore: update to stacks-blockchain 2.0.11
* chore: update to stacks-blockchain 2.0.11
* chore(ci): skip /v2/pox endpoint test, broken in mocknet mode
* chore(ci): skip rosetta stacking test, /v2/pox broken in mocknet mode
* test: added integration tests for name-update

Co-authored-by: Asim Mehmood <asim@tintash.com>
2021-04-22 16:08:52 +02:00
Matthew Little
d0f966c097 feat: include chainstate.txt and import token offering locked data by default (#556) 2021-04-21 14:03:35 +02:00
Matthew Little
598496d2cd Merge branch 'develop' into 'bns' 2021-03-26 19:02:21 +01:00
Matthew Little
b66a457343 chore: install source-map-support for more accurate error stack traces 2021-03-26 15:56:01 +01:00
Matthew Little
b08d5a59dd Merge branch 'master' into bns
# Conflicts:
#	src/datastore/common.ts
#	src/datastore/memory-store.ts
#	src/datastore/postgres-store.ts
2021-03-18 17:21:05 +01:00
Matthew Little
ed07e732dd feat: ability to specify cache-control headers for v2 proxied paths 2021-03-17 17:39:04 +01:00
Asim Mehmood
e325d0a351 refactor: refactor code, add support for mainnet 2021-03-10 20:37:18 +05:00
Asim Mehmood
3d8374bc55 fix: add devenv:stop in bns test 2021-03-10 20:18:59 +05:00
Matthew Little
966d14b68f fix: update zone-file lib to latest with typescript support 2021-03-10 12:54:06 +01:00
Matthew Little
43cc5082df Merge branch 'master' into bns
# Conflicts:
#	follower.Dockerfile
#	package-lock.json
#	src/datastore/common.ts
#	src/datastore/memory-store.ts
#	src/datastore/postgres-store.ts
#	src/event-stream/event-server.ts
#	stacks-blockchain/docker/Dockerfile
2021-03-10 11:01:39 +01:00
Asim Mehmood
adcf792102 test: integration tests for bns 2021-03-10 10:28:15 +01:00