Skip to content

Commit

Permalink
add TransferEscrowAddress query msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joldie777 committed Sep 17, 2024
1 parent 2e0a59f commit 788709d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/grpc_querier/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ pub fn query(deps: Deps, _: Env, msg: QueryMsg) -> StdResult<Binary> {
Ok(to_json_binary(&transfer_querier.denom_trace(hash)?)?)
}

QueryMsg::TransferEscrowAddress {
port_id,
channel_id,
} => Ok(to_json_binary(
&transfer_querier.escrow_address(port_id, channel_id)?,
)?),

QueryMsg::IbcClientState { client_id } => {
Ok(to_json_binary(&client_querier.client_state(client_id)?)?)
}
Expand Down
4 changes: 4 additions & 0 deletions contracts/grpc_querier/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ pub enum QueryMsg {
TransferDenomTrace {
hash: String,
},
TransferEscrowAddress {
port_id: String,
channel_id: String,
},
IbcClientState {
client_id: String,
},
Expand Down

0 comments on commit 788709d

Please sign in to comment.