6 Commits

Author SHA1 Message Date
Rafael Cárdenas
18f74b7b77 fix: remove deprecated token endpoints (#1775)
* fix: remove deprecated token endpoints

* fix: broken import

* chore: remove FT tag from openapi [skip ci]
2023-12-15 11:48:19 -06:00
Matthew Little
f5c4da7b87 feat: [CPU optimizations] use native rust module for decoding Clarity values, binary transaction blobs, post-condition binary blobs, Stacks addresses (#1094)
* feat: use native nodejs addon module for Stacks binary encoding and decoding (Clarity values, binary wire formats, addresses, etc)

* refactor: move transaction, post-condition, and clarity value decoding from js to native addon

* chore: fix rosetta pox contract-call parsing

* chore: use npm registry for stacks-encoding-native-js

* chore: fix unused export

* chore: commit dev file to be converted to unit tests

* refactor: use stacks-encoding-native lib for stacks-address operations

* chore: bump stacks-encoding-native lib

* chore: stacks-native-encoding version bump with fix for decoding multisig tx sender address

* chore: stacks-native-encoding version bump with fix for decoding zero-length prefixed contract call args

* test: introduce tests for on-btc-chain originating stx tx processing

* chore: prettier ignore json payload sample files

* chore: clear up type import syntax

* test: tests for on-btc-chain originating stx-lock tx processing

* feat: expand cpu profiling capabilties with distinct start and stop endpoints easier to use in scripts

* chore: fix compilation error in /utils

* feat: support for performing cpu profiling with the native addon

* fix: avoid re-injecting sourcemap support when running with ts-node

* chore: updates for latest stacks-native-encoding library function usage, only decode clarity value type signatures when needed

* chore: decode only clarity value repr string rather than deep value in several areas

* chore: fix package-lock.json

* feat: commit load testing script with sampled endpoint list

* chore: fix synthetic-stx-txs-tests

* chore: update to latest stacks-encoding-native types (using hex strings rather than js buffers)

* chore: bump stacks-encoding-native version

* chore: fix regular integration tests

* chore: fix bug with rosetta principal repr parsing

* chore: bump stacks-encoding-native version

* chore: add several TODO(perf) comments where buffers should be hex strings

* chore: remove stacks-native-encoding debug code that have since been converted into unit tests

* chore: remove debug code

* fix: bug fix for reverse file stream bug if read chunk starts with line-ending

* chore: wrap synthetic stx txs tests
2022-04-13 18:51:33 +02:00
M Hassan Tariq
cacf9a6fcc Remove memory store and increase test coverage (#1011)
* test: added block and status tests

* test: added rosetta tests

* refactor: removed memory-store.ts

* fix: test failing to exit

* fix: failing error in api-tests.ts

* fix: fixed api-tests.ts

* refactor: removed unecessory comments

* refactor: removed unecessary global server

* revert: unnecessary changes
2022-03-31 11:27:37 -06:00
Matthew Little
9c10bf70f7 chore: util for testing chaintip-based http cache-control behavior against CDNs (#890) 2021-12-15 17:18:41 +01:00
Matthew Little
285632a983 feat: stx addr encoding LRU cache 2021-11-16 12:39:25 +01: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