+++ /dev/null
-package org.ldk.impl.chain.chaininterface;
-
-public interface BroadcasterInterface {
- public void broadcast_transaction(byte[] transaction_data);
-}
+++ /dev/null
-package org.ldk.impl.chain.keysinterface;
-
-public class KeysInterface {
-
-}
+++ /dev/null
-package org.ldk.impl.ln.channelmanager;
-
-import org.ldk.impl.chain.chaininterface.BroadcasterInterface;
-import org.ldk.impl.chain.keysinterface.KeysInterface;
-import org.ldk.impl.ln.channelmonitor.ManyChannelMonitor;
-
-public class ChannelManager {
- public enum Network {
- Bitcoin,
- Testnet
- }
- /*public ChannelManager(Network net, FeeEstimator feeEstimator, ManyChannelMonitor monitor,
- BroadcasterInterface broadcaster, Logger logger, KeysInterface keys,
- UserConfig config, int cur_chain_height) {
-
- }*/
-
-
-}
+++ /dev/null
-package org.ldk.impl.ln.channelmonitor;
-
-public interface ManyChannelMonitor {
-}
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-import org.ldk.impl.bindings;
-
-public final class AcceptChannel {
- private final long c_obj;
-
- private AcceptChannel(long c_obj) {
- this.c_obj = c_obj;
- }
-
- @SuppressWarnings("deprecation")
- @Override
- final protected void finalize() throws Throwable {
- bindings.AcceptChannel_free(this.c_obj);
- super.finalize();
- }
-}
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-public class AnnouncementSignatures {
- private long c_obj;
-}
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-public class ChannelAnnouncement {
- private long c_obj;
-}
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-public abstract class ChannelMessageHandler {
- private long c_obj;
- public long getC_obj() { return c_obj; }
-
- //abstract void handle_open_channel(char[] public_key, OpenChannel msg);
-}
\ No newline at end of file
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-public class ChannelReestablish {
- private long c_obj;
-}
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-public class ChannelUpdate {
- private long c_obj;
-}
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-public abstract class RoutingMessageHandler {
- private long c_obj;
- public long getC_obj() { return c_obj; }
-
-}
\ No newline at end of file
+++ /dev/null
-package org.ldk.impl.ln.msgs;
-
-/*public class ClosingSigned {
- private long c_obj;
-}
-public class CommitmentSigned {
- private long c_obj;
-}
-public class CommitmentUpdate {
- private long c_obj;
-}
-public class ErrorMessage {
- private long c_obj;
-}
-public class FundingCreated {
- private long c_obj;
-}
-public class FundingLocked {
- private long c_obj;
-}
-public class FundingSigned {
- private long c_obj;
-}
-public class Init {
- private long c_obj;
-}
-public class NodeAnnouncement {
- private long c_obj;
-}
-public class OpenChannel {
- private long c_obj;
-}
-public class Ping {
- private long c_obj;
-}
-public class Pong {
- private long c_obj;
-}
-public class RevokeAndACK {
- private long c_obj;
-}
-public class Shutdown {
- private long c_obj;
-}
-public class UnsignedChannelAnnouncement {
- private long c_obj;
-}
-public class UnsignedNodeAnnouncement {
- private long c_obj;
-}
-public class UpdateAddHTLC {
- private long c_obj;
-}
-public class UpdateFailHTLC {
- private long c_obj;
-}
-public class UpdateFailMalformedHTLC {
- private long c_obj;
-}
-public class UpdateFee {
- private long c_obj;
-}
-public class UpdateFulfillHTLC {
- private long c_obj;
-}
-
-*/
\ No newline at end of file
+++ /dev/null
-package org.ldk.impl.ln.peer_handler;
-
-import org.ldk.impl.bindings;
-import org.ldk.impl.ln.msgs.ChannelMessageHandler;
-import org.ldk.impl.ln.msgs.RoutingMessageHandler;
-
-public class MessageHandler {
- private final long c_obj;
- // We don't care about these, but we hold references to them to ensure they don't get free'd before us
- private final ChannelMessageHandler chan_handler;
- private final RoutingMessageHandler route_handler;
-
- //oc Pr Bprivate MessageHandler(long c_obj) { this.c_obj = c_obj; }
- public MessageHandler(ChannelMessageHandler chan_handler, RoutingMessageHandler route_handler) {
- this.c_obj = bindings.MessageHandler_new(chan_handler.getC_obj(), route_handler.getC_obj());
- this.chan_handler = chan_handler;
- this.route_handler = route_handler;
- }
-
- @SuppressWarnings("deprecation")
- @Override
- final protected void finalize() throws Throwable {
- bindings.MessageHandler_free(this.c_obj);
- super.finalize();
- }
-}
\ No newline at end of file
+++ /dev/null
-package org.ldk.impl.ln.peer_handler;
-
-import org.ldk.impl.bindings;
-
-public class PeerManager {
- private final long c_obj;
-
- private PeerManager(long c_obj) {
- this.c_obj = c_obj;
- }
- //public PeerManager(MessageHandler)
-
- @SuppressWarnings("deprecation")
- @Override
- final protected void finalize() throws Throwable {
- bindings.PeerManager_free(this.c_obj);
- super.finalize();
- }
-}