dao: {
    CellCollector: typeof CellCollector;
    calculateDaoEarliestSince: ((depositBlockHeaderEpoch, withdrawBlockHeaderEpoch) => bigint);
    calculateDaoEarliestSinceCompatible: ((depositBlockHeaderEpoch, withdrawBlockHeaderEpoch) => BI);
    calculateMaximumWithdraw: ((withdrawCell, depositDao, withdrawDao) => bigint);
    calculateMaximumWithdrawCompatible: ((withdrawCell, depositDao, withdrawDao) => BI);
    deposit: ((txSkeleton, fromInfo, toAddress, amount, options?) => Promise<TransactionSkeletonType>);
    listDaoCells: ((cellProvider, fromAddress, cellType, options?) => AsyncIterator<Cell>);
    unlock: ((txSkeleton, depositInput, withdrawInput, toAddress, fromInfo, options?) => Promise<TransactionSkeletonType>);
    withdraw: ((txSkeleton, fromInput, fromInfo?, options?) => Promise<TransactionSkeletonType>);
}

Type declaration

  • CellCollector: typeof CellCollector
  • calculateDaoEarliestSince: ((depositBlockHeaderEpoch, withdrawBlockHeaderEpoch) => bigint)
      • (depositBlockHeaderEpoch, withdrawBlockHeaderEpoch): bigint
      • calculate a withdraw dao cell minimal unlock since

        Parameters

        • depositBlockHeaderEpoch: string

          depositBlockHeader.epoch

        • withdrawBlockHeaderEpoch: string

          withdrawBlockHeader.epoch

        Returns bigint

  • calculateDaoEarliestSinceCompatible: ((depositBlockHeaderEpoch, withdrawBlockHeaderEpoch) => BI)
      • (depositBlockHeaderEpoch, withdrawBlockHeaderEpoch): BI
      • calculate a withdraw dao cell minimal unlock since

        Parameters

        • depositBlockHeaderEpoch: string

          depositBlockHeader.epoch

        • withdrawBlockHeaderEpoch: string

          withdrawBlockHeader.epoch

        Returns BI

  • calculateMaximumWithdraw: ((withdrawCell, depositDao, withdrawDao) => bigint)
      • (withdrawCell, depositDao, withdrawDao): bigint
      • calculate maximum withdraw capacity when unlock

        Parameters

        • withdrawCell: Cell

          withdrawCell or depositCell

        • depositDao: string

          depositBlockHeader.dao

        • withdrawDao: string

          withdrawBlockHeader.dao

        Returns bigint

  • calculateMaximumWithdrawCompatible: ((withdrawCell, depositDao, withdrawDao) => BI)
      • (withdrawCell, depositDao, withdrawDao): BI
      • calculate maximum withdraw capacity when unlock

        Parameters

        • withdrawCell: Cell

          withdrawCell or depositCell

        • depositDao: string

          depositBlockHeader.dao

        • withdrawDao: string

          withdrawBlockHeader.dao

        Returns BI

  • deposit: ((txSkeleton, fromInfo, toAddress, amount, options?) => Promise<TransactionSkeletonType>)
  • listDaoCells: ((cellProvider, fromAddress, cellType, options?) => AsyncIterator<Cell>)
      • (cellProvider, fromAddress, cellType, options?): AsyncIterator<Cell>
      • list DAO cells,

        Parameters

        • cellProvider: CellProvider
        • fromAddress: string
        • cellType: "all" | "deposit" | "withdraw"
        • options: Options = {}

        Returns AsyncIterator<Cell>

  • unlock: ((txSkeleton, depositInput, withdrawInput, toAddress, fromInfo, options?) => Promise<TransactionSkeletonType>)
  • withdraw: ((txSkeleton, fromInput, fromInfo?, options?) => Promise<TransactionSkeletonType>)

Generated using TypeDoc