eth_twc_sdk/types/
transfer_detail.rs

1//! 送金明細の 1 行分(Solidity 構造体に対応する Rust 表現)。
2
3use alloy::primitives::{Address, B256, U256};
4
5/// `TransferDetail(to, token, value)` — ユニファイド送金や EIP-712 の明細行に使用。
6#[derive(Clone, Debug, PartialEq, Eq)]
7pub struct TransferDetail {
8    /// 送金先アドレス。
9    pub to: Address,
10    /// ERC-20 トークンアドレス。
11    pub token: Address,
12    /// 送金額(wei 等の最小単位)。
13    pub value: U256,
14}
15
16/// `CommittedTransferDetail(to, token, value, commitment)` — 明細行ごとのコミットメント付き。
17#[derive(Clone, Debug, PartialEq, Eq)]
18pub struct CommittedTransferDetail {
19    /// 送金先アドレス。
20    pub to: Address,
21    /// ERC-20 トークンアドレス。
22    pub token: Address,
23    /// 送金額。
24    pub value: U256,
25    /// その行のコミットメント(`bytes32`)。
26    pub commitment: B256,
27}