UNPKG

@ickb/core

Version:

iCKB Core utils built on top of CCC

25 lines 1.15 kB
import { ccc } from "@ckb-ccc/core"; import { type ScriptDeps, type SmartTransaction, type UdtHandler } from "@ickb/utils"; import { DaoManager } from "@ickb/dao"; import { WithdrawalGroup, type IckbDepositCell } from "./cells.js"; export declare class OwnedOwnerManager implements ScriptDeps { readonly script: ccc.Script; readonly cellDeps: ccc.CellDep[]; readonly daoManager: DaoManager; readonly udtHandler: UdtHandler; constructor(script: ccc.Script, cellDeps: ccc.CellDep[], daoManager: DaoManager, udtHandler: UdtHandler); isOwner(cell: ccc.Cell): boolean; isOwned(cell: ccc.Cell): boolean; requestWithdrawal(tx: SmartTransaction, deposits: IckbDepositCell[], lock: ccc.Script, options?: { isReadyOnly?: boolean; }): void; withdraw(tx: SmartTransaction, withdrawalGroups: WithdrawalGroup[], options?: { isReadyOnly?: boolean; }): void; findWithdrawalGroups(client: ccc.Client, locks: ccc.Script[], options?: { tip?: ccc.ClientBlockHeader; onChain?: boolean; limit?: number; }): AsyncGenerator<WithdrawalGroup>; } //# sourceMappingURL=owned_owner.d.ts.map