Skip to content

Commit

Permalink
chore(moonbeam): update rpcs and enalbe 1559
Browse files Browse the repository at this point in the history
  • Loading branch information
developerfred committed May 23, 2022
1 parent e305534 commit 14b576e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const minGasPriceOfChain: ChainIdOptionalRecord<BigNumber.Value> = {
[ChainId.BSC]: pow10(9).multipliedBy(5), // 5 Gwei
[ChainId.Conflux]: pow10(9).multipliedBy(5), // 5 Gwei
[ChainId.Matic]: pow10(9).multipliedBy(30), // 30 Gwei
[ChainId.Moonbeam]: pow10(9).multipliedBy(1), // 1 Gwei
}

export const Prior1559GasSetting = memo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const minGasPriceOfChain: ChainIdOptionalRecord<BigNumber.Value> = {
[ChainId.BSC]: pow10(9).multipliedBy(5), // 5 Gwei
[ChainId.Conflux]: pow10(9).multipliedBy(5), // 5 Gwei
[ChainId.Matic]: pow10(9).multipliedBy(30), // 30 Gwei
[ChainId.Moonbeam]: pow10(9).multipliedBy(1), // 1 Gwei
}

export const Prior1559GasSetting: FC<GasSettingProps> = memo(
Expand Down
7 changes: 6 additions & 1 deletion packages/web3-constants/evm/rpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@
"https://rpc.hermesdefi.io/"
],
"Harmony_Test": ["https://api.s0.b.hmny.io/"],
"Moonbeam": ["https://rpc.api.moonbeam.network"]
"Moonbeam": [
"https://moonbeam.api.onfinality.io/rpc?apikey=e5e810e6-6162-4427-8ba3-d5ad8b9cf4c0",
"https://moonbeam.blastapi.io/905553b4-5acd-4f24-b473-ebca226a76c4",
"https://moonbeam.public.blastapi.io",
"https://moonbeam.api.onfinality.io/public"
]
},
"RPC_WEIGHTS": {
"Mainnet": [0, 1, 2, 3, 4],
Expand Down
5 changes: 1 addition & 4 deletions packages/web3-constants/evm/token-asset-base-url.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
"https://rawcdn.githack.com/dimensiondev/assets/master/blockchains/harmony"
],
"Harmony_Test": [],
"Moonbeam": [
"https://raw.githubusercontent.com/dimensiondev/assets/master/blockchains/moonbeam",
"https://rawcdn.githack.com/dimensiondev/assets/master/blockchains/moonbeam"
]
"Moonbeam": []
}
}
2 changes: 1 addition & 1 deletion packages/web3-constants/evm/token-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"Conflux": ["https://tokens.r2d2.to/latest/1030/tokens.json"],
"Harmony": ["https://tokens.r2d2.to/latest/1666600000/tokens.json"],
"Harmony_Test": ["https://tokens.r2d2.to/latest/1666700000/tokens.json"],
"Moonbeam": ["https://token-list.sushi.com/", "https://tokens.r2d2.to/latest/1284/tokens.json"]
"Moonbeam": ["https://token-list.sushi.com/"]
}
}
2 changes: 1 addition & 1 deletion packages/web3-constants/evm/token.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Conflux": "",
"Harmony": "0xcF664087a5bB0237a0BAd6742852ec6c8d69A27a",
"Harmony_Test": "",
"Moonbeam": "0xacc15dc74880c9944775448304b263d191c6077f"
"Moonbeam": "0xAcc15dC74880C9944775448304B263D191c6077F"
},
"LDO_stETH_ADDRESS": {
"Mainnet": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-shared/evm/assets/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@
"name": "Moonbeam Polkadot",
"chain": "Moonbeam",
"network": "mainnet",
"rpc": ["https://rpc.api.moonbeam.network"],
"rpc": ["https://moonbeam.blastapi.io/905553b4-5acd-4f24-b473-ebca226a76c4"],
"faucets": [],
"features": ["EIP1559"],
"nativeCurrency": { "name": "Glimmer", "symbol": "GLMR", "decimals": 18 },
Expand Down

0 comments on commit 14b576e

Please sign in to comment.