Commit Graph

101 Commits

Author SHA1 Message Date
Rafael Cárdenas
0fc9f425a7 feat: add /extended/v1/tokens/nft/mints 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

* fix: conflicts

* chore: add openapi docs and generated types

* fix: entities

* chore: add tests

* chore: fix comment

* feat: set chain tip cache headers

* feat: start returning mints

* chore: add openapi docs

* chore: add unit tests

* fix: remove additional properties from openapi
2022-01-17 10:27:02 -06:00
Rafael Cárdenas
85e1f4ca4a fix: asset_event_type on history examples 2022-01-12 17:54:13 -06:00
Rafael Cárdenas
6688079122 feat: add /extended/v1/tokens/nft/history 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

* fix: conflicts

* chore: add openapi docs and generated types

* fix: entities

* chore: add tests

* chore: fix comment

* feat: set chain tip cache headers

* fix: filter non-canonical events too

* feat: return event types as strings

* chore: set sender as nullable
2022-01-12 16:03:17 -06:00
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
Patrick Gray
babe932703 docs: expanded docs for faucet API endpoints (#843) 2021-12-15 17:49:20 +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
Rafael Cárdenas
5ce474f1ef chore: rename github references from blockstack/ to hirosystems/ 2021-11-03 08:42:10 -06:00
kyranjamie
ff7f9d3472 fix(docs): ensure naming convention is followed 2021-10-20 08:21:49 +02:00
Asim Mehmood
7c09ac53a9 feat: added a new endpoint fee_rate #729 2021-09-08 10:57:25 +02:00
Asim Mehmood
33f11bbcf3 feat: token metadata 2021-09-01 18:14:05 -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
MHassanTariq
6dbbba6a41 feat: singular tx with STX transfer events endpoint #622 2021-08-02 11:12:14 -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
267a5eb3ec feat: add explicit is_unanchored: boolean flag to tx responses 2021-07-15 13:07:39 -05:00
Matthew Little
6f3aed942c feat: API endpoint to return unanchored txs 2021-07-15 13:07:39 -05:00
Matthew Little
97e96fea7f chore: formalize /microblocks endpoints in docs, avoid returning 0x strings and bogus block_time ISO strings 2021-07-15 13:07:39 -05:00
Matthew Little
6b644dd3cc chore: more accurate doc type generation 2021-07-15 13:07:39 -05:00
Matthew Little
ee4e62edbd fix: [Rosetta] fix unintentional global error object mutations 2021-05-12 10:16:00 +02:00
Matthew Little
44f7a06232 fix: distinction between total locked and total unlocked token offering schedule amounts 2021-04-21 21:49:59 +02:00
Lola Dam
523c0af4ea fix: [Rosetta] Error 500 & fee operation 2021-04-21 21:33:22 +02:00
Matthew Little
01bcbf7cb4 feat: address transactions with stx transfers endpoint (#547) 2021-04-20 14:04:44 +02:00
noumanahmads
78d475f9a3 feat: expose token sale locking/unlocking data (#553) 2021-04-20 13:45:18 +02:00
Matthew Little
598496d2cd Merge branch 'develop' into 'bns' 2021-03-26 19:02:21 +01:00
Matthew Little
e1805eceb7 chore: add openapi docs for /v2/prices/ endpoints 2021-03-26 18:38:50 +01:00
Matthew Little
382036c48a feat: db handling and API endpoint for burnchain reward slot holder event data 2021-03-26 14:37:37 +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
Friedger Müffke
bfd1a9cd7e fix: use common clarity type in NFTEvent (506) 2021-03-18 10:21:07 +01:00
Asim Mehmood
d09a863c57 docs: added docs for endpoint address/:address/nft_events 2021-03-17 12:33:02 +01:00
Matthew Little
25ec9fdc8a chore: camelCase nameing consistency, "BNS" to "bns" 2021-03-17 11:49:57 +01:00
Matthew Little
affb5a86cb Merge branch 'master' into bns
# Conflicts:
#	src/datastore/common.ts
#	src/datastore/memory-store.ts
#	src/datastore/postgres-store.ts
#	src/tests/datastore-tests.ts
2021-03-17 10:55:41 +01:00
Nouman Ahmad
cef4ba3951 fix: raw trasaction type - docs updated - tests update 2021-03-16 13:21:19 +01:00
Nouman Ahmad
10fde2c1b0 chore: get raw transaction 2021-03-16 13:21:19 +01:00
Matthew Little
241d89a23c fix: openAPI plain string example breaking redoc generator 2021-03-12 11:15:28 +01:00
Matthew Little
002ca11018 chore: lint fixes 2021-03-12 10:46:25 +01:00
Matthew Little
b130740656 feat: expand stx-supply endpoints 2021-03-12 10:46:25 +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
Lola Dam
6426cbc9ee fix: block endpoint & minor fixes (rosetta) (#23)
* Ensure to use postgres as backend

* Update gitignore

* Replace string for error message const

* Avoid code duplication

* Fix schemas

* Fix related operations field

* Catch error on invalid request parameters

Co-authored-by: ER <raynaudo.ee@gmail.com>
2021-03-08 15:25:48 +01:00
Lola Dam
2e8ff92245 fix: change rosetta construction parse api (#22)
metadata in reponse not required on the /construction/parse endpoint.

Closes #11
2021-03-08 15:25:48 +01:00
Lola Dam
cade138987 fix: rosetta construction derive api (#21)
* fix(package): 'Server-Side Request Forgery' vulnerability in axios package

* fix: change construction derive api to fit latest spec

Closes #10
2021-03-08 15:25:48 +01:00
Matthew Little
e627209351 feat: openAPI docs for total-supply legacy format endpoint 2021-02-26 16:31:33 +01:00
Matthew Little
cec343a1ea feat: openAPI docs for total-supply endpoint 2021-02-26 16:31:33 +01:00
Matthew Little
342c01a259 chore: openAPI docs for stx_inbound endpoint 2021-02-15 15:20:40 +01:00
Nouman Ahmad
f8dbc542bb fix: custom nonce added in /payloads and /balance 2021-02-12 19:15:27 +01:00
Nouman Ahmad
9a76a41a02 chore: price endpoints schema files added / validation 2021-01-28 14:14:32 +01:00