UNPKG

chia-agent

Version:
33 lines (32 loc) 1.07 kB
import { bool, bytes, Optional, str } from "../types/_python_types_"; import { int, uint32, uint64, uint8 } from "../../chia_rs/wheel/python/sized_ints"; import { Coin } from "../types/blockchain_format/coin"; import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes"; import { TDriverDict } from "./puzzle_drivers"; import { ConditionValidTimes } from "./conditions"; export type TradeRecordOld = { confirmed_at_index: uint32; accepted_at_time: Optional<uint64>; created_at_time: uint64; is_my_offer: bool; sent: uint32; offer: bytes; taken_offer: Optional<bytes>; coins_of_interest: Coin[]; trade_id: bytes32; status: uint32; sent_to: Array<[str, uint8, Optional<str>]>; }; export type TradeRecord = TradeRecordOld & { valid_times: ConditionValidTimes; }; export type TradeRecordConvenience = { status: str; summary: { offered: Record<str, int>; requested: Record<str, int>; infos: TDriverDict; fees: int; }; pending: Record<str, int>; } & Omit<TradeRecord, "offer">;