Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwartz10 committed Jan 19, 2024
1 parent b153010 commit 61d9266
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 57 deletions.
107 changes: 53 additions & 54 deletions mock/FEVMQueries.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/agent_queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func (q *fevmQueries) AgentVersion(ctx context.Context, agentAddr common.Address
return agentVersion, deployerVersion, nil
}

func (q *fevmQueries) AgentCollateralStats(ctx context.Context, agentAddr common.Address, blockNumber *big.Int) (terminate.PreviewAgentTerminationSummary, error) {
func (q *fevmQueries) PreviewAgentTerminationQuick(ctx context.Context, agentAddr common.Address) (terminate.PreviewAgentTerminationSummary, error) {
agentID, err := q.AgentID(ctx, agentAddr)
if err != nil {
return terminate.PreviewAgentTerminationSummary{}, err
Expand All @@ -395,7 +395,7 @@ func (q *fevmQueries) AgentCollateralStats(ctx context.Context, agentAddr common
vestingBal.Add(vestingBal, miner.Vesting)
}

agentLiquidFIL, err := q.AgentLiquidAssets(ctx, agentAddr, blockNumber)
agentLiquidFIL, err := q.AgentLiquidAssets(ctx, agentAddr, nil)
if err != nil {
return terminate.PreviewAgentTerminationSummary{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type FEVMQueries interface {
AgentPrincipal(ctx context.Context, agentAddr common.Address, blockNumber *big.Int) (*big.Int, error)
AgentInterestOwed(ctx context.Context, agentAddr common.Address, tsk *filtypes.TipSet) (*big.Int, error)
AgentFaultyEpochStart(ctx context.Context, agentAddr common.Address) (*big.Int, error)
AgentCollateralStats(ctx context.Context, agentAddr common.Address, blockNumber *big.Int) (terminate.PreviewAgentTerminationSummary, error)
PreviewAgentTermination(ctx context.Context, agentAddr common.Address, tipset *filtypes.TipSet) (terminate.PreviewAgentTerminationSummary, error)
PreviewAgentTerminationQuick(ctx context.Context, agentAddr common.Address) (terminate.PreviewAgentTerminationSummary, error)
// agent factory methods
AgentFactoryAgentCount(ctx context.Context, blockNumber *big.Int) (*big.Int, error)
// infinity pool methods
Expand Down

0 comments on commit 61d9266

Please sign in to comment.