package cc.mrbird.febs.dapp.chain;
|
|
import lombok.Data;
|
import lombok.Getter;
|
|
/**
|
* 链类型
|
*/
|
@Getter
|
public enum ChainEnum {
|
|
/**
|
* 币安 usdt合约
|
* 0x55d398326f99059fF775485246999027B3197955
|
* 测试链 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd
|
*/
|
BSC_USDT("BSC", "0x4f5b6875d0d42f019ab6CdFB3054649b5B7b5472",
|
"0x86bd3ad3ffd055b27dd7685d494074982fe96d6cc9dde0e42e85a85036e8abe9",
|
"https://dataseed1.binance.org",
|
"0x55d398326f99059fF775485246999027B3197955",
|
""),
|
|
/**
|
* 币安链 代币合约
|
* 测试链 0xdd92ea2f41d807a60b29004bf7db807d8ac09212
|
* 正式 0xb27e44f98543e480dbd071b6605005e3d99b3dd4 https://dataseed1.binance.org
|
*
|
*/
|
BSC_TFC("BSC", "0x4f5b6875d0d42f019ab6CdFB3054649b5B7b5472",
|
"0x86bd3ad3ffd055b27dd7685d494074982fe96d6cc9dde0e42e85a85036e8abe9",
|
"https://dataseed1.binance.org",
|
"0xb27e44f98543e480dbd071b6605005e3d99b3dd4",
|
""),
|
|
/**
|
* 源池币
|
*/
|
BSC_TFC_SOURCE("BSC", "0x8cE9d2A8cA6eF9e05493e73C9b6479D100B94847",
|
"",
|
"https://dataseed1.binance.org",
|
"0xb27e44f98543e480dbd071b6605005e3d99b3dd4",
|
""),
|
|
/**
|
* 源池U
|
*/
|
BSC_USDT_SOURCE("BSC", "0x8cE9d2A8cA6eF9e05493e73C9b6479D100B94847",
|
"",
|
"https://dataseed1.binance.org",
|
"0x55d398326f99059fF775485246999027B3197955",
|
""),
|
|
/**
|
* 铸池币
|
*/
|
// BSC_TFC_MAKE("BSC", "0xBae24dAa3aB94cfF8114a16A4267D769b3a651F8",
|
// "0xc0cabaf5f1fce227e5f1b8a7f83a5dc28972389ffc59559d7852ce8d27c3bec4",
|
// "https://dataseed1.binance.org",
|
// "0x46ac4921e58773ca22826df1640672b91b1db2b3",
|
// ""),
|
|
/**
|
* 技术池
|
*/
|
BSC_TFC_TECH("BSC", "0x8DB4d0E470e6cD206b774f5DAD2b5D0dD43C7688",
|
"",
|
"https://dataseed1.binance.org",
|
"0xb27e44f98543e480dbd071b6605005e3d99b3dd4",
|
""),
|
|
/**
|
* 奖励池
|
*/
|
BSC_TFC_REWARD("BSC", "0x286DDA62A7171a6d6eA6558510834fE8afc0446C",
|
"0x3d35db460e2eead11fca7b6ce5a9c5c8a8e0866775008ef5e1721b9f17b57f4f",
|
"https://dataseed1.binance.org",
|
"0xb27e44f98543e480dbd071b6605005e3d99b3dd4",
|
""),
|
|
/**
|
* 卡牌
|
*/
|
BSC_NFT_SDC("BSC", "0x3afD1Bf0994214DBe5ccfA7d8643261B195532c2",
|
"0x07ee6de0ca4b289f8e69484f70d09988c6df6697f411dc623179930a3578994f",
|
"https://dataseed1.binance.org",
|
"0xb7FDE337f2236F78B2823d9F97eAB03ce893CC3D",
|
"");
|
|
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;
|
}
|
}
|