@@ -35,15 +35,11 @@ import (
35
35
// * Generate openrpc blobs
36
36
37
37
type Gateway interface {
38
- MpoolPending (context.Context , types.TipSetKey ) ([]* types.SignedMessage , error )
39
38
ChainGetBlock (context.Context , cid.Cid ) (* types.BlockHeader , error )
40
- MinerGetBaseInfo (context.Context , address.Address , abi.ChainEpoch , types.TipSetKey ) (* MiningBaseInfo , error )
41
- StateMinerSectorCount (context.Context , address.Address , types.TipSetKey ) (MinerSectors , error )
42
- GasEstimateGasPremium (context.Context , uint64 , address.Address , int64 , types.TipSetKey ) (types.BigInt , error )
43
- StateReplay (context.Context , types.TipSetKey , cid.Cid ) (* InvocResult , error )
44
39
ChainHasObj (context.Context , cid.Cid ) (bool , error )
45
40
ChainPutObj (context.Context , blocks.Block ) error
46
41
ChainHead (ctx context.Context ) (* types.TipSet , error )
42
+ ChainGetEvents (context.Context , cid.Cid ) ([]types.Event , error )
47
43
ChainGetParentMessages (context.Context , cid.Cid ) ([]Message , error )
48
44
ChainGetParentReceipts (context.Context , cid.Cid ) ([]* types.MessageReceipt , error )
49
45
ChainGetMessagesInTipset (context.Context , types.TipSetKey ) ([]Message , error )
@@ -56,15 +52,22 @@ type Gateway interface {
56
52
ChainNotify (context.Context ) (<- chan []* HeadChange , error )
57
53
ChainReadObj (context.Context , cid.Cid ) ([]byte , error )
58
54
ChainGetGenesis (context.Context ) (* types.TipSet , error )
55
+
56
+ GasEstimateGasPremium (context.Context , uint64 , address.Address , int64 , types.TipSetKey ) (types.BigInt , error )
59
57
GasEstimateMessageGas (ctx context.Context , msg * types.Message , spec * MessageSendSpec , tsk types.TipSetKey ) (* types.Message , error )
58
+
60
59
MpoolGetNonce (ctx context.Context , addr address.Address ) (uint64 , error )
60
+ MpoolPending (context.Context , types.TipSetKey ) ([]* types.SignedMessage , error )
61
61
MpoolPush (ctx context.Context , sm * types.SignedMessage ) (cid.Cid , error )
62
+
62
63
MsigGetAvailableBalance (ctx context.Context , addr address.Address , tsk types.TipSetKey ) (types.BigInt , error )
63
64
MsigGetPending (context.Context , address.Address , types.TipSetKey ) ([]* MsigTransaction , error )
64
65
MsigGetVested (ctx context.Context , addr address.Address , start types.TipSetKey , end types.TipSetKey ) (types.BigInt , error )
65
66
MsigGetVestingSchedule (ctx context.Context , addr address.Address , tsk types.TipSetKey ) (MsigVesting , error )
67
+
66
68
StateAccountKey (ctx context.Context , addr address.Address , tsk types.TipSetKey ) (address.Address , error )
67
69
StateCall (ctx context.Context , msg * types.Message , tsk types.TipSetKey ) (* InvocResult , error )
70
+ StateReplay (context.Context , types.TipSetKey , cid.Cid ) (* InvocResult , error )
68
71
StateDealProviderCollateralBounds (ctx context.Context , size abi.PaddedPieceSize , verified bool , tsk types.TipSetKey ) (DealCollateralBounds , error )
69
72
StateDecodeParams (ctx context.Context , toAddr address.Address , method abi.MethodNum , params []byte , tsk types.TipSetKey ) (interface {}, error )
70
73
StateGetActor (ctx context.Context , actor address.Address , ts types.TipSetKey ) (* types.Actor , error )
@@ -83,34 +86,33 @@ type Gateway interface {
83
86
StateMinerDeadlines (context.Context , address.Address , types.TipSetKey ) ([]Deadline , error )
84
87
StateMinerProvingDeadline (ctx context.Context , addr address.Address , tsk types.TipSetKey ) (* dline.Info , error )
85
88
StateMinerPower (context.Context , address.Address , types.TipSetKey ) (* MinerPower , error )
89
+ StateMinerSectorCount (context.Context , address.Address , types.TipSetKey ) (MinerSectors , error )
86
90
StateNetworkName (context.Context ) (dtypes.NetworkName , error )
87
91
StateNetworkVersion (context.Context , types.TipSetKey ) (apitypes.NetworkVersion , error )
88
92
StateSectorGetInfo (ctx context.Context , maddr address.Address , n abi.SectorNumber , tsk types.TipSetKey ) (* miner.SectorOnChainInfo , error )
89
93
StateVerifierStatus (ctx context.Context , addr address.Address , tsk types.TipSetKey ) (* abi.StoragePower , error )
90
94
StateVerifiedClientStatus (ctx context.Context , addr address.Address , tsk types.TipSetKey ) (* abi.StoragePower , error )
91
95
StateSearchMsg (ctx context.Context , from types.TipSetKey , msg cid.Cid , limit abi.ChainEpoch , allowReplaced bool ) (* MsgLookup , error )
92
96
StateWaitMsg (ctx context.Context , cid cid.Cid , confidence uint64 , limit abi.ChainEpoch , allowReplaced bool ) (* MsgLookup , error )
97
+
98
+ MinerGetBaseInfo (context.Context , address.Address , abi.ChainEpoch , types.TipSetKey ) (* MiningBaseInfo , error )
99
+
93
100
WalletBalance (context.Context , address.Address ) (types.BigInt , error )
94
- Version (context.Context ) (APIVersion , error )
95
- Discover (context.Context ) (apitypes.OpenRPCDocument , error )
96
101
97
102
EthAddressToFilecoinAddress (ctx context.Context , ethAddress ethtypes.EthAddress ) (address.Address , error )
98
103
FilecoinAddressToEthAddress (ctx context.Context , p jsonrpc.RawParams ) (ethtypes.EthAddress , error )
99
104
EthAccounts (ctx context.Context ) ([]ethtypes.EthAddress , error )
100
105
EthBlockNumber (ctx context.Context ) (ethtypes.EthUint64 , error )
101
- EthGetBlockTransactionCountByNumber (ctx context.Context , blkNum ethtypes. EthUint64 ) (ethtypes.EthUint64 , error )
106
+ EthGetBlockTransactionCountByNumber (ctx context.Context , blkNum string ) (ethtypes.EthUint64 , error )
102
107
EthGetBlockTransactionCountByHash (ctx context.Context , blkHash ethtypes.EthHash ) (ethtypes.EthUint64 , error )
103
108
EthGetBlockByHash (ctx context.Context , blkHash ethtypes.EthHash , fullTxInfo bool ) (ethtypes.EthBlock , error )
104
109
EthGetBlockByNumber (ctx context.Context , blkNum string , fullTxInfo bool ) (ethtypes.EthBlock , error )
105
110
EthGetTransactionByHash (ctx context.Context , txHash * ethtypes.EthHash ) (* ethtypes.EthTx , error )
106
- EthGetTransactionByHashLimited (ctx context.Context , txHash * ethtypes.EthHash , limit abi.ChainEpoch ) (* ethtypes.EthTx , error )
107
111
EthGetTransactionHashByCid (ctx context.Context , cid cid.Cid ) (* ethtypes.EthHash , error )
108
112
EthGetMessageCidByTransactionHash (ctx context.Context , txHash * ethtypes.EthHash ) (* cid.Cid , error )
109
113
EthGetTransactionCount (ctx context.Context , sender ethtypes.EthAddress , blkParam ethtypes.EthBlockNumberOrHash ) (ethtypes.EthUint64 , error )
110
- EthGetTransactionReceipt (ctx context.Context , txHash ethtypes.EthHash ) (* EthTxReceipt , error )
111
- EthGetTransactionReceiptLimited (ctx context.Context , txHash ethtypes.EthHash , limit abi.ChainEpoch ) (* EthTxReceipt , error )
112
- EthGetBlockReceipts (ctx context.Context , blkParam ethtypes.EthBlockNumberOrHash ) ([]* EthTxReceipt , error )
113
- EthGetBlockReceiptsLimited (ctx context.Context , blkParam ethtypes.EthBlockNumberOrHash , limit abi.ChainEpoch ) ([]* EthTxReceipt , error )
114
+ EthGetTransactionReceipt (ctx context.Context , txHash ethtypes.EthHash ) (* ethtypes.EthTxReceipt , error )
115
+ EthGetBlockReceipts (ctx context.Context , blkParam ethtypes.EthBlockNumberOrHash ) ([]* ethtypes.EthTxReceipt , error )
114
116
EthGetCode (ctx context.Context , address ethtypes.EthAddress , blkParam ethtypes.EthBlockNumberOrHash ) (ethtypes.EthBytes , error )
115
117
EthGetStorageAt (ctx context.Context , address ethtypes.EthAddress , position ethtypes.EthBytes , blkParam ethtypes.EthBlockNumberOrHash ) (ethtypes.EthBytes , error )
116
118
EthGetBalance (ctx context.Context , address ethtypes.EthAddress , blkParam ethtypes.EthBlockNumberOrHash ) (ethtypes.EthBigInt , error )
@@ -143,8 +145,10 @@ type Gateway interface {
143
145
EthGetTransactionByBlockHashAndIndex (ctx context.Context , blkHash ethtypes.EthHash , index ethtypes.EthUint64 ) (* ethtypes.EthTx , error )
144
146
GetActorEventsRaw (ctx context.Context , filter * types.ActorEventFilter ) ([]* types.ActorEvent , error )
145
147
SubscribeActorEventsRaw (ctx context.Context , filter * types.ActorEventFilter ) (<- chan * types.ActorEvent , error )
146
- ChainGetEvents (context.Context , cid.Cid ) ([]types.Event , error )
147
148
148
149
F3GetCertificate (ctx context.Context , instance uint64 ) (* certs.FinalityCertificate , error )
149
150
F3GetLatestCertificate (ctx context.Context ) (* certs.FinalityCertificate , error )
151
+
152
+ Version (context.Context ) (APIVersion , error )
153
+ Discover (context.Context ) (apitypes.OpenRPCDocument , error )
150
154
}
0 commit comments