@ickb/core
Version:
iCKB Core utils built on top of CCC
35 lines • 1.2 kB
TypeScript
import { ccc } from "@ckb-ccc/core";
import { type TransactionHeader, type ValueComponents } from "@ickb/utils";
import { daoCellFrom, type DaoCell } from "@ickb/dao";
export interface IckbDepositCell extends DaoCell {
[isIckbDepositSymbol]: true;
}
declare const isIckbDepositSymbol: unique symbol;
export declare function ickbDepositCellFrom(options: Parameters<typeof daoCellFrom>[0] | DaoCell): Promise<IckbDepositCell>;
export interface ReceiptCell extends ValueComponents {
cell: ccc.Cell;
header: TransactionHeader;
}
export declare function receiptCellFrom(options: {
cell: ccc.Cell;
client: ccc.Client;
} | {
outpoint: ccc.OutPoint;
client: ccc.Client;
}): Promise<ReceiptCell>;
export declare class WithdrawalGroup implements ValueComponents {
owned: DaoCell;
owner: OwnerCell;
constructor(owned: DaoCell, owner: OwnerCell);
get ckbValue(): ccc.FixedPoint;
get udtValue(): ccc.FixedPoint;
}
export declare class OwnerCell implements ValueComponents {
cell: ccc.Cell;
constructor(cell: ccc.Cell);
get ckbValue(): ccc.FixedPoint;
readonly udtValue = 0n;
getOwned(): ccc.OutPoint;
}
export {};
//# sourceMappingURL=cells.d.ts.map