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

Port from blockstack.js #3

@vsund

Description

@vsund

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/portItem concerns the port from blockstack.jssize/bigItem requires much work

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions