Commit Graph

115 Commits

Author SHA1 Message Date
Zitao Xiong
0fa890f627 feat: add index_block_hash to by height result 2022-02-16 21:38:04 +08:00
Matthew Little
bbde3394d1 fix: bug in tx ordering when querying txs by address (#1044)
also re-enable and repair datastore tests that were accidentally disabled a few months ago, and fix pg query response type from `abi: string` to `abi: JSON`
2022-02-09 16:19:47 +01:00
Rafael Cárdenas
a78a9c19e5 fix: rosetta add FT support (balance, operations) and return contract_call metadata (#997)
* fix: return parsed metadata for rosetta contract_call txs

* fix: unit test

* fix: move test to new suite to avoid event server conflict

* feat: send ft operations

* fix: event comment

* feat: rebase develop, add ft to test builders

* feat: return ft balances

* feat: check if ft metadata is enabled

* chore: account balance tests
2022-01-27 09:06:56 -06:00
Matthew Little
d6587fda02 fix: tx pagination ordering bug #924 (#933) 2021-12-22 19:54:58 +01:00
Matthew Little
a8a87762f4 fix: revert #792, restore events array to tx responses (#907) 2021-12-15 13:14:13 +01:00
Rafael Cárdenas
a280073dae fix: address txs abi and reported total
* fix: get abi info when querying address txs

* fix: query return type

* fix: only parse abi json if it is a string

* fix: keep stringify

* fix: broken test

* feat: move abi query to materialized view, fix count

* chore: add test with contract call

* chore: create incremental migration for materialized view changes

* fix: undo vscode temp changes

* chore: test contract-call function decoding in `/extended/v1/address/<contract-principal>/transactions`

* chore: test contract-call function decoding in `/extended/v1/address/<standard-principal>/transactions`

Co-authored-by: Matthew Little <zone117x@gmail.com>
2021-12-10 13:30:01 -06:00
M Hassan Tariq
c64956aaa2 refactor: remove extra query for parsing contract-call txs #579 2021-12-09 14:37:53 +01:00
M Hassan Tariq
f993e0d2ef feat: include entity metadata in search endpoint responses #651 2021-12-07 17:03:16 +01:00
M Hassan Tariq
fdbc548e28 chore: lint and remove unused exports #806 2021-12-07 11:43:11 +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
M Hassan Tariq
f9b4e72517 fix: error reading contract abi #850 2021-12-02 12:24:39 +01:00
M Hassan Tariq
172e6a2123 fix: removed empty events array from response #668 2021-11-24 10:49:08 +01:00
M Hassan Tariq
7edc7b54a6 feat: endpoint for list of transactions #647 2021-11-02 12:32:09 +01:00
Asim Mehmood
9f721c1b18 chore: update stacks.js dependency #712 2021-10-12 12:40:59 +02:00
Asim Mehmood
8d2d86f972 feat: added execution cost to block response #735 2021-09-21 21:31:16 +02:00
Asim Mehmood
37adcc70aa fix(rosetta): use coinbase txs hash instead of stx_lock for forged unlock_transaction #760 2021-09-16 11:38:42 +02:00
Matthew Little
6f4f3e2a91 feat(rosetta): support memos in stx token transfer operations #752 2021-09-10 15:55:40 +02:00
Matthew Little
10b1c67d20 fix: sql optimizations to speed up various tx queries 2021-09-03 15:15:08 -05: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
Matthew Little
83a1578a13 Merge pull request #716 from blockstack/develop
Merge develop into master
2021-08-19 13:21:25 -06: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
55227e299d fix: bug in Clarity value type parsing breaking some API tx respsonses 2021-08-16 08:05:10 -06:00
Matthew Little
33425d8eb9 fix(rosetta): /block/transaction endpoint missing ops #704 2021-08-12 13:13:06 -05:00
Asim Mehmood
f5190c53f4 feat(rosetta): support stacking, delegate stacking and revoke stacking event 2021-08-05 20:35:24 -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
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
8f36f858fb fix: include contract-call metadata in mempool/pending transactions 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
21145cac1c chore: repair tests/api-tests with microblock related breakages 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
49031484cd fix: prevent querying duplicate tx data when existing in both micro-orphaned and unanchored-microblock form 2021-07-15 13:07:39 -05:00
Matthew Little
09844c2897 feat: support microblock canonical status updating during anchor block re-orgs 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
cbe16dd2ee fix: missing sponsor_address property in some tx responses 2021-07-15 13:07:39 -05:00
Matthew Little
19e92ae735 feat: microblocks API endpoints 2021-07-15 13:07:39 -05:00
Matthew Little
97bb2cbc36 fix: various bugs and typing issues with parsing mined and mempool tx db data 2021-07-15 13:07:39 -05:00
Matthew Little
a85dcad9e7 fix: duplicated mempool-tx and mined-tx schemas leading to buggy tx parsing code 2021-07-15 13:07:39 -05:00
Matthew Little
b79e491ea8 chore: add parent block hash to tx table, progress on fixing issues with tx db data parsing issues 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
39a8d32818 feat: added microblock metadata to regular/anchor block API responses 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
Asim Mehmood
feab6a65ea fix: prioritize blockhash over block index when both are provided 2021-06-29 09:04:00 -04:00
Matthew Little
715e2b36df feat: socket.io server and client implementation 2021-05-19 00:51:01 +02:00
Lola Dam
523c0af4ea fix: [Rosetta] Error 500 & fee operation 2021-04-21 21:33:22 +02:00
Lola Dam
1cb8e9cdb9 feat: [rosetta] stacking operation
* Rosetta construction api now support building stacking operation
* Fix the missing events that change the balance for Data api in rosetta side
* fix: check account address by using 'isValidPrincipal'
* fix: avoid querying events on genesis block

Co-authored-by: ER <raynaudo.ee@gmail.com>
2021-04-19 15:25:25 +02:00
Nouman Ahmad
30dae344b7 chore: transaction schema update 2021-03-26 14:22:18 +01:00
Nouman Ahmad
141c85cae0 fix: event count added in transaction 2021-03-26 14:22:18 +01:00
Lola Dam
782e097e2a fix: status should be null for construction api
* fix: satus should be null for construction api

* fix: missing docs files
2021-03-15 10:41:19 +01:00