Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
added laChain and laTestnet
Browse files Browse the repository at this point in the history
  • Loading branch information
haycarlitos committed Aug 22, 2023
1 parent 849d7a5 commit 7c80e45
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const { chains, provider } = configureChains(
- `hardhat`
- `iotex`
- `iotexTestnet`
- `lachain`
- `latestnet`
- `localhost`
- `mainnet`
- `mantle`
Expand Down
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export { harmonyOne } from './harmonyOne'
export { haqqMainnet } from './haqqMainnet'
export { haqqTestedge2 } from './haqqTestedge2'
export { klaytn } from './klaytn'
export { lachain } from './lachain'
export { latestnet } from './latestnet'
export { linea } from './linea'
export { lineaTestnet } from './lineaTestnet'
export { localhost } from './localhost'
Expand Down
36 changes: 36 additions & 0 deletions packages/chains/src/lachain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Chain } from './types'

export const lachain = {
id: 274,
name: 'LaChain',
network: 'lachain',
nativeCurrency: {
decimals: 18,
name: 'LaCoin',
symbol: 'LAC',
},
rpcUrls: {
public: {
http: [
'https://rpc1.mainnet.lachain.network',
'https://rpc2.mainnet.lachain.network',
],
},
default: {
http: [
'https://rpc1.mainnet.lachain.network',
'https://rpc2.mainnet.lachain.network',
],
},
},
blockExplorers: {
etherscan: {
name: 'LaChain Explorer',
url: 'https://explorer.lachain.network',
},
default: {
name: 'LaChain Explorer',
url: 'https://explorer.lachain.network',
},
},
} as const satisfies Chain
30 changes: 30 additions & 0 deletions packages/chains/src/latestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Chain } from './types'

export const latestnet = {
id: 418,
name: 'LaTestnet',
network: 'latestnet',
nativeCurrency: {
decimals: 18,
name: 'LaTest Coin',
symbol: 'TLA',
},
rpcUrls: {
public: {
http: ['https://rpc.testnet.lachain.network'],
},
default: {
http: ['https://rpc.testnet.lachain.network'],
},
},
blockExplorers: {
etherscan: {
name: 'LaTestnet Explorer',
url: 'https://testexplorer.lachain.network',
},
default: {
name: 'LaTestnet Explorer',
url: 'https://testexplorer.lachain.network',
},
},
} as const satisfies Chain

0 comments on commit 7c80e45

Please sign in to comment.