package org.interledger.ilp.core;

import org.interledger.cryptoconditions.Fullfilment;
import org.interledger.ilp.core.events.LedgerEventHandler;

public interface Ledger {

    /**
     * Retrieve some meta-data about the ledger.
     */
    LedgerInfo getInfo();

    /**
     * Initiates a ledger-local transfer.
     */
    void send(LedgerTransfer transfer);

    /**
     * Reject a transfer
     *
     * This should only be allowed if the entity rejecting the transfer is the
     * receiver
     *
     * @param transfer
     * @param reason
     */
    void rejectTransfer(LedgerTransfer transfer, LedgerTransferRejectedReason reason);

    /**
     * Submit a fulfillment to a ledger.
     *
     * The ledger will execute all transfers that are fulfilled by this
     * fulfillment.
     *
     * @param fulfillment the fulfillment for this transfer
     * @return
     */
    void fulfillCondition(Fullfilment fulfillment);

    /**
     * Register an event handler for one of the LedgerEvents
     *
     * @param handler
     */
    void registerEventHandler(LedgerEventHandler<?> handler);

}

@@ -71,20 +71,20 @@
 ions.Ful
-l
 fil
+l
 ment;%0Aim
@@ -908,20 +908,20 @@
 tion(Ful
-l
 fil
+l
 ment ful

Fix compiler error