-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from dwusiq/dev
Configure web3j for each chain
- Loading branch information
Showing
5 changed files
with
64 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/dl/officialsite/config/NetworkProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.dl.officialsite.config; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
import lombok.Data; | ||
|
||
import static com.dl.officialsite.config.NetworkProperties.NETWORK_PREFIX; | ||
|
||
@Data | ||
@ConfigurationProperties(prefix = NETWORK_PREFIX) | ||
public class NetworkProperties { | ||
|
||
public static final String NETWORK_PREFIX = "network"; | ||
|
||
private NetworkDetailProperties[] configs; | ||
|
||
@Data | ||
public static class NetworkDetailProperties { | ||
private String id; | ||
private String name; | ||
private String rpc; | ||
private Boolean adminRpc; | ||
private Long httpTimeoutSeconds; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters