Remove ethereum goerli (#462)
* Remove ethereum goerli * add Sepolia chains
This commit is contained in:
@@ -19,9 +19,3 @@ cluster:
|
|||||||
ethereum:
|
ethereum:
|
||||||
rpc:
|
rpc:
|
||||||
url: "https://kovan.infura.io/v3/${INFURA_USER}"
|
url: "https://kovan.infura.io/v3/${INFURA_USER}"
|
||||||
- id: infura-goerli
|
|
||||||
chain: goerli
|
|
||||||
connection:
|
|
||||||
ethereum:
|
|
||||||
rpc:
|
|
||||||
url: "https://goerli.infura.io/v3/${INFURA_USER}"
|
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ Fallback role mean that the upstream is used only after other upstreams failed o
|
|||||||
| yes
|
| yes
|
||||||
| Blockchain which is the provided by the upstream.
|
| Blockchain which is the provided by the upstream.
|
||||||
Cluster may have multiple upstreams for a single blockchain.
|
Cluster may have multiple upstreams for a single blockchain.
|
||||||
Accepted types: `bitcoin`, `bitcoin-testnet`, `ethereum`, `ethereum-classic`, `kovan-testnet`, `rinkeby-testnet`, `ropsten-testnet`, or `goerli-testnet`
|
Accepted types: `bitcoin`, `bitcoin-testnet`, `ethereum`, `ethereum-classic`, `kovan-testnet`, `rinkeby-testnet` or `ropsten-testnet`
|
||||||
|
|
||||||
| `enabled`
|
| `enabled`
|
||||||
| no
|
| no
|
||||||
|
|||||||
Submodule emerald-grpc updated: 5b3b521ca5...708f2e8c4a
@@ -46,13 +46,6 @@ chain-settings:
|
|||||||
grpcId: 100
|
grpcId: 100
|
||||||
priority: 100
|
priority: 100
|
||||||
call-validate-contract: 0x32268860cAAc2948Ab5DdC7b20db5a420467Cf96
|
call-validate-contract: 0x32268860cAAc2948Ab5DdC7b20db5a420467Cf96
|
||||||
- id: Goerli
|
|
||||||
chain-id: 0x5
|
|
||||||
code: GOERLI
|
|
||||||
grpcId: 10005
|
|
||||||
priority: 1
|
|
||||||
short-names: [goerli, goerli-testnet]
|
|
||||||
call-validate-contract: 0xCD9303A1F6da2a68f465A579a24cc2Ee5AE2192f
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
code: SEPOLIA
|
code: SEPOLIA
|
||||||
grpcId: 10008
|
grpcId: 10008
|
||||||
@@ -150,14 +143,6 @@ chain-settings:
|
|||||||
grpcId: 1004
|
grpcId: 1004
|
||||||
short-names: [arbitrum, arb]
|
short-names: [arbitrum, arb]
|
||||||
chain-id: 0xa4b1
|
chain-id: 0xa4b1
|
||||||
- id: Goerli
|
|
||||||
priority: 1
|
|
||||||
code: ARBITRUM_TESTNET
|
|
||||||
grpcId: 10009
|
|
||||||
short-names: [arbitrum-testnet, arbitrum-goerli]
|
|
||||||
chain-id: 0x66eed
|
|
||||||
settings:
|
|
||||||
expected-block-time: 1s
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
priority: 10
|
priority: 10
|
||||||
code: ARBITRUM_SEPOLIA
|
code: ARBITRUM_SEPOLIA
|
||||||
@@ -182,12 +167,6 @@ chain-settings:
|
|||||||
grpcId: 1005
|
grpcId: 1005
|
||||||
short-names: [optimism]
|
short-names: [optimism]
|
||||||
chain-id: 0xa
|
chain-id: 0xa
|
||||||
- id: Goerli
|
|
||||||
priority: 1
|
|
||||||
code: OPTIMISM_TESTNET
|
|
||||||
grpcId: 10010
|
|
||||||
short-names: [optimism-testnet, optimism-goerli]
|
|
||||||
chain-id: 0x1A4
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
priority: 10
|
priority: 10
|
||||||
code: OPTIMISM_SEPOLIA
|
code: OPTIMISM_SEPOLIA
|
||||||
@@ -235,14 +214,6 @@ chain-settings:
|
|||||||
grpcId: 1007
|
grpcId: 1007
|
||||||
short-names: [polygon-zkevm]
|
short-names: [polygon-zkevm]
|
||||||
chain-id: 0x44d
|
chain-id: 0x44d
|
||||||
- id: Testnet
|
|
||||||
priority: 1
|
|
||||||
code: POLYGON_ZKEVM_TESTNET
|
|
||||||
grpcId: 10011
|
|
||||||
short-names: [polygon-zkevm-testnet]
|
|
||||||
chain-id: 0x5a2
|
|
||||||
settings:
|
|
||||||
expected-block-time: 1m
|
|
||||||
- id: Cardona
|
- id: Cardona
|
||||||
priority: 2
|
priority: 2
|
||||||
code: POLYGON_ZKEVM_CARDONA_TESTNET
|
code: POLYGON_ZKEVM_CARDONA_TESTNET
|
||||||
@@ -284,12 +255,6 @@ chain-settings:
|
|||||||
grpcId: 1009
|
grpcId: 1009
|
||||||
chain-id: 0x144
|
chain-id: 0x144
|
||||||
short-names: [zksync]
|
short-names: [zksync]
|
||||||
- id: Testnet
|
|
||||||
priority: 1
|
|
||||||
code: ZKS_TESTNET
|
|
||||||
grpcId: 10012
|
|
||||||
chain-id: 0x118
|
|
||||||
short-names: [zksync-testnet]
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
priority: 1
|
priority: 1
|
||||||
code: ZKS_SEPOLIA
|
code: ZKS_SEPOLIA
|
||||||
@@ -314,12 +279,6 @@ chain-settings:
|
|||||||
grpcId: 1010
|
grpcId: 1010
|
||||||
short-names: [base]
|
short-names: [base]
|
||||||
chain-id: 0x2105
|
chain-id: 0x2105
|
||||||
- id: Goerli
|
|
||||||
priority: 1
|
|
||||||
code: BASE_GOERLI
|
|
||||||
grpcId: 10014
|
|
||||||
short-names: [base-goerli]
|
|
||||||
chain-id: 0x14a33
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
priority: 2
|
priority: 2
|
||||||
code: BASE_SEPOLIA
|
code: BASE_SEPOLIA
|
||||||
@@ -342,14 +301,12 @@ chain-settings:
|
|||||||
grpcId: 1011
|
grpcId: 1011
|
||||||
short-names: [linea]
|
short-names: [linea]
|
||||||
chain-id: 0xe708
|
chain-id: 0xe708
|
||||||
- id: Goerli
|
- id: Sepolia
|
||||||
priority: 1
|
priority: 2
|
||||||
code: LINEA_GOERLI
|
code: LINEA_SEPOLIA
|
||||||
grpcId: 10015
|
grpcId: 10074
|
||||||
short-names: [linea-goerli]
|
short-names: [ linea-sepolia ]
|
||||||
chain-id: 0xe704
|
chain-id: 0xe705
|
||||||
settings:
|
|
||||||
fork-choice: height # wait for providers
|
|
||||||
- id: gnosis
|
- id: gnosis
|
||||||
label: Gnosis
|
label: Gnosis
|
||||||
type: eth
|
type: eth
|
||||||
@@ -441,12 +398,6 @@ chain-settings:
|
|||||||
grpcId: 1017
|
grpcId: 1017
|
||||||
short-names: [mantle]
|
short-names: [mantle]
|
||||||
chain-id: 0x1388
|
chain-id: 0x1388
|
||||||
- id: Testnet
|
|
||||||
priority: 1
|
|
||||||
code: MANTLE_TESTNET
|
|
||||||
grpcId: 10023
|
|
||||||
short-names: [mantle-testnet]
|
|
||||||
chain-id: 0x1389
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
priority: 10
|
priority: 10
|
||||||
code: MANTLE_SEPOLIA
|
code: MANTLE_SEPOLIA
|
||||||
@@ -551,12 +502,6 @@ chain-settings:
|
|||||||
lagging: 5
|
lagging: 5
|
||||||
fork-choice: quorum
|
fork-choice: quorum
|
||||||
chains:
|
chains:
|
||||||
- id: Alphanet
|
|
||||||
priority: 1
|
|
||||||
code: SCROLL_ALPHANET
|
|
||||||
grpcId: 10022
|
|
||||||
short-names: [scroll-alphanet]
|
|
||||||
chain-id: 0x82751
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
priority: 10
|
priority: 10
|
||||||
code: SCROLL_SEPOLIA
|
code: SCROLL_SEPOLIA
|
||||||
@@ -619,14 +564,6 @@ chain-settings:
|
|||||||
short-names: [metis-sepolia]
|
short-names: [metis-sepolia]
|
||||||
chain-id: 0xe9fd
|
chain-id: 0xe9fd
|
||||||
grpcId: 10058
|
grpcId: 10058
|
||||||
- id: Goerli
|
|
||||||
priority: 1
|
|
||||||
code: METIS_GOERLI
|
|
||||||
short-names: [metis-goerli]
|
|
||||||
chain-id: 0x257
|
|
||||||
grpcId: 10031
|
|
||||||
settings:
|
|
||||||
fork-choice: height #wait for providers
|
|
||||||
- id: opbnb
|
- id: opbnb
|
||||||
label: opBNB
|
label: opBNB
|
||||||
type: eth
|
type: eth
|
||||||
@@ -692,18 +629,12 @@ chain-settings:
|
|||||||
short-names: [starknet]
|
short-names: [starknet]
|
||||||
chain-id: 0x534e5f4d41494e
|
chain-id: 0x534e5f4d41494e
|
||||||
grpcId: 1014
|
grpcId: 1014
|
||||||
- id: Testnet
|
- id: Sepolia
|
||||||
priority: 2
|
priority: 2
|
||||||
code: STARKNET_TESTNET
|
code: STARKNET_SEPOLIA
|
||||||
short-names: [starknet-testnet]
|
short-names: [starknet-sepolia]
|
||||||
chain-id: 0x534e5f474f45524c49
|
chain-id: 0x534e5f5345504f4c4941
|
||||||
grpcId: 10019
|
grpcId: 10075
|
||||||
- id: Testnet 2
|
|
||||||
priority: 1
|
|
||||||
code: STARKNET_TESTNET2
|
|
||||||
short-names: [starknet-testnet2]
|
|
||||||
chain-id: 0x534e5f474f45524c4932
|
|
||||||
grpcId: 10020
|
|
||||||
- id: immutable-zkevm
|
- id: immutable-zkevm
|
||||||
label: Immutable zkEVM
|
label: Immutable zkEVM
|
||||||
type: eth
|
type: eth
|
||||||
@@ -726,24 +657,6 @@ chain-settings:
|
|||||||
short-names: [immutable-zkevm-testnet]
|
short-names: [immutable-zkevm-testnet]
|
||||||
chain-id: 0x34a1
|
chain-id: 0x34a1
|
||||||
grpcId: 10034
|
grpcId: 10034
|
||||||
- id: astar
|
|
||||||
label: Astar zkEVM
|
|
||||||
type: eth
|
|
||||||
settings:
|
|
||||||
expected-block-time: 1m
|
|
||||||
options:
|
|
||||||
validate-peers: false
|
|
||||||
lags:
|
|
||||||
syncing: 40
|
|
||||||
lagging: 20
|
|
||||||
fork-choice: quorum
|
|
||||||
chains:
|
|
||||||
- id: zKatana
|
|
||||||
priority: 1
|
|
||||||
code: ASTAR_ZKATANA
|
|
||||||
short-names: [astar-zkatana]
|
|
||||||
chain-id: 0x133e40
|
|
||||||
grpcId: 10035
|
|
||||||
- id: vara
|
- id: vara
|
||||||
label: Vara Network
|
label: Vara Network
|
||||||
type: polkadot
|
type: polkadot
|
||||||
@@ -918,12 +831,12 @@ chain-settings:
|
|||||||
short-names: [manta-pacific]
|
short-names: [manta-pacific]
|
||||||
chain-id: 0xa9
|
chain-id: 0xa9
|
||||||
grpcId: 1033
|
grpcId: 1033
|
||||||
- id: Manta Pacific Testnet
|
- id: Manta Pacific Sepolia
|
||||||
priority: 10
|
priority: 2
|
||||||
code: MANTA_PACIFIC_TESTNET
|
code: MANTA_PACIFIC_SEPOLIA
|
||||||
short-names: [manta-pacific-testnet]
|
short-names: [manta-pacific-sepolia]
|
||||||
chain-id: 0x34816d
|
chain-id: 0x34816e
|
||||||
grpcId: 10045
|
grpcId: 10076
|
||||||
- id: harmony
|
- id: harmony
|
||||||
label: Harmony
|
label: Harmony
|
||||||
type: eth
|
type: eth
|
||||||
@@ -1409,12 +1322,6 @@ chain-settings:
|
|||||||
code: ETH_BEACON_CHAIN
|
code: ETH_BEACON_CHAIN
|
||||||
grpcId: 1053
|
grpcId: 1053
|
||||||
priority: 100
|
priority: 100
|
||||||
- id: Goerli
|
|
||||||
chain-id: 0x0
|
|
||||||
code: GOERLI_BEACON_CHAIN
|
|
||||||
grpcId: 10069
|
|
||||||
priority: 1
|
|
||||||
short-names: [eth-beacon-chain-goerli]
|
|
||||||
- id: Sepolia
|
- id: Sepolia
|
||||||
code: SEPOLIA_BEACON_CHAIN
|
code: SEPOLIA_BEACON_CHAIN
|
||||||
grpcId: 10070
|
grpcId: 10070
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ internal class ChainsConfigReaderTest {
|
|||||||
fun `read standard config without custom`() {
|
fun `read standard config without custom`() {
|
||||||
val reader = ChainsConfigReader(ChainOptionsReader())
|
val reader = ChainsConfigReader(ChainOptionsReader())
|
||||||
val config = reader.read(null)
|
val config = reader.read(null)
|
||||||
val arb = config.resolve("arbitrum-goerli")
|
val arb = config.resolve("sepolia")
|
||||||
assertEquals(arb.chainId, "0x66eed")
|
assertEquals(arb.chainId, "0xaa36a7")
|
||||||
assertEquals(arb.expectedBlockTime.seconds, 1L)
|
assertEquals(arb.expectedBlockTime.seconds, 12L)
|
||||||
assertEquals(arb.options.validatePeers, false)
|
assertEquals(arb.options.validatePeers, null)
|
||||||
assertEquals(arb.id, "Goerli")
|
assertEquals(arb.id, "Sepolia")
|
||||||
|
|
||||||
val ethc = config.resolve("ethereum-classic")
|
val ethc = config.resolve("ethereum-classic")
|
||||||
assertEquals(ethc.chainId, "0x3d")
|
assertEquals(ethc.chainId, "0x3d")
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ class DefaultEthereumMethods(
|
|||||||
|
|
||||||
private fun getChainSpecificMethods(chain: Chain): List<String> {
|
private fun getChainSpecificMethods(chain: Chain): List<String> {
|
||||||
return when (chain) {
|
return when (chain) {
|
||||||
Chain.OPTIMISM__MAINNET, Chain.OPTIMISM__GOERLI, Chain.MANTLE__MAINNET, Chain.MANTLE__TESTNET ->
|
Chain.OPTIMISM__MAINNET, Chain.MANTLE__MAINNET ->
|
||||||
listOf(
|
listOf(
|
||||||
"rollup_gasPrices",
|
"rollup_gasPrices",
|
||||||
)
|
)
|
||||||
@@ -276,7 +276,7 @@ class DefaultEthereumMethods(
|
|||||||
"eth_getRootHash",
|
"eth_getRootHash",
|
||||||
)
|
)
|
||||||
|
|
||||||
Chain.POLYGON_ZKEVM__MAINNET, Chain.POLYGON_ZKEVM__TESTNET -> listOf(
|
Chain.POLYGON_ZKEVM__MAINNET -> listOf(
|
||||||
"zkevm_consolidatedBlockNumber",
|
"zkevm_consolidatedBlockNumber",
|
||||||
"zkevm_isBlockConsolidated",
|
"zkevm_isBlockConsolidated",
|
||||||
"zkevm_isBlockVirtualized",
|
"zkevm_isBlockVirtualized",
|
||||||
@@ -288,7 +288,7 @@ class DefaultEthereumMethods(
|
|||||||
"zkevm_getBroadcastURI",
|
"zkevm_getBroadcastURI",
|
||||||
)
|
)
|
||||||
|
|
||||||
Chain.ZKSYNC__MAINNET, Chain.ZKSYNC__TESTNET -> listOf(
|
Chain.ZKSYNC__MAINNET -> listOf(
|
||||||
"zks_estimateFee",
|
"zks_estimateFee",
|
||||||
"zks_estimateGasL1ToL2",
|
"zks_estimateGasL1ToL2",
|
||||||
"zks_getAllAccountBalances",
|
"zks_getAllAccountBalances",
|
||||||
@@ -324,7 +324,7 @@ class DefaultEthereumMethods(
|
|||||||
.plus(harmonySpecialMethods)
|
.plus(harmonySpecialMethods)
|
||||||
.plus(harmonyPossibleNotIndexedMethods)
|
.plus(harmonyPossibleNotIndexedMethods)
|
||||||
|
|
||||||
Chain.LINEA__MAINNET, Chain.LINEA__GOERLI -> listOf(
|
Chain.LINEA__MAINNET, Chain.LINEA__SEPOLIA -> listOf(
|
||||||
"linea_estimateGas",
|
"linea_estimateGas",
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -335,7 +335,7 @@ class DefaultEthereumMethods(
|
|||||||
private fun chainUnsupportedMethods(chain: Chain): Set<String> {
|
private fun chainUnsupportedMethods(chain: Chain): Set<String> {
|
||||||
return when (chain) {
|
return when (chain) {
|
||||||
Chain.OPTIMISM__MAINNET -> setOf("eth_getAccounts")
|
Chain.OPTIMISM__MAINNET -> setOf("eth_getAccounts")
|
||||||
Chain.ZKSYNC__MAINNET, Chain.ZKSYNC__TESTNET, Chain.POLYGON_ZKEVM__TESTNET, Chain.POLYGON_ZKEVM__MAINNET ->
|
Chain.ZKSYNC__MAINNET, Chain.POLYGON_ZKEVM__MAINNET ->
|
||||||
setOf("eth_maxPriorityFeePerGas", "zks_getBytecodeByHash")
|
setOf("eth_maxPriorityFeePerGas", "zks_getBytecodeByHash")
|
||||||
Chain.TELOS__MAINNET, Chain.TELOS__TESTNET -> setOf(
|
Chain.TELOS__MAINNET, Chain.TELOS__TESTNET -> setOf(
|
||||||
"eth_syncing",
|
"eth_syncing",
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class MainConfigReaderSpec extends Specification {
|
|||||||
port == 8082
|
port == 8082
|
||||||
tls != null
|
tls != null
|
||||||
routes != null
|
routes != null
|
||||||
routes.size() == 3
|
routes.size() == 2
|
||||||
with(routes[0]) {
|
with(routes[0]) {
|
||||||
id == "eth"
|
id == "eth"
|
||||||
blockchain == Chain.ETHEREUM__MAINNET
|
blockchain == Chain.ETHEREUM__MAINNET
|
||||||
@@ -60,10 +60,6 @@ class MainConfigReaderSpec extends Specification {
|
|||||||
id == "etc"
|
id == "etc"
|
||||||
blockchain == Chain.ETHEREUM_CLASSIC__MAINNET
|
blockchain == Chain.ETHEREUM_CLASSIC__MAINNET
|
||||||
}
|
}
|
||||||
with(routes[2]) {
|
|
||||||
id == "goerli"
|
|
||||||
blockchain == Chain.ETHEREUM__GOERLI
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
with(act.health) {
|
with(act.health) {
|
||||||
it.enabled
|
it.enabled
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ class NativeCallSpec extends Specification {
|
|||||||
def nativeCall = nativeCall(upstreams)
|
def nativeCall = nativeCall(upstreams)
|
||||||
|
|
||||||
def req = BlockchainOuterClass.NativeCallRequest.newBuilder()
|
def req = BlockchainOuterClass.NativeCallRequest.newBuilder()
|
||||||
.setChainValue(Chain.ETHEREUM__GOERLI.id)
|
.setChainValue(Chain.ETHEREUM__SEPOLIA.id)
|
||||||
.addAllItems([1, 2].collect { id ->
|
.addAllItems([1, 2].collect { id ->
|
||||||
return BlockchainOuterClass.NativeCallItem.newBuilder()
|
return BlockchainOuterClass.NativeCallItem.newBuilder()
|
||||||
.setId(id)
|
.setId(id)
|
||||||
@@ -294,7 +294,7 @@ class NativeCallSpec extends Specification {
|
|||||||
.build()
|
.build()
|
||||||
})
|
})
|
||||||
.build()
|
.build()
|
||||||
1 * upstreams.isAvailable(Chain.ETHEREUM__GOERLI) >> false
|
1 * upstreams.isAvailable(Chain.ETHEREUM__SEPOLIA) >> false
|
||||||
when:
|
when:
|
||||||
def resp = nativeCall.prepareCall(req)
|
def resp = nativeCall.prepareCall(req)
|
||||||
then:
|
then:
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ class DefaultEthereumMethodsSpec extends Specification {
|
|||||||
chain | id
|
chain | id
|
||||||
Chain.ETHEREUM__MAINNET | '"0x1"'
|
Chain.ETHEREUM__MAINNET | '"0x1"'
|
||||||
Chain.ETHEREUM_CLASSIC__MAINNET | '"0x3d"'
|
Chain.ETHEREUM_CLASSIC__MAINNET | '"0x3d"'
|
||||||
Chain.ETHEREUM__GOERLI | '"0x5"'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def "Optimism chain unsupported methods"() {
|
def "Optimism chain unsupported methods"() {
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ proxy:
|
|||||||
blockchain: ethereum
|
blockchain: ethereum
|
||||||
- id: etc
|
- id: etc
|
||||||
blockchain: ethereum_classic
|
blockchain: ethereum_classic
|
||||||
- id: goerli
|
|
||||||
blockchain: goerli
|
|
||||||
cluster:
|
cluster:
|
||||||
defaults:
|
defaults:
|
||||||
- chains:
|
- chains:
|
||||||
|
|||||||
Reference in New Issue
Block a user