Skip to content

Commit

Permalink
add celo mainnet and alfajores testnet (aragon#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
panukettu authored Dec 14, 2021
1 parent ee4921c commit 3d55e80
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-wallet",
"version": "0.13.1",
"version": "0.13.2",
"author": "Aragon Association <legal@aragon.org>",
"license": "MIT",
"main": "dist/cjs/index.js",
Expand Down
30 changes: 30 additions & 0 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ const BNB: Currency = {
decimals: 18,
}

const CELO: Currency = {
name: 'Celo',
symbol: 'CELO',
decimals: 18,
}

const CHAIN_INFORMATION = new Map<number, ChainInformation | ChainType>([
[
1,
Expand Down Expand Up @@ -241,6 +247,30 @@ const CHAIN_INFORMATION = new Map<number, ChainInformation | ChainType>([
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,
{
Expand Down

0 comments on commit 3d55e80

Please sign in to comment.