| 52 | #[storable] |
| 53 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] |
| 54 | pub struct Transfer { |
| 55 | /// The transfer id, which is a UUID. |
| 56 | pub id: TransferId, |
| 57 | /// The user that initiated the transfer. |
| 58 | pub initiator_user: UserId, |
| 59 | /// The account id that the transfer is from. |
| 60 | pub from_account: AccountId, |
| 61 | /// The asset id that the transfer is from. |
| 62 | pub from_asset: AssetId, |
| 63 | /// The token standard that the transfer is associated with. |
| 64 | pub with_standard: TokenStandard, |
| 65 | /// The destination address of the transfer. |
| 66 | pub to_address: String, |
| 67 | /// The current status of the transfer. |
| 68 | pub status: TransferStatus, |
| 69 | /// The amount of the transfer. |
| 70 | pub amount: candid::Nat, |
| 71 | /// The request id that the transfer is associated with. |
| 72 | pub request_id: UUID, |
| 73 | /// The fee of the transfer. |
| 74 | pub fee: candid::Nat, |
| 75 | /// The blockchain network that the transfer will be executed on. |
| 76 | pub blockchain_network: String, |
| 77 | /// The transfer metadata (e.g. `memo`, `description`, etc.) |
| 78 | pub metadata: Metadata, |
| 79 | /// The last time the record was updated or created. |
| 80 | pub last_modification_timestamp: Timestamp, |
| 81 | /// The creation timestamp of the transfer. |
| 82 | pub created_timestamp: Timestamp, |
| 83 | } |
| 84 | |
| 85 | #[storable] |
| 86 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] |
no outgoing calls