chia-agent
Version:
chia rpc/websocket client library
42 lines (41 loc) • 1.46 kB
TypeScript
import { Coin } from "./blockchain_format/coin";
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
import { NPCResult } from "../consensus/cost_calculator";
import { bool, Optional } from "./_python_types_";
import { uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
import { SpendBundleConditions } from "../../chia_rs/chia-consensus/owned_conditions";
export type UnspentLineageInfo = {
coin_id: bytes32;
parent_id: bytes32;
parent_parent_id: bytes32;
};
export type BundleCoinSpend = {
coin_spend: CoinSpend;
eligible_for_dedup: bool;
eligible_for_fast_forward: bool;
additions: Coin[];
cost: Optional<uint64>;
latest_singleton_lineage: Optional<UnspentLineageInfo>;
};
export type MempoolItem = {
spend_bundle: SpendBundle;
fee: uint64;
conds: SpendBundleConditions;
spend_bundle_name: bytes32;
height_added_to_mempool: uint32;
assert_height: Optional<uint32>;
assert_before_height: Optional<uint32>;
assert_before_seconds: Optional<uint64>;
bundle_coin_spends: Record<bytes32, BundleCoinSpend>;
};
export type MempoolItemInJsonDict = {
spend_bundle: SpendBundle;
fee: uint64;
npc_result: NPCResult;
cost: uint64;
spend_bundle_name: bytes32;
additions: Coin[];
removals: Coin[];
};