Helius
2022-05-28 a26b53fcb2044d5965d7007e4213b88ba3c75818
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package cc.mrbird.febs.dapp.chain;
 
import lombok.Data;
import lombok.Getter;
 
/**
 * 链类型
 */
@Getter
public enum ChainEnum {
    /**
     * 以太坊 USDT合约
     */
    ETH_USDT("ETH", "0x6c5640c572504a75121e57760909a9dd0E672f2D",
            "77f650768ff50a4243c008fbae1be9ffe74c52908ee9081e2e15f3d3411690bb",
            "https://mainnet.infura.io/v3/f54a5887a3894ebb9425920701a97fe0",
            "0xdac17f958d2ee523a2206206994597c13d831ec7",
            ""),
 
    TRX_USDT("TRX", "TUFzqZRpLwLWJU4jcdf77RKS3Ts2uEhmWL",
            "e08dce7a4626f97b790e791bcdec31cffab46233744bb1aa133f69f98623d3fb",
            "",
            "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
            "9d461be6-9796-47b9-85d8-b150cbabbb54"),
 
    BSC_USDT("BSC", "0x971c09aA9735EB98459B17EC8b48932D24CbB931",
            "0x5f38d0e63157f535fc21f89ea13ec3cd245691c20795c1d2cb60233b3ba7bb47",
            "https://bsc-dataseed1.ninicoin.io",
            "0x55d398326f99059fF775485246999027B3197955",
            ""),
 
    /**
     * 币安链 代币合约
     */
    BSC_TFC("BSC", "0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25",
            "0xefe98e00cd227b6322e892c82fcbd8eadf119c3188b7e574bc624f65405d61bf",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dbad7a60112a6371271e8eb79ee68",
            "");
 
    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;
    }
}