-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
31 lines (29 loc) · 996 Bytes
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package api
import (
"github.com/lasthyphen/beacongo/api/admin"
"github.com/lasthyphen/beacongo/api/health"
"github.com/lasthyphen/beacongo/api/info"
"github.com/lasthyphen/beacongo/api/ipcs"
"github.com/lasthyphen/beacongo/api/keystore"
"github.com/lasthyphen/beacongo/indexer"
"github.com/lasthyphen/beacongo/vms/avm"
"github.com/lasthyphen/beacongo/vms/platformvm"
"github.com/lasthyphen/coreth/plugin/evm"
)
// Issues API calls to a node
// TODO: byzantine api. check if appropiate. improve implementation.
type Client interface {
PChainAPI() platformvm.Client
XChainAPI() avm.Client
XChainWalletAPI() avm.WalletClient
CChainAPI() evm.Client
CChainEthAPI() EthClient // ethclient websocket wrapper that adds mutexed calls, and lazy conn init (on first call)
InfoAPI() info.Client
HealthAPI() health.Client
IpcsAPI() ipcs.Client
KeystoreAPI() keystore.Client
AdminAPI() admin.Client
PChainIndexAPI() indexer.Client
CChainIndexAPI() indexer.Client
// TODO add methods
}