class BridgeUtils {

    public static boolean isMigrationTx(BtcTransaction btcTx, Federation activeFederation, Federation retiringFederation, Context btcContext, BridgeConstants bridgeConstants) {
        if (retiringFederation == null) {
            return false;
        }
        boolean moveFromRetiring = isReleaseTx(btcTx, retiringFederation);
        boolean moveToActive = isLockTx(btcTx, activeFederation, btcContext, bridgeConstants);

        return moveFromRetiring && moveToActive;
    }

}