Skip to content

Conversation

@Echolon166
Copy link
Contributor

Issue number

Closes #159

Description

Add support for TFUEL addresses, which uses the same address with Theta.

References

Checklist:

  • My code follows the code style of this project.
  • My code implements all the required features.

@Arachnid Arachnid closed this Oct 7, 2020
@Arachnid Arachnid reopened this Oct 7, 2020
@Echolon166
Copy link
Contributor Author

Updated PR fixes the incorrect ordering in README.

@makoto
Copy link
Member

makoto commented Nov 23, 2020

@Echolon166

Hi, I tried to resolve the conflict of this and the test failed again. Would you mind fixing this and also resolve conflicts of all the others you have submitted so that I can priortise your PR?

@Echolon166
Copy link
Contributor Author

@makoto I've resolved the conflicts of my PR's.

},
{
name: 'TFUEL',
coinType: 570,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct coin type? 570 is allocated to BDX according to https://github.com/satoshilabs/slips/blob/master/slip-0044.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened a PR to add TFUEL to SLIP-0044: satoshilabs/slips#1024
I will update this PR according to it when it finalizes.

src/index.ts Outdated
bitcoinBase58Chain('CCA', 489, [[0x0b]], [[0x05]]),
getConfig('SOL', 501, bs58EncodeNoCheck, bs58DecodeNoCheck),
bitcoinBase58Chain('LRG', 568, [[0x1e]], [[0x0d]]),
hexChecksumChain('TFUEL', 570),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct coin type? 570 is allocated to BDX according to https://github.com/satoshilabs/slips/blob/master/slip-0044.md

@makoto
Copy link
Member

makoto commented Nov 23, 2020

Are there any block explorer for TFUEL? I want to double check that they are actually just using hex checksum

@Echolon166
Copy link
Contributor Author

Are there any block explorer for TFUEL? I want to double check that they are actually just using hex checksum

TFUEL uses the same explorer along with Theta token: https://explorer.thetatoken.org/

@makoto
Copy link
Member

makoto commented Nov 24, 2020

FYI, we have PR for THETA https://github.com/ensdomains/address-encoder/pull/125/files but implementation looks different. Are either of PR wrong or did the implementation change?

@Echolon166
Copy link
Contributor Author

FYI, we have PR for THETA https://github.com/ensdomains/address-encoder/pull/125/files but implementation looks different. Are either of PR wrong or did the implementation change?

We're both using the hexChecksumChain, so there's no practical difference. Seems like he just added some padding all around, for some reason.

I've updated the coin type.

@makoto makoto merged commit 93c3641 into ensdomains:master Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Theta Fuel (TFUEL) addresses in encoding library

3 participants