package cc.mrbird.febs.mall.chain; import lombok.Getter; /** * 链类型 */ @Getter public enum ChainEnum { /** * 币安 usdt合约 * 0x55d398326f99059fF775485246999027B3197955 * 测试链 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd */ BSC_USDT("BSC", "0xE09705E2D5283ee4b74182Ed5906D30E3b0D5fa8", "a922d1900a99e883c5ca684ea479a81f2c7de6b8efde7e81b3877ff056221460", "https://bsc-dataseed1.ninicoin.io", "0x55d398326f99059fF775485246999027B3197955", ""), /** * 币安链 代币合约 * 测试链 0xdd92ea2f41d807a60b29004bf7db807d8ac09212 * 正式 0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68 https://bsc-dataseed1.ninicoin.io * */ BSC_GFA("BSC", "0xE09705E2D5283ee4b74182Ed5906D30E3b0D5fa8", "a922d1900a99e883c5ca684ea479a81f2c7de6b8efde7e81b3877ff056221460", "https://bsc-dataseed1.ninicoin.io", "0xaC97ff8173c41b83111b411A3Fa62D7C6ff385be", ""); private String chain; private String address; private String privateKey; private String url; private String contractAddress; private String apiKey; ChainEnum(String chain, String address, String privateKey, String url, String contractAddress, String apiKey) { this.chain = chain; this.address = address; this.privateKey = privateKey; this.url = url; this.contractAddress = contractAddress; this.apiKey = apiKey; } public static ChainEnum getValueByName(String name) { ChainEnum[] values = values(); for (ChainEnum value : values) { if (value.name().equals(name)) { return value; } } return null; } }