package cc.mrbird.febs.dapp.chain;
|
|
import lombok.Data;
|
import lombok.Getter;
|
|
/**
|
* 链类型
|
* -- todo
|
* 0x81cEAD4B1FaD71c97F77e286F864b95400Ff427B 已审计
|
*/
|
@Getter
|
public enum ChainEnum {
|
|
|
BSC_USDT_W_POOL_CONTRACT("BSC", "0xB3cF9669F398f444DfCAebbAd2A49bF32ba41fE3",
|
"3ff7147104fcc4b3e47eef1c6a826107ad13f8ceaf46d6747b7cd4e56f8b01c6",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0x99A08A65DB5542f35b96FD69F01896Bd3cDB9DC4",
|
""),
|
|
/**
|
* 提现USDT
|
*/
|
// BSC_USDT_W_POOL("BSC", "0xBa4BCd0e752A0dda78ecD0AA94Fae0E8713d027F",
|
// "0x270a863ec3161ac15bb7825b480a39a8d8eae91bdba97cb21061f46ca75586ae",
|
// "https://bsc-dataseed1.ninicoin.io",
|
// "0x55d398326f99059fF775485246999027B3197955",
|
// ""),
|
BSC_USDT_W_POOL("BSC", "0x74fC0e035f315F7BD8b7686e22581AB1afC45e97",
|
"0xc9fd78a879b17007f353595354e3128df702fe5e3518762c0c517cd7e00d13a0",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0x55d398326f99059fF775485246999027B3197955",
|
""),
|
|
/**
|
* A币入金的后进入A池,进入B池
|
*/
|
BSC_USDT_A_POOL("BSC", "0x891884eed30219DE39CCAE8b796F5fAE231A2Ea0",
|
"446b506156020a5f1160903fd298ad4621dadcb357b31aa166ce420e4ec82f88",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0x55d398326f99059fF775485246999027B3197955",
|
""),
|
|
/**
|
* 币安 usdt合约
|
* 0x55d398326f99059fF775485246999027B3197955
|
* 测试链 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd
|
*/
|
BSC_USDT("BSC", "0x891884eed30219DE39CCAE8b796F5fAE231A2Ea0",
|
"446b506156020a5f1160903fd298ad4621dadcb357b31aa166ce420e4ec82f88",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0x55d398326f99059fF775485246999027B3197955",
|
// "0x532B0F9554D92b8BF1bdE85DD4E8b86E4228DE27",
|
""),
|
// BSC_USDT("BSC", "0xBa6206B3Be305278Ea65bA54C4E6188B252AEc4a",
|
// "0x1bc264d17bd2b1f3c0480764272284b8e6c8b0a39a590c26940f84f7b090cc74",
|
// "https://bsc-dataseed1.ninicoin.io",
|
// "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
// ""),
|
BNB("BSC", "0xBa6206B3Be305278Ea65bA54C4E6188B252AEc4a",
|
"0x1bc264d17bd2b1f3c0480764272284b8e6c8b0a39a590c26940f84f7b090cc74",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
""),
|
|
/**
|
* 币安链 代币合约
|
* 测试链 0xdd92ea2f41d807a60b29004bf7db807d8ac09212
|
* 正式 0xb27e44f98543e480dbd071b6605005e3d99b3dd4 https://bsc-dataseed1.ninicoin.io
|
*
|
*/
|
BSC_TFC("BSC", "0xa60aac0da34c76f3f60207ee09e9f75043319ab4",
|
"221be67f85375a5af6dd0f4b77fbe877ad2e57e05db201de1b1383fb76494d18",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0x55d398326f99059fF775485246999027B3197955",
|
""),
|
|
/**
|
* 币安 usdt合约
|
* 0x55d398326f99059fF775485246999027B3197955
|
* 测试链 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd
|
*/
|
// BSC_USDT_LISTENER("BSC", "0xa9B85Fc19f3E330Cd703050fACA2110c7A33fd06+1",
|
// "0xb97d6046268b76a21c11c4b33357dc8e203542d7c2a7fc40fccf364099b06477+1",
|
// "https://bsc-dataseed1.ninicoin.io",
|
// "0x55d398326f99059fF775485246999027B3197955+1",
|
// ""),
|
BSC_USDT_LISTENER("BSC", "0xBa6206B3Be305278Ea65bA54C4E6188B252AEc4a",
|
"0x1bc264d17bd2b1f3c0480764272284b8e6c8b0a39a590c26940f84f7b090cc74",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
""),
|
|
/**
|
* 币安链 代币合约
|
* 测试链 0xdd92ea2f41d807a60b29004bf7db807d8ac09212
|
* 正式 0xb27e44f98543e480dbd071b6605005e3d99b3dd4 https://bsc-dataseed1.ninicoin.io
|
*
|
*/
|
BSC_TFC_LISTENER("BSC", "0x0F22E63D2FB18963C57A5Cb3C43403d156D140c2+1",
|
"0x5bd9f75f53693076e19a8f20d66a147bf0a438275463d2b8d85be8ab11780836+1",
|
"https://bsc-dataseed1.ninicoin.io",
|
"0x9b4406bC2fa21d2058FD4939BAF29B3763cFeDe2+1",
|
"");
|
|
|
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;
|
}
|
}
|