KKSU
2024-07-15 4a347c0ab4b88fd792d24d30bed36b1fa769d3a2
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package cc.mrbird.febs.dapp.chain;
 
import lombok.Getter;
 
/**
 * 链类型
 */
@Deprecated
@Getter
public enum ChainEnumBak {
    /**
     * 以太坊 USDT合约
     */
    ETH_USDT("ETH", "0x6c5640c572504a75121e57760909a9dd0E672f2D",
            "77f650768ff50a4243c008fbae1be9ffe74c52908ee9081e2e15f3d3411690bb",
            "https://mainnet.infura.io/v3/f54a5887a3894ebb9425920701a97fe0",
            "0xdac17f958d2ee523a2206206994597c13d831ec7",
            ""),
 
    TRX_USDT("TRX", "TUFzqZRpLwLWJU4jcdf77RKS3Ts2uEhmWL",
            "e08dce7a4626f97b790e791bcdec31cffab46233744bb1aa133f69f98623d3fb",
            "",
            "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
            "9d461be6-9796-47b9-85d8-b150cbabbb54"),
 
 
    /**
     * 币安 usdt合约
     * 0x55d398326f99059fF775485246999027B3197955
     * 测试链 0x46Ac4921e58773ca22826DF1640672B91B1DB2B3
     */
    BSC_USDT("BSC", "0x4EbDCA102623b46a47042D580dddAdE2a53D057F",
            "0x81c2c02d0c106c1e32ab060a37f6eb279c0649c30ea5cc1c4951e6a8dd4e963c",
            "https://bsc-dataseed1.ninicoin.io",
            "0x46Ac4921e58773ca22826DF1640672B91B1DB2B3",
            ""),
 
    /**
     * 币安链 代币合约
     * 测试链 0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68
     * 正式 0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68 https://bsc-dataseed1.ninicoin.io
     *
     */
    BSC_TFC("BSC", "0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25",
            "0xefe98e00cd227b6322e892c82fcbd8eadf119c3188b7e574bc624f65405d61bf",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68",
            ""),
 
    /**
     * 源池币
     */
    BSC_TFC_SOURCE("BSC", "0x4EbDCA102623b46a47042D580dddAdE2a53D057F",
            "0x81c2c02d0c106c1e32ab060a37f6eb279c0649c30ea5cc1c4951e6a8dd4e963c",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68",
            ""),
 
    /**
     * 源池U
     */
    BSC_USDT_SOURCE("BSC", "0x4EbDCA102623b46a47042D580dddAdE2a53D057F",
            "0x81c2c02d0c106c1e32ab060a37f6eb279c0649c30ea5cc1c4951e6a8dd4e963c",
            "https://bsc-dataseed1.ninicoin.io",
            "0x46Ac4921e58773ca22826DF1640672B91B1DB2B3",
            ""),
 
    /**
     * 铸池币
     */
    BSC_TFC_MAKE("BSC", "0xBae24dAa3aB94cfF8114a16A4267D769b3a651F8",
            "0xc0cabaf5f1fce227e5f1b8a7f83a5dc28972389ffc59559d7852ce8d27c3bec4",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68",
            ""),
 
    /**
     * 技术池
     */
    BSC_TFC_TECH("BSC", "0xD998DA7362360eFC6daDFEd6E9a32E70640d7600",
            "",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68",
            ""),
 
    /**
     * 奖励池
     */
    BSC_TFC_REWARD("BSC", "0xBae24dAa3aB94cfF8114a16A4267D769b3a651F8",
            "0xc0cabaf5f1fce227e5f1b8a7f83a5dc28972389ffc59559d7852ce8d27c3bec4",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68",
            ""),
 
 
    /**
     * 卡牌
     */
    BSC_NFT_SDC("BSC", "0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25",
            "0xefe98e00cd227b6322e892c82fcbd8eadf119c3188b7e574bc624f65405d61bf",
            "https://bsc-dataseed1.ninicoin.io",
            "0x03c7d3f141c5f03971604958170e253362e13be6",
            ""),
 
    /**
     * 币安 usdt合约
     * 0x55d398326f99059fF775485246999027B3197955
     * 测试链 0x46Ac4921e58773ca22826DF1640672B91B1DB2B3
     */
    BSC_USDT_LISTENER("BSC", "0x4EbDCA102623b46a47042D580dddAdE2a53D057F",
            "0x81c2c02d0c106c1e32ab060a37f6eb279c0649c30ea5cc1c4951e6a8dd4e963c",
            "https://bsc-dataseed1.ninicoin.io",
            "0x46Ac4921e58773ca22826DF1640672B91B1DB2B3",
            ""),
 
    /**
     * 币安链 代币合约
     * 测试链 0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68
     * 正式 0xb27e44f98543e480dbd071b6605005e3d99b3dd4 https://bsc-dataseed1.ninicoin.io
     *
     */
    BSC_TFC_LISTENER("BSC", "0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25",
            "0xefe98e00cd227b6322e892c82fcbd8eadf119c3188b7e574bc624f65405d61bf",
            "https://bsc-dataseed1.ninicoin.io",
            "0x6c6835e60e7dBaD7a60112a6371271e8eb79ee68",
            ""),
 
    BSC_TFC_FEE("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;
 
    ChainEnumBak(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 ChainEnumBak getValueByName(String name) {
        ChainEnumBak[] values = values();
        for (ChainEnumBak value : values) {
            if (value.name().equals(name)) {
                return value;
            }
        }
 
        return null;
    }
}