diff --git a/Cargo.lock b/Cargo.lock index b0569575b7..c830106a05 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3974,7 +3974,7 @@ checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" [[package]] name = "namada_account" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "linkme", @@ -3988,7 +3988,7 @@ dependencies = [ [[package]] name = "namada_controller" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "namada_core", "smooth-operator", @@ -3998,7 +3998,7 @@ dependencies = [ [[package]] name = "namada_core" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "bech32 0.8.1", "borsh 1.5.0", @@ -4028,6 +4028,7 @@ dependencies = [ "prost-types", "rand 0.8.5", "rand_core 0.6.4", + "ripemd", "serde", "serde_json", "sha2 0.9.9", @@ -4045,7 +4046,7 @@ dependencies = [ [[package]] name = "namada_ethereum_bridge" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "ethers", @@ -4072,7 +4073,7 @@ dependencies = [ [[package]] name = "namada_events" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "linkme", @@ -4088,7 +4089,7 @@ dependencies = [ [[package]] name = "namada_gas" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "linkme", @@ -4103,7 +4104,7 @@ dependencies = [ [[package]] name = "namada_governance" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "itertools 0.12.1", @@ -4126,7 +4127,7 @@ dependencies = [ [[package]] name = "namada_ibc" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "ibc", @@ -4154,7 +4155,7 @@ dependencies = [ [[package]] name = "namada_macros" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "data-encoding", "proc-macro2", @@ -4166,7 +4167,7 @@ dependencies = [ [[package]] name = "namada_merkle_tree" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "eyre", @@ -4181,7 +4182,7 @@ dependencies = [ [[package]] name = "namada_migrations" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "lazy_static", "linkme", @@ -4191,7 +4192,7 @@ dependencies = [ [[package]] name = "namada_parameters" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "namada_core", "namada_macros", @@ -4202,7 +4203,7 @@ dependencies = [ [[package]] name = "namada_proof_of_stake" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "konst", @@ -4227,7 +4228,7 @@ dependencies = [ [[package]] name = "namada_replay_protection" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "namada_core", ] @@ -4235,7 +4236,7 @@ dependencies = [ [[package]] name = "namada_sdk" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "async-trait", "bimap", @@ -4281,7 +4282,6 @@ dependencies = [ "rand 0.8.5", "rand_core 0.6.4", "regex", - "ripemd", "serde", "serde_json", "sha2 0.9.9", @@ -4301,7 +4301,7 @@ dependencies = [ [[package]] name = "namada_shielded_token" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "masp_primitives", @@ -4318,7 +4318,7 @@ dependencies = [ [[package]] name = "namada_state" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "itertools 0.12.1", @@ -4342,7 +4342,7 @@ dependencies = [ [[package]] name = "namada_storage" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "itertools 0.12.1", @@ -4362,7 +4362,7 @@ dependencies = [ [[package]] name = "namada_token" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "namada_core", @@ -4377,7 +4377,7 @@ dependencies = [ [[package]] name = "namada_trans_token" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "konst", "namada_core", @@ -4388,7 +4388,7 @@ dependencies = [ [[package]] name = "namada_tx" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "ark-bls12-381", "bitflags 2.5.0", @@ -4416,7 +4416,7 @@ dependencies = [ [[package]] name = "namada_vote_ext" version = "0.39.0" -source = "git+https://github.com/anoma/namada#879a3268f2edfbdd0da1c98cf0e4bbdac48f5b0d" +source = "git+https://github.com/anoma/namada?branch=murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0#438a4ab1dcf241dc7af3e22a72af93425cb82bcd" dependencies = [ "borsh 1.5.0", "linkme", diff --git a/Cargo.toml b/Cargo.toml index 606857f367..9a75210c6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,10 +39,10 @@ tendermint-rpc = { version = "0.36.0" } tendermint-testgen = { version = "0.36.0" } # Namada dependencies -namada_ibc = { git = "https://github.com/anoma/namada", version = "0.39.0" } -namada_parameters = { git = "https://github.com/anoma/namada", version = "0.39.0" } -namada_sdk = { git = "https://github.com/anoma/namada", version = "0.39.0" } -namada_token = { git = "https://github.com/anoma/namada", version = "0.39.0" } +namada_ibc = { git = "https://github.com/anoma/namada", branch = "murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0" } +namada_parameters = { git = "https://github.com/anoma/namada", branch = "murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0" } +namada_sdk = { git = "https://github.com/anoma/namada", branch = "murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0" } +namada_token = { git = "https://github.com/anoma/namada", branch = "murisi/masp-ibc-replay-protection-using-txdata-on-0.39.0" } # Other dependencies abscissa_core = "=0.6.0" diff --git a/crates/relayer/src/chain/namada/tx.rs b/crates/relayer/src/chain/namada/tx.rs index defa6e6e78..b041e7d755 100644 --- a/crates/relayer/src/chain/namada/tx.rs +++ b/crates/relayer/src/chain/namada/tx.rs @@ -6,6 +6,7 @@ use std::time::Instant; use ibc_proto::google::protobuf::Any; use itertools::Itertools; +use namada_ibc::{MsgAcknowledgement, MsgRecvPacket, MsgTimeout}; use namada_sdk::address::{Address, ImplicitAddress}; use namada_sdk::args::{self, TxBuilder}; use namada_sdk::args::{InputAmount, Tx as TxArgs, TxCustom}; @@ -19,7 +20,6 @@ use namada_sdk::ibc::core::channel::types::msgs::{ MsgTimeout as IbcMsgTimeout, ACKNOWLEDGEMENT_TYPE_URL, RECV_PACKET_TYPE_URL, TIMEOUT_TYPE_URL, }; use namada_sdk::ibc::core::host::types::identifiers::{ChannelId, PortId}; -use namada_ibc::{MsgAcknowledgement, MsgRecvPacket, MsgTimeout}; use namada_sdk::masp::{PaymentAddress, TransferTarget}; use namada_sdk::masp_primitives::transaction::Transaction as MaspTransaction; use namada_sdk::{signing, tx, Namada}; @@ -258,7 +258,7 @@ impl NamadaChain { if let Some((receiver, token, amount)) = transfer { self.rt.block_on(self.shielded_sync())?; - let amount = InputAmount::Unvalidated( + let amount = InputAmount::Validated( amount .parse() .map_err(|e| Error::send_tx(format!("invalid amount: {e}")))?,