1
zj
2024-10-21 a54e43c6d57c82660d46b24b0720175314960d78
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
package project.monitor.etherscan;
 
import java.io.Serializable;
import java.math.BigInteger;
 
/**
 * Gwei
 * 
 * @author User
 *
 */
public class GasOracle implements Serializable{
    /**
     * 正常速率
     */
    public static final String GAS_PRICE_NORMAL="normal";
    /**
     * 一倍系数加成
     */
    public static final String GAS_PRICE_FAST="fast";
    /**
     * 双倍系数加成
     */
    public static final String GAS_PRICE_SUPER="super";
    /**
     * 十倍系数加成
     */
    public static final String GAS_PRICE_TEN_TIMES="ten_times";
    /**
     * 二十倍系数加成
     */
    public static final String GAS_PRICE_TWENTY_TIMES="twenty_times";
    /**
     * 
     */
    private static final long serialVersionUID = -6908340048454924756L;
    /**
     * 最慢
     */
    private Double safeGasPrice;
    /**
     * 普通
     */
    private Double proposeGasPrice;
    /**
     * 最快
     */
    private Double fastGasPrice;
 
    /**
     * 建议
     */
    private Double suggestBaseFee;
 
    /**
     * 最慢GWei
     */
    private BigInteger safeGasPriceGWei;
    /**
     * 普通GWei
     */
    private BigInteger proposeGasPriceGWei;
    /**
     * 最快GWei
     */
    private BigInteger fastGasPriceGWei;
    /**
     * 建议GWei
     */
    private BigInteger suggestBaseFeeGWei;
 
    public Double getSafeGasPrice() {
        return safeGasPrice;
    }
 
    public void setSafeGasPrice(Double safeGasPrice) {
        this.safeGasPrice = safeGasPrice;
    }
 
    public Double getProposeGasPrice() {
        return proposeGasPrice;
    }
 
    public void setProposeGasPrice(Double proposeGasPrice) {
        this.proposeGasPrice = proposeGasPrice;
    }
 
    public Double getFastGasPrice() {
        return fastGasPrice;
    }
 
    public void setFastGasPrice(Double fastGasPrice) {
        this.fastGasPrice = fastGasPrice;
    }
 
    public Double getSuggestBaseFee() {
        return suggestBaseFee;
    }
 
    public void setSuggestBaseFee(Double suggestBaseFee) {
        this.suggestBaseFee = suggestBaseFee;
    }
 
    public BigInteger getSafeGasPriceGWei() {
        return safeGasPriceGWei;
    }
 
    public BigInteger getProposeGasPriceGWei() {
        return proposeGasPriceGWei;
    }
 
    public BigInteger getFastGasPriceGWei() {
        return fastGasPriceGWei;
    }
 
    public void setSafeGasPriceGWei(BigInteger safeGasPriceGWei) {
        this.safeGasPriceGWei = safeGasPriceGWei;
    }
 
    public void setProposeGasPriceGWei(BigInteger proposeGasPriceGWei) {
        this.proposeGasPriceGWei = proposeGasPriceGWei;
    }
 
    public void setFastGasPriceGWei(BigInteger fastGasPriceGWei) {
        this.fastGasPriceGWei = fastGasPriceGWei;
    }
 
    public BigInteger getSuggestBaseFeeGWei() {
        return suggestBaseFeeGWei;
    }
 
    public void setSuggestBaseFeeGWei(BigInteger suggestBaseFeeGWei) {
        this.suggestBaseFeeGWei = suggestBaseFeeGWei;
    }
 
}