IBC-Hooks
Initiate a contract call with an incoming IBC token transfer using IBC hooks
Overview
ICS20 Packet Structure
{
//... other ibc fields omitted for example
"data": {
"denom": "denom on counterparty chain (e.g. uatom)", // will be transformed to the local denom (ibc/...)
"amount": "1000",
"sender": "addr on counterparty chain", // will be ignored and shown to the contract as a null sender (cannot be verifed over IBC)
"receiver": "secret1contractAddr",
"memo": {
"wasm": {
"contract": "secret1contractAddr",
"msg": {
"raw_message_fields": "raw_message_data"
}
}
}
}
}ICS20 Packet Execution Flow
Auto-wrapping of SNIP-20 Example
Ack callbacks
Ack callback implementation
Last updated
Was this helpful?