- IBC Hooks
- IBC Hooks Acknowledge Callback
- After
ForwardMsg
is executed:- The request will be saved in the contract storage
INITIATED_REQUESTS
. SubMsg
that containsMsgTransfer
will be executed.
- The request will be saved in the contract storage
- After
MsgTransferResponse
is retrieved by theReply
ofSubMsg
:- If the reply means
ok
:- The request will be saved in the contract storage
PENDING_REQUESTS
. - The request will be removed from the contract storage
INITIATED_REQUESTS
.
- The request will be saved in the contract storage
- If the reply means
err
:- The request will be removed from the contract storage
INITIATED_REQUESTS
.
- The request will be removed from the contract storage
- If the reply means
- After
AcknowledgePacket
is retrieved by theSudoMsg
of IBC Hooks:- If the packet means
success: true
:- The request will be removed from the contract storage
PENDING_REQUESTS
.
- The request will be removed from the contract storage
- If the packet means
success: false
:- The request will be saved in the contract storage
FAILED_REQUESTS
. - The request will be removed from the contract storage
PENDING_REQUESTS
.
- The request will be saved in the contract storage
- If the packet means
The owner of the address emergency_claimer
can claim the tokens of requests that are in FAILED_REQUESTS
.
- After
ClaimFailedRequestMsg
is executed:SubMsg
that containsMsgSend
will be executed.
- After
MsgSendResponse
is retrieved by theReply
ofSubMsg
:- If the reply means
ok
:- The request will be removed from the contract storage
FAILED_REQUESTS
.
- The request will be removed from the contract storage
- If the reply means