// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { Amount } from "./Amount"; import type { AssetId } from "./AssetId"; import type { OrderState } from "./OrderState"; /** * A swap order as the wallet keeps it: the quote it was made from, where * to pay, and where it stands. Persisted so it survives a restart. */ export type Order = { /** * The provider's identifier: for 1Click, the deposit address. */ id: string, provider: string, from: AssetId, to: AssetId, amount_in: Amount, amount_out: Amount, /** * Where the origin asset must be paid, and any memo it needs. */ deposit_address: string, deposit_memo: string | null, recipient: string, refund_to: string, /** * Unix seconds; after this the provider refunds and the wallet stops asking. */ deadline_unix: number, created_unix: number, updated_unix: number, state: OrderState, /** * The deposit transaction this wallet made itself, when it did (a * Quantus leg, later); `None` when an external wallet paid. */ deposit_tx: string | null, };