Skip to content

Commit

Permalink
Merge pull request #66 from neutron-org/feat/whitelist-escrow-address…
Browse files Browse the repository at this point in the history
…-ibc-query

feat: add TransferEscrowAddress query msg #NTRN-392
  • Loading branch information
pr0n00gler authored Sep 18, 2024
2 parents 2e0a59f + 788709d commit 44f1d4a
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 44f1d4a

Please sign in to comment.