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

add lachain and latestnet to chains #483

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 'LaChain',
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: 'LaTestnet',
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
Loading