add ibc2.md
This commit is contained in:
parent
83ce0ed1f9
commit
9be287ced1
|
@ -0,0 +1,31 @@
|
|||
# IBC Spec
|
||||
|
||||
## MVP2
|
||||
|
||||
`IBCUpdate` is added, making it able to prove the header.
|
||||
|
||||
### IBC Module
|
||||
|
||||
```golang
|
||||
type IBCOutMsg struct {
|
||||
IBCTransfer
|
||||
}
|
||||
|
||||
type IBCInMsg struct {
|
||||
IBCTransfer
|
||||
Proof merkle.IAVLProof
|
||||
FromChainID string
|
||||
FromChainHeight uint64
|
||||
}
|
||||
|
||||
// update sync state of other blockchain
|
||||
type IBCUpdateMsg struct {
|
||||
Header tm.Header
|
||||
Commit tm.Commit
|
||||
}
|
||||
|
||||
type IBCTransfer struct {
|
||||
Destination sdk.Address
|
||||
Coins sdk.Coins
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue