From 3d55e80bbc134af070cf66a00e258ee1b1d4cf96 Mon Sep 17 00:00:00 2001 From: pk Date: Tue, 14 Dec 2021 13:10:53 +0100 Subject: [PATCH] add celo mainnet and alfajores testnet (#170) --- package.json | 2 +- src/chains.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9e5c5fe..e69eea3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "use-wallet", - "version": "0.13.1", + "version": "0.13.2", "author": "Aragon Association ", "license": "MIT", "main": "dist/cjs/index.js", diff --git a/src/chains.ts b/src/chains.ts index 2791fcf..55e414d 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -37,6 +37,12 @@ const BNB: Currency = { decimals: 18, } +const CELO: Currency = { + name: 'Celo', + symbol: 'CELO', + decimals: 18, +} + const CHAIN_INFORMATION = new Map([ [ 1, @@ -241,6 +247,30 @@ const CHAIN_INFORMATION = new Map([ testnet: false, }, ], + [ + 42220, + { + id: 42220, + nativeCurrency: CELO, + type: 'celo', + fullName: 'Celo (Mainnet)', + shortName: 'Celo', + explorerUrl: 'https://explorer.celo.org/', + testnet: false, + }, + ], + [ + 44787, + { + id: 44787, + nativeCurrency: CELO, + type: 'celoTest', + fullName: 'Celo (Alfajores Testnet)', + shortName: 'Alfajores', + explorerUrl: 'https://alfajores-blockscout.celo-testnet.org/', + testnet: true, + }, + ], [ 1337, {