Page MenuHomePhabricator

[tg bot] port outputScriptToAddress function
ClosedPublic

Authored by bytesofman on Mar 16 2023, 22:24.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC6fdc3aeb369e: [tg bot] port outputScriptToAddress function
Summary

T2972

Port outputScriptToAddress function from alias-server to enable parsing txs for send and receive addresses. No unit tests are added as the existing bot output parsing unit tests will cover this sufficiently once tg msgs include this data (and bc unit tests exist in alias-server, so it wouldn't make sense to just duplicate them).

If I start needing to do this with other util functions, would eventually make sense to put them all together in a tree-shakeable library. Not yet though.

Test Plan

Review function and confirm it's copy pasted from alias-server

Diff Detail

Repository
rABC Bitcoin ABC
Branch
tg-bot-etoken-stack
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22496
Build 44612: Build Diff
Build 44611: arc lint + arc unit