|
3 | 3 | ## Wasm Hooks
|
4 | 4 |
|
5 | 5 | The wasm hook is an IBC middleware which is used to allow ICS-20 token transfers to initiate contract calls.
|
6 |
| -This allows cross-chain contract calls, that involve token movement. |
7 |
| -This is useful for a variety of usecases. |
| 6 | +This allows cross-chain contract calls that involve token movement. |
| 7 | +This is useful for a variety of use cases. |
8 | 8 | One of primary importance is cross-chain swaps, which is an extremely powerful primitive.
|
9 | 9 |
|
10 | 10 | The mechanism enabling this is a `memo` field on every ICS20 or ICS721 transfer packet as of [IBC v3.4.0](https://medium.com/the-interchain-foundation/moving-beyond-simple-token-transfers-d42b2b1dc29b).
|
@@ -105,17 +105,17 @@ If an ICS20 packet is directed towards wasmhooks, and is formatted incorrectly,
|
105 | 105 |
|
106 | 106 | ### Execution flow
|
107 | 107 |
|
108 |
| -Pre wasm hooks: |
| 108 | +Pre Wasm hooks: |
109 | 109 |
|
110 |
| -* Ensure the incoming IBC packet is cryptogaphically valid |
| 110 | +* Ensure the incoming IBC packet is cryptographically valid |
111 | 111 | * Ensure the incoming IBC packet is not timed out.
|
112 | 112 |
|
113 | 113 | In Wasm hooks, pre packet execution:
|
114 | 114 |
|
115 | 115 | * Ensure the packet is correctly formatted (as defined above)
|
116 | 116 | * Edit the receiver to be the hardcoded IBC module account
|
117 | 117 |
|
118 |
| -In wasm hooks, post packet execution: |
| 118 | +In Wasm hooks, post packet execution: |
119 | 119 |
|
120 | 120 | * Construct wasm message as defined before
|
121 | 121 | * Execute wasm message
|
@@ -172,7 +172,7 @@ pub enum IBCLifecycleComplete {
|
172 | 172 | sequence: u64,
|
173 | 173 | /// String encoded version of the ack as seen by OnAcknowledgementPacket(..)
|
174 | 174 | ack: String,
|
175 |
| - /// Weather an ack is a success of failure according to the transfer spec |
| 175 | + /// Whether an ack is a success of failure according to the transfer spec |
176 | 176 | success: bool,
|
177 | 177 | },
|
178 | 178 | #[serde(rename = "ibc_timeout")]
|
|
0 commit comments