forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpc.go
54 lines (41 loc) · 1.22 KB
/
rpc.go
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
package txmgr
import (
"context"
"math/big"
"time"
"github.com/ethereum/go-ethereum/log"
)
type SimpleTxmgrAPI struct {
mgr *SimpleTxManager
l log.Logger
}
func (a *SimpleTxmgrAPI) GetMinBaseFee(_ context.Context) *big.Int {
return a.mgr.GetMinBaseFee()
}
func (a *SimpleTxmgrAPI) SetMinBaseFee(_ context.Context, val *big.Int) {
a.mgr.SetMinBaseFee(val)
}
func (a *SimpleTxmgrAPI) GetMinPriorityFee(_ context.Context) *big.Int {
return a.mgr.GetMinPriorityFee()
}
func (a *SimpleTxmgrAPI) SetMinPriorityFee(_ context.Context, val *big.Int) {
a.mgr.SetMinPriorityFee(val)
}
func (a *SimpleTxmgrAPI) GetMinBlobFee(_ context.Context) *big.Int {
return a.mgr.GetMinBlobFee()
}
func (a *SimpleTxmgrAPI) SetMinBlobFee(_ context.Context, val *big.Int) {
a.mgr.SetMinBlobFee(val)
}
func (a *SimpleTxmgrAPI) GetFeeThreshold(_ context.Context) *big.Int {
return a.mgr.GetFeeThreshold()
}
func (a *SimpleTxmgrAPI) SetFeeThreshold(_ context.Context, val *big.Int) {
a.mgr.SetFeeThreshold(val)
}
func (a *SimpleTxmgrAPI) GetBumpFeeRetryTime(_ context.Context) time.Duration {
return a.mgr.GetBumpFeeRetryTime()
}
func (a *SimpleTxmgrAPI) SetBumpFeeRetryTime(_ context.Context, val time.Duration) {
a.mgr.SetBumpFeeRetryTime(val)
}