268 Commits

Author SHA1 Message Date
Rafael Cárdenas
12242b8194 feat: add /extended/v1/tokens/nft/holdings endpoint
* chore: add tx_id and unanchored custody view

* chore: add deprecated msg to old nft_events endpoint

* feat: first version of endpoint

* feat: start returning tx metadata

* feat: filter by asset_identifier

* chore: add openapi docs

* chore: generate new api types

* chore: type api responses correctly

* chore: doc tweaks

* chore: provide param examples

* fix: unanchored view name

* fix: db-controller import path

* feat: support multiple asset identifiers

* chore: doc tweaks

* chore: add unit tests

* fix: execute complete search in one query

* chore: return old unused imports, otherwise PR gets big

* chore: remove debug code

* chore: provide tx metadata example

* chore: keep canonical custody in unanchored too

* feat: set chain tip cache headers

* fix: refresh views with proper logic

* fix: outdated cond

* fix: only consider nft_events from canonical txs

* chore: add default values to params in openapi
2022-01-07 08:31:57 -06:00
Matthew Little
d47e51de27 Merge branch 'master' into develop 2021-12-20 16:29:06 +01:00
Matthew Little
dc3588ec2d chore: upgrade to nodejs v16 #845 (#918) 2021-12-20 11:58:52 +01:00
saralab
fbe2337b88 Fix: Typos in Descriptions (#919)
fix: Typos in openAPI Descriptions
2021-12-15 15:52:53 -05:00
Patrick Gray
babe932703 docs: expanded docs for faucet API endpoints (#843) 2021-12-15 17:49:20 +01:00
Matthew Little
a8a87762f4 fix: revert #792, restore events array to tx responses (#907) 2021-12-15 13:14:13 +01:00
saralab
9448dd9f81 Feat/27 documentation conventions (#900) - Fixes https://github.com/hirosystems/docs/issues/27
* Updated API Descriptions

* Updated Tags from linting

* Updated postman link, descriptions

* Merged with Linting changes

* Fixed Tags for Stacking Rewards,  Fees and Names

* Updated API Descriptions

* Updated Tags from linting

* Updated postman link, descriptions

* Merged with Linting changes

* Fixed Tags for Stacking Rewards,  Fees and Names
2021-12-13 13:41:27 -05:00
Alexander Graebe
ca1220c02b feat: openapi lint config and grouping #744 #762 #745 2021-12-13 18:18:10 +01:00
Thomas Osmonson
4964fe7c5e fix: nft value encoding in /transactions_with_transfers #885 2021-12-10 21:04:22 +01:00
M Hassan Tariq
f993e0d2ef feat: include entity metadata in search endpoint responses #651 2021-12-07 17:03:16 +01: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
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
M Hassan Tariq
172e6a2123 fix: removed empty events array from response #668 2021-11-24 10:49:08 +01: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
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
5ce474f1ef chore: rename github references from blockstack/ to hirosystems/ 2021-11-03 08:42:10 -06:00
M Hassan Tariq
7edc7b54a6 feat: endpoint for list of transactions #647 2021-11-02 12:32:09 +01:00
Rafael Cárdenas
5134183a33 fix: export api version variable for resolution 2021-10-27 10:29:03 -05:00
kyranjamie
ff7f9d3472 fix(docs): ensure naming convention is followed 2021-10-20 08:21:49 +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
204d7979a9 feat: add microblock update support to socket-io
* feat: add microblockUpdate to socket topics

* chore: start adding tests

* chore: finish socket-io test
2021-10-05 09:15:50 -05:00
M Hassan Tariq
13c33e5475 fix: removed regtest references #784 2021-10-05 15:05:33 +02:00
Matthew Little
128517e803 Merge branch 'master' into develop 2021-09-28 13:03:28 +02:00
Asim Mehmood
8d2d86f972 feat: added execution cost to block response #735 2021-09-21 21:31:16 +02:00
dependabot[bot]
67c71b5363 chore(deps): bump prismjs from 1.23.0 to 1.25.0 in /docs (#773)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.25.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 10:51:26 +02:00
Rafael Cárdenas
5f07d7455f feat: automatically generate postman collection from the openapi spec
* feat: add speccy and openapi2postmanv2 as deps

* feat: organize postman folders like our docs

* chore: generate postman on gh-pages action

* chore: change link to download Postman collection from local file
2021-09-15 10:01:19 -05:00
Matthew Little
6f4f3e2a91 feat(rosetta): support memos in stx token transfer operations #752 2021-09-10 15:55:40 +02:00
Asim Mehmood
7c09ac53a9 feat: added a new endpoint fee_rate #729 2021-09-08 10:57:25 +02:00
Rafael Cárdenas
d9e1131f83 feat: add execution cost data to transactions
* feat: start capturing execution costs in transactions

* chore: update tx schema and fine tune unit tests

* chore: revert automatic vscode changes
2021-09-02 13:05:50 -05:00
Asim Mehmood
33f11bbcf3 feat: token metadata 2021-09-01 18:14:05 -05:00
Rafael Cárdenas
e37b5afbf5 fix: short summaries for BNS endpoints 2021-09-01 14:14:24 -05:00
MHassanTariq
7cc78fb573 fix: added types for search endpoint #645 2021-08-31 09:11:03 -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
Rafael Cárdenas
439d4f46cd feat: expose FT and NFT transfers in /extended/v1/address/[:principal]/transactions_with_transfers
* chore: add new ft fields to schema

* feat: start returning ft_transfers

* fix: broken tx info tests

* feat: return nft_transfers

* chore: rename interfaces and methods to reflect asset txs

* chore: undo unintended vscode changes

* chore: update json example for api docs

* chore: add more accurate FT and NFT identifiers on API examples

* chore: tweak schema descriptions for integer FT amounts
2021-08-24 09:51:56 -05:00
Rafael Cárdenas
fb6150a008 feat: return tx_id on every asset in /extended/v1/address/[:addr]/assets
* feat: return tx_id on every asset in /extended/v1/address/[:addr]/assets

* chore: reflect new tx_id in OpenAPI schemes

* chore: add tx_id to required fields in schema
2021-08-17 13:43:13 -05:00
Matthew Little
33425d8eb9 fix(rosetta): /block/transaction endpoint missing ops #704 2021-08-12 13:13:06 -05:00
Asim Mehmood
cf36b8fddf feat(rosetta): support passing btc address for rosetta stacking op #672 2021-08-02 16:12:07 -05:00
MHassanTariq
6dbbba6a41 feat: singular tx with STX transfer events endpoint #622 2021-08-02 11:12:14 -05:00
Friedger Müffke
d002dadefe feat: add get block by burn block height and by burn block hash (#675)
fix: formatting

fix: extract BlockIdentifier type

fix: test

fix: test

fix: test

fix: test

fix: query
2021-07-29 09:25:56 -05:00
kyranjamie
ab45a151f4 fix: bundling issues 2021-07-16 08:42:40 -05:00
Matthew Little
d5727173f5 chore: fix json schema doc example type 2021-07-15 13:07:39 -05:00
Matthew Little
f7d6834846 chore: update openapi/json-schema summaries and examples with latest microblock related changes 2021-07-15 13:07:39 -05:00
Matthew Little
977db77a71 feat: add parent_burn_block_{time,hash,height} to txs and microblock API responses 2021-07-15 13:07:39 -05:00
Matthew Little
267a5eb3ec feat: add explicit is_unanchored: boolean flag to tx responses 2021-07-15 13:07:39 -05:00
Matthew Little
3057ab3350 feat: progress on making unanchored microblock tx data opt-in in API requests and db sql queries 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
654669ca81 fix: preserve logical transaction ordering using INT32_MAX value rather than -1 for batched tx microblock_sequence 2021-07-15 13:07:39 -05:00
Matthew Little
137f517b51 chore: small docs schema path typo 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
21145cac1c chore: repair tests/api-tests with microblock related breakages 2021-07-15 13:07:39 -05:00