UNPKG

chia-agent

Version:
31 lines (30 loc) 1.15 kB
import { bool, Optional, str } from "../types/_python_types_"; import { int, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints"; import { Coin } from "../types/blockchain_format/coin"; import { CoinType, StreamableWalletIdentifier, WalletType } from "./util/wallet_types"; import { ClawbackMetadata } from "./puzzles/clawback/metadata"; import { VersionedBlob } from "../util/streamable"; import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes"; export type WalletCoinRecord = { coin: Coin; confirmed_block_height: uint32; spent_block_height: uint32; spent: bool; coinbase: bool; wallet_type: (typeof WalletType)[keyof typeof WalletType]; wallet_id: int; coin_type: (typeof CoinType)[keyof typeof CoinType]; metadata: Optional<VersionedBlob>; }; export type WalletCoinRecordWithMetadata = { parent_coin_info: bytes32; puzzle_hash: bytes32; amount: uint64; id: str; type: (typeof CoinType)[keyof typeof CoinType]; wallet_identifier: StreamableWalletIdentifier; metadata: ClawbackMetadata; confirmed_height: uint32; spent_height: uint32; coinbase: bool; };