Matthew Little
29165387f1
chore: fix missing contract-call tx data in tx list endpoint response ( #887 )
2021-12-09 18:22:20 +01:00
Zitao Xiong
8ddec2c458
fix: remove unnecessary socket-io logEvent when init
2021-12-09 09:54:46 -06:00
M Hassan Tariq
c64956aaa2
refactor: remove extra query for parsing contract-call txs #579
2021-12-09 14:37:53 +01:00
Rafael Cárdenas
f34c7d518d
fix: set explicit context for github actions docker builds
2021-12-08 10:17:18 -06:00
Matthew Little
581bef4b2a
feat: chaintip-based cache-control, caching with zero stale data ( #834 )
...
http chaintip cache-control implemented for the following routes:
* /extended/v1/block
* /extended/v1/block/:hash
* /extended/v1/block/by_height/:height
* /extended/v1/block/by_burn_block_height/:burnBlockHeight
* /extended/v1/block/by_burn_block_hash/:burnBlockHash
* /extended/v1/tx
2021-12-07 20:13:40 +01:00
M Hassan Tariq
f993e0d2ef
feat: include entity metadata in search endpoint responses #651
2021-12-07 17:03:16 +01:00
Matthew Little
001e9a9077
Merger master into develop
2021-12-07 16:49:50 +01:00
M Hassan Tariq
fdbc548e28
chore: lint and remove unused exports #806
2021-12-07 11:43:11 +01:00
Rafael Cárdenas
352a054b71
feat: move build-publish github actions to docker/build-push-action@v2
...
* feat: first upgrade attempt
* fix: user and pass
* feat: try hirosystems image
* feat: install cmake, push standalone
* fix: use correct standalone tags
* fix: try re-adding sha and ref tags
* chore: sort dependencies
* chore: version fixes
* fix: only run for master,develop branches
2021-12-06 10:02:24 -06:00
Asim Mehmood
f18068c300
feat: return all the contracts implement a given trait
...
* feat: implement an api to get all contracts which implement a given trait
* test: add test cases for contract/trait endpoint
* docs: added docs for contract/trait endpoint
* fix: add return statment after response
* perf: add index for jsonb abi column
* refactor: use createIndex method
* fix: use get request instead of post for contracts trait
* docs: update docs for trait/contract api
* fix: fixed rebase issue
* test: add test for large query data
* refactor: change path of contract/by_trait api
2021-12-05 22:43:04 -06:00
M Hassan Tariq
f9b4e72517
fix: error reading contract abi #850
2021-12-02 12:24:39 +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
Rafael Cárdenas
14f3d08c6f
chore: add a reference to the client readme, expand docs
2021-12-01 11:59:30 -06:00
Asim Mehmood
9f206a3d74
feat: add at_block query param for /address endpoints
...
* feat: added block limit to all the address endpoints
* refactor: fixed typo and types issue
* docs: update docs for at_block params
* refactor: change at_block param to until block
* refactor: refactor openapi docs
* style: fixed style issue
* fix: fixed rebase issue
* fix: add where clause for address tx
* test: add unit test for atBlock
* chore: bump for codecov.io runner fix
Co-authored-by: Matthew Little <zone117x@gmail.com >
2021-11-30 10:18:51 -06:00
Rafael Cárdenas
ab9b3de70a
feat: add prometheus metrics for websockets
...
* feat: add prometheus metrics for websockets
* chore: add comments
* feat: add histogram for subscription duration
* chore: install histogram to socket.io
* chore: install histogram to ws
* feat: add counter for connections by remote address
* chore: consider x-forwarded-for for ip addresses
* chore: comment style updates
* feat: add custom bucket sizes to histogram
2021-11-24 20:37:28 -06:00
M Hassan Tariq
172e6a2123
fix: removed empty events array from response #668
2021-11-24 10:49:08 +01:00
Jason Schrader
04f3c68a9a
chore: update links from blockstack to hirosystems
2021-11-24 10:42:28 +01:00
Rafael Cárdenas
67c453cb6c
feat: add latest smart contract txs materialized view
...
* feat: add contract_txs materialized view
* chore: refresh view on update
* chore: fix unit tests
* feat: optimize view to include last 50 txs
* feat: refresh on microblock updates as well
* chore: remove unused var
* chore: select only required columns
* fix: race condition on refresh and pg notify
* chore: return to shorthand or-equal notation
* fix: await for pg notification emission
* chore: make helper for refreshing views
* fix: sql syntax error
* chore: fix style for view selection
2021-11-23 16:41:01 -06:00
Rafael Cárdenas
e7d8efa9f3
feat: add heartbeat to websockets
...
* feat: add heartbeat to websockets
* chore: cancel interval on ws server close
* fix: also stop heartbeat on client disconnect
2021-11-23 08:41:26 -06:00
Rafael Cárdenas
15600b0304
chore: expand client README to include socket.io and message examples
...
* chore: update block and microblock schema examples
* chore: add update examples to client README
* chore: expand clarity value objects
* fix: typos
2021-11-19 08:38:06 -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
semantic-release-bot
01cd4a1ad3
chore(release): 0.71.2 [skip ci]
...
## [0.71.2](https://github.com/blockstack/stacks-blockchain-api/compare/v0.71.1...v0.71.2 ) (2021-11-16)
### Bug Fixes
* tx broadcast logging error [#852 ](https://github.com/blockstack/stacks-blockchain-api/issues/852 ) ([b0c43d9 ](b0c43d9395 ))
v0.71.2
2021-11-16 15:09:34 +00:00
Matthew Little
b0c43d9395
fix: tx broadcast logging error #852
2021-11-16 16:00:28 +01:00
Matthew Little
285632a983
feat: stx addr encoding LRU cache
2021-11-16 12:39:25 +01:00
semantic-release-bot
0a485a3db3
chore(release): 0.71.1 [skip ci]
...
## [0.71.1](https://github.com/blockstack/stacks-blockchain-api/compare/v0.71.0...v0.71.1 ) (2021-11-15)
### Bug Fixes
* build/publish Dockerfile python installation issues ([7bc217a ](7bc217a40f ))
* change to python3 ([676fd05 ](676fd05612 ))
* transaction broadcast log ([7fef7a8 ](7fef7a8123 ))
v0.71.1
2021-11-15 15:33:48 +00:00
Rafael Cárdenas
282ee1f8aa
Merge pull request #847 from hirosystems/fix/transaction-logs
...
fix: transaction broadcast logs and Docker publish
2021-11-15 09:25:47 -06:00
Rafael Cárdenas
676fd05612
fix: change to python3
2021-11-15 09:05:10 -06:00
Rafael Cárdenas
7bc217a40f
fix: build/publish Dockerfile python installation issues
...
* fix: install python2 in follower.Dockerfile
* fix: select python2 in Dockerfile
2021-11-15 08:53:18 -06:00
Rafael Cárdenas
7fef7a8123
fix: transaction broadcast log
2021-11-15 08:53:18 -06:00
Rafael Cárdenas
aaafb5ae2f
feat: add nft_custody pg materialized view to speed up nft event lookup
...
* feat: add nft_custody materialized view
* fix: nft events unit test
* fix: perform full query if user wants unanchored results
* feat: only refresh materialized views when not in event replay
2021-11-12 08:40:58 -06:00
Rafael Cárdenas
7a1138452a
fix: build/publish Dockerfile python installation issues
...
* fix: install python2 in follower.Dockerfile
* fix: select python2 in Dockerfile
2021-11-10 10:04:59 -06:00
Rafael Cárdenas
67553ff45b
Add utils module with script to display top address balances
...
* feat: add utils module, get first balances
* fix: add dummy node balance for now
* fix: consider block height
* feat: allow querying node addr balance by block height
* feat: query nodes for balances via RPC
* feat: calculate absolute balance delta
* fix: consider locked node balance
* fix: ignore utils dir on main lint config
* chore: print usage
2021-11-09 15:27:05 -06:00
Rafael Cárdenas
e790109030
chore: standardize updates between websockets and socket.io
...
* chore: function structures
* chore: return accepted and streamed microblocks on socket.io block updates
* chore: move ws-rpc and socket-io to ws/ directory
* feat: add individual tx updates to socket.io
* fix: use updated microblock txs query function
* chore: add new schemas for block, microblock, mempool rpcs
* feat: handle new block, microblock, mempool websocket updates
* fix: socket.io type imports
* chore: add test for websocket mempool update
* chore: add test for block updates
* chore: add microblock update test
* chore: remove additional properties from rpc schemas
* chore: add client support for new websocket events
2021-11-09 12:25:38 -06:00
Rafael Cárdenas
e1c6882975
fix: transaction broadcast log
2021-11-09 10:07:55 -06:00
Andres Galante
b9a8c4a600
Merge pull request #833 from hirosystems/chore/pull-request-reviewers
...
chore: change @kyranjamie to @rafaelcr on pr template
2021-11-03 14:16:05 -03:00
Rafael Cárdenas
ece81b5b55
chore: change @kyranjamie to @rafaelcr on pr template
2021-11-03 09:19:59 -06:00
Rafael Cárdenas
5ce474f1ef
chore: rename github references from blockstack/ to hirosystems/
2021-11-03 08:42:10 -06:00
M Hassan Tariq
2053d40afd
chore: fix flaky BNS tests #723
2021-11-02 13:08:32 +01:00
M Hassan Tariq
7edc7b54a6
feat: endpoint for list of transactions #647
2021-11-02 12:32:09 +01:00
semantic-release-bot
043f04538c
chore(release): 0.71.0 [skip ci]
...
# [0.71.0](https://github.com/blockstack/stacks-blockchain-api/compare/v0.70.1...v0.71.0 ) (2021-11-01)
### Bug Fixes
* export api version variable for resolution ([5134183 ](5134183a33 ))
### Features
* production-capable CPU profiling [#641 ](https://github.com/blockstack/stacks-blockchain-api/issues/641 ) ([edb8d12 ](edb8d121d1 ))
v0.71.0
2021-11-01 23:30:14 +00:00
Matthew Little
93d878c1e5
Merge pull request #827 from blockstack/develop
...
Develop to master
2021-11-02 00:22:25 +01:00
Matthew Little
6e9807e09e
chore: update c32check and cross-sha256 (including transitive) dependencies
2021-11-01 23:49:59 +01:00
Matthew Little
edb8d121d1
feat: production-capable CPU profiling #641
2021-10-29 22:51:54 +02:00
Rafael Cárdenas
60b5df7b8a
chore: add read-only to readme
2021-10-27 18:53:46 -05:00
Rafael Cárdenas
5134183a33
fix: export api version variable for resolution
2021-10-27 10:29:03 -05:00
semantic-release-bot
79032a2acd
chore(release): 0.70.1 [skip ci]
...
## [0.70.1](https://github.com/blockstack/stacks-blockchain-api/compare/v0.70.0...v0.70.1 ) (2021-10-22)
### Bug Fixes
* api versioning ([4ade5ee ](4ade5ee39b ))
* microblock related re-org bug causing txs to be incorrectly orphaned [#804 ](https://github.com/blockstack/stacks-blockchain-api/issues/804 ) [#818 ](https://github.com/blockstack/stacks-blockchain-api/issues/818 ) ([bae619d ](bae619d653 ))
v0.70.1
2021-10-22 20:09:42 +00:00
Matthew Little
14657376fe
Merge pull request #822 from blockstack/develop
...
Merge develop into master
2021-10-22 22:03:23 +02:00
Matthew Little
bae619d653
fix: microblock related re-org bug causing txs to be incorrectly orphaned #804 #818
2021-10-22 21:38:47 +02:00
Rafael Cárdenas
4ade5ee39b
fix: api versioning
2021-10-20 12:42:46 -05:00
semantic-release-bot
d810183b93
chore(release): 0.70.0 [skip ci]
...
# [0.70.0](https://github.com/blockstack/stacks-blockchain-api/compare/v0.69.0...v0.70.0 ) (2021-10-20)
### Bug Fixes
* **docs:** ensure naming convention is followed ([ff7f9d3 ](ff7f9d3472 ))
* rosetta account/balance speed ([c49a4d4 ](c49a4d4a1d ))
* socket.io incorrect microblock and mempool updates ([95d4108 ](95d4108d0b ))
### Features
* add broadcast/confirmed tx logs ([26e50fd ](26e50fd1b0 ))
* set api version in openapi schema automatically ([1b9126e ](1b9126e73d ))
v0.70.0
2021-10-20 13:27:24 +00:00