/
FeeEstimator.go
64 lines (50 loc) · 1.44 KB
/
FeeEstimator.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
55
56
57
58
59
60
61
62
63
64
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
common "github.com/incognitochain/incognito-chain/common"
mock "github.com/stretchr/testify/mock"
types "github.com/incognitochain/incognito-chain/blockchain/types"
)
// FeeEstimator is an autogenerated mock type for the FeeEstimator type
type FeeEstimator struct {
mock.Mock
}
// EstimateFee provides a mock function with given fields: numBlocks, tokenId
func (_m *FeeEstimator) EstimateFee(numBlocks uint64, tokenId *common.Hash) (uint64, error) {
ret := _m.Called(numBlocks, tokenId)
var r0 uint64
if rf, ok := ret.Get(0).(func(uint64, *common.Hash) uint64); ok {
r0 = rf(numBlocks, tokenId)
} else {
r0 = ret.Get(0).(uint64)
}
var r1 error
if rf, ok := ret.Get(1).(func(uint64, *common.Hash) error); ok {
r1 = rf(numBlocks, tokenId)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetLimitFeeForNativeToken provides a mock function with given fields:
func (_m *FeeEstimator) GetLimitFeeForNativeToken() uint64 {
ret := _m.Called()
var r0 uint64
if rf, ok := ret.Get(0).(func() uint64); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(uint64)
}
return r0
}
// RegisterBlock provides a mock function with given fields: block
func (_m *FeeEstimator) RegisterBlock(block *types.ShardBlock) error {
ret := _m.Called(block)
var r0 error
if rf, ok := ret.Get(0).(func(*types.ShardBlock) error); ok {
r0 = rf(block)
} else {
r0 = ret.Error(0)
}
return r0
}