eth_twc_sdk/types/
signed_data.rs1use alloy::primitives::{Address, B256, Bytes, U256};
6use alloy::sol_types::Eip712Domain;
7
8use super::transfer_detail::CommittedTransferDetail;
9
10#[derive(Clone, Debug)]
12pub struct SignedTransferWithCommit {
13 pub domain: Eip712Domain,
15 pub from: Address,
17 pub to: Address,
18 pub token: Address,
19 pub value: U256,
20 pub commitment: B256,
21 pub valid_after: U256,
23 pub valid_before: U256,
25 pub signature: Bytes,
27}
28
29#[derive(Clone, Debug)]
31pub struct SignedUniCommitTransfers {
32 pub domain: Eip712Domain,
34 pub from: Address,
35 pub details: Vec<super::transfer_detail::TransferDetail>,
37 pub commitment: B256,
38 pub valid_after: U256,
40 pub valid_before: U256,
41 pub signature: Bytes,
42}
43
44#[derive(Clone, Debug)]
46pub struct SignedBatchTransferWithCommit {
47 pub domain: Eip712Domain,
49 pub from: Address,
50 pub details: Vec<CommittedTransferDetail>,
51 pub batch_commitment: B256,
53 pub valid_after: U256,
55 pub valid_before: U256,
56 pub signature: Bytes,
57}
58
59#[derive(Clone, Debug)]
61pub struct SignedCancelAuthorization {
62 pub domain: Eip712Domain,
64 pub authorizer: Address,
65 pub commitment: B256,
66 pub signature: Bytes,
67}