-
Notifications
You must be signed in to change notification settings - Fork 462
/
circulating_supply_mock.go
33 lines (26 loc) · 1.04 KB
/
circulating_supply_mock.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
package chain
import (
"context"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/venus/pkg/state/tree"
"github.com/filecoin-project/venus/venus-shared/types"
)
var _ ICirculatingSupplyCalcualtor = (*MockCirculatingSupplyCalculator)(nil)
type MockCirculatingSupplyCalculator struct {
}
func NewMockCirculatingSupplyCalculator() ICirculatingSupplyCalcualtor {
return &MockCirculatingSupplyCalculator{}
}
func (m MockCirculatingSupplyCalculator) GetCirculatingSupplyDetailed(ctx context.Context, height abi.ChainEpoch, st tree.Tree) (types.CirculatingSupply, error) {
return types.CirculatingSupply{
FilVested: abi.TokenAmount{},
FilMined: abi.TokenAmount{},
FilBurnt: abi.TokenAmount{},
FilLocked: abi.TokenAmount{},
FilCirculating: abi.TokenAmount{},
FilReserveDisbursed: abi.TokenAmount{},
}, nil
}
func (m MockCirculatingSupplyCalculator) GetFilVested(ctx context.Context, height abi.ChainEpoch) (abi.TokenAmount, error) {
return abi.TokenAmount{}, nil
}