cosmos / relayer-archive

An example of a server side IBC relayer to be used for Game of Zones and beyond
56 stars 31 forks source link

Redefine (c *Chain) Msg* functions on PathEnd #47

Closed jackzampolin closed 4 years ago

jackzampolin commented 4 years ago

Currently all the msg creation functions are defined on the Chain type. Initially this decision was made because I expected to have to query data during message construction. The architecture I've ended up with avoids this to allow for more flexibility in defining where proofs come from. We should redefine these functions as follows:

// Now
func (src *Chain) Msg*(dst *Chain, args...) sdk.Msg {}

// New
func (src PathEnd) Msg*(dst PathEnd, args...) sdk.Msg {}
jackzampolin commented 4 years ago

This is complete in #63