Page MenuHomePhabricator

[Cashtab] Add tooltipped icon on Agora Offers created by the token creator
ClosedPublic

Authored by bytesofman on Tue, Dec 31, 14:25.

Details

Summary

Useful visual reference to distinguish sell offers from the tokens mint address vs other sell offers.

Test Plan

npm test

image.png (634×1 px, 84 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Failed tests logs:

====== CashTab Unit Tests: <Agora /> We can see multiple offers, some we made, others we did not, and we can cancel an offer ======
Error: expect(received).toBeInTheDocument()

received value must be an HTMLElement or an SVGElement.
Received has value: undefined
    at __EXTERNAL_MATCHER_TRAP__ (/work/cashtab/node_modules/expect/build/index.js:325:30)
    at Object.throwingMatcher [as toBeInTheDocument] (/work/cashtab/node_modules/expect/build/index.js:326:15)
    at Object.toBeInTheDocument (/work/cashtab/src/components/Agora/__tests__/index.test.js:647:11)

Each failure log is accessible here:
CashTab Unit Tests: <Agora /> We can see multiple offers, some we made, others we did not, and we can cancel an offer

remove unused mock rawtx from new test

I thought about that but you can't really know if it's the creator, right ? I mean the creator can have several addresses

I thought about that but you can't really know if it's the creator, right ? I mean the creator can have several addresses

it's possible we could have "creator-made" offers that we miss with this check

but we know that every offer that does match this check is creator-made

in practice, all user facing apps for token minting now will make a genesis tx that passes this check.

So, I think it's worth adding. It's not really a "legitimacy" check so much as useful info.

This revision is now accepted and ready to land.Tue, Dec 31, 16:38