Closed uditvira closed 1 year ago
Main points
Documenting further for clarity.
There are two distinct settings where timeouts are required.
We will call these ICA timeouts
Example:
let stride_submit_msg = NeutronMsg::submit_tx(
controller_conn_id,
INTERCHAIN_ACCOUNT_ID.to_string(),
vec![protobuf.clone()],
"".to_string(),
timeout,
fee,
);
We will call these IBC transfer timeouts
Example:
let stride_msg = MsgTransfer {
source_port: "transfer".to_string(),
source_channel: gaia_stride_channel,
token: Some(coin),
sender: address,
receiver: autopilot_receiver,
timeout_height: Some(Height {
revision_number: 3,
revision_height: 1000,
}),
timeout_timestamp: 0,
};
"timeoutHeight": { "revisionNumber": "0", "revisionHeight": "0"},
1689816468825353728
is Thu Jul 20 2023 01:27:48 GMT+0000
). We can use current block timestamp + some timeout interval.
https://docs.neutron.org/tutorials/cosmwasm_ica/#timeout