@ -29,30 +29,30 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
import org.apache.tuweni.units.bigints.UInt256 ;
import org.apache.tuweni.units.bigints.UInt256 ;
import org.junit.jupiter.api.Test ;
import org.junit.jupiter.api.Test ;
public class GenesisConfigOptionsTest {
class GenesisConfigOptionsTest {
@Test
@Test
public void shouldUseEthHashWhenEthHashInConfig ( ) {
void shouldUseEthHashWhenEthHashInConfig ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "ethash" , emptyMap ( ) ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "ethash" , emptyMap ( ) ) ) ;
assertThat ( config . isEthHash ( ) ) . isTrue ( ) ;
assertThat ( config . isEthHash ( ) ) . isTrue ( ) ;
assertThat ( config . getConsensusEngine ( ) ) . isEqualTo ( "ethash" ) ;
assertThat ( config . getConsensusEngine ( ) ) . isEqualTo ( "ethash" ) ;
}
}
@Test
@Test
public void shouldNotUseEthHashIfEthHashNotPresent ( ) {
void shouldNotUseEthHashIfEthHashNotPresent ( ) {
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
assertThat ( config . isEthHash ( ) ) . isFalse ( ) ;
assertThat ( config . isEthHash ( ) ) . isFalse ( ) ;
}
}
@Test
@Test
public void shouldUseIbft2WhenIbft2InConfig ( ) {
void shouldUseIbft2WhenIbft2InConfig ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "ibft2" , emptyMap ( ) ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "ibft2" , emptyMap ( ) ) ) ;
assertThat ( config . isIbft2 ( ) ) . isTrue ( ) ;
assertThat ( config . isIbft2 ( ) ) . isTrue ( ) ;
assertThat ( config . isPoa ( ) ) . isTrue ( ) ;
assertThat ( config . isPoa ( ) ) . isTrue ( ) ;
assertThat ( config . getConsensusEngine ( ) ) . isEqualTo ( "ibft2" ) ;
assertThat ( config . getConsensusEngine ( ) ) . isEqualTo ( "ibft2" ) ;
}
}
public void shouldUseQbftWhenQbftInConfig ( ) {
void shouldUseQbftWhenQbftInConfig ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "qbft" , emptyMap ( ) ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "qbft" , emptyMap ( ) ) ) ;
assertThat ( config . isQbft ( ) ) . isTrue ( ) ;
assertThat ( config . isQbft ( ) ) . isTrue ( ) ;
assertThat ( config . isPoa ( ) ) . isTrue ( ) ;
assertThat ( config . isPoa ( ) ) . isTrue ( ) ;
@ -60,7 +60,7 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldUseCliqueWhenCliqueInConfig ( ) {
void shouldUseCliqueWhenCliqueInConfig ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "clique" , emptyMap ( ) ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "clique" , emptyMap ( ) ) ) ;
assertThat ( config . isClique ( ) ) . isTrue ( ) ;
assertThat ( config . isClique ( ) ) . isTrue ( ) ;
assertThat ( config . isPoa ( ) ) . isTrue ( ) ;
assertThat ( config . isPoa ( ) ) . isTrue ( ) ;
@ -69,7 +69,7 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldNotUseCliqueIfCliqueNotPresent ( ) {
void shouldNotUseCliqueIfCliqueNotPresent ( ) {
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
assertThat ( config . isClique ( ) ) . isFalse ( ) ;
assertThat ( config . isClique ( ) ) . isFalse ( ) ;
assertThat ( config . isPoa ( ) ) . isFalse ( ) ;
assertThat ( config . isPoa ( ) ) . isFalse ( ) ;
@ -77,63 +77,63 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldGetHomesteadBlockNumber ( ) {
void shouldGetHomesteadBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "homesteadBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "homesteadBlock" , 1000 ) ) ;
assertThat ( config . getHomesteadBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getHomesteadBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetDaoForkBlockNumber ( ) {
void shouldGetDaoForkBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "daoForkBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "daoForkBlock" , 1000 ) ) ;
assertThat ( config . getDaoForkBlock ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getDaoForkBlock ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldNotHaveDaoForkBlockWhenSetToZero ( ) {
void shouldNotHaveDaoForkBlockWhenSetToZero ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "daoForkBlock" , 0 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "daoForkBlock" , 0 ) ) ;
assertThat ( config . getDaoForkBlock ( ) ) . isEmpty ( ) ;
assertThat ( config . getDaoForkBlock ( ) ) . isEmpty ( ) ;
}
}
@Test
@Test
public void shouldGetTangerineWhistleBlockNumber ( ) {
void shouldGetTangerineWhistleBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "eip150Block" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "eip150Block" , 1000 ) ) ;
assertThat ( config . getTangerineWhistleBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getTangerineWhistleBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetSpuriousDragonBlockNumber ( ) {
void shouldGetSpuriousDragonBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "eip158Block" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "eip158Block" , 1000 ) ) ;
assertThat ( config . getSpuriousDragonBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getSpuriousDragonBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetByzantiumBlockNumber ( ) {
void shouldGetByzantiumBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "byzantiumBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "byzantiumBlock" , 1000 ) ) ;
assertThat ( config . getByzantiumBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getByzantiumBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetConstantinopleBlockNumber ( ) {
void shouldGetConstantinopleBlockNumber ( ) {
final GenesisConfigOptions config =
final GenesisConfigOptions config =
fromConfigOptions ( singletonMap ( "constantinopleBlock" , 1000 ) ) ;
fromConfigOptions ( singletonMap ( "constantinopleBlock" , 1000 ) ) ;
assertThat ( config . getConstantinopleBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getConstantinopleBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetConstantinopleFixBlockNumber ( ) {
void shouldGetConstantinopleFixBlockNumber ( ) {
final GenesisConfigOptions config =
final GenesisConfigOptions config =
fromConfigOptions ( singletonMap ( "constantinopleFixBlock" , 1000 ) ) ;
fromConfigOptions ( singletonMap ( "constantinopleFixBlock" , 1000 ) ) ;
assertThat ( config . getPetersburgBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getPetersburgBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetPetersburgBlockNumber ( ) {
void shouldGetPetersburgBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "petersburgBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "petersburgBlock" , 1000 ) ) ;
assertThat ( config . getPetersburgBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getPetersburgBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldFailWithBothPetersburgAndConstantinopleFixBlockNumber ( ) {
void shouldFailWithBothPetersburgAndConstantinopleFixBlockNumber ( ) {
Map < String , Object > configMap = new HashMap < > ( ) ;
Map < String , Object > configMap = new HashMap < > ( ) ;
configMap . put ( "constantinopleFixBlock" , 1000 ) ;
configMap . put ( "constantinopleFixBlock" , 1000 ) ;
configMap . put ( "petersburgBlock" , 1000 ) ;
configMap . put ( "petersburgBlock" , 1000 ) ;
@ -145,68 +145,74 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldGetIstanbulBlockNumber ( ) {
void shouldGetIstanbulBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "istanbulBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "istanbulBlock" , 1000 ) ) ;
assertThat ( config . getIstanbulBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getIstanbulBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetMuirGlacierBlockNumber ( ) {
void shouldGetMuirGlacierBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "muirGlacierBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "muirGlacierBlock" , 1000 ) ) ;
assertThat ( config . getMuirGlacierBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getMuirGlacierBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetBerlinBlockNumber ( ) {
void shouldGetBerlinBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "berlinBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "berlinBlock" , 1000 ) ) ;
assertThat ( config . getBerlinBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getBerlinBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetLondonBlockNumber ( ) {
void shouldGetLondonBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "londonblock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "londonblock" , 1000 ) ) ;
assertThat ( config . getLondonBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getLondonBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetArrowGlacierBlockNumber ( ) {
void shouldGetArrowGlacierBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "arrowGlacierBlock" , 1000 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "arrowGlacierBlock" , 1000 ) ) ;
assertThat ( config . getArrowGlacierBlockNumber ( ) ) . hasValue ( 1000 ) ;
assertThat ( config . getArrowGlacierBlockNumber ( ) ) . hasValue ( 1000 ) ;
}
}
@Test
@Test
public void shouldGetGrayGlacierBlockNumber ( ) {
void shouldGetGrayGlacierBlockNumber ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "grayGlacierBlock" , 4242 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "grayGlacierBlock" , 4242 ) ) ;
assertThat ( config . getGrayGlacierBlockNumber ( ) ) . hasValue ( 4242 ) ;
assertThat ( config . getGrayGlacierBlockNumber ( ) ) . hasValue ( 4242 ) ;
}
}
@Test
@Test
public void shouldGetShanghaiTime ( ) {
void shouldGetShanghaiTime ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "shanghaiTime" , 1670470141 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "shanghaiTime" , 1670470141 ) ) ;
assertThat ( config . getShanghaiTime ( ) ) . hasValue ( 1670470141 ) ;
assertThat ( config . getShanghaiTime ( ) ) . hasValue ( 1670470141 ) ;
}
}
@Test
@Test
public void shouldGetCancunTime ( ) {
void shouldGetCancunTime ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "cancunTime" , 1670470142 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "cancunTime" , 1670470142 ) ) ;
assertThat ( config . getCancunTime ( ) ) . hasValue ( 1670470142 ) ;
assertThat ( config . getCancunTime ( ) ) . hasValue ( 1670470142 ) ;
}
}
@Test
@Test
public void shouldGetFutureEipsTime ( ) {
void shouldGetPragueTime ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "pragueTime" , 1670470143 ) ) ;
assertThat ( config . getPragueTime ( ) ) . hasValue ( 1670470143 ) ;
}
@Test
void shouldGetFutureEipsTime ( ) {
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "futureEipsTime" , 1337 ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( singletonMap ( "futureEipsTime" , 1337 ) ) ;
assertThat ( config . getFutureEipsTime ( ) ) . hasValue ( 1337 ) ;
assertThat ( config . getFutureEipsTime ( ) ) . hasValue ( 1337 ) ;
}
}
@Test
@Test
public void shouldGetExperimentalEipsTime ( ) {
void shouldGetExperimentalEipsTime ( ) {
final GenesisConfigOptions config =
final GenesisConfigOptions config =
fromConfigOptions ( singletonMap ( "experimentalEipsTime" , 1337 ) ) ;
fromConfigOptions ( singletonMap ( "experimentalEipsTime" , 1337 ) ) ;
assertThat ( config . getExperimentalEipsTime ( ) ) . hasValue ( 1337 ) ;
assertThat ( config . getExperimentalEipsTime ( ) ) . hasValue ( 1337 ) ;
}
}
@Test
@Test
public void shouldNotReturnEmptyOptionalWhenBlockNumberNotSpecified ( ) {
void shouldNotReturnEmptyOptionalWhenBlockNumberNotSpecified ( ) {
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
assertThat ( config . getHomesteadBlockNumber ( ) ) . isEmpty ( ) ;
assertThat ( config . getHomesteadBlockNumber ( ) ) . isEmpty ( ) ;
assertThat ( config . getDaoForkBlock ( ) ) . isEmpty ( ) ;
assertThat ( config . getDaoForkBlock ( ) ) . isEmpty ( ) ;
@ -224,19 +230,20 @@ public class GenesisConfigOptionsTest {
assertThat ( config . getMergeNetSplitBlockNumber ( ) ) . isEmpty ( ) ;
assertThat ( config . getMergeNetSplitBlockNumber ( ) ) . isEmpty ( ) ;
assertThat ( config . getShanghaiTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getShanghaiTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getCancunTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getCancunTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getPragueTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getFutureEipsTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getFutureEipsTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getExperimentalEipsTime ( ) ) . isEmpty ( ) ;
assertThat ( config . getExperimentalEipsTime ( ) ) . isEmpty ( ) ;
}
}
@Test
@Test
public void shouldGetChainIdWhenSpecified ( ) {
void shouldGetChainIdWhenSpecified ( ) {
final GenesisConfigOptions config =
final GenesisConfigOptions config =
fromConfigOptions ( singletonMap ( "chainId" , BigInteger . valueOf ( 32 ) ) ) ;
fromConfigOptions ( singletonMap ( "chainId" , BigInteger . valueOf ( 32 ) ) ) ;
assertThat ( config . getChainId ( ) ) . hasValue ( BigInteger . valueOf ( 32 ) ) ;
assertThat ( config . getChainId ( ) ) . hasValue ( BigInteger . valueOf ( 32 ) ) ;
}
}
@Test
@Test
public void shouldSupportEmptyGenesisConfig ( ) {
void shouldSupportEmptyGenesisConfig ( ) {
final GenesisConfigOptions config = GenesisConfigFile . fromConfig ( "{}" ) . getConfigOptions ( ) ;
final GenesisConfigOptions config = GenesisConfigFile . fromConfig ( "{}" ) . getConfigOptions ( ) ;
assertThat ( config . isEthHash ( ) ) . isFalse ( ) ;
assertThat ( config . isEthHash ( ) ) . isFalse ( ) ;
assertThat ( config . isClique ( ) ) . isFalse ( ) ;
assertThat ( config . isClique ( ) ) . isFalse ( ) ;
@ -245,7 +252,7 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldGetTerminalTotalDifficultyWhenSpecified ( ) {
void shouldGetTerminalTotalDifficultyWhenSpecified ( ) {
final GenesisConfigOptions config =
final GenesisConfigOptions config =
fromConfigOptions ( singletonMap ( "terminalTotalDifficulty" , BigInteger . valueOf ( 1000 ) ) ) ;
fromConfigOptions ( singletonMap ( "terminalTotalDifficulty" , BigInteger . valueOf ( 1000 ) ) ) ;
assertThat ( config . getTerminalTotalDifficulty ( ) ) . isPresent ( ) ;
assertThat ( config . getTerminalTotalDifficulty ( ) ) . isPresent ( ) ;
@ -259,7 +266,7 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldNotReturnTerminalTotalDifficultyWhenNotSpecified ( ) {
void shouldNotReturnTerminalTotalDifficultyWhenNotSpecified ( ) {
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
assertThat ( config . getTerminalTotalDifficulty ( ) ) . isNotPresent ( ) ;
assertThat ( config . getTerminalTotalDifficulty ( ) ) . isNotPresent ( ) ;
// stubJsonGenesis
// stubJsonGenesis
@ -267,28 +274,28 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void isZeroBaseFeeShouldDefaultToFalse ( ) {
void isZeroBaseFeeShouldDefaultToFalse ( ) {
final GenesisConfigOptions config = GenesisConfigFile . fromConfig ( "{}" ) . getConfigOptions ( ) ;
final GenesisConfigOptions config = GenesisConfigFile . fromConfig ( "{}" ) . getConfigOptions ( ) ;
assertThat ( config . isZeroBaseFee ( ) ) . isFalse ( ) ;
assertThat ( config . isZeroBaseFee ( ) ) . isFalse ( ) ;
}
}
@Test
@Test
public void isZeroBaseFeeParsedCorrectly ( ) {
void isZeroBaseFeeParsedCorrectly ( ) {
final GenesisConfigOptions config = fromConfigOptions ( Map . of ( "zerobasefee" , true ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( Map . of ( "zerobasefee" , true ) ) ;
assertThat ( config . isZeroBaseFee ( ) ) . isTrue ( ) ;
assertThat ( config . isZeroBaseFee ( ) ) . isTrue ( ) ;
}
}
@Test
@Test
public void asMapIncludesZeroBaseFee ( ) {
void asMapIncludesZeroBaseFee ( ) {
final GenesisConfigOptions config = fromConfigOptions ( Map . of ( "zerobasefee" , true ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( Map . of ( "zerobasefee" , true ) ) ;
assertThat ( config . asMap ( ) ) . containsOnlyKeys ( "zeroBaseFee" ) . containsValue ( true ) ;
assertThat ( config . asMap ( ) ) . containsOnlyKeys ( "zeroBaseFee" ) . containsValue ( true ) ;
}
}
@Test
@Test
public void shouldGetDepositContractAddress ( ) {
void shouldGetDepositContractAddress ( ) {
final GenesisConfigOptions config =
final GenesisConfigOptions config =
fromConfigOptions (
fromConfigOptions (
singletonMap ( "depositContractAddress" , "0x00000000219ab540356cbb839cbe05303d7705fa" ) ) ;
singletonMap ( "depositContractAddress" , "0x00000000219ab540356cbb839cbe05303d7705fa" ) ) ;
@ -297,13 +304,13 @@ public class GenesisConfigOptionsTest {
}
}
@Test
@Test
public void shouldNotHaveDepositContractAddressWhenEmpty ( ) {
void shouldNotHaveDepositContractAddressWhenEmpty ( ) {
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( emptyMap ( ) ) ;
assertThat ( config . getDepositContractAddress ( ) ) . isEmpty ( ) ;
assertThat ( config . getDepositContractAddress ( ) ) . isEmpty ( ) ;
}
}
@Test
@Test
public void asMapIncludesDepositContractAddress ( ) {
void asMapIncludesDepositContractAddress ( ) {
final GenesisConfigOptions config = fromConfigOptions ( Map . of ( "depositContractAddress" , "0x0" ) ) ;
final GenesisConfigOptions config = fromConfigOptions ( Map . of ( "depositContractAddress" , "0x0" ) ) ;
assertThat ( config . asMap ( ) )
assertThat ( config . asMap ( ) )