stacks-archive / stacks-transactions-js

The JavaScript library for generating Stacks 2.0 transactions
19 stars 17 forks source link

Clarity Value toString function #83

Closed reedrosenbluth closed 4 years ago

reedrosenbluth commented 4 years ago

This PR adds a function to convert TS Clarity Values to their string (source code) representation so they can be displayed easily. This is important for the Explorer.

relevant sidecar issue: https://github.com/blockstack/stacks-blockchain-sidecar/issues/99

Type of Change

Checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #83 into master will increase coverage by 0.33%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
+ Coverage   83.91%   84.24%   +0.33%     
==========================================
  Files          27       27              
  Lines        1666     1701      +35     
  Branches      350      366      +16     
==========================================
+ Hits         1398     1433      +35     
  Misses        266      266              
  Partials        2        2              
Impacted Files Coverage Δ
src/clarity/clarityValue.ts 100.00% <100.00%> (ø)
src/clarity/index.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 67d8622...0d7963c. Read the comment docs.