From 8f4c4268ba054eea3c571815afd2b33abebf6b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Tue, 10 Jan 2023 22:47:37 +0000 Subject: [PATCH] cleanup. --- api/api_full.go | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/api/api_full.go b/api/api_full.go index 3d4812a2f..41fbe6b3e 100644 --- a/api/api_full.go +++ b/api/api_full.go @@ -27,7 +27,7 @@ import ( abinetwork "github.com/filecoin-project/go-state-types/network" apitypes "github.com/filecoin-project/lotus/api/types" - builtinactors "github.com/filecoin-project/lotus/chain/actors/builtin" + "github.com/filecoin-project/lotus/chain/actors/builtin" lminer "github.com/filecoin-project/lotus/chain/actors/builtin/miner" "github.com/filecoin-project/lotus/chain/actors/builtin/power" "github.com/filecoin-project/lotus/chain/types" @@ -1231,7 +1231,7 @@ type CirculatingSupply struct { type MiningBaseInfo struct { MinerPower types.BigInt NetworkPower types.BigInt - Sectors []builtinactors.ExtendedSectorInfo + Sectors []builtin.ExtendedSectorInfo WorkerKey address.Address SectorSize abi.SectorSize PrevBeaconEntry types.BeaconEntry @@ -1248,7 +1248,7 @@ type BlockTemplate struct { Messages []*types.SignedMessage Epoch abi.ChainEpoch Timestamp uint64 - WinningPoStProof []builtinactors.PoStProof + WinningPoStProof []builtin.PoStProof } type DataSize struct { @@ -1329,14 +1329,12 @@ type PruneOpts struct { } type EthTxReceipt struct { - TransactionHash ethtypes.EthHash `json:"transactionHash"` - TransactionIndex ethtypes.EthUint64 `json:"transactionIndex"` - BlockHash ethtypes.EthHash `json:"blockHash"` - BlockNumber ethtypes.EthUint64 `json:"blockNumber"` - From ethtypes.EthAddress `json:"from"` - To *ethtypes.EthAddress `json:"to"` - // Logs - // LogsBloom + TransactionHash ethtypes.EthHash `json:"transactionHash"` + TransactionIndex ethtypes.EthUint64 `json:"transactionIndex"` + BlockHash ethtypes.EthHash `json:"blockHash"` + BlockNumber ethtypes.EthUint64 `json:"blockNumber"` + From ethtypes.EthAddress `json:"from"` + To *ethtypes.EthAddress `json:"to"` StateRoot ethtypes.EthHash `json:"root"` Status ethtypes.EthUint64 `json:"status"` ContractAddress *ethtypes.EthAddress `json:"contractAddress"`