Skip to content

Commit

Permalink
polish(api): expose filReserveDisbursed via CirculatingSupply API
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Apr 16, 2021
1 parent f97784a commit c118415
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions api/api_full.go
Original file line number Diff line number Diff line change
Expand Up @@ -999,11 +999,12 @@ type DealCollateralBounds struct {
}

type CirculatingSupply struct {
FilVested abi.TokenAmount
FilMined abi.TokenAmount
FilBurnt abi.TokenAmount
FilLocked abi.TokenAmount
FilCirculating abi.TokenAmount
FilVested abi.TokenAmount
FilMined abi.TokenAmount
FilBurnt abi.TokenAmount
FilLocked abi.TokenAmount
FilCirculating abi.TokenAmount
FilReserveDisbursed abi.TokenAmount
}

type MiningBaseInfo struct {
Expand Down
11 changes: 6 additions & 5 deletions chain/stmgr/stmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1279,11 +1279,12 @@ func (sm *StateManager) GetVMCirculatingSupplyDetailed(ctx context.Context, heig
}

return api.CirculatingSupply{
FilVested: filVested,
FilMined: filMined,
FilBurnt: filBurnt,
FilLocked: filLocked,
FilCirculating: ret,
FilVested: filVested,
FilMined: filMined,
FilBurnt: filBurnt,
FilLocked: filLocked,
FilCirculating: ret,
FilReserveDisbursed: filReserveDisbursed,
}, nil
}

Expand Down

0 comments on commit c118415

Please sign in to comment.