fix
Helius
2022-07-15 1ea6fad18342c1a06901552784de38bfad06c808
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package cc.mrbird.febs.dapp.chain;
 
import lombok.Data;
import lombok.Getter;
 
/**
 * 链类型
 */
@Getter
public enum ChainEnum {
 
    /**
     * 币安 usdt合约
     * 0x55d398326f99059fF775485246999027B3197955
     * 测试链 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd
     */
    BSC_USDT("BSC",
            "0xBae24dAa3aB94cfF8114a16A4267D769b3a651F8",
            "111",
            "https://bsc-dataseed1.ninicoin.io",
            "0x46ac4921e58773ca22826df1640672b91b1db2b3",
            ""),
 
    /**
     * NFT
     */
    BSC_NFT_SDC("BSC",
            "0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25",
            "efe98e00cd227b6322e892c82fcbd8eadf119c3188b7e574bc624f65405d61bf",
            "https://bsc-dataseed1.ninicoin.io",
            "0x03c7D3f141c5F03971604958170E253362e13BE6",
            ""),
 
    /**
     * 币安链 代币合约
     * 测试链 0xdd92ea2f41d807a60b29004bf7db807d8ac09212
     * 正式 0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68 https://bsc-dataseed1.ninicoin.io
     */
    BSC_TFC("", "",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "",
            ""),
 
    /**
     * 源池币
     */
    BSC_TFC_SOURCE("", "",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "",
            ""),
 
    /**
     * 源池U
     */
    BSC_USDT_SOURCE("", "",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "",
            ""),
 
    /**
     * 铸池币
     */
    BSC_TFC_MAKE("", "",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "",
            ""),
 
    /**
     * 技术池
     */
    BSC_TFC_TECH("", "",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "",
            ""),
 
    /**
     * 奖励池
     */
    BSC_TFC_REWARD("", "",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "",
            "");
 
    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;
    }
}