github.com/InjectiveLabs/sdk-go@v1.53.0/chain/wasmx/types/exec_msgs.go (about) 1 package types 2 3 import ( 4 "encoding/json" 5 ) 6 7 func NewBeginBlockerExecMsg() ([]byte, error) { 8 // Construct Exec message 9 beginBlocker := CWBeginBlockerExecMsg{BeginBlockerMsg: &BeginBlockerMsg{}} 10 11 // nolint:all 12 // execMsg := []byte(`{"begin_blocker":{}}`) 13 execMsg, err := json.Marshal(beginBlocker) 14 if err != nil { 15 return nil, err 16 } 17 18 return execMsg, nil 19 } 20 21 type CWBeginBlockerExecMsg struct { 22 BeginBlockerMsg *BeginBlockerMsg `json:"begin_blocker,omitempty"` 23 } 24 25 type BeginBlockerMsg struct { 26 }