Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightninglabs/lnc-core

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightninglabs/lnc-core - npm Package Compare versions

Comparing version 0.2.3-alpha to 0.2.4-alpha

2

dist/index.js

@@ -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()}(this,(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.LitApi=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}});var n=_(929);Object.defineProperty(e,"LitApi",{enumerable:!0,get:function(){return N(n).default}})},929:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.autopilot=E(N.serviceNames.litrpc.Autopilot,e),this.firewall=E(N.serviceNames.litrpc.Firewall,e),this.sessions=E(N.serviceNames.litrpc.Sessions,e)}},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.LitApi=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}}),Object.defineProperty(e,"LitApi",{enumerable:!0,get:function(){return T.LitApi}});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.litrpc=e.frdrpc=void 0;var T=O(_(915));e.frdrpc=T;var r=O(_(903));e.litrpc=r;var n=O(_(273));e.autopilotrpc=n;var R=O(_(71));e.chainrpc=R;var I=O(_(312));e.invoicesrpc=I;var A=O(_(452));e.lnrpc=A;var i=O(_(226));e.routerrpc=i;var C=O(_(207));e.signrpc=C;var o=O(_(367));e.walletrpc=o;var S=O(_(412));e.watchtowerrpc=S;var a=O(_(946));e.wtclientrpc=a;var c=O(_(11));e.looprpc=c;var U=O(_(377));e.poolrpc=U},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)},481:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionState=void 0,(_=e.ActionState||(e.ActionState={})).STATE_UNKNOWN="STATE_UNKNOWN",_.STATE_PENDING="STATE_PENDING",_.STATE_DONE="STATE_DONE",_.STATE_ERROR="STATE_ERROR",_.UNRECOGNIZED="UNRECOGNIZED"},166:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},199:(E,e)=>{var _,N;Object.defineProperty(e,"__esModule",{value:!0}),e.SessionState=e.SessionType=void 0,(N=e.SessionType||(e.SessionType={})).TYPE_MACAROON_READONLY="TYPE_MACAROON_READONLY",N.TYPE_MACAROON_ADMIN="TYPE_MACAROON_ADMIN",N.TYPE_MACAROON_CUSTOM="TYPE_MACAROON_CUSTOM",N.TYPE_UI_PASSWORD="TYPE_UI_PASSWORD",N.TYPE_AUTOPILOT="TYPE_AUTOPILOT",N.TYPE_MACAROON_ACCOUNT="TYPE_MACAROON_ACCOUNT",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.SessionState||(e.SessionState={})).STATE_CREATED="STATE_CREATED",_.STATE_IN_USE="STATE_IN_USE",_.STATE_REVOKED="STATE_REVOKED",_.STATE_EXPIRED="STATE_EXPIRED",_.UNRECOGNIZED="UNRECOGNIZED"},903: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(_(481),e),t(_(166),e),t(_(199),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,n,R,I,A,i,C,o,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",(o=e.InvoiceHTLCState||(e.InvoiceHTLCState={})).ACCEPTED="ACCEPTED",o.SETTLED="SETTLED",o.CANCELED="CANCELED",o.UNRECOGNIZED="UNRECOGNIZED",(C=e.PaymentFailureReason||(e.PaymentFailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",C.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",C.FAILURE_REASON_NO_ROUTE="FAILURE_REASON_NO_ROUTE",C.FAILURE_REASON_ERROR="FAILURE_REASON_ERROR",C.FAILURE_REASON_INCORRECT_PAYMENT_DETAILS="FAILURE_REASON_INCORRECT_PAYMENT_DETAILS",C.FAILURE_REASON_INSUFFICIENT_BALANCE="FAILURE_REASON_INSUFFICIENT_BALANCE",C.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",(I=e.ChannelCloseSummary_ClosureType||(e.ChannelCloseSummary_ClosureType={})).COOPERATIVE_CLOSE="COOPERATIVE_CLOSE",I.LOCAL_FORCE_CLOSE="LOCAL_FORCE_CLOSE",I.REMOTE_FORCE_CLOSE="REMOTE_FORCE_CLOSE",I.BREACH_CLOSE="BREACH_CLOSE",I.FUNDING_CANCELED="FUNDING_CANCELED",I.ABANDONED="ABANDONED",I.UNRECOGNIZED="UNRECOGNIZED",(R=e.Peer_SyncType||(e.Peer_SyncType={})).UNKNOWN_SYNC="UNKNOWN_SYNC",R.ACTIVE_SYNC="ACTIVE_SYNC",R.PASSIVE_SYNC="PASSIVE_SYNC",R.PINNED_SYNC="PINNED_SYNC",R.UNRECOGNIZED="UNRECOGNIZED",(n=e.PeerEvent_EventType||(e.PeerEvent_EventType={})).PEER_ONLINE="PEER_ONLINE",n.PEER_OFFLINE="PEER_OFFLINE",n.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,n,R,I,A,i,C,o,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",(o=e.AuctionAccountState||(e.AuctionAccountState={})).STATE_PENDING_OPEN="STATE_PENDING_OPEN",o.STATE_OPEN="STATE_OPEN",o.STATE_EXPIRED="STATE_EXPIRED",o.STATE_PENDING_UPDATE="STATE_PENDING_UPDATE",o.STATE_CLOSED="STATE_CLOSED",o.STATE_PENDING_BATCH="STATE_PENDING_BATCH",o.STATE_EXPIRED_PENDING_UPDATE="STATE_EXPIRED_PENDING_UPDATE",o.UNRECOGNIZED="UNRECOGNIZED",(C=e.OrderChannelType||(e.OrderChannelType={})).ORDER_CHANNEL_TYPE_UNKNOWN="ORDER_CHANNEL_TYPE_UNKNOWN",C.ORDER_CHANNEL_TYPE_PEER_DEPENDENT="ORDER_CHANNEL_TYPE_PEER_DEPENDENT",C.ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED="ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED",C.UNRECOGNIZED="UNRECOGNIZED",(i=e.AuctionType||(e.AuctionType={})).AUCTION_TYPE_BTC_INBOUND_LIQUIDITY="AUCTION_TYPE_BTC_INBOUND_LIQUIDITY",i.AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY="AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY",i.UNRECOGNIZED="UNRECOGNIZED",(A=e.NodeTier||(e.NodeTier={})).TIER_DEFAULT="TIER_DEFAULT",A.TIER_0="TIER_0",A.TIER_1="TIER_1",A.UNRECOGNIZED="UNRECOGNIZED",(I=e.ChannelAnnouncementConstraints||(e.ChannelAnnouncementConstraints={})).ANNOUNCEMENT_NO_PREFERENCE="ANNOUNCEMENT_NO_PREFERENCE",I.ONLY_ANNOUNCED="ONLY_ANNOUNCED",I.ONLY_UNANNOUNCED="ONLY_UNANNOUNCED",I.UNRECOGNIZED="UNRECOGNIZED",(R=e.ChannelConfirmationConstraints||(e.ChannelConfirmationConstraints={})).CONFIRMATION_NO_PREFERENCE="CONFIRMATION_NO_PREFERENCE",R.ONLY_CONFIRMED="ONLY_CONFIRMED",R.ONLY_ZEROCONF="ONLY_ZEROCONF",R.UNRECOGNIZED="UNRECOGNIZED",(n=e.OrderState||(e.OrderState={})).ORDER_SUBMITTED="ORDER_SUBMITTED",n.ORDER_CLEARED="ORDER_CLEARED",n.ORDER_PARTIALLY_FILLED="ORDER_PARTIALLY_FILLED",n.ORDER_EXECUTED="ORDER_EXECUTED",n.ORDER_CANCELED="ORDER_CANCELED",n.ORDER_EXPIRED="ORDER_EXPIRED",n.ORDER_FAILED="ORDER_FAILED",n.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,O;Object.defineProperty(e,"__esModule",{value:!0}),e.MatchRejectReason=e.MatchState=e.AccountState=e.AccountVersion=void 0,(O=e.AccountVersion||(e.AccountVersion={})).ACCOUNT_VERSION_LND_DEPENDENT="ACCOUNT_VERSION_LND_DEPENDENT",O.ACCOUNT_VERSION_LEGACY="ACCOUNT_VERSION_LEGACY",O.ACCOUNT_VERSION_TAPROOT="ACCOUNT_VERSION_TAPROOT",O.UNRECOGNIZED="UNRECOGNIZED",(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"},litrpc:{Firewall:"litrpc.Firewall",Autopilot:"litrpc.Autopilot",Sessions:"litrpc.Sessions"},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()}(this,(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.LitApi=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}});var R=_(929);Object.defineProperty(e,"LitApi",{enumerable:!0,get:function(){return N(R).default}})},929:(E,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var N=_(644);e.default=function(E,e){this.autopilot=E(N.serviceNames.litrpc.Autopilot,e),this.firewall=E(N.serviceNames.litrpc.Firewall,e),this.sessions=E(N.serviceNames.litrpc.Sessions,e)}},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.LitApi=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}}),Object.defineProperty(e,"LitApi",{enumerable:!0,get:function(){return T.LitApi}});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.litrpc=e.frdrpc=void 0;var T=O(_(915));e.frdrpc=T;var r=O(_(903));e.litrpc=r;var R=O(_(273));e.autopilotrpc=R;var n=O(_(71));e.chainrpc=n;var I=O(_(312));e.invoicesrpc=I;var A=O(_(452));e.lnrpc=A;var i=O(_(226));e.routerrpc=i;var C=O(_(207));e.signrpc=C;var o=O(_(367));e.walletrpc=o;var S=O(_(412));e.watchtowerrpc=S;var a=O(_(946));e.wtclientrpc=a;var c=O(_(11));e.looprpc=c;var U=O(_(377));e.poolrpc=U},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)},481:(E,e)=>{var _;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionState=void 0,(_=e.ActionState||(e.ActionState={})).STATE_UNKNOWN="STATE_UNKNOWN",_.STATE_PENDING="STATE_PENDING",_.STATE_DONE="STATE_DONE",_.STATE_ERROR="STATE_ERROR",_.UNRECOGNIZED="UNRECOGNIZED"},166:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},199:(E,e)=>{var _,N;Object.defineProperty(e,"__esModule",{value:!0}),e.SessionState=e.SessionType=void 0,(N=e.SessionType||(e.SessionType={})).TYPE_MACAROON_READONLY="TYPE_MACAROON_READONLY",N.TYPE_MACAROON_ADMIN="TYPE_MACAROON_ADMIN",N.TYPE_MACAROON_CUSTOM="TYPE_MACAROON_CUSTOM",N.TYPE_UI_PASSWORD="TYPE_UI_PASSWORD",N.TYPE_AUTOPILOT="TYPE_AUTOPILOT",N.TYPE_MACAROON_ACCOUNT="TYPE_MACAROON_ACCOUNT",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.SessionState||(e.SessionState={})).STATE_CREATED="STATE_CREATED",_.STATE_IN_USE="STATE_IN_USE",_.STATE_REVOKED="STATE_REVOKED",_.STATE_EXPIRED="STATE_EXPIRED",_.UNRECOGNIZED="UNRECOGNIZED"},903: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(_(481),e),t(_(166),e),t(_(199),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,n,I,A,i,C,o,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",(o=e.InvoiceHTLCState||(e.InvoiceHTLCState={})).ACCEPTED="ACCEPTED",o.SETTLED="SETTLED",o.CANCELED="CANCELED",o.UNRECOGNIZED="UNRECOGNIZED",(C=e.PaymentFailureReason||(e.PaymentFailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",C.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",C.FAILURE_REASON_NO_ROUTE="FAILURE_REASON_NO_ROUTE",C.FAILURE_REASON_ERROR="FAILURE_REASON_ERROR",C.FAILURE_REASON_INCORRECT_PAYMENT_DETAILS="FAILURE_REASON_INCORRECT_PAYMENT_DETAILS",C.FAILURE_REASON_INSUFFICIENT_BALANCE="FAILURE_REASON_INSUFFICIENT_BALANCE",C.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",(I=e.ChannelCloseSummary_ClosureType||(e.ChannelCloseSummary_ClosureType={})).COOPERATIVE_CLOSE="COOPERATIVE_CLOSE",I.LOCAL_FORCE_CLOSE="LOCAL_FORCE_CLOSE",I.REMOTE_FORCE_CLOSE="REMOTE_FORCE_CLOSE",I.BREACH_CLOSE="BREACH_CLOSE",I.FUNDING_CANCELED="FUNDING_CANCELED",I.ABANDONED="ABANDONED",I.UNRECOGNIZED="UNRECOGNIZED",(n=e.Peer_SyncType||(e.Peer_SyncType={})).UNKNOWN_SYNC="UNKNOWN_SYNC",n.ACTIVE_SYNC="ACTIVE_SYNC",n.PASSIVE_SYNC="PASSIVE_SYNC",n.PINNED_SYNC="PINNED_SYNC",n.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,r;Object.defineProperty(e,"__esModule",{value:!0}),e.HtlcEvent_EventType=e.MissionControlConfig_ProbabilityModel=e.ChanStatusAction=e.ResolveHoldForwardAction=e.PaymentState=e.FailureDetail=void 0,(r=e.FailureDetail||(e.FailureDetail={})).UNKNOWN="UNKNOWN",r.NO_DETAIL="NO_DETAIL",r.ONION_DECODE="ONION_DECODE",r.LINK_NOT_ELIGIBLE="LINK_NOT_ELIGIBLE",r.ON_CHAIN_TIMEOUT="ON_CHAIN_TIMEOUT",r.HTLC_EXCEEDS_MAX="HTLC_EXCEEDS_MAX",r.INSUFFICIENT_BALANCE="INSUFFICIENT_BALANCE",r.INCOMPLETE_FORWARD="INCOMPLETE_FORWARD",r.HTLC_ADD_FAILED="HTLC_ADD_FAILED",r.FORWARDS_DISABLED="FORWARDS_DISABLED",r.INVOICE_CANCELED="INVOICE_CANCELED",r.INVOICE_UNDERPAID="INVOICE_UNDERPAID",r.INVOICE_EXPIRY_TOO_SOON="INVOICE_EXPIRY_TOO_SOON",r.INVOICE_NOT_OPEN="INVOICE_NOT_OPEN",r.MPP_INVOICE_TIMEOUT="MPP_INVOICE_TIMEOUT",r.ADDRESS_MISMATCH="ADDRESS_MISMATCH",r.SET_TOTAL_MISMATCH="SET_TOTAL_MISMATCH",r.SET_TOTAL_TOO_LOW="SET_TOTAL_TOO_LOW",r.SET_OVERPAID="SET_OVERPAID",r.UNKNOWN_INVOICE="UNKNOWN_INVOICE",r.INVALID_KEYSEND="INVALID_KEYSEND",r.MPP_IN_PROGRESS="MPP_IN_PROGRESS",r.CIRCULAR_ROUTE="CIRCULAR_ROUTE",r.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",(t=e.ChanStatusAction||(e.ChanStatusAction={})).ENABLE="ENABLE",t.DISABLE="DISABLE",t.AUTO="AUTO",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.MissionControlConfig_ProbabilityModel||(e.MissionControlConfig_ProbabilityModel={})).APRIORI="APRIORI",N.BIMODAL="BIMODAL",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.HtlcEvent_EventType||(e.HtlcEvent_EventType={})).UNKNOWN="UNKNOWN",_.SEND="SEND",_.RECEIVE="RECEIVE",_.FORWARD="FORWARD",_.UNRECOGNIZED="UNRECOGNIZED"},885:(E,e)=>{var _,N;Object.defineProperty(e,"__esModule",{value:!0}),e.MuSig2Version=e.SignMethod=void 0,(N=e.SignMethod||(e.SignMethod={})).SIGN_METHOD_WITNESS_V0="SIGN_METHOD_WITNESS_V0",N.SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086="SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086",N.SIGN_METHOD_TAPROOT_KEY_SPEND="SIGN_METHOD_TAPROOT_KEY_SPEND",N.SIGN_METHOD_TAPROOT_SCRIPT_SPEND="SIGN_METHOD_TAPROOT_SCRIPT_SPEND",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.MuSig2Version||(e.MuSig2Version={})).MUSIG2_VERSION_UNDEFINED="MUSIG2_VERSION_UNDEFINED",_.MUSIG2_VERSION_V040="MUSIG2_VERSION_V040",_.MUSIG2_VERSION_V100RC2="MUSIG2_VERSION_V100RC2",_.UNRECOGNIZED="UNRECOGNIZED"},213:(E,e)=>{var _,N,t;Object.defineProperty(e,"__esModule",{value:!0}),e.ChangeAddressType=e.WitnessType=e.AddressType=void 0,(t=e.AddressType||(e.AddressType={})).UNKNOWN="UNKNOWN",t.WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",t.NESTED_WITNESS_PUBKEY_HASH="NESTED_WITNESS_PUBKEY_HASH",t.HYBRID_NESTED_WITNESS_PUBKEY_HASH="HYBRID_NESTED_WITNESS_PUBKEY_HASH",t.TAPROOT_PUBKEY="TAPROOT_PUBKEY",t.UNRECOGNIZED="UNRECOGNIZED",(N=e.WitnessType||(e.WitnessType={})).UNKNOWN_WITNESS="UNKNOWN_WITNESS",N.COMMITMENT_TIME_LOCK="COMMITMENT_TIME_LOCK",N.COMMITMENT_NO_DELAY="COMMITMENT_NO_DELAY",N.COMMITMENT_REVOKE="COMMITMENT_REVOKE",N.HTLC_OFFERED_REVOKE="HTLC_OFFERED_REVOKE",N.HTLC_ACCEPTED_REVOKE="HTLC_ACCEPTED_REVOKE",N.HTLC_OFFERED_TIMEOUT_SECOND_LEVEL="HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",N.HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL="HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",N.HTLC_OFFERED_REMOTE_TIMEOUT="HTLC_OFFERED_REMOTE_TIMEOUT",N.HTLC_ACCEPTED_REMOTE_SUCCESS="HTLC_ACCEPTED_REMOTE_SUCCESS",N.HTLC_SECOND_LEVEL_REVOKE="HTLC_SECOND_LEVEL_REVOKE",N.WITNESS_KEY_HASH="WITNESS_KEY_HASH",N.NESTED_WITNESS_KEY_HASH="NESTED_WITNESS_KEY_HASH",N.COMMITMENT_ANCHOR="COMMITMENT_ANCHOR",N.UNRECOGNIZED="UNRECOGNIZED",(_=e.ChangeAddressType||(e.ChangeAddressType={})).CHANGE_ADDRESS_TYPE_UNSPECIFIED="CHANGE_ADDRESS_TYPE_UNSPECIFIED",_.CHANGE_ADDRESS_TYPE_P2TR="CHANGE_ADDRESS_TYPE_P2TR",_.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,n,I,A,i,C,o,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",(o=e.AuctionAccountState||(e.AuctionAccountState={})).STATE_PENDING_OPEN="STATE_PENDING_OPEN",o.STATE_OPEN="STATE_OPEN",o.STATE_EXPIRED="STATE_EXPIRED",o.STATE_PENDING_UPDATE="STATE_PENDING_UPDATE",o.STATE_CLOSED="STATE_CLOSED",o.STATE_PENDING_BATCH="STATE_PENDING_BATCH",o.STATE_EXPIRED_PENDING_UPDATE="STATE_EXPIRED_PENDING_UPDATE",o.UNRECOGNIZED="UNRECOGNIZED",(C=e.OrderChannelType||(e.OrderChannelType={})).ORDER_CHANNEL_TYPE_UNKNOWN="ORDER_CHANNEL_TYPE_UNKNOWN",C.ORDER_CHANNEL_TYPE_PEER_DEPENDENT="ORDER_CHANNEL_TYPE_PEER_DEPENDENT",C.ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED="ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED",C.UNRECOGNIZED="UNRECOGNIZED",(i=e.AuctionType||(e.AuctionType={})).AUCTION_TYPE_BTC_INBOUND_LIQUIDITY="AUCTION_TYPE_BTC_INBOUND_LIQUIDITY",i.AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY="AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY",i.UNRECOGNIZED="UNRECOGNIZED",(A=e.NodeTier||(e.NodeTier={})).TIER_DEFAULT="TIER_DEFAULT",A.TIER_0="TIER_0",A.TIER_1="TIER_1",A.UNRECOGNIZED="UNRECOGNIZED",(I=e.ChannelAnnouncementConstraints||(e.ChannelAnnouncementConstraints={})).ANNOUNCEMENT_NO_PREFERENCE="ANNOUNCEMENT_NO_PREFERENCE",I.ONLY_ANNOUNCED="ONLY_ANNOUNCED",I.ONLY_UNANNOUNCED="ONLY_UNANNOUNCED",I.UNRECOGNIZED="UNRECOGNIZED",(n=e.ChannelConfirmationConstraints||(e.ChannelConfirmationConstraints={})).CONFIRMATION_NO_PREFERENCE="CONFIRMATION_NO_PREFERENCE",n.ONLY_CONFIRMED="ONLY_CONFIRMED",n.ONLY_ZEROCONF="ONLY_ZEROCONF",n.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,O;Object.defineProperty(e,"__esModule",{value:!0}),e.MatchRejectReason=e.MatchState=e.AccountState=e.AccountVersion=void 0,(O=e.AccountVersion||(e.AccountVersion={})).ACCOUNT_VERSION_LND_DEPENDENT="ACCOUNT_VERSION_LND_DEPENDENT",O.ACCOUNT_VERSION_LEGACY="ACCOUNT_VERSION_LEGACY",O.ACCOUNT_VERSION_TAPROOT="ACCOUNT_VERSION_TAPROOT",O.ACCOUNT_VERSION_TAPROOT_V2="ACCOUNT_VERSION_TAPROOT_V2",O.UNRECOGNIZED="UNRECOGNIZED",(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"},litrpc:{Firewall:"litrpc.Firewall",Autopilot:"litrpc.Autopilot",Sessions:"litrpc.Sessions"},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.TrackPayments","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)})()}));

@@ -134,3 +134,21 @@ export declare enum ActionState {

export interface Firewall {
/**
* litcli: `actions`
* ListActions will return a list of actions that have been performed on the
* node. The actions that will be persisted depends on the value of the
* `--firewall.request-logger.level` config option. The default value of the
* option is the "interceptor" mode which will persist only the actions (with
* all request parameters) made with macaroons with caveats that force them
* to be checked by an rpc middleware interceptor. If the "all" mode is used
* then all actions will be persisted but only full request parameters will
* only be stored if the actions are interceptor actions, otherwise only the
* URI and timestamp of the actions will be stored. The "full" mode will
* persist all request data for all actions.
*/
listActions(request?: DeepPartial<ListActionsRequest>): Promise<ListActionsResponse>;
/**
* litcli: `privacy`
* PrivacyMapConversion can be used map real values to their pseudo
* counterpart and vice versa.
*/
privacyMapConversion(request?: DeepPartial<PrivacyMapConversionRequest>): Promise<PrivacyMapConversionResponse>;

@@ -137,0 +155,0 @@ }

@@ -63,2 +63,6 @@ import type { RulesMap, Session, RuleValue, MacaroonPermission } from './lit-sessions';

export interface RevokeAutopilotSessionRequest {
/**
* The local static public key of the Autopilot session to be revoked.
* When using REST, this field must be encoded as base64url.
*/
localPublicKey: Uint8Array | string;

@@ -114,5 +118,25 @@ }

export interface Autopilot {
/**
* litcli: `autopilot features`
* ListAutopilotFeatures fetches all the features supported by the Autopilot
* server along with the rules that we need to support in order to subscribe
* to those features.
*/
listAutopilotFeatures(request?: DeepPartial<ListAutopilotFeaturesRequest>): Promise<ListAutopilotFeaturesResponse>;
/**
* litcli: `autopilot add`
* AddAutopilotSession creates a new LNC session and attempts to register it
* with the Autopilot server.
*/
addAutopilotSession(request?: DeepPartial<AddAutopilotSessionRequest>): Promise<AddAutopilotSessionResponse>;
/**
* litcli: `autopilot list`
* ListAutopilotSessions lists all the sessions that are of type
* TypeAutopilot.
*/
listAutopilotSessions(request?: DeepPartial<ListAutopilotSessionsRequest>): Promise<ListAutopilotSessionsResponse>;
/**
* litcli: `autopilot revoke`
* RevokeAutopilotSession revokes an Autopilot session.
*/
revokeAutopilotSession(request?: DeepPartial<RevokeAutopilotSessionRequest>): Promise<RevokeAutopilotSessionResponse>;

@@ -119,0 +143,0 @@ }

@@ -18,8 +18,21 @@ export declare enum SessionType {

export interface AddSessionRequest {
/** A user assigned label for the session. */
label: string;
/**
* The session type. This will be used during macaroon construction to
* determine how restrictive to make the macaroon and thus the session access.
*/
sessionType: SessionType;
/** The time at which the session should automatically be revoked. */
expiryTimestampSeconds: string;
/** The address of the mailbox server that the LNC connection should use. */
mailboxServerAddr: string;
/** If set to true, tls will be skipped when connecting to the mailbox. */
devServer: boolean;
/** Any custom permissions to add the session's macaroon. */
macaroonCustomPermissions: MacaroonPermission[];
/**
* The ID of the account to associate this session with. This should only be
* set if the session_type is TYPE_MACAROON_ACCOUNT.
*/
accountId: string;

@@ -37,7 +50,7 @@ }

* be set to either:
* - a particular URI to which access should be granted.
* - a URI regex, in which case access will be granted to each URI that
* matches the regex.
* - the "***readonly***" keyword. This will result in the access being
* granted to all read-only endpoints.
* - a particular URI to which access should be granted.
* - a URI regex, in which case access will be granted to each URI that
* matches the regex.
* - the "***readonly***" keyword. This will result in the access being
* granted to all read-only endpoints.
*/

@@ -47,19 +60,59 @@ action: string;

export interface AddSessionResponse {
/** The session of the newly created session. */
session: Session | undefined;
}
export interface Session {
/**
* A unique ID assigned to the session. It is derived from the session
* macaroon.
*/
id: Uint8Array | string;
/** A user assigned label for the session. */
label: string;
/**
* The current state that the session is in. This will give an indication of
* if the session is currently usable or not.
*/
sessionState: SessionState;
/**
* The session type. The will given an indication of the restrictions applied
* to the macaroon assigned to the session.
*/
sessionType: SessionType;
/** The time at which the session will automatically be revoked. */
expiryTimestampSeconds: string;
/** The address of the mailbox server that the LNC connection should use. */
mailboxServerAddr: string;
/** If set to true, tls will be skipped when connecting to the mailbox. */
devServer: boolean;
/** The LNC pairing phrase in byte form. */
pairingSecret: Uint8Array | string;
/** The LNC pairing phrase in mnemonic form. */
pairingSecretMnemonic: string;
/**
* The long term, local static public key used by this node for the LNC
* connection.
*/
localPublicKey: Uint8Array | string;
/**
* The long term, remote static public key used by the remote party for the
* LNC connection.
*/
remotePublicKey: Uint8Array | string;
/** The time at which the session was created. */
createdAt: string;
/**
* The recipe used for creating a macaroon to use with this session. This will
* be closely linked to the session type.
*/
macaroonRecipe: MacaroonRecipe | undefined;
/**
* If the session is for a specific account, then this will be the account ID
* it is associated with.
*/
accountId: string;
/**
* If this session is for Autopilot use, then this will be the set of features
* that the session can be used for along with the rules for each feature.
*/
autopilotFeatureInfo: {

@@ -83,3 +136,5 @@ [key: string]: RulesMap;

export interface MacaroonRecipe {
/** A list of permissions that should be included in the macaroon. */
permissions: MacaroonPermission[];
/** A list of caveats to add to the macaroon. */
caveats: string[];

@@ -90,5 +145,10 @@ }

export interface ListSessionsResponse {
/** A list of sessions. */
sessions: Session[];
}
export interface RevokeSessionRequest {
/**
* The local static key of the session to be revoked.
* When using REST, this field must be encoded as base64url.
*/
localPublicKey: Uint8Array | string;

@@ -164,7 +224,11 @@ }

export interface OffChainBudget {
/** The maximum amount that can be spent off-chain excluding fees. */
maxAmtMsat: string;
/** The maximum amount that can be spent off-chain on fees. */
maxFeesMsat: string;
}
export interface OnChainBudget {
/** The maximum amount that can be spent on-chain including fees. */
absoluteAmtSats: string;
/** The maximum amount that can be spent on-chain in fees. */
maxSatPerVByte: string;

@@ -175,5 +239,10 @@ }

export interface ChannelRestrict {
/**
* A list of channel IDs that the Autopilot should _not_ perform any actions
* on.
*/
channelIds: string[];
}
export interface PeerRestrict {
/** A list of peer IDs that the Autopilot should _not_ perform any actions on. */
peerIds: string[];

@@ -186,4 +255,17 @@ }

export interface Sessions {
/**
* litcli: `sessions add`
* AddSession adds and starts a new LNC session.
*/
addSession(request?: DeepPartial<AddSessionRequest>): Promise<AddSessionResponse>;
/**
* litcli: `sessions list`
* ListSessions returns all sessions known to the session store.
*/
listSessions(request?: DeepPartial<ListSessionsRequest>): Promise<ListSessionsResponse>;
/**
* litcli: `sessions revoke`
* RevokeSession revokes a single session and also stops it if it is currently
* active.
*/
revokeSession(request?: DeepPartial<RevokeSessionRequest>): Promise<RevokeSessionResponse>;

@@ -190,0 +272,0 @@ }

@@ -26,2 +26,7 @@ export interface ConfRequest {

heightHint: number;
/**
* If true, then the block that mines the specified txid/script will be
* included in eventual the notification event.
*/
includeBlock: boolean;
}

@@ -38,4 +43,9 @@ export interface ConfDetails {

blockHeight: number;
/** The index of the confirmed transaction within the transaction. */
/** The index of the confirmed transaction within the block. */
txIndex: number;
/**
* The raw bytes of the block that mined the transaction. Only included if
* include_block was set in the request.
*/
rawBlock: Uint8Array | string;
}

@@ -42,0 +52,0 @@ /** TODO(wilmer): need to know how the client will use this first. */

@@ -56,3 +56,3 @@ import type { RouteHint, Invoice } from '../lightning';

descriptionHash: Uint8Array | string;
/** Payment request expiry time in seconds. Default is 3600 (1 hour). */
/** Payment request expiry time in seconds. Default is 86400 (24 hours). */
expiry: string;

@@ -59,0 +59,0 @@ /** Fallback on-chain address. */

@@ -202,2 +202,9 @@ import type { Failure_FailureCode, RouteHint, FeatureBit, Route, Failure, HTLCAttempt, ChannelPoint, Payment } from '../lightning';

}
export interface TrackPaymentsRequest {
/**
* If set, only the final payment updates are streamed back. Intermediate
* updates that show which htlcs are still in flight are suppressed.
*/
noInflightUpdates: boolean;
}
export interface RouteFeeRequest {

@@ -309,2 +316,78 @@ /** The destination once wishes to obtain a routing fee quote to. */

/**
* Deprecated, use AprioriParameters. The amount of time mission control will
* take to restore a penalized node or channel back to 50% success probability,
* expressed in seconds. Setting this value to a higher value will penalize
* failures for longer, making mission control less likely to route through
* nodes and channels that we have previously recorded failures for.
*
* @deprecated
*/
halfLifeSeconds: string;
/**
* Deprecated, use AprioriParameters. The probability of success mission
* control should assign to hop in a route where it has no other information
* available. Higher values will make mission control more willing to try hops
* that we have no information about, lower values will discourage trying these
* hops.
*
* @deprecated
*/
hopProbability: number;
/**
* Deprecated, use AprioriParameters. The importance that mission control
* should place on historical results, expressed as a value in [0;1]. Setting
* this value to 1 will ignore all historical payments and just use the hop
* probability to assess the probability of success for each hop. A zero value
* ignores hop probability completely and relies entirely on historical
* results, unless none are available.
*
* @deprecated
*/
weight: number;
/** The maximum number of payment results that mission control will store. */
maximumPaymentResults: number;
/**
* The minimum time that must have passed since the previously recorded failure
* before we raise the failure amount.
*/
minimumFailureRelaxInterval: string;
/**
* ProbabilityModel defines which probability estimator should be used in
* pathfinding. Note that the bimodal estimator is experimental.
*/
model: MissionControlConfig_ProbabilityModel;
apriori: AprioriParameters | undefined;
bimodal: BimodalParameters | undefined;
}
export declare enum MissionControlConfig_ProbabilityModel {
APRIORI = "APRIORI",
BIMODAL = "BIMODAL",
UNRECOGNIZED = "UNRECOGNIZED"
}
export interface BimodalParameters {
/**
* NodeWeight defines how strongly other previous forwardings on channels of a
* router should be taken into account when computing a channel's probability
* to route. The allowed values are in the range [0, 1], where a value of 0
* means that only direct information about a channel is taken into account.
*/
nodeWeight: number;
/**
* ScaleMsat describes the scale over which channels statistically have some
* liquidity left. The value determines how quickly the bimodal distribution
* drops off from the edges of a channel. A larger value (compared to typical
* channel capacities) means that the drop off is slow and that channel
* balances are distributed more uniformly. A small value leads to the
* assumption of very unbalanced channels.
*/
scaleMsat: string;
/**
* DecayTime describes the information decay of knowledge about previous
* successes and failures in channels. The smaller the decay time, the quicker
* we forget about past forwardings.
*/
decayTime: string;
}
export interface AprioriParameters {
/**
* The amount of time mission control will take to restore a penalized node

@@ -333,9 +416,9 @@ * or channel back to 50% success probability, expressed in seconds. Setting

weight: number;
/** The maximum number of payment results that mission control will store. */
maximumPaymentResults: number;
/**
* The minimum time that must have passed since the previously recorded failure
* before we raise the failure amount.
* The fraction of a channel's capacity that we consider to have liquidity. For
* amounts that come close to or exceed the fraction, an additional penalty is
* applied. A value of 1.0 disables the capacity factor. Allowed values are in
* [0.75, 1.0].
*/
minimumFailureRelaxInterval: string;
capacityFraction: number;
}

@@ -426,2 +509,4 @@ export interface QueryProbabilityRequest {

linkFailEvent: LinkFailEvent | undefined;
subscribedEvent: SubscribedEvent | undefined;
finalHtlcEvent: FinalHtlcEvent | undefined;
}

@@ -455,2 +540,8 @@ export declare enum HtlcEvent_EventType {

}
export interface FinalHtlcEvent {
settled: boolean;
offchain: boolean;
}
export interface SubscribedEvent {
}
export interface LinkFailEvent {

@@ -516,2 +607,7 @@ /** Info contains details about the htlc that we failed. */

onionBlob: Uint8Array | string;
/**
* The block height at which this htlc will be auto-failed to prevent the
* channel from force-closing.
*/
autoFailHeight: number;
}

@@ -580,2 +676,11 @@ export interface ForwardHtlcInterceptRequest_CustomRecordsEntry {

/**
* TrackPayments returns an update stream for every payment that is not in a
* terminal state. Note that if payments are in-flight while starting a new
* subscription, the start of the payment stream could produce out-of-order
* and/or duplicate events. In order to get updates for every in-flight
* payment attempt make sure to subscribe to this method before initiating any
* payments.
*/
trackPayments(request?: DeepPartial<TrackPaymentsRequest>, onMessage?: (msg: Payment) => void, onError?: (err: Error) => void): void;
/**
* EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it

@@ -627,4 +732,6 @@ * may cost to send an HTLC to the target end destination.

/**
* QueryProbability returns the current success probability estimate for a
* given node pair and amount.
* Deprecated. QueryProbability returns the current success probability
* estimate for a given node pair and amount. The call returns a zero success
* probability if no channel is available or if the amount violates min/max
* HTLC constraints.
*/

@@ -631,0 +738,0 @@ queryProbability(request?: DeepPartial<QueryProbabilityRequest>): Promise<QueryProbabilityResponse>;

@@ -24,2 +24,21 @@ export declare enum SignMethod {

}
export declare enum MuSig2Version {
/**
* MUSIG2_VERSION_UNDEFINED - The default value on the RPC is zero for enums so we need to represent an
* invalid/undefined version by default to make sure clients upgrade their
* software to set the version explicitly.
*/
MUSIG2_VERSION_UNDEFINED = "MUSIG2_VERSION_UNDEFINED",
/**
* MUSIG2_VERSION_V040 - The version of MuSig2 that lnd 0.15.x shipped with, which corresponds to the
* version v0.4.0 of the MuSig2 BIP draft.
*/
MUSIG2_VERSION_V040 = "MUSIG2_VERSION_V040",
/**
* MUSIG2_VERSION_V100RC2 - The current version of MuSig2 which corresponds to the version v1.0.0rc2 of
* the MuSig2 BIP draft.
*/
MUSIG2_VERSION_V100RC2 = "MUSIG2_VERSION_V100RC2",
UNRECOGNIZED = "UNRECOGNIZED"
}
export interface KeyLocator {

@@ -253,6 +272,6 @@ /** The family of key being identified. */

/**
* A list of all public keys (serialized in 32-byte x-only format!)
* participating in the signing session. The list will always be sorted
* lexicographically internally. This must include the local key which is
* described by the above key_loc.
* A list of all public keys (serialized in 32-byte x-only format for v0.4.0
* and 33-byte compressed format for v1.0.0rc2!) participating in the signing
* session. The list will always be sorted lexicographically internally. This
* must include the local key which is described by the above key_loc.
*/

@@ -271,2 +290,9 @@ allSignerPubkeys: Uint8Array | string[];

taprootTweak: TaprootTweakDesc | undefined;
/**
* The mandatory version of the MuSig2 BIP draft to use. This is necessary to
* differentiate between the changes that were made to the BIP while this
* experimental RPC was already released. Some of those changes affect how the
* combined key and nonces are created.
*/
version: MuSig2Version;
}

@@ -287,2 +313,4 @@ export interface MuSig2CombineKeysResponse {

taprootInternalKey: Uint8Array | string;
/** The version of the MuSig2 BIP that was used to combine the keys. */
version: MuSig2Version;
}

@@ -293,6 +321,6 @@ export interface MuSig2SessionRequest {

/**
* A list of all public keys (serialized in 32-byte x-only format!)
* participating in the signing session. The list will always be sorted
* lexicographically internally. This must include the local key which is
* described by the above key_loc.
* A list of all public keys (serialized in 32-byte x-only format for v0.4.0
* and 33-byte compressed format for v1.0.0rc2!) participating in the signing
* session. The list will always be sorted lexicographically internally. This
* must include the local key which is described by the above key_loc.
*/

@@ -316,2 +344,9 @@ allSignerPubkeys: Uint8Array | string[];

taprootTweak: TaprootTweakDesc | undefined;
/**
* The mandatory version of the MuSig2 BIP draft to use. This is necessary to
* differentiate between the changes that were made to the BIP while this
* experimental RPC was already released. Some of those changes affect how the
* combined key and nonces are created.
*/
version: MuSig2Version;
}

@@ -349,2 +384,4 @@ export interface MuSig2SessionResponse {

haveAllNonces: boolean;
/** The version of the MuSig2 BIP that was used to create the session. */
version: MuSig2Version;
}

@@ -351,0 +388,0 @@ export interface MuSig2RegisterNoncesRequest {

@@ -88,2 +88,24 @@ import type { Utxo, OutPoint, TransactionDetails } from '../lightning';

}
/**
* The possible change address types for default accounts and single imported
* public keys. By default, P2WPKH will be used. We don't provide the
* possibility to choose P2PKH as it is a legacy key scope, nor NP2WPKH as
* no key scope permits to do so. For custom accounts, no change type should
* be provided as the coin selection key scope will always be used to generate
* the change address.
*/
export declare enum ChangeAddressType {
/**
* CHANGE_ADDRESS_TYPE_UNSPECIFIED - CHANGE_ADDRESS_TYPE_UNSPECIFIED indicates that no change address type is
* provided. We will then use P2WPKH address type for change (BIP0084 key
* scope).
*/
CHANGE_ADDRESS_TYPE_UNSPECIFIED = "CHANGE_ADDRESS_TYPE_UNSPECIFIED",
/**
* CHANGE_ADDRESS_TYPE_P2TR - CHANGE_ADDRESS_TYPE_P2TR indicates to use P2TR address for change output
* (BIP0086 key scope).
*/
CHANGE_ADDRESS_TYPE_P2TR = "CHANGE_ADDRESS_TYPE_P2TR",
UNRECOGNIZED = "UNRECOGNIZED"
}
export interface ListUnspentRequest {

@@ -165,10 +187,3 @@ /** The minimum number of confirmations to be included. */

name: string;
/**
* The type of addresses the account supports.
* AddressType | External Branch | Internal Branch
* ---------------------------------------------------------------------
* WITNESS_PUBKEY_HASH | P2WPKH | P2WPKH
* NESTED_WITNESS_PUBKEY_HASH | NP2WPKH | NP2WPKH
* HYBRID_NESTED_WITNESS_PUBKEY_HASH | NP2WPKH | P2WPKH
*/
/** The type of addresses the account supports. */
addressType: AddressType;

@@ -209,2 +224,38 @@ /**

}
export interface AddressProperty {
/**
* The address encoded using the appropriate format depending on the
* address type (base58, bech32, bech32m).
*
* Note that lnd's internal/custom keys for channels and other
* functionality are derived from the same scope. Since they
* aren't really used as addresses and will never have an
* on-chain balance, we'll show the public key instead (only if
* the show_custom_accounts flag is provided).
*/
address: string;
/** Denotes if the address is a change address. */
isInternal: boolean;
/** The balance of the address. */
balance: string;
}
export interface AccountWithAddresses {
/** The name used to identify the account. */
name: string;
/** The type of addresses the account supports. */
addressType: AddressType;
/**
* The derivation path corresponding to the account public key. This will
* always be empty for the default imported account in which single public keys
* are imported into.
*/
derivationPath: string;
/**
* List of address, its type internal/external & balance.
* Note that the order of addresses will be random and not according to the
* derivation index, since that information is not stored by the underlying
* wallet.
*/
addresses: AddressProperty[];
}
export interface ListAccountsRequest {

@@ -227,2 +278,54 @@ /** An optional filter to only return accounts matching this name. */

}
export interface ListAddressesRequest {
/** An optional filter to only return addresses matching this account. */
accountName: string;
/**
* An optional flag to return LND's custom accounts (Purpose=1017)
* public key along with other addresses.
*/
showCustomAccounts: boolean;
}
export interface ListAddressesResponse {
/** A list of all the accounts and their addresses. */
accountWithAddresses: AccountWithAddresses[];
}
export interface SignMessageWithAddrRequest {
/**
* The message to be signed. When using REST, this field must be encoded as
* base64.
*/
msg: Uint8Array | string;
/**
* The address which will be used to look up the private key and sign the
* corresponding message.
*/
addr: string;
}
export interface SignMessageWithAddrResponse {
/** The compact ECDSA signature for the given message encoded in base64. */
signature: string;
}
export interface VerifyMessageWithAddrRequest {
/**
* The message to be signed. When using REST, this field must be encoded as
* base64.
*/
msg: Uint8Array | string;
/**
* The compact ECDSA signature to be verified over the given message
* ecoded in base64.
*/
signature: string;
/**
* The address which will be used to look up the public key and verify the
* the signature.
*/
addr: string;
}
export interface VerifyMessageWithAddrResponse {
/** Whether the signature was valid over the given message. */
valid: boolean;
/** The pubkey recovered from the signature. */
pubkey: Uint8Array | string;
}
export interface ImportAccountRequest {

@@ -283,2 +386,58 @@ /** A name to identify the account with. */

}
export interface ImportTapscriptRequest {
/** The internal public key, serialized as 32-byte x-only public key. */
internalPublicKey: Uint8Array | string;
/**
* The full script tree with all individual leaves is known and the root
* hash can be constructed from the full tree directly.
*/
fullTree: TapscriptFullTree | undefined;
/**
* Only a single script leaf is known. To construct the root hash, the full
* inclusion proof must also be provided.
*/
partialReveal: TapscriptPartialReveal | undefined;
/**
* Only the root hash of the Taproot script tree (or other form of Taproot
* commitment) is known.
*/
rootHashOnly: Uint8Array | string | undefined;
/**
* Only the final, tweaked Taproot key is known and no additional
* information about the internal key or type of tweak that was used to
* derive it. When this is set, the wallet treats the key in
* internal_public_key as the Taproot key directly. This can be useful for
* tracking arbitrary Taproot outputs without the goal of ever being able
* to spend from them through the internal wallet.
*/
fullKeyOnly: boolean | undefined;
}
export interface TapscriptFullTree {
/** The complete, ordered list of all tap leaves of the tree. */
allLeaves: TapLeaf[];
}
export interface TapLeaf {
/** The leaf version. Should be 0xc0 (192) in case of a SegWit v1 script. */
leafVersion: number;
/** The script of the tap leaf. */
script: Uint8Array | string;
}
export interface TapscriptPartialReveal {
/** The tap leaf that is known and will be revealed. */
revealedLeaf: TapLeaf | undefined;
/**
* The BIP-0341 serialized inclusion proof that is required to prove that
* the revealed leaf is part of the tree. This contains 0..n blocks of 32
* bytes. If the tree only contained a single leaf (which is the revealed
* leaf), this can be empty.
*/
fullInclusionProof: Uint8Array | string;
}
export interface ImportTapscriptResponse {
/**
* The resulting pay-to-Taproot address that represents the imported internal
* key with the script committed to it.
*/
p2trAddress: string;
}
export interface Transaction {

@@ -432,3 +591,6 @@ /** The raw serialized transaction. */

export interface LabelTransactionRequest {
/** The txid of the transaction to label. */
/**
* The txid of the transaction to label. Note: When using gRPC, the bytes
* must be in little-endian (reverse) order.
*/
txid: Uint8Array | string;

@@ -475,2 +637,9 @@ /** The label to add to the transaction, limited to 500 characters. */

spendUnconfirmed: boolean;
/**
* The address type for the change. If empty, P2WPKH addresses will be used
* for default accounts and single imported public keys. For custom
* accounts, no change type should be provided as the coin selection key
* scope will always be used to generate the change address.
*/
changeType: ChangeAddressType;
}

@@ -530,2 +699,4 @@ export interface FundPsbtResponse {

signedPsbt: Uint8Array | string;
/** The indices of signed inputs. */
signedInputs: number[];
}

@@ -611,2 +782,45 @@ export interface FinalizePsbtRequest {

/**
* ListAddresses retrieves all the addresses along with their balance. An
* account name filter can be provided to filter through all of the
* wallet accounts and return the addresses of only those matching.
*/
listAddresses(request?: DeepPartial<ListAddressesRequest>): Promise<ListAddressesResponse>;
/**
* SignMessageWithAddr returns the compact signature (base64 encoded) created
* with the private key of the provided address. This requires the address
* to be solely based on a public key lock (no scripts). Obviously the internal
* lnd wallet has to possess the private key of the address otherwise
* an error is returned.
*
* This method aims to provide full compatibility with the bitcoin-core and
* btcd implementation. Bitcoin-core's algorithm is not specified in a
* BIP and only applicable for legacy addresses. This method enhances the
* signing for additional address types: P2WKH, NP2WKH, P2TR.
* For P2TR addresses this represents a special case. ECDSA is used to create
* a compact signature which makes the public key of the signature recoverable.
*/
signMessageWithAddr(request?: DeepPartial<SignMessageWithAddrRequest>): Promise<SignMessageWithAddrResponse>;
/**
* VerifyMessageWithAddr returns the validity and the recovered public key of
* the provided compact signature (base64 encoded). The verification is
* twofold. First the validity of the signature itself is checked and then
* it is verified that the recovered public key of the signature equals
* the public key of the provided address. There is no dependence on the
* private key of the address therefore also external addresses are allowed
* to verify signatures.
* Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
*
* This method is the counterpart of the related signing method
* (SignMessageWithAddr) and aims to provide full compatibility to
* bitcoin-core's implementation. Although bitcoin-core/btcd only provide
* this functionality for legacy addresses this function enhances it to
* the address types: P2PKH, P2WKH, NP2WKH, P2TR.
*
* The verification for P2TR addresses is a special case and requires the
* ECDSA compact signature to compare the reovered public key to the internal
* taproot key. The compact ECDSA signature format was used because there
* are still no known compact signature schemes for schnorr signatures.
*/
verifyMessageWithAddr(request?: DeepPartial<VerifyMessageWithAddrRequest>): Promise<VerifyMessageWithAddrResponse>;
/**
* ImportAccount imports an account backed by an account extended public key.

@@ -638,3 +852,7 @@ * The master key fingerprint denotes the fingerprint of the root key

/**
* ImportPublicKey imports a public key as watch-only into the wallet.
* ImportPublicKey imports a public key as watch-only into the wallet. The
* public key is converted into a simple address of the given type and that
* address script is watched on chain. For Taproot keys, this will only watch
* the BIP-0086 style output script. Use ImportTapscript for more advanced key
* spend or script spend outputs.
*

@@ -647,2 +865,16 @@ * NOTE: Events (deposits/spends) for a key will only be detected by lnd if

/**
* ImportTapscript imports a Taproot script and internal key and adds the
* resulting Taproot output key as a watch-only output script into the wallet.
* For BIP-0086 style Taproot keys (no root hash commitment and no script spend
* path) use ImportPublicKey.
*
* NOTE: Events (deposits/spends) for a key will only be detected by lnd if
* they happen after the import. Rescans to detect past events will be
* supported later on.
*
* NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
* funding PSBTs. Only tracking the balance and UTXOs is currently supported.
*/
importTapscript(request?: DeepPartial<ImportTapscriptRequest>): Promise<ImportTapscriptResponse>;
/**
* PublishTransaction attempts to publish the passed transaction to the

@@ -649,0 +881,0 @@ * network. Once this returns without an error, the wallet will continually

@@ -108,2 +108,8 @@ import type { ChanBackupSnapshot } from './lightning';

watchOnly: WatchOnly | undefined;
/**
* macaroon_root_key is an optional 32 byte macaroon root key that can be
* provided when initializing the wallet rather than letting lnd generate one
* on its own.
*/
macaroonRootKey: Uint8Array | string;
}

@@ -110,0 +116,0 @@ export interface InitWalletResponse {

@@ -607,6 +607,9 @@ import type { RouteHint } from './swapserverrpc/common';

/**
* The start time for autoloop budget, expressed as a unix timestamp in
* seconds. If this value is 0, the budget will be applied for all
* automatically dispatched swaps. Swaps that were completed before this date
* will not be included in budget calculations.
* Deprecated, use autoloop_budget_refresh_period_sec. The start time for
* autoloop budget, expressed as a unix timestamp in seconds. If this value is
* 0, the budget will be applied for all automatically dispatched swaps. Swaps
* that were completed before this date will not be included in budget
* calculations.
*
* @deprecated
*/

@@ -638,2 +641,12 @@ autoloopBudgetStartSec: string;

autoloopDestAddress: string;
/**
* The period over which the autoloop budget is refreshed, expressed in
* seconds.
*/
autoloopBudgetRefreshPeriodSec: string;
/**
* The time at which the autoloop budget was last refreshed, expressed as a
* UNIX timestamp in seconds.
*/
autoloopBudgetLastRefresh: string;
}

@@ -640,0 +653,0 @@ export interface LiquidityRule {

@@ -6,3 +6,4 @@ import type { OrderState, OrderChannelType, AuctionType, NodeTier, ChannelAnnouncementConstraints, ChannelConfirmationConstraints, DurationBucketState, OutPoint, InvalidOrder, ExecutionFee, NodeRating, MarketInfo, BatchSnapshotResponse, BatchSnapshotsResponse, BatchSnapshotRequest, BatchSnapshotsRequest } from './auctioneerrpc/auctioneer';

* detected then a Taproot account is created. For earlier versions a legacy
* account is created.
* account is created. If a version of lnd >= 0.16.0-beta is detected, then a
* Taproot v2 account is created.
*/

@@ -17,2 +18,9 @@ ACCOUNT_VERSION_LND_DEPENDENT = "ACCOUNT_VERSION_LND_DEPENDENT",

ACCOUNT_VERSION_TAPROOT = "ACCOUNT_VERSION_TAPROOT",
/**
* ACCOUNT_VERSION_TAPROOT_V2 - A Taproot enabled account with MuSig2 combined internal key and the expiry
* script as a single tap script leaf. This version uses the MuSig2 v1.0.0-rc2
* protocol for creating the combined internal key. This can only be selected
* when the connected lnd version is >= 0.16.0-beta.
*/
ACCOUNT_VERSION_TAPROOT_V2 = "ACCOUNT_VERSION_TAPROOT_V2",
UNRECOGNIZED = "UNRECOGNIZED"

@@ -607,2 +615,36 @@ }

}
export interface AccountModificationFeesRequest {
}
export interface AccountModificationFee {
/** Modification action type. */
action: string;
/** Transaction ID. */
txid: string;
/** Action transaction block height. */
blockHeight: number;
/** Action transaction timestamp. */
timestamp: string;
/** Action transaction output amount. */
outputAmount: string;
/**
* A flag which is true if fee value has not been set, and is otherwise
* false.
*/
feeNull: boolean | undefined;
/** Action transaction fee value. */
feeValue: string | undefined;
}
export interface ListOfAccountModificationFees {
modificationFees: AccountModificationFee[];
}
export interface AccountModificationFeesResponse {
/** A map from account key to an ordered list of account modification fees. */
accounts: {
[key: string]: ListOfAccountModificationFees;
};
}
export interface AccountModificationFeesResponse_AccountsEntry {
key: string;
value: ListOfAccountModificationFees | undefined;
}
export interface AuctionFeeRequest {

@@ -1028,2 +1070,8 @@ }

/**
* pool: `accounts listfees`
* AccountModificationFees returns a map from account key to an ordered list of
* account action modification fees.
*/
accountModificationFees(request?: DeepPartial<AccountModificationFeesRequest>): Promise<AccountModificationFeesResponse>;
/**
* pool: `orders submit`

@@ -1030,0 +1078,0 @@ * SubmitOrder creates a new ask or bid order and submits for the given account

{
"name": "@lightninglabs/lnc-core",
"version": "0.2.3-alpha",
"version": "0.2.4-alpha",
"description": "Type definitions and utilities for Lightning Node Connect",

@@ -8,7 +8,7 @@ "main": "./dist/index.js",

"config": {
"lnd_release_tag": "v0.15.5-beta",
"loop_release_tag": "v0.21.0-beta",
"pool_release_tag": "v0.6.1-beta",
"lnd_release_tag": "v0.16.0-beta",
"loop_release_tag": "v0.22.0-beta",
"pool_release_tag": "v0.6.2-beta",
"faraday_release_tag": "v0.2.9-alpha",
"lit_release_tag": "v0.8.6-alpha",
"lit_release_tag": "v0.9.0-alpha",
"protoc_version": "21.9"

@@ -15,0 +15,0 @@ },

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc