diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..421b35c6 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@ace_domains:registry=https://registry.npmjs.org/ \ No newline at end of file diff --git a/README.md b/README.md index 8d367ed0..4e09c3d4 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 99cb1dc6..c8114003 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -1254,6 +1254,13 @@ const vectors: Array = [ { text: '0x314159265dD8dbb310642f98f50C066173C1259b', hex: '314159265dd8dbb310642f98f50c066173c1259b' }, ], }, + { + name: 'ACE', + coinType: convertEVMChainIdToCoinType(648), + passingVectors: [ + { text: '0x314159265dD8dbb310642f98f50C066173C1259b', hex: '314159265dd8dbb310642f98f50c066173c1259b' }, + ], + }, { name: 'CLO', coinType: convertEVMChainIdToCoinType(820), diff --git a/src/index.ts b/src/index.ts index cd566be8..1184bb58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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), @@ -1640,4 +1641,4 @@ const handler = { }, }; -export const formatsByCoinType = new Proxy(coinTypeFormats, handler); \ No newline at end of file +export const formatsByCoinType = new Proxy(coinTypeFormats, handler);