Skip to content

Commit

Permalink
Dango support (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazarre authored Jul 6, 2024
1 parent 9dce129 commit 75b2d6f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions apps/web/config/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ export const CHAIN_PARAMS: Record<Network, ChainParams> = {
blockExplorerUrls: ['https://explorer.celo.org/alfajores'],
iconUrls: ['future'],
},
dango: {
chainId: '0xaef3',
chainName: 'Dango Testnet',
nativeCurrency: { name: 'Dango Celo', symbol: 'D-CELO', decimals: 18 },
rpcUrls: ['https://forno.dango.celo-testnet.org'],
blockExplorerUrls: [],
iconUrls: ['future'],
},
}

interface Token {
Expand All @@ -44,4 +52,18 @@ export const tokens: Record<Network, Token[]> = {
address: '0x874069Fa1Eb16D44d622F2e0Ca25eeA172369bC1',
},
],
dango: [
{
symbol: 'cEUR',
address: '0x10c892A6EC43a53E45D0B916B4b7D383B1b78C0F',
},
{
symbol: 'cREAL',
address: '0xE4D517785D091D3c54818832dB6094bcc2744545',
},
{
symbol: 'cUSD',
address: '0x874069Fa1Eb16D44d622F2e0Ca25eeA172369bC1',
},
],
}
6 changes: 4 additions & 2 deletions apps/web/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
export type Address = string
export type E164Number = string

export const networks = ['alfajores']
export type Network = 'alfajores'
export const networks = ['alfajores', 'dango']
export type Network = 'alfajores' | 'dango'

export enum FaucetAddress {
alfajores = '0x22579CA45eE22E2E16dDF72D955D6cf4c767B0eF',
dango = '0x22579CA45eE22E2E16dDF72D955D6cf4c767B0eF',
}

export enum ChainId {
alfajores = 44787,
dango = 44787,
}

export enum RequestStatus {
Expand Down

0 comments on commit 75b2d6f

Please sign in to comment.