Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Port from blockstack.js #3

Open
15 of 26 tasks
vsund opened this issue Mar 16, 2018 · 0 comments
Open
15 of 26 tasks

Port from blockstack.js #3

vsund opened this issue Mar 16, 2018 · 0 comments
Labels
area/port Item concerns the port from blockstack.js size/big Item requires much work

Comments

@vsund
Copy link
Member

vsund commented Mar 16, 2018

This issue documents my steps for porting over from blockstack.js. I forked at commit 286df82 and will backport coming changes from upstream blockstack.js.

I began with copying over the src/ directory over to here and then gradually fixing the problems tsccomplains about.

I try to document here everything that might be either relevant for fixing it upstream or needs some clarification. For all actions I took please review the commits starting from 11e1c78 (these may contain also minor things that might be relevant for upstream).

Steps

  • yarn build (with strict=false)
  • yarn build (with strict=true) (except the points below)
  • yarn lint
  • Restructuring
  • yarn test
  • Code review (and refactoring)
    • Improve file structure
    • Revisit class attribute visibility
    • Revisit exports
    • Document all code
    • Revisit provided developer interfaces

Issues

Flaws

  • AuthMessage should be exported: 1a3810d
  • ErrorType should be exported and wrong parameter name: 3116488
  • UTXO should be exported: 35dd81d
  • Use library-native UTXO type: 3c85b56

Things needed for a strict build


Note: I'll update this issue consistently with links to other ones etc, while porting over. The solutions behind the issue numbers are most likely opinionated (but need them to go forward with the port).
Also please don't be frightened by all these imperatives, I just write all my git related messages as imperative :D

Edit: Just decided to make a new list of flaws for things that don't need a discussion (in my opinion).

Edit: These may contain false-positives because of style variations or dependency upgrades.

cc @kantai @larrysalibra

@vsund vsund added area/port Item concerns the port from blockstack.js size/big Item requires much work labels Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/port Item concerns the port from blockstack.js size/big Item requires much work
Projects
None yet
Development

No branches or pull requests

1 participant