-
Notifications
You must be signed in to change notification settings - Fork 22
/
exported.go
33 lines (29 loc) · 1.34 KB
/
exported.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
32
33
package exported
import (
sdkmath "cosmossdk.io/math"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
stratos "github.com/stratosnet/stratos-chain/types"
)
// ResourceNodeI expected resource node functions
type ResourceNodeI interface {
IsSuspended() bool // whether the node is jailed
GetMoniker() string // moniker of the node
GetStatus() stakingtypes.BondStatus // status of the node
GetPubKey() cryptotypes.PubKey // pubkey of the node
GetNetworkAddr() stratos.SdsAddress // network address of the node
GetTokens() sdkmath.Int // deposit tokens of the node
GetOwnerAddr() sdk.AccAddress // owner address of the node
GetNodeType() string // node type
}
// MetaNodeI expected indexing node functions
type MetaNodeI interface {
IsSuspended() bool // whether the node is jailed
GetMoniker() string // moniker of the node
GetStatus() stakingtypes.BondStatus // status of the node
GetPubKey() cryptotypes.PubKey // pubkey of the node
GetNetworkAddr() stratos.SdsAddress // network address of the node
GetTokens() sdkmath.Int // deposit tokens of the node
GetOwnerAddr() sdk.AccAddress // owner address of the node
}