in progress
This commit is contained in:
parent
2217aaf54f
commit
259400cbda
|
@ -14,18 +14,18 @@ The initial implementation of IBC will include just enough for simple coin trans
|
|||
type IBCTransferPacket struct {
|
||||
DestAddr sdk.Address
|
||||
Coins sdk.Coins
|
||||
SrcChain string
|
||||
DestChain string
|
||||
}
|
||||
|
||||
// Implements sdk.Msg
|
||||
type IBCTransferMsg struct {
|
||||
IBCTransferPacket
|
||||
DestChain string
|
||||
}
|
||||
|
||||
// Implements sdk.Msg
|
||||
type IBCReceiveMsg struct {
|
||||
IBCTransferPacket
|
||||
SrcChain string
|
||||
}
|
||||
|
||||
// Internal API
|
||||
|
|
|
@ -11,28 +11,23 @@ IBC module will store its own router for handling custom incoming msgs. `IBCPush
|
|||
```golang
|
||||
// User facing API
|
||||
|
||||
type IBCTransferData struct {
|
||||
SrcAddr sdk.Address
|
||||
type IBCTransferPacket struct {
|
||||
DestAddr sdk.Address
|
||||
Coins sdk.Coins
|
||||
}
|
||||
|
||||
// Implements ibc.PacketData
|
||||
type IBCTransferPacket struct {
|
||||
IBCTransferData
|
||||
}
|
||||
|
||||
// Implements ibc.PacketData
|
||||
type IBCReceivePacket struct {
|
||||
IBCTransferData
|
||||
}
|
||||
|
||||
type Packet struct {
|
||||
Data PacketData
|
||||
SrcChain string
|
||||
SrcChain string
|
||||
DestChain string
|
||||
}
|
||||
|
||||
// Implements sdk.Msg
|
||||
type IBCTransferMsg struct {
|
||||
IBCTransferPacket
|
||||
}
|
||||
|
||||
// Implements sdk.Msg
|
||||
type IBCReceiveMsg struct {
|
||||
IBCTransferPacket
|
||||
}
|
||||
|
||||
// Internal API
|
||||
|
||||
func NewHandler(dispatcher Dispatcher, ibcm IBCMapper) sdk.Handler
|
||||
|
|
Loading…
Reference in New Issue