UNPKG

@ickb/dao

Version:

NervosDAO utilities built on top of CCC

24 lines 719 B
import { ccc } from "@ckb-ccc/core"; import { Epoch, type TransactionHeader, type ValueComponents } from "@ickb/utils"; export interface DaoCell extends ValueComponents { cell: ccc.Cell; isDeposit: boolean; headers: [TransactionHeader, TransactionHeader]; interests: ccc.Num; maturity: Epoch; isReady: boolean; } export declare function daoCellFrom(options: (Omit<DaoCell, "interests" | "maturity"> | { cell: ccc.Cell; isDeposit: boolean; client: ccc.Client; } | { outpoint: ccc.OutPoint; isDeposit: boolean; client: ccc.Client; }) & { tip: ccc.ClientBlockHeader; minLockUp?: Epoch; maxLockUp?: Epoch; }): Promise<DaoCell>; //# sourceMappingURL=cells.d.ts.map