2019-07-24 01:13:56 +00:00
|
|
|
package impl
|
2019-07-08 19:07:16 +00:00
|
|
|
|
|
|
|
import (
|
2020-07-20 17:48:30 +00:00
|
|
|
"context"
|
|
|
|
|
2020-01-08 19:10:57 +00:00
|
|
|
logging "github.com/ipfs/go-log/v2"
|
2019-09-30 21:06:47 +00:00
|
|
|
|
2020-07-20 17:48:30 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
2020-03-19 02:31:53 +00:00
|
|
|
"github.com/filecoin-project/lotus/api"
|
2020-07-20 17:48:30 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/types"
|
2019-10-18 04:47:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/node/impl/client"
|
2020-03-19 02:31:53 +00:00
|
|
|
"github.com/filecoin-project/lotus/node/impl/common"
|
|
|
|
"github.com/filecoin-project/lotus/node/impl/full"
|
2019-11-08 20:11:56 +00:00
|
|
|
"github.com/filecoin-project/lotus/node/impl/market"
|
2019-10-18 04:47:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/node/impl/paych"
|
2019-07-08 19:07:16 +00:00
|
|
|
)
|
|
|
|
|
2019-07-23 17:27:45 +00:00
|
|
|
var log = logging.Logger("node")
|
|
|
|
|
2019-08-20 17:19:24 +00:00
|
|
|
type FullNodeAPI struct {
|
2020-03-19 02:31:53 +00:00
|
|
|
common.CommonAPI
|
2019-08-20 16:48:33 +00:00
|
|
|
full.ChainAPI
|
2019-09-16 13:46:05 +00:00
|
|
|
client.API
|
2019-08-20 16:48:33 +00:00
|
|
|
full.MpoolAPI
|
2020-07-20 17:48:30 +00:00
|
|
|
full.GasAPI
|
2019-11-08 17:15:38 +00:00
|
|
|
market.MarketAPI
|
2019-09-16 13:46:05 +00:00
|
|
|
paych.PaychAPI
|
2019-08-20 16:48:33 +00:00
|
|
|
full.StateAPI
|
2020-05-04 19:29:26 +00:00
|
|
|
full.MsigAPI
|
2019-08-20 16:48:33 +00:00
|
|
|
full.WalletAPI
|
2019-09-30 21:06:47 +00:00
|
|
|
full.SyncAPI
|
2019-08-20 18:05:17 +00:00
|
|
|
}
|
|
|
|
|
2020-07-20 17:48:30 +00:00
|
|
|
// MpoolEstimateGasPrice estimates gas price
|
|
|
|
// Deprecated: used GasEstimateGasPrice instead
|
|
|
|
func (fa *FullNodeAPI) MpoolEstimateGasPrice(ctx context.Context, nblocksincl uint64, sender address.Address, limit int64, tsk types.TipSetKey) (types.BigInt, error) {
|
|
|
|
return fa.GasEstimateGasPrice(ctx, nblocksincl, sender, limit, tsk)
|
|
|
|
}
|
|
|
|
|
2019-08-20 17:19:24 +00:00
|
|
|
var _ api.FullNode = &FullNodeAPI{}
|