Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@ace_domains:registry=https://registry.npmjs.org/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ console.log(addr); // 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
This library currently supports the following cryptocurrencies and address formats (ordered alphabetically):

- ABBC (base58 + ripemd160-checksum)
- ACE (checksummed-hex)
- ADA (base58, no check + crc32-checksum and bech32)
- AE (base58check)
- AIB (base58check P2PKH and P2SH)
Expand Down
7 changes: 7 additions & 0 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,13 @@ const vectors: Array<TestVector> = [
{ text: '0x314159265dD8dbb310642f98f50C066173C1259b', hex: '314159265dd8dbb310642f98f50c066173c1259b' },
],
},
{
name: 'ACE',
coinType: convertEVMChainIdToCoinType(648),
passingVectors: [
{ text: '0x314159265dD8dbb310642f98f50C066173C1259b', hex: '314159265dd8dbb310642f98f50c066173c1259b' },
],
},
{
name: 'CLO',
coinType: convertEVMChainIdToCoinType(820),
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,7 @@ export const formats: IFormat[] = [
evmChain('EWT', 246),
evmChain('FTM', 250),
evmChain('THETA', 361),
evmChain('ACE', 648),
evmChain('CLO', 820),
evmChain('NRG', 39797),
evmChain('ARB1', 42161),
Expand Down Expand Up @@ -1640,4 +1641,4 @@ const handler = {
},
};

export const formatsByCoinType = new Proxy(coinTypeFormats, handler);
export const formatsByCoinType = new Proxy(coinTypeFormats, handler);