Skip to content

Commit

Permalink
feat(ucs01-relay-api): added ForwardMemo struct
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed Jun 3, 2024
1 parent 596233b commit 937fbfc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cosmwasm/ucs01-relay-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ ethabi = { workspace = true }
serde-utils = { workspace = true }
thiserror = { workspace = true }
token-factory-api = { workspace = true }
serde = { workspace = true }
serde-json-wasm = { workspace = true }
11 changes: 11 additions & 0 deletions cosmwasm/ucs01-relay-api/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use cosmwasm_schema::cw_serde;
use cosmwasm_std::{Binary, Coin, HexBinary, IbcEndpoint, StdError, Uint128, Uint256};
use ethabi::{ParamType, Token};
use serde::{Deserialize, Serialize};

pub type GenericAck = Result<Binary, String>;

Expand Down Expand Up @@ -382,6 +383,16 @@ impl<'a> From<(&'a str, &IbcEndpoint)> for DenomOrigin<'a> {
}
}

#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
struct ForwardMemo {
receiver: String,
port: String,
channel: String,
timeout: Option<String>,
retries: Option<u32>,
next: Option<Box<ForwardMemo>>,
}

#[cfg(test)]
mod tests {
use cosmwasm_std::{Binary, IbcEndpoint, Uint128};
Expand Down

0 comments on commit 937fbfc

Please sign in to comment.