@lightninglabs/lnc-core
Advanced tools
Comparing version 0.2.1-alpha to 0.2.2-alpha
@@ -1,1 +0,1 @@ | ||
!function(E,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@lightninglabs/lnc-core"]=e():E["@lightninglabs/lnc-core"]=e()}(self,(function(){return(()=>{"use strict";var E={877:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.faradayServer=E(N.serviceNames.frdrpc.FaradayServer,e)}},382:function(E,e,_){var N=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.FaradayApi=e.PoolApi=e.LoopApi=e.LndApi=void 0;var t=_(152);Object.defineProperty(e,"LndApi",{enumerable:!0,get:function(){return N(t).default}});var O=_(343);Object.defineProperty(e,"LoopApi",{enumerable:!0,get:function(){return N(O).default}});var T=_(146);Object.defineProperty(e,"PoolApi",{enumerable:!0,get:function(){return N(T).default}});var r=_(877);Object.defineProperty(e,"FaradayApi",{enumerable:!0,get:function(){return N(r).default}})},152:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.autopilot=E(N.serviceNames.autopilotrpc.Autopilot,e),this.chainNotifier=E(N.serviceNames.chainrpc.ChainNotifier,e),this.invoices=E(N.serviceNames.invoicesrpc.Invoices,e),this.lightning=E(N.serviceNames.lnrpc.Lightning,e),this.router=E(N.serviceNames.routerrpc.Router,e),this.signer=E(N.serviceNames.signrpc.Signer,e),this.walletKit=E(N.serviceNames.walletrpc.WalletKit,e),this.walletUnlocker=E(N.serviceNames.lnrpc.WalletUnlocker,e),this.watchtower=E(N.serviceNames.watchtowerrpc.Watchtower,e),this.watchtowerClient=E(N.serviceNames.wtclientrpc.WatchtowerClient,e)}},343:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.swapClient=E(N.serviceNames.looprpc.SwapClient,e),this.debug=E(N.serviceNames.looprpc.Debug,e)}},146:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.trader=E(N.serviceNames.poolrpc.Trader,e),this.channelAuctioneer=E(N.serviceNames.poolrpc.ChannelAuctioneer,e),this.hashmail=E(N.serviceNames.poolrpc.HashMail,e)}},713:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),e.subscriptionMethods=e.FaradayApi=e.PoolApi=e.LoopApi=e.LndApi=e.snakeKeysToCamel=e.isObject=e.camelKeysToSnake=void 0,t(_(894),e);var O=_(848);Object.defineProperty(e,"camelKeysToSnake",{enumerable:!0,get:function(){return O.camelKeysToSnake}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return O.isObject}}),Object.defineProperty(e,"snakeKeysToCamel",{enumerable:!0,get:function(){return O.snakeKeysToCamel}});var T=_(382);Object.defineProperty(e,"LndApi",{enumerable:!0,get:function(){return T.LndApi}}),Object.defineProperty(e,"LoopApi",{enumerable:!0,get:function(){return T.LoopApi}}),Object.defineProperty(e,"PoolApi",{enumerable:!0,get:function(){return T.PoolApi}}),Object.defineProperty(e,"FaradayApi",{enumerable:!0,get:function(){return T.FaradayApi}});var r=_(644);Object.defineProperty(e,"subscriptionMethods",{enumerable:!0,get:function(){return r.subscriptionMethods}})},273:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(726),e)},71:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(374),e)},76:(E,e)=>{var _,N,t,O;Object.defineProperty(e,"__esModule",{value:!0}),e.CloseRecommendationRequest_Metric=e.EntryType=e.FiatBackend=e.Granularity=void 0,(O=e.Granularity||(e.Granularity={})).UNKNOWN_GRANULARITY="UNKNOWN_GRANULARITY",O.MINUTE="MINUTE",O.FIVE_MINUTES="FIVE_MINUTES",O.FIFTEEN_MINUTES="FIFTEEN_MINUTES",O.THIRTY_MINUTES="THIRTY_MINUTES",O.HOUR="HOUR",O.SIX_HOURS="SIX_HOURS",O.TWELVE_HOURS="TWELVE_HOURS",O.DAY="DAY",O.UNRECOGNIZED="UNRECOGNIZED",(t=e.FiatBackend||(e.FiatBackend={})).UNKNOWN_FIATBACKEND="UNKNOWN_FIATBACKEND",t.COINCAP="COINCAP",t.COINDESK="COINDESK",t.CUSTOM="CUSTOM",t.COINGECKO="COINGECKO",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.EntryType||(e.EntryType={})).UNKNOWN="UNKNOWN",N.LOCAL_CHANNEL_OPEN="LOCAL_CHANNEL_OPEN",N.REMOTE_CHANNEL_OPEN="REMOTE_CHANNEL_OPEN",N.CHANNEL_OPEN_FEE="CHANNEL_OPEN_FEE",N.CHANNEL_CLOSE="CHANNEL_CLOSE",N.RECEIPT="RECEIPT",N.PAYMENT="PAYMENT",N.FEE="FEE",N.CIRCULAR_RECEIPT="CIRCULAR_RECEIPT",N.FORWARD="FORWARD",N.FORWARD_FEE="FORWARD_FEE",N.CIRCULAR_PAYMENT="CIRCULAR_PAYMENT",N.CIRCULAR_FEE="CIRCULAR_FEE",N.SWEEP="SWEEP",N.SWEEP_FEE="SWEEP_FEE",N.CHANNEL_CLOSE_FEE="CHANNEL_CLOSE_FEE",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.CloseRecommendationRequest_Metric||(e.CloseRecommendationRequest_Metric={})).UNKNOWN="UNKNOWN",_.UPTIME="UPTIME",_.REVENUE="REVENUE",_.INCOMING_VOLUME="INCOMING_VOLUME",_.OUTGOING_VOLUME="OUTGOING_VOLUME",_.TOTAL_VOLUME="TOTAL_VOLUME",_.UNRECOGNIZED="UNRECOGNIZED"},915:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(76),e)},894:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__setModuleDefault||(Object.create?function(E,e){Object.defineProperty(E,"default",{enumerable:!0,value:e})}:function(E,e){E.default=e}),O=this&&this.__importStar||function(E){if(E&&E.__esModule)return E;var e={};if(null!=E)for(var _ in E)"default"!==_&&Object.prototype.hasOwnProperty.call(E,_)&&N(e,E,_);return t(e,E),e};Object.defineProperty(e,"__esModule",{value:!0}),e.poolrpc=e.looprpc=e.wtclientrpc=e.watchtowerrpc=e.walletrpc=e.signrpc=e.routerrpc=e.lnrpc=e.invoicesrpc=e.chainrpc=e.autopilotrpc=e.frdrpc=void 0;var T=O(_(915));e.frdrpc=T;var r=O(_(273));e.autopilotrpc=r;var R=O(_(71));e.chainrpc=R;var I=O(_(312));e.invoicesrpc=I;var n=O(_(452));e.lnrpc=n;var A=O(_(226));e.routerrpc=A;var i=O(_(207));e.signrpc=i;var o=O(_(367));e.walletrpc=o;var C=O(_(412));e.watchtowerrpc=C;var S=O(_(946));e.wtclientrpc=S;var a=O(_(11));e.looprpc=a;var c=O(_(377));e.poolrpc=c},312:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(212),e)},726:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},374:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},212:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.LookupModifier=void 0,(_=e.LookupModifier||(e.LookupModifier={})).DEFAULT="DEFAULT",_.HTLC_SET_ONLY="HTLC_SET_ONLY",_.HTLC_SET_BLANK="HTLC_SET_BLANK",_.UNRECOGNIZED="UNRECOGNIZED"},21:(E,e)=>{var _,N,t,O,T,r,R,I,n,A,i,o,C,S,a,c,U,D,P,L;Object.defineProperty(e,"__esModule",{value:!0}),e.Failure_FailureCode=e.HTLCAttempt_HTLCStatus=e.Payment_PaymentStatus=e.Invoice_InvoiceState=e.ChannelEventUpdate_UpdateType=e.PendingChannelsResponse_ForceClosedChannel_AnchorState=e.PeerEvent_EventType=e.Peer_SyncType=e.ChannelCloseSummary_ClosureType=e.UpdateFailure=e.FeatureBit=e.PaymentFailureReason=e.InvoiceHTLCState=e.NodeMetricType=e.ResolutionOutcome=e.ResolutionType=e.Initiator=e.CommitmentType=e.AddressType=e.OutputScriptType=void 0,(L=e.OutputScriptType||(e.OutputScriptType={})).SCRIPT_TYPE_PUBKEY_HASH="SCRIPT_TYPE_PUBKEY_HASH",L.SCRIPT_TYPE_SCRIPT_HASH="SCRIPT_TYPE_SCRIPT_HASH",L.SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH="SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",L.SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH="SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",L.SCRIPT_TYPE_PUBKEY="SCRIPT_TYPE_PUBKEY",L.SCRIPT_TYPE_MULTISIG="SCRIPT_TYPE_MULTISIG",L.SCRIPT_TYPE_NULLDATA="SCRIPT_TYPE_NULLDATA",L.SCRIPT_TYPE_NON_STANDARD="SCRIPT_TYPE_NON_STANDARD",L.SCRIPT_TYPE_WITNESS_UNKNOWN="SCRIPT_TYPE_WITNESS_UNKNOWN",L.UNRECOGNIZED="UNRECOGNIZED",(P=e.AddressType||(e.AddressType={})).WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",P.NESTED_PUBKEY_HASH="NESTED_PUBKEY_HASH",P.UNUSED_WITNESS_PUBKEY_HASH="UNUSED_WITNESS_PUBKEY_HASH",P.UNUSED_NESTED_PUBKEY_HASH="UNUSED_NESTED_PUBKEY_HASH",P.TAPROOT_PUBKEY="TAPROOT_PUBKEY",P.UNUSED_TAPROOT_PUBKEY="UNUSED_TAPROOT_PUBKEY",P.UNRECOGNIZED="UNRECOGNIZED",(D=e.CommitmentType||(e.CommitmentType={})).UNKNOWN_COMMITMENT_TYPE="UNKNOWN_COMMITMENT_TYPE",D.LEGACY="LEGACY",D.STATIC_REMOTE_KEY="STATIC_REMOTE_KEY",D.ANCHORS="ANCHORS",D.SCRIPT_ENFORCED_LEASE="SCRIPT_ENFORCED_LEASE",D.UNRECOGNIZED="UNRECOGNIZED",(U=e.Initiator||(e.Initiator={})).INITIATOR_UNKNOWN="INITIATOR_UNKNOWN",U.INITIATOR_LOCAL="INITIATOR_LOCAL",U.INITIATOR_REMOTE="INITIATOR_REMOTE",U.INITIATOR_BOTH="INITIATOR_BOTH",U.UNRECOGNIZED="UNRECOGNIZED",(c=e.ResolutionType||(e.ResolutionType={})).TYPE_UNKNOWN="TYPE_UNKNOWN",c.ANCHOR="ANCHOR",c.INCOMING_HTLC="INCOMING_HTLC",c.OUTGOING_HTLC="OUTGOING_HTLC",c.COMMIT="COMMIT",c.UNRECOGNIZED="UNRECOGNIZED",(a=e.ResolutionOutcome||(e.ResolutionOutcome={})).OUTCOME_UNKNOWN="OUTCOME_UNKNOWN",a.CLAIMED="CLAIMED",a.UNCLAIMED="UNCLAIMED",a.ABANDONED="ABANDONED",a.FIRST_STAGE="FIRST_STAGE",a.TIMEOUT="TIMEOUT",a.UNRECOGNIZED="UNRECOGNIZED",(S=e.NodeMetricType||(e.NodeMetricType={})).UNKNOWN="UNKNOWN",S.BETWEENNESS_CENTRALITY="BETWEENNESS_CENTRALITY",S.UNRECOGNIZED="UNRECOGNIZED",(C=e.InvoiceHTLCState||(e.InvoiceHTLCState={})).ACCEPTED="ACCEPTED",C.SETTLED="SETTLED",C.CANCELED="CANCELED",C.UNRECOGNIZED="UNRECOGNIZED",(o=e.PaymentFailureReason||(e.PaymentFailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",o.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",o.FAILURE_REASON_NO_ROUTE="FAILURE_REASON_NO_ROUTE",o.FAILURE_REASON_ERROR="FAILURE_REASON_ERROR",o.FAILURE_REASON_INCORRECT_PAYMENT_DETAILS="FAILURE_REASON_INCORRECT_PAYMENT_DETAILS",o.FAILURE_REASON_INSUFFICIENT_BALANCE="FAILURE_REASON_INSUFFICIENT_BALANCE",o.UNRECOGNIZED="UNRECOGNIZED",(i=e.FeatureBit||(e.FeatureBit={})).DATALOSS_PROTECT_REQ="DATALOSS_PROTECT_REQ",i.DATALOSS_PROTECT_OPT="DATALOSS_PROTECT_OPT",i.INITIAL_ROUING_SYNC="INITIAL_ROUING_SYNC",i.UPFRONT_SHUTDOWN_SCRIPT_REQ="UPFRONT_SHUTDOWN_SCRIPT_REQ",i.UPFRONT_SHUTDOWN_SCRIPT_OPT="UPFRONT_SHUTDOWN_SCRIPT_OPT",i.GOSSIP_QUERIES_REQ="GOSSIP_QUERIES_REQ",i.GOSSIP_QUERIES_OPT="GOSSIP_QUERIES_OPT",i.TLV_ONION_REQ="TLV_ONION_REQ",i.TLV_ONION_OPT="TLV_ONION_OPT",i.EXT_GOSSIP_QUERIES_REQ="EXT_GOSSIP_QUERIES_REQ",i.EXT_GOSSIP_QUERIES_OPT="EXT_GOSSIP_QUERIES_OPT",i.STATIC_REMOTE_KEY_REQ="STATIC_REMOTE_KEY_REQ",i.STATIC_REMOTE_KEY_OPT="STATIC_REMOTE_KEY_OPT",i.PAYMENT_ADDR_REQ="PAYMENT_ADDR_REQ",i.PAYMENT_ADDR_OPT="PAYMENT_ADDR_OPT",i.MPP_REQ="MPP_REQ",i.MPP_OPT="MPP_OPT",i.WUMBO_CHANNELS_REQ="WUMBO_CHANNELS_REQ",i.WUMBO_CHANNELS_OPT="WUMBO_CHANNELS_OPT",i.ANCHORS_REQ="ANCHORS_REQ",i.ANCHORS_OPT="ANCHORS_OPT",i.ANCHORS_ZERO_FEE_HTLC_REQ="ANCHORS_ZERO_FEE_HTLC_REQ",i.ANCHORS_ZERO_FEE_HTLC_OPT="ANCHORS_ZERO_FEE_HTLC_OPT",i.AMP_REQ="AMP_REQ",i.AMP_OPT="AMP_OPT",i.UNRECOGNIZED="UNRECOGNIZED",(A=e.UpdateFailure||(e.UpdateFailure={})).UPDATE_FAILURE_UNKNOWN="UPDATE_FAILURE_UNKNOWN",A.UPDATE_FAILURE_PENDING="UPDATE_FAILURE_PENDING",A.UPDATE_FAILURE_NOT_FOUND="UPDATE_FAILURE_NOT_FOUND",A.UPDATE_FAILURE_INTERNAL_ERR="UPDATE_FAILURE_INTERNAL_ERR",A.UPDATE_FAILURE_INVALID_PARAMETER="UPDATE_FAILURE_INVALID_PARAMETER",A.UNRECOGNIZED="UNRECOGNIZED",(n=e.ChannelCloseSummary_ClosureType||(e.ChannelCloseSummary_ClosureType={})).COOPERATIVE_CLOSE="COOPERATIVE_CLOSE",n.LOCAL_FORCE_CLOSE="LOCAL_FORCE_CLOSE",n.REMOTE_FORCE_CLOSE="REMOTE_FORCE_CLOSE",n.BREACH_CLOSE="BREACH_CLOSE",n.FUNDING_CANCELED="FUNDING_CANCELED",n.ABANDONED="ABANDONED",n.UNRECOGNIZED="UNRECOGNIZED",(I=e.Peer_SyncType||(e.Peer_SyncType={})).UNKNOWN_SYNC="UNKNOWN_SYNC",I.ACTIVE_SYNC="ACTIVE_SYNC",I.PASSIVE_SYNC="PASSIVE_SYNC",I.PINNED_SYNC="PINNED_SYNC",I.UNRECOGNIZED="UNRECOGNIZED",(R=e.PeerEvent_EventType||(e.PeerEvent_EventType={})).PEER_ONLINE="PEER_ONLINE",R.PEER_OFFLINE="PEER_OFFLINE",R.UNRECOGNIZED="UNRECOGNIZED",(r=e.PendingChannelsResponse_ForceClosedChannel_AnchorState||(e.PendingChannelsResponse_ForceClosedChannel_AnchorState={})).LIMBO="LIMBO",r.RECOVERED="RECOVERED",r.LOST="LOST",r.UNRECOGNIZED="UNRECOGNIZED",(T=e.ChannelEventUpdate_UpdateType||(e.ChannelEventUpdate_UpdateType={})).OPEN_CHANNEL="OPEN_CHANNEL",T.CLOSED_CHANNEL="CLOSED_CHANNEL",T.ACTIVE_CHANNEL="ACTIVE_CHANNEL",T.INACTIVE_CHANNEL="INACTIVE_CHANNEL",T.PENDING_OPEN_CHANNEL="PENDING_OPEN_CHANNEL",T.FULLY_RESOLVED_CHANNEL="FULLY_RESOLVED_CHANNEL",T.UNRECOGNIZED="UNRECOGNIZED",(O=e.Invoice_InvoiceState||(e.Invoice_InvoiceState={})).OPEN="OPEN",O.SETTLED="SETTLED",O.CANCELED="CANCELED",O.ACCEPTED="ACCEPTED",O.UNRECOGNIZED="UNRECOGNIZED",(t=e.Payment_PaymentStatus||(e.Payment_PaymentStatus={})).UNKNOWN="UNKNOWN",t.IN_FLIGHT="IN_FLIGHT",t.SUCCEEDED="SUCCEEDED",t.FAILED="FAILED",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.HTLCAttempt_HTLCStatus||(e.HTLCAttempt_HTLCStatus={})).IN_FLIGHT="IN_FLIGHT",N.SUCCEEDED="SUCCEEDED",N.FAILED="FAILED",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.Failure_FailureCode||(e.Failure_FailureCode={})).RESERVED="RESERVED",_.INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS",_.INCORRECT_PAYMENT_AMOUNT="INCORRECT_PAYMENT_AMOUNT",_.FINAL_INCORRECT_CLTV_EXPIRY="FINAL_INCORRECT_CLTV_EXPIRY",_.FINAL_INCORRECT_HTLC_AMOUNT="FINAL_INCORRECT_HTLC_AMOUNT",_.FINAL_EXPIRY_TOO_SOON="FINAL_EXPIRY_TOO_SOON",_.INVALID_REALM="INVALID_REALM",_.EXPIRY_TOO_SOON="EXPIRY_TOO_SOON",_.INVALID_ONION_VERSION="INVALID_ONION_VERSION",_.INVALID_ONION_HMAC="INVALID_ONION_HMAC",_.INVALID_ONION_KEY="INVALID_ONION_KEY",_.AMOUNT_BELOW_MINIMUM="AMOUNT_BELOW_MINIMUM",_.FEE_INSUFFICIENT="FEE_INSUFFICIENT",_.INCORRECT_CLTV_EXPIRY="INCORRECT_CLTV_EXPIRY",_.CHANNEL_DISABLED="CHANNEL_DISABLED",_.TEMPORARY_CHANNEL_FAILURE="TEMPORARY_CHANNEL_FAILURE",_.REQUIRED_NODE_FEATURE_MISSING="REQUIRED_NODE_FEATURE_MISSING",_.REQUIRED_CHANNEL_FEATURE_MISSING="REQUIRED_CHANNEL_FEATURE_MISSING",_.UNKNOWN_NEXT_PEER="UNKNOWN_NEXT_PEER",_.TEMPORARY_NODE_FAILURE="TEMPORARY_NODE_FAILURE",_.PERMANENT_NODE_FAILURE="PERMANENT_NODE_FAILURE",_.PERMANENT_CHANNEL_FAILURE="PERMANENT_CHANNEL_FAILURE",_.EXPIRY_TOO_FAR="EXPIRY_TOO_FAR",_.MPP_TIMEOUT="MPP_TIMEOUT",_.INVALID_ONION_PAYLOAD="INVALID_ONION_PAYLOAD",_.INTERNAL_FAILURE="INTERNAL_FAILURE",_.UNKNOWN_FAILURE="UNKNOWN_FAILURE",_.UNREADABLE_FAILURE="UNREADABLE_FAILURE",_.UNRECOGNIZED="UNRECOGNIZED"},288:(E,e)=>{var _,N,t,O,T;Object.defineProperty(e,"__esModule",{value:!0}),e.HtlcEvent_EventType=e.ChanStatusAction=e.ResolveHoldForwardAction=e.PaymentState=e.FailureDetail=void 0,(T=e.FailureDetail||(e.FailureDetail={})).UNKNOWN="UNKNOWN",T.NO_DETAIL="NO_DETAIL",T.ONION_DECODE="ONION_DECODE",T.LINK_NOT_ELIGIBLE="LINK_NOT_ELIGIBLE",T.ON_CHAIN_TIMEOUT="ON_CHAIN_TIMEOUT",T.HTLC_EXCEEDS_MAX="HTLC_EXCEEDS_MAX",T.INSUFFICIENT_BALANCE="INSUFFICIENT_BALANCE",T.INCOMPLETE_FORWARD="INCOMPLETE_FORWARD",T.HTLC_ADD_FAILED="HTLC_ADD_FAILED",T.FORWARDS_DISABLED="FORWARDS_DISABLED",T.INVOICE_CANCELED="INVOICE_CANCELED",T.INVOICE_UNDERPAID="INVOICE_UNDERPAID",T.INVOICE_EXPIRY_TOO_SOON="INVOICE_EXPIRY_TOO_SOON",T.INVOICE_NOT_OPEN="INVOICE_NOT_OPEN",T.MPP_INVOICE_TIMEOUT="MPP_INVOICE_TIMEOUT",T.ADDRESS_MISMATCH="ADDRESS_MISMATCH",T.SET_TOTAL_MISMATCH="SET_TOTAL_MISMATCH",T.SET_TOTAL_TOO_LOW="SET_TOTAL_TOO_LOW",T.SET_OVERPAID="SET_OVERPAID",T.UNKNOWN_INVOICE="UNKNOWN_INVOICE",T.INVALID_KEYSEND="INVALID_KEYSEND",T.MPP_IN_PROGRESS="MPP_IN_PROGRESS",T.CIRCULAR_ROUTE="CIRCULAR_ROUTE",T.UNRECOGNIZED="UNRECOGNIZED",(O=e.PaymentState||(e.PaymentState={})).IN_FLIGHT="IN_FLIGHT",O.SUCCEEDED="SUCCEEDED",O.FAILED_TIMEOUT="FAILED_TIMEOUT",O.FAILED_NO_ROUTE="FAILED_NO_ROUTE",O.FAILED_ERROR="FAILED_ERROR",O.FAILED_INCORRECT_PAYMENT_DETAILS="FAILED_INCORRECT_PAYMENT_DETAILS",O.FAILED_INSUFFICIENT_BALANCE="FAILED_INSUFFICIENT_BALANCE",O.UNRECOGNIZED="UNRECOGNIZED",(t=e.ResolveHoldForwardAction||(e.ResolveHoldForwardAction={})).SETTLE="SETTLE",t.FAIL="FAIL",t.RESUME="RESUME",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.ChanStatusAction||(e.ChanStatusAction={})).ENABLE="ENABLE",N.DISABLE="DISABLE",N.AUTO="AUTO",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.HtlcEvent_EventType||(e.HtlcEvent_EventType={})).UNKNOWN="UNKNOWN",_.SEND="SEND",_.RECEIVE="RECEIVE",_.FORWARD="FORWARD",_.UNRECOGNIZED="UNRECOGNIZED"},885:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.SignMethod=void 0,(_=e.SignMethod||(e.SignMethod={})).SIGN_METHOD_WITNESS_V0="SIGN_METHOD_WITNESS_V0",_.SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086="SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086",_.SIGN_METHOD_TAPROOT_KEY_SPEND="SIGN_METHOD_TAPROOT_KEY_SPEND",_.SIGN_METHOD_TAPROOT_SCRIPT_SPEND="SIGN_METHOD_TAPROOT_SCRIPT_SPEND",_.UNRECOGNIZED="UNRECOGNIZED"},213:(E,e)=>{var _,N;Object.defineProperty(e,"__esModule",{value:!0}),e.WitnessType=e.AddressType=void 0,(N=e.AddressType||(e.AddressType={})).UNKNOWN="UNKNOWN",N.WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",N.NESTED_WITNESS_PUBKEY_HASH="NESTED_WITNESS_PUBKEY_HASH",N.HYBRID_NESTED_WITNESS_PUBKEY_HASH="HYBRID_NESTED_WITNESS_PUBKEY_HASH",N.TAPROOT_PUBKEY="TAPROOT_PUBKEY",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.WitnessType||(e.WitnessType={})).UNKNOWN_WITNESS="UNKNOWN_WITNESS",_.COMMITMENT_TIME_LOCK="COMMITMENT_TIME_LOCK",_.COMMITMENT_NO_DELAY="COMMITMENT_NO_DELAY",_.COMMITMENT_REVOKE="COMMITMENT_REVOKE",_.HTLC_OFFERED_REVOKE="HTLC_OFFERED_REVOKE",_.HTLC_ACCEPTED_REVOKE="HTLC_ACCEPTED_REVOKE",_.HTLC_OFFERED_TIMEOUT_SECOND_LEVEL="HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",_.HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL="HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",_.HTLC_OFFERED_REMOTE_TIMEOUT="HTLC_OFFERED_REMOTE_TIMEOUT",_.HTLC_ACCEPTED_REMOTE_SUCCESS="HTLC_ACCEPTED_REMOTE_SUCCESS",_.HTLC_SECOND_LEVEL_REVOKE="HTLC_SECOND_LEVEL_REVOKE",_.WITNESS_KEY_HASH="WITNESS_KEY_HASH",_.NESTED_WITNESS_KEY_HASH="NESTED_WITNESS_KEY_HASH",_.COMMITMENT_ANCHOR="COMMITMENT_ANCHOR",_.UNRECOGNIZED="UNRECOGNIZED"},939:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},482:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},921:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.PolicyType=void 0,(_=e.PolicyType||(e.PolicyType={})).LEGACY="LEGACY",_.ANCHOR="ANCHOR",_.UNRECOGNIZED="UNRECOGNIZED"},452:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(21),e),t(_(939),e)},598:(E,e)=>{var _,N,t,O,T;Object.defineProperty(e,"__esModule",{value:!0}),e.AutoReason=e.LiquidityRuleType=e.FailureReason=e.SwapState=e.SwapType=void 0,(T=e.SwapType||(e.SwapType={})).LOOP_OUT="LOOP_OUT",T.LOOP_IN="LOOP_IN",T.UNRECOGNIZED="UNRECOGNIZED",(O=e.SwapState||(e.SwapState={})).INITIATED="INITIATED",O.PREIMAGE_REVEALED="PREIMAGE_REVEALED",O.HTLC_PUBLISHED="HTLC_PUBLISHED",O.SUCCESS="SUCCESS",O.FAILED="FAILED",O.INVOICE_SETTLED="INVOICE_SETTLED",O.UNRECOGNIZED="UNRECOGNIZED",(t=e.FailureReason||(e.FailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",t.FAILURE_REASON_OFFCHAIN="FAILURE_REASON_OFFCHAIN",t.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",t.FAILURE_REASON_SWEEP_TIMEOUT="FAILURE_REASON_SWEEP_TIMEOUT",t.FAILURE_REASON_INSUFFICIENT_VALUE="FAILURE_REASON_INSUFFICIENT_VALUE",t.FAILURE_REASON_TEMPORARY="FAILURE_REASON_TEMPORARY",t.FAILURE_REASON_INCORRECT_AMOUNT="FAILURE_REASON_INCORRECT_AMOUNT",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.LiquidityRuleType||(e.LiquidityRuleType={})).UNKNOWN="UNKNOWN",N.THRESHOLD="THRESHOLD",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.AutoReason||(e.AutoReason={})).AUTO_REASON_UNKNOWN="AUTO_REASON_UNKNOWN",_.AUTO_REASON_BUDGET_NOT_STARTED="AUTO_REASON_BUDGET_NOT_STARTED",_.AUTO_REASON_SWEEP_FEES="AUTO_REASON_SWEEP_FEES",_.AUTO_REASON_BUDGET_ELAPSED="AUTO_REASON_BUDGET_ELAPSED",_.AUTO_REASON_IN_FLIGHT="AUTO_REASON_IN_FLIGHT",_.AUTO_REASON_SWAP_FEE="AUTO_REASON_SWAP_FEE",_.AUTO_REASON_MINER_FEE="AUTO_REASON_MINER_FEE",_.AUTO_REASON_PREPAY="AUTO_REASON_PREPAY",_.AUTO_REASON_FAILURE_BACKOFF="AUTO_REASON_FAILURE_BACKOFF",_.AUTO_REASON_LOOP_OUT="AUTO_REASON_LOOP_OUT",_.AUTO_REASON_LOOP_IN="AUTO_REASON_LOOP_IN",_.AUTO_REASON_LIQUIDITY_OK="AUTO_REASON_LIQUIDITY_OK",_.AUTO_REASON_BUDGET_INSUFFICIENT="AUTO_REASON_BUDGET_INSUFFICIENT",_.AUTO_REASON_FEE_INSUFFICIENT="AUTO_REASON_FEE_INSUFFICIENT",_.UNRECOGNIZED="UNRECOGNIZED"},283:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},11:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(598),e),t(_(283),e)},927:(E,e)=>{var _,N,t,O,T,r,R,I,n,A,i;Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidOrder_FailReason=e.AccountDiff_AccountState=e.SubscribeError_Error=e.OrderReject_OrderRejectReason=e.OrderMatchReject_RejectReason=e.DurationBucketState=e.OrderState=e.NodeTier=e.OrderChannelType=e.AuctionAccountState=e.ChannelType=void 0,(i=e.ChannelType||(e.ChannelType={})).TWEAKLESS="TWEAKLESS",i.ANCHORS="ANCHORS",i.SCRIPT_ENFORCED_LEASE="SCRIPT_ENFORCED_LEASE",i.UNRECOGNIZED="UNRECOGNIZED",(A=e.AuctionAccountState||(e.AuctionAccountState={})).STATE_PENDING_OPEN="STATE_PENDING_OPEN",A.STATE_OPEN="STATE_OPEN",A.STATE_EXPIRED="STATE_EXPIRED",A.STATE_PENDING_UPDATE="STATE_PENDING_UPDATE",A.STATE_CLOSED="STATE_CLOSED",A.STATE_PENDING_BATCH="STATE_PENDING_BATCH",A.STATE_EXPIRED_PENDING_UPDATE="STATE_EXPIRED_PENDING_UPDATE",A.UNRECOGNIZED="UNRECOGNIZED",(n=e.OrderChannelType||(e.OrderChannelType={})).ORDER_CHANNEL_TYPE_UNKNOWN="ORDER_CHANNEL_TYPE_UNKNOWN",n.ORDER_CHANNEL_TYPE_PEER_DEPENDENT="ORDER_CHANNEL_TYPE_PEER_DEPENDENT",n.ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED="ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED",n.UNRECOGNIZED="UNRECOGNIZED",(I=e.NodeTier||(e.NodeTier={})).TIER_DEFAULT="TIER_DEFAULT",I.TIER_0="TIER_0",I.TIER_1="TIER_1",I.UNRECOGNIZED="UNRECOGNIZED",(R=e.OrderState||(e.OrderState={})).ORDER_SUBMITTED="ORDER_SUBMITTED",R.ORDER_CLEARED="ORDER_CLEARED",R.ORDER_PARTIALLY_FILLED="ORDER_PARTIALLY_FILLED",R.ORDER_EXECUTED="ORDER_EXECUTED",R.ORDER_CANCELED="ORDER_CANCELED",R.ORDER_EXPIRED="ORDER_EXPIRED",R.ORDER_FAILED="ORDER_FAILED",R.UNRECOGNIZED="UNRECOGNIZED",(r=e.DurationBucketState||(e.DurationBucketState={})).NO_MARKET="NO_MARKET",r.MARKET_CLOSED="MARKET_CLOSED",r.ACCEPTING_ORDERS="ACCEPTING_ORDERS",r.MARKET_OPEN="MARKET_OPEN",r.UNRECOGNIZED="UNRECOGNIZED",(T=e.OrderMatchReject_RejectReason||(e.OrderMatchReject_RejectReason={})).UNKNOWN="UNKNOWN",T.SERVER_MISBEHAVIOR="SERVER_MISBEHAVIOR",T.BATCH_VERSION_MISMATCH="BATCH_VERSION_MISMATCH",T.PARTIAL_REJECT="PARTIAL_REJECT",T.UNRECOGNIZED="UNRECOGNIZED",(O=e.OrderReject_OrderRejectReason||(e.OrderReject_OrderRejectReason={})).DUPLICATE_PEER="DUPLICATE_PEER",O.CHANNEL_FUNDING_FAILED="CHANNEL_FUNDING_FAILED",O.UNRECOGNIZED="UNRECOGNIZED",(t=e.SubscribeError_Error||(e.SubscribeError_Error={})).UNKNOWN="UNKNOWN",t.SERVER_SHUTDOWN="SERVER_SHUTDOWN",t.ACCOUNT_DOES_NOT_EXIST="ACCOUNT_DOES_NOT_EXIST",t.INCOMPLETE_ACCOUNT_RESERVATION="INCOMPLETE_ACCOUNT_RESERVATION",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.AccountDiff_AccountState||(e.AccountDiff_AccountState={})).OUTPUT_RECREATED="OUTPUT_RECREATED",N.OUTPUT_DUST_EXTENDED_OFFCHAIN="OUTPUT_DUST_EXTENDED_OFFCHAIN",N.OUTPUT_DUST_ADDED_TO_FEES="OUTPUT_DUST_ADDED_TO_FEES",N.OUTPUT_FULLY_SPENT="OUTPUT_FULLY_SPENT",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.InvalidOrder_FailReason||(e.InvalidOrder_FailReason={})).INVALID_AMT="INVALID_AMT",_.UNRECOGNIZED="UNRECOGNIZED"},961:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},456:(E,e)=>{var _,N,t;Object.defineProperty(e,"__esModule",{value:!0}),e.MatchRejectReason=e.MatchState=e.AccountState=void 0,(t=e.AccountState||(e.AccountState={})).PENDING_OPEN="PENDING_OPEN",t.PENDING_UPDATE="PENDING_UPDATE",t.OPEN="OPEN",t.EXPIRED="EXPIRED",t.PENDING_CLOSED="PENDING_CLOSED",t.CLOSED="CLOSED",t.RECOVERY_FAILED="RECOVERY_FAILED",t.PENDING_BATCH="PENDING_BATCH",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.MatchState||(e.MatchState={})).PREPARE="PREPARE",N.ACCEPTED="ACCEPTED",N.REJECTED="REJECTED",N.SIGNED="SIGNED",N.FINALIZED="FINALIZED",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.MatchRejectReason||(e.MatchRejectReason={})).NONE="NONE",_.SERVER_MISBEHAVIOR="SERVER_MISBEHAVIOR",_.BATCH_VERSION_MISMATCH="BATCH_VERSION_MISMATCH",_.PARTIAL_REJECT_COLLATERAL="PARTIAL_REJECT_COLLATERAL",_.PARTIAL_REJECT_DUPLICATE_PEER="PARTIAL_REJECT_DUPLICATE_PEER",_.PARTIAL_REJECT_CHANNEL_FUNDING_FAILED="PARTIAL_REJECT_CHANNEL_FUNDING_FAILED",_.UNRECOGNIZED="UNRECOGNIZED"},377:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(927),e),t(_(961),e),t(_(456),e)},226:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(288),e)},644:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.subscriptionMethods=e.serviceNames=void 0,e.serviceNames={frdrpc:{FaradayServer:"frdrpc.FaradayServer"},autopilotrpc:{Autopilot:"autopilotrpc.Autopilot"},chainrpc:{ChainNotifier:"chainrpc.ChainNotifier"},invoicesrpc:{Invoices:"invoicesrpc.Invoices"},lnrpc:{Lightning:"lnrpc.Lightning",WalletUnlocker:"lnrpc.WalletUnlocker"},routerrpc:{Router:"routerrpc.Router"},signrpc:{Signer:"signrpc.Signer"},walletrpc:{WalletKit:"walletrpc.WalletKit"},watchtowerrpc:{Watchtower:"watchtowerrpc.Watchtower"},wtclientrpc:{WatchtowerClient:"wtclientrpc.WatchtowerClient"},looprpc:{SwapClient:"looprpc.SwapClient",Debug:"looprpc.Debug"},poolrpc:{ChannelAuctioneer:"poolrpc.ChannelAuctioneer",HashMail:"poolrpc.HashMail",Trader:"poolrpc.Trader"}},e.subscriptionMethods=["chainrpc.ChainNotifier.RegisterConfirmationsNtfn","chainrpc.ChainNotifier.RegisterSpendNtfn","chainrpc.ChainNotifier.RegisterBlockEpochNtfn","invoicesrpc.Invoices.SubscribeSingleInvoice","lnrpc.Lightning.SubscribeTransactions","lnrpc.Lightning.SubscribePeerEvents","lnrpc.Lightning.SubscribeChannelEvents","lnrpc.Lightning.OpenChannel","lnrpc.Lightning.ChannelAcceptor","lnrpc.Lightning.CloseChannel","lnrpc.Lightning.SendPayment","lnrpc.Lightning.SendToRoute","lnrpc.Lightning.SubscribeInvoices","lnrpc.Lightning.SubscribeChannelGraph","lnrpc.Lightning.SubscribeChannelBackups","lnrpc.Lightning.RegisterRPCMiddleware","lnrpc.Lightning.SubscribeCustomMessages","routerrpc.Router.SendPaymentV2","routerrpc.Router.TrackPaymentV2","routerrpc.Router.SubscribeHtlcEvents","routerrpc.Router.SendPayment","routerrpc.Router.TrackPayment","routerrpc.Router.HtlcInterceptor","looprpc.SwapClient.Monitor","poolrpc.ChannelAuctioneer.SubscribeBatchAuction","poolrpc.ChannelAuctioneer.SubscribeSidecar","poolrpc.HashMail.RecvStream"]},207:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(885),e)},367:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(213),e)},412:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(482),e)},946:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),t=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),t(_(921),e)},848:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelKeysToSnake=e.snakeKeysToCamel=e.isObject=void 0;var _=function(E){return Array.isArray(E)};e.isObject=function(E){return E===Object(E)&&!_(E)&&"function"!=typeof E},e.snakeKeysToCamel=function(E){if((0,e.isObject)(E)){var N={};return Object.keys(E).forEach((function(_){var t;N[(t=_,t.replace(/([-_][a-z])/gi,(function(E){return E.toUpperCase().replace("-","").replace("_","")})))]=(0,e.snakeKeysToCamel)(E[_])})),N}return _(E)?E.map((function(E){return(0,e.snakeKeysToCamel)(E)})):E},e.camelKeysToSnake=function(E){if((0,e.isObject)(E)){var N={};return Object.keys(E).forEach((function(_){var t;N[(t=_,t.replace(/[A-Z]/g,(function(E){return"_".concat(E.toLowerCase())})))]=(0,e.camelKeysToSnake)(E[_])})),N}return _(E)?E.map((function(E){return(0,e.camelKeysToSnake)(E)})):E}}},e={};return function _(N){var t=e[N];if(void 0!==t)return t.exports;var O=e[N]={exports:{}};return E[N].call(O.exports,O,O.exports,_),O.exports}(713)})()})); | ||
!function(E,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@lightninglabs/lnc-core"]=e():E["@lightninglabs/lnc-core"]=e()}(self,(function(){return(()=>{"use strict";var E={877:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.faradayServer=E(N.serviceNames.frdrpc.FaradayServer,e)}},382:function(E,e,_){var N=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.FaradayApi=e.PoolApi=e.LoopApi=e.LndApi=void 0;var O=_(152);Object.defineProperty(e,"LndApi",{enumerable:!0,get:function(){return N(O).default}});var t=_(343);Object.defineProperty(e,"LoopApi",{enumerable:!0,get:function(){return N(t).default}});var T=_(146);Object.defineProperty(e,"PoolApi",{enumerable:!0,get:function(){return N(T).default}});var r=_(877);Object.defineProperty(e,"FaradayApi",{enumerable:!0,get:function(){return N(r).default}})},152:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.autopilot=E(N.serviceNames.autopilotrpc.Autopilot,e),this.chainNotifier=E(N.serviceNames.chainrpc.ChainNotifier,e),this.invoices=E(N.serviceNames.invoicesrpc.Invoices,e),this.lightning=E(N.serviceNames.lnrpc.Lightning,e),this.router=E(N.serviceNames.routerrpc.Router,e),this.signer=E(N.serviceNames.signrpc.Signer,e),this.walletKit=E(N.serviceNames.walletrpc.WalletKit,e),this.walletUnlocker=E(N.serviceNames.lnrpc.WalletUnlocker,e),this.watchtower=E(N.serviceNames.watchtowerrpc.Watchtower,e),this.watchtowerClient=E(N.serviceNames.wtclientrpc.WatchtowerClient,e)}},343:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.swapClient=E(N.serviceNames.looprpc.SwapClient,e),this.debug=E(N.serviceNames.looprpc.Debug,e)}},146:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.trader=E(N.serviceNames.poolrpc.Trader,e),this.channelAuctioneer=E(N.serviceNames.poolrpc.ChannelAuctioneer,e),this.hashmail=E(N.serviceNames.poolrpc.HashMail,e)}},713:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),e.subscriptionMethods=e.FaradayApi=e.PoolApi=e.LoopApi=e.LndApi=e.snakeKeysToCamel=e.isObject=e.camelKeysToSnake=void 0,O(_(894),e);var t=_(848);Object.defineProperty(e,"camelKeysToSnake",{enumerable:!0,get:function(){return t.camelKeysToSnake}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return t.isObject}}),Object.defineProperty(e,"snakeKeysToCamel",{enumerable:!0,get:function(){return t.snakeKeysToCamel}});var T=_(382);Object.defineProperty(e,"LndApi",{enumerable:!0,get:function(){return T.LndApi}}),Object.defineProperty(e,"LoopApi",{enumerable:!0,get:function(){return T.LoopApi}}),Object.defineProperty(e,"PoolApi",{enumerable:!0,get:function(){return T.PoolApi}}),Object.defineProperty(e,"FaradayApi",{enumerable:!0,get:function(){return T.FaradayApi}});var r=_(644);Object.defineProperty(e,"subscriptionMethods",{enumerable:!0,get:function(){return r.subscriptionMethods}})},273:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(726),e)},71:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(374),e)},76:(E,e)=>{var _,N,O,t;Object.defineProperty(e,"__esModule",{value:!0}),e.CloseRecommendationRequest_Metric=e.EntryType=e.FiatBackend=e.Granularity=void 0,(t=e.Granularity||(e.Granularity={})).UNKNOWN_GRANULARITY="UNKNOWN_GRANULARITY",t.MINUTE="MINUTE",t.FIVE_MINUTES="FIVE_MINUTES",t.FIFTEEN_MINUTES="FIFTEEN_MINUTES",t.THIRTY_MINUTES="THIRTY_MINUTES",t.HOUR="HOUR",t.SIX_HOURS="SIX_HOURS",t.TWELVE_HOURS="TWELVE_HOURS",t.DAY="DAY",t.UNRECOGNIZED="UNRECOGNIZED",(O=e.FiatBackend||(e.FiatBackend={})).UNKNOWN_FIATBACKEND="UNKNOWN_FIATBACKEND",O.COINCAP="COINCAP",O.COINDESK="COINDESK",O.CUSTOM="CUSTOM",O.COINGECKO="COINGECKO",O.UNRECOGNIZED="UNRECOGNIZED",(N=e.EntryType||(e.EntryType={})).UNKNOWN="UNKNOWN",N.LOCAL_CHANNEL_OPEN="LOCAL_CHANNEL_OPEN",N.REMOTE_CHANNEL_OPEN="REMOTE_CHANNEL_OPEN",N.CHANNEL_OPEN_FEE="CHANNEL_OPEN_FEE",N.CHANNEL_CLOSE="CHANNEL_CLOSE",N.RECEIPT="RECEIPT",N.PAYMENT="PAYMENT",N.FEE="FEE",N.CIRCULAR_RECEIPT="CIRCULAR_RECEIPT",N.FORWARD="FORWARD",N.FORWARD_FEE="FORWARD_FEE",N.CIRCULAR_PAYMENT="CIRCULAR_PAYMENT",N.CIRCULAR_FEE="CIRCULAR_FEE",N.SWEEP="SWEEP",N.SWEEP_FEE="SWEEP_FEE",N.CHANNEL_CLOSE_FEE="CHANNEL_CLOSE_FEE",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.CloseRecommendationRequest_Metric||(e.CloseRecommendationRequest_Metric={})).UNKNOWN="UNKNOWN",_.UPTIME="UPTIME",_.REVENUE="REVENUE",_.INCOMING_VOLUME="INCOMING_VOLUME",_.OUTGOING_VOLUME="OUTGOING_VOLUME",_.TOTAL_VOLUME="TOTAL_VOLUME",_.UNRECOGNIZED="UNRECOGNIZED"},915:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(76),e)},894:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__setModuleDefault||(Object.create?function(E,e){Object.defineProperty(E,"default",{enumerable:!0,value:e})}:function(E,e){E.default=e}),t=this&&this.__importStar||function(E){if(E&&E.__esModule)return E;var e={};if(null!=E)for(var _ in E)"default"!==_&&Object.prototype.hasOwnProperty.call(E,_)&&N(e,E,_);return O(e,E),e};Object.defineProperty(e,"__esModule",{value:!0}),e.poolrpc=e.looprpc=e.wtclientrpc=e.watchtowerrpc=e.walletrpc=e.signrpc=e.routerrpc=e.lnrpc=e.invoicesrpc=e.chainrpc=e.autopilotrpc=e.frdrpc=void 0;var T=t(_(915));e.frdrpc=T;var r=t(_(273));e.autopilotrpc=r;var R=t(_(71));e.chainrpc=R;var I=t(_(312));e.invoicesrpc=I;var n=t(_(452));e.lnrpc=n;var A=t(_(226));e.routerrpc=A;var C=t(_(207));e.signrpc=C;var o=t(_(367));e.walletrpc=o;var i=t(_(412));e.watchtowerrpc=i;var S=t(_(946));e.wtclientrpc=S;var a=t(_(11));e.looprpc=a;var c=t(_(377));e.poolrpc=c},312:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(212),e)},726:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},374:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},212:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.LookupModifier=void 0,(_=e.LookupModifier||(e.LookupModifier={})).DEFAULT="DEFAULT",_.HTLC_SET_ONLY="HTLC_SET_ONLY",_.HTLC_SET_BLANK="HTLC_SET_BLANK",_.UNRECOGNIZED="UNRECOGNIZED"},21:(E,e)=>{var _,N,O,t,T,r,R,I,n,A,C,o,i,S,a,c,U,D,P,L;Object.defineProperty(e,"__esModule",{value:!0}),e.Failure_FailureCode=e.HTLCAttempt_HTLCStatus=e.Payment_PaymentStatus=e.Invoice_InvoiceState=e.ChannelEventUpdate_UpdateType=e.PendingChannelsResponse_ForceClosedChannel_AnchorState=e.PeerEvent_EventType=e.Peer_SyncType=e.ChannelCloseSummary_ClosureType=e.UpdateFailure=e.FeatureBit=e.PaymentFailureReason=e.InvoiceHTLCState=e.NodeMetricType=e.ResolutionOutcome=e.ResolutionType=e.Initiator=e.CommitmentType=e.AddressType=e.OutputScriptType=void 0,(L=e.OutputScriptType||(e.OutputScriptType={})).SCRIPT_TYPE_PUBKEY_HASH="SCRIPT_TYPE_PUBKEY_HASH",L.SCRIPT_TYPE_SCRIPT_HASH="SCRIPT_TYPE_SCRIPT_HASH",L.SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH="SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",L.SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH="SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",L.SCRIPT_TYPE_PUBKEY="SCRIPT_TYPE_PUBKEY",L.SCRIPT_TYPE_MULTISIG="SCRIPT_TYPE_MULTISIG",L.SCRIPT_TYPE_NULLDATA="SCRIPT_TYPE_NULLDATA",L.SCRIPT_TYPE_NON_STANDARD="SCRIPT_TYPE_NON_STANDARD",L.SCRIPT_TYPE_WITNESS_UNKNOWN="SCRIPT_TYPE_WITNESS_UNKNOWN",L.SCRIPT_TYPE_WITNESS_V1_TAPROOT="SCRIPT_TYPE_WITNESS_V1_TAPROOT",L.UNRECOGNIZED="UNRECOGNIZED",(P=e.AddressType||(e.AddressType={})).WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",P.NESTED_PUBKEY_HASH="NESTED_PUBKEY_HASH",P.UNUSED_WITNESS_PUBKEY_HASH="UNUSED_WITNESS_PUBKEY_HASH",P.UNUSED_NESTED_PUBKEY_HASH="UNUSED_NESTED_PUBKEY_HASH",P.TAPROOT_PUBKEY="TAPROOT_PUBKEY",P.UNUSED_TAPROOT_PUBKEY="UNUSED_TAPROOT_PUBKEY",P.UNRECOGNIZED="UNRECOGNIZED",(D=e.CommitmentType||(e.CommitmentType={})).UNKNOWN_COMMITMENT_TYPE="UNKNOWN_COMMITMENT_TYPE",D.LEGACY="LEGACY",D.STATIC_REMOTE_KEY="STATIC_REMOTE_KEY",D.ANCHORS="ANCHORS",D.SCRIPT_ENFORCED_LEASE="SCRIPT_ENFORCED_LEASE",D.UNRECOGNIZED="UNRECOGNIZED",(U=e.Initiator||(e.Initiator={})).INITIATOR_UNKNOWN="INITIATOR_UNKNOWN",U.INITIATOR_LOCAL="INITIATOR_LOCAL",U.INITIATOR_REMOTE="INITIATOR_REMOTE",U.INITIATOR_BOTH="INITIATOR_BOTH",U.UNRECOGNIZED="UNRECOGNIZED",(c=e.ResolutionType||(e.ResolutionType={})).TYPE_UNKNOWN="TYPE_UNKNOWN",c.ANCHOR="ANCHOR",c.INCOMING_HTLC="INCOMING_HTLC",c.OUTGOING_HTLC="OUTGOING_HTLC",c.COMMIT="COMMIT",c.UNRECOGNIZED="UNRECOGNIZED",(a=e.ResolutionOutcome||(e.ResolutionOutcome={})).OUTCOME_UNKNOWN="OUTCOME_UNKNOWN",a.CLAIMED="CLAIMED",a.UNCLAIMED="UNCLAIMED",a.ABANDONED="ABANDONED",a.FIRST_STAGE="FIRST_STAGE",a.TIMEOUT="TIMEOUT",a.UNRECOGNIZED="UNRECOGNIZED",(S=e.NodeMetricType||(e.NodeMetricType={})).UNKNOWN="UNKNOWN",S.BETWEENNESS_CENTRALITY="BETWEENNESS_CENTRALITY",S.UNRECOGNIZED="UNRECOGNIZED",(i=e.InvoiceHTLCState||(e.InvoiceHTLCState={})).ACCEPTED="ACCEPTED",i.SETTLED="SETTLED",i.CANCELED="CANCELED",i.UNRECOGNIZED="UNRECOGNIZED",(o=e.PaymentFailureReason||(e.PaymentFailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",o.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",o.FAILURE_REASON_NO_ROUTE="FAILURE_REASON_NO_ROUTE",o.FAILURE_REASON_ERROR="FAILURE_REASON_ERROR",o.FAILURE_REASON_INCORRECT_PAYMENT_DETAILS="FAILURE_REASON_INCORRECT_PAYMENT_DETAILS",o.FAILURE_REASON_INSUFFICIENT_BALANCE="FAILURE_REASON_INSUFFICIENT_BALANCE",o.UNRECOGNIZED="UNRECOGNIZED",(C=e.FeatureBit||(e.FeatureBit={})).DATALOSS_PROTECT_REQ="DATALOSS_PROTECT_REQ",C.DATALOSS_PROTECT_OPT="DATALOSS_PROTECT_OPT",C.INITIAL_ROUING_SYNC="INITIAL_ROUING_SYNC",C.UPFRONT_SHUTDOWN_SCRIPT_REQ="UPFRONT_SHUTDOWN_SCRIPT_REQ",C.UPFRONT_SHUTDOWN_SCRIPT_OPT="UPFRONT_SHUTDOWN_SCRIPT_OPT",C.GOSSIP_QUERIES_REQ="GOSSIP_QUERIES_REQ",C.GOSSIP_QUERIES_OPT="GOSSIP_QUERIES_OPT",C.TLV_ONION_REQ="TLV_ONION_REQ",C.TLV_ONION_OPT="TLV_ONION_OPT",C.EXT_GOSSIP_QUERIES_REQ="EXT_GOSSIP_QUERIES_REQ",C.EXT_GOSSIP_QUERIES_OPT="EXT_GOSSIP_QUERIES_OPT",C.STATIC_REMOTE_KEY_REQ="STATIC_REMOTE_KEY_REQ",C.STATIC_REMOTE_KEY_OPT="STATIC_REMOTE_KEY_OPT",C.PAYMENT_ADDR_REQ="PAYMENT_ADDR_REQ",C.PAYMENT_ADDR_OPT="PAYMENT_ADDR_OPT",C.MPP_REQ="MPP_REQ",C.MPP_OPT="MPP_OPT",C.WUMBO_CHANNELS_REQ="WUMBO_CHANNELS_REQ",C.WUMBO_CHANNELS_OPT="WUMBO_CHANNELS_OPT",C.ANCHORS_REQ="ANCHORS_REQ",C.ANCHORS_OPT="ANCHORS_OPT",C.ANCHORS_ZERO_FEE_HTLC_REQ="ANCHORS_ZERO_FEE_HTLC_REQ",C.ANCHORS_ZERO_FEE_HTLC_OPT="ANCHORS_ZERO_FEE_HTLC_OPT",C.AMP_REQ="AMP_REQ",C.AMP_OPT="AMP_OPT",C.UNRECOGNIZED="UNRECOGNIZED",(A=e.UpdateFailure||(e.UpdateFailure={})).UPDATE_FAILURE_UNKNOWN="UPDATE_FAILURE_UNKNOWN",A.UPDATE_FAILURE_PENDING="UPDATE_FAILURE_PENDING",A.UPDATE_FAILURE_NOT_FOUND="UPDATE_FAILURE_NOT_FOUND",A.UPDATE_FAILURE_INTERNAL_ERR="UPDATE_FAILURE_INTERNAL_ERR",A.UPDATE_FAILURE_INVALID_PARAMETER="UPDATE_FAILURE_INVALID_PARAMETER",A.UNRECOGNIZED="UNRECOGNIZED",(n=e.ChannelCloseSummary_ClosureType||(e.ChannelCloseSummary_ClosureType={})).COOPERATIVE_CLOSE="COOPERATIVE_CLOSE",n.LOCAL_FORCE_CLOSE="LOCAL_FORCE_CLOSE",n.REMOTE_FORCE_CLOSE="REMOTE_FORCE_CLOSE",n.BREACH_CLOSE="BREACH_CLOSE",n.FUNDING_CANCELED="FUNDING_CANCELED",n.ABANDONED="ABANDONED",n.UNRECOGNIZED="UNRECOGNIZED",(I=e.Peer_SyncType||(e.Peer_SyncType={})).UNKNOWN_SYNC="UNKNOWN_SYNC",I.ACTIVE_SYNC="ACTIVE_SYNC",I.PASSIVE_SYNC="PASSIVE_SYNC",I.PINNED_SYNC="PINNED_SYNC",I.UNRECOGNIZED="UNRECOGNIZED",(R=e.PeerEvent_EventType||(e.PeerEvent_EventType={})).PEER_ONLINE="PEER_ONLINE",R.PEER_OFFLINE="PEER_OFFLINE",R.UNRECOGNIZED="UNRECOGNIZED",(r=e.PendingChannelsResponse_ForceClosedChannel_AnchorState||(e.PendingChannelsResponse_ForceClosedChannel_AnchorState={})).LIMBO="LIMBO",r.RECOVERED="RECOVERED",r.LOST="LOST",r.UNRECOGNIZED="UNRECOGNIZED",(T=e.ChannelEventUpdate_UpdateType||(e.ChannelEventUpdate_UpdateType={})).OPEN_CHANNEL="OPEN_CHANNEL",T.CLOSED_CHANNEL="CLOSED_CHANNEL",T.ACTIVE_CHANNEL="ACTIVE_CHANNEL",T.INACTIVE_CHANNEL="INACTIVE_CHANNEL",T.PENDING_OPEN_CHANNEL="PENDING_OPEN_CHANNEL",T.FULLY_RESOLVED_CHANNEL="FULLY_RESOLVED_CHANNEL",T.UNRECOGNIZED="UNRECOGNIZED",(t=e.Invoice_InvoiceState||(e.Invoice_InvoiceState={})).OPEN="OPEN",t.SETTLED="SETTLED",t.CANCELED="CANCELED",t.ACCEPTED="ACCEPTED",t.UNRECOGNIZED="UNRECOGNIZED",(O=e.Payment_PaymentStatus||(e.Payment_PaymentStatus={})).UNKNOWN="UNKNOWN",O.IN_FLIGHT="IN_FLIGHT",O.SUCCEEDED="SUCCEEDED",O.FAILED="FAILED",O.UNRECOGNIZED="UNRECOGNIZED",(N=e.HTLCAttempt_HTLCStatus||(e.HTLCAttempt_HTLCStatus={})).IN_FLIGHT="IN_FLIGHT",N.SUCCEEDED="SUCCEEDED",N.FAILED="FAILED",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.Failure_FailureCode||(e.Failure_FailureCode={})).RESERVED="RESERVED",_.INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS",_.INCORRECT_PAYMENT_AMOUNT="INCORRECT_PAYMENT_AMOUNT",_.FINAL_INCORRECT_CLTV_EXPIRY="FINAL_INCORRECT_CLTV_EXPIRY",_.FINAL_INCORRECT_HTLC_AMOUNT="FINAL_INCORRECT_HTLC_AMOUNT",_.FINAL_EXPIRY_TOO_SOON="FINAL_EXPIRY_TOO_SOON",_.INVALID_REALM="INVALID_REALM",_.EXPIRY_TOO_SOON="EXPIRY_TOO_SOON",_.INVALID_ONION_VERSION="INVALID_ONION_VERSION",_.INVALID_ONION_HMAC="INVALID_ONION_HMAC",_.INVALID_ONION_KEY="INVALID_ONION_KEY",_.AMOUNT_BELOW_MINIMUM="AMOUNT_BELOW_MINIMUM",_.FEE_INSUFFICIENT="FEE_INSUFFICIENT",_.INCORRECT_CLTV_EXPIRY="INCORRECT_CLTV_EXPIRY",_.CHANNEL_DISABLED="CHANNEL_DISABLED",_.TEMPORARY_CHANNEL_FAILURE="TEMPORARY_CHANNEL_FAILURE",_.REQUIRED_NODE_FEATURE_MISSING="REQUIRED_NODE_FEATURE_MISSING",_.REQUIRED_CHANNEL_FEATURE_MISSING="REQUIRED_CHANNEL_FEATURE_MISSING",_.UNKNOWN_NEXT_PEER="UNKNOWN_NEXT_PEER",_.TEMPORARY_NODE_FAILURE="TEMPORARY_NODE_FAILURE",_.PERMANENT_NODE_FAILURE="PERMANENT_NODE_FAILURE",_.PERMANENT_CHANNEL_FAILURE="PERMANENT_CHANNEL_FAILURE",_.EXPIRY_TOO_FAR="EXPIRY_TOO_FAR",_.MPP_TIMEOUT="MPP_TIMEOUT",_.INVALID_ONION_PAYLOAD="INVALID_ONION_PAYLOAD",_.INTERNAL_FAILURE="INTERNAL_FAILURE",_.UNKNOWN_FAILURE="UNKNOWN_FAILURE",_.UNREADABLE_FAILURE="UNREADABLE_FAILURE",_.UNRECOGNIZED="UNRECOGNIZED"},288:(E,e)=>{var _,N,O,t,T;Object.defineProperty(e,"__esModule",{value:!0}),e.HtlcEvent_EventType=e.ChanStatusAction=e.ResolveHoldForwardAction=e.PaymentState=e.FailureDetail=void 0,(T=e.FailureDetail||(e.FailureDetail={})).UNKNOWN="UNKNOWN",T.NO_DETAIL="NO_DETAIL",T.ONION_DECODE="ONION_DECODE",T.LINK_NOT_ELIGIBLE="LINK_NOT_ELIGIBLE",T.ON_CHAIN_TIMEOUT="ON_CHAIN_TIMEOUT",T.HTLC_EXCEEDS_MAX="HTLC_EXCEEDS_MAX",T.INSUFFICIENT_BALANCE="INSUFFICIENT_BALANCE",T.INCOMPLETE_FORWARD="INCOMPLETE_FORWARD",T.HTLC_ADD_FAILED="HTLC_ADD_FAILED",T.FORWARDS_DISABLED="FORWARDS_DISABLED",T.INVOICE_CANCELED="INVOICE_CANCELED",T.INVOICE_UNDERPAID="INVOICE_UNDERPAID",T.INVOICE_EXPIRY_TOO_SOON="INVOICE_EXPIRY_TOO_SOON",T.INVOICE_NOT_OPEN="INVOICE_NOT_OPEN",T.MPP_INVOICE_TIMEOUT="MPP_INVOICE_TIMEOUT",T.ADDRESS_MISMATCH="ADDRESS_MISMATCH",T.SET_TOTAL_MISMATCH="SET_TOTAL_MISMATCH",T.SET_TOTAL_TOO_LOW="SET_TOTAL_TOO_LOW",T.SET_OVERPAID="SET_OVERPAID",T.UNKNOWN_INVOICE="UNKNOWN_INVOICE",T.INVALID_KEYSEND="INVALID_KEYSEND",T.MPP_IN_PROGRESS="MPP_IN_PROGRESS",T.CIRCULAR_ROUTE="CIRCULAR_ROUTE",T.UNRECOGNIZED="UNRECOGNIZED",(t=e.PaymentState||(e.PaymentState={})).IN_FLIGHT="IN_FLIGHT",t.SUCCEEDED="SUCCEEDED",t.FAILED_TIMEOUT="FAILED_TIMEOUT",t.FAILED_NO_ROUTE="FAILED_NO_ROUTE",t.FAILED_ERROR="FAILED_ERROR",t.FAILED_INCORRECT_PAYMENT_DETAILS="FAILED_INCORRECT_PAYMENT_DETAILS",t.FAILED_INSUFFICIENT_BALANCE="FAILED_INSUFFICIENT_BALANCE",t.UNRECOGNIZED="UNRECOGNIZED",(O=e.ResolveHoldForwardAction||(e.ResolveHoldForwardAction={})).SETTLE="SETTLE",O.FAIL="FAIL",O.RESUME="RESUME",O.UNRECOGNIZED="UNRECOGNIZED",(N=e.ChanStatusAction||(e.ChanStatusAction={})).ENABLE="ENABLE",N.DISABLE="DISABLE",N.AUTO="AUTO",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.HtlcEvent_EventType||(e.HtlcEvent_EventType={})).UNKNOWN="UNKNOWN",_.SEND="SEND",_.RECEIVE="RECEIVE",_.FORWARD="FORWARD",_.UNRECOGNIZED="UNRECOGNIZED"},885:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.SignMethod=void 0,(_=e.SignMethod||(e.SignMethod={})).SIGN_METHOD_WITNESS_V0="SIGN_METHOD_WITNESS_V0",_.SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086="SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086",_.SIGN_METHOD_TAPROOT_KEY_SPEND="SIGN_METHOD_TAPROOT_KEY_SPEND",_.SIGN_METHOD_TAPROOT_SCRIPT_SPEND="SIGN_METHOD_TAPROOT_SCRIPT_SPEND",_.UNRECOGNIZED="UNRECOGNIZED"},213:(E,e)=>{var _,N;Object.defineProperty(e,"__esModule",{value:!0}),e.WitnessType=e.AddressType=void 0,(N=e.AddressType||(e.AddressType={})).UNKNOWN="UNKNOWN",N.WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",N.NESTED_WITNESS_PUBKEY_HASH="NESTED_WITNESS_PUBKEY_HASH",N.HYBRID_NESTED_WITNESS_PUBKEY_HASH="HYBRID_NESTED_WITNESS_PUBKEY_HASH",N.TAPROOT_PUBKEY="TAPROOT_PUBKEY",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.WitnessType||(e.WitnessType={})).UNKNOWN_WITNESS="UNKNOWN_WITNESS",_.COMMITMENT_TIME_LOCK="COMMITMENT_TIME_LOCK",_.COMMITMENT_NO_DELAY="COMMITMENT_NO_DELAY",_.COMMITMENT_REVOKE="COMMITMENT_REVOKE",_.HTLC_OFFERED_REVOKE="HTLC_OFFERED_REVOKE",_.HTLC_ACCEPTED_REVOKE="HTLC_ACCEPTED_REVOKE",_.HTLC_OFFERED_TIMEOUT_SECOND_LEVEL="HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",_.HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL="HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",_.HTLC_OFFERED_REMOTE_TIMEOUT="HTLC_OFFERED_REMOTE_TIMEOUT",_.HTLC_ACCEPTED_REMOTE_SUCCESS="HTLC_ACCEPTED_REMOTE_SUCCESS",_.HTLC_SECOND_LEVEL_REVOKE="HTLC_SECOND_LEVEL_REVOKE",_.WITNESS_KEY_HASH="WITNESS_KEY_HASH",_.NESTED_WITNESS_KEY_HASH="NESTED_WITNESS_KEY_HASH",_.COMMITMENT_ANCHOR="COMMITMENT_ANCHOR",_.UNRECOGNIZED="UNRECOGNIZED"},939:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},482:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},921:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.PolicyType=void 0,(_=e.PolicyType||(e.PolicyType={})).LEGACY="LEGACY",_.ANCHOR="ANCHOR",_.UNRECOGNIZED="UNRECOGNIZED"},452:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(21),e),O(_(939),e)},598:(E,e)=>{var _,N,O,t,T;Object.defineProperty(e,"__esModule",{value:!0}),e.AutoReason=e.LiquidityRuleType=e.FailureReason=e.SwapState=e.SwapType=void 0,(T=e.SwapType||(e.SwapType={})).LOOP_OUT="LOOP_OUT",T.LOOP_IN="LOOP_IN",T.UNRECOGNIZED="UNRECOGNIZED",(t=e.SwapState||(e.SwapState={})).INITIATED="INITIATED",t.PREIMAGE_REVEALED="PREIMAGE_REVEALED",t.HTLC_PUBLISHED="HTLC_PUBLISHED",t.SUCCESS="SUCCESS",t.FAILED="FAILED",t.INVOICE_SETTLED="INVOICE_SETTLED",t.UNRECOGNIZED="UNRECOGNIZED",(O=e.FailureReason||(e.FailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",O.FAILURE_REASON_OFFCHAIN="FAILURE_REASON_OFFCHAIN",O.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",O.FAILURE_REASON_SWEEP_TIMEOUT="FAILURE_REASON_SWEEP_TIMEOUT",O.FAILURE_REASON_INSUFFICIENT_VALUE="FAILURE_REASON_INSUFFICIENT_VALUE",O.FAILURE_REASON_TEMPORARY="FAILURE_REASON_TEMPORARY",O.FAILURE_REASON_INCORRECT_AMOUNT="FAILURE_REASON_INCORRECT_AMOUNT",O.UNRECOGNIZED="UNRECOGNIZED",(N=e.LiquidityRuleType||(e.LiquidityRuleType={})).UNKNOWN="UNKNOWN",N.THRESHOLD="THRESHOLD",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.AutoReason||(e.AutoReason={})).AUTO_REASON_UNKNOWN="AUTO_REASON_UNKNOWN",_.AUTO_REASON_BUDGET_NOT_STARTED="AUTO_REASON_BUDGET_NOT_STARTED",_.AUTO_REASON_SWEEP_FEES="AUTO_REASON_SWEEP_FEES",_.AUTO_REASON_BUDGET_ELAPSED="AUTO_REASON_BUDGET_ELAPSED",_.AUTO_REASON_IN_FLIGHT="AUTO_REASON_IN_FLIGHT",_.AUTO_REASON_SWAP_FEE="AUTO_REASON_SWAP_FEE",_.AUTO_REASON_MINER_FEE="AUTO_REASON_MINER_FEE",_.AUTO_REASON_PREPAY="AUTO_REASON_PREPAY",_.AUTO_REASON_FAILURE_BACKOFF="AUTO_REASON_FAILURE_BACKOFF",_.AUTO_REASON_LOOP_OUT="AUTO_REASON_LOOP_OUT",_.AUTO_REASON_LOOP_IN="AUTO_REASON_LOOP_IN",_.AUTO_REASON_LIQUIDITY_OK="AUTO_REASON_LIQUIDITY_OK",_.AUTO_REASON_BUDGET_INSUFFICIENT="AUTO_REASON_BUDGET_INSUFFICIENT",_.AUTO_REASON_FEE_INSUFFICIENT="AUTO_REASON_FEE_INSUFFICIENT",_.UNRECOGNIZED="UNRECOGNIZED"},283:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},11:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(598),e),O(_(283),e)},927:(E,e)=>{var _,N,O,t,T,r,R,I,n,A,C,o,i,S;Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidOrder_FailReason=e.AccountDiff_AccountState=e.SubscribeError_Error=e.OrderReject_OrderRejectReason=e.OrderMatchReject_RejectReason=e.DurationBucketState=e.OrderState=e.ChannelConfirmationConstraints=e.ChannelAnnouncementConstraints=e.NodeTier=e.AuctionType=e.OrderChannelType=e.AuctionAccountState=e.ChannelType=void 0,(S=e.ChannelType||(e.ChannelType={})).TWEAKLESS="TWEAKLESS",S.ANCHORS="ANCHORS",S.SCRIPT_ENFORCED_LEASE="SCRIPT_ENFORCED_LEASE",S.UNRECOGNIZED="UNRECOGNIZED",(i=e.AuctionAccountState||(e.AuctionAccountState={})).STATE_PENDING_OPEN="STATE_PENDING_OPEN",i.STATE_OPEN="STATE_OPEN",i.STATE_EXPIRED="STATE_EXPIRED",i.STATE_PENDING_UPDATE="STATE_PENDING_UPDATE",i.STATE_CLOSED="STATE_CLOSED",i.STATE_PENDING_BATCH="STATE_PENDING_BATCH",i.STATE_EXPIRED_PENDING_UPDATE="STATE_EXPIRED_PENDING_UPDATE",i.UNRECOGNIZED="UNRECOGNIZED",(o=e.OrderChannelType||(e.OrderChannelType={})).ORDER_CHANNEL_TYPE_UNKNOWN="ORDER_CHANNEL_TYPE_UNKNOWN",o.ORDER_CHANNEL_TYPE_PEER_DEPENDENT="ORDER_CHANNEL_TYPE_PEER_DEPENDENT",o.ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED="ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED",o.UNRECOGNIZED="UNRECOGNIZED",(C=e.AuctionType||(e.AuctionType={})).AUCTION_TYPE_BTC_INBOUND_LIQUIDITY="AUCTION_TYPE_BTC_INBOUND_LIQUIDITY",C.AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY="AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY",C.UNRECOGNIZED="UNRECOGNIZED",(A=e.NodeTier||(e.NodeTier={})).TIER_DEFAULT="TIER_DEFAULT",A.TIER_0="TIER_0",A.TIER_1="TIER_1",A.UNRECOGNIZED="UNRECOGNIZED",(n=e.ChannelAnnouncementConstraints||(e.ChannelAnnouncementConstraints={})).ANNOUNCEMENT_NO_PREFERENCE="ANNOUNCEMENT_NO_PREFERENCE",n.ONLY_ANNOUNCED="ONLY_ANNOUNCED",n.ONLY_UNANNOUNCED="ONLY_UNANNOUNCED",n.UNRECOGNIZED="UNRECOGNIZED",(I=e.ChannelConfirmationConstraints||(e.ChannelConfirmationConstraints={})).CONFIRMATION_NO_PREFERENCE="CONFIRMATION_NO_PREFERENCE",I.ONLY_CONFIRMED="ONLY_CONFIRMED",I.ONLY_ZEROCONF="ONLY_ZEROCONF",I.UNRECOGNIZED="UNRECOGNIZED",(R=e.OrderState||(e.OrderState={})).ORDER_SUBMITTED="ORDER_SUBMITTED",R.ORDER_CLEARED="ORDER_CLEARED",R.ORDER_PARTIALLY_FILLED="ORDER_PARTIALLY_FILLED",R.ORDER_EXECUTED="ORDER_EXECUTED",R.ORDER_CANCELED="ORDER_CANCELED",R.ORDER_EXPIRED="ORDER_EXPIRED",R.ORDER_FAILED="ORDER_FAILED",R.UNRECOGNIZED="UNRECOGNIZED",(r=e.DurationBucketState||(e.DurationBucketState={})).NO_MARKET="NO_MARKET",r.MARKET_CLOSED="MARKET_CLOSED",r.ACCEPTING_ORDERS="ACCEPTING_ORDERS",r.MARKET_OPEN="MARKET_OPEN",r.UNRECOGNIZED="UNRECOGNIZED",(T=e.OrderMatchReject_RejectReason||(e.OrderMatchReject_RejectReason={})).UNKNOWN="UNKNOWN",T.SERVER_MISBEHAVIOR="SERVER_MISBEHAVIOR",T.BATCH_VERSION_MISMATCH="BATCH_VERSION_MISMATCH",T.PARTIAL_REJECT="PARTIAL_REJECT",T.UNRECOGNIZED="UNRECOGNIZED",(t=e.OrderReject_OrderRejectReason||(e.OrderReject_OrderRejectReason={})).DUPLICATE_PEER="DUPLICATE_PEER",t.CHANNEL_FUNDING_FAILED="CHANNEL_FUNDING_FAILED",t.UNRECOGNIZED="UNRECOGNIZED",(O=e.SubscribeError_Error||(e.SubscribeError_Error={})).UNKNOWN="UNKNOWN",O.SERVER_SHUTDOWN="SERVER_SHUTDOWN",O.ACCOUNT_DOES_NOT_EXIST="ACCOUNT_DOES_NOT_EXIST",O.INCOMPLETE_ACCOUNT_RESERVATION="INCOMPLETE_ACCOUNT_RESERVATION",O.UNRECOGNIZED="UNRECOGNIZED",(N=e.AccountDiff_AccountState||(e.AccountDiff_AccountState={})).OUTPUT_RECREATED="OUTPUT_RECREATED",N.OUTPUT_DUST_EXTENDED_OFFCHAIN="OUTPUT_DUST_EXTENDED_OFFCHAIN",N.OUTPUT_DUST_ADDED_TO_FEES="OUTPUT_DUST_ADDED_TO_FEES",N.OUTPUT_FULLY_SPENT="OUTPUT_FULLY_SPENT",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.InvalidOrder_FailReason||(e.InvalidOrder_FailReason={})).INVALID_AMT="INVALID_AMT",_.UNRECOGNIZED="UNRECOGNIZED"},961:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},456:(E,e)=>{var _,N,O,t;Object.defineProperty(e,"__esModule",{value:!0}),e.MatchRejectReason=e.MatchState=e.AccountState=e.AccountVersion=void 0,(t=e.AccountVersion||(e.AccountVersion={})).ACCOUNT_VERSION_LND_DEPENDENT="ACCOUNT_VERSION_LND_DEPENDENT",t.ACCOUNT_VERSION_LEGACY="ACCOUNT_VERSION_LEGACY",t.ACCOUNT_VERSION_TAPROOT="ACCOUNT_VERSION_TAPROOT",t.UNRECOGNIZED="UNRECOGNIZED",(O=e.AccountState||(e.AccountState={})).PENDING_OPEN="PENDING_OPEN",O.PENDING_UPDATE="PENDING_UPDATE",O.OPEN="OPEN",O.EXPIRED="EXPIRED",O.PENDING_CLOSED="PENDING_CLOSED",O.CLOSED="CLOSED",O.RECOVERY_FAILED="RECOVERY_FAILED",O.PENDING_BATCH="PENDING_BATCH",O.UNRECOGNIZED="UNRECOGNIZED",(N=e.MatchState||(e.MatchState={})).PREPARE="PREPARE",N.ACCEPTED="ACCEPTED",N.REJECTED="REJECTED",N.SIGNED="SIGNED",N.FINALIZED="FINALIZED",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.MatchRejectReason||(e.MatchRejectReason={})).NONE="NONE",_.SERVER_MISBEHAVIOR="SERVER_MISBEHAVIOR",_.BATCH_VERSION_MISMATCH="BATCH_VERSION_MISMATCH",_.PARTIAL_REJECT_COLLATERAL="PARTIAL_REJECT_COLLATERAL",_.PARTIAL_REJECT_DUPLICATE_PEER="PARTIAL_REJECT_DUPLICATE_PEER",_.PARTIAL_REJECT_CHANNEL_FUNDING_FAILED="PARTIAL_REJECT_CHANNEL_FUNDING_FAILED",_.UNRECOGNIZED="UNRECOGNIZED"},377:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(927),e),O(_(961),e),O(_(456),e)},226:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(288),e)},644:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.subscriptionMethods=e.serviceNames=void 0,e.serviceNames={frdrpc:{FaradayServer:"frdrpc.FaradayServer"},autopilotrpc:{Autopilot:"autopilotrpc.Autopilot"},chainrpc:{ChainNotifier:"chainrpc.ChainNotifier"},invoicesrpc:{Invoices:"invoicesrpc.Invoices"},lnrpc:{Lightning:"lnrpc.Lightning",WalletUnlocker:"lnrpc.WalletUnlocker"},routerrpc:{Router:"routerrpc.Router"},signrpc:{Signer:"signrpc.Signer"},walletrpc:{WalletKit:"walletrpc.WalletKit"},watchtowerrpc:{Watchtower:"watchtowerrpc.Watchtower"},wtclientrpc:{WatchtowerClient:"wtclientrpc.WatchtowerClient"},looprpc:{SwapClient:"looprpc.SwapClient",Debug:"looprpc.Debug"},poolrpc:{ChannelAuctioneer:"poolrpc.ChannelAuctioneer",HashMail:"poolrpc.HashMail",Trader:"poolrpc.Trader"}},e.subscriptionMethods=["chainrpc.ChainNotifier.RegisterConfirmationsNtfn","chainrpc.ChainNotifier.RegisterSpendNtfn","chainrpc.ChainNotifier.RegisterBlockEpochNtfn","invoicesrpc.Invoices.SubscribeSingleInvoice","lnrpc.Lightning.SubscribeTransactions","lnrpc.Lightning.SubscribePeerEvents","lnrpc.Lightning.SubscribeChannelEvents","lnrpc.Lightning.OpenChannel","lnrpc.Lightning.ChannelAcceptor","lnrpc.Lightning.CloseChannel","lnrpc.Lightning.SendPayment","lnrpc.Lightning.SendToRoute","lnrpc.Lightning.SubscribeInvoices","lnrpc.Lightning.SubscribeChannelGraph","lnrpc.Lightning.SubscribeChannelBackups","lnrpc.Lightning.RegisterRPCMiddleware","lnrpc.Lightning.SubscribeCustomMessages","routerrpc.Router.SendPaymentV2","routerrpc.Router.TrackPaymentV2","routerrpc.Router.SubscribeHtlcEvents","routerrpc.Router.SendPayment","routerrpc.Router.TrackPayment","routerrpc.Router.HtlcInterceptor","looprpc.SwapClient.Monitor","poolrpc.ChannelAuctioneer.SubscribeBatchAuction","poolrpc.ChannelAuctioneer.SubscribeSidecar","poolrpc.HashMail.RecvStream"]},207:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(885),e)},367:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(213),e)},412:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(482),e)},946:function(E,e,_){var N=this&&this.__createBinding||(Object.create?function(E,e,_,N){void 0===N&&(N=_),Object.defineProperty(E,N,{enumerable:!0,get:function(){return e[_]}})}:function(E,e,_,N){void 0===N&&(N=_),E[N]=e[_]}),O=this&&this.__exportStar||function(E,e){for(var _ in E)"default"===_||Object.prototype.hasOwnProperty.call(e,_)||N(e,E,_)};Object.defineProperty(e,"__esModule",{value:!0}),O(_(921),e)},848:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelKeysToSnake=e.snakeKeysToCamel=e.isObject=void 0;var _=function(E){return Array.isArray(E)};e.isObject=function(E){return E===Object(E)&&!_(E)&&"function"!=typeof E},e.snakeKeysToCamel=function(E){if((0,e.isObject)(E)){var N={};return Object.keys(E).forEach((function(_){var O;N[(O=_,O.replace(/([-_][a-z])/gi,(function(E){return E.toUpperCase().replace("-","").replace("_","")})))]=(0,e.snakeKeysToCamel)(E[_])})),N}return _(E)?E.map((function(E){return(0,e.snakeKeysToCamel)(E)})):E},e.camelKeysToSnake=function(E){if((0,e.isObject)(E)){var N={};return Object.keys(E).forEach((function(_){var O;N[(O=_,O.replace(/[A-Z]/g,(function(E){return"_".concat(E.toLowerCase())})))]=(0,e.camelKeysToSnake)(E[_])})),N}return _(E)?E.map((function(E){return(0,e.camelKeysToSnake)(E)})):E}}},e={};return function _(N){var O=e[N];if(void 0!==O)return O.exports;var t=e[N]={exports:{}};return E[N].call(t.exports,t,t.exports,_),t.exports}(713)})()})); |
@@ -319,5 +319,3 @@ import type { RouteHint } from './swapserverrpc/common'; | ||
* native segwit (P2WSH) htlc. | ||
* - For external loop-in htlc_address contains the address of the | ||
* nested segwit (NP2WSH) htlc. | ||
* - For loop-out htlc_address always contains the native segwit (P2WSH) | ||
* / - For loop-out htlc_address always contains the native segwit (P2WSH) | ||
* htlc address. | ||
@@ -329,7 +327,2 @@ * | ||
/** | ||
* The nested segwit address of the on-chain htlc. | ||
* This field remains empty for loop-out. | ||
*/ | ||
htlcAddressNp2wsh: string; | ||
/** | ||
* The native segwit address of the on-chain htlc. | ||
@@ -380,4 +373,2 @@ * Used for both loop-in and loop-out. | ||
* native segwit (P2WSH) htlc. | ||
* - For external loop-in htlc_address contains the nested segwit (NP2WSH) | ||
* address. | ||
* - For loop-out htlc_address always contains the native segwit (P2WSH) | ||
@@ -391,4 +382,2 @@ * htlc address. | ||
htlcAddressP2wsh: string; | ||
/** HTLC address (nested segwit), used in loop-in swaps only. */ | ||
htlcAddressNp2wsh: string; | ||
/** The address of the v3 (taproot) htlc. Used for both loop-in and loop-out. */ | ||
@@ -647,2 +636,7 @@ htlcAddressP2tr: string; | ||
htlcConfTarget: number; | ||
/** | ||
* The destination address to use for autoloop loop outs. Set to "default" in | ||
* order to revert to default behavior. | ||
*/ | ||
autoloopDestAddress: string; | ||
} | ||
@@ -649,0 +643,0 @@ export interface LiquidityRule { |
@@ -61,2 +61,15 @@ export declare enum ChannelType { | ||
} | ||
export declare enum AuctionType { | ||
/** | ||
* AUCTION_TYPE_BTC_INBOUND_LIQUIDITY - Default auction type where the bidder is paying for getting bitcoin inbound | ||
* liqiudity from the asker. | ||
*/ | ||
AUCTION_TYPE_BTC_INBOUND_LIQUIDITY = "AUCTION_TYPE_BTC_INBOUND_LIQUIDITY", | ||
/** | ||
* AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY - Auction type where the bidder is paying the asker to accept a channel | ||
* (bitcoin outbound liquidity) from the bidder. | ||
*/ | ||
AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY = "AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY", | ||
UNRECOGNIZED = "UNRECOGNIZED" | ||
} | ||
export declare enum NodeTier { | ||
@@ -83,2 +96,16 @@ /** | ||
} | ||
/** Channel announcement constraints for matched channels. */ | ||
export declare enum ChannelAnnouncementConstraints { | ||
ANNOUNCEMENT_NO_PREFERENCE = "ANNOUNCEMENT_NO_PREFERENCE", | ||
ONLY_ANNOUNCED = "ONLY_ANNOUNCED", | ||
ONLY_UNANNOUNCED = "ONLY_UNANNOUNCED", | ||
UNRECOGNIZED = "UNRECOGNIZED" | ||
} | ||
/** Channel confirmation constraints for matched channels. */ | ||
export declare enum ChannelConfirmationConstraints { | ||
CONFIRMATION_NO_PREFERENCE = "CONFIRMATION_NO_PREFERENCE", | ||
ONLY_CONFIRMED = "ONLY_CONFIRMED", | ||
ONLY_ZEROCONF = "ONLY_ZEROCONF", | ||
UNRECOGNIZED = "UNRECOGNIZED" | ||
} | ||
export declare enum OrderState { | ||
@@ -124,2 +151,4 @@ ORDER_SUBMITTED = "ORDER_SUBMITTED", | ||
traderKey: Uint8Array | string; | ||
/** The account version. Must be set to 0 for legacy (non-taproot) accounts. */ | ||
version: number; | ||
} | ||
@@ -130,3 +159,11 @@ export interface ReserveAccountResponse { | ||
* per-batch tweaked key to obtain the corresponding per-batch tweaked | ||
* auctioneer key. | ||
* auctioneer key. Or, in case of the version 1, Taproot enabled account, the | ||
* trader and auctioneer key will be combined into a MuSig2 combined key that | ||
* is static throughout the lifetime of the account. The on-chain uniqueness of | ||
* the generated output will be ensured by the merkle root hash that is applied | ||
* as a tweak to the MuSig2 combined internal key. The merkle root hash is | ||
* either the hash of the timeout script path (which uses the trader key | ||
* tweaked with the per-batch key) directly or the root of a tree with one leaf | ||
* that is the timeout script path and a leaf that is a Taro commitment (which | ||
* is a root hash by itself). | ||
*/ | ||
@@ -149,3 +186,8 @@ auctioneerKey: Uint8Array | string; | ||
accountPoint: OutPoint | undefined; | ||
/** The script used to create the account point. */ | ||
/** | ||
* The script used to create the account point. For version 1 (Taproot enabled) | ||
* accounts this represents the 32-byte (x-only) Taproot public key with the | ||
* combined MuSig2 key of the auctioneer's key and the trader's key with the | ||
* expiry script path applied as a single tapscript leaf. | ||
*/ | ||
accountScript: Uint8Array | string; | ||
@@ -171,2 +213,4 @@ /** | ||
userAgent: string; | ||
/** The account version. Must be set to 0 for legacy (non-taproot) accounts. */ | ||
version: number; | ||
} | ||
@@ -369,2 +413,7 @@ export interface ServerInitAccountResponse { | ||
* into a string because protobuf doesn't allow bytes as a map key data type. | ||
* For version 1 (Taproot enabled) accounts, this merely represents a partial | ||
* MuSig2 signature that can be combined into a full signature by the auction | ||
* server by adding its own partial signature. A set of nonces will be provided | ||
* by the trader for each v1 account to allow finalizing the MuSig2 signing | ||
* session. | ||
*/ | ||
@@ -383,2 +432,11 @@ accountSigs: { | ||
}; | ||
/** | ||
* A set of 66-byte nonces for each version 1 (Taproot enabled) account. The | ||
* nonces can be used to produce a MuSig2 partial signature to spend the | ||
* account using the key spend path, which is a MuSig2 combined key of the | ||
* auctioneer key and the trader key. | ||
*/ | ||
traderNonces: { | ||
[key: string]: Uint8Array | string; | ||
}; | ||
} | ||
@@ -393,2 +451,6 @@ export interface OrderMatchSign_AccountSigsEntry { | ||
} | ||
export interface OrderMatchSign_TraderNoncesEntry { | ||
key: string; | ||
value: Uint8Array | string; | ||
} | ||
export interface AccountRecovery { | ||
@@ -539,6 +601,31 @@ /** The trader's account key of the account to recover. */ | ||
} | ||
export interface TxOut { | ||
/** The value of the transaction output in satoshis. */ | ||
value: string; | ||
/** The public key script of the output. */ | ||
pkScript: Uint8Array | string; | ||
} | ||
export interface OrderMatchSignBegin { | ||
/** The 32 byte unique identifier of this batch. */ | ||
batchId: Uint8Array | string; | ||
/** | ||
* A set of 66-byte nonces for each version 1 (Taproot enabled) account. The | ||
* nonces can be used to produce a MuSig2 partial signature to spend the | ||
* account using the key spend path, which is a MuSig2 combined key of the | ||
* auctioneer key and the trader key. | ||
*/ | ||
serverNonces: { | ||
[key: string]: Uint8Array | string; | ||
}; | ||
/** | ||
* The full list of UTXO information for each of the inputs being spent. This | ||
* is required when spending one or more Taproot enabled (account version 1) | ||
* outputs. | ||
*/ | ||
prevOutputs: TxOut[]; | ||
} | ||
export interface OrderMatchSignBegin_ServerNoncesEntry { | ||
key: string; | ||
value: Uint8Array | string; | ||
} | ||
export interface OrderMatchFinalize { | ||
@@ -621,2 +708,4 @@ /** The unique identifier of the finalized batch. */ | ||
latestTx: Uint8Array | string; | ||
/** The account version. Will be set to 0 for legacy (non-taproot) accounts. */ | ||
version: number; | ||
} | ||
@@ -671,2 +760,8 @@ export interface MatchedOrder { | ||
newExpiry: number; | ||
/** | ||
* The new account version used to verify the batch. If this is non-zero, it | ||
* means the account was automatically upgraded to the given version during the | ||
* batch execution. | ||
*/ | ||
newVersion: number; | ||
} | ||
@@ -723,2 +818,9 @@ export declare enum AccountDiff_AccountState { | ||
notAllowedNodeIds: Uint8Array | string[]; | ||
/** Auction type where this order must be considered during the matching. */ | ||
auctionType: AuctionType; | ||
/** | ||
* Flag used to signal that this order can be shared in public market | ||
* places. | ||
*/ | ||
isPublic: boolean; | ||
} | ||
@@ -747,5 +849,5 @@ export interface ServerBid { | ||
* into the channel. As a simplification for the execution protocol and the | ||
* channel reserve calculations, the self_chan_balance can be at most the same | ||
* as the order amount and the min_chan_amt must be set to the full order | ||
* amount. | ||
* channel reserve calculations the min_chan_amt must be set to the full order | ||
* amount. For the inbound liquidity market the self_chan_balance can be at | ||
* most the same as the order amount. | ||
*/ | ||
@@ -760,2 +862,6 @@ selfChanBalance: string; | ||
isSidecarChannel: boolean; | ||
/** Signals if this bid is interested in an announced or unannounced channel. */ | ||
unannouncedChannel: boolean; | ||
/** Signals if this bid is interested in a zero conf channel or not. */ | ||
zeroConfChannel: boolean; | ||
} | ||
@@ -775,2 +881,9 @@ export interface ServerAsk { | ||
version: number; | ||
/** The constraints for selling the liquidity based on channel discoverability. */ | ||
announcementConstraints: ChannelAnnouncementConstraints; | ||
/** | ||
* The constraints for selling the liquidity based on the number of | ||
* blocks before considering the channel confirmed. | ||
*/ | ||
confirmationConstraints: ChannelConfirmationConstraints; | ||
} | ||
@@ -821,2 +934,15 @@ export interface CancelOrder { | ||
newParams: ServerModifyAccountRequest_NewAccountParameters | undefined; | ||
/** | ||
* A set of 66-byte nonces for each version 1 (Taproot enabled) account. The | ||
* nonces can be used to produce a MuSig2 partial signature to spend the | ||
* account using the key spend path, which is a MuSig2 combined key of the | ||
* auctioneer key and the trader key. | ||
*/ | ||
traderNonces: Uint8Array | string; | ||
/** | ||
* The full list of UTXO information for each of the inputs being spent. This | ||
* is required when spending a Taproot enabled (account version 1) output or | ||
* when adding additional Taproot inputs. | ||
*/ | ||
prevOutputs: TxOut[]; | ||
} | ||
@@ -828,2 +954,4 @@ export interface ServerModifyAccountRequest_NewAccountParameters { | ||
expiry: number; | ||
/** The new version of the account. */ | ||
version: number; | ||
} | ||
@@ -833,5 +961,16 @@ export interface ServerModifyAccountResponse { | ||
* The auctioneer's signature that allows a trader to broadcast a transaction | ||
* spending from an account output. | ||
* spending from an account output. For version 1 (Taproot enabled) accounts, | ||
* this merely represents a partial MuSig2 signature that can be combined into | ||
* a full signature by the trader daemon by adding its own partial signature. A | ||
* set of nonces will be provided by the server (in case this is a v1 account) | ||
* to allow finalizing the MuSig2 signing session. | ||
*/ | ||
accountSig: Uint8Array | string; | ||
/** | ||
* An optional set of 66-byte nonces for a version 1 (Taproot enabled) account | ||
* spend. The nonces can be used to produce a MuSig2 partial signature to spend | ||
* the account using the key spend path, which is a MuSig2 combined key of the | ||
* auctioneer key and the trader key. | ||
*/ | ||
serverNonces: Uint8Array | string; | ||
} | ||
@@ -838,0 +977,0 @@ export interface ServerOrderStateRequest { |
@@ -1,2 +0,18 @@ | ||
import type { OrderState, OrderChannelType, NodeTier, DurationBucketState, OutPoint, InvalidOrder, ExecutionFee, NodeRating, MarketInfo, BatchSnapshotResponse, BatchSnapshotsResponse, BatchSnapshotRequest, BatchSnapshotsRequest } from './auctioneerrpc/auctioneer'; | ||
import type { OrderState, OrderChannelType, AuctionType, NodeTier, ChannelAnnouncementConstraints, ChannelConfirmationConstraints, DurationBucketState, OutPoint, InvalidOrder, ExecutionFee, NodeRating, MarketInfo, BatchSnapshotResponse, BatchSnapshotsResponse, BatchSnapshotRequest, BatchSnapshotsRequest } from './auctioneerrpc/auctioneer'; | ||
export declare enum AccountVersion { | ||
/** | ||
* ACCOUNT_VERSION_LND_DEPENDENT - Let the version of lnd decide. If a version of lnd >= 0.15.0-beta is | ||
* detected then a Taproot account is created. For earlier versions a legacy | ||
* account is created. | ||
*/ | ||
ACCOUNT_VERSION_LND_DEPENDENT = "ACCOUNT_VERSION_LND_DEPENDENT", | ||
/** ACCOUNT_VERSION_LEGACY - A legacy SegWit v0 p2wsh account with a single script. */ | ||
ACCOUNT_VERSION_LEGACY = "ACCOUNT_VERSION_LEGACY", | ||
/** | ||
* ACCOUNT_VERSION_TAPROOT - A Taproot enabled account with MuSig2 combined internal key and the expiry | ||
* script as a single tap script leaf. | ||
*/ | ||
ACCOUNT_VERSION_TAPROOT = "ACCOUNT_VERSION_TAPROOT", | ||
UNRECOGNIZED = "UNRECOGNIZED" | ||
} | ||
export declare enum AccountState { | ||
@@ -117,2 +133,4 @@ /** PENDING_OPEN - The state of an account when it is pending its confirmation on-chain. */ | ||
initiator: string; | ||
/** The version of account to create. */ | ||
version: AccountVersion; | ||
} | ||
@@ -188,2 +206,8 @@ export interface QuoteAccountRequest { | ||
relativeExpiry: number | undefined; | ||
/** | ||
* The new version of the account. If this is set and is a valid version | ||
* greater than the account's current version, then the account is upgraded to | ||
* that version during the withdrawal. | ||
*/ | ||
newVersion: AccountVersion; | ||
} | ||
@@ -210,2 +234,8 @@ export interface WithdrawAccountResponse { | ||
relativeExpiry: number | undefined; | ||
/** | ||
* The new version of the account. If this is set and is a valid version | ||
* greater than the account's current version, then the account is upgraded to | ||
* that version during the deposit. | ||
*/ | ||
newVersion: AccountVersion; | ||
} | ||
@@ -227,2 +257,8 @@ export interface DepositAccountResponse { | ||
feeRateSatPerKw: string; | ||
/** | ||
* The new version of the account. If this is set and is a valid version | ||
* greater than the account's current version, then the account is upgraded to | ||
* that version during the renewal. | ||
*/ | ||
newVersion: AccountVersion; | ||
} | ||
@@ -270,2 +306,4 @@ export interface RenewAccountResponse { | ||
latestTxid: Uint8Array | string; | ||
/** The current version of the account. */ | ||
version: AccountVersion; | ||
} | ||
@@ -363,2 +401,9 @@ export interface SubmitOrderRequest { | ||
notAllowedNodeIds: Uint8Array | string[]; | ||
/** Auction type where this order must be considered during the matching. */ | ||
auctionType: AuctionType; | ||
/** | ||
* Flag used to signal that this order can be shared in public market | ||
* places. | ||
*/ | ||
isPublic: boolean; | ||
} | ||
@@ -387,5 +432,5 @@ export interface Bid { | ||
* into the channel. As a simplification for the execution protocol and the | ||
* channel reserve calculations, the self_chan_balance can be at most the same | ||
* as the order amount and the min_chan_amt must be set to the full order | ||
* amount. | ||
* channel reserve calculations the min_chan_amt must be set to the full order | ||
* amount. For the inbound liquidity market the self_chan_balance can be at | ||
* most the same as the order amount. | ||
*/ | ||
@@ -400,2 +445,6 @@ selfChanBalance: string; | ||
sidecarTicket: string; | ||
/** Signals if this bid is interested in an announced or unannounced channel. */ | ||
unannouncedChannel: boolean; | ||
/** Signals if this bid is interested in a zero conf channel or not. */ | ||
zeroConfChannel: boolean; | ||
} | ||
@@ -415,2 +464,9 @@ export interface Ask { | ||
version: number; | ||
/** The constraints for selling the liquidity based on channel discoverability. */ | ||
announcementConstraints: ChannelAnnouncementConstraints; | ||
/** | ||
* The constraints for selling the liquidity based on the number of | ||
* blocks before considering the channel confirmed. | ||
*/ | ||
confirmationConstraints: ChannelConfirmationConstraints; | ||
} | ||
@@ -849,2 +905,12 @@ export interface QuoteOrderRequest { | ||
encodedTicket: string; | ||
/** | ||
* If true, the channel acceptor for this ticket will expect an unannounced | ||
* channel. | ||
*/ | ||
offerUnannouncedChannel: boolean; | ||
/** | ||
* If true, the channel acceptor for this ticket will expect a zero conf | ||
* channel. | ||
*/ | ||
offerZeroConfChannel: boolean; | ||
} | ||
@@ -851,0 +917,0 @@ export interface RegisterSidecarRequest { |
{ | ||
"name": "@lightninglabs/lnc-core", | ||
"version": "0.2.1-alpha", | ||
"version": "0.2.2-alpha", | ||
"description": "Type definitions and utilities for Lightning Node Connect", | ||
@@ -8,6 +8,6 @@ "main": "./dist/index.js", | ||
"config": { | ||
"lnd_release_tag": "v0.15.4-beta", | ||
"loop_release_tag": "v0.20.1-beta", | ||
"pool_release_tag": "v0.5.8-alpha", | ||
"faraday_release_tag": "v0.2.8-alpha", | ||
"lnd_release_tag": "v0.15.5-beta", | ||
"loop_release_tag": "v0.21.0-beta", | ||
"pool_release_tag": "v0.6.1-beta", | ||
"faraday_release_tag": "v0.2.9-alpha", | ||
"protoc_version": "21.9" | ||
@@ -23,6 +23,6 @@ }, | ||
"lint": "tslint -p tsconfig.json", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm run lint", | ||
"preversion": "npm run lint", | ||
"version": "npm run prettier && git add -A lib", | ||
"prepare": "yarn run build", | ||
"prepublishOnly": "yarn run lint", | ||
"preversion": "yarn run lint", | ||
"version": "yarn run prettier && git add -A lib", | ||
"postversion": "git push && git push --tags" | ||
@@ -29,0 +29,0 @@ }, |
@@ -29,5 +29,5 @@ # @lightninglabs/lnc-core | ||
# download schemas | ||
npm run update-protos | ||
yarn run update-protos | ||
# format schemas | ||
npm run generate | ||
yarn run generate | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
617619
10837