-
Notifications
You must be signed in to change notification settings - Fork 5
/
reactions.go
41 lines (34 loc) · 876 Bytes
/
reactions.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
34
35
36
37
38
39
40
41
package types
import (
reactionstypes "github.com/desmos-labs/desmos/v6/x/reactions/types"
)
type Reaction struct {
reactionstypes.Reaction
Height int64
}
func NewReaction(reaction reactionstypes.Reaction, height int64) Reaction {
return Reaction{
Reaction: reaction,
Height: height,
}
}
type RegisteredReaction struct {
reactionstypes.RegisteredReaction
Height int64
}
func NewRegisteredReaction(reaction reactionstypes.RegisteredReaction, height int64) RegisteredReaction {
return RegisteredReaction{
RegisteredReaction: reaction,
Height: height,
}
}
type ReactionParams struct {
reactionstypes.SubspaceReactionsParams
Height int64
}
func NewReactionParams(params reactionstypes.SubspaceReactionsParams, height int64) ReactionParams {
return ReactionParams{
SubspaceReactionsParams: params,
Height: height,
}
}