forked from crypto-com/chain-indexing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_msg_ibc_timeout_on_close.go
63 lines (52 loc) · 1.67 KB
/
create_msg_ibc_timeout_on_close.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package command
import (
entity_event "github.com/WilliamXieCrypto/chain-indexing/entity/event"
"github.com/WilliamXieCrypto/chain-indexing/usecase/event"
ibc_model "github.com/WilliamXieCrypto/chain-indexing/usecase/model/ibc"
)
type CreateMsgIBCTimeoutOnClose struct {
msgCommonParams event.MsgCommonParams
params ibc_model.MsgTimeoutOnCloseParams
}
func NewCreateMsgIBCTimeoutOnClose(
msgCommonParams event.MsgCommonParams,
params ibc_model.MsgTimeoutOnCloseParams,
) *CreateMsgIBCTimeoutOnClose {
return &CreateMsgIBCTimeoutOnClose{
msgCommonParams,
params,
}
}
func (*CreateMsgIBCTimeoutOnClose) Name() string {
return "CreateMsgIBCTimeoutOnClose"
}
func (*CreateMsgIBCTimeoutOnClose) Version() int {
return 1
}
func (cmd *CreateMsgIBCTimeoutOnClose) Exec() (entity_event.Event, error) {
event := event.NewMsgIBCTimeoutOnClose(cmd.msgCommonParams, cmd.params)
return event, nil
}
type CreateMsgAlreadyRelayedIBCTimeoutOnClose struct {
msgCommonParams event.MsgCommonParams
params ibc_model.MsgTimeoutOnCloseParams
}
func NewCreateMsgAlreadyRelayedIBCTimeoutOnClose(
msgCommonParams event.MsgCommonParams,
params ibc_model.MsgTimeoutOnCloseParams,
) *CreateMsgAlreadyRelayedIBCTimeoutOnClose {
return &CreateMsgAlreadyRelayedIBCTimeoutOnClose{
msgCommonParams,
params,
}
}
func (*CreateMsgAlreadyRelayedIBCTimeoutOnClose) Name() string {
return "CreateMsgAlreadyRelayedIBCTimeoutOnClose"
}
func (*CreateMsgAlreadyRelayedIBCTimeoutOnClose) Version() int {
return 1
}
func (cmd *CreateMsgAlreadyRelayedIBCTimeoutOnClose) Exec() (entity_event.Event, error) {
event := event.NewMsgIBCTimeoutOnClose(cmd.msgCommonParams, cmd.params)
return event, nil
}