elizabeth 2 年之前
父节点
当前提交
064fd21f47
共有 1 个文件被更改,包括 0 次插入 和 30 次删除
  1. 0 30
      src/protocol/traits.rs

+ 0 - 30
src/protocol/traits.rs

@@ -30,36 +30,6 @@ pub(crate) struct InitiationArgs {
     pub(crate) nonce: U256,
 }
 
-// // TODO: make Address/U256 generic; these are ethers-specific right now
-// #[derive(Debug, Clone)]
-// pub(crate) struct ContractSwapArgs {
-//     pub(crate) owner: Address,
-//     pub(crate) claimer: Address,
-//     pub(crate) claim_commitment: [u8; 32],
-//     pub(crate) refund_commitment: [u8; 32],
-//     pub(crate) timeout_duration_1: U256,
-//     pub(crate) timeout_duration_2: U256,
-//     pub(crate) asset: Address,
-//     pub(crate) value: U256,
-//     pub(crate) nonce: U256,
-// }
-
-// impl From<ContractSwapArgs> for crate::ethereum::swap_creator::Swap {
-//     fn from(args: ContractSwapArgs) -> Self {
-//         Self {
-//             owner: args.owner,
-//             claim_commitment: args.claim_commitment,
-//             refund_commitment: args.refund_commitment,
-//             claimer: args.claimer,
-//             timeout_1: args.timeout_duration_1,
-//             timeout_2: args.timeout_duration_2,
-//             asset: args.asset,
-//             value: args.value,
-//             nonce: args.nonce,
-//         }
-//     }
-// }
-
 // Initial parameters required by the swap follower.
 #[derive(Debug)]
 pub(crate) struct FollowerArgs {