From af7af420fa923bd3e24b75940b27182c9cccd06a Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Thu, 8 Sep 2022 16:22:19 +0200 Subject: [PATCH] switch out `grpc` for `@grpc/grpc-js` + generated ts types --- .github/workflows/update_proto.yml | 12 +- dist/src/controllers/invoices.js.map | 2 +- dist/src/controllers/queries.js | 18 +- dist/src/controllers/queries.js.map | 2 +- dist/src/crypto/rsa.js | 4 +- dist/src/crypto/rsa.js.map | 2 +- dist/src/grpc/greenlight.js | 34 +- dist/src/grpc/greenlight.js.map | 2 +- dist/src/grpc/interfaces.js | 5 +- dist/src/grpc/interfaces.js.map | 2 +- dist/src/grpc/lightning.js | 273 +- dist/src/grpc/lightning.js.map | 2 +- dist/src/grpc/proto.js | 19 + dist/src/grpc/proto.js.map | 1 + dist/src/grpc/subscribe.js | 2 +- dist/src/grpc/subscribe.js.map | 2 +- .../tests/controllers/messageLength.test.js | 4 +- .../controllers/messageLength.test.js.map | 2 +- dist/src/utils/gitinfo.js.map | 2 +- dist/src/utils/msg.js.map | 2 +- dist/src/utils/proxy.js | 17 +- dist/src/utils/proxy.js.map | 2 +- dist/src/utils/signer.js | 42 +- dist/src/utils/signer.js.map | 2 +- dist/src/utils/wallet.js | 23 +- dist/src/utils/wallet.js.map | 2 +- grpc_gen_types.sh | 63 + package-lock.json | 527 +-- package.json | 24 +- src/controllers/invoices.ts | 3 +- src/controllers/queries.ts | 17 +- src/crypto/rsa.ts | 17 +- src/grpc/greenlight.ts | 42 +- src/grpc/interfaces.ts | 55 +- src/grpc/lightning.ts | 440 +- src/grpc/proto.ts | 58 + src/grpc/proto.ts.template | 28 + src/grpc/subscribe.ts | 2 +- src/grpc/types/greenlight.d.ts | 90 + src/grpc/types/greenlight/Address.d.ts | 11 + src/grpc/types/greenlight/Amount.d.ts | 18 + src/grpc/types/greenlight/BitcoinAddress.d.ts | 6 + src/grpc/types/greenlight/BtcAddressType.d.ts | 4 + src/grpc/types/greenlight/Channel.d.ts | 42 + .../types/greenlight/CloseChannelRequest.d.ts | 19 + .../greenlight/CloseChannelResponse.d.ts | 14 + .../types/greenlight/CloseChannelType.d.ts | 4 + src/grpc/types/greenlight/Confirmation.d.ts | 6 + src/grpc/types/greenlight/ConnectRequest.d.ts | 8 + .../types/greenlight/ConnectResponse.d.ts | 8 + .../types/greenlight/DisconnectRequest.d.ts | 8 + .../types/greenlight/DisconnectResponse.d.ts | 2 + src/grpc/types/greenlight/Empty.d.ts | 2 + src/grpc/types/greenlight/Feerate.d.ts | 15 + src/grpc/types/greenlight/FeeratePreset.d.ts | 5 + .../types/greenlight/FundChannelRequest.d.ts | 29 + .../types/greenlight/FundChannelResponse.d.ts | 17 + src/grpc/types/greenlight/GetInfoRequest.d.ts | 2 + .../types/greenlight/GetInfoResponse.d.ts | 25 + src/grpc/types/greenlight/Hsm.d.ts | 117 + src/grpc/types/greenlight/HsmRequest.d.ts | 15 + .../types/greenlight/HsmRequestContext.d.ts | 13 + src/grpc/types/greenlight/HsmResponse.d.ts | 9 + src/grpc/types/greenlight/Htlc.d.ts | 20 + .../types/greenlight/IncomingPayment.d.ts | 12 + src/grpc/types/greenlight/Invoice.d.ts | 30 + .../types/greenlight/InvoiceIdentifier.d.ts | 13 + src/grpc/types/greenlight/InvoiceRequest.d.ts | 14 + src/grpc/types/greenlight/InvoiceStatus.d.ts | 5 + src/grpc/types/greenlight/KeysendRequest.d.ts | 27 + .../types/greenlight/ListFundsChannel.d.ts | 21 + .../types/greenlight/ListFundsOutput.d.ts | 21 + .../types/greenlight/ListFundsRequest.d.ts | 10 + .../types/greenlight/ListFundsResponse.d.ts | 16 + .../types/greenlight/ListInvoicesRequest.d.ts | 10 + .../greenlight/ListInvoicesResponse.d.ts | 10 + .../types/greenlight/ListPaymentsRequest.d.ts | 10 + .../greenlight/ListPaymentsResponse.d.ts | 10 + .../types/greenlight/ListPeersRequest.d.ts | 6 + .../types/greenlight/ListPeersResponse.d.ts | 10 + src/grpc/types/greenlight/NetAddressType.d.ts | 6 + src/grpc/types/greenlight/NewAddrRequest.d.ts | 9 + .../types/greenlight/NewAddrResponse.d.ts | 11 + src/grpc/types/greenlight/Node.d.ts | 997 +++++ .../types/greenlight/OffChainPayment.d.ts | 25 + src/grpc/types/greenlight/Outpoint.d.ts | 9 + src/grpc/types/greenlight/OutputStatus.d.ts | 4 + src/grpc/types/greenlight/PayRequest.d.ts | 14 + src/grpc/types/greenlight/PayStatus.d.ts | 5 + src/grpc/types/greenlight/Payment.d.ts | 22 + .../types/greenlight/PaymentIdentifier.d.ts | 11 + src/grpc/types/greenlight/Peer.d.ts | 23 + src/grpc/types/greenlight/Routehint.d.ts | 10 + src/grpc/types/greenlight/RoutehintHop.d.ts | 17 + src/grpc/types/greenlight/StopRequest.d.ts | 2 + src/grpc/types/greenlight/StopResponse.d.ts | 2 + .../greenlight/StreamIncomingFilter.d.ts | 2 + src/grpc/types/greenlight/Timeout.d.ts | 6 + src/grpc/types/greenlight/TlvField.d.ts | 11 + .../types/greenlight/WithdrawRequest.d.ts | 30 + .../types/greenlight/WithdrawResponse.d.ts | 9 + src/grpc/types/lightning.d.ts | 227 ++ src/grpc/types/lnrpc/AMP.d.ts | 15 + src/grpc/types/lnrpc/AMPInvoiceState.d.ts | 15 + src/grpc/types/lnrpc/AMPRecord.d.ts | 11 + .../types/lnrpc/AbandonChannelRequest.d.ts | 14 + .../types/lnrpc/AbandonChannelResponse.d.ts | 2 + src/grpc/types/lnrpc/AddInvoiceResponse.d.ts | 15 + src/grpc/types/lnrpc/AddressType.d.ts | 8 + src/grpc/types/lnrpc/AliasMap.d.ts | 10 + src/grpc/types/lnrpc/Amount.d.ts | 10 + src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts | 16 + .../types/lnrpc/BakeMacaroonResponse.d.ts | 6 + src/grpc/types/lnrpc/BatchOpenChannel.d.ts | 26 + .../types/lnrpc/BatchOpenChannelRequest.d.ts | 22 + .../types/lnrpc/BatchOpenChannelResponse.d.ts | 10 + src/grpc/types/lnrpc/Chain.d.ts | 8 + .../types/lnrpc/ChanBackupExportRequest.d.ts | 2 + src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts | 16 + src/grpc/types/lnrpc/ChanInfoRequest.d.ts | 8 + src/grpc/types/lnrpc/ChanPointShim.d.ts | 27 + .../types/lnrpc/ChangePasswordRequest.d.ts | 13 + .../types/lnrpc/ChangePasswordResponse.d.ts | 7 + src/grpc/types/lnrpc/Channel.d.ts | 81 + .../types/lnrpc/ChannelAcceptRequest.d.ts | 40 + .../types/lnrpc/ChannelAcceptResponse.d.ts | 29 + src/grpc/types/lnrpc/ChannelBackup.d.ts | 13 + .../lnrpc/ChannelBackupSubscription.d.ts | 2 + src/grpc/types/lnrpc/ChannelBackups.d.ts | 10 + .../types/lnrpc/ChannelBalanceRequest.d.ts | 2 + .../types/lnrpc/ChannelBalanceResponse.d.ts | 26 + src/grpc/types/lnrpc/ChannelCloseSummary.d.ts | 51 + src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts | 9 + src/grpc/types/lnrpc/ChannelConstraints.d.ts | 18 + src/grpc/types/lnrpc/ChannelEdge.d.ts | 26 + src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts | 26 + .../types/lnrpc/ChannelEventSubscription.d.ts | 2 + src/grpc/types/lnrpc/ChannelEventUpdate.d.ts | 58 + src/grpc/types/lnrpc/ChannelFeeReport.d.ts | 16 + src/grpc/types/lnrpc/ChannelGraph.d.ts | 16 + src/grpc/types/lnrpc/ChannelGraphRequest.d.ts | 6 + src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts | 10 + src/grpc/types/lnrpc/ChannelPoint.d.ts | 13 + src/grpc/types/lnrpc/ChannelUpdate.d.ts | 31 + src/grpc/types/lnrpc/CheckMacPermRequest.d.ts | 15 + .../types/lnrpc/CheckMacPermResponse.d.ts | 6 + src/grpc/types/lnrpc/CloseChannelRequest.d.ts | 24 + src/grpc/types/lnrpc/CloseStatusUpdate.d.ts | 18 + src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts | 18 + .../types/lnrpc/ClosedChannelsRequest.d.ts | 16 + .../types/lnrpc/ClosedChannelsResponse.d.ts | 10 + src/grpc/types/lnrpc/CommitmentType.d.ts | 7 + src/grpc/types/lnrpc/ConfirmationUpdate.d.ts | 11 + src/grpc/types/lnrpc/ConnectPeerRequest.d.ts | 16 + src/grpc/types/lnrpc/ConnectPeerResponse.d.ts | 2 + src/grpc/types/lnrpc/CustomMessage.d.ts | 11 + src/grpc/types/lnrpc/DebugLevelRequest.d.ts | 8 + src/grpc/types/lnrpc/DebugLevelResponse.d.ts | 6 + .../types/lnrpc/DeleteAllPaymentsRequest.d.ts | 8 + .../lnrpc/DeleteAllPaymentsResponse.d.ts | 2 + .../types/lnrpc/DeleteMacaroonIDRequest.d.ts | 8 + .../types/lnrpc/DeleteMacaroonIDResponse.d.ts | 6 + .../types/lnrpc/DeletePaymentRequest.d.ts | 9 + .../types/lnrpc/DeletePaymentResponse.d.ts | 2 + .../types/lnrpc/DisconnectPeerRequest.d.ts | 6 + .../types/lnrpc/DisconnectPeerResponse.d.ts | 2 + src/grpc/types/lnrpc/EdgeLocator.d.ts | 10 + src/grpc/types/lnrpc/EstimateFeeRequest.d.ts | 18 + src/grpc/types/lnrpc/EstimateFeeResponse.d.ts | 12 + .../lnrpc/ExportChannelBackupRequest.d.ts | 10 + src/grpc/types/lnrpc/FailedUpdate.d.ts | 15 + src/grpc/types/lnrpc/Failure.d.ts | 57 + src/grpc/types/lnrpc/Feature.d.ts | 10 + src/grpc/types/lnrpc/FeatureBit.d.ts | 27 + src/grpc/types/lnrpc/FeeLimit.d.ts | 14 + src/grpc/types/lnrpc/FeeReportRequest.d.ts | 2 + src/grpc/types/lnrpc/FeeReportResponse.d.ts | 18 + src/grpc/types/lnrpc/FloatMetric.d.ts | 8 + src/grpc/types/lnrpc/ForwardingEvent.d.ts | 26 + .../types/lnrpc/ForwardingHistoryRequest.d.ts | 14 + .../lnrpc/ForwardingHistoryResponse.d.ts | 12 + src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts | 11 + src/grpc/types/lnrpc/FundingPsbtVerify.d.ts | 11 + src/grpc/types/lnrpc/FundingShim.d.ts | 18 + src/grpc/types/lnrpc/FundingShimCancel.d.ts | 7 + .../types/lnrpc/FundingStateStepResp.d.ts | 2 + .../types/lnrpc/FundingTransitionMsg.d.ts | 30 + src/grpc/types/lnrpc/GenSeedRequest.d.ts | 9 + src/grpc/types/lnrpc/GenSeedResponse.d.ts | 9 + src/grpc/types/lnrpc/GetInfoRequest.d.ts | 2 + src/grpc/types/lnrpc/GetInfoResponse.d.ts | 56 + .../types/lnrpc/GetRecoveryInfoRequest.d.ts | 2 + .../types/lnrpc/GetRecoveryInfoResponse.d.ts | 10 + .../types/lnrpc/GetTransactionsRequest.d.ts | 10 + .../lnrpc/GraphTopologySubscription.d.ts | 2 + src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts | 22 + src/grpc/types/lnrpc/HTLC.d.ts | 21 + src/grpc/types/lnrpc/HTLCAttempt.d.ts | 36 + src/grpc/types/lnrpc/Hop.d.ts | 45 + src/grpc/types/lnrpc/HopHint.d.ts | 16 + src/grpc/types/lnrpc/InitWalletRequest.d.ts | 35 + src/grpc/types/lnrpc/InitWalletResponse.d.ts | 7 + src/grpc/types/lnrpc/Initiator.d.ts | 6 + src/grpc/types/lnrpc/InterceptFeedback.d.ts | 11 + src/grpc/types/lnrpc/Invoice.d.ts | 91 + src/grpc/types/lnrpc/InvoiceHTLC.d.ts | 38 + src/grpc/types/lnrpc/InvoiceHTLCState.d.ts | 5 + src/grpc/types/lnrpc/InvoiceSubscription.d.ts | 10 + src/grpc/types/lnrpc/KeyDescriptor.d.ts | 13 + src/grpc/types/lnrpc/KeyLocator.d.ts | 8 + src/grpc/types/lnrpc/Lightning.d.ts | 3523 +++++++++++++++++ src/grpc/types/lnrpc/LightningAddress.d.ts | 8 + src/grpc/types/lnrpc/LightningNode.d.ts | 28 + src/grpc/types/lnrpc/ListAliasesRequest.d.ts | 2 + src/grpc/types/lnrpc/ListAliasesResponse.d.ts | 10 + src/grpc/types/lnrpc/ListChannelsRequest.d.ts | 15 + .../types/lnrpc/ListChannelsResponse.d.ts | 10 + src/grpc/types/lnrpc/ListInvoiceRequest.d.ts | 14 + src/grpc/types/lnrpc/ListInvoiceResponse.d.ts | 16 + .../types/lnrpc/ListMacaroonIDsRequest.d.ts | 2 + .../types/lnrpc/ListMacaroonIDsResponse.d.ts | 8 + src/grpc/types/lnrpc/ListPaymentsRequest.d.ts | 16 + .../types/lnrpc/ListPaymentsResponse.d.ts | 18 + src/grpc/types/lnrpc/ListPeersRequest.d.ts | 6 + src/grpc/types/lnrpc/ListPeersResponse.d.ts | 10 + .../types/lnrpc/ListPermissionsRequest.d.ts | 2 + .../types/lnrpc/ListPermissionsResponse.d.ts | 14 + src/grpc/types/lnrpc/ListUnspentRequest.d.ts | 10 + src/grpc/types/lnrpc/ListUnspentResponse.d.ts | 10 + src/grpc/types/lnrpc/MPPRecord.d.ts | 11 + src/grpc/types/lnrpc/MacaroonId.d.ts | 15 + src/grpc/types/lnrpc/MacaroonPermission.d.ts | 8 + .../types/lnrpc/MacaroonPermissionList.d.ts | 10 + .../types/lnrpc/MiddlewareRegistration.d.ts | 10 + src/grpc/types/lnrpc/MultiChanBackup.d.ts | 13 + src/grpc/types/lnrpc/NetworkInfo.d.ts | 28 + src/grpc/types/lnrpc/NetworkInfoRequest.d.ts | 2 + src/grpc/types/lnrpc/NewAddressRequest.d.ts | 9 + src/grpc/types/lnrpc/NewAddressResponse.d.ts | 6 + src/grpc/types/lnrpc/NodeAddress.d.ts | 8 + src/grpc/types/lnrpc/NodeInfo.d.ts | 22 + src/grpc/types/lnrpc/NodeInfoRequest.d.ts | 8 + src/grpc/types/lnrpc/NodeMetricType.d.ts | 4 + src/grpc/types/lnrpc/NodeMetricsRequest.d.ts | 7 + src/grpc/types/lnrpc/NodeMetricsResponse.d.ts | 14 + src/grpc/types/lnrpc/NodePair.d.ts | 9 + src/grpc/types/lnrpc/NodeUpdate.d.ts | 31 + src/grpc/types/lnrpc/Op.d.ts | 8 + src/grpc/types/lnrpc/OpenChannelRequest.d.ts | 52 + src/grpc/types/lnrpc/OpenStatusUpdate.d.ts | 27 + src/grpc/types/lnrpc/OutPoint.d.ts | 11 + src/grpc/types/lnrpc/OutputDetail.d.ts | 19 + src/grpc/types/lnrpc/OutputScriptType.d.ts | 12 + src/grpc/types/lnrpc/PayReq.d.ts | 45 + src/grpc/types/lnrpc/PayReqString.d.ts | 6 + src/grpc/types/lnrpc/Payment.d.ts | 51 + .../types/lnrpc/PaymentFailureReason.d.ts | 8 + src/grpc/types/lnrpc/PaymentHash.d.ts | 9 + src/grpc/types/lnrpc/Peer.d.ts | 53 + src/grpc/types/lnrpc/PeerEvent.d.ts | 12 + .../types/lnrpc/PeerEventSubscription.d.ts | 2 + .../types/lnrpc/PendingChannelsRequest.d.ts | 2 + .../types/lnrpc/PendingChannelsResponse.d.ts | 125 + src/grpc/types/lnrpc/PendingHTLC.d.ts | 18 + src/grpc/types/lnrpc/PendingUpdate.d.ts | 9 + src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts | 30 + .../types/lnrpc/PolicyUpdateResponse.d.ts | 10 + src/grpc/types/lnrpc/PreviousOutPoint.d.ts | 8 + src/grpc/types/lnrpc/PsbtShim.d.ts | 11 + src/grpc/types/lnrpc/QueryRoutesRequest.d.ts | 62 + src/grpc/types/lnrpc/QueryRoutesResponse.d.ts | 12 + src/grpc/types/lnrpc/RPCMessage.d.ts | 15 + .../types/lnrpc/RPCMiddlewareRequest.d.ts | 33 + .../types/lnrpc/RPCMiddlewareResponse.d.ts | 22 + src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts | 13 + src/grpc/types/lnrpc/Resolution.d.ts | 22 + src/grpc/types/lnrpc/ResolutionOutcome.d.ts | 8 + src/grpc/types/lnrpc/ResolutionType.d.ts | 7 + .../types/lnrpc/RestoreBackupResponse.d.ts | 2 + .../types/lnrpc/RestoreChanBackupRequest.d.ts | 15 + src/grpc/types/lnrpc/Route.d.ts | 22 + src/grpc/types/lnrpc/RouteHint.d.ts | 10 + src/grpc/types/lnrpc/RoutingPolicy.d.ts | 20 + src/grpc/types/lnrpc/SendCoinsRequest.d.ts | 24 + src/grpc/types/lnrpc/SendCoinsResponse.d.ts | 6 + .../types/lnrpc/SendCustomMessageRequest.d.ts | 11 + .../lnrpc/SendCustomMessageResponse.d.ts | 2 + src/grpc/types/lnrpc/SendManyRequest.d.ts | 24 + src/grpc/types/lnrpc/SendManyResponse.d.ts | 6 + src/grpc/types/lnrpc/SendRequest.d.ts | 48 + src/grpc/types/lnrpc/SendResponse.d.ts | 17 + src/grpc/types/lnrpc/SendToRouteRequest.d.ts | 15 + src/grpc/types/lnrpc/SetID.d.ts | 7 + src/grpc/types/lnrpc/SignMessageRequest.d.ts | 9 + src/grpc/types/lnrpc/SignMessageResponse.d.ts | 6 + src/grpc/types/lnrpc/StopRequest.d.ts | 2 + src/grpc/types/lnrpc/StopResponse.d.ts | 2 + src/grpc/types/lnrpc/StreamAuth.d.ts | 6 + .../lnrpc/SubscribeCustomMessagesRequest.d.ts | 2 + src/grpc/types/lnrpc/TimestampedError.d.ts | 10 + src/grpc/types/lnrpc/Transaction.d.ts | 38 + src/grpc/types/lnrpc/TransactionDetails.d.ts | 10 + src/grpc/types/lnrpc/UnlockWalletRequest.d.ts | 17 + .../types/lnrpc/UnlockWalletResponse.d.ts | 2 + src/grpc/types/lnrpc/UpdateFailure.d.ts | 7 + src/grpc/types/lnrpc/Utxo.d.ts | 23 + .../types/lnrpc/VerifyChanBackupResponse.d.ts | 2 + .../types/lnrpc/VerifyMessageRequest.d.ts | 9 + .../types/lnrpc/VerifyMessageResponse.d.ts | 8 + .../types/lnrpc/WalletAccountBalance.d.ts | 10 + .../types/lnrpc/WalletBalanceRequest.d.ts | 2 + .../types/lnrpc/WalletBalanceResponse.d.ts | 26 + src/grpc/types/lnrpc/WalletUnlocker.d.ts | 241 ++ src/grpc/types/lnrpc/WatchOnly.d.ts | 17 + src/grpc/types/lnrpc/WatchOnlyAccount.d.ts | 12 + .../types/lnrpc_proxy/AddInvoiceResponse.d.ts | 15 + src/grpc/types/lnrpc_proxy/Amount.d.ts | 10 + src/grpc/types/lnrpc_proxy/Chain.d.ts | 8 + .../types/lnrpc_proxy/ChanInfoRequest.d.ts | 8 + src/grpc/types/lnrpc_proxy/Channel.d.ts | 77 + .../lnrpc_proxy/ChannelBalanceRequest.d.ts | 2 + .../lnrpc_proxy/ChannelBalanceResponse.d.ts | 26 + .../types/lnrpc_proxy/ChannelConstraints.d.ts | 18 + src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts | 26 + src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts | 31 + .../types/lnrpc_proxy/CommitmentType.d.ts | 6 + src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts | 10 + src/grpc/types/lnrpc_proxy/Failure.d.ts | 58 + src/grpc/types/lnrpc_proxy/Feature.d.ts | 10 + src/grpc/types/lnrpc_proxy/FeatureBit.d.ts | 19 + src/grpc/types/lnrpc_proxy/FeeLimit.d.ts | 14 + .../types/lnrpc_proxy/GetInfoRequest.d.ts | 2 + .../types/lnrpc_proxy/GetInfoResponse.d.ts | 54 + src/grpc/types/lnrpc_proxy/HTLC.d.ts | 21 + src/grpc/types/lnrpc_proxy/HTLCAttempt.d.ts | 34 + src/grpc/types/lnrpc_proxy/Hop.d.ts | 37 + src/grpc/types/lnrpc_proxy/HopHint.d.ts | 16 + src/grpc/types/lnrpc_proxy/Invoice.d.ts | 81 + src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts | 34 + .../types/lnrpc_proxy/InvoiceHTLCState.d.ts | 5 + .../lnrpc_proxy/InvoiceSubscription.d.ts | 10 + src/grpc/types/lnrpc_proxy/Lightning.d.ts | 562 +++ .../types/lnrpc_proxy/LightningAddress.d.ts | 8 + .../lnrpc_proxy/ListChannelsRequest.d.ts | 15 + .../lnrpc_proxy/ListChannelsResponse.d.ts | 10 + src/grpc/types/lnrpc_proxy/MPPRecord.d.ts | 11 + src/grpc/types/lnrpc_proxy/NodePair.d.ts | 9 + src/grpc/types/lnrpc_proxy/PayReq.d.ts | 45 + src/grpc/types/lnrpc_proxy/PayReqString.d.ts | 6 + src/grpc/types/lnrpc_proxy/Payment.d.ts | 51 + .../lnrpc_proxy/PaymentFailureReason.d.ts | 8 + src/grpc/types/lnrpc_proxy/PaymentHash.d.ts | 9 + .../types/lnrpc_proxy/QueryRoutesRequest.d.ts | 63 + .../lnrpc_proxy/QueryRoutesResponse.d.ts | 12 + src/grpc/types/lnrpc_proxy/Route.d.ts | 22 + src/grpc/types/lnrpc_proxy/RouteHint.d.ts | 10 + src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts | 20 + src/grpc/types/lnrpc_proxy/SendRequest.d.ts | 55 + src/grpc/types/lnrpc_proxy/SendResponse.d.ts | 17 + .../types/lnrpc_proxy/SignMessageRequest.d.ts | 7 + .../lnrpc_proxy/SignMessageResponse.d.ts | 8 + .../lnrpc_proxy/VerifyMessageRequest.d.ts | 9 + .../lnrpc_proxy/VerifyMessageResponse.d.ts | 8 + src/grpc/types/router.d.ts | 276 ++ .../types/routerrpc/BuildRouteRequest.d.ts | 17 + .../types/routerrpc/BuildRouteResponse.d.ts | 10 + .../types/routerrpc/ChanStatusAction.d.ts | 5 + src/grpc/types/routerrpc/CircuitKey.d.ts | 10 + src/grpc/types/routerrpc/FailureDetail.d.ts | 25 + src/grpc/types/routerrpc/ForwardEvent.d.ts | 10 + .../types/routerrpc/ForwardFailEvent.d.ts | 2 + .../ForwardHtlcInterceptRequest.d.ts | 33 + .../ForwardHtlcInterceptResponse.d.ts | 25 + .../GetMissionControlConfigRequest.d.ts | 2 + .../GetMissionControlConfigResponse.d.ts | 10 + src/grpc/types/routerrpc/HtlcEvent.d.ts | 60 + src/grpc/types/routerrpc/HtlcInfo.d.ts | 14 + src/grpc/types/routerrpc/LinkFailEvent.d.ts | 22 + .../types/routerrpc/MissionControlConfig.d.ts | 16 + src/grpc/types/routerrpc/PairData.d.ts | 18 + src/grpc/types/routerrpc/PairHistory.d.ts | 15 + src/grpc/types/routerrpc/PaymentState.d.ts | 9 + src/grpc/types/routerrpc/PaymentStatus.d.ts | 16 + .../routerrpc/QueryMissionControlRequest.d.ts | 2 + .../QueryMissionControlResponse.d.ts | 10 + .../routerrpc/QueryProbabilityRequest.d.ts | 13 + .../routerrpc/QueryProbabilityResponse.d.ts | 12 + .../routerrpc/ResetMissionControlRequest.d.ts | 2 + .../ResetMissionControlResponse.d.ts | 2 + .../routerrpc/ResolveHoldForwardAction.d.ts | 5 + src/grpc/types/routerrpc/RouteFeeRequest.d.ts | 11 + .../types/routerrpc/RouteFeeResponse.d.ts | 10 + src/grpc/types/routerrpc/Router.d.ts | 850 ++++ .../types/routerrpc/SendPaymentRequest.d.ts | 62 + .../types/routerrpc/SendToRouteRequest.d.ts | 15 + .../types/routerrpc/SendToRouteResponse.d.ts | 13 + .../SetMissionControlConfigRequest.d.ts | 10 + .../SetMissionControlConfigResponse.d.ts | 2 + src/grpc/types/routerrpc/SettleEvent.d.ts | 7 + .../routerrpc/SubscribeHtlcEventsRequest.d.ts | 2 + .../types/routerrpc/TrackPaymentRequest.d.ts | 9 + .../routerrpc/UpdateChanStatusRequest.d.ts | 15 + .../routerrpc/UpdateChanStatusResponse.d.ts | 2 + .../XImportMissionControlRequest.d.ts | 12 + .../XImportMissionControlResponse.d.ts | 2 + src/grpc/types/rpc_proxy.d.ts | 73 + src/grpc/types/scheduler.d.ts | 36 + .../types/scheduler/ChallengeRequest.d.ts | 10 + .../types/scheduler/ChallengeResponse.d.ts | 7 + src/grpc/types/scheduler/ChallengeScope.d.ts | 4 + src/grpc/types/scheduler/NodeInfoRequest.d.ts | 9 + .../types/scheduler/NodeInfoResponse.d.ts | 9 + src/grpc/types/scheduler/RecoveryRequest.d.ts | 11 + .../types/scheduler/RecoveryResponse.d.ts | 8 + .../types/scheduler/RegistrationRequest.d.ts | 17 + .../types/scheduler/RegistrationResponse.d.ts | 8 + src/grpc/types/scheduler/ScheduleRequest.d.ts | 7 + src/grpc/types/scheduler/Scheduler.d.ts | 294 ++ src/grpc/types/signer.d.ts | 52 + src/grpc/types/signrpc/InputScript.d.ts | 9 + src/grpc/types/signrpc/InputScriptResp.d.ts | 10 + src/grpc/types/signrpc/KeyDescriptor.d.ts | 13 + src/grpc/types/signrpc/KeyLocator.d.ts | 8 + .../types/signrpc/MuSig2CleanupRequest.d.ts | 7 + .../types/signrpc/MuSig2CleanupResponse.d.ts | 2 + .../signrpc/MuSig2CombineKeysRequest.d.ts | 19 + .../signrpc/MuSig2CombineKeysResponse.d.ts | 9 + .../signrpc/MuSig2CombineSigRequest.d.ts | 9 + .../signrpc/MuSig2CombineSigResponse.d.ts | 9 + .../signrpc/MuSig2RegisterNoncesRequest.d.ts | 9 + .../signrpc/MuSig2RegisterNoncesResponse.d.ts | 6 + .../types/signrpc/MuSig2SessionRequest.d.ts | 27 + .../types/signrpc/MuSig2SessionResponse.d.ts | 15 + src/grpc/types/signrpc/MuSig2SignRequest.d.ts | 11 + .../types/signrpc/MuSig2SignResponse.d.ts | 7 + src/grpc/types/signrpc/SharedKeyRequest.d.ts | 19 + src/grpc/types/signrpc/SharedKeyResponse.d.ts | 7 + src/grpc/types/signrpc/SignDescriptor.d.ts | 32 + src/grpc/types/signrpc/SignMessageReq.d.ts | 21 + src/grpc/types/signrpc/SignMessageResp.d.ts | 7 + src/grpc/types/signrpc/SignMethod.d.ts | 6 + src/grpc/types/signrpc/SignReq.d.ts | 19 + src/grpc/types/signrpc/SignResp.d.ts | 7 + src/grpc/types/signrpc/Signer.d.ts | 642 +++ src/grpc/types/signrpc/TaprootTweakDesc.d.ts | 9 + src/grpc/types/signrpc/TweakDesc.d.ts | 9 + src/grpc/types/signrpc/TxOut.d.ts | 11 + src/grpc/types/signrpc/VerifyMessageReq.d.ts | 13 + src/grpc/types/signrpc/VerifyMessageResp.d.ts | 6 + src/grpc/types/walletkit.d.ts | 331 ++ src/grpc/types/walletrpc/Account.d.ts | 22 + .../types/walletrpc/AccountWithAddresses.d.ts | 17 + src/grpc/types/walletrpc/AddrRequest.d.ts | 11 + src/grpc/types/walletrpc/AddrResponse.d.ts | 6 + src/grpc/types/walletrpc/AddressProperty.d.ts | 12 + src/grpc/types/walletrpc/AddressType.d.ts | 7 + src/grpc/types/walletrpc/BumpFeeRequest.d.ts | 20 + src/grpc/types/walletrpc/BumpFeeResponse.d.ts | 2 + .../types/walletrpc/EstimateFeeRequest.d.ts | 6 + .../types/walletrpc/EstimateFeeResponse.d.ts | 8 + .../types/walletrpc/FinalizePsbtRequest.d.ts | 9 + .../types/walletrpc/FinalizePsbtResponse.d.ts | 9 + src/grpc/types/walletrpc/FundPsbtRequest.d.ts | 29 + .../types/walletrpc/FundPsbtResponse.d.ts | 15 + .../types/walletrpc/ImportAccountRequest.d.ts | 16 + .../walletrpc/ImportAccountResponse.d.ts | 14 + .../walletrpc/ImportPublicKeyRequest.d.ts | 10 + .../walletrpc/ImportPublicKeyResponse.d.ts | 2 + .../walletrpc/ImportTapscriptRequest.d.ts | 25 + .../walletrpc/ImportTapscriptResponse.d.ts | 6 + src/grpc/types/walletrpc/KeyReq.d.ts | 8 + .../walletrpc/LabelTransactionRequest.d.ts | 11 + .../walletrpc/LabelTransactionResponse.d.ts | 2 + .../types/walletrpc/LeaseOutputRequest.d.ts | 17 + .../types/walletrpc/LeaseOutputResponse.d.ts | 8 + .../types/walletrpc/ListAccountsRequest.d.ts | 9 + .../types/walletrpc/ListAccountsResponse.d.ts | 10 + .../types/walletrpc/ListAddressesRequest.d.ts | 8 + .../walletrpc/ListAddressesResponse.d.ts | 10 + .../types/walletrpc/ListLeasesRequest.d.ts | 2 + .../types/walletrpc/ListLeasesResponse.d.ts | 10 + .../types/walletrpc/ListSweepsRequest.d.ts | 6 + .../types/walletrpc/ListSweepsResponse.d.ts | 20 + .../types/walletrpc/ListUnspentRequest.d.ts | 12 + .../types/walletrpc/ListUnspentResponse.d.ts | 10 + src/grpc/types/walletrpc/PendingSweep.d.ts | 33 + .../types/walletrpc/PendingSweepsRequest.d.ts | 2 + .../walletrpc/PendingSweepsResponse.d.ts | 10 + src/grpc/types/walletrpc/PublishResponse.d.ts | 6 + .../types/walletrpc/ReleaseOutputRequest.d.ts | 13 + .../walletrpc/ReleaseOutputResponse.d.ts | 2 + .../walletrpc/RequiredReserveRequest.d.ts | 6 + .../walletrpc/RequiredReserveResponse.d.ts | 8 + .../types/walletrpc/SendOutputsRequest.d.ts | 20 + .../types/walletrpc/SendOutputsResponse.d.ts | 7 + src/grpc/types/walletrpc/SignPsbtRequest.d.ts | 7 + .../types/walletrpc/SignPsbtResponse.d.ts | 9 + src/grpc/types/walletrpc/TapLeaf.d.ts | 9 + .../types/walletrpc/TapscriptFullTree.d.ts | 10 + .../walletrpc/TapscriptPartialReveal.d.ts | 13 + src/grpc/types/walletrpc/Transaction.d.ts | 9 + src/grpc/types/walletrpc/TxTemplate.d.ts | 18 + src/grpc/types/walletrpc/UtxoLease.d.ts | 21 + src/grpc/types/walletrpc/WalletKit.d.ts | 1338 +++++++ src/grpc/types/walletrpc/WitnessType.d.ts | 16 + src/grpc/types/walletunlocker.d.ts | 247 ++ src/tests/controllers/messageLength.test.ts | 227 +- src/utils/gitinfo.ts | 7 +- src/utils/msg.ts | 10 +- src/utils/proxy.ts | 30 +- src/utils/signer.ts | 37 +- src/utils/wallet.ts | 36 +- tsconfig.grpc_types.json | 11 + 513 files changed, 17700 insertions(+), 1009 deletions(-) create mode 100644 dist/src/grpc/proto.js create mode 100644 dist/src/grpc/proto.js.map create mode 100755 grpc_gen_types.sh create mode 100644 src/grpc/proto.ts create mode 100644 src/grpc/proto.ts.template create mode 100644 src/grpc/types/greenlight.d.ts create mode 100644 src/grpc/types/greenlight/Address.d.ts create mode 100644 src/grpc/types/greenlight/Amount.d.ts create mode 100644 src/grpc/types/greenlight/BitcoinAddress.d.ts create mode 100644 src/grpc/types/greenlight/BtcAddressType.d.ts create mode 100644 src/grpc/types/greenlight/Channel.d.ts create mode 100644 src/grpc/types/greenlight/CloseChannelRequest.d.ts create mode 100644 src/grpc/types/greenlight/CloseChannelResponse.d.ts create mode 100644 src/grpc/types/greenlight/CloseChannelType.d.ts create mode 100644 src/grpc/types/greenlight/Confirmation.d.ts create mode 100644 src/grpc/types/greenlight/ConnectRequest.d.ts create mode 100644 src/grpc/types/greenlight/ConnectResponse.d.ts create mode 100644 src/grpc/types/greenlight/DisconnectRequest.d.ts create mode 100644 src/grpc/types/greenlight/DisconnectResponse.d.ts create mode 100644 src/grpc/types/greenlight/Empty.d.ts create mode 100644 src/grpc/types/greenlight/Feerate.d.ts create mode 100644 src/grpc/types/greenlight/FeeratePreset.d.ts create mode 100644 src/grpc/types/greenlight/FundChannelRequest.d.ts create mode 100644 src/grpc/types/greenlight/FundChannelResponse.d.ts create mode 100644 src/grpc/types/greenlight/GetInfoRequest.d.ts create mode 100644 src/grpc/types/greenlight/GetInfoResponse.d.ts create mode 100644 src/grpc/types/greenlight/Hsm.d.ts create mode 100644 src/grpc/types/greenlight/HsmRequest.d.ts create mode 100644 src/grpc/types/greenlight/HsmRequestContext.d.ts create mode 100644 src/grpc/types/greenlight/HsmResponse.d.ts create mode 100644 src/grpc/types/greenlight/Htlc.d.ts create mode 100644 src/grpc/types/greenlight/IncomingPayment.d.ts create mode 100644 src/grpc/types/greenlight/Invoice.d.ts create mode 100644 src/grpc/types/greenlight/InvoiceIdentifier.d.ts create mode 100644 src/grpc/types/greenlight/InvoiceRequest.d.ts create mode 100644 src/grpc/types/greenlight/InvoiceStatus.d.ts create mode 100644 src/grpc/types/greenlight/KeysendRequest.d.ts create mode 100644 src/grpc/types/greenlight/ListFundsChannel.d.ts create mode 100644 src/grpc/types/greenlight/ListFundsOutput.d.ts create mode 100644 src/grpc/types/greenlight/ListFundsRequest.d.ts create mode 100644 src/grpc/types/greenlight/ListFundsResponse.d.ts create mode 100644 src/grpc/types/greenlight/ListInvoicesRequest.d.ts create mode 100644 src/grpc/types/greenlight/ListInvoicesResponse.d.ts create mode 100644 src/grpc/types/greenlight/ListPaymentsRequest.d.ts create mode 100644 src/grpc/types/greenlight/ListPaymentsResponse.d.ts create mode 100644 src/grpc/types/greenlight/ListPeersRequest.d.ts create mode 100644 src/grpc/types/greenlight/ListPeersResponse.d.ts create mode 100644 src/grpc/types/greenlight/NetAddressType.d.ts create mode 100644 src/grpc/types/greenlight/NewAddrRequest.d.ts create mode 100644 src/grpc/types/greenlight/NewAddrResponse.d.ts create mode 100644 src/grpc/types/greenlight/Node.d.ts create mode 100644 src/grpc/types/greenlight/OffChainPayment.d.ts create mode 100644 src/grpc/types/greenlight/Outpoint.d.ts create mode 100644 src/grpc/types/greenlight/OutputStatus.d.ts create mode 100644 src/grpc/types/greenlight/PayRequest.d.ts create mode 100644 src/grpc/types/greenlight/PayStatus.d.ts create mode 100644 src/grpc/types/greenlight/Payment.d.ts create mode 100644 src/grpc/types/greenlight/PaymentIdentifier.d.ts create mode 100644 src/grpc/types/greenlight/Peer.d.ts create mode 100644 src/grpc/types/greenlight/Routehint.d.ts create mode 100644 src/grpc/types/greenlight/RoutehintHop.d.ts create mode 100644 src/grpc/types/greenlight/StopRequest.d.ts create mode 100644 src/grpc/types/greenlight/StopResponse.d.ts create mode 100644 src/grpc/types/greenlight/StreamIncomingFilter.d.ts create mode 100644 src/grpc/types/greenlight/Timeout.d.ts create mode 100644 src/grpc/types/greenlight/TlvField.d.ts create mode 100644 src/grpc/types/greenlight/WithdrawRequest.d.ts create mode 100644 src/grpc/types/greenlight/WithdrawResponse.d.ts create mode 100644 src/grpc/types/lightning.d.ts create mode 100644 src/grpc/types/lnrpc/AMP.d.ts create mode 100644 src/grpc/types/lnrpc/AMPInvoiceState.d.ts create mode 100644 src/grpc/types/lnrpc/AMPRecord.d.ts create mode 100644 src/grpc/types/lnrpc/AbandonChannelRequest.d.ts create mode 100644 src/grpc/types/lnrpc/AbandonChannelResponse.d.ts create mode 100644 src/grpc/types/lnrpc/AddInvoiceResponse.d.ts create mode 100644 src/grpc/types/lnrpc/AddressType.d.ts create mode 100644 src/grpc/types/lnrpc/AliasMap.d.ts create mode 100644 src/grpc/types/lnrpc/Amount.d.ts create mode 100644 src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts create mode 100644 src/grpc/types/lnrpc/BakeMacaroonResponse.d.ts create mode 100644 src/grpc/types/lnrpc/BatchOpenChannel.d.ts create mode 100644 src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts create mode 100644 src/grpc/types/lnrpc/BatchOpenChannelResponse.d.ts create mode 100644 src/grpc/types/lnrpc/Chain.d.ts create mode 100644 src/grpc/types/lnrpc/ChanBackupExportRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts create mode 100644 src/grpc/types/lnrpc/ChanInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ChanPointShim.d.ts create mode 100644 src/grpc/types/lnrpc/ChangePasswordRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ChangePasswordResponse.d.ts create mode 100644 src/grpc/types/lnrpc/Channel.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelAcceptRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelAcceptResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelBackup.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelBackupSubscription.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelBackups.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelBalanceRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelCloseSummary.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelConstraints.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelEdge.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelEventSubscription.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelEventUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelFeeReport.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelGraph.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelGraphRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelPoint.d.ts create mode 100644 src/grpc/types/lnrpc/ChannelUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/CheckMacPermRequest.d.ts create mode 100644 src/grpc/types/lnrpc/CheckMacPermResponse.d.ts create mode 100644 src/grpc/types/lnrpc/CloseChannelRequest.d.ts create mode 100644 src/grpc/types/lnrpc/CloseStatusUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ClosedChannelsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ClosedChannelsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/CommitmentType.d.ts create mode 100644 src/grpc/types/lnrpc/ConfirmationUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/ConnectPeerRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ConnectPeerResponse.d.ts create mode 100644 src/grpc/types/lnrpc/CustomMessage.d.ts create mode 100644 src/grpc/types/lnrpc/DebugLevelRequest.d.ts create mode 100644 src/grpc/types/lnrpc/DebugLevelResponse.d.ts create mode 100644 src/grpc/types/lnrpc/DeleteAllPaymentsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/DeleteAllPaymentsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts create mode 100644 src/grpc/types/lnrpc/DeleteMacaroonIDResponse.d.ts create mode 100644 src/grpc/types/lnrpc/DeletePaymentRequest.d.ts create mode 100644 src/grpc/types/lnrpc/DeletePaymentResponse.d.ts create mode 100644 src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts create mode 100644 src/grpc/types/lnrpc/DisconnectPeerResponse.d.ts create mode 100644 src/grpc/types/lnrpc/EdgeLocator.d.ts create mode 100644 src/grpc/types/lnrpc/EstimateFeeRequest.d.ts create mode 100644 src/grpc/types/lnrpc/EstimateFeeResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ExportChannelBackupRequest.d.ts create mode 100644 src/grpc/types/lnrpc/FailedUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/Failure.d.ts create mode 100644 src/grpc/types/lnrpc/Feature.d.ts create mode 100644 src/grpc/types/lnrpc/FeatureBit.d.ts create mode 100644 src/grpc/types/lnrpc/FeeLimit.d.ts create mode 100644 src/grpc/types/lnrpc/FeeReportRequest.d.ts create mode 100644 src/grpc/types/lnrpc/FeeReportResponse.d.ts create mode 100644 src/grpc/types/lnrpc/FloatMetric.d.ts create mode 100644 src/grpc/types/lnrpc/ForwardingEvent.d.ts create mode 100644 src/grpc/types/lnrpc/ForwardingHistoryRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts create mode 100644 src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts create mode 100644 src/grpc/types/lnrpc/FundingPsbtVerify.d.ts create mode 100644 src/grpc/types/lnrpc/FundingShim.d.ts create mode 100644 src/grpc/types/lnrpc/FundingShimCancel.d.ts create mode 100644 src/grpc/types/lnrpc/FundingStateStepResp.d.ts create mode 100644 src/grpc/types/lnrpc/FundingTransitionMsg.d.ts create mode 100644 src/grpc/types/lnrpc/GenSeedRequest.d.ts create mode 100644 src/grpc/types/lnrpc/GenSeedResponse.d.ts create mode 100644 src/grpc/types/lnrpc/GetInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc/GetInfoResponse.d.ts create mode 100644 src/grpc/types/lnrpc/GetRecoveryInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts create mode 100644 src/grpc/types/lnrpc/GetTransactionsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/GraphTopologySubscription.d.ts create mode 100644 src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/HTLC.d.ts create mode 100644 src/grpc/types/lnrpc/HTLCAttempt.d.ts create mode 100644 src/grpc/types/lnrpc/Hop.d.ts create mode 100644 src/grpc/types/lnrpc/HopHint.d.ts create mode 100644 src/grpc/types/lnrpc/InitWalletRequest.d.ts create mode 100644 src/grpc/types/lnrpc/InitWalletResponse.d.ts create mode 100644 src/grpc/types/lnrpc/Initiator.d.ts create mode 100644 src/grpc/types/lnrpc/InterceptFeedback.d.ts create mode 100644 src/grpc/types/lnrpc/Invoice.d.ts create mode 100644 src/grpc/types/lnrpc/InvoiceHTLC.d.ts create mode 100644 src/grpc/types/lnrpc/InvoiceHTLCState.d.ts create mode 100644 src/grpc/types/lnrpc/InvoiceSubscription.d.ts create mode 100644 src/grpc/types/lnrpc/KeyDescriptor.d.ts create mode 100644 src/grpc/types/lnrpc/KeyLocator.d.ts create mode 100644 src/grpc/types/lnrpc/Lightning.d.ts create mode 100644 src/grpc/types/lnrpc/LightningAddress.d.ts create mode 100644 src/grpc/types/lnrpc/LightningNode.d.ts create mode 100644 src/grpc/types/lnrpc/ListAliasesRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListAliasesResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListChannelsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListChannelsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListInvoiceRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListInvoiceResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListMacaroonIDsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListPaymentsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListPaymentsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListPeersRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListPeersResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListPermissionsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListPermissionsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ListUnspentRequest.d.ts create mode 100644 src/grpc/types/lnrpc/ListUnspentResponse.d.ts create mode 100644 src/grpc/types/lnrpc/MPPRecord.d.ts create mode 100644 src/grpc/types/lnrpc/MacaroonId.d.ts create mode 100644 src/grpc/types/lnrpc/MacaroonPermission.d.ts create mode 100644 src/grpc/types/lnrpc/MacaroonPermissionList.d.ts create mode 100644 src/grpc/types/lnrpc/MiddlewareRegistration.d.ts create mode 100644 src/grpc/types/lnrpc/MultiChanBackup.d.ts create mode 100644 src/grpc/types/lnrpc/NetworkInfo.d.ts create mode 100644 src/grpc/types/lnrpc/NetworkInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc/NewAddressRequest.d.ts create mode 100644 src/grpc/types/lnrpc/NewAddressResponse.d.ts create mode 100644 src/grpc/types/lnrpc/NodeAddress.d.ts create mode 100644 src/grpc/types/lnrpc/NodeInfo.d.ts create mode 100644 src/grpc/types/lnrpc/NodeInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc/NodeMetricType.d.ts create mode 100644 src/grpc/types/lnrpc/NodeMetricsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/NodeMetricsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/NodePair.d.ts create mode 100644 src/grpc/types/lnrpc/NodeUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/Op.d.ts create mode 100644 src/grpc/types/lnrpc/OpenChannelRequest.d.ts create mode 100644 src/grpc/types/lnrpc/OpenStatusUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/OutPoint.d.ts create mode 100644 src/grpc/types/lnrpc/OutputDetail.d.ts create mode 100644 src/grpc/types/lnrpc/OutputScriptType.d.ts create mode 100644 src/grpc/types/lnrpc/PayReq.d.ts create mode 100644 src/grpc/types/lnrpc/PayReqString.d.ts create mode 100644 src/grpc/types/lnrpc/Payment.d.ts create mode 100644 src/grpc/types/lnrpc/PaymentFailureReason.d.ts create mode 100644 src/grpc/types/lnrpc/PaymentHash.d.ts create mode 100644 src/grpc/types/lnrpc/Peer.d.ts create mode 100644 src/grpc/types/lnrpc/PeerEvent.d.ts create mode 100644 src/grpc/types/lnrpc/PeerEventSubscription.d.ts create mode 100644 src/grpc/types/lnrpc/PendingChannelsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/PendingChannelsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/PendingHTLC.d.ts create mode 100644 src/grpc/types/lnrpc/PendingUpdate.d.ts create mode 100644 src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts create mode 100644 src/grpc/types/lnrpc/PolicyUpdateResponse.d.ts create mode 100644 src/grpc/types/lnrpc/PreviousOutPoint.d.ts create mode 100644 src/grpc/types/lnrpc/PsbtShim.d.ts create mode 100644 src/grpc/types/lnrpc/QueryRoutesRequest.d.ts create mode 100644 src/grpc/types/lnrpc/QueryRoutesResponse.d.ts create mode 100644 src/grpc/types/lnrpc/RPCMessage.d.ts create mode 100644 src/grpc/types/lnrpc/RPCMiddlewareRequest.d.ts create mode 100644 src/grpc/types/lnrpc/RPCMiddlewareResponse.d.ts create mode 100644 src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts create mode 100644 src/grpc/types/lnrpc/Resolution.d.ts create mode 100644 src/grpc/types/lnrpc/ResolutionOutcome.d.ts create mode 100644 src/grpc/types/lnrpc/ResolutionType.d.ts create mode 100644 src/grpc/types/lnrpc/RestoreBackupResponse.d.ts create mode 100644 src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts create mode 100644 src/grpc/types/lnrpc/Route.d.ts create mode 100644 src/grpc/types/lnrpc/RouteHint.d.ts create mode 100644 src/grpc/types/lnrpc/RoutingPolicy.d.ts create mode 100644 src/grpc/types/lnrpc/SendCoinsRequest.d.ts create mode 100644 src/grpc/types/lnrpc/SendCoinsResponse.d.ts create mode 100644 src/grpc/types/lnrpc/SendCustomMessageRequest.d.ts create mode 100644 src/grpc/types/lnrpc/SendCustomMessageResponse.d.ts create mode 100644 src/grpc/types/lnrpc/SendManyRequest.d.ts create mode 100644 src/grpc/types/lnrpc/SendManyResponse.d.ts create mode 100644 src/grpc/types/lnrpc/SendRequest.d.ts create mode 100644 src/grpc/types/lnrpc/SendResponse.d.ts create mode 100644 src/grpc/types/lnrpc/SendToRouteRequest.d.ts create mode 100644 src/grpc/types/lnrpc/SetID.d.ts create mode 100644 src/grpc/types/lnrpc/SignMessageRequest.d.ts create mode 100644 src/grpc/types/lnrpc/SignMessageResponse.d.ts create mode 100644 src/grpc/types/lnrpc/StopRequest.d.ts create mode 100644 src/grpc/types/lnrpc/StopResponse.d.ts create mode 100644 src/grpc/types/lnrpc/StreamAuth.d.ts create mode 100644 src/grpc/types/lnrpc/SubscribeCustomMessagesRequest.d.ts create mode 100644 src/grpc/types/lnrpc/TimestampedError.d.ts create mode 100644 src/grpc/types/lnrpc/Transaction.d.ts create mode 100644 src/grpc/types/lnrpc/TransactionDetails.d.ts create mode 100644 src/grpc/types/lnrpc/UnlockWalletRequest.d.ts create mode 100644 src/grpc/types/lnrpc/UnlockWalletResponse.d.ts create mode 100644 src/grpc/types/lnrpc/UpdateFailure.d.ts create mode 100644 src/grpc/types/lnrpc/Utxo.d.ts create mode 100644 src/grpc/types/lnrpc/VerifyChanBackupResponse.d.ts create mode 100644 src/grpc/types/lnrpc/VerifyMessageRequest.d.ts create mode 100644 src/grpc/types/lnrpc/VerifyMessageResponse.d.ts create mode 100644 src/grpc/types/lnrpc/WalletAccountBalance.d.ts create mode 100644 src/grpc/types/lnrpc/WalletBalanceRequest.d.ts create mode 100644 src/grpc/types/lnrpc/WalletBalanceResponse.d.ts create mode 100644 src/grpc/types/lnrpc/WalletUnlocker.d.ts create mode 100644 src/grpc/types/lnrpc/WatchOnly.d.ts create mode 100644 src/grpc/types/lnrpc/WatchOnlyAccount.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/AddInvoiceResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Amount.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Chain.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ChanInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Channel.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ChannelBalanceRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ChannelBalanceResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ChannelConstraints.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/CommitmentType.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Failure.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Feature.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/FeatureBit.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/FeeLimit.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/GetInfoRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/GetInfoResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/HTLC.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/HTLCAttempt.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Hop.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/HopHint.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Invoice.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/InvoiceHTLCState.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/InvoiceSubscription.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Lightning.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/LightningAddress.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ListChannelsRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/ListChannelsResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/MPPRecord.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/NodePair.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/PayReq.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/PayReqString.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Payment.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/PaymentFailureReason.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/PaymentHash.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/QueryRoutesRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/QueryRoutesResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Route.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/RouteHint.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/SendRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/SendResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/SignMessageRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/SignMessageResponse.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/VerifyMessageRequest.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/VerifyMessageResponse.d.ts create mode 100644 src/grpc/types/router.d.ts create mode 100644 src/grpc/types/routerrpc/BuildRouteRequest.d.ts create mode 100644 src/grpc/types/routerrpc/BuildRouteResponse.d.ts create mode 100644 src/grpc/types/routerrpc/ChanStatusAction.d.ts create mode 100644 src/grpc/types/routerrpc/CircuitKey.d.ts create mode 100644 src/grpc/types/routerrpc/FailureDetail.d.ts create mode 100644 src/grpc/types/routerrpc/ForwardEvent.d.ts create mode 100644 src/grpc/types/routerrpc/ForwardFailEvent.d.ts create mode 100644 src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts create mode 100644 src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts create mode 100644 src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts create mode 100644 src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts create mode 100644 src/grpc/types/routerrpc/HtlcEvent.d.ts create mode 100644 src/grpc/types/routerrpc/HtlcInfo.d.ts create mode 100644 src/grpc/types/routerrpc/LinkFailEvent.d.ts create mode 100644 src/grpc/types/routerrpc/MissionControlConfig.d.ts create mode 100644 src/grpc/types/routerrpc/PairData.d.ts create mode 100644 src/grpc/types/routerrpc/PairHistory.d.ts create mode 100644 src/grpc/types/routerrpc/PaymentState.d.ts create mode 100644 src/grpc/types/routerrpc/PaymentStatus.d.ts create mode 100644 src/grpc/types/routerrpc/QueryMissionControlRequest.d.ts create mode 100644 src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts create mode 100644 src/grpc/types/routerrpc/QueryProbabilityRequest.d.ts create mode 100644 src/grpc/types/routerrpc/QueryProbabilityResponse.d.ts create mode 100644 src/grpc/types/routerrpc/ResetMissionControlRequest.d.ts create mode 100644 src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts create mode 100644 src/grpc/types/routerrpc/ResolveHoldForwardAction.d.ts create mode 100644 src/grpc/types/routerrpc/RouteFeeRequest.d.ts create mode 100644 src/grpc/types/routerrpc/RouteFeeResponse.d.ts create mode 100644 src/grpc/types/routerrpc/Router.d.ts create mode 100644 src/grpc/types/routerrpc/SendPaymentRequest.d.ts create mode 100644 src/grpc/types/routerrpc/SendToRouteRequest.d.ts create mode 100644 src/grpc/types/routerrpc/SendToRouteResponse.d.ts create mode 100644 src/grpc/types/routerrpc/SetMissionControlConfigRequest.d.ts create mode 100644 src/grpc/types/routerrpc/SetMissionControlConfigResponse.d.ts create mode 100644 src/grpc/types/routerrpc/SettleEvent.d.ts create mode 100644 src/grpc/types/routerrpc/SubscribeHtlcEventsRequest.d.ts create mode 100644 src/grpc/types/routerrpc/TrackPaymentRequest.d.ts create mode 100644 src/grpc/types/routerrpc/UpdateChanStatusRequest.d.ts create mode 100644 src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts create mode 100644 src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts create mode 100644 src/grpc/types/routerrpc/XImportMissionControlResponse.d.ts create mode 100644 src/grpc/types/rpc_proxy.d.ts create mode 100644 src/grpc/types/scheduler.d.ts create mode 100644 src/grpc/types/scheduler/ChallengeRequest.d.ts create mode 100644 src/grpc/types/scheduler/ChallengeResponse.d.ts create mode 100644 src/grpc/types/scheduler/ChallengeScope.d.ts create mode 100644 src/grpc/types/scheduler/NodeInfoRequest.d.ts create mode 100644 src/grpc/types/scheduler/NodeInfoResponse.d.ts create mode 100644 src/grpc/types/scheduler/RecoveryRequest.d.ts create mode 100644 src/grpc/types/scheduler/RecoveryResponse.d.ts create mode 100644 src/grpc/types/scheduler/RegistrationRequest.d.ts create mode 100644 src/grpc/types/scheduler/RegistrationResponse.d.ts create mode 100644 src/grpc/types/scheduler/ScheduleRequest.d.ts create mode 100644 src/grpc/types/scheduler/Scheduler.d.ts create mode 100644 src/grpc/types/signer.d.ts create mode 100644 src/grpc/types/signrpc/InputScript.d.ts create mode 100644 src/grpc/types/signrpc/InputScriptResp.d.ts create mode 100644 src/grpc/types/signrpc/KeyDescriptor.d.ts create mode 100644 src/grpc/types/signrpc/KeyLocator.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2CleanupRequest.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2CleanupResponse.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2CombineKeysResponse.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2CombineSigRequest.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2CombineSigResponse.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2RegisterNoncesRequest.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2RegisterNoncesResponse.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2SessionRequest.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2SessionResponse.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2SignRequest.d.ts create mode 100644 src/grpc/types/signrpc/MuSig2SignResponse.d.ts create mode 100644 src/grpc/types/signrpc/SharedKeyRequest.d.ts create mode 100644 src/grpc/types/signrpc/SharedKeyResponse.d.ts create mode 100644 src/grpc/types/signrpc/SignDescriptor.d.ts create mode 100644 src/grpc/types/signrpc/SignMessageReq.d.ts create mode 100644 src/grpc/types/signrpc/SignMessageResp.d.ts create mode 100644 src/grpc/types/signrpc/SignMethod.d.ts create mode 100644 src/grpc/types/signrpc/SignReq.d.ts create mode 100644 src/grpc/types/signrpc/SignResp.d.ts create mode 100644 src/grpc/types/signrpc/Signer.d.ts create mode 100644 src/grpc/types/signrpc/TaprootTweakDesc.d.ts create mode 100644 src/grpc/types/signrpc/TweakDesc.d.ts create mode 100644 src/grpc/types/signrpc/TxOut.d.ts create mode 100644 src/grpc/types/signrpc/VerifyMessageReq.d.ts create mode 100644 src/grpc/types/signrpc/VerifyMessageResp.d.ts create mode 100644 src/grpc/types/walletkit.d.ts create mode 100644 src/grpc/types/walletrpc/Account.d.ts create mode 100644 src/grpc/types/walletrpc/AccountWithAddresses.d.ts create mode 100644 src/grpc/types/walletrpc/AddrRequest.d.ts create mode 100644 src/grpc/types/walletrpc/AddrResponse.d.ts create mode 100644 src/grpc/types/walletrpc/AddressProperty.d.ts create mode 100644 src/grpc/types/walletrpc/AddressType.d.ts create mode 100644 src/grpc/types/walletrpc/BumpFeeRequest.d.ts create mode 100644 src/grpc/types/walletrpc/BumpFeeResponse.d.ts create mode 100644 src/grpc/types/walletrpc/EstimateFeeRequest.d.ts create mode 100644 src/grpc/types/walletrpc/EstimateFeeResponse.d.ts create mode 100644 src/grpc/types/walletrpc/FinalizePsbtRequest.d.ts create mode 100644 src/grpc/types/walletrpc/FinalizePsbtResponse.d.ts create mode 100644 src/grpc/types/walletrpc/FundPsbtRequest.d.ts create mode 100644 src/grpc/types/walletrpc/FundPsbtResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ImportAccountRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ImportAccountResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ImportPublicKeyRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ImportTapscriptResponse.d.ts create mode 100644 src/grpc/types/walletrpc/KeyReq.d.ts create mode 100644 src/grpc/types/walletrpc/LabelTransactionRequest.d.ts create mode 100644 src/grpc/types/walletrpc/LabelTransactionResponse.d.ts create mode 100644 src/grpc/types/walletrpc/LeaseOutputRequest.d.ts create mode 100644 src/grpc/types/walletrpc/LeaseOutputResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ListAccountsRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ListAccountsResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ListAddressesRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ListAddressesResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ListLeasesRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ListLeasesResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ListSweepsRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ListSweepsResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ListUnspentRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ListUnspentResponse.d.ts create mode 100644 src/grpc/types/walletrpc/PendingSweep.d.ts create mode 100644 src/grpc/types/walletrpc/PendingSweepsRequest.d.ts create mode 100644 src/grpc/types/walletrpc/PendingSweepsResponse.d.ts create mode 100644 src/grpc/types/walletrpc/PublishResponse.d.ts create mode 100644 src/grpc/types/walletrpc/ReleaseOutputRequest.d.ts create mode 100644 src/grpc/types/walletrpc/ReleaseOutputResponse.d.ts create mode 100644 src/grpc/types/walletrpc/RequiredReserveRequest.d.ts create mode 100644 src/grpc/types/walletrpc/RequiredReserveResponse.d.ts create mode 100644 src/grpc/types/walletrpc/SendOutputsRequest.d.ts create mode 100644 src/grpc/types/walletrpc/SendOutputsResponse.d.ts create mode 100644 src/grpc/types/walletrpc/SignPsbtRequest.d.ts create mode 100644 src/grpc/types/walletrpc/SignPsbtResponse.d.ts create mode 100644 src/grpc/types/walletrpc/TapLeaf.d.ts create mode 100644 src/grpc/types/walletrpc/TapscriptFullTree.d.ts create mode 100644 src/grpc/types/walletrpc/TapscriptPartialReveal.d.ts create mode 100644 src/grpc/types/walletrpc/Transaction.d.ts create mode 100644 src/grpc/types/walletrpc/TxTemplate.d.ts create mode 100644 src/grpc/types/walletrpc/UtxoLease.d.ts create mode 100644 src/grpc/types/walletrpc/WalletKit.d.ts create mode 100644 src/grpc/types/walletrpc/WitnessType.d.ts create mode 100644 src/grpc/types/walletunlocker.d.ts create mode 100644 tsconfig.grpc_types.json diff --git a/.github/workflows/update_proto.yml b/.github/workflows/update_proto.yml index deb1ace57..9bc34832d 100644 --- a/.github/workflows/update_proto.yml +++ b/.github/workflows/update_proto.yml @@ -1,7 +1,7 @@ name: Update proto files on: schedule: - - cron: "0 0 1 * *" + - cron: '0 0 1 * *' jobs: update_proto: @@ -19,8 +19,14 @@ jobs: run: | find lnd/lnrpc -name '*.proto' -exec bash -c 'test -e proto/`basename {}` && cp {} proto' \; sed -i 's/^import.*\//import "/' proto/* + git add proto + - name: update generated types + run: | + bash grpc_gen_types.sh + git add src/grpc/types + - name: commit changes + run: | git config user.name 'Github Actions' git config user.email github-actions@github.com - git add proto - git commit -m "Update proto files" || echo -n + git commit -m 'Update proto files and types' || echo -n git push diff --git a/dist/src/controllers/invoices.js.map b/dist/src/controllers/invoices.js.map index 16203a4d0..51682a3b0 100644 --- a/dist/src/controllers/invoices.js.map +++ b/dist/src/controllers/invoices.js.map @@ -1 +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AM;KACP,CAAA;IACD,MAAM,OAAO,GAAG,SAAS,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK,CAAA;IACxD,IAAI,OAAO,EAAE;QACX,GAAG,CAAC,WAAW,GAAG,YAAY,CAAA;QAC9B,GAAG,CAAC,SAAS,GAAG,gBAAgB,CAAA;KACjC;IACD,MAAM,OAAO,GAAkB,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,MAAM,CACzD,GAAG,CACJ,CAAkB,CAAA;IACnB,qBAAY,CAAC,IAAI,CAAC,oCAAoC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAA;IAEnE,MAAM,CAAC,QAAQ,CACb;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC;KACzD,EACD,MAAM,CACP,CAAA;IAED,IAAA,sBAAgB,EAAC,IAAI,EAAE,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;IAEzE,IAAA,gCAAgB,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;AACrE,CAAC,CAAA,CAAA;AApEY,QAAA,cAAc,kBAoE1B"} \ No newline at end of file +{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/controllers/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA6D;AAC7D,+CAA8C;AAE9C,0CAAyC;AACzC,2CAA0C;AAC1C,4CAAsD;AACtD,sCAAqC;AACrC,gCAAyC;AACzC,sCAA+C;AAC/C,mDAAkD;AAClD,sCAAqC;AAErC,oCAAmC;AACnC,4CAAoC;AACpC,wCAAuC;AACvC,4CAA8C;AAK9C,SAAS,oBAAoB,CAAC,CAAS;IACrC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,O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,CACb;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC;KACzD,EACD,MAAM,CACP,CAAA;IAED,IAAA,sBAAgB,EAAC,IAAI,EAAE,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;IAEzE,IAAA,gCAAgB,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;AACrE,CAAC,CAAA,CAAA;AApEY,QAAA,cAAc,kBAoE1B"} \ No newline at end of file diff --git a/dist/src/controllers/queries.js b/dist/src/controllers/queries.js index fb0a00ed0..c1328a457 100644 --- a/dist/src/controllers/queries.js +++ b/dist/src/controllers/queries.js @@ -93,8 +93,8 @@ function getPendingAccountings() { id: a.id, pubkey: a.pubkey, onchainAddress: utxo.address, - amount: utxo.amount_sat, - confirmations: utxo.confirmations, + amount: parseInt(utxo.amount_sat), + confirmations: parseInt(utxo.confirmations), sourceApp: a.sourceApp, date: a.date, onchainTxid: onchainTxid, @@ -143,11 +143,17 @@ function genChannelAndConfirmAccounting(acc) { push_sat: 0, sat_per_byte, }); + if (!r) { + return; + } logger_1.sphinxLogger.info(`[WATCH]=> CHANNEL OPENED! ${r}`); - const fundingTxidRev = Buffer.from(r.funding_txid_bytes).toString('hex'); - const fundingTxid = fundingTxidRev.match(/.{2}/g) - .reverse() - .join(''); + let fundingTxid; + if (r.funding_txid === 'funding_txid_str') { + fundingTxid = r.funding_txid_str; + } + else { + fundingTxid = r.funding_txid_bytes.reverse().toString('hex'); + } yield models_1.models.Accounting.update({ status: constants_1.default.statuses.received, fundingTxid: fundingTxid, diff --git a/dist/src/controllers/queries.js.map b/dist/src/controllers/queries.js.map index 1cddb78db..ad9997664 100644 --- a/dist/src/controllers/queries.js.map +++ b/dist/src/controllers/queries.js.map @@ -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AAA"} \ No newline at end of file +{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/controllers/queries.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA+C;AAC/C,sCAAgE;AAChE,sCAAqC;AACrC,4CAAoC;AACpC,oCAAmC;AACnC,+CAA8C;AAC9C,4CAAmD;AACnD,2CAA0C;AAC1C,yCAA8B;AAC9B,2CAA8B;AAC9B,sCAAqC;AACrC,0CAAwC;AACxC,4CAAuD;AAWvD,MAAM,OAAO,GAA2B,EAAE,CAAA;AAE1C,MAAM,SAAS,GAAG,EAAE,CAAA;AAEpB,IAAI,UAAU,GAAG,EAAE,CAAA;AAEnB,MAAM,OAAO,GAAG,iCAAiC,CAAA;AACjD,SAAsB,cAAc;;QAClC,IAAI;YACF,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,OAAO,GAAG,cAAc,CAAC,CAAA;YAC/C,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE;gBACjB,6CAA6C;gBAC7C,UAAU,GAAG,CAAC,CAAC,MAAM,CAAA;gBACrB,OAAO,CAAC,CAAC,MAAM,CAAA;aAChB;SACF;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,OAAO,CAClB,qDAAqD,CAAC,EAAE,CACzD,CAAA;SACF;QACD,OAAO,EAAE,CAAA;IACX,CAAC;CAAA;AAfD,wCAeC;AACD,cAAc,EAAE,CAAA;AAEhB;;;;;;;;;;;;;EAaE;AAEF,SAAe,sBAAsB;;QACnC,MAAM,WAAW,GAAuB,CAAC,MAAM,eAAM,CAAC,UAAU,CAAC,OAAO,CAAC;YACvE,KAAK,EAAE;gBACL,MAAM,EAAE,mBAAS,CAAC,QAAQ,CAAC,QAAQ;aACpC;SACF,CAAC,CAAuB,CAAA;QACzB,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAA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D,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;SAC3C;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/crypto/rsa.js b/dist/src/crypto/rsa.js index 09fee566a..e216af055 100644 --- a/dist/src/crypto/rsa.js +++ b/dist/src/crypto/rsa.js @@ -45,7 +45,7 @@ function decrypt(privateKey, enc) { } exports.decrypt = decrypt; function genKeys() { - return new Promise(resolve => { + return new Promise((resolve) => { crypto.generateKeyPair('rsa', { modulusLength: 2048, }, (err, publicKey, privKey) => { @@ -101,6 +101,6 @@ const cert = { unpub: (key) => key.replace(beginPub, '').replace(endPub, '').trim(), unpriv: (key) => key.replace(beginPriv, '').replace(endPriv, '').trim(), pub: (key) => beginPub + '\n' + key + '\n' + endPub, - priv: (key) => beginPriv + '\n' + key + '\n' + endPriv + priv: (key) => beginPriv + '\n' + key + '\n' + endPriv, }; //# sourceMappingURL=rsa.js.map \ No newline at end of file diff --git a/dist/src/crypto/rsa.js.map b/dist/src/crypto/rsa.js.map index 8693bd86f..d069c8be0 100644 --- a/dist/src/crypto/rsa.js.map +++ b/dist/src/crypto/rsa.js.map @@ -1 +1 @@ -{"version":3,"file":"rsa.js","sourceRoot":"","sources":["../../../src/crypto/rsa.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAEhC,MAAM,UAAU,GAAG,GAAG,CAAA;AACtB,MAAM,cAAc,GAAG,UAAU,GAAG,EAAE,CAAA,CAAC,0BAA0B;AAOjE,SAAgB,OAAO,CAAC,GAAW,EAAE,GAAW;IAC9C,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAC5B,IAAI,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAC9B,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,cAAc,CAAC,CAAA;QAChD,MA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OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,KAAK,GAAG,EAAE,CAAC,CAAA;IACxC,CAAC,CACF,CAAA;AACH,CAAC;AA3BD,0BA2BC;AAED,MAAM,QAAQ,GAAG,gCAAgC,CAAA;AACjD,MAAM,MAAM,GAAG,8BAA8B,CAAA;AAC7C,MAAM,SAAS,GAAG,iCAAiC,CAAA;AACnD,MAAM,OAAO,GAAG,+BAA+B,CAAA;AAE/C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,CAAC,GAAW,EAAU,EAAE,CAC7B,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;IACtD,MAAM,EAAE,CAAC,GAAW,EAAU,EAAE,CAC9B,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;IACxD,GAAG,EAAE,CAAC,GAAoB,EAAU,EAAE,CAAC,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM;IAC5E,IAAI,EAAE,CAAC,GAAoB,EAAU,EAAE,CACrC,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,OAAO;CAC1C,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/greenlight.js b/dist/src/grpc/greenlight.js index 100793cb7..e6788acd2 100644 --- a/dist/src/grpc/greenlight.js +++ b/dist/src/grpc/greenlight.js @@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.streamHsmRequests = exports.recover = exports.register = exports.sign_challenge = exports.get_challenge = exports.schedule = exports.startGreenlightInit = exports.get_greenlight_grpc_uri = exports.keepalive = exports.initGreenlight = void 0; const fs = require("fs"); -const grpc = require("grpc"); +const grpc = require("@grpc/grpc-js"); +const proto_1 = require("./proto"); const libhsmd_1 = require("./libhsmd"); const config_1 = require("../utils/config"); const ByteBuffer = require("bytebuffer"); @@ -38,7 +39,7 @@ function keepalive() { }, 59000); } exports.keepalive = keepalive; -let schedulerClient = null; +let schedulerClient; const loadSchedulerCredentials = () => { const glCert = fs.readFileSync(config.scheduler_tls_location); const glPriv = fs.readFileSync(config.scheduler_key_location); @@ -47,7 +48,7 @@ const loadSchedulerCredentials = () => { }; function loadScheduler() { // 35.236.110.178:2601 - const descriptor = grpc.load('proto/scheduler.proto'); + const descriptor = (0, proto_1.loadProto)('scheduler'); const scheduler = descriptor.scheduler; const options = { 'grpc.ssl_target_name_override': 'localhost', @@ -106,14 +107,14 @@ function startGreenlightInit() { exports.startGreenlightInit = startGreenlightInit; function schedule(pubkey) { logger_1.sphinxLogger.info('=> Greenlight schedule'); - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { try { const s = loadScheduler(); s.schedule({ node_id: ByteBuffer.fromHex(pubkey), }, (err, response) => { // console.log('=> schedule', err, response); - if (!err) { + if (!err && response) { GREENLIGHT_GRPC_URI = response.grpc_uri; resolve(response); } @@ -125,7 +126,7 @@ function schedule(pubkey) { catch (e) { logger_1.sphinxLogger.error(e); } - })); + }); } exports.schedule = schedule; function recoverGreenlight(gid) { @@ -175,14 +176,14 @@ function registerGreenlight(gid, rootkey, secretPath) { }); } function get_challenge(node_id) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { try { const s = loadScheduler(); s.getChallenge({ node_id: ByteBuffer.fromHex(node_id), scope: 'REGISTER', }, (err, response) => { - if (!err) { + if (!err && response) { resolve(Buffer.from(response.challenge).toString('hex')); } else { @@ -193,7 +194,7 @@ function get_challenge(node_id) { catch (e) { reject(e); } - })); + }); } exports.get_challenge = get_challenge; function sign_challenge(challenge) { @@ -205,7 +206,7 @@ function sign_challenge(challenge) { } exports.sign_challenge = sign_challenge; function register(pubkey, bip32_key, challenge, signature) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { try { const s = loadScheduler(); s.register({ @@ -216,7 +217,7 @@ function register(pubkey, bip32_key, challenge, signature) { signature: ByteBuffer.fromHex(signature), }, (err, response) => { logger_1.sphinxLogger.info(`${err} ${response}`); - if (!err) { + if (!err && response) { resolve(response); } else { @@ -227,11 +228,11 @@ function register(pubkey, bip32_key, challenge, signature) { catch (e) { reject(e); } - })); + }); } exports.register = register; function recover(pubkey, challenge, signature) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { try { const s = loadScheduler(); s.recover({ @@ -240,7 +241,7 @@ function recover(pubkey, challenge, signature) { signature: ByteBuffer.fromHex(signature), }, (err, response) => { logger_1.sphinxLogger.info(`${err} ${response}`); - if (!err) { + if (!err && response) { resolve(response); } else { @@ -251,7 +252,7 @@ function recover(pubkey, challenge, signature) { catch (e) { reject(e); } - })); + }); } exports.recover = recover; function streamHsmRequests() { @@ -275,6 +276,7 @@ function streamHsmRequests() { logger_1.sphinxLogger.info(response.raw.toString('hex')); sig = libhsmd_1.default.Handle(capabilities_bitset, 0, null, response.raw.toString('hex')); } + ; lightning.respondHsmRequest({ request_id: response.request_id, raw: ByteBuffer.fromHex(sig), @@ -294,7 +296,7 @@ function streamHsmRequests() { logger_1.sphinxLogger.info(`[HSMD] Status ${status.code} ${status}`); }); call.on('error', function (err) { - logger_1.sphinxLogger.error(`[HSMD] Error ${err.code}`); + logger_1.sphinxLogger.error(`[HSMD] Error ${err.name} ${err.message}`); }); call.on('end', function () { logger_1.sphinxLogger.info(`[HSMD] Closed stream`); diff --git a/dist/src/grpc/greenlight.js.map b/dist/src/grpc/greenlight.js.map index 93b386762..aada2b69b 100644 --- a/dist/src/grpc/greenlight.js.map +++ b/dist/src/grpc/greenlight.js.map @@ -1 +1 @@ -{"version":3,"file":"greenlight.js","sourceRoot":"","sources":["../../../src/grpc/greenlight.ts"],"names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/dist/src/grpc/interfaces.js b/dist/src/grpc/interfaces.js index bbc1ff483..d99f8ed69 100644 --- a/dist/src/grpc/interfaces.js +++ b/dist/src/grpc/interfaces.js @@ -250,7 +250,10 @@ function subscribeResponse(res) { r.extratlvs.forEach((tlv) => { // console.log("TLV TYPE", tlv.type, typeof tlv.type, `${LND_KEYSEND_KEY}`) // if(tlv.type===`${LND_KEYSEND_KEY}`) is_keysend=true - custom_records[tlv.type] = tlv.value; + custom_records[tlv.type] = + tlv.value instanceof ByteBuffer + ? tlv.value.toBuffer() + : Buffer.from(tlv.value); }); } if (r.label.startsWith('keysend')) diff --git a/dist/src/grpc/interfaces.js.map b/dist/src/grpc/interfaces.js.map index 82cf72c2d..aa8c2cd13 100644 --- a/dist/src/grpc/interfaces.js.map +++ b/dist/src/grpc/interfaces.js.map @@ -1 +1 @@ -{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/grpc/interfaces.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,yCAAwC;AACxC,iCAAgC;AAChC,2CAA6C;AAC7C,6BAA4B;AAE5B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,MAAM,GAAG,MAAM,CAAC,kBAAkB,KAAK,KAAK,CAAA;AAClD,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,KAAK,YAAY,CAAA;AA+ChE,SAAgB,eAAe,CAC7B,GAAgD;IAEhD,IAAI,MAAM,EAAE;QACV,MAAM;QACN,OAAO,GAAsB,CAAA;KAC9B;IACD,IAAI,aAAa,EAAE;QACjB,aAAa;QACb,MAAM,CAAC,GAAG,GAAgC,CAAA;QAC1C,OAAwB;YACtB,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;YACvD,OAAO,EAAE,CAAC,CAAC,OAAO;YAClB,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,KAAK,EAAE,CAAC,C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CAAC;QAAE,OAAO,EAAE,CAAA;IAEhC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IACzD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;IAE9C,OAAO,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAA;AAC1D,CAAC"} \ No newline at end of file diff --git a/dist/src/grpc/lightning.js b/dist/src/grpc/lightning.js index 4055bc1cb..25ce96396 100644 --- a/dist/src/grpc/lightning.js +++ b/dist/src/grpc/lightning.js @@ -9,10 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getChanInfo = exports.channelBalance = exports.complexBalances = exports.openChannel = exports.connectPeer = exports.pendingChannels = exports.listChannels = exports.listPeers = exports.addInvoice = exports.getInfo = exports.verifyAscii = exports.verifyMessage = exports.verifyBytes = exports.signBuffer = exports.signMessage = exports.listAllPaymentsFull = exports.listPaymentsPaginated = exports.listAllPayments = exports.listAllInvoices = exports.listInvoices = exports.signAscii = exports.keysendMessage = exports.loadRouter = exports.keysend = exports.sendPayment = exports.newAddress = exports.UNUSED_NESTED_PUBKEY_HASH = exports.UNUSED_WITNESS_PUBKEY_HASH = exports.NESTED_PUBKEY_HASH = exports.WITNESS_PUBKEY_HASH = exports.queryRoute = exports.setLock = exports.getLock = exports.getHeaders = exports.unlockWallet = exports.loadWalletUnlocker = exports.loadLightning = exports.loadCredentials = exports.SPHINX_CUSTOM_RECORD_KEY = exports.LND_KEYSEND_KEY = void 0; -const ByteBuffer = require("bytebuffer"); +exports.getChanInfo = exports.channelBalance = exports.complexBalances = exports.openChannel = exports.connectPeer = exports.pendingChannels = exports.listChannels = exports.listPeers = exports.addInvoice = exports.getInfo = exports.verifyAscii = exports.verifyMessage = exports.verifyBytes = exports.signBuffer = exports.signMessage = exports.listAllPaymentsFull = exports.listPaymentsPaginated = exports.listAllPayments = exports.listAllInvoices = exports.listInvoices = exports.signAscii = exports.keysendMessage = exports.loadRouter = exports.keysend = exports.sendPayment = exports.newAddress = exports.UNUSED_NESTED_PUBKEY_HASH = exports.UNUSED_WITNESS_PUBKEY_HASH = exports.NESTED_PUBKEY_HASH = exports.WITNESS_PUBKEY_HASH = exports.queryRoute = exports.setLock = exports.getLock = exports.getHeaders = exports.unlockWallet = exports.loadWalletUnlocker = exports.loadLightning = exports.loadCredentials = exports.isGL = exports.isLND = exports.SPHINX_CUSTOM_RECORD_KEY = exports.LND_KEYSEND_KEY = void 0; const fs = require("fs"); -const grpc = require("grpc"); +const grpc = require("@grpc/grpc-js"); +const proto_1 = require("./proto"); const helpers_1 = require("../helpers"); const sha = require("js-sha256"); const crypto = require("crypto"); @@ -26,17 +26,25 @@ const zbase32 = require("../utils/zbase32"); const secp256k1 = require("secp256k1"); const libhsmd_1 = require("./libhsmd"); const greenlight_1 = require("./greenlight"); -// var protoLoader = require('@grpc/proto-loader') const config = (0, config_1.loadConfig)(); const LND_IP = config.lnd_ip || 'localhost'; -// const IS_LND = config.lightning_provider === "LND"; +const IS_LND = config.lightning_provider === 'LND'; const IS_GREENLIGHT = config.lightning_provider === 'GREENLIGHT'; exports.LND_KEYSEND_KEY = 5482373484; exports.SPHINX_CUSTOM_RECORD_KEY = 133773310; const FEE_LIMIT_SAT = 10000; -let lightningClient = null; -let walletUnlocker = null; -let routerClient = null; +let lightningClient; +let walletUnlocker; +let routerClient; +// typescript helpers for types +function isLND(client) { + return IS_LND; +} +exports.isLND = isLND; +function isGL(client) { + return IS_GREENLIGHT; +} +exports.isGL = isGL; function loadCredentials(macName) { try { const lndCert = fs.readFileSync(config.tls_location); @@ -65,31 +73,33 @@ function loadLightning(tryProxy, ownerPubkey, noCache) { return __awaiter(this, void 0, void 0, function* () { // only if specified AND available if (tryProxy && (0, proxy_1.isProxy)() && ownerPubkey) { - const pl = yield (0, proxy_1.loadProxyLightning)(ownerPubkey); - return pl; + lightningClient = yield (0, proxy_1.loadProxyLightning)(ownerPubkey); + if (!lightningClient) { + throw new Error('no lightning client'); + } + return lightningClient; } if (lightningClient && !noCache) { return lightningClient; } if (IS_GREENLIGHT) { const credentials = loadGreenlightCredentials(); - const descriptor = grpc.load('proto/greenlight.proto'); + const descriptor = (0, proto_1.loadProto)('greenlight'); const greenlight = descriptor.greenlight; const options = { 'grpc.ssl_target_name_override': 'localhost', }; const uri = (0, greenlight_1.get_greenlight_grpc_uri)().split('//'); - if (!uri[1]) - return; - lightningClient = new greenlight.Node(uri[1], credentials, options); - return lightningClient; + if (!uri[1]) { + throw new Error('no lightning client'); + } + return (lightningClient = new greenlight.Node(uri[1], credentials, options)); } // LND const credentials = loadCredentials(); - const lnrpcDescriptor = grpc.load('proto/lightning.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('lightning'); const lnrpc = lnrpcDescriptor.lnrpc; - lightningClient = new lnrpc.Lightning(LND_IP + ':' + config.lnd_port, credentials); - return lightningClient; + return (lightningClient = new lnrpc.Lightning(LND_IP + ':' + config.lnd_port, credentials)); }); } exports.loadLightning = loadLightning; @@ -100,28 +110,27 @@ function loadWalletUnlocker() { else { try { const credentials = loadCredentials(); - const lnrpcDescriptor = grpc.load('proto/walletunlocker.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('walletunlocker'); const lnrpc = lnrpcDescriptor.lnrpc; walletUnlocker = new lnrpc.WalletUnlocker(LND_IP + ':' + config.lnd_port, credentials); return walletUnlocker; } catch (e) { logger_1.sphinxLogger.error(e); + throw e; } } } exports.loadWalletUnlocker = loadWalletUnlocker; function unlockWallet(pwd) { return new Promise(function (resolve, reject) { - return __awaiter(this, void 0, void 0, function* () { - const wu = yield loadWalletUnlocker(); - wu.unlockWallet({ wallet_password: ByteBuffer.fromUTF8(pwd) }, (err, response) => { - if (err) { - reject(err); - return; - } - resolve(response); - }); + const wu = loadWalletUnlocker(); + wu.unlockWallet({ wallet_password: Buffer.from(pwd, 'utf-8') }, (err) => { + if (err) { + reject(err); + return; + } + resolve(); }); }); } @@ -153,14 +162,14 @@ exports.setLock = setLock; function queryRoute(pub_key, amt, route_hint, ownerPubkey) { return __awaiter(this, void 0, void 0, function* () { logger_1.sphinxLogger.info('queryRoute', logger_1.logging.Lightning); - if (IS_GREENLIGHT) { + const lightning = yield loadLightning(true, ownerPubkey); // try proxy + if (isGL(lightning)) { // shim for now return { success_prob: 1, routes: [], }; } - const lightning = yield loadLightning(true, ownerPubkey); // try proxy return new Promise((resolve, reject) => { const options = { pub_key, amt }; if (route_hint && route_hint.includes(':')) { @@ -173,6 +182,8 @@ function queryRoute(pub_key, amt, route_hint, ownerPubkey) { }, ]; } + // TODO remove any + ; lightning.queryRoutes(options, (err, response) => { if (err) { reject(err); @@ -192,6 +203,8 @@ function newAddress(type = exports.NESTED_PUBKEY_HASH) { return __awaiter(this, void 0, void 0, function* () { const lightning = yield loadLightning(); return new Promise((resolve, reject) => { + // TODO now lnd only + ; lightning.newAddress({ type }, (err, response) => { if (err) { reject(err); @@ -213,13 +226,13 @@ function sendPayment(payment_request, ownerPubkey) { logger_1.sphinxLogger.info('sendPayment', logger_1.logging.Lightning); const lightning = yield loadLightning(true, ownerPubkey); // try proxy return new Promise((resolve, reject) => { - if ((0, proxy_1.isProxy)()) { + if ((0, proxy_1.isProxy)(lightning)) { const opts = { payment_request, fee_limit: { fixed: FEE_LIMIT_SAT }, }; lightning.sendPaymentSync(opts, (err, response) => { - if (err) { + if (err || !response) { reject(err); } else { @@ -233,12 +246,13 @@ function sendPayment(payment_request, ownerPubkey) { }); } else { - if (IS_GREENLIGHT) { + if (isGL(lightning)) { lightning.pay({ bolt11: payment_request, timeout: 12, }, (err, response) => { - if (err == null) { + if (err == null && response) { + // TODO greenlight types resolve(interfaces.keysendResponse(response)); } else { @@ -247,7 +261,7 @@ function sendPayment(payment_request, ownerPubkey) { }); } else { - const call = lightning.sendPayment({ payment_request }); + const call = lightning.sendPayment(); call.on('data', (response) => __awaiter(this, void 0, void 0, function* () { if (response.payment_error) { reject(response.payment_error); @@ -267,30 +281,30 @@ function sendPayment(payment_request, ownerPubkey) { } exports.sendPayment = sendPayment; function keysend(opts, ownerPubkey) { - logger_1.sphinxLogger.info('keysend', logger_1.logging.Lightning); + logger_1.sphinxLogger.info(['keysend', opts.dest], logger_1.logging.Lightning); return new Promise(function (resolve, reject) { return __awaiter(this, void 0, void 0, function* () { try { - const preimage = ByteBuffer.wrap(crypto.randomBytes(32)); + const preimage = crypto.randomBytes(32); const dest_custom_records = { [`${exports.LND_KEYSEND_KEY}`]: preimage, }; if (opts.extra_tlv) { Object.entries(opts.extra_tlv).forEach(([k, v]) => { - dest_custom_records[k] = ByteBuffer.fromUTF8(v); + dest_custom_records[k] = Buffer.from(v, 'utf-8'); }); } const options = { amt: Math.max(opts.amt, constants_1.default.min_sat_amount || 3), final_cltv_delta: 10, - dest: ByteBuffer.fromHex(opts.dest), + dest: Buffer.from(opts.dest, 'hex'), dest_custom_records, - payment_hash: sha.sha256.arrayBuffer(preimage.toBuffer()), + payment_hash: Buffer.from(sha.sha256.arrayBuffer(preimage)), dest_features: [9], }; if (opts.data) { options.dest_custom_records[`${exports.SPHINX_CUSTOM_RECORD_KEY}`] = - ByteBuffer.fromUTF8(opts.data); + Buffer.from(opts.data, 'utf-8'); } // add in route hints if (opts.route_hint && opts.route_hint.includes(':')) { @@ -304,12 +318,12 @@ function keysend(opts, ownerPubkey) { ]; } // sphinx-proxy sendPaymentSync - if ((0, proxy_1.isProxy)()) { + const lightning = yield loadLightning(true, ownerPubkey); // try proxy + if ((0, proxy_1.isProxy)(lightning)) { // console.log("SEND sendPaymentSync", options) options.fee_limit = { fixed: FEE_LIMIT_SAT }; - const lightning = yield loadLightning(true, ownerPubkey); // try proxy lightning.sendPaymentSync(options, (err, response) => { - if (err) { + if (err || !response) { reject(err); } else { @@ -323,12 +337,14 @@ function keysend(opts, ownerPubkey) { }); } else { - if (IS_GREENLIGHT) { - const lightning = yield loadLightning(false, ownerPubkey); - const req = interfaces.keysendRequest(options); + const lightning = yield loadLightning(false, ownerPubkey); + if (isGL(lightning)) { + const req = (interfaces.keysendRequest(options)); // console.log("KEYSEND REQ", JSON.stringify(req)) + // TODO wrong buffer type: Type 'Buf' is not assignable to type 'string | Buffer | Uint8Array | undefined'. lightning.keysend(req, function (err, response) { - if (err == null) { + if (err == null && response) { + // TODO greenlight type resolve(interfaces.keysendResponse(response)); } else { @@ -341,7 +357,7 @@ function keysend(opts, ownerPubkey) { // new sendPayment (with optional route hints) options.fee_limit_sat = FEE_LIMIT_SAT; options.timeout_seconds = 16; - const router = yield loadRouter(); + const router = loadRouter(); const call = router.sendPaymentV2(options); call.on('data', function (payment) { const state = payment.status || payment.state; @@ -383,7 +399,7 @@ function loadRouter() { } else { const credentials = loadCredentials('router.macaroon'); - const descriptor = grpc.load('proto/router.proto'); + const descriptor = (0, proto_1.loadProto)('router'); const router = descriptor.routerrpc; routerClient = new router.Router(LND_IP + ':' + config.lnd_port, credentials); return routerClient; @@ -571,6 +587,7 @@ function signBuffer(msg, ownerPubkey) { logger_1.sphinxLogger.info('signBuffer', logger_1.logging.Lightning); return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { try { + const lightning = yield loadLightning(true, ownerPubkey); // try proxy if (IS_GREENLIGHT) { const pld = interfaces.greenlightSignMessagePayload(msg); const sig = libhsmd_1.default.Handle(1024, 0, null, pld); @@ -584,11 +601,10 @@ function signBuffer(msg, ownerPubkey) { const finalSig = Buffer.concat([finalRecid, sigBytes], 65); resolve(zbase32.encode(finalSig)); } - else { - const lightning = yield loadLightning(true, ownerPubkey); // try proxy + else if (isLND(lightning)) { const options = { msg }; lightning.signMessage(options, function (err, sig) { - if (err || !sig.signature) { + if (err || !sig || !sig.signature) { reject(err); } else { @@ -615,6 +631,7 @@ function verifyMessage(msg, sig, ownerPubkey) { logger_1.sphinxLogger.info('verifyMessage', logger_1.logging.Lightning); return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { try { + const lightning = yield loadLightning(true, ownerPubkey); // try proxy if (IS_GREENLIGHT) { const fullBytes = zbase32.decode(sig); const sigBytes = fullBytes.slice(1); @@ -636,15 +653,14 @@ function verifyMessage(msg, sig, ownerPubkey) { pubkey: recoveredPubkey.toString('hex'), }); } - else { - const lightning = yield loadLightning(true, ownerPubkey); // try proxy - const options = { - msg: ByteBuffer.fromHex(msg), - signature: sig, // zbase32 encoded string - }; - lightning.verifyMessage(options, function (err, res) { + else if (isLND(lightning)) { + // sig is zbase32 encoded + lightning.verifyMessage({ + msg: Buffer.from(msg, 'hex'), + signature: sig, + }, function (err, res) { // console.log(res) - if (err || !res.pubkey) { + if (err || !res || !res.pubkey) { reject(err); } else { @@ -671,7 +687,8 @@ function getInfo(tryProxy, noCache) { // log('getInfo') return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { try { - const lightning = yield loadLightning(tryProxy === false ? false : true, undefined, noCache); // try proxy + // try proxy + const lightning = yield loadLightning(tryProxy === false ? false : true, undefined, noCache); lightning.getInfo({}, function (err, response) { if (err == null) { resolve(interfaces.getInfoResponse(response)); @@ -714,7 +731,7 @@ function listPeers(args, ownerPubkey) { const lightning = yield loadLightning(true, ownerPubkey); const opts = interfaces.listPeersRequest(args); lightning.listPeers(opts, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(interfaces.listPeersResponse(response)); } else { @@ -730,75 +747,111 @@ function listChannels(args, ownerPubkey) { logger_1.sphinxLogger.info('listChannels', logger_1.logging.Lightning); return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { const lightning = yield loadLightning(true, ownerPubkey); // try proxy - const cmd = interfaces.listChannelsCommand(); const opts = interfaces.listChannelsRequest(args); - lightning[cmd](opts, function (err, response) { - if (err == null) { - resolve(interfaces.listChannelsResponse(response)); - } - else { - reject(err); - } - }); + if (isGL(lightning)) { + lightning.listPeers(opts, function (err, response) { + if (err == null && response) { + resolve(interfaces.listChannelsResponse(response)); + } + else { + reject(err); + } + }); + } + else if (isLND(lightning)) { + // TODO proxy? + lightning.listChannels(opts, function (err, response) { + if (err == null && response) { + resolve(interfaces.listChannelsResponse(response)); + } + else { + reject(err); + } + }); + } })); }); } exports.listChannels = listChannels; +// if separate fields get used in relay, it might be worth to add the types, just copy em from src/grpc/types with go to declaration of your ide function pendingChannels(ownerPubkey) { return __awaiter(this, void 0, void 0, function* () { logger_1.sphinxLogger.info('pendingChannels', logger_1.logging.Lightning); - if (IS_GREENLIGHT) - return []; - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const lightning = yield loadLightning(true, ownerPubkey); // try proxy + const lightning = yield loadLightning(true, ownerPubkey); // try proxy + if (isGL(lightning)) { + return { + total_limbo_balance: '0', + pending_open_channels: [], + pending_closing_channels: [], + pending_force_closing_channels: [], + waiting_close_channels: [], + }; + } + return new Promise((resolve, reject) => { + // no pendingChannels on proxy?????? + ; lightning.pendingChannels({}, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(response); } else { reject(err); } }); - })); + }); }); } exports.pendingChannels = pendingChannels; +/** return void for LND, { node_id: string, features: string } for greenlight*/ function connectPeer(args) { return __awaiter(this, void 0, void 0, function* () { logger_1.sphinxLogger.info('connectPeer', logger_1.logging.Lightning); return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { const lightning = yield loadLightning(); - const req = interfaces.connectPeerRequest(args); - lightning.connectPeer(req, function (err, response) { - if (err == null) { - resolve(response); - } - else { - reject(err); - } - }); + if (isGL(lightning)) { + const req = interfaces.connectPeerRequest(args); + lightning.connectPeer(req, function (err, response) { + if (err == null && response) { + resolve(response); + } + else { + reject(err); + } + }); + } + else if (isLND(lightning)) { + lightning.connectPeer(args, function (err, response) { + if (err == null && response) { + resolve(); + } + else { + reject(err); + } + }); + } })); }); } exports.connectPeer = connectPeer; +/** does nothing and returns nothing for greenlight */ function openChannel(args) { return __awaiter(this, void 0, void 0, function* () { logger_1.sphinxLogger.info('openChannel', logger_1.logging.Lightning); const opts = args || {}; - if (args && args.node_pubkey) { - opts.node_pubkey = ByteBuffer.fromHex(args.node_pubkey); + const lightning = yield loadLightning(); + if (isGL(lightning)) { + return; } - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const lightning = yield loadLightning(); + return new Promise((resolve, reject) => { lightning.openChannelSync(opts, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(response); } else { reject(err); } }); - })); + }); }); } exports.openChannel = openChannel; @@ -818,13 +871,16 @@ function complexBalances(ownerPubkey) { } else { const reserve = channels.reduce((a, chan) => a + parseInt(chan.local_chan_reserve_sat), 0); - const spendableBalance = channels.reduce((a, chan) => a + Math.max(0, parseInt(chan.local_balance) - parseInt(chan.local_chan_reserve_sat)), 0); + const spendableBalance = channels.reduce((a, chan) => a + + Math.max(0, parseInt(chan.local_balance) - parseInt(chan.local_chan_reserve_sat)), 0); const response = yield channelBalance(ownerPubkey); return { reserve, - full_balance: Math.max(0, parseInt(response.balance)), + full_balance: response ? Math.max(0, parseInt(response.balance)) : 0, balance: spendableBalance, - pending_open_balance: parseInt(response.pending_open_balance), + pending_open_balance: response + ? parseInt(response.pending_open_balance) + : 0, }; } }); @@ -833,39 +889,44 @@ exports.complexBalances = complexBalances; function channelBalance(ownerPubkey) { return __awaiter(this, void 0, void 0, function* () { logger_1.sphinxLogger.info('channelBalance', logger_1.logging.Lightning); - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const lightning = yield loadLightning(true, ownerPubkey); // try proxy + const lightning = yield loadLightning(true, ownerPubkey); // try proxy + if (isGL(lightning)) { + return; + } + return new Promise((resolve, reject) => { lightning.channelBalance({}, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(response); } else { reject(err); } }); - })); + }); }); } exports.channelBalance = channelBalance; +/** returns void for greenlight */ function getChanInfo(chan_id, tryProxy) { return __awaiter(this, void 0, void 0, function* () { // log('getChanInfo') - if (IS_GREENLIGHT) - return {}; // skip for now - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const lightning = yield loadLightning(tryProxy === false ? false : true); // try proxy + if (isGL(lightning)) { + return; // skip for now + } + return new Promise((resolve, reject) => { if (!chan_id) { return reject('no chan id'); } - const lightning = yield loadLightning(tryProxy === false ? false : true); // try proxy lightning.getChanInfo({ chan_id }, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(response); } else { reject(err); } }); - })); + }); }); } exports.getChanInfo = getChanInfo; diff --git a/dist/src/grpc/lightning.js.map b/dist/src/grpc/lightning.js.map index b9a5f16db..b0f3ebd3a 100644 --- a/dist/src/grpc/lightning.js.map +++ b/dist/src/grpc/lightning.js.map @@ -1 +1 @@ -{"version":3,"file":"lightning.js","sourceRoot":"","sources":["../../../src/grpc/lightning.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAwC;AACxC,yBAAwB;AACxB,6BAA4B;AAC5B,wCAAkC;AAClC,iCAAgC;AAChC,iCAAgC;AAChC,4CAAoC;AACpC,gDAA+C;AAC/C,4CAA4C;AAC5C,0CAA4D;AAC5D,4CAAuD;AACvD,2CAA0C;AAC1C,4CAA2C;AAC3C,uCAAsC;AACtC,uCAA+B;AAC/B,6CAAsD;AAGtD,kDAAkD;AAClD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,WAAW,CAAA;AAC3C,sDAAsD;AACtD,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,KAAK,YAAY,CAAA;AAEnD,QAAA,eAAe,GAAG,UAAU,CAAA;AAC5B,QAAA,wBAAwB,GAAG,SAA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A6B;AAC7B,aAAa;AACb,yCAAyC;AACzC,8EAA8E;AAC9E,6EAA6E;AAC7E,uCAAuC;AACvC,0FAA0F;AAC1F,6BAA6B;AAC7B,MAAM;AACN,IAAI"} \ No newline at end of file +{"version":3,"file":"lightning.js","sourceRoot":"","sources":["../../../src/grpc/lightning.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAwB;AACxB,sCAAqC;AACrC,mCAAmC;AAMnC,wCAAkC;AAClC,iCAAgC;AAChC,iCAAgC;AAChC,4CAAoC;AACpC,gDAA+C;AAC/C,4CAA4C;AAC5C,0CAA4D;AAC5D,4CAAuD;AACvD,2CAA0C;AAC1C,4CAA2C;AAC3C,uCAAsC;AACtC,uCAA+B;AAC/B,6CAAsD;AAGtD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,WAAW,CAAA;AAC3C,MAAM,MAAM,GAAG,MAAM,CAAC,kBAAkB,KAAK,KAAK,CAAA;AAClD,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,KAAK,YAAY,CAAA;AAEnD,QAAA,eAAe,GAAG,UAAU,CAAA;AAC5B,QAAA,wBAAwB,GAAG,SAAS,CAAA;AAEjD,MAAM,aAAa,GAAG,KAAK,CAAA;AAE3B,IAAI,eAIS,CAAA;AACb,IAAI,cAAgD,CAAA;AACpD,IAAI,YAAsC,CAAA;AAE1C,+BAA+B;AAC/B,SAAgB,KAAK,CACnB,MAAuE;IAEvE,OAAO,MAAM,CAAA;AACf,CAAC;AAJD,sBAIC;AAED,SAAgB,IAAI,CAClB,MAAuE;IAEvE,OAAO,aAAa,CAAA;AACtB,CAAC;AAJD,oBAIC;AAED,SAAgB,eAAe,CAAC,OAAgB;IAC9C,IAAI;QACF,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,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Aa;AACb,yCAAyC;AACzC,8EAA8E;AAC9E,6EAA6E;AAC7E,uCAAuC;AACvC,0FAA0F;AAC1F,6BAA6B;AAC7B,MAAM;AACN,IAAI"} \ No newline at end of file diff --git a/dist/src/grpc/proto.js b/dist/src/grpc/proto.js new file mode 100644 index 000000000..42188690a --- /dev/null +++ b/dist/src/grpc/proto.js @@ -0,0 +1,19 @@ +"use strict"; +// Generated file. Do not edit. Edit the template proto.ts.template instead. +Object.defineProperty(exports, "__esModule", { value: true }); +exports.loadProto = void 0; +const grpc = require("@grpc/grpc-js"); +const proto_loader_1 = require("@grpc/proto-loader"); +process.env.GRPC_SSL_CIPHER_SUITES = 'HIGH+ECDSA'; +const opts = { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, +}; +function loadProto(name) { + return grpc.loadPackageDefinition((0, proto_loader_1.loadSync)(`proto/${name}.proto`, opts)); +} +exports.loadProto = loadProto; +//# sourceMappingURL=proto.js.map \ No newline at end of file diff --git a/dist/src/grpc/proto.js.map b/dist/src/grpc/proto.js.map new file mode 100644 index 000000000..c61897572 --- /dev/null +++ b/dist/src/grpc/proto.js.map @@ -0,0 +1 @@ +{"version":3,"file":"proto.js","sourceRoot":"","sources":["../../../src/grpc/proto.ts"],"names":[],"mappings":";AAAA,4EAA4E;;;AAE5E,sCAAqC;AACrC,qDAAsD;AAWtD,OAAO,CAAC,GAAG,CAAC,sBAAsB,GAAG,YAAY,CAAA;AAsBjD,MAAM,IAAI,GAAY;IACpB,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;CACb,CAAA;AAWD,SAAgB,SAAS,CAAC,IAAe;IACvC,OAAO,IAAI,CAAC,qBAAqB,CAC/B,IAAA,uBAAQ,EAAC,SAAS,IAAI,QAAQ,EAAE,IAAI,CAAC,CACV,CAAA;AAC/B,CAAC;AAJD,8BAIC"} \ No newline at end of file diff --git a/dist/src/grpc/subscribe.js b/dist/src/grpc/subscribe.js index e3ba16e1a..ba4e56953 100644 --- a/dist/src/grpc/subscribe.js +++ b/dist/src/grpc/subscribe.js @@ -28,7 +28,7 @@ function subscribeInvoices(parseKeysendInvoice) { } const lightning = yield (0, lightning_1.loadLightning)(true, ownerPubkey); // try proxy const cmd = interfaces.subscribeCommand(); - const call = lightning[cmd](); + const call = lightning[cmd]({}); call.on('data', function (response) { return __awaiter(this, void 0, void 0, function* () { // console.log("=> INVOICE RAW", response) diff --git a/dist/src/grpc/subscribe.js.map b/dist/src/grpc/subscribe.js.map index d898e7495..e7c3ba0ec 100644 --- a/dist/src/grpc/subscribe.js.map +++ b/dist/src/grpc/subscribe.js.map @@ -1 +1 @@ -{"version":3,"file":"subscribe.js","sourceRoot":"","sources":["../../../src/grpc/subscribe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAAqC;AACrC,4CAAgD;AAChD,uCAA6C;AAC7C,2CAA0C;AAC1C,0CAA4D;AAC5D,4CAAuD;AAEvD,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAC/B,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACjC,MAAM,sBAAsB,GAAG,EAAE,CAAA,CAAC,SAAS;AAE3C,SAAgB,iBAAiB,CAC/B,mBAA6D;IAE7D,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,IAAI,WAAW,GAAG,EAAE,CAAA;QACpB,IAAI,IAAA,eAAO,GAAE,EAAE;YACb,WAAW,GAAG,MAAM,IAAA,0BAAkB,GAAE,CAAA;SACzC;QACD,MAAM,SAAS,GAAG,MAAM,IAAA,yBAAa,EAAC,IAAI,EAAE,WAAW,CAAC,CAAA,CAAC,YAAY;QAErE,MAAM,GAAG,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAA;QACzC,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAA;QAC7B,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;oBACjD,MAAM,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;iBACxD;YACH,CAAC,CAAA,EAAE,IAAI,CAAC,CAAA;SACT;IACH,CAAC;CAAA;AA1BD,oDA0BC"} \ No newline at end of file diff --git a/dist/src/tests/controllers/messageLength.test.js b/dist/src/tests/controllers/messageLength.test.js index fb9b636bd..d82386ffe 100644 --- a/dist/src/tests/controllers/messageLength.test.js +++ b/dist/src/tests/controllers/messageLength.test.js @@ -80,8 +80,8 @@ function longMessage(t, node1, node2) { const added = yield (0, save_1.addContact)(t, node1, node2); t.true(added, 'n1 should add n2 as contact'); //Send the message - const longText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Risus feugiat in ante metus dictum at tempor. Ut enim blandit volutpat maecenas volutpat. Velit dignissim sodales ut eu. Eget nunc scelerisque viverra mauris in aliquam sem. Dictum varius duis at consectetur lorem. Maecenas volutpat blandit aliquam etiam erat velit scelerisque. Id velit ut tortor pretium viverra suspendisse potenti. Placerat vestibulum lectus mauris ultrices eros in cursus turpis. Integer vitae justo eget magna. Duis tristique sollicitudin nibh sit amet commodo nulla facilisi nullam. Vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Vitae sapien pellentesque habitant morbi tristique. Varius vel pharetra vel turpis nunc eget lorem dolor. Pellentesque massa placerat duis ultricies lacus sed turpis. Augue neque gravida in fermentum et sollicitudin. Adipiscing elit pellentesque habitant morbi tristique."; - console.log("sending long message to", node2.alias); + const longText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Risus feugiat in ante metus dictum at tempor. Ut enim blandit volutpat maecenas volutpat. Velit dignissim sodales ut eu. Eget nunc scelerisque viverra mauris in aliquam sem. Dictum varius duis at consectetur lorem. Maecenas volutpat blandit aliquam etiam erat velit scelerisque. Id velit ut tortor pretium viverra suspendisse potenti. Placerat vestibulum lectus mauris ultrices eros in cursus turpis. Integer vitae justo eget magna. Duis tristique sollicitudin nibh sit amet commodo nulla facilisi nullam. Vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Vitae sapien pellentesque habitant morbi tristique. Varius vel pharetra vel turpis nunc eget lorem dolor. Pellentesque massa placerat duis ultricies lacus sed turpis. Augue neque gravida in fermentum et sollicitudin. Adipiscing elit pellentesque habitant morbi tristique.'; + console.log('sending long message to', node2.alias); yield (0, msg_1.sendMessage)(t, node1, node2, longText); yield (0, helpers_1.sleep)(1000); //Checking for the new long message diff --git a/dist/src/tests/controllers/messageLength.test.js.map b/dist/src/tests/controllers/messageLength.test.js.map index b2485d961..60b83d9aa 100644 --- a/dist/src/tests/controllers/messageLength.test.js.map +++ b/dist/src/tests/controllers/messageLength.test.js.map @@ -1 +1 @@ -{"version":3,"file":"messageLength.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/messageLength.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA4C;AAC5C,wCAAuC;AACvC,8CAA6D;AAC7D,wCAA0C;AAC1C,sCAA4D;AAC5D,sCAA0C;AAC1C,sCAA6E;AAG7E,oCAA4B;AAQ5B,aAAI,CAAC,MAAM,CACP,+EAA+E,EAC/E,CAAO,CAA4B,EAAE,EAAE;IACnC,MAAM,IAAA,iBAAO,EAAC,eAAK,EAAE,CAAO,KAAK,EAAE,KAAK,EAAE,EAAE;QACxC,MAAM,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QACxC,MAAM,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;IACtC,CAAC,CAAA,CAAC,CAAA;AACN,CAAC,CAAA,CACJ,CAAA;AAED,SAAsB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK;;QACnD,sDAAsD;QAEtD,MAAM,IAAA,oBAAc,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QAC9B,OAAO,CAAC,GAAG,CA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Q,CAAA;QACZ,KAAK,MAAM,OAAO,IAAI,WAAW,EAAE;YAC/B,IAAI,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,MAAM,EAAE;gBACpC,QAAQ,GAAG,MAAM,IAAA,mBAAa,EAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;gBACpD,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,4BAA4B,CAAC,CAAA;aACjD;SACJ;IACL,CAAC;CAAA;AA7BD,kCA6BC"} \ No newline at end of file +{"version":3,"file":"messageLength.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/messageLength.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA4C;AAC5C,wCAAuC;AACvC,8CAA6D;AAC7D,wCAA0C;AAC1C,sCAA4D;AAC5D,sCAA0C;AAC1C,sCAA6E;AAG7E,oCAA4B;AAQ5B,aAAI,CAAC,MAAM,CACT,+EAA+E,EAC/E,CAAO,CAA4B,EAAE,EAAE;IACrC,MAAM,IAAA,iBAAO,EAAC,eAAK,EAAE,CAAO,KAAK,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QACxC,MAAM,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;IACpC,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC,CAAA,CACF,CAAA;AAED,SAAsB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK;;QACrD,sDAAsD;QAEtD,MAAM,IAAA,oBAAc,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QAC9B,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,QAAQ,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;QAEhD,+BAA+B;QAC/B,MAAM,KAAK,GAAG,MAAM,IAAA,iBAAU,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAA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AE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;gBACpD,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,4BAA4B,CAAC,CAAA;aAC/C;SACF;IACH,CAAC;CAAA;AA9BD,kCA8BC"} \ No newline at end of file diff --git a/dist/src/utils/gitinfo.js.map b/dist/src/utils/gitinfo.js.map index e4e41f71e..9d428226b 100644 --- a/dist/src/utils/gitinfo.js.map +++ b/dist/src/utils/gitinfo.js.map @@ -1 +1 @@ -{"version":3,"file":"gitinfo.js","sourceRoot":"","sources":["../../../src/utils/gitinfo.ts"],"names":[],"mappings":";;;AAAA,iDAAwC;AACxC,qCAAuC;AAEvC,SAAS,GAAG,CAAC,OAAe;IAC1B,IAAI;QACF,OAAO,IAAA,wBAAQ,EAAC,OAAO,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAA;KACpD;IACD,OAAO,CAAC,EAAE;QACR,qBAAY,CAAC,KAAK,CAAC,uEAAuE,CAAC,CAAA;QAC3F,qBAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;KACtB;AACH,CAAC;AAEY,QAAA,UAAU,GAAG,GAAG,CAAC,2BAA2B,CAAC,IAAI,EAAE,CAAA;AACnD,QAAA,GAAG,GAAG,GAAG,CAAC,4BAA4B,CAAC,IAAI,EAAE,CAAA"} \ No newline at end of file +{"version":3,"file":"gitinfo.js","sourceRoot":"","sources":["../../../src/utils/gitinfo.ts"],"names":[],"mappings":";;;AAAA,iDAAwC;AACxC,qCAAuC;AAEvC,SAAS,GAAG,CAAC,OAAe;IAC1B,IAAI;QACF,OAAO,IAAA,wBAAQ,EAAC,OAAO,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAA;KACpD;IAAC,OAAO,CAAC,EAAE;QACV,qBAAY,CAAC,KAAK,CAChB,uEAAuE,CACxE,CAAA;QACD,qBAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;KACtB;AACH,CAAC;AAEY,QAAA,UAAU,GAAG,GAAG,CAAC,2BAA2B,CAAC,IAAI,EAAE,CAAA;AACnD,QAAA,GAAG,GAAG,GAAG,CAAC,4BAA4B,CAAC,IAAI,EAAE,CAAA"} \ No newline at end of file diff --git a/dist/src/utils/msg.js.map b/dist/src/utils/msg.js.map index 80073e531..0c0940533 100644 --- a/dist/src/utils/msg.js.map +++ b/dist/src/utils/msg.js.map @@ -1 +1 @@ -{"version":3,"file":"msg.js","sourceRoot":"","sources":["../../../src/utils/msg.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAuC;AACvC,qCAAoC;AACpC,4CAAoC;AAIpC,SAAS,eAAe,CAAC,IAAkB,EAAE,SAAS,EAAE,OAAgB;IACtE,MAAM,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,OAAO,CAAA;IAC9B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;QAAE,OAAO,IAAW,CAAA;IACzC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK,QAAQ,CAAC;QAAE,OAAO,IAAW,CAAA;IACxD,IAAI,OAAO,EAAE;QACX,6EAA6E;QAC7E,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACrB,OAAO,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;SACrD;KACF;IACD,OAAO,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA;AAC9D,CAAC;AAED,SAAS,8BAA8B,CACrC,IAAkB,EAClB,OAAe;IAEf,MAAM,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAA;IAC3B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;QAAE,OAAO,IAAW,CAAA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AM,IAAI,GAAG,MAAM,IAAI,MAAM,CAAC,IAAI,CAAA;QAClC,MAAM,OAAO,GACX,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,CAAA;QAElE,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;QACpE,MAAM,QAAQ,GAAG,8BAA8B,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;QAC1E,MAAM,UAAU,GAAG,+BAA+B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QACrE,MAAM,eAAe,GAAG,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;QACrE,MAAM,iBAAiB,GAAG,MAAM,qBAAqB,CACnD,eAAe,EACf,OAAO,EACP,YAAY,CACb,CAAA;QACD,MAAM,MAAM,GAAG,MAAM,qBAAqB,CACxC,iBAAiB,EACjB,OAAO,EACP,YAAY,CACb,CAAA;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAyBQ,gDAAkB;AAvB3B,SAAgB,OAAO,CACrB,IAAkB,EAClB,KAA8B;IAE9B,OAAO,gCACF,IAAI,KACP,OAAO,kCACF,IAAI,CAAC,OAAO,GACZ,KAAK,IAEJ,CAAA;AACV,CAAC;AAXD,0BAWC;AAED,SAAS,WAAW,CAAC,IAAkB,EAAE,KAA2B;IAClE,OAAO,gCACF,IAAI,KACP,IAAI,kCACC,IAAI,CAAC,IAAI,GACT,KAAK,IAEJ,CAAA;AACV,CAAC"} \ No newline at end of file +{"version":3,"file":"msg.js","sourceRoot":"","sources":["../../../src/utils/msg.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAuC;AACvC,qCAAoC;AACpC,4CAAoC;AAIpC,SAAS,eAAe,CAAC,IAAkB,EAAE,SAAS,EAAE,OAAgB;IACtE,MAAM,CAAC,GAAG,IAAI,I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AAM,iBAAiB,GAAG,MAAM,qBAAqB,CACnD,eAAe,EACf,OAAO,EACP,YAAY,CACb,CAAA;QACD,MAAM,MAAM,GAAG,MAAM,qBAAqB,CACxC,iBAAiB,EACjB,OAAO,EACP,YAAY,CACb,CAAA;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAyBQ,gDAAkB;AAvB3B,SAAgB,OAAO,CACrB,IAAkB,EAClB,KAA8B;IAE9B,OAAO,gCACF,IAAI,KACP,OAAO,kCACF,IAAI,CAAC,OAAO,GACZ,KAAK,IAEJ,CAAA;AACV,CAAC;AAXD,0BAWC;AAED,SAAS,WAAW,CAAC,IAAkB,EAAE,KAA2B;IAClE,OAAO,gCACF,IAAI,KACP,IAAI,kCACC,IAAI,CAAC,IAAI,GACT,KAAK,IAEJ,CAAA;AACV,CAAC"} \ No newline at end of file diff --git a/dist/src/utils/proxy.js b/dist/src/utils/proxy.js index 12c107a7d..ddda49037 100644 --- a/dist/src/utils/proxy.js +++ b/dist/src/utils/proxy.js @@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.getProxyRootPubkey = exports.loadProxyLightning = exports.loadProxyCredentials = exports.getProxyTotalBalance = exports.generateNewExternalUser = exports.generateNewUser = exports.generateNewUsers = exports.genUsersInterval = exports.isProxy = void 0; const fs = require("fs"); -const grpc = require("grpc"); +const grpc = require("@grpc/grpc-js"); +const proto_1 = require("../grpc/proto"); const config_1 = require("./config"); const Lightning = require("../grpc/lightning"); const models_1 = require("../models"); @@ -23,7 +24,7 @@ const config = (0, config_1.loadConfig)(); const LND_IP = config.lnd_ip || 'localhost'; const PROXY_LND_IP = config.proxy_lnd_ip || 'localhost'; const check_proxy_balance = false; -function isProxy() { +function isProxy(client) { return config.proxy_lnd_port && config.proxy_macaroons_dir && config.proxy_tls_location @@ -188,7 +189,7 @@ function loadProxyLightning(ownerPubkey) { } } const credentials = yield loadProxyCredentials(macname); - const lnrpcDescriptor = grpc.load('proto/rpc_proxy.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('rpc_proxy'); const lnrpc = lnrpcDescriptor.lnrpc_proxy; const the = new lnrpc.Lightning(PROXY_LND_IP + ':' + config.proxy_lnd_port, credentials); return the; @@ -208,11 +209,11 @@ function getProxyRootPubkey() { } // normal client, to get pubkey of LND const credentials = Lightning.loadCredentials(); - const lnrpcDescriptor = grpc.load('proto/lightning.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('lightning'); const lnrpc = lnrpcDescriptor.lnrpc; const lc = new lnrpc.Lightning(LND_IP + ':' + config.lnd_port, credentials); lc.getInfo({}, function (err, response) { - if (err == null) { + if (err == null && response) { proxyRootPubkey = response.identity_pubkey; resolve(proxyRootPubkey); } @@ -227,13 +228,13 @@ function getProxyLNDBalance() { return new Promise((resolve, reject) => { // normal client, to get pubkey of LND const credentials = Lightning.loadCredentials(); - const lnrpcDescriptor = grpc.load('proto/lightning.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('lightning'); const lnrpc = lnrpcDescriptor.lnrpc; const lc = new lnrpc.Lightning(LND_IP + ':' + config.lnd_port, credentials); lc.channelBalance({}, function (err, response) { - if (err == null) { + if (err == null && response) { lc.listChannels({}, function (err, channelList) { - if (err == null) { + if (err == null && channelList) { const { channels } = channelList; const reserve = channels.reduce((a, chan) => a + parseInt(chan.local_chan_reserve_sat), 0); const balance = parseInt(response.balance) - reserve; diff --git a/dist/src/utils/proxy.js.map b/dist/src/utils/proxy.js.map index 8203074e7..f8e840d57 100644 --- a/dist/src/utils/proxy.js.map +++ b/dist/src/utils/proxy.js.map @@ -1 +1 @@ -{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../../src/utils/proxy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,qCAAqC;AACrC,+CAA8C;AAC9C,sCAAiD;AACjD,2CAA8B;AAC9B,qCAAgD;AAChD,wCAA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K,EAAE,EAAE;YACjD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;SAC3C;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../../src/utils/proxy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAwB;AACxB,sCAAqC;AACrC,yCAAyC;AAEzC,qCAAqC;AACrC,+CAA8C;AAC9C,sCAAiD;AACjD,2CAA8B;AAC9B,qCAAgD;AAChD,wCAAkC;AAElC,kDAAkD;AAClD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,WAAW,CAAA;AAC3C,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,WAAW,CAAA;AAEvD,MAAM,mBAAmB,GAAG,KAAK,CAAA;AAIjC,SAAgB,OAAO,CAAC,MAAY;IAClC,OAAO,MAAM,CAAC,cAAc;QAC1B,MAAM,CAAC,mBAAmB;QAC1B,MAAM,CAAC,kBAAkB;QACzB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,KAAK,CAAA;AACX,CAAC;AAND,0BAMC;AAED,SAAgB,gBAAgB,CAAC,EAAE;IACjC,IAAI,CAAC,OAAO,EAAE;QAAE,OAAM;IACtB,UAAU,CAAC,GAAG,EAAE;QACd,wCAAwC;QACxC,WAAW,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAA;IACnC,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAND,4CAMC;AAED,MAAM,YAAY,GAChB,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,KAAK,CAAC;IACpD,CAAC,CAAC,MAAM,CAAC,eAAe;IACxB,CAAC,CAAC,CAAC,CAAA;AACP,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,IAAI,IAAI,CAAA;AACvD,kCAAkC;AAClC,SAAsB,g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AC,GAAG,OAAO,CAAA;wBACpD,OAAO,CAAC,OAAO,CAAC,CAAA;qBACjB;yBAAM;wBACL,MAAM,CAAC,GAAG,CAAC,CAAA;qBACZ;gBACH,CAAC,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,CAAC,GAAG,CAAC,CAAA;aACZ;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAe,YAAY,CAAC,KAAK,EAAE,QAAQ;;QACzC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACjD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;SAC3C;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/utils/signer.js b/dist/src/utils/signer.js index 9dc12e65b..8baae4e2c 100644 --- a/dist/src/utils/signer.js +++ b/dist/src/utils/signer.js @@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", { value: true }); exports.verifyAscii = exports.signAscii = exports.signBuffer = exports.signMessage = exports.loadSigner = void 0; -const grpc = require("grpc"); +const proto_1 = require("../grpc/proto"); const Lightning = require("../grpc/lightning"); const ByteBuffer = require("bytebuffer"); const config_1 = require("./config"); @@ -18,15 +18,15 @@ const logger_1 = require("./logger"); // var protoLoader = require('@grpc/proto-loader') const config = (0, config_1.loadConfig)(); const LND_IP = config.lnd_ip || 'localhost'; -let signerClient = null; -const loadSigner = () => { +let signerClient; +function loadSigner() { if (signerClient) { return signerClient; } else { try { const credentials = Lightning.loadCredentials('signer.macaroon'); - const lnrpcDescriptor = grpc.load('proto/signer.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('signer'); const signer = lnrpcDescriptor.signrpc; signerClient = new signer.Signer(LND_IP + ':' + config.lnd_port, credentials); return signerClient; @@ -37,18 +37,18 @@ const loadSigner = () => { throw e; } } -}; +} exports.loadSigner = loadSigner; const signMessage = (msg) => { - return new Promise((resolve, reject) => __awaiter(void 0, void 0, void 0, function* () { - const signer = yield (0, exports.loadSigner)(); + return new Promise((resolve, reject) => { + const signer = loadSigner(); try { const options = { - msg: ByteBuffer.fromHex(msg), + msg: Buffer.from(msg, 'hex'), key_loc: { key_family: 6, key_index: 0 }, }; signer.signMessage(options, function (err, sig) { - if (err || !sig.signature) { + if (err || !sig || !sig.signature) { reject(err); } else { @@ -60,16 +60,16 @@ const signMessage = (msg) => { catch (e) { reject(e); } - })); + }); }; exports.signMessage = signMessage; const signBuffer = (msg) => { - return new Promise((resolve, reject) => __awaiter(void 0, void 0, void 0, function* () { - const signer = yield (0, exports.loadSigner)(); + return new Promise((resolve, reject) => { + const signer = loadSigner(); try { const options = { msg }; signer.signMessage(options, function (err, sig) { - if (err || !sig.signature) { + if (err || !sig || !sig.signature) { reject(err); } else { @@ -81,12 +81,12 @@ const signBuffer = (msg) => { catch (e) { reject(e); } - })); + }); }; exports.signBuffer = signBuffer; function verifyMessage(msg, sig, pubkey) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const signer = yield (0, exports.loadSigner)(); + return new Promise((resolve, reject) => { + const signer = loadSigner(); if (msg.length === 0) { return reject('invalid msg'); } @@ -98,12 +98,12 @@ function verifyMessage(msg, sig, pubkey) { } try { const options = { - msg: ByteBuffer.fromHex(msg), - signature: ByteBuffer.fromBase64(sig), - pubkey: ByteBuffer.fromHex(pubkey), + msg: Buffer.from(msg, 'hex'), + signature: Buffer.from(sig, 'base64'), + pubkey: Buffer.from(pubkey, 'hex'), }; signer.verifyMessage(options, function (err, res) { - if (err) { + if (err || !res) { reject(err); } else { @@ -114,7 +114,7 @@ function verifyMessage(msg, sig, pubkey) { catch (e) { reject(e); } - })); + }); } function signAscii(ascii) { return __awaiter(this, void 0, void 0, function* () { diff --git a/dist/src/utils/signer.js.map b/dist/src/utils/signer.js.map index 447fc3887..b1ee15046 100644 --- a/dist/src/utils/signer.js.map +++ b/dist/src/utils/signer.js.map @@ -1 +1 @@ -{"version":3,"file":"signer.js","sourceRoot":"","sources":["../../../src/utils/signer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA4B;AAC5B,+CAA8C;AAC9C,yCAAwC;AACxC,qCAAqC;AACrC,qCAAuC;AAEvC,kDAAkD;AAClD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,WAAW,CAAA;AAE3C,IAAI,YAAY,GAAQ,IAAI,CAAA;AAErB,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,IAAI,YAAY,EAAE;QAChB,OAAO,YAAY,CAAA;KACpB;SAAM;QACL,IAAI;YACF,MAAM,WAAW,GAAG,SAAS,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAA;YAChE,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;YACvD,MAAM,MAAM,GAAQ,eAAe,CAAC,OAAO,CAAA;YAC3C,YAAY,GAAG,IAAI,MAAM,CAAC,MAAM,CAC9B,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,QAAQ,EAC9B,WAAW,CACZ,CAAA;YACD,OAAO,YAAY,CAAA;SACpB;QAAC,OAAO,CAAC,EAAE;YACV,iBAAiB;YACjB,qBAAY,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAA;YAC7C,MAAM,CAAC,CAAA;SACR;KACF;AACH,CAAC,CAAA;AAnBY,QAAA,UAAU,cAmBtB;AAEM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,EAAE;IACjC,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAU,GAAE,CAAA;QACjC,IAAI;YACF,MAAM,OAAO,GAAG;gBACd,GAAG,EAAE,U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ACX;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAA;YAC5C,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AARD,8BAQC;AAED,SAAsB,WAAW,CAC/B,KAAa,EACb,GAAW,EACX,MAAc;;QAEd,IAAI;YACF,MAAM,CAAC,GAAG,MAAM,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,CAAA;YAChE,OAAO,CAAC,CAAA;SACT;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAA;YAC9C,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AAZD,kCAYC;AAED,SAAS,aAAa,CAAC,GAAG;IACxB,MAAM,IAAI,GAAa,EAAE,CAAA;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KACf;IACD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC"} \ No newline at end of file +{"version":3,"file":"signer.js","sourceRoot":"","sources":["../../../src/utils/signer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,+CAA8C;AAC9C,yCAAwC;AACxC,qCAAqC;AACrC,qCAAuC;AAEvC,kDAAkD;AAClD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,WAAW,CAAA;AAE3C,IAAI,YAAsC,CAAA;AAE1C,SAAgB,UAAU;IACxB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M,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AAZD,kCAYC;AAED,SAAS,aAAa,CAAC,GAAG;IACxB,MAAM,IAAI,GAAa,EAAE,CAAA;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KACf;IACD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/src/utils/wallet.js b/dist/src/utils/wallet.js index b21850223..6aab1b07e 100644 --- a/dist/src/utils/wallet.js +++ b/dist/src/utils/wallet.js @@ -10,21 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", { value: true }); exports.listUnspent = exports.loadWalletKit = void 0; -const grpc = require("grpc"); +const proto_1 = require("../grpc/proto"); const Lightning = require("../grpc/lightning"); const config_1 = require("./config"); const logger_1 = require("./logger"); const config = (0, config_1.loadConfig)(); const LND_IP = config.lnd_ip || 'localhost'; let walletClient; -const loadWalletKit = () => { +function loadWalletKit() { if (walletClient) { return walletClient; } else { try { const credentials = Lightning.loadCredentials(); - const lnrpcDescriptor = grpc.load('proto/walletkit.proto'); + const lnrpcDescriptor = (0, proto_1.loadProto)('walletkit'); const walletkit = lnrpcDescriptor.walletrpc; walletClient = new walletkit.WalletKit(LND_IP + ':' + config.lnd_port, credentials); return walletClient; @@ -34,12 +34,21 @@ const loadWalletKit = () => { throw e; } } -}; +} exports.loadWalletKit = loadWalletKit; +var AddressType; +(function (AddressType) { + AddressType[AddressType["WITNESS_PUBKEY_HASH"] = 0] = "WITNESS_PUBKEY_HASH"; + AddressType[AddressType["NESTED_PUBKEY_HASH"] = 1] = "NESTED_PUBKEY_HASH"; + AddressType[AddressType["UNUSED_WITNESS_PUBKEY_HASH"] = 2] = "UNUSED_WITNESS_PUBKEY_HASH"; + AddressType[AddressType["UNUSED_NESTED_PUBKEY_HASH"] = 3] = "UNUSED_NESTED_PUBKEY_HASH"; + AddressType[AddressType["TAPROOT_PUBKEY"] = 4] = "TAPROOT_PUBKEY"; + AddressType[AddressType["UNUSED_TAPROOT_PUBKEY"] = 5] = "UNUSED_TAPROOT_PUBKEY"; +})(AddressType || (AddressType = {})); function listUnspent() { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const walletkit = yield (0, exports.loadWalletKit)(); + return new Promise((resolve, reject) => { + const walletkit = loadWalletKit(); try { const opts = { min_confs: 0, max_confs: 10000 }; walletkit.listUnspent(opts, function (err, res) { @@ -54,7 +63,7 @@ function listUnspent() { catch (e) { reject(e); } - })); + }); }); } exports.listUnspent = listUnspent; diff --git a/dist/src/utils/wallet.js.map b/dist/src/utils/wallet.js.map index e8b89509b..041c2d17b 100644 --- a/dist/src/utils/wallet.js.map +++ b/dist/src/utils/wallet.js.map @@ -1 +1 @@ -{"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../../src/utils/wallet.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA4B;AAC5B,+CAA8C;AAC9C,qCAAqC;AACrC,qCAAuC;AAEvC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,WAAW,CAAA;AAE3C,IAAI,YAAY,CAAA;AAET,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,IAAI,YAAY,EAAE;QAChB,OAAO,YAAY,CAAA;KACpB;SAAM;QACL,IAAI;YACF,MAAM,WAAW,GAAG,SAAS,CAAC,eAAe,EAAE,CAAA;YAC/C,MAAM,eAAe,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AAE;wBAC9B,MAAM,CAAC,GAAG,CAAC,CAAA;qBACZ;yBAAM;wBACL,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;qBACnB;gBACH,CAAC,CAAC,CAAA;aACH;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,CAAC,CAAC,CAAC,CAAA;aACV;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CAAA;AAhBD,kCAgBC"} \ No newline at end of file diff --git a/grpc_gen_types.sh b/grpc_gen_types.sh new file mode 100755 index 000000000..6bab55f7e --- /dev/null +++ b/grpc_gen_types.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +# to be able to restore proto/ and not lose work it has to be clean +if git status -s | grep '^ ..proto/' > /dev/null; then + echo "the proto dir must be staged or clean to generate types. 'git add' or 'git restore' the dir" + exit 1 +fi + +# start clean +rm -rf _tmp_grpc_types src/grpc/types + +# i dont know why but this makes it work +sed -Ei '/^ +\/\/.*/d' proto/*.proto + +# generate types to tmp dir +npx proto-loader-gen-types \ + --keepCase \ + --longs=String \ + --enums=String \ + --defaults \ + --oneofs \ + --grpcLib=@grpc/grpc-js \ + --outDir=_tmp_grpc_types \ + proto/*.proto + +# undo `sed` on the proto dir +git restore proto + +# convert ts files to d.ts to not fill dist with empty useless files +npx tsc -p tsconfig.grpc_types.json + +# clean up +rm -r _tmp_grpc_types + +# to get relative output from ls +cd src/grpc/types + +# array of names of the d.ts files without their extension +protos=$(ls *.d.ts | sed 's/\.d\.ts//') + +# to not use ../ all the time +cd .. # src/grpc + +# header of generated file, notice one redirect symbol (>), this creates a fresh file with this content +echo -e "// Generated file. Do not edit. Edit the template proto.ts.template instead.\n" > proto.ts + +# loop through lines of the template file and echo lines to the generated file. >> is used here to append it +cat proto.ts.template | while read line +do + if echo "$line" | grep -i '{{name}}' > /dev/null 2>&1; then + # this line contains {{Name}} or {{name}} + for p in $protos + do + echo "$line" | sed "s/{{name}}/$p/g;s/{{Name}}/${p^}/g" + done + else + # just write, nothing special + echo "$line" + fi +done >> proto.ts + +# run prettier on the just generated files +npx pretty-quick diff --git a/package-lock.json b/package-lock.json index 2735aa410..2993ba3c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "ISC", "dependencies": { "@boltz/bolt11": "^1.2.7", - "@grpc/proto-loader": "^0.5.3", + "@grpc/grpc-js": "^1.6.12", + "@grpc/proto-loader": "^0.7.2", "@octokit/webhooks-types": "^5.2.0", "@scout_apm/scout-apm": "^0.1.10", "async": "^2.6.4", @@ -35,7 +36,6 @@ "fetch-blob": "^1.0.5", "form-data": "^3.0.0", "fs": "^0.0.1-security", - "grpc": "^1.24.3", "helmet": "^3.21.1", "ip": "^1.1.5", "jasmine": "^3.5.0", @@ -814,18 +814,41 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "optional": true }, + "node_modules/@grpc/grpc-js": { + "version": "1.6.12", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.6.12.tgz", + "integrity": "sha512-JmvQ03OTSpVd9JTlj/K3IWHSz4Gk/JMLUTtW7Zb0KvO1LcOYGATh5cNuRYzCAeDR3O8wq+q8FZe97eO9MBrkUw==", + "dependencies": { + "@grpc/proto-loader": "^0.7.0", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, "node_modules/@grpc/proto-loader": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.6.tgz", - "integrity": "sha512-DT14xgw3PSzPxwS13auTEwxhMMOoz33DPUKNtmYK/QYbBSpLXJy78FGGs5yVoxVobEqPm4iW9MOIoz0A3bLTRQ==", + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.2.tgz", + "integrity": "sha512-jCdyLIT/tdQ1zhrbTQnJNK5nbDf0GoBpy5jVNywBzzMDF+Vs6uEaHnfz46dMtDxkvwrF2hzk5Z67goliceH0sA==", "dependencies": { + "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", - "protobufjs": "^6.8.6" + "long": "^4.0.0", + "protobufjs": "^7.0.0", + "yargs": "^16.2.0" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" }, "engines": { "node": ">=6" } }, + "node_modules/@grpc/proto-loader/node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, "node_modules/@humanwhocodes/config-array": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", @@ -2196,15 +2219,6 @@ "resolved": "https://registry.npmjs.org/@types/btoa-lite/-/btoa-lite-1.0.0.tgz", "integrity": "sha512-wJsiX1tosQ+J5+bY5LrSahHxr2wT+uME5UDwdN1kg4frt40euqA+wzECkmq4t5QbveHiJepfdThgQrPw6KiSlg==" }, - "node_modules/@types/bytebuffer": { - "version": "5.0.44", - "resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.44.tgz", - "integrity": "sha512-k1qonHga/SfQT02NF633i+7tIfKd+cfC/8pjnedcfuXJNMWooss/FkCgRMSnLf2WorLjbuH4bfgAZEbtyHBDoQ==", - "dependencies": { - "@types/long": "^3.0.0", - "@types/node": "*" - } - }, "node_modules/@types/connect": { "version": "3.4.35", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", @@ -2391,9 +2405,9 @@ "integrity": "sha512-RoZphVtHbxPZizt4IcILciSWiC6dcn+eZ8oX9IWEYfDMcocdd42f7NPI6fQj+6zI8y4E0L7gu2pcZKLGTRaV9Q==" }, "node_modules/@types/long": { - "version": "3.0.32", - "resolved": "https://registry.npmjs.org/@types/long/-/long-3.0.32.tgz", - "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" }, "node_modules/@types/lru-cache": { "version": "5.1.1", @@ -3100,15 +3114,6 @@ "node": ">=8" } }, - "node_modules/ascli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", - "integrity": "sha512-JGQaNxpaCJz9Bd1JvVaFIHuWn9S+l3xhN17R0V/vmUDiGE0QngNMXhjlqpwqV+91plWz9Fg+Lt28Lj7p5vjs8A==", - "dependencies": { - "colour": "~0.7.1", - "optjs": "~3.2.2" - } - }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -4705,14 +4710,6 @@ "node": ">=10" } }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/collect-v8-coverage": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", @@ -4766,14 +4763,6 @@ "text-hex": "1.0.x" } }, - "node_modules/colour": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", - "integrity": "sha512-Rel466v0EnmKPcsxHo91L4kgPs/6XF7Pu2LJNszq9lXYwi5CFWEeIiRaTX5ym7PPMdj4udDHkLSVC1//JVkZQg==", - "engines": { - "node": ">=0.8" - } - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -7590,141 +7579,6 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" }, - "node_modules/grpc": { - "version": "1.24.11", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.24.11.tgz", - "integrity": "sha512-8/AQdFCzCeCDWW3SoaMNp6ccbRvTQEH1O1u1uFtt29eWsg5gSZCJ3m6fbkduEIh3smY7WAPP+LgVJ5n3nZRxcA==", - "deprecated": "This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.", - "hasInstallScript": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.4", - "@types/bytebuffer": "^5.0.40", - "lodash.camelcase": "^4.3.0", - "lodash.clone": "^4.5.0", - "nan": "^2.13.2", - "protobufjs": "^5.0.3" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/grpc/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "node_modules/grpc/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/protobufjs": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", - "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", - "dependencies": { - "ascli": "~1", - "bytebuffer": "~5", - "glob": "^7.0.5", - "yargs": "^3.10.0" - }, - "bin": { - "pbjs": "bin/pbjs" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/grpc/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/grpc/node_modules/y18n": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", - "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==" - }, - "node_modules/grpc/node_modules/yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha512-ONJZiimStfZzhKamYvR/xvmgW3uEkAUFSP91y2caTEPhzF6uP2JfPiVZcq66b/YR0C3uitxSV7+T1x8p5bkmMg==", - "dependencies": { - "camelcase": "^2.0.1", - "cliui": "^3.0.3", - "decamelize": "^1.1.1", - "os-locale": "^1.4.0", - "string-width": "^1.0.1", - "window-size": "^0.1.4", - "y18n": "^3.2.0" - } - }, "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -8272,14 +8126,6 @@ "node": ">=4" } }, - "node_modules/invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ip": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", @@ -9975,17 +9821,6 @@ "node": ">=8" } }, - "node_modules/lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", - "dependencies": { - "invert-kv": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -10081,11 +9916,6 @@ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" }, - "node_modules/lodash.clone": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "integrity": "sha512-GhrVeweiTD6uTmmn5hV/lzgCQhccwReIVRLHp7LT4SopOjqEZ5BbX8b5WWEtAKasjmy8hR7ZPwsYlxRCku5odg==" - }, "node_modules/lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", @@ -11117,14 +10947,6 @@ "js-sdsl": "4.1.4" } }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/nwsapi": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", @@ -11261,11 +11083,6 @@ "node": ">= 0.8.0" } }, - "node_modules/optjs": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", - "integrity": "sha512-f8lTJm4LKirX+45xsFhuRNjA4f46QVLQKfGoNH7e2AEWS+24eM4XNH4pQ8Tw2LISCIvbST/wNcLdtgvgcqVaxA==" - }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -11289,17 +11106,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", - "dependencies": { - "lcid": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", @@ -12282,9 +12088,9 @@ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" }, "node_modules/protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.1.0.tgz", + "integrity": "sha512-rCuxKlh0UQKSMjrpIcTLbR5TtGQ52cgs1a5nUoPBAKOccdPblN67BJtjrbtudUJK6HmBvUdsmymyYOzO7lxZEA==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -12297,24 +12103,17 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^4.0.0" + "long": "^5.0.0" }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" + "engines": { + "node": ">=12.0.0" } }, - "node_modules/protobufjs/node_modules/@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, "node_modules/protobufjs/node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.0.tgz", + "integrity": "sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==" }, "node_modules/proxy-addr": { "version": "2.0.7", @@ -15667,17 +15466,6 @@ "bs58check": "<3.0.0" } }, - "node_modules/window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha512-2thx4pB0cV3h+Bw7QmMXcEbdmOzv9t0HFplJH/Lz6yu60hXYy5RT8rUu+wlIreVxWsGN20mo+MHeCSfUpQBwPw==", - "bin": { - "window-size": "cli.js" - }, - "engines": { - "node": ">= 0.10.0" - } - }, "node_modules/winston": { "version": "3.8.2", "resolved": "https://registry.npmjs.org/winston/-/winston-3.8.2.tgz", @@ -15915,7 +15703,6 @@ "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -15941,7 +15728,6 @@ "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, "engines": { "node": ">=10" } @@ -16542,13 +16328,32 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "optional": true }, + "@grpc/grpc-js": { + "version": "1.6.12", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.6.12.tgz", + "integrity": "sha512-JmvQ03OTSpVd9JTlj/K3IWHSz4Gk/JMLUTtW7Zb0KvO1LcOYGATh5cNuRYzCAeDR3O8wq+q8FZe97eO9MBrkUw==", + "requires": { + "@grpc/proto-loader": "^0.7.0", + "@types/node": ">=12.12.47" + } + }, "@grpc/proto-loader": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.6.tgz", - "integrity": "sha512-DT14xgw3PSzPxwS13auTEwxhMMOoz33DPUKNtmYK/QYbBSpLXJy78FGGs5yVoxVobEqPm4iW9MOIoz0A3bLTRQ==", + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.2.tgz", + "integrity": "sha512-jCdyLIT/tdQ1zhrbTQnJNK5nbDf0GoBpy5jVNywBzzMDF+Vs6uEaHnfz46dMtDxkvwrF2hzk5Z67goliceH0sA==", "requires": { + "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", - "protobufjs": "^6.8.6" + "long": "^4.0.0", + "protobufjs": "^7.0.0", + "yargs": "^16.2.0" + }, + "dependencies": { + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + } } }, "@humanwhocodes/config-array": { @@ -17738,15 +17543,6 @@ "resolved": "https://registry.npmjs.org/@types/btoa-lite/-/btoa-lite-1.0.0.tgz", "integrity": "sha512-wJsiX1tosQ+J5+bY5LrSahHxr2wT+uME5UDwdN1kg4frt40euqA+wzECkmq4t5QbveHiJepfdThgQrPw6KiSlg==" }, - "@types/bytebuffer": { - "version": "5.0.44", - "resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.44.tgz", - "integrity": "sha512-k1qonHga/SfQT02NF633i+7tIfKd+cfC/8pjnedcfuXJNMWooss/FkCgRMSnLf2WorLjbuH4bfgAZEbtyHBDoQ==", - "requires": { - "@types/long": "^3.0.0", - "@types/node": "*" - } - }, "@types/connect": { "version": "3.4.35", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", @@ -17933,9 +17729,9 @@ "integrity": "sha512-RoZphVtHbxPZizt4IcILciSWiC6dcn+eZ8oX9IWEYfDMcocdd42f7NPI6fQj+6zI8y4E0L7gu2pcZKLGTRaV9Q==" }, "@types/long": { - "version": "3.0.32", - "resolved": "https://registry.npmjs.org/@types/long/-/long-3.0.32.tgz", - "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" }, "@types/lru-cache": { "version": "5.1.1", @@ -18483,15 +18279,6 @@ "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", "dev": true }, - "ascli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", - "integrity": "sha512-JGQaNxpaCJz9Bd1JvVaFIHuWn9S+l3xhN17R0V/vmUDiGE0QngNMXhjlqpwqV+91plWz9Fg+Lt28Lj7p5vjs8A==", - "requires": { - "colour": "~0.7.1", - "optjs": "~3.2.2" - } - }, "asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -19814,11 +19601,6 @@ "convert-to-spaces": "^1.0.1" } }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==" - }, "collect-v8-coverage": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", @@ -19869,11 +19651,6 @@ "text-hex": "1.0.x" } }, - "colour": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", - "integrity": "sha512-Rel466v0EnmKPcsxHo91L4kgPs/6XF7Pu2LJNszq9lXYwi5CFWEeIiRaTX5ym7PPMdj4udDHkLSVC1//JVkZQg==" - }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -22097,111 +21874,6 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" }, - "grpc": { - "version": "1.24.11", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.24.11.tgz", - "integrity": "sha512-8/AQdFCzCeCDWW3SoaMNp6ccbRvTQEH1O1u1uFtt29eWsg5gSZCJ3m6fbkduEIh3smY7WAPP+LgVJ5n3nZRxcA==", - "requires": { - "@mapbox/node-pre-gyp": "^1.0.4", - "@types/bytebuffer": "^5.0.40", - "lodash.camelcase": "^4.3.0", - "lodash.clone": "^4.5.0", - "nan": "^2.13.2", - "protobufjs": "^5.0.3" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" - }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==" - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "protobufjs": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", - "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", - "requires": { - "ascli": "~1", - "bytebuffer": "~5", - "glob": "^7.0.5", - "yargs": "^3.10.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - } - }, - "y18n": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", - "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==" - }, - "yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha512-ONJZiimStfZzhKamYvR/xvmgW3uEkAUFSP91y2caTEPhzF6uP2JfPiVZcq66b/YR0C3uitxSV7+T1x8p5bkmMg==", - "requires": { - "camelcase": "^2.0.1", - "cliui": "^3.0.3", - "decamelize": "^1.1.1", - "os-locale": "^1.4.0", - "string-width": "^1.0.1", - "window-size": "^0.1.4", - "y18n": "^3.2.0" - } - } - } - }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -22604,11 +22276,6 @@ "p-is-promise": "^1.1.0" } }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==" - }, "ip": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", @@ -23868,14 +23535,6 @@ "package-json": "^6.3.0" } }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", - "requires": { - "invert-kv": "^1.0.0" - } - }, "leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -23952,11 +23611,6 @@ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" }, - "lodash.clone": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "integrity": "sha512-GhrVeweiTD6uTmmn5hV/lzgCQhccwReIVRLHp7LT4SopOjqEZ5BbX8b5WWEtAKasjmy8hR7ZPwsYlxRCku5odg==" - }, "lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", @@ -24800,11 +24454,6 @@ "js-sdsl": "4.1.4" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==" - }, "nwsapi": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", @@ -24910,11 +24559,6 @@ "word-wrap": "^1.2.3" } }, - "optjs": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", - "integrity": "sha512-f8lTJm4LKirX+45xsFhuRNjA4f46QVLQKfGoNH7e2AEWS+24eM4XNH4pQ8Tw2LISCIvbST/wNcLdtgvgcqVaxA==" - }, "ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -24932,14 +24576,6 @@ "wcwidth": "^1.0.1" } }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", - "requires": { - "lcid": "^1.0.0" - } - }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", @@ -25662,9 +25298,9 @@ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" }, "protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.1.0.tgz", + "integrity": "sha512-rCuxKlh0UQKSMjrpIcTLbR5TtGQ52cgs1a5nUoPBAKOccdPblN67BJtjrbtudUJK6HmBvUdsmymyYOzO7lxZEA==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -25676,20 +25312,14 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^4.0.0" + "long": "^5.0.0" }, "dependencies": { - "@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.0.tgz", + "integrity": "sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==" } } }, @@ -28319,11 +27949,6 @@ "bs58check": "<3.0.0" } }, - "window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha512-2thx4pB0cV3h+Bw7QmMXcEbdmOzv9t0HFplJH/Lz6yu60hXYy5RT8rUu+wlIreVxWsGN20mo+MHeCSfUpQBwPw==" - }, "winston": { "version": "3.8.2", "resolved": "https://registry.npmjs.org/winston/-/winston-3.8.2.tgz", @@ -28503,7 +28128,6 @@ "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, "requires": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -28517,8 +28141,7 @@ "yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" } } }, diff --git a/package.json b/package.json index c717acc09..adf64b655 100644 --- a/package.json +++ b/package.json @@ -18,19 +18,27 @@ "dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js", "build-binaries": "rm -rf dist/ && tsc && cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && pkg . --target node12-alpine-x64,node12-macos-x64 --out-path binaries", "start-ecs": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && export NODE_ENV=production && node --max-old-space-size=128 dist/app.js", - "lint": "eslint ./src/*.ts ./src/**/*.ts --fix --max-warnings 466" + "lint": "eslint ./src/*.ts ./src/**/*.ts --fix --max-warnings 434" }, "keywords": [], "author": "", "license": "ISC", "ava": { - "files": ["!src/tests/utils/**", "!src/tests/types"], - "extensions": ["ts"], - "require": ["ts-node/register"] + "files": [ + "!src/tests/utils/**", + "!src/tests/types" + ], + "extensions": [ + "ts" + ], + "require": [ + "ts-node/register" + ] }, "dependencies": { "@boltz/bolt11": "^1.2.7", - "@grpc/proto-loader": "^0.5.3", + "@grpc/grpc-js": "^1.6.12", + "@grpc/proto-loader": "^0.7.2", "@octokit/webhooks-types": "^5.2.0", "@scout_apm/scout-apm": "^0.1.10", "async": "^2.6.4", @@ -55,7 +63,6 @@ "fetch-blob": "^1.0.5", "form-data": "^3.0.0", "fs": "^0.0.1-security", - "grpc": "^1.24.3", "helmet": "^3.21.1", "ip": "^1.1.5", "jasmine": "^3.5.0", @@ -130,7 +137,10 @@ "socket.io-client-legacy": "npm:socket.io-client@^2.4.0" }, "pkg": { - "assets": ["config/*", "dist/config/*"] + "assets": [ + "config/*", + "dist/config/*" + ] }, "husky": { "hooks": { diff --git a/src/controllers/invoices.ts b/src/controllers/invoices.ts index 41fed17ea..527511b22 100644 --- a/src/controllers/invoices.ts +++ b/src/controllers/invoices.ts @@ -223,7 +223,8 @@ export const listInvoices = async (req: Req, res: Response): Promise => { const lightning = await Lightning.loadLightning() - lightning.listInvoices({}, (err, response) => { + // TODO ts complaining + ;(lightning).listInvoices({}, (err, response) => { sphinxLogger.info({ err, response }) if (err == null) { res.status(200) diff --git a/src/controllers/queries.ts b/src/controllers/queries.ts index aba993a02..e78acf54a 100644 --- a/src/controllers/queries.ts +++ b/src/controllers/queries.ts @@ -93,8 +93,8 @@ async function getPendingAccountings(): Promise { id: a.id, pubkey: a.pubkey, onchainAddress: utxo.address, - amount: utxo.amount_sat, - confirmations: utxo.confirmations, + amount: parseInt(utxo.amount_sat), + confirmations: parseInt(utxo.confirmations), sourceApp: a.sourceApp, date: a.date, onchainTxid: onchainTxid, @@ -139,11 +139,16 @@ async function genChannelAndConfirmAccounting(acc: Accounting) { push_sat: 0, sat_per_byte, }) + if (!r) { + return + } sphinxLogger.info(`[WATCH]=> CHANNEL OPENED! ${r}`) - const fundingTxidRev = Buffer.from(r.funding_txid_bytes).toString('hex') - const fundingTxid = (fundingTxidRev.match(/.{2}/g) as any) - .reverse() - .join('') + let fundingTxid: string + if (r.funding_txid === 'funding_txid_str') { + fundingTxid = r.funding_txid_str + } else { + fundingTxid = r.funding_txid_bytes.reverse().toString('hex') + } await models.Accounting.update( { status: constants.statuses.received, diff --git a/src/crypto/rsa.ts b/src/crypto/rsa.ts index 1e16b5ac2..8e852c409 100644 --- a/src/crypto/rsa.ts +++ b/src/crypto/rsa.ts @@ -4,7 +4,7 @@ const BLOCK_SIZE = 256 const MAX_CHUNK_SIZE = BLOCK_SIZE - 11 // 11 is the PCKS1 padding export interface KeyPair { - public: string, + public: string private: string } @@ -22,7 +22,7 @@ export function encrypt(key: string, txt: string): string { }, buf.subarray(i * MAX_CHUNK_SIZE, i * MAX_CHUNK_SIZE + MAX_CHUNK_SIZE) ) - finalBuf = Buffer.concat([ finalBuf, f ]) + finalBuf = Buffer.concat([finalBuf, f]) } return finalBuf.toString('base64') } catch (e) { @@ -53,7 +53,7 @@ export function decrypt(privateKey: string | Buffer, enc: string): string { } export function genKeys(): Promise { - return new Promise(resolve => { + return new Promise((resolve) => { crypto.generateKeyPair( 'rsa', { @@ -117,8 +117,11 @@ const beginPriv = '-----BEGIN RSA PRIVATE KEY-----' const endPriv = '-----END RSA PRIVATE KEY-----' const cert = { - unpub: (key: string): string => key.replace(beginPub, '').replace(endPub, '').trim(), - unpriv: (key: string): string => key.replace(beginPriv, '').replace(endPriv, '').trim(), - pub: (key: string | Buffer): string => beginPub + '\n' + key + '\n' + endPub, - priv: (key: string | Buffer): string => beginPriv + '\n' + key + '\n' + endPriv + unpub: (key: string): string => + key.replace(beginPub, '').replace(endPub, '').trim(), + unpriv: (key: string): string => + key.replace(beginPriv, '').replace(endPriv, '').trim(), + pub: (key: string | Buffer): string => beginPub + '\n' + key + '\n' + endPub, + priv: (key: string | Buffer): string => + beginPriv + '\n' + key + '\n' + endPriv, } diff --git a/src/grpc/greenlight.ts b/src/grpc/greenlight.ts index 70b19a939..29ce4a2db 100644 --- a/src/grpc/greenlight.ts +++ b/src/grpc/greenlight.ts @@ -1,5 +1,8 @@ import * as fs from 'fs' -import * as grpc from 'grpc' +import * as grpc from '@grpc/grpc-js' +import { loadProto } from './proto' +import { NodeClient } from './types/greenlight/Node' +import type { SchedulerClient } from './types/scheduler/Scheduler' import libhsmd from './libhsmd' import { loadConfig } from '../utils/config' import * as ByteBuffer from 'bytebuffer' @@ -27,7 +30,7 @@ export function keepalive(): void { }, 59000) } -let schedulerClient = null +let schedulerClient: SchedulerClient | undefined const loadSchedulerCredentials = () => { const glCert = fs.readFileSync(config.scheduler_tls_location) @@ -36,10 +39,10 @@ const loadSchedulerCredentials = () => { return grpc.credentials.createSsl(glCert, glPriv, glChain) } -function loadScheduler() { +function loadScheduler(): SchedulerClient { // 35.236.110.178:2601 - const descriptor = grpc.load('proto/scheduler.proto') - const scheduler: any = descriptor.scheduler + const descriptor = loadProto('scheduler') + const scheduler = descriptor.scheduler const options = { 'grpc.ssl_target_name_override': 'localhost', } @@ -109,7 +112,7 @@ interface ScheduleResponse { } export function schedule(pubkey: string): Promise { sphinxLogger.info('=> Greenlight schedule') - return new Promise(async (resolve, reject) => { + return new Promise((resolve, reject) => { try { const s = loadScheduler() s.schedule( @@ -118,7 +121,7 @@ export function schedule(pubkey: string): Promise { }, (err, response) => { // console.log('=> schedule', err, response); - if (!err) { + if (!err && response) { GREENLIGHT_GRPC_URI = response.grpc_uri resolve(response) } else { @@ -185,7 +188,7 @@ async function registerGreenlight( } export function get_challenge(node_id: string): Promise { - return new Promise(async (resolve, reject) => { + return new Promise((resolve, reject) => { try { const s = loadScheduler() s.getChallenge( @@ -194,7 +197,7 @@ export function get_challenge(node_id: string): Promise { scope: 'REGISTER', }, (err, response) => { - if (!err) { + if (!err && response) { resolve(Buffer.from(response.challenge).toString('hex')) } else { reject(err) @@ -227,7 +230,7 @@ export function register( challenge: string, signature: string ): Promise { - return new Promise(async (resolve, reject) => { + return new Promise((resolve, reject) => { try { const s = loadScheduler() s.register( @@ -240,7 +243,7 @@ export function register( }, (err, response) => { sphinxLogger.info(`${err} ${response}`) - if (!err) { + if (!err && response) { resolve(response) } else { reject(err) @@ -258,7 +261,7 @@ export function recover( challenge: string, signature: string ): Promise { - return new Promise(async (resolve, reject) => { + return new Promise((resolve, reject) => { try { const s = loadScheduler() s.recover( @@ -269,7 +272,7 @@ export function recover( }, (err, response) => { sphinxLogger.info(`${err} ${response}`) - if (!err) { + if (!err && response) { resolve(response) } else { reject(err) @@ -292,15 +295,12 @@ export interface HsmRequest { context: HsmRequestContext raw: Buffer } -interface HsmResponse { - request_id: number - raw: ByteBuffer -} + export async function streamHsmRequests(): Promise { const capabilities_bitset = 1087 // 1 + 2 + 4 + 8 + 16 + 32 + 1024 try { const lightning = await loadLightning(true) // try proxy - const call = lightning.streamHsmRequests({}) + const call = (lightning).streamHsmRequests({}) call.on('data', async function (response) { sphinxLogger.info(`DATA ${response}`) try { @@ -324,8 +324,8 @@ export async function streamHsmRequests(): Promise { response.raw.toString('hex') ) } - lightning.respondHsmRequest( - { + ;(lightning).respondHsmRequest( + { request_id: response.request_id, raw: ByteBuffer.fromHex(sig), }, @@ -342,7 +342,7 @@ export async function streamHsmRequests(): Promise { sphinxLogger.info(`[HSMD] Status ${status.code} ${status}`) }) call.on('error', function (err) { - sphinxLogger.error(`[HSMD] Error ${err.code}`) + sphinxLogger.error(`[HSMD] Error ${err.name} ${err.message}`) }) call.on('end', function () { sphinxLogger.info(`[HSMD] Closed stream`) diff --git a/src/grpc/interfaces.ts b/src/grpc/interfaces.ts index 6368dc94b..14d409727 100644 --- a/src/grpc/interfaces.ts +++ b/src/grpc/interfaces.ts @@ -40,7 +40,7 @@ export interface GetInfoResponse { testnet: boolean } interface GreenlightAddress { - type: number + type: string addr: string port: number } @@ -173,10 +173,10 @@ export function addInvoiceResponse( /* LIST CHANNELS */ interface ChannelConstraints { csv_delay: number - chan_reserve_sat: number - dust_limit_sat: number - max_pending_amt_msat: number - min_htlc_msat: number + chan_reserve_sat: string + dust_limit_sat: string + max_pending_amt_msat: string + min_htlc_msat: string max_accepted_htlcs: number } interface HTLC { @@ -199,10 +199,10 @@ export interface Channel { commit_fee: string commit_weight: string fee_per_kw: string - unsettled_balance: number - total_satoshis_sent: number - total_satoshis_received: number - num_updates: number + unsettled_balance: string + total_satoshis_sent: string + total_satoshis_received: string + num_updates: string pending_htlcs: HTLC[] csv_delay: number private: boolean @@ -210,22 +210,22 @@ export interface Channel { chan_status_flags: string local_chan_reserve_sat: string remote_chan_reserve_sat: string - lifetime: number - uptime: number + lifetime: string + uptime: string close_address: string - push_amount_sat: number + push_amount_sat: string thaw_height: number - local_constraints: ChannelConstraints - remote_constraints: ChannelConstraints + local_constraints: ChannelConstraints | null + remote_constraints: ChannelConstraints | null } export interface ListChannelsResponse { channels: Channel[] } interface GreenlightHTLC { direction: string - id: number + id: string amount: string // int64 - expiry: number + expiry: string payment_hash: string state: string local_trimmed: boolean @@ -351,13 +351,13 @@ export function listPeersResponse( } export type Buf = Buffer | ByteBuffer | ArrayBuffer -type DestCustomRecords = { [k: string]: Buf } +type DestCustomRecords = { [k: string]: Buffer } export interface KeysendRequest { amt: number final_cltv_delta: number - dest: Buf + dest: Buffer dest_custom_records: DestCustomRecords - payment_hash: Buf + payment_hash: Buffer dest_features: number[] route_hints?: RouteHint[] fee_limit?: { [k: string]: number } @@ -376,7 +376,7 @@ interface GreenlightTLV { type: string value: Buf } -interface GreenlightKeysendRequest { +export interface GreenlightKeysendRequest { node_id: Buf amount: GreenlightAmount label: string @@ -441,7 +441,7 @@ export interface Route { export interface SendPaymentResponse { payment_error: string payment_preimage: Buf - payment_route: Route + payment_route?: Route | null payment_hash: Buf } enum GreenlightPaymentStatus { @@ -496,13 +496,13 @@ enum InvoiceHTLCState { } interface InvoiceHTLC { chan_id: string - htlc_index: number + htlc_index: string amt_msat: string accept_height: number accept_time: string resolve_time: string expiry_height: number - state: InvoiceHTLCState + state: keyof typeof InvoiceHTLCState custom_records: DestCustomRecords } export interface Invoice { @@ -526,7 +526,7 @@ export interface Invoice { amt_paid: string amt_paid_sat: string amt_paid_msat: string - state: InvoiceState + state: keyof typeof InvoiceState htlcs: InvoiceHTLC[] features: { [k: string]: any } is_keysend: boolean @@ -560,7 +560,10 @@ export function subscribeResponse( r.extratlvs.forEach((tlv) => { // console.log("TLV TYPE", tlv.type, typeof tlv.type, `${LND_KEYSEND_KEY}`) // if(tlv.type===`${LND_KEYSEND_KEY}`) is_keysend=true - custom_records[tlv.type] = tlv.value + custom_records[tlv.type] = + tlv.value instanceof ByteBuffer + ? tlv.value.toBuffer() + : Buffer.from(tlv.value) }) } if (r.label.startsWith('keysend')) is_keysend = true @@ -590,7 +593,7 @@ export interface Addr { export interface ConnectPeerArgs { addr: Addr } -interface GreenlightConnectPeerArgs { +export interface GreenlightConnectPeerArgs { node_id: string addr: string } diff --git a/src/grpc/lightning.ts b/src/grpc/lightning.ts index 29607d0a0..c672d7bc4 100644 --- a/src/grpc/lightning.ts +++ b/src/grpc/lightning.ts @@ -1,6 +1,11 @@ -import * as ByteBuffer from 'bytebuffer' import * as fs from 'fs' -import * as grpc from 'grpc' +import * as grpc from '@grpc/grpc-js' +import { loadProto } from './proto' +import { LightningClient } from './types/lnrpc/Lightning' +import { LightningClient as ProxyLightningClient } from './types/lnrpc_proxy/Lightning' +import { NodeClient } from './types/greenlight/Node' +import { RouterClient } from './types/routerrpc/Router' +import { WalletUnlockerClient } from './types/lnrpc/WalletUnlocker' import { sleep } from '../helpers' import * as sha from 'js-sha256' import * as crypto from 'crypto' @@ -16,10 +21,9 @@ import libhsmd from './libhsmd' import { get_greenlight_grpc_uri } from './greenlight' import { Req } from '../types' -// var protoLoader = require('@grpc/proto-loader') const config = loadConfig() const LND_IP = config.lnd_ip || 'localhost' -// const IS_LND = config.lightning_provider === "LND"; +const IS_LND = config.lightning_provider === 'LND' const IS_GREENLIGHT = config.lightning_provider === 'GREENLIGHT' export const LND_KEYSEND_KEY = 5482373484 @@ -27,9 +31,26 @@ export const SPHINX_CUSTOM_RECORD_KEY = 133773310 const FEE_LIMIT_SAT = 10000 -let lightningClient = null -let walletUnlocker = null -let routerClient = null +let lightningClient: + | LightningClient + | ProxyLightningClient + | NodeClient + | undefined +let walletUnlocker: WalletUnlockerClient | undefined +let routerClient: RouterClient | undefined + +// typescript helpers for types +export function isLND( + client: LightningClient | ProxyLightningClient | NodeClient | undefined +): client is LightningClient | ProxyLightningClient { + return IS_LND +} + +export function isGL( + client: LightningClient | ProxyLightningClient | NodeClient | undefined +): client is NodeClient { + return IS_GREENLIGHT +} export function loadCredentials(macName?: string): grpc.ChannelCredentials { try { @@ -58,15 +79,29 @@ const loadGreenlightCredentials = () => { return grpc.credentials.createSsl(glCert, glPriv, glChain) } +export async function loadLightning(): Promise +export async function loadLightning( + tryProxy: false, + ownerPubkey?: string, + noCache?: boolean +): Promise export async function loadLightning( tryProxy?: boolean, ownerPubkey?: string, noCache?: boolean -): Promise { +): Promise +export async function loadLightning( + tryProxy?: boolean, + ownerPubkey?: string, + noCache?: boolean +): Promise { // only if specified AND available if (tryProxy && isProxy() && ownerPubkey) { - const pl = await loadProxyLightning(ownerPubkey) - return pl + lightningClient = await loadProxyLightning(ownerPubkey) + if (!lightningClient) { + throw new Error('no lightning client') + } + return lightningClient } if (lightningClient && !noCache) { return lightningClient @@ -74,36 +109,36 @@ export async function loadLightning( if (IS_GREENLIGHT) { const credentials = loadGreenlightCredentials() - const descriptor = grpc.load('proto/greenlight.proto') - const greenlight: any = descriptor.greenlight + const descriptor = loadProto('greenlight') + const greenlight = descriptor.greenlight const options = { 'grpc.ssl_target_name_override': 'localhost', } const uri = get_greenlight_grpc_uri().split('//') - if (!uri[1]) return - lightningClient = new greenlight.Node(uri[1], credentials, options) - return lightningClient + if (!uri[1]) { + throw new Error('no lightning client') + } + return (lightningClient = new greenlight.Node(uri[1], credentials, options)) } // LND const credentials = loadCredentials() - const lnrpcDescriptor = grpc.load('proto/lightning.proto') - const lnrpc: any = lnrpcDescriptor.lnrpc - lightningClient = new lnrpc.Lightning( + const lnrpcDescriptor = loadProto('lightning') + const lnrpc = lnrpcDescriptor.lnrpc + return (lightningClient = new lnrpc.Lightning( LND_IP + ':' + config.lnd_port, credentials - ) - return lightningClient + )) } -export function loadWalletUnlocker(): any { +export function loadWalletUnlocker(): WalletUnlockerClient { if (walletUnlocker) { return walletUnlocker } else { try { const credentials = loadCredentials() - const lnrpcDescriptor = grpc.load('proto/walletunlocker.proto') - const lnrpc: any = lnrpcDescriptor.lnrpc + const lnrpcDescriptor = loadProto('walletunlocker') + const lnrpc = lnrpcDescriptor.lnrpc walletUnlocker = new lnrpc.WalletUnlocker( LND_IP + ':' + config.lnd_port, credentials @@ -111,23 +146,21 @@ export function loadWalletUnlocker(): any { return walletUnlocker } catch (e) { sphinxLogger.error(e) + throw e } } } export function unlockWallet(pwd: string): Promise { - return new Promise(async function (resolve, reject) { - const wu = await loadWalletUnlocker() - wu.unlockWallet( - { wallet_password: ByteBuffer.fromUTF8(pwd) }, - (err, response) => { - if (err) { - reject(err) - return - } - resolve(response) + return new Promise(function (resolve, reject) { + const wu = loadWalletUnlocker() + wu.unlockWallet({ wallet_password: Buffer.from(pwd, 'utf-8') }, (err) => { + if (err) { + reject(err) + return } - ) + resolve() + }) }) } @@ -164,14 +197,14 @@ export async function queryRoute( ownerPubkey?: string ): Promise { sphinxLogger.info('queryRoute', logging.Lightning) - if (IS_GREENLIGHT) { + const lightning = await loadLightning(true, ownerPubkey) // try proxy + if (isGL(lightning)) { // shim for now return { success_prob: 1, routes: [], } } - const lightning = await loadLightning(true, ownerPubkey) // try proxy return new Promise((resolve, reject) => { const options: { [k: string]: any } = { pub_key, amt } if (route_hint && route_hint.includes(':')) { @@ -184,7 +217,8 @@ export async function queryRoute( }, ] } - lightning.queryRoutes(options, (err, response) => { + // TODO remove any + ;(lightning).queryRoutes(options, (err, response) => { if (err) { reject(err) return @@ -204,7 +238,8 @@ export async function newAddress( ): Promise { const lightning = await loadLightning() return new Promise((resolve, reject) => { - lightning.newAddress({ type }, (err, response) => { + // TODO now lnd only + ;(lightning).newAddress({ type }, (err, response) => { if (err) { reject(err) return @@ -226,13 +261,13 @@ export async function sendPayment( sphinxLogger.info('sendPayment', logging.Lightning) const lightning = await loadLightning(true, ownerPubkey) // try proxy return new Promise((resolve, reject) => { - if (isProxy()) { + if (isProxy(lightning)) { const opts = { payment_request, fee_limit: { fixed: FEE_LIMIT_SAT }, } lightning.sendPaymentSync(opts, (err, response) => { - if (err) { + if (err || !response) { reject(err) } else { if (response.payment_error) { @@ -243,22 +278,23 @@ export async function sendPayment( } }) } else { - if (IS_GREENLIGHT) { + if (isGL(lightning)) { lightning.pay( { bolt11: payment_request, timeout: 12, }, (err, response) => { - if (err == null) { - resolve(interfaces.keysendResponse(response)) + if (err == null && response) { + // TODO greenlight types + resolve(interfaces.keysendResponse(response)) } else { reject(err) } } ) } else { - const call = lightning.sendPayment({ payment_request }) + const call = lightning.sendPayment() call.on('data', async (response) => { if (response.payment_error) { reject(response.payment_error) @@ -286,29 +322,29 @@ export function keysend( opts: KeysendOpts, ownerPubkey?: string ): Promise { - sphinxLogger.info('keysend', logging.Lightning) + sphinxLogger.info(['keysend', opts.dest], logging.Lightning) return new Promise(async function (resolve, reject) { try { - const preimage = ByteBuffer.wrap(crypto.randomBytes(32)) + const preimage = crypto.randomBytes(32) const dest_custom_records = { [`${LND_KEYSEND_KEY}`]: preimage, } if (opts.extra_tlv) { Object.entries(opts.extra_tlv).forEach(([k, v]) => { - dest_custom_records[k] = ByteBuffer.fromUTF8(v) + dest_custom_records[k] = Buffer.from(v, 'utf-8') }) } const options: interfaces.KeysendRequest = { amt: Math.max(opts.amt, constants.min_sat_amount || 3), final_cltv_delta: 10, - dest: ByteBuffer.fromHex(opts.dest), + dest: Buffer.from(opts.dest, 'hex'), dest_custom_records, - payment_hash: sha.sha256.arrayBuffer(preimage.toBuffer()), + payment_hash: Buffer.from(sha.sha256.arrayBuffer(preimage)), dest_features: [9], } if (opts.data) { options.dest_custom_records[`${SPHINX_CUSTOM_RECORD_KEY}`] = - ByteBuffer.fromUTF8(opts.data) + Buffer.from(opts.data, 'utf-8') } // add in route hints if (opts.route_hint && opts.route_hint.includes(':')) { @@ -322,12 +358,12 @@ export function keysend( ] } // sphinx-proxy sendPaymentSync - if (isProxy()) { + const lightning = await loadLightning(true, ownerPubkey) // try proxy + if (isProxy(lightning)) { // console.log("SEND sendPaymentSync", options) options.fee_limit = { fixed: FEE_LIMIT_SAT } - const lightning = await loadLightning(true, ownerPubkey) // try proxy lightning.sendPaymentSync(options, (err, response) => { - if (err) { + if (err || !response) { reject(err) } else { if (response.payment_error) { @@ -338,13 +374,17 @@ export function keysend( } }) } else { - if (IS_GREENLIGHT) { - const lightning = await loadLightning(false, ownerPubkey) - const req = interfaces.keysendRequest(options) + const lightning = await loadLightning(false, ownerPubkey) + if (isGL(lightning)) { + const req = ( + interfaces.keysendRequest(options) + ) // console.log("KEYSEND REQ", JSON.stringify(req)) - lightning.keysend(req, function (err, response) { - if (err == null) { - resolve(interfaces.keysendResponse(response)) + // TODO wrong buffer type: Type 'Buf' is not assignable to type 'string | Buffer | Uint8Array | undefined'. + lightning.keysend(req, function (err, response) { + if (err == null && response) { + // TODO greenlight type + resolve(interfaces.keysendResponse(response)) } else { reject(err) } @@ -354,7 +394,7 @@ export function keysend( // new sendPayment (with optional route hints) options.fee_limit_sat = FEE_LIMIT_SAT options.timeout_seconds = 16 - const router = await loadRouter() + const router = loadRouter() const call = router.sendPaymentV2(options) call.on('data', function (payment) { const state = payment.status || payment.state @@ -384,13 +424,13 @@ export function keysend( }) } -export function loadRouter(): any { +export function loadRouter(): RouterClient { if (routerClient) { return routerClient } else { const credentials = loadCredentials('router.macaroon') - const descriptor = grpc.load('proto/router.proto') - const router: any = descriptor.routerrpc + const descriptor = loadProto('router') + const router = descriptor.routerrpc routerClient = new router.Router( LND_IP + ':' + config.lnd_port, credentials @@ -467,7 +507,8 @@ export function listInvoices(): Promise { sphinxLogger.info('listInvoices', logging.Lightning) return new Promise(async (resolve, reject) => { const lightning = await loadLightning() - lightning.listInvoices( + // TODO gl support? proxy? + ;(lightning).listInvoices( { num_max_invoices: 100000, reversed: true, @@ -488,7 +529,10 @@ export async function listAllInvoices(): Promise { return paginateInvoices(40) } -async function paginateInvoices(limit: number, i = 0): Promise { +async function paginateInvoices( + limit: number, + i = 0 +): Promise { try { const r = await listInvoicesPaginated(limit, i) const lastOffset = parseInt(r.first_index_offset) @@ -501,10 +545,13 @@ async function paginateInvoices(limit: number, i = 0): Promise { +function listInvoicesPaginated( + limit: number, + offset: number +): Promise<{ first_index_offset: string; invoices: interfaces.Invoice[] }> { return new Promise(async (resolve, reject) => { const lightning = await loadLightning() - lightning.listInvoices( + ;(lightning).listInvoices( { num_max_invoices: limit, index_offset: offset, @@ -526,7 +573,10 @@ export async function listAllPayments(): Promise { return pays } -async function paginatePayments(limit: number, i = 0): Promise { +async function paginatePayments( + limit: number, + i = 0 +): Promise { try { const r = await listPaymentsPaginated(limit, i) const lastOffset = parseInt(r.first_index_offset) // this is "first" cuz its in reverse (lowest index) @@ -539,10 +589,13 @@ async function paginatePayments(limit: number, i = 0): Promise { +export function listPaymentsPaginated( + limit: number, + offset: number +): Promise<{ first_index_offset: string; payments: interfaces.Payment[] }> { return new Promise(async (resolve, reject) => { const lightning = await loadLightning() - lightning.listPayments( + ;(lightning).listPayments( { max_payments: limit, index_offset: offset, @@ -556,11 +609,11 @@ export function listPaymentsPaginated(limit: number, offset: number): Promise<{ }) } -export function listAllPaymentsFull(): Promise<{ payments: interfaces.Payment[] }> { +export function listAllPaymentsFull(): Promise { sphinxLogger.info('=> list all payments') return new Promise(async (resolve, reject) => { const lightning = await loadLightning() - lightning.listPayments({}, (err, response) => { + ;(lightning).listPayments({}, (err, response) => { if (!err && response && response.payments) { resolve(response.payments) } else { @@ -571,7 +624,10 @@ export function listAllPaymentsFull(): Promise<{ payments: interfaces.Payment[] } // msg is hex -export async function signMessage(msg: string, ownerPubkey?: string): Promise { +export async function signMessage( + msg: string, + ownerPubkey?: string +): Promise { return signBuffer(Buffer.from(msg, 'hex'), ownerPubkey) } @@ -579,6 +635,7 @@ export function signBuffer(msg: Buffer, ownerPubkey?: string): Promise { sphinxLogger.info('signBuffer', logging.Lightning) return new Promise(async (resolve, reject) => { try { + const lightning = await loadLightning(true, ownerPubkey) // try proxy if (IS_GREENLIGHT) { const pld = interfaces.greenlightSignMessagePayload(msg) const sig = libhsmd.Handle(1024, 0, null, pld) @@ -591,11 +648,10 @@ export function signBuffer(msg: Buffer, ownerPubkey?: string): Promise { finalRecid.writeUInt8(ecRecid, 0) const finalSig = Buffer.concat([finalRecid, sigBytes], 65) resolve(zbase32.encode(finalSig)) - } else { - const lightning = await loadLightning(true, ownerPubkey) // try proxy + } else if (isLND(lightning)) { const options = { msg } lightning.signMessage(options, function (err, sig) { - if (err || !sig.signature) { + if (err || !sig || !sig.signature) { reject(err) } else { resolve(sig.signature) @@ -629,6 +685,7 @@ export function verifyMessage( sphinxLogger.info('verifyMessage', logging.Lightning) return new Promise(async (resolve, reject) => { try { + const lightning = await loadLightning(true, ownerPubkey) // try proxy if (IS_GREENLIGHT) { const fullBytes = zbase32.decode(sig) const sigBytes = fullBytes.slice(1) @@ -660,20 +717,22 @@ export function verifyMessage( valid: true, pubkey: recoveredPubkey.toString('hex'), }) - } else { - const lightning = await loadLightning(true, ownerPubkey) // try proxy - const options = { - msg: ByteBuffer.fromHex(msg), - signature: sig, // zbase32 encoded string - } - lightning.verifyMessage(options, function (err, res) { - // console.log(res) - if (err || !res.pubkey) { - reject(err) - } else { - resolve(res) + } else if (isLND(lightning)) { + // sig is zbase32 encoded + lightning.verifyMessage( + { + msg: Buffer.from(msg, 'hex'), + signature: sig, + }, + function (err, res) { + // console.log(res) + if (err || !res || !res.pubkey) { + reject(err) + } else { + resolve(res) + } } - }) + ) } } catch (e) { reject(e) @@ -696,12 +755,14 @@ export async function getInfo( // log('getInfo') return new Promise(async (resolve, reject) => { try { + // try proxy const lightning = await loadLightning( tryProxy === false ? false : true, undefined, noCache - ) // try proxy - lightning.getInfo({}, function (err, response) { + ) + // TODO remove any + ;(lightning).getInfo({}, function (err, response) { if (err == null) { resolve(interfaces.getInfoResponse(response)) } else { @@ -741,8 +802,8 @@ export async function listPeers( return new Promise(async (resolve, reject) => { const lightning = await loadLightning(true, ownerPubkey) const opts = interfaces.listPeersRequest(args) - lightning.listPeers(opts, function (err, response) { - if (err == null) { + ;(lightning).listPeers(opts, function (err, response) { + if (err == null && response) { resolve(interfaces.listPeersResponse(response)) } else { reject(err) @@ -758,27 +819,51 @@ export async function listChannels( sphinxLogger.info('listChannels', logging.Lightning) return new Promise(async (resolve, reject) => { const lightning = await loadLightning(true, ownerPubkey) // try proxy - const cmd = interfaces.listChannelsCommand() const opts = interfaces.listChannelsRequest(args) - lightning[cmd](opts, function (err, response) { - if (err == null) { - resolve(interfaces.listChannelsResponse(response)) - } else { - reject(err) - } - }) + if (isGL(lightning)) { + lightning.listPeers(opts, function (err, response) { + if (err == null && response) { + resolve(interfaces.listChannelsResponse(response)) + } else { + reject(err) + } + }) + } else if (isLND(lightning)) { + // TODO proxy? + (lightning).listChannels(opts, function (err, response) { + if (err == null && response) { + resolve(interfaces.listChannelsResponse(response)) + } else { + reject(err) + } + }) + } }) } -export async function pendingChannels( - ownerPubkey?: string -): Promise<{ [k: string]: any }> { +// if separate fields get used in relay, it might be worth to add the types, just copy em from src/grpc/types with go to declaration of your ide +export async function pendingChannels(ownerPubkey?: string): Promise<{ + total_limbo_balance: string + pending_open_channels: unknown[] + pending_closing_channels: unknown[] + pending_force_closing_channels: unknown[] + waiting_close_channels: unknown[] +}> { sphinxLogger.info('pendingChannels', logging.Lightning) - if (IS_GREENLIGHT) return [] - return new Promise(async (resolve, reject) => { - const lightning = await loadLightning(true, ownerPubkey) // try proxy - lightning.pendingChannels({}, function (err, response) { - if (err == null) { + const lightning = await loadLightning(true, ownerPubkey) // try proxy + if (isGL(lightning)) { + return { + total_limbo_balance: '0', + pending_open_channels: [], + pending_closing_channels: [], + pending_force_closing_channels: [], + waiting_close_channels: [], + } + } + return new Promise((resolve, reject) => { + // no pendingChannels on proxy?????? + ;(lightning).pendingChannels({}, function (err, response) { + if (err == null && response) { resolve(response) } else { reject(err) @@ -787,42 +872,73 @@ export async function pendingChannels( }) } +/** return void for LND, { node_id: string, features: string } for greenlight*/ export async function connectPeer( args: interfaces.ConnectPeerArgs -): Promise<{ [k: string]: any }> { +): Promise { sphinxLogger.info('connectPeer', logging.Lightning) return new Promise(async (resolve, reject) => { const lightning = await loadLightning() - const req = interfaces.connectPeerRequest(args) - lightning.connectPeer(req, function (err, response) { - if (err == null) { - resolve(response) - } else { - reject(err) - } - }) + if (isGL(lightning)) { + const req = interfaces.connectPeerRequest(args) + lightning.connectPeer( + req, + function (err, response) { + if (err == null && response) { + resolve(response) + } else { + reject(err) + } + } + ) + } else if (isLND(lightning)) { + lightning.connectPeer(args, function (err, response) { + if (err == null && response) { + resolve() + } else { + reject(err) + } + }) + } }) } export interface OpenChannelArgs { - node_pubkey: any // bytes + node_pubkey: string | Buffer // bytes local_funding_amount: number push_sat: number // 0 sat_per_byte: number // 75? } +export type OpenChannelResponse = + | { + funding_txid_bytes: never + funding_txid_str: string + output_index: number + funding_txid: 'funding_txid_str' + } + | { + funding_txid_bytes: Buffer + funding_txid_str: never + output_index: number + funding_txid: 'funding_txid_bytes' + } +/** does nothing and returns nothing for greenlight */ export async function openChannel( args: OpenChannelArgs -): Promise<{ [k: string]: any }> { +): Promise { sphinxLogger.info('openChannel', logging.Lightning) const opts = args || {} - if (args && args.node_pubkey) { - opts.node_pubkey = ByteBuffer.fromHex(args.node_pubkey) + const lightning = await loadLightning() + if (isGL(lightning)) { + return } - return new Promise(async (resolve, reject) => { - const lightning = await loadLightning() + return new Promise((resolve, reject) => { lightning.openChannelSync(opts, function (err, response) { - if (err == null) { - resolve(response) + if (err == null && response) { + resolve(response) } else { reject(err) } @@ -859,27 +975,49 @@ export async function complexBalances( 0 ) const spendableBalance = channels.reduce( - (a, chan) => a + Math.max(0, parseInt(chan.local_balance) - parseInt(chan.local_chan_reserve_sat)), + (a, chan) => + a + + Math.max( + 0, + parseInt(chan.local_balance) - parseInt(chan.local_chan_reserve_sat) + ), 0 ) const response = await channelBalance(ownerPubkey) return { reserve, - full_balance: Math.max(0, parseInt(response.balance)), + full_balance: response ? Math.max(0, parseInt(response.balance)) : 0, balance: spendableBalance, - pending_open_balance: parseInt(response.pending_open_balance), + pending_open_balance: response + ? parseInt(response.pending_open_balance) + : 0, } } } -export async function channelBalance( - ownerPubkey?: string -): Promise<{ [k: string]: any }> { +interface _lnrpc_Amount__Output { + sat: string + msat: string +} + +export async function channelBalance(ownerPubkey?: string): Promise<{ + balance: string + pending_open_balance: string + local_balance: _lnrpc_Amount__Output | null + remote_balance: _lnrpc_Amount__Output | null + unsettled_local_balance: _lnrpc_Amount__Output | null + unsettled_remote_balance: _lnrpc_Amount__Output | null + pending_open_local_balance: _lnrpc_Amount__Output | null + pending_open_remote_balance: _lnrpc_Amount__Output | null +} | void> { sphinxLogger.info('channelBalance', logging.Lightning) - return new Promise(async (resolve, reject) => { - const lightning = await loadLightning(true, ownerPubkey) // try proxy + const lightning = await loadLightning(true, ownerPubkey) // try proxy + if (isGL(lightning)) { + return + } + return new Promise((resolve, reject) => { lightning.channelBalance({}, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(response) } else { reject(err) @@ -888,19 +1026,41 @@ export async function channelBalance( }) } +interface _lnrpc_RoutingPolicy__Output { + time_lock_delta: number + min_htlc: string + fee_base_msat: string + fee_rate_milli_msat: string + disabled: boolean + max_htlc_msat: string + last_update: number +} + +/** returns void for greenlight */ export async function getChanInfo( chan_id: number, tryProxy?: boolean -): Promise<{ [k: string]: any }> { +): Promise<{ + channel_id: string + chan_point: string + last_update: number + node1_pub: string + node2_pub: string + capacity: string + node1_policy: _lnrpc_RoutingPolicy__Output | null + node2_policy: _lnrpc_RoutingPolicy__Output | null +} | void> { // log('getChanInfo') - if (IS_GREENLIGHT) return {} // skip for now - return new Promise(async (resolve, reject) => { + const lightning = await loadLightning(tryProxy === false ? false : true) // try proxy + if (isGL(lightning)) { + return // skip for now + } + return new Promise((resolve, reject) => { if (!chan_id) { return reject('no chan id') } - const lightning = await loadLightning(tryProxy === false ? false : true) // try proxy lightning.getChanInfo({ chan_id }, function (err, response) { - if (err == null) { + if (err == null && response) { resolve(response) } else { reject(err) diff --git a/src/grpc/proto.ts b/src/grpc/proto.ts new file mode 100644 index 000000000..d55814972 --- /dev/null +++ b/src/grpc/proto.ts @@ -0,0 +1,58 @@ +// Generated file. Do not edit. Edit the template proto.ts.template instead. + +import * as grpc from '@grpc/grpc-js' +import { loadSync, Options } from '@grpc/proto-loader' + +import type { ProtoGrpcType as GreenlightProtoGrpcType } from './types/greenlight' +import type { ProtoGrpcType as LightningProtoGrpcType } from './types/lightning' +import type { ProtoGrpcType as RouterProtoGrpcType } from './types/router' +import type { ProtoGrpcType as Rpc_proxyProtoGrpcType } from './types/rpc_proxy' +import type { ProtoGrpcType as SchedulerProtoGrpcType } from './types/scheduler' +import type { ProtoGrpcType as SignerProtoGrpcType } from './types/signer' +import type { ProtoGrpcType as WalletkitProtoGrpcType } from './types/walletkit' +import type { ProtoGrpcType as WalletunlockerProtoGrpcType } from './types/walletunlocker' + +process.env.GRPC_SSL_CIPHER_SUITES = 'HIGH+ECDSA' + +type ProtoName = + | 'greenlight' + | 'lightning' + | 'router' + | 'rpc_proxy' + | 'scheduler' + | 'signer' + | 'walletkit' + | 'walletunlocker' + +type ProtoGrpcType = + | GreenlightProtoGrpcType + | LightningProtoGrpcType + | RouterProtoGrpcType + | Rpc_proxyProtoGrpcType + | SchedulerProtoGrpcType + | SignerProtoGrpcType + | WalletkitProtoGrpcType + | WalletunlockerProtoGrpcType + +const opts: Options = { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, +} + +export function loadProto(name: 'greenlight'): GreenlightProtoGrpcType +export function loadProto(name: 'lightning'): LightningProtoGrpcType +export function loadProto(name: 'router'): RouterProtoGrpcType +export function loadProto(name: 'rpc_proxy'): Rpc_proxyProtoGrpcType +export function loadProto(name: 'scheduler'): SchedulerProtoGrpcType +export function loadProto(name: 'signer'): SignerProtoGrpcType +export function loadProto(name: 'walletkit'): WalletkitProtoGrpcType +export function loadProto(name: 'walletunlocker'): WalletunlockerProtoGrpcType +export function loadProto(name: ProtoName): ProtoGrpcType +export function loadProto(name: ProtoName): ProtoGrpcType { + return grpc.loadPackageDefinition( + loadSync(`proto/${name}.proto`, opts) + ) as unknown as ProtoGrpcType +} diff --git a/src/grpc/proto.ts.template b/src/grpc/proto.ts.template new file mode 100644 index 000000000..b597215b0 --- /dev/null +++ b/src/grpc/proto.ts.template @@ -0,0 +1,28 @@ +import * as grpc from '@grpc/grpc-js' +import { loadSync, Options } from '@grpc/proto-loader' + +import type { ProtoGrpcType as {{Name}}ProtoGrpcType } from './types/{{name}}' + +process.env.GRPC_SSL_CIPHER_SUITES = 'HIGH+ECDSA' + +type ProtoName = + | '{{name}}' + +type ProtoGrpcType = + | {{Name}}ProtoGrpcType + +const opts: Options = { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, +} + +export function loadProto(name: '{{name}}'): {{Name}}ProtoGrpcType +export function loadProto(name: ProtoName): ProtoGrpcType +export function loadProto(name: ProtoName): ProtoGrpcType { + return grpc.loadPackageDefinition( + loadSync(`proto/${name}.proto`, opts) + ) as unknown as ProtoGrpcType +} diff --git a/src/grpc/subscribe.ts b/src/grpc/subscribe.ts index 7450b4ec4..b00edac85 100644 --- a/src/grpc/subscribe.ts +++ b/src/grpc/subscribe.ts @@ -21,7 +21,7 @@ export function subscribeInvoices( const lightning = await loadLightning(true, ownerPubkey) // try proxy const cmd = interfaces.subscribeCommand() - const call = lightning[cmd]() + const call = lightning[cmd]({}) call.on('data', async function (response) { // console.log("=> INVOICE RAW", response) const inv = interfaces.subscribeResponse(response) diff --git a/src/grpc/types/greenlight.d.ts b/src/grpc/types/greenlight.d.ts new file mode 100644 index 000000000..93046ad84 --- /dev/null +++ b/src/grpc/types/greenlight.d.ts @@ -0,0 +1,90 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + HsmClient as _greenlight_HsmClient, + HsmDefinition as _greenlight_HsmDefinition, +} from './greenlight/Hsm' +import type { + NodeClient as _greenlight_NodeClient, + NodeDefinition as _greenlight_NodeDefinition, +} from './greenlight/Node' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + greenlight: { + Address: MessageTypeDefinition + Amount: MessageTypeDefinition + BitcoinAddress: MessageTypeDefinition + BtcAddressType: EnumTypeDefinition + Channel: MessageTypeDefinition + CloseChannelRequest: MessageTypeDefinition + CloseChannelResponse: MessageTypeDefinition + CloseChannelType: EnumTypeDefinition + Confirmation: MessageTypeDefinition + ConnectRequest: MessageTypeDefinition + ConnectResponse: MessageTypeDefinition + DisconnectRequest: MessageTypeDefinition + DisconnectResponse: MessageTypeDefinition + Empty: MessageTypeDefinition + Feerate: MessageTypeDefinition + FeeratePreset: EnumTypeDefinition + FundChannelRequest: MessageTypeDefinition + FundChannelResponse: MessageTypeDefinition + GetInfoRequest: MessageTypeDefinition + GetInfoResponse: MessageTypeDefinition + Hsm: SubtypeConstructor & { + service: _greenlight_HsmDefinition + } + HsmRequest: MessageTypeDefinition + HsmRequestContext: MessageTypeDefinition + HsmResponse: MessageTypeDefinition + Htlc: MessageTypeDefinition + IncomingPayment: MessageTypeDefinition + Invoice: MessageTypeDefinition + InvoiceIdentifier: MessageTypeDefinition + InvoiceRequest: MessageTypeDefinition + InvoiceStatus: EnumTypeDefinition + KeysendRequest: MessageTypeDefinition + ListFundsChannel: MessageTypeDefinition + ListFundsOutput: MessageTypeDefinition + ListFundsRequest: MessageTypeDefinition + ListFundsResponse: MessageTypeDefinition + ListInvoicesRequest: MessageTypeDefinition + ListInvoicesResponse: MessageTypeDefinition + ListPaymentsRequest: MessageTypeDefinition + ListPaymentsResponse: MessageTypeDefinition + ListPeersRequest: MessageTypeDefinition + ListPeersResponse: MessageTypeDefinition + NetAddressType: EnumTypeDefinition + NewAddrRequest: MessageTypeDefinition + NewAddrResponse: MessageTypeDefinition + Node: SubtypeConstructor & { + service: _greenlight_NodeDefinition + } + OffChainPayment: MessageTypeDefinition + Outpoint: MessageTypeDefinition + OutputStatus: EnumTypeDefinition + PayRequest: MessageTypeDefinition + PayStatus: EnumTypeDefinition + Payment: MessageTypeDefinition + PaymentIdentifier: MessageTypeDefinition + Peer: MessageTypeDefinition + Routehint: MessageTypeDefinition + RoutehintHop: MessageTypeDefinition + StopRequest: MessageTypeDefinition + StopResponse: MessageTypeDefinition + StreamIncomingFilter: MessageTypeDefinition + Timeout: MessageTypeDefinition + TlvField: MessageTypeDefinition + WithdrawRequest: MessageTypeDefinition + WithdrawResponse: MessageTypeDefinition + } +} +export {} diff --git a/src/grpc/types/greenlight/Address.d.ts b/src/grpc/types/greenlight/Address.d.ts new file mode 100644 index 000000000..e04d2ccbd --- /dev/null +++ b/src/grpc/types/greenlight/Address.d.ts @@ -0,0 +1,11 @@ +import type { NetAddressType as _greenlight_NetAddressType } from '../greenlight/NetAddressType' +export interface Address { + type?: _greenlight_NetAddressType | keyof typeof _greenlight_NetAddressType + addr?: string + port?: number +} +export interface Address__Output { + type: keyof typeof _greenlight_NetAddressType + addr: string + port: number +} diff --git a/src/grpc/types/greenlight/Amount.d.ts b/src/grpc/types/greenlight/Amount.d.ts new file mode 100644 index 000000000..98df70e8d --- /dev/null +++ b/src/grpc/types/greenlight/Amount.d.ts @@ -0,0 +1,18 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface Amount { + millisatoshi?: number | string | Long + satoshi?: number | string | Long + bitcoin?: number | string | Long + all?: boolean + any?: boolean + unit?: 'millisatoshi' | 'satoshi' | 'bitcoin' | 'all' | 'any' +} +export interface Amount__Output { + millisatoshi?: string + satoshi?: string + bitcoin?: string + all?: boolean + any?: boolean + unit: 'millisatoshi' | 'satoshi' | 'bitcoin' | 'all' | 'any' +} diff --git a/src/grpc/types/greenlight/BitcoinAddress.d.ts b/src/grpc/types/greenlight/BitcoinAddress.d.ts new file mode 100644 index 000000000..2d19e4b2c --- /dev/null +++ b/src/grpc/types/greenlight/BitcoinAddress.d.ts @@ -0,0 +1,6 @@ +export interface BitcoinAddress { + address?: string +} +export interface BitcoinAddress__Output { + address: string +} diff --git a/src/grpc/types/greenlight/BtcAddressType.d.ts b/src/grpc/types/greenlight/BtcAddressType.d.ts new file mode 100644 index 000000000..748601c32 --- /dev/null +++ b/src/grpc/types/greenlight/BtcAddressType.d.ts @@ -0,0 +1,4 @@ +export declare enum BtcAddressType { + BECH32 = 0, + P2SH_SEGWIT = 1, +} diff --git a/src/grpc/types/greenlight/Channel.d.ts b/src/grpc/types/greenlight/Channel.d.ts new file mode 100644 index 000000000..7d1d6f56f --- /dev/null +++ b/src/grpc/types/greenlight/Channel.d.ts @@ -0,0 +1,42 @@ +import type { + Htlc as _greenlight_Htlc, + Htlc__Output as _greenlight_Htlc__Output, +} from '../greenlight/Htlc' +export interface Channel { + state?: string + owner?: string + short_channel_id?: string + direction?: number + channel_id?: string + funding_txid?: string + close_to_addr?: string + close_to?: string + private?: boolean + total?: string + dust_limit?: string + spendable?: string + receivable?: string + their_to_self_delay?: number + our_to_self_delay?: number + status?: string[] + htlcs?: _greenlight_Htlc[] +} +export interface Channel__Output { + state: string + owner: string + short_channel_id: string + direction: number + channel_id: string + funding_txid: string + close_to_addr: string + close_to: string + private: boolean + total: string + dust_limit: string + spendable: string + receivable: string + their_to_self_delay: number + our_to_self_delay: number + status: string[] + htlcs: _greenlight_Htlc__Output[] +} diff --git a/src/grpc/types/greenlight/CloseChannelRequest.d.ts b/src/grpc/types/greenlight/CloseChannelRequest.d.ts new file mode 100644 index 000000000..e0307f049 --- /dev/null +++ b/src/grpc/types/greenlight/CloseChannelRequest.d.ts @@ -0,0 +1,19 @@ +/// +import type { + Timeout as _greenlight_Timeout, + Timeout__Output as _greenlight_Timeout__Output, +} from '../greenlight/Timeout' +import type { + BitcoinAddress as _greenlight_BitcoinAddress, + BitcoinAddress__Output as _greenlight_BitcoinAddress__Output, +} from '../greenlight/BitcoinAddress' +export interface CloseChannelRequest { + node_id?: Buffer | Uint8Array | string + unilateraltimeout?: _greenlight_Timeout | null + destination?: _greenlight_BitcoinAddress | null +} +export interface CloseChannelRequest__Output { + node_id: Buffer + unilateraltimeout: _greenlight_Timeout__Output | null + destination: _greenlight_BitcoinAddress__Output | null +} diff --git a/src/grpc/types/greenlight/CloseChannelResponse.d.ts b/src/grpc/types/greenlight/CloseChannelResponse.d.ts new file mode 100644 index 000000000..8923bf04d --- /dev/null +++ b/src/grpc/types/greenlight/CloseChannelResponse.d.ts @@ -0,0 +1,14 @@ +/// +import type { CloseChannelType as _greenlight_CloseChannelType } from '../greenlight/CloseChannelType' +export interface CloseChannelResponse { + close_type?: + | _greenlight_CloseChannelType + | keyof typeof _greenlight_CloseChannelType + tx?: Buffer | Uint8Array | string + txid?: Buffer | Uint8Array | string +} +export interface CloseChannelResponse__Output { + close_type: keyof typeof _greenlight_CloseChannelType + tx: Buffer + txid: Buffer +} diff --git a/src/grpc/types/greenlight/CloseChannelType.d.ts b/src/grpc/types/greenlight/CloseChannelType.d.ts new file mode 100644 index 000000000..3842ccf0a --- /dev/null +++ b/src/grpc/types/greenlight/CloseChannelType.d.ts @@ -0,0 +1,4 @@ +export declare enum CloseChannelType { + MUTUAL = 0, + UNILATERAL = 1, +} diff --git a/src/grpc/types/greenlight/Confirmation.d.ts b/src/grpc/types/greenlight/Confirmation.d.ts new file mode 100644 index 000000000..0abf7824e --- /dev/null +++ b/src/grpc/types/greenlight/Confirmation.d.ts @@ -0,0 +1,6 @@ +export interface Confirmation { + blocks?: number +} +export interface Confirmation__Output { + blocks: number +} diff --git a/src/grpc/types/greenlight/ConnectRequest.d.ts b/src/grpc/types/greenlight/ConnectRequest.d.ts new file mode 100644 index 000000000..0ddb8dc76 --- /dev/null +++ b/src/grpc/types/greenlight/ConnectRequest.d.ts @@ -0,0 +1,8 @@ +export interface ConnectRequest { + node_id?: string + addr?: string +} +export interface ConnectRequest__Output { + node_id: string + addr: string +} diff --git a/src/grpc/types/greenlight/ConnectResponse.d.ts b/src/grpc/types/greenlight/ConnectResponse.d.ts new file mode 100644 index 000000000..650c50616 --- /dev/null +++ b/src/grpc/types/greenlight/ConnectResponse.d.ts @@ -0,0 +1,8 @@ +export interface ConnectResponse { + node_id?: string + features?: string +} +export interface ConnectResponse__Output { + node_id: string + features: string +} diff --git a/src/grpc/types/greenlight/DisconnectRequest.d.ts b/src/grpc/types/greenlight/DisconnectRequest.d.ts new file mode 100644 index 000000000..2176e0a1f --- /dev/null +++ b/src/grpc/types/greenlight/DisconnectRequest.d.ts @@ -0,0 +1,8 @@ +export interface DisconnectRequest { + node_id?: string + force?: boolean +} +export interface DisconnectRequest__Output { + node_id: string + force: boolean +} diff --git a/src/grpc/types/greenlight/DisconnectResponse.d.ts b/src/grpc/types/greenlight/DisconnectResponse.d.ts new file mode 100644 index 000000000..20481659f --- /dev/null +++ b/src/grpc/types/greenlight/DisconnectResponse.d.ts @@ -0,0 +1,2 @@ +export interface DisconnectResponse {} +export interface DisconnectResponse__Output {} diff --git a/src/grpc/types/greenlight/Empty.d.ts b/src/grpc/types/greenlight/Empty.d.ts new file mode 100644 index 000000000..f3d46f1c1 --- /dev/null +++ b/src/grpc/types/greenlight/Empty.d.ts @@ -0,0 +1,2 @@ +export interface Empty {} +export interface Empty__Output {} diff --git a/src/grpc/types/greenlight/Feerate.d.ts b/src/grpc/types/greenlight/Feerate.d.ts new file mode 100644 index 000000000..7b3123f45 --- /dev/null +++ b/src/grpc/types/greenlight/Feerate.d.ts @@ -0,0 +1,15 @@ +/// +import type { FeeratePreset as _greenlight_FeeratePreset } from '../greenlight/FeeratePreset' +import type { Long } from '@grpc/proto-loader' +export interface Feerate { + preset?: _greenlight_FeeratePreset | keyof typeof _greenlight_FeeratePreset + perkw?: number | string | Long + perkb?: number | string | Long + value?: 'preset' | 'perkw' | 'perkb' +} +export interface Feerate__Output { + preset?: keyof typeof _greenlight_FeeratePreset + perkw?: string + perkb?: string + value: 'preset' | 'perkw' | 'perkb' +} diff --git a/src/grpc/types/greenlight/FeeratePreset.d.ts b/src/grpc/types/greenlight/FeeratePreset.d.ts new file mode 100644 index 000000000..c50be4152 --- /dev/null +++ b/src/grpc/types/greenlight/FeeratePreset.d.ts @@ -0,0 +1,5 @@ +export declare enum FeeratePreset { + NORMAL = 0, + SLOW = 1, + URGENT = 2, +} diff --git a/src/grpc/types/greenlight/FundChannelRequest.d.ts b/src/grpc/types/greenlight/FundChannelRequest.d.ts new file mode 100644 index 000000000..e45d88255 --- /dev/null +++ b/src/grpc/types/greenlight/FundChannelRequest.d.ts @@ -0,0 +1,29 @@ +/// +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { + Feerate as _greenlight_Feerate, + Feerate__Output as _greenlight_Feerate__Output, +} from '../greenlight/Feerate' +import type { + Confirmation as _greenlight_Confirmation, + Confirmation__Output as _greenlight_Confirmation__Output, +} from '../greenlight/Confirmation' +export interface FundChannelRequest { + node_id?: Buffer | Uint8Array | string + amount?: _greenlight_Amount | null + feerate?: _greenlight_Feerate | null + announce?: boolean + minconf?: _greenlight_Confirmation | null + close_to?: string +} +export interface FundChannelRequest__Output { + node_id: Buffer + amount: _greenlight_Amount__Output | null + feerate: _greenlight_Feerate__Output | null + announce: boolean + minconf: _greenlight_Confirmation__Output | null + close_to: string +} diff --git a/src/grpc/types/greenlight/FundChannelResponse.d.ts b/src/grpc/types/greenlight/FundChannelResponse.d.ts new file mode 100644 index 000000000..fc7c29c46 --- /dev/null +++ b/src/grpc/types/greenlight/FundChannelResponse.d.ts @@ -0,0 +1,17 @@ +/// +import type { + Outpoint as _greenlight_Outpoint, + Outpoint__Output as _greenlight_Outpoint__Output, +} from '../greenlight/Outpoint' +export interface FundChannelResponse { + tx?: Buffer | Uint8Array | string + outpoint?: _greenlight_Outpoint | null + channel_id?: Buffer | Uint8Array | string + close_to?: string +} +export interface FundChannelResponse__Output { + tx: Buffer + outpoint: _greenlight_Outpoint__Output | null + channel_id: Buffer + close_to: string +} diff --git a/src/grpc/types/greenlight/GetInfoRequest.d.ts b/src/grpc/types/greenlight/GetInfoRequest.d.ts new file mode 100644 index 000000000..bcc9fbc46 --- /dev/null +++ b/src/grpc/types/greenlight/GetInfoRequest.d.ts @@ -0,0 +1,2 @@ +export interface GetInfoRequest {} +export interface GetInfoRequest__Output {} diff --git a/src/grpc/types/greenlight/GetInfoResponse.d.ts b/src/grpc/types/greenlight/GetInfoResponse.d.ts new file mode 100644 index 000000000..bfe98b9e7 --- /dev/null +++ b/src/grpc/types/greenlight/GetInfoResponse.d.ts @@ -0,0 +1,25 @@ +/// +import type { + Address as _greenlight_Address, + Address__Output as _greenlight_Address__Output, +} from '../greenlight/Address' +export interface GetInfoResponse { + node_id?: Buffer | Uint8Array | string + alias?: string + color?: Buffer | Uint8Array | string + num_peers?: number + addresses?: _greenlight_Address[] + version?: string + blockheight?: number + network?: string +} +export interface GetInfoResponse__Output { + node_id: Buffer + alias: string + color: Buffer + num_peers: number + addresses: _greenlight_Address__Output[] + version: string + blockheight: number + network: string +} diff --git a/src/grpc/types/greenlight/Hsm.d.ts b/src/grpc/types/greenlight/Hsm.d.ts new file mode 100644 index 000000000..08b3187ba --- /dev/null +++ b/src/grpc/types/greenlight/Hsm.d.ts @@ -0,0 +1,117 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + Empty as _greenlight_Empty, + Empty__Output as _greenlight_Empty__Output, +} from '../greenlight/Empty' +import type { + HsmRequest as _greenlight_HsmRequest, + HsmRequest__Output as _greenlight_HsmRequest__Output, +} from '../greenlight/HsmRequest' +import type { + HsmResponse as _greenlight_HsmResponse, + HsmResponse__Output as _greenlight_HsmResponse__Output, +} from '../greenlight/HsmResponse' +export interface HsmClient extends grpc.Client { + Ping( + argument: _greenlight_Empty, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + Ping( + argument: _greenlight_Empty, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + Ping( + argument: _greenlight_Empty, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + Ping( + argument: _greenlight_Empty, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + ping( + argument: _greenlight_Empty, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + ping( + argument: _greenlight_Empty, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + ping( + argument: _greenlight_Empty, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + ping( + argument: _greenlight_Empty, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + Request( + argument: _greenlight_HsmRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + Request( + argument: _greenlight_HsmRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + Request( + argument: _greenlight_HsmRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + Request( + argument: _greenlight_HsmRequest, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + request( + argument: _greenlight_HsmRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + request( + argument: _greenlight_HsmRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + request( + argument: _greenlight_HsmRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall + request( + argument: _greenlight_HsmRequest, + callback: grpc.requestCallback<_greenlight_HsmResponse__Output> + ): grpc.ClientUnaryCall +} +export interface HsmHandlers extends grpc.UntypedServiceImplementation { + Ping: grpc.handleUnaryCall<_greenlight_Empty__Output, _greenlight_Empty> + Request: grpc.handleUnaryCall< + _greenlight_HsmRequest__Output, + _greenlight_HsmResponse + > +} +export interface HsmDefinition extends grpc.ServiceDefinition { + Ping: MethodDefinition< + _greenlight_Empty, + _greenlight_Empty, + _greenlight_Empty__Output, + _greenlight_Empty__Output + > + Request: MethodDefinition< + _greenlight_HsmRequest, + _greenlight_HsmResponse, + _greenlight_HsmRequest__Output, + _greenlight_HsmResponse__Output + > +} diff --git a/src/grpc/types/greenlight/HsmRequest.d.ts b/src/grpc/types/greenlight/HsmRequest.d.ts new file mode 100644 index 000000000..f5ab0061d --- /dev/null +++ b/src/grpc/types/greenlight/HsmRequest.d.ts @@ -0,0 +1,15 @@ +/// +import type { + HsmRequestContext as _greenlight_HsmRequestContext, + HsmRequestContext__Output as _greenlight_HsmRequestContext__Output, +} from '../greenlight/HsmRequestContext' +export interface HsmRequest { + request_id?: number + context?: _greenlight_HsmRequestContext | null + raw?: Buffer | Uint8Array | string +} +export interface HsmRequest__Output { + request_id: number + context: _greenlight_HsmRequestContext__Output | null + raw: Buffer +} diff --git a/src/grpc/types/greenlight/HsmRequestContext.d.ts b/src/grpc/types/greenlight/HsmRequestContext.d.ts new file mode 100644 index 000000000..5fe95da09 --- /dev/null +++ b/src/grpc/types/greenlight/HsmRequestContext.d.ts @@ -0,0 +1,13 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface HsmRequestContext { + node_id?: Buffer | Uint8Array | string + dbid?: number | string | Long + capabilities?: number | string | Long +} +export interface HsmRequestContext__Output { + node_id: Buffer + dbid: string + capabilities: string +} diff --git a/src/grpc/types/greenlight/HsmResponse.d.ts b/src/grpc/types/greenlight/HsmResponse.d.ts new file mode 100644 index 000000000..c1986e73c --- /dev/null +++ b/src/grpc/types/greenlight/HsmResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface HsmResponse { + request_id?: number + raw?: Buffer | Uint8Array | string +} +export interface HsmResponse__Output { + request_id: number + raw: Buffer +} diff --git a/src/grpc/types/greenlight/Htlc.d.ts b/src/grpc/types/greenlight/Htlc.d.ts new file mode 100644 index 000000000..3613e1fea --- /dev/null +++ b/src/grpc/types/greenlight/Htlc.d.ts @@ -0,0 +1,20 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface Htlc { + direction?: string + id?: number | string | Long + amount?: string + expiry?: number | string | Long + payment_hash?: string + state?: string + local_trimmed?: boolean +} +export interface Htlc__Output { + direction: string + id: string + amount: string + expiry: string + payment_hash: string + state: string + local_trimmed: boolean +} diff --git a/src/grpc/types/greenlight/IncomingPayment.d.ts b/src/grpc/types/greenlight/IncomingPayment.d.ts new file mode 100644 index 000000000..abe91574b --- /dev/null +++ b/src/grpc/types/greenlight/IncomingPayment.d.ts @@ -0,0 +1,12 @@ +import type { + OffChainPayment as _greenlight_OffChainPayment, + OffChainPayment__Output as _greenlight_OffChainPayment__Output, +} from '../greenlight/OffChainPayment' +export interface IncomingPayment { + offchain?: _greenlight_OffChainPayment | null + details?: 'offchain' +} +export interface IncomingPayment__Output { + offchain?: _greenlight_OffChainPayment__Output | null + details: 'offchain' +} diff --git a/src/grpc/types/greenlight/Invoice.d.ts b/src/grpc/types/greenlight/Invoice.d.ts new file mode 100644 index 000000000..31cc0fde4 --- /dev/null +++ b/src/grpc/types/greenlight/Invoice.d.ts @@ -0,0 +1,30 @@ +/// +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { InvoiceStatus as _greenlight_InvoiceStatus } from '../greenlight/InvoiceStatus' +export interface Invoice { + label?: string + description?: string + amount?: _greenlight_Amount | null + received?: _greenlight_Amount | null + status?: _greenlight_InvoiceStatus | keyof typeof _greenlight_InvoiceStatus + payment_time?: number + expiry_time?: number + bolt11?: string + payment_hash?: Buffer | Uint8Array | string + payment_preimage?: Buffer | Uint8Array | string +} +export interface Invoice__Output { + label: string + description: string + amount: _greenlight_Amount__Output | null + received: _greenlight_Amount__Output | null + status: keyof typeof _greenlight_InvoiceStatus + payment_time: number + expiry_time: number + bolt11: string + payment_hash: Buffer + payment_preimage: Buffer +} diff --git a/src/grpc/types/greenlight/InvoiceIdentifier.d.ts b/src/grpc/types/greenlight/InvoiceIdentifier.d.ts new file mode 100644 index 000000000..ea95df396 --- /dev/null +++ b/src/grpc/types/greenlight/InvoiceIdentifier.d.ts @@ -0,0 +1,13 @@ +/// +export interface InvoiceIdentifier { + label?: string + invstring?: string + payment_hash?: Buffer | Uint8Array | string + id?: 'label' | 'invstring' | 'payment_hash' +} +export interface InvoiceIdentifier__Output { + label?: string + invstring?: string + payment_hash?: Buffer + id: 'label' | 'invstring' | 'payment_hash' +} diff --git a/src/grpc/types/greenlight/InvoiceRequest.d.ts b/src/grpc/types/greenlight/InvoiceRequest.d.ts new file mode 100644 index 000000000..011bf9dff --- /dev/null +++ b/src/grpc/types/greenlight/InvoiceRequest.d.ts @@ -0,0 +1,14 @@ +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +export interface InvoiceRequest { + amount?: _greenlight_Amount | null + label?: string + description?: string +} +export interface InvoiceRequest__Output { + amount: _greenlight_Amount__Output | null + label: string + description: string +} diff --git a/src/grpc/types/greenlight/InvoiceStatus.d.ts b/src/grpc/types/greenlight/InvoiceStatus.d.ts new file mode 100644 index 000000000..636ec92c0 --- /dev/null +++ b/src/grpc/types/greenlight/InvoiceStatus.d.ts @@ -0,0 +1,5 @@ +export declare enum InvoiceStatus { + UNPAID = 0, + PAID = 1, + EXPIRED = 2, +} diff --git a/src/grpc/types/greenlight/KeysendRequest.d.ts b/src/grpc/types/greenlight/KeysendRequest.d.ts new file mode 100644 index 000000000..70ec7e536 --- /dev/null +++ b/src/grpc/types/greenlight/KeysendRequest.d.ts @@ -0,0 +1,27 @@ +/// +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { + Routehint as _greenlight_Routehint, + Routehint__Output as _greenlight_Routehint__Output, +} from '../greenlight/Routehint' +import type { + TlvField as _greenlight_TlvField, + TlvField__Output as _greenlight_TlvField__Output, +} from '../greenlight/TlvField' +export interface KeysendRequest { + node_id?: Buffer | Uint8Array | string + amount?: _greenlight_Amount | null + label?: string + routehints?: _greenlight_Routehint[] + extratlvs?: _greenlight_TlvField[] +} +export interface KeysendRequest__Output { + node_id: Buffer + amount: _greenlight_Amount__Output | null + label: string + routehints: _greenlight_Routehint__Output[] + extratlvs: _greenlight_TlvField__Output[] +} diff --git a/src/grpc/types/greenlight/ListFundsChannel.d.ts b/src/grpc/types/greenlight/ListFundsChannel.d.ts new file mode 100644 index 000000000..92e61e377 --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsChannel.d.ts @@ -0,0 +1,21 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface ListFundsChannel { + peer_id?: Buffer | Uint8Array | string + connected?: boolean + short_channel_id?: number | string | Long + our_amount_msat?: number | string | Long + amount_msat?: number | string | Long + funding_txid?: Buffer | Uint8Array | string + funding_output?: number +} +export interface ListFundsChannel__Output { + peer_id: Buffer + connected: boolean + short_channel_id: string + our_amount_msat: string + amount_msat: string + funding_txid: Buffer + funding_output: number +} diff --git a/src/grpc/types/greenlight/ListFundsOutput.d.ts b/src/grpc/types/greenlight/ListFundsOutput.d.ts new file mode 100644 index 000000000..71e9cc446 --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsOutput.d.ts @@ -0,0 +1,21 @@ +import type { + Outpoint as _greenlight_Outpoint, + Outpoint__Output as _greenlight_Outpoint__Output, +} from '../greenlight/Outpoint' +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { OutputStatus as _greenlight_OutputStatus } from '../greenlight/OutputStatus' +export interface ListFundsOutput { + output?: _greenlight_Outpoint | null + amount?: _greenlight_Amount | null + address?: string + status?: _greenlight_OutputStatus | keyof typeof _greenlight_OutputStatus +} +export interface ListFundsOutput__Output { + output: _greenlight_Outpoint__Output | null + amount: _greenlight_Amount__Output | null + address: string + status: keyof typeof _greenlight_OutputStatus +} diff --git a/src/grpc/types/greenlight/ListFundsRequest.d.ts b/src/grpc/types/greenlight/ListFundsRequest.d.ts new file mode 100644 index 000000000..f362b9c4b --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsRequest.d.ts @@ -0,0 +1,10 @@ +import type { + Confirmation as _greenlight_Confirmation, + Confirmation__Output as _greenlight_Confirmation__Output, +} from '../greenlight/Confirmation' +export interface ListFundsRequest { + minconf?: _greenlight_Confirmation | null +} +export interface ListFundsRequest__Output { + minconf: _greenlight_Confirmation__Output | null +} diff --git a/src/grpc/types/greenlight/ListFundsResponse.d.ts b/src/grpc/types/greenlight/ListFundsResponse.d.ts new file mode 100644 index 000000000..bb186ce45 --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsResponse.d.ts @@ -0,0 +1,16 @@ +import type { + ListFundsOutput as _greenlight_ListFundsOutput, + ListFundsOutput__Output as _greenlight_ListFundsOutput__Output, +} from '../greenlight/ListFundsOutput' +import type { + ListFundsChannel as _greenlight_ListFundsChannel, + ListFundsChannel__Output as _greenlight_ListFundsChannel__Output, +} from '../greenlight/ListFundsChannel' +export interface ListFundsResponse { + outputs?: _greenlight_ListFundsOutput[] + channels?: _greenlight_ListFundsChannel[] +} +export interface ListFundsResponse__Output { + outputs: _greenlight_ListFundsOutput__Output[] + channels: _greenlight_ListFundsChannel__Output[] +} diff --git a/src/grpc/types/greenlight/ListInvoicesRequest.d.ts b/src/grpc/types/greenlight/ListInvoicesRequest.d.ts new file mode 100644 index 000000000..6cb8d88b1 --- /dev/null +++ b/src/grpc/types/greenlight/ListInvoicesRequest.d.ts @@ -0,0 +1,10 @@ +import type { + InvoiceIdentifier as _greenlight_InvoiceIdentifier, + InvoiceIdentifier__Output as _greenlight_InvoiceIdentifier__Output, +} from '../greenlight/InvoiceIdentifier' +export interface ListInvoicesRequest { + identifier?: _greenlight_InvoiceIdentifier | null +} +export interface ListInvoicesRequest__Output { + identifier: _greenlight_InvoiceIdentifier__Output | null +} diff --git a/src/grpc/types/greenlight/ListInvoicesResponse.d.ts b/src/grpc/types/greenlight/ListInvoicesResponse.d.ts new file mode 100644 index 000000000..b6d53f4fc --- /dev/null +++ b/src/grpc/types/greenlight/ListInvoicesResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Invoice as _greenlight_Invoice, + Invoice__Output as _greenlight_Invoice__Output, +} from '../greenlight/Invoice' +export interface ListInvoicesResponse { + invoices?: _greenlight_Invoice[] +} +export interface ListInvoicesResponse__Output { + invoices: _greenlight_Invoice__Output[] +} diff --git a/src/grpc/types/greenlight/ListPaymentsRequest.d.ts b/src/grpc/types/greenlight/ListPaymentsRequest.d.ts new file mode 100644 index 000000000..97210aec2 --- /dev/null +++ b/src/grpc/types/greenlight/ListPaymentsRequest.d.ts @@ -0,0 +1,10 @@ +import type { + PaymentIdentifier as _greenlight_PaymentIdentifier, + PaymentIdentifier__Output as _greenlight_PaymentIdentifier__Output, +} from '../greenlight/PaymentIdentifier' +export interface ListPaymentsRequest { + identifier?: _greenlight_PaymentIdentifier | null +} +export interface ListPaymentsRequest__Output { + identifier: _greenlight_PaymentIdentifier__Output | null +} diff --git a/src/grpc/types/greenlight/ListPaymentsResponse.d.ts b/src/grpc/types/greenlight/ListPaymentsResponse.d.ts new file mode 100644 index 000000000..e4d469dc6 --- /dev/null +++ b/src/grpc/types/greenlight/ListPaymentsResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Payment as _greenlight_Payment, + Payment__Output as _greenlight_Payment__Output, +} from '../greenlight/Payment' +export interface ListPaymentsResponse { + payments?: _greenlight_Payment[] +} +export interface ListPaymentsResponse__Output { + payments: _greenlight_Payment__Output[] +} diff --git a/src/grpc/types/greenlight/ListPeersRequest.d.ts b/src/grpc/types/greenlight/ListPeersRequest.d.ts new file mode 100644 index 000000000..b3327ebc9 --- /dev/null +++ b/src/grpc/types/greenlight/ListPeersRequest.d.ts @@ -0,0 +1,6 @@ +export interface ListPeersRequest { + node_id?: string +} +export interface ListPeersRequest__Output { + node_id: string +} diff --git a/src/grpc/types/greenlight/ListPeersResponse.d.ts b/src/grpc/types/greenlight/ListPeersResponse.d.ts new file mode 100644 index 000000000..986c31dd2 --- /dev/null +++ b/src/grpc/types/greenlight/ListPeersResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Peer as _greenlight_Peer, + Peer__Output as _greenlight_Peer__Output, +} from '../greenlight/Peer' +export interface ListPeersResponse { + peers?: _greenlight_Peer[] +} +export interface ListPeersResponse__Output { + peers: _greenlight_Peer__Output[] +} diff --git a/src/grpc/types/greenlight/NetAddressType.d.ts b/src/grpc/types/greenlight/NetAddressType.d.ts new file mode 100644 index 000000000..980fe1b4f --- /dev/null +++ b/src/grpc/types/greenlight/NetAddressType.d.ts @@ -0,0 +1,6 @@ +export declare enum NetAddressType { + Ipv4 = 0, + Ipv6 = 1, + TorV2 = 2, + TorV3 = 3, +} diff --git a/src/grpc/types/greenlight/NewAddrRequest.d.ts b/src/grpc/types/greenlight/NewAddrRequest.d.ts new file mode 100644 index 000000000..40207fff6 --- /dev/null +++ b/src/grpc/types/greenlight/NewAddrRequest.d.ts @@ -0,0 +1,9 @@ +import type { BtcAddressType as _greenlight_BtcAddressType } from '../greenlight/BtcAddressType' +export interface NewAddrRequest { + address_type?: + | _greenlight_BtcAddressType + | keyof typeof _greenlight_BtcAddressType +} +export interface NewAddrRequest__Output { + address_type: keyof typeof _greenlight_BtcAddressType +} diff --git a/src/grpc/types/greenlight/NewAddrResponse.d.ts b/src/grpc/types/greenlight/NewAddrResponse.d.ts new file mode 100644 index 000000000..51e0a6d92 --- /dev/null +++ b/src/grpc/types/greenlight/NewAddrResponse.d.ts @@ -0,0 +1,11 @@ +import type { BtcAddressType as _greenlight_BtcAddressType } from '../greenlight/BtcAddressType' +export interface NewAddrResponse { + address_type?: + | _greenlight_BtcAddressType + | keyof typeof _greenlight_BtcAddressType + address?: string +} +export interface NewAddrResponse__Output { + address_type: keyof typeof _greenlight_BtcAddressType + address: string +} diff --git a/src/grpc/types/greenlight/Node.d.ts b/src/grpc/types/greenlight/Node.d.ts new file mode 100644 index 000000000..c4090631a --- /dev/null +++ b/src/grpc/types/greenlight/Node.d.ts @@ -0,0 +1,997 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + CloseChannelRequest as _greenlight_CloseChannelRequest, + CloseChannelRequest__Output as _greenlight_CloseChannelRequest__Output, +} from '../greenlight/CloseChannelRequest' +import type { + CloseChannelResponse as _greenlight_CloseChannelResponse, + CloseChannelResponse__Output as _greenlight_CloseChannelResponse__Output, +} from '../greenlight/CloseChannelResponse' +import type { + ConnectRequest as _greenlight_ConnectRequest, + ConnectRequest__Output as _greenlight_ConnectRequest__Output, +} from '../greenlight/ConnectRequest' +import type { + ConnectResponse as _greenlight_ConnectResponse, + ConnectResponse__Output as _greenlight_ConnectResponse__Output, +} from '../greenlight/ConnectResponse' +import type { + DisconnectRequest as _greenlight_DisconnectRequest, + DisconnectRequest__Output as _greenlight_DisconnectRequest__Output, +} from '../greenlight/DisconnectRequest' +import type { + DisconnectResponse as _greenlight_DisconnectResponse, + DisconnectResponse__Output as _greenlight_DisconnectResponse__Output, +} from '../greenlight/DisconnectResponse' +import type { + Empty as _greenlight_Empty, + Empty__Output as _greenlight_Empty__Output, +} from '../greenlight/Empty' +import type { + FundChannelRequest as _greenlight_FundChannelRequest, + FundChannelRequest__Output as _greenlight_FundChannelRequest__Output, +} from '../greenlight/FundChannelRequest' +import type { + FundChannelResponse as _greenlight_FundChannelResponse, + FundChannelResponse__Output as _greenlight_FundChannelResponse__Output, +} from '../greenlight/FundChannelResponse' +import type { + GetInfoRequest as _greenlight_GetInfoRequest, + GetInfoRequest__Output as _greenlight_GetInfoRequest__Output, +} from '../greenlight/GetInfoRequest' +import type { + GetInfoResponse as _greenlight_GetInfoResponse, + GetInfoResponse__Output as _greenlight_GetInfoResponse__Output, +} from '../greenlight/GetInfoResponse' +import type { + HsmRequest as _greenlight_HsmRequest, + HsmRequest__Output as _greenlight_HsmRequest__Output, +} from '../greenlight/HsmRequest' +import type { + HsmResponse as _greenlight_HsmResponse, + HsmResponse__Output as _greenlight_HsmResponse__Output, +} from '../greenlight/HsmResponse' +import type { + IncomingPayment as _greenlight_IncomingPayment, + IncomingPayment__Output as _greenlight_IncomingPayment__Output, +} from '../greenlight/IncomingPayment' +import type { + Invoice as _greenlight_Invoice, + Invoice__Output as _greenlight_Invoice__Output, +} from '../greenlight/Invoice' +import type { + InvoiceRequest as _greenlight_InvoiceRequest, + InvoiceRequest__Output as _greenlight_InvoiceRequest__Output, +} from '../greenlight/InvoiceRequest' +import type { + KeysendRequest as _greenlight_KeysendRequest, + KeysendRequest__Output as _greenlight_KeysendRequest__Output, +} from '../greenlight/KeysendRequest' +import type { + ListFundsRequest as _greenlight_ListFundsRequest, + ListFundsRequest__Output as _greenlight_ListFundsRequest__Output, +} from '../greenlight/ListFundsRequest' +import type { + ListFundsResponse as _greenlight_ListFundsResponse, + ListFundsResponse__Output as _greenlight_ListFundsResponse__Output, +} from '../greenlight/ListFundsResponse' +import type { + ListInvoicesRequest as _greenlight_ListInvoicesRequest, + ListInvoicesRequest__Output as _greenlight_ListInvoicesRequest__Output, +} from '../greenlight/ListInvoicesRequest' +import type { + ListInvoicesResponse as _greenlight_ListInvoicesResponse, + ListInvoicesResponse__Output as _greenlight_ListInvoicesResponse__Output, +} from '../greenlight/ListInvoicesResponse' +import type { + ListPaymentsRequest as _greenlight_ListPaymentsRequest, + ListPaymentsRequest__Output as _greenlight_ListPaymentsRequest__Output, +} from '../greenlight/ListPaymentsRequest' +import type { + ListPaymentsResponse as _greenlight_ListPaymentsResponse, + ListPaymentsResponse__Output as _greenlight_ListPaymentsResponse__Output, +} from '../greenlight/ListPaymentsResponse' +import type { + ListPeersRequest as _greenlight_ListPeersRequest, + ListPeersRequest__Output as _greenlight_ListPeersRequest__Output, +} from '../greenlight/ListPeersRequest' +import type { + ListPeersResponse as _greenlight_ListPeersResponse, + ListPeersResponse__Output as _greenlight_ListPeersResponse__Output, +} from '../greenlight/ListPeersResponse' +import type { + NewAddrRequest as _greenlight_NewAddrRequest, + NewAddrRequest__Output as _greenlight_NewAddrRequest__Output, +} from '../greenlight/NewAddrRequest' +import type { + NewAddrResponse as _greenlight_NewAddrResponse, + NewAddrResponse__Output as _greenlight_NewAddrResponse__Output, +} from '../greenlight/NewAddrResponse' +import type { + PayRequest as _greenlight_PayRequest, + PayRequest__Output as _greenlight_PayRequest__Output, +} from '../greenlight/PayRequest' +import type { + Payment as _greenlight_Payment, + Payment__Output as _greenlight_Payment__Output, +} from '../greenlight/Payment' +import type { + StopRequest as _greenlight_StopRequest, + StopRequest__Output as _greenlight_StopRequest__Output, +} from '../greenlight/StopRequest' +import type { + StopResponse as _greenlight_StopResponse, + StopResponse__Output as _greenlight_StopResponse__Output, +} from '../greenlight/StopResponse' +import type { + StreamIncomingFilter as _greenlight_StreamIncomingFilter, + StreamIncomingFilter__Output as _greenlight_StreamIncomingFilter__Output, +} from '../greenlight/StreamIncomingFilter' +import type { + WithdrawRequest as _greenlight_WithdrawRequest, + WithdrawRequest__Output as _greenlight_WithdrawRequest__Output, +} from '../greenlight/WithdrawRequest' +import type { + WithdrawResponse as _greenlight_WithdrawResponse, + WithdrawResponse__Output as _greenlight_WithdrawResponse__Output, +} from '../greenlight/WithdrawResponse' +export interface NodeClient extends grpc.Client { + CloseChannel( + argument: _greenlight_CloseChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + CloseChannel( + argument: _greenlight_CloseChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + CloseChannel( + argument: _greenlight_CloseChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + CloseChannel( + argument: _greenlight_CloseChannelRequest, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + closeChannel( + argument: _greenlight_CloseChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + closeChannel( + argument: _greenlight_CloseChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + closeChannel( + argument: _greenlight_CloseChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + closeChannel( + argument: _greenlight_CloseChannelRequest, + callback: grpc.requestCallback<_greenlight_CloseChannelResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _greenlight_ConnectRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _greenlight_ConnectRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _greenlight_ConnectRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _greenlight_ConnectRequest, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _greenlight_ConnectRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _greenlight_ConnectRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _greenlight_ConnectRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _greenlight_ConnectRequest, + callback: grpc.requestCallback<_greenlight_ConnectResponse__Output> + ): grpc.ClientUnaryCall + CreateInvoice( + argument: _greenlight_InvoiceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + CreateInvoice( + argument: _greenlight_InvoiceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + CreateInvoice( + argument: _greenlight_InvoiceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + CreateInvoice( + argument: _greenlight_InvoiceRequest, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + createInvoice( + argument: _greenlight_InvoiceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + createInvoice( + argument: _greenlight_InvoiceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + createInvoice( + argument: _greenlight_InvoiceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + createInvoice( + argument: _greenlight_InvoiceRequest, + callback: grpc.requestCallback<_greenlight_Invoice__Output> + ): grpc.ClientUnaryCall + Disconnect( + argument: _greenlight_DisconnectRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + Disconnect( + argument: _greenlight_DisconnectRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + Disconnect( + argument: _greenlight_DisconnectRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + Disconnect( + argument: _greenlight_DisconnectRequest, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + disconnect( + argument: _greenlight_DisconnectRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + disconnect( + argument: _greenlight_DisconnectRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + disconnect( + argument: _greenlight_DisconnectRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + disconnect( + argument: _greenlight_DisconnectRequest, + callback: grpc.requestCallback<_greenlight_DisconnectResponse__Output> + ): grpc.ClientUnaryCall + FundChannel( + argument: _greenlight_FundChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + FundChannel( + argument: _greenlight_FundChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + FundChannel( + argument: _greenlight_FundChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + FundChannel( + argument: _greenlight_FundChannelRequest, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + fundChannel( + argument: _greenlight_FundChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + fundChannel( + argument: _greenlight_FundChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + fundChannel( + argument: _greenlight_FundChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + fundChannel( + argument: _greenlight_FundChannelRequest, + callback: grpc.requestCallback<_greenlight_FundChannelResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _greenlight_GetInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _greenlight_GetInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _greenlight_GetInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _greenlight_GetInfoRequest, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _greenlight_GetInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _greenlight_GetInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _greenlight_GetInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _greenlight_GetInfoRequest, + callback: grpc.requestCallback<_greenlight_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + Keysend( + argument: _greenlight_KeysendRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + Keysend( + argument: _greenlight_KeysendRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + Keysend( + argument: _greenlight_KeysendRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + Keysend( + argument: _greenlight_KeysendRequest, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + keysend( + argument: _greenlight_KeysendRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + keysend( + argument: _greenlight_KeysendRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + keysend( + argument: _greenlight_KeysendRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + keysend( + argument: _greenlight_KeysendRequest, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + ListFunds( + argument: _greenlight_ListFundsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + ListFunds( + argument: _greenlight_ListFundsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + ListFunds( + argument: _greenlight_ListFundsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + ListFunds( + argument: _greenlight_ListFundsRequest, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + listFunds( + argument: _greenlight_ListFundsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + listFunds( + argument: _greenlight_ListFundsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + listFunds( + argument: _greenlight_ListFundsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + listFunds( + argument: _greenlight_ListFundsRequest, + callback: grpc.requestCallback<_greenlight_ListFundsResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _greenlight_ListInvoicesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _greenlight_ListInvoicesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _greenlight_ListInvoicesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _greenlight_ListInvoicesRequest, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _greenlight_ListInvoicesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _greenlight_ListInvoicesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _greenlight_ListInvoicesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _greenlight_ListInvoicesRequest, + callback: grpc.requestCallback<_greenlight_ListInvoicesResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _greenlight_ListPaymentsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _greenlight_ListPaymentsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _greenlight_ListPaymentsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _greenlight_ListPaymentsRequest, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _greenlight_ListPaymentsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _greenlight_ListPaymentsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _greenlight_ListPaymentsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _greenlight_ListPaymentsRequest, + callback: grpc.requestCallback<_greenlight_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _greenlight_ListPeersRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _greenlight_ListPeersRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _greenlight_ListPeersRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _greenlight_ListPeersRequest, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _greenlight_ListPeersRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _greenlight_ListPeersRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _greenlight_ListPeersRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _greenlight_ListPeersRequest, + callback: grpc.requestCallback<_greenlight_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + NewAddr( + argument: _greenlight_NewAddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + NewAddr( + argument: _greenlight_NewAddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + NewAddr( + argument: _greenlight_NewAddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + NewAddr( + argument: _greenlight_NewAddrRequest, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + newAddr( + argument: _greenlight_NewAddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + newAddr( + argument: _greenlight_NewAddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + newAddr( + argument: _greenlight_NewAddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + newAddr( + argument: _greenlight_NewAddrRequest, + callback: grpc.requestCallback<_greenlight_NewAddrResponse__Output> + ): grpc.ClientUnaryCall + Pay( + argument: _greenlight_PayRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + Pay( + argument: _greenlight_PayRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + Pay( + argument: _greenlight_PayRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + Pay( + argument: _greenlight_PayRequest, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + pay( + argument: _greenlight_PayRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + pay( + argument: _greenlight_PayRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + pay( + argument: _greenlight_PayRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + pay( + argument: _greenlight_PayRequest, + callback: grpc.requestCallback<_greenlight_Payment__Output> + ): grpc.ClientUnaryCall + RespondHsmRequest( + argument: _greenlight_HsmResponse, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + RespondHsmRequest( + argument: _greenlight_HsmResponse, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + RespondHsmRequest( + argument: _greenlight_HsmResponse, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + RespondHsmRequest( + argument: _greenlight_HsmResponse, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + respondHsmRequest( + argument: _greenlight_HsmResponse, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + respondHsmRequest( + argument: _greenlight_HsmResponse, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + respondHsmRequest( + argument: _greenlight_HsmResponse, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + respondHsmRequest( + argument: _greenlight_HsmResponse, + callback: grpc.requestCallback<_greenlight_Empty__Output> + ): grpc.ClientUnaryCall + Stop( + argument: _greenlight_StopRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + Stop( + argument: _greenlight_StopRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + Stop( + argument: _greenlight_StopRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + Stop( + argument: _greenlight_StopRequest, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + stop( + argument: _greenlight_StopRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + stop( + argument: _greenlight_StopRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + stop( + argument: _greenlight_StopRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + stop( + argument: _greenlight_StopRequest, + callback: grpc.requestCallback<_greenlight_StopResponse__Output> + ): grpc.ClientUnaryCall + StreamHsmRequests( + argument: _greenlight_Empty, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_HsmRequest__Output> + StreamHsmRequests( + argument: _greenlight_Empty, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_HsmRequest__Output> + streamHsmRequests( + argument: _greenlight_Empty, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_HsmRequest__Output> + streamHsmRequests( + argument: _greenlight_Empty, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_HsmRequest__Output> + StreamIncoming( + argument: _greenlight_StreamIncomingFilter, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_IncomingPayment__Output> + StreamIncoming( + argument: _greenlight_StreamIncomingFilter, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_IncomingPayment__Output> + streamIncoming( + argument: _greenlight_StreamIncomingFilter, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_IncomingPayment__Output> + streamIncoming( + argument: _greenlight_StreamIncomingFilter, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_greenlight_IncomingPayment__Output> + Withdraw( + argument: _greenlight_WithdrawRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + Withdraw( + argument: _greenlight_WithdrawRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + Withdraw( + argument: _greenlight_WithdrawRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + Withdraw( + argument: _greenlight_WithdrawRequest, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + withdraw( + argument: _greenlight_WithdrawRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + withdraw( + argument: _greenlight_WithdrawRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + withdraw( + argument: _greenlight_WithdrawRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall + withdraw( + argument: _greenlight_WithdrawRequest, + callback: grpc.requestCallback<_greenlight_WithdrawResponse__Output> + ): grpc.ClientUnaryCall +} +export interface NodeHandlers extends grpc.UntypedServiceImplementation { + CloseChannel: grpc.handleUnaryCall< + _greenlight_CloseChannelRequest__Output, + _greenlight_CloseChannelResponse + > + ConnectPeer: grpc.handleUnaryCall< + _greenlight_ConnectRequest__Output, + _greenlight_ConnectResponse + > + CreateInvoice: grpc.handleUnaryCall< + _greenlight_InvoiceRequest__Output, + _greenlight_Invoice + > + Disconnect: grpc.handleUnaryCall< + _greenlight_DisconnectRequest__Output, + _greenlight_DisconnectResponse + > + FundChannel: grpc.handleUnaryCall< + _greenlight_FundChannelRequest__Output, + _greenlight_FundChannelResponse + > + GetInfo: grpc.handleUnaryCall< + _greenlight_GetInfoRequest__Output, + _greenlight_GetInfoResponse + > + Keysend: grpc.handleUnaryCall< + _greenlight_KeysendRequest__Output, + _greenlight_Payment + > + ListFunds: grpc.handleUnaryCall< + _greenlight_ListFundsRequest__Output, + _greenlight_ListFundsResponse + > + ListInvoices: grpc.handleUnaryCall< + _greenlight_ListInvoicesRequest__Output, + _greenlight_ListInvoicesResponse + > + ListPayments: grpc.handleUnaryCall< + _greenlight_ListPaymentsRequest__Output, + _greenlight_ListPaymentsResponse + > + ListPeers: grpc.handleUnaryCall< + _greenlight_ListPeersRequest__Output, + _greenlight_ListPeersResponse + > + NewAddr: grpc.handleUnaryCall< + _greenlight_NewAddrRequest__Output, + _greenlight_NewAddrResponse + > + Pay: grpc.handleUnaryCall<_greenlight_PayRequest__Output, _greenlight_Payment> + RespondHsmRequest: grpc.handleUnaryCall< + _greenlight_HsmResponse__Output, + _greenlight_Empty + > + Stop: grpc.handleUnaryCall< + _greenlight_StopRequest__Output, + _greenlight_StopResponse + > + StreamHsmRequests: grpc.handleServerStreamingCall< + _greenlight_Empty__Output, + _greenlight_HsmRequest + > + StreamIncoming: grpc.handleServerStreamingCall< + _greenlight_StreamIncomingFilter__Output, + _greenlight_IncomingPayment + > + Withdraw: grpc.handleUnaryCall< + _greenlight_WithdrawRequest__Output, + _greenlight_WithdrawResponse + > +} +export interface NodeDefinition extends grpc.ServiceDefinition { + CloseChannel: MethodDefinition< + _greenlight_CloseChannelRequest, + _greenlight_CloseChannelResponse, + _greenlight_CloseChannelRequest__Output, + _greenlight_CloseChannelResponse__Output + > + ConnectPeer: MethodDefinition< + _greenlight_ConnectRequest, + _greenlight_ConnectResponse, + _greenlight_ConnectRequest__Output, + _greenlight_ConnectResponse__Output + > + CreateInvoice: MethodDefinition< + _greenlight_InvoiceRequest, + _greenlight_Invoice, + _greenlight_InvoiceRequest__Output, + _greenlight_Invoice__Output + > + Disconnect: MethodDefinition< + _greenlight_DisconnectRequest, + _greenlight_DisconnectResponse, + _greenlight_DisconnectRequest__Output, + _greenlight_DisconnectResponse__Output + > + FundChannel: MethodDefinition< + _greenlight_FundChannelRequest, + _greenlight_FundChannelResponse, + _greenlight_FundChannelRequest__Output, + _greenlight_FundChannelResponse__Output + > + GetInfo: MethodDefinition< + _greenlight_GetInfoRequest, + _greenlight_GetInfoResponse, + _greenlight_GetInfoRequest__Output, + _greenlight_GetInfoResponse__Output + > + Keysend: MethodDefinition< + _greenlight_KeysendRequest, + _greenlight_Payment, + _greenlight_KeysendRequest__Output, + _greenlight_Payment__Output + > + ListFunds: MethodDefinition< + _greenlight_ListFundsRequest, + _greenlight_ListFundsResponse, + _greenlight_ListFundsRequest__Output, + _greenlight_ListFundsResponse__Output + > + ListInvoices: MethodDefinition< + _greenlight_ListInvoicesRequest, + _greenlight_ListInvoicesResponse, + _greenlight_ListInvoicesRequest__Output, + _greenlight_ListInvoicesResponse__Output + > + ListPayments: MethodDefinition< + _greenlight_ListPaymentsRequest, + _greenlight_ListPaymentsResponse, + _greenlight_ListPaymentsRequest__Output, + _greenlight_ListPaymentsResponse__Output + > + ListPeers: MethodDefinition< + _greenlight_ListPeersRequest, + _greenlight_ListPeersResponse, + _greenlight_ListPeersRequest__Output, + _greenlight_ListPeersResponse__Output + > + NewAddr: MethodDefinition< + _greenlight_NewAddrRequest, + _greenlight_NewAddrResponse, + _greenlight_NewAddrRequest__Output, + _greenlight_NewAddrResponse__Output + > + Pay: MethodDefinition< + _greenlight_PayRequest, + _greenlight_Payment, + _greenlight_PayRequest__Output, + _greenlight_Payment__Output + > + RespondHsmRequest: MethodDefinition< + _greenlight_HsmResponse, + _greenlight_Empty, + _greenlight_HsmResponse__Output, + _greenlight_Empty__Output + > + Stop: MethodDefinition< + _greenlight_StopRequest, + _greenlight_StopResponse, + _greenlight_StopRequest__Output, + _greenlight_StopResponse__Output + > + StreamHsmRequests: MethodDefinition< + _greenlight_Empty, + _greenlight_HsmRequest, + _greenlight_Empty__Output, + _greenlight_HsmRequest__Output + > + StreamIncoming: MethodDefinition< + _greenlight_StreamIncomingFilter, + _greenlight_IncomingPayment, + _greenlight_StreamIncomingFilter__Output, + _greenlight_IncomingPayment__Output + > + Withdraw: MethodDefinition< + _greenlight_WithdrawRequest, + _greenlight_WithdrawResponse, + _greenlight_WithdrawRequest__Output, + _greenlight_WithdrawResponse__Output + > +} diff --git a/src/grpc/types/greenlight/OffChainPayment.d.ts b/src/grpc/types/greenlight/OffChainPayment.d.ts new file mode 100644 index 000000000..207ae4925 --- /dev/null +++ b/src/grpc/types/greenlight/OffChainPayment.d.ts @@ -0,0 +1,25 @@ +/// +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { + TlvField as _greenlight_TlvField, + TlvField__Output as _greenlight_TlvField__Output, +} from '../greenlight/TlvField' +export interface OffChainPayment { + label?: string + preimage?: Buffer | Uint8Array | string + amount?: _greenlight_Amount | null + extratlvs?: _greenlight_TlvField[] + payment_hash?: Buffer | Uint8Array | string + bolt11?: string +} +export interface OffChainPayment__Output { + label: string + preimage: Buffer + amount: _greenlight_Amount__Output | null + extratlvs: _greenlight_TlvField__Output[] + payment_hash: Buffer + bolt11: string +} diff --git a/src/grpc/types/greenlight/Outpoint.d.ts b/src/grpc/types/greenlight/Outpoint.d.ts new file mode 100644 index 000000000..919c59027 --- /dev/null +++ b/src/grpc/types/greenlight/Outpoint.d.ts @@ -0,0 +1,9 @@ +/// +export interface Outpoint { + txid?: Buffer | Uint8Array | string + outnum?: number +} +export interface Outpoint__Output { + txid: Buffer + outnum: number +} diff --git a/src/grpc/types/greenlight/OutputStatus.d.ts b/src/grpc/types/greenlight/OutputStatus.d.ts new file mode 100644 index 000000000..e460f5e62 --- /dev/null +++ b/src/grpc/types/greenlight/OutputStatus.d.ts @@ -0,0 +1,4 @@ +export declare enum OutputStatus { + CONFIRMED = 0, + UNCONFIRMED = 1, +} diff --git a/src/grpc/types/greenlight/PayRequest.d.ts b/src/grpc/types/greenlight/PayRequest.d.ts new file mode 100644 index 000000000..2fd81bb5a --- /dev/null +++ b/src/grpc/types/greenlight/PayRequest.d.ts @@ -0,0 +1,14 @@ +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +export interface PayRequest { + bolt11?: string + amount?: _greenlight_Amount | null + timeout?: number +} +export interface PayRequest__Output { + bolt11: string + amount: _greenlight_Amount__Output | null + timeout: number +} diff --git a/src/grpc/types/greenlight/PayStatus.d.ts b/src/grpc/types/greenlight/PayStatus.d.ts new file mode 100644 index 000000000..b517abf2b --- /dev/null +++ b/src/grpc/types/greenlight/PayStatus.d.ts @@ -0,0 +1,5 @@ +export declare enum PayStatus { + PENDING = 0, + COMPLETE = 1, + FAILED = 2, +} diff --git a/src/grpc/types/greenlight/Payment.d.ts b/src/grpc/types/greenlight/Payment.d.ts new file mode 100644 index 000000000..c90f3bd61 --- /dev/null +++ b/src/grpc/types/greenlight/Payment.d.ts @@ -0,0 +1,22 @@ +/// +import type { PayStatus as _greenlight_PayStatus } from '../greenlight/PayStatus' +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +export interface Payment { + destination?: Buffer | Uint8Array | string + payment_hash?: Buffer | Uint8Array | string + payment_preimage?: Buffer | Uint8Array | string + status?: _greenlight_PayStatus | keyof typeof _greenlight_PayStatus + amount?: _greenlight_Amount | null + amount_sent?: _greenlight_Amount | null +} +export interface Payment__Output { + destination: Buffer + payment_hash: Buffer + payment_preimage: Buffer + status: keyof typeof _greenlight_PayStatus + amount: _greenlight_Amount__Output | null + amount_sent: _greenlight_Amount__Output | null +} diff --git a/src/grpc/types/greenlight/PaymentIdentifier.d.ts b/src/grpc/types/greenlight/PaymentIdentifier.d.ts new file mode 100644 index 000000000..7b52284cb --- /dev/null +++ b/src/grpc/types/greenlight/PaymentIdentifier.d.ts @@ -0,0 +1,11 @@ +/// +export interface PaymentIdentifier { + bolt11?: string + payment_hash?: Buffer | Uint8Array | string + id?: 'bolt11' | 'payment_hash' +} +export interface PaymentIdentifier__Output { + bolt11?: string + payment_hash?: Buffer + id: 'bolt11' | 'payment_hash' +} diff --git a/src/grpc/types/greenlight/Peer.d.ts b/src/grpc/types/greenlight/Peer.d.ts new file mode 100644 index 000000000..79ebf5a86 --- /dev/null +++ b/src/grpc/types/greenlight/Peer.d.ts @@ -0,0 +1,23 @@ +/// +import type { + Address as _greenlight_Address, + Address__Output as _greenlight_Address__Output, +} from '../greenlight/Address' +import type { + Channel as _greenlight_Channel, + Channel__Output as _greenlight_Channel__Output, +} from '../greenlight/Channel' +export interface Peer { + id?: Buffer | Uint8Array | string + connected?: boolean + addresses?: _greenlight_Address[] + features?: string + channels?: _greenlight_Channel[] +} +export interface Peer__Output { + id: Buffer + connected: boolean + addresses: _greenlight_Address__Output[] + features: string + channels: _greenlight_Channel__Output[] +} diff --git a/src/grpc/types/greenlight/Routehint.d.ts b/src/grpc/types/greenlight/Routehint.d.ts new file mode 100644 index 000000000..e28955a19 --- /dev/null +++ b/src/grpc/types/greenlight/Routehint.d.ts @@ -0,0 +1,10 @@ +import type { + RoutehintHop as _greenlight_RoutehintHop, + RoutehintHop__Output as _greenlight_RoutehintHop__Output, +} from '../greenlight/RoutehintHop' +export interface Routehint { + hops?: _greenlight_RoutehintHop[] +} +export interface Routehint__Output { + hops: _greenlight_RoutehintHop__Output[] +} diff --git a/src/grpc/types/greenlight/RoutehintHop.d.ts b/src/grpc/types/greenlight/RoutehintHop.d.ts new file mode 100644 index 000000000..7ee6c6bd9 --- /dev/null +++ b/src/grpc/types/greenlight/RoutehintHop.d.ts @@ -0,0 +1,17 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface RoutehintHop { + node_id?: Buffer | Uint8Array | string + short_channel_id?: string + fee_base?: number | string | Long + fee_prop?: number + cltv_expiry_delta?: number +} +export interface RoutehintHop__Output { + node_id: Buffer + short_channel_id: string + fee_base: string + fee_prop: number + cltv_expiry_delta: number +} diff --git a/src/grpc/types/greenlight/StopRequest.d.ts b/src/grpc/types/greenlight/StopRequest.d.ts new file mode 100644 index 000000000..212b4dac1 --- /dev/null +++ b/src/grpc/types/greenlight/StopRequest.d.ts @@ -0,0 +1,2 @@ +export interface StopRequest {} +export interface StopRequest__Output {} diff --git a/src/grpc/types/greenlight/StopResponse.d.ts b/src/grpc/types/greenlight/StopResponse.d.ts new file mode 100644 index 000000000..8190734f3 --- /dev/null +++ b/src/grpc/types/greenlight/StopResponse.d.ts @@ -0,0 +1,2 @@ +export interface StopResponse {} +export interface StopResponse__Output {} diff --git a/src/grpc/types/greenlight/StreamIncomingFilter.d.ts b/src/grpc/types/greenlight/StreamIncomingFilter.d.ts new file mode 100644 index 000000000..9ada1e46a --- /dev/null +++ b/src/grpc/types/greenlight/StreamIncomingFilter.d.ts @@ -0,0 +1,2 @@ +export interface StreamIncomingFilter {} +export interface StreamIncomingFilter__Output {} diff --git a/src/grpc/types/greenlight/Timeout.d.ts b/src/grpc/types/greenlight/Timeout.d.ts new file mode 100644 index 000000000..c3e3fba47 --- /dev/null +++ b/src/grpc/types/greenlight/Timeout.d.ts @@ -0,0 +1,6 @@ +export interface Timeout { + seconds?: number +} +export interface Timeout__Output { + seconds: number +} diff --git a/src/grpc/types/greenlight/TlvField.d.ts b/src/grpc/types/greenlight/TlvField.d.ts new file mode 100644 index 000000000..db2a3fcee --- /dev/null +++ b/src/grpc/types/greenlight/TlvField.d.ts @@ -0,0 +1,11 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface TlvField { + type?: number | string | Long + value?: Buffer | Uint8Array | string +} +export interface TlvField__Output { + type: string + value: Buffer +} diff --git a/src/grpc/types/greenlight/WithdrawRequest.d.ts b/src/grpc/types/greenlight/WithdrawRequest.d.ts new file mode 100644 index 000000000..a2213b7b2 --- /dev/null +++ b/src/grpc/types/greenlight/WithdrawRequest.d.ts @@ -0,0 +1,30 @@ +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { + Feerate as _greenlight_Feerate, + Feerate__Output as _greenlight_Feerate__Output, +} from '../greenlight/Feerate' +import type { + Confirmation as _greenlight_Confirmation, + Confirmation__Output as _greenlight_Confirmation__Output, +} from '../greenlight/Confirmation' +import type { + Outpoint as _greenlight_Outpoint, + Outpoint__Output as _greenlight_Outpoint__Output, +} from '../greenlight/Outpoint' +export interface WithdrawRequest { + destination?: string + amount?: _greenlight_Amount | null + feerate?: _greenlight_Feerate | null + minconf?: _greenlight_Confirmation | null + utxos?: _greenlight_Outpoint[] +} +export interface WithdrawRequest__Output { + destination: string + amount: _greenlight_Amount__Output | null + feerate: _greenlight_Feerate__Output | null + minconf: _greenlight_Confirmation__Output | null + utxos: _greenlight_Outpoint__Output[] +} diff --git a/src/grpc/types/greenlight/WithdrawResponse.d.ts b/src/grpc/types/greenlight/WithdrawResponse.d.ts new file mode 100644 index 000000000..9e4308186 --- /dev/null +++ b/src/grpc/types/greenlight/WithdrawResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface WithdrawResponse { + tx?: Buffer | Uint8Array | string + txid?: Buffer | Uint8Array | string +} +export interface WithdrawResponse__Output { + tx: Buffer + txid: Buffer +} diff --git a/src/grpc/types/lightning.d.ts b/src/grpc/types/lightning.d.ts new file mode 100644 index 000000000..9708d112a --- /dev/null +++ b/src/grpc/types/lightning.d.ts @@ -0,0 +1,227 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + LightningClient as _lnrpc_LightningClient, + LightningDefinition as _lnrpc_LightningDefinition, +} from './lnrpc/Lightning' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + lnrpc: { + AMP: MessageTypeDefinition + AMPInvoiceState: MessageTypeDefinition + AMPRecord: MessageTypeDefinition + AbandonChannelRequest: MessageTypeDefinition + AbandonChannelResponse: MessageTypeDefinition + AddInvoiceResponse: MessageTypeDefinition + AddressType: EnumTypeDefinition + AliasMap: MessageTypeDefinition + Amount: MessageTypeDefinition + BakeMacaroonRequest: MessageTypeDefinition + BakeMacaroonResponse: MessageTypeDefinition + BatchOpenChannel: MessageTypeDefinition + BatchOpenChannelRequest: MessageTypeDefinition + BatchOpenChannelResponse: MessageTypeDefinition + Chain: MessageTypeDefinition + ChanBackupExportRequest: MessageTypeDefinition + ChanBackupSnapshot: MessageTypeDefinition + ChanInfoRequest: MessageTypeDefinition + ChanPointShim: MessageTypeDefinition + Channel: MessageTypeDefinition + ChannelAcceptRequest: MessageTypeDefinition + ChannelAcceptResponse: MessageTypeDefinition + ChannelBackup: MessageTypeDefinition + ChannelBackupSubscription: MessageTypeDefinition + ChannelBackups: MessageTypeDefinition + ChannelBalanceRequest: MessageTypeDefinition + ChannelBalanceResponse: MessageTypeDefinition + ChannelCloseSummary: MessageTypeDefinition + ChannelCloseUpdate: MessageTypeDefinition + ChannelConstraints: MessageTypeDefinition + ChannelEdge: MessageTypeDefinition + ChannelEdgeUpdate: MessageTypeDefinition + ChannelEventSubscription: MessageTypeDefinition + ChannelEventUpdate: MessageTypeDefinition + ChannelFeeReport: MessageTypeDefinition + ChannelGraph: MessageTypeDefinition + ChannelGraphRequest: MessageTypeDefinition + ChannelOpenUpdate: MessageTypeDefinition + ChannelPoint: MessageTypeDefinition + ChannelUpdate: MessageTypeDefinition + CheckMacPermRequest: MessageTypeDefinition + CheckMacPermResponse: MessageTypeDefinition + CloseChannelRequest: MessageTypeDefinition + CloseStatusUpdate: MessageTypeDefinition + ClosedChannelUpdate: MessageTypeDefinition + ClosedChannelsRequest: MessageTypeDefinition + ClosedChannelsResponse: MessageTypeDefinition + CommitmentType: EnumTypeDefinition + ConfirmationUpdate: MessageTypeDefinition + ConnectPeerRequest: MessageTypeDefinition + ConnectPeerResponse: MessageTypeDefinition + CustomMessage: MessageTypeDefinition + DebugLevelRequest: MessageTypeDefinition + DebugLevelResponse: MessageTypeDefinition + DeleteAllPaymentsRequest: MessageTypeDefinition + DeleteAllPaymentsResponse: MessageTypeDefinition + DeleteMacaroonIDRequest: MessageTypeDefinition + DeleteMacaroonIDResponse: MessageTypeDefinition + DeletePaymentRequest: MessageTypeDefinition + DeletePaymentResponse: MessageTypeDefinition + DisconnectPeerRequest: MessageTypeDefinition + DisconnectPeerResponse: MessageTypeDefinition + EdgeLocator: MessageTypeDefinition + EstimateFeeRequest: MessageTypeDefinition + EstimateFeeResponse: MessageTypeDefinition + ExportChannelBackupRequest: MessageTypeDefinition + FailedUpdate: MessageTypeDefinition + Failure: MessageTypeDefinition + Feature: MessageTypeDefinition + FeatureBit: EnumTypeDefinition + FeeLimit: MessageTypeDefinition + FeeReportRequest: MessageTypeDefinition + FeeReportResponse: MessageTypeDefinition + FloatMetric: MessageTypeDefinition + ForwardingEvent: MessageTypeDefinition + ForwardingHistoryRequest: MessageTypeDefinition + ForwardingHistoryResponse: MessageTypeDefinition + FundingPsbtFinalize: MessageTypeDefinition + FundingPsbtVerify: MessageTypeDefinition + FundingShim: MessageTypeDefinition + FundingShimCancel: MessageTypeDefinition + FundingStateStepResp: MessageTypeDefinition + FundingTransitionMsg: MessageTypeDefinition + GetInfoRequest: MessageTypeDefinition + GetInfoResponse: MessageTypeDefinition + GetRecoveryInfoRequest: MessageTypeDefinition + GetRecoveryInfoResponse: MessageTypeDefinition + GetTransactionsRequest: MessageTypeDefinition + GraphTopologySubscription: MessageTypeDefinition + GraphTopologyUpdate: MessageTypeDefinition + HTLC: MessageTypeDefinition + HTLCAttempt: MessageTypeDefinition + Hop: MessageTypeDefinition + HopHint: MessageTypeDefinition + Initiator: EnumTypeDefinition + InterceptFeedback: MessageTypeDefinition + Invoice: MessageTypeDefinition + InvoiceHTLC: MessageTypeDefinition + InvoiceHTLCState: EnumTypeDefinition + InvoiceSubscription: MessageTypeDefinition + KeyDescriptor: MessageTypeDefinition + KeyLocator: MessageTypeDefinition + Lightning: SubtypeConstructor< + typeof grpc.Client, + _lnrpc_LightningClient + > & { + service: _lnrpc_LightningDefinition + } + LightningAddress: MessageTypeDefinition + LightningNode: MessageTypeDefinition + ListAliasesRequest: MessageTypeDefinition + ListAliasesResponse: MessageTypeDefinition + ListChannelsRequest: MessageTypeDefinition + ListChannelsResponse: MessageTypeDefinition + ListInvoiceRequest: MessageTypeDefinition + ListInvoiceResponse: MessageTypeDefinition + ListMacaroonIDsRequest: MessageTypeDefinition + ListMacaroonIDsResponse: MessageTypeDefinition + ListPaymentsRequest: MessageTypeDefinition + ListPaymentsResponse: MessageTypeDefinition + ListPeersRequest: MessageTypeDefinition + ListPeersResponse: MessageTypeDefinition + ListPermissionsRequest: MessageTypeDefinition + ListPermissionsResponse: MessageTypeDefinition + ListUnspentRequest: MessageTypeDefinition + ListUnspentResponse: MessageTypeDefinition + MPPRecord: MessageTypeDefinition + MacaroonId: MessageTypeDefinition + MacaroonPermission: MessageTypeDefinition + MacaroonPermissionList: MessageTypeDefinition + MiddlewareRegistration: MessageTypeDefinition + MultiChanBackup: MessageTypeDefinition + NetworkInfo: MessageTypeDefinition + NetworkInfoRequest: MessageTypeDefinition + NewAddressRequest: MessageTypeDefinition + NewAddressResponse: MessageTypeDefinition + NodeAddress: MessageTypeDefinition + NodeInfo: MessageTypeDefinition + NodeInfoRequest: MessageTypeDefinition + NodeMetricType: EnumTypeDefinition + NodeMetricsRequest: MessageTypeDefinition + NodeMetricsResponse: MessageTypeDefinition + NodePair: MessageTypeDefinition + NodeUpdate: MessageTypeDefinition + Op: MessageTypeDefinition + OpenChannelRequest: MessageTypeDefinition + OpenStatusUpdate: MessageTypeDefinition + OutPoint: MessageTypeDefinition + OutputDetail: MessageTypeDefinition + OutputScriptType: EnumTypeDefinition + PayReq: MessageTypeDefinition + PayReqString: MessageTypeDefinition + Payment: MessageTypeDefinition + PaymentFailureReason: EnumTypeDefinition + PaymentHash: MessageTypeDefinition + Peer: MessageTypeDefinition + PeerEvent: MessageTypeDefinition + PeerEventSubscription: MessageTypeDefinition + PendingChannelsRequest: MessageTypeDefinition + PendingChannelsResponse: MessageTypeDefinition + PendingHTLC: MessageTypeDefinition + PendingUpdate: MessageTypeDefinition + PolicyUpdateRequest: MessageTypeDefinition + PolicyUpdateResponse: MessageTypeDefinition + PreviousOutPoint: MessageTypeDefinition + PsbtShim: MessageTypeDefinition + QueryRoutesRequest: MessageTypeDefinition + QueryRoutesResponse: MessageTypeDefinition + RPCMessage: MessageTypeDefinition + RPCMiddlewareRequest: MessageTypeDefinition + RPCMiddlewareResponse: MessageTypeDefinition + ReadyForPsbtFunding: MessageTypeDefinition + Resolution: MessageTypeDefinition + ResolutionOutcome: EnumTypeDefinition + ResolutionType: EnumTypeDefinition + RestoreBackupResponse: MessageTypeDefinition + RestoreChanBackupRequest: MessageTypeDefinition + Route: MessageTypeDefinition + RouteHint: MessageTypeDefinition + RoutingPolicy: MessageTypeDefinition + SendCoinsRequest: MessageTypeDefinition + SendCoinsResponse: MessageTypeDefinition + SendCustomMessageRequest: MessageTypeDefinition + SendCustomMessageResponse: MessageTypeDefinition + SendManyRequest: MessageTypeDefinition + SendManyResponse: MessageTypeDefinition + SendRequest: MessageTypeDefinition + SendResponse: MessageTypeDefinition + SendToRouteRequest: MessageTypeDefinition + SetID: MessageTypeDefinition + SignMessageRequest: MessageTypeDefinition + SignMessageResponse: MessageTypeDefinition + StopRequest: MessageTypeDefinition + StopResponse: MessageTypeDefinition + StreamAuth: MessageTypeDefinition + SubscribeCustomMessagesRequest: MessageTypeDefinition + TimestampedError: MessageTypeDefinition + Transaction: MessageTypeDefinition + TransactionDetails: MessageTypeDefinition + UpdateFailure: EnumTypeDefinition + Utxo: MessageTypeDefinition + VerifyChanBackupResponse: MessageTypeDefinition + VerifyMessageRequest: MessageTypeDefinition + VerifyMessageResponse: MessageTypeDefinition + WalletAccountBalance: MessageTypeDefinition + WalletBalanceRequest: MessageTypeDefinition + WalletBalanceResponse: MessageTypeDefinition + } +} +export {} diff --git a/src/grpc/types/lnrpc/AMP.d.ts b/src/grpc/types/lnrpc/AMP.d.ts new file mode 100644 index 000000000..20a3ec450 --- /dev/null +++ b/src/grpc/types/lnrpc/AMP.d.ts @@ -0,0 +1,15 @@ +/// +export interface AMP { + root_share?: Buffer | Uint8Array | string + set_id?: Buffer | Uint8Array | string + child_index?: number + hash?: Buffer | Uint8Array | string + preimage?: Buffer | Uint8Array | string +} +export interface AMP__Output { + root_share: Buffer + set_id: Buffer + child_index: number + hash: Buffer + preimage: Buffer +} diff --git a/src/grpc/types/lnrpc/AMPInvoiceState.d.ts b/src/grpc/types/lnrpc/AMPInvoiceState.d.ts new file mode 100644 index 000000000..9519367ab --- /dev/null +++ b/src/grpc/types/lnrpc/AMPInvoiceState.d.ts @@ -0,0 +1,15 @@ +/// +import type { InvoiceHTLCState as _lnrpc_InvoiceHTLCState } from '../lnrpc/InvoiceHTLCState' +import type { Long } from '@grpc/proto-loader' +export interface AMPInvoiceState { + state?: _lnrpc_InvoiceHTLCState | keyof typeof _lnrpc_InvoiceHTLCState + settle_index?: number | string | Long + settle_time?: number | string | Long + amt_paid_msat?: number | string | Long +} +export interface AMPInvoiceState__Output { + state: keyof typeof _lnrpc_InvoiceHTLCState + settle_index: string + settle_time: string + amt_paid_msat: string +} diff --git a/src/grpc/types/lnrpc/AMPRecord.d.ts b/src/grpc/types/lnrpc/AMPRecord.d.ts new file mode 100644 index 000000000..5c5e745ac --- /dev/null +++ b/src/grpc/types/lnrpc/AMPRecord.d.ts @@ -0,0 +1,11 @@ +/// +export interface AMPRecord { + root_share?: Buffer | Uint8Array | string + set_id?: Buffer | Uint8Array | string + child_index?: number +} +export interface AMPRecord__Output { + root_share: Buffer + set_id: Buffer + child_index: number +} diff --git a/src/grpc/types/lnrpc/AbandonChannelRequest.d.ts b/src/grpc/types/lnrpc/AbandonChannelRequest.d.ts new file mode 100644 index 000000000..e95974714 --- /dev/null +++ b/src/grpc/types/lnrpc/AbandonChannelRequest.d.ts @@ -0,0 +1,14 @@ +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +export interface AbandonChannelRequest { + channel_point?: _lnrpc_ChannelPoint | null + pending_funding_shim_only?: boolean + i_know_what_i_am_doing?: boolean +} +export interface AbandonChannelRequest__Output { + channel_point: _lnrpc_ChannelPoint__Output | null + pending_funding_shim_only: boolean + i_know_what_i_am_doing: boolean +} diff --git a/src/grpc/types/lnrpc/AbandonChannelResponse.d.ts b/src/grpc/types/lnrpc/AbandonChannelResponse.d.ts new file mode 100644 index 000000000..99ad5dc74 --- /dev/null +++ b/src/grpc/types/lnrpc/AbandonChannelResponse.d.ts @@ -0,0 +1,2 @@ +export interface AbandonChannelResponse {} +export interface AbandonChannelResponse__Output {} diff --git a/src/grpc/types/lnrpc/AddInvoiceResponse.d.ts b/src/grpc/types/lnrpc/AddInvoiceResponse.d.ts new file mode 100644 index 000000000..f18fa173b --- /dev/null +++ b/src/grpc/types/lnrpc/AddInvoiceResponse.d.ts @@ -0,0 +1,15 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface AddInvoiceResponse { + r_hash?: Buffer | Uint8Array | string + payment_request?: string + add_index?: number | string | Long + payment_addr?: Buffer | Uint8Array | string +} +export interface AddInvoiceResponse__Output { + r_hash: Buffer + payment_request: string + add_index: string + payment_addr: Buffer +} diff --git a/src/grpc/types/lnrpc/AddressType.d.ts b/src/grpc/types/lnrpc/AddressType.d.ts new file mode 100644 index 000000000..1c24d89c4 --- /dev/null +++ b/src/grpc/types/lnrpc/AddressType.d.ts @@ -0,0 +1,8 @@ +export declare enum AddressType { + WITNESS_PUBKEY_HASH = 0, + NESTED_PUBKEY_HASH = 1, + UNUSED_WITNESS_PUBKEY_HASH = 2, + UNUSED_NESTED_PUBKEY_HASH = 3, + TAPROOT_PUBKEY = 4, + UNUSED_TAPROOT_PUBKEY = 5, +} diff --git a/src/grpc/types/lnrpc/AliasMap.d.ts b/src/grpc/types/lnrpc/AliasMap.d.ts new file mode 100644 index 000000000..f89552ea8 --- /dev/null +++ b/src/grpc/types/lnrpc/AliasMap.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface AliasMap { + base_scid?: number | string | Long + aliases?: (number | string | Long)[] +} +export interface AliasMap__Output { + base_scid: string + aliases: string[] +} diff --git a/src/grpc/types/lnrpc/Amount.d.ts b/src/grpc/types/lnrpc/Amount.d.ts new file mode 100644 index 000000000..6143cedf4 --- /dev/null +++ b/src/grpc/types/lnrpc/Amount.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface Amount { + sat?: number | string | Long + msat?: number | string | Long +} +export interface Amount__Output { + sat: string + msat: string +} diff --git a/src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts b/src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts new file mode 100644 index 000000000..ceb4d3da9 --- /dev/null +++ b/src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts @@ -0,0 +1,16 @@ +/// +import type { + MacaroonPermission as _lnrpc_MacaroonPermission, + MacaroonPermission__Output as _lnrpc_MacaroonPermission__Output, +} from '../lnrpc/MacaroonPermission' +import type { Long } from '@grpc/proto-loader' +export interface BakeMacaroonRequest { + permissions?: _lnrpc_MacaroonPermission[] + root_key_id?: number | string | Long + allow_external_permissions?: boolean +} +export interface BakeMacaroonRequest__Output { + permissions: _lnrpc_MacaroonPermission__Output[] + root_key_id: string + allow_external_permissions: boolean +} diff --git a/src/grpc/types/lnrpc/BakeMacaroonResponse.d.ts b/src/grpc/types/lnrpc/BakeMacaroonResponse.d.ts new file mode 100644 index 000000000..5e54c4101 --- /dev/null +++ b/src/grpc/types/lnrpc/BakeMacaroonResponse.d.ts @@ -0,0 +1,6 @@ +export interface BakeMacaroonResponse { + macaroon?: string +} +export interface BakeMacaroonResponse__Output { + macaroon: string +} diff --git a/src/grpc/types/lnrpc/BatchOpenChannel.d.ts b/src/grpc/types/lnrpc/BatchOpenChannel.d.ts new file mode 100644 index 000000000..b3908e9f0 --- /dev/null +++ b/src/grpc/types/lnrpc/BatchOpenChannel.d.ts @@ -0,0 +1,26 @@ +/// +/// +import type { CommitmentType as _lnrpc_CommitmentType } from '../lnrpc/CommitmentType' +import type { Long } from '@grpc/proto-loader' +export interface BatchOpenChannel { + node_pubkey?: Buffer | Uint8Array | string + local_funding_amount?: number | string | Long + push_sat?: number | string | Long + private?: boolean + min_htlc_msat?: number | string | Long + remote_csv_delay?: number + close_address?: string + pending_chan_id?: Buffer | Uint8Array | string + commitment_type?: _lnrpc_CommitmentType | keyof typeof _lnrpc_CommitmentType +} +export interface BatchOpenChannel__Output { + node_pubkey: Buffer + local_funding_amount: string + push_sat: string + private: boolean + min_htlc_msat: string + remote_csv_delay: number + close_address: string + pending_chan_id: Buffer + commitment_type: keyof typeof _lnrpc_CommitmentType +} diff --git a/src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts b/src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts new file mode 100644 index 000000000..06181c3a5 --- /dev/null +++ b/src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts @@ -0,0 +1,22 @@ +/// +import type { + BatchOpenChannel as _lnrpc_BatchOpenChannel, + BatchOpenChannel__Output as _lnrpc_BatchOpenChannel__Output, +} from '../lnrpc/BatchOpenChannel' +import type { Long } from '@grpc/proto-loader' +export interface BatchOpenChannelRequest { + channels?: _lnrpc_BatchOpenChannel[] + target_conf?: number + sat_per_vbyte?: number | string | Long + min_confs?: number + spend_unconfirmed?: boolean + label?: string +} +export interface BatchOpenChannelRequest__Output { + channels: _lnrpc_BatchOpenChannel__Output[] + target_conf: number + sat_per_vbyte: string + min_confs: number + spend_unconfirmed: boolean + label: string +} diff --git a/src/grpc/types/lnrpc/BatchOpenChannelResponse.d.ts b/src/grpc/types/lnrpc/BatchOpenChannelResponse.d.ts new file mode 100644 index 000000000..237ad6029 --- /dev/null +++ b/src/grpc/types/lnrpc/BatchOpenChannelResponse.d.ts @@ -0,0 +1,10 @@ +import type { + PendingUpdate as _lnrpc_PendingUpdate, + PendingUpdate__Output as _lnrpc_PendingUpdate__Output, +} from '../lnrpc/PendingUpdate' +export interface BatchOpenChannelResponse { + pending_channels?: _lnrpc_PendingUpdate[] +} +export interface BatchOpenChannelResponse__Output { + pending_channels: _lnrpc_PendingUpdate__Output[] +} diff --git a/src/grpc/types/lnrpc/Chain.d.ts b/src/grpc/types/lnrpc/Chain.d.ts new file mode 100644 index 000000000..126d96b40 --- /dev/null +++ b/src/grpc/types/lnrpc/Chain.d.ts @@ -0,0 +1,8 @@ +export interface Chain { + chain?: string + network?: string +} +export interface Chain__Output { + chain: string + network: string +} diff --git a/src/grpc/types/lnrpc/ChanBackupExportRequest.d.ts b/src/grpc/types/lnrpc/ChanBackupExportRequest.d.ts new file mode 100644 index 000000000..4a7748e2e --- /dev/null +++ b/src/grpc/types/lnrpc/ChanBackupExportRequest.d.ts @@ -0,0 +1,2 @@ +export interface ChanBackupExportRequest {} +export interface ChanBackupExportRequest__Output {} diff --git a/src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts b/src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts new file mode 100644 index 000000000..fc08639d5 --- /dev/null +++ b/src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts @@ -0,0 +1,16 @@ +import type { + ChannelBackups as _lnrpc_ChannelBackups, + ChannelBackups__Output as _lnrpc_ChannelBackups__Output, +} from '../lnrpc/ChannelBackups' +import type { + MultiChanBackup as _lnrpc_MultiChanBackup, + MultiChanBackup__Output as _lnrpc_MultiChanBackup__Output, +} from '../lnrpc/MultiChanBackup' +export interface ChanBackupSnapshot { + single_chan_backups?: _lnrpc_ChannelBackups | null + multi_chan_backup?: _lnrpc_MultiChanBackup | null +} +export interface ChanBackupSnapshot__Output { + single_chan_backups: _lnrpc_ChannelBackups__Output | null + multi_chan_backup: _lnrpc_MultiChanBackup__Output | null +} diff --git a/src/grpc/types/lnrpc/ChanInfoRequest.d.ts b/src/grpc/types/lnrpc/ChanInfoRequest.d.ts new file mode 100644 index 000000000..1c5dfce44 --- /dev/null +++ b/src/grpc/types/lnrpc/ChanInfoRequest.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ChanInfoRequest { + chan_id?: number | string | Long +} +export interface ChanInfoRequest__Output { + chan_id: string +} diff --git a/src/grpc/types/lnrpc/ChanPointShim.d.ts b/src/grpc/types/lnrpc/ChanPointShim.d.ts new file mode 100644 index 000000000..6f8065814 --- /dev/null +++ b/src/grpc/types/lnrpc/ChanPointShim.d.ts @@ -0,0 +1,27 @@ +/// +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { + KeyDescriptor as _lnrpc_KeyDescriptor, + KeyDescriptor__Output as _lnrpc_KeyDescriptor__Output, +} from '../lnrpc/KeyDescriptor' +import type { Long } from '@grpc/proto-loader' +export interface ChanPointShim { + amt?: number | string | Long + chan_point?: _lnrpc_ChannelPoint | null + local_key?: _lnrpc_KeyDescriptor | null + remote_key?: Buffer | Uint8Array | string + pending_chan_id?: Buffer | Uint8Array | string + thaw_height?: number +} +export interface ChanPointShim__Output { + amt: string + chan_point: _lnrpc_ChannelPoint__Output | null + local_key: _lnrpc_KeyDescriptor__Output | null + remote_key: Buffer + pending_chan_id: Buffer + thaw_height: number +} diff --git a/src/grpc/types/lnrpc/ChangePasswordRequest.d.ts b/src/grpc/types/lnrpc/ChangePasswordRequest.d.ts new file mode 100644 index 000000000..4ed6f2377 --- /dev/null +++ b/src/grpc/types/lnrpc/ChangePasswordRequest.d.ts @@ -0,0 +1,13 @@ +/// +export interface ChangePasswordRequest { + current_password?: Buffer | Uint8Array | string + new_password?: Buffer | Uint8Array | string + stateless_init?: boolean + new_macaroon_root_key?: boolean +} +export interface ChangePasswordRequest__Output { + current_password: Buffer + new_password: Buffer + stateless_init: boolean + new_macaroon_root_key: boolean +} diff --git a/src/grpc/types/lnrpc/ChangePasswordResponse.d.ts b/src/grpc/types/lnrpc/ChangePasswordResponse.d.ts new file mode 100644 index 000000000..90490ce23 --- /dev/null +++ b/src/grpc/types/lnrpc/ChangePasswordResponse.d.ts @@ -0,0 +1,7 @@ +/// +export interface ChangePasswordResponse { + admin_macaroon?: Buffer | Uint8Array | string +} +export interface ChangePasswordResponse__Output { + admin_macaroon: Buffer +} diff --git a/src/grpc/types/lnrpc/Channel.d.ts b/src/grpc/types/lnrpc/Channel.d.ts new file mode 100644 index 000000000..f75bc5e58 --- /dev/null +++ b/src/grpc/types/lnrpc/Channel.d.ts @@ -0,0 +1,81 @@ +/// +import type { + HTLC as _lnrpc_HTLC, + HTLC__Output as _lnrpc_HTLC__Output, +} from '../lnrpc/HTLC' +import type { CommitmentType as _lnrpc_CommitmentType } from '../lnrpc/CommitmentType' +import type { + ChannelConstraints as _lnrpc_ChannelConstraints, + ChannelConstraints__Output as _lnrpc_ChannelConstraints__Output, +} from '../lnrpc/ChannelConstraints' +import type { Long } from '@grpc/proto-loader' +export interface Channel { + active?: boolean + remote_pubkey?: string + channel_point?: string + chan_id?: number | string | Long + capacity?: number | string | Long + local_balance?: number | string | Long + remote_balance?: number | string | Long + commit_fee?: number | string | Long + commit_weight?: number | string | Long + fee_per_kw?: number | string | Long + unsettled_balance?: number | string | Long + total_satoshis_sent?: number | string | Long + total_satoshis_received?: number | string | Long + num_updates?: number | string | Long + pending_htlcs?: _lnrpc_HTLC[] + csv_delay?: number + private?: boolean + initiator?: boolean + chan_status_flags?: string + local_chan_reserve_sat?: number | string | Long + remote_chan_reserve_sat?: number | string | Long + static_remote_key?: boolean + lifetime?: number | string | Long + uptime?: number | string | Long + close_address?: string + commitment_type?: _lnrpc_CommitmentType | keyof typeof _lnrpc_CommitmentType + push_amount_sat?: number | string | Long + thaw_height?: number + local_constraints?: _lnrpc_ChannelConstraints | null + remote_constraints?: _lnrpc_ChannelConstraints | null + alias_scids?: (number | string | Long)[] + zero_conf?: boolean + zero_conf_confirmed_scid?: number | string | Long +} +export interface Channel__Output { + active: boolean + remote_pubkey: string + channel_point: string + chan_id: string + capacity: string + local_balance: string + remote_balance: string + commit_fee: string + commit_weight: string + fee_per_kw: string + unsettled_balance: string + total_satoshis_sent: string + total_satoshis_received: string + num_updates: string + pending_htlcs: _lnrpc_HTLC__Output[] + csv_delay: number + private: boolean + initiator: boolean + chan_status_flags: string + local_chan_reserve_sat: string + remote_chan_reserve_sat: string + static_remote_key: boolean + lifetime: string + uptime: string + close_address: string + commitment_type: keyof typeof _lnrpc_CommitmentType + push_amount_sat: string + thaw_height: number + local_constraints: _lnrpc_ChannelConstraints__Output | null + remote_constraints: _lnrpc_ChannelConstraints__Output | null + alias_scids: string[] + zero_conf: boolean + zero_conf_confirmed_scid: string +} diff --git a/src/grpc/types/lnrpc/ChannelAcceptRequest.d.ts b/src/grpc/types/lnrpc/ChannelAcceptRequest.d.ts new file mode 100644 index 000000000..f0a63c44a --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelAcceptRequest.d.ts @@ -0,0 +1,40 @@ +/// +/// +import type { CommitmentType as _lnrpc_CommitmentType } from '../lnrpc/CommitmentType' +import type { Long } from '@grpc/proto-loader' +export interface ChannelAcceptRequest { + node_pubkey?: Buffer | Uint8Array | string + chain_hash?: Buffer | Uint8Array | string + pending_chan_id?: Buffer | Uint8Array | string + funding_amt?: number | string | Long + push_amt?: number | string | Long + dust_limit?: number | string | Long + max_value_in_flight?: number | string | Long + channel_reserve?: number | string | Long + min_htlc?: number | string | Long + fee_per_kw?: number | string | Long + csv_delay?: number + max_accepted_htlcs?: number + channel_flags?: number + commitment_type?: _lnrpc_CommitmentType | keyof typeof _lnrpc_CommitmentType + wants_zero_conf?: boolean + wants_scid_alias?: boolean +} +export interface ChannelAcceptRequest__Output { + node_pubkey: Buffer + chain_hash: Buffer + pending_chan_id: Buffer + funding_amt: string + push_amt: string + dust_limit: string + max_value_in_flight: string + channel_reserve: string + min_htlc: string + fee_per_kw: string + csv_delay: number + max_accepted_htlcs: number + channel_flags: number + commitment_type: keyof typeof _lnrpc_CommitmentType + wants_zero_conf: boolean + wants_scid_alias: boolean +} diff --git a/src/grpc/types/lnrpc/ChannelAcceptResponse.d.ts b/src/grpc/types/lnrpc/ChannelAcceptResponse.d.ts new file mode 100644 index 000000000..4118e60a7 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelAcceptResponse.d.ts @@ -0,0 +1,29 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface ChannelAcceptResponse { + accept?: boolean + pending_chan_id?: Buffer | Uint8Array | string + error?: string + upfront_shutdown?: string + csv_delay?: number + reserve_sat?: number | string | Long + in_flight_max_msat?: number | string | Long + max_htlc_count?: number + min_htlc_in?: number | string | Long + min_accept_depth?: number + zero_conf?: boolean +} +export interface ChannelAcceptResponse__Output { + accept: boolean + pending_chan_id: Buffer + error: string + upfront_shutdown: string + csv_delay: number + reserve_sat: string + in_flight_max_msat: string + max_htlc_count: number + min_htlc_in: string + min_accept_depth: number + zero_conf: boolean +} diff --git a/src/grpc/types/lnrpc/ChannelBackup.d.ts b/src/grpc/types/lnrpc/ChannelBackup.d.ts new file mode 100644 index 000000000..7e858c9be --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBackup.d.ts @@ -0,0 +1,13 @@ +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +export interface ChannelBackup { + chan_point?: _lnrpc_ChannelPoint | null + chan_backup?: Buffer | Uint8Array | string +} +export interface ChannelBackup__Output { + chan_point: _lnrpc_ChannelPoint__Output | null + chan_backup: Buffer +} diff --git a/src/grpc/types/lnrpc/ChannelBackupSubscription.d.ts b/src/grpc/types/lnrpc/ChannelBackupSubscription.d.ts new file mode 100644 index 000000000..d474928dd --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBackupSubscription.d.ts @@ -0,0 +1,2 @@ +export interface ChannelBackupSubscription {} +export interface ChannelBackupSubscription__Output {} diff --git a/src/grpc/types/lnrpc/ChannelBackups.d.ts b/src/grpc/types/lnrpc/ChannelBackups.d.ts new file mode 100644 index 000000000..212086830 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBackups.d.ts @@ -0,0 +1,10 @@ +import type { + ChannelBackup as _lnrpc_ChannelBackup, + ChannelBackup__Output as _lnrpc_ChannelBackup__Output, +} from '../lnrpc/ChannelBackup' +export interface ChannelBackups { + chan_backups?: _lnrpc_ChannelBackup[] +} +export interface ChannelBackups__Output { + chan_backups: _lnrpc_ChannelBackup__Output[] +} diff --git a/src/grpc/types/lnrpc/ChannelBalanceRequest.d.ts b/src/grpc/types/lnrpc/ChannelBalanceRequest.d.ts new file mode 100644 index 000000000..114836378 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBalanceRequest.d.ts @@ -0,0 +1,2 @@ +export interface ChannelBalanceRequest {} +export interface ChannelBalanceRequest__Output {} diff --git a/src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts b/src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts new file mode 100644 index 000000000..2725b41ad --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts @@ -0,0 +1,26 @@ +/// +import type { + Amount as _lnrpc_Amount, + Amount__Output as _lnrpc_Amount__Output, +} from '../lnrpc/Amount' +import type { Long } from '@grpc/proto-loader' +export interface ChannelBalanceResponse { + balance?: number | string | Long + pending_open_balance?: number | string | Long + local_balance?: _lnrpc_Amount | null + remote_balance?: _lnrpc_Amount | null + unsettled_local_balance?: _lnrpc_Amount | null + unsettled_remote_balance?: _lnrpc_Amount | null + pending_open_local_balance?: _lnrpc_Amount | null + pending_open_remote_balance?: _lnrpc_Amount | null +} +export interface ChannelBalanceResponse__Output { + balance: string + pending_open_balance: string + local_balance: _lnrpc_Amount__Output | null + remote_balance: _lnrpc_Amount__Output | null + unsettled_local_balance: _lnrpc_Amount__Output | null + unsettled_remote_balance: _lnrpc_Amount__Output | null + pending_open_local_balance: _lnrpc_Amount__Output | null + pending_open_remote_balance: _lnrpc_Amount__Output | null +} diff --git a/src/grpc/types/lnrpc/ChannelCloseSummary.d.ts b/src/grpc/types/lnrpc/ChannelCloseSummary.d.ts new file mode 100644 index 000000000..cb05590fa --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelCloseSummary.d.ts @@ -0,0 +1,51 @@ +/// +import type { Initiator as _lnrpc_Initiator } from '../lnrpc/Initiator' +import type { + Resolution as _lnrpc_Resolution, + Resolution__Output as _lnrpc_Resolution__Output, +} from '../lnrpc/Resolution' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_ChannelCloseSummary_ClosureType { + COOPERATIVE_CLOSE = 0, + LOCAL_FORCE_CLOSE = 1, + REMOTE_FORCE_CLOSE = 2, + BREACH_CLOSE = 3, + FUNDING_CANCELED = 4, + ABANDONED = 5, +} +export interface ChannelCloseSummary { + channel_point?: string + chan_id?: number | string | Long + chain_hash?: string + closing_tx_hash?: string + remote_pubkey?: string + capacity?: number | string | Long + close_height?: number + settled_balance?: number | string | Long + time_locked_balance?: number | string | Long + close_type?: + | _lnrpc_ChannelCloseSummary_ClosureType + | keyof typeof _lnrpc_ChannelCloseSummary_ClosureType + open_initiator?: _lnrpc_Initiator | keyof typeof _lnrpc_Initiator + close_initiator?: _lnrpc_Initiator | keyof typeof _lnrpc_Initiator + resolutions?: _lnrpc_Resolution[] + alias_scids?: (number | string | Long)[] + zero_conf_confirmed_scid?: number | string | Long +} +export interface ChannelCloseSummary__Output { + channel_point: string + chan_id: string + chain_hash: string + closing_tx_hash: string + remote_pubkey: string + capacity: string + close_height: number + settled_balance: string + time_locked_balance: string + close_type: keyof typeof _lnrpc_ChannelCloseSummary_ClosureType + open_initiator: keyof typeof _lnrpc_Initiator + close_initiator: keyof typeof _lnrpc_Initiator + resolutions: _lnrpc_Resolution__Output[] + alias_scids: string[] + zero_conf_confirmed_scid: string +} diff --git a/src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts b/src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts new file mode 100644 index 000000000..d8e149663 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts @@ -0,0 +1,9 @@ +/// +export interface ChannelCloseUpdate { + closing_txid?: Buffer | Uint8Array | string + success?: boolean +} +export interface ChannelCloseUpdate__Output { + closing_txid: Buffer + success: boolean +} diff --git a/src/grpc/types/lnrpc/ChannelConstraints.d.ts b/src/grpc/types/lnrpc/ChannelConstraints.d.ts new file mode 100644 index 000000000..6cc1ffcc5 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelConstraints.d.ts @@ -0,0 +1,18 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ChannelConstraints { + csv_delay?: number + chan_reserve_sat?: number | string | Long + dust_limit_sat?: number | string | Long + max_pending_amt_msat?: number | string | Long + min_htlc_msat?: number | string | Long + max_accepted_htlcs?: number +} +export interface ChannelConstraints__Output { + csv_delay: number + chan_reserve_sat: string + dust_limit_sat: string + max_pending_amt_msat: string + min_htlc_msat: string + max_accepted_htlcs: number +} diff --git a/src/grpc/types/lnrpc/ChannelEdge.d.ts b/src/grpc/types/lnrpc/ChannelEdge.d.ts new file mode 100644 index 000000000..25da2a594 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEdge.d.ts @@ -0,0 +1,26 @@ +/// +import type { + RoutingPolicy as _lnrpc_RoutingPolicy, + RoutingPolicy__Output as _lnrpc_RoutingPolicy__Output, +} from '../lnrpc/RoutingPolicy' +import type { Long } from '@grpc/proto-loader' +export interface ChannelEdge { + channel_id?: number | string | Long + chan_point?: string + last_update?: number + node1_pub?: string + node2_pub?: string + capacity?: number | string | Long + node1_policy?: _lnrpc_RoutingPolicy | null + node2_policy?: _lnrpc_RoutingPolicy | null +} +export interface ChannelEdge__Output { + channel_id: string + chan_point: string + last_update: number + node1_pub: string + node2_pub: string + capacity: string + node1_policy: _lnrpc_RoutingPolicy__Output | null + node2_policy: _lnrpc_RoutingPolicy__Output | null +} diff --git a/src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts b/src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts new file mode 100644 index 000000000..f53460eb0 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts @@ -0,0 +1,26 @@ +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { + RoutingPolicy as _lnrpc_RoutingPolicy, + RoutingPolicy__Output as _lnrpc_RoutingPolicy__Output, +} from '../lnrpc/RoutingPolicy' +import type { Long } from '@grpc/proto-loader' +export interface ChannelEdgeUpdate { + chan_id?: number | string | Long + chan_point?: _lnrpc_ChannelPoint | null + capacity?: number | string | Long + routing_policy?: _lnrpc_RoutingPolicy | null + advertising_node?: string + connecting_node?: string +} +export interface ChannelEdgeUpdate__Output { + chan_id: string + chan_point: _lnrpc_ChannelPoint__Output | null + capacity: string + routing_policy: _lnrpc_RoutingPolicy__Output | null + advertising_node: string + connecting_node: string +} diff --git a/src/grpc/types/lnrpc/ChannelEventSubscription.d.ts b/src/grpc/types/lnrpc/ChannelEventSubscription.d.ts new file mode 100644 index 000000000..a9cc53e11 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEventSubscription.d.ts @@ -0,0 +1,2 @@ +export interface ChannelEventSubscription {} +export interface ChannelEventSubscription__Output {} diff --git a/src/grpc/types/lnrpc/ChannelEventUpdate.d.ts b/src/grpc/types/lnrpc/ChannelEventUpdate.d.ts new file mode 100644 index 000000000..a90b15e31 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEventUpdate.d.ts @@ -0,0 +1,58 @@ +import type { + Channel as _lnrpc_Channel, + Channel__Output as _lnrpc_Channel__Output, +} from '../lnrpc/Channel' +import type { + ChannelCloseSummary as _lnrpc_ChannelCloseSummary, + ChannelCloseSummary__Output as _lnrpc_ChannelCloseSummary__Output, +} from '../lnrpc/ChannelCloseSummary' +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { + PendingUpdate as _lnrpc_PendingUpdate, + PendingUpdate__Output as _lnrpc_PendingUpdate__Output, +} from '../lnrpc/PendingUpdate' +export declare enum _lnrpc_ChannelEventUpdate_UpdateType { + OPEN_CHANNEL = 0, + CLOSED_CHANNEL = 1, + ACTIVE_CHANNEL = 2, + INACTIVE_CHANNEL = 3, + PENDING_OPEN_CHANNEL = 4, + FULLY_RESOLVED_CHANNEL = 5, +} +export interface ChannelEventUpdate { + open_channel?: _lnrpc_Channel | null + closed_channel?: _lnrpc_ChannelCloseSummary | null + active_channel?: _lnrpc_ChannelPoint | null + inactive_channel?: _lnrpc_ChannelPoint | null + type?: + | _lnrpc_ChannelEventUpdate_UpdateType + | keyof typeof _lnrpc_ChannelEventUpdate_UpdateType + pending_open_channel?: _lnrpc_PendingUpdate | null + fully_resolved_channel?: _lnrpc_ChannelPoint | null + channel?: + | 'open_channel' + | 'closed_channel' + | 'active_channel' + | 'inactive_channel' + | 'pending_open_channel' + | 'fully_resolved_channel' +} +export interface ChannelEventUpdate__Output { + open_channel?: _lnrpc_Channel__Output | null + closed_channel?: _lnrpc_ChannelCloseSummary__Output | null + active_channel?: _lnrpc_ChannelPoint__Output | null + inactive_channel?: _lnrpc_ChannelPoint__Output | null + type: keyof typeof _lnrpc_ChannelEventUpdate_UpdateType + pending_open_channel?: _lnrpc_PendingUpdate__Output | null + fully_resolved_channel?: _lnrpc_ChannelPoint__Output | null + channel: + | 'open_channel' + | 'closed_channel' + | 'active_channel' + | 'inactive_channel' + | 'pending_open_channel' + | 'fully_resolved_channel' +} diff --git a/src/grpc/types/lnrpc/ChannelFeeReport.d.ts b/src/grpc/types/lnrpc/ChannelFeeReport.d.ts new file mode 100644 index 000000000..115ae8591 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelFeeReport.d.ts @@ -0,0 +1,16 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ChannelFeeReport { + channel_point?: string + base_fee_msat?: number | string | Long + fee_per_mil?: number | string | Long + fee_rate?: number | string + chan_id?: number | string | Long +} +export interface ChannelFeeReport__Output { + channel_point: string + base_fee_msat: string + fee_per_mil: string + fee_rate: number + chan_id: string +} diff --git a/src/grpc/types/lnrpc/ChannelGraph.d.ts b/src/grpc/types/lnrpc/ChannelGraph.d.ts new file mode 100644 index 000000000..dca732a81 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelGraph.d.ts @@ -0,0 +1,16 @@ +import type { + LightningNode as _lnrpc_LightningNode, + LightningNode__Output as _lnrpc_LightningNode__Output, +} from '../lnrpc/LightningNode' +import type { + ChannelEdge as _lnrpc_ChannelEdge, + ChannelEdge__Output as _lnrpc_ChannelEdge__Output, +} from '../lnrpc/ChannelEdge' +export interface ChannelGraph { + nodes?: _lnrpc_LightningNode[] + edges?: _lnrpc_ChannelEdge[] +} +export interface ChannelGraph__Output { + nodes: _lnrpc_LightningNode__Output[] + edges: _lnrpc_ChannelEdge__Output[] +} diff --git a/src/grpc/types/lnrpc/ChannelGraphRequest.d.ts b/src/grpc/types/lnrpc/ChannelGraphRequest.d.ts new file mode 100644 index 000000000..57b8c6782 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelGraphRequest.d.ts @@ -0,0 +1,6 @@ +export interface ChannelGraphRequest { + include_unannounced?: boolean +} +export interface ChannelGraphRequest__Output { + include_unannounced: boolean +} diff --git a/src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts b/src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts new file mode 100644 index 000000000..03c0dc9f5 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts @@ -0,0 +1,10 @@ +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +export interface ChannelOpenUpdate { + channel_point?: _lnrpc_ChannelPoint | null +} +export interface ChannelOpenUpdate__Output { + channel_point: _lnrpc_ChannelPoint__Output | null +} diff --git a/src/grpc/types/lnrpc/ChannelPoint.d.ts b/src/grpc/types/lnrpc/ChannelPoint.d.ts new file mode 100644 index 000000000..a72c4550f --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelPoint.d.ts @@ -0,0 +1,13 @@ +/// +export interface ChannelPoint { + funding_txid_bytes?: Buffer | Uint8Array | string + funding_txid_str?: string + output_index?: number + funding_txid?: 'funding_txid_bytes' | 'funding_txid_str' +} +export interface ChannelPoint__Output { + funding_txid_bytes?: Buffer + funding_txid_str?: string + output_index: number + funding_txid: 'funding_txid_bytes' | 'funding_txid_str' +} diff --git a/src/grpc/types/lnrpc/ChannelUpdate.d.ts b/src/grpc/types/lnrpc/ChannelUpdate.d.ts new file mode 100644 index 000000000..2345bf999 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelUpdate.d.ts @@ -0,0 +1,31 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface ChannelUpdate { + signature?: Buffer | Uint8Array | string + chain_hash?: Buffer | Uint8Array | string + chan_id?: number | string | Long + timestamp?: number + channel_flags?: number + time_lock_delta?: number + htlc_minimum_msat?: number | string | Long + base_fee?: number + fee_rate?: number + message_flags?: number + htlc_maximum_msat?: number | string | Long + extra_opaque_data?: Buffer | Uint8Array | string +} +export interface ChannelUpdate__Output { + signature: Buffer + chain_hash: Buffer + chan_id: string + timestamp: number + channel_flags: number + time_lock_delta: number + htlc_minimum_msat: string + base_fee: number + fee_rate: number + message_flags: number + htlc_maximum_msat: string + extra_opaque_data: Buffer +} diff --git a/src/grpc/types/lnrpc/CheckMacPermRequest.d.ts b/src/grpc/types/lnrpc/CheckMacPermRequest.d.ts new file mode 100644 index 000000000..593f7b2ba --- /dev/null +++ b/src/grpc/types/lnrpc/CheckMacPermRequest.d.ts @@ -0,0 +1,15 @@ +/// +import type { + MacaroonPermission as _lnrpc_MacaroonPermission, + MacaroonPermission__Output as _lnrpc_MacaroonPermission__Output, +} from '../lnrpc/MacaroonPermission' +export interface CheckMacPermRequest { + macaroon?: Buffer | Uint8Array | string + permissions?: _lnrpc_MacaroonPermission[] + fullMethod?: string +} +export interface CheckMacPermRequest__Output { + macaroon: Buffer + permissions: _lnrpc_MacaroonPermission__Output[] + fullMethod: string +} diff --git a/src/grpc/types/lnrpc/CheckMacPermResponse.d.ts b/src/grpc/types/lnrpc/CheckMacPermResponse.d.ts new file mode 100644 index 000000000..757c368d7 --- /dev/null +++ b/src/grpc/types/lnrpc/CheckMacPermResponse.d.ts @@ -0,0 +1,6 @@ +export interface CheckMacPermResponse { + valid?: boolean +} +export interface CheckMacPermResponse__Output { + valid: boolean +} diff --git a/src/grpc/types/lnrpc/CloseChannelRequest.d.ts b/src/grpc/types/lnrpc/CloseChannelRequest.d.ts new file mode 100644 index 000000000..f8d0daafb --- /dev/null +++ b/src/grpc/types/lnrpc/CloseChannelRequest.d.ts @@ -0,0 +1,24 @@ +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { Long } from '@grpc/proto-loader' +export interface CloseChannelRequest { + channel_point?: _lnrpc_ChannelPoint | null + force?: boolean + target_conf?: number + sat_per_byte?: number | string | Long + delivery_address?: string + sat_per_vbyte?: number | string | Long + max_fee_per_vbyte?: number | string | Long +} +export interface CloseChannelRequest__Output { + channel_point: _lnrpc_ChannelPoint__Output | null + force: boolean + target_conf: number + sat_per_byte: string + delivery_address: string + sat_per_vbyte: string + max_fee_per_vbyte: string +} diff --git a/src/grpc/types/lnrpc/CloseStatusUpdate.d.ts b/src/grpc/types/lnrpc/CloseStatusUpdate.d.ts new file mode 100644 index 000000000..eb454dc14 --- /dev/null +++ b/src/grpc/types/lnrpc/CloseStatusUpdate.d.ts @@ -0,0 +1,18 @@ +import type { + PendingUpdate as _lnrpc_PendingUpdate, + PendingUpdate__Output as _lnrpc_PendingUpdate__Output, +} from '../lnrpc/PendingUpdate' +import type { + ChannelCloseUpdate as _lnrpc_ChannelCloseUpdate, + ChannelCloseUpdate__Output as _lnrpc_ChannelCloseUpdate__Output, +} from '../lnrpc/ChannelCloseUpdate' +export interface CloseStatusUpdate { + close_pending?: _lnrpc_PendingUpdate | null + chan_close?: _lnrpc_ChannelCloseUpdate | null + update?: 'close_pending' | 'chan_close' +} +export interface CloseStatusUpdate__Output { + close_pending?: _lnrpc_PendingUpdate__Output | null + chan_close?: _lnrpc_ChannelCloseUpdate__Output | null + update: 'close_pending' | 'chan_close' +} diff --git a/src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts b/src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts new file mode 100644 index 000000000..3331b4887 --- /dev/null +++ b/src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts @@ -0,0 +1,18 @@ +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { Long } from '@grpc/proto-loader' +export interface ClosedChannelUpdate { + chan_id?: number | string | Long + capacity?: number | string | Long + closed_height?: number + chan_point?: _lnrpc_ChannelPoint | null +} +export interface ClosedChannelUpdate__Output { + chan_id: string + capacity: string + closed_height: number + chan_point: _lnrpc_ChannelPoint__Output | null +} diff --git a/src/grpc/types/lnrpc/ClosedChannelsRequest.d.ts b/src/grpc/types/lnrpc/ClosedChannelsRequest.d.ts new file mode 100644 index 000000000..2255b6be5 --- /dev/null +++ b/src/grpc/types/lnrpc/ClosedChannelsRequest.d.ts @@ -0,0 +1,16 @@ +export interface ClosedChannelsRequest { + cooperative?: boolean + local_force?: boolean + remote_force?: boolean + breach?: boolean + funding_canceled?: boolean + abandoned?: boolean +} +export interface ClosedChannelsRequest__Output { + cooperative: boolean + local_force: boolean + remote_force: boolean + breach: boolean + funding_canceled: boolean + abandoned: boolean +} diff --git a/src/grpc/types/lnrpc/ClosedChannelsResponse.d.ts b/src/grpc/types/lnrpc/ClosedChannelsResponse.d.ts new file mode 100644 index 000000000..3eca1b464 --- /dev/null +++ b/src/grpc/types/lnrpc/ClosedChannelsResponse.d.ts @@ -0,0 +1,10 @@ +import type { + ChannelCloseSummary as _lnrpc_ChannelCloseSummary, + ChannelCloseSummary__Output as _lnrpc_ChannelCloseSummary__Output, +} from '../lnrpc/ChannelCloseSummary' +export interface ClosedChannelsResponse { + channels?: _lnrpc_ChannelCloseSummary[] +} +export interface ClosedChannelsResponse__Output { + channels: _lnrpc_ChannelCloseSummary__Output[] +} diff --git a/src/grpc/types/lnrpc/CommitmentType.d.ts b/src/grpc/types/lnrpc/CommitmentType.d.ts new file mode 100644 index 000000000..9d9ca599f --- /dev/null +++ b/src/grpc/types/lnrpc/CommitmentType.d.ts @@ -0,0 +1,7 @@ +export declare enum CommitmentType { + UNKNOWN_COMMITMENT_TYPE = 0, + LEGACY = 1, + STATIC_REMOTE_KEY = 2, + ANCHORS = 3, + SCRIPT_ENFORCED_LEASE = 4, +} diff --git a/src/grpc/types/lnrpc/ConfirmationUpdate.d.ts b/src/grpc/types/lnrpc/ConfirmationUpdate.d.ts new file mode 100644 index 000000000..7f1ea6699 --- /dev/null +++ b/src/grpc/types/lnrpc/ConfirmationUpdate.d.ts @@ -0,0 +1,11 @@ +/// +export interface ConfirmationUpdate { + block_sha?: Buffer | Uint8Array | string + block_height?: number + num_confs_left?: number +} +export interface ConfirmationUpdate__Output { + block_sha: Buffer + block_height: number + num_confs_left: number +} diff --git a/src/grpc/types/lnrpc/ConnectPeerRequest.d.ts b/src/grpc/types/lnrpc/ConnectPeerRequest.d.ts new file mode 100644 index 000000000..ec094718a --- /dev/null +++ b/src/grpc/types/lnrpc/ConnectPeerRequest.d.ts @@ -0,0 +1,16 @@ +/// +import type { + LightningAddress as _lnrpc_LightningAddress, + LightningAddress__Output as _lnrpc_LightningAddress__Output, +} from '../lnrpc/LightningAddress' +import type { Long } from '@grpc/proto-loader' +export interface ConnectPeerRequest { + addr?: _lnrpc_LightningAddress | null + perm?: boolean + timeout?: number | string | Long +} +export interface ConnectPeerRequest__Output { + addr: _lnrpc_LightningAddress__Output | null + perm: boolean + timeout: string +} diff --git a/src/grpc/types/lnrpc/ConnectPeerResponse.d.ts b/src/grpc/types/lnrpc/ConnectPeerResponse.d.ts new file mode 100644 index 000000000..c2e91579e --- /dev/null +++ b/src/grpc/types/lnrpc/ConnectPeerResponse.d.ts @@ -0,0 +1,2 @@ +export interface ConnectPeerResponse {} +export interface ConnectPeerResponse__Output {} diff --git a/src/grpc/types/lnrpc/CustomMessage.d.ts b/src/grpc/types/lnrpc/CustomMessage.d.ts new file mode 100644 index 000000000..1b0013ddb --- /dev/null +++ b/src/grpc/types/lnrpc/CustomMessage.d.ts @@ -0,0 +1,11 @@ +/// +export interface CustomMessage { + peer?: Buffer | Uint8Array | string + type?: number + data?: Buffer | Uint8Array | string +} +export interface CustomMessage__Output { + peer: Buffer + type: number + data: Buffer +} diff --git a/src/grpc/types/lnrpc/DebugLevelRequest.d.ts b/src/grpc/types/lnrpc/DebugLevelRequest.d.ts new file mode 100644 index 000000000..c536d8eb5 --- /dev/null +++ b/src/grpc/types/lnrpc/DebugLevelRequest.d.ts @@ -0,0 +1,8 @@ +export interface DebugLevelRequest { + show?: boolean + level_spec?: string +} +export interface DebugLevelRequest__Output { + show: boolean + level_spec: string +} diff --git a/src/grpc/types/lnrpc/DebugLevelResponse.d.ts b/src/grpc/types/lnrpc/DebugLevelResponse.d.ts new file mode 100644 index 000000000..becc7ef84 --- /dev/null +++ b/src/grpc/types/lnrpc/DebugLevelResponse.d.ts @@ -0,0 +1,6 @@ +export interface DebugLevelResponse { + sub_systems?: string +} +export interface DebugLevelResponse__Output { + sub_systems: string +} diff --git a/src/grpc/types/lnrpc/DeleteAllPaymentsRequest.d.ts b/src/grpc/types/lnrpc/DeleteAllPaymentsRequest.d.ts new file mode 100644 index 000000000..9fe95cfc2 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteAllPaymentsRequest.d.ts @@ -0,0 +1,8 @@ +export interface DeleteAllPaymentsRequest { + failed_payments_only?: boolean + failed_htlcs_only?: boolean +} +export interface DeleteAllPaymentsRequest__Output { + failed_payments_only: boolean + failed_htlcs_only: boolean +} diff --git a/src/grpc/types/lnrpc/DeleteAllPaymentsResponse.d.ts b/src/grpc/types/lnrpc/DeleteAllPaymentsResponse.d.ts new file mode 100644 index 000000000..06b11baa6 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteAllPaymentsResponse.d.ts @@ -0,0 +1,2 @@ +export interface DeleteAllPaymentsResponse {} +export interface DeleteAllPaymentsResponse__Output {} diff --git a/src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts b/src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts new file mode 100644 index 000000000..8e8d271f7 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface DeleteMacaroonIDRequest { + root_key_id?: number | string | Long +} +export interface DeleteMacaroonIDRequest__Output { + root_key_id: string +} diff --git a/src/grpc/types/lnrpc/DeleteMacaroonIDResponse.d.ts b/src/grpc/types/lnrpc/DeleteMacaroonIDResponse.d.ts new file mode 100644 index 000000000..0091233c9 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteMacaroonIDResponse.d.ts @@ -0,0 +1,6 @@ +export interface DeleteMacaroonIDResponse { + deleted?: boolean +} +export interface DeleteMacaroonIDResponse__Output { + deleted: boolean +} diff --git a/src/grpc/types/lnrpc/DeletePaymentRequest.d.ts b/src/grpc/types/lnrpc/DeletePaymentRequest.d.ts new file mode 100644 index 000000000..cc5577cc5 --- /dev/null +++ b/src/grpc/types/lnrpc/DeletePaymentRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface DeletePaymentRequest { + payment_hash?: Buffer | Uint8Array | string + failed_htlcs_only?: boolean +} +export interface DeletePaymentRequest__Output { + payment_hash: Buffer + failed_htlcs_only: boolean +} diff --git a/src/grpc/types/lnrpc/DeletePaymentResponse.d.ts b/src/grpc/types/lnrpc/DeletePaymentResponse.d.ts new file mode 100644 index 000000000..8fc3f3bb8 --- /dev/null +++ b/src/grpc/types/lnrpc/DeletePaymentResponse.d.ts @@ -0,0 +1,2 @@ +export interface DeletePaymentResponse {} +export interface DeletePaymentResponse__Output {} diff --git a/src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts b/src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts new file mode 100644 index 000000000..051b1ca49 --- /dev/null +++ b/src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts @@ -0,0 +1,6 @@ +export interface DisconnectPeerRequest { + pub_key?: string +} +export interface DisconnectPeerRequest__Output { + pub_key: string +} diff --git a/src/grpc/types/lnrpc/DisconnectPeerResponse.d.ts b/src/grpc/types/lnrpc/DisconnectPeerResponse.d.ts new file mode 100644 index 000000000..864128696 --- /dev/null +++ b/src/grpc/types/lnrpc/DisconnectPeerResponse.d.ts @@ -0,0 +1,2 @@ +export interface DisconnectPeerResponse {} +export interface DisconnectPeerResponse__Output {} diff --git a/src/grpc/types/lnrpc/EdgeLocator.d.ts b/src/grpc/types/lnrpc/EdgeLocator.d.ts new file mode 100644 index 000000000..deb1164b9 --- /dev/null +++ b/src/grpc/types/lnrpc/EdgeLocator.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface EdgeLocator { + channel_id?: number | string | Long + direction_reverse?: boolean +} +export interface EdgeLocator__Output { + channel_id: string + direction_reverse: boolean +} diff --git a/src/grpc/types/lnrpc/EstimateFeeRequest.d.ts b/src/grpc/types/lnrpc/EstimateFeeRequest.d.ts new file mode 100644 index 000000000..af74174f9 --- /dev/null +++ b/src/grpc/types/lnrpc/EstimateFeeRequest.d.ts @@ -0,0 +1,18 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface EstimateFeeRequest { + AddrToAmount?: { + [key: string]: number | string | Long + } + target_conf?: number + min_confs?: number + spend_unconfirmed?: boolean +} +export interface EstimateFeeRequest__Output { + AddrToAmount: { + [key: string]: string + } + target_conf: number + min_confs: number + spend_unconfirmed: boolean +} diff --git a/src/grpc/types/lnrpc/EstimateFeeResponse.d.ts b/src/grpc/types/lnrpc/EstimateFeeResponse.d.ts new file mode 100644 index 000000000..b0fbcebd3 --- /dev/null +++ b/src/grpc/types/lnrpc/EstimateFeeResponse.d.ts @@ -0,0 +1,12 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface EstimateFeeResponse { + fee_sat?: number | string | Long + feerate_sat_per_byte?: number | string | Long + sat_per_vbyte?: number | string | Long +} +export interface EstimateFeeResponse__Output { + fee_sat: string + feerate_sat_per_byte: string + sat_per_vbyte: string +} diff --git a/src/grpc/types/lnrpc/ExportChannelBackupRequest.d.ts b/src/grpc/types/lnrpc/ExportChannelBackupRequest.d.ts new file mode 100644 index 000000000..b7674f054 --- /dev/null +++ b/src/grpc/types/lnrpc/ExportChannelBackupRequest.d.ts @@ -0,0 +1,10 @@ +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +export interface ExportChannelBackupRequest { + chan_point?: _lnrpc_ChannelPoint | null +} +export interface ExportChannelBackupRequest__Output { + chan_point: _lnrpc_ChannelPoint__Output | null +} diff --git a/src/grpc/types/lnrpc/FailedUpdate.d.ts b/src/grpc/types/lnrpc/FailedUpdate.d.ts new file mode 100644 index 000000000..ff51b7107 --- /dev/null +++ b/src/grpc/types/lnrpc/FailedUpdate.d.ts @@ -0,0 +1,15 @@ +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { UpdateFailure as _lnrpc_UpdateFailure } from '../lnrpc/UpdateFailure' +export interface FailedUpdate { + outpoint?: _lnrpc_OutPoint | null + reason?: _lnrpc_UpdateFailure | keyof typeof _lnrpc_UpdateFailure + update_error?: string +} +export interface FailedUpdate__Output { + outpoint: _lnrpc_OutPoint__Output | null + reason: keyof typeof _lnrpc_UpdateFailure + update_error: string +} diff --git a/src/grpc/types/lnrpc/Failure.d.ts b/src/grpc/types/lnrpc/Failure.d.ts new file mode 100644 index 000000000..430cea3e3 --- /dev/null +++ b/src/grpc/types/lnrpc/Failure.d.ts @@ -0,0 +1,57 @@ +/// +/// +import type { + ChannelUpdate as _lnrpc_ChannelUpdate, + ChannelUpdate__Output as _lnrpc_ChannelUpdate__Output, +} from '../lnrpc/ChannelUpdate' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_Failure_FailureCode { + RESERVED = 0, + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1, + INCORRECT_PAYMENT_AMOUNT = 2, + FINAL_INCORRECT_CLTV_EXPIRY = 3, + FINAL_INCORRECT_HTLC_AMOUNT = 4, + FINAL_EXPIRY_TOO_SOON = 5, + INVALID_REALM = 6, + EXPIRY_TOO_SOON = 7, + INVALID_ONION_VERSION = 8, + INVALID_ONION_HMAC = 9, + INVALID_ONION_KEY = 10, + AMOUNT_BELOW_MINIMUM = 11, + FEE_INSUFFICIENT = 12, + INCORRECT_CLTV_EXPIRY = 13, + CHANNEL_DISABLED = 14, + TEMPORARY_CHANNEL_FAILURE = 15, + REQUIRED_NODE_FEATURE_MISSING = 16, + REQUIRED_CHANNEL_FEATURE_MISSING = 17, + UNKNOWN_NEXT_PEER = 18, + TEMPORARY_NODE_FAILURE = 19, + PERMANENT_NODE_FAILURE = 20, + PERMANENT_CHANNEL_FAILURE = 21, + EXPIRY_TOO_FAR = 22, + MPP_TIMEOUT = 23, + INVALID_ONION_PAYLOAD = 24, + INTERNAL_FAILURE = 997, + UNKNOWN_FAILURE = 998, + UNREADABLE_FAILURE = 999, +} +export interface Failure { + code?: _lnrpc_Failure_FailureCode | keyof typeof _lnrpc_Failure_FailureCode + channel_update?: _lnrpc_ChannelUpdate | null + htlc_msat?: number | string | Long + onion_sha_256?: Buffer | Uint8Array | string + cltv_expiry?: number + flags?: number + failure_source_index?: number + height?: number +} +export interface Failure__Output { + code: keyof typeof _lnrpc_Failure_FailureCode + channel_update: _lnrpc_ChannelUpdate__Output | null + htlc_msat: string + onion_sha_256: Buffer + cltv_expiry: number + flags: number + failure_source_index: number + height: number +} diff --git a/src/grpc/types/lnrpc/Feature.d.ts b/src/grpc/types/lnrpc/Feature.d.ts new file mode 100644 index 000000000..4ce155a67 --- /dev/null +++ b/src/grpc/types/lnrpc/Feature.d.ts @@ -0,0 +1,10 @@ +export interface Feature { + name?: string + is_required?: boolean + is_known?: boolean +} +export interface Feature__Output { + name: string + is_required: boolean + is_known: boolean +} diff --git a/src/grpc/types/lnrpc/FeatureBit.d.ts b/src/grpc/types/lnrpc/FeatureBit.d.ts new file mode 100644 index 000000000..a45cc5580 --- /dev/null +++ b/src/grpc/types/lnrpc/FeatureBit.d.ts @@ -0,0 +1,27 @@ +export declare enum FeatureBit { + DATALOSS_PROTECT_REQ = 0, + DATALOSS_PROTECT_OPT = 1, + INITIAL_ROUING_SYNC = 3, + UPFRONT_SHUTDOWN_SCRIPT_REQ = 4, + UPFRONT_SHUTDOWN_SCRIPT_OPT = 5, + GOSSIP_QUERIES_REQ = 6, + GOSSIP_QUERIES_OPT = 7, + TLV_ONION_REQ = 8, + TLV_ONION_OPT = 9, + EXT_GOSSIP_QUERIES_REQ = 10, + EXT_GOSSIP_QUERIES_OPT = 11, + STATIC_REMOTE_KEY_REQ = 12, + STATIC_REMOTE_KEY_OPT = 13, + PAYMENT_ADDR_REQ = 14, + PAYMENT_ADDR_OPT = 15, + MPP_REQ = 16, + MPP_OPT = 17, + WUMBO_CHANNELS_REQ = 18, + WUMBO_CHANNELS_OPT = 19, + ANCHORS_REQ = 20, + ANCHORS_OPT = 21, + ANCHORS_ZERO_FEE_HTLC_REQ = 22, + ANCHORS_ZERO_FEE_HTLC_OPT = 23, + AMP_REQ = 30, + AMP_OPT = 31, +} diff --git a/src/grpc/types/lnrpc/FeeLimit.d.ts b/src/grpc/types/lnrpc/FeeLimit.d.ts new file mode 100644 index 000000000..8f536339e --- /dev/null +++ b/src/grpc/types/lnrpc/FeeLimit.d.ts @@ -0,0 +1,14 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface FeeLimit { + fixed?: number | string | Long + percent?: number | string | Long + fixed_msat?: number | string | Long + limit?: 'fixed' | 'fixed_msat' | 'percent' +} +export interface FeeLimit__Output { + fixed?: string + percent?: string + fixed_msat?: string + limit: 'fixed' | 'fixed_msat' | 'percent' +} diff --git a/src/grpc/types/lnrpc/FeeReportRequest.d.ts b/src/grpc/types/lnrpc/FeeReportRequest.d.ts new file mode 100644 index 000000000..9af1cb73b --- /dev/null +++ b/src/grpc/types/lnrpc/FeeReportRequest.d.ts @@ -0,0 +1,2 @@ +export interface FeeReportRequest {} +export interface FeeReportRequest__Output {} diff --git a/src/grpc/types/lnrpc/FeeReportResponse.d.ts b/src/grpc/types/lnrpc/FeeReportResponse.d.ts new file mode 100644 index 000000000..f7a048f1d --- /dev/null +++ b/src/grpc/types/lnrpc/FeeReportResponse.d.ts @@ -0,0 +1,18 @@ +/// +import type { + ChannelFeeReport as _lnrpc_ChannelFeeReport, + ChannelFeeReport__Output as _lnrpc_ChannelFeeReport__Output, +} from '../lnrpc/ChannelFeeReport' +import type { Long } from '@grpc/proto-loader' +export interface FeeReportResponse { + channel_fees?: _lnrpc_ChannelFeeReport[] + day_fee_sum?: number | string | Long + week_fee_sum?: number | string | Long + month_fee_sum?: number | string | Long +} +export interface FeeReportResponse__Output { + channel_fees: _lnrpc_ChannelFeeReport__Output[] + day_fee_sum: string + week_fee_sum: string + month_fee_sum: string +} diff --git a/src/grpc/types/lnrpc/FloatMetric.d.ts b/src/grpc/types/lnrpc/FloatMetric.d.ts new file mode 100644 index 000000000..b41342dd3 --- /dev/null +++ b/src/grpc/types/lnrpc/FloatMetric.d.ts @@ -0,0 +1,8 @@ +export interface FloatMetric { + value?: number | string + normalized_value?: number | string +} +export interface FloatMetric__Output { + value: number + normalized_value: number +} diff --git a/src/grpc/types/lnrpc/ForwardingEvent.d.ts b/src/grpc/types/lnrpc/ForwardingEvent.d.ts new file mode 100644 index 000000000..b3a02e8fe --- /dev/null +++ b/src/grpc/types/lnrpc/ForwardingEvent.d.ts @@ -0,0 +1,26 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ForwardingEvent { + timestamp?: number | string | Long + chan_id_in?: number | string | Long + chan_id_out?: number | string | Long + amt_in?: number | string | Long + amt_out?: number | string | Long + fee?: number | string | Long + fee_msat?: number | string | Long + amt_in_msat?: number | string | Long + amt_out_msat?: number | string | Long + timestamp_ns?: number | string | Long +} +export interface ForwardingEvent__Output { + timestamp: string + chan_id_in: string + chan_id_out: string + amt_in: string + amt_out: string + fee: string + fee_msat: string + amt_in_msat: string + amt_out_msat: string + timestamp_ns: string +} diff --git a/src/grpc/types/lnrpc/ForwardingHistoryRequest.d.ts b/src/grpc/types/lnrpc/ForwardingHistoryRequest.d.ts new file mode 100644 index 000000000..45982bf05 --- /dev/null +++ b/src/grpc/types/lnrpc/ForwardingHistoryRequest.d.ts @@ -0,0 +1,14 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ForwardingHistoryRequest { + start_time?: number | string | Long + end_time?: number | string | Long + index_offset?: number + num_max_events?: number +} +export interface ForwardingHistoryRequest__Output { + start_time: string + end_time: string + index_offset: number + num_max_events: number +} diff --git a/src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts b/src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts new file mode 100644 index 000000000..76bae81f9 --- /dev/null +++ b/src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts @@ -0,0 +1,12 @@ +import type { + ForwardingEvent as _lnrpc_ForwardingEvent, + ForwardingEvent__Output as _lnrpc_ForwardingEvent__Output, +} from '../lnrpc/ForwardingEvent' +export interface ForwardingHistoryResponse { + forwarding_events?: _lnrpc_ForwardingEvent[] + last_offset_index?: number +} +export interface ForwardingHistoryResponse__Output { + forwarding_events: _lnrpc_ForwardingEvent__Output[] + last_offset_index: number +} diff --git a/src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts b/src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts new file mode 100644 index 000000000..f6d12d0d5 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts @@ -0,0 +1,11 @@ +/// +export interface FundingPsbtFinalize { + signed_psbt?: Buffer | Uint8Array | string + pending_chan_id?: Buffer | Uint8Array | string + final_raw_tx?: Buffer | Uint8Array | string +} +export interface FundingPsbtFinalize__Output { + signed_psbt: Buffer + pending_chan_id: Buffer + final_raw_tx: Buffer +} diff --git a/src/grpc/types/lnrpc/FundingPsbtVerify.d.ts b/src/grpc/types/lnrpc/FundingPsbtVerify.d.ts new file mode 100644 index 000000000..0c5afd6c0 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingPsbtVerify.d.ts @@ -0,0 +1,11 @@ +/// +export interface FundingPsbtVerify { + funded_psbt?: Buffer | Uint8Array | string + pending_chan_id?: Buffer | Uint8Array | string + skip_finalize?: boolean +} +export interface FundingPsbtVerify__Output { + funded_psbt: Buffer + pending_chan_id: Buffer + skip_finalize: boolean +} diff --git a/src/grpc/types/lnrpc/FundingShim.d.ts b/src/grpc/types/lnrpc/FundingShim.d.ts new file mode 100644 index 000000000..6bab6ec17 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingShim.d.ts @@ -0,0 +1,18 @@ +import type { + ChanPointShim as _lnrpc_ChanPointShim, + ChanPointShim__Output as _lnrpc_ChanPointShim__Output, +} from '../lnrpc/ChanPointShim' +import type { + PsbtShim as _lnrpc_PsbtShim, + PsbtShim__Output as _lnrpc_PsbtShim__Output, +} from '../lnrpc/PsbtShim' +export interface FundingShim { + chan_point_shim?: _lnrpc_ChanPointShim | null + psbt_shim?: _lnrpc_PsbtShim | null + shim?: 'chan_point_shim' | 'psbt_shim' +} +export interface FundingShim__Output { + chan_point_shim?: _lnrpc_ChanPointShim__Output | null + psbt_shim?: _lnrpc_PsbtShim__Output | null + shim: 'chan_point_shim' | 'psbt_shim' +} diff --git a/src/grpc/types/lnrpc/FundingShimCancel.d.ts b/src/grpc/types/lnrpc/FundingShimCancel.d.ts new file mode 100644 index 000000000..63dc10da6 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingShimCancel.d.ts @@ -0,0 +1,7 @@ +/// +export interface FundingShimCancel { + pending_chan_id?: Buffer | Uint8Array | string +} +export interface FundingShimCancel__Output { + pending_chan_id: Buffer +} diff --git a/src/grpc/types/lnrpc/FundingStateStepResp.d.ts b/src/grpc/types/lnrpc/FundingStateStepResp.d.ts new file mode 100644 index 000000000..7a22edec7 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingStateStepResp.d.ts @@ -0,0 +1,2 @@ +export interface FundingStateStepResp {} +export interface FundingStateStepResp__Output {} diff --git a/src/grpc/types/lnrpc/FundingTransitionMsg.d.ts b/src/grpc/types/lnrpc/FundingTransitionMsg.d.ts new file mode 100644 index 000000000..3aa38f8d4 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingTransitionMsg.d.ts @@ -0,0 +1,30 @@ +import type { + FundingShim as _lnrpc_FundingShim, + FundingShim__Output as _lnrpc_FundingShim__Output, +} from '../lnrpc/FundingShim' +import type { + FundingShimCancel as _lnrpc_FundingShimCancel, + FundingShimCancel__Output as _lnrpc_FundingShimCancel__Output, +} from '../lnrpc/FundingShimCancel' +import type { + FundingPsbtVerify as _lnrpc_FundingPsbtVerify, + FundingPsbtVerify__Output as _lnrpc_FundingPsbtVerify__Output, +} from '../lnrpc/FundingPsbtVerify' +import type { + FundingPsbtFinalize as _lnrpc_FundingPsbtFinalize, + FundingPsbtFinalize__Output as _lnrpc_FundingPsbtFinalize__Output, +} from '../lnrpc/FundingPsbtFinalize' +export interface FundingTransitionMsg { + shim_register?: _lnrpc_FundingShim | null + shim_cancel?: _lnrpc_FundingShimCancel | null + psbt_verify?: _lnrpc_FundingPsbtVerify | null + psbt_finalize?: _lnrpc_FundingPsbtFinalize | null + trigger?: 'shim_register' | 'shim_cancel' | 'psbt_verify' | 'psbt_finalize' +} +export interface FundingTransitionMsg__Output { + shim_register?: _lnrpc_FundingShim__Output | null + shim_cancel?: _lnrpc_FundingShimCancel__Output | null + psbt_verify?: _lnrpc_FundingPsbtVerify__Output | null + psbt_finalize?: _lnrpc_FundingPsbtFinalize__Output | null + trigger: 'shim_register' | 'shim_cancel' | 'psbt_verify' | 'psbt_finalize' +} diff --git a/src/grpc/types/lnrpc/GenSeedRequest.d.ts b/src/grpc/types/lnrpc/GenSeedRequest.d.ts new file mode 100644 index 000000000..939db09ed --- /dev/null +++ b/src/grpc/types/lnrpc/GenSeedRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface GenSeedRequest { + aezeed_passphrase?: Buffer | Uint8Array | string + seed_entropy?: Buffer | Uint8Array | string +} +export interface GenSeedRequest__Output { + aezeed_passphrase: Buffer + seed_entropy: Buffer +} diff --git a/src/grpc/types/lnrpc/GenSeedResponse.d.ts b/src/grpc/types/lnrpc/GenSeedResponse.d.ts new file mode 100644 index 000000000..f7591ffd0 --- /dev/null +++ b/src/grpc/types/lnrpc/GenSeedResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface GenSeedResponse { + cipher_seed_mnemonic?: string[] + enciphered_seed?: Buffer | Uint8Array | string +} +export interface GenSeedResponse__Output { + cipher_seed_mnemonic: string[] + enciphered_seed: Buffer +} diff --git a/src/grpc/types/lnrpc/GetInfoRequest.d.ts b/src/grpc/types/lnrpc/GetInfoRequest.d.ts new file mode 100644 index 000000000..bcc9fbc46 --- /dev/null +++ b/src/grpc/types/lnrpc/GetInfoRequest.d.ts @@ -0,0 +1,2 @@ +export interface GetInfoRequest {} +export interface GetInfoRequest__Output {} diff --git a/src/grpc/types/lnrpc/GetInfoResponse.d.ts b/src/grpc/types/lnrpc/GetInfoResponse.d.ts new file mode 100644 index 000000000..f51247084 --- /dev/null +++ b/src/grpc/types/lnrpc/GetInfoResponse.d.ts @@ -0,0 +1,56 @@ +/// +import type { + Chain as _lnrpc_Chain, + Chain__Output as _lnrpc_Chain__Output, +} from '../lnrpc/Chain' +import type { + Feature as _lnrpc_Feature, + Feature__Output as _lnrpc_Feature__Output, +} from '../lnrpc/Feature' +import type { Long } from '@grpc/proto-loader' +export interface GetInfoResponse { + identity_pubkey?: string + alias?: string + num_pending_channels?: number + num_active_channels?: number + num_peers?: number + block_height?: number + block_hash?: string + synced_to_chain?: boolean + testnet?: boolean + uris?: string[] + best_header_timestamp?: number | string | Long + version?: string + num_inactive_channels?: number + chains?: _lnrpc_Chain[] + color?: string + synced_to_graph?: boolean + features?: { + [key: number]: _lnrpc_Feature + } + commit_hash?: string + require_htlc_interceptor?: boolean +} +export interface GetInfoResponse__Output { + identity_pubkey: string + alias: string + num_pending_channels: number + num_active_channels: number + num_peers: number + block_height: number + block_hash: string + synced_to_chain: boolean + testnet: boolean + uris: string[] + best_header_timestamp: string + version: string + num_inactive_channels: number + chains: _lnrpc_Chain__Output[] + color: string + synced_to_graph: boolean + features: { + [key: number]: _lnrpc_Feature__Output + } + commit_hash: string + require_htlc_interceptor: boolean +} diff --git a/src/grpc/types/lnrpc/GetRecoveryInfoRequest.d.ts b/src/grpc/types/lnrpc/GetRecoveryInfoRequest.d.ts new file mode 100644 index 000000000..7c345dad9 --- /dev/null +++ b/src/grpc/types/lnrpc/GetRecoveryInfoRequest.d.ts @@ -0,0 +1,2 @@ +export interface GetRecoveryInfoRequest {} +export interface GetRecoveryInfoRequest__Output {} diff --git a/src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts b/src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts new file mode 100644 index 000000000..5eae561ce --- /dev/null +++ b/src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts @@ -0,0 +1,10 @@ +export interface GetRecoveryInfoResponse { + recovery_mode?: boolean + recovery_finished?: boolean + progress?: number | string +} +export interface GetRecoveryInfoResponse__Output { + recovery_mode: boolean + recovery_finished: boolean + progress: number +} diff --git a/src/grpc/types/lnrpc/GetTransactionsRequest.d.ts b/src/grpc/types/lnrpc/GetTransactionsRequest.d.ts new file mode 100644 index 000000000..794c7b4ac --- /dev/null +++ b/src/grpc/types/lnrpc/GetTransactionsRequest.d.ts @@ -0,0 +1,10 @@ +export interface GetTransactionsRequest { + start_height?: number + end_height?: number + account?: string +} +export interface GetTransactionsRequest__Output { + start_height: number + end_height: number + account: string +} diff --git a/src/grpc/types/lnrpc/GraphTopologySubscription.d.ts b/src/grpc/types/lnrpc/GraphTopologySubscription.d.ts new file mode 100644 index 000000000..81b85e965 --- /dev/null +++ b/src/grpc/types/lnrpc/GraphTopologySubscription.d.ts @@ -0,0 +1,2 @@ +export interface GraphTopologySubscription {} +export interface GraphTopologySubscription__Output {} diff --git a/src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts b/src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts new file mode 100644 index 000000000..714a4a957 --- /dev/null +++ b/src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts @@ -0,0 +1,22 @@ +import type { + NodeUpdate as _lnrpc_NodeUpdate, + NodeUpdate__Output as _lnrpc_NodeUpdate__Output, +} from '../lnrpc/NodeUpdate' +import type { + ChannelEdgeUpdate as _lnrpc_ChannelEdgeUpdate, + ChannelEdgeUpdate__Output as _lnrpc_ChannelEdgeUpdate__Output, +} from '../lnrpc/ChannelEdgeUpdate' +import type { + ClosedChannelUpdate as _lnrpc_ClosedChannelUpdate, + ClosedChannelUpdate__Output as _lnrpc_ClosedChannelUpdate__Output, +} from '../lnrpc/ClosedChannelUpdate' +export interface GraphTopologyUpdate { + node_updates?: _lnrpc_NodeUpdate[] + channel_updates?: _lnrpc_ChannelEdgeUpdate[] + closed_chans?: _lnrpc_ClosedChannelUpdate[] +} +export interface GraphTopologyUpdate__Output { + node_updates: _lnrpc_NodeUpdate__Output[] + channel_updates: _lnrpc_ChannelEdgeUpdate__Output[] + closed_chans: _lnrpc_ClosedChannelUpdate__Output[] +} diff --git a/src/grpc/types/lnrpc/HTLC.d.ts b/src/grpc/types/lnrpc/HTLC.d.ts new file mode 100644 index 000000000..0c899007a --- /dev/null +++ b/src/grpc/types/lnrpc/HTLC.d.ts @@ -0,0 +1,21 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface HTLC { + incoming?: boolean + amount?: number | string | Long + hash_lock?: Buffer | Uint8Array | string + expiration_height?: number + htlc_index?: number | string | Long + forwarding_channel?: number | string | Long + forwarding_htlc_index?: number | string | Long +} +export interface HTLC__Output { + incoming: boolean + amount: string + hash_lock: Buffer + expiration_height: number + htlc_index: string + forwarding_channel: string + forwarding_htlc_index: string +} diff --git a/src/grpc/types/lnrpc/HTLCAttempt.d.ts b/src/grpc/types/lnrpc/HTLCAttempt.d.ts new file mode 100644 index 000000000..fa64640aa --- /dev/null +++ b/src/grpc/types/lnrpc/HTLCAttempt.d.ts @@ -0,0 +1,36 @@ +/// +/// +import type { + Route as _lnrpc_Route, + Route__Output as _lnrpc_Route__Output, +} from '../lnrpc/Route' +import type { + Failure as _lnrpc_Failure, + Failure__Output as _lnrpc_Failure__Output, +} from '../lnrpc/Failure' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_HTLCAttempt_HTLCStatus { + IN_FLIGHT = 0, + SUCCEEDED = 1, + FAILED = 2, +} +export interface HTLCAttempt { + status?: + | _lnrpc_HTLCAttempt_HTLCStatus + | keyof typeof _lnrpc_HTLCAttempt_HTLCStatus + route?: _lnrpc_Route | null + attempt_time_ns?: number | string | Long + resolve_time_ns?: number | string | Long + failure?: _lnrpc_Failure | null + preimage?: Buffer | Uint8Array | string + attempt_id?: number | string | Long +} +export interface HTLCAttempt__Output { + status: keyof typeof _lnrpc_HTLCAttempt_HTLCStatus + route: _lnrpc_Route__Output | null + attempt_time_ns: string + resolve_time_ns: string + failure: _lnrpc_Failure__Output | null + preimage: Buffer + attempt_id: string +} diff --git a/src/grpc/types/lnrpc/Hop.d.ts b/src/grpc/types/lnrpc/Hop.d.ts new file mode 100644 index 000000000..6ee802c30 --- /dev/null +++ b/src/grpc/types/lnrpc/Hop.d.ts @@ -0,0 +1,45 @@ +/// +/// +import type { + MPPRecord as _lnrpc_MPPRecord, + MPPRecord__Output as _lnrpc_MPPRecord__Output, +} from '../lnrpc/MPPRecord' +import type { + AMPRecord as _lnrpc_AMPRecord, + AMPRecord__Output as _lnrpc_AMPRecord__Output, +} from '../lnrpc/AMPRecord' +import type { Long } from '@grpc/proto-loader' +export interface Hop { + chan_id?: number | string | Long + chan_capacity?: number | string | Long + amt_to_forward?: number | string | Long + fee?: number | string | Long + expiry?: number + amt_to_forward_msat?: number | string | Long + fee_msat?: number | string | Long + pub_key?: string + tlv_payload?: boolean + mpp_record?: _lnrpc_MPPRecord | null + custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + amp_record?: _lnrpc_AMPRecord | null + metadata?: Buffer | Uint8Array | string +} +export interface Hop__Output { + chan_id: string + chan_capacity: string + amt_to_forward: string + fee: string + expiry: number + amt_to_forward_msat: string + fee_msat: string + pub_key: string + tlv_payload: boolean + mpp_record: _lnrpc_MPPRecord__Output | null + custom_records: { + [key: number]: Buffer + } + amp_record: _lnrpc_AMPRecord__Output | null + metadata: Buffer +} diff --git a/src/grpc/types/lnrpc/HopHint.d.ts b/src/grpc/types/lnrpc/HopHint.d.ts new file mode 100644 index 000000000..810666f8b --- /dev/null +++ b/src/grpc/types/lnrpc/HopHint.d.ts @@ -0,0 +1,16 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface HopHint { + node_id?: string + chan_id?: number | string | Long + fee_base_msat?: number + fee_proportional_millionths?: number + cltv_expiry_delta?: number +} +export interface HopHint__Output { + node_id: string + chan_id: string + fee_base_msat: number + fee_proportional_millionths: number + cltv_expiry_delta: number +} diff --git a/src/grpc/types/lnrpc/InitWalletRequest.d.ts b/src/grpc/types/lnrpc/InitWalletRequest.d.ts new file mode 100644 index 000000000..387765c6b --- /dev/null +++ b/src/grpc/types/lnrpc/InitWalletRequest.d.ts @@ -0,0 +1,35 @@ +/// +/// +import type { + ChanBackupSnapshot as _lnrpc_ChanBackupSnapshot, + ChanBackupSnapshot__Output as _lnrpc_ChanBackupSnapshot__Output, +} from '../lnrpc/ChanBackupSnapshot' +import type { + WatchOnly as _lnrpc_WatchOnly, + WatchOnly__Output as _lnrpc_WatchOnly__Output, +} from '../lnrpc/WatchOnly' +import type { Long } from '@grpc/proto-loader' +export interface InitWalletRequest { + wallet_password?: Buffer | Uint8Array | string + cipher_seed_mnemonic?: string[] + aezeed_passphrase?: Buffer | Uint8Array | string + recovery_window?: number + channel_backups?: _lnrpc_ChanBackupSnapshot | null + stateless_init?: boolean + extended_master_key?: string + extended_master_key_birthday_timestamp?: number | string | Long + watch_only?: _lnrpc_WatchOnly | null + macaroon_root_key?: Buffer | Uint8Array | string +} +export interface InitWalletRequest__Output { + wallet_password: Buffer + cipher_seed_mnemonic: string[] + aezeed_passphrase: Buffer + recovery_window: number + channel_backups: _lnrpc_ChanBackupSnapshot__Output | null + stateless_init: boolean + extended_master_key: string + extended_master_key_birthday_timestamp: string + watch_only: _lnrpc_WatchOnly__Output | null + macaroon_root_key: Buffer +} diff --git a/src/grpc/types/lnrpc/InitWalletResponse.d.ts b/src/grpc/types/lnrpc/InitWalletResponse.d.ts new file mode 100644 index 000000000..a2d461304 --- /dev/null +++ b/src/grpc/types/lnrpc/InitWalletResponse.d.ts @@ -0,0 +1,7 @@ +/// +export interface InitWalletResponse { + admin_macaroon?: Buffer | Uint8Array | string +} +export interface InitWalletResponse__Output { + admin_macaroon: Buffer +} diff --git a/src/grpc/types/lnrpc/Initiator.d.ts b/src/grpc/types/lnrpc/Initiator.d.ts new file mode 100644 index 000000000..898e8881b --- /dev/null +++ b/src/grpc/types/lnrpc/Initiator.d.ts @@ -0,0 +1,6 @@ +export declare enum Initiator { + INITIATOR_UNKNOWN = 0, + INITIATOR_LOCAL = 1, + INITIATOR_REMOTE = 2, + INITIATOR_BOTH = 3, +} diff --git a/src/grpc/types/lnrpc/InterceptFeedback.d.ts b/src/grpc/types/lnrpc/InterceptFeedback.d.ts new file mode 100644 index 000000000..9bbe1b6e0 --- /dev/null +++ b/src/grpc/types/lnrpc/InterceptFeedback.d.ts @@ -0,0 +1,11 @@ +/// +export interface InterceptFeedback { + error?: string + replace_response?: boolean + replacement_serialized?: Buffer | Uint8Array | string +} +export interface InterceptFeedback__Output { + error: string + replace_response: boolean + replacement_serialized: Buffer +} diff --git a/src/grpc/types/lnrpc/Invoice.d.ts b/src/grpc/types/lnrpc/Invoice.d.ts new file mode 100644 index 000000000..b09782086 --- /dev/null +++ b/src/grpc/types/lnrpc/Invoice.d.ts @@ -0,0 +1,91 @@ +/// +/// +import type { + RouteHint as _lnrpc_RouteHint, + RouteHint__Output as _lnrpc_RouteHint__Output, +} from '../lnrpc/RouteHint' +import type { + InvoiceHTLC as _lnrpc_InvoiceHTLC, + InvoiceHTLC__Output as _lnrpc_InvoiceHTLC__Output, +} from '../lnrpc/InvoiceHTLC' +import type { + Feature as _lnrpc_Feature, + Feature__Output as _lnrpc_Feature__Output, +} from '../lnrpc/Feature' +import type { + AMPInvoiceState as _lnrpc_AMPInvoiceState, + AMPInvoiceState__Output as _lnrpc_AMPInvoiceState__Output, +} from '../lnrpc/AMPInvoiceState' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_Invoice_InvoiceState { + OPEN = 0, + SETTLED = 1, + CANCELED = 2, + ACCEPTED = 3, +} +export interface Invoice { + memo?: string + r_preimage?: Buffer | Uint8Array | string + r_hash?: Buffer | Uint8Array | string + value?: number | string | Long + settled?: boolean + creation_date?: number | string | Long + settle_date?: number | string | Long + payment_request?: string + description_hash?: Buffer | Uint8Array | string + expiry?: number | string | Long + fallback_addr?: string + cltv_expiry?: number | string | Long + route_hints?: _lnrpc_RouteHint[] + private?: boolean + add_index?: number | string | Long + settle_index?: number | string | Long + amt_paid?: number | string | Long + amt_paid_sat?: number | string | Long + amt_paid_msat?: number | string | Long + state?: _lnrpc_Invoice_InvoiceState | keyof typeof _lnrpc_Invoice_InvoiceState + htlcs?: _lnrpc_InvoiceHTLC[] + value_msat?: number | string | Long + features?: { + [key: number]: _lnrpc_Feature + } + is_keysend?: boolean + payment_addr?: Buffer | Uint8Array | string + is_amp?: boolean + amp_invoice_state?: { + [key: string]: _lnrpc_AMPInvoiceState + } +} +export interface Invoice__Output { + memo: string + r_preimage: Buffer + r_hash: Buffer + value: string + settled: boolean + creation_date: string + settle_date: string + payment_request: string + description_hash: Buffer + expiry: string + fallback_addr: string + cltv_expiry: string + route_hints: _lnrpc_RouteHint__Output[] + private: boolean + add_index: string + settle_index: string + amt_paid: string + amt_paid_sat: string + amt_paid_msat: string + state: keyof typeof _lnrpc_Invoice_InvoiceState + htlcs: _lnrpc_InvoiceHTLC__Output[] + value_msat: string + features: { + [key: number]: _lnrpc_Feature__Output + } + is_keysend: boolean + payment_addr: Buffer + is_amp: boolean + amp_invoice_state: { + [key: string]: _lnrpc_AMPInvoiceState__Output + } +} diff --git a/src/grpc/types/lnrpc/InvoiceHTLC.d.ts b/src/grpc/types/lnrpc/InvoiceHTLC.d.ts new file mode 100644 index 000000000..ef24bb9b2 --- /dev/null +++ b/src/grpc/types/lnrpc/InvoiceHTLC.d.ts @@ -0,0 +1,38 @@ +/// +/// +import type { InvoiceHTLCState as _lnrpc_InvoiceHTLCState } from '../lnrpc/InvoiceHTLCState' +import type { + AMP as _lnrpc_AMP, + AMP__Output as _lnrpc_AMP__Output, +} from '../lnrpc/AMP' +import type { Long } from '@grpc/proto-loader' +export interface InvoiceHTLC { + chan_id?: number | string | Long + htlc_index?: number | string | Long + amt_msat?: number | string | Long + accept_height?: number + accept_time?: number | string | Long + resolve_time?: number | string | Long + expiry_height?: number + state?: _lnrpc_InvoiceHTLCState | keyof typeof _lnrpc_InvoiceHTLCState + custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + mpp_total_amt_msat?: number | string | Long + amp?: _lnrpc_AMP | null +} +export interface InvoiceHTLC__Output { + chan_id: string + htlc_index: string + amt_msat: string + accept_height: number + accept_time: string + resolve_time: string + expiry_height: number + state: keyof typeof _lnrpc_InvoiceHTLCState + custom_records: { + [key: number]: Buffer + } + mpp_total_amt_msat: string + amp: _lnrpc_AMP__Output | null +} diff --git a/src/grpc/types/lnrpc/InvoiceHTLCState.d.ts b/src/grpc/types/lnrpc/InvoiceHTLCState.d.ts new file mode 100644 index 000000000..67bc001d6 --- /dev/null +++ b/src/grpc/types/lnrpc/InvoiceHTLCState.d.ts @@ -0,0 +1,5 @@ +export declare enum InvoiceHTLCState { + ACCEPTED = 0, + SETTLED = 1, + CANCELED = 2, +} diff --git a/src/grpc/types/lnrpc/InvoiceSubscription.d.ts b/src/grpc/types/lnrpc/InvoiceSubscription.d.ts new file mode 100644 index 000000000..d5ad6a373 --- /dev/null +++ b/src/grpc/types/lnrpc/InvoiceSubscription.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface InvoiceSubscription { + add_index?: number | string | Long + settle_index?: number | string | Long +} +export interface InvoiceSubscription__Output { + add_index: string + settle_index: string +} diff --git a/src/grpc/types/lnrpc/KeyDescriptor.d.ts b/src/grpc/types/lnrpc/KeyDescriptor.d.ts new file mode 100644 index 000000000..48a944a4c --- /dev/null +++ b/src/grpc/types/lnrpc/KeyDescriptor.d.ts @@ -0,0 +1,13 @@ +/// +import type { + KeyLocator as _lnrpc_KeyLocator, + KeyLocator__Output as _lnrpc_KeyLocator__Output, +} from '../lnrpc/KeyLocator' +export interface KeyDescriptor { + raw_key_bytes?: Buffer | Uint8Array | string + key_loc?: _lnrpc_KeyLocator | null +} +export interface KeyDescriptor__Output { + raw_key_bytes: Buffer + key_loc: _lnrpc_KeyLocator__Output | null +} diff --git a/src/grpc/types/lnrpc/KeyLocator.d.ts b/src/grpc/types/lnrpc/KeyLocator.d.ts new file mode 100644 index 000000000..f90e9e360 --- /dev/null +++ b/src/grpc/types/lnrpc/KeyLocator.d.ts @@ -0,0 +1,8 @@ +export interface KeyLocator { + key_family?: number + key_index?: number +} +export interface KeyLocator__Output { + key_family: number + key_index: number +} diff --git a/src/grpc/types/lnrpc/Lightning.d.ts b/src/grpc/types/lnrpc/Lightning.d.ts new file mode 100644 index 000000000..e843f1a60 --- /dev/null +++ b/src/grpc/types/lnrpc/Lightning.d.ts @@ -0,0 +1,3523 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + AbandonChannelRequest as _lnrpc_AbandonChannelRequest, + AbandonChannelRequest__Output as _lnrpc_AbandonChannelRequest__Output, +} from '../lnrpc/AbandonChannelRequest' +import type { + AbandonChannelResponse as _lnrpc_AbandonChannelResponse, + AbandonChannelResponse__Output as _lnrpc_AbandonChannelResponse__Output, +} from '../lnrpc/AbandonChannelResponse' +import type { + AddInvoiceResponse as _lnrpc_AddInvoiceResponse, + AddInvoiceResponse__Output as _lnrpc_AddInvoiceResponse__Output, +} from '../lnrpc/AddInvoiceResponse' +import type { + BakeMacaroonRequest as _lnrpc_BakeMacaroonRequest, + BakeMacaroonRequest__Output as _lnrpc_BakeMacaroonRequest__Output, +} from '../lnrpc/BakeMacaroonRequest' +import type { + BakeMacaroonResponse as _lnrpc_BakeMacaroonResponse, + BakeMacaroonResponse__Output as _lnrpc_BakeMacaroonResponse__Output, +} from '../lnrpc/BakeMacaroonResponse' +import type { + BatchOpenChannelRequest as _lnrpc_BatchOpenChannelRequest, + BatchOpenChannelRequest__Output as _lnrpc_BatchOpenChannelRequest__Output, +} from '../lnrpc/BatchOpenChannelRequest' +import type { + BatchOpenChannelResponse as _lnrpc_BatchOpenChannelResponse, + BatchOpenChannelResponse__Output as _lnrpc_BatchOpenChannelResponse__Output, +} from '../lnrpc/BatchOpenChannelResponse' +import type { + ChanBackupExportRequest as _lnrpc_ChanBackupExportRequest, + ChanBackupExportRequest__Output as _lnrpc_ChanBackupExportRequest__Output, +} from '../lnrpc/ChanBackupExportRequest' +import type { + ChanBackupSnapshot as _lnrpc_ChanBackupSnapshot, + ChanBackupSnapshot__Output as _lnrpc_ChanBackupSnapshot__Output, +} from '../lnrpc/ChanBackupSnapshot' +import type { + ChanInfoRequest as _lnrpc_ChanInfoRequest, + ChanInfoRequest__Output as _lnrpc_ChanInfoRequest__Output, +} from '../lnrpc/ChanInfoRequest' +import type { + ChannelAcceptRequest as _lnrpc_ChannelAcceptRequest, + ChannelAcceptRequest__Output as _lnrpc_ChannelAcceptRequest__Output, +} from '../lnrpc/ChannelAcceptRequest' +import type { + ChannelAcceptResponse as _lnrpc_ChannelAcceptResponse, + ChannelAcceptResponse__Output as _lnrpc_ChannelAcceptResponse__Output, +} from '../lnrpc/ChannelAcceptResponse' +import type { + ChannelBackup as _lnrpc_ChannelBackup, + ChannelBackup__Output as _lnrpc_ChannelBackup__Output, +} from '../lnrpc/ChannelBackup' +import type { + ChannelBackupSubscription as _lnrpc_ChannelBackupSubscription, + ChannelBackupSubscription__Output as _lnrpc_ChannelBackupSubscription__Output, +} from '../lnrpc/ChannelBackupSubscription' +import type { + ChannelBalanceRequest as _lnrpc_ChannelBalanceRequest, + ChannelBalanceRequest__Output as _lnrpc_ChannelBalanceRequest__Output, +} from '../lnrpc/ChannelBalanceRequest' +import type { + ChannelBalanceResponse as _lnrpc_ChannelBalanceResponse, + ChannelBalanceResponse__Output as _lnrpc_ChannelBalanceResponse__Output, +} from '../lnrpc/ChannelBalanceResponse' +import type { + ChannelEdge as _lnrpc_ChannelEdge, + ChannelEdge__Output as _lnrpc_ChannelEdge__Output, +} from '../lnrpc/ChannelEdge' +import type { + ChannelEventSubscription as _lnrpc_ChannelEventSubscription, + ChannelEventSubscription__Output as _lnrpc_ChannelEventSubscription__Output, +} from '../lnrpc/ChannelEventSubscription' +import type { + ChannelEventUpdate as _lnrpc_ChannelEventUpdate, + ChannelEventUpdate__Output as _lnrpc_ChannelEventUpdate__Output, +} from '../lnrpc/ChannelEventUpdate' +import type { + ChannelGraph as _lnrpc_ChannelGraph, + ChannelGraph__Output as _lnrpc_ChannelGraph__Output, +} from '../lnrpc/ChannelGraph' +import type { + ChannelGraphRequest as _lnrpc_ChannelGraphRequest, + ChannelGraphRequest__Output as _lnrpc_ChannelGraphRequest__Output, +} from '../lnrpc/ChannelGraphRequest' +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { + CheckMacPermRequest as _lnrpc_CheckMacPermRequest, + CheckMacPermRequest__Output as _lnrpc_CheckMacPermRequest__Output, +} from '../lnrpc/CheckMacPermRequest' +import type { + CheckMacPermResponse as _lnrpc_CheckMacPermResponse, + CheckMacPermResponse__Output as _lnrpc_CheckMacPermResponse__Output, +} from '../lnrpc/CheckMacPermResponse' +import type { + CloseChannelRequest as _lnrpc_CloseChannelRequest, + CloseChannelRequest__Output as _lnrpc_CloseChannelRequest__Output, +} from '../lnrpc/CloseChannelRequest' +import type { + CloseStatusUpdate as _lnrpc_CloseStatusUpdate, + CloseStatusUpdate__Output as _lnrpc_CloseStatusUpdate__Output, +} from '../lnrpc/CloseStatusUpdate' +import type { + ClosedChannelsRequest as _lnrpc_ClosedChannelsRequest, + ClosedChannelsRequest__Output as _lnrpc_ClosedChannelsRequest__Output, +} from '../lnrpc/ClosedChannelsRequest' +import type { + ClosedChannelsResponse as _lnrpc_ClosedChannelsResponse, + ClosedChannelsResponse__Output as _lnrpc_ClosedChannelsResponse__Output, +} from '../lnrpc/ClosedChannelsResponse' +import type { + ConnectPeerRequest as _lnrpc_ConnectPeerRequest, + ConnectPeerRequest__Output as _lnrpc_ConnectPeerRequest__Output, +} from '../lnrpc/ConnectPeerRequest' +import type { + ConnectPeerResponse as _lnrpc_ConnectPeerResponse, + ConnectPeerResponse__Output as _lnrpc_ConnectPeerResponse__Output, +} from '../lnrpc/ConnectPeerResponse' +import type { + CustomMessage as _lnrpc_CustomMessage, + CustomMessage__Output as _lnrpc_CustomMessage__Output, +} from '../lnrpc/CustomMessage' +import type { + DebugLevelRequest as _lnrpc_DebugLevelRequest, + DebugLevelRequest__Output as _lnrpc_DebugLevelRequest__Output, +} from '../lnrpc/DebugLevelRequest' +import type { + DebugLevelResponse as _lnrpc_DebugLevelResponse, + DebugLevelResponse__Output as _lnrpc_DebugLevelResponse__Output, +} from '../lnrpc/DebugLevelResponse' +import type { + DeleteAllPaymentsRequest as _lnrpc_DeleteAllPaymentsRequest, + DeleteAllPaymentsRequest__Output as _lnrpc_DeleteAllPaymentsRequest__Output, +} from '../lnrpc/DeleteAllPaymentsRequest' +import type { + DeleteAllPaymentsResponse as _lnrpc_DeleteAllPaymentsResponse, + DeleteAllPaymentsResponse__Output as _lnrpc_DeleteAllPaymentsResponse__Output, +} from '../lnrpc/DeleteAllPaymentsResponse' +import type { + DeleteMacaroonIDRequest as _lnrpc_DeleteMacaroonIDRequest, + DeleteMacaroonIDRequest__Output as _lnrpc_DeleteMacaroonIDRequest__Output, +} from '../lnrpc/DeleteMacaroonIDRequest' +import type { + DeleteMacaroonIDResponse as _lnrpc_DeleteMacaroonIDResponse, + DeleteMacaroonIDResponse__Output as _lnrpc_DeleteMacaroonIDResponse__Output, +} from '../lnrpc/DeleteMacaroonIDResponse' +import type { + DeletePaymentRequest as _lnrpc_DeletePaymentRequest, + DeletePaymentRequest__Output as _lnrpc_DeletePaymentRequest__Output, +} from '../lnrpc/DeletePaymentRequest' +import type { + DeletePaymentResponse as _lnrpc_DeletePaymentResponse, + DeletePaymentResponse__Output as _lnrpc_DeletePaymentResponse__Output, +} from '../lnrpc/DeletePaymentResponse' +import type { + DisconnectPeerRequest as _lnrpc_DisconnectPeerRequest, + DisconnectPeerRequest__Output as _lnrpc_DisconnectPeerRequest__Output, +} from '../lnrpc/DisconnectPeerRequest' +import type { + DisconnectPeerResponse as _lnrpc_DisconnectPeerResponse, + DisconnectPeerResponse__Output as _lnrpc_DisconnectPeerResponse__Output, +} from '../lnrpc/DisconnectPeerResponse' +import type { + EstimateFeeRequest as _lnrpc_EstimateFeeRequest, + EstimateFeeRequest__Output as _lnrpc_EstimateFeeRequest__Output, +} from '../lnrpc/EstimateFeeRequest' +import type { + EstimateFeeResponse as _lnrpc_EstimateFeeResponse, + EstimateFeeResponse__Output as _lnrpc_EstimateFeeResponse__Output, +} from '../lnrpc/EstimateFeeResponse' +import type { + ExportChannelBackupRequest as _lnrpc_ExportChannelBackupRequest, + ExportChannelBackupRequest__Output as _lnrpc_ExportChannelBackupRequest__Output, +} from '../lnrpc/ExportChannelBackupRequest' +import type { + FeeReportRequest as _lnrpc_FeeReportRequest, + FeeReportRequest__Output as _lnrpc_FeeReportRequest__Output, +} from '../lnrpc/FeeReportRequest' +import type { + FeeReportResponse as _lnrpc_FeeReportResponse, + FeeReportResponse__Output as _lnrpc_FeeReportResponse__Output, +} from '../lnrpc/FeeReportResponse' +import type { + ForwardingHistoryRequest as _lnrpc_ForwardingHistoryRequest, + ForwardingHistoryRequest__Output as _lnrpc_ForwardingHistoryRequest__Output, +} from '../lnrpc/ForwardingHistoryRequest' +import type { + ForwardingHistoryResponse as _lnrpc_ForwardingHistoryResponse, + ForwardingHistoryResponse__Output as _lnrpc_ForwardingHistoryResponse__Output, +} from '../lnrpc/ForwardingHistoryResponse' +import type { + FundingStateStepResp as _lnrpc_FundingStateStepResp, + FundingStateStepResp__Output as _lnrpc_FundingStateStepResp__Output, +} from '../lnrpc/FundingStateStepResp' +import type { + FundingTransitionMsg as _lnrpc_FundingTransitionMsg, + FundingTransitionMsg__Output as _lnrpc_FundingTransitionMsg__Output, +} from '../lnrpc/FundingTransitionMsg' +import type { + GetInfoRequest as _lnrpc_GetInfoRequest, + GetInfoRequest__Output as _lnrpc_GetInfoRequest__Output, +} from '../lnrpc/GetInfoRequest' +import type { + GetInfoResponse as _lnrpc_GetInfoResponse, + GetInfoResponse__Output as _lnrpc_GetInfoResponse__Output, +} from '../lnrpc/GetInfoResponse' +import type { + GetRecoveryInfoRequest as _lnrpc_GetRecoveryInfoRequest, + GetRecoveryInfoRequest__Output as _lnrpc_GetRecoveryInfoRequest__Output, +} from '../lnrpc/GetRecoveryInfoRequest' +import type { + GetRecoveryInfoResponse as _lnrpc_GetRecoveryInfoResponse, + GetRecoveryInfoResponse__Output as _lnrpc_GetRecoveryInfoResponse__Output, +} from '../lnrpc/GetRecoveryInfoResponse' +import type { + GetTransactionsRequest as _lnrpc_GetTransactionsRequest, + GetTransactionsRequest__Output as _lnrpc_GetTransactionsRequest__Output, +} from '../lnrpc/GetTransactionsRequest' +import type { + GraphTopologySubscription as _lnrpc_GraphTopologySubscription, + GraphTopologySubscription__Output as _lnrpc_GraphTopologySubscription__Output, +} from '../lnrpc/GraphTopologySubscription' +import type { + GraphTopologyUpdate as _lnrpc_GraphTopologyUpdate, + GraphTopologyUpdate__Output as _lnrpc_GraphTopologyUpdate__Output, +} from '../lnrpc/GraphTopologyUpdate' +import type { + Invoice as _lnrpc_Invoice, + Invoice__Output as _lnrpc_Invoice__Output, +} from '../lnrpc/Invoice' +import type { + InvoiceSubscription as _lnrpc_InvoiceSubscription, + InvoiceSubscription__Output as _lnrpc_InvoiceSubscription__Output, +} from '../lnrpc/InvoiceSubscription' +import type { + ListAliasesRequest as _lnrpc_ListAliasesRequest, + ListAliasesRequest__Output as _lnrpc_ListAliasesRequest__Output, +} from '../lnrpc/ListAliasesRequest' +import type { + ListAliasesResponse as _lnrpc_ListAliasesResponse, + ListAliasesResponse__Output as _lnrpc_ListAliasesResponse__Output, +} from '../lnrpc/ListAliasesResponse' +import type { + ListChannelsRequest as _lnrpc_ListChannelsRequest, + ListChannelsRequest__Output as _lnrpc_ListChannelsRequest__Output, +} from '../lnrpc/ListChannelsRequest' +import type { + ListChannelsResponse as _lnrpc_ListChannelsResponse, + ListChannelsResponse__Output as _lnrpc_ListChannelsResponse__Output, +} from '../lnrpc/ListChannelsResponse' +import type { + ListInvoiceRequest as _lnrpc_ListInvoiceRequest, + ListInvoiceRequest__Output as _lnrpc_ListInvoiceRequest__Output, +} from '../lnrpc/ListInvoiceRequest' +import type { + ListInvoiceResponse as _lnrpc_ListInvoiceResponse, + ListInvoiceResponse__Output as _lnrpc_ListInvoiceResponse__Output, +} from '../lnrpc/ListInvoiceResponse' +import type { + ListMacaroonIDsRequest as _lnrpc_ListMacaroonIDsRequest, + ListMacaroonIDsRequest__Output as _lnrpc_ListMacaroonIDsRequest__Output, +} from '../lnrpc/ListMacaroonIDsRequest' +import type { + ListMacaroonIDsResponse as _lnrpc_ListMacaroonIDsResponse, + ListMacaroonIDsResponse__Output as _lnrpc_ListMacaroonIDsResponse__Output, +} from '../lnrpc/ListMacaroonIDsResponse' +import type { + ListPaymentsRequest as _lnrpc_ListPaymentsRequest, + ListPaymentsRequest__Output as _lnrpc_ListPaymentsRequest__Output, +} from '../lnrpc/ListPaymentsRequest' +import type { + ListPaymentsResponse as _lnrpc_ListPaymentsResponse, + ListPaymentsResponse__Output as _lnrpc_ListPaymentsResponse__Output, +} from '../lnrpc/ListPaymentsResponse' +import type { + ListPeersRequest as _lnrpc_ListPeersRequest, + ListPeersRequest__Output as _lnrpc_ListPeersRequest__Output, +} from '../lnrpc/ListPeersRequest' +import type { + ListPeersResponse as _lnrpc_ListPeersResponse, + ListPeersResponse__Output as _lnrpc_ListPeersResponse__Output, +} from '../lnrpc/ListPeersResponse' +import type { + ListPermissionsRequest as _lnrpc_ListPermissionsRequest, + ListPermissionsRequest__Output as _lnrpc_ListPermissionsRequest__Output, +} from '../lnrpc/ListPermissionsRequest' +import type { + ListPermissionsResponse as _lnrpc_ListPermissionsResponse, + ListPermissionsResponse__Output as _lnrpc_ListPermissionsResponse__Output, +} from '../lnrpc/ListPermissionsResponse' +import type { + ListUnspentRequest as _lnrpc_ListUnspentRequest, + ListUnspentRequest__Output as _lnrpc_ListUnspentRequest__Output, +} from '../lnrpc/ListUnspentRequest' +import type { + ListUnspentResponse as _lnrpc_ListUnspentResponse, + ListUnspentResponse__Output as _lnrpc_ListUnspentResponse__Output, +} from '../lnrpc/ListUnspentResponse' +import type { + NetworkInfo as _lnrpc_NetworkInfo, + NetworkInfo__Output as _lnrpc_NetworkInfo__Output, +} from '../lnrpc/NetworkInfo' +import type { + NetworkInfoRequest as _lnrpc_NetworkInfoRequest, + NetworkInfoRequest__Output as _lnrpc_NetworkInfoRequest__Output, +} from '../lnrpc/NetworkInfoRequest' +import type { + NewAddressRequest as _lnrpc_NewAddressRequest, + NewAddressRequest__Output as _lnrpc_NewAddressRequest__Output, +} from '../lnrpc/NewAddressRequest' +import type { + NewAddressResponse as _lnrpc_NewAddressResponse, + NewAddressResponse__Output as _lnrpc_NewAddressResponse__Output, +} from '../lnrpc/NewAddressResponse' +import type { + NodeInfo as _lnrpc_NodeInfo, + NodeInfo__Output as _lnrpc_NodeInfo__Output, +} from '../lnrpc/NodeInfo' +import type { + NodeInfoRequest as _lnrpc_NodeInfoRequest, + NodeInfoRequest__Output as _lnrpc_NodeInfoRequest__Output, +} from '../lnrpc/NodeInfoRequest' +import type { + NodeMetricsRequest as _lnrpc_NodeMetricsRequest, + NodeMetricsRequest__Output as _lnrpc_NodeMetricsRequest__Output, +} from '../lnrpc/NodeMetricsRequest' +import type { + NodeMetricsResponse as _lnrpc_NodeMetricsResponse, + NodeMetricsResponse__Output as _lnrpc_NodeMetricsResponse__Output, +} from '../lnrpc/NodeMetricsResponse' +import type { + OpenChannelRequest as _lnrpc_OpenChannelRequest, + OpenChannelRequest__Output as _lnrpc_OpenChannelRequest__Output, +} from '../lnrpc/OpenChannelRequest' +import type { + OpenStatusUpdate as _lnrpc_OpenStatusUpdate, + OpenStatusUpdate__Output as _lnrpc_OpenStatusUpdate__Output, +} from '../lnrpc/OpenStatusUpdate' +import type { + PayReq as _lnrpc_PayReq, + PayReq__Output as _lnrpc_PayReq__Output, +} from '../lnrpc/PayReq' +import type { + PayReqString as _lnrpc_PayReqString, + PayReqString__Output as _lnrpc_PayReqString__Output, +} from '../lnrpc/PayReqString' +import type { + PaymentHash as _lnrpc_PaymentHash, + PaymentHash__Output as _lnrpc_PaymentHash__Output, +} from '../lnrpc/PaymentHash' +import type { + PeerEvent as _lnrpc_PeerEvent, + PeerEvent__Output as _lnrpc_PeerEvent__Output, +} from '../lnrpc/PeerEvent' +import type { + PeerEventSubscription as _lnrpc_PeerEventSubscription, + PeerEventSubscription__Output as _lnrpc_PeerEventSubscription__Output, +} from '../lnrpc/PeerEventSubscription' +import type { + PendingChannelsRequest as _lnrpc_PendingChannelsRequest, + PendingChannelsRequest__Output as _lnrpc_PendingChannelsRequest__Output, +} from '../lnrpc/PendingChannelsRequest' +import type { + PendingChannelsResponse as _lnrpc_PendingChannelsResponse, + PendingChannelsResponse__Output as _lnrpc_PendingChannelsResponse__Output, +} from '../lnrpc/PendingChannelsResponse' +import type { + PolicyUpdateRequest as _lnrpc_PolicyUpdateRequest, + PolicyUpdateRequest__Output as _lnrpc_PolicyUpdateRequest__Output, +} from '../lnrpc/PolicyUpdateRequest' +import type { + PolicyUpdateResponse as _lnrpc_PolicyUpdateResponse, + PolicyUpdateResponse__Output as _lnrpc_PolicyUpdateResponse__Output, +} from '../lnrpc/PolicyUpdateResponse' +import type { + QueryRoutesRequest as _lnrpc_QueryRoutesRequest, + QueryRoutesRequest__Output as _lnrpc_QueryRoutesRequest__Output, +} from '../lnrpc/QueryRoutesRequest' +import type { + QueryRoutesResponse as _lnrpc_QueryRoutesResponse, + QueryRoutesResponse__Output as _lnrpc_QueryRoutesResponse__Output, +} from '../lnrpc/QueryRoutesResponse' +import type { + RPCMiddlewareRequest as _lnrpc_RPCMiddlewareRequest, + RPCMiddlewareRequest__Output as _lnrpc_RPCMiddlewareRequest__Output, +} from '../lnrpc/RPCMiddlewareRequest' +import type { + RPCMiddlewareResponse as _lnrpc_RPCMiddlewareResponse, + RPCMiddlewareResponse__Output as _lnrpc_RPCMiddlewareResponse__Output, +} from '../lnrpc/RPCMiddlewareResponse' +import type { + RestoreBackupResponse as _lnrpc_RestoreBackupResponse, + RestoreBackupResponse__Output as _lnrpc_RestoreBackupResponse__Output, +} from '../lnrpc/RestoreBackupResponse' +import type { + RestoreChanBackupRequest as _lnrpc_RestoreChanBackupRequest, + RestoreChanBackupRequest__Output as _lnrpc_RestoreChanBackupRequest__Output, +} from '../lnrpc/RestoreChanBackupRequest' +import type { + SendCoinsRequest as _lnrpc_SendCoinsRequest, + SendCoinsRequest__Output as _lnrpc_SendCoinsRequest__Output, +} from '../lnrpc/SendCoinsRequest' +import type { + SendCoinsResponse as _lnrpc_SendCoinsResponse, + SendCoinsResponse__Output as _lnrpc_SendCoinsResponse__Output, +} from '../lnrpc/SendCoinsResponse' +import type { + SendCustomMessageRequest as _lnrpc_SendCustomMessageRequest, + SendCustomMessageRequest__Output as _lnrpc_SendCustomMessageRequest__Output, +} from '../lnrpc/SendCustomMessageRequest' +import type { + SendCustomMessageResponse as _lnrpc_SendCustomMessageResponse, + SendCustomMessageResponse__Output as _lnrpc_SendCustomMessageResponse__Output, +} from '../lnrpc/SendCustomMessageResponse' +import type { + SendManyRequest as _lnrpc_SendManyRequest, + SendManyRequest__Output as _lnrpc_SendManyRequest__Output, +} from '../lnrpc/SendManyRequest' +import type { + SendManyResponse as _lnrpc_SendManyResponse, + SendManyResponse__Output as _lnrpc_SendManyResponse__Output, +} from '../lnrpc/SendManyResponse' +import type { + SendRequest as _lnrpc_SendRequest, + SendRequest__Output as _lnrpc_SendRequest__Output, +} from '../lnrpc/SendRequest' +import type { + SendResponse as _lnrpc_SendResponse, + SendResponse__Output as _lnrpc_SendResponse__Output, +} from '../lnrpc/SendResponse' +import type { + SendToRouteRequest as _lnrpc_SendToRouteRequest, + SendToRouteRequest__Output as _lnrpc_SendToRouteRequest__Output, +} from '../lnrpc/SendToRouteRequest' +import type { + SignMessageRequest as _lnrpc_SignMessageRequest, + SignMessageRequest__Output as _lnrpc_SignMessageRequest__Output, +} from '../lnrpc/SignMessageRequest' +import type { + SignMessageResponse as _lnrpc_SignMessageResponse, + SignMessageResponse__Output as _lnrpc_SignMessageResponse__Output, +} from '../lnrpc/SignMessageResponse' +import type { + StopRequest as _lnrpc_StopRequest, + StopRequest__Output as _lnrpc_StopRequest__Output, +} from '../lnrpc/StopRequest' +import type { + StopResponse as _lnrpc_StopResponse, + StopResponse__Output as _lnrpc_StopResponse__Output, +} from '../lnrpc/StopResponse' +import type { + SubscribeCustomMessagesRequest as _lnrpc_SubscribeCustomMessagesRequest, + SubscribeCustomMessagesRequest__Output as _lnrpc_SubscribeCustomMessagesRequest__Output, +} from '../lnrpc/SubscribeCustomMessagesRequest' +import type { + Transaction as _lnrpc_Transaction, + Transaction__Output as _lnrpc_Transaction__Output, +} from '../lnrpc/Transaction' +import type { + TransactionDetails as _lnrpc_TransactionDetails, + TransactionDetails__Output as _lnrpc_TransactionDetails__Output, +} from '../lnrpc/TransactionDetails' +import type { + VerifyChanBackupResponse as _lnrpc_VerifyChanBackupResponse, + VerifyChanBackupResponse__Output as _lnrpc_VerifyChanBackupResponse__Output, +} from '../lnrpc/VerifyChanBackupResponse' +import type { + VerifyMessageRequest as _lnrpc_VerifyMessageRequest, + VerifyMessageRequest__Output as _lnrpc_VerifyMessageRequest__Output, +} from '../lnrpc/VerifyMessageRequest' +import type { + VerifyMessageResponse as _lnrpc_VerifyMessageResponse, + VerifyMessageResponse__Output as _lnrpc_VerifyMessageResponse__Output, +} from '../lnrpc/VerifyMessageResponse' +import type { + WalletBalanceRequest as _lnrpc_WalletBalanceRequest, + WalletBalanceRequest__Output as _lnrpc_WalletBalanceRequest__Output, +} from '../lnrpc/WalletBalanceRequest' +import type { + WalletBalanceResponse as _lnrpc_WalletBalanceResponse, + WalletBalanceResponse__Output as _lnrpc_WalletBalanceResponse__Output, +} from '../lnrpc/WalletBalanceResponse' +export interface LightningClient extends grpc.Client { + AbandonChannel( + argument: _lnrpc_AbandonChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + AbandonChannel( + argument: _lnrpc_AbandonChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + AbandonChannel( + argument: _lnrpc_AbandonChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + AbandonChannel( + argument: _lnrpc_AbandonChannelRequest, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + abandonChannel( + argument: _lnrpc_AbandonChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + abandonChannel( + argument: _lnrpc_AbandonChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + abandonChannel( + argument: _lnrpc_AbandonChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + abandonChannel( + argument: _lnrpc_AbandonChannelRequest, + callback: grpc.requestCallback<_lnrpc_AbandonChannelResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_Invoice, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_Invoice, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_Invoice, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_Invoice, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_Invoice, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_Invoice, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_Invoice, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_Invoice, + callback: grpc.requestCallback<_lnrpc_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + BakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + BakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + BakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + BakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + bakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + bakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + bakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + bakeMacaroon( + argument: _lnrpc_BakeMacaroonRequest, + callback: grpc.requestCallback<_lnrpc_BakeMacaroonResponse__Output> + ): grpc.ClientUnaryCall + BatchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + BatchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + BatchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + BatchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + batchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + batchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + batchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + batchOpenChannel( + argument: _lnrpc_BatchOpenChannelRequest, + callback: grpc.requestCallback<_lnrpc_BatchOpenChannelResponse__Output> + ): grpc.ClientUnaryCall + ChannelAcceptor( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_ChannelAcceptResponse, + _lnrpc_ChannelAcceptRequest__Output + > + ChannelAcceptor( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_ChannelAcceptResponse, + _lnrpc_ChannelAcceptRequest__Output + > + channelAcceptor( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_ChannelAcceptResponse, + _lnrpc_ChannelAcceptRequest__Output + > + channelAcceptor( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_ChannelAcceptResponse, + _lnrpc_ChannelAcceptRequest__Output + > + ChannelBalance( + argument: _lnrpc_ChannelBalanceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_ChannelBalanceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_ChannelBalanceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_ChannelBalanceRequest, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_ChannelBalanceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_ChannelBalanceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_ChannelBalanceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_ChannelBalanceRequest, + callback: grpc.requestCallback<_lnrpc_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + CheckMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + CheckMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + CheckMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + CheckMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + checkMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + checkMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + checkMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + checkMacaroonPermissions( + argument: _lnrpc_CheckMacPermRequest, + callback: grpc.requestCallback<_lnrpc_CheckMacPermResponse__Output> + ): grpc.ClientUnaryCall + CloseChannel( + argument: _lnrpc_CloseChannelRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CloseStatusUpdate__Output> + CloseChannel( + argument: _lnrpc_CloseChannelRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CloseStatusUpdate__Output> + closeChannel( + argument: _lnrpc_CloseChannelRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CloseStatusUpdate__Output> + closeChannel( + argument: _lnrpc_CloseChannelRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CloseStatusUpdate__Output> + ClosedChannels( + argument: _lnrpc_ClosedChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + ClosedChannels( + argument: _lnrpc_ClosedChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + ClosedChannels( + argument: _lnrpc_ClosedChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + ClosedChannels( + argument: _lnrpc_ClosedChannelsRequest, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + closedChannels( + argument: _lnrpc_ClosedChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + closedChannels( + argument: _lnrpc_ClosedChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + closedChannels( + argument: _lnrpc_ClosedChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + closedChannels( + argument: _lnrpc_ClosedChannelsRequest, + callback: grpc.requestCallback<_lnrpc_ClosedChannelsResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _lnrpc_ConnectPeerRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _lnrpc_ConnectPeerRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _lnrpc_ConnectPeerRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + ConnectPeer( + argument: _lnrpc_ConnectPeerRequest, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _lnrpc_ConnectPeerRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _lnrpc_ConnectPeerRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _lnrpc_ConnectPeerRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + connectPeer( + argument: _lnrpc_ConnectPeerRequest, + callback: grpc.requestCallback<_lnrpc_ConnectPeerResponse__Output> + ): grpc.ClientUnaryCall + DebugLevel( + argument: _lnrpc_DebugLevelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + DebugLevel( + argument: _lnrpc_DebugLevelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + DebugLevel( + argument: _lnrpc_DebugLevelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + DebugLevel( + argument: _lnrpc_DebugLevelRequest, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + debugLevel( + argument: _lnrpc_DebugLevelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + debugLevel( + argument: _lnrpc_DebugLevelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + debugLevel( + argument: _lnrpc_DebugLevelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + debugLevel( + argument: _lnrpc_DebugLevelRequest, + callback: grpc.requestCallback<_lnrpc_DebugLevelResponse__Output> + ): grpc.ClientUnaryCall + DecodePayReq( + argument: _lnrpc_PayReqString, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + DecodePayReq( + argument: _lnrpc_PayReqString, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + DecodePayReq( + argument: _lnrpc_PayReqString, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + DecodePayReq( + argument: _lnrpc_PayReqString, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + decodePayReq( + argument: _lnrpc_PayReqString, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + decodePayReq( + argument: _lnrpc_PayReqString, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + decodePayReq( + argument: _lnrpc_PayReqString, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + decodePayReq( + argument: _lnrpc_PayReqString, + callback: grpc.requestCallback<_lnrpc_PayReq__Output> + ): grpc.ClientUnaryCall + DeleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + DeleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + DeleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + DeleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + deleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + deleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + deleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + deleteAllPayments( + argument: _lnrpc_DeleteAllPaymentsRequest, + callback: grpc.requestCallback<_lnrpc_DeleteAllPaymentsResponse__Output> + ): grpc.ClientUnaryCall + DeleteMacaroonID( + argument: _lnrpc_DeleteMacaroonIDRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + DeleteMacaroonID( + argument: _lnrpc_DeleteMacaroonIDRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + DeleteMacaroonID( + argument: _lnrpc_DeleteMacaroonIDRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + DeleteMacaroonID( + argument: _lnrpc_DeleteMacaroonIDRequest, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + deleteMacaroonId( + argument: _lnrpc_DeleteMacaroonIDRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + deleteMacaroonId( + argument: _lnrpc_DeleteMacaroonIDRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + deleteMacaroonId( + argument: _lnrpc_DeleteMacaroonIDRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + deleteMacaroonId( + argument: _lnrpc_DeleteMacaroonIDRequest, + callback: grpc.requestCallback<_lnrpc_DeleteMacaroonIDResponse__Output> + ): grpc.ClientUnaryCall + DeletePayment( + argument: _lnrpc_DeletePaymentRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + DeletePayment( + argument: _lnrpc_DeletePaymentRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + DeletePayment( + argument: _lnrpc_DeletePaymentRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + DeletePayment( + argument: _lnrpc_DeletePaymentRequest, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + deletePayment( + argument: _lnrpc_DeletePaymentRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + deletePayment( + argument: _lnrpc_DeletePaymentRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + deletePayment( + argument: _lnrpc_DeletePaymentRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + deletePayment( + argument: _lnrpc_DeletePaymentRequest, + callback: grpc.requestCallback<_lnrpc_DeletePaymentResponse__Output> + ): grpc.ClientUnaryCall + DescribeGraph( + argument: _lnrpc_ChannelGraphRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + DescribeGraph( + argument: _lnrpc_ChannelGraphRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + DescribeGraph( + argument: _lnrpc_ChannelGraphRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + DescribeGraph( + argument: _lnrpc_ChannelGraphRequest, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + describeGraph( + argument: _lnrpc_ChannelGraphRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + describeGraph( + argument: _lnrpc_ChannelGraphRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + describeGraph( + argument: _lnrpc_ChannelGraphRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + describeGraph( + argument: _lnrpc_ChannelGraphRequest, + callback: grpc.requestCallback<_lnrpc_ChannelGraph__Output> + ): grpc.ClientUnaryCall + DisconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + DisconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + DisconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + DisconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + disconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + disconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + disconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + disconnectPeer( + argument: _lnrpc_DisconnectPeerRequest, + callback: grpc.requestCallback<_lnrpc_DisconnectPeerResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _lnrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _lnrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _lnrpc_EstimateFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _lnrpc_EstimateFeeRequest, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _lnrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _lnrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _lnrpc_EstimateFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _lnrpc_EstimateFeeRequest, + callback: grpc.requestCallback<_lnrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + ExportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + ExportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + ExportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + ExportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + exportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + exportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + exportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + exportAllChannelBackups( + argument: _lnrpc_ChanBackupExportRequest, + callback: grpc.requestCallback<_lnrpc_ChanBackupSnapshot__Output> + ): grpc.ClientUnaryCall + ExportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + ExportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + ExportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + ExportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + exportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + exportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + exportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + exportChannelBackup( + argument: _lnrpc_ExportChannelBackupRequest, + callback: grpc.requestCallback<_lnrpc_ChannelBackup__Output> + ): grpc.ClientUnaryCall + FeeReport( + argument: _lnrpc_FeeReportRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + FeeReport( + argument: _lnrpc_FeeReportRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + FeeReport( + argument: _lnrpc_FeeReportRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + FeeReport( + argument: _lnrpc_FeeReportRequest, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + feeReport( + argument: _lnrpc_FeeReportRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + feeReport( + argument: _lnrpc_FeeReportRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + feeReport( + argument: _lnrpc_FeeReportRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + feeReport( + argument: _lnrpc_FeeReportRequest, + callback: grpc.requestCallback<_lnrpc_FeeReportResponse__Output> + ): grpc.ClientUnaryCall + ForwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + ForwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + ForwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + ForwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + forwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + forwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + forwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + forwardingHistory( + argument: _lnrpc_ForwardingHistoryRequest, + callback: grpc.requestCallback<_lnrpc_ForwardingHistoryResponse__Output> + ): grpc.ClientUnaryCall + FundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + FundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + FundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + FundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + fundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + fundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + fundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + fundingStateStep( + argument: _lnrpc_FundingTransitionMsg, + callback: grpc.requestCallback<_lnrpc_FundingStateStepResp__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_ChanInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_ChanInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_ChanInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_ChanInfoRequest, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_ChanInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_ChanInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_ChanInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_ChanInfoRequest, + callback: grpc.requestCallback<_lnrpc_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_GetInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_GetInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_GetInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_GetInfoRequest, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_GetInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_GetInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_GetInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_GetInfoRequest, + callback: grpc.requestCallback<_lnrpc_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + GetNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + GetNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + GetNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + getNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + getNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + getNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + getNetworkInfo( + argument: _lnrpc_NetworkInfoRequest, + callback: grpc.requestCallback<_lnrpc_NetworkInfo__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _lnrpc_NodeInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _lnrpc_NodeInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _lnrpc_NodeInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _lnrpc_NodeInfoRequest, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _lnrpc_NodeInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _lnrpc_NodeInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _lnrpc_NodeInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _lnrpc_NodeInfoRequest, + callback: grpc.requestCallback<_lnrpc_NodeInfo__Output> + ): grpc.ClientUnaryCall + GetNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + GetNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + GetNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + GetNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + getNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + getNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + getNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + getNodeMetrics( + argument: _lnrpc_NodeMetricsRequest, + callback: grpc.requestCallback<_lnrpc_NodeMetricsResponse__Output> + ): grpc.ClientUnaryCall + GetRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + GetRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + GetRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + GetRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + getRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + getRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + getRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + getRecoveryInfo( + argument: _lnrpc_GetRecoveryInfoRequest, + callback: grpc.requestCallback<_lnrpc_GetRecoveryInfoResponse__Output> + ): grpc.ClientUnaryCall + GetTransactions( + argument: _lnrpc_GetTransactionsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + GetTransactions( + argument: _lnrpc_GetTransactionsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + GetTransactions( + argument: _lnrpc_GetTransactionsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + GetTransactions( + argument: _lnrpc_GetTransactionsRequest, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + getTransactions( + argument: _lnrpc_GetTransactionsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + getTransactions( + argument: _lnrpc_GetTransactionsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + getTransactions( + argument: _lnrpc_GetTransactionsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + getTransactions( + argument: _lnrpc_GetTransactionsRequest, + callback: grpc.requestCallback<_lnrpc_TransactionDetails__Output> + ): grpc.ClientUnaryCall + ListAliases( + argument: _lnrpc_ListAliasesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + ListAliases( + argument: _lnrpc_ListAliasesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + ListAliases( + argument: _lnrpc_ListAliasesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + ListAliases( + argument: _lnrpc_ListAliasesRequest, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + listAliases( + argument: _lnrpc_ListAliasesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + listAliases( + argument: _lnrpc_ListAliasesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + listAliases( + argument: _lnrpc_ListAliasesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + listAliases( + argument: _lnrpc_ListAliasesRequest, + callback: grpc.requestCallback<_lnrpc_ListAliasesResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_ListChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_ListChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_ListChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_ListChannelsRequest, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_ListChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_ListChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_ListChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_ListChannelsRequest, + callback: grpc.requestCallback<_lnrpc_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _lnrpc_ListInvoiceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _lnrpc_ListInvoiceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _lnrpc_ListInvoiceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + ListInvoices( + argument: _lnrpc_ListInvoiceRequest, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _lnrpc_ListInvoiceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _lnrpc_ListInvoiceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _lnrpc_ListInvoiceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + listInvoices( + argument: _lnrpc_ListInvoiceRequest, + callback: grpc.requestCallback<_lnrpc_ListInvoiceResponse__Output> + ): grpc.ClientUnaryCall + ListMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + ListMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + ListMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + ListMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + listMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + listMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + listMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + listMacaroonIDs( + argument: _lnrpc_ListMacaroonIDsRequest, + callback: grpc.requestCallback<_lnrpc_ListMacaroonIDsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _lnrpc_ListPaymentsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _lnrpc_ListPaymentsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _lnrpc_ListPaymentsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPayments( + argument: _lnrpc_ListPaymentsRequest, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _lnrpc_ListPaymentsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _lnrpc_ListPaymentsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _lnrpc_ListPaymentsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + listPayments( + argument: _lnrpc_ListPaymentsRequest, + callback: grpc.requestCallback<_lnrpc_ListPaymentsResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _lnrpc_ListPeersRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _lnrpc_ListPeersRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _lnrpc_ListPeersRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPeers( + argument: _lnrpc_ListPeersRequest, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _lnrpc_ListPeersRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _lnrpc_ListPeersRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _lnrpc_ListPeersRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + listPeers( + argument: _lnrpc_ListPeersRequest, + callback: grpc.requestCallback<_lnrpc_ListPeersResponse__Output> + ): grpc.ClientUnaryCall + ListPermissions( + argument: _lnrpc_ListPermissionsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + ListPermissions( + argument: _lnrpc_ListPermissionsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + ListPermissions( + argument: _lnrpc_ListPermissionsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + ListPermissions( + argument: _lnrpc_ListPermissionsRequest, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + listPermissions( + argument: _lnrpc_ListPermissionsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + listPermissions( + argument: _lnrpc_ListPermissionsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + listPermissions( + argument: _lnrpc_ListPermissionsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + listPermissions( + argument: _lnrpc_ListPermissionsRequest, + callback: grpc.requestCallback<_lnrpc_ListPermissionsResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _lnrpc_ListUnspentRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _lnrpc_ListUnspentRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _lnrpc_ListUnspentRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _lnrpc_ListUnspentRequest, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _lnrpc_ListUnspentRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _lnrpc_ListUnspentRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _lnrpc_ListUnspentRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _lnrpc_ListUnspentRequest, + callback: grpc.requestCallback<_lnrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + LookupInvoice( + argument: _lnrpc_PaymentHash, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + LookupInvoice( + argument: _lnrpc_PaymentHash, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + LookupInvoice( + argument: _lnrpc_PaymentHash, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + LookupInvoice( + argument: _lnrpc_PaymentHash, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + lookupInvoice( + argument: _lnrpc_PaymentHash, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + lookupInvoice( + argument: _lnrpc_PaymentHash, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + lookupInvoice( + argument: _lnrpc_PaymentHash, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + lookupInvoice( + argument: _lnrpc_PaymentHash, + callback: grpc.requestCallback<_lnrpc_Invoice__Output> + ): grpc.ClientUnaryCall + NewAddress( + argument: _lnrpc_NewAddressRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + NewAddress( + argument: _lnrpc_NewAddressRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + NewAddress( + argument: _lnrpc_NewAddressRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + NewAddress( + argument: _lnrpc_NewAddressRequest, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + newAddress( + argument: _lnrpc_NewAddressRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + newAddress( + argument: _lnrpc_NewAddressRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + newAddress( + argument: _lnrpc_NewAddressRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + newAddress( + argument: _lnrpc_NewAddressRequest, + callback: grpc.requestCallback<_lnrpc_NewAddressResponse__Output> + ): grpc.ClientUnaryCall + OpenChannel( + argument: _lnrpc_OpenChannelRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_OpenStatusUpdate__Output> + OpenChannel( + argument: _lnrpc_OpenChannelRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_OpenStatusUpdate__Output> + openChannel( + argument: _lnrpc_OpenChannelRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_OpenStatusUpdate__Output> + openChannel( + argument: _lnrpc_OpenChannelRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_OpenStatusUpdate__Output> + OpenChannelSync( + argument: _lnrpc_OpenChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + OpenChannelSync( + argument: _lnrpc_OpenChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + OpenChannelSync( + argument: _lnrpc_OpenChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + OpenChannelSync( + argument: _lnrpc_OpenChannelRequest, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + openChannelSync( + argument: _lnrpc_OpenChannelRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + openChannelSync( + argument: _lnrpc_OpenChannelRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + openChannelSync( + argument: _lnrpc_OpenChannelRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + openChannelSync( + argument: _lnrpc_OpenChannelRequest, + callback: grpc.requestCallback<_lnrpc_ChannelPoint__Output> + ): grpc.ClientUnaryCall + PendingChannels( + argument: _lnrpc_PendingChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + PendingChannels( + argument: _lnrpc_PendingChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + PendingChannels( + argument: _lnrpc_PendingChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + PendingChannels( + argument: _lnrpc_PendingChannelsRequest, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + pendingChannels( + argument: _lnrpc_PendingChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + pendingChannels( + argument: _lnrpc_PendingChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + pendingChannels( + argument: _lnrpc_PendingChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + pendingChannels( + argument: _lnrpc_PendingChannelsRequest, + callback: grpc.requestCallback<_lnrpc_PendingChannelsResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_QueryRoutesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_QueryRoutesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_QueryRoutesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_QueryRoutesRequest, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_QueryRoutesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_QueryRoutesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_QueryRoutesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_QueryRoutesRequest, + callback: grpc.requestCallback<_lnrpc_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + RegisterRPCMiddleware( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_RPCMiddlewareResponse, + _lnrpc_RPCMiddlewareRequest__Output + > + RegisterRPCMiddleware( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_RPCMiddlewareResponse, + _lnrpc_RPCMiddlewareRequest__Output + > + registerRpcMiddleware( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_RPCMiddlewareResponse, + _lnrpc_RPCMiddlewareRequest__Output + > + registerRpcMiddleware( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_RPCMiddlewareResponse, + _lnrpc_RPCMiddlewareRequest__Output + > + RestoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + RestoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + RestoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + RestoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + restoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + restoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + restoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + restoreChannelBackups( + argument: _lnrpc_RestoreChanBackupRequest, + callback: grpc.requestCallback<_lnrpc_RestoreBackupResponse__Output> + ): grpc.ClientUnaryCall + SendCoins( + argument: _lnrpc_SendCoinsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + SendCoins( + argument: _lnrpc_SendCoinsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + SendCoins( + argument: _lnrpc_SendCoinsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + SendCoins( + argument: _lnrpc_SendCoinsRequest, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + sendCoins( + argument: _lnrpc_SendCoinsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + sendCoins( + argument: _lnrpc_SendCoinsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + sendCoins( + argument: _lnrpc_SendCoinsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + sendCoins( + argument: _lnrpc_SendCoinsRequest, + callback: grpc.requestCallback<_lnrpc_SendCoinsResponse__Output> + ): grpc.ClientUnaryCall + SendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + SendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + SendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + SendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + sendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + sendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + sendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + sendCustomMessage( + argument: _lnrpc_SendCustomMessageRequest, + callback: grpc.requestCallback<_lnrpc_SendCustomMessageResponse__Output> + ): grpc.ClientUnaryCall + SendMany( + argument: _lnrpc_SendManyRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + SendMany( + argument: _lnrpc_SendManyRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + SendMany( + argument: _lnrpc_SendManyRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + SendMany( + argument: _lnrpc_SendManyRequest, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + sendMany( + argument: _lnrpc_SendManyRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + sendMany( + argument: _lnrpc_SendManyRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + sendMany( + argument: _lnrpc_SendManyRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + sendMany( + argument: _lnrpc_SendManyRequest, + callback: grpc.requestCallback<_lnrpc_SendManyResponse__Output> + ): grpc.ClientUnaryCall + SendPayment( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream<_lnrpc_SendRequest, _lnrpc_SendResponse__Output> + SendPayment( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream<_lnrpc_SendRequest, _lnrpc_SendResponse__Output> + sendPayment( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream<_lnrpc_SendRequest, _lnrpc_SendResponse__Output> + sendPayment( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream<_lnrpc_SendRequest, _lnrpc_SendResponse__Output> + SendPaymentSync( + argument: _lnrpc_SendRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_SendRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_SendRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_SendRequest, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_SendRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_SendRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_SendRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_SendRequest, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendToRoute( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_SendToRouteRequest, + _lnrpc_SendResponse__Output + > + SendToRoute( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_SendToRouteRequest, + _lnrpc_SendResponse__Output + > + sendToRoute( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_SendToRouteRequest, + _lnrpc_SendResponse__Output + > + sendToRoute( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _lnrpc_SendToRouteRequest, + _lnrpc_SendResponse__Output + > + SendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + sendToRouteSync( + argument: _lnrpc_SendToRouteRequest, + callback: grpc.requestCallback<_lnrpc_SendResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_SignMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_SignMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_SignMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_SignMessageRequest, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_SignMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_SignMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_SignMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_SignMessageRequest, + callback: grpc.requestCallback<_lnrpc_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + StopDaemon( + argument: _lnrpc_StopRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + StopDaemon( + argument: _lnrpc_StopRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + StopDaemon( + argument: _lnrpc_StopRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + StopDaemon( + argument: _lnrpc_StopRequest, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + stopDaemon( + argument: _lnrpc_StopRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + stopDaemon( + argument: _lnrpc_StopRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + stopDaemon( + argument: _lnrpc_StopRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + stopDaemon( + argument: _lnrpc_StopRequest, + callback: grpc.requestCallback<_lnrpc_StopResponse__Output> + ): grpc.ClientUnaryCall + SubscribeChannelBackups( + argument: _lnrpc_ChannelBackupSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChanBackupSnapshot__Output> + SubscribeChannelBackups( + argument: _lnrpc_ChannelBackupSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChanBackupSnapshot__Output> + subscribeChannelBackups( + argument: _lnrpc_ChannelBackupSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChanBackupSnapshot__Output> + subscribeChannelBackups( + argument: _lnrpc_ChannelBackupSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChanBackupSnapshot__Output> + SubscribeChannelEvents( + argument: _lnrpc_ChannelEventSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChannelEventUpdate__Output> + SubscribeChannelEvents( + argument: _lnrpc_ChannelEventSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChannelEventUpdate__Output> + subscribeChannelEvents( + argument: _lnrpc_ChannelEventSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChannelEventUpdate__Output> + subscribeChannelEvents( + argument: _lnrpc_ChannelEventSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_ChannelEventUpdate__Output> + SubscribeChannelGraph( + argument: _lnrpc_GraphTopologySubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_GraphTopologyUpdate__Output> + SubscribeChannelGraph( + argument: _lnrpc_GraphTopologySubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_GraphTopologyUpdate__Output> + subscribeChannelGraph( + argument: _lnrpc_GraphTopologySubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_GraphTopologyUpdate__Output> + subscribeChannelGraph( + argument: _lnrpc_GraphTopologySubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_GraphTopologyUpdate__Output> + SubscribeCustomMessages( + argument: _lnrpc_SubscribeCustomMessagesRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CustomMessage__Output> + SubscribeCustomMessages( + argument: _lnrpc_SubscribeCustomMessagesRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CustomMessage__Output> + subscribeCustomMessages( + argument: _lnrpc_SubscribeCustomMessagesRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CustomMessage__Output> + subscribeCustomMessages( + argument: _lnrpc_SubscribeCustomMessagesRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_CustomMessage__Output> + SubscribeInvoices( + argument: _lnrpc_InvoiceSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Invoice__Output> + SubscribeInvoices( + argument: _lnrpc_InvoiceSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Invoice__Output> + subscribeInvoices( + argument: _lnrpc_InvoiceSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Invoice__Output> + subscribeInvoices( + argument: _lnrpc_InvoiceSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Invoice__Output> + SubscribePeerEvents( + argument: _lnrpc_PeerEventSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_PeerEvent__Output> + SubscribePeerEvents( + argument: _lnrpc_PeerEventSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_PeerEvent__Output> + subscribePeerEvents( + argument: _lnrpc_PeerEventSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_PeerEvent__Output> + subscribePeerEvents( + argument: _lnrpc_PeerEventSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_PeerEvent__Output> + SubscribeTransactions( + argument: _lnrpc_GetTransactionsRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Transaction__Output> + SubscribeTransactions( + argument: _lnrpc_GetTransactionsRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Transaction__Output> + subscribeTransactions( + argument: _lnrpc_GetTransactionsRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Transaction__Output> + subscribeTransactions( + argument: _lnrpc_GetTransactionsRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Transaction__Output> + UpdateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + UpdateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + UpdateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + UpdateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + updateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + updateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + updateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + updateChannelPolicy( + argument: _lnrpc_PolicyUpdateRequest, + callback: grpc.requestCallback<_lnrpc_PolicyUpdateResponse__Output> + ): grpc.ClientUnaryCall + VerifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + VerifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + VerifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + VerifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + verifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + verifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + verifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + verifyChanBackup( + argument: _lnrpc_ChanBackupSnapshot, + callback: grpc.requestCallback<_lnrpc_VerifyChanBackupResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_VerifyMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_VerifyMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_VerifyMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_VerifyMessageRequest, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_VerifyMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_VerifyMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_VerifyMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_VerifyMessageRequest, + callback: grpc.requestCallback<_lnrpc_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + WalletBalance( + argument: _lnrpc_WalletBalanceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + WalletBalance( + argument: _lnrpc_WalletBalanceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + WalletBalance( + argument: _lnrpc_WalletBalanceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + WalletBalance( + argument: _lnrpc_WalletBalanceRequest, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + walletBalance( + argument: _lnrpc_WalletBalanceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + walletBalance( + argument: _lnrpc_WalletBalanceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + walletBalance( + argument: _lnrpc_WalletBalanceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall + walletBalance( + argument: _lnrpc_WalletBalanceRequest, + callback: grpc.requestCallback<_lnrpc_WalletBalanceResponse__Output> + ): grpc.ClientUnaryCall +} +export interface LightningHandlers extends grpc.UntypedServiceImplementation { + AbandonChannel: grpc.handleUnaryCall< + _lnrpc_AbandonChannelRequest__Output, + _lnrpc_AbandonChannelResponse + > + AddInvoice: grpc.handleUnaryCall< + _lnrpc_Invoice__Output, + _lnrpc_AddInvoiceResponse + > + BakeMacaroon: grpc.handleUnaryCall< + _lnrpc_BakeMacaroonRequest__Output, + _lnrpc_BakeMacaroonResponse + > + BatchOpenChannel: grpc.handleUnaryCall< + _lnrpc_BatchOpenChannelRequest__Output, + _lnrpc_BatchOpenChannelResponse + > + ChannelAcceptor: grpc.handleBidiStreamingCall< + _lnrpc_ChannelAcceptResponse__Output, + _lnrpc_ChannelAcceptRequest + > + ChannelBalance: grpc.handleUnaryCall< + _lnrpc_ChannelBalanceRequest__Output, + _lnrpc_ChannelBalanceResponse + > + CheckMacaroonPermissions: grpc.handleUnaryCall< + _lnrpc_CheckMacPermRequest__Output, + _lnrpc_CheckMacPermResponse + > + CloseChannel: grpc.handleServerStreamingCall< + _lnrpc_CloseChannelRequest__Output, + _lnrpc_CloseStatusUpdate + > + ClosedChannels: grpc.handleUnaryCall< + _lnrpc_ClosedChannelsRequest__Output, + _lnrpc_ClosedChannelsResponse + > + ConnectPeer: grpc.handleUnaryCall< + _lnrpc_ConnectPeerRequest__Output, + _lnrpc_ConnectPeerResponse + > + DebugLevel: grpc.handleUnaryCall< + _lnrpc_DebugLevelRequest__Output, + _lnrpc_DebugLevelResponse + > + DecodePayReq: grpc.handleUnaryCall<_lnrpc_PayReqString__Output, _lnrpc_PayReq> + DeleteAllPayments: grpc.handleUnaryCall< + _lnrpc_DeleteAllPaymentsRequest__Output, + _lnrpc_DeleteAllPaymentsResponse + > + DeleteMacaroonID: grpc.handleUnaryCall< + _lnrpc_DeleteMacaroonIDRequest__Output, + _lnrpc_DeleteMacaroonIDResponse + > + DeletePayment: grpc.handleUnaryCall< + _lnrpc_DeletePaymentRequest__Output, + _lnrpc_DeletePaymentResponse + > + DescribeGraph: grpc.handleUnaryCall< + _lnrpc_ChannelGraphRequest__Output, + _lnrpc_ChannelGraph + > + DisconnectPeer: grpc.handleUnaryCall< + _lnrpc_DisconnectPeerRequest__Output, + _lnrpc_DisconnectPeerResponse + > + EstimateFee: grpc.handleUnaryCall< + _lnrpc_EstimateFeeRequest__Output, + _lnrpc_EstimateFeeResponse + > + ExportAllChannelBackups: grpc.handleUnaryCall< + _lnrpc_ChanBackupExportRequest__Output, + _lnrpc_ChanBackupSnapshot + > + ExportChannelBackup: grpc.handleUnaryCall< + _lnrpc_ExportChannelBackupRequest__Output, + _lnrpc_ChannelBackup + > + FeeReport: grpc.handleUnaryCall< + _lnrpc_FeeReportRequest__Output, + _lnrpc_FeeReportResponse + > + ForwardingHistory: grpc.handleUnaryCall< + _lnrpc_ForwardingHistoryRequest__Output, + _lnrpc_ForwardingHistoryResponse + > + FundingStateStep: grpc.handleUnaryCall< + _lnrpc_FundingTransitionMsg__Output, + _lnrpc_FundingStateStepResp + > + GetChanInfo: grpc.handleUnaryCall< + _lnrpc_ChanInfoRequest__Output, + _lnrpc_ChannelEdge + > + GetInfo: grpc.handleUnaryCall< + _lnrpc_GetInfoRequest__Output, + _lnrpc_GetInfoResponse + > + GetNetworkInfo: grpc.handleUnaryCall< + _lnrpc_NetworkInfoRequest__Output, + _lnrpc_NetworkInfo + > + GetNodeInfo: grpc.handleUnaryCall< + _lnrpc_NodeInfoRequest__Output, + _lnrpc_NodeInfo + > + GetNodeMetrics: grpc.handleUnaryCall< + _lnrpc_NodeMetricsRequest__Output, + _lnrpc_NodeMetricsResponse + > + GetRecoveryInfo: grpc.handleUnaryCall< + _lnrpc_GetRecoveryInfoRequest__Output, + _lnrpc_GetRecoveryInfoResponse + > + GetTransactions: grpc.handleUnaryCall< + _lnrpc_GetTransactionsRequest__Output, + _lnrpc_TransactionDetails + > + ListAliases: grpc.handleUnaryCall< + _lnrpc_ListAliasesRequest__Output, + _lnrpc_ListAliasesResponse + > + ListChannels: grpc.handleUnaryCall< + _lnrpc_ListChannelsRequest__Output, + _lnrpc_ListChannelsResponse + > + ListInvoices: grpc.handleUnaryCall< + _lnrpc_ListInvoiceRequest__Output, + _lnrpc_ListInvoiceResponse + > + ListMacaroonIDs: grpc.handleUnaryCall< + _lnrpc_ListMacaroonIDsRequest__Output, + _lnrpc_ListMacaroonIDsResponse + > + ListPayments: grpc.handleUnaryCall< + _lnrpc_ListPaymentsRequest__Output, + _lnrpc_ListPaymentsResponse + > + ListPeers: grpc.handleUnaryCall< + _lnrpc_ListPeersRequest__Output, + _lnrpc_ListPeersResponse + > + ListPermissions: grpc.handleUnaryCall< + _lnrpc_ListPermissionsRequest__Output, + _lnrpc_ListPermissionsResponse + > + ListUnspent: grpc.handleUnaryCall< + _lnrpc_ListUnspentRequest__Output, + _lnrpc_ListUnspentResponse + > + LookupInvoice: grpc.handleUnaryCall< + _lnrpc_PaymentHash__Output, + _lnrpc_Invoice + > + NewAddress: grpc.handleUnaryCall< + _lnrpc_NewAddressRequest__Output, + _lnrpc_NewAddressResponse + > + OpenChannel: grpc.handleServerStreamingCall< + _lnrpc_OpenChannelRequest__Output, + _lnrpc_OpenStatusUpdate + > + OpenChannelSync: grpc.handleUnaryCall< + _lnrpc_OpenChannelRequest__Output, + _lnrpc_ChannelPoint + > + PendingChannels: grpc.handleUnaryCall< + _lnrpc_PendingChannelsRequest__Output, + _lnrpc_PendingChannelsResponse + > + QueryRoutes: grpc.handleUnaryCall< + _lnrpc_QueryRoutesRequest__Output, + _lnrpc_QueryRoutesResponse + > + RegisterRPCMiddleware: grpc.handleBidiStreamingCall< + _lnrpc_RPCMiddlewareResponse__Output, + _lnrpc_RPCMiddlewareRequest + > + RestoreChannelBackups: grpc.handleUnaryCall< + _lnrpc_RestoreChanBackupRequest__Output, + _lnrpc_RestoreBackupResponse + > + SendCoins: grpc.handleUnaryCall< + _lnrpc_SendCoinsRequest__Output, + _lnrpc_SendCoinsResponse + > + SendCustomMessage: grpc.handleUnaryCall< + _lnrpc_SendCustomMessageRequest__Output, + _lnrpc_SendCustomMessageResponse + > + SendMany: grpc.handleUnaryCall< + _lnrpc_SendManyRequest__Output, + _lnrpc_SendManyResponse + > + SendPayment: grpc.handleBidiStreamingCall< + _lnrpc_SendRequest__Output, + _lnrpc_SendResponse + > + SendPaymentSync: grpc.handleUnaryCall< + _lnrpc_SendRequest__Output, + _lnrpc_SendResponse + > + SendToRoute: grpc.handleBidiStreamingCall< + _lnrpc_SendToRouteRequest__Output, + _lnrpc_SendResponse + > + SendToRouteSync: grpc.handleUnaryCall< + _lnrpc_SendToRouteRequest__Output, + _lnrpc_SendResponse + > + SignMessage: grpc.handleUnaryCall< + _lnrpc_SignMessageRequest__Output, + _lnrpc_SignMessageResponse + > + StopDaemon: grpc.handleUnaryCall< + _lnrpc_StopRequest__Output, + _lnrpc_StopResponse + > + SubscribeChannelBackups: grpc.handleServerStreamingCall< + _lnrpc_ChannelBackupSubscription__Output, + _lnrpc_ChanBackupSnapshot + > + SubscribeChannelEvents: grpc.handleServerStreamingCall< + _lnrpc_ChannelEventSubscription__Output, + _lnrpc_ChannelEventUpdate + > + SubscribeChannelGraph: grpc.handleServerStreamingCall< + _lnrpc_GraphTopologySubscription__Output, + _lnrpc_GraphTopologyUpdate + > + SubscribeCustomMessages: grpc.handleServerStreamingCall< + _lnrpc_SubscribeCustomMessagesRequest__Output, + _lnrpc_CustomMessage + > + SubscribeInvoices: grpc.handleServerStreamingCall< + _lnrpc_InvoiceSubscription__Output, + _lnrpc_Invoice + > + SubscribePeerEvents: grpc.handleServerStreamingCall< + _lnrpc_PeerEventSubscription__Output, + _lnrpc_PeerEvent + > + SubscribeTransactions: grpc.handleServerStreamingCall< + _lnrpc_GetTransactionsRequest__Output, + _lnrpc_Transaction + > + UpdateChannelPolicy: grpc.handleUnaryCall< + _lnrpc_PolicyUpdateRequest__Output, + _lnrpc_PolicyUpdateResponse + > + VerifyChanBackup: grpc.handleUnaryCall< + _lnrpc_ChanBackupSnapshot__Output, + _lnrpc_VerifyChanBackupResponse + > + VerifyMessage: grpc.handleUnaryCall< + _lnrpc_VerifyMessageRequest__Output, + _lnrpc_VerifyMessageResponse + > + WalletBalance: grpc.handleUnaryCall< + _lnrpc_WalletBalanceRequest__Output, + _lnrpc_WalletBalanceResponse + > +} +export interface LightningDefinition extends grpc.ServiceDefinition { + AbandonChannel: MethodDefinition< + _lnrpc_AbandonChannelRequest, + _lnrpc_AbandonChannelResponse, + _lnrpc_AbandonChannelRequest__Output, + _lnrpc_AbandonChannelResponse__Output + > + AddInvoice: MethodDefinition< + _lnrpc_Invoice, + _lnrpc_AddInvoiceResponse, + _lnrpc_Invoice__Output, + _lnrpc_AddInvoiceResponse__Output + > + BakeMacaroon: MethodDefinition< + _lnrpc_BakeMacaroonRequest, + _lnrpc_BakeMacaroonResponse, + _lnrpc_BakeMacaroonRequest__Output, + _lnrpc_BakeMacaroonResponse__Output + > + BatchOpenChannel: MethodDefinition< + _lnrpc_BatchOpenChannelRequest, + _lnrpc_BatchOpenChannelResponse, + _lnrpc_BatchOpenChannelRequest__Output, + _lnrpc_BatchOpenChannelResponse__Output + > + ChannelAcceptor: MethodDefinition< + _lnrpc_ChannelAcceptResponse, + _lnrpc_ChannelAcceptRequest, + _lnrpc_ChannelAcceptResponse__Output, + _lnrpc_ChannelAcceptRequest__Output + > + ChannelBalance: MethodDefinition< + _lnrpc_ChannelBalanceRequest, + _lnrpc_ChannelBalanceResponse, + _lnrpc_ChannelBalanceRequest__Output, + _lnrpc_ChannelBalanceResponse__Output + > + CheckMacaroonPermissions: MethodDefinition< + _lnrpc_CheckMacPermRequest, + _lnrpc_CheckMacPermResponse, + _lnrpc_CheckMacPermRequest__Output, + _lnrpc_CheckMacPermResponse__Output + > + CloseChannel: MethodDefinition< + _lnrpc_CloseChannelRequest, + _lnrpc_CloseStatusUpdate, + _lnrpc_CloseChannelRequest__Output, + _lnrpc_CloseStatusUpdate__Output + > + ClosedChannels: MethodDefinition< + _lnrpc_ClosedChannelsRequest, + _lnrpc_ClosedChannelsResponse, + _lnrpc_ClosedChannelsRequest__Output, + _lnrpc_ClosedChannelsResponse__Output + > + ConnectPeer: MethodDefinition< + _lnrpc_ConnectPeerRequest, + _lnrpc_ConnectPeerResponse, + _lnrpc_ConnectPeerRequest__Output, + _lnrpc_ConnectPeerResponse__Output + > + DebugLevel: MethodDefinition< + _lnrpc_DebugLevelRequest, + _lnrpc_DebugLevelResponse, + _lnrpc_DebugLevelRequest__Output, + _lnrpc_DebugLevelResponse__Output + > + DecodePayReq: MethodDefinition< + _lnrpc_PayReqString, + _lnrpc_PayReq, + _lnrpc_PayReqString__Output, + _lnrpc_PayReq__Output + > + DeleteAllPayments: MethodDefinition< + _lnrpc_DeleteAllPaymentsRequest, + _lnrpc_DeleteAllPaymentsResponse, + _lnrpc_DeleteAllPaymentsRequest__Output, + _lnrpc_DeleteAllPaymentsResponse__Output + > + DeleteMacaroonID: MethodDefinition< + _lnrpc_DeleteMacaroonIDRequest, + _lnrpc_DeleteMacaroonIDResponse, + _lnrpc_DeleteMacaroonIDRequest__Output, + _lnrpc_DeleteMacaroonIDResponse__Output + > + DeletePayment: MethodDefinition< + _lnrpc_DeletePaymentRequest, + _lnrpc_DeletePaymentResponse, + _lnrpc_DeletePaymentRequest__Output, + _lnrpc_DeletePaymentResponse__Output + > + DescribeGraph: MethodDefinition< + _lnrpc_ChannelGraphRequest, + _lnrpc_ChannelGraph, + _lnrpc_ChannelGraphRequest__Output, + _lnrpc_ChannelGraph__Output + > + DisconnectPeer: MethodDefinition< + _lnrpc_DisconnectPeerRequest, + _lnrpc_DisconnectPeerResponse, + _lnrpc_DisconnectPeerRequest__Output, + _lnrpc_DisconnectPeerResponse__Output + > + EstimateFee: MethodDefinition< + _lnrpc_EstimateFeeRequest, + _lnrpc_EstimateFeeResponse, + _lnrpc_EstimateFeeRequest__Output, + _lnrpc_EstimateFeeResponse__Output + > + ExportAllChannelBackups: MethodDefinition< + _lnrpc_ChanBackupExportRequest, + _lnrpc_ChanBackupSnapshot, + _lnrpc_ChanBackupExportRequest__Output, + _lnrpc_ChanBackupSnapshot__Output + > + ExportChannelBackup: MethodDefinition< + _lnrpc_ExportChannelBackupRequest, + _lnrpc_ChannelBackup, + _lnrpc_ExportChannelBackupRequest__Output, + _lnrpc_ChannelBackup__Output + > + FeeReport: MethodDefinition< + _lnrpc_FeeReportRequest, + _lnrpc_FeeReportResponse, + _lnrpc_FeeReportRequest__Output, + _lnrpc_FeeReportResponse__Output + > + ForwardingHistory: MethodDefinition< + _lnrpc_ForwardingHistoryRequest, + _lnrpc_ForwardingHistoryResponse, + _lnrpc_ForwardingHistoryRequest__Output, + _lnrpc_ForwardingHistoryResponse__Output + > + FundingStateStep: MethodDefinition< + _lnrpc_FundingTransitionMsg, + _lnrpc_FundingStateStepResp, + _lnrpc_FundingTransitionMsg__Output, + _lnrpc_FundingStateStepResp__Output + > + GetChanInfo: MethodDefinition< + _lnrpc_ChanInfoRequest, + _lnrpc_ChannelEdge, + _lnrpc_ChanInfoRequest__Output, + _lnrpc_ChannelEdge__Output + > + GetInfo: MethodDefinition< + _lnrpc_GetInfoRequest, + _lnrpc_GetInfoResponse, + _lnrpc_GetInfoRequest__Output, + _lnrpc_GetInfoResponse__Output + > + GetNetworkInfo: MethodDefinition< + _lnrpc_NetworkInfoRequest, + _lnrpc_NetworkInfo, + _lnrpc_NetworkInfoRequest__Output, + _lnrpc_NetworkInfo__Output + > + GetNodeInfo: MethodDefinition< + _lnrpc_NodeInfoRequest, + _lnrpc_NodeInfo, + _lnrpc_NodeInfoRequest__Output, + _lnrpc_NodeInfo__Output + > + GetNodeMetrics: MethodDefinition< + _lnrpc_NodeMetricsRequest, + _lnrpc_NodeMetricsResponse, + _lnrpc_NodeMetricsRequest__Output, + _lnrpc_NodeMetricsResponse__Output + > + GetRecoveryInfo: MethodDefinition< + _lnrpc_GetRecoveryInfoRequest, + _lnrpc_GetRecoveryInfoResponse, + _lnrpc_GetRecoveryInfoRequest__Output, + _lnrpc_GetRecoveryInfoResponse__Output + > + GetTransactions: MethodDefinition< + _lnrpc_GetTransactionsRequest, + _lnrpc_TransactionDetails, + _lnrpc_GetTransactionsRequest__Output, + _lnrpc_TransactionDetails__Output + > + ListAliases: MethodDefinition< + _lnrpc_ListAliasesRequest, + _lnrpc_ListAliasesResponse, + _lnrpc_ListAliasesRequest__Output, + _lnrpc_ListAliasesResponse__Output + > + ListChannels: MethodDefinition< + _lnrpc_ListChannelsRequest, + _lnrpc_ListChannelsResponse, + _lnrpc_ListChannelsRequest__Output, + _lnrpc_ListChannelsResponse__Output + > + ListInvoices: MethodDefinition< + _lnrpc_ListInvoiceRequest, + _lnrpc_ListInvoiceResponse, + _lnrpc_ListInvoiceRequest__Output, + _lnrpc_ListInvoiceResponse__Output + > + ListMacaroonIDs: MethodDefinition< + _lnrpc_ListMacaroonIDsRequest, + _lnrpc_ListMacaroonIDsResponse, + _lnrpc_ListMacaroonIDsRequest__Output, + _lnrpc_ListMacaroonIDsResponse__Output + > + ListPayments: MethodDefinition< + _lnrpc_ListPaymentsRequest, + _lnrpc_ListPaymentsResponse, + _lnrpc_ListPaymentsRequest__Output, + _lnrpc_ListPaymentsResponse__Output + > + ListPeers: MethodDefinition< + _lnrpc_ListPeersRequest, + _lnrpc_ListPeersResponse, + _lnrpc_ListPeersRequest__Output, + _lnrpc_ListPeersResponse__Output + > + ListPermissions: MethodDefinition< + _lnrpc_ListPermissionsRequest, + _lnrpc_ListPermissionsResponse, + _lnrpc_ListPermissionsRequest__Output, + _lnrpc_ListPermissionsResponse__Output + > + ListUnspent: MethodDefinition< + _lnrpc_ListUnspentRequest, + _lnrpc_ListUnspentResponse, + _lnrpc_ListUnspentRequest__Output, + _lnrpc_ListUnspentResponse__Output + > + LookupInvoice: MethodDefinition< + _lnrpc_PaymentHash, + _lnrpc_Invoice, + _lnrpc_PaymentHash__Output, + _lnrpc_Invoice__Output + > + NewAddress: MethodDefinition< + _lnrpc_NewAddressRequest, + _lnrpc_NewAddressResponse, + _lnrpc_NewAddressRequest__Output, + _lnrpc_NewAddressResponse__Output + > + OpenChannel: MethodDefinition< + _lnrpc_OpenChannelRequest, + _lnrpc_OpenStatusUpdate, + _lnrpc_OpenChannelRequest__Output, + _lnrpc_OpenStatusUpdate__Output + > + OpenChannelSync: MethodDefinition< + _lnrpc_OpenChannelRequest, + _lnrpc_ChannelPoint, + _lnrpc_OpenChannelRequest__Output, + _lnrpc_ChannelPoint__Output + > + PendingChannels: MethodDefinition< + _lnrpc_PendingChannelsRequest, + _lnrpc_PendingChannelsResponse, + _lnrpc_PendingChannelsRequest__Output, + _lnrpc_PendingChannelsResponse__Output + > + QueryRoutes: MethodDefinition< + _lnrpc_QueryRoutesRequest, + _lnrpc_QueryRoutesResponse, + _lnrpc_QueryRoutesRequest__Output, + _lnrpc_QueryRoutesResponse__Output + > + RegisterRPCMiddleware: MethodDefinition< + _lnrpc_RPCMiddlewareResponse, + _lnrpc_RPCMiddlewareRequest, + _lnrpc_RPCMiddlewareResponse__Output, + _lnrpc_RPCMiddlewareRequest__Output + > + RestoreChannelBackups: MethodDefinition< + _lnrpc_RestoreChanBackupRequest, + _lnrpc_RestoreBackupResponse, + _lnrpc_RestoreChanBackupRequest__Output, + _lnrpc_RestoreBackupResponse__Output + > + SendCoins: MethodDefinition< + _lnrpc_SendCoinsRequest, + _lnrpc_SendCoinsResponse, + _lnrpc_SendCoinsRequest__Output, + _lnrpc_SendCoinsResponse__Output + > + SendCustomMessage: MethodDefinition< + _lnrpc_SendCustomMessageRequest, + _lnrpc_SendCustomMessageResponse, + _lnrpc_SendCustomMessageRequest__Output, + _lnrpc_SendCustomMessageResponse__Output + > + SendMany: MethodDefinition< + _lnrpc_SendManyRequest, + _lnrpc_SendManyResponse, + _lnrpc_SendManyRequest__Output, + _lnrpc_SendManyResponse__Output + > + SendPayment: MethodDefinition< + _lnrpc_SendRequest, + _lnrpc_SendResponse, + _lnrpc_SendRequest__Output, + _lnrpc_SendResponse__Output + > + SendPaymentSync: MethodDefinition< + _lnrpc_SendRequest, + _lnrpc_SendResponse, + _lnrpc_SendRequest__Output, + _lnrpc_SendResponse__Output + > + SendToRoute: MethodDefinition< + _lnrpc_SendToRouteRequest, + _lnrpc_SendResponse, + _lnrpc_SendToRouteRequest__Output, + _lnrpc_SendResponse__Output + > + SendToRouteSync: MethodDefinition< + _lnrpc_SendToRouteRequest, + _lnrpc_SendResponse, + _lnrpc_SendToRouteRequest__Output, + _lnrpc_SendResponse__Output + > + SignMessage: MethodDefinition< + _lnrpc_SignMessageRequest, + _lnrpc_SignMessageResponse, + _lnrpc_SignMessageRequest__Output, + _lnrpc_SignMessageResponse__Output + > + StopDaemon: MethodDefinition< + _lnrpc_StopRequest, + _lnrpc_StopResponse, + _lnrpc_StopRequest__Output, + _lnrpc_StopResponse__Output + > + SubscribeChannelBackups: MethodDefinition< + _lnrpc_ChannelBackupSubscription, + _lnrpc_ChanBackupSnapshot, + _lnrpc_ChannelBackupSubscription__Output, + _lnrpc_ChanBackupSnapshot__Output + > + SubscribeChannelEvents: MethodDefinition< + _lnrpc_ChannelEventSubscription, + _lnrpc_ChannelEventUpdate, + _lnrpc_ChannelEventSubscription__Output, + _lnrpc_ChannelEventUpdate__Output + > + SubscribeChannelGraph: MethodDefinition< + _lnrpc_GraphTopologySubscription, + _lnrpc_GraphTopologyUpdate, + _lnrpc_GraphTopologySubscription__Output, + _lnrpc_GraphTopologyUpdate__Output + > + SubscribeCustomMessages: MethodDefinition< + _lnrpc_SubscribeCustomMessagesRequest, + _lnrpc_CustomMessage, + _lnrpc_SubscribeCustomMessagesRequest__Output, + _lnrpc_CustomMessage__Output + > + SubscribeInvoices: MethodDefinition< + _lnrpc_InvoiceSubscription, + _lnrpc_Invoice, + _lnrpc_InvoiceSubscription__Output, + _lnrpc_Invoice__Output + > + SubscribePeerEvents: MethodDefinition< + _lnrpc_PeerEventSubscription, + _lnrpc_PeerEvent, + _lnrpc_PeerEventSubscription__Output, + _lnrpc_PeerEvent__Output + > + SubscribeTransactions: MethodDefinition< + _lnrpc_GetTransactionsRequest, + _lnrpc_Transaction, + _lnrpc_GetTransactionsRequest__Output, + _lnrpc_Transaction__Output + > + UpdateChannelPolicy: MethodDefinition< + _lnrpc_PolicyUpdateRequest, + _lnrpc_PolicyUpdateResponse, + _lnrpc_PolicyUpdateRequest__Output, + _lnrpc_PolicyUpdateResponse__Output + > + VerifyChanBackup: MethodDefinition< + _lnrpc_ChanBackupSnapshot, + _lnrpc_VerifyChanBackupResponse, + _lnrpc_ChanBackupSnapshot__Output, + _lnrpc_VerifyChanBackupResponse__Output + > + VerifyMessage: MethodDefinition< + _lnrpc_VerifyMessageRequest, + _lnrpc_VerifyMessageResponse, + _lnrpc_VerifyMessageRequest__Output, + _lnrpc_VerifyMessageResponse__Output + > + WalletBalance: MethodDefinition< + _lnrpc_WalletBalanceRequest, + _lnrpc_WalletBalanceResponse, + _lnrpc_WalletBalanceRequest__Output, + _lnrpc_WalletBalanceResponse__Output + > +} diff --git a/src/grpc/types/lnrpc/LightningAddress.d.ts b/src/grpc/types/lnrpc/LightningAddress.d.ts new file mode 100644 index 000000000..eef0d6ffd --- /dev/null +++ b/src/grpc/types/lnrpc/LightningAddress.d.ts @@ -0,0 +1,8 @@ +export interface LightningAddress { + pubkey?: string + host?: string +} +export interface LightningAddress__Output { + pubkey: string + host: string +} diff --git a/src/grpc/types/lnrpc/LightningNode.d.ts b/src/grpc/types/lnrpc/LightningNode.d.ts new file mode 100644 index 000000000..f075bdbd3 --- /dev/null +++ b/src/grpc/types/lnrpc/LightningNode.d.ts @@ -0,0 +1,28 @@ +import type { + NodeAddress as _lnrpc_NodeAddress, + NodeAddress__Output as _lnrpc_NodeAddress__Output, +} from '../lnrpc/NodeAddress' +import type { + Feature as _lnrpc_Feature, + Feature__Output as _lnrpc_Feature__Output, +} from '../lnrpc/Feature' +export interface LightningNode { + last_update?: number + pub_key?: string + alias?: string + addresses?: _lnrpc_NodeAddress[] + color?: string + features?: { + [key: number]: _lnrpc_Feature + } +} +export interface LightningNode__Output { + last_update: number + pub_key: string + alias: string + addresses: _lnrpc_NodeAddress__Output[] + color: string + features: { + [key: number]: _lnrpc_Feature__Output + } +} diff --git a/src/grpc/types/lnrpc/ListAliasesRequest.d.ts b/src/grpc/types/lnrpc/ListAliasesRequest.d.ts new file mode 100644 index 000000000..18a74a65a --- /dev/null +++ b/src/grpc/types/lnrpc/ListAliasesRequest.d.ts @@ -0,0 +1,2 @@ +export interface ListAliasesRequest {} +export interface ListAliasesRequest__Output {} diff --git a/src/grpc/types/lnrpc/ListAliasesResponse.d.ts b/src/grpc/types/lnrpc/ListAliasesResponse.d.ts new file mode 100644 index 000000000..6795daa1a --- /dev/null +++ b/src/grpc/types/lnrpc/ListAliasesResponse.d.ts @@ -0,0 +1,10 @@ +import type { + AliasMap as _lnrpc_AliasMap, + AliasMap__Output as _lnrpc_AliasMap__Output, +} from '../lnrpc/AliasMap' +export interface ListAliasesResponse { + alias_maps?: _lnrpc_AliasMap[] +} +export interface ListAliasesResponse__Output { + alias_maps: _lnrpc_AliasMap__Output[] +} diff --git a/src/grpc/types/lnrpc/ListChannelsRequest.d.ts b/src/grpc/types/lnrpc/ListChannelsRequest.d.ts new file mode 100644 index 000000000..17aa6139c --- /dev/null +++ b/src/grpc/types/lnrpc/ListChannelsRequest.d.ts @@ -0,0 +1,15 @@ +/// +export interface ListChannelsRequest { + active_only?: boolean + inactive_only?: boolean + public_only?: boolean + private_only?: boolean + peer?: Buffer | Uint8Array | string +} +export interface ListChannelsRequest__Output { + active_only: boolean + inactive_only: boolean + public_only: boolean + private_only: boolean + peer: Buffer +} diff --git a/src/grpc/types/lnrpc/ListChannelsResponse.d.ts b/src/grpc/types/lnrpc/ListChannelsResponse.d.ts new file mode 100644 index 000000000..16d72246f --- /dev/null +++ b/src/grpc/types/lnrpc/ListChannelsResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Channel as _lnrpc_Channel, + Channel__Output as _lnrpc_Channel__Output, +} from '../lnrpc/Channel' +export interface ListChannelsResponse { + channels?: _lnrpc_Channel[] +} +export interface ListChannelsResponse__Output { + channels: _lnrpc_Channel__Output[] +} diff --git a/src/grpc/types/lnrpc/ListInvoiceRequest.d.ts b/src/grpc/types/lnrpc/ListInvoiceRequest.d.ts new file mode 100644 index 000000000..0b7bd0b71 --- /dev/null +++ b/src/grpc/types/lnrpc/ListInvoiceRequest.d.ts @@ -0,0 +1,14 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ListInvoiceRequest { + pending_only?: boolean + index_offset?: number | string | Long + num_max_invoices?: number | string | Long + reversed?: boolean +} +export interface ListInvoiceRequest__Output { + pending_only: boolean + index_offset: string + num_max_invoices: string + reversed: boolean +} diff --git a/src/grpc/types/lnrpc/ListInvoiceResponse.d.ts b/src/grpc/types/lnrpc/ListInvoiceResponse.d.ts new file mode 100644 index 000000000..d7c113be6 --- /dev/null +++ b/src/grpc/types/lnrpc/ListInvoiceResponse.d.ts @@ -0,0 +1,16 @@ +/// +import type { + Invoice as _lnrpc_Invoice, + Invoice__Output as _lnrpc_Invoice__Output, +} from '../lnrpc/Invoice' +import type { Long } from '@grpc/proto-loader' +export interface ListInvoiceResponse { + invoices?: _lnrpc_Invoice[] + last_index_offset?: number | string | Long + first_index_offset?: number | string | Long +} +export interface ListInvoiceResponse__Output { + invoices: _lnrpc_Invoice__Output[] + last_index_offset: string + first_index_offset: string +} diff --git a/src/grpc/types/lnrpc/ListMacaroonIDsRequest.d.ts b/src/grpc/types/lnrpc/ListMacaroonIDsRequest.d.ts new file mode 100644 index 000000000..44d7fe2a9 --- /dev/null +++ b/src/grpc/types/lnrpc/ListMacaroonIDsRequest.d.ts @@ -0,0 +1,2 @@ +export interface ListMacaroonIDsRequest {} +export interface ListMacaroonIDsRequest__Output {} diff --git a/src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts b/src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts new file mode 100644 index 000000000..b27332ee5 --- /dev/null +++ b/src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ListMacaroonIDsResponse { + root_key_ids?: (number | string | Long)[] +} +export interface ListMacaroonIDsResponse__Output { + root_key_ids: string[] +} diff --git a/src/grpc/types/lnrpc/ListPaymentsRequest.d.ts b/src/grpc/types/lnrpc/ListPaymentsRequest.d.ts new file mode 100644 index 000000000..757e6c156 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPaymentsRequest.d.ts @@ -0,0 +1,16 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ListPaymentsRequest { + include_incomplete?: boolean + index_offset?: number | string | Long + max_payments?: number | string | Long + reversed?: boolean + count_total_payments?: boolean +} +export interface ListPaymentsRequest__Output { + include_incomplete: boolean + index_offset: string + max_payments: string + reversed: boolean + count_total_payments: boolean +} diff --git a/src/grpc/types/lnrpc/ListPaymentsResponse.d.ts b/src/grpc/types/lnrpc/ListPaymentsResponse.d.ts new file mode 100644 index 000000000..d8048fc54 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPaymentsResponse.d.ts @@ -0,0 +1,18 @@ +/// +import type { + Payment as _lnrpc_Payment, + Payment__Output as _lnrpc_Payment__Output, +} from '../lnrpc/Payment' +import type { Long } from '@grpc/proto-loader' +export interface ListPaymentsResponse { + payments?: _lnrpc_Payment[] + first_index_offset?: number | string | Long + last_index_offset?: number | string | Long + total_num_payments?: number | string | Long +} +export interface ListPaymentsResponse__Output { + payments: _lnrpc_Payment__Output[] + first_index_offset: string + last_index_offset: string + total_num_payments: string +} diff --git a/src/grpc/types/lnrpc/ListPeersRequest.d.ts b/src/grpc/types/lnrpc/ListPeersRequest.d.ts new file mode 100644 index 000000000..0b6c41270 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPeersRequest.d.ts @@ -0,0 +1,6 @@ +export interface ListPeersRequest { + latest_error?: boolean +} +export interface ListPeersRequest__Output { + latest_error: boolean +} diff --git a/src/grpc/types/lnrpc/ListPeersResponse.d.ts b/src/grpc/types/lnrpc/ListPeersResponse.d.ts new file mode 100644 index 000000000..18f5a551f --- /dev/null +++ b/src/grpc/types/lnrpc/ListPeersResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Peer as _lnrpc_Peer, + Peer__Output as _lnrpc_Peer__Output, +} from '../lnrpc/Peer' +export interface ListPeersResponse { + peers?: _lnrpc_Peer[] +} +export interface ListPeersResponse__Output { + peers: _lnrpc_Peer__Output[] +} diff --git a/src/grpc/types/lnrpc/ListPermissionsRequest.d.ts b/src/grpc/types/lnrpc/ListPermissionsRequest.d.ts new file mode 100644 index 000000000..594bc422a --- /dev/null +++ b/src/grpc/types/lnrpc/ListPermissionsRequest.d.ts @@ -0,0 +1,2 @@ +export interface ListPermissionsRequest {} +export interface ListPermissionsRequest__Output {} diff --git a/src/grpc/types/lnrpc/ListPermissionsResponse.d.ts b/src/grpc/types/lnrpc/ListPermissionsResponse.d.ts new file mode 100644 index 000000000..16416f873 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPermissionsResponse.d.ts @@ -0,0 +1,14 @@ +import type { + MacaroonPermissionList as _lnrpc_MacaroonPermissionList, + MacaroonPermissionList__Output as _lnrpc_MacaroonPermissionList__Output, +} from '../lnrpc/MacaroonPermissionList' +export interface ListPermissionsResponse { + method_permissions?: { + [key: string]: _lnrpc_MacaroonPermissionList + } +} +export interface ListPermissionsResponse__Output { + method_permissions: { + [key: string]: _lnrpc_MacaroonPermissionList__Output + } +} diff --git a/src/grpc/types/lnrpc/ListUnspentRequest.d.ts b/src/grpc/types/lnrpc/ListUnspentRequest.d.ts new file mode 100644 index 000000000..66d1d018a --- /dev/null +++ b/src/grpc/types/lnrpc/ListUnspentRequest.d.ts @@ -0,0 +1,10 @@ +export interface ListUnspentRequest { + min_confs?: number + max_confs?: number + account?: string +} +export interface ListUnspentRequest__Output { + min_confs: number + max_confs: number + account: string +} diff --git a/src/grpc/types/lnrpc/ListUnspentResponse.d.ts b/src/grpc/types/lnrpc/ListUnspentResponse.d.ts new file mode 100644 index 000000000..1c8d7d1d6 --- /dev/null +++ b/src/grpc/types/lnrpc/ListUnspentResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Utxo as _lnrpc_Utxo, + Utxo__Output as _lnrpc_Utxo__Output, +} from '../lnrpc/Utxo' +export interface ListUnspentResponse { + utxos?: _lnrpc_Utxo[] +} +export interface ListUnspentResponse__Output { + utxos: _lnrpc_Utxo__Output[] +} diff --git a/src/grpc/types/lnrpc/MPPRecord.d.ts b/src/grpc/types/lnrpc/MPPRecord.d.ts new file mode 100644 index 000000000..ce16770f8 --- /dev/null +++ b/src/grpc/types/lnrpc/MPPRecord.d.ts @@ -0,0 +1,11 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface MPPRecord { + total_amt_msat?: number | string | Long + payment_addr?: Buffer | Uint8Array | string +} +export interface MPPRecord__Output { + total_amt_msat: string + payment_addr: Buffer +} diff --git a/src/grpc/types/lnrpc/MacaroonId.d.ts b/src/grpc/types/lnrpc/MacaroonId.d.ts new file mode 100644 index 000000000..210668fbb --- /dev/null +++ b/src/grpc/types/lnrpc/MacaroonId.d.ts @@ -0,0 +1,15 @@ +/// +import type { + Op as _lnrpc_Op, + Op__Output as _lnrpc_Op__Output, +} from '../lnrpc/Op' +export interface MacaroonId { + nonce?: Buffer | Uint8Array | string + storageId?: Buffer | Uint8Array | string + ops?: _lnrpc_Op[] +} +export interface MacaroonId__Output { + nonce: Buffer + storageId: Buffer + ops: _lnrpc_Op__Output[] +} diff --git a/src/grpc/types/lnrpc/MacaroonPermission.d.ts b/src/grpc/types/lnrpc/MacaroonPermission.d.ts new file mode 100644 index 000000000..5c7a5ec43 --- /dev/null +++ b/src/grpc/types/lnrpc/MacaroonPermission.d.ts @@ -0,0 +1,8 @@ +export interface MacaroonPermission { + entity?: string + action?: string +} +export interface MacaroonPermission__Output { + entity: string + action: string +} diff --git a/src/grpc/types/lnrpc/MacaroonPermissionList.d.ts b/src/grpc/types/lnrpc/MacaroonPermissionList.d.ts new file mode 100644 index 000000000..4409ea664 --- /dev/null +++ b/src/grpc/types/lnrpc/MacaroonPermissionList.d.ts @@ -0,0 +1,10 @@ +import type { + MacaroonPermission as _lnrpc_MacaroonPermission, + MacaroonPermission__Output as _lnrpc_MacaroonPermission__Output, +} from '../lnrpc/MacaroonPermission' +export interface MacaroonPermissionList { + permissions?: _lnrpc_MacaroonPermission[] +} +export interface MacaroonPermissionList__Output { + permissions: _lnrpc_MacaroonPermission__Output[] +} diff --git a/src/grpc/types/lnrpc/MiddlewareRegistration.d.ts b/src/grpc/types/lnrpc/MiddlewareRegistration.d.ts new file mode 100644 index 000000000..ab4c869cf --- /dev/null +++ b/src/grpc/types/lnrpc/MiddlewareRegistration.d.ts @@ -0,0 +1,10 @@ +export interface MiddlewareRegistration { + middleware_name?: string + custom_macaroon_caveat_name?: string + read_only_mode?: boolean +} +export interface MiddlewareRegistration__Output { + middleware_name: string + custom_macaroon_caveat_name: string + read_only_mode: boolean +} diff --git a/src/grpc/types/lnrpc/MultiChanBackup.d.ts b/src/grpc/types/lnrpc/MultiChanBackup.d.ts new file mode 100644 index 000000000..5c040e1e8 --- /dev/null +++ b/src/grpc/types/lnrpc/MultiChanBackup.d.ts @@ -0,0 +1,13 @@ +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +export interface MultiChanBackup { + chan_points?: _lnrpc_ChannelPoint[] + multi_chan_backup?: Buffer | Uint8Array | string +} +export interface MultiChanBackup__Output { + chan_points: _lnrpc_ChannelPoint__Output[] + multi_chan_backup: Buffer +} diff --git a/src/grpc/types/lnrpc/NetworkInfo.d.ts b/src/grpc/types/lnrpc/NetworkInfo.d.ts new file mode 100644 index 000000000..8375ff4b4 --- /dev/null +++ b/src/grpc/types/lnrpc/NetworkInfo.d.ts @@ -0,0 +1,28 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface NetworkInfo { + graph_diameter?: number + avg_out_degree?: number | string + max_out_degree?: number + num_nodes?: number + num_channels?: number + total_network_capacity?: number | string | Long + avg_channel_size?: number | string + min_channel_size?: number | string | Long + max_channel_size?: number | string | Long + median_channel_size_sat?: number | string | Long + num_zombie_chans?: number | string | Long +} +export interface NetworkInfo__Output { + graph_diameter: number + avg_out_degree: number + max_out_degree: number + num_nodes: number + num_channels: number + total_network_capacity: string + avg_channel_size: number + min_channel_size: string + max_channel_size: string + median_channel_size_sat: string + num_zombie_chans: string +} diff --git a/src/grpc/types/lnrpc/NetworkInfoRequest.d.ts b/src/grpc/types/lnrpc/NetworkInfoRequest.d.ts new file mode 100644 index 000000000..84203cad0 --- /dev/null +++ b/src/grpc/types/lnrpc/NetworkInfoRequest.d.ts @@ -0,0 +1,2 @@ +export interface NetworkInfoRequest {} +export interface NetworkInfoRequest__Output {} diff --git a/src/grpc/types/lnrpc/NewAddressRequest.d.ts b/src/grpc/types/lnrpc/NewAddressRequest.d.ts new file mode 100644 index 000000000..ec1ab988a --- /dev/null +++ b/src/grpc/types/lnrpc/NewAddressRequest.d.ts @@ -0,0 +1,9 @@ +import type { AddressType as _lnrpc_AddressType } from '../lnrpc/AddressType' +export interface NewAddressRequest { + type?: _lnrpc_AddressType | keyof typeof _lnrpc_AddressType + account?: string +} +export interface NewAddressRequest__Output { + type: keyof typeof _lnrpc_AddressType + account: string +} diff --git a/src/grpc/types/lnrpc/NewAddressResponse.d.ts b/src/grpc/types/lnrpc/NewAddressResponse.d.ts new file mode 100644 index 000000000..f01f0958a --- /dev/null +++ b/src/grpc/types/lnrpc/NewAddressResponse.d.ts @@ -0,0 +1,6 @@ +export interface NewAddressResponse { + address?: string +} +export interface NewAddressResponse__Output { + address: string +} diff --git a/src/grpc/types/lnrpc/NodeAddress.d.ts b/src/grpc/types/lnrpc/NodeAddress.d.ts new file mode 100644 index 000000000..e1dabf1ab --- /dev/null +++ b/src/grpc/types/lnrpc/NodeAddress.d.ts @@ -0,0 +1,8 @@ +export interface NodeAddress { + network?: string + addr?: string +} +export interface NodeAddress__Output { + network: string + addr: string +} diff --git a/src/grpc/types/lnrpc/NodeInfo.d.ts b/src/grpc/types/lnrpc/NodeInfo.d.ts new file mode 100644 index 000000000..0b034842c --- /dev/null +++ b/src/grpc/types/lnrpc/NodeInfo.d.ts @@ -0,0 +1,22 @@ +/// +import type { + LightningNode as _lnrpc_LightningNode, + LightningNode__Output as _lnrpc_LightningNode__Output, +} from '../lnrpc/LightningNode' +import type { + ChannelEdge as _lnrpc_ChannelEdge, + ChannelEdge__Output as _lnrpc_ChannelEdge__Output, +} from '../lnrpc/ChannelEdge' +import type { Long } from '@grpc/proto-loader' +export interface NodeInfo { + node?: _lnrpc_LightningNode | null + num_channels?: number + total_capacity?: number | string | Long + channels?: _lnrpc_ChannelEdge[] +} +export interface NodeInfo__Output { + node: _lnrpc_LightningNode__Output | null + num_channels: number + total_capacity: string + channels: _lnrpc_ChannelEdge__Output[] +} diff --git a/src/grpc/types/lnrpc/NodeInfoRequest.d.ts b/src/grpc/types/lnrpc/NodeInfoRequest.d.ts new file mode 100644 index 000000000..162b77d32 --- /dev/null +++ b/src/grpc/types/lnrpc/NodeInfoRequest.d.ts @@ -0,0 +1,8 @@ +export interface NodeInfoRequest { + pub_key?: string + include_channels?: boolean +} +export interface NodeInfoRequest__Output { + pub_key: string + include_channels: boolean +} diff --git a/src/grpc/types/lnrpc/NodeMetricType.d.ts b/src/grpc/types/lnrpc/NodeMetricType.d.ts new file mode 100644 index 000000000..1cabc9fb5 --- /dev/null +++ b/src/grpc/types/lnrpc/NodeMetricType.d.ts @@ -0,0 +1,4 @@ +export declare enum NodeMetricType { + UNKNOWN = 0, + BETWEENNESS_CENTRALITY = 1, +} diff --git a/src/grpc/types/lnrpc/NodeMetricsRequest.d.ts b/src/grpc/types/lnrpc/NodeMetricsRequest.d.ts new file mode 100644 index 000000000..acb1d356c --- /dev/null +++ b/src/grpc/types/lnrpc/NodeMetricsRequest.d.ts @@ -0,0 +1,7 @@ +import type { NodeMetricType as _lnrpc_NodeMetricType } from '../lnrpc/NodeMetricType' +export interface NodeMetricsRequest { + types?: (_lnrpc_NodeMetricType | keyof typeof _lnrpc_NodeMetricType)[] +} +export interface NodeMetricsRequest__Output { + types: (keyof typeof _lnrpc_NodeMetricType)[] +} diff --git a/src/grpc/types/lnrpc/NodeMetricsResponse.d.ts b/src/grpc/types/lnrpc/NodeMetricsResponse.d.ts new file mode 100644 index 000000000..fcf7653aa --- /dev/null +++ b/src/grpc/types/lnrpc/NodeMetricsResponse.d.ts @@ -0,0 +1,14 @@ +import type { + FloatMetric as _lnrpc_FloatMetric, + FloatMetric__Output as _lnrpc_FloatMetric__Output, +} from '../lnrpc/FloatMetric' +export interface NodeMetricsResponse { + betweenness_centrality?: { + [key: string]: _lnrpc_FloatMetric + } +} +export interface NodeMetricsResponse__Output { + betweenness_centrality: { + [key: string]: _lnrpc_FloatMetric__Output + } +} diff --git a/src/grpc/types/lnrpc/NodePair.d.ts b/src/grpc/types/lnrpc/NodePair.d.ts new file mode 100644 index 000000000..35fe01994 --- /dev/null +++ b/src/grpc/types/lnrpc/NodePair.d.ts @@ -0,0 +1,9 @@ +/// +export interface NodePair { + from?: Buffer | Uint8Array | string + to?: Buffer | Uint8Array | string +} +export interface NodePair__Output { + from: Buffer + to: Buffer +} diff --git a/src/grpc/types/lnrpc/NodeUpdate.d.ts b/src/grpc/types/lnrpc/NodeUpdate.d.ts new file mode 100644 index 000000000..c50eea49d --- /dev/null +++ b/src/grpc/types/lnrpc/NodeUpdate.d.ts @@ -0,0 +1,31 @@ +/// +import type { + Feature as _lnrpc_Feature, + Feature__Output as _lnrpc_Feature__Output, +} from '../lnrpc/Feature' +import type { + NodeAddress as _lnrpc_NodeAddress, + NodeAddress__Output as _lnrpc_NodeAddress__Output, +} from '../lnrpc/NodeAddress' +export interface NodeUpdate { + addresses?: string[] + identity_key?: string + global_features?: Buffer | Uint8Array | string + alias?: string + color?: string + features?: { + [key: number]: _lnrpc_Feature + } + node_addresses?: _lnrpc_NodeAddress[] +} +export interface NodeUpdate__Output { + addresses: string[] + identity_key: string + global_features: Buffer + alias: string + color: string + features: { + [key: number]: _lnrpc_Feature__Output + } + node_addresses: _lnrpc_NodeAddress__Output[] +} diff --git a/src/grpc/types/lnrpc/Op.d.ts b/src/grpc/types/lnrpc/Op.d.ts new file mode 100644 index 000000000..c48de222b --- /dev/null +++ b/src/grpc/types/lnrpc/Op.d.ts @@ -0,0 +1,8 @@ +export interface Op { + entity?: string + actions?: string[] +} +export interface Op__Output { + entity: string + actions: string[] +} diff --git a/src/grpc/types/lnrpc/OpenChannelRequest.d.ts b/src/grpc/types/lnrpc/OpenChannelRequest.d.ts new file mode 100644 index 000000000..17740036b --- /dev/null +++ b/src/grpc/types/lnrpc/OpenChannelRequest.d.ts @@ -0,0 +1,52 @@ +/// +/// +import type { + FundingShim as _lnrpc_FundingShim, + FundingShim__Output as _lnrpc_FundingShim__Output, +} from '../lnrpc/FundingShim' +import type { CommitmentType as _lnrpc_CommitmentType } from '../lnrpc/CommitmentType' +import type { Long } from '@grpc/proto-loader' +export interface OpenChannelRequest { + sat_per_vbyte?: number | string | Long + node_pubkey?: Buffer | Uint8Array | string + node_pubkey_string?: string + local_funding_amount?: number | string | Long + push_sat?: number | string | Long + target_conf?: number + sat_per_byte?: number | string | Long + private?: boolean + min_htlc_msat?: number | string | Long + remote_csv_delay?: number + min_confs?: number + spend_unconfirmed?: boolean + close_address?: string + funding_shim?: _lnrpc_FundingShim | null + remote_max_value_in_flight_msat?: number | string | Long + remote_max_htlcs?: number + max_local_csv?: number + commitment_type?: _lnrpc_CommitmentType | keyof typeof _lnrpc_CommitmentType + zero_conf?: boolean + scid_alias?: boolean +} +export interface OpenChannelRequest__Output { + sat_per_vbyte: string + node_pubkey: Buffer + node_pubkey_string: string + local_funding_amount: string + push_sat: string + target_conf: number + sat_per_byte: string + private: boolean + min_htlc_msat: string + remote_csv_delay: number + min_confs: number + spend_unconfirmed: boolean + close_address: string + funding_shim: _lnrpc_FundingShim__Output | null + remote_max_value_in_flight_msat: string + remote_max_htlcs: number + max_local_csv: number + commitment_type: keyof typeof _lnrpc_CommitmentType + zero_conf: boolean + scid_alias: boolean +} diff --git a/src/grpc/types/lnrpc/OpenStatusUpdate.d.ts b/src/grpc/types/lnrpc/OpenStatusUpdate.d.ts new file mode 100644 index 000000000..37e96da42 --- /dev/null +++ b/src/grpc/types/lnrpc/OpenStatusUpdate.d.ts @@ -0,0 +1,27 @@ +/// +import type { + PendingUpdate as _lnrpc_PendingUpdate, + PendingUpdate__Output as _lnrpc_PendingUpdate__Output, +} from '../lnrpc/PendingUpdate' +import type { + ChannelOpenUpdate as _lnrpc_ChannelOpenUpdate, + ChannelOpenUpdate__Output as _lnrpc_ChannelOpenUpdate__Output, +} from '../lnrpc/ChannelOpenUpdate' +import type { + ReadyForPsbtFunding as _lnrpc_ReadyForPsbtFunding, + ReadyForPsbtFunding__Output as _lnrpc_ReadyForPsbtFunding__Output, +} from '../lnrpc/ReadyForPsbtFunding' +export interface OpenStatusUpdate { + chan_pending?: _lnrpc_PendingUpdate | null + chan_open?: _lnrpc_ChannelOpenUpdate | null + pending_chan_id?: Buffer | Uint8Array | string + psbt_fund?: _lnrpc_ReadyForPsbtFunding | null + update?: 'chan_pending' | 'chan_open' | 'psbt_fund' +} +export interface OpenStatusUpdate__Output { + chan_pending?: _lnrpc_PendingUpdate__Output | null + chan_open?: _lnrpc_ChannelOpenUpdate__Output | null + pending_chan_id: Buffer + psbt_fund?: _lnrpc_ReadyForPsbtFunding__Output | null + update: 'chan_pending' | 'chan_open' | 'psbt_fund' +} diff --git a/src/grpc/types/lnrpc/OutPoint.d.ts b/src/grpc/types/lnrpc/OutPoint.d.ts new file mode 100644 index 000000000..d645a8192 --- /dev/null +++ b/src/grpc/types/lnrpc/OutPoint.d.ts @@ -0,0 +1,11 @@ +/// +export interface OutPoint { + txid_bytes?: Buffer | Uint8Array | string + txid_str?: string + output_index?: number +} +export interface OutPoint__Output { + txid_bytes: Buffer + txid_str: string + output_index: number +} diff --git a/src/grpc/types/lnrpc/OutputDetail.d.ts b/src/grpc/types/lnrpc/OutputDetail.d.ts new file mode 100644 index 000000000..ed821f3ed --- /dev/null +++ b/src/grpc/types/lnrpc/OutputDetail.d.ts @@ -0,0 +1,19 @@ +/// +import type { OutputScriptType as _lnrpc_OutputScriptType } from '../lnrpc/OutputScriptType' +import type { Long } from '@grpc/proto-loader' +export interface OutputDetail { + output_type?: _lnrpc_OutputScriptType | keyof typeof _lnrpc_OutputScriptType + address?: string + pk_script?: string + output_index?: number | string | Long + amount?: number | string | Long + is_our_address?: boolean +} +export interface OutputDetail__Output { + output_type: keyof typeof _lnrpc_OutputScriptType + address: string + pk_script: string + output_index: string + amount: string + is_our_address: boolean +} diff --git a/src/grpc/types/lnrpc/OutputScriptType.d.ts b/src/grpc/types/lnrpc/OutputScriptType.d.ts new file mode 100644 index 000000000..cf1f7f83f --- /dev/null +++ b/src/grpc/types/lnrpc/OutputScriptType.d.ts @@ -0,0 +1,12 @@ +export declare enum OutputScriptType { + SCRIPT_TYPE_PUBKEY_HASH = 0, + SCRIPT_TYPE_SCRIPT_HASH = 1, + SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2, + SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3, + SCRIPT_TYPE_PUBKEY = 4, + SCRIPT_TYPE_MULTISIG = 5, + SCRIPT_TYPE_NULLDATA = 6, + SCRIPT_TYPE_NON_STANDARD = 7, + SCRIPT_TYPE_WITNESS_UNKNOWN = 8, + SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9, +} diff --git a/src/grpc/types/lnrpc/PayReq.d.ts b/src/grpc/types/lnrpc/PayReq.d.ts new file mode 100644 index 000000000..bed59072d --- /dev/null +++ b/src/grpc/types/lnrpc/PayReq.d.ts @@ -0,0 +1,45 @@ +/// +/// +import type { + RouteHint as _lnrpc_RouteHint, + RouteHint__Output as _lnrpc_RouteHint__Output, +} from '../lnrpc/RouteHint' +import type { + Feature as _lnrpc_Feature, + Feature__Output as _lnrpc_Feature__Output, +} from '../lnrpc/Feature' +import type { Long } from '@grpc/proto-loader' +export interface PayReq { + destination?: string + payment_hash?: string + num_satoshis?: number | string | Long + timestamp?: number | string | Long + expiry?: number | string | Long + description?: string + description_hash?: string + fallback_addr?: string + cltv_expiry?: number | string | Long + route_hints?: _lnrpc_RouteHint[] + payment_addr?: Buffer | Uint8Array | string + num_msat?: number | string | Long + features?: { + [key: number]: _lnrpc_Feature + } +} +export interface PayReq__Output { + destination: string + payment_hash: string + num_satoshis: string + timestamp: string + expiry: string + description: string + description_hash: string + fallback_addr: string + cltv_expiry: string + route_hints: _lnrpc_RouteHint__Output[] + payment_addr: Buffer + num_msat: string + features: { + [key: number]: _lnrpc_Feature__Output + } +} diff --git a/src/grpc/types/lnrpc/PayReqString.d.ts b/src/grpc/types/lnrpc/PayReqString.d.ts new file mode 100644 index 000000000..e85d98266 --- /dev/null +++ b/src/grpc/types/lnrpc/PayReqString.d.ts @@ -0,0 +1,6 @@ +export interface PayReqString { + pay_req?: string +} +export interface PayReqString__Output { + pay_req: string +} diff --git a/src/grpc/types/lnrpc/Payment.d.ts b/src/grpc/types/lnrpc/Payment.d.ts new file mode 100644 index 000000000..0178bc7ef --- /dev/null +++ b/src/grpc/types/lnrpc/Payment.d.ts @@ -0,0 +1,51 @@ +/// +import type { + HTLCAttempt as _lnrpc_HTLCAttempt, + HTLCAttempt__Output as _lnrpc_HTLCAttempt__Output, +} from '../lnrpc/HTLCAttempt' +import type { PaymentFailureReason as _lnrpc_PaymentFailureReason } from '../lnrpc/PaymentFailureReason' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_Payment_PaymentStatus { + UNKNOWN = 0, + IN_FLIGHT = 1, + SUCCEEDED = 2, + FAILED = 3, +} +export interface Payment { + payment_hash?: string + value?: number | string | Long + creation_date?: number | string | Long + fee?: number | string | Long + payment_preimage?: string + value_sat?: number | string | Long + value_msat?: number | string | Long + payment_request?: string + status?: + | _lnrpc_Payment_PaymentStatus + | keyof typeof _lnrpc_Payment_PaymentStatus + fee_sat?: number | string | Long + fee_msat?: number | string | Long + creation_time_ns?: number | string | Long + htlcs?: _lnrpc_HTLCAttempt[] + payment_index?: number | string | Long + failure_reason?: + | _lnrpc_PaymentFailureReason + | keyof typeof _lnrpc_PaymentFailureReason +} +export interface Payment__Output { + payment_hash: string + value: string + creation_date: string + fee: string + payment_preimage: string + value_sat: string + value_msat: string + payment_request: string + status: keyof typeof _lnrpc_Payment_PaymentStatus + fee_sat: string + fee_msat: string + creation_time_ns: string + htlcs: _lnrpc_HTLCAttempt__Output[] + payment_index: string + failure_reason: keyof typeof _lnrpc_PaymentFailureReason +} diff --git a/src/grpc/types/lnrpc/PaymentFailureReason.d.ts b/src/grpc/types/lnrpc/PaymentFailureReason.d.ts new file mode 100644 index 000000000..f89115b37 --- /dev/null +++ b/src/grpc/types/lnrpc/PaymentFailureReason.d.ts @@ -0,0 +1,8 @@ +export declare enum PaymentFailureReason { + FAILURE_REASON_NONE = 0, + FAILURE_REASON_TIMEOUT = 1, + FAILURE_REASON_NO_ROUTE = 2, + FAILURE_REASON_ERROR = 3, + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS = 4, + FAILURE_REASON_INSUFFICIENT_BALANCE = 5, +} diff --git a/src/grpc/types/lnrpc/PaymentHash.d.ts b/src/grpc/types/lnrpc/PaymentHash.d.ts new file mode 100644 index 000000000..91bb30946 --- /dev/null +++ b/src/grpc/types/lnrpc/PaymentHash.d.ts @@ -0,0 +1,9 @@ +/// +export interface PaymentHash { + r_hash_str?: string + r_hash?: Buffer | Uint8Array | string +} +export interface PaymentHash__Output { + r_hash_str: string + r_hash: Buffer +} diff --git a/src/grpc/types/lnrpc/Peer.d.ts b/src/grpc/types/lnrpc/Peer.d.ts new file mode 100644 index 000000000..e2ef75351 --- /dev/null +++ b/src/grpc/types/lnrpc/Peer.d.ts @@ -0,0 +1,53 @@ +/// +/// +import type { + Feature as _lnrpc_Feature, + Feature__Output as _lnrpc_Feature__Output, +} from '../lnrpc/Feature' +import type { + TimestampedError as _lnrpc_TimestampedError, + TimestampedError__Output as _lnrpc_TimestampedError__Output, +} from '../lnrpc/TimestampedError' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_Peer_SyncType { + UNKNOWN_SYNC = 0, + ACTIVE_SYNC = 1, + PASSIVE_SYNC = 2, + PINNED_SYNC = 3, +} +export interface Peer { + pub_key?: string + address?: string + bytes_sent?: number | string | Long + bytes_recv?: number | string | Long + sat_sent?: number | string | Long + sat_recv?: number | string | Long + inbound?: boolean + ping_time?: number | string | Long + sync_type?: _lnrpc_Peer_SyncType | keyof typeof _lnrpc_Peer_SyncType + features?: { + [key: number]: _lnrpc_Feature + } + errors?: _lnrpc_TimestampedError[] + flap_count?: number + last_flap_ns?: number | string | Long + last_ping_payload?: Buffer | Uint8Array | string +} +export interface Peer__Output { + pub_key: string + address: string + bytes_sent: string + bytes_recv: string + sat_sent: string + sat_recv: string + inbound: boolean + ping_time: string + sync_type: keyof typeof _lnrpc_Peer_SyncType + features: { + [key: number]: _lnrpc_Feature__Output + } + errors: _lnrpc_TimestampedError__Output[] + flap_count: number + last_flap_ns: string + last_ping_payload: Buffer +} diff --git a/src/grpc/types/lnrpc/PeerEvent.d.ts b/src/grpc/types/lnrpc/PeerEvent.d.ts new file mode 100644 index 000000000..1684e9059 --- /dev/null +++ b/src/grpc/types/lnrpc/PeerEvent.d.ts @@ -0,0 +1,12 @@ +export declare enum _lnrpc_PeerEvent_EventType { + PEER_ONLINE = 0, + PEER_OFFLINE = 1, +} +export interface PeerEvent { + pub_key?: string + type?: _lnrpc_PeerEvent_EventType | keyof typeof _lnrpc_PeerEvent_EventType +} +export interface PeerEvent__Output { + pub_key: string + type: keyof typeof _lnrpc_PeerEvent_EventType +} diff --git a/src/grpc/types/lnrpc/PeerEventSubscription.d.ts b/src/grpc/types/lnrpc/PeerEventSubscription.d.ts new file mode 100644 index 000000000..99adef169 --- /dev/null +++ b/src/grpc/types/lnrpc/PeerEventSubscription.d.ts @@ -0,0 +1,2 @@ +export interface PeerEventSubscription {} +export interface PeerEventSubscription__Output {} diff --git a/src/grpc/types/lnrpc/PendingChannelsRequest.d.ts b/src/grpc/types/lnrpc/PendingChannelsRequest.d.ts new file mode 100644 index 000000000..3ea279a5e --- /dev/null +++ b/src/grpc/types/lnrpc/PendingChannelsRequest.d.ts @@ -0,0 +1,2 @@ +export interface PendingChannelsRequest {} +export interface PendingChannelsRequest__Output {} diff --git a/src/grpc/types/lnrpc/PendingChannelsResponse.d.ts b/src/grpc/types/lnrpc/PendingChannelsResponse.d.ts new file mode 100644 index 000000000..7c58c09ee --- /dev/null +++ b/src/grpc/types/lnrpc/PendingChannelsResponse.d.ts @@ -0,0 +1,125 @@ +/// +import type { Initiator as _lnrpc_Initiator } from '../lnrpc/Initiator' +import type { CommitmentType as _lnrpc_CommitmentType } from '../lnrpc/CommitmentType' +import type { + PendingHTLC as _lnrpc_PendingHTLC, + PendingHTLC__Output as _lnrpc_PendingHTLC__Output, +} from '../lnrpc/PendingHTLC' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState { + LIMBO = 0, + RECOVERED = 1, + LOST = 2, +} +export interface _lnrpc_PendingChannelsResponse_ClosedChannel { + channel?: _lnrpc_PendingChannelsResponse_PendingChannel | null + closing_txid?: string +} +export interface _lnrpc_PendingChannelsResponse_ClosedChannel__Output { + channel: _lnrpc_PendingChannelsResponse_PendingChannel__Output | null + closing_txid: string +} +export interface _lnrpc_PendingChannelsResponse_Commitments { + local_txid?: string + remote_txid?: string + remote_pending_txid?: string + local_commit_fee_sat?: number | string | Long + remote_commit_fee_sat?: number | string | Long + remote_pending_commit_fee_sat?: number | string | Long +} +export interface _lnrpc_PendingChannelsResponse_Commitments__Output { + local_txid: string + remote_txid: string + remote_pending_txid: string + local_commit_fee_sat: string + remote_commit_fee_sat: string + remote_pending_commit_fee_sat: string +} +export interface _lnrpc_PendingChannelsResponse_ForceClosedChannel { + channel?: _lnrpc_PendingChannelsResponse_PendingChannel | null + closing_txid?: string + limbo_balance?: number | string | Long + maturity_height?: number + blocks_til_maturity?: number + recovered_balance?: number | string | Long + pending_htlcs?: _lnrpc_PendingHTLC[] + anchor?: + | _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState + | keyof typeof _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState +} +export interface _lnrpc_PendingChannelsResponse_ForceClosedChannel__Output { + channel: _lnrpc_PendingChannelsResponse_PendingChannel__Output | null + closing_txid: string + limbo_balance: string + maturity_height: number + blocks_til_maturity: number + recovered_balance: string + pending_htlcs: _lnrpc_PendingHTLC__Output[] + anchor: keyof typeof _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState +} +export interface _lnrpc_PendingChannelsResponse_PendingChannel { + remote_node_pub?: string + channel_point?: string + capacity?: number | string | Long + local_balance?: number | string | Long + remote_balance?: number | string | Long + local_chan_reserve_sat?: number | string | Long + remote_chan_reserve_sat?: number | string | Long + initiator?: _lnrpc_Initiator | keyof typeof _lnrpc_Initiator + commitment_type?: _lnrpc_CommitmentType | keyof typeof _lnrpc_CommitmentType + num_forwarding_packages?: number | string | Long + chan_status_flags?: string + private?: boolean +} +export interface _lnrpc_PendingChannelsResponse_PendingChannel__Output { + remote_node_pub: string + channel_point: string + capacity: string + local_balance: string + remote_balance: string + local_chan_reserve_sat: string + remote_chan_reserve_sat: string + initiator: keyof typeof _lnrpc_Initiator + commitment_type: keyof typeof _lnrpc_CommitmentType + num_forwarding_packages: string + chan_status_flags: string + private: boolean +} +export interface _lnrpc_PendingChannelsResponse_PendingOpenChannel { + channel?: _lnrpc_PendingChannelsResponse_PendingChannel | null + commit_fee?: number | string | Long + commit_weight?: number | string | Long + fee_per_kw?: number | string | Long +} +export interface _lnrpc_PendingChannelsResponse_PendingOpenChannel__Output { + channel: _lnrpc_PendingChannelsResponse_PendingChannel__Output | null + commit_fee: string + commit_weight: string + fee_per_kw: string +} +export interface _lnrpc_PendingChannelsResponse_WaitingCloseChannel { + channel?: _lnrpc_PendingChannelsResponse_PendingChannel | null + limbo_balance?: number | string | Long + commitments?: _lnrpc_PendingChannelsResponse_Commitments | null + closing_txid?: string +} +export interface _lnrpc_PendingChannelsResponse_WaitingCloseChannel__Output { + channel: _lnrpc_PendingChannelsResponse_PendingChannel__Output | null + limbo_balance: string + commitments: _lnrpc_PendingChannelsResponse_Commitments__Output | null + closing_txid: string +} +export interface PendingChannelsResponse { + total_limbo_balance?: number | string | Long + pending_open_channels?: _lnrpc_PendingChannelsResponse_PendingOpenChannel[] + pending_closing_channels?: _lnrpc_PendingChannelsResponse_ClosedChannel[] + pending_force_closing_channels?: _lnrpc_PendingChannelsResponse_ForceClosedChannel[] + waiting_close_channels?: _lnrpc_PendingChannelsResponse_WaitingCloseChannel[] +} +export interface PendingChannelsResponse__Output { + total_limbo_balance: string + pending_open_channels: _lnrpc_PendingChannelsResponse_PendingOpenChannel__Output[] + pending_closing_channels: _lnrpc_PendingChannelsResponse_ClosedChannel__Output[] + pending_force_closing_channels: _lnrpc_PendingChannelsResponse_ForceClosedChannel__Output[] + waiting_close_channels: _lnrpc_PendingChannelsResponse_WaitingCloseChannel__Output[] +} diff --git a/src/grpc/types/lnrpc/PendingHTLC.d.ts b/src/grpc/types/lnrpc/PendingHTLC.d.ts new file mode 100644 index 000000000..b9370172b --- /dev/null +++ b/src/grpc/types/lnrpc/PendingHTLC.d.ts @@ -0,0 +1,18 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface PendingHTLC { + incoming?: boolean + amount?: number | string | Long + outpoint?: string + maturity_height?: number + blocks_til_maturity?: number + stage?: number +} +export interface PendingHTLC__Output { + incoming: boolean + amount: string + outpoint: string + maturity_height: number + blocks_til_maturity: number + stage: number +} diff --git a/src/grpc/types/lnrpc/PendingUpdate.d.ts b/src/grpc/types/lnrpc/PendingUpdate.d.ts new file mode 100644 index 000000000..f6fb716f4 --- /dev/null +++ b/src/grpc/types/lnrpc/PendingUpdate.d.ts @@ -0,0 +1,9 @@ +/// +export interface PendingUpdate { + txid?: Buffer | Uint8Array | string + output_index?: number +} +export interface PendingUpdate__Output { + txid: Buffer + output_index: number +} diff --git a/src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts b/src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts new file mode 100644 index 000000000..3a8a02d07 --- /dev/null +++ b/src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts @@ -0,0 +1,30 @@ +/// +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { Long } from '@grpc/proto-loader' +export interface PolicyUpdateRequest { + global?: boolean + chan_point?: _lnrpc_ChannelPoint | null + base_fee_msat?: number | string | Long + fee_rate?: number | string + time_lock_delta?: number + max_htlc_msat?: number | string | Long + min_htlc_msat?: number | string | Long + min_htlc_msat_specified?: boolean + fee_rate_ppm?: number + scope?: 'global' | 'chan_point' +} +export interface PolicyUpdateRequest__Output { + global?: boolean + chan_point?: _lnrpc_ChannelPoint__Output | null + base_fee_msat: string + fee_rate: number + time_lock_delta: number + max_htlc_msat: string + min_htlc_msat: string + min_htlc_msat_specified: boolean + fee_rate_ppm: number + scope: 'global' | 'chan_point' +} diff --git a/src/grpc/types/lnrpc/PolicyUpdateResponse.d.ts b/src/grpc/types/lnrpc/PolicyUpdateResponse.d.ts new file mode 100644 index 000000000..6f9c8038a --- /dev/null +++ b/src/grpc/types/lnrpc/PolicyUpdateResponse.d.ts @@ -0,0 +1,10 @@ +import type { + FailedUpdate as _lnrpc_FailedUpdate, + FailedUpdate__Output as _lnrpc_FailedUpdate__Output, +} from '../lnrpc/FailedUpdate' +export interface PolicyUpdateResponse { + failed_updates?: _lnrpc_FailedUpdate[] +} +export interface PolicyUpdateResponse__Output { + failed_updates: _lnrpc_FailedUpdate__Output[] +} diff --git a/src/grpc/types/lnrpc/PreviousOutPoint.d.ts b/src/grpc/types/lnrpc/PreviousOutPoint.d.ts new file mode 100644 index 000000000..165585d1f --- /dev/null +++ b/src/grpc/types/lnrpc/PreviousOutPoint.d.ts @@ -0,0 +1,8 @@ +export interface PreviousOutPoint { + outpoint?: string + is_our_output?: boolean +} +export interface PreviousOutPoint__Output { + outpoint: string + is_our_output: boolean +} diff --git a/src/grpc/types/lnrpc/PsbtShim.d.ts b/src/grpc/types/lnrpc/PsbtShim.d.ts new file mode 100644 index 000000000..abab434a2 --- /dev/null +++ b/src/grpc/types/lnrpc/PsbtShim.d.ts @@ -0,0 +1,11 @@ +/// +export interface PsbtShim { + pending_chan_id?: Buffer | Uint8Array | string + base_psbt?: Buffer | Uint8Array | string + no_publish?: boolean +} +export interface PsbtShim__Output { + pending_chan_id: Buffer + base_psbt: Buffer + no_publish: boolean +} diff --git a/src/grpc/types/lnrpc/QueryRoutesRequest.d.ts b/src/grpc/types/lnrpc/QueryRoutesRequest.d.ts new file mode 100644 index 000000000..8952fbdb3 --- /dev/null +++ b/src/grpc/types/lnrpc/QueryRoutesRequest.d.ts @@ -0,0 +1,62 @@ +/// +/// +import type { + FeeLimit as _lnrpc_FeeLimit, + FeeLimit__Output as _lnrpc_FeeLimit__Output, +} from '../lnrpc/FeeLimit' +import type { + EdgeLocator as _lnrpc_EdgeLocator, + EdgeLocator__Output as _lnrpc_EdgeLocator__Output, +} from '../lnrpc/EdgeLocator' +import type { + NodePair as _lnrpc_NodePair, + NodePair__Output as _lnrpc_NodePair__Output, +} from '../lnrpc/NodePair' +import type { + RouteHint as _lnrpc_RouteHint, + RouteHint__Output as _lnrpc_RouteHint__Output, +} from '../lnrpc/RouteHint' +import type { FeatureBit as _lnrpc_FeatureBit } from '../lnrpc/FeatureBit' +import type { Long } from '@grpc/proto-loader' +export interface QueryRoutesRequest { + pub_key?: string + amt?: number | string | Long + final_cltv_delta?: number + fee_limit?: _lnrpc_FeeLimit | null + ignored_nodes?: (Buffer | Uint8Array | string)[] + ignored_edges?: _lnrpc_EdgeLocator[] + source_pub_key?: string + use_mission_control?: boolean + ignored_pairs?: _lnrpc_NodePair[] + cltv_limit?: number + amt_msat?: number | string | Long + dest_custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + outgoing_chan_id?: number | string | Long + last_hop_pubkey?: Buffer | Uint8Array | string + route_hints?: _lnrpc_RouteHint[] + dest_features?: (_lnrpc_FeatureBit | keyof typeof _lnrpc_FeatureBit)[] + time_pref?: number | string +} +export interface QueryRoutesRequest__Output { + pub_key: string + amt: string + final_cltv_delta: number + fee_limit: _lnrpc_FeeLimit__Output | null + ignored_nodes: Buffer[] + ignored_edges: _lnrpc_EdgeLocator__Output[] + source_pub_key: string + use_mission_control: boolean + ignored_pairs: _lnrpc_NodePair__Output[] + cltv_limit: number + amt_msat: string + dest_custom_records: { + [key: number]: Buffer + } + outgoing_chan_id: string + last_hop_pubkey: Buffer + route_hints: _lnrpc_RouteHint__Output[] + dest_features: (keyof typeof _lnrpc_FeatureBit)[] + time_pref: number +} diff --git a/src/grpc/types/lnrpc/QueryRoutesResponse.d.ts b/src/grpc/types/lnrpc/QueryRoutesResponse.d.ts new file mode 100644 index 000000000..e214bc701 --- /dev/null +++ b/src/grpc/types/lnrpc/QueryRoutesResponse.d.ts @@ -0,0 +1,12 @@ +import type { + Route as _lnrpc_Route, + Route__Output as _lnrpc_Route__Output, +} from '../lnrpc/Route' +export interface QueryRoutesResponse { + routes?: _lnrpc_Route[] + success_prob?: number | string +} +export interface QueryRoutesResponse__Output { + routes: _lnrpc_Route__Output[] + success_prob: number +} diff --git a/src/grpc/types/lnrpc/RPCMessage.d.ts b/src/grpc/types/lnrpc/RPCMessage.d.ts new file mode 100644 index 000000000..f7aacd14c --- /dev/null +++ b/src/grpc/types/lnrpc/RPCMessage.d.ts @@ -0,0 +1,15 @@ +/// +export interface RPCMessage { + method_full_uri?: string + stream_rpc?: boolean + type_name?: string + serialized?: Buffer | Uint8Array | string + is_error?: boolean +} +export interface RPCMessage__Output { + method_full_uri: string + stream_rpc: boolean + type_name: string + serialized: Buffer + is_error: boolean +} diff --git a/src/grpc/types/lnrpc/RPCMiddlewareRequest.d.ts b/src/grpc/types/lnrpc/RPCMiddlewareRequest.d.ts new file mode 100644 index 000000000..e87afd543 --- /dev/null +++ b/src/grpc/types/lnrpc/RPCMiddlewareRequest.d.ts @@ -0,0 +1,33 @@ +/// +/// +import type { + StreamAuth as _lnrpc_StreamAuth, + StreamAuth__Output as _lnrpc_StreamAuth__Output, +} from '../lnrpc/StreamAuth' +import type { + RPCMessage as _lnrpc_RPCMessage, + RPCMessage__Output as _lnrpc_RPCMessage__Output, +} from '../lnrpc/RPCMessage' +import type { Long } from '@grpc/proto-loader' +export interface RPCMiddlewareRequest { + request_id?: number | string | Long + raw_macaroon?: Buffer | Uint8Array | string + custom_caveat_condition?: string + stream_auth?: _lnrpc_StreamAuth | null + request?: _lnrpc_RPCMessage | null + response?: _lnrpc_RPCMessage | null + msg_id?: number | string | Long + reg_complete?: boolean + intercept_type?: 'stream_auth' | 'request' | 'response' | 'reg_complete' +} +export interface RPCMiddlewareRequest__Output { + request_id: string + raw_macaroon: Buffer + custom_caveat_condition: string + stream_auth?: _lnrpc_StreamAuth__Output | null + request?: _lnrpc_RPCMessage__Output | null + response?: _lnrpc_RPCMessage__Output | null + msg_id: string + reg_complete?: boolean + intercept_type: 'stream_auth' | 'request' | 'response' | 'reg_complete' +} diff --git a/src/grpc/types/lnrpc/RPCMiddlewareResponse.d.ts b/src/grpc/types/lnrpc/RPCMiddlewareResponse.d.ts new file mode 100644 index 000000000..41d447493 --- /dev/null +++ b/src/grpc/types/lnrpc/RPCMiddlewareResponse.d.ts @@ -0,0 +1,22 @@ +/// +import type { + MiddlewareRegistration as _lnrpc_MiddlewareRegistration, + MiddlewareRegistration__Output as _lnrpc_MiddlewareRegistration__Output, +} from '../lnrpc/MiddlewareRegistration' +import type { + InterceptFeedback as _lnrpc_InterceptFeedback, + InterceptFeedback__Output as _lnrpc_InterceptFeedback__Output, +} from '../lnrpc/InterceptFeedback' +import type { Long } from '@grpc/proto-loader' +export interface RPCMiddlewareResponse { + ref_msg_id?: number | string | Long + register?: _lnrpc_MiddlewareRegistration | null + feedback?: _lnrpc_InterceptFeedback | null + middleware_message?: 'register' | 'feedback' +} +export interface RPCMiddlewareResponse__Output { + ref_msg_id: string + register?: _lnrpc_MiddlewareRegistration__Output | null + feedback?: _lnrpc_InterceptFeedback__Output | null + middleware_message: 'register' | 'feedback' +} diff --git a/src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts b/src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts new file mode 100644 index 000000000..8aeb1a116 --- /dev/null +++ b/src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts @@ -0,0 +1,13 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface ReadyForPsbtFunding { + funding_address?: string + funding_amount?: number | string | Long + psbt?: Buffer | Uint8Array | string +} +export interface ReadyForPsbtFunding__Output { + funding_address: string + funding_amount: string + psbt: Buffer +} diff --git a/src/grpc/types/lnrpc/Resolution.d.ts b/src/grpc/types/lnrpc/Resolution.d.ts new file mode 100644 index 000000000..f8841d95e --- /dev/null +++ b/src/grpc/types/lnrpc/Resolution.d.ts @@ -0,0 +1,22 @@ +/// +import type { ResolutionType as _lnrpc_ResolutionType } from '../lnrpc/ResolutionType' +import type { ResolutionOutcome as _lnrpc_ResolutionOutcome } from '../lnrpc/ResolutionOutcome' +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { Long } from '@grpc/proto-loader' +export interface Resolution { + resolution_type?: _lnrpc_ResolutionType | keyof typeof _lnrpc_ResolutionType + outcome?: _lnrpc_ResolutionOutcome | keyof typeof _lnrpc_ResolutionOutcome + outpoint?: _lnrpc_OutPoint | null + amount_sat?: number | string | Long + sweep_txid?: string +} +export interface Resolution__Output { + resolution_type: keyof typeof _lnrpc_ResolutionType + outcome: keyof typeof _lnrpc_ResolutionOutcome + outpoint: _lnrpc_OutPoint__Output | null + amount_sat: string + sweep_txid: string +} diff --git a/src/grpc/types/lnrpc/ResolutionOutcome.d.ts b/src/grpc/types/lnrpc/ResolutionOutcome.d.ts new file mode 100644 index 000000000..be80c2e2d --- /dev/null +++ b/src/grpc/types/lnrpc/ResolutionOutcome.d.ts @@ -0,0 +1,8 @@ +export declare enum ResolutionOutcome { + OUTCOME_UNKNOWN = 0, + CLAIMED = 1, + UNCLAIMED = 2, + ABANDONED = 3, + FIRST_STAGE = 4, + TIMEOUT = 5, +} diff --git a/src/grpc/types/lnrpc/ResolutionType.d.ts b/src/grpc/types/lnrpc/ResolutionType.d.ts new file mode 100644 index 000000000..0f8c39dbd --- /dev/null +++ b/src/grpc/types/lnrpc/ResolutionType.d.ts @@ -0,0 +1,7 @@ +export declare enum ResolutionType { + TYPE_UNKNOWN = 0, + ANCHOR = 1, + INCOMING_HTLC = 2, + OUTGOING_HTLC = 3, + COMMIT = 4, +} diff --git a/src/grpc/types/lnrpc/RestoreBackupResponse.d.ts b/src/grpc/types/lnrpc/RestoreBackupResponse.d.ts new file mode 100644 index 000000000..327817f34 --- /dev/null +++ b/src/grpc/types/lnrpc/RestoreBackupResponse.d.ts @@ -0,0 +1,2 @@ +export interface RestoreBackupResponse {} +export interface RestoreBackupResponse__Output {} diff --git a/src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts b/src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts new file mode 100644 index 000000000..ae6edfda7 --- /dev/null +++ b/src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts @@ -0,0 +1,15 @@ +/// +import type { + ChannelBackups as _lnrpc_ChannelBackups, + ChannelBackups__Output as _lnrpc_ChannelBackups__Output, +} from '../lnrpc/ChannelBackups' +export interface RestoreChanBackupRequest { + chan_backups?: _lnrpc_ChannelBackups | null + multi_chan_backup?: Buffer | Uint8Array | string + backup?: 'chan_backups' | 'multi_chan_backup' +} +export interface RestoreChanBackupRequest__Output { + chan_backups?: _lnrpc_ChannelBackups__Output | null + multi_chan_backup?: Buffer + backup: 'chan_backups' | 'multi_chan_backup' +} diff --git a/src/grpc/types/lnrpc/Route.d.ts b/src/grpc/types/lnrpc/Route.d.ts new file mode 100644 index 000000000..525bbf889 --- /dev/null +++ b/src/grpc/types/lnrpc/Route.d.ts @@ -0,0 +1,22 @@ +/// +import type { + Hop as _lnrpc_Hop, + Hop__Output as _lnrpc_Hop__Output, +} from '../lnrpc/Hop' +import type { Long } from '@grpc/proto-loader' +export interface Route { + total_time_lock?: number + total_fees?: number | string | Long + total_amt?: number | string | Long + hops?: _lnrpc_Hop[] + total_fees_msat?: number | string | Long + total_amt_msat?: number | string | Long +} +export interface Route__Output { + total_time_lock: number + total_fees: string + total_amt: string + hops: _lnrpc_Hop__Output[] + total_fees_msat: string + total_amt_msat: string +} diff --git a/src/grpc/types/lnrpc/RouteHint.d.ts b/src/grpc/types/lnrpc/RouteHint.d.ts new file mode 100644 index 000000000..5abb23725 --- /dev/null +++ b/src/grpc/types/lnrpc/RouteHint.d.ts @@ -0,0 +1,10 @@ +import type { + HopHint as _lnrpc_HopHint, + HopHint__Output as _lnrpc_HopHint__Output, +} from '../lnrpc/HopHint' +export interface RouteHint { + hop_hints?: _lnrpc_HopHint[] +} +export interface RouteHint__Output { + hop_hints: _lnrpc_HopHint__Output[] +} diff --git a/src/grpc/types/lnrpc/RoutingPolicy.d.ts b/src/grpc/types/lnrpc/RoutingPolicy.d.ts new file mode 100644 index 000000000..ed79b98a0 --- /dev/null +++ b/src/grpc/types/lnrpc/RoutingPolicy.d.ts @@ -0,0 +1,20 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface RoutingPolicy { + time_lock_delta?: number + min_htlc?: number | string | Long + fee_base_msat?: number | string | Long + fee_rate_milli_msat?: number | string | Long + disabled?: boolean + max_htlc_msat?: number | string | Long + last_update?: number +} +export interface RoutingPolicy__Output { + time_lock_delta: number + min_htlc: string + fee_base_msat: string + fee_rate_milli_msat: string + disabled: boolean + max_htlc_msat: string + last_update: number +} diff --git a/src/grpc/types/lnrpc/SendCoinsRequest.d.ts b/src/grpc/types/lnrpc/SendCoinsRequest.d.ts new file mode 100644 index 000000000..87c4e2089 --- /dev/null +++ b/src/grpc/types/lnrpc/SendCoinsRequest.d.ts @@ -0,0 +1,24 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface SendCoinsRequest { + addr?: string + amount?: number | string | Long + target_conf?: number + sat_per_vbyte?: number | string | Long + sat_per_byte?: number | string | Long + send_all?: boolean + label?: string + min_confs?: number + spend_unconfirmed?: boolean +} +export interface SendCoinsRequest__Output { + addr: string + amount: string + target_conf: number + sat_per_vbyte: string + sat_per_byte: string + send_all: boolean + label: string + min_confs: number + spend_unconfirmed: boolean +} diff --git a/src/grpc/types/lnrpc/SendCoinsResponse.d.ts b/src/grpc/types/lnrpc/SendCoinsResponse.d.ts new file mode 100644 index 000000000..41e631dd8 --- /dev/null +++ b/src/grpc/types/lnrpc/SendCoinsResponse.d.ts @@ -0,0 +1,6 @@ +export interface SendCoinsResponse { + txid?: string +} +export interface SendCoinsResponse__Output { + txid: string +} diff --git a/src/grpc/types/lnrpc/SendCustomMessageRequest.d.ts b/src/grpc/types/lnrpc/SendCustomMessageRequest.d.ts new file mode 100644 index 000000000..55a6104e0 --- /dev/null +++ b/src/grpc/types/lnrpc/SendCustomMessageRequest.d.ts @@ -0,0 +1,11 @@ +/// +export interface SendCustomMessageRequest { + peer?: Buffer | Uint8Array | string + type?: number + data?: Buffer | Uint8Array | string +} +export interface SendCustomMessageRequest__Output { + peer: Buffer + type: number + data: Buffer +} diff --git a/src/grpc/types/lnrpc/SendCustomMessageResponse.d.ts b/src/grpc/types/lnrpc/SendCustomMessageResponse.d.ts new file mode 100644 index 000000000..453fa8a36 --- /dev/null +++ b/src/grpc/types/lnrpc/SendCustomMessageResponse.d.ts @@ -0,0 +1,2 @@ +export interface SendCustomMessageResponse {} +export interface SendCustomMessageResponse__Output {} diff --git a/src/grpc/types/lnrpc/SendManyRequest.d.ts b/src/grpc/types/lnrpc/SendManyRequest.d.ts new file mode 100644 index 000000000..3fb29fdf4 --- /dev/null +++ b/src/grpc/types/lnrpc/SendManyRequest.d.ts @@ -0,0 +1,24 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface SendManyRequest { + AddrToAmount?: { + [key: string]: number | string | Long + } + target_conf?: number + sat_per_vbyte?: number | string | Long + sat_per_byte?: number | string | Long + label?: string + min_confs?: number + spend_unconfirmed?: boolean +} +export interface SendManyRequest__Output { + AddrToAmount: { + [key: string]: string + } + target_conf: number + sat_per_vbyte: string + sat_per_byte: string + label: string + min_confs: number + spend_unconfirmed: boolean +} diff --git a/src/grpc/types/lnrpc/SendManyResponse.d.ts b/src/grpc/types/lnrpc/SendManyResponse.d.ts new file mode 100644 index 000000000..1fb95c074 --- /dev/null +++ b/src/grpc/types/lnrpc/SendManyResponse.d.ts @@ -0,0 +1,6 @@ +export interface SendManyResponse { + txid?: string +} +export interface SendManyResponse__Output { + txid: string +} diff --git a/src/grpc/types/lnrpc/SendRequest.d.ts b/src/grpc/types/lnrpc/SendRequest.d.ts new file mode 100644 index 000000000..116ef843f --- /dev/null +++ b/src/grpc/types/lnrpc/SendRequest.d.ts @@ -0,0 +1,48 @@ +/// +/// +import type { + FeeLimit as _lnrpc_FeeLimit, + FeeLimit__Output as _lnrpc_FeeLimit__Output, +} from '../lnrpc/FeeLimit' +import type { FeatureBit as _lnrpc_FeatureBit } from '../lnrpc/FeatureBit' +import type { Long } from '@grpc/proto-loader' +export interface SendRequest { + dest?: Buffer | Uint8Array | string + dest_string?: string + amt?: number | string | Long + payment_hash?: Buffer | Uint8Array | string + payment_hash_string?: string + payment_request?: string + final_cltv_delta?: number + fee_limit?: _lnrpc_FeeLimit | null + outgoing_chan_id?: number | string | Long + cltv_limit?: number + dest_custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + amt_msat?: number | string | Long + last_hop_pubkey?: Buffer | Uint8Array | string + allow_self_payment?: boolean + dest_features?: (_lnrpc_FeatureBit | keyof typeof _lnrpc_FeatureBit)[] + payment_addr?: Buffer | Uint8Array | string +} +export interface SendRequest__Output { + dest: Buffer + dest_string: string + amt: string + payment_hash: Buffer + payment_hash_string: string + payment_request: string + final_cltv_delta: number + fee_limit: _lnrpc_FeeLimit__Output | null + outgoing_chan_id: string + cltv_limit: number + dest_custom_records: { + [key: number]: Buffer + } + amt_msat: string + last_hop_pubkey: Buffer + allow_self_payment: boolean + dest_features: (keyof typeof _lnrpc_FeatureBit)[] + payment_addr: Buffer +} diff --git a/src/grpc/types/lnrpc/SendResponse.d.ts b/src/grpc/types/lnrpc/SendResponse.d.ts new file mode 100644 index 000000000..9bcbf3adb --- /dev/null +++ b/src/grpc/types/lnrpc/SendResponse.d.ts @@ -0,0 +1,17 @@ +/// +import type { + Route as _lnrpc_Route, + Route__Output as _lnrpc_Route__Output, +} from '../lnrpc/Route' +export interface SendResponse { + payment_error?: string + payment_preimage?: Buffer | Uint8Array | string + payment_route?: _lnrpc_Route | null + payment_hash?: Buffer | Uint8Array | string +} +export interface SendResponse__Output { + payment_error: string + payment_preimage: Buffer + payment_route: _lnrpc_Route__Output | null + payment_hash: Buffer +} diff --git a/src/grpc/types/lnrpc/SendToRouteRequest.d.ts b/src/grpc/types/lnrpc/SendToRouteRequest.d.ts new file mode 100644 index 000000000..d003c48bf --- /dev/null +++ b/src/grpc/types/lnrpc/SendToRouteRequest.d.ts @@ -0,0 +1,15 @@ +/// +import type { + Route as _lnrpc_Route, + Route__Output as _lnrpc_Route__Output, +} from '../lnrpc/Route' +export interface SendToRouteRequest { + payment_hash?: Buffer | Uint8Array | string + payment_hash_string?: string + route?: _lnrpc_Route | null +} +export interface SendToRouteRequest__Output { + payment_hash: Buffer + payment_hash_string: string + route: _lnrpc_Route__Output | null +} diff --git a/src/grpc/types/lnrpc/SetID.d.ts b/src/grpc/types/lnrpc/SetID.d.ts new file mode 100644 index 000000000..7c47830da --- /dev/null +++ b/src/grpc/types/lnrpc/SetID.d.ts @@ -0,0 +1,7 @@ +/// +export interface SetID { + set_id?: Buffer | Uint8Array | string +} +export interface SetID__Output { + set_id: Buffer +} diff --git a/src/grpc/types/lnrpc/SignMessageRequest.d.ts b/src/grpc/types/lnrpc/SignMessageRequest.d.ts new file mode 100644 index 000000000..332b0d3f1 --- /dev/null +++ b/src/grpc/types/lnrpc/SignMessageRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface SignMessageRequest { + msg?: Buffer | Uint8Array | string + single_hash?: boolean +} +export interface SignMessageRequest__Output { + msg: Buffer + single_hash: boolean +} diff --git a/src/grpc/types/lnrpc/SignMessageResponse.d.ts b/src/grpc/types/lnrpc/SignMessageResponse.d.ts new file mode 100644 index 000000000..ca474e492 --- /dev/null +++ b/src/grpc/types/lnrpc/SignMessageResponse.d.ts @@ -0,0 +1,6 @@ +export interface SignMessageResponse { + signature?: string +} +export interface SignMessageResponse__Output { + signature: string +} diff --git a/src/grpc/types/lnrpc/StopRequest.d.ts b/src/grpc/types/lnrpc/StopRequest.d.ts new file mode 100644 index 000000000..212b4dac1 --- /dev/null +++ b/src/grpc/types/lnrpc/StopRequest.d.ts @@ -0,0 +1,2 @@ +export interface StopRequest {} +export interface StopRequest__Output {} diff --git a/src/grpc/types/lnrpc/StopResponse.d.ts b/src/grpc/types/lnrpc/StopResponse.d.ts new file mode 100644 index 000000000..8190734f3 --- /dev/null +++ b/src/grpc/types/lnrpc/StopResponse.d.ts @@ -0,0 +1,2 @@ +export interface StopResponse {} +export interface StopResponse__Output {} diff --git a/src/grpc/types/lnrpc/StreamAuth.d.ts b/src/grpc/types/lnrpc/StreamAuth.d.ts new file mode 100644 index 000000000..dd809ed4e --- /dev/null +++ b/src/grpc/types/lnrpc/StreamAuth.d.ts @@ -0,0 +1,6 @@ +export interface StreamAuth { + method_full_uri?: string +} +export interface StreamAuth__Output { + method_full_uri: string +} diff --git a/src/grpc/types/lnrpc/SubscribeCustomMessagesRequest.d.ts b/src/grpc/types/lnrpc/SubscribeCustomMessagesRequest.d.ts new file mode 100644 index 000000000..b1f62dc76 --- /dev/null +++ b/src/grpc/types/lnrpc/SubscribeCustomMessagesRequest.d.ts @@ -0,0 +1,2 @@ +export interface SubscribeCustomMessagesRequest {} +export interface SubscribeCustomMessagesRequest__Output {} diff --git a/src/grpc/types/lnrpc/TimestampedError.d.ts b/src/grpc/types/lnrpc/TimestampedError.d.ts new file mode 100644 index 000000000..36983164c --- /dev/null +++ b/src/grpc/types/lnrpc/TimestampedError.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface TimestampedError { + timestamp?: number | string | Long + error?: string +} +export interface TimestampedError__Output { + timestamp: string + error: string +} diff --git a/src/grpc/types/lnrpc/Transaction.d.ts b/src/grpc/types/lnrpc/Transaction.d.ts new file mode 100644 index 000000000..5c512e654 --- /dev/null +++ b/src/grpc/types/lnrpc/Transaction.d.ts @@ -0,0 +1,38 @@ +/// +import type { + OutputDetail as _lnrpc_OutputDetail, + OutputDetail__Output as _lnrpc_OutputDetail__Output, +} from '../lnrpc/OutputDetail' +import type { + PreviousOutPoint as _lnrpc_PreviousOutPoint, + PreviousOutPoint__Output as _lnrpc_PreviousOutPoint__Output, +} from '../lnrpc/PreviousOutPoint' +import type { Long } from '@grpc/proto-loader' +export interface Transaction { + tx_hash?: string + amount?: number | string | Long + num_confirmations?: number + block_hash?: string + block_height?: number + time_stamp?: number | string | Long + total_fees?: number | string | Long + dest_addresses?: string[] + raw_tx_hex?: string + label?: string + output_details?: _lnrpc_OutputDetail[] + previous_outpoints?: _lnrpc_PreviousOutPoint[] +} +export interface Transaction__Output { + tx_hash: string + amount: string + num_confirmations: number + block_hash: string + block_height: number + time_stamp: string + total_fees: string + dest_addresses: string[] + raw_tx_hex: string + label: string + output_details: _lnrpc_OutputDetail__Output[] + previous_outpoints: _lnrpc_PreviousOutPoint__Output[] +} diff --git a/src/grpc/types/lnrpc/TransactionDetails.d.ts b/src/grpc/types/lnrpc/TransactionDetails.d.ts new file mode 100644 index 000000000..d210123f8 --- /dev/null +++ b/src/grpc/types/lnrpc/TransactionDetails.d.ts @@ -0,0 +1,10 @@ +import type { + Transaction as _lnrpc_Transaction, + Transaction__Output as _lnrpc_Transaction__Output, +} from '../lnrpc/Transaction' +export interface TransactionDetails { + transactions?: _lnrpc_Transaction[] +} +export interface TransactionDetails__Output { + transactions: _lnrpc_Transaction__Output[] +} diff --git a/src/grpc/types/lnrpc/UnlockWalletRequest.d.ts b/src/grpc/types/lnrpc/UnlockWalletRequest.d.ts new file mode 100644 index 000000000..8d35564c3 --- /dev/null +++ b/src/grpc/types/lnrpc/UnlockWalletRequest.d.ts @@ -0,0 +1,17 @@ +/// +import type { + ChanBackupSnapshot as _lnrpc_ChanBackupSnapshot, + ChanBackupSnapshot__Output as _lnrpc_ChanBackupSnapshot__Output, +} from '../lnrpc/ChanBackupSnapshot' +export interface UnlockWalletRequest { + wallet_password?: Buffer | Uint8Array | string + recovery_window?: number + channel_backups?: _lnrpc_ChanBackupSnapshot | null + stateless_init?: boolean +} +export interface UnlockWalletRequest__Output { + wallet_password: Buffer + recovery_window: number + channel_backups: _lnrpc_ChanBackupSnapshot__Output | null + stateless_init: boolean +} diff --git a/src/grpc/types/lnrpc/UnlockWalletResponse.d.ts b/src/grpc/types/lnrpc/UnlockWalletResponse.d.ts new file mode 100644 index 000000000..82e289613 --- /dev/null +++ b/src/grpc/types/lnrpc/UnlockWalletResponse.d.ts @@ -0,0 +1,2 @@ +export interface UnlockWalletResponse {} +export interface UnlockWalletResponse__Output {} diff --git a/src/grpc/types/lnrpc/UpdateFailure.d.ts b/src/grpc/types/lnrpc/UpdateFailure.d.ts new file mode 100644 index 000000000..c8c4b53b9 --- /dev/null +++ b/src/grpc/types/lnrpc/UpdateFailure.d.ts @@ -0,0 +1,7 @@ +export declare enum UpdateFailure { + UPDATE_FAILURE_UNKNOWN = 0, + UPDATE_FAILURE_PENDING = 1, + UPDATE_FAILURE_NOT_FOUND = 2, + UPDATE_FAILURE_INTERNAL_ERR = 3, + UPDATE_FAILURE_INVALID_PARAMETER = 4, +} diff --git a/src/grpc/types/lnrpc/Utxo.d.ts b/src/grpc/types/lnrpc/Utxo.d.ts new file mode 100644 index 000000000..016941ece --- /dev/null +++ b/src/grpc/types/lnrpc/Utxo.d.ts @@ -0,0 +1,23 @@ +/// +import type { AddressType as _lnrpc_AddressType } from '../lnrpc/AddressType' +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { Long } from '@grpc/proto-loader' +export interface Utxo { + address_type?: _lnrpc_AddressType | keyof typeof _lnrpc_AddressType + address?: string + amount_sat?: number | string | Long + pk_script?: string + outpoint?: _lnrpc_OutPoint | null + confirmations?: number | string | Long +} +export interface Utxo__Output { + address_type: keyof typeof _lnrpc_AddressType + address: string + amount_sat: string + pk_script: string + outpoint: _lnrpc_OutPoint__Output | null + confirmations: string +} diff --git a/src/grpc/types/lnrpc/VerifyChanBackupResponse.d.ts b/src/grpc/types/lnrpc/VerifyChanBackupResponse.d.ts new file mode 100644 index 000000000..059e45ed6 --- /dev/null +++ b/src/grpc/types/lnrpc/VerifyChanBackupResponse.d.ts @@ -0,0 +1,2 @@ +export interface VerifyChanBackupResponse {} +export interface VerifyChanBackupResponse__Output {} diff --git a/src/grpc/types/lnrpc/VerifyMessageRequest.d.ts b/src/grpc/types/lnrpc/VerifyMessageRequest.d.ts new file mode 100644 index 000000000..0db8ac9b0 --- /dev/null +++ b/src/grpc/types/lnrpc/VerifyMessageRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface VerifyMessageRequest { + msg?: Buffer | Uint8Array | string + signature?: string +} +export interface VerifyMessageRequest__Output { + msg: Buffer + signature: string +} diff --git a/src/grpc/types/lnrpc/VerifyMessageResponse.d.ts b/src/grpc/types/lnrpc/VerifyMessageResponse.d.ts new file mode 100644 index 000000000..3c11f8267 --- /dev/null +++ b/src/grpc/types/lnrpc/VerifyMessageResponse.d.ts @@ -0,0 +1,8 @@ +export interface VerifyMessageResponse { + valid?: boolean + pubkey?: string +} +export interface VerifyMessageResponse__Output { + valid: boolean + pubkey: string +} diff --git a/src/grpc/types/lnrpc/WalletAccountBalance.d.ts b/src/grpc/types/lnrpc/WalletAccountBalance.d.ts new file mode 100644 index 000000000..21e042abc --- /dev/null +++ b/src/grpc/types/lnrpc/WalletAccountBalance.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface WalletAccountBalance { + confirmed_balance?: number | string | Long + unconfirmed_balance?: number | string | Long +} +export interface WalletAccountBalance__Output { + confirmed_balance: string + unconfirmed_balance: string +} diff --git a/src/grpc/types/lnrpc/WalletBalanceRequest.d.ts b/src/grpc/types/lnrpc/WalletBalanceRequest.d.ts new file mode 100644 index 000000000..ab8d3c9f3 --- /dev/null +++ b/src/grpc/types/lnrpc/WalletBalanceRequest.d.ts @@ -0,0 +1,2 @@ +export interface WalletBalanceRequest {} +export interface WalletBalanceRequest__Output {} diff --git a/src/grpc/types/lnrpc/WalletBalanceResponse.d.ts b/src/grpc/types/lnrpc/WalletBalanceResponse.d.ts new file mode 100644 index 000000000..0ae73230e --- /dev/null +++ b/src/grpc/types/lnrpc/WalletBalanceResponse.d.ts @@ -0,0 +1,26 @@ +/// +import type { + WalletAccountBalance as _lnrpc_WalletAccountBalance, + WalletAccountBalance__Output as _lnrpc_WalletAccountBalance__Output, +} from '../lnrpc/WalletAccountBalance' +import type { Long } from '@grpc/proto-loader' +export interface WalletBalanceResponse { + total_balance?: number | string | Long + confirmed_balance?: number | string | Long + unconfirmed_balance?: number | string | Long + account_balance?: { + [key: string]: _lnrpc_WalletAccountBalance + } + locked_balance?: number | string | Long + reserved_balance_anchor_chan?: number | string | Long +} +export interface WalletBalanceResponse__Output { + total_balance: string + confirmed_balance: string + unconfirmed_balance: string + account_balance: { + [key: string]: _lnrpc_WalletAccountBalance__Output + } + locked_balance: string + reserved_balance_anchor_chan: string +} diff --git a/src/grpc/types/lnrpc/WalletUnlocker.d.ts b/src/grpc/types/lnrpc/WalletUnlocker.d.ts new file mode 100644 index 000000000..a26988ee7 --- /dev/null +++ b/src/grpc/types/lnrpc/WalletUnlocker.d.ts @@ -0,0 +1,241 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + ChangePasswordRequest as _lnrpc_ChangePasswordRequest, + ChangePasswordRequest__Output as _lnrpc_ChangePasswordRequest__Output, +} from '../lnrpc/ChangePasswordRequest' +import type { + ChangePasswordResponse as _lnrpc_ChangePasswordResponse, + ChangePasswordResponse__Output as _lnrpc_ChangePasswordResponse__Output, +} from '../lnrpc/ChangePasswordResponse' +import type { + GenSeedRequest as _lnrpc_GenSeedRequest, + GenSeedRequest__Output as _lnrpc_GenSeedRequest__Output, +} from '../lnrpc/GenSeedRequest' +import type { + GenSeedResponse as _lnrpc_GenSeedResponse, + GenSeedResponse__Output as _lnrpc_GenSeedResponse__Output, +} from '../lnrpc/GenSeedResponse' +import type { + InitWalletRequest as _lnrpc_InitWalletRequest, + InitWalletRequest__Output as _lnrpc_InitWalletRequest__Output, +} from '../lnrpc/InitWalletRequest' +import type { + InitWalletResponse as _lnrpc_InitWalletResponse, + InitWalletResponse__Output as _lnrpc_InitWalletResponse__Output, +} from '../lnrpc/InitWalletResponse' +import type { + UnlockWalletRequest as _lnrpc_UnlockWalletRequest, + UnlockWalletRequest__Output as _lnrpc_UnlockWalletRequest__Output, +} from '../lnrpc/UnlockWalletRequest' +import type { + UnlockWalletResponse as _lnrpc_UnlockWalletResponse, + UnlockWalletResponse__Output as _lnrpc_UnlockWalletResponse__Output, +} from '../lnrpc/UnlockWalletResponse' +export interface WalletUnlockerClient extends grpc.Client { + ChangePassword( + argument: _lnrpc_ChangePasswordRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + ChangePassword( + argument: _lnrpc_ChangePasswordRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + ChangePassword( + argument: _lnrpc_ChangePasswordRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + ChangePassword( + argument: _lnrpc_ChangePasswordRequest, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + changePassword( + argument: _lnrpc_ChangePasswordRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + changePassword( + argument: _lnrpc_ChangePasswordRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + changePassword( + argument: _lnrpc_ChangePasswordRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + changePassword( + argument: _lnrpc_ChangePasswordRequest, + callback: grpc.requestCallback<_lnrpc_ChangePasswordResponse__Output> + ): grpc.ClientUnaryCall + GenSeed( + argument: _lnrpc_GenSeedRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + GenSeed( + argument: _lnrpc_GenSeedRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + GenSeed( + argument: _lnrpc_GenSeedRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + GenSeed( + argument: _lnrpc_GenSeedRequest, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + genSeed( + argument: _lnrpc_GenSeedRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + genSeed( + argument: _lnrpc_GenSeedRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + genSeed( + argument: _lnrpc_GenSeedRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + genSeed( + argument: _lnrpc_GenSeedRequest, + callback: grpc.requestCallback<_lnrpc_GenSeedResponse__Output> + ): grpc.ClientUnaryCall + InitWallet( + argument: _lnrpc_InitWalletRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + InitWallet( + argument: _lnrpc_InitWalletRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + InitWallet( + argument: _lnrpc_InitWalletRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + InitWallet( + argument: _lnrpc_InitWalletRequest, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + initWallet( + argument: _lnrpc_InitWalletRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + initWallet( + argument: _lnrpc_InitWalletRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + initWallet( + argument: _lnrpc_InitWalletRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + initWallet( + argument: _lnrpc_InitWalletRequest, + callback: grpc.requestCallback<_lnrpc_InitWalletResponse__Output> + ): grpc.ClientUnaryCall + UnlockWallet( + argument: _lnrpc_UnlockWalletRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + UnlockWallet( + argument: _lnrpc_UnlockWalletRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + UnlockWallet( + argument: _lnrpc_UnlockWalletRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + UnlockWallet( + argument: _lnrpc_UnlockWalletRequest, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + unlockWallet( + argument: _lnrpc_UnlockWalletRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + unlockWallet( + argument: _lnrpc_UnlockWalletRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + unlockWallet( + argument: _lnrpc_UnlockWalletRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall + unlockWallet( + argument: _lnrpc_UnlockWalletRequest, + callback: grpc.requestCallback<_lnrpc_UnlockWalletResponse__Output> + ): grpc.ClientUnaryCall +} +export interface WalletUnlockerHandlers + extends grpc.UntypedServiceImplementation { + ChangePassword: grpc.handleUnaryCall< + _lnrpc_ChangePasswordRequest__Output, + _lnrpc_ChangePasswordResponse + > + GenSeed: grpc.handleUnaryCall< + _lnrpc_GenSeedRequest__Output, + _lnrpc_GenSeedResponse + > + InitWallet: grpc.handleUnaryCall< + _lnrpc_InitWalletRequest__Output, + _lnrpc_InitWalletResponse + > + UnlockWallet: grpc.handleUnaryCall< + _lnrpc_UnlockWalletRequest__Output, + _lnrpc_UnlockWalletResponse + > +} +export interface WalletUnlockerDefinition extends grpc.ServiceDefinition { + ChangePassword: MethodDefinition< + _lnrpc_ChangePasswordRequest, + _lnrpc_ChangePasswordResponse, + _lnrpc_ChangePasswordRequest__Output, + _lnrpc_ChangePasswordResponse__Output + > + GenSeed: MethodDefinition< + _lnrpc_GenSeedRequest, + _lnrpc_GenSeedResponse, + _lnrpc_GenSeedRequest__Output, + _lnrpc_GenSeedResponse__Output + > + InitWallet: MethodDefinition< + _lnrpc_InitWalletRequest, + _lnrpc_InitWalletResponse, + _lnrpc_InitWalletRequest__Output, + _lnrpc_InitWalletResponse__Output + > + UnlockWallet: MethodDefinition< + _lnrpc_UnlockWalletRequest, + _lnrpc_UnlockWalletResponse, + _lnrpc_UnlockWalletRequest__Output, + _lnrpc_UnlockWalletResponse__Output + > +} diff --git a/src/grpc/types/lnrpc/WatchOnly.d.ts b/src/grpc/types/lnrpc/WatchOnly.d.ts new file mode 100644 index 000000000..8dc5e15f4 --- /dev/null +++ b/src/grpc/types/lnrpc/WatchOnly.d.ts @@ -0,0 +1,17 @@ +/// +/// +import type { + WatchOnlyAccount as _lnrpc_WatchOnlyAccount, + WatchOnlyAccount__Output as _lnrpc_WatchOnlyAccount__Output, +} from '../lnrpc/WatchOnlyAccount' +import type { Long } from '@grpc/proto-loader' +export interface WatchOnly { + master_key_birthday_timestamp?: number | string | Long + master_key_fingerprint?: Buffer | Uint8Array | string + accounts?: _lnrpc_WatchOnlyAccount[] +} +export interface WatchOnly__Output { + master_key_birthday_timestamp: string + master_key_fingerprint: Buffer + accounts: _lnrpc_WatchOnlyAccount__Output[] +} diff --git a/src/grpc/types/lnrpc/WatchOnlyAccount.d.ts b/src/grpc/types/lnrpc/WatchOnlyAccount.d.ts new file mode 100644 index 000000000..04cf8c019 --- /dev/null +++ b/src/grpc/types/lnrpc/WatchOnlyAccount.d.ts @@ -0,0 +1,12 @@ +export interface WatchOnlyAccount { + purpose?: number + coin_type?: number + account?: number + xpub?: string +} +export interface WatchOnlyAccount__Output { + purpose: number + coin_type: number + account: number + xpub: string +} diff --git a/src/grpc/types/lnrpc_proxy/AddInvoiceResponse.d.ts b/src/grpc/types/lnrpc_proxy/AddInvoiceResponse.d.ts new file mode 100644 index 000000000..f18fa173b --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/AddInvoiceResponse.d.ts @@ -0,0 +1,15 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface AddInvoiceResponse { + r_hash?: Buffer | Uint8Array | string + payment_request?: string + add_index?: number | string | Long + payment_addr?: Buffer | Uint8Array | string +} +export interface AddInvoiceResponse__Output { + r_hash: Buffer + payment_request: string + add_index: string + payment_addr: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/Amount.d.ts b/src/grpc/types/lnrpc_proxy/Amount.d.ts new file mode 100644 index 000000000..6143cedf4 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Amount.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface Amount { + sat?: number | string | Long + msat?: number | string | Long +} +export interface Amount__Output { + sat: string + msat: string +} diff --git a/src/grpc/types/lnrpc_proxy/Chain.d.ts b/src/grpc/types/lnrpc_proxy/Chain.d.ts new file mode 100644 index 000000000..126d96b40 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Chain.d.ts @@ -0,0 +1,8 @@ +export interface Chain { + chain?: string + network?: string +} +export interface Chain__Output { + chain: string + network: string +} diff --git a/src/grpc/types/lnrpc_proxy/ChanInfoRequest.d.ts b/src/grpc/types/lnrpc_proxy/ChanInfoRequest.d.ts new file mode 100644 index 000000000..1c5dfce44 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChanInfoRequest.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ChanInfoRequest { + chan_id?: number | string | Long +} +export interface ChanInfoRequest__Output { + chan_id: string +} diff --git a/src/grpc/types/lnrpc_proxy/Channel.d.ts b/src/grpc/types/lnrpc_proxy/Channel.d.ts new file mode 100644 index 000000000..24e043d24 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Channel.d.ts @@ -0,0 +1,77 @@ +/// +import type { + HTLC as _lnrpc_proxy_HTLC, + HTLC__Output as _lnrpc_proxy_HTLC__Output, +} from '../lnrpc_proxy/HTLC' +import type { CommitmentType as _lnrpc_proxy_CommitmentType } from '../lnrpc_proxy/CommitmentType' +import type { + ChannelConstraints as _lnrpc_proxy_ChannelConstraints, + ChannelConstraints__Output as _lnrpc_proxy_ChannelConstraints__Output, +} from '../lnrpc_proxy/ChannelConstraints' +import type { Long } from '@grpc/proto-loader' +export interface Channel { + active?: boolean + remote_pubkey?: string + channel_point?: string + chan_id?: number | string | Long + capacity?: number | string | Long + local_balance?: number | string | Long + remote_balance?: number | string | Long + commit_fee?: number | string | Long + commit_weight?: number | string | Long + fee_per_kw?: number | string | Long + unsettled_balance?: number | string | Long + total_satoshis_sent?: number | string | Long + total_satoshis_received?: number | string | Long + num_updates?: number | string | Long + pending_htlcs?: _lnrpc_proxy_HTLC[] + csv_delay?: number + private?: boolean + initiator?: boolean + chan_status_flags?: string + local_chan_reserve_sat?: number | string | Long + remote_chan_reserve_sat?: number | string | Long + static_remote_key?: boolean + lifetime?: number | string | Long + uptime?: number | string | Long + close_address?: string + commitment_type?: + | _lnrpc_proxy_CommitmentType + | keyof typeof _lnrpc_proxy_CommitmentType + push_amount_sat?: number | string | Long + thaw_height?: number + local_constraints?: _lnrpc_proxy_ChannelConstraints | null + remote_constraints?: _lnrpc_proxy_ChannelConstraints | null +} +export interface Channel__Output { + active: boolean + remote_pubkey: string + channel_point: string + chan_id: string + capacity: string + local_balance: string + remote_balance: string + commit_fee: string + commit_weight: string + fee_per_kw: string + unsettled_balance: string + total_satoshis_sent: string + total_satoshis_received: string + num_updates: string + pending_htlcs: _lnrpc_proxy_HTLC__Output[] + csv_delay: number + private: boolean + initiator: boolean + chan_status_flags: string + local_chan_reserve_sat: string + remote_chan_reserve_sat: string + static_remote_key: boolean + lifetime: string + uptime: string + close_address: string + commitment_type: keyof typeof _lnrpc_proxy_CommitmentType + push_amount_sat: string + thaw_height: number + local_constraints: _lnrpc_proxy_ChannelConstraints__Output | null + remote_constraints: _lnrpc_proxy_ChannelConstraints__Output | null +} diff --git a/src/grpc/types/lnrpc_proxy/ChannelBalanceRequest.d.ts b/src/grpc/types/lnrpc_proxy/ChannelBalanceRequest.d.ts new file mode 100644 index 000000000..114836378 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelBalanceRequest.d.ts @@ -0,0 +1,2 @@ +export interface ChannelBalanceRequest {} +export interface ChannelBalanceRequest__Output {} diff --git a/src/grpc/types/lnrpc_proxy/ChannelBalanceResponse.d.ts b/src/grpc/types/lnrpc_proxy/ChannelBalanceResponse.d.ts new file mode 100644 index 000000000..27de82319 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelBalanceResponse.d.ts @@ -0,0 +1,26 @@ +/// +import type { + Amount as _lnrpc_proxy_Amount, + Amount__Output as _lnrpc_proxy_Amount__Output, +} from '../lnrpc_proxy/Amount' +import type { Long } from '@grpc/proto-loader' +export interface ChannelBalanceResponse { + balance?: number | string | Long + pending_open_balance?: number | string | Long + local_balance?: _lnrpc_proxy_Amount | null + remote_balance?: _lnrpc_proxy_Amount | null + unsettled_local_balance?: _lnrpc_proxy_Amount | null + unsettled_remote_balance?: _lnrpc_proxy_Amount | null + pending_open_local_balance?: _lnrpc_proxy_Amount | null + pending_open_remote_balance?: _lnrpc_proxy_Amount | null +} +export interface ChannelBalanceResponse__Output { + balance: string + pending_open_balance: string + local_balance: _lnrpc_proxy_Amount__Output | null + remote_balance: _lnrpc_proxy_Amount__Output | null + unsettled_local_balance: _lnrpc_proxy_Amount__Output | null + unsettled_remote_balance: _lnrpc_proxy_Amount__Output | null + pending_open_local_balance: _lnrpc_proxy_Amount__Output | null + pending_open_remote_balance: _lnrpc_proxy_Amount__Output | null +} diff --git a/src/grpc/types/lnrpc_proxy/ChannelConstraints.d.ts b/src/grpc/types/lnrpc_proxy/ChannelConstraints.d.ts new file mode 100644 index 000000000..6cc1ffcc5 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelConstraints.d.ts @@ -0,0 +1,18 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface ChannelConstraints { + csv_delay?: number + chan_reserve_sat?: number | string | Long + dust_limit_sat?: number | string | Long + max_pending_amt_msat?: number | string | Long + min_htlc_msat?: number | string | Long + max_accepted_htlcs?: number +} +export interface ChannelConstraints__Output { + csv_delay: number + chan_reserve_sat: string + dust_limit_sat: string + max_pending_amt_msat: string + min_htlc_msat: string + max_accepted_htlcs: number +} diff --git a/src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts b/src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts new file mode 100644 index 000000000..2ae605dfe --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts @@ -0,0 +1,26 @@ +/// +import type { + RoutingPolicy as _lnrpc_proxy_RoutingPolicy, + RoutingPolicy__Output as _lnrpc_proxy_RoutingPolicy__Output, +} from '../lnrpc_proxy/RoutingPolicy' +import type { Long } from '@grpc/proto-loader' +export interface ChannelEdge { + channel_id?: number | string | Long + chan_point?: string + last_update?: number + node1_pub?: string + node2_pub?: string + capacity?: number | string | Long + node1_policy?: _lnrpc_proxy_RoutingPolicy | null + node2_policy?: _lnrpc_proxy_RoutingPolicy | null +} +export interface ChannelEdge__Output { + channel_id: string + chan_point: string + last_update: number + node1_pub: string + node2_pub: string + capacity: string + node1_policy: _lnrpc_proxy_RoutingPolicy__Output | null + node2_policy: _lnrpc_proxy_RoutingPolicy__Output | null +} diff --git a/src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts b/src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts new file mode 100644 index 000000000..2345bf999 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts @@ -0,0 +1,31 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface ChannelUpdate { + signature?: Buffer | Uint8Array | string + chain_hash?: Buffer | Uint8Array | string + chan_id?: number | string | Long + timestamp?: number + channel_flags?: number + time_lock_delta?: number + htlc_minimum_msat?: number | string | Long + base_fee?: number + fee_rate?: number + message_flags?: number + htlc_maximum_msat?: number | string | Long + extra_opaque_data?: Buffer | Uint8Array | string +} +export interface ChannelUpdate__Output { + signature: Buffer + chain_hash: Buffer + chan_id: string + timestamp: number + channel_flags: number + time_lock_delta: number + htlc_minimum_msat: string + base_fee: number + fee_rate: number + message_flags: number + htlc_maximum_msat: string + extra_opaque_data: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/CommitmentType.d.ts b/src/grpc/types/lnrpc_proxy/CommitmentType.d.ts new file mode 100644 index 000000000..60d8955af --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/CommitmentType.d.ts @@ -0,0 +1,6 @@ +export declare enum CommitmentType { + LEGACY = 0, + STATIC_REMOTE_KEY = 1, + ANCHORS = 2, + UNKNOWN_COMMITMENT_TYPE = 999, +} diff --git a/src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts b/src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts new file mode 100644 index 000000000..deb1164b9 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface EdgeLocator { + channel_id?: number | string | Long + direction_reverse?: boolean +} +export interface EdgeLocator__Output { + channel_id: string + direction_reverse: boolean +} diff --git a/src/grpc/types/lnrpc_proxy/Failure.d.ts b/src/grpc/types/lnrpc_proxy/Failure.d.ts new file mode 100644 index 000000000..39d5270e9 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Failure.d.ts @@ -0,0 +1,58 @@ +/// +/// +import type { + ChannelUpdate as _lnrpc_proxy_ChannelUpdate, + ChannelUpdate__Output as _lnrpc_proxy_ChannelUpdate__Output, +} from '../lnrpc_proxy/ChannelUpdate' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_proxy_Failure_FailureCode { + RESERVED = 0, + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1, + INCORRECT_PAYMENT_AMOUNT = 2, + FINAL_INCORRECT_CLTV_EXPIRY = 3, + FINAL_INCORRECT_HTLC_AMOUNT = 4, + FINAL_EXPIRY_TOO_SOON = 5, + INVALID_REALM = 6, + EXPIRY_TOO_SOON = 7, + INVALID_ONION_VERSION = 8, + INVALID_ONION_HMAC = 9, + INVALID_ONION_KEY = 10, + AMOUNT_BELOW_MINIMUM = 11, + FEE_INSUFFICIENT = 12, + INCORRECT_CLTV_EXPIRY = 13, + CHANNEL_DISABLED = 14, + TEMPORARY_CHANNEL_FAILURE = 15, + REQUIRED_NODE_FEATURE_MISSING = 16, + REQUIRED_CHANNEL_FEATURE_MISSING = 17, + UNKNOWN_NEXT_PEER = 18, + TEMPORARY_NODE_FAILURE = 19, + PERMANENT_NODE_FAILURE = 20, + PERMANENT_CHANNEL_FAILURE = 21, + EXPIRY_TOO_FAR = 22, + MPP_TIMEOUT = 23, + INTERNAL_FAILURE = 997, + UNKNOWN_FAILURE = 998, + UNREADABLE_FAILURE = 999, +} +export interface Failure { + code?: + | _lnrpc_proxy_Failure_FailureCode + | keyof typeof _lnrpc_proxy_Failure_FailureCode + channel_update?: _lnrpc_proxy_ChannelUpdate | null + htlc_msat?: number | string | Long + onion_sha_256?: Buffer | Uint8Array | string + cltv_expiry?: number + flags?: number + failure_source_index?: number + height?: number +} +export interface Failure__Output { + code: keyof typeof _lnrpc_proxy_Failure_FailureCode + channel_update: _lnrpc_proxy_ChannelUpdate__Output | null + htlc_msat: string + onion_sha_256: Buffer + cltv_expiry: number + flags: number + failure_source_index: number + height: number +} diff --git a/src/grpc/types/lnrpc_proxy/Feature.d.ts b/src/grpc/types/lnrpc_proxy/Feature.d.ts new file mode 100644 index 000000000..4ce155a67 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Feature.d.ts @@ -0,0 +1,10 @@ +export interface Feature { + name?: string + is_required?: boolean + is_known?: boolean +} +export interface Feature__Output { + name: string + is_required: boolean + is_known: boolean +} diff --git a/src/grpc/types/lnrpc_proxy/FeatureBit.d.ts b/src/grpc/types/lnrpc_proxy/FeatureBit.d.ts new file mode 100644 index 000000000..08dae26b9 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/FeatureBit.d.ts @@ -0,0 +1,19 @@ +export declare enum FeatureBit { + DATALOSS_PROTECT_REQ = 0, + DATALOSS_PROTECT_OPT = 1, + INITIAL_ROUING_SYNC = 3, + UPFRONT_SHUTDOWN_SCRIPT_REQ = 4, + UPFRONT_SHUTDOWN_SCRIPT_OPT = 5, + GOSSIP_QUERIES_REQ = 6, + GOSSIP_QUERIES_OPT = 7, + TLV_ONION_REQ = 8, + TLV_ONION_OPT = 9, + EXT_GOSSIP_QUERIES_REQ = 10, + EXT_GOSSIP_QUERIES_OPT = 11, + STATIC_REMOTE_KEY_REQ = 12, + STATIC_REMOTE_KEY_OPT = 13, + PAYMENT_ADDR_REQ = 14, + PAYMENT_ADDR_OPT = 15, + MPP_REQ = 16, + MPP_OPT = 17, +} diff --git a/src/grpc/types/lnrpc_proxy/FeeLimit.d.ts b/src/grpc/types/lnrpc_proxy/FeeLimit.d.ts new file mode 100644 index 000000000..8f536339e --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/FeeLimit.d.ts @@ -0,0 +1,14 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface FeeLimit { + fixed?: number | string | Long + percent?: number | string | Long + fixed_msat?: number | string | Long + limit?: 'fixed' | 'fixed_msat' | 'percent' +} +export interface FeeLimit__Output { + fixed?: string + percent?: string + fixed_msat?: string + limit: 'fixed' | 'fixed_msat' | 'percent' +} diff --git a/src/grpc/types/lnrpc_proxy/GetInfoRequest.d.ts b/src/grpc/types/lnrpc_proxy/GetInfoRequest.d.ts new file mode 100644 index 000000000..bcc9fbc46 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/GetInfoRequest.d.ts @@ -0,0 +1,2 @@ +export interface GetInfoRequest {} +export interface GetInfoRequest__Output {} diff --git a/src/grpc/types/lnrpc_proxy/GetInfoResponse.d.ts b/src/grpc/types/lnrpc_proxy/GetInfoResponse.d.ts new file mode 100644 index 000000000..699f24f2f --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/GetInfoResponse.d.ts @@ -0,0 +1,54 @@ +/// +import type { + Chain as _lnrpc_proxy_Chain, + Chain__Output as _lnrpc_proxy_Chain__Output, +} from '../lnrpc_proxy/Chain' +import type { + Feature as _lnrpc_proxy_Feature, + Feature__Output as _lnrpc_proxy_Feature__Output, +} from '../lnrpc_proxy/Feature' +import type { Long } from '@grpc/proto-loader' +export interface GetInfoResponse { + identity_pubkey?: string + alias?: string + num_pending_channels?: number + num_active_channels?: number + num_peers?: number + block_height?: number + block_hash?: string + synced_to_chain?: boolean + testnet?: boolean + uris?: string[] + best_header_timestamp?: number | string | Long + version?: string + num_inactive_channels?: number + chains?: _lnrpc_proxy_Chain[] + color?: string + synced_to_graph?: boolean + features?: { + [key: number]: _lnrpc_proxy_Feature + } + commit_hash?: string +} +export interface GetInfoResponse__Output { + identity_pubkey: string + alias: string + num_pending_channels: number + num_active_channels: number + num_peers: number + block_height: number + block_hash: string + synced_to_chain: boolean + testnet: boolean + uris: string[] + best_header_timestamp: string + version: string + num_inactive_channels: number + chains: _lnrpc_proxy_Chain__Output[] + color: string + synced_to_graph: boolean + features: { + [key: number]: _lnrpc_proxy_Feature__Output + } + commit_hash: string +} diff --git a/src/grpc/types/lnrpc_proxy/HTLC.d.ts b/src/grpc/types/lnrpc_proxy/HTLC.d.ts new file mode 100644 index 000000000..0c899007a --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/HTLC.d.ts @@ -0,0 +1,21 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface HTLC { + incoming?: boolean + amount?: number | string | Long + hash_lock?: Buffer | Uint8Array | string + expiration_height?: number + htlc_index?: number | string | Long + forwarding_channel?: number | string | Long + forwarding_htlc_index?: number | string | Long +} +export interface HTLC__Output { + incoming: boolean + amount: string + hash_lock: Buffer + expiration_height: number + htlc_index: string + forwarding_channel: string + forwarding_htlc_index: string +} diff --git a/src/grpc/types/lnrpc_proxy/HTLCAttempt.d.ts b/src/grpc/types/lnrpc_proxy/HTLCAttempt.d.ts new file mode 100644 index 000000000..ba779edae --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/HTLCAttempt.d.ts @@ -0,0 +1,34 @@ +/// +/// +import type { + Route as _lnrpc_proxy_Route, + Route__Output as _lnrpc_proxy_Route__Output, +} from '../lnrpc_proxy/Route' +import type { + Failure as _lnrpc_proxy_Failure, + Failure__Output as _lnrpc_proxy_Failure__Output, +} from '../lnrpc_proxy/Failure' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_proxy_HTLCAttempt_HTLCStatus { + IN_FLIGHT = 0, + SUCCEEDED = 1, + FAILED = 2, +} +export interface HTLCAttempt { + status?: + | _lnrpc_proxy_HTLCAttempt_HTLCStatus + | keyof typeof _lnrpc_proxy_HTLCAttempt_HTLCStatus + route?: _lnrpc_proxy_Route | null + attempt_time_ns?: number | string | Long + resolve_time_ns?: number | string | Long + failure?: _lnrpc_proxy_Failure | null + preimage?: Buffer | Uint8Array | string +} +export interface HTLCAttempt__Output { + status: keyof typeof _lnrpc_proxy_HTLCAttempt_HTLCStatus + route: _lnrpc_proxy_Route__Output | null + attempt_time_ns: string + resolve_time_ns: string + failure: _lnrpc_proxy_Failure__Output | null + preimage: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/Hop.d.ts b/src/grpc/types/lnrpc_proxy/Hop.d.ts new file mode 100644 index 000000000..f3b4ba438 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Hop.d.ts @@ -0,0 +1,37 @@ +/// +/// +import type { + MPPRecord as _lnrpc_proxy_MPPRecord, + MPPRecord__Output as _lnrpc_proxy_MPPRecord__Output, +} from '../lnrpc_proxy/MPPRecord' +import type { Long } from '@grpc/proto-loader' +export interface Hop { + chan_id?: number | string | Long + chan_capacity?: number | string | Long + amt_to_forward?: number | string | Long + fee?: number | string | Long + expiry?: number + amt_to_forward_msat?: number | string | Long + fee_msat?: number | string | Long + pub_key?: string + tlv_payload?: boolean + mpp_record?: _lnrpc_proxy_MPPRecord | null + custom_records?: { + [key: number]: Buffer | Uint8Array | string + } +} +export interface Hop__Output { + chan_id: string + chan_capacity: string + amt_to_forward: string + fee: string + expiry: number + amt_to_forward_msat: string + fee_msat: string + pub_key: string + tlv_payload: boolean + mpp_record: _lnrpc_proxy_MPPRecord__Output | null + custom_records: { + [key: number]: Buffer + } +} diff --git a/src/grpc/types/lnrpc_proxy/HopHint.d.ts b/src/grpc/types/lnrpc_proxy/HopHint.d.ts new file mode 100644 index 000000000..810666f8b --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/HopHint.d.ts @@ -0,0 +1,16 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface HopHint { + node_id?: string + chan_id?: number | string | Long + fee_base_msat?: number + fee_proportional_millionths?: number + cltv_expiry_delta?: number +} +export interface HopHint__Output { + node_id: string + chan_id: string + fee_base_msat: number + fee_proportional_millionths: number + cltv_expiry_delta: number +} diff --git a/src/grpc/types/lnrpc_proxy/Invoice.d.ts b/src/grpc/types/lnrpc_proxy/Invoice.d.ts new file mode 100644 index 000000000..8ae421789 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Invoice.d.ts @@ -0,0 +1,81 @@ +/// +/// +import type { + RouteHint as _lnrpc_proxy_RouteHint, + RouteHint__Output as _lnrpc_proxy_RouteHint__Output, +} from '../lnrpc_proxy/RouteHint' +import type { + InvoiceHTLC as _lnrpc_proxy_InvoiceHTLC, + InvoiceHTLC__Output as _lnrpc_proxy_InvoiceHTLC__Output, +} from '../lnrpc_proxy/InvoiceHTLC' +import type { + Feature as _lnrpc_proxy_Feature, + Feature__Output as _lnrpc_proxy_Feature__Output, +} from '../lnrpc_proxy/Feature' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_proxy_Invoice_InvoiceState { + OPEN = 0, + SETTLED = 1, + CANCELED = 2, + ACCEPTED = 3, +} +export interface Invoice { + memo?: string + r_preimage?: Buffer | Uint8Array | string + r_hash?: Buffer | Uint8Array | string + value?: number | string | Long + settled?: boolean + creation_date?: number | string | Long + settle_date?: number | string | Long + payment_request?: string + description_hash?: Buffer | Uint8Array | string + expiry?: number | string | Long + fallback_addr?: string + cltv_expiry?: number | string | Long + route_hints?: _lnrpc_proxy_RouteHint[] + private?: boolean + add_index?: number | string | Long + settle_index?: number | string | Long + amt_paid?: number | string | Long + amt_paid_sat?: number | string | Long + amt_paid_msat?: number | string | Long + state?: + | _lnrpc_proxy_Invoice_InvoiceState + | keyof typeof _lnrpc_proxy_Invoice_InvoiceState + htlcs?: _lnrpc_proxy_InvoiceHTLC[] + value_msat?: number | string | Long + features?: { + [key: number]: _lnrpc_proxy_Feature + } + is_keysend?: boolean + payment_addr?: Buffer | Uint8Array | string +} +export interface Invoice__Output { + memo: string + r_preimage: Buffer + r_hash: Buffer + value: string + settled: boolean + creation_date: string + settle_date: string + payment_request: string + description_hash: Buffer + expiry: string + fallback_addr: string + cltv_expiry: string + route_hints: _lnrpc_proxy_RouteHint__Output[] + private: boolean + add_index: string + settle_index: string + amt_paid: string + amt_paid_sat: string + amt_paid_msat: string + state: keyof typeof _lnrpc_proxy_Invoice_InvoiceState + htlcs: _lnrpc_proxy_InvoiceHTLC__Output[] + value_msat: string + features: { + [key: number]: _lnrpc_proxy_Feature__Output + } + is_keysend: boolean + payment_addr: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts b/src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts new file mode 100644 index 000000000..60c755c4d --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts @@ -0,0 +1,34 @@ +/// +/// +import type { InvoiceHTLCState as _lnrpc_proxy_InvoiceHTLCState } from '../lnrpc_proxy/InvoiceHTLCState' +import type { Long } from '@grpc/proto-loader' +export interface InvoiceHTLC { + chan_id?: number | string | Long + htlc_index?: number | string | Long + amt_msat?: number | string | Long + accept_height?: number + accept_time?: number | string | Long + resolve_time?: number | string | Long + expiry_height?: number + state?: + | _lnrpc_proxy_InvoiceHTLCState + | keyof typeof _lnrpc_proxy_InvoiceHTLCState + custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + mpp_total_amt_msat?: number | string | Long +} +export interface InvoiceHTLC__Output { + chan_id: string + htlc_index: string + amt_msat: string + accept_height: number + accept_time: string + resolve_time: string + expiry_height: number + state: keyof typeof _lnrpc_proxy_InvoiceHTLCState + custom_records: { + [key: number]: Buffer + } + mpp_total_amt_msat: string +} diff --git a/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.d.ts b/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.d.ts new file mode 100644 index 000000000..67bc001d6 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.d.ts @@ -0,0 +1,5 @@ +export declare enum InvoiceHTLCState { + ACCEPTED = 0, + SETTLED = 1, + CANCELED = 2, +} diff --git a/src/grpc/types/lnrpc_proxy/InvoiceSubscription.d.ts b/src/grpc/types/lnrpc_proxy/InvoiceSubscription.d.ts new file mode 100644 index 000000000..d5ad6a373 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/InvoiceSubscription.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface InvoiceSubscription { + add_index?: number | string | Long + settle_index?: number | string | Long +} +export interface InvoiceSubscription__Output { + add_index: string + settle_index: string +} diff --git a/src/grpc/types/lnrpc_proxy/Lightning.d.ts b/src/grpc/types/lnrpc_proxy/Lightning.d.ts new file mode 100644 index 000000000..74c6ecb7d --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Lightning.d.ts @@ -0,0 +1,562 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + AddInvoiceResponse as _lnrpc_proxy_AddInvoiceResponse, + AddInvoiceResponse__Output as _lnrpc_proxy_AddInvoiceResponse__Output, +} from '../lnrpc_proxy/AddInvoiceResponse' +import type { + ChanInfoRequest as _lnrpc_proxy_ChanInfoRequest, + ChanInfoRequest__Output as _lnrpc_proxy_ChanInfoRequest__Output, +} from '../lnrpc_proxy/ChanInfoRequest' +import type { + ChannelBalanceRequest as _lnrpc_proxy_ChannelBalanceRequest, + ChannelBalanceRequest__Output as _lnrpc_proxy_ChannelBalanceRequest__Output, +} from '../lnrpc_proxy/ChannelBalanceRequest' +import type { + ChannelBalanceResponse as _lnrpc_proxy_ChannelBalanceResponse, + ChannelBalanceResponse__Output as _lnrpc_proxy_ChannelBalanceResponse__Output, +} from '../lnrpc_proxy/ChannelBalanceResponse' +import type { + ChannelEdge as _lnrpc_proxy_ChannelEdge, + ChannelEdge__Output as _lnrpc_proxy_ChannelEdge__Output, +} from '../lnrpc_proxy/ChannelEdge' +import type { + GetInfoRequest as _lnrpc_proxy_GetInfoRequest, + GetInfoRequest__Output as _lnrpc_proxy_GetInfoRequest__Output, +} from '../lnrpc_proxy/GetInfoRequest' +import type { + GetInfoResponse as _lnrpc_proxy_GetInfoResponse, + GetInfoResponse__Output as _lnrpc_proxy_GetInfoResponse__Output, +} from '../lnrpc_proxy/GetInfoResponse' +import type { + Invoice as _lnrpc_proxy_Invoice, + Invoice__Output as _lnrpc_proxy_Invoice__Output, +} from '../lnrpc_proxy/Invoice' +import type { + InvoiceSubscription as _lnrpc_proxy_InvoiceSubscription, + InvoiceSubscription__Output as _lnrpc_proxy_InvoiceSubscription__Output, +} from '../lnrpc_proxy/InvoiceSubscription' +import type { + ListChannelsRequest as _lnrpc_proxy_ListChannelsRequest, + ListChannelsRequest__Output as _lnrpc_proxy_ListChannelsRequest__Output, +} from '../lnrpc_proxy/ListChannelsRequest' +import type { + ListChannelsResponse as _lnrpc_proxy_ListChannelsResponse, + ListChannelsResponse__Output as _lnrpc_proxy_ListChannelsResponse__Output, +} from '../lnrpc_proxy/ListChannelsResponse' +import type { + QueryRoutesRequest as _lnrpc_proxy_QueryRoutesRequest, + QueryRoutesRequest__Output as _lnrpc_proxy_QueryRoutesRequest__Output, +} from '../lnrpc_proxy/QueryRoutesRequest' +import type { + QueryRoutesResponse as _lnrpc_proxy_QueryRoutesResponse, + QueryRoutesResponse__Output as _lnrpc_proxy_QueryRoutesResponse__Output, +} from '../lnrpc_proxy/QueryRoutesResponse' +import type { + SendRequest as _lnrpc_proxy_SendRequest, + SendRequest__Output as _lnrpc_proxy_SendRequest__Output, +} from '../lnrpc_proxy/SendRequest' +import type { + SendResponse as _lnrpc_proxy_SendResponse, + SendResponse__Output as _lnrpc_proxy_SendResponse__Output, +} from '../lnrpc_proxy/SendResponse' +import type { + SignMessageRequest as _lnrpc_proxy_SignMessageRequest, + SignMessageRequest__Output as _lnrpc_proxy_SignMessageRequest__Output, +} from '../lnrpc_proxy/SignMessageRequest' +import type { + SignMessageResponse as _lnrpc_proxy_SignMessageResponse, + SignMessageResponse__Output as _lnrpc_proxy_SignMessageResponse__Output, +} from '../lnrpc_proxy/SignMessageResponse' +import type { + VerifyMessageRequest as _lnrpc_proxy_VerifyMessageRequest, + VerifyMessageRequest__Output as _lnrpc_proxy_VerifyMessageRequest__Output, +} from '../lnrpc_proxy/VerifyMessageRequest' +import type { + VerifyMessageResponse as _lnrpc_proxy_VerifyMessageResponse, + VerifyMessageResponse__Output as _lnrpc_proxy_VerifyMessageResponse__Output, +} from '../lnrpc_proxy/VerifyMessageResponse' +export interface LightningClient extends grpc.Client { + AddInvoice( + argument: _lnrpc_proxy_Invoice, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_proxy_Invoice, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_proxy_Invoice, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + AddInvoice( + argument: _lnrpc_proxy_Invoice, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_proxy_Invoice, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_proxy_Invoice, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_proxy_Invoice, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + addInvoice( + argument: _lnrpc_proxy_Invoice, + callback: grpc.requestCallback<_lnrpc_proxy_AddInvoiceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + ChannelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + channelBalance( + argument: _lnrpc_proxy_ChannelBalanceRequest, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelBalanceResponse__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + getChanInfo( + argument: _lnrpc_proxy_ChanInfoRequest, + callback: grpc.requestCallback<_lnrpc_proxy_ChannelEdge__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_proxy_GetInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_proxy_GetInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_proxy_GetInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + GetInfo( + argument: _lnrpc_proxy_GetInfoRequest, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_proxy_GetInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_proxy_GetInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_proxy_GetInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + getInfo( + argument: _lnrpc_proxy_GetInfoRequest, + callback: grpc.requestCallback<_lnrpc_proxy_GetInfoResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + ListChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + listChannels( + argument: _lnrpc_proxy_ListChannelsRequest, + callback: grpc.requestCallback<_lnrpc_proxy_ListChannelsResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + QueryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + queryRoutes( + argument: _lnrpc_proxy_QueryRoutesRequest, + callback: grpc.requestCallback<_lnrpc_proxy_QueryRoutesResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + SendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + sendPaymentSync( + argument: _lnrpc_proxy_SendRequest, + callback: grpc.requestCallback<_lnrpc_proxy_SendResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_proxy_SignMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_proxy_SignMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_proxy_SignMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _lnrpc_proxy_SignMessageRequest, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_proxy_SignMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_proxy_SignMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_proxy_SignMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _lnrpc_proxy_SignMessageRequest, + callback: grpc.requestCallback<_lnrpc_proxy_SignMessageResponse__Output> + ): grpc.ClientUnaryCall + SubscribeInvoices( + argument: _lnrpc_proxy_InvoiceSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_proxy_Invoice__Output> + SubscribeInvoices( + argument: _lnrpc_proxy_InvoiceSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_proxy_Invoice__Output> + subscribeInvoices( + argument: _lnrpc_proxy_InvoiceSubscription, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_proxy_Invoice__Output> + subscribeInvoices( + argument: _lnrpc_proxy_InvoiceSubscription, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_proxy_Invoice__Output> + VerifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _lnrpc_proxy_VerifyMessageRequest, + callback: grpc.requestCallback<_lnrpc_proxy_VerifyMessageResponse__Output> + ): grpc.ClientUnaryCall +} +export interface LightningHandlers extends grpc.UntypedServiceImplementation { + AddInvoice: grpc.handleUnaryCall< + _lnrpc_proxy_Invoice__Output, + _lnrpc_proxy_AddInvoiceResponse + > + ChannelBalance: grpc.handleUnaryCall< + _lnrpc_proxy_ChannelBalanceRequest__Output, + _lnrpc_proxy_ChannelBalanceResponse + > + GetChanInfo: grpc.handleUnaryCall< + _lnrpc_proxy_ChanInfoRequest__Output, + _lnrpc_proxy_ChannelEdge + > + GetInfo: grpc.handleUnaryCall< + _lnrpc_proxy_GetInfoRequest__Output, + _lnrpc_proxy_GetInfoResponse + > + ListChannels: grpc.handleUnaryCall< + _lnrpc_proxy_ListChannelsRequest__Output, + _lnrpc_proxy_ListChannelsResponse + > + QueryRoutes: grpc.handleUnaryCall< + _lnrpc_proxy_QueryRoutesRequest__Output, + _lnrpc_proxy_QueryRoutesResponse + > + SendPaymentSync: grpc.handleUnaryCall< + _lnrpc_proxy_SendRequest__Output, + _lnrpc_proxy_SendResponse + > + SignMessage: grpc.handleUnaryCall< + _lnrpc_proxy_SignMessageRequest__Output, + _lnrpc_proxy_SignMessageResponse + > + SubscribeInvoices: grpc.handleServerStreamingCall< + _lnrpc_proxy_InvoiceSubscription__Output, + _lnrpc_proxy_Invoice + > + VerifyMessage: grpc.handleUnaryCall< + _lnrpc_proxy_VerifyMessageRequest__Output, + _lnrpc_proxy_VerifyMessageResponse + > +} +export interface LightningDefinition extends grpc.ServiceDefinition { + AddInvoice: MethodDefinition< + _lnrpc_proxy_Invoice, + _lnrpc_proxy_AddInvoiceResponse, + _lnrpc_proxy_Invoice__Output, + _lnrpc_proxy_AddInvoiceResponse__Output + > + ChannelBalance: MethodDefinition< + _lnrpc_proxy_ChannelBalanceRequest, + _lnrpc_proxy_ChannelBalanceResponse, + _lnrpc_proxy_ChannelBalanceRequest__Output, + _lnrpc_proxy_ChannelBalanceResponse__Output + > + GetChanInfo: MethodDefinition< + _lnrpc_proxy_ChanInfoRequest, + _lnrpc_proxy_ChannelEdge, + _lnrpc_proxy_ChanInfoRequest__Output, + _lnrpc_proxy_ChannelEdge__Output + > + GetInfo: MethodDefinition< + _lnrpc_proxy_GetInfoRequest, + _lnrpc_proxy_GetInfoResponse, + _lnrpc_proxy_GetInfoRequest__Output, + _lnrpc_proxy_GetInfoResponse__Output + > + ListChannels: MethodDefinition< + _lnrpc_proxy_ListChannelsRequest, + _lnrpc_proxy_ListChannelsResponse, + _lnrpc_proxy_ListChannelsRequest__Output, + _lnrpc_proxy_ListChannelsResponse__Output + > + QueryRoutes: MethodDefinition< + _lnrpc_proxy_QueryRoutesRequest, + _lnrpc_proxy_QueryRoutesResponse, + _lnrpc_proxy_QueryRoutesRequest__Output, + _lnrpc_proxy_QueryRoutesResponse__Output + > + SendPaymentSync: MethodDefinition< + _lnrpc_proxy_SendRequest, + _lnrpc_proxy_SendResponse, + _lnrpc_proxy_SendRequest__Output, + _lnrpc_proxy_SendResponse__Output + > + SignMessage: MethodDefinition< + _lnrpc_proxy_SignMessageRequest, + _lnrpc_proxy_SignMessageResponse, + _lnrpc_proxy_SignMessageRequest__Output, + _lnrpc_proxy_SignMessageResponse__Output + > + SubscribeInvoices: MethodDefinition< + _lnrpc_proxy_InvoiceSubscription, + _lnrpc_proxy_Invoice, + _lnrpc_proxy_InvoiceSubscription__Output, + _lnrpc_proxy_Invoice__Output + > + VerifyMessage: MethodDefinition< + _lnrpc_proxy_VerifyMessageRequest, + _lnrpc_proxy_VerifyMessageResponse, + _lnrpc_proxy_VerifyMessageRequest__Output, + _lnrpc_proxy_VerifyMessageResponse__Output + > +} diff --git a/src/grpc/types/lnrpc_proxy/LightningAddress.d.ts b/src/grpc/types/lnrpc_proxy/LightningAddress.d.ts new file mode 100644 index 000000000..eef0d6ffd --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/LightningAddress.d.ts @@ -0,0 +1,8 @@ +export interface LightningAddress { + pubkey?: string + host?: string +} +export interface LightningAddress__Output { + pubkey: string + host: string +} diff --git a/src/grpc/types/lnrpc_proxy/ListChannelsRequest.d.ts b/src/grpc/types/lnrpc_proxy/ListChannelsRequest.d.ts new file mode 100644 index 000000000..17aa6139c --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ListChannelsRequest.d.ts @@ -0,0 +1,15 @@ +/// +export interface ListChannelsRequest { + active_only?: boolean + inactive_only?: boolean + public_only?: boolean + private_only?: boolean + peer?: Buffer | Uint8Array | string +} +export interface ListChannelsRequest__Output { + active_only: boolean + inactive_only: boolean + public_only: boolean + private_only: boolean + peer: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/ListChannelsResponse.d.ts b/src/grpc/types/lnrpc_proxy/ListChannelsResponse.d.ts new file mode 100644 index 000000000..ddb993a9e --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ListChannelsResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Channel as _lnrpc_proxy_Channel, + Channel__Output as _lnrpc_proxy_Channel__Output, +} from '../lnrpc_proxy/Channel' +export interface ListChannelsResponse { + channels?: _lnrpc_proxy_Channel[] +} +export interface ListChannelsResponse__Output { + channels: _lnrpc_proxy_Channel__Output[] +} diff --git a/src/grpc/types/lnrpc_proxy/MPPRecord.d.ts b/src/grpc/types/lnrpc_proxy/MPPRecord.d.ts new file mode 100644 index 000000000..ce16770f8 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/MPPRecord.d.ts @@ -0,0 +1,11 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface MPPRecord { + total_amt_msat?: number | string | Long + payment_addr?: Buffer | Uint8Array | string +} +export interface MPPRecord__Output { + total_amt_msat: string + payment_addr: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/NodePair.d.ts b/src/grpc/types/lnrpc_proxy/NodePair.d.ts new file mode 100644 index 000000000..35fe01994 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/NodePair.d.ts @@ -0,0 +1,9 @@ +/// +export interface NodePair { + from?: Buffer | Uint8Array | string + to?: Buffer | Uint8Array | string +} +export interface NodePair__Output { + from: Buffer + to: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/PayReq.d.ts b/src/grpc/types/lnrpc_proxy/PayReq.d.ts new file mode 100644 index 000000000..cc4179b24 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PayReq.d.ts @@ -0,0 +1,45 @@ +/// +/// +import type { + RouteHint as _lnrpc_proxy_RouteHint, + RouteHint__Output as _lnrpc_proxy_RouteHint__Output, +} from '../lnrpc_proxy/RouteHint' +import type { + Feature as _lnrpc_proxy_Feature, + Feature__Output as _lnrpc_proxy_Feature__Output, +} from '../lnrpc_proxy/Feature' +import type { Long } from '@grpc/proto-loader' +export interface PayReq { + destination?: string + payment_hash?: string + num_satoshis?: number | string | Long + timestamp?: number | string | Long + expiry?: number | string | Long + description?: string + description_hash?: string + fallback_addr?: string + cltv_expiry?: number | string | Long + route_hints?: _lnrpc_proxy_RouteHint[] + payment_addr?: Buffer | Uint8Array | string + num_msat?: number | string | Long + features?: { + [key: number]: _lnrpc_proxy_Feature + } +} +export interface PayReq__Output { + destination: string + payment_hash: string + num_satoshis: string + timestamp: string + expiry: string + description: string + description_hash: string + fallback_addr: string + cltv_expiry: string + route_hints: _lnrpc_proxy_RouteHint__Output[] + payment_addr: Buffer + num_msat: string + features: { + [key: number]: _lnrpc_proxy_Feature__Output + } +} diff --git a/src/grpc/types/lnrpc_proxy/PayReqString.d.ts b/src/grpc/types/lnrpc_proxy/PayReqString.d.ts new file mode 100644 index 000000000..e85d98266 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PayReqString.d.ts @@ -0,0 +1,6 @@ +export interface PayReqString { + pay_req?: string +} +export interface PayReqString__Output { + pay_req: string +} diff --git a/src/grpc/types/lnrpc_proxy/Payment.d.ts b/src/grpc/types/lnrpc_proxy/Payment.d.ts new file mode 100644 index 000000000..0df196efe --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Payment.d.ts @@ -0,0 +1,51 @@ +/// +import type { + HTLCAttempt as _lnrpc_proxy_HTLCAttempt, + HTLCAttempt__Output as _lnrpc_proxy_HTLCAttempt__Output, +} from '../lnrpc_proxy/HTLCAttempt' +import type { PaymentFailureReason as _lnrpc_proxy_PaymentFailureReason } from '../lnrpc_proxy/PaymentFailureReason' +import type { Long } from '@grpc/proto-loader' +export declare enum _lnrpc_proxy_Payment_PaymentStatus { + UNKNOWN = 0, + IN_FLIGHT = 1, + SUCCEEDED = 2, + FAILED = 3, +} +export interface Payment { + payment_hash?: string + value?: number | string | Long + creation_date?: number | string | Long + fee?: number | string | Long + payment_preimage?: string + value_sat?: number | string | Long + value_msat?: number | string | Long + payment_request?: string + status?: + | _lnrpc_proxy_Payment_PaymentStatus + | keyof typeof _lnrpc_proxy_Payment_PaymentStatus + fee_sat?: number | string | Long + fee_msat?: number | string | Long + creation_time_ns?: number | string | Long + htlcs?: _lnrpc_proxy_HTLCAttempt[] + payment_index?: number | string | Long + failure_reason?: + | _lnrpc_proxy_PaymentFailureReason + | keyof typeof _lnrpc_proxy_PaymentFailureReason +} +export interface Payment__Output { + payment_hash: string + value: string + creation_date: string + fee: string + payment_preimage: string + value_sat: string + value_msat: string + payment_request: string + status: keyof typeof _lnrpc_proxy_Payment_PaymentStatus + fee_sat: string + fee_msat: string + creation_time_ns: string + htlcs: _lnrpc_proxy_HTLCAttempt__Output[] + payment_index: string + failure_reason: keyof typeof _lnrpc_proxy_PaymentFailureReason +} diff --git a/src/grpc/types/lnrpc_proxy/PaymentFailureReason.d.ts b/src/grpc/types/lnrpc_proxy/PaymentFailureReason.d.ts new file mode 100644 index 000000000..f89115b37 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PaymentFailureReason.d.ts @@ -0,0 +1,8 @@ +export declare enum PaymentFailureReason { + FAILURE_REASON_NONE = 0, + FAILURE_REASON_TIMEOUT = 1, + FAILURE_REASON_NO_ROUTE = 2, + FAILURE_REASON_ERROR = 3, + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS = 4, + FAILURE_REASON_INSUFFICIENT_BALANCE = 5, +} diff --git a/src/grpc/types/lnrpc_proxy/PaymentHash.d.ts b/src/grpc/types/lnrpc_proxy/PaymentHash.d.ts new file mode 100644 index 000000000..91bb30946 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PaymentHash.d.ts @@ -0,0 +1,9 @@ +/// +export interface PaymentHash { + r_hash_str?: string + r_hash?: Buffer | Uint8Array | string +} +export interface PaymentHash__Output { + r_hash_str: string + r_hash: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/QueryRoutesRequest.d.ts b/src/grpc/types/lnrpc_proxy/QueryRoutesRequest.d.ts new file mode 100644 index 000000000..dbf3c1142 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/QueryRoutesRequest.d.ts @@ -0,0 +1,63 @@ +/// +/// +import type { + FeeLimit as _lnrpc_proxy_FeeLimit, + FeeLimit__Output as _lnrpc_proxy_FeeLimit__Output, +} from '../lnrpc_proxy/FeeLimit' +import type { + EdgeLocator as _lnrpc_proxy_EdgeLocator, + EdgeLocator__Output as _lnrpc_proxy_EdgeLocator__Output, +} from '../lnrpc_proxy/EdgeLocator' +import type { + NodePair as _lnrpc_proxy_NodePair, + NodePair__Output as _lnrpc_proxy_NodePair__Output, +} from '../lnrpc_proxy/NodePair' +import type { + RouteHint as _lnrpc_proxy_RouteHint, + RouteHint__Output as _lnrpc_proxy_RouteHint__Output, +} from '../lnrpc_proxy/RouteHint' +import type { FeatureBit as _lnrpc_proxy_FeatureBit } from '../lnrpc_proxy/FeatureBit' +import type { Long } from '@grpc/proto-loader' +export interface QueryRoutesRequest { + pub_key?: string + amt?: number | string | Long + final_cltv_delta?: number + fee_limit?: _lnrpc_proxy_FeeLimit | null + ignored_nodes?: (Buffer | Uint8Array | string)[] + ignored_edges?: _lnrpc_proxy_EdgeLocator[] + source_pub_key?: string + use_mission_control?: boolean + ignored_pairs?: _lnrpc_proxy_NodePair[] + cltv_limit?: number + amt_msat?: number | string | Long + dest_custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + outgoing_chan_id?: number | string | Long + last_hop_pubkey?: Buffer | Uint8Array | string + route_hints?: _lnrpc_proxy_RouteHint[] + dest_features?: ( + | _lnrpc_proxy_FeatureBit + | keyof typeof _lnrpc_proxy_FeatureBit + )[] +} +export interface QueryRoutesRequest__Output { + pub_key: string + amt: string + final_cltv_delta: number + fee_limit: _lnrpc_proxy_FeeLimit__Output | null + ignored_nodes: Buffer[] + ignored_edges: _lnrpc_proxy_EdgeLocator__Output[] + source_pub_key: string + use_mission_control: boolean + ignored_pairs: _lnrpc_proxy_NodePair__Output[] + cltv_limit: number + amt_msat: string + dest_custom_records: { + [key: number]: Buffer + } + outgoing_chan_id: string + last_hop_pubkey: Buffer + route_hints: _lnrpc_proxy_RouteHint__Output[] + dest_features: (keyof typeof _lnrpc_proxy_FeatureBit)[] +} diff --git a/src/grpc/types/lnrpc_proxy/QueryRoutesResponse.d.ts b/src/grpc/types/lnrpc_proxy/QueryRoutesResponse.d.ts new file mode 100644 index 000000000..eef5516a5 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/QueryRoutesResponse.d.ts @@ -0,0 +1,12 @@ +import type { + Route as _lnrpc_proxy_Route, + Route__Output as _lnrpc_proxy_Route__Output, +} from '../lnrpc_proxy/Route' +export interface QueryRoutesResponse { + routes?: _lnrpc_proxy_Route[] + success_prob?: number | string +} +export interface QueryRoutesResponse__Output { + routes: _lnrpc_proxy_Route__Output[] + success_prob: number +} diff --git a/src/grpc/types/lnrpc_proxy/Route.d.ts b/src/grpc/types/lnrpc_proxy/Route.d.ts new file mode 100644 index 000000000..33c62a95c --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Route.d.ts @@ -0,0 +1,22 @@ +/// +import type { + Hop as _lnrpc_proxy_Hop, + Hop__Output as _lnrpc_proxy_Hop__Output, +} from '../lnrpc_proxy/Hop' +import type { Long } from '@grpc/proto-loader' +export interface Route { + total_time_lock?: number + total_fees?: number | string | Long + total_amt?: number | string | Long + hops?: _lnrpc_proxy_Hop[] + total_fees_msat?: number | string | Long + total_amt_msat?: number | string | Long +} +export interface Route__Output { + total_time_lock: number + total_fees: string + total_amt: string + hops: _lnrpc_proxy_Hop__Output[] + total_fees_msat: string + total_amt_msat: string +} diff --git a/src/grpc/types/lnrpc_proxy/RouteHint.d.ts b/src/grpc/types/lnrpc_proxy/RouteHint.d.ts new file mode 100644 index 000000000..0a64aa1bf --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/RouteHint.d.ts @@ -0,0 +1,10 @@ +import type { + HopHint as _lnrpc_proxy_HopHint, + HopHint__Output as _lnrpc_proxy_HopHint__Output, +} from '../lnrpc_proxy/HopHint' +export interface RouteHint { + hop_hints?: _lnrpc_proxy_HopHint[] +} +export interface RouteHint__Output { + hop_hints: _lnrpc_proxy_HopHint__Output[] +} diff --git a/src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts b/src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts new file mode 100644 index 000000000..ed79b98a0 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts @@ -0,0 +1,20 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface RoutingPolicy { + time_lock_delta?: number + min_htlc?: number | string | Long + fee_base_msat?: number | string | Long + fee_rate_milli_msat?: number | string | Long + disabled?: boolean + max_htlc_msat?: number | string | Long + last_update?: number +} +export interface RoutingPolicy__Output { + time_lock_delta: number + min_htlc: string + fee_base_msat: string + fee_rate_milli_msat: string + disabled: boolean + max_htlc_msat: string + last_update: number +} diff --git a/src/grpc/types/lnrpc_proxy/SendRequest.d.ts b/src/grpc/types/lnrpc_proxy/SendRequest.d.ts new file mode 100644 index 000000000..68ab17ef2 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SendRequest.d.ts @@ -0,0 +1,55 @@ +/// +/// +import type { + FeeLimit as _lnrpc_proxy_FeeLimit, + FeeLimit__Output as _lnrpc_proxy_FeeLimit__Output, +} from '../lnrpc_proxy/FeeLimit' +import type { FeatureBit as _lnrpc_proxy_FeatureBit } from '../lnrpc_proxy/FeatureBit' +import type { + RouteHint as _lnrpc_proxy_RouteHint, + RouteHint__Output as _lnrpc_proxy_RouteHint__Output, +} from '../lnrpc_proxy/RouteHint' +import type { Long } from '@grpc/proto-loader' +export interface SendRequest { + dest?: Buffer | Uint8Array | string + dest_string?: string + amt?: number | string | Long + payment_hash?: Buffer | Uint8Array | string + payment_hash_string?: string + payment_request?: string + final_cltv_delta?: number + fee_limit?: _lnrpc_proxy_FeeLimit | null + outgoing_chan_id?: number | string | Long + cltv_limit?: number + dest_custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + amt_msat?: number | string | Long + last_hop_pubkey?: Buffer | Uint8Array | string + allow_self_payment?: boolean + dest_features?: ( + | _lnrpc_proxy_FeatureBit + | keyof typeof _lnrpc_proxy_FeatureBit + )[] + route_hints?: _lnrpc_proxy_RouteHint[] +} +export interface SendRequest__Output { + dest: Buffer + dest_string: string + amt: string + payment_hash: Buffer + payment_hash_string: string + payment_request: string + final_cltv_delta: number + fee_limit: _lnrpc_proxy_FeeLimit__Output | null + outgoing_chan_id: string + cltv_limit: number + dest_custom_records: { + [key: number]: Buffer + } + amt_msat: string + last_hop_pubkey: Buffer + allow_self_payment: boolean + dest_features: (keyof typeof _lnrpc_proxy_FeatureBit)[] + route_hints: _lnrpc_proxy_RouteHint__Output[] +} diff --git a/src/grpc/types/lnrpc_proxy/SendResponse.d.ts b/src/grpc/types/lnrpc_proxy/SendResponse.d.ts new file mode 100644 index 000000000..a02238e85 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SendResponse.d.ts @@ -0,0 +1,17 @@ +/// +import type { + Route as _lnrpc_proxy_Route, + Route__Output as _lnrpc_proxy_Route__Output, +} from '../lnrpc_proxy/Route' +export interface SendResponse { + payment_error?: string + payment_preimage?: Buffer | Uint8Array | string + payment_route?: _lnrpc_proxy_Route | null + payment_hash?: Buffer | Uint8Array | string +} +export interface SendResponse__Output { + payment_error: string + payment_preimage: Buffer + payment_route: _lnrpc_proxy_Route__Output | null + payment_hash: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/SignMessageRequest.d.ts b/src/grpc/types/lnrpc_proxy/SignMessageRequest.d.ts new file mode 100644 index 000000000..10c6126c1 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SignMessageRequest.d.ts @@ -0,0 +1,7 @@ +/// +export interface SignMessageRequest { + msg?: Buffer | Uint8Array | string +} +export interface SignMessageRequest__Output { + msg: Buffer +} diff --git a/src/grpc/types/lnrpc_proxy/SignMessageResponse.d.ts b/src/grpc/types/lnrpc_proxy/SignMessageResponse.d.ts new file mode 100644 index 000000000..1fcfb6c07 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SignMessageResponse.d.ts @@ -0,0 +1,8 @@ +export interface SignMessageResponse { + signature?: string + signature_hex?: string +} +export interface SignMessageResponse__Output { + signature: string + signature_hex: string +} diff --git a/src/grpc/types/lnrpc_proxy/VerifyMessageRequest.d.ts b/src/grpc/types/lnrpc_proxy/VerifyMessageRequest.d.ts new file mode 100644 index 000000000..0db8ac9b0 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/VerifyMessageRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface VerifyMessageRequest { + msg?: Buffer | Uint8Array | string + signature?: string +} +export interface VerifyMessageRequest__Output { + msg: Buffer + signature: string +} diff --git a/src/grpc/types/lnrpc_proxy/VerifyMessageResponse.d.ts b/src/grpc/types/lnrpc_proxy/VerifyMessageResponse.d.ts new file mode 100644 index 000000000..3c11f8267 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/VerifyMessageResponse.d.ts @@ -0,0 +1,8 @@ +export interface VerifyMessageResponse { + valid?: boolean + pubkey?: string +} +export interface VerifyMessageResponse__Output { + valid: boolean + pubkey: string +} diff --git a/src/grpc/types/router.d.ts b/src/grpc/types/router.d.ts new file mode 100644 index 000000000..e8e63bf08 --- /dev/null +++ b/src/grpc/types/router.d.ts @@ -0,0 +1,276 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + LightningClient as _lnrpc_LightningClient, + LightningDefinition as _lnrpc_LightningDefinition, +} from './lnrpc/Lightning' +import type { + RouterClient as _routerrpc_RouterClient, + RouterDefinition as _routerrpc_RouterDefinition, +} from './routerrpc/Router' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + lnrpc: { + AMP: MessageTypeDefinition + AMPInvoiceState: MessageTypeDefinition + AMPRecord: MessageTypeDefinition + AbandonChannelRequest: MessageTypeDefinition + AbandonChannelResponse: MessageTypeDefinition + AddInvoiceResponse: MessageTypeDefinition + AddressType: EnumTypeDefinition + AliasMap: MessageTypeDefinition + Amount: MessageTypeDefinition + BakeMacaroonRequest: MessageTypeDefinition + BakeMacaroonResponse: MessageTypeDefinition + BatchOpenChannel: MessageTypeDefinition + BatchOpenChannelRequest: MessageTypeDefinition + BatchOpenChannelResponse: MessageTypeDefinition + Chain: MessageTypeDefinition + ChanBackupExportRequest: MessageTypeDefinition + ChanBackupSnapshot: MessageTypeDefinition + ChanInfoRequest: MessageTypeDefinition + ChanPointShim: MessageTypeDefinition + Channel: MessageTypeDefinition + ChannelAcceptRequest: MessageTypeDefinition + ChannelAcceptResponse: MessageTypeDefinition + ChannelBackup: MessageTypeDefinition + ChannelBackupSubscription: MessageTypeDefinition + ChannelBackups: MessageTypeDefinition + ChannelBalanceRequest: MessageTypeDefinition + ChannelBalanceResponse: MessageTypeDefinition + ChannelCloseSummary: MessageTypeDefinition + ChannelCloseUpdate: MessageTypeDefinition + ChannelConstraints: MessageTypeDefinition + ChannelEdge: MessageTypeDefinition + ChannelEdgeUpdate: MessageTypeDefinition + ChannelEventSubscription: MessageTypeDefinition + ChannelEventUpdate: MessageTypeDefinition + ChannelFeeReport: MessageTypeDefinition + ChannelGraph: MessageTypeDefinition + ChannelGraphRequest: MessageTypeDefinition + ChannelOpenUpdate: MessageTypeDefinition + ChannelPoint: MessageTypeDefinition + ChannelUpdate: MessageTypeDefinition + CheckMacPermRequest: MessageTypeDefinition + CheckMacPermResponse: MessageTypeDefinition + CloseChannelRequest: MessageTypeDefinition + CloseStatusUpdate: MessageTypeDefinition + ClosedChannelUpdate: MessageTypeDefinition + ClosedChannelsRequest: MessageTypeDefinition + ClosedChannelsResponse: MessageTypeDefinition + CommitmentType: EnumTypeDefinition + ConfirmationUpdate: MessageTypeDefinition + ConnectPeerRequest: MessageTypeDefinition + ConnectPeerResponse: MessageTypeDefinition + CustomMessage: MessageTypeDefinition + DebugLevelRequest: MessageTypeDefinition + DebugLevelResponse: MessageTypeDefinition + DeleteAllPaymentsRequest: MessageTypeDefinition + DeleteAllPaymentsResponse: MessageTypeDefinition + DeleteMacaroonIDRequest: MessageTypeDefinition + DeleteMacaroonIDResponse: MessageTypeDefinition + DeletePaymentRequest: MessageTypeDefinition + DeletePaymentResponse: MessageTypeDefinition + DisconnectPeerRequest: MessageTypeDefinition + DisconnectPeerResponse: MessageTypeDefinition + EdgeLocator: MessageTypeDefinition + EstimateFeeRequest: MessageTypeDefinition + EstimateFeeResponse: MessageTypeDefinition + ExportChannelBackupRequest: MessageTypeDefinition + FailedUpdate: MessageTypeDefinition + Failure: MessageTypeDefinition + Feature: MessageTypeDefinition + FeatureBit: EnumTypeDefinition + FeeLimit: MessageTypeDefinition + FeeReportRequest: MessageTypeDefinition + FeeReportResponse: MessageTypeDefinition + FloatMetric: MessageTypeDefinition + ForwardingEvent: MessageTypeDefinition + ForwardingHistoryRequest: MessageTypeDefinition + ForwardingHistoryResponse: MessageTypeDefinition + FundingPsbtFinalize: MessageTypeDefinition + FundingPsbtVerify: MessageTypeDefinition + FundingShim: MessageTypeDefinition + FundingShimCancel: MessageTypeDefinition + FundingStateStepResp: MessageTypeDefinition + FundingTransitionMsg: MessageTypeDefinition + GetInfoRequest: MessageTypeDefinition + GetInfoResponse: MessageTypeDefinition + GetRecoveryInfoRequest: MessageTypeDefinition + GetRecoveryInfoResponse: MessageTypeDefinition + GetTransactionsRequest: MessageTypeDefinition + GraphTopologySubscription: MessageTypeDefinition + GraphTopologyUpdate: MessageTypeDefinition + HTLC: MessageTypeDefinition + HTLCAttempt: MessageTypeDefinition + Hop: MessageTypeDefinition + HopHint: MessageTypeDefinition + Initiator: EnumTypeDefinition + InterceptFeedback: MessageTypeDefinition + Invoice: MessageTypeDefinition + InvoiceHTLC: MessageTypeDefinition + InvoiceHTLCState: EnumTypeDefinition + InvoiceSubscription: MessageTypeDefinition + KeyDescriptor: MessageTypeDefinition + KeyLocator: MessageTypeDefinition + Lightning: SubtypeConstructor< + typeof grpc.Client, + _lnrpc_LightningClient + > & { + service: _lnrpc_LightningDefinition + } + LightningAddress: MessageTypeDefinition + LightningNode: MessageTypeDefinition + ListAliasesRequest: MessageTypeDefinition + ListAliasesResponse: MessageTypeDefinition + ListChannelsRequest: MessageTypeDefinition + ListChannelsResponse: MessageTypeDefinition + ListInvoiceRequest: MessageTypeDefinition + ListInvoiceResponse: MessageTypeDefinition + ListMacaroonIDsRequest: MessageTypeDefinition + ListMacaroonIDsResponse: MessageTypeDefinition + ListPaymentsRequest: MessageTypeDefinition + ListPaymentsResponse: MessageTypeDefinition + ListPeersRequest: MessageTypeDefinition + ListPeersResponse: MessageTypeDefinition + ListPermissionsRequest: MessageTypeDefinition + ListPermissionsResponse: MessageTypeDefinition + ListUnspentRequest: MessageTypeDefinition + ListUnspentResponse: MessageTypeDefinition + MPPRecord: MessageTypeDefinition + MacaroonId: MessageTypeDefinition + MacaroonPermission: MessageTypeDefinition + MacaroonPermissionList: MessageTypeDefinition + MiddlewareRegistration: MessageTypeDefinition + MultiChanBackup: MessageTypeDefinition + NetworkInfo: MessageTypeDefinition + NetworkInfoRequest: MessageTypeDefinition + NewAddressRequest: MessageTypeDefinition + NewAddressResponse: MessageTypeDefinition + NodeAddress: MessageTypeDefinition + NodeInfo: MessageTypeDefinition + NodeInfoRequest: MessageTypeDefinition + NodeMetricType: EnumTypeDefinition + NodeMetricsRequest: MessageTypeDefinition + NodeMetricsResponse: MessageTypeDefinition + NodePair: MessageTypeDefinition + NodeUpdate: MessageTypeDefinition + Op: MessageTypeDefinition + OpenChannelRequest: MessageTypeDefinition + OpenStatusUpdate: MessageTypeDefinition + OutPoint: MessageTypeDefinition + OutputDetail: MessageTypeDefinition + OutputScriptType: EnumTypeDefinition + PayReq: MessageTypeDefinition + PayReqString: MessageTypeDefinition + Payment: MessageTypeDefinition + PaymentFailureReason: EnumTypeDefinition + PaymentHash: MessageTypeDefinition + Peer: MessageTypeDefinition + PeerEvent: MessageTypeDefinition + PeerEventSubscription: MessageTypeDefinition + PendingChannelsRequest: MessageTypeDefinition + PendingChannelsResponse: MessageTypeDefinition + PendingHTLC: MessageTypeDefinition + PendingUpdate: MessageTypeDefinition + PolicyUpdateRequest: MessageTypeDefinition + PolicyUpdateResponse: MessageTypeDefinition + PreviousOutPoint: MessageTypeDefinition + PsbtShim: MessageTypeDefinition + QueryRoutesRequest: MessageTypeDefinition + QueryRoutesResponse: MessageTypeDefinition + RPCMessage: MessageTypeDefinition + RPCMiddlewareRequest: MessageTypeDefinition + RPCMiddlewareResponse: MessageTypeDefinition + ReadyForPsbtFunding: MessageTypeDefinition + Resolution: MessageTypeDefinition + ResolutionOutcome: EnumTypeDefinition + ResolutionType: EnumTypeDefinition + RestoreBackupResponse: MessageTypeDefinition + RestoreChanBackupRequest: MessageTypeDefinition + Route: MessageTypeDefinition + RouteHint: MessageTypeDefinition + RoutingPolicy: MessageTypeDefinition + SendCoinsRequest: MessageTypeDefinition + SendCoinsResponse: MessageTypeDefinition + SendCustomMessageRequest: MessageTypeDefinition + SendCustomMessageResponse: MessageTypeDefinition + SendManyRequest: MessageTypeDefinition + SendManyResponse: MessageTypeDefinition + SendRequest: MessageTypeDefinition + SendResponse: MessageTypeDefinition + SendToRouteRequest: MessageTypeDefinition + SetID: MessageTypeDefinition + SignMessageRequest: MessageTypeDefinition + SignMessageResponse: MessageTypeDefinition + StopRequest: MessageTypeDefinition + StopResponse: MessageTypeDefinition + StreamAuth: MessageTypeDefinition + SubscribeCustomMessagesRequest: MessageTypeDefinition + TimestampedError: MessageTypeDefinition + Transaction: MessageTypeDefinition + TransactionDetails: MessageTypeDefinition + UpdateFailure: EnumTypeDefinition + Utxo: MessageTypeDefinition + VerifyChanBackupResponse: MessageTypeDefinition + VerifyMessageRequest: MessageTypeDefinition + VerifyMessageResponse: MessageTypeDefinition + WalletAccountBalance: MessageTypeDefinition + WalletBalanceRequest: MessageTypeDefinition + WalletBalanceResponse: MessageTypeDefinition + } + routerrpc: { + BuildRouteRequest: MessageTypeDefinition + BuildRouteResponse: MessageTypeDefinition + ChanStatusAction: EnumTypeDefinition + CircuitKey: MessageTypeDefinition + FailureDetail: EnumTypeDefinition + ForwardEvent: MessageTypeDefinition + ForwardFailEvent: MessageTypeDefinition + ForwardHtlcInterceptRequest: MessageTypeDefinition + ForwardHtlcInterceptResponse: MessageTypeDefinition + GetMissionControlConfigRequest: MessageTypeDefinition + GetMissionControlConfigResponse: MessageTypeDefinition + HtlcEvent: MessageTypeDefinition + HtlcInfo: MessageTypeDefinition + LinkFailEvent: MessageTypeDefinition + MissionControlConfig: MessageTypeDefinition + PairData: MessageTypeDefinition + PairHistory: MessageTypeDefinition + PaymentState: EnumTypeDefinition + PaymentStatus: MessageTypeDefinition + QueryMissionControlRequest: MessageTypeDefinition + QueryMissionControlResponse: MessageTypeDefinition + QueryProbabilityRequest: MessageTypeDefinition + QueryProbabilityResponse: MessageTypeDefinition + ResetMissionControlRequest: MessageTypeDefinition + ResetMissionControlResponse: MessageTypeDefinition + ResolveHoldForwardAction: EnumTypeDefinition + RouteFeeRequest: MessageTypeDefinition + RouteFeeResponse: MessageTypeDefinition + Router: SubtypeConstructor & { + service: _routerrpc_RouterDefinition + } + SendPaymentRequest: MessageTypeDefinition + SendToRouteRequest: MessageTypeDefinition + SendToRouteResponse: MessageTypeDefinition + SetMissionControlConfigRequest: MessageTypeDefinition + SetMissionControlConfigResponse: MessageTypeDefinition + SettleEvent: MessageTypeDefinition + SubscribeHtlcEventsRequest: MessageTypeDefinition + TrackPaymentRequest: MessageTypeDefinition + UpdateChanStatusRequest: MessageTypeDefinition + UpdateChanStatusResponse: MessageTypeDefinition + XImportMissionControlRequest: MessageTypeDefinition + XImportMissionControlResponse: MessageTypeDefinition + } +} +export {} diff --git a/src/grpc/types/routerrpc/BuildRouteRequest.d.ts b/src/grpc/types/routerrpc/BuildRouteRequest.d.ts new file mode 100644 index 000000000..13942254d --- /dev/null +++ b/src/grpc/types/routerrpc/BuildRouteRequest.d.ts @@ -0,0 +1,17 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface BuildRouteRequest { + amt_msat?: number | string | Long + final_cltv_delta?: number + outgoing_chan_id?: number | string | Long + hop_pubkeys?: (Buffer | Uint8Array | string)[] + payment_addr?: Buffer | Uint8Array | string +} +export interface BuildRouteRequest__Output { + amt_msat: string + final_cltv_delta: number + outgoing_chan_id: string + hop_pubkeys: Buffer[] + payment_addr: Buffer +} diff --git a/src/grpc/types/routerrpc/BuildRouteResponse.d.ts b/src/grpc/types/routerrpc/BuildRouteResponse.d.ts new file mode 100644 index 000000000..f7d018b5e --- /dev/null +++ b/src/grpc/types/routerrpc/BuildRouteResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Route as _lnrpc_Route, + Route__Output as _lnrpc_Route__Output, +} from '../lnrpc/Route' +export interface BuildRouteResponse { + route?: _lnrpc_Route | null +} +export interface BuildRouteResponse__Output { + route: _lnrpc_Route__Output | null +} diff --git a/src/grpc/types/routerrpc/ChanStatusAction.d.ts b/src/grpc/types/routerrpc/ChanStatusAction.d.ts new file mode 100644 index 000000000..67686daf2 --- /dev/null +++ b/src/grpc/types/routerrpc/ChanStatusAction.d.ts @@ -0,0 +1,5 @@ +export declare enum ChanStatusAction { + ENABLE = 0, + DISABLE = 1, + AUTO = 2, +} diff --git a/src/grpc/types/routerrpc/CircuitKey.d.ts b/src/grpc/types/routerrpc/CircuitKey.d.ts new file mode 100644 index 000000000..b1d898877 --- /dev/null +++ b/src/grpc/types/routerrpc/CircuitKey.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface CircuitKey { + chan_id?: number | string | Long + htlc_id?: number | string | Long +} +export interface CircuitKey__Output { + chan_id: string + htlc_id: string +} diff --git a/src/grpc/types/routerrpc/FailureDetail.d.ts b/src/grpc/types/routerrpc/FailureDetail.d.ts new file mode 100644 index 000000000..66f078705 --- /dev/null +++ b/src/grpc/types/routerrpc/FailureDetail.d.ts @@ -0,0 +1,25 @@ +export declare enum FailureDetail { + UNKNOWN = 0, + NO_DETAIL = 1, + ONION_DECODE = 2, + LINK_NOT_ELIGIBLE = 3, + ON_CHAIN_TIMEOUT = 4, + HTLC_EXCEEDS_MAX = 5, + INSUFFICIENT_BALANCE = 6, + INCOMPLETE_FORWARD = 7, + HTLC_ADD_FAILED = 8, + FORWARDS_DISABLED = 9, + INVOICE_CANCELED = 10, + INVOICE_UNDERPAID = 11, + INVOICE_EXPIRY_TOO_SOON = 12, + INVOICE_NOT_OPEN = 13, + MPP_INVOICE_TIMEOUT = 14, + ADDRESS_MISMATCH = 15, + SET_TOTAL_MISMATCH = 16, + SET_TOTAL_TOO_LOW = 17, + SET_OVERPAID = 18, + UNKNOWN_INVOICE = 19, + INVALID_KEYSEND = 20, + MPP_IN_PROGRESS = 21, + CIRCULAR_ROUTE = 22, +} diff --git a/src/grpc/types/routerrpc/ForwardEvent.d.ts b/src/grpc/types/routerrpc/ForwardEvent.d.ts new file mode 100644 index 000000000..5c487c24b --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardEvent.d.ts @@ -0,0 +1,10 @@ +import type { + HtlcInfo as _routerrpc_HtlcInfo, + HtlcInfo__Output as _routerrpc_HtlcInfo__Output, +} from '../routerrpc/HtlcInfo' +export interface ForwardEvent { + info?: _routerrpc_HtlcInfo | null +} +export interface ForwardEvent__Output { + info: _routerrpc_HtlcInfo__Output | null +} diff --git a/src/grpc/types/routerrpc/ForwardFailEvent.d.ts b/src/grpc/types/routerrpc/ForwardFailEvent.d.ts new file mode 100644 index 000000000..1a542d6e1 --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardFailEvent.d.ts @@ -0,0 +1,2 @@ +export interface ForwardFailEvent {} +export interface ForwardFailEvent__Output {} diff --git a/src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts b/src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts new file mode 100644 index 000000000..cdd214020 --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts @@ -0,0 +1,33 @@ +/// +/// +import type { + CircuitKey as _routerrpc_CircuitKey, + CircuitKey__Output as _routerrpc_CircuitKey__Output, +} from '../routerrpc/CircuitKey' +import type { Long } from '@grpc/proto-loader' +export interface ForwardHtlcInterceptRequest { + incoming_circuit_key?: _routerrpc_CircuitKey | null + payment_hash?: Buffer | Uint8Array | string + outgoing_amount_msat?: number | string | Long + outgoing_expiry?: number + incoming_amount_msat?: number | string | Long + incoming_expiry?: number + outgoing_requested_chan_id?: number | string | Long + custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + onion_blob?: Buffer | Uint8Array | string +} +export interface ForwardHtlcInterceptRequest__Output { + incoming_circuit_key: _routerrpc_CircuitKey__Output | null + payment_hash: Buffer + outgoing_amount_msat: string + outgoing_expiry: number + incoming_amount_msat: string + incoming_expiry: number + outgoing_requested_chan_id: string + custom_records: { + [key: number]: Buffer + } + onion_blob: Buffer +} diff --git a/src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts b/src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts new file mode 100644 index 000000000..1de877ad6 --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts @@ -0,0 +1,25 @@ +/// +import type { + CircuitKey as _routerrpc_CircuitKey, + CircuitKey__Output as _routerrpc_CircuitKey__Output, +} from '../routerrpc/CircuitKey' +import type { ResolveHoldForwardAction as _routerrpc_ResolveHoldForwardAction } from '../routerrpc/ResolveHoldForwardAction' +import type { _lnrpc_Failure_FailureCode } from '../lnrpc/Failure' +export interface ForwardHtlcInterceptResponse { + incoming_circuit_key?: _routerrpc_CircuitKey | null + action?: + | _routerrpc_ResolveHoldForwardAction + | keyof typeof _routerrpc_ResolveHoldForwardAction + preimage?: Buffer | Uint8Array | string + failure_message?: Buffer | Uint8Array | string + failure_code?: + | _lnrpc_Failure_FailureCode + | keyof typeof _lnrpc_Failure_FailureCode +} +export interface ForwardHtlcInterceptResponse__Output { + incoming_circuit_key: _routerrpc_CircuitKey__Output | null + action: keyof typeof _routerrpc_ResolveHoldForwardAction + preimage: Buffer + failure_message: Buffer + failure_code: keyof typeof _lnrpc_Failure_FailureCode +} diff --git a/src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts b/src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts new file mode 100644 index 000000000..85955932c --- /dev/null +++ b/src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts @@ -0,0 +1,2 @@ +export interface GetMissionControlConfigRequest {} +export interface GetMissionControlConfigRequest__Output {} diff --git a/src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts b/src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts new file mode 100644 index 000000000..982ef51f1 --- /dev/null +++ b/src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts @@ -0,0 +1,10 @@ +import type { + MissionControlConfig as _routerrpc_MissionControlConfig, + MissionControlConfig__Output as _routerrpc_MissionControlConfig__Output, +} from '../routerrpc/MissionControlConfig' +export interface GetMissionControlConfigResponse { + config?: _routerrpc_MissionControlConfig | null +} +export interface GetMissionControlConfigResponse__Output { + config: _routerrpc_MissionControlConfig__Output | null +} diff --git a/src/grpc/types/routerrpc/HtlcEvent.d.ts b/src/grpc/types/routerrpc/HtlcEvent.d.ts new file mode 100644 index 000000000..0d972dc3c --- /dev/null +++ b/src/grpc/types/routerrpc/HtlcEvent.d.ts @@ -0,0 +1,60 @@ +/// +import type { + ForwardEvent as _routerrpc_ForwardEvent, + ForwardEvent__Output as _routerrpc_ForwardEvent__Output, +} from '../routerrpc/ForwardEvent' +import type { + ForwardFailEvent as _routerrpc_ForwardFailEvent, + ForwardFailEvent__Output as _routerrpc_ForwardFailEvent__Output, +} from '../routerrpc/ForwardFailEvent' +import type { + SettleEvent as _routerrpc_SettleEvent, + SettleEvent__Output as _routerrpc_SettleEvent__Output, +} from '../routerrpc/SettleEvent' +import type { + LinkFailEvent as _routerrpc_LinkFailEvent, + LinkFailEvent__Output as _routerrpc_LinkFailEvent__Output, +} from '../routerrpc/LinkFailEvent' +import type { Long } from '@grpc/proto-loader' +export declare enum _routerrpc_HtlcEvent_EventType { + UNKNOWN = 0, + SEND = 1, + RECEIVE = 2, + FORWARD = 3, +} +export interface HtlcEvent { + incoming_channel_id?: number | string | Long + outgoing_channel_id?: number | string | Long + incoming_htlc_id?: number | string | Long + outgoing_htlc_id?: number | string | Long + timestamp_ns?: number | string | Long + event_type?: + | _routerrpc_HtlcEvent_EventType + | keyof typeof _routerrpc_HtlcEvent_EventType + forward_event?: _routerrpc_ForwardEvent | null + forward_fail_event?: _routerrpc_ForwardFailEvent | null + settle_event?: _routerrpc_SettleEvent | null + link_fail_event?: _routerrpc_LinkFailEvent | null + event?: + | 'forward_event' + | 'forward_fail_event' + | 'settle_event' + | 'link_fail_event' +} +export interface HtlcEvent__Output { + incoming_channel_id: string + outgoing_channel_id: string + incoming_htlc_id: string + outgoing_htlc_id: string + timestamp_ns: string + event_type: keyof typeof _routerrpc_HtlcEvent_EventType + forward_event?: _routerrpc_ForwardEvent__Output | null + forward_fail_event?: _routerrpc_ForwardFailEvent__Output | null + settle_event?: _routerrpc_SettleEvent__Output | null + link_fail_event?: _routerrpc_LinkFailEvent__Output | null + event: + | 'forward_event' + | 'forward_fail_event' + | 'settle_event' + | 'link_fail_event' +} diff --git a/src/grpc/types/routerrpc/HtlcInfo.d.ts b/src/grpc/types/routerrpc/HtlcInfo.d.ts new file mode 100644 index 000000000..40057705b --- /dev/null +++ b/src/grpc/types/routerrpc/HtlcInfo.d.ts @@ -0,0 +1,14 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface HtlcInfo { + incoming_timelock?: number + outgoing_timelock?: number + incoming_amt_msat?: number | string | Long + outgoing_amt_msat?: number | string | Long +} +export interface HtlcInfo__Output { + incoming_timelock: number + outgoing_timelock: number + incoming_amt_msat: string + outgoing_amt_msat: string +} diff --git a/src/grpc/types/routerrpc/LinkFailEvent.d.ts b/src/grpc/types/routerrpc/LinkFailEvent.d.ts new file mode 100644 index 000000000..244f1b2bb --- /dev/null +++ b/src/grpc/types/routerrpc/LinkFailEvent.d.ts @@ -0,0 +1,22 @@ +import type { + HtlcInfo as _routerrpc_HtlcInfo, + HtlcInfo__Output as _routerrpc_HtlcInfo__Output, +} from '../routerrpc/HtlcInfo' +import type { _lnrpc_Failure_FailureCode } from '../lnrpc/Failure' +import type { FailureDetail as _routerrpc_FailureDetail } from '../routerrpc/FailureDetail' +export interface LinkFailEvent { + info?: _routerrpc_HtlcInfo | null + wire_failure?: + | _lnrpc_Failure_FailureCode + | keyof typeof _lnrpc_Failure_FailureCode + failure_detail?: + | _routerrpc_FailureDetail + | keyof typeof _routerrpc_FailureDetail + failure_string?: string +} +export interface LinkFailEvent__Output { + info: _routerrpc_HtlcInfo__Output | null + wire_failure: keyof typeof _lnrpc_Failure_FailureCode + failure_detail: keyof typeof _routerrpc_FailureDetail + failure_string: string +} diff --git a/src/grpc/types/routerrpc/MissionControlConfig.d.ts b/src/grpc/types/routerrpc/MissionControlConfig.d.ts new file mode 100644 index 000000000..705bab934 --- /dev/null +++ b/src/grpc/types/routerrpc/MissionControlConfig.d.ts @@ -0,0 +1,16 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface MissionControlConfig { + half_life_seconds?: number | string | Long + hop_probability?: number | string + weight?: number | string + maximum_payment_results?: number + minimum_failure_relax_interval?: number | string | Long +} +export interface MissionControlConfig__Output { + half_life_seconds: string + hop_probability: number + weight: number + maximum_payment_results: number + minimum_failure_relax_interval: string +} diff --git a/src/grpc/types/routerrpc/PairData.d.ts b/src/grpc/types/routerrpc/PairData.d.ts new file mode 100644 index 000000000..ee01e5cfa --- /dev/null +++ b/src/grpc/types/routerrpc/PairData.d.ts @@ -0,0 +1,18 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface PairData { + fail_time?: number | string | Long + fail_amt_sat?: number | string | Long + fail_amt_msat?: number | string | Long + success_time?: number | string | Long + success_amt_sat?: number | string | Long + success_amt_msat?: number | string | Long +} +export interface PairData__Output { + fail_time: string + fail_amt_sat: string + fail_amt_msat: string + success_time: string + success_amt_sat: string + success_amt_msat: string +} diff --git a/src/grpc/types/routerrpc/PairHistory.d.ts b/src/grpc/types/routerrpc/PairHistory.d.ts new file mode 100644 index 000000000..2745c6e68 --- /dev/null +++ b/src/grpc/types/routerrpc/PairHistory.d.ts @@ -0,0 +1,15 @@ +/// +import type { + PairData as _routerrpc_PairData, + PairData__Output as _routerrpc_PairData__Output, +} from '../routerrpc/PairData' +export interface PairHistory { + node_from?: Buffer | Uint8Array | string + node_to?: Buffer | Uint8Array | string + history?: _routerrpc_PairData | null +} +export interface PairHistory__Output { + node_from: Buffer + node_to: Buffer + history: _routerrpc_PairData__Output | null +} diff --git a/src/grpc/types/routerrpc/PaymentState.d.ts b/src/grpc/types/routerrpc/PaymentState.d.ts new file mode 100644 index 000000000..fb2cc0952 --- /dev/null +++ b/src/grpc/types/routerrpc/PaymentState.d.ts @@ -0,0 +1,9 @@ +export declare enum PaymentState { + IN_FLIGHT = 0, + SUCCEEDED = 1, + FAILED_TIMEOUT = 2, + FAILED_NO_ROUTE = 3, + FAILED_ERROR = 4, + FAILED_INCORRECT_PAYMENT_DETAILS = 5, + FAILED_INSUFFICIENT_BALANCE = 6, +} diff --git a/src/grpc/types/routerrpc/PaymentStatus.d.ts b/src/grpc/types/routerrpc/PaymentStatus.d.ts new file mode 100644 index 000000000..28b1600cf --- /dev/null +++ b/src/grpc/types/routerrpc/PaymentStatus.d.ts @@ -0,0 +1,16 @@ +/// +import type { PaymentState as _routerrpc_PaymentState } from '../routerrpc/PaymentState' +import type { + HTLCAttempt as _lnrpc_HTLCAttempt, + HTLCAttempt__Output as _lnrpc_HTLCAttempt__Output, +} from '../lnrpc/HTLCAttempt' +export interface PaymentStatus { + state?: _routerrpc_PaymentState | keyof typeof _routerrpc_PaymentState + preimage?: Buffer | Uint8Array | string + htlcs?: _lnrpc_HTLCAttempt[] +} +export interface PaymentStatus__Output { + state: keyof typeof _routerrpc_PaymentState + preimage: Buffer + htlcs: _lnrpc_HTLCAttempt__Output[] +} diff --git a/src/grpc/types/routerrpc/QueryMissionControlRequest.d.ts b/src/grpc/types/routerrpc/QueryMissionControlRequest.d.ts new file mode 100644 index 000000000..4bb86b42d --- /dev/null +++ b/src/grpc/types/routerrpc/QueryMissionControlRequest.d.ts @@ -0,0 +1,2 @@ +export interface QueryMissionControlRequest {} +export interface QueryMissionControlRequest__Output {} diff --git a/src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts b/src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts new file mode 100644 index 000000000..f48286d1d --- /dev/null +++ b/src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts @@ -0,0 +1,10 @@ +import type { + PairHistory as _routerrpc_PairHistory, + PairHistory__Output as _routerrpc_PairHistory__Output, +} from '../routerrpc/PairHistory' +export interface QueryMissionControlResponse { + pairs?: _routerrpc_PairHistory[] +} +export interface QueryMissionControlResponse__Output { + pairs: _routerrpc_PairHistory__Output[] +} diff --git a/src/grpc/types/routerrpc/QueryProbabilityRequest.d.ts b/src/grpc/types/routerrpc/QueryProbabilityRequest.d.ts new file mode 100644 index 000000000..028bfcdb2 --- /dev/null +++ b/src/grpc/types/routerrpc/QueryProbabilityRequest.d.ts @@ -0,0 +1,13 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface QueryProbabilityRequest { + from_node?: Buffer | Uint8Array | string + to_node?: Buffer | Uint8Array | string + amt_msat?: number | string | Long +} +export interface QueryProbabilityRequest__Output { + from_node: Buffer + to_node: Buffer + amt_msat: string +} diff --git a/src/grpc/types/routerrpc/QueryProbabilityResponse.d.ts b/src/grpc/types/routerrpc/QueryProbabilityResponse.d.ts new file mode 100644 index 000000000..53d2fc7c9 --- /dev/null +++ b/src/grpc/types/routerrpc/QueryProbabilityResponse.d.ts @@ -0,0 +1,12 @@ +import type { + PairData as _routerrpc_PairData, + PairData__Output as _routerrpc_PairData__Output, +} from '../routerrpc/PairData' +export interface QueryProbabilityResponse { + probability?: number | string + history?: _routerrpc_PairData | null +} +export interface QueryProbabilityResponse__Output { + probability: number + history: _routerrpc_PairData__Output | null +} diff --git a/src/grpc/types/routerrpc/ResetMissionControlRequest.d.ts b/src/grpc/types/routerrpc/ResetMissionControlRequest.d.ts new file mode 100644 index 000000000..09896f5c4 --- /dev/null +++ b/src/grpc/types/routerrpc/ResetMissionControlRequest.d.ts @@ -0,0 +1,2 @@ +export interface ResetMissionControlRequest {} +export interface ResetMissionControlRequest__Output {} diff --git a/src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts b/src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts new file mode 100644 index 000000000..e341d6378 --- /dev/null +++ b/src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts @@ -0,0 +1,2 @@ +export interface ResetMissionControlResponse {} +export interface ResetMissionControlResponse__Output {} diff --git a/src/grpc/types/routerrpc/ResolveHoldForwardAction.d.ts b/src/grpc/types/routerrpc/ResolveHoldForwardAction.d.ts new file mode 100644 index 000000000..82b6740e8 --- /dev/null +++ b/src/grpc/types/routerrpc/ResolveHoldForwardAction.d.ts @@ -0,0 +1,5 @@ +export declare enum ResolveHoldForwardAction { + SETTLE = 0, + FAIL = 1, + RESUME = 2, +} diff --git a/src/grpc/types/routerrpc/RouteFeeRequest.d.ts b/src/grpc/types/routerrpc/RouteFeeRequest.d.ts new file mode 100644 index 000000000..181cd1b40 --- /dev/null +++ b/src/grpc/types/routerrpc/RouteFeeRequest.d.ts @@ -0,0 +1,11 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface RouteFeeRequest { + dest?: Buffer | Uint8Array | string + amt_sat?: number | string | Long +} +export interface RouteFeeRequest__Output { + dest: Buffer + amt_sat: string +} diff --git a/src/grpc/types/routerrpc/RouteFeeResponse.d.ts b/src/grpc/types/routerrpc/RouteFeeResponse.d.ts new file mode 100644 index 000000000..d7ab1d4e4 --- /dev/null +++ b/src/grpc/types/routerrpc/RouteFeeResponse.d.ts @@ -0,0 +1,10 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface RouteFeeResponse { + routing_fee_msat?: number | string | Long + time_lock_delay?: number | string | Long +} +export interface RouteFeeResponse__Output { + routing_fee_msat: string + time_lock_delay: string +} diff --git a/src/grpc/types/routerrpc/Router.d.ts b/src/grpc/types/routerrpc/Router.d.ts new file mode 100644 index 000000000..9fd48f501 --- /dev/null +++ b/src/grpc/types/routerrpc/Router.d.ts @@ -0,0 +1,850 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + BuildRouteRequest as _routerrpc_BuildRouteRequest, + BuildRouteRequest__Output as _routerrpc_BuildRouteRequest__Output, +} from '../routerrpc/BuildRouteRequest' +import type { + BuildRouteResponse as _routerrpc_BuildRouteResponse, + BuildRouteResponse__Output as _routerrpc_BuildRouteResponse__Output, +} from '../routerrpc/BuildRouteResponse' +import type { + ForwardHtlcInterceptRequest as _routerrpc_ForwardHtlcInterceptRequest, + ForwardHtlcInterceptRequest__Output as _routerrpc_ForwardHtlcInterceptRequest__Output, +} from '../routerrpc/ForwardHtlcInterceptRequest' +import type { + ForwardHtlcInterceptResponse as _routerrpc_ForwardHtlcInterceptResponse, + ForwardHtlcInterceptResponse__Output as _routerrpc_ForwardHtlcInterceptResponse__Output, +} from '../routerrpc/ForwardHtlcInterceptResponse' +import type { + GetMissionControlConfigRequest as _routerrpc_GetMissionControlConfigRequest, + GetMissionControlConfigRequest__Output as _routerrpc_GetMissionControlConfigRequest__Output, +} from '../routerrpc/GetMissionControlConfigRequest' +import type { + GetMissionControlConfigResponse as _routerrpc_GetMissionControlConfigResponse, + GetMissionControlConfigResponse__Output as _routerrpc_GetMissionControlConfigResponse__Output, +} from '../routerrpc/GetMissionControlConfigResponse' +import type { + HTLCAttempt as _lnrpc_HTLCAttempt, + HTLCAttempt__Output as _lnrpc_HTLCAttempt__Output, +} from '../lnrpc/HTLCAttempt' +import type { + HtlcEvent as _routerrpc_HtlcEvent, + HtlcEvent__Output as _routerrpc_HtlcEvent__Output, +} from '../routerrpc/HtlcEvent' +import type { + Payment as _lnrpc_Payment, + Payment__Output as _lnrpc_Payment__Output, +} from '../lnrpc/Payment' +import type { + PaymentStatus as _routerrpc_PaymentStatus, + PaymentStatus__Output as _routerrpc_PaymentStatus__Output, +} from '../routerrpc/PaymentStatus' +import type { + QueryMissionControlRequest as _routerrpc_QueryMissionControlRequest, + QueryMissionControlRequest__Output as _routerrpc_QueryMissionControlRequest__Output, +} from '../routerrpc/QueryMissionControlRequest' +import type { + QueryMissionControlResponse as _routerrpc_QueryMissionControlResponse, + QueryMissionControlResponse__Output as _routerrpc_QueryMissionControlResponse__Output, +} from '../routerrpc/QueryMissionControlResponse' +import type { + QueryProbabilityRequest as _routerrpc_QueryProbabilityRequest, + QueryProbabilityRequest__Output as _routerrpc_QueryProbabilityRequest__Output, +} from '../routerrpc/QueryProbabilityRequest' +import type { + QueryProbabilityResponse as _routerrpc_QueryProbabilityResponse, + QueryProbabilityResponse__Output as _routerrpc_QueryProbabilityResponse__Output, +} from '../routerrpc/QueryProbabilityResponse' +import type { + ResetMissionControlRequest as _routerrpc_ResetMissionControlRequest, + ResetMissionControlRequest__Output as _routerrpc_ResetMissionControlRequest__Output, +} from '../routerrpc/ResetMissionControlRequest' +import type { + ResetMissionControlResponse as _routerrpc_ResetMissionControlResponse, + ResetMissionControlResponse__Output as _routerrpc_ResetMissionControlResponse__Output, +} from '../routerrpc/ResetMissionControlResponse' +import type { + RouteFeeRequest as _routerrpc_RouteFeeRequest, + RouteFeeRequest__Output as _routerrpc_RouteFeeRequest__Output, +} from '../routerrpc/RouteFeeRequest' +import type { + RouteFeeResponse as _routerrpc_RouteFeeResponse, + RouteFeeResponse__Output as _routerrpc_RouteFeeResponse__Output, +} from '../routerrpc/RouteFeeResponse' +import type { + SendPaymentRequest as _routerrpc_SendPaymentRequest, + SendPaymentRequest__Output as _routerrpc_SendPaymentRequest__Output, +} from '../routerrpc/SendPaymentRequest' +import type { + SendToRouteRequest as _routerrpc_SendToRouteRequest, + SendToRouteRequest__Output as _routerrpc_SendToRouteRequest__Output, +} from '../routerrpc/SendToRouteRequest' +import type { + SendToRouteResponse as _routerrpc_SendToRouteResponse, + SendToRouteResponse__Output as _routerrpc_SendToRouteResponse__Output, +} from '../routerrpc/SendToRouteResponse' +import type { + SetMissionControlConfigRequest as _routerrpc_SetMissionControlConfigRequest, + SetMissionControlConfigRequest__Output as _routerrpc_SetMissionControlConfigRequest__Output, +} from '../routerrpc/SetMissionControlConfigRequest' +import type { + SetMissionControlConfigResponse as _routerrpc_SetMissionControlConfigResponse, + SetMissionControlConfigResponse__Output as _routerrpc_SetMissionControlConfigResponse__Output, +} from '../routerrpc/SetMissionControlConfigResponse' +import type { + SubscribeHtlcEventsRequest as _routerrpc_SubscribeHtlcEventsRequest, + SubscribeHtlcEventsRequest__Output as _routerrpc_SubscribeHtlcEventsRequest__Output, +} from '../routerrpc/SubscribeHtlcEventsRequest' +import type { + TrackPaymentRequest as _routerrpc_TrackPaymentRequest, + TrackPaymentRequest__Output as _routerrpc_TrackPaymentRequest__Output, +} from '../routerrpc/TrackPaymentRequest' +import type { + UpdateChanStatusRequest as _routerrpc_UpdateChanStatusRequest, + UpdateChanStatusRequest__Output as _routerrpc_UpdateChanStatusRequest__Output, +} from '../routerrpc/UpdateChanStatusRequest' +import type { + UpdateChanStatusResponse as _routerrpc_UpdateChanStatusResponse, + UpdateChanStatusResponse__Output as _routerrpc_UpdateChanStatusResponse__Output, +} from '../routerrpc/UpdateChanStatusResponse' +import type { + XImportMissionControlRequest as _routerrpc_XImportMissionControlRequest, + XImportMissionControlRequest__Output as _routerrpc_XImportMissionControlRequest__Output, +} from '../routerrpc/XImportMissionControlRequest' +import type { + XImportMissionControlResponse as _routerrpc_XImportMissionControlResponse, + XImportMissionControlResponse__Output as _routerrpc_XImportMissionControlResponse__Output, +} from '../routerrpc/XImportMissionControlResponse' +export interface RouterClient extends grpc.Client { + BuildRoute( + argument: _routerrpc_BuildRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + BuildRoute( + argument: _routerrpc_BuildRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + BuildRoute( + argument: _routerrpc_BuildRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + BuildRoute( + argument: _routerrpc_BuildRouteRequest, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + buildRoute( + argument: _routerrpc_BuildRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + buildRoute( + argument: _routerrpc_BuildRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + buildRoute( + argument: _routerrpc_BuildRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + buildRoute( + argument: _routerrpc_BuildRouteRequest, + callback: grpc.requestCallback<_routerrpc_BuildRouteResponse__Output> + ): grpc.ClientUnaryCall + EstimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateRouteFee( + argument: _routerrpc_RouteFeeRequest, + callback: grpc.requestCallback<_routerrpc_RouteFeeResponse__Output> + ): grpc.ClientUnaryCall + GetMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + GetMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + GetMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + GetMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + getMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + getMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + getMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + getMissionControlConfig( + argument: _routerrpc_GetMissionControlConfigRequest, + callback: grpc.requestCallback<_routerrpc_GetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + HtlcInterceptor( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _routerrpc_ForwardHtlcInterceptResponse, + _routerrpc_ForwardHtlcInterceptRequest__Output + > + HtlcInterceptor( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _routerrpc_ForwardHtlcInterceptResponse, + _routerrpc_ForwardHtlcInterceptRequest__Output + > + htlcInterceptor( + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _routerrpc_ForwardHtlcInterceptResponse, + _routerrpc_ForwardHtlcInterceptRequest__Output + > + htlcInterceptor( + options?: grpc.CallOptions + ): grpc.ClientDuplexStream< + _routerrpc_ForwardHtlcInterceptResponse, + _routerrpc_ForwardHtlcInterceptRequest__Output + > + QueryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + QueryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + QueryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + QueryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + queryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + queryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + queryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + queryMissionControl( + argument: _routerrpc_QueryMissionControlRequest, + callback: grpc.requestCallback<_routerrpc_QueryMissionControlResponse__Output> + ): grpc.ClientUnaryCall + QueryProbability( + argument: _routerrpc_QueryProbabilityRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + QueryProbability( + argument: _routerrpc_QueryProbabilityRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + QueryProbability( + argument: _routerrpc_QueryProbabilityRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + QueryProbability( + argument: _routerrpc_QueryProbabilityRequest, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + queryProbability( + argument: _routerrpc_QueryProbabilityRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + queryProbability( + argument: _routerrpc_QueryProbabilityRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + queryProbability( + argument: _routerrpc_QueryProbabilityRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + queryProbability( + argument: _routerrpc_QueryProbabilityRequest, + callback: grpc.requestCallback<_routerrpc_QueryProbabilityResponse__Output> + ): grpc.ClientUnaryCall + ResetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + ResetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + ResetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + ResetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + resetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + resetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + resetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + resetMissionControl( + argument: _routerrpc_ResetMissionControlRequest, + callback: grpc.requestCallback<_routerrpc_ResetMissionControlResponse__Output> + ): grpc.ClientUnaryCall + SendPayment( + argument: _routerrpc_SendPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + SendPayment( + argument: _routerrpc_SendPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + sendPayment( + argument: _routerrpc_SendPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + sendPayment( + argument: _routerrpc_SendPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + SendPaymentV2( + argument: _routerrpc_SendPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + SendPaymentV2( + argument: _routerrpc_SendPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + sendPaymentV2( + argument: _routerrpc_SendPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + sendPaymentV2( + argument: _routerrpc_SendPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + SendToRoute( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + SendToRoute( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + SendToRoute( + argument: _routerrpc_SendToRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + SendToRoute( + argument: _routerrpc_SendToRouteRequest, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + sendToRoute( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + sendToRoute( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + sendToRoute( + argument: _routerrpc_SendToRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + sendToRoute( + argument: _routerrpc_SendToRouteRequest, + callback: grpc.requestCallback<_routerrpc_SendToRouteResponse__Output> + ): grpc.ClientUnaryCall + SendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + SendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + SendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + SendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + sendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + sendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + sendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + sendToRouteV2( + argument: _routerrpc_SendToRouteRequest, + callback: grpc.requestCallback<_lnrpc_HTLCAttempt__Output> + ): grpc.ClientUnaryCall + SetMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + SetMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + SetMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + SetMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + setMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + setMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + setMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + setMissionControlConfig( + argument: _routerrpc_SetMissionControlConfigRequest, + callback: grpc.requestCallback<_routerrpc_SetMissionControlConfigResponse__Output> + ): grpc.ClientUnaryCall + SubscribeHtlcEvents( + argument: _routerrpc_SubscribeHtlcEventsRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_HtlcEvent__Output> + SubscribeHtlcEvents( + argument: _routerrpc_SubscribeHtlcEventsRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_HtlcEvent__Output> + subscribeHtlcEvents( + argument: _routerrpc_SubscribeHtlcEventsRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_HtlcEvent__Output> + subscribeHtlcEvents( + argument: _routerrpc_SubscribeHtlcEventsRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_HtlcEvent__Output> + TrackPayment( + argument: _routerrpc_TrackPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + TrackPayment( + argument: _routerrpc_TrackPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + trackPayment( + argument: _routerrpc_TrackPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + trackPayment( + argument: _routerrpc_TrackPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_routerrpc_PaymentStatus__Output> + TrackPaymentV2( + argument: _routerrpc_TrackPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + TrackPaymentV2( + argument: _routerrpc_TrackPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + trackPaymentV2( + argument: _routerrpc_TrackPaymentRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + trackPaymentV2( + argument: _routerrpc_TrackPaymentRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + UpdateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + UpdateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + UpdateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + UpdateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + updateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + updateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + updateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + updateChanStatus( + argument: _routerrpc_UpdateChanStatusRequest, + callback: grpc.requestCallback<_routerrpc_UpdateChanStatusResponse__Output> + ): grpc.ClientUnaryCall + XImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + XImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + XImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + XImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + xImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + xImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + xImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall + xImportMissionControl( + argument: _routerrpc_XImportMissionControlRequest, + callback: grpc.requestCallback<_routerrpc_XImportMissionControlResponse__Output> + ): grpc.ClientUnaryCall +} +export interface RouterHandlers extends grpc.UntypedServiceImplementation { + BuildRoute: grpc.handleUnaryCall< + _routerrpc_BuildRouteRequest__Output, + _routerrpc_BuildRouteResponse + > + EstimateRouteFee: grpc.handleUnaryCall< + _routerrpc_RouteFeeRequest__Output, + _routerrpc_RouteFeeResponse + > + GetMissionControlConfig: grpc.handleUnaryCall< + _routerrpc_GetMissionControlConfigRequest__Output, + _routerrpc_GetMissionControlConfigResponse + > + HtlcInterceptor: grpc.handleBidiStreamingCall< + _routerrpc_ForwardHtlcInterceptResponse__Output, + _routerrpc_ForwardHtlcInterceptRequest + > + QueryMissionControl: grpc.handleUnaryCall< + _routerrpc_QueryMissionControlRequest__Output, + _routerrpc_QueryMissionControlResponse + > + QueryProbability: grpc.handleUnaryCall< + _routerrpc_QueryProbabilityRequest__Output, + _routerrpc_QueryProbabilityResponse + > + ResetMissionControl: grpc.handleUnaryCall< + _routerrpc_ResetMissionControlRequest__Output, + _routerrpc_ResetMissionControlResponse + > + SendPayment: grpc.handleServerStreamingCall< + _routerrpc_SendPaymentRequest__Output, + _routerrpc_PaymentStatus + > + SendPaymentV2: grpc.handleServerStreamingCall< + _routerrpc_SendPaymentRequest__Output, + _lnrpc_Payment + > + SendToRoute: grpc.handleUnaryCall< + _routerrpc_SendToRouteRequest__Output, + _routerrpc_SendToRouteResponse + > + SendToRouteV2: grpc.handleUnaryCall< + _routerrpc_SendToRouteRequest__Output, + _lnrpc_HTLCAttempt + > + SetMissionControlConfig: grpc.handleUnaryCall< + _routerrpc_SetMissionControlConfigRequest__Output, + _routerrpc_SetMissionControlConfigResponse + > + SubscribeHtlcEvents: grpc.handleServerStreamingCall< + _routerrpc_SubscribeHtlcEventsRequest__Output, + _routerrpc_HtlcEvent + > + TrackPayment: grpc.handleServerStreamingCall< + _routerrpc_TrackPaymentRequest__Output, + _routerrpc_PaymentStatus + > + TrackPaymentV2: grpc.handleServerStreamingCall< + _routerrpc_TrackPaymentRequest__Output, + _lnrpc_Payment + > + UpdateChanStatus: grpc.handleUnaryCall< + _routerrpc_UpdateChanStatusRequest__Output, + _routerrpc_UpdateChanStatusResponse + > + XImportMissionControl: grpc.handleUnaryCall< + _routerrpc_XImportMissionControlRequest__Output, + _routerrpc_XImportMissionControlResponse + > +} +export interface RouterDefinition extends grpc.ServiceDefinition { + BuildRoute: MethodDefinition< + _routerrpc_BuildRouteRequest, + _routerrpc_BuildRouteResponse, + _routerrpc_BuildRouteRequest__Output, + _routerrpc_BuildRouteResponse__Output + > + EstimateRouteFee: MethodDefinition< + _routerrpc_RouteFeeRequest, + _routerrpc_RouteFeeResponse, + _routerrpc_RouteFeeRequest__Output, + _routerrpc_RouteFeeResponse__Output + > + GetMissionControlConfig: MethodDefinition< + _routerrpc_GetMissionControlConfigRequest, + _routerrpc_GetMissionControlConfigResponse, + _routerrpc_GetMissionControlConfigRequest__Output, + _routerrpc_GetMissionControlConfigResponse__Output + > + HtlcInterceptor: MethodDefinition< + _routerrpc_ForwardHtlcInterceptResponse, + _routerrpc_ForwardHtlcInterceptRequest, + _routerrpc_ForwardHtlcInterceptResponse__Output, + _routerrpc_ForwardHtlcInterceptRequest__Output + > + QueryMissionControl: MethodDefinition< + _routerrpc_QueryMissionControlRequest, + _routerrpc_QueryMissionControlResponse, + _routerrpc_QueryMissionControlRequest__Output, + _routerrpc_QueryMissionControlResponse__Output + > + QueryProbability: MethodDefinition< + _routerrpc_QueryProbabilityRequest, + _routerrpc_QueryProbabilityResponse, + _routerrpc_QueryProbabilityRequest__Output, + _routerrpc_QueryProbabilityResponse__Output + > + ResetMissionControl: MethodDefinition< + _routerrpc_ResetMissionControlRequest, + _routerrpc_ResetMissionControlResponse, + _routerrpc_ResetMissionControlRequest__Output, + _routerrpc_ResetMissionControlResponse__Output + > + SendPayment: MethodDefinition< + _routerrpc_SendPaymentRequest, + _routerrpc_PaymentStatus, + _routerrpc_SendPaymentRequest__Output, + _routerrpc_PaymentStatus__Output + > + SendPaymentV2: MethodDefinition< + _routerrpc_SendPaymentRequest, + _lnrpc_Payment, + _routerrpc_SendPaymentRequest__Output, + _lnrpc_Payment__Output + > + SendToRoute: MethodDefinition< + _routerrpc_SendToRouteRequest, + _routerrpc_SendToRouteResponse, + _routerrpc_SendToRouteRequest__Output, + _routerrpc_SendToRouteResponse__Output + > + SendToRouteV2: MethodDefinition< + _routerrpc_SendToRouteRequest, + _lnrpc_HTLCAttempt, + _routerrpc_SendToRouteRequest__Output, + _lnrpc_HTLCAttempt__Output + > + SetMissionControlConfig: MethodDefinition< + _routerrpc_SetMissionControlConfigRequest, + _routerrpc_SetMissionControlConfigResponse, + _routerrpc_SetMissionControlConfigRequest__Output, + _routerrpc_SetMissionControlConfigResponse__Output + > + SubscribeHtlcEvents: MethodDefinition< + _routerrpc_SubscribeHtlcEventsRequest, + _routerrpc_HtlcEvent, + _routerrpc_SubscribeHtlcEventsRequest__Output, + _routerrpc_HtlcEvent__Output + > + TrackPayment: MethodDefinition< + _routerrpc_TrackPaymentRequest, + _routerrpc_PaymentStatus, + _routerrpc_TrackPaymentRequest__Output, + _routerrpc_PaymentStatus__Output + > + TrackPaymentV2: MethodDefinition< + _routerrpc_TrackPaymentRequest, + _lnrpc_Payment, + _routerrpc_TrackPaymentRequest__Output, + _lnrpc_Payment__Output + > + UpdateChanStatus: MethodDefinition< + _routerrpc_UpdateChanStatusRequest, + _routerrpc_UpdateChanStatusResponse, + _routerrpc_UpdateChanStatusRequest__Output, + _routerrpc_UpdateChanStatusResponse__Output + > + XImportMissionControl: MethodDefinition< + _routerrpc_XImportMissionControlRequest, + _routerrpc_XImportMissionControlResponse, + _routerrpc_XImportMissionControlRequest__Output, + _routerrpc_XImportMissionControlResponse__Output + > +} diff --git a/src/grpc/types/routerrpc/SendPaymentRequest.d.ts b/src/grpc/types/routerrpc/SendPaymentRequest.d.ts new file mode 100644 index 000000000..c72bbf1d2 --- /dev/null +++ b/src/grpc/types/routerrpc/SendPaymentRequest.d.ts @@ -0,0 +1,62 @@ +/// +/// +import type { + RouteHint as _lnrpc_RouteHint, + RouteHint__Output as _lnrpc_RouteHint__Output, +} from '../lnrpc/RouteHint' +import type { FeatureBit as _lnrpc_FeatureBit } from '../lnrpc/FeatureBit' +import type { Long } from '@grpc/proto-loader' +export interface SendPaymentRequest { + dest?: Buffer | Uint8Array | string + amt?: number | string | Long + payment_hash?: Buffer | Uint8Array | string + final_cltv_delta?: number + payment_request?: string + timeout_seconds?: number + fee_limit_sat?: number | string | Long + outgoing_chan_id?: number | string | Long + cltv_limit?: number + route_hints?: _lnrpc_RouteHint[] + dest_custom_records?: { + [key: number]: Buffer | Uint8Array | string + } + amt_msat?: number | string | Long + fee_limit_msat?: number | string | Long + last_hop_pubkey?: Buffer | Uint8Array | string + allow_self_payment?: boolean + dest_features?: (_lnrpc_FeatureBit | keyof typeof _lnrpc_FeatureBit)[] + max_parts?: number + no_inflight_updates?: boolean + outgoing_chan_ids?: (number | string | Long)[] + payment_addr?: Buffer | Uint8Array | string + max_shard_size_msat?: number | string | Long + amp?: boolean + time_pref?: number | string +} +export interface SendPaymentRequest__Output { + dest: Buffer + amt: string + payment_hash: Buffer + final_cltv_delta: number + payment_request: string + timeout_seconds: number + fee_limit_sat: string + outgoing_chan_id: string + cltv_limit: number + route_hints: _lnrpc_RouteHint__Output[] + dest_custom_records: { + [key: number]: Buffer + } + amt_msat: string + fee_limit_msat: string + last_hop_pubkey: Buffer + allow_self_payment: boolean + dest_features: (keyof typeof _lnrpc_FeatureBit)[] + max_parts: number + no_inflight_updates: boolean + outgoing_chan_ids: string[] + payment_addr: Buffer + max_shard_size_msat: string + amp: boolean + time_pref: number +} diff --git a/src/grpc/types/routerrpc/SendToRouteRequest.d.ts b/src/grpc/types/routerrpc/SendToRouteRequest.d.ts new file mode 100644 index 000000000..1b2be4749 --- /dev/null +++ b/src/grpc/types/routerrpc/SendToRouteRequest.d.ts @@ -0,0 +1,15 @@ +/// +import type { + Route as _lnrpc_Route, + Route__Output as _lnrpc_Route__Output, +} from '../lnrpc/Route' +export interface SendToRouteRequest { + payment_hash?: Buffer | Uint8Array | string + route?: _lnrpc_Route | null + skip_temp_err?: boolean +} +export interface SendToRouteRequest__Output { + payment_hash: Buffer + route: _lnrpc_Route__Output | null + skip_temp_err: boolean +} diff --git a/src/grpc/types/routerrpc/SendToRouteResponse.d.ts b/src/grpc/types/routerrpc/SendToRouteResponse.d.ts new file mode 100644 index 000000000..3f8f2f54d --- /dev/null +++ b/src/grpc/types/routerrpc/SendToRouteResponse.d.ts @@ -0,0 +1,13 @@ +/// +import type { + Failure as _lnrpc_Failure, + Failure__Output as _lnrpc_Failure__Output, +} from '../lnrpc/Failure' +export interface SendToRouteResponse { + preimage?: Buffer | Uint8Array | string + failure?: _lnrpc_Failure | null +} +export interface SendToRouteResponse__Output { + preimage: Buffer + failure: _lnrpc_Failure__Output | null +} diff --git a/src/grpc/types/routerrpc/SetMissionControlConfigRequest.d.ts b/src/grpc/types/routerrpc/SetMissionControlConfigRequest.d.ts new file mode 100644 index 000000000..14ef334e0 --- /dev/null +++ b/src/grpc/types/routerrpc/SetMissionControlConfigRequest.d.ts @@ -0,0 +1,10 @@ +import type { + MissionControlConfig as _routerrpc_MissionControlConfig, + MissionControlConfig__Output as _routerrpc_MissionControlConfig__Output, +} from '../routerrpc/MissionControlConfig' +export interface SetMissionControlConfigRequest { + config?: _routerrpc_MissionControlConfig | null +} +export interface SetMissionControlConfigRequest__Output { + config: _routerrpc_MissionControlConfig__Output | null +} diff --git a/src/grpc/types/routerrpc/SetMissionControlConfigResponse.d.ts b/src/grpc/types/routerrpc/SetMissionControlConfigResponse.d.ts new file mode 100644 index 000000000..b2f380106 --- /dev/null +++ b/src/grpc/types/routerrpc/SetMissionControlConfigResponse.d.ts @@ -0,0 +1,2 @@ +export interface SetMissionControlConfigResponse {} +export interface SetMissionControlConfigResponse__Output {} diff --git a/src/grpc/types/routerrpc/SettleEvent.d.ts b/src/grpc/types/routerrpc/SettleEvent.d.ts new file mode 100644 index 000000000..829dfc233 --- /dev/null +++ b/src/grpc/types/routerrpc/SettleEvent.d.ts @@ -0,0 +1,7 @@ +/// +export interface SettleEvent { + preimage?: Buffer | Uint8Array | string +} +export interface SettleEvent__Output { + preimage: Buffer +} diff --git a/src/grpc/types/routerrpc/SubscribeHtlcEventsRequest.d.ts b/src/grpc/types/routerrpc/SubscribeHtlcEventsRequest.d.ts new file mode 100644 index 000000000..de2aaccd3 --- /dev/null +++ b/src/grpc/types/routerrpc/SubscribeHtlcEventsRequest.d.ts @@ -0,0 +1,2 @@ +export interface SubscribeHtlcEventsRequest {} +export interface SubscribeHtlcEventsRequest__Output {} diff --git a/src/grpc/types/routerrpc/TrackPaymentRequest.d.ts b/src/grpc/types/routerrpc/TrackPaymentRequest.d.ts new file mode 100644 index 000000000..308742ce4 --- /dev/null +++ b/src/grpc/types/routerrpc/TrackPaymentRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface TrackPaymentRequest { + payment_hash?: Buffer | Uint8Array | string + no_inflight_updates?: boolean +} +export interface TrackPaymentRequest__Output { + payment_hash: Buffer + no_inflight_updates: boolean +} diff --git a/src/grpc/types/routerrpc/UpdateChanStatusRequest.d.ts b/src/grpc/types/routerrpc/UpdateChanStatusRequest.d.ts new file mode 100644 index 000000000..c971a9a67 --- /dev/null +++ b/src/grpc/types/routerrpc/UpdateChanStatusRequest.d.ts @@ -0,0 +1,15 @@ +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { ChanStatusAction as _routerrpc_ChanStatusAction } from '../routerrpc/ChanStatusAction' +export interface UpdateChanStatusRequest { + chan_point?: _lnrpc_ChannelPoint | null + action?: + | _routerrpc_ChanStatusAction + | keyof typeof _routerrpc_ChanStatusAction +} +export interface UpdateChanStatusRequest__Output { + chan_point: _lnrpc_ChannelPoint__Output | null + action: keyof typeof _routerrpc_ChanStatusAction +} diff --git a/src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts b/src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts new file mode 100644 index 000000000..391019f6d --- /dev/null +++ b/src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts @@ -0,0 +1,2 @@ +export interface UpdateChanStatusResponse {} +export interface UpdateChanStatusResponse__Output {} diff --git a/src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts b/src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts new file mode 100644 index 000000000..09ca13bf9 --- /dev/null +++ b/src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts @@ -0,0 +1,12 @@ +import type { + PairHistory as _routerrpc_PairHistory, + PairHistory__Output as _routerrpc_PairHistory__Output, +} from '../routerrpc/PairHistory' +export interface XImportMissionControlRequest { + pairs?: _routerrpc_PairHistory[] + force?: boolean +} +export interface XImportMissionControlRequest__Output { + pairs: _routerrpc_PairHistory__Output[] + force: boolean +} diff --git a/src/grpc/types/routerrpc/XImportMissionControlResponse.d.ts b/src/grpc/types/routerrpc/XImportMissionControlResponse.d.ts new file mode 100644 index 000000000..91dd2ba0a --- /dev/null +++ b/src/grpc/types/routerrpc/XImportMissionControlResponse.d.ts @@ -0,0 +1,2 @@ +export interface XImportMissionControlResponse {} +export interface XImportMissionControlResponse__Output {} diff --git a/src/grpc/types/rpc_proxy.d.ts b/src/grpc/types/rpc_proxy.d.ts new file mode 100644 index 000000000..c285c4cb0 --- /dev/null +++ b/src/grpc/types/rpc_proxy.d.ts @@ -0,0 +1,73 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + LightningClient as _lnrpc_proxy_LightningClient, + LightningDefinition as _lnrpc_proxy_LightningDefinition, +} from './lnrpc_proxy/Lightning' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + lnrpc_proxy: { + AddInvoiceResponse: MessageTypeDefinition + Amount: MessageTypeDefinition + Chain: MessageTypeDefinition + ChanInfoRequest: MessageTypeDefinition + Channel: MessageTypeDefinition + ChannelBalanceRequest: MessageTypeDefinition + ChannelBalanceResponse: MessageTypeDefinition + ChannelConstraints: MessageTypeDefinition + ChannelEdge: MessageTypeDefinition + ChannelUpdate: MessageTypeDefinition + CommitmentType: EnumTypeDefinition + EdgeLocator: MessageTypeDefinition + Failure: MessageTypeDefinition + Feature: MessageTypeDefinition + FeatureBit: EnumTypeDefinition + FeeLimit: MessageTypeDefinition + GetInfoRequest: MessageTypeDefinition + GetInfoResponse: MessageTypeDefinition + HTLC: MessageTypeDefinition + HTLCAttempt: MessageTypeDefinition + Hop: MessageTypeDefinition + HopHint: MessageTypeDefinition + Invoice: MessageTypeDefinition + InvoiceHTLC: MessageTypeDefinition + InvoiceHTLCState: EnumTypeDefinition + InvoiceSubscription: MessageTypeDefinition + Lightning: SubtypeConstructor< + typeof grpc.Client, + _lnrpc_proxy_LightningClient + > & { + service: _lnrpc_proxy_LightningDefinition + } + LightningAddress: MessageTypeDefinition + ListChannelsRequest: MessageTypeDefinition + ListChannelsResponse: MessageTypeDefinition + MPPRecord: MessageTypeDefinition + NodePair: MessageTypeDefinition + PayReq: MessageTypeDefinition + PayReqString: MessageTypeDefinition + Payment: MessageTypeDefinition + PaymentFailureReason: EnumTypeDefinition + PaymentHash: MessageTypeDefinition + QueryRoutesRequest: MessageTypeDefinition + QueryRoutesResponse: MessageTypeDefinition + Route: MessageTypeDefinition + RouteHint: MessageTypeDefinition + RoutingPolicy: MessageTypeDefinition + SendRequest: MessageTypeDefinition + SendResponse: MessageTypeDefinition + SignMessageRequest: MessageTypeDefinition + SignMessageResponse: MessageTypeDefinition + VerifyMessageRequest: MessageTypeDefinition + VerifyMessageResponse: MessageTypeDefinition + } +} +export {} diff --git a/src/grpc/types/scheduler.d.ts b/src/grpc/types/scheduler.d.ts new file mode 100644 index 000000000..5fa34702a --- /dev/null +++ b/src/grpc/types/scheduler.d.ts @@ -0,0 +1,36 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + SchedulerClient as _scheduler_SchedulerClient, + SchedulerDefinition as _scheduler_SchedulerDefinition, +} from './scheduler/Scheduler' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + scheduler: { + ChallengeRequest: MessageTypeDefinition + ChallengeResponse: MessageTypeDefinition + ChallengeScope: EnumTypeDefinition + NodeInfoRequest: MessageTypeDefinition + NodeInfoResponse: MessageTypeDefinition + RecoveryRequest: MessageTypeDefinition + RecoveryResponse: MessageTypeDefinition + RegistrationRequest: MessageTypeDefinition + RegistrationResponse: MessageTypeDefinition + ScheduleRequest: MessageTypeDefinition + Scheduler: SubtypeConstructor< + typeof grpc.Client, + _scheduler_SchedulerClient + > & { + service: _scheduler_SchedulerDefinition + } + } +} +export {} diff --git a/src/grpc/types/scheduler/ChallengeRequest.d.ts b/src/grpc/types/scheduler/ChallengeRequest.d.ts new file mode 100644 index 000000000..42d91ccbe --- /dev/null +++ b/src/grpc/types/scheduler/ChallengeRequest.d.ts @@ -0,0 +1,10 @@ +/// +import type { ChallengeScope as _scheduler_ChallengeScope } from '../scheduler/ChallengeScope' +export interface ChallengeRequest { + scope?: _scheduler_ChallengeScope | keyof typeof _scheduler_ChallengeScope + node_id?: Buffer | Uint8Array | string +} +export interface ChallengeRequest__Output { + scope: keyof typeof _scheduler_ChallengeScope + node_id: Buffer +} diff --git a/src/grpc/types/scheduler/ChallengeResponse.d.ts b/src/grpc/types/scheduler/ChallengeResponse.d.ts new file mode 100644 index 000000000..eac4b8eba --- /dev/null +++ b/src/grpc/types/scheduler/ChallengeResponse.d.ts @@ -0,0 +1,7 @@ +/// +export interface ChallengeResponse { + challenge?: Buffer | Uint8Array | string +} +export interface ChallengeResponse__Output { + challenge: Buffer +} diff --git a/src/grpc/types/scheduler/ChallengeScope.d.ts b/src/grpc/types/scheduler/ChallengeScope.d.ts new file mode 100644 index 000000000..73dd047a5 --- /dev/null +++ b/src/grpc/types/scheduler/ChallengeScope.d.ts @@ -0,0 +1,4 @@ +export declare enum ChallengeScope { + REGISTER = 0, + RECOVER = 1, +} diff --git a/src/grpc/types/scheduler/NodeInfoRequest.d.ts b/src/grpc/types/scheduler/NodeInfoRequest.d.ts new file mode 100644 index 000000000..6739d761d --- /dev/null +++ b/src/grpc/types/scheduler/NodeInfoRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface NodeInfoRequest { + node_id?: Buffer | Uint8Array | string + wait?: boolean +} +export interface NodeInfoRequest__Output { + node_id: Buffer + wait: boolean +} diff --git a/src/grpc/types/scheduler/NodeInfoResponse.d.ts b/src/grpc/types/scheduler/NodeInfoResponse.d.ts new file mode 100644 index 000000000..ad4383da0 --- /dev/null +++ b/src/grpc/types/scheduler/NodeInfoResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface NodeInfoResponse { + node_id?: Buffer | Uint8Array | string + grpc_uri?: string +} +export interface NodeInfoResponse__Output { + node_id: Buffer + grpc_uri: string +} diff --git a/src/grpc/types/scheduler/RecoveryRequest.d.ts b/src/grpc/types/scheduler/RecoveryRequest.d.ts new file mode 100644 index 000000000..7851b12f9 --- /dev/null +++ b/src/grpc/types/scheduler/RecoveryRequest.d.ts @@ -0,0 +1,11 @@ +/// +export interface RecoveryRequest { + challenge?: Buffer | Uint8Array | string + signature?: Buffer | Uint8Array | string + node_id?: Buffer | Uint8Array | string +} +export interface RecoveryRequest__Output { + challenge: Buffer + signature: Buffer + node_id: Buffer +} diff --git a/src/grpc/types/scheduler/RecoveryResponse.d.ts b/src/grpc/types/scheduler/RecoveryResponse.d.ts new file mode 100644 index 000000000..e47f8105a --- /dev/null +++ b/src/grpc/types/scheduler/RecoveryResponse.d.ts @@ -0,0 +1,8 @@ +export interface RecoveryResponse { + device_cert?: string + device_key?: string +} +export interface RecoveryResponse__Output { + device_cert: string + device_key: string +} diff --git a/src/grpc/types/scheduler/RegistrationRequest.d.ts b/src/grpc/types/scheduler/RegistrationRequest.d.ts new file mode 100644 index 000000000..729cbbe77 --- /dev/null +++ b/src/grpc/types/scheduler/RegistrationRequest.d.ts @@ -0,0 +1,17 @@ +/// +export interface RegistrationRequest { + node_id?: Buffer | Uint8Array | string + bip32_key?: Buffer | Uint8Array | string + email?: string + network?: string + challenge?: Buffer | Uint8Array | string + signature?: Buffer | Uint8Array | string +} +export interface RegistrationRequest__Output { + node_id: Buffer + bip32_key: Buffer + email: string + network: string + challenge: Buffer + signature: Buffer +} diff --git a/src/grpc/types/scheduler/RegistrationResponse.d.ts b/src/grpc/types/scheduler/RegistrationResponse.d.ts new file mode 100644 index 000000000..f03881adb --- /dev/null +++ b/src/grpc/types/scheduler/RegistrationResponse.d.ts @@ -0,0 +1,8 @@ +export interface RegistrationResponse { + device_cert?: string + device_key?: string +} +export interface RegistrationResponse__Output { + device_cert: string + device_key: string +} diff --git a/src/grpc/types/scheduler/ScheduleRequest.d.ts b/src/grpc/types/scheduler/ScheduleRequest.d.ts new file mode 100644 index 000000000..62639d8df --- /dev/null +++ b/src/grpc/types/scheduler/ScheduleRequest.d.ts @@ -0,0 +1,7 @@ +/// +export interface ScheduleRequest { + node_id?: Buffer | Uint8Array | string +} +export interface ScheduleRequest__Output { + node_id: Buffer +} diff --git a/src/grpc/types/scheduler/Scheduler.d.ts b/src/grpc/types/scheduler/Scheduler.d.ts new file mode 100644 index 000000000..53ab8a2b8 --- /dev/null +++ b/src/grpc/types/scheduler/Scheduler.d.ts @@ -0,0 +1,294 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + ChallengeRequest as _scheduler_ChallengeRequest, + ChallengeRequest__Output as _scheduler_ChallengeRequest__Output, +} from '../scheduler/ChallengeRequest' +import type { + ChallengeResponse as _scheduler_ChallengeResponse, + ChallengeResponse__Output as _scheduler_ChallengeResponse__Output, +} from '../scheduler/ChallengeResponse' +import type { + NodeInfoRequest as _scheduler_NodeInfoRequest, + NodeInfoRequest__Output as _scheduler_NodeInfoRequest__Output, +} from '../scheduler/NodeInfoRequest' +import type { + NodeInfoResponse as _scheduler_NodeInfoResponse, + NodeInfoResponse__Output as _scheduler_NodeInfoResponse__Output, +} from '../scheduler/NodeInfoResponse' +import type { + RecoveryRequest as _scheduler_RecoveryRequest, + RecoveryRequest__Output as _scheduler_RecoveryRequest__Output, +} from '../scheduler/RecoveryRequest' +import type { + RecoveryResponse as _scheduler_RecoveryResponse, + RecoveryResponse__Output as _scheduler_RecoveryResponse__Output, +} from '../scheduler/RecoveryResponse' +import type { + RegistrationRequest as _scheduler_RegistrationRequest, + RegistrationRequest__Output as _scheduler_RegistrationRequest__Output, +} from '../scheduler/RegistrationRequest' +import type { + RegistrationResponse as _scheduler_RegistrationResponse, + RegistrationResponse__Output as _scheduler_RegistrationResponse__Output, +} from '../scheduler/RegistrationResponse' +import type { + ScheduleRequest as _scheduler_ScheduleRequest, + ScheduleRequest__Output as _scheduler_ScheduleRequest__Output, +} from '../scheduler/ScheduleRequest' +export interface SchedulerClient extends grpc.Client { + GetChallenge( + argument: _scheduler_ChallengeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + GetChallenge( + argument: _scheduler_ChallengeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + GetChallenge( + argument: _scheduler_ChallengeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + GetChallenge( + argument: _scheduler_ChallengeRequest, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + getChallenge( + argument: _scheduler_ChallengeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + getChallenge( + argument: _scheduler_ChallengeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + getChallenge( + argument: _scheduler_ChallengeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + getChallenge( + argument: _scheduler_ChallengeRequest, + callback: grpc.requestCallback<_scheduler_ChallengeResponse__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _scheduler_NodeInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _scheduler_NodeInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _scheduler_NodeInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + GetNodeInfo( + argument: _scheduler_NodeInfoRequest, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _scheduler_NodeInfoRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _scheduler_NodeInfoRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _scheduler_NodeInfoRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + getNodeInfo( + argument: _scheduler_NodeInfoRequest, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + Recover( + argument: _scheduler_RecoveryRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + Recover( + argument: _scheduler_RecoveryRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + Recover( + argument: _scheduler_RecoveryRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + Recover( + argument: _scheduler_RecoveryRequest, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + recover( + argument: _scheduler_RecoveryRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + recover( + argument: _scheduler_RecoveryRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + recover( + argument: _scheduler_RecoveryRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + recover( + argument: _scheduler_RecoveryRequest, + callback: grpc.requestCallback<_scheduler_RecoveryResponse__Output> + ): grpc.ClientUnaryCall + Register( + argument: _scheduler_RegistrationRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + Register( + argument: _scheduler_RegistrationRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + Register( + argument: _scheduler_RegistrationRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + Register( + argument: _scheduler_RegistrationRequest, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + register( + argument: _scheduler_RegistrationRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + register( + argument: _scheduler_RegistrationRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + register( + argument: _scheduler_RegistrationRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + register( + argument: _scheduler_RegistrationRequest, + callback: grpc.requestCallback<_scheduler_RegistrationResponse__Output> + ): grpc.ClientUnaryCall + Schedule( + argument: _scheduler_ScheduleRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + Schedule( + argument: _scheduler_ScheduleRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + Schedule( + argument: _scheduler_ScheduleRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + Schedule( + argument: _scheduler_ScheduleRequest, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + schedule( + argument: _scheduler_ScheduleRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + schedule( + argument: _scheduler_ScheduleRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + schedule( + argument: _scheduler_ScheduleRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall + schedule( + argument: _scheduler_ScheduleRequest, + callback: grpc.requestCallback<_scheduler_NodeInfoResponse__Output> + ): grpc.ClientUnaryCall +} +export interface SchedulerHandlers extends grpc.UntypedServiceImplementation { + GetChallenge: grpc.handleUnaryCall< + _scheduler_ChallengeRequest__Output, + _scheduler_ChallengeResponse + > + GetNodeInfo: grpc.handleUnaryCall< + _scheduler_NodeInfoRequest__Output, + _scheduler_NodeInfoResponse + > + Recover: grpc.handleUnaryCall< + _scheduler_RecoveryRequest__Output, + _scheduler_RecoveryResponse + > + Register: grpc.handleUnaryCall< + _scheduler_RegistrationRequest__Output, + _scheduler_RegistrationResponse + > + Schedule: grpc.handleUnaryCall< + _scheduler_ScheduleRequest__Output, + _scheduler_NodeInfoResponse + > +} +export interface SchedulerDefinition extends grpc.ServiceDefinition { + GetChallenge: MethodDefinition< + _scheduler_ChallengeRequest, + _scheduler_ChallengeResponse, + _scheduler_ChallengeRequest__Output, + _scheduler_ChallengeResponse__Output + > + GetNodeInfo: MethodDefinition< + _scheduler_NodeInfoRequest, + _scheduler_NodeInfoResponse, + _scheduler_NodeInfoRequest__Output, + _scheduler_NodeInfoResponse__Output + > + Recover: MethodDefinition< + _scheduler_RecoveryRequest, + _scheduler_RecoveryResponse, + _scheduler_RecoveryRequest__Output, + _scheduler_RecoveryResponse__Output + > + Register: MethodDefinition< + _scheduler_RegistrationRequest, + _scheduler_RegistrationResponse, + _scheduler_RegistrationRequest__Output, + _scheduler_RegistrationResponse__Output + > + Schedule: MethodDefinition< + _scheduler_ScheduleRequest, + _scheduler_NodeInfoResponse, + _scheduler_ScheduleRequest__Output, + _scheduler_NodeInfoResponse__Output + > +} diff --git a/src/grpc/types/signer.d.ts b/src/grpc/types/signer.d.ts new file mode 100644 index 000000000..a06c49b1f --- /dev/null +++ b/src/grpc/types/signer.d.ts @@ -0,0 +1,52 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + SignerClient as _signrpc_SignerClient, + SignerDefinition as _signrpc_SignerDefinition, +} from './signrpc/Signer' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + signrpc: { + InputScript: MessageTypeDefinition + InputScriptResp: MessageTypeDefinition + KeyDescriptor: MessageTypeDefinition + KeyLocator: MessageTypeDefinition + MuSig2CleanupRequest: MessageTypeDefinition + MuSig2CleanupResponse: MessageTypeDefinition + MuSig2CombineKeysRequest: MessageTypeDefinition + MuSig2CombineKeysResponse: MessageTypeDefinition + MuSig2CombineSigRequest: MessageTypeDefinition + MuSig2CombineSigResponse: MessageTypeDefinition + MuSig2RegisterNoncesRequest: MessageTypeDefinition + MuSig2RegisterNoncesResponse: MessageTypeDefinition + MuSig2SessionRequest: MessageTypeDefinition + MuSig2SessionResponse: MessageTypeDefinition + MuSig2SignRequest: MessageTypeDefinition + MuSig2SignResponse: MessageTypeDefinition + SharedKeyRequest: MessageTypeDefinition + SharedKeyResponse: MessageTypeDefinition + SignDescriptor: MessageTypeDefinition + SignMessageReq: MessageTypeDefinition + SignMessageResp: MessageTypeDefinition + SignMethod: EnumTypeDefinition + SignReq: MessageTypeDefinition + SignResp: MessageTypeDefinition + Signer: SubtypeConstructor & { + service: _signrpc_SignerDefinition + } + TaprootTweakDesc: MessageTypeDefinition + TweakDesc: MessageTypeDefinition + TxOut: MessageTypeDefinition + VerifyMessageReq: MessageTypeDefinition + VerifyMessageResp: MessageTypeDefinition + } +} +export {} diff --git a/src/grpc/types/signrpc/InputScript.d.ts b/src/grpc/types/signrpc/InputScript.d.ts new file mode 100644 index 000000000..4e046f3bc --- /dev/null +++ b/src/grpc/types/signrpc/InputScript.d.ts @@ -0,0 +1,9 @@ +/// +export interface InputScript { + witness?: (Buffer | Uint8Array | string)[] + sig_script?: Buffer | Uint8Array | string +} +export interface InputScript__Output { + witness: Buffer[] + sig_script: Buffer +} diff --git a/src/grpc/types/signrpc/InputScriptResp.d.ts b/src/grpc/types/signrpc/InputScriptResp.d.ts new file mode 100644 index 000000000..5d13f9b2a --- /dev/null +++ b/src/grpc/types/signrpc/InputScriptResp.d.ts @@ -0,0 +1,10 @@ +import type { + InputScript as _signrpc_InputScript, + InputScript__Output as _signrpc_InputScript__Output, +} from '../signrpc/InputScript' +export interface InputScriptResp { + input_scripts?: _signrpc_InputScript[] +} +export interface InputScriptResp__Output { + input_scripts: _signrpc_InputScript__Output[] +} diff --git a/src/grpc/types/signrpc/KeyDescriptor.d.ts b/src/grpc/types/signrpc/KeyDescriptor.d.ts new file mode 100644 index 000000000..ee50b4a74 --- /dev/null +++ b/src/grpc/types/signrpc/KeyDescriptor.d.ts @@ -0,0 +1,13 @@ +/// +import type { + KeyLocator as _signrpc_KeyLocator, + KeyLocator__Output as _signrpc_KeyLocator__Output, +} from '../signrpc/KeyLocator' +export interface KeyDescriptor { + raw_key_bytes?: Buffer | Uint8Array | string + key_loc?: _signrpc_KeyLocator | null +} +export interface KeyDescriptor__Output { + raw_key_bytes: Buffer + key_loc: _signrpc_KeyLocator__Output | null +} diff --git a/src/grpc/types/signrpc/KeyLocator.d.ts b/src/grpc/types/signrpc/KeyLocator.d.ts new file mode 100644 index 000000000..f90e9e360 --- /dev/null +++ b/src/grpc/types/signrpc/KeyLocator.d.ts @@ -0,0 +1,8 @@ +export interface KeyLocator { + key_family?: number + key_index?: number +} +export interface KeyLocator__Output { + key_family: number + key_index: number +} diff --git a/src/grpc/types/signrpc/MuSig2CleanupRequest.d.ts b/src/grpc/types/signrpc/MuSig2CleanupRequest.d.ts new file mode 100644 index 000000000..496e82dc1 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CleanupRequest.d.ts @@ -0,0 +1,7 @@ +/// +export interface MuSig2CleanupRequest { + session_id?: Buffer | Uint8Array | string +} +export interface MuSig2CleanupRequest__Output { + session_id: Buffer +} diff --git a/src/grpc/types/signrpc/MuSig2CleanupResponse.d.ts b/src/grpc/types/signrpc/MuSig2CleanupResponse.d.ts new file mode 100644 index 000000000..6f36c7b6d --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CleanupResponse.d.ts @@ -0,0 +1,2 @@ +export interface MuSig2CleanupResponse {} +export interface MuSig2CleanupResponse__Output {} diff --git a/src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts b/src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts new file mode 100644 index 000000000..c889ac4a7 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts @@ -0,0 +1,19 @@ +/// +import type { + TweakDesc as _signrpc_TweakDesc, + TweakDesc__Output as _signrpc_TweakDesc__Output, +} from '../signrpc/TweakDesc' +import type { + TaprootTweakDesc as _signrpc_TaprootTweakDesc, + TaprootTweakDesc__Output as _signrpc_TaprootTweakDesc__Output, +} from '../signrpc/TaprootTweakDesc' +export interface MuSig2CombineKeysRequest { + all_signer_pubkeys?: (Buffer | Uint8Array | string)[] + tweaks?: _signrpc_TweakDesc[] + taproot_tweak?: _signrpc_TaprootTweakDesc | null +} +export interface MuSig2CombineKeysRequest__Output { + all_signer_pubkeys: Buffer[] + tweaks: _signrpc_TweakDesc__Output[] + taproot_tweak: _signrpc_TaprootTweakDesc__Output | null +} diff --git a/src/grpc/types/signrpc/MuSig2CombineKeysResponse.d.ts b/src/grpc/types/signrpc/MuSig2CombineKeysResponse.d.ts new file mode 100644 index 000000000..55d6c98bf --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineKeysResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface MuSig2CombineKeysResponse { + combined_key?: Buffer | Uint8Array | string + taproot_internal_key?: Buffer | Uint8Array | string +} +export interface MuSig2CombineKeysResponse__Output { + combined_key: Buffer + taproot_internal_key: Buffer +} diff --git a/src/grpc/types/signrpc/MuSig2CombineSigRequest.d.ts b/src/grpc/types/signrpc/MuSig2CombineSigRequest.d.ts new file mode 100644 index 000000000..dc18f9cf7 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineSigRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface MuSig2CombineSigRequest { + session_id?: Buffer | Uint8Array | string + other_partial_signatures?: (Buffer | Uint8Array | string)[] +} +export interface MuSig2CombineSigRequest__Output { + session_id: Buffer + other_partial_signatures: Buffer[] +} diff --git a/src/grpc/types/signrpc/MuSig2CombineSigResponse.d.ts b/src/grpc/types/signrpc/MuSig2CombineSigResponse.d.ts new file mode 100644 index 000000000..30511c8d4 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineSigResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface MuSig2CombineSigResponse { + have_all_signatures?: boolean + final_signature?: Buffer | Uint8Array | string +} +export interface MuSig2CombineSigResponse__Output { + have_all_signatures: boolean + final_signature: Buffer +} diff --git a/src/grpc/types/signrpc/MuSig2RegisterNoncesRequest.d.ts b/src/grpc/types/signrpc/MuSig2RegisterNoncesRequest.d.ts new file mode 100644 index 000000000..f9607e3b8 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2RegisterNoncesRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface MuSig2RegisterNoncesRequest { + session_id?: Buffer | Uint8Array | string + other_signer_public_nonces?: (Buffer | Uint8Array | string)[] +} +export interface MuSig2RegisterNoncesRequest__Output { + session_id: Buffer + other_signer_public_nonces: Buffer[] +} diff --git a/src/grpc/types/signrpc/MuSig2RegisterNoncesResponse.d.ts b/src/grpc/types/signrpc/MuSig2RegisterNoncesResponse.d.ts new file mode 100644 index 000000000..b1cd4bf04 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2RegisterNoncesResponse.d.ts @@ -0,0 +1,6 @@ +export interface MuSig2RegisterNoncesResponse { + have_all_nonces?: boolean +} +export interface MuSig2RegisterNoncesResponse__Output { + have_all_nonces: boolean +} diff --git a/src/grpc/types/signrpc/MuSig2SessionRequest.d.ts b/src/grpc/types/signrpc/MuSig2SessionRequest.d.ts new file mode 100644 index 000000000..dd42d858a --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SessionRequest.d.ts @@ -0,0 +1,27 @@ +/// +import type { + KeyLocator as _signrpc_KeyLocator, + KeyLocator__Output as _signrpc_KeyLocator__Output, +} from '../signrpc/KeyLocator' +import type { + TweakDesc as _signrpc_TweakDesc, + TweakDesc__Output as _signrpc_TweakDesc__Output, +} from '../signrpc/TweakDesc' +import type { + TaprootTweakDesc as _signrpc_TaprootTweakDesc, + TaprootTweakDesc__Output as _signrpc_TaprootTweakDesc__Output, +} from '../signrpc/TaprootTweakDesc' +export interface MuSig2SessionRequest { + key_loc?: _signrpc_KeyLocator | null + all_signer_pubkeys?: (Buffer | Uint8Array | string)[] + other_signer_public_nonces?: (Buffer | Uint8Array | string)[] + tweaks?: _signrpc_TweakDesc[] + taproot_tweak?: _signrpc_TaprootTweakDesc | null +} +export interface MuSig2SessionRequest__Output { + key_loc: _signrpc_KeyLocator__Output | null + all_signer_pubkeys: Buffer[] + other_signer_public_nonces: Buffer[] + tweaks: _signrpc_TweakDesc__Output[] + taproot_tweak: _signrpc_TaprootTweakDesc__Output | null +} diff --git a/src/grpc/types/signrpc/MuSig2SessionResponse.d.ts b/src/grpc/types/signrpc/MuSig2SessionResponse.d.ts new file mode 100644 index 000000000..c05d9e7ff --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SessionResponse.d.ts @@ -0,0 +1,15 @@ +/// +export interface MuSig2SessionResponse { + session_id?: Buffer | Uint8Array | string + combined_key?: Buffer | Uint8Array | string + taproot_internal_key?: Buffer | Uint8Array | string + local_public_nonces?: Buffer | Uint8Array | string + have_all_nonces?: boolean +} +export interface MuSig2SessionResponse__Output { + session_id: Buffer + combined_key: Buffer + taproot_internal_key: Buffer + local_public_nonces: Buffer + have_all_nonces: boolean +} diff --git a/src/grpc/types/signrpc/MuSig2SignRequest.d.ts b/src/grpc/types/signrpc/MuSig2SignRequest.d.ts new file mode 100644 index 000000000..aa4a87c94 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SignRequest.d.ts @@ -0,0 +1,11 @@ +/// +export interface MuSig2SignRequest { + session_id?: Buffer | Uint8Array | string + message_digest?: Buffer | Uint8Array | string + cleanup?: boolean +} +export interface MuSig2SignRequest__Output { + session_id: Buffer + message_digest: Buffer + cleanup: boolean +} diff --git a/src/grpc/types/signrpc/MuSig2SignResponse.d.ts b/src/grpc/types/signrpc/MuSig2SignResponse.d.ts new file mode 100644 index 000000000..480d4a840 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SignResponse.d.ts @@ -0,0 +1,7 @@ +/// +export interface MuSig2SignResponse { + local_partial_signature?: Buffer | Uint8Array | string +} +export interface MuSig2SignResponse__Output { + local_partial_signature: Buffer +} diff --git a/src/grpc/types/signrpc/SharedKeyRequest.d.ts b/src/grpc/types/signrpc/SharedKeyRequest.d.ts new file mode 100644 index 000000000..c38481cd6 --- /dev/null +++ b/src/grpc/types/signrpc/SharedKeyRequest.d.ts @@ -0,0 +1,19 @@ +/// +import type { + KeyLocator as _signrpc_KeyLocator, + KeyLocator__Output as _signrpc_KeyLocator__Output, +} from '../signrpc/KeyLocator' +import type { + KeyDescriptor as _signrpc_KeyDescriptor, + KeyDescriptor__Output as _signrpc_KeyDescriptor__Output, +} from '../signrpc/KeyDescriptor' +export interface SharedKeyRequest { + ephemeral_pubkey?: Buffer | Uint8Array | string + key_loc?: _signrpc_KeyLocator | null + key_desc?: _signrpc_KeyDescriptor | null +} +export interface SharedKeyRequest__Output { + ephemeral_pubkey: Buffer + key_loc: _signrpc_KeyLocator__Output | null + key_desc: _signrpc_KeyDescriptor__Output | null +} diff --git a/src/grpc/types/signrpc/SharedKeyResponse.d.ts b/src/grpc/types/signrpc/SharedKeyResponse.d.ts new file mode 100644 index 000000000..59dbc8fa0 --- /dev/null +++ b/src/grpc/types/signrpc/SharedKeyResponse.d.ts @@ -0,0 +1,7 @@ +/// +export interface SharedKeyResponse { + shared_key?: Buffer | Uint8Array | string +} +export interface SharedKeyResponse__Output { + shared_key: Buffer +} diff --git a/src/grpc/types/signrpc/SignDescriptor.d.ts b/src/grpc/types/signrpc/SignDescriptor.d.ts new file mode 100644 index 000000000..e77b6ef20 --- /dev/null +++ b/src/grpc/types/signrpc/SignDescriptor.d.ts @@ -0,0 +1,32 @@ +/// +import type { + KeyDescriptor as _signrpc_KeyDescriptor, + KeyDescriptor__Output as _signrpc_KeyDescriptor__Output, +} from '../signrpc/KeyDescriptor' +import type { + TxOut as _signrpc_TxOut, + TxOut__Output as _signrpc_TxOut__Output, +} from '../signrpc/TxOut' +import type { SignMethod as _signrpc_SignMethod } from '../signrpc/SignMethod' +export interface SignDescriptor { + key_desc?: _signrpc_KeyDescriptor | null + single_tweak?: Buffer | Uint8Array | string + double_tweak?: Buffer | Uint8Array | string + witness_script?: Buffer | Uint8Array | string + output?: _signrpc_TxOut | null + sighash?: number + input_index?: number + sign_method?: _signrpc_SignMethod | keyof typeof _signrpc_SignMethod + tap_tweak?: Buffer | Uint8Array | string +} +export interface SignDescriptor__Output { + key_desc: _signrpc_KeyDescriptor__Output | null + single_tweak: Buffer + double_tweak: Buffer + witness_script: Buffer + output: _signrpc_TxOut__Output | null + sighash: number + input_index: number + sign_method: keyof typeof _signrpc_SignMethod + tap_tweak: Buffer +} diff --git a/src/grpc/types/signrpc/SignMessageReq.d.ts b/src/grpc/types/signrpc/SignMessageReq.d.ts new file mode 100644 index 000000000..4a6d0ded7 --- /dev/null +++ b/src/grpc/types/signrpc/SignMessageReq.d.ts @@ -0,0 +1,21 @@ +/// +import type { + KeyLocator as _signrpc_KeyLocator, + KeyLocator__Output as _signrpc_KeyLocator__Output, +} from '../signrpc/KeyLocator' +export interface SignMessageReq { + msg?: Buffer | Uint8Array | string + key_loc?: _signrpc_KeyLocator | null + double_hash?: boolean + compact_sig?: boolean + schnorr_sig?: boolean + schnorr_sig_tap_tweak?: Buffer | Uint8Array | string +} +export interface SignMessageReq__Output { + msg: Buffer + key_loc: _signrpc_KeyLocator__Output | null + double_hash: boolean + compact_sig: boolean + schnorr_sig: boolean + schnorr_sig_tap_tweak: Buffer +} diff --git a/src/grpc/types/signrpc/SignMessageResp.d.ts b/src/grpc/types/signrpc/SignMessageResp.d.ts new file mode 100644 index 000000000..7c7749451 --- /dev/null +++ b/src/grpc/types/signrpc/SignMessageResp.d.ts @@ -0,0 +1,7 @@ +/// +export interface SignMessageResp { + signature?: Buffer | Uint8Array | string +} +export interface SignMessageResp__Output { + signature: Buffer +} diff --git a/src/grpc/types/signrpc/SignMethod.d.ts b/src/grpc/types/signrpc/SignMethod.d.ts new file mode 100644 index 000000000..1e3177abd --- /dev/null +++ b/src/grpc/types/signrpc/SignMethod.d.ts @@ -0,0 +1,6 @@ +export declare enum SignMethod { + SIGN_METHOD_WITNESS_V0 = 0, + SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086 = 1, + SIGN_METHOD_TAPROOT_KEY_SPEND = 2, + SIGN_METHOD_TAPROOT_SCRIPT_SPEND = 3, +} diff --git a/src/grpc/types/signrpc/SignReq.d.ts b/src/grpc/types/signrpc/SignReq.d.ts new file mode 100644 index 000000000..4717b45cb --- /dev/null +++ b/src/grpc/types/signrpc/SignReq.d.ts @@ -0,0 +1,19 @@ +/// +import type { + SignDescriptor as _signrpc_SignDescriptor, + SignDescriptor__Output as _signrpc_SignDescriptor__Output, +} from '../signrpc/SignDescriptor' +import type { + TxOut as _signrpc_TxOut, + TxOut__Output as _signrpc_TxOut__Output, +} from '../signrpc/TxOut' +export interface SignReq { + raw_tx_bytes?: Buffer | Uint8Array | string + sign_descs?: _signrpc_SignDescriptor[] + prev_outputs?: _signrpc_TxOut[] +} +export interface SignReq__Output { + raw_tx_bytes: Buffer + sign_descs: _signrpc_SignDescriptor__Output[] + prev_outputs: _signrpc_TxOut__Output[] +} diff --git a/src/grpc/types/signrpc/SignResp.d.ts b/src/grpc/types/signrpc/SignResp.d.ts new file mode 100644 index 000000000..dfd5ced33 --- /dev/null +++ b/src/grpc/types/signrpc/SignResp.d.ts @@ -0,0 +1,7 @@ +/// +export interface SignResp { + raw_sigs?: (Buffer | Uint8Array | string)[] +} +export interface SignResp__Output { + raw_sigs: Buffer[] +} diff --git a/src/grpc/types/signrpc/Signer.d.ts b/src/grpc/types/signrpc/Signer.d.ts new file mode 100644 index 000000000..df9cc6deb --- /dev/null +++ b/src/grpc/types/signrpc/Signer.d.ts @@ -0,0 +1,642 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + InputScriptResp as _signrpc_InputScriptResp, + InputScriptResp__Output as _signrpc_InputScriptResp__Output, +} from '../signrpc/InputScriptResp' +import type { + MuSig2CleanupRequest as _signrpc_MuSig2CleanupRequest, + MuSig2CleanupRequest__Output as _signrpc_MuSig2CleanupRequest__Output, +} from '../signrpc/MuSig2CleanupRequest' +import type { + MuSig2CleanupResponse as _signrpc_MuSig2CleanupResponse, + MuSig2CleanupResponse__Output as _signrpc_MuSig2CleanupResponse__Output, +} from '../signrpc/MuSig2CleanupResponse' +import type { + MuSig2CombineKeysRequest as _signrpc_MuSig2CombineKeysRequest, + MuSig2CombineKeysRequest__Output as _signrpc_MuSig2CombineKeysRequest__Output, +} from '../signrpc/MuSig2CombineKeysRequest' +import type { + MuSig2CombineKeysResponse as _signrpc_MuSig2CombineKeysResponse, + MuSig2CombineKeysResponse__Output as _signrpc_MuSig2CombineKeysResponse__Output, +} from '../signrpc/MuSig2CombineKeysResponse' +import type { + MuSig2CombineSigRequest as _signrpc_MuSig2CombineSigRequest, + MuSig2CombineSigRequest__Output as _signrpc_MuSig2CombineSigRequest__Output, +} from '../signrpc/MuSig2CombineSigRequest' +import type { + MuSig2CombineSigResponse as _signrpc_MuSig2CombineSigResponse, + MuSig2CombineSigResponse__Output as _signrpc_MuSig2CombineSigResponse__Output, +} from '../signrpc/MuSig2CombineSigResponse' +import type { + MuSig2RegisterNoncesRequest as _signrpc_MuSig2RegisterNoncesRequest, + MuSig2RegisterNoncesRequest__Output as _signrpc_MuSig2RegisterNoncesRequest__Output, +} from '../signrpc/MuSig2RegisterNoncesRequest' +import type { + MuSig2RegisterNoncesResponse as _signrpc_MuSig2RegisterNoncesResponse, + MuSig2RegisterNoncesResponse__Output as _signrpc_MuSig2RegisterNoncesResponse__Output, +} from '../signrpc/MuSig2RegisterNoncesResponse' +import type { + MuSig2SessionRequest as _signrpc_MuSig2SessionRequest, + MuSig2SessionRequest__Output as _signrpc_MuSig2SessionRequest__Output, +} from '../signrpc/MuSig2SessionRequest' +import type { + MuSig2SessionResponse as _signrpc_MuSig2SessionResponse, + MuSig2SessionResponse__Output as _signrpc_MuSig2SessionResponse__Output, +} from '../signrpc/MuSig2SessionResponse' +import type { + MuSig2SignRequest as _signrpc_MuSig2SignRequest, + MuSig2SignRequest__Output as _signrpc_MuSig2SignRequest__Output, +} from '../signrpc/MuSig2SignRequest' +import type { + MuSig2SignResponse as _signrpc_MuSig2SignResponse, + MuSig2SignResponse__Output as _signrpc_MuSig2SignResponse__Output, +} from '../signrpc/MuSig2SignResponse' +import type { + SharedKeyRequest as _signrpc_SharedKeyRequest, + SharedKeyRequest__Output as _signrpc_SharedKeyRequest__Output, +} from '../signrpc/SharedKeyRequest' +import type { + SharedKeyResponse as _signrpc_SharedKeyResponse, + SharedKeyResponse__Output as _signrpc_SharedKeyResponse__Output, +} from '../signrpc/SharedKeyResponse' +import type { + SignMessageReq as _signrpc_SignMessageReq, + SignMessageReq__Output as _signrpc_SignMessageReq__Output, +} from '../signrpc/SignMessageReq' +import type { + SignMessageResp as _signrpc_SignMessageResp, + SignMessageResp__Output as _signrpc_SignMessageResp__Output, +} from '../signrpc/SignMessageResp' +import type { + SignReq as _signrpc_SignReq, + SignReq__Output as _signrpc_SignReq__Output, +} from '../signrpc/SignReq' +import type { + SignResp as _signrpc_SignResp, + SignResp__Output as _signrpc_SignResp__Output, +} from '../signrpc/SignResp' +import type { + VerifyMessageReq as _signrpc_VerifyMessageReq, + VerifyMessageReq__Output as _signrpc_VerifyMessageReq__Output, +} from '../signrpc/VerifyMessageReq' +import type { + VerifyMessageResp as _signrpc_VerifyMessageResp, + VerifyMessageResp__Output as _signrpc_VerifyMessageResp__Output, +} from '../signrpc/VerifyMessageResp' +export interface SignerClient extends grpc.Client { + ComputeInputScript( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + ComputeInputScript( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + ComputeInputScript( + argument: _signrpc_SignReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + ComputeInputScript( + argument: _signrpc_SignReq, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + computeInputScript( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + computeInputScript( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + computeInputScript( + argument: _signrpc_SignReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + computeInputScript( + argument: _signrpc_SignReq, + callback: grpc.requestCallback<_signrpc_InputScriptResp__Output> + ): grpc.ClientUnaryCall + DeriveSharedKey( + argument: _signrpc_SharedKeyRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + DeriveSharedKey( + argument: _signrpc_SharedKeyRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + DeriveSharedKey( + argument: _signrpc_SharedKeyRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + DeriveSharedKey( + argument: _signrpc_SharedKeyRequest, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + deriveSharedKey( + argument: _signrpc_SharedKeyRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + deriveSharedKey( + argument: _signrpc_SharedKeyRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + deriveSharedKey( + argument: _signrpc_SharedKeyRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + deriveSharedKey( + argument: _signrpc_SharedKeyRequest, + callback: grpc.requestCallback<_signrpc_SharedKeyResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + muSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + muSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + muSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + muSig2Cleanup( + argument: _signrpc_MuSig2CleanupRequest, + callback: grpc.requestCallback<_signrpc_MuSig2CleanupResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineKeys( + argument: _signrpc_MuSig2CombineKeysRequest, + callback: grpc.requestCallback<_signrpc_MuSig2CombineKeysResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + muSig2CombineSig( + argument: _signrpc_MuSig2CombineSigRequest, + callback: grpc.requestCallback<_signrpc_MuSig2CombineSigResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + MuSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + muSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + muSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + muSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + muSig2CreateSession( + argument: _signrpc_MuSig2SessionRequest, + callback: grpc.requestCallback<_signrpc_MuSig2SessionResponse__Output> + ): grpc.ClientUnaryCall + MuSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + MuSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + MuSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + MuSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + muSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + muSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + muSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + muSig2RegisterNonces( + argument: _signrpc_MuSig2RegisterNoncesRequest, + callback: grpc.requestCallback<_signrpc_MuSig2RegisterNoncesResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Sign( + argument: _signrpc_MuSig2SignRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Sign( + argument: _signrpc_MuSig2SignRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Sign( + argument: _signrpc_MuSig2SignRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + MuSig2Sign( + argument: _signrpc_MuSig2SignRequest, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + muSig2Sign( + argument: _signrpc_MuSig2SignRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + muSig2Sign( + argument: _signrpc_MuSig2SignRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + muSig2Sign( + argument: _signrpc_MuSig2SignRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + muSig2Sign( + argument: _signrpc_MuSig2SignRequest, + callback: grpc.requestCallback<_signrpc_MuSig2SignResponse__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _signrpc_SignMessageReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _signrpc_SignMessageReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _signrpc_SignMessageReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + SignMessage( + argument: _signrpc_SignMessageReq, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _signrpc_SignMessageReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _signrpc_SignMessageReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _signrpc_SignMessageReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + signMessage( + argument: _signrpc_SignMessageReq, + callback: grpc.requestCallback<_signrpc_SignMessageResp__Output> + ): grpc.ClientUnaryCall + SignOutputRaw( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + SignOutputRaw( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + SignOutputRaw( + argument: _signrpc_SignReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + SignOutputRaw( + argument: _signrpc_SignReq, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + signOutputRaw( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + signOutputRaw( + argument: _signrpc_SignReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + signOutputRaw( + argument: _signrpc_SignReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + signOutputRaw( + argument: _signrpc_SignReq, + callback: grpc.requestCallback<_signrpc_SignResp__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _signrpc_VerifyMessageReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _signrpc_VerifyMessageReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _signrpc_VerifyMessageReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + VerifyMessage( + argument: _signrpc_VerifyMessageReq, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _signrpc_VerifyMessageReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _signrpc_VerifyMessageReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _signrpc_VerifyMessageReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall + verifyMessage( + argument: _signrpc_VerifyMessageReq, + callback: grpc.requestCallback<_signrpc_VerifyMessageResp__Output> + ): grpc.ClientUnaryCall +} +export interface SignerHandlers extends grpc.UntypedServiceImplementation { + ComputeInputScript: grpc.handleUnaryCall< + _signrpc_SignReq__Output, + _signrpc_InputScriptResp + > + DeriveSharedKey: grpc.handleUnaryCall< + _signrpc_SharedKeyRequest__Output, + _signrpc_SharedKeyResponse + > + MuSig2Cleanup: grpc.handleUnaryCall< + _signrpc_MuSig2CleanupRequest__Output, + _signrpc_MuSig2CleanupResponse + > + MuSig2CombineKeys: grpc.handleUnaryCall< + _signrpc_MuSig2CombineKeysRequest__Output, + _signrpc_MuSig2CombineKeysResponse + > + MuSig2CombineSig: grpc.handleUnaryCall< + _signrpc_MuSig2CombineSigRequest__Output, + _signrpc_MuSig2CombineSigResponse + > + MuSig2CreateSession: grpc.handleUnaryCall< + _signrpc_MuSig2SessionRequest__Output, + _signrpc_MuSig2SessionResponse + > + MuSig2RegisterNonces: grpc.handleUnaryCall< + _signrpc_MuSig2RegisterNoncesRequest__Output, + _signrpc_MuSig2RegisterNoncesResponse + > + MuSig2Sign: grpc.handleUnaryCall< + _signrpc_MuSig2SignRequest__Output, + _signrpc_MuSig2SignResponse + > + SignMessage: grpc.handleUnaryCall< + _signrpc_SignMessageReq__Output, + _signrpc_SignMessageResp + > + SignOutputRaw: grpc.handleUnaryCall< + _signrpc_SignReq__Output, + _signrpc_SignResp + > + VerifyMessage: grpc.handleUnaryCall< + _signrpc_VerifyMessageReq__Output, + _signrpc_VerifyMessageResp + > +} +export interface SignerDefinition extends grpc.ServiceDefinition { + ComputeInputScript: MethodDefinition< + _signrpc_SignReq, + _signrpc_InputScriptResp, + _signrpc_SignReq__Output, + _signrpc_InputScriptResp__Output + > + DeriveSharedKey: MethodDefinition< + _signrpc_SharedKeyRequest, + _signrpc_SharedKeyResponse, + _signrpc_SharedKeyRequest__Output, + _signrpc_SharedKeyResponse__Output + > + MuSig2Cleanup: MethodDefinition< + _signrpc_MuSig2CleanupRequest, + _signrpc_MuSig2CleanupResponse, + _signrpc_MuSig2CleanupRequest__Output, + _signrpc_MuSig2CleanupResponse__Output + > + MuSig2CombineKeys: MethodDefinition< + _signrpc_MuSig2CombineKeysRequest, + _signrpc_MuSig2CombineKeysResponse, + _signrpc_MuSig2CombineKeysRequest__Output, + _signrpc_MuSig2CombineKeysResponse__Output + > + MuSig2CombineSig: MethodDefinition< + _signrpc_MuSig2CombineSigRequest, + _signrpc_MuSig2CombineSigResponse, + _signrpc_MuSig2CombineSigRequest__Output, + _signrpc_MuSig2CombineSigResponse__Output + > + MuSig2CreateSession: MethodDefinition< + _signrpc_MuSig2SessionRequest, + _signrpc_MuSig2SessionResponse, + _signrpc_MuSig2SessionRequest__Output, + _signrpc_MuSig2SessionResponse__Output + > + MuSig2RegisterNonces: MethodDefinition< + _signrpc_MuSig2RegisterNoncesRequest, + _signrpc_MuSig2RegisterNoncesResponse, + _signrpc_MuSig2RegisterNoncesRequest__Output, + _signrpc_MuSig2RegisterNoncesResponse__Output + > + MuSig2Sign: MethodDefinition< + _signrpc_MuSig2SignRequest, + _signrpc_MuSig2SignResponse, + _signrpc_MuSig2SignRequest__Output, + _signrpc_MuSig2SignResponse__Output + > + SignMessage: MethodDefinition< + _signrpc_SignMessageReq, + _signrpc_SignMessageResp, + _signrpc_SignMessageReq__Output, + _signrpc_SignMessageResp__Output + > + SignOutputRaw: MethodDefinition< + _signrpc_SignReq, + _signrpc_SignResp, + _signrpc_SignReq__Output, + _signrpc_SignResp__Output + > + VerifyMessage: MethodDefinition< + _signrpc_VerifyMessageReq, + _signrpc_VerifyMessageResp, + _signrpc_VerifyMessageReq__Output, + _signrpc_VerifyMessageResp__Output + > +} diff --git a/src/grpc/types/signrpc/TaprootTweakDesc.d.ts b/src/grpc/types/signrpc/TaprootTweakDesc.d.ts new file mode 100644 index 000000000..bcb5d464f --- /dev/null +++ b/src/grpc/types/signrpc/TaprootTweakDesc.d.ts @@ -0,0 +1,9 @@ +/// +export interface TaprootTweakDesc { + script_root?: Buffer | Uint8Array | string + key_spend_only?: boolean +} +export interface TaprootTweakDesc__Output { + script_root: Buffer + key_spend_only: boolean +} diff --git a/src/grpc/types/signrpc/TweakDesc.d.ts b/src/grpc/types/signrpc/TweakDesc.d.ts new file mode 100644 index 000000000..9f8b1be7c --- /dev/null +++ b/src/grpc/types/signrpc/TweakDesc.d.ts @@ -0,0 +1,9 @@ +/// +export interface TweakDesc { + tweak?: Buffer | Uint8Array | string + is_x_only?: boolean +} +export interface TweakDesc__Output { + tweak: Buffer + is_x_only: boolean +} diff --git a/src/grpc/types/signrpc/TxOut.d.ts b/src/grpc/types/signrpc/TxOut.d.ts new file mode 100644 index 000000000..594731242 --- /dev/null +++ b/src/grpc/types/signrpc/TxOut.d.ts @@ -0,0 +1,11 @@ +/// +/// +import type { Long } from '@grpc/proto-loader' +export interface TxOut { + value?: number | string | Long + pk_script?: Buffer | Uint8Array | string +} +export interface TxOut__Output { + value: string + pk_script: Buffer +} diff --git a/src/grpc/types/signrpc/VerifyMessageReq.d.ts b/src/grpc/types/signrpc/VerifyMessageReq.d.ts new file mode 100644 index 000000000..05af1247f --- /dev/null +++ b/src/grpc/types/signrpc/VerifyMessageReq.d.ts @@ -0,0 +1,13 @@ +/// +export interface VerifyMessageReq { + msg?: Buffer | Uint8Array | string + signature?: Buffer | Uint8Array | string + pubkey?: Buffer | Uint8Array | string + is_schnorr_sig?: boolean +} +export interface VerifyMessageReq__Output { + msg: Buffer + signature: Buffer + pubkey: Buffer + is_schnorr_sig: boolean +} diff --git a/src/grpc/types/signrpc/VerifyMessageResp.d.ts b/src/grpc/types/signrpc/VerifyMessageResp.d.ts new file mode 100644 index 000000000..ab0cc562b --- /dev/null +++ b/src/grpc/types/signrpc/VerifyMessageResp.d.ts @@ -0,0 +1,6 @@ +export interface VerifyMessageResp { + valid?: boolean +} +export interface VerifyMessageResp__Output { + valid: boolean +} diff --git a/src/grpc/types/walletkit.d.ts b/src/grpc/types/walletkit.d.ts new file mode 100644 index 000000000..b0b93e52d --- /dev/null +++ b/src/grpc/types/walletkit.d.ts @@ -0,0 +1,331 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + LightningClient as _lnrpc_LightningClient, + LightningDefinition as _lnrpc_LightningDefinition, +} from './lnrpc/Lightning' +import type { + SignerClient as _signrpc_SignerClient, + SignerDefinition as _signrpc_SignerDefinition, +} from './signrpc/Signer' +import type { + WalletKitClient as _walletrpc_WalletKitClient, + WalletKitDefinition as _walletrpc_WalletKitDefinition, +} from './walletrpc/WalletKit' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + lnrpc: { + AMP: MessageTypeDefinition + AMPInvoiceState: MessageTypeDefinition + AMPRecord: MessageTypeDefinition + AbandonChannelRequest: MessageTypeDefinition + AbandonChannelResponse: MessageTypeDefinition + AddInvoiceResponse: MessageTypeDefinition + AddressType: EnumTypeDefinition + AliasMap: MessageTypeDefinition + Amount: MessageTypeDefinition + BakeMacaroonRequest: MessageTypeDefinition + BakeMacaroonResponse: MessageTypeDefinition + BatchOpenChannel: MessageTypeDefinition + BatchOpenChannelRequest: MessageTypeDefinition + BatchOpenChannelResponse: MessageTypeDefinition + Chain: MessageTypeDefinition + ChanBackupExportRequest: MessageTypeDefinition + ChanBackupSnapshot: MessageTypeDefinition + ChanInfoRequest: MessageTypeDefinition + ChanPointShim: MessageTypeDefinition + Channel: MessageTypeDefinition + ChannelAcceptRequest: MessageTypeDefinition + ChannelAcceptResponse: MessageTypeDefinition + ChannelBackup: MessageTypeDefinition + ChannelBackupSubscription: MessageTypeDefinition + ChannelBackups: MessageTypeDefinition + ChannelBalanceRequest: MessageTypeDefinition + ChannelBalanceResponse: MessageTypeDefinition + ChannelCloseSummary: MessageTypeDefinition + ChannelCloseUpdate: MessageTypeDefinition + ChannelConstraints: MessageTypeDefinition + ChannelEdge: MessageTypeDefinition + ChannelEdgeUpdate: MessageTypeDefinition + ChannelEventSubscription: MessageTypeDefinition + ChannelEventUpdate: MessageTypeDefinition + ChannelFeeReport: MessageTypeDefinition + ChannelGraph: MessageTypeDefinition + ChannelGraphRequest: MessageTypeDefinition + ChannelOpenUpdate: MessageTypeDefinition + ChannelPoint: MessageTypeDefinition + ChannelUpdate: MessageTypeDefinition + CheckMacPermRequest: MessageTypeDefinition + CheckMacPermResponse: MessageTypeDefinition + CloseChannelRequest: MessageTypeDefinition + CloseStatusUpdate: MessageTypeDefinition + ClosedChannelUpdate: MessageTypeDefinition + ClosedChannelsRequest: MessageTypeDefinition + ClosedChannelsResponse: MessageTypeDefinition + CommitmentType: EnumTypeDefinition + ConfirmationUpdate: MessageTypeDefinition + ConnectPeerRequest: MessageTypeDefinition + ConnectPeerResponse: MessageTypeDefinition + CustomMessage: MessageTypeDefinition + DebugLevelRequest: MessageTypeDefinition + DebugLevelResponse: MessageTypeDefinition + DeleteAllPaymentsRequest: MessageTypeDefinition + DeleteAllPaymentsResponse: MessageTypeDefinition + DeleteMacaroonIDRequest: MessageTypeDefinition + DeleteMacaroonIDResponse: MessageTypeDefinition + DeletePaymentRequest: MessageTypeDefinition + DeletePaymentResponse: MessageTypeDefinition + DisconnectPeerRequest: MessageTypeDefinition + DisconnectPeerResponse: MessageTypeDefinition + EdgeLocator: MessageTypeDefinition + EstimateFeeRequest: MessageTypeDefinition + EstimateFeeResponse: MessageTypeDefinition + ExportChannelBackupRequest: MessageTypeDefinition + FailedUpdate: MessageTypeDefinition + Failure: MessageTypeDefinition + Feature: MessageTypeDefinition + FeatureBit: EnumTypeDefinition + FeeLimit: MessageTypeDefinition + FeeReportRequest: MessageTypeDefinition + FeeReportResponse: MessageTypeDefinition + FloatMetric: MessageTypeDefinition + ForwardingEvent: MessageTypeDefinition + ForwardingHistoryRequest: MessageTypeDefinition + ForwardingHistoryResponse: MessageTypeDefinition + FundingPsbtFinalize: MessageTypeDefinition + FundingPsbtVerify: MessageTypeDefinition + FundingShim: MessageTypeDefinition + FundingShimCancel: MessageTypeDefinition + FundingStateStepResp: MessageTypeDefinition + FundingTransitionMsg: MessageTypeDefinition + GetInfoRequest: MessageTypeDefinition + GetInfoResponse: MessageTypeDefinition + GetRecoveryInfoRequest: MessageTypeDefinition + GetRecoveryInfoResponse: MessageTypeDefinition + GetTransactionsRequest: MessageTypeDefinition + GraphTopologySubscription: MessageTypeDefinition + GraphTopologyUpdate: MessageTypeDefinition + HTLC: MessageTypeDefinition + HTLCAttempt: MessageTypeDefinition + Hop: MessageTypeDefinition + HopHint: MessageTypeDefinition + Initiator: EnumTypeDefinition + InterceptFeedback: MessageTypeDefinition + Invoice: MessageTypeDefinition + InvoiceHTLC: MessageTypeDefinition + InvoiceHTLCState: EnumTypeDefinition + InvoiceSubscription: MessageTypeDefinition + KeyDescriptor: MessageTypeDefinition + KeyLocator: MessageTypeDefinition + Lightning: SubtypeConstructor< + typeof grpc.Client, + _lnrpc_LightningClient + > & { + service: _lnrpc_LightningDefinition + } + LightningAddress: MessageTypeDefinition + LightningNode: MessageTypeDefinition + ListAliasesRequest: MessageTypeDefinition + ListAliasesResponse: MessageTypeDefinition + ListChannelsRequest: MessageTypeDefinition + ListChannelsResponse: MessageTypeDefinition + ListInvoiceRequest: MessageTypeDefinition + ListInvoiceResponse: MessageTypeDefinition + ListMacaroonIDsRequest: MessageTypeDefinition + ListMacaroonIDsResponse: MessageTypeDefinition + ListPaymentsRequest: MessageTypeDefinition + ListPaymentsResponse: MessageTypeDefinition + ListPeersRequest: MessageTypeDefinition + ListPeersResponse: MessageTypeDefinition + ListPermissionsRequest: MessageTypeDefinition + ListPermissionsResponse: MessageTypeDefinition + ListUnspentRequest: MessageTypeDefinition + ListUnspentResponse: MessageTypeDefinition + MPPRecord: MessageTypeDefinition + MacaroonId: MessageTypeDefinition + MacaroonPermission: MessageTypeDefinition + MacaroonPermissionList: MessageTypeDefinition + MiddlewareRegistration: MessageTypeDefinition + MultiChanBackup: MessageTypeDefinition + NetworkInfo: MessageTypeDefinition + NetworkInfoRequest: MessageTypeDefinition + NewAddressRequest: MessageTypeDefinition + NewAddressResponse: MessageTypeDefinition + NodeAddress: MessageTypeDefinition + NodeInfo: MessageTypeDefinition + NodeInfoRequest: MessageTypeDefinition + NodeMetricType: EnumTypeDefinition + NodeMetricsRequest: MessageTypeDefinition + NodeMetricsResponse: MessageTypeDefinition + NodePair: MessageTypeDefinition + NodeUpdate: MessageTypeDefinition + Op: MessageTypeDefinition + OpenChannelRequest: MessageTypeDefinition + OpenStatusUpdate: MessageTypeDefinition + OutPoint: MessageTypeDefinition + OutputDetail: MessageTypeDefinition + OutputScriptType: EnumTypeDefinition + PayReq: MessageTypeDefinition + PayReqString: MessageTypeDefinition + Payment: MessageTypeDefinition + PaymentFailureReason: EnumTypeDefinition + PaymentHash: MessageTypeDefinition + Peer: MessageTypeDefinition + PeerEvent: MessageTypeDefinition + PeerEventSubscription: MessageTypeDefinition + PendingChannelsRequest: MessageTypeDefinition + PendingChannelsResponse: MessageTypeDefinition + PendingHTLC: MessageTypeDefinition + PendingUpdate: MessageTypeDefinition + PolicyUpdateRequest: MessageTypeDefinition + PolicyUpdateResponse: MessageTypeDefinition + PreviousOutPoint: MessageTypeDefinition + PsbtShim: MessageTypeDefinition + QueryRoutesRequest: MessageTypeDefinition + QueryRoutesResponse: MessageTypeDefinition + RPCMessage: MessageTypeDefinition + RPCMiddlewareRequest: MessageTypeDefinition + RPCMiddlewareResponse: MessageTypeDefinition + ReadyForPsbtFunding: MessageTypeDefinition + Resolution: MessageTypeDefinition + ResolutionOutcome: EnumTypeDefinition + ResolutionType: EnumTypeDefinition + RestoreBackupResponse: MessageTypeDefinition + RestoreChanBackupRequest: MessageTypeDefinition + Route: MessageTypeDefinition + RouteHint: MessageTypeDefinition + RoutingPolicy: MessageTypeDefinition + SendCoinsRequest: MessageTypeDefinition + SendCoinsResponse: MessageTypeDefinition + SendCustomMessageRequest: MessageTypeDefinition + SendCustomMessageResponse: MessageTypeDefinition + SendManyRequest: MessageTypeDefinition + SendManyResponse: MessageTypeDefinition + SendRequest: MessageTypeDefinition + SendResponse: MessageTypeDefinition + SendToRouteRequest: MessageTypeDefinition + SetID: MessageTypeDefinition + SignMessageRequest: MessageTypeDefinition + SignMessageResponse: MessageTypeDefinition + StopRequest: MessageTypeDefinition + StopResponse: MessageTypeDefinition + StreamAuth: MessageTypeDefinition + SubscribeCustomMessagesRequest: MessageTypeDefinition + TimestampedError: MessageTypeDefinition + Transaction: MessageTypeDefinition + TransactionDetails: MessageTypeDefinition + UpdateFailure: EnumTypeDefinition + Utxo: MessageTypeDefinition + VerifyChanBackupResponse: MessageTypeDefinition + VerifyMessageRequest: MessageTypeDefinition + VerifyMessageResponse: MessageTypeDefinition + WalletAccountBalance: MessageTypeDefinition + WalletBalanceRequest: MessageTypeDefinition + WalletBalanceResponse: MessageTypeDefinition + } + signrpc: { + InputScript: MessageTypeDefinition + InputScriptResp: MessageTypeDefinition + KeyDescriptor: MessageTypeDefinition + KeyLocator: MessageTypeDefinition + MuSig2CleanupRequest: MessageTypeDefinition + MuSig2CleanupResponse: MessageTypeDefinition + MuSig2CombineKeysRequest: MessageTypeDefinition + MuSig2CombineKeysResponse: MessageTypeDefinition + MuSig2CombineSigRequest: MessageTypeDefinition + MuSig2CombineSigResponse: MessageTypeDefinition + MuSig2RegisterNoncesRequest: MessageTypeDefinition + MuSig2RegisterNoncesResponse: MessageTypeDefinition + MuSig2SessionRequest: MessageTypeDefinition + MuSig2SessionResponse: MessageTypeDefinition + MuSig2SignRequest: MessageTypeDefinition + MuSig2SignResponse: MessageTypeDefinition + SharedKeyRequest: MessageTypeDefinition + SharedKeyResponse: MessageTypeDefinition + SignDescriptor: MessageTypeDefinition + SignMessageReq: MessageTypeDefinition + SignMessageResp: MessageTypeDefinition + SignMethod: EnumTypeDefinition + SignReq: MessageTypeDefinition + SignResp: MessageTypeDefinition + Signer: SubtypeConstructor & { + service: _signrpc_SignerDefinition + } + TaprootTweakDesc: MessageTypeDefinition + TweakDesc: MessageTypeDefinition + TxOut: MessageTypeDefinition + VerifyMessageReq: MessageTypeDefinition + VerifyMessageResp: MessageTypeDefinition + } + walletrpc: { + Account: MessageTypeDefinition + AccountWithAddresses: MessageTypeDefinition + AddrRequest: MessageTypeDefinition + AddrResponse: MessageTypeDefinition + AddressProperty: MessageTypeDefinition + AddressType: EnumTypeDefinition + BumpFeeRequest: MessageTypeDefinition + BumpFeeResponse: MessageTypeDefinition + EstimateFeeRequest: MessageTypeDefinition + EstimateFeeResponse: MessageTypeDefinition + FinalizePsbtRequest: MessageTypeDefinition + FinalizePsbtResponse: MessageTypeDefinition + FundPsbtRequest: MessageTypeDefinition + FundPsbtResponse: MessageTypeDefinition + ImportAccountRequest: MessageTypeDefinition + ImportAccountResponse: MessageTypeDefinition + ImportPublicKeyRequest: MessageTypeDefinition + ImportPublicKeyResponse: MessageTypeDefinition + ImportTapscriptRequest: MessageTypeDefinition + ImportTapscriptResponse: MessageTypeDefinition + KeyReq: MessageTypeDefinition + LabelTransactionRequest: MessageTypeDefinition + LabelTransactionResponse: MessageTypeDefinition + LeaseOutputRequest: MessageTypeDefinition + LeaseOutputResponse: MessageTypeDefinition + ListAccountsRequest: MessageTypeDefinition + ListAccountsResponse: MessageTypeDefinition + ListAddressesRequest: MessageTypeDefinition + ListAddressesResponse: MessageTypeDefinition + ListLeasesRequest: MessageTypeDefinition + ListLeasesResponse: MessageTypeDefinition + ListSweepsRequest: MessageTypeDefinition + ListSweepsResponse: MessageTypeDefinition + ListUnspentRequest: MessageTypeDefinition + ListUnspentResponse: MessageTypeDefinition + PendingSweep: MessageTypeDefinition + PendingSweepsRequest: MessageTypeDefinition + PendingSweepsResponse: MessageTypeDefinition + PublishResponse: MessageTypeDefinition + ReleaseOutputRequest: MessageTypeDefinition + ReleaseOutputResponse: MessageTypeDefinition + RequiredReserveRequest: MessageTypeDefinition + RequiredReserveResponse: MessageTypeDefinition + SendOutputsRequest: MessageTypeDefinition + SendOutputsResponse: MessageTypeDefinition + SignPsbtRequest: MessageTypeDefinition + SignPsbtResponse: MessageTypeDefinition + TapLeaf: MessageTypeDefinition + TapscriptFullTree: MessageTypeDefinition + TapscriptPartialReveal: MessageTypeDefinition + Transaction: MessageTypeDefinition + TxTemplate: MessageTypeDefinition + UtxoLease: MessageTypeDefinition + WalletKit: SubtypeConstructor< + typeof grpc.Client, + _walletrpc_WalletKitClient + > & { + service: _walletrpc_WalletKitDefinition + } + WitnessType: EnumTypeDefinition + } +} +export {} diff --git a/src/grpc/types/walletrpc/Account.d.ts b/src/grpc/types/walletrpc/Account.d.ts new file mode 100644 index 000000000..6664a98fb --- /dev/null +++ b/src/grpc/types/walletrpc/Account.d.ts @@ -0,0 +1,22 @@ +/// +import type { AddressType as _walletrpc_AddressType } from '../walletrpc/AddressType' +export interface Account { + name?: string + address_type?: _walletrpc_AddressType | keyof typeof _walletrpc_AddressType + extended_public_key?: string + master_key_fingerprint?: Buffer | Uint8Array | string + derivation_path?: string + external_key_count?: number + internal_key_count?: number + watch_only?: boolean +} +export interface Account__Output { + name: string + address_type: keyof typeof _walletrpc_AddressType + extended_public_key: string + master_key_fingerprint: Buffer + derivation_path: string + external_key_count: number + internal_key_count: number + watch_only: boolean +} diff --git a/src/grpc/types/walletrpc/AccountWithAddresses.d.ts b/src/grpc/types/walletrpc/AccountWithAddresses.d.ts new file mode 100644 index 000000000..6bdbfb393 --- /dev/null +++ b/src/grpc/types/walletrpc/AccountWithAddresses.d.ts @@ -0,0 +1,17 @@ +import type { AddressType as _walletrpc_AddressType } from '../walletrpc/AddressType' +import type { + AddressProperty as _walletrpc_AddressProperty, + AddressProperty__Output as _walletrpc_AddressProperty__Output, +} from '../walletrpc/AddressProperty' +export interface AccountWithAddresses { + name?: string + address_type?: _walletrpc_AddressType | keyof typeof _walletrpc_AddressType + derivation_path?: string + addresses?: _walletrpc_AddressProperty[] +} +export interface AccountWithAddresses__Output { + name: string + address_type: keyof typeof _walletrpc_AddressType + derivation_path: string + addresses: _walletrpc_AddressProperty__Output[] +} diff --git a/src/grpc/types/walletrpc/AddrRequest.d.ts b/src/grpc/types/walletrpc/AddrRequest.d.ts new file mode 100644 index 000000000..0fc0feb4e --- /dev/null +++ b/src/grpc/types/walletrpc/AddrRequest.d.ts @@ -0,0 +1,11 @@ +import type { AddressType as _walletrpc_AddressType } from '../walletrpc/AddressType' +export interface AddrRequest { + account?: string + type?: _walletrpc_AddressType | keyof typeof _walletrpc_AddressType + change?: boolean +} +export interface AddrRequest__Output { + account: string + type: keyof typeof _walletrpc_AddressType + change: boolean +} diff --git a/src/grpc/types/walletrpc/AddrResponse.d.ts b/src/grpc/types/walletrpc/AddrResponse.d.ts new file mode 100644 index 000000000..721e8913b --- /dev/null +++ b/src/grpc/types/walletrpc/AddrResponse.d.ts @@ -0,0 +1,6 @@ +export interface AddrResponse { + addr?: string +} +export interface AddrResponse__Output { + addr: string +} diff --git a/src/grpc/types/walletrpc/AddressProperty.d.ts b/src/grpc/types/walletrpc/AddressProperty.d.ts new file mode 100644 index 000000000..2d0959a05 --- /dev/null +++ b/src/grpc/types/walletrpc/AddressProperty.d.ts @@ -0,0 +1,12 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface AddressProperty { + address?: string + is_internal?: boolean + balance?: number | string | Long +} +export interface AddressProperty__Output { + address: string + is_internal: boolean + balance: string +} diff --git a/src/grpc/types/walletrpc/AddressType.d.ts b/src/grpc/types/walletrpc/AddressType.d.ts new file mode 100644 index 000000000..b397679ae --- /dev/null +++ b/src/grpc/types/walletrpc/AddressType.d.ts @@ -0,0 +1,7 @@ +export declare enum AddressType { + UNKNOWN = 0, + WITNESS_PUBKEY_HASH = 1, + NESTED_WITNESS_PUBKEY_HASH = 2, + HYBRID_NESTED_WITNESS_PUBKEY_HASH = 3, + TAPROOT_PUBKEY = 4, +} diff --git a/src/grpc/types/walletrpc/BumpFeeRequest.d.ts b/src/grpc/types/walletrpc/BumpFeeRequest.d.ts new file mode 100644 index 000000000..8ecf8b185 --- /dev/null +++ b/src/grpc/types/walletrpc/BumpFeeRequest.d.ts @@ -0,0 +1,20 @@ +/// +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { Long } from '@grpc/proto-loader' +export interface BumpFeeRequest { + outpoint?: _lnrpc_OutPoint | null + target_conf?: number + sat_per_byte?: number + force?: boolean + sat_per_vbyte?: number | string | Long +} +export interface BumpFeeRequest__Output { + outpoint: _lnrpc_OutPoint__Output | null + target_conf: number + sat_per_byte: number + force: boolean + sat_per_vbyte: string +} diff --git a/src/grpc/types/walletrpc/BumpFeeResponse.d.ts b/src/grpc/types/walletrpc/BumpFeeResponse.d.ts new file mode 100644 index 000000000..2e152754e --- /dev/null +++ b/src/grpc/types/walletrpc/BumpFeeResponse.d.ts @@ -0,0 +1,2 @@ +export interface BumpFeeResponse {} +export interface BumpFeeResponse__Output {} diff --git a/src/grpc/types/walletrpc/EstimateFeeRequest.d.ts b/src/grpc/types/walletrpc/EstimateFeeRequest.d.ts new file mode 100644 index 000000000..24b766988 --- /dev/null +++ b/src/grpc/types/walletrpc/EstimateFeeRequest.d.ts @@ -0,0 +1,6 @@ +export interface EstimateFeeRequest { + conf_target?: number +} +export interface EstimateFeeRequest__Output { + conf_target: number +} diff --git a/src/grpc/types/walletrpc/EstimateFeeResponse.d.ts b/src/grpc/types/walletrpc/EstimateFeeResponse.d.ts new file mode 100644 index 000000000..d14cdf8fd --- /dev/null +++ b/src/grpc/types/walletrpc/EstimateFeeResponse.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface EstimateFeeResponse { + sat_per_kw?: number | string | Long +} +export interface EstimateFeeResponse__Output { + sat_per_kw: string +} diff --git a/src/grpc/types/walletrpc/FinalizePsbtRequest.d.ts b/src/grpc/types/walletrpc/FinalizePsbtRequest.d.ts new file mode 100644 index 000000000..98c161eb4 --- /dev/null +++ b/src/grpc/types/walletrpc/FinalizePsbtRequest.d.ts @@ -0,0 +1,9 @@ +/// +export interface FinalizePsbtRequest { + funded_psbt?: Buffer | Uint8Array | string + account?: string +} +export interface FinalizePsbtRequest__Output { + funded_psbt: Buffer + account: string +} diff --git a/src/grpc/types/walletrpc/FinalizePsbtResponse.d.ts b/src/grpc/types/walletrpc/FinalizePsbtResponse.d.ts new file mode 100644 index 000000000..b1a945777 --- /dev/null +++ b/src/grpc/types/walletrpc/FinalizePsbtResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface FinalizePsbtResponse { + signed_psbt?: Buffer | Uint8Array | string + raw_final_tx?: Buffer | Uint8Array | string +} +export interface FinalizePsbtResponse__Output { + signed_psbt: Buffer + raw_final_tx: Buffer +} diff --git a/src/grpc/types/walletrpc/FundPsbtRequest.d.ts b/src/grpc/types/walletrpc/FundPsbtRequest.d.ts new file mode 100644 index 000000000..1822e40ae --- /dev/null +++ b/src/grpc/types/walletrpc/FundPsbtRequest.d.ts @@ -0,0 +1,29 @@ +/// +/// +import type { + TxTemplate as _walletrpc_TxTemplate, + TxTemplate__Output as _walletrpc_TxTemplate__Output, +} from '../walletrpc/TxTemplate' +import type { Long } from '@grpc/proto-loader' +export interface FundPsbtRequest { + psbt?: Buffer | Uint8Array | string + raw?: _walletrpc_TxTemplate | null + target_conf?: number + sat_per_vbyte?: number | string | Long + account?: string + min_confs?: number + spend_unconfirmed?: boolean + template?: 'psbt' | 'raw' + fees?: 'target_conf' | 'sat_per_vbyte' +} +export interface FundPsbtRequest__Output { + psbt?: Buffer + raw?: _walletrpc_TxTemplate__Output | null + target_conf?: number + sat_per_vbyte?: string + account: string + min_confs: number + spend_unconfirmed: boolean + template: 'psbt' | 'raw' + fees: 'target_conf' | 'sat_per_vbyte' +} diff --git a/src/grpc/types/walletrpc/FundPsbtResponse.d.ts b/src/grpc/types/walletrpc/FundPsbtResponse.d.ts new file mode 100644 index 000000000..1c5748142 --- /dev/null +++ b/src/grpc/types/walletrpc/FundPsbtResponse.d.ts @@ -0,0 +1,15 @@ +/// +import type { + UtxoLease as _walletrpc_UtxoLease, + UtxoLease__Output as _walletrpc_UtxoLease__Output, +} from '../walletrpc/UtxoLease' +export interface FundPsbtResponse { + funded_psbt?: Buffer | Uint8Array | string + change_output_index?: number + locked_utxos?: _walletrpc_UtxoLease[] +} +export interface FundPsbtResponse__Output { + funded_psbt: Buffer + change_output_index: number + locked_utxos: _walletrpc_UtxoLease__Output[] +} diff --git a/src/grpc/types/walletrpc/ImportAccountRequest.d.ts b/src/grpc/types/walletrpc/ImportAccountRequest.d.ts new file mode 100644 index 000000000..7ddb70f46 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportAccountRequest.d.ts @@ -0,0 +1,16 @@ +/// +import type { AddressType as _walletrpc_AddressType } from '../walletrpc/AddressType' +export interface ImportAccountRequest { + name?: string + extended_public_key?: string + master_key_fingerprint?: Buffer | Uint8Array | string + address_type?: _walletrpc_AddressType | keyof typeof _walletrpc_AddressType + dry_run?: boolean +} +export interface ImportAccountRequest__Output { + name: string + extended_public_key: string + master_key_fingerprint: Buffer + address_type: keyof typeof _walletrpc_AddressType + dry_run: boolean +} diff --git a/src/grpc/types/walletrpc/ImportAccountResponse.d.ts b/src/grpc/types/walletrpc/ImportAccountResponse.d.ts new file mode 100644 index 000000000..9b9802aaf --- /dev/null +++ b/src/grpc/types/walletrpc/ImportAccountResponse.d.ts @@ -0,0 +1,14 @@ +import type { + Account as _walletrpc_Account, + Account__Output as _walletrpc_Account__Output, +} from '../walletrpc/Account' +export interface ImportAccountResponse { + account?: _walletrpc_Account | null + dry_run_external_addrs?: string[] + dry_run_internal_addrs?: string[] +} +export interface ImportAccountResponse__Output { + account: _walletrpc_Account__Output | null + dry_run_external_addrs: string[] + dry_run_internal_addrs: string[] +} diff --git a/src/grpc/types/walletrpc/ImportPublicKeyRequest.d.ts b/src/grpc/types/walletrpc/ImportPublicKeyRequest.d.ts new file mode 100644 index 000000000..9c152967a --- /dev/null +++ b/src/grpc/types/walletrpc/ImportPublicKeyRequest.d.ts @@ -0,0 +1,10 @@ +/// +import type { AddressType as _walletrpc_AddressType } from '../walletrpc/AddressType' +export interface ImportPublicKeyRequest { + public_key?: Buffer | Uint8Array | string + address_type?: _walletrpc_AddressType | keyof typeof _walletrpc_AddressType +} +export interface ImportPublicKeyRequest__Output { + public_key: Buffer + address_type: keyof typeof _walletrpc_AddressType +} diff --git a/src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts b/src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts new file mode 100644 index 000000000..91844731a --- /dev/null +++ b/src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts @@ -0,0 +1,2 @@ +export interface ImportPublicKeyResponse {} +export interface ImportPublicKeyResponse__Output {} diff --git a/src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts b/src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts new file mode 100644 index 000000000..413ec99b7 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts @@ -0,0 +1,25 @@ +/// +import type { + TapscriptFullTree as _walletrpc_TapscriptFullTree, + TapscriptFullTree__Output as _walletrpc_TapscriptFullTree__Output, +} from '../walletrpc/TapscriptFullTree' +import type { + TapscriptPartialReveal as _walletrpc_TapscriptPartialReveal, + TapscriptPartialReveal__Output as _walletrpc_TapscriptPartialReveal__Output, +} from '../walletrpc/TapscriptPartialReveal' +export interface ImportTapscriptRequest { + internal_public_key?: Buffer | Uint8Array | string + full_tree?: _walletrpc_TapscriptFullTree | null + partial_reveal?: _walletrpc_TapscriptPartialReveal | null + root_hash_only?: Buffer | Uint8Array | string + full_key_only?: boolean + script?: 'full_tree' | 'partial_reveal' | 'root_hash_only' | 'full_key_only' +} +export interface ImportTapscriptRequest__Output { + internal_public_key: Buffer + full_tree?: _walletrpc_TapscriptFullTree__Output | null + partial_reveal?: _walletrpc_TapscriptPartialReveal__Output | null + root_hash_only?: Buffer + full_key_only?: boolean + script: 'full_tree' | 'partial_reveal' | 'root_hash_only' | 'full_key_only' +} diff --git a/src/grpc/types/walletrpc/ImportTapscriptResponse.d.ts b/src/grpc/types/walletrpc/ImportTapscriptResponse.d.ts new file mode 100644 index 000000000..c74ec482d --- /dev/null +++ b/src/grpc/types/walletrpc/ImportTapscriptResponse.d.ts @@ -0,0 +1,6 @@ +export interface ImportTapscriptResponse { + p2tr_address?: string +} +export interface ImportTapscriptResponse__Output { + p2tr_address: string +} diff --git a/src/grpc/types/walletrpc/KeyReq.d.ts b/src/grpc/types/walletrpc/KeyReq.d.ts new file mode 100644 index 000000000..6e15b5490 --- /dev/null +++ b/src/grpc/types/walletrpc/KeyReq.d.ts @@ -0,0 +1,8 @@ +export interface KeyReq { + key_finger_print?: number + key_family?: number +} +export interface KeyReq__Output { + key_finger_print: number + key_family: number +} diff --git a/src/grpc/types/walletrpc/LabelTransactionRequest.d.ts b/src/grpc/types/walletrpc/LabelTransactionRequest.d.ts new file mode 100644 index 000000000..5ecf0c205 --- /dev/null +++ b/src/grpc/types/walletrpc/LabelTransactionRequest.d.ts @@ -0,0 +1,11 @@ +/// +export interface LabelTransactionRequest { + txid?: Buffer | Uint8Array | string + label?: string + overwrite?: boolean +} +export interface LabelTransactionRequest__Output { + txid: Buffer + label: string + overwrite: boolean +} diff --git a/src/grpc/types/walletrpc/LabelTransactionResponse.d.ts b/src/grpc/types/walletrpc/LabelTransactionResponse.d.ts new file mode 100644 index 000000000..e7aeb2a3f --- /dev/null +++ b/src/grpc/types/walletrpc/LabelTransactionResponse.d.ts @@ -0,0 +1,2 @@ +export interface LabelTransactionResponse {} +export interface LabelTransactionResponse__Output {} diff --git a/src/grpc/types/walletrpc/LeaseOutputRequest.d.ts b/src/grpc/types/walletrpc/LeaseOutputRequest.d.ts new file mode 100644 index 000000000..63248b921 --- /dev/null +++ b/src/grpc/types/walletrpc/LeaseOutputRequest.d.ts @@ -0,0 +1,17 @@ +/// +/// +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { Long } from '@grpc/proto-loader' +export interface LeaseOutputRequest { + id?: Buffer | Uint8Array | string + outpoint?: _lnrpc_OutPoint | null + expiration_seconds?: number | string | Long +} +export interface LeaseOutputRequest__Output { + id: Buffer + outpoint: _lnrpc_OutPoint__Output | null + expiration_seconds: string +} diff --git a/src/grpc/types/walletrpc/LeaseOutputResponse.d.ts b/src/grpc/types/walletrpc/LeaseOutputResponse.d.ts new file mode 100644 index 000000000..7efca2e1a --- /dev/null +++ b/src/grpc/types/walletrpc/LeaseOutputResponse.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface LeaseOutputResponse { + expiration?: number | string | Long +} +export interface LeaseOutputResponse__Output { + expiration: string +} diff --git a/src/grpc/types/walletrpc/ListAccountsRequest.d.ts b/src/grpc/types/walletrpc/ListAccountsRequest.d.ts new file mode 100644 index 000000000..5b04c05d2 --- /dev/null +++ b/src/grpc/types/walletrpc/ListAccountsRequest.d.ts @@ -0,0 +1,9 @@ +import type { AddressType as _walletrpc_AddressType } from '../walletrpc/AddressType' +export interface ListAccountsRequest { + name?: string + address_type?: _walletrpc_AddressType | keyof typeof _walletrpc_AddressType +} +export interface ListAccountsRequest__Output { + name: string + address_type: keyof typeof _walletrpc_AddressType +} diff --git a/src/grpc/types/walletrpc/ListAccountsResponse.d.ts b/src/grpc/types/walletrpc/ListAccountsResponse.d.ts new file mode 100644 index 000000000..937a3a3d5 --- /dev/null +++ b/src/grpc/types/walletrpc/ListAccountsResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Account as _walletrpc_Account, + Account__Output as _walletrpc_Account__Output, +} from '../walletrpc/Account' +export interface ListAccountsResponse { + accounts?: _walletrpc_Account[] +} +export interface ListAccountsResponse__Output { + accounts: _walletrpc_Account__Output[] +} diff --git a/src/grpc/types/walletrpc/ListAddressesRequest.d.ts b/src/grpc/types/walletrpc/ListAddressesRequest.d.ts new file mode 100644 index 000000000..256ad90a0 --- /dev/null +++ b/src/grpc/types/walletrpc/ListAddressesRequest.d.ts @@ -0,0 +1,8 @@ +export interface ListAddressesRequest { + account_name?: string + show_custom_accounts?: boolean +} +export interface ListAddressesRequest__Output { + account_name: string + show_custom_accounts: boolean +} diff --git a/src/grpc/types/walletrpc/ListAddressesResponse.d.ts b/src/grpc/types/walletrpc/ListAddressesResponse.d.ts new file mode 100644 index 000000000..4961bbc38 --- /dev/null +++ b/src/grpc/types/walletrpc/ListAddressesResponse.d.ts @@ -0,0 +1,10 @@ +import type { + AccountWithAddresses as _walletrpc_AccountWithAddresses, + AccountWithAddresses__Output as _walletrpc_AccountWithAddresses__Output, +} from '../walletrpc/AccountWithAddresses' +export interface ListAddressesResponse { + account_with_addresses?: _walletrpc_AccountWithAddresses[] +} +export interface ListAddressesResponse__Output { + account_with_addresses: _walletrpc_AccountWithAddresses__Output[] +} diff --git a/src/grpc/types/walletrpc/ListLeasesRequest.d.ts b/src/grpc/types/walletrpc/ListLeasesRequest.d.ts new file mode 100644 index 000000000..88b551c44 --- /dev/null +++ b/src/grpc/types/walletrpc/ListLeasesRequest.d.ts @@ -0,0 +1,2 @@ +export interface ListLeasesRequest {} +export interface ListLeasesRequest__Output {} diff --git a/src/grpc/types/walletrpc/ListLeasesResponse.d.ts b/src/grpc/types/walletrpc/ListLeasesResponse.d.ts new file mode 100644 index 000000000..12479d558 --- /dev/null +++ b/src/grpc/types/walletrpc/ListLeasesResponse.d.ts @@ -0,0 +1,10 @@ +import type { + UtxoLease as _walletrpc_UtxoLease, + UtxoLease__Output as _walletrpc_UtxoLease__Output, +} from '../walletrpc/UtxoLease' +export interface ListLeasesResponse { + locked_utxos?: _walletrpc_UtxoLease[] +} +export interface ListLeasesResponse__Output { + locked_utxos: _walletrpc_UtxoLease__Output[] +} diff --git a/src/grpc/types/walletrpc/ListSweepsRequest.d.ts b/src/grpc/types/walletrpc/ListSweepsRequest.d.ts new file mode 100644 index 000000000..f73f77ff7 --- /dev/null +++ b/src/grpc/types/walletrpc/ListSweepsRequest.d.ts @@ -0,0 +1,6 @@ +export interface ListSweepsRequest { + verbose?: boolean +} +export interface ListSweepsRequest__Output { + verbose: boolean +} diff --git a/src/grpc/types/walletrpc/ListSweepsResponse.d.ts b/src/grpc/types/walletrpc/ListSweepsResponse.d.ts new file mode 100644 index 000000000..2f27162cd --- /dev/null +++ b/src/grpc/types/walletrpc/ListSweepsResponse.d.ts @@ -0,0 +1,20 @@ +import type { + TransactionDetails as _lnrpc_TransactionDetails, + TransactionDetails__Output as _lnrpc_TransactionDetails__Output, +} from '../lnrpc/TransactionDetails' +export interface _walletrpc_ListSweepsResponse_TransactionIDs { + transaction_ids?: string[] +} +export interface _walletrpc_ListSweepsResponse_TransactionIDs__Output { + transaction_ids: string[] +} +export interface ListSweepsResponse { + transaction_details?: _lnrpc_TransactionDetails | null + transaction_ids?: _walletrpc_ListSweepsResponse_TransactionIDs | null + sweeps?: 'transaction_details' | 'transaction_ids' +} +export interface ListSweepsResponse__Output { + transaction_details?: _lnrpc_TransactionDetails__Output | null + transaction_ids?: _walletrpc_ListSweepsResponse_TransactionIDs__Output | null + sweeps: 'transaction_details' | 'transaction_ids' +} diff --git a/src/grpc/types/walletrpc/ListUnspentRequest.d.ts b/src/grpc/types/walletrpc/ListUnspentRequest.d.ts new file mode 100644 index 000000000..c70dd337e --- /dev/null +++ b/src/grpc/types/walletrpc/ListUnspentRequest.d.ts @@ -0,0 +1,12 @@ +export interface ListUnspentRequest { + min_confs?: number + max_confs?: number + account?: string + unconfirmed_only?: boolean +} +export interface ListUnspentRequest__Output { + min_confs: number + max_confs: number + account: string + unconfirmed_only: boolean +} diff --git a/src/grpc/types/walletrpc/ListUnspentResponse.d.ts b/src/grpc/types/walletrpc/ListUnspentResponse.d.ts new file mode 100644 index 000000000..1c8d7d1d6 --- /dev/null +++ b/src/grpc/types/walletrpc/ListUnspentResponse.d.ts @@ -0,0 +1,10 @@ +import type { + Utxo as _lnrpc_Utxo, + Utxo__Output as _lnrpc_Utxo__Output, +} from '../lnrpc/Utxo' +export interface ListUnspentResponse { + utxos?: _lnrpc_Utxo[] +} +export interface ListUnspentResponse__Output { + utxos: _lnrpc_Utxo__Output[] +} diff --git a/src/grpc/types/walletrpc/PendingSweep.d.ts b/src/grpc/types/walletrpc/PendingSweep.d.ts new file mode 100644 index 000000000..a4013b8f6 --- /dev/null +++ b/src/grpc/types/walletrpc/PendingSweep.d.ts @@ -0,0 +1,33 @@ +/// +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { WitnessType as _walletrpc_WitnessType } from '../walletrpc/WitnessType' +import type { Long } from '@grpc/proto-loader' +export interface PendingSweep { + outpoint?: _lnrpc_OutPoint | null + witness_type?: _walletrpc_WitnessType | keyof typeof _walletrpc_WitnessType + amount_sat?: number + sat_per_byte?: number + broadcast_attempts?: number + next_broadcast_height?: number + force?: boolean + requested_conf_target?: number + requested_sat_per_byte?: number + sat_per_vbyte?: number | string | Long + requested_sat_per_vbyte?: number | string | Long +} +export interface PendingSweep__Output { + outpoint: _lnrpc_OutPoint__Output | null + witness_type: keyof typeof _walletrpc_WitnessType + amount_sat: number + sat_per_byte: number + broadcast_attempts: number + next_broadcast_height: number + force: boolean + requested_conf_target: number + requested_sat_per_byte: number + sat_per_vbyte: string + requested_sat_per_vbyte: string +} diff --git a/src/grpc/types/walletrpc/PendingSweepsRequest.d.ts b/src/grpc/types/walletrpc/PendingSweepsRequest.d.ts new file mode 100644 index 000000000..917f353b7 --- /dev/null +++ b/src/grpc/types/walletrpc/PendingSweepsRequest.d.ts @@ -0,0 +1,2 @@ +export interface PendingSweepsRequest {} +export interface PendingSweepsRequest__Output {} diff --git a/src/grpc/types/walletrpc/PendingSweepsResponse.d.ts b/src/grpc/types/walletrpc/PendingSweepsResponse.d.ts new file mode 100644 index 000000000..5a55afbfd --- /dev/null +++ b/src/grpc/types/walletrpc/PendingSweepsResponse.d.ts @@ -0,0 +1,10 @@ +import type { + PendingSweep as _walletrpc_PendingSweep, + PendingSweep__Output as _walletrpc_PendingSweep__Output, +} from '../walletrpc/PendingSweep' +export interface PendingSweepsResponse { + pending_sweeps?: _walletrpc_PendingSweep[] +} +export interface PendingSweepsResponse__Output { + pending_sweeps: _walletrpc_PendingSweep__Output[] +} diff --git a/src/grpc/types/walletrpc/PublishResponse.d.ts b/src/grpc/types/walletrpc/PublishResponse.d.ts new file mode 100644 index 000000000..459a4064f --- /dev/null +++ b/src/grpc/types/walletrpc/PublishResponse.d.ts @@ -0,0 +1,6 @@ +export interface PublishResponse { + publish_error?: string +} +export interface PublishResponse__Output { + publish_error: string +} diff --git a/src/grpc/types/walletrpc/ReleaseOutputRequest.d.ts b/src/grpc/types/walletrpc/ReleaseOutputRequest.d.ts new file mode 100644 index 000000000..e478354cd --- /dev/null +++ b/src/grpc/types/walletrpc/ReleaseOutputRequest.d.ts @@ -0,0 +1,13 @@ +/// +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +export interface ReleaseOutputRequest { + id?: Buffer | Uint8Array | string + outpoint?: _lnrpc_OutPoint | null +} +export interface ReleaseOutputRequest__Output { + id: Buffer + outpoint: _lnrpc_OutPoint__Output | null +} diff --git a/src/grpc/types/walletrpc/ReleaseOutputResponse.d.ts b/src/grpc/types/walletrpc/ReleaseOutputResponse.d.ts new file mode 100644 index 000000000..8013b1701 --- /dev/null +++ b/src/grpc/types/walletrpc/ReleaseOutputResponse.d.ts @@ -0,0 +1,2 @@ +export interface ReleaseOutputResponse {} +export interface ReleaseOutputResponse__Output {} diff --git a/src/grpc/types/walletrpc/RequiredReserveRequest.d.ts b/src/grpc/types/walletrpc/RequiredReserveRequest.d.ts new file mode 100644 index 000000000..2fa27877b --- /dev/null +++ b/src/grpc/types/walletrpc/RequiredReserveRequest.d.ts @@ -0,0 +1,6 @@ +export interface RequiredReserveRequest { + additional_public_channels?: number +} +export interface RequiredReserveRequest__Output { + additional_public_channels: number +} diff --git a/src/grpc/types/walletrpc/RequiredReserveResponse.d.ts b/src/grpc/types/walletrpc/RequiredReserveResponse.d.ts new file mode 100644 index 000000000..347d98cca --- /dev/null +++ b/src/grpc/types/walletrpc/RequiredReserveResponse.d.ts @@ -0,0 +1,8 @@ +/// +import type { Long } from '@grpc/proto-loader' +export interface RequiredReserveResponse { + required_reserve?: number | string | Long +} +export interface RequiredReserveResponse__Output { + required_reserve: string +} diff --git a/src/grpc/types/walletrpc/SendOutputsRequest.d.ts b/src/grpc/types/walletrpc/SendOutputsRequest.d.ts new file mode 100644 index 000000000..360cf02d1 --- /dev/null +++ b/src/grpc/types/walletrpc/SendOutputsRequest.d.ts @@ -0,0 +1,20 @@ +/// +import type { + TxOut as _signrpc_TxOut, + TxOut__Output as _signrpc_TxOut__Output, +} from '../signrpc/TxOut' +import type { Long } from '@grpc/proto-loader' +export interface SendOutputsRequest { + sat_per_kw?: number | string | Long + outputs?: _signrpc_TxOut[] + label?: string + min_confs?: number + spend_unconfirmed?: boolean +} +export interface SendOutputsRequest__Output { + sat_per_kw: string + outputs: _signrpc_TxOut__Output[] + label: string + min_confs: number + spend_unconfirmed: boolean +} diff --git a/src/grpc/types/walletrpc/SendOutputsResponse.d.ts b/src/grpc/types/walletrpc/SendOutputsResponse.d.ts new file mode 100644 index 000000000..7dc79fcf0 --- /dev/null +++ b/src/grpc/types/walletrpc/SendOutputsResponse.d.ts @@ -0,0 +1,7 @@ +/// +export interface SendOutputsResponse { + raw_tx?: Buffer | Uint8Array | string +} +export interface SendOutputsResponse__Output { + raw_tx: Buffer +} diff --git a/src/grpc/types/walletrpc/SignPsbtRequest.d.ts b/src/grpc/types/walletrpc/SignPsbtRequest.d.ts new file mode 100644 index 000000000..fef947e8f --- /dev/null +++ b/src/grpc/types/walletrpc/SignPsbtRequest.d.ts @@ -0,0 +1,7 @@ +/// +export interface SignPsbtRequest { + funded_psbt?: Buffer | Uint8Array | string +} +export interface SignPsbtRequest__Output { + funded_psbt: Buffer +} diff --git a/src/grpc/types/walletrpc/SignPsbtResponse.d.ts b/src/grpc/types/walletrpc/SignPsbtResponse.d.ts new file mode 100644 index 000000000..1f78966f3 --- /dev/null +++ b/src/grpc/types/walletrpc/SignPsbtResponse.d.ts @@ -0,0 +1,9 @@ +/// +export interface SignPsbtResponse { + signed_psbt?: Buffer | Uint8Array | string + signed_inputs?: number[] +} +export interface SignPsbtResponse__Output { + signed_psbt: Buffer + signed_inputs: number[] +} diff --git a/src/grpc/types/walletrpc/TapLeaf.d.ts b/src/grpc/types/walletrpc/TapLeaf.d.ts new file mode 100644 index 000000000..1de987d27 --- /dev/null +++ b/src/grpc/types/walletrpc/TapLeaf.d.ts @@ -0,0 +1,9 @@ +/// +export interface TapLeaf { + leaf_version?: number + script?: Buffer | Uint8Array | string +} +export interface TapLeaf__Output { + leaf_version: number + script: Buffer +} diff --git a/src/grpc/types/walletrpc/TapscriptFullTree.d.ts b/src/grpc/types/walletrpc/TapscriptFullTree.d.ts new file mode 100644 index 000000000..b83f0f395 --- /dev/null +++ b/src/grpc/types/walletrpc/TapscriptFullTree.d.ts @@ -0,0 +1,10 @@ +import type { + TapLeaf as _walletrpc_TapLeaf, + TapLeaf__Output as _walletrpc_TapLeaf__Output, +} from '../walletrpc/TapLeaf' +export interface TapscriptFullTree { + all_leaves?: _walletrpc_TapLeaf[] +} +export interface TapscriptFullTree__Output { + all_leaves: _walletrpc_TapLeaf__Output[] +} diff --git a/src/grpc/types/walletrpc/TapscriptPartialReveal.d.ts b/src/grpc/types/walletrpc/TapscriptPartialReveal.d.ts new file mode 100644 index 000000000..6cf9e79b9 --- /dev/null +++ b/src/grpc/types/walletrpc/TapscriptPartialReveal.d.ts @@ -0,0 +1,13 @@ +/// +import type { + TapLeaf as _walletrpc_TapLeaf, + TapLeaf__Output as _walletrpc_TapLeaf__Output, +} from '../walletrpc/TapLeaf' +export interface TapscriptPartialReveal { + revealed_leaf?: _walletrpc_TapLeaf | null + full_inclusion_proof?: Buffer | Uint8Array | string +} +export interface TapscriptPartialReveal__Output { + revealed_leaf: _walletrpc_TapLeaf__Output | null + full_inclusion_proof: Buffer +} diff --git a/src/grpc/types/walletrpc/Transaction.d.ts b/src/grpc/types/walletrpc/Transaction.d.ts new file mode 100644 index 000000000..9f34f8940 --- /dev/null +++ b/src/grpc/types/walletrpc/Transaction.d.ts @@ -0,0 +1,9 @@ +/// +export interface Transaction { + tx_hex?: Buffer | Uint8Array | string + label?: string +} +export interface Transaction__Output { + tx_hex: Buffer + label: string +} diff --git a/src/grpc/types/walletrpc/TxTemplate.d.ts b/src/grpc/types/walletrpc/TxTemplate.d.ts new file mode 100644 index 000000000..de2fabcb1 --- /dev/null +++ b/src/grpc/types/walletrpc/TxTemplate.d.ts @@ -0,0 +1,18 @@ +/// +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { Long } from '@grpc/proto-loader' +export interface TxTemplate { + inputs?: _lnrpc_OutPoint[] + outputs?: { + [key: string]: number | string | Long + } +} +export interface TxTemplate__Output { + inputs: _lnrpc_OutPoint__Output[] + outputs: { + [key: string]: string + } +} diff --git a/src/grpc/types/walletrpc/UtxoLease.d.ts b/src/grpc/types/walletrpc/UtxoLease.d.ts new file mode 100644 index 000000000..0dbc11dbc --- /dev/null +++ b/src/grpc/types/walletrpc/UtxoLease.d.ts @@ -0,0 +1,21 @@ +/// +/// +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { Long } from '@grpc/proto-loader' +export interface UtxoLease { + id?: Buffer | Uint8Array | string + outpoint?: _lnrpc_OutPoint | null + expiration?: number | string | Long + pk_script?: Buffer | Uint8Array | string + value?: number | string | Long +} +export interface UtxoLease__Output { + id: Buffer + outpoint: _lnrpc_OutPoint__Output | null + expiration: string + pk_script: Buffer + value: string +} diff --git a/src/grpc/types/walletrpc/WalletKit.d.ts b/src/grpc/types/walletrpc/WalletKit.d.ts new file mode 100644 index 000000000..5d133cb5d --- /dev/null +++ b/src/grpc/types/walletrpc/WalletKit.d.ts @@ -0,0 +1,1338 @@ +import type * as grpc from '@grpc/grpc-js' +import type { MethodDefinition } from '@grpc/proto-loader' +import type { + AddrRequest as _walletrpc_AddrRequest, + AddrRequest__Output as _walletrpc_AddrRequest__Output, +} from '../walletrpc/AddrRequest' +import type { + AddrResponse as _walletrpc_AddrResponse, + AddrResponse__Output as _walletrpc_AddrResponse__Output, +} from '../walletrpc/AddrResponse' +import type { + BumpFeeRequest as _walletrpc_BumpFeeRequest, + BumpFeeRequest__Output as _walletrpc_BumpFeeRequest__Output, +} from '../walletrpc/BumpFeeRequest' +import type { + BumpFeeResponse as _walletrpc_BumpFeeResponse, + BumpFeeResponse__Output as _walletrpc_BumpFeeResponse__Output, +} from '../walletrpc/BumpFeeResponse' +import type { + EstimateFeeRequest as _walletrpc_EstimateFeeRequest, + EstimateFeeRequest__Output as _walletrpc_EstimateFeeRequest__Output, +} from '../walletrpc/EstimateFeeRequest' +import type { + EstimateFeeResponse as _walletrpc_EstimateFeeResponse, + EstimateFeeResponse__Output as _walletrpc_EstimateFeeResponse__Output, +} from '../walletrpc/EstimateFeeResponse' +import type { + FinalizePsbtRequest as _walletrpc_FinalizePsbtRequest, + FinalizePsbtRequest__Output as _walletrpc_FinalizePsbtRequest__Output, +} from '../walletrpc/FinalizePsbtRequest' +import type { + FinalizePsbtResponse as _walletrpc_FinalizePsbtResponse, + FinalizePsbtResponse__Output as _walletrpc_FinalizePsbtResponse__Output, +} from '../walletrpc/FinalizePsbtResponse' +import type { + FundPsbtRequest as _walletrpc_FundPsbtRequest, + FundPsbtRequest__Output as _walletrpc_FundPsbtRequest__Output, +} from '../walletrpc/FundPsbtRequest' +import type { + FundPsbtResponse as _walletrpc_FundPsbtResponse, + FundPsbtResponse__Output as _walletrpc_FundPsbtResponse__Output, +} from '../walletrpc/FundPsbtResponse' +import type { + ImportAccountRequest as _walletrpc_ImportAccountRequest, + ImportAccountRequest__Output as _walletrpc_ImportAccountRequest__Output, +} from '../walletrpc/ImportAccountRequest' +import type { + ImportAccountResponse as _walletrpc_ImportAccountResponse, + ImportAccountResponse__Output as _walletrpc_ImportAccountResponse__Output, +} from '../walletrpc/ImportAccountResponse' +import type { + ImportPublicKeyRequest as _walletrpc_ImportPublicKeyRequest, + ImportPublicKeyRequest__Output as _walletrpc_ImportPublicKeyRequest__Output, +} from '../walletrpc/ImportPublicKeyRequest' +import type { + ImportPublicKeyResponse as _walletrpc_ImportPublicKeyResponse, + ImportPublicKeyResponse__Output as _walletrpc_ImportPublicKeyResponse__Output, +} from '../walletrpc/ImportPublicKeyResponse' +import type { + ImportTapscriptRequest as _walletrpc_ImportTapscriptRequest, + ImportTapscriptRequest__Output as _walletrpc_ImportTapscriptRequest__Output, +} from '../walletrpc/ImportTapscriptRequest' +import type { + ImportTapscriptResponse as _walletrpc_ImportTapscriptResponse, + ImportTapscriptResponse__Output as _walletrpc_ImportTapscriptResponse__Output, +} from '../walletrpc/ImportTapscriptResponse' +import type { + KeyDescriptor as _signrpc_KeyDescriptor, + KeyDescriptor__Output as _signrpc_KeyDescriptor__Output, +} from '../signrpc/KeyDescriptor' +import type { + KeyLocator as _signrpc_KeyLocator, + KeyLocator__Output as _signrpc_KeyLocator__Output, +} from '../signrpc/KeyLocator' +import type { + KeyReq as _walletrpc_KeyReq, + KeyReq__Output as _walletrpc_KeyReq__Output, +} from '../walletrpc/KeyReq' +import type { + LabelTransactionRequest as _walletrpc_LabelTransactionRequest, + LabelTransactionRequest__Output as _walletrpc_LabelTransactionRequest__Output, +} from '../walletrpc/LabelTransactionRequest' +import type { + LabelTransactionResponse as _walletrpc_LabelTransactionResponse, + LabelTransactionResponse__Output as _walletrpc_LabelTransactionResponse__Output, +} from '../walletrpc/LabelTransactionResponse' +import type { + LeaseOutputRequest as _walletrpc_LeaseOutputRequest, + LeaseOutputRequest__Output as _walletrpc_LeaseOutputRequest__Output, +} from '../walletrpc/LeaseOutputRequest' +import type { + LeaseOutputResponse as _walletrpc_LeaseOutputResponse, + LeaseOutputResponse__Output as _walletrpc_LeaseOutputResponse__Output, +} from '../walletrpc/LeaseOutputResponse' +import type { + ListAccountsRequest as _walletrpc_ListAccountsRequest, + ListAccountsRequest__Output as _walletrpc_ListAccountsRequest__Output, +} from '../walletrpc/ListAccountsRequest' +import type { + ListAccountsResponse as _walletrpc_ListAccountsResponse, + ListAccountsResponse__Output as _walletrpc_ListAccountsResponse__Output, +} from '../walletrpc/ListAccountsResponse' +import type { + ListAddressesRequest as _walletrpc_ListAddressesRequest, + ListAddressesRequest__Output as _walletrpc_ListAddressesRequest__Output, +} from '../walletrpc/ListAddressesRequest' +import type { + ListAddressesResponse as _walletrpc_ListAddressesResponse, + ListAddressesResponse__Output as _walletrpc_ListAddressesResponse__Output, +} from '../walletrpc/ListAddressesResponse' +import type { + ListLeasesRequest as _walletrpc_ListLeasesRequest, + ListLeasesRequest__Output as _walletrpc_ListLeasesRequest__Output, +} from '../walletrpc/ListLeasesRequest' +import type { + ListLeasesResponse as _walletrpc_ListLeasesResponse, + ListLeasesResponse__Output as _walletrpc_ListLeasesResponse__Output, +} from '../walletrpc/ListLeasesResponse' +import type { + ListSweepsRequest as _walletrpc_ListSweepsRequest, + ListSweepsRequest__Output as _walletrpc_ListSweepsRequest__Output, +} from '../walletrpc/ListSweepsRequest' +import type { + ListSweepsResponse as _walletrpc_ListSweepsResponse, + ListSweepsResponse__Output as _walletrpc_ListSweepsResponse__Output, +} from '../walletrpc/ListSweepsResponse' +import type { + ListUnspentRequest as _walletrpc_ListUnspentRequest, + ListUnspentRequest__Output as _walletrpc_ListUnspentRequest__Output, +} from '../walletrpc/ListUnspentRequest' +import type { + ListUnspentResponse as _walletrpc_ListUnspentResponse, + ListUnspentResponse__Output as _walletrpc_ListUnspentResponse__Output, +} from '../walletrpc/ListUnspentResponse' +import type { + PendingSweepsRequest as _walletrpc_PendingSweepsRequest, + PendingSweepsRequest__Output as _walletrpc_PendingSweepsRequest__Output, +} from '../walletrpc/PendingSweepsRequest' +import type { + PendingSweepsResponse as _walletrpc_PendingSweepsResponse, + PendingSweepsResponse__Output as _walletrpc_PendingSweepsResponse__Output, +} from '../walletrpc/PendingSweepsResponse' +import type { + PublishResponse as _walletrpc_PublishResponse, + PublishResponse__Output as _walletrpc_PublishResponse__Output, +} from '../walletrpc/PublishResponse' +import type { + ReleaseOutputRequest as _walletrpc_ReleaseOutputRequest, + ReleaseOutputRequest__Output as _walletrpc_ReleaseOutputRequest__Output, +} from '../walletrpc/ReleaseOutputRequest' +import type { + ReleaseOutputResponse as _walletrpc_ReleaseOutputResponse, + ReleaseOutputResponse__Output as _walletrpc_ReleaseOutputResponse__Output, +} from '../walletrpc/ReleaseOutputResponse' +import type { + RequiredReserveRequest as _walletrpc_RequiredReserveRequest, + RequiredReserveRequest__Output as _walletrpc_RequiredReserveRequest__Output, +} from '../walletrpc/RequiredReserveRequest' +import type { + RequiredReserveResponse as _walletrpc_RequiredReserveResponse, + RequiredReserveResponse__Output as _walletrpc_RequiredReserveResponse__Output, +} from '../walletrpc/RequiredReserveResponse' +import type { + SendOutputsRequest as _walletrpc_SendOutputsRequest, + SendOutputsRequest__Output as _walletrpc_SendOutputsRequest__Output, +} from '../walletrpc/SendOutputsRequest' +import type { + SendOutputsResponse as _walletrpc_SendOutputsResponse, + SendOutputsResponse__Output as _walletrpc_SendOutputsResponse__Output, +} from '../walletrpc/SendOutputsResponse' +import type { + SignPsbtRequest as _walletrpc_SignPsbtRequest, + SignPsbtRequest__Output as _walletrpc_SignPsbtRequest__Output, +} from '../walletrpc/SignPsbtRequest' +import type { + SignPsbtResponse as _walletrpc_SignPsbtResponse, + SignPsbtResponse__Output as _walletrpc_SignPsbtResponse__Output, +} from '../walletrpc/SignPsbtResponse' +import type { + Transaction as _walletrpc_Transaction, + Transaction__Output as _walletrpc_Transaction__Output, +} from '../walletrpc/Transaction' +export interface WalletKitClient extends grpc.Client { + BumpFee( + argument: _walletrpc_BumpFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + BumpFee( + argument: _walletrpc_BumpFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + BumpFee( + argument: _walletrpc_BumpFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + BumpFee( + argument: _walletrpc_BumpFeeRequest, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + bumpFee( + argument: _walletrpc_BumpFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + bumpFee( + argument: _walletrpc_BumpFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + bumpFee( + argument: _walletrpc_BumpFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + bumpFee( + argument: _walletrpc_BumpFeeRequest, + callback: grpc.requestCallback<_walletrpc_BumpFeeResponse__Output> + ): grpc.ClientUnaryCall + DeriveKey( + argument: _signrpc_KeyLocator, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveKey( + argument: _signrpc_KeyLocator, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveKey( + argument: _signrpc_KeyLocator, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveKey( + argument: _signrpc_KeyLocator, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveKey( + argument: _signrpc_KeyLocator, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveKey( + argument: _signrpc_KeyLocator, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveKey( + argument: _signrpc_KeyLocator, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveKey( + argument: _signrpc_KeyLocator, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveNextKey( + argument: _walletrpc_KeyReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveNextKey( + argument: _walletrpc_KeyReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveNextKey( + argument: _walletrpc_KeyReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + DeriveNextKey( + argument: _walletrpc_KeyReq, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveNextKey( + argument: _walletrpc_KeyReq, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveNextKey( + argument: _walletrpc_KeyReq, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveNextKey( + argument: _walletrpc_KeyReq, + options: grpc.CallOptions, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + deriveNextKey( + argument: _walletrpc_KeyReq, + callback: grpc.requestCallback<_signrpc_KeyDescriptor__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _walletrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _walletrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _walletrpc_EstimateFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + EstimateFee( + argument: _walletrpc_EstimateFeeRequest, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _walletrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _walletrpc_EstimateFeeRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _walletrpc_EstimateFeeRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + estimateFee( + argument: _walletrpc_EstimateFeeRequest, + callback: grpc.requestCallback<_walletrpc_EstimateFeeResponse__Output> + ): grpc.ClientUnaryCall + FinalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + FinalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + FinalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + FinalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + finalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + finalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + finalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + finalizePsbt( + argument: _walletrpc_FinalizePsbtRequest, + callback: grpc.requestCallback<_walletrpc_FinalizePsbtResponse__Output> + ): grpc.ClientUnaryCall + FundPsbt( + argument: _walletrpc_FundPsbtRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + FundPsbt( + argument: _walletrpc_FundPsbtRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + FundPsbt( + argument: _walletrpc_FundPsbtRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + FundPsbt( + argument: _walletrpc_FundPsbtRequest, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + fundPsbt( + argument: _walletrpc_FundPsbtRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + fundPsbt( + argument: _walletrpc_FundPsbtRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + fundPsbt( + argument: _walletrpc_FundPsbtRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + fundPsbt( + argument: _walletrpc_FundPsbtRequest, + callback: grpc.requestCallback<_walletrpc_FundPsbtResponse__Output> + ): grpc.ClientUnaryCall + ImportAccount( + argument: _walletrpc_ImportAccountRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + ImportAccount( + argument: _walletrpc_ImportAccountRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + ImportAccount( + argument: _walletrpc_ImportAccountRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + ImportAccount( + argument: _walletrpc_ImportAccountRequest, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + importAccount( + argument: _walletrpc_ImportAccountRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + importAccount( + argument: _walletrpc_ImportAccountRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + importAccount( + argument: _walletrpc_ImportAccountRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + importAccount( + argument: _walletrpc_ImportAccountRequest, + callback: grpc.requestCallback<_walletrpc_ImportAccountResponse__Output> + ): grpc.ClientUnaryCall + ImportPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + ImportPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + ImportPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + ImportPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + importPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + importPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + importPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + importPublicKey( + argument: _walletrpc_ImportPublicKeyRequest, + callback: grpc.requestCallback<_walletrpc_ImportPublicKeyResponse__Output> + ): grpc.ClientUnaryCall + ImportTapscript( + argument: _walletrpc_ImportTapscriptRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + ImportTapscript( + argument: _walletrpc_ImportTapscriptRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + ImportTapscript( + argument: _walletrpc_ImportTapscriptRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + ImportTapscript( + argument: _walletrpc_ImportTapscriptRequest, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + importTapscript( + argument: _walletrpc_ImportTapscriptRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + importTapscript( + argument: _walletrpc_ImportTapscriptRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + importTapscript( + argument: _walletrpc_ImportTapscriptRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + importTapscript( + argument: _walletrpc_ImportTapscriptRequest, + callback: grpc.requestCallback<_walletrpc_ImportTapscriptResponse__Output> + ): grpc.ClientUnaryCall + LabelTransaction( + argument: _walletrpc_LabelTransactionRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + LabelTransaction( + argument: _walletrpc_LabelTransactionRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + LabelTransaction( + argument: _walletrpc_LabelTransactionRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + LabelTransaction( + argument: _walletrpc_LabelTransactionRequest, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + labelTransaction( + argument: _walletrpc_LabelTransactionRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + labelTransaction( + argument: _walletrpc_LabelTransactionRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + labelTransaction( + argument: _walletrpc_LabelTransactionRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + labelTransaction( + argument: _walletrpc_LabelTransactionRequest, + callback: grpc.requestCallback<_walletrpc_LabelTransactionResponse__Output> + ): grpc.ClientUnaryCall + LeaseOutput( + argument: _walletrpc_LeaseOutputRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + LeaseOutput( + argument: _walletrpc_LeaseOutputRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + LeaseOutput( + argument: _walletrpc_LeaseOutputRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + LeaseOutput( + argument: _walletrpc_LeaseOutputRequest, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + leaseOutput( + argument: _walletrpc_LeaseOutputRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + leaseOutput( + argument: _walletrpc_LeaseOutputRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + leaseOutput( + argument: _walletrpc_LeaseOutputRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + leaseOutput( + argument: _walletrpc_LeaseOutputRequest, + callback: grpc.requestCallback<_walletrpc_LeaseOutputResponse__Output> + ): grpc.ClientUnaryCall + ListAccounts( + argument: _walletrpc_ListAccountsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + ListAccounts( + argument: _walletrpc_ListAccountsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + ListAccounts( + argument: _walletrpc_ListAccountsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + ListAccounts( + argument: _walletrpc_ListAccountsRequest, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + listAccounts( + argument: _walletrpc_ListAccountsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + listAccounts( + argument: _walletrpc_ListAccountsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + listAccounts( + argument: _walletrpc_ListAccountsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + listAccounts( + argument: _walletrpc_ListAccountsRequest, + callback: grpc.requestCallback<_walletrpc_ListAccountsResponse__Output> + ): grpc.ClientUnaryCall + ListAddresses( + argument: _walletrpc_ListAddressesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + ListAddresses( + argument: _walletrpc_ListAddressesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + ListAddresses( + argument: _walletrpc_ListAddressesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + ListAddresses( + argument: _walletrpc_ListAddressesRequest, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + listAddresses( + argument: _walletrpc_ListAddressesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + listAddresses( + argument: _walletrpc_ListAddressesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + listAddresses( + argument: _walletrpc_ListAddressesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + listAddresses( + argument: _walletrpc_ListAddressesRequest, + callback: grpc.requestCallback<_walletrpc_ListAddressesResponse__Output> + ): grpc.ClientUnaryCall + ListLeases( + argument: _walletrpc_ListLeasesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + ListLeases( + argument: _walletrpc_ListLeasesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + ListLeases( + argument: _walletrpc_ListLeasesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + ListLeases( + argument: _walletrpc_ListLeasesRequest, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + listLeases( + argument: _walletrpc_ListLeasesRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + listLeases( + argument: _walletrpc_ListLeasesRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + listLeases( + argument: _walletrpc_ListLeasesRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + listLeases( + argument: _walletrpc_ListLeasesRequest, + callback: grpc.requestCallback<_walletrpc_ListLeasesResponse__Output> + ): grpc.ClientUnaryCall + ListSweeps( + argument: _walletrpc_ListSweepsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + ListSweeps( + argument: _walletrpc_ListSweepsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + ListSweeps( + argument: _walletrpc_ListSweepsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + ListSweeps( + argument: _walletrpc_ListSweepsRequest, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + listSweeps( + argument: _walletrpc_ListSweepsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + listSweeps( + argument: _walletrpc_ListSweepsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + listSweeps( + argument: _walletrpc_ListSweepsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + listSweeps( + argument: _walletrpc_ListSweepsRequest, + callback: grpc.requestCallback<_walletrpc_ListSweepsResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _walletrpc_ListUnspentRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _walletrpc_ListUnspentRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _walletrpc_ListUnspentRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + ListUnspent( + argument: _walletrpc_ListUnspentRequest, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _walletrpc_ListUnspentRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _walletrpc_ListUnspentRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _walletrpc_ListUnspentRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + listUnspent( + argument: _walletrpc_ListUnspentRequest, + callback: grpc.requestCallback<_walletrpc_ListUnspentResponse__Output> + ): grpc.ClientUnaryCall + NextAddr( + argument: _walletrpc_AddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + NextAddr( + argument: _walletrpc_AddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + NextAddr( + argument: _walletrpc_AddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + NextAddr( + argument: _walletrpc_AddrRequest, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + nextAddr( + argument: _walletrpc_AddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + nextAddr( + argument: _walletrpc_AddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + nextAddr( + argument: _walletrpc_AddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + nextAddr( + argument: _walletrpc_AddrRequest, + callback: grpc.requestCallback<_walletrpc_AddrResponse__Output> + ): grpc.ClientUnaryCall + PendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + PendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + PendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + PendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + pendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + pendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + pendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + pendingSweeps( + argument: _walletrpc_PendingSweepsRequest, + callback: grpc.requestCallback<_walletrpc_PendingSweepsResponse__Output> + ): grpc.ClientUnaryCall + PublishTransaction( + argument: _walletrpc_Transaction, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + PublishTransaction( + argument: _walletrpc_Transaction, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + PublishTransaction( + argument: _walletrpc_Transaction, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + PublishTransaction( + argument: _walletrpc_Transaction, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + publishTransaction( + argument: _walletrpc_Transaction, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + publishTransaction( + argument: _walletrpc_Transaction, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + publishTransaction( + argument: _walletrpc_Transaction, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + publishTransaction( + argument: _walletrpc_Transaction, + callback: grpc.requestCallback<_walletrpc_PublishResponse__Output> + ): grpc.ClientUnaryCall + ReleaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + ReleaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + ReleaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + ReleaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + releaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + releaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + releaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + releaseOutput( + argument: _walletrpc_ReleaseOutputRequest, + callback: grpc.requestCallback<_walletrpc_ReleaseOutputResponse__Output> + ): grpc.ClientUnaryCall + RequiredReserve( + argument: _walletrpc_RequiredReserveRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + RequiredReserve( + argument: _walletrpc_RequiredReserveRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + RequiredReserve( + argument: _walletrpc_RequiredReserveRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + RequiredReserve( + argument: _walletrpc_RequiredReserveRequest, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + requiredReserve( + argument: _walletrpc_RequiredReserveRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + requiredReserve( + argument: _walletrpc_RequiredReserveRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + requiredReserve( + argument: _walletrpc_RequiredReserveRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + requiredReserve( + argument: _walletrpc_RequiredReserveRequest, + callback: grpc.requestCallback<_walletrpc_RequiredReserveResponse__Output> + ): grpc.ClientUnaryCall + SendOutputs( + argument: _walletrpc_SendOutputsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + SendOutputs( + argument: _walletrpc_SendOutputsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + SendOutputs( + argument: _walletrpc_SendOutputsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + SendOutputs( + argument: _walletrpc_SendOutputsRequest, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + sendOutputs( + argument: _walletrpc_SendOutputsRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + sendOutputs( + argument: _walletrpc_SendOutputsRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + sendOutputs( + argument: _walletrpc_SendOutputsRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + sendOutputs( + argument: _walletrpc_SendOutputsRequest, + callback: grpc.requestCallback<_walletrpc_SendOutputsResponse__Output> + ): grpc.ClientUnaryCall + SignPsbt( + argument: _walletrpc_SignPsbtRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + SignPsbt( + argument: _walletrpc_SignPsbtRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + SignPsbt( + argument: _walletrpc_SignPsbtRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + SignPsbt( + argument: _walletrpc_SignPsbtRequest, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + signPsbt( + argument: _walletrpc_SignPsbtRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + signPsbt( + argument: _walletrpc_SignPsbtRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + signPsbt( + argument: _walletrpc_SignPsbtRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall + signPsbt( + argument: _walletrpc_SignPsbtRequest, + callback: grpc.requestCallback<_walletrpc_SignPsbtResponse__Output> + ): grpc.ClientUnaryCall +} +export interface WalletKitHandlers extends grpc.UntypedServiceImplementation { + BumpFee: grpc.handleUnaryCall< + _walletrpc_BumpFeeRequest__Output, + _walletrpc_BumpFeeResponse + > + DeriveKey: grpc.handleUnaryCall< + _signrpc_KeyLocator__Output, + _signrpc_KeyDescriptor + > + DeriveNextKey: grpc.handleUnaryCall< + _walletrpc_KeyReq__Output, + _signrpc_KeyDescriptor + > + EstimateFee: grpc.handleUnaryCall< + _walletrpc_EstimateFeeRequest__Output, + _walletrpc_EstimateFeeResponse + > + FinalizePsbt: grpc.handleUnaryCall< + _walletrpc_FinalizePsbtRequest__Output, + _walletrpc_FinalizePsbtResponse + > + FundPsbt: grpc.handleUnaryCall< + _walletrpc_FundPsbtRequest__Output, + _walletrpc_FundPsbtResponse + > + ImportAccount: grpc.handleUnaryCall< + _walletrpc_ImportAccountRequest__Output, + _walletrpc_ImportAccountResponse + > + ImportPublicKey: grpc.handleUnaryCall< + _walletrpc_ImportPublicKeyRequest__Output, + _walletrpc_ImportPublicKeyResponse + > + ImportTapscript: grpc.handleUnaryCall< + _walletrpc_ImportTapscriptRequest__Output, + _walletrpc_ImportTapscriptResponse + > + LabelTransaction: grpc.handleUnaryCall< + _walletrpc_LabelTransactionRequest__Output, + _walletrpc_LabelTransactionResponse + > + LeaseOutput: grpc.handleUnaryCall< + _walletrpc_LeaseOutputRequest__Output, + _walletrpc_LeaseOutputResponse + > + ListAccounts: grpc.handleUnaryCall< + _walletrpc_ListAccountsRequest__Output, + _walletrpc_ListAccountsResponse + > + ListAddresses: grpc.handleUnaryCall< + _walletrpc_ListAddressesRequest__Output, + _walletrpc_ListAddressesResponse + > + ListLeases: grpc.handleUnaryCall< + _walletrpc_ListLeasesRequest__Output, + _walletrpc_ListLeasesResponse + > + ListSweeps: grpc.handleUnaryCall< + _walletrpc_ListSweepsRequest__Output, + _walletrpc_ListSweepsResponse + > + ListUnspent: grpc.handleUnaryCall< + _walletrpc_ListUnspentRequest__Output, + _walletrpc_ListUnspentResponse + > + NextAddr: grpc.handleUnaryCall< + _walletrpc_AddrRequest__Output, + _walletrpc_AddrResponse + > + PendingSweeps: grpc.handleUnaryCall< + _walletrpc_PendingSweepsRequest__Output, + _walletrpc_PendingSweepsResponse + > + PublishTransaction: grpc.handleUnaryCall< + _walletrpc_Transaction__Output, + _walletrpc_PublishResponse + > + ReleaseOutput: grpc.handleUnaryCall< + _walletrpc_ReleaseOutputRequest__Output, + _walletrpc_ReleaseOutputResponse + > + RequiredReserve: grpc.handleUnaryCall< + _walletrpc_RequiredReserveRequest__Output, + _walletrpc_RequiredReserveResponse + > + SendOutputs: grpc.handleUnaryCall< + _walletrpc_SendOutputsRequest__Output, + _walletrpc_SendOutputsResponse + > + SignPsbt: grpc.handleUnaryCall< + _walletrpc_SignPsbtRequest__Output, + _walletrpc_SignPsbtResponse + > +} +export interface WalletKitDefinition extends grpc.ServiceDefinition { + BumpFee: MethodDefinition< + _walletrpc_BumpFeeRequest, + _walletrpc_BumpFeeResponse, + _walletrpc_BumpFeeRequest__Output, + _walletrpc_BumpFeeResponse__Output + > + DeriveKey: MethodDefinition< + _signrpc_KeyLocator, + _signrpc_KeyDescriptor, + _signrpc_KeyLocator__Output, + _signrpc_KeyDescriptor__Output + > + DeriveNextKey: MethodDefinition< + _walletrpc_KeyReq, + _signrpc_KeyDescriptor, + _walletrpc_KeyReq__Output, + _signrpc_KeyDescriptor__Output + > + EstimateFee: MethodDefinition< + _walletrpc_EstimateFeeRequest, + _walletrpc_EstimateFeeResponse, + _walletrpc_EstimateFeeRequest__Output, + _walletrpc_EstimateFeeResponse__Output + > + FinalizePsbt: MethodDefinition< + _walletrpc_FinalizePsbtRequest, + _walletrpc_FinalizePsbtResponse, + _walletrpc_FinalizePsbtRequest__Output, + _walletrpc_FinalizePsbtResponse__Output + > + FundPsbt: MethodDefinition< + _walletrpc_FundPsbtRequest, + _walletrpc_FundPsbtResponse, + _walletrpc_FundPsbtRequest__Output, + _walletrpc_FundPsbtResponse__Output + > + ImportAccount: MethodDefinition< + _walletrpc_ImportAccountRequest, + _walletrpc_ImportAccountResponse, + _walletrpc_ImportAccountRequest__Output, + _walletrpc_ImportAccountResponse__Output + > + ImportPublicKey: MethodDefinition< + _walletrpc_ImportPublicKeyRequest, + _walletrpc_ImportPublicKeyResponse, + _walletrpc_ImportPublicKeyRequest__Output, + _walletrpc_ImportPublicKeyResponse__Output + > + ImportTapscript: MethodDefinition< + _walletrpc_ImportTapscriptRequest, + _walletrpc_ImportTapscriptResponse, + _walletrpc_ImportTapscriptRequest__Output, + _walletrpc_ImportTapscriptResponse__Output + > + LabelTransaction: MethodDefinition< + _walletrpc_LabelTransactionRequest, + _walletrpc_LabelTransactionResponse, + _walletrpc_LabelTransactionRequest__Output, + _walletrpc_LabelTransactionResponse__Output + > + LeaseOutput: MethodDefinition< + _walletrpc_LeaseOutputRequest, + _walletrpc_LeaseOutputResponse, + _walletrpc_LeaseOutputRequest__Output, + _walletrpc_LeaseOutputResponse__Output + > + ListAccounts: MethodDefinition< + _walletrpc_ListAccountsRequest, + _walletrpc_ListAccountsResponse, + _walletrpc_ListAccountsRequest__Output, + _walletrpc_ListAccountsResponse__Output + > + ListAddresses: MethodDefinition< + _walletrpc_ListAddressesRequest, + _walletrpc_ListAddressesResponse, + _walletrpc_ListAddressesRequest__Output, + _walletrpc_ListAddressesResponse__Output + > + ListLeases: MethodDefinition< + _walletrpc_ListLeasesRequest, + _walletrpc_ListLeasesResponse, + _walletrpc_ListLeasesRequest__Output, + _walletrpc_ListLeasesResponse__Output + > + ListSweeps: MethodDefinition< + _walletrpc_ListSweepsRequest, + _walletrpc_ListSweepsResponse, + _walletrpc_ListSweepsRequest__Output, + _walletrpc_ListSweepsResponse__Output + > + ListUnspent: MethodDefinition< + _walletrpc_ListUnspentRequest, + _walletrpc_ListUnspentResponse, + _walletrpc_ListUnspentRequest__Output, + _walletrpc_ListUnspentResponse__Output + > + NextAddr: MethodDefinition< + _walletrpc_AddrRequest, + _walletrpc_AddrResponse, + _walletrpc_AddrRequest__Output, + _walletrpc_AddrResponse__Output + > + PendingSweeps: MethodDefinition< + _walletrpc_PendingSweepsRequest, + _walletrpc_PendingSweepsResponse, + _walletrpc_PendingSweepsRequest__Output, + _walletrpc_PendingSweepsResponse__Output + > + PublishTransaction: MethodDefinition< + _walletrpc_Transaction, + _walletrpc_PublishResponse, + _walletrpc_Transaction__Output, + _walletrpc_PublishResponse__Output + > + ReleaseOutput: MethodDefinition< + _walletrpc_ReleaseOutputRequest, + _walletrpc_ReleaseOutputResponse, + _walletrpc_ReleaseOutputRequest__Output, + _walletrpc_ReleaseOutputResponse__Output + > + RequiredReserve: MethodDefinition< + _walletrpc_RequiredReserveRequest, + _walletrpc_RequiredReserveResponse, + _walletrpc_RequiredReserveRequest__Output, + _walletrpc_RequiredReserveResponse__Output + > + SendOutputs: MethodDefinition< + _walletrpc_SendOutputsRequest, + _walletrpc_SendOutputsResponse, + _walletrpc_SendOutputsRequest__Output, + _walletrpc_SendOutputsResponse__Output + > + SignPsbt: MethodDefinition< + _walletrpc_SignPsbtRequest, + _walletrpc_SignPsbtResponse, + _walletrpc_SignPsbtRequest__Output, + _walletrpc_SignPsbtResponse__Output + > +} diff --git a/src/grpc/types/walletrpc/WitnessType.d.ts b/src/grpc/types/walletrpc/WitnessType.d.ts new file mode 100644 index 000000000..6768bba0f --- /dev/null +++ b/src/grpc/types/walletrpc/WitnessType.d.ts @@ -0,0 +1,16 @@ +export declare enum WitnessType { + UNKNOWN_WITNESS = 0, + COMMITMENT_TIME_LOCK = 1, + COMMITMENT_NO_DELAY = 2, + COMMITMENT_REVOKE = 3, + HTLC_OFFERED_REVOKE = 4, + HTLC_ACCEPTED_REVOKE = 5, + HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = 6, + HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL = 7, + HTLC_OFFERED_REMOTE_TIMEOUT = 8, + HTLC_ACCEPTED_REMOTE_SUCCESS = 9, + HTLC_SECOND_LEVEL_REVOKE = 10, + WITNESS_KEY_HASH = 11, + NESTED_WITNESS_KEY_HASH = 12, + COMMITMENT_ANCHOR = 13, +} diff --git a/src/grpc/types/walletunlocker.d.ts b/src/grpc/types/walletunlocker.d.ts new file mode 100644 index 000000000..3c70bb80f --- /dev/null +++ b/src/grpc/types/walletunlocker.d.ts @@ -0,0 +1,247 @@ +import type * as grpc from '@grpc/grpc-js' +import type { + EnumTypeDefinition, + MessageTypeDefinition, +} from '@grpc/proto-loader' +import type { + LightningClient as _lnrpc_LightningClient, + LightningDefinition as _lnrpc_LightningDefinition, +} from './lnrpc/Lightning' +import type { + WalletUnlockerClient as _lnrpc_WalletUnlockerClient, + WalletUnlockerDefinition as _lnrpc_WalletUnlockerDefinition, +} from './lnrpc/WalletUnlocker' +declare type SubtypeConstructor< + Constructor extends new (...args: any) => any, + Subtype +> = { + new (...args: ConstructorParameters): Subtype +} +export interface ProtoGrpcType { + lnrpc: { + AMP: MessageTypeDefinition + AMPInvoiceState: MessageTypeDefinition + AMPRecord: MessageTypeDefinition + AbandonChannelRequest: MessageTypeDefinition + AbandonChannelResponse: MessageTypeDefinition + AddInvoiceResponse: MessageTypeDefinition + AddressType: EnumTypeDefinition + AliasMap: MessageTypeDefinition + Amount: MessageTypeDefinition + BakeMacaroonRequest: MessageTypeDefinition + BakeMacaroonResponse: MessageTypeDefinition + BatchOpenChannel: MessageTypeDefinition + BatchOpenChannelRequest: MessageTypeDefinition + BatchOpenChannelResponse: MessageTypeDefinition + Chain: MessageTypeDefinition + ChanBackupExportRequest: MessageTypeDefinition + ChanBackupSnapshot: MessageTypeDefinition + ChanInfoRequest: MessageTypeDefinition + ChanPointShim: MessageTypeDefinition + ChangePasswordRequest: MessageTypeDefinition + ChangePasswordResponse: MessageTypeDefinition + Channel: MessageTypeDefinition + ChannelAcceptRequest: MessageTypeDefinition + ChannelAcceptResponse: MessageTypeDefinition + ChannelBackup: MessageTypeDefinition + ChannelBackupSubscription: MessageTypeDefinition + ChannelBackups: MessageTypeDefinition + ChannelBalanceRequest: MessageTypeDefinition + ChannelBalanceResponse: MessageTypeDefinition + ChannelCloseSummary: MessageTypeDefinition + ChannelCloseUpdate: MessageTypeDefinition + ChannelConstraints: MessageTypeDefinition + ChannelEdge: MessageTypeDefinition + ChannelEdgeUpdate: MessageTypeDefinition + ChannelEventSubscription: MessageTypeDefinition + ChannelEventUpdate: MessageTypeDefinition + ChannelFeeReport: MessageTypeDefinition + ChannelGraph: MessageTypeDefinition + ChannelGraphRequest: MessageTypeDefinition + ChannelOpenUpdate: MessageTypeDefinition + ChannelPoint: MessageTypeDefinition + ChannelUpdate: MessageTypeDefinition + CheckMacPermRequest: MessageTypeDefinition + CheckMacPermResponse: MessageTypeDefinition + CloseChannelRequest: MessageTypeDefinition + CloseStatusUpdate: MessageTypeDefinition + ClosedChannelUpdate: MessageTypeDefinition + ClosedChannelsRequest: MessageTypeDefinition + ClosedChannelsResponse: MessageTypeDefinition + CommitmentType: EnumTypeDefinition + ConfirmationUpdate: MessageTypeDefinition + ConnectPeerRequest: MessageTypeDefinition + ConnectPeerResponse: MessageTypeDefinition + CustomMessage: MessageTypeDefinition + DebugLevelRequest: MessageTypeDefinition + DebugLevelResponse: MessageTypeDefinition + DeleteAllPaymentsRequest: MessageTypeDefinition + DeleteAllPaymentsResponse: MessageTypeDefinition + DeleteMacaroonIDRequest: MessageTypeDefinition + DeleteMacaroonIDResponse: MessageTypeDefinition + DeletePaymentRequest: MessageTypeDefinition + DeletePaymentResponse: MessageTypeDefinition + DisconnectPeerRequest: MessageTypeDefinition + DisconnectPeerResponse: MessageTypeDefinition + EdgeLocator: MessageTypeDefinition + EstimateFeeRequest: MessageTypeDefinition + EstimateFeeResponse: MessageTypeDefinition + ExportChannelBackupRequest: MessageTypeDefinition + FailedUpdate: MessageTypeDefinition + Failure: MessageTypeDefinition + Feature: MessageTypeDefinition + FeatureBit: EnumTypeDefinition + FeeLimit: MessageTypeDefinition + FeeReportRequest: MessageTypeDefinition + FeeReportResponse: MessageTypeDefinition + FloatMetric: MessageTypeDefinition + ForwardingEvent: MessageTypeDefinition + ForwardingHistoryRequest: MessageTypeDefinition + ForwardingHistoryResponse: MessageTypeDefinition + FundingPsbtFinalize: MessageTypeDefinition + FundingPsbtVerify: MessageTypeDefinition + FundingShim: MessageTypeDefinition + FundingShimCancel: MessageTypeDefinition + FundingStateStepResp: MessageTypeDefinition + FundingTransitionMsg: MessageTypeDefinition + GenSeedRequest: MessageTypeDefinition + GenSeedResponse: MessageTypeDefinition + GetInfoRequest: MessageTypeDefinition + GetInfoResponse: MessageTypeDefinition + GetRecoveryInfoRequest: MessageTypeDefinition + GetRecoveryInfoResponse: MessageTypeDefinition + GetTransactionsRequest: MessageTypeDefinition + GraphTopologySubscription: MessageTypeDefinition + GraphTopologyUpdate: MessageTypeDefinition + HTLC: MessageTypeDefinition + HTLCAttempt: MessageTypeDefinition + Hop: MessageTypeDefinition + HopHint: MessageTypeDefinition + InitWalletRequest: MessageTypeDefinition + InitWalletResponse: MessageTypeDefinition + Initiator: EnumTypeDefinition + InterceptFeedback: MessageTypeDefinition + Invoice: MessageTypeDefinition + InvoiceHTLC: MessageTypeDefinition + InvoiceHTLCState: EnumTypeDefinition + InvoiceSubscription: MessageTypeDefinition + KeyDescriptor: MessageTypeDefinition + KeyLocator: MessageTypeDefinition + Lightning: SubtypeConstructor< + typeof grpc.Client, + _lnrpc_LightningClient + > & { + service: _lnrpc_LightningDefinition + } + LightningAddress: MessageTypeDefinition + LightningNode: MessageTypeDefinition + ListAliasesRequest: MessageTypeDefinition + ListAliasesResponse: MessageTypeDefinition + ListChannelsRequest: MessageTypeDefinition + ListChannelsResponse: MessageTypeDefinition + ListInvoiceRequest: MessageTypeDefinition + ListInvoiceResponse: MessageTypeDefinition + ListMacaroonIDsRequest: MessageTypeDefinition + ListMacaroonIDsResponse: MessageTypeDefinition + ListPaymentsRequest: MessageTypeDefinition + ListPaymentsResponse: MessageTypeDefinition + ListPeersRequest: MessageTypeDefinition + ListPeersResponse: MessageTypeDefinition + ListPermissionsRequest: MessageTypeDefinition + ListPermissionsResponse: MessageTypeDefinition + ListUnspentRequest: MessageTypeDefinition + ListUnspentResponse: MessageTypeDefinition + MPPRecord: MessageTypeDefinition + MacaroonId: MessageTypeDefinition + MacaroonPermission: MessageTypeDefinition + MacaroonPermissionList: MessageTypeDefinition + MiddlewareRegistration: MessageTypeDefinition + MultiChanBackup: MessageTypeDefinition + NetworkInfo: MessageTypeDefinition + NetworkInfoRequest: MessageTypeDefinition + NewAddressRequest: MessageTypeDefinition + NewAddressResponse: MessageTypeDefinition + NodeAddress: MessageTypeDefinition + NodeInfo: MessageTypeDefinition + NodeInfoRequest: MessageTypeDefinition + NodeMetricType: EnumTypeDefinition + NodeMetricsRequest: MessageTypeDefinition + NodeMetricsResponse: MessageTypeDefinition + NodePair: MessageTypeDefinition + NodeUpdate: MessageTypeDefinition + Op: MessageTypeDefinition + OpenChannelRequest: MessageTypeDefinition + OpenStatusUpdate: MessageTypeDefinition + OutPoint: MessageTypeDefinition + OutputDetail: MessageTypeDefinition + OutputScriptType: EnumTypeDefinition + PayReq: MessageTypeDefinition + PayReqString: MessageTypeDefinition + Payment: MessageTypeDefinition + PaymentFailureReason: EnumTypeDefinition + PaymentHash: MessageTypeDefinition + Peer: MessageTypeDefinition + PeerEvent: MessageTypeDefinition + PeerEventSubscription: MessageTypeDefinition + PendingChannelsRequest: MessageTypeDefinition + PendingChannelsResponse: MessageTypeDefinition + PendingHTLC: MessageTypeDefinition + PendingUpdate: MessageTypeDefinition + PolicyUpdateRequest: MessageTypeDefinition + PolicyUpdateResponse: MessageTypeDefinition + PreviousOutPoint: MessageTypeDefinition + PsbtShim: MessageTypeDefinition + QueryRoutesRequest: MessageTypeDefinition + QueryRoutesResponse: MessageTypeDefinition + RPCMessage: MessageTypeDefinition + RPCMiddlewareRequest: MessageTypeDefinition + RPCMiddlewareResponse: MessageTypeDefinition + ReadyForPsbtFunding: MessageTypeDefinition + Resolution: MessageTypeDefinition + ResolutionOutcome: EnumTypeDefinition + ResolutionType: EnumTypeDefinition + RestoreBackupResponse: MessageTypeDefinition + RestoreChanBackupRequest: MessageTypeDefinition + Route: MessageTypeDefinition + RouteHint: MessageTypeDefinition + RoutingPolicy: MessageTypeDefinition + SendCoinsRequest: MessageTypeDefinition + SendCoinsResponse: MessageTypeDefinition + SendCustomMessageRequest: MessageTypeDefinition + SendCustomMessageResponse: MessageTypeDefinition + SendManyRequest: MessageTypeDefinition + SendManyResponse: MessageTypeDefinition + SendRequest: MessageTypeDefinition + SendResponse: MessageTypeDefinition + SendToRouteRequest: MessageTypeDefinition + SetID: MessageTypeDefinition + SignMessageRequest: MessageTypeDefinition + SignMessageResponse: MessageTypeDefinition + StopRequest: MessageTypeDefinition + StopResponse: MessageTypeDefinition + StreamAuth: MessageTypeDefinition + SubscribeCustomMessagesRequest: MessageTypeDefinition + TimestampedError: MessageTypeDefinition + Transaction: MessageTypeDefinition + TransactionDetails: MessageTypeDefinition + UnlockWalletRequest: MessageTypeDefinition + UnlockWalletResponse: MessageTypeDefinition + UpdateFailure: EnumTypeDefinition + Utxo: MessageTypeDefinition + VerifyChanBackupResponse: MessageTypeDefinition + VerifyMessageRequest: MessageTypeDefinition + VerifyMessageResponse: MessageTypeDefinition + WalletAccountBalance: MessageTypeDefinition + WalletBalanceRequest: MessageTypeDefinition + WalletBalanceResponse: MessageTypeDefinition + WalletUnlocker: SubtypeConstructor< + typeof grpc.Client, + _lnrpc_WalletUnlockerClient + > & { + service: _lnrpc_WalletUnlockerDefinition + } + WatchOnly: MessageTypeDefinition + WatchOnlyAccount: MessageTypeDefinition + } +} +export {} diff --git a/src/tests/controllers/messageLength.test.ts b/src/tests/controllers/messageLength.test.ts index aa9b41dcc..a8d684b8e 100644 --- a/src/tests/controllers/messageLength.test.ts +++ b/src/tests/controllers/messageLength.test.ts @@ -13,130 +13,131 @@ import nodes from '../nodes' npx ava src/tests/controllers/messageLength.test.ts --verbose --serial --timeout=2m */ -interface Context { } +interface Context {} test.serial( - 'test-09-chatInvoice: add contact, send invoices, pay invoices, delete contact', - async (t: ExecutionContext) => { - await iterate(nodes, async (node1, node2) => { - await messageLengthTest(t, node1, node2) - await longMessage(t, node1, node2) - }) - } + 'test-09-chatInvoice: add contact, send invoices, pay invoices, delete contact', + async (t: ExecutionContext) => { + await iterate(nodes, async (node1, node2) => { + await messageLengthTest(t, node1, node2) + await longMessage(t, node1, node2) + }) + } ) export async function messageLengthTest(t, node1, node2) { - //TWO NODES SEND PAYMENTS TO EACH OTHER IN A CHAT ===> - - await deleteMessages(t, node2) - console.log(`${node1.alias} and ${node2.alias}`) - - //NODE1 ADDS NODE2 AS A CONTACT - const added = await addContact(t, node1, node2) - t.true(added, 'n1 should add n2 as contact') - - const date = new Date(Date.now()) - const limit = 2 - const offset = 0 - await sleep(2000) - //NODE1 SENDS A TEXT MESSAGE TO NODE2 - const text = randomText() - await sendMessage(t, node1, node2, text) - await sleep(1000) - const text2 = randomText() - await sendMessage(t, node1, node2, text2) - await sleep(1000) - const text3 = randomText() - await sendMessage(t, node1, node2, text3) - await sleep(1000) - const text4 = randomText() - await sendMessage(t, node1, node2, text4) - await sleep(1000) - //t.true(messageSent.success, 'node1 should send text message to node2') - - const newMessagesResponse = await getCheckMsgs( - t, - node2, - date, - limit, - offset, - 'desc' - ) - t.true( - newMessagesResponse.new_messages_total == 4, - 'node2 should have 4 new message' - ) - t.true( - decrypt(newMessagesResponse.new_messages[0], node2) == text4, - 'first message should be the newest message' - ) - t.true( - decrypt(newMessagesResponse.new_messages[1], node2) == text3, - 'first message should be the newest message' - ) - - const newMessagesResponse2 = await getCheckAllMessages( - t, - node2, - limit, - offset, - 'desc' - ) - t.true( - newMessagesResponse2.new_messages_total == 4, - `node2 should have 4 new messages` - ) - t.true( - decrypt(newMessagesResponse2.new_messages[0], node2) == text4, - 'first message should be the newest message' - ) - t.true( - decrypt(newMessagesResponse2.new_messages[1], node2) == text3, - 'first message should be the newest message' - ) - - //NODE1 AND NODE2 DELETE EACH OTHER AS CONTACTS - const allContacts = await getContacts(t, node1) - let deletion - for (const contact of allContacts) { - if (contact.public_key == node2.pubkey) { - deletion = await deleteContact(t, node1, contact.id) - t.true(deletion, 'contacts should be deleted') - } + //TWO NODES SEND PAYMENTS TO EACH OTHER IN A CHAT ===> + + await deleteMessages(t, node2) + console.log(`${node1.alias} and ${node2.alias}`) + + //NODE1 ADDS NODE2 AS A CONTACT + const added = await addContact(t, node1, node2) + t.true(added, 'n1 should add n2 as contact') + + const date = new Date(Date.now()) + const limit = 2 + const offset = 0 + await sleep(2000) + //NODE1 SENDS A TEXT MESSAGE TO NODE2 + const text = randomText() + await sendMessage(t, node1, node2, text) + await sleep(1000) + const text2 = randomText() + await sendMessage(t, node1, node2, text2) + await sleep(1000) + const text3 = randomText() + await sendMessage(t, node1, node2, text3) + await sleep(1000) + const text4 = randomText() + await sendMessage(t, node1, node2, text4) + await sleep(1000) + //t.true(messageSent.success, 'node1 should send text message to node2') + + const newMessagesResponse = await getCheckMsgs( + t, + node2, + date, + limit, + offset, + 'desc' + ) + t.true( + newMessagesResponse.new_messages_total == 4, + 'node2 should have 4 new message' + ) + t.true( + decrypt(newMessagesResponse.new_messages[0], node2) == text4, + 'first message should be the newest message' + ) + t.true( + decrypt(newMessagesResponse.new_messages[1], node2) == text3, + 'first message should be the newest message' + ) + + const newMessagesResponse2 = await getCheckAllMessages( + t, + node2, + limit, + offset, + 'desc' + ) + t.true( + newMessagesResponse2.new_messages_total == 4, + `node2 should have 4 new messages` + ) + t.true( + decrypt(newMessagesResponse2.new_messages[0], node2) == text4, + 'first message should be the newest message' + ) + t.true( + decrypt(newMessagesResponse2.new_messages[1], node2) == text3, + 'first message should be the newest message' + ) + + //NODE1 AND NODE2 DELETE EACH OTHER AS CONTACTS + const allContacts = await getContacts(t, node1) + let deletion + for (const contact of allContacts) { + if (contact.public_key == node2.pubkey) { + deletion = await deleteContact(t, node1, contact.id) + t.true(deletion, 'contacts should be deleted') } + } } function decrypt(message: Message, node: NodeConfig) { - return rsa.decrypt(node.privkey, message.message_content) + return rsa.decrypt(node.privkey, message.message_content) } export async function longMessage(t, node1, node2) { - const limit = 1 - const offset = 0 - const added = await addContact(t, node1, node2) - t.true(added, 'n1 should add n2 as contact') - - //Send the message - const longText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Risus feugiat in ante metus dictum at tempor. Ut enim blandit volutpat maecenas volutpat. Velit dignissim sodales ut eu. Eget nunc scelerisque viverra mauris in aliquam sem. Dictum varius duis at consectetur lorem. Maecenas volutpat blandit aliquam etiam erat velit scelerisque. Id velit ut tortor pretium viverra suspendisse potenti. Placerat vestibulum lectus mauris ultrices eros in cursus turpis. Integer vitae justo eget magna. Duis tristique sollicitudin nibh sit amet commodo nulla facilisi nullam. Vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Vitae sapien pellentesque habitant morbi tristique. Varius vel pharetra vel turpis nunc eget lorem dolor. Pellentesque massa placerat duis ultricies lacus sed turpis. Augue neque gravida in fermentum et sollicitudin. Adipiscing elit pellentesque habitant morbi tristique." - console.log("sending long message to", node2.alias) - await sendMessage(t, node1, node2, longText) - await sleep(1000) - - //Checking for the new long message - const onlyMessage = await getCheckAllMessages(t, node2, limit, offset, 'desc') - t.true( - decrypt(onlyMessage.new_messages[0], node2) == longText, - 'reciever should get long message' - ) - - // clean up - //NODE1 AND NODE2 DELETE EACH OTHER AS CONTACTS - const allContacts = await getContacts(t, node1) - let deletion - for (const contact of allContacts) { - if (contact.public_key == node2.pubkey) { - deletion = await deleteContact(t, node1, contact.id) - t.true(deletion, 'contacts should be deleted') - } + const limit = 1 + const offset = 0 + const added = await addContact(t, node1, node2) + t.true(added, 'n1 should add n2 as contact') + + //Send the message + const longText = + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Risus feugiat in ante metus dictum at tempor. Ut enim blandit volutpat maecenas volutpat. Velit dignissim sodales ut eu. Eget nunc scelerisque viverra mauris in aliquam sem. Dictum varius duis at consectetur lorem. Maecenas volutpat blandit aliquam etiam erat velit scelerisque. Id velit ut tortor pretium viverra suspendisse potenti. Placerat vestibulum lectus mauris ultrices eros in cursus turpis. Integer vitae justo eget magna. Duis tristique sollicitudin nibh sit amet commodo nulla facilisi nullam. Vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Vitae sapien pellentesque habitant morbi tristique. Varius vel pharetra vel turpis nunc eget lorem dolor. Pellentesque massa placerat duis ultricies lacus sed turpis. Augue neque gravida in fermentum et sollicitudin. Adipiscing elit pellentesque habitant morbi tristique.' + console.log('sending long message to', node2.alias) + await sendMessage(t, node1, node2, longText) + await sleep(1000) + + //Checking for the new long message + const onlyMessage = await getCheckAllMessages(t, node2, limit, offset, 'desc') + t.true( + decrypt(onlyMessage.new_messages[0], node2) == longText, + 'reciever should get long message' + ) + + // clean up + //NODE1 AND NODE2 DELETE EACH OTHER AS CONTACTS + const allContacts = await getContacts(t, node1) + let deletion + for (const contact of allContacts) { + if (contact.public_key == node2.pubkey) { + deletion = await deleteContact(t, node1, contact.id) + t.true(deletion, 'contacts should be deleted') } + } } diff --git a/src/utils/gitinfo.ts b/src/utils/gitinfo.ts index d6524cbb1..25defabc4 100644 --- a/src/utils/gitinfo.ts +++ b/src/utils/gitinfo.ts @@ -4,9 +4,10 @@ import { sphinxLogger } from './logger' function git(command: string): string | void { try { return execSync(`git ${command}`).toString().trim() - } - catch (e) { - sphinxLogger.error('Error running a git command, probably not running in a git repository') + } catch (e) { + sphinxLogger.error( + 'Error running a git command, probably not running in a git repository' + ) sphinxLogger.error(e) } } diff --git a/src/utils/msg.ts b/src/utils/msg.ts index cf8beaf5b..de6bf37a4 100644 --- a/src/utils/msg.ts +++ b/src/utils/msg.ts @@ -60,14 +60,14 @@ async function encryptTribeBroadcast( if (isTribeOwner) { // has been previously decrypted if (message.content) { - const encContent = rsa.encrypt(contact.contactKey, message.content.toString()) + const encContent = rsa.encrypt( + contact.contactKey, + message.content.toString() + ) obj.content = encContent } if (message.mediaKey) { - const encMediaKey = rsa.encrypt( - contact.contactKey, - message.mediaKey - ) + const encMediaKey = rsa.encrypt(contact.contactKey, message.mediaKey) obj.mediaKey = encMediaKey } } diff --git a/src/utils/proxy.ts b/src/utils/proxy.ts index 26f4c22fd..d0537d050 100644 --- a/src/utils/proxy.ts +++ b/src/utils/proxy.ts @@ -1,5 +1,7 @@ import * as fs from 'fs' -import * as grpc from 'grpc' +import * as grpc from '@grpc/grpc-js' +import { loadProto } from '../grpc/proto' +import { LightningClient as ProxyLightningClient } from '../grpc/types/lnrpc_proxy/Lightning' import { loadConfig } from './config' import * as Lightning from '../grpc/lightning' import { models, ContactRecord } from '../models' @@ -14,7 +16,9 @@ const PROXY_LND_IP = config.proxy_lnd_ip || 'localhost' const check_proxy_balance = false -export function isProxy(): boolean { +export function isProxy(client: any): client is ProxyLightningClient +export function isProxy(): boolean +export function isProxy(client?: any): boolean { return config.proxy_lnd_port && config.proxy_macaroons_dir && config.proxy_tls_location @@ -159,7 +163,9 @@ export async function loadProxyCredentials(macPrefix: string) { return grpc.credentials.combineChannelCredentials(sslCreds, macaroonCreds) } -export async function loadProxyLightning(ownerPubkey?: string) { +export async function loadProxyLightning( + ownerPubkey?: string +): Promise { try { let macname if (ownerPubkey && ownerPubkey.length === 66) { @@ -172,8 +178,8 @@ export async function loadProxyLightning(ownerPubkey?: string) { } } const credentials = await loadProxyCredentials(macname) - const lnrpcDescriptor = grpc.load('proto/rpc_proxy.proto') - const lnrpc: any = lnrpcDescriptor.lnrpc_proxy + const lnrpcDescriptor = loadProto('rpc_proxy') + const lnrpc = lnrpcDescriptor.lnrpc_proxy const the = new lnrpc.Lightning( PROXY_LND_IP + ':' + config.proxy_lnd_port, credentials @@ -194,11 +200,11 @@ export function getProxyRootPubkey(): Promise { } // normal client, to get pubkey of LND const credentials = Lightning.loadCredentials() - const lnrpcDescriptor = grpc.load('proto/lightning.proto') - const lnrpc: any = lnrpcDescriptor.lnrpc + const lnrpcDescriptor = loadProto('lightning') + const lnrpc = lnrpcDescriptor.lnrpc const lc = new lnrpc.Lightning(LND_IP + ':' + config.lnd_port, credentials) lc.getInfo({}, function (err, response) { - if (err == null) { + if (err == null && response) { proxyRootPubkey = response.identity_pubkey resolve(proxyRootPubkey) } else { @@ -212,13 +218,13 @@ function getProxyLNDBalance(): Promise { return new Promise((resolve, reject) => { // normal client, to get pubkey of LND const credentials = Lightning.loadCredentials() - const lnrpcDescriptor = grpc.load('proto/lightning.proto') - const lnrpc: any = lnrpcDescriptor.lnrpc + const lnrpcDescriptor = loadProto('lightning') + const lnrpc = lnrpcDescriptor.lnrpc const lc = new lnrpc.Lightning(LND_IP + ':' + config.lnd_port, credentials) lc.channelBalance({}, function (err, response) { - if (err == null) { + if (err == null && response) { lc.listChannels({}, function (err, channelList) { - if (err == null) { + if (err == null && channelList) { const { channels } = channelList const reserve = channels.reduce( (a, chan) => a + parseInt(chan.local_chan_reserve_sat), diff --git a/src/utils/signer.ts b/src/utils/signer.ts index 674c59e4a..658745707 100644 --- a/src/utils/signer.ts +++ b/src/utils/signer.ts @@ -1,4 +1,5 @@ -import * as grpc from 'grpc' +import { loadProto } from '../grpc/proto' +import { SignerClient } from '../grpc/types/signrpc/Signer' import * as Lightning from '../grpc/lightning' import * as ByteBuffer from 'bytebuffer' import { loadConfig } from './config' @@ -8,16 +9,16 @@ import { sphinxLogger } from './logger' const config = loadConfig() const LND_IP = config.lnd_ip || 'localhost' -let signerClient = null +let signerClient: SignerClient | undefined -export const loadSigner = () => { +export function loadSigner(): SignerClient { if (signerClient) { return signerClient } else { try { const credentials = Lightning.loadCredentials('signer.macaroon') - const lnrpcDescriptor = grpc.load('proto/signer.proto') - const signer: any = lnrpcDescriptor.signrpc + const lnrpcDescriptor = loadProto('signer') + const signer = lnrpcDescriptor.signrpc signerClient = new signer.Signer( LND_IP + ':' + config.lnd_port, credentials @@ -32,15 +33,15 @@ export const loadSigner = () => { } export const signMessage = (msg) => { - return new Promise(async (resolve, reject) => { - const signer = await loadSigner() + return new Promise((resolve, reject) => { + const signer = loadSigner() try { const options = { - msg: ByteBuffer.fromHex(msg), + msg: Buffer.from(msg, 'hex'), key_loc: { key_family: 6, key_index: 0 }, } signer.signMessage(options, function (err, sig) { - if (err || !sig.signature) { + if (err || !sig || !sig.signature) { reject(err) } else { const buf = ByteBuffer.wrap(sig.signature) @@ -54,12 +55,12 @@ export const signMessage = (msg) => { } export const signBuffer = (msg) => { - return new Promise(async (resolve, reject) => { - const signer = await loadSigner() + return new Promise((resolve, reject) => { + const signer = loadSigner() try { const options = { msg } signer.signMessage(options, function (err, sig) { - if (err || !sig.signature) { + if (err || !sig || !sig.signature) { reject(err) } else { const buf = ByteBuffer.wrap(sig.signature) @@ -73,8 +74,8 @@ export const signBuffer = (msg) => { } function verifyMessage(msg, sig, pubkey): Promise<{ [k: string]: any }> { - return new Promise(async (resolve, reject) => { - const signer = await loadSigner() + return new Promise((resolve, reject) => { + const signer = loadSigner() if (msg.length === 0) { return reject('invalid msg') } @@ -86,12 +87,12 @@ function verifyMessage(msg, sig, pubkey): Promise<{ [k: string]: any }> { } try { const options = { - msg: ByteBuffer.fromHex(msg), - signature: ByteBuffer.fromBase64(sig), - pubkey: ByteBuffer.fromHex(pubkey), + msg: Buffer.from(msg, 'hex'), + signature: Buffer.from(sig, 'base64'), + pubkey: Buffer.from(pubkey, 'hex'), } signer.verifyMessage(options, function (err, res) { - if (err) { + if (err || !res) { reject(err) } else { resolve(res) diff --git a/src/utils/wallet.ts b/src/utils/wallet.ts index 14d378dfe..f07c0f90d 100644 --- a/src/utils/wallet.ts +++ b/src/utils/wallet.ts @@ -1,4 +1,5 @@ -import * as grpc from 'grpc' +import { loadProto } from '../grpc/proto' +import { WalletKitClient } from '../grpc/types/walletrpc/WalletKit' import * as Lightning from '../grpc/lightning' import { loadConfig } from './config' import { sphinxLogger } from './logger' @@ -6,16 +7,16 @@ import { sphinxLogger } from './logger' const config = loadConfig() const LND_IP = config.lnd_ip || 'localhost' -let walletClient +let walletClient: WalletKitClient | undefined -export const loadWalletKit = () => { +export function loadWalletKit(): WalletKitClient { if (walletClient) { return walletClient } else { try { const credentials = Lightning.loadCredentials() - const lnrpcDescriptor = grpc.load('proto/walletkit.proto') - const walletkit: any = lnrpcDescriptor.walletrpc + const lnrpcDescriptor = loadProto('walletkit') + const walletkit = lnrpcDescriptor.walletrpc walletClient = new walletkit.WalletKit( LND_IP + ':' + config.lnd_port, credentials @@ -28,20 +29,33 @@ export const loadWalletKit = () => { } } +enum AddressType { + WITNESS_PUBKEY_HASH = 0, + NESTED_PUBKEY_HASH = 1, + UNUSED_WITNESS_PUBKEY_HASH = 2, + UNUSED_NESTED_PUBKEY_HASH = 3, + TAPROOT_PUBKEY = 4, + UNUSED_TAPROOT_PUBKEY = 5, +} + interface Outpoint { + txid_bytes: Buffer txid_str: string + output_index: number } + export interface UTXO { + address_type: keyof typeof AddressType address: string - address_type: number - amount_sat: number - confirmations: number - outpoint: Outpoint + amount_sat: string + pk_script: string + outpoint: Outpoint | null + confirmations: string } export async function listUnspent(): Promise { - return new Promise(async (resolve, reject) => { - const walletkit = await loadWalletKit() + return new Promise((resolve, reject) => { + const walletkit = loadWalletKit() try { const opts = { min_confs: 0, max_confs: 10000 } walletkit.listUnspent(opts, function (err, res) { diff --git a/tsconfig.grpc_types.json b/tsconfig.grpc_types.json new file mode 100644 index 000000000..9c25ef51e --- /dev/null +++ b/tsconfig.grpc_types.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "outDir": "src/grpc/types", + "target": "es6", + "moduleResolution": "node", + "module": "commonjs", + "declaration": true, + "emitDeclarationOnly": true + }, + "include": ["_tmp_grpc_types"] +}