From 5604109245a67408b0101088a2d31b069a49f038 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Wed, 28 Dec 2022 22:23:41 +0100 Subject: [PATCH] grpc -> grpcjs + generated ts types from proto files notes: * grpcjs doesnt like ByteBuffer, it has been replaced with the nodejs native Buffer * grpcjs doesnt like calls without an argument, add {} instead see src/grpc/subscribe.ts:24 * grpcjs converts uint64 in a map key (map) to some hash, this is fixed with protobuf_long.patch which is automatically applied after running `npm install` this pr would fix the bug upstream https://github.com/protobufjs/protobuf.js/pull/1669 --- .github/workflows/update_proto.yml | 13 +- dist/src/controllers/invoices.js.map | 2 +- dist/src/controllers/queries.js | 18 +- dist/src/controllers/queries.js.map | 2 +- dist/src/grpc/greenlight.js | 58 +- dist/src/grpc/greenlight.js.map | 2 +- dist/src/grpc/interfaces.js | 7 +- dist/src/grpc/interfaces.js.map | 2 +- dist/src/grpc/lightning.js | 290 +- 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 +- .../grpc/types/greenlight/BtcAddressType.js | 9 + .../types/greenlight/BtcAddressType.js.map | 1 + .../grpc/types/greenlight/CloseChannelType.js | 9 + .../types/greenlight/CloseChannelType.js.map | 1 + .../grpc/types/greenlight/FeeratePreset.js | 10 + .../types/greenlight/FeeratePreset.js.map | 1 + .../grpc/types/greenlight/InvoiceStatus.js | 10 + .../types/greenlight/InvoiceStatus.js.map | 1 + .../grpc/types/greenlight/NetAddressType.js | 11 + .../types/greenlight/NetAddressType.js.map | 1 + .../src/grpc/types/greenlight/OutputStatus.js | 9 + .../grpc/types/greenlight/OutputStatus.js.map | 1 + dist/src/grpc/types/greenlight/PayStatus.js | 10 + .../grpc/types/greenlight/PayStatus.js.map | 1 + dist/src/grpc/types/lnrpc/AddressType.js | 13 + dist/src/grpc/types/lnrpc/AddressType.js.map | 1 + dist/src/grpc/types/lnrpc/Channel.js | 4 + dist/src/grpc/types/lnrpc/Channel.js.map | 1 + .../grpc/types/lnrpc/ChannelCloseSummary.js | 14 + .../types/lnrpc/ChannelCloseSummary.js.map | 1 + .../grpc/types/lnrpc/ChannelEventUpdate.js | 14 + .../types/lnrpc/ChannelEventUpdate.js.map | 1 + dist/src/grpc/types/lnrpc/CommitmentType.js | 12 + .../grpc/types/lnrpc/CommitmentType.js.map | 1 + dist/src/grpc/types/lnrpc/Failure.js | 36 + dist/src/grpc/types/lnrpc/Failure.js.map | 1 + dist/src/grpc/types/lnrpc/FeatureBit.js | 32 + dist/src/grpc/types/lnrpc/FeatureBit.js.map | 1 + dist/src/grpc/types/lnrpc/HTLCAttempt.js | 11 + dist/src/grpc/types/lnrpc/HTLCAttempt.js.map | 1 + dist/src/grpc/types/lnrpc/Initiator.js | 11 + dist/src/grpc/types/lnrpc/Initiator.js.map | 1 + dist/src/grpc/types/lnrpc/Invoice.js | 12 + dist/src/grpc/types/lnrpc/Invoice.js.map | 1 + dist/src/grpc/types/lnrpc/InvoiceHTLCState.js | 10 + .../grpc/types/lnrpc/InvoiceHTLCState.js.map | 1 + dist/src/grpc/types/lnrpc/NodeMetricType.js | 9 + .../grpc/types/lnrpc/NodeMetricType.js.map | 1 + dist/src/grpc/types/lnrpc/OutputScriptType.js | 17 + .../grpc/types/lnrpc/OutputScriptType.js.map | 1 + dist/src/grpc/types/lnrpc/Payment.js | 12 + dist/src/grpc/types/lnrpc/Payment.js.map | 1 + .../grpc/types/lnrpc/PaymentFailureReason.js | 13 + .../types/lnrpc/PaymentFailureReason.js.map | 1 + dist/src/grpc/types/lnrpc/Peer.js | 12 + dist/src/grpc/types/lnrpc/Peer.js.map | 1 + dist/src/grpc/types/lnrpc/PeerEvent.js | 10 + dist/src/grpc/types/lnrpc/PeerEvent.js.map | 1 + .../types/lnrpc/PendingChannelsResponse.js | 11 + .../lnrpc/PendingChannelsResponse.js.map | 1 + .../src/grpc/types/lnrpc/ResolutionOutcome.js | 13 + .../grpc/types/lnrpc/ResolutionOutcome.js.map | 1 + dist/src/grpc/types/lnrpc/ResolutionType.js | 12 + .../grpc/types/lnrpc/ResolutionType.js.map | 1 + dist/src/grpc/types/lnrpc/UpdateFailure.js | 12 + .../src/grpc/types/lnrpc/UpdateFailure.js.map | 1 + dist/src/grpc/types/lnrpc_proxy/Channel.js | 4 + .../src/grpc/types/lnrpc_proxy/Channel.js.map | 1 + .../grpc/types/lnrpc_proxy/CommitmentType.js | 11 + .../types/lnrpc_proxy/CommitmentType.js.map | 1 + dist/src/grpc/types/lnrpc_proxy/Failure.js | 35 + .../src/grpc/types/lnrpc_proxy/Failure.js.map | 1 + dist/src/grpc/types/lnrpc_proxy/FeatureBit.js | 24 + .../grpc/types/lnrpc_proxy/FeatureBit.js.map | 1 + .../src/grpc/types/lnrpc_proxy/HTLCAttempt.js | 11 + .../grpc/types/lnrpc_proxy/HTLCAttempt.js.map | 1 + dist/src/grpc/types/lnrpc_proxy/Invoice.js | 12 + .../src/grpc/types/lnrpc_proxy/Invoice.js.map | 1 + .../types/lnrpc_proxy/InvoiceHTLCState.js | 10 + .../types/lnrpc_proxy/InvoiceHTLCState.js.map | 1 + dist/src/grpc/types/lnrpc_proxy/Payment.js | 12 + .../src/grpc/types/lnrpc_proxy/Payment.js.map | 1 + .../types/lnrpc_proxy/PaymentFailureReason.js | 13 + .../lnrpc_proxy/PaymentFailureReason.js.map | 1 + .../grpc/types/routerrpc/ChanStatusAction.js | 10 + .../types/routerrpc/ChanStatusAction.js.map | 1 + .../src/grpc/types/routerrpc/FailureDetail.js | 30 + .../grpc/types/routerrpc/FailureDetail.js.map | 1 + dist/src/grpc/types/routerrpc/HtlcEvent.js | 12 + .../src/grpc/types/routerrpc/HtlcEvent.js.map | 1 + dist/src/grpc/types/routerrpc/PaymentState.js | 14 + .../grpc/types/routerrpc/PaymentState.js.map | 1 + .../routerrpc/ResolveHoldForwardAction.js | 10 + .../routerrpc/ResolveHoldForwardAction.js.map | 1 + .../grpc/types/scheduler/ChallengeScope.js | 9 + .../types/scheduler/ChallengeScope.js.map | 1 + dist/src/grpc/types/signrpc/SignMethod.js | 11 + dist/src/grpc/types/signrpc/SignMethod.js.map | 1 + dist/src/grpc/types/walletrpc/AddressType.js | 12 + .../grpc/types/walletrpc/AddressType.js.map | 1 + dist/src/grpc/types/walletrpc/WitnessType.js | 21 + .../grpc/types/walletrpc/WitnessType.js.map | 1 + dist/src/utils/proxy.js | 20 +- dist/src/utils/proxy.js.map | 2 +- dist/src/utils/signer.js | 52 +- dist/src/utils/signer.js.map | 2 +- dist/src/utils/wallet.js | 23 +- dist/src/utils/wallet.js.map | 2 +- grpc_gen_types.sh | 73 + package-lock.json | 1085 ++--- package.json | 8 +- protobuf_long.patch | 13 + src/controllers/invoices.ts | 3 +- src/controllers/queries.ts | 17 +- src/grpc/greenlight.ts | 66 +- src/grpc/interfaces.ts | 89 +- src/grpc/lightning.ts | 439 +- src/grpc/proto.ts | 58 + src/grpc/proto.ts.template | 28 + src/grpc/subscribe.ts | 2 +- src/grpc/types/greenlight.d.ts | 92 + src/grpc/types/greenlight/Address.d.ts | 18 + src/grpc/types/greenlight/Amount.d.ts | 21 + src/grpc/types/greenlight/BitcoinAddress.d.ts | 9 + src/grpc/types/greenlight/BtcAddressType.ts | 11 + src/grpc/types/greenlight/Channel.d.ts | 46 + .../types/greenlight/CloseChannelRequest.d.ts | 22 + .../greenlight/CloseChannelResponse.d.ts | 18 + src/grpc/types/greenlight/CloseChannelType.ts | 11 + src/grpc/types/greenlight/Confirmation.d.ts | 9 + src/grpc/types/greenlight/ConnectRequest.d.ts | 11 + .../types/greenlight/ConnectResponse.d.ts | 11 + .../types/greenlight/DisconnectRequest.d.ts | 11 + .../types/greenlight/DisconnectResponse.d.ts | 9 + src/grpc/types/greenlight/Empty.d.ts | 9 + src/grpc/types/greenlight/Feerate.d.ts | 21 + src/grpc/types/greenlight/FeeratePreset.ts | 12 + .../types/greenlight/FundChannelRequest.d.ts | 32 + .../types/greenlight/FundChannelResponse.d.ts | 20 + src/grpc/types/greenlight/GetInfoRequest.d.ts | 9 + .../types/greenlight/GetInfoResponse.d.ts | 28 + src/grpc/types/greenlight/Hsm.d.ts | 124 + src/grpc/types/greenlight/HsmRequest.d.ts | 18 + .../types/greenlight/HsmRequestContext.d.ts | 15 + src/grpc/types/greenlight/HsmResponse.d.ts | 11 + src/grpc/types/greenlight/Htlc.d.ts | 23 + .../types/greenlight/IncomingPayment.d.ts | 16 + src/grpc/types/greenlight/Invoice.d.ts | 36 + .../types/greenlight/InvoiceIdentifier.d.ts | 15 + src/grpc/types/greenlight/InvoiceRequest.d.ts | 18 + src/grpc/types/greenlight/InvoiceStatus.ts | 12 + src/grpc/types/greenlight/KeysendRequest.d.ts | 30 + .../types/greenlight/ListFundsChannel.d.ts | 23 + .../types/greenlight/ListFundsOutput.d.ts | 28 + .../types/greenlight/ListFundsRequest.d.ts | 14 + .../types/greenlight/ListFundsResponse.d.ts | 20 + .../types/greenlight/ListInvoicesRequest.d.ts | 14 + .../greenlight/ListInvoicesResponse.d.ts | 14 + .../types/greenlight/ListPaymentsRequest.d.ts | 14 + .../greenlight/ListPaymentsResponse.d.ts | 14 + .../types/greenlight/ListPeersRequest.d.ts | 9 + .../types/greenlight/ListPeersResponse.d.ts | 14 + src/grpc/types/greenlight/NetAddressType.ts | 13 + src/grpc/types/greenlight/NewAddrRequest.d.ts | 14 + .../types/greenlight/NewAddrResponse.d.ts | 16 + src/grpc/types/greenlight/Node.d.ts | 1036 +++++ .../types/greenlight/OffChainPayment.d.ts | 28 + src/grpc/types/greenlight/Outpoint.d.ts | 11 + src/grpc/types/greenlight/OutputStatus.ts | 11 + src/grpc/types/greenlight/PayRequest.d.ts | 18 + src/grpc/types/greenlight/PayStatus.ts | 11 + src/grpc/types/greenlight/Payment.d.ts | 28 + .../types/greenlight/PaymentIdentifier.d.ts | 13 + src/grpc/types/greenlight/Peer.d.ts | 26 + src/grpc/types/greenlight/Routehint.d.ts | 14 + src/grpc/types/greenlight/RoutehintHop.d.ts | 19 + src/grpc/types/greenlight/StopRequest.d.ts | 9 + src/grpc/types/greenlight/StopResponse.d.ts | 9 + .../greenlight/StreamIncomingFilter.d.ts | 9 + src/grpc/types/greenlight/Timeout.d.ts | 9 + src/grpc/types/greenlight/TlvField.d.ts | 13 + .../types/greenlight/WithdrawRequest.d.ts | 34 + .../types/greenlight/WithdrawResponse.d.ts | 11 + src/grpc/types/lightning.d.ts | 229 + src/grpc/types/lnrpc/AMP.d.ts | 17 + src/grpc/types/lnrpc/AMPInvoiceState.d.ts | 21 + src/grpc/types/lnrpc/AMPRecord.d.ts | 13 + .../types/lnrpc/AbandonChannelRequest.d.ts | 18 + .../types/lnrpc/AbandonChannelResponse.d.ts | 9 + src/grpc/types/lnrpc/AddInvoiceResponse.d.ts | 17 + src/grpc/types/lnrpc/AddressType.ts | 26 + src/grpc/types/lnrpc/AliasMap.d.ts | 13 + src/grpc/types/lnrpc/Amount.d.ts | 13 + src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts | 19 + .../types/lnrpc/BakeMacaroonResponse.d.ts | 9 + src/grpc/types/lnrpc/BatchOpenChannel.d.ts | 31 + .../types/lnrpc/BatchOpenChannelRequest.d.ts | 25 + .../types/lnrpc/BatchOpenChannelResponse.d.ts | 14 + src/grpc/types/lnrpc/Chain.d.ts | 11 + .../types/lnrpc/ChanBackupExportRequest.d.ts | 9 + src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts | 20 + src/grpc/types/lnrpc/ChanInfoRequest.d.ts | 11 + src/grpc/types/lnrpc/ChanPointShim.d.ts | 29 + .../types/lnrpc/ChangePasswordRequest.d.ts | 15 + .../types/lnrpc/ChangePasswordResponse.d.ts | 9 + src/grpc/types/lnrpc/Channel.ts | 87 + .../types/lnrpc/ChannelAcceptRequest.d.ts | 45 + .../types/lnrpc/ChannelAcceptResponse.d.ts | 31 + src/grpc/types/lnrpc/ChannelBackup.d.ts | 16 + .../lnrpc/ChannelBackupSubscription.d.ts | 9 + src/grpc/types/lnrpc/ChannelBackups.d.ts | 14 + .../types/lnrpc/ChannelBalanceRequest.d.ts | 9 + .../types/lnrpc/ChannelBalanceResponse.d.ts | 29 + src/grpc/types/lnrpc/ChannelCloseSummary.ts | 75 + src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts | 11 + src/grpc/types/lnrpc/ChannelConstraints.d.ts | 21 + src/grpc/types/lnrpc/ChannelEdge.d.ts | 31 + src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts | 29 + .../types/lnrpc/ChannelEventSubscription.d.ts | 9 + src/grpc/types/lnrpc/ChannelEventUpdate.ts | 80 + src/grpc/types/lnrpc/ChannelFeeReport.d.ts | 19 + src/grpc/types/lnrpc/ChannelGraph.d.ts | 20 + src/grpc/types/lnrpc/ChannelGraphRequest.d.ts | 9 + src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts | 14 + src/grpc/types/lnrpc/ChannelPoint.d.ts | 15 + src/grpc/types/lnrpc/ChannelUpdate.d.ts | 33 + src/grpc/types/lnrpc/CheckMacPermRequest.d.ts | 18 + .../types/lnrpc/CheckMacPermResponse.d.ts | 9 + src/grpc/types/lnrpc/CloseChannelRequest.d.ts | 27 + src/grpc/types/lnrpc/CloseStatusUpdate.d.ts | 22 + src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts | 21 + .../types/lnrpc/ClosedChannelsRequest.d.ts | 19 + .../types/lnrpc/ClosedChannelsResponse.d.ts | 14 + src/grpc/types/lnrpc/CommitmentType.ts | 24 + src/grpc/types/lnrpc/ConfirmationUpdate.d.ts | 13 + src/grpc/types/lnrpc/ConnectPeerRequest.d.ts | 19 + src/grpc/types/lnrpc/ConnectPeerResponse.d.ts | 9 + src/grpc/types/lnrpc/CustomMessage.d.ts | 13 + src/grpc/types/lnrpc/DebugLevelRequest.d.ts | 11 + src/grpc/types/lnrpc/DebugLevelResponse.d.ts | 9 + .../types/lnrpc/DeleteAllPaymentsRequest.d.ts | 11 + .../lnrpc/DeleteAllPaymentsResponse.d.ts | 9 + .../types/lnrpc/DeleteMacaroonIDRequest.d.ts | 11 + .../types/lnrpc/DeleteMacaroonIDResponse.d.ts | 9 + .../types/lnrpc/DeletePaymentRequest.d.ts | 11 + .../types/lnrpc/DeletePaymentResponse.d.ts | 9 + .../types/lnrpc/DisconnectPeerRequest.d.ts | 9 + .../types/lnrpc/DisconnectPeerResponse.d.ts | 9 + src/grpc/types/lnrpc/EdgeLocator.d.ts | 13 + src/grpc/types/lnrpc/EstimateFeeRequest.d.ts | 17 + src/grpc/types/lnrpc/EstimateFeeResponse.d.ts | 15 + .../lnrpc/ExportChannelBackupRequest.d.ts | 14 + src/grpc/types/lnrpc/FailedUpdate.d.ts | 22 + src/grpc/types/lnrpc/Failure.ts | 123 + src/grpc/types/lnrpc/Feature.d.ts | 13 + src/grpc/types/lnrpc/FeatureBit.ts | 83 + src/grpc/types/lnrpc/FeeLimit.d.ts | 17 + src/grpc/types/lnrpc/FeeReportRequest.d.ts | 9 + src/grpc/types/lnrpc/FeeReportResponse.d.ts | 21 + src/grpc/types/lnrpc/FloatMetric.d.ts | 11 + src/grpc/types/lnrpc/ForwardingEvent.d.ts | 33 + .../types/lnrpc/ForwardingHistoryRequest.d.ts | 19 + .../lnrpc/ForwardingHistoryResponse.d.ts | 16 + src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts | 13 + src/grpc/types/lnrpc/FundingPsbtVerify.d.ts | 13 + src/grpc/types/lnrpc/FundingShim.d.ts | 22 + src/grpc/types/lnrpc/FundingShimCancel.d.ts | 9 + .../types/lnrpc/FundingStateStepResp.d.ts | 9 + .../types/lnrpc/FundingTransitionMsg.d.ts | 34 + src/grpc/types/lnrpc/GenSeedRequest.d.ts | 11 + src/grpc/types/lnrpc/GenSeedResponse.d.ts | 11 + src/grpc/types/lnrpc/GetInfoRequest.d.ts | 9 + src/grpc/types/lnrpc/GetInfoResponse.d.ts | 55 + .../types/lnrpc/GetRecoveryInfoRequest.d.ts | 9 + .../types/lnrpc/GetRecoveryInfoResponse.d.ts | 13 + .../types/lnrpc/GetTransactionsRequest.d.ts | 13 + .../lnrpc/GraphTopologySubscription.d.ts | 9 + src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts | 26 + src/grpc/types/lnrpc/HTLC.d.ts | 23 + src/grpc/types/lnrpc/HTLCAttempt.ts | 50 + src/grpc/types/lnrpc/Hop.d.ts | 43 + src/grpc/types/lnrpc/HopHint.d.ts | 19 + src/grpc/types/lnrpc/InitWalletRequest.d.ts | 37 + src/grpc/types/lnrpc/InitWalletResponse.d.ts | 9 + src/grpc/types/lnrpc/Initiator.ts | 20 + src/grpc/types/lnrpc/InterceptFeedback.d.ts | 13 + src/grpc/types/lnrpc/Invoice.ts | 101 + src/grpc/types/lnrpc/InvoiceHTLC.d.ts | 39 + src/grpc/types/lnrpc/InvoiceHTLCState.ts | 12 + src/grpc/types/lnrpc/InvoiceSubscription.d.ts | 13 + src/grpc/types/lnrpc/KeyDescriptor.d.ts | 16 + src/grpc/types/lnrpc/KeyLocator.d.ts | 11 + src/grpc/types/lnrpc/Lightning.d.ts | 3718 +++++++++++++++++ src/grpc/types/lnrpc/LightningAddress.d.ts | 11 + src/grpc/types/lnrpc/LightningNode.d.ts | 30 + src/grpc/types/lnrpc/ListAliasesRequest.d.ts | 9 + src/grpc/types/lnrpc/ListAliasesResponse.d.ts | 14 + src/grpc/types/lnrpc/ListChannelsRequest.d.ts | 17 + .../types/lnrpc/ListChannelsResponse.d.ts | 14 + src/grpc/types/lnrpc/ListInvoiceRequest.d.ts | 21 + src/grpc/types/lnrpc/ListInvoiceResponse.d.ts | 19 + .../types/lnrpc/ListMacaroonIDsRequest.d.ts | 9 + .../types/lnrpc/ListMacaroonIDsResponse.d.ts | 11 + src/grpc/types/lnrpc/ListPaymentsRequest.d.ts | 23 + .../types/lnrpc/ListPaymentsResponse.d.ts | 21 + src/grpc/types/lnrpc/ListPeersRequest.d.ts | 9 + src/grpc/types/lnrpc/ListPeersResponse.d.ts | 14 + .../types/lnrpc/ListPermissionsRequest.d.ts | 9 + .../types/lnrpc/ListPermissionsResponse.d.ts | 14 + src/grpc/types/lnrpc/ListUnspentRequest.d.ts | 13 + src/grpc/types/lnrpc/ListUnspentResponse.d.ts | 14 + src/grpc/types/lnrpc/LookupHtlcRequest.d.ts | 13 + src/grpc/types/lnrpc/LookupHtlcResponse.d.ts | 11 + src/grpc/types/lnrpc/MPPRecord.d.ts | 13 + src/grpc/types/lnrpc/MacaroonId.d.ts | 18 + src/grpc/types/lnrpc/MacaroonPermission.d.ts | 11 + .../types/lnrpc/MacaroonPermissionList.d.ts | 14 + .../types/lnrpc/MiddlewareRegistration.d.ts | 13 + src/grpc/types/lnrpc/MultiChanBackup.d.ts | 16 + src/grpc/types/lnrpc/NetworkInfo.d.ts | 31 + src/grpc/types/lnrpc/NetworkInfoRequest.d.ts | 9 + src/grpc/types/lnrpc/NewAddressRequest.d.ts | 16 + src/grpc/types/lnrpc/NewAddressResponse.d.ts | 9 + src/grpc/types/lnrpc/NodeAddress.d.ts | 11 + src/grpc/types/lnrpc/NodeInfo.d.ts | 25 + src/grpc/types/lnrpc/NodeInfoRequest.d.ts | 11 + src/grpc/types/lnrpc/NodeMetricType.ts | 11 + src/grpc/types/lnrpc/NodeMetricsRequest.d.ts | 14 + src/grpc/types/lnrpc/NodeMetricsResponse.d.ts | 14 + src/grpc/types/lnrpc/NodePair.d.ts | 11 + src/grpc/types/lnrpc/NodeUpdate.d.ts | 30 + src/grpc/types/lnrpc/Op.d.ts | 11 + src/grpc/types/lnrpc/OpenChannelRequest.d.ts | 67 + src/grpc/types/lnrpc/OpenStatusUpdate.d.ts | 30 + src/grpc/types/lnrpc/OutPoint.d.ts | 13 + src/grpc/types/lnrpc/OutputDetail.d.ts | 25 + src/grpc/types/lnrpc/OutputScriptType.ts | 39 + src/grpc/types/lnrpc/PayReq.d.ts | 43 + src/grpc/types/lnrpc/PayReqString.d.ts | 9 + src/grpc/types/lnrpc/Payment.ts | 69 + src/grpc/types/lnrpc/PaymentFailureReason.ts | 28 + src/grpc/types/lnrpc/PaymentHash.d.ts | 11 + src/grpc/types/lnrpc/Peer.ts | 67 + src/grpc/types/lnrpc/PeerEvent.ts | 23 + .../types/lnrpc/PeerEventSubscription.d.ts | 9 + .../types/lnrpc/PendingChannelsRequest.d.ts | 9 + .../types/lnrpc/PendingChannelsResponse.ts | 158 + src/grpc/types/lnrpc/PendingHTLC.d.ts | 21 + src/grpc/types/lnrpc/PendingUpdate.d.ts | 11 + src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts | 33 + .../types/lnrpc/PolicyUpdateResponse.d.ts | 14 + src/grpc/types/lnrpc/PreviousOutPoint.d.ts | 11 + src/grpc/types/lnrpc/PsbtShim.d.ts | 13 + src/grpc/types/lnrpc/QueryRoutesRequest.d.ts | 63 + src/grpc/types/lnrpc/QueryRoutesResponse.d.ts | 16 + src/grpc/types/lnrpc/RPCMessage.d.ts | 17 + .../types/lnrpc/RPCMiddlewareRequest.d.ts | 35 + .../types/lnrpc/RPCMiddlewareResponse.d.ts | 25 + src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts | 15 + src/grpc/types/lnrpc/Resolution.d.ts | 31 + src/grpc/types/lnrpc/ResolutionOutcome.ts | 27 + src/grpc/types/lnrpc/ResolutionType.ts | 24 + .../types/lnrpc/RestoreBackupResponse.d.ts | 9 + .../types/lnrpc/RestoreChanBackupRequest.d.ts | 18 + src/grpc/types/lnrpc/Route.d.ts | 25 + src/grpc/types/lnrpc/RouteHint.d.ts | 14 + src/grpc/types/lnrpc/RoutingPolicy.d.ts | 25 + src/grpc/types/lnrpc/SendCoinsRequest.d.ts | 27 + src/grpc/types/lnrpc/SendCoinsResponse.d.ts | 9 + .../types/lnrpc/SendCustomMessageRequest.d.ts | 13 + .../lnrpc/SendCustomMessageResponse.d.ts | 9 + src/grpc/types/lnrpc/SendManyRequest.d.ts | 23 + src/grpc/types/lnrpc/SendManyResponse.d.ts | 9 + src/grpc/types/lnrpc/SendRequest.d.ts | 49 + src/grpc/types/lnrpc/SendResponse.d.ts | 20 + src/grpc/types/lnrpc/SendToRouteRequest.d.ts | 18 + src/grpc/types/lnrpc/SetID.d.ts | 9 + src/grpc/types/lnrpc/SignMessageRequest.d.ts | 11 + src/grpc/types/lnrpc/SignMessageResponse.d.ts | 9 + src/grpc/types/lnrpc/StopRequest.d.ts | 9 + src/grpc/types/lnrpc/StopResponse.d.ts | 9 + src/grpc/types/lnrpc/StreamAuth.d.ts | 9 + .../lnrpc/SubscribeCustomMessagesRequest.d.ts | 9 + src/grpc/types/lnrpc/TimestampedError.d.ts | 13 + src/grpc/types/lnrpc/Transaction.d.ts | 41 + src/grpc/types/lnrpc/TransactionDetails.d.ts | 14 + src/grpc/types/lnrpc/UnlockWalletRequest.d.ts | 20 + .../types/lnrpc/UnlockWalletResponse.d.ts | 9 + src/grpc/types/lnrpc/UpdateFailure.ts | 24 + src/grpc/types/lnrpc/Utxo.d.ts | 29 + .../types/lnrpc/VerifyChanBackupResponse.d.ts | 9 + .../types/lnrpc/VerifyMessageRequest.d.ts | 11 + .../types/lnrpc/VerifyMessageResponse.d.ts | 11 + .../types/lnrpc/WalletAccountBalance.d.ts | 13 + .../types/lnrpc/WalletBalanceRequest.d.ts | 9 + .../types/lnrpc/WalletBalanceResponse.d.ts | 25 + src/grpc/types/lnrpc/WalletUnlocker.d.ts | 252 ++ src/grpc/types/lnrpc/WatchOnly.d.ts | 19 + src/grpc/types/lnrpc/WatchOnlyAccount.d.ts | 15 + .../types/lnrpc_proxy/AddInvoiceResponse.d.ts | 17 + src/grpc/types/lnrpc_proxy/Amount.d.ts | 13 + src/grpc/types/lnrpc_proxy/Chain.d.ts | 11 + .../types/lnrpc_proxy/ChanInfoRequest.d.ts | 11 + src/grpc/types/lnrpc_proxy/Channel.ts | 81 + .../lnrpc_proxy/ChannelBalanceRequest.d.ts | 9 + .../lnrpc_proxy/ChannelBalanceResponse.d.ts | 29 + .../types/lnrpc_proxy/ChannelConstraints.d.ts | 21 + src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts | 29 + src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts | 33 + src/grpc/types/lnrpc_proxy/CommitmentType.ts | 21 + src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts | 13 + src/grpc/types/lnrpc_proxy/Failure.ts | 120 + src/grpc/types/lnrpc_proxy/Feature.d.ts | 13 + src/grpc/types/lnrpc_proxy/FeatureBit.ts | 59 + src/grpc/types/lnrpc_proxy/FeeLimit.d.ts | 17 + .../types/lnrpc_proxy/GetInfoRequest.d.ts | 9 + .../types/lnrpc_proxy/GetInfoResponse.d.ts | 53 + src/grpc/types/lnrpc_proxy/HTLC.d.ts | 23 + src/grpc/types/lnrpc_proxy/HTLCAttempt.ts | 48 + src/grpc/types/lnrpc_proxy/Hop.d.ts | 35 + src/grpc/types/lnrpc_proxy/HopHint.d.ts | 19 + src/grpc/types/lnrpc_proxy/Invoice.ts | 93 + src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts | 33 + .../types/lnrpc_proxy/InvoiceHTLCState.ts | 12 + .../lnrpc_proxy/InvoiceSubscription.d.ts | 13 + src/grpc/types/lnrpc_proxy/Lightning.d.ts | 585 +++ .../types/lnrpc_proxy/LightningAddress.d.ts | 11 + .../lnrpc_proxy/ListChannelsRequest.d.ts | 17 + .../lnrpc_proxy/ListChannelsResponse.d.ts | 14 + src/grpc/types/lnrpc_proxy/MPPRecord.d.ts | 13 + src/grpc/types/lnrpc_proxy/NodePair.d.ts | 11 + src/grpc/types/lnrpc_proxy/PayReq.d.ts | 43 + src/grpc/types/lnrpc_proxy/PayReqString.d.ts | 9 + src/grpc/types/lnrpc_proxy/Payment.ts | 69 + .../types/lnrpc_proxy/PaymentFailureReason.ts | 28 + src/grpc/types/lnrpc_proxy/PaymentHash.d.ts | 11 + .../types/lnrpc_proxy/QueryRoutesRequest.d.ts | 61 + .../lnrpc_proxy/QueryRoutesResponse.d.ts | 16 + src/grpc/types/lnrpc_proxy/Route.d.ts | 25 + src/grpc/types/lnrpc_proxy/RouteHint.d.ts | 14 + src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts | 23 + src/grpc/types/lnrpc_proxy/SendRequest.d.ts | 53 + src/grpc/types/lnrpc_proxy/SendResponse.d.ts | 20 + .../types/lnrpc_proxy/SignMessageRequest.d.ts | 9 + .../lnrpc_proxy/SignMessageResponse.d.ts | 11 + .../lnrpc_proxy/VerifyMessageRequest.d.ts | 11 + .../lnrpc_proxy/VerifyMessageResponse.d.ts | 11 + src/grpc/types/router.d.ts | 281 ++ .../types/routerrpc/BuildRouteRequest.d.ts | 19 + .../types/routerrpc/BuildRouteResponse.d.ts | 14 + src/grpc/types/routerrpc/ChanStatusAction.ts | 12 + src/grpc/types/routerrpc/CircuitKey.d.ts | 13 + src/grpc/types/routerrpc/FailureDetail.ts | 78 + src/grpc/types/routerrpc/FinalHtlcEvent.d.ts | 11 + src/grpc/types/routerrpc/ForwardEvent.d.ts | 14 + .../types/routerrpc/ForwardFailEvent.d.ts | 9 + .../ForwardHtlcInterceptRequest.d.ts | 33 + .../ForwardHtlcInterceptResponse.d.ts | 30 + .../GetMissionControlConfigRequest.d.ts | 9 + .../GetMissionControlConfigResponse.d.ts | 14 + src/grpc/types/routerrpc/HtlcEvent.ts | 93 + src/grpc/types/routerrpc/HtlcInfo.d.ts | 17 + src/grpc/types/routerrpc/LinkFailEvent.d.ts | 28 + .../types/routerrpc/MissionControlConfig.d.ts | 19 + src/grpc/types/routerrpc/PairData.d.ts | 21 + src/grpc/types/routerrpc/PairHistory.d.ts | 18 + src/grpc/types/routerrpc/PaymentState.ts | 30 + src/grpc/types/routerrpc/PaymentStatus.d.ts | 22 + .../routerrpc/QueryMissionControlRequest.d.ts | 9 + .../QueryMissionControlResponse.d.ts | 14 + .../routerrpc/QueryProbabilityRequest.d.ts | 15 + .../routerrpc/QueryProbabilityResponse.d.ts | 16 + .../routerrpc/ResetMissionControlRequest.d.ts | 9 + .../ResetMissionControlResponse.d.ts | 9 + .../routerrpc/ResolveHoldForwardAction.ts | 12 + src/grpc/types/routerrpc/RouteFeeRequest.d.ts | 13 + .../types/routerrpc/RouteFeeResponse.d.ts | 13 + src/grpc/types/routerrpc/Router.d.ts | 921 ++++ .../types/routerrpc/SendPaymentRequest.d.ts | 63 + .../types/routerrpc/SendToRouteRequest.d.ts | 18 + .../types/routerrpc/SendToRouteResponse.d.ts | 16 + .../SetMissionControlConfigRequest.d.ts | 14 + .../SetMissionControlConfigResponse.d.ts | 9 + src/grpc/types/routerrpc/SettleEvent.d.ts | 9 + .../routerrpc/SubscribeHtlcEventsRequest.d.ts | 9 + src/grpc/types/routerrpc/SubscribedEvent.d.ts | 9 + .../types/routerrpc/TrackPaymentRequest.d.ts | 11 + .../types/routerrpc/TrackPaymentsRequest.d.ts | 9 + .../routerrpc/UpdateChanStatusRequest.d.ts | 20 + .../routerrpc/UpdateChanStatusResponse.d.ts | 9 + .../XImportMissionControlRequest.d.ts | 16 + .../XImportMissionControlResponse.d.ts | 9 + src/grpc/types/rpc_proxy.d.ts | 73 + src/grpc/types/scheduler.d.ts | 36 + .../types/scheduler/ChallengeRequest.d.ts | 16 + .../types/scheduler/ChallengeResponse.d.ts | 9 + src/grpc/types/scheduler/ChallengeScope.ts | 11 + src/grpc/types/scheduler/NodeInfoRequest.d.ts | 11 + .../types/scheduler/NodeInfoResponse.d.ts | 11 + src/grpc/types/scheduler/RecoveryRequest.d.ts | 13 + .../types/scheduler/RecoveryResponse.d.ts | 11 + .../types/scheduler/RegistrationRequest.d.ts | 19 + .../types/scheduler/RegistrationResponse.d.ts | 11 + src/grpc/types/scheduler/ScheduleRequest.d.ts | 9 + src/grpc/types/scheduler/Scheduler.d.ts | 307 ++ src/grpc/types/signer.d.ts | 54 + src/grpc/types/signrpc/InputScript.d.ts | 11 + src/grpc/types/signrpc/InputScriptResp.d.ts | 14 + src/grpc/types/signrpc/KeyDescriptor.d.ts | 16 + src/grpc/types/signrpc/KeyLocator.d.ts | 11 + .../types/signrpc/MuSig2CleanupRequest.d.ts | 9 + .../types/signrpc/MuSig2CleanupResponse.d.ts | 9 + .../signrpc/MuSig2CombineKeysRequest.d.ts | 22 + .../signrpc/MuSig2CombineKeysResponse.d.ts | 11 + .../signrpc/MuSig2CombineSigRequest.d.ts | 11 + .../signrpc/MuSig2CombineSigResponse.d.ts | 11 + .../signrpc/MuSig2RegisterNoncesRequest.d.ts | 11 + .../signrpc/MuSig2RegisterNoncesResponse.d.ts | 9 + .../types/signrpc/MuSig2SessionRequest.d.ts | 30 + .../types/signrpc/MuSig2SessionResponse.d.ts | 17 + src/grpc/types/signrpc/MuSig2SignRequest.d.ts | 13 + .../types/signrpc/MuSig2SignResponse.d.ts | 9 + src/grpc/types/signrpc/SharedKeyRequest.d.ts | 22 + src/grpc/types/signrpc/SharedKeyResponse.d.ts | 9 + src/grpc/types/signrpc/SignDescriptor.d.ts | 38 + src/grpc/types/signrpc/SignMessageReq.d.ts | 24 + src/grpc/types/signrpc/SignMessageResp.d.ts | 9 + src/grpc/types/signrpc/SignMethod.ts | 21 + src/grpc/types/signrpc/SignReq.d.ts | 22 + src/grpc/types/signrpc/SignResp.d.ts | 9 + src/grpc/types/signrpc/Signer.d.ts | 667 +++ src/grpc/types/signrpc/TaprootTweakDesc.d.ts | 11 + src/grpc/types/signrpc/TweakDesc.d.ts | 11 + src/grpc/types/signrpc/TxOut.d.ts | 13 + src/grpc/types/signrpc/VerifyMessageReq.d.ts | 15 + src/grpc/types/signrpc/VerifyMessageResp.d.ts | 9 + src/grpc/types/walletkit.d.ts | 335 ++ src/grpc/types/walletrpc/Account.d.ts | 28 + .../types/walletrpc/AccountWithAddresses.d.ts | 24 + src/grpc/types/walletrpc/AddrRequest.d.ts | 18 + src/grpc/types/walletrpc/AddrResponse.d.ts | 9 + src/grpc/types/walletrpc/AddressProperty.d.ts | 15 + src/grpc/types/walletrpc/AddressType.ts | 23 + src/grpc/types/walletrpc/BumpFeeRequest.d.ts | 23 + src/grpc/types/walletrpc/BumpFeeResponse.d.ts | 9 + .../types/walletrpc/EstimateFeeRequest.d.ts | 9 + .../types/walletrpc/EstimateFeeResponse.d.ts | 11 + .../types/walletrpc/FinalizePsbtRequest.d.ts | 11 + .../types/walletrpc/FinalizePsbtResponse.d.ts | 11 + src/grpc/types/walletrpc/FundPsbtRequest.d.ts | 31 + .../types/walletrpc/FundPsbtResponse.d.ts | 18 + .../types/walletrpc/ImportAccountRequest.d.ts | 22 + .../walletrpc/ImportAccountResponse.d.ts | 18 + .../walletrpc/ImportPublicKeyRequest.d.ts | 16 + .../walletrpc/ImportPublicKeyResponse.d.ts | 9 + .../walletrpc/ImportTapscriptRequest.d.ts | 28 + .../walletrpc/ImportTapscriptResponse.d.ts | 9 + src/grpc/types/walletrpc/KeyReq.d.ts | 11 + .../walletrpc/LabelTransactionRequest.d.ts | 13 + .../walletrpc/LabelTransactionResponse.d.ts | 9 + .../types/walletrpc/LeaseOutputRequest.d.ts | 19 + .../types/walletrpc/LeaseOutputResponse.d.ts | 11 + .../types/walletrpc/ListAccountsRequest.d.ts | 16 + .../types/walletrpc/ListAccountsResponse.d.ts | 14 + .../types/walletrpc/ListAddressesRequest.d.ts | 11 + .../walletrpc/ListAddressesResponse.d.ts | 14 + .../types/walletrpc/ListLeasesRequest.d.ts | 9 + .../types/walletrpc/ListLeasesResponse.d.ts | 14 + .../types/walletrpc/ListSweepsRequest.d.ts | 9 + .../types/walletrpc/ListSweepsResponse.d.ts | 26 + .../types/walletrpc/ListUnspentRequest.d.ts | 15 + .../types/walletrpc/ListUnspentResponse.d.ts | 14 + src/grpc/types/walletrpc/PendingSweep.d.ts | 39 + .../types/walletrpc/PendingSweepsRequest.d.ts | 9 + .../walletrpc/PendingSweepsResponse.d.ts | 14 + src/grpc/types/walletrpc/PublishResponse.d.ts | 9 + .../types/walletrpc/ReleaseOutputRequest.d.ts | 16 + .../walletrpc/ReleaseOutputResponse.d.ts | 9 + .../walletrpc/RequiredReserveRequest.d.ts | 9 + .../walletrpc/RequiredReserveResponse.d.ts | 11 + .../types/walletrpc/SendOutputsRequest.d.ts | 23 + .../types/walletrpc/SendOutputsResponse.d.ts | 9 + .../walletrpc/SignMessageWithAddrRequest.d.ts | 11 + .../SignMessageWithAddrResponse.d.ts | 9 + src/grpc/types/walletrpc/SignPsbtRequest.d.ts | 9 + .../types/walletrpc/SignPsbtResponse.d.ts | 11 + src/grpc/types/walletrpc/TapLeaf.d.ts | 11 + .../types/walletrpc/TapscriptFullTree.d.ts | 14 + .../walletrpc/TapscriptPartialReveal.d.ts | 16 + src/grpc/types/walletrpc/Transaction.d.ts | 11 + src/grpc/types/walletrpc/TxTemplate.d.ts | 17 + src/grpc/types/walletrpc/UtxoLease.d.ts | 23 + .../VerifyMessageWithAddrRequest.d.ts | 13 + .../VerifyMessageWithAddrResponse.d.ts | 11 + src/grpc/types/walletrpc/WalletKit.d.ts | 1507 +++++++ src/grpc/types/walletrpc/WitnessType.ts | 50 + src/grpc/types/walletunlocker.d.ts | 247 ++ src/utils/proxy.ts | 33 +- src/utils/signer.ts | 49 +- src/utils/wallet.ts | 36 +- 604 files changed, 21584 insertions(+), 1160 deletions(-) create mode 100644 dist/src/grpc/proto.js create mode 100644 dist/src/grpc/proto.js.map create mode 100644 dist/src/grpc/types/greenlight/BtcAddressType.js create mode 100644 dist/src/grpc/types/greenlight/BtcAddressType.js.map create mode 100644 dist/src/grpc/types/greenlight/CloseChannelType.js create mode 100644 dist/src/grpc/types/greenlight/CloseChannelType.js.map create mode 100644 dist/src/grpc/types/greenlight/FeeratePreset.js create mode 100644 dist/src/grpc/types/greenlight/FeeratePreset.js.map create mode 100644 dist/src/grpc/types/greenlight/InvoiceStatus.js create mode 100644 dist/src/grpc/types/greenlight/InvoiceStatus.js.map create mode 100644 dist/src/grpc/types/greenlight/NetAddressType.js create mode 100644 dist/src/grpc/types/greenlight/NetAddressType.js.map create mode 100644 dist/src/grpc/types/greenlight/OutputStatus.js create mode 100644 dist/src/grpc/types/greenlight/OutputStatus.js.map create mode 100644 dist/src/grpc/types/greenlight/PayStatus.js create mode 100644 dist/src/grpc/types/greenlight/PayStatus.js.map create mode 100644 dist/src/grpc/types/lnrpc/AddressType.js create mode 100644 dist/src/grpc/types/lnrpc/AddressType.js.map create mode 100644 dist/src/grpc/types/lnrpc/Channel.js create mode 100644 dist/src/grpc/types/lnrpc/Channel.js.map create mode 100644 dist/src/grpc/types/lnrpc/ChannelCloseSummary.js create mode 100644 dist/src/grpc/types/lnrpc/ChannelCloseSummary.js.map create mode 100644 dist/src/grpc/types/lnrpc/ChannelEventUpdate.js create mode 100644 dist/src/grpc/types/lnrpc/ChannelEventUpdate.js.map create mode 100644 dist/src/grpc/types/lnrpc/CommitmentType.js create mode 100644 dist/src/grpc/types/lnrpc/CommitmentType.js.map create mode 100644 dist/src/grpc/types/lnrpc/Failure.js create mode 100644 dist/src/grpc/types/lnrpc/Failure.js.map create mode 100644 dist/src/grpc/types/lnrpc/FeatureBit.js create mode 100644 dist/src/grpc/types/lnrpc/FeatureBit.js.map create mode 100644 dist/src/grpc/types/lnrpc/HTLCAttempt.js create mode 100644 dist/src/grpc/types/lnrpc/HTLCAttempt.js.map create mode 100644 dist/src/grpc/types/lnrpc/Initiator.js create mode 100644 dist/src/grpc/types/lnrpc/Initiator.js.map create mode 100644 dist/src/grpc/types/lnrpc/Invoice.js create mode 100644 dist/src/grpc/types/lnrpc/Invoice.js.map create mode 100644 dist/src/grpc/types/lnrpc/InvoiceHTLCState.js create mode 100644 dist/src/grpc/types/lnrpc/InvoiceHTLCState.js.map create mode 100644 dist/src/grpc/types/lnrpc/NodeMetricType.js create mode 100644 dist/src/grpc/types/lnrpc/NodeMetricType.js.map create mode 100644 dist/src/grpc/types/lnrpc/OutputScriptType.js create mode 100644 dist/src/grpc/types/lnrpc/OutputScriptType.js.map create mode 100644 dist/src/grpc/types/lnrpc/Payment.js create mode 100644 dist/src/grpc/types/lnrpc/Payment.js.map create mode 100644 dist/src/grpc/types/lnrpc/PaymentFailureReason.js create mode 100644 dist/src/grpc/types/lnrpc/PaymentFailureReason.js.map create mode 100644 dist/src/grpc/types/lnrpc/Peer.js create mode 100644 dist/src/grpc/types/lnrpc/Peer.js.map create mode 100644 dist/src/grpc/types/lnrpc/PeerEvent.js create mode 100644 dist/src/grpc/types/lnrpc/PeerEvent.js.map create mode 100644 dist/src/grpc/types/lnrpc/PendingChannelsResponse.js create mode 100644 dist/src/grpc/types/lnrpc/PendingChannelsResponse.js.map create mode 100644 dist/src/grpc/types/lnrpc/ResolutionOutcome.js create mode 100644 dist/src/grpc/types/lnrpc/ResolutionOutcome.js.map create mode 100644 dist/src/grpc/types/lnrpc/ResolutionType.js create mode 100644 dist/src/grpc/types/lnrpc/ResolutionType.js.map create mode 100644 dist/src/grpc/types/lnrpc/UpdateFailure.js create mode 100644 dist/src/grpc/types/lnrpc/UpdateFailure.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/Channel.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/Channel.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/CommitmentType.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/CommitmentType.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/Failure.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/Failure.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/FeatureBit.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/FeatureBit.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/Invoice.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/Invoice.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/Payment.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/Payment.js.map create mode 100644 dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js create mode 100644 dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js.map create mode 100644 dist/src/grpc/types/routerrpc/ChanStatusAction.js create mode 100644 dist/src/grpc/types/routerrpc/ChanStatusAction.js.map create mode 100644 dist/src/grpc/types/routerrpc/FailureDetail.js create mode 100644 dist/src/grpc/types/routerrpc/FailureDetail.js.map create mode 100644 dist/src/grpc/types/routerrpc/HtlcEvent.js create mode 100644 dist/src/grpc/types/routerrpc/HtlcEvent.js.map create mode 100644 dist/src/grpc/types/routerrpc/PaymentState.js create mode 100644 dist/src/grpc/types/routerrpc/PaymentState.js.map create mode 100644 dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js create mode 100644 dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js.map create mode 100644 dist/src/grpc/types/scheduler/ChallengeScope.js create mode 100644 dist/src/grpc/types/scheduler/ChallengeScope.js.map create mode 100644 dist/src/grpc/types/signrpc/SignMethod.js create mode 100644 dist/src/grpc/types/signrpc/SignMethod.js.map create mode 100644 dist/src/grpc/types/walletrpc/AddressType.js create mode 100644 dist/src/grpc/types/walletrpc/AddressType.js.map create mode 100644 dist/src/grpc/types/walletrpc/WitnessType.js create mode 100644 dist/src/grpc/types/walletrpc/WitnessType.js.map create mode 100755 grpc_gen_types.sh create mode 100644 protobuf_long.patch 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.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.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.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.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.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.ts create mode 100644 src/grpc/types/greenlight/PayRequest.d.ts create mode 100644 src/grpc/types/greenlight/PayStatus.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.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.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.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.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.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.ts create mode 100644 src/grpc/types/lnrpc/Feature.d.ts create mode 100644 src/grpc/types/lnrpc/FeatureBit.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.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.ts create mode 100644 src/grpc/types/lnrpc/InterceptFeedback.d.ts create mode 100644 src/grpc/types/lnrpc/Invoice.ts create mode 100644 src/grpc/types/lnrpc/InvoiceHTLC.d.ts create mode 100644 src/grpc/types/lnrpc/InvoiceHTLCState.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/LookupHtlcRequest.d.ts create mode 100644 src/grpc/types/lnrpc/LookupHtlcResponse.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.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.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.ts create mode 100644 src/grpc/types/lnrpc/PaymentFailureReason.ts create mode 100644 src/grpc/types/lnrpc/PaymentHash.d.ts create mode 100644 src/grpc/types/lnrpc/Peer.ts create mode 100644 src/grpc/types/lnrpc/PeerEvent.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.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.ts create mode 100644 src/grpc/types/lnrpc/ResolutionType.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.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.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.ts create mode 100644 src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/Failure.ts create mode 100644 src/grpc/types/lnrpc_proxy/Feature.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/FeatureBit.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.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.ts create mode 100644 src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts create mode 100644 src/grpc/types/lnrpc_proxy/InvoiceHTLCState.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.ts create mode 100644 src/grpc/types/lnrpc_proxy/PaymentFailureReason.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.ts create mode 100644 src/grpc/types/routerrpc/CircuitKey.d.ts create mode 100644 src/grpc/types/routerrpc/FailureDetail.ts create mode 100644 src/grpc/types/routerrpc/FinalHtlcEvent.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.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.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.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/SubscribedEvent.d.ts create mode 100644 src/grpc/types/routerrpc/TrackPaymentRequest.d.ts create mode 100644 src/grpc/types/routerrpc/TrackPaymentsRequest.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.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.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.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/SignMessageWithAddrRequest.d.ts create mode 100644 src/grpc/types/walletrpc/SignMessageWithAddrResponse.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/VerifyMessageWithAddrRequest.d.ts create mode 100644 src/grpc/types/walletrpc/VerifyMessageWithAddrResponse.d.ts create mode 100644 src/grpc/types/walletrpc/WalletKit.d.ts create mode 100644 src/grpc/types/walletrpc/WitnessType.ts create mode 100644 src/grpc/types/walletunlocker.d.ts diff --git a/.github/workflows/update_proto.yml b/.github/workflows/update_proto.yml index 8c7a5edfe..32c2e6f02 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: @@ -22,5 +22,14 @@ jobs: find lnd/lnrpc -name '*.proto' -exec bash -c 'test -e proto/`basename {}` && cp {} proto' \; sed -i 's/^import.*\//import "/' proto/* git add proto - git commit -m "Update proto files" || echo -n + - name: update generated types + run: | + bash grpc_gen_types.sh + npm run build + git add src/grpc/types dist + - name: commit changes + run: | + git config user.name 'Github Actions' + git config user.email github-actions@github.com + 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 14053663a..57a0f51f6 100644 --- a/dist/src/controllers/invoices.js.map +++ b/dist/src/controllers/invoices.js.map @@ -1 +1 @@ -{"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,OAAO,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IACpE,OAAO,CAAC,CAAA;AACV,CAAC;AAEM,MAAM,UAAU,GAAG,CAAO,GAAQ,EAAE,GAAa,EAAiB,EAAE;IACzE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IAEnC,MAAM,eAAe,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAEtE,IAAI,CAAC,eAAe,EAAE;QACpB,qBAAY,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;QAC9D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QACf,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,0BAA0B,EAAE,CAAC,CAAA;QAC/D,GAAG,CAAC,GAAG,EAAE,CAAA;QACT,OAAM;KACP;IACD,qBAAY,CAAC,IAAI,CAAC,iBAAiB,eAAe,EAAE,CAAC,C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I,CAAC,WAAW,GAAG,iBAAiB,CAAC;QACzD,IAAI,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QAC3B,MAAM,EAAE,mBAAS,CAAC,QAAQ,CAAC,OAAO;QAClC,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,YAAY;QAC1B,MAAM;KACP,CAAA;IACD,IAAI,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAA;IAC/B,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;AAtEY,QAAA,cAAc,kBAsE1B"} \ No newline at end of file +{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/controllers/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA6D;AAC7D,+CAA8C;AAE9C,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IACD,IAAI,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAA;IAC/B,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;AAtEY,QAAA,cAAc,kBAsE1B"} \ 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 @@ -1 +1 @@ -{"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,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AAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KACpB;IAAC,OAAO,CAAC,EAAE;QACV,qBAAY,CAAC,KAAK,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAAA;KAC1D;AACH,CAAC,CAAA,CAAA;AAXY,QAAA,oBAAoB,wBAWhC;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 +{"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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C,OAAO,CAAA;IACnC,IAAI;QACF,MAAM,CAAC,GAAU,IAAI,CAAC,KAAK,CAAC,OAAiB,CAAC,CAAA;QAC9C,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KACpB;IAAC,OAAO,CAAC,EAAE;QACV,qBAAY,CAAC,KAAK,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAAA;KAC1D;AACH,CAAC,CAAA,CAAA;AAXY,QAAA,oBAAoB,wBAWhC;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/grpc/greenlight.js b/dist/src/grpc/greenlight.js index 100793cb7..a67dde24b 100644 --- a/dist/src/grpc/greenlight.js +++ b/dist/src/grpc/greenlight.js @@ -11,10 +11,10 @@ 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"); const crypto = require("crypto"); const interfaces = require("./interfaces"); const lightning_1 = require("./lightning"); @@ -38,7 +38,7 @@ function keepalive() { }, 59000); } exports.keepalive = keepalive; -let schedulerClient = null; +// let schedulerClient: SchedulerClient | undefined const loadSchedulerCredentials = () => { const glCert = fs.readFileSync(config.scheduler_tls_location); const glPriv = fs.readFileSync(config.scheduler_key_location); @@ -47,13 +47,12 @@ 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', }; - schedulerClient = new scheduler.Scheduler('35.236.110.178:2601', loadSchedulerCredentials(), options); - return schedulerClient; + return new scheduler.Scheduler('35.236.110.178:2601', loadSchedulerCredentials(), options); } let GREENLIGHT_GRPC_URI = ''; function get_greenlight_grpc_uri() { @@ -106,14 +105,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), + node_id: Buffer.from(pubkey, 'hex'), }, (err, response) => { // console.log('=> schedule', err, response); - if (!err) { + if (!err && response) { GREENLIGHT_GRPC_URI = response.grpc_uri; resolve(response); } @@ -125,7 +124,7 @@ function schedule(pubkey) { catch (e) { logger_1.sphinxLogger.error(e); } - })); + }); } exports.schedule = schedule; function recoverGreenlight(gid) { @@ -175,14 +174,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), + node_id: Buffer.from(node_id, 'hex'), scope: 'REGISTER', }, (err, response) => { - if (!err) { + if (!err && response) { resolve(Buffer.from(response.challenge).toString('hex')); } else { @@ -193,7 +192,7 @@ function get_challenge(node_id) { catch (e) { reject(e); } - })); + }); } exports.get_challenge = get_challenge; function sign_challenge(challenge) { @@ -205,18 +204,18 @@ 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({ - node_id: ByteBuffer.fromHex(pubkey), - bip32_key: ByteBuffer.fromHex(bip32_key), + node_id: Buffer.from(pubkey, 'hex'), + bip32_key: Buffer.from(bip32_key, 'hex'), network: 'bitcoin', - challenge: ByteBuffer.fromHex(challenge), - signature: ByteBuffer.fromHex(signature), + challenge: Buffer.from(challenge, 'hex'), + signature: Buffer.from(signature, 'hex'), }, (err, response) => { logger_1.sphinxLogger.info(`${err} ${response}`); - if (!err) { + if (!err && response) { resolve(response); } else { @@ -227,20 +226,20 @@ 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({ - node_id: ByteBuffer.fromHex(pubkey), - challenge: ByteBuffer.fromHex(challenge), - signature: ByteBuffer.fromHex(signature), + node_id: Buffer.from(pubkey, 'hex'), + challenge: Buffer.from(challenge, 'hex'), + signature: Buffer.from(signature, 'hex'), }, (err, response) => { logger_1.sphinxLogger.info(`${err} ${response}`); - if (!err) { + if (!err && response) { resolve(response); } else { @@ -251,7 +250,7 @@ function recover(pubkey, challenge, signature) { catch (e) { reject(e); } - })); + }); } exports.recover = recover; function streamHsmRequests() { @@ -275,9 +274,10 @@ 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), + raw: Buffer.from(sig, 'hex'), }, (err, response) => { if (err) logger_1.sphinxLogger.error(`[HSMD] error ${err}`); @@ -294,7 +294,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..2a06d285c 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":[],"mappings":";;;;;;;;;;;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,uCAA+B;AAC/B,4CAA4C;AAC5C,yCAAwC;AACxC,iCAAgC;AAChC,2CAA0C;AAC1C,2CAA2C;AAC3C,yCAAwC;AACxC,4CAA8C;AAE9C,IAAI,GAAuB,CAAA;AAE3B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,SAAsB,cAAc;;QAClC,qBAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;QACtC,qCAAqC;QACrC,MAAM,mBAAmB,EAAE,CAAA;QAC3B,4BAA4B;IAC9B,CAAC;CAAA;AALD,wCAKC;AAED,SAAgB,SAAS;IACvB,qBAAY,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;IAC5C,WAAW,CAAC,GAAG,EAAE;QACf,SAAS,CAAC,OAAO,EAAE,CAAA;IACrB,CAAC,EAAE,KAAK,CAAC,CAAA;AACX,CAAC;AALD,8BAKC;AAED,IAAI,eAAe,GAAQ,IAAI,CAAA;AAE/B,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACpC,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC7D,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC7D,MAAM,OAAO,GAAG,EAAE,CAAC,YAA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C,CAAC,CAAA;YACF,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;gBACb,qBAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;YAC3C,CAAC,CAAC,CAAA;SACH;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAA;SAC9C;IACH,CAAC;CAAA;AAtDD,8CAsDC"} \ No newline at end of file +{"version":3,"file":"greenlight.js","sourceRoot":"","sources":["../../../src/grpc/greenlight.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAwB;AACxB,sCAAqC;AACrC,mCAAmC;AAGnC,uCAA+B;AAC/B,4CAA4C;AAC5C,iCAAgC;AAChC,2CAA0C;AAC1C,2CAA2C;AAC3C,yCAAwC;AACxC,4CAA8C;AAE9C,IAAI,GAAuB,CAAA;AAE3B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,SAAsB,cAAc;;QAClC,qBAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;QACtC,qCAAqC;QACrC,MAAM,mBAAmB,EAAE,CAAA;QAC3B,4BAA4B;IAC9B,CAAC;CAAA;AALD,wCAKC;AAED,SAAgB,SAAS;IACvB,qBAAY,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;IAC5C,WAAW,CAAC,GAAG,EAAE;QACf,SAAS,CAAC,OAAO,EAAE,CAAA;IACrB,CAAC,EAAE,KAAK,CAAC,CAAA;AACX,CAAC;AALD,8BAKC;AAED,mDAAmD;AAEnD,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACpC,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC7D,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC7D,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,wBAA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AAU,GAAG;gBAC5B,qBAAY,CAAC,KAAK,CAAC,gBAAgB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAA;YAC/D,CAAC,CAAC,CAAA;YACF,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;gBACb,qBAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;YAC3C,CAAC,CAAC,CAAA;SACH;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAA;SAC9C;IACH,CAAC;CAAA;AAtDD,8CAsDC"} \ No newline at end of file diff --git a/dist/src/grpc/interfaces.js b/dist/src/grpc/interfaces.js index bbc1ff483..0438ded43 100644 --- a/dist/src/grpc/interfaces.js +++ b/dist/src/grpc/interfaces.js @@ -2,7 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.greenlightSignMessagePayload = exports.connectPeerResponse = exports.connectPeerRequest = exports.subscribeResponse = exports.InvoiceState = exports.subscribeCommand = exports.keysendResponse = exports.keysendRequest = exports.listPeersResponse = exports.listPeersRequest = exports.listChannelsRequest = exports.listChannelsCommand = exports.listChannelsResponse = exports.addInvoiceResponse = exports.addInvoiceCommand = exports.addInvoiceRequest = exports.getInfoResponse = void 0; const config_1 = require("../utils/config"); -const ByteBuffer = require("bytebuffer"); const crypto = require("crypto"); const lightning_1 = require("./lightning"); const long = require("long"); @@ -116,7 +115,7 @@ function listChannelsRequest(args) { const opts = args || {}; if (args && args.peer) { if (IS_LND) - opts.peer = ByteBuffer.fromHex(args.peer); + opts.peer = Buffer.from(args.peer, 'hex'); if (IS_GREENLIGHT) opts.node_id = args.peer; } @@ -126,7 +125,7 @@ exports.listChannelsRequest = listChannelsRequest; function listPeersRequest(args) { const opts = args || {}; if (IS_GREENLIGHT && args && args.node_id) { - opts.node_id = ByteBuffer.fromHex(args.node_id); + opts.node_id = Buffer.from(args.node_id, 'hex'); } return opts; } @@ -166,7 +165,7 @@ function keysendRequest(req) { r.routehints = req.route_hints.map((rh) => { const hops = rh.hop_hints.map((hh) => { return { - node_id: ByteBuffer.fromHex(hh.node_id), + node_id: Buffer.from(hh.node_id, 'hex'), short_channel_id: shortChanIDfromInt64(hh.chan_id), fee_base: '1000', fee_prop: 1, diff --git a/dist/src/grpc/interfaces.js.map b/dist/src/grpc/interfaces.js.map index 82cf72c2d..35ebcafc9 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,CAAC,KAAK;YACd,SAAS,EAAE,CAAC,CAAC,SAAS;YACtB,cAAc;YACd,mBAAmB,EAAE,CAAC;YACtB,oBAAoB,EAAE,CAAC;YACvB,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,IAAI;YACrB,qBAAqB,EAAE,CAAC;YACxB,OAA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AI,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 615ad72b5..d0968993b 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 { // console.log('=> loadCredentials', macName) @@ -66,31 +74,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; @@ -101,28 +111,26 @@ 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; + return (walletUnlocker = new lnrpc.WalletUnlocker(LND_IP + ':' + config.lnd_port, credentials)); } 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(); }); }); } @@ -154,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) => { // need to manually add 3 block padding // which is done behind the scenes in SendPayment @@ -182,6 +190,8 @@ function queryRoute(pub_key, amt, route_hint, ownerPubkey) { }, ]; } + // TODO remove any + ; lightning.queryRoutes(options, (err, response) => { if (err) { reject(err); @@ -201,6 +211,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); @@ -222,13 +234,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 { @@ -242,12 +254,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 { @@ -256,7 +269,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); @@ -283,27 +296,26 @@ function keysend(opts, ownerPubkey) { return reject('keysend: invalid pubkey'); } 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'); }); } + if (opts.data) { + dest_custom_records[`${exports.SPHINX_CUSTOM_RECORD_KEY}`] = Buffer.from(opts.data, 'utf-8'); + } const options = { amt: Math.max(opts.amt, constants_1.default.min_sat_amount || 3), final_cltv_delta: constants_1.default.final_cltv_delta, - 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); - } // add in route hints if (opts.route_hint && opts.route_hint.includes(':')) { const arr = opts.route_hint.split(':'); @@ -316,12 +328,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 { @@ -335,12 +347,24 @@ 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)) + // Type 'GreenlightRoutehint[]' is not assignable to type 'Routehint[]' + // from generated types: + // export interface Routehint { + // hops?: { + // node_id?: Buffer | Uint8Array | string + // short_channel_id?: string + // fee_base?: number | string | Long + // fee_prop?: number + // cltv_expiry_delta?: number + // }[] + //} lightning.keysend(req, function (err, response) { - if (err == null) { + if (err == null && response) { + // TODO greenlight type resolve(interfaces.keysendResponse(response)); } else { @@ -353,7 +377,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; @@ -395,10 +419,9 @@ 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; + return (routerClient = new router.Router(LND_IP + ':' + config.lnd_port, credentials)); } } exports.loadRouter = loadRouter; @@ -583,6 +606,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); @@ -596,11 +620,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 { @@ -627,6 +650,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); @@ -648,15 +672,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 { @@ -683,7 +706,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)); @@ -726,7 +750,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 { @@ -742,75 +766,112 @@ 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; @@ -835,9 +896,11 @@ function complexBalances(ownerPubkey) { 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, }; } }); @@ -846,39 +909,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 57f667293..49ddd1f63 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,SAAS,CAAA;AAEjD,MAAM,aAAa,GAAG,KAAK,CAAA;AAE3B,IAAI,eAAe,GAAQ,IAAI,CAAA;AAC/B,IAAI,cAAc,GAAQ,IAAI,CAAA;AAC9B,IAAI,YAAY,GAAQ,IAAI,CAAA;AAE5B,SAAgB,eAAe,CAAC,OAAgB;IAC9C,IAAI;QACF,6CAA6C;QAC7C,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,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EAA6E;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,6CAA6C;QAC7C,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC,CA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C,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;AAED,sCAAsC;AACtC,2BAA2B;AAC3B,6BAA6B;AAC7B,aAAa;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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EAAE;YACV,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAsB,EAAE;gBACrC,qBAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,gBAAO,CAAC,SAAS,CAAC,CAAA;gBAC/C,MAAM,IAAA,uBAAc,GAAE,CAAA;aACvB;YACD,qBAAY,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,gBAAO,CAAC,SAAS,CAAC,CAAA;YACnD,UAAU,CAAC,GAAS,EAAE;gBACpB,oBAAoB;gBACpB,IAAI,GAAG,KAAK,QAAQ,EAAE;oBACpB,iDAAiD;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/grpc/types/greenlight/BtcAddressType.js b/dist/src/grpc/types/greenlight/BtcAddressType.js new file mode 100644 index 000000000..aea10b05c --- /dev/null +++ b/dist/src/grpc/types/greenlight/BtcAddressType.js @@ -0,0 +1,9 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BtcAddressType = void 0; +exports.BtcAddressType = { + BECH32: 'BECH32', + P2SH_SEGWIT: 'P2SH_SEGWIT', +}; +//# sourceMappingURL=BtcAddressType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/BtcAddressType.js.map b/dist/src/grpc/types/greenlight/BtcAddressType.js.map new file mode 100644 index 000000000..1ef65b765 --- /dev/null +++ b/dist/src/grpc/types/greenlight/BtcAddressType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BtcAddressType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/BtcAddressType.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;CAClB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/CloseChannelType.js b/dist/src/grpc/types/greenlight/CloseChannelType.js new file mode 100644 index 000000000..6c489db70 --- /dev/null +++ b/dist/src/grpc/types/greenlight/CloseChannelType.js @@ -0,0 +1,9 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CloseChannelType = void 0; +exports.CloseChannelType = { + MUTUAL: 'MUTUAL', + UNILATERAL: 'UNILATERAL', +}; +//# sourceMappingURL=CloseChannelType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/CloseChannelType.js.map b/dist/src/grpc/types/greenlight/CloseChannelType.js.map new file mode 100644 index 000000000..fb6237a4e --- /dev/null +++ b/dist/src/grpc/types/greenlight/CloseChannelType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CloseChannelType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/CloseChannelType.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;CAChB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/FeeratePreset.js b/dist/src/grpc/types/greenlight/FeeratePreset.js new file mode 100644 index 000000000..fec65fd86 --- /dev/null +++ b/dist/src/grpc/types/greenlight/FeeratePreset.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FeeratePreset = void 0; +exports.FeeratePreset = { + NORMAL: 'NORMAL', + SLOW: 'SLOW', + URGENT: 'URGENT', +}; +//# sourceMappingURL=FeeratePreset.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/FeeratePreset.js.map b/dist/src/grpc/types/greenlight/FeeratePreset.js.map new file mode 100644 index 000000000..3c5bf5693 --- /dev/null +++ b/dist/src/grpc/types/greenlight/FeeratePreset.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FeeratePreset.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/FeeratePreset.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/InvoiceStatus.js b/dist/src/grpc/types/greenlight/InvoiceStatus.js new file mode 100644 index 000000000..2656b6079 --- /dev/null +++ b/dist/src/grpc/types/greenlight/InvoiceStatus.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InvoiceStatus = void 0; +exports.InvoiceStatus = { + UNPAID: 'UNPAID', + PAID: 'PAID', + EXPIRED: 'EXPIRED', +}; +//# sourceMappingURL=InvoiceStatus.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/InvoiceStatus.js.map b/dist/src/grpc/types/greenlight/InvoiceStatus.js.map new file mode 100644 index 000000000..8d3d0465e --- /dev/null +++ b/dist/src/grpc/types/greenlight/InvoiceStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InvoiceStatus.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/InvoiceStatus.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACV,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/NetAddressType.js b/dist/src/grpc/types/greenlight/NetAddressType.js new file mode 100644 index 000000000..1807a5dcb --- /dev/null +++ b/dist/src/grpc/types/greenlight/NetAddressType.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NetAddressType = void 0; +exports.NetAddressType = { + Ipv4: 'Ipv4', + Ipv6: 'Ipv6', + TorV2: 'TorV2', + TorV3: 'TorV3', +}; +//# sourceMappingURL=NetAddressType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/NetAddressType.js.map b/dist/src/grpc/types/greenlight/NetAddressType.js.map new file mode 100644 index 000000000..6f884be87 --- /dev/null +++ b/dist/src/grpc/types/greenlight/NetAddressType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NetAddressType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/NetAddressType.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/OutputStatus.js b/dist/src/grpc/types/greenlight/OutputStatus.js new file mode 100644 index 000000000..ce4e8d13b --- /dev/null +++ b/dist/src/grpc/types/greenlight/OutputStatus.js @@ -0,0 +1,9 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OutputStatus = void 0; +exports.OutputStatus = { + CONFIRMED: 'CONFIRMED', + UNCONFIRMED: 'UNCONFIRMED', +}; +//# sourceMappingURL=OutputStatus.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/OutputStatus.js.map b/dist/src/grpc/types/greenlight/OutputStatus.js.map new file mode 100644 index 000000000..0803b4076 --- /dev/null +++ b/dist/src/grpc/types/greenlight/OutputStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OutputStatus.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/OutputStatus.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/PayStatus.js b/dist/src/grpc/types/greenlight/PayStatus.js new file mode 100644 index 000000000..2922dba6b --- /dev/null +++ b/dist/src/grpc/types/greenlight/PayStatus.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/greenlight.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PayStatus = void 0; +exports.PayStatus = { + PENDING: 'PENDING', + COMPLETE: 'COMPLETE', + FAILED: 'FAILED', +}; +//# sourceMappingURL=PayStatus.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/greenlight/PayStatus.js.map b/dist/src/grpc/types/greenlight/PayStatus.js.map new file mode 100644 index 000000000..0a4aad4b2 --- /dev/null +++ b/dist/src/grpc/types/greenlight/PayStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PayStatus.js","sourceRoot":"","sources":["../../../../../src/grpc/types/greenlight/PayStatus.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAE3B,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/AddressType.js b/dist/src/grpc/types/lnrpc/AddressType.js new file mode 100644 index 000000000..c622871c6 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/AddressType.js @@ -0,0 +1,13 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressType = void 0; +exports.AddressType = { + WITNESS_PUBKEY_HASH: 'WITNESS_PUBKEY_HASH', + NESTED_PUBKEY_HASH: 'NESTED_PUBKEY_HASH', + UNUSED_WITNESS_PUBKEY_HASH: 'UNUSED_WITNESS_PUBKEY_HASH', + UNUSED_NESTED_PUBKEY_HASH: 'UNUSED_NESTED_PUBKEY_HASH', + TAPROOT_PUBKEY: 'TAPROOT_PUBKEY', + UNUSED_TAPROOT_PUBKEY: 'UNUSED_TAPROOT_PUBKEY', +}; +//# sourceMappingURL=AddressType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/AddressType.js.map b/dist/src/grpc/types/lnrpc/AddressType.js.map new file mode 100644 index 000000000..aa7c46f3a --- /dev/null +++ b/dist/src/grpc/types/lnrpc/AddressType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/AddressType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,WAAW,GAAG;IACzB,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,oBAAoB;IACxC,0BAA0B,EAAE,4BAA4B;IACxD,yBAAyB,EAAE,2BAA2B;IACtD,cAAc,EAAE,gBAAgB;IAChC,qBAAqB,EAAE,uBAAuB;CACtC,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Channel.js b/dist/src/grpc/types/lnrpc/Channel.js new file mode 100644 index 000000000..6d81940be --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Channel.js @@ -0,0 +1,4 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Channel.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Channel.js.map b/dist/src/grpc/types/lnrpc/Channel.js.map new file mode 100644 index 000000000..506747a0f --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Channel.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Channel.ts"],"names":[],"mappings":";AAAA,uCAAuC"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ChannelCloseSummary.js b/dist/src/grpc/types/lnrpc/ChannelCloseSummary.js new file mode 100644 index 000000000..e93bcbb31 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ChannelCloseSummary.js @@ -0,0 +1,14 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_ChannelCloseSummary_ClosureType = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_ChannelCloseSummary_ClosureType = { + COOPERATIVE_CLOSE: 'COOPERATIVE_CLOSE', + LOCAL_FORCE_CLOSE: 'LOCAL_FORCE_CLOSE', + REMOTE_FORCE_CLOSE: 'REMOTE_FORCE_CLOSE', + BREACH_CLOSE: 'BREACH_CLOSE', + FUNDING_CANCELED: 'FUNDING_CANCELED', + ABANDONED: 'ABANDONED', +}; +//# sourceMappingURL=ChannelCloseSummary.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ChannelCloseSummary.js.map b/dist/src/grpc/types/lnrpc/ChannelCloseSummary.js.map new file mode 100644 index 000000000..93b80969c --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ChannelCloseSummary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChannelCloseSummary.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/ChannelCloseSummary.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAYvC,uCAAuC;AAE1B,QAAA,sCAAsC,GAAG;IACpD,iBAAiB,EAAE,mBAAmB;IACtC,iBAAiB,EAAE,mBAAmB;IACtC,kBAAkB,EAAE,oBAAoB;IACxC,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;CACd,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ChannelEventUpdate.js b/dist/src/grpc/types/lnrpc/ChannelEventUpdate.js new file mode 100644 index 000000000..42011aad5 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ChannelEventUpdate.js @@ -0,0 +1,14 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_ChannelEventUpdate_UpdateType = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_ChannelEventUpdate_UpdateType = { + OPEN_CHANNEL: 'OPEN_CHANNEL', + CLOSED_CHANNEL: 'CLOSED_CHANNEL', + ACTIVE_CHANNEL: 'ACTIVE_CHANNEL', + INACTIVE_CHANNEL: 'INACTIVE_CHANNEL', + PENDING_OPEN_CHANNEL: 'PENDING_OPEN_CHANNEL', + FULLY_RESOLVED_CHANNEL: 'FULLY_RESOLVED_CHANNEL', +}; +//# sourceMappingURL=ChannelEventUpdate.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ChannelEventUpdate.js.map b/dist/src/grpc/types/lnrpc/ChannelEventUpdate.js.map new file mode 100644 index 000000000..87fdbeb23 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ChannelEventUpdate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChannelEventUpdate.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/ChannelEventUpdate.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAmBvC,uCAAuC;AAE1B,QAAA,oCAAoC,GAAG;IAClD,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;CACxC,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/CommitmentType.js b/dist/src/grpc/types/lnrpc/CommitmentType.js new file mode 100644 index 000000000..fc14bde24 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/CommitmentType.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CommitmentType = void 0; +exports.CommitmentType = { + UNKNOWN_COMMITMENT_TYPE: 'UNKNOWN_COMMITMENT_TYPE', + LEGACY: 'LEGACY', + STATIC_REMOTE_KEY: 'STATIC_REMOTE_KEY', + ANCHORS: 'ANCHORS', + SCRIPT_ENFORCED_LEASE: 'SCRIPT_ENFORCED_LEASE', +}; +//# sourceMappingURL=CommitmentType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/CommitmentType.js.map b/dist/src/grpc/types/lnrpc/CommitmentType.js.map new file mode 100644 index 000000000..044c2f8c5 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/CommitmentType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CommitmentType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/CommitmentType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,cAAc,GAAG;IAC5B,uBAAuB,EAAE,yBAAyB;IAClD,MAAM,EAAE,QAAQ;IAChB,iBAAiB,EAAE,mBAAmB;IACtC,OAAO,EAAE,SAAS;IAClB,qBAAqB,EAAE,uBAAuB;CACtC,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Failure.js b/dist/src/grpc/types/lnrpc/Failure.js new file mode 100644 index 000000000..eed21cd6a --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Failure.js @@ -0,0 +1,36 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_Failure_FailureCode = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_Failure_FailureCode = { + RESERVED: 'RESERVED', + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS: 'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS', + INCORRECT_PAYMENT_AMOUNT: 'INCORRECT_PAYMENT_AMOUNT', + FINAL_INCORRECT_CLTV_EXPIRY: 'FINAL_INCORRECT_CLTV_EXPIRY', + FINAL_INCORRECT_HTLC_AMOUNT: 'FINAL_INCORRECT_HTLC_AMOUNT', + FINAL_EXPIRY_TOO_SOON: 'FINAL_EXPIRY_TOO_SOON', + INVALID_REALM: 'INVALID_REALM', + EXPIRY_TOO_SOON: 'EXPIRY_TOO_SOON', + INVALID_ONION_VERSION: 'INVALID_ONION_VERSION', + INVALID_ONION_HMAC: 'INVALID_ONION_HMAC', + INVALID_ONION_KEY: 'INVALID_ONION_KEY', + AMOUNT_BELOW_MINIMUM: 'AMOUNT_BELOW_MINIMUM', + FEE_INSUFFICIENT: 'FEE_INSUFFICIENT', + INCORRECT_CLTV_EXPIRY: 'INCORRECT_CLTV_EXPIRY', + CHANNEL_DISABLED: 'CHANNEL_DISABLED', + TEMPORARY_CHANNEL_FAILURE: 'TEMPORARY_CHANNEL_FAILURE', + REQUIRED_NODE_FEATURE_MISSING: 'REQUIRED_NODE_FEATURE_MISSING', + REQUIRED_CHANNEL_FEATURE_MISSING: 'REQUIRED_CHANNEL_FEATURE_MISSING', + UNKNOWN_NEXT_PEER: 'UNKNOWN_NEXT_PEER', + TEMPORARY_NODE_FAILURE: 'TEMPORARY_NODE_FAILURE', + PERMANENT_NODE_FAILURE: 'PERMANENT_NODE_FAILURE', + PERMANENT_CHANNEL_FAILURE: 'PERMANENT_CHANNEL_FAILURE', + EXPIRY_TOO_FAR: 'EXPIRY_TOO_FAR', + MPP_TIMEOUT: 'MPP_TIMEOUT', + INVALID_ONION_PAYLOAD: 'INVALID_ONION_PAYLOAD', + INTERNAL_FAILURE: 'INTERNAL_FAILURE', + UNKNOWN_FAILURE: 'UNKNOWN_FAILURE', + UNREADABLE_FAILURE: 'UNREADABLE_FAILURE', +}; +//# sourceMappingURL=Failure.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Failure.js.map b/dist/src/grpc/types/lnrpc/Failure.js.map new file mode 100644 index 000000000..7c9b92606 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Failure.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Failure.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Failure.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAQvC,uCAAuC;AAE1B,QAAA,0BAA0B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,oCAAoC,EAAE,sCAAsC;IAC5E,wBAAwB,EAAE,0BAA0B;IACpD,2BAA2B,EAAE,6BAA6B;IAC1D,2BAA2B,EAAE,6BAA6B;IAC1D,qBAAqB,EAAE,uBAAuB;IAC9C,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,qBAAqB,EAAE,uBAAuB;IAC9C,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,oBAAoB,EAAE,sBAAsB;IAC5C,gBAAgB,EAAE,kBAAkB;IACpC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,yBAAyB,EAAE,2BAA2B;IACtD,6BAA6B,EAAE,+BAA+B;IAC9D,gCAAgC,EAAE,kCAAkC;IACpE,iBAAiB,EAAE,mBAAmB;IACtC,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,kBAAkB,EAAE,oBAAoB;CAChC,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/FeatureBit.js b/dist/src/grpc/types/lnrpc/FeatureBit.js new file mode 100644 index 000000000..a903f40ac --- /dev/null +++ b/dist/src/grpc/types/lnrpc/FeatureBit.js @@ -0,0 +1,32 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FeatureBit = void 0; +exports.FeatureBit = { + DATALOSS_PROTECT_REQ: 'DATALOSS_PROTECT_REQ', + DATALOSS_PROTECT_OPT: 'DATALOSS_PROTECT_OPT', + INITIAL_ROUING_SYNC: 'INITIAL_ROUING_SYNC', + UPFRONT_SHUTDOWN_SCRIPT_REQ: 'UPFRONT_SHUTDOWN_SCRIPT_REQ', + UPFRONT_SHUTDOWN_SCRIPT_OPT: 'UPFRONT_SHUTDOWN_SCRIPT_OPT', + GOSSIP_QUERIES_REQ: 'GOSSIP_QUERIES_REQ', + GOSSIP_QUERIES_OPT: 'GOSSIP_QUERIES_OPT', + TLV_ONION_REQ: 'TLV_ONION_REQ', + TLV_ONION_OPT: 'TLV_ONION_OPT', + EXT_GOSSIP_QUERIES_REQ: 'EXT_GOSSIP_QUERIES_REQ', + EXT_GOSSIP_QUERIES_OPT: 'EXT_GOSSIP_QUERIES_OPT', + STATIC_REMOTE_KEY_REQ: 'STATIC_REMOTE_KEY_REQ', + STATIC_REMOTE_KEY_OPT: 'STATIC_REMOTE_KEY_OPT', + PAYMENT_ADDR_REQ: 'PAYMENT_ADDR_REQ', + PAYMENT_ADDR_OPT: 'PAYMENT_ADDR_OPT', + MPP_REQ: 'MPP_REQ', + MPP_OPT: 'MPP_OPT', + WUMBO_CHANNELS_REQ: 'WUMBO_CHANNELS_REQ', + WUMBO_CHANNELS_OPT: 'WUMBO_CHANNELS_OPT', + ANCHORS_REQ: 'ANCHORS_REQ', + ANCHORS_OPT: 'ANCHORS_OPT', + ANCHORS_ZERO_FEE_HTLC_REQ: 'ANCHORS_ZERO_FEE_HTLC_REQ', + ANCHORS_ZERO_FEE_HTLC_OPT: 'ANCHORS_ZERO_FEE_HTLC_OPT', + AMP_REQ: 'AMP_REQ', + AMP_OPT: 'AMP_OPT', +}; +//# sourceMappingURL=FeatureBit.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/FeatureBit.js.map b/dist/src/grpc/types/lnrpc/FeatureBit.js.map new file mode 100644 index 000000000..108333793 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/FeatureBit.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FeatureBit.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/FeatureBit.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,UAAU,GAAG;IACxB,oBAAoB,EAAE,sBAAsB;IAC5C,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EAAE,qBAAqB;IAC1C,2BAA2B,EAAE,6BAA6B;IAC1D,2BAA2B,EAAE,6BAA6B;IAC1D,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,oBAAoB;IACxC,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,yBAAyB,EAAE,2BAA2B;IACtD,yBAAyB,EAAE,2BAA2B;IACtD,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/HTLCAttempt.js b/dist/src/grpc/types/lnrpc/HTLCAttempt.js new file mode 100644 index 000000000..9b1bb6294 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/HTLCAttempt.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_HTLCAttempt_HTLCStatus = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_HTLCAttempt_HTLCStatus = { + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +}; +//# sourceMappingURL=HTLCAttempt.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/HTLCAttempt.js.map b/dist/src/grpc/types/lnrpc/HTLCAttempt.js.map new file mode 100644 index 000000000..13cebe2c6 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/HTLCAttempt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HTLCAttempt.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/HTLCAttempt.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAYvC,uCAAuC;AAE1B,QAAA,6BAA6B,GAAG;IAC3C,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Initiator.js b/dist/src/grpc/types/lnrpc/Initiator.js new file mode 100644 index 000000000..87c63fcbf --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Initiator.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Initiator = void 0; +exports.Initiator = { + INITIATOR_UNKNOWN: 'INITIATOR_UNKNOWN', + INITIATOR_LOCAL: 'INITIATOR_LOCAL', + INITIATOR_REMOTE: 'INITIATOR_REMOTE', + INITIATOR_BOTH: 'INITIATOR_BOTH', +}; +//# sourceMappingURL=Initiator.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Initiator.js.map b/dist/src/grpc/types/lnrpc/Initiator.js.map new file mode 100644 index 000000000..f9ca3c82c --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Initiator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Initiator.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Initiator.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,SAAS,GAAG;IACvB,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;CACxB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Invoice.js b/dist/src/grpc/types/lnrpc/Invoice.js new file mode 100644 index 000000000..82b345229 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Invoice.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_Invoice_InvoiceState = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_Invoice_InvoiceState = { + OPEN: 'OPEN', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', + ACCEPTED: 'ACCEPTED', +}; +//# sourceMappingURL=Invoice.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Invoice.js.map b/dist/src/grpc/types/lnrpc/Invoice.js.map new file mode 100644 index 000000000..64537543a --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Invoice.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Invoice.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAoBvC,uCAAuC;AAE1B,QAAA,2BAA2B,GAAG;IACzC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/InvoiceHTLCState.js b/dist/src/grpc/types/lnrpc/InvoiceHTLCState.js new file mode 100644 index 000000000..3fd77449d --- /dev/null +++ b/dist/src/grpc/types/lnrpc/InvoiceHTLCState.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InvoiceHTLCState = void 0; +exports.InvoiceHTLCState = { + ACCEPTED: 'ACCEPTED', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', +}; +//# sourceMappingURL=InvoiceHTLCState.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/InvoiceHTLCState.js.map b/dist/src/grpc/types/lnrpc/InvoiceHTLCState.js.map new file mode 100644 index 000000000..9090041fd --- /dev/null +++ b/dist/src/grpc/types/lnrpc/InvoiceHTLCState.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InvoiceHTLCState.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/InvoiceHTLCState.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/NodeMetricType.js b/dist/src/grpc/types/lnrpc/NodeMetricType.js new file mode 100644 index 000000000..c7eeafdae --- /dev/null +++ b/dist/src/grpc/types/lnrpc/NodeMetricType.js @@ -0,0 +1,9 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NodeMetricType = void 0; +exports.NodeMetricType = { + UNKNOWN: 'UNKNOWN', + BETWEENNESS_CENTRALITY: 'BETWEENNESS_CENTRALITY', +}; +//# sourceMappingURL=NodeMetricType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/NodeMetricType.js.map b/dist/src/grpc/types/lnrpc/NodeMetricType.js.map new file mode 100644 index 000000000..7b58a3999 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/NodeMetricType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NodeMetricType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/NodeMetricType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,sBAAsB,EAAE,wBAAwB;CACxC,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/OutputScriptType.js b/dist/src/grpc/types/lnrpc/OutputScriptType.js new file mode 100644 index 000000000..9c2df4f78 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/OutputScriptType.js @@ -0,0 +1,17 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OutputScriptType = void 0; +exports.OutputScriptType = { + SCRIPT_TYPE_PUBKEY_HASH: 'SCRIPT_TYPE_PUBKEY_HASH', + SCRIPT_TYPE_SCRIPT_HASH: 'SCRIPT_TYPE_SCRIPT_HASH', + SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH: 'SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH', + SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH: 'SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH', + SCRIPT_TYPE_PUBKEY: 'SCRIPT_TYPE_PUBKEY', + SCRIPT_TYPE_MULTISIG: 'SCRIPT_TYPE_MULTISIG', + SCRIPT_TYPE_NULLDATA: 'SCRIPT_TYPE_NULLDATA', + SCRIPT_TYPE_NON_STANDARD: 'SCRIPT_TYPE_NON_STANDARD', + SCRIPT_TYPE_WITNESS_UNKNOWN: 'SCRIPT_TYPE_WITNESS_UNKNOWN', + SCRIPT_TYPE_WITNESS_V1_TAPROOT: 'SCRIPT_TYPE_WITNESS_V1_TAPROOT', +}; +//# sourceMappingURL=OutputScriptType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/OutputScriptType.js.map b/dist/src/grpc/types/lnrpc/OutputScriptType.js.map new file mode 100644 index 000000000..bef2f0865 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/OutputScriptType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OutputScriptType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/OutputScriptType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB,EAAE,yBAAyB;IAClD,uBAAuB,EAAE,yBAAyB;IAClD,kCAAkC,EAAE,oCAAoC;IACxE,kCAAkC,EAAE,oCAAoC;IACxE,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,oBAAoB,EAAE,sBAAsB;IAC5C,wBAAwB,EAAE,0BAA0B;IACpD,2BAA2B,EAAE,6BAA6B;IAC1D,8BAA8B,EAAE,gCAAgC;CACxD,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Payment.js b/dist/src/grpc/types/lnrpc/Payment.js new file mode 100644 index 000000000..16aacb715 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Payment.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_Payment_PaymentStatus = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_Payment_PaymentStatus = { + UNKNOWN: 'UNKNOWN', + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +}; +//# sourceMappingURL=Payment.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Payment.js.map b/dist/src/grpc/types/lnrpc/Payment.js.map new file mode 100644 index 000000000..b1723a54c --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Payment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Payment.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAYvC,uCAAuC;AAE1B,QAAA,4BAA4B,GAAG;IAC1C,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/PaymentFailureReason.js b/dist/src/grpc/types/lnrpc/PaymentFailureReason.js new file mode 100644 index 000000000..ca39e29a1 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/PaymentFailureReason.js @@ -0,0 +1,13 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PaymentFailureReason = void 0; +exports.PaymentFailureReason = { + FAILURE_REASON_NONE: 'FAILURE_REASON_NONE', + FAILURE_REASON_TIMEOUT: 'FAILURE_REASON_TIMEOUT', + FAILURE_REASON_NO_ROUTE: 'FAILURE_REASON_NO_ROUTE', + FAILURE_REASON_ERROR: 'FAILURE_REASON_ERROR', + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: 'FAILURE_REASON_INCORRECT_PAYMENT_DETAILS', + FAILURE_REASON_INSUFFICIENT_BALANCE: 'FAILURE_REASON_INSUFFICIENT_BALANCE', +}; +//# sourceMappingURL=PaymentFailureReason.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/PaymentFailureReason.js.map b/dist/src/grpc/types/lnrpc/PaymentFailureReason.js.map new file mode 100644 index 000000000..9b0eb07d7 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/PaymentFailureReason.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentFailureReason.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/PaymentFailureReason.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,oBAAoB,GAAG;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,sBAAsB,EAAE,wBAAwB;IAChD,uBAAuB,EAAE,yBAAyB;IAClD,oBAAoB,EAAE,sBAAsB;IAC5C,wCAAwC,EACtC,0CAA0C;IAC5C,mCAAmC,EAAE,qCAAqC;CAClE,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Peer.js b/dist/src/grpc/types/lnrpc/Peer.js new file mode 100644 index 000000000..38fbffde6 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Peer.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_Peer_SyncType = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_Peer_SyncType = { + UNKNOWN_SYNC: 'UNKNOWN_SYNC', + ACTIVE_SYNC: 'ACTIVE_SYNC', + PASSIVE_SYNC: 'PASSIVE_SYNC', + PINNED_SYNC: 'PINNED_SYNC', +}; +//# sourceMappingURL=Peer.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/Peer.js.map b/dist/src/grpc/types/lnrpc/Peer.js.map new file mode 100644 index 000000000..0ace13e20 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/Peer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Peer.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Peer.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAYvC,uCAAuC;AAE1B,QAAA,oBAAoB,GAAG;IAClC,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;CAClB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/PeerEvent.js b/dist/src/grpc/types/lnrpc/PeerEvent.js new file mode 100644 index 000000000..a1c3a19cf --- /dev/null +++ b/dist/src/grpc/types/lnrpc/PeerEvent.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_PeerEvent_EventType = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_PeerEvent_EventType = { + PEER_ONLINE: 'PEER_ONLINE', + PEER_OFFLINE: 'PEER_OFFLINE', +}; +//# sourceMappingURL=PeerEvent.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/PeerEvent.js.map b/dist/src/grpc/types/lnrpc/PeerEvent.js.map new file mode 100644 index 000000000..d250cc933 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/PeerEvent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PeerEvent.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/PeerEvent.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,uCAAuC;AAE1B,QAAA,0BAA0B,GAAG;IACxC,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CACpB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/PendingChannelsResponse.js b/dist/src/grpc/types/lnrpc/PendingChannelsResponse.js new file mode 100644 index 000000000..3a648201e --- /dev/null +++ b/dist/src/grpc/types/lnrpc/PendingChannelsResponse.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState = void 0; +// Original file: proto/lightning.proto +exports._lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState = { + LIMBO: 'LIMBO', + RECOVERED: 'RECOVERED', + LOST: 'LOST', +}; +//# sourceMappingURL=PendingChannelsResponse.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/PendingChannelsResponse.js.map b/dist/src/grpc/types/lnrpc/PendingChannelsResponse.js.map new file mode 100644 index 000000000..615d9e95f --- /dev/null +++ b/dist/src/grpc/types/lnrpc/PendingChannelsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PendingChannelsResponse.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/PendingChannelsResponse.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAgBvC,uCAAuC;AAE1B,QAAA,6DAA6D,GAAG;IAC3E,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;CACJ,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ResolutionOutcome.js b/dist/src/grpc/types/lnrpc/ResolutionOutcome.js new file mode 100644 index 000000000..0cc25c05d --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ResolutionOutcome.js @@ -0,0 +1,13 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResolutionOutcome = void 0; +exports.ResolutionOutcome = { + OUTCOME_UNKNOWN: 'OUTCOME_UNKNOWN', + CLAIMED: 'CLAIMED', + UNCLAIMED: 'UNCLAIMED', + ABANDONED: 'ABANDONED', + FIRST_STAGE: 'FIRST_STAGE', + TIMEOUT: 'TIMEOUT', +}; +//# sourceMappingURL=ResolutionOutcome.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ResolutionOutcome.js.map b/dist/src/grpc/types/lnrpc/ResolutionOutcome.js.map new file mode 100644 index 000000000..c7b36dc08 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ResolutionOutcome.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ResolutionOutcome.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/ResolutionOutcome.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,iBAAiB,GAAG;IAC/B,eAAe,EAAE,iBAAiB;IAClC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;CACV,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ResolutionType.js b/dist/src/grpc/types/lnrpc/ResolutionType.js new file mode 100644 index 000000000..1988e83db --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ResolutionType.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResolutionType = void 0; +exports.ResolutionType = { + TYPE_UNKNOWN: 'TYPE_UNKNOWN', + ANCHOR: 'ANCHOR', + INCOMING_HTLC: 'INCOMING_HTLC', + OUTGOING_HTLC: 'OUTGOING_HTLC', + COMMIT: 'COMMIT', +}; +//# sourceMappingURL=ResolutionType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/ResolutionType.js.map b/dist/src/grpc/types/lnrpc/ResolutionType.js.map new file mode 100644 index 000000000..dfe1056c7 --- /dev/null +++ b/dist/src/grpc/types/lnrpc/ResolutionType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ResolutionType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/ResolutionType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/UpdateFailure.js b/dist/src/grpc/types/lnrpc/UpdateFailure.js new file mode 100644 index 000000000..ba9af236d --- /dev/null +++ b/dist/src/grpc/types/lnrpc/UpdateFailure.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/lightning.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateFailure = void 0; +exports.UpdateFailure = { + UPDATE_FAILURE_UNKNOWN: 'UPDATE_FAILURE_UNKNOWN', + UPDATE_FAILURE_PENDING: 'UPDATE_FAILURE_PENDING', + UPDATE_FAILURE_NOT_FOUND: 'UPDATE_FAILURE_NOT_FOUND', + UPDATE_FAILURE_INTERNAL_ERR: 'UPDATE_FAILURE_INTERNAL_ERR', + UPDATE_FAILURE_INVALID_PARAMETER: 'UPDATE_FAILURE_INVALID_PARAMETER', +}; +//# sourceMappingURL=UpdateFailure.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc/UpdateFailure.js.map b/dist/src/grpc/types/lnrpc/UpdateFailure.js.map new file mode 100644 index 000000000..5394e6c4e --- /dev/null +++ b/dist/src/grpc/types/lnrpc/UpdateFailure.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateFailure.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/UpdateFailure.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,aAAa,GAAG;IAC3B,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,wBAAwB,EAAE,0BAA0B;IACpD,2BAA2B,EAAE,6BAA6B;IAC1D,gCAAgC,EAAE,kCAAkC;CAC5D,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Channel.js b/dist/src/grpc/types/lnrpc_proxy/Channel.js new file mode 100644 index 000000000..a7cc68e9b --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Channel.js @@ -0,0 +1,4 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Channel.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Channel.js.map b/dist/src/grpc/types/lnrpc_proxy/Channel.js.map new file mode 100644 index 000000000..4ca912e9a --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Channel.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/Channel.ts"],"names":[],"mappings":";AAAA,uCAAuC"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/CommitmentType.js b/dist/src/grpc/types/lnrpc_proxy/CommitmentType.js new file mode 100644 index 000000000..84f1f0cc2 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/CommitmentType.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CommitmentType = void 0; +exports.CommitmentType = { + LEGACY: 'LEGACY', + STATIC_REMOTE_KEY: 'STATIC_REMOTE_KEY', + ANCHORS: 'ANCHORS', + UNKNOWN_COMMITMENT_TYPE: 'UNKNOWN_COMMITMENT_TYPE', +}; +//# sourceMappingURL=CommitmentType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/CommitmentType.js.map b/dist/src/grpc/types/lnrpc_proxy/CommitmentType.js.map new file mode 100644 index 000000000..73c66c4b8 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/CommitmentType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CommitmentType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/CommitmentType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,QAAQ;IAChB,iBAAiB,EAAE,mBAAmB;IACtC,OAAO,EAAE,SAAS;IAClB,uBAAuB,EAAE,yBAAyB;CAC1C,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Failure.js b/dist/src/grpc/types/lnrpc_proxy/Failure.js new file mode 100644 index 000000000..0a87ca66e --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Failure.js @@ -0,0 +1,35 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_proxy_Failure_FailureCode = void 0; +// Original file: proto/rpc_proxy.proto +exports._lnrpc_proxy_Failure_FailureCode = { + RESERVED: 'RESERVED', + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS: 'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS', + INCORRECT_PAYMENT_AMOUNT: 'INCORRECT_PAYMENT_AMOUNT', + FINAL_INCORRECT_CLTV_EXPIRY: 'FINAL_INCORRECT_CLTV_EXPIRY', + FINAL_INCORRECT_HTLC_AMOUNT: 'FINAL_INCORRECT_HTLC_AMOUNT', + FINAL_EXPIRY_TOO_SOON: 'FINAL_EXPIRY_TOO_SOON', + INVALID_REALM: 'INVALID_REALM', + EXPIRY_TOO_SOON: 'EXPIRY_TOO_SOON', + INVALID_ONION_VERSION: 'INVALID_ONION_VERSION', + INVALID_ONION_HMAC: 'INVALID_ONION_HMAC', + INVALID_ONION_KEY: 'INVALID_ONION_KEY', + AMOUNT_BELOW_MINIMUM: 'AMOUNT_BELOW_MINIMUM', + FEE_INSUFFICIENT: 'FEE_INSUFFICIENT', + INCORRECT_CLTV_EXPIRY: 'INCORRECT_CLTV_EXPIRY', + CHANNEL_DISABLED: 'CHANNEL_DISABLED', + TEMPORARY_CHANNEL_FAILURE: 'TEMPORARY_CHANNEL_FAILURE', + REQUIRED_NODE_FEATURE_MISSING: 'REQUIRED_NODE_FEATURE_MISSING', + REQUIRED_CHANNEL_FEATURE_MISSING: 'REQUIRED_CHANNEL_FEATURE_MISSING', + UNKNOWN_NEXT_PEER: 'UNKNOWN_NEXT_PEER', + TEMPORARY_NODE_FAILURE: 'TEMPORARY_NODE_FAILURE', + PERMANENT_NODE_FAILURE: 'PERMANENT_NODE_FAILURE', + PERMANENT_CHANNEL_FAILURE: 'PERMANENT_CHANNEL_FAILURE', + EXPIRY_TOO_FAR: 'EXPIRY_TOO_FAR', + MPP_TIMEOUT: 'MPP_TIMEOUT', + INTERNAL_FAILURE: 'INTERNAL_FAILURE', + UNKNOWN_FAILURE: 'UNKNOWN_FAILURE', + UNREADABLE_FAILURE: 'UNREADABLE_FAILURE', +}; +//# sourceMappingURL=Failure.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Failure.js.map b/dist/src/grpc/types/lnrpc_proxy/Failure.js.map new file mode 100644 index 000000000..a23a2af75 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Failure.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Failure.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/Failure.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAQvC,uCAAuC;AAE1B,QAAA,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,UAAU;IACpB,oCAAoC,EAAE,sCAAsC;IAC5E,wBAAwB,EAAE,0BAA0B;IACpD,2BAA2B,EAAE,6BAA6B;IAC1D,2BAA2B,EAAE,6BAA6B;IAC1D,qBAAqB,EAAE,uBAAuB;IAC9C,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,qBAAqB,EAAE,uBAAuB;IAC9C,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,oBAAoB,EAAE,sBAAsB;IAC5C,gBAAgB,EAAE,kBAAkB;IACpC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,yBAAyB,EAAE,2BAA2B;IACtD,6BAA6B,EAAE,+BAA+B;IAC9D,gCAAgC,EAAE,kCAAkC;IACpE,iBAAiB,EAAE,mBAAmB;IACtC,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,kBAAkB,EAAE,oBAAoB;CAChC,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/FeatureBit.js b/dist/src/grpc/types/lnrpc_proxy/FeatureBit.js new file mode 100644 index 000000000..f6a413e58 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/FeatureBit.js @@ -0,0 +1,24 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FeatureBit = void 0; +exports.FeatureBit = { + DATALOSS_PROTECT_REQ: 'DATALOSS_PROTECT_REQ', + DATALOSS_PROTECT_OPT: 'DATALOSS_PROTECT_OPT', + INITIAL_ROUING_SYNC: 'INITIAL_ROUING_SYNC', + UPFRONT_SHUTDOWN_SCRIPT_REQ: 'UPFRONT_SHUTDOWN_SCRIPT_REQ', + UPFRONT_SHUTDOWN_SCRIPT_OPT: 'UPFRONT_SHUTDOWN_SCRIPT_OPT', + GOSSIP_QUERIES_REQ: 'GOSSIP_QUERIES_REQ', + GOSSIP_QUERIES_OPT: 'GOSSIP_QUERIES_OPT', + TLV_ONION_REQ: 'TLV_ONION_REQ', + TLV_ONION_OPT: 'TLV_ONION_OPT', + EXT_GOSSIP_QUERIES_REQ: 'EXT_GOSSIP_QUERIES_REQ', + EXT_GOSSIP_QUERIES_OPT: 'EXT_GOSSIP_QUERIES_OPT', + STATIC_REMOTE_KEY_REQ: 'STATIC_REMOTE_KEY_REQ', + STATIC_REMOTE_KEY_OPT: 'STATIC_REMOTE_KEY_OPT', + PAYMENT_ADDR_REQ: 'PAYMENT_ADDR_REQ', + PAYMENT_ADDR_OPT: 'PAYMENT_ADDR_OPT', + MPP_REQ: 'MPP_REQ', + MPP_OPT: 'MPP_OPT', +}; +//# sourceMappingURL=FeatureBit.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/FeatureBit.js.map b/dist/src/grpc/types/lnrpc_proxy/FeatureBit.js.map new file mode 100644 index 000000000..74a5869fe --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/FeatureBit.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FeatureBit.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/FeatureBit.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,UAAU,GAAG;IACxB,oBAAoB,EAAE,sBAAsB;IAC5C,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EAAE,qBAAqB;IAC1C,2BAA2B,EAAE,6BAA6B;IAC1D,2BAA2B,EAAE,6BAA6B;IAC1D,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js b/dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js new file mode 100644 index 000000000..b06269bdb --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_proxy_HTLCAttempt_HTLCStatus = void 0; +// Original file: proto/rpc_proxy.proto +exports._lnrpc_proxy_HTLCAttempt_HTLCStatus = { + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +}; +//# sourceMappingURL=HTLCAttempt.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js.map b/dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js.map new file mode 100644 index 000000000..34ed0fa34 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HTLCAttempt.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/HTLCAttempt.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAYvC,uCAAuC;AAE1B,QAAA,mCAAmC,GAAG;IACjD,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Invoice.js b/dist/src/grpc/types/lnrpc_proxy/Invoice.js new file mode 100644 index 000000000..d0bf64bfe --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Invoice.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_proxy_Invoice_InvoiceState = void 0; +// Original file: proto/rpc_proxy.proto +exports._lnrpc_proxy_Invoice_InvoiceState = { + OPEN: 'OPEN', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', + ACCEPTED: 'ACCEPTED', +}; +//# sourceMappingURL=Invoice.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Invoice.js.map b/dist/src/grpc/types/lnrpc_proxy/Invoice.js.map new file mode 100644 index 000000000..024951469 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Invoice.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/Invoice.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAgBvC,uCAAuC;AAE1B,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js b/dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js new file mode 100644 index 000000000..1ea07079f --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InvoiceHTLCState = void 0; +exports.InvoiceHTLCState = { + ACCEPTED: 'ACCEPTED', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', +}; +//# sourceMappingURL=InvoiceHTLCState.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js.map b/dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js.map new file mode 100644 index 000000000..34e76ac0b --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InvoiceHTLCState.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/InvoiceHTLCState.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Payment.js b/dist/src/grpc/types/lnrpc_proxy/Payment.js new file mode 100644 index 000000000..8ae5f3ffe --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Payment.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._lnrpc_proxy_Payment_PaymentStatus = void 0; +// Original file: proto/rpc_proxy.proto +exports._lnrpc_proxy_Payment_PaymentStatus = { + UNKNOWN: 'UNKNOWN', + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +}; +//# sourceMappingURL=Payment.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/Payment.js.map b/dist/src/grpc/types/lnrpc_proxy/Payment.js.map new file mode 100644 index 000000000..779cf2a6b --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/Payment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/Payment.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAYvC,uCAAuC;AAE1B,QAAA,kCAAkC,GAAG;IAChD,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js b/dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js new file mode 100644 index 000000000..7c0d6687c --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js @@ -0,0 +1,13 @@ +"use strict"; +// Original file: proto/rpc_proxy.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PaymentFailureReason = void 0; +exports.PaymentFailureReason = { + FAILURE_REASON_NONE: 'FAILURE_REASON_NONE', + FAILURE_REASON_TIMEOUT: 'FAILURE_REASON_TIMEOUT', + FAILURE_REASON_NO_ROUTE: 'FAILURE_REASON_NO_ROUTE', + FAILURE_REASON_ERROR: 'FAILURE_REASON_ERROR', + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: 'FAILURE_REASON_INCORRECT_PAYMENT_DETAILS', + FAILURE_REASON_INSUFFICIENT_BALANCE: 'FAILURE_REASON_INSUFFICIENT_BALANCE', +}; +//# sourceMappingURL=PaymentFailureReason.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js.map b/dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js.map new file mode 100644 index 000000000..5ecbcb958 --- /dev/null +++ b/dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentFailureReason.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/PaymentFailureReason.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,oBAAoB,GAAG;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,sBAAsB,EAAE,wBAAwB;IAChD,uBAAuB,EAAE,yBAAyB;IAClD,oBAAoB,EAAE,sBAAsB;IAC5C,wCAAwC,EACtC,0CAA0C;IAC5C,mCAAmC,EAAE,qCAAqC;CAClE,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/ChanStatusAction.js b/dist/src/grpc/types/routerrpc/ChanStatusAction.js new file mode 100644 index 000000000..f566e7b00 --- /dev/null +++ b/dist/src/grpc/types/routerrpc/ChanStatusAction.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/router.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChanStatusAction = void 0; +exports.ChanStatusAction = { + ENABLE: 'ENABLE', + DISABLE: 'DISABLE', + AUTO: 'AUTO', +}; +//# sourceMappingURL=ChanStatusAction.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/ChanStatusAction.js.map b/dist/src/grpc/types/routerrpc/ChanStatusAction.js.map new file mode 100644 index 000000000..ffd03070b --- /dev/null +++ b/dist/src/grpc/types/routerrpc/ChanStatusAction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChanStatusAction.js","sourceRoot":"","sources":["../../../../../src/grpc/types/routerrpc/ChanStatusAction.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEvB,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/FailureDetail.js b/dist/src/grpc/types/routerrpc/FailureDetail.js new file mode 100644 index 000000000..703e5fdbd --- /dev/null +++ b/dist/src/grpc/types/routerrpc/FailureDetail.js @@ -0,0 +1,30 @@ +"use strict"; +// Original file: proto/router.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FailureDetail = void 0; +exports.FailureDetail = { + UNKNOWN: 'UNKNOWN', + NO_DETAIL: 'NO_DETAIL', + ONION_DECODE: 'ONION_DECODE', + LINK_NOT_ELIGIBLE: 'LINK_NOT_ELIGIBLE', + ON_CHAIN_TIMEOUT: 'ON_CHAIN_TIMEOUT', + HTLC_EXCEEDS_MAX: 'HTLC_EXCEEDS_MAX', + INSUFFICIENT_BALANCE: 'INSUFFICIENT_BALANCE', + INCOMPLETE_FORWARD: 'INCOMPLETE_FORWARD', + HTLC_ADD_FAILED: 'HTLC_ADD_FAILED', + FORWARDS_DISABLED: 'FORWARDS_DISABLED', + INVOICE_CANCELED: 'INVOICE_CANCELED', + INVOICE_UNDERPAID: 'INVOICE_UNDERPAID', + INVOICE_EXPIRY_TOO_SOON: 'INVOICE_EXPIRY_TOO_SOON', + INVOICE_NOT_OPEN: 'INVOICE_NOT_OPEN', + MPP_INVOICE_TIMEOUT: 'MPP_INVOICE_TIMEOUT', + ADDRESS_MISMATCH: 'ADDRESS_MISMATCH', + SET_TOTAL_MISMATCH: 'SET_TOTAL_MISMATCH', + SET_TOTAL_TOO_LOW: 'SET_TOTAL_TOO_LOW', + SET_OVERPAID: 'SET_OVERPAID', + UNKNOWN_INVOICE: 'UNKNOWN_INVOICE', + INVALID_KEYSEND: 'INVALID_KEYSEND', + MPP_IN_PROGRESS: 'MPP_IN_PROGRESS', + CIRCULAR_ROUTE: 'CIRCULAR_ROUTE', +}; +//# sourceMappingURL=FailureDetail.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/FailureDetail.js.map b/dist/src/grpc/types/routerrpc/FailureDetail.js.map new file mode 100644 index 000000000..26e587acc --- /dev/null +++ b/dist/src/grpc/types/routerrpc/FailureDetail.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FailureDetail.js","sourceRoot":"","sources":["../../../../../src/grpc/types/routerrpc/FailureDetail.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEvB,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,uBAAuB,EAAE,yBAAyB;IAClD,gBAAgB,EAAE,kBAAkB;IACpC,mBAAmB,EAAE,qBAAqB;IAC1C,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;CACxB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/HtlcEvent.js b/dist/src/grpc/types/routerrpc/HtlcEvent.js new file mode 100644 index 000000000..c0016ab72 --- /dev/null +++ b/dist/src/grpc/types/routerrpc/HtlcEvent.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/router.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports._routerrpc_HtlcEvent_EventType = void 0; +// Original file: proto/router.proto +exports._routerrpc_HtlcEvent_EventType = { + UNKNOWN: 'UNKNOWN', + SEND: 'SEND', + RECEIVE: 'RECEIVE', + FORWARD: 'FORWARD', +}; +//# sourceMappingURL=HtlcEvent.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/HtlcEvent.js.map b/dist/src/grpc/types/routerrpc/HtlcEvent.js.map new file mode 100644 index 000000000..47cee4dcf --- /dev/null +++ b/dist/src/grpc/types/routerrpc/HtlcEvent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HtlcEvent.js","sourceRoot":"","sources":["../../../../../src/grpc/types/routerrpc/HtlcEvent.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AA4BpC,oCAAoC;AAEvB,QAAA,8BAA8B,GAAG;IAC5C,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/PaymentState.js b/dist/src/grpc/types/routerrpc/PaymentState.js new file mode 100644 index 000000000..9a085e510 --- /dev/null +++ b/dist/src/grpc/types/routerrpc/PaymentState.js @@ -0,0 +1,14 @@ +"use strict"; +// Original file: proto/router.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PaymentState = void 0; +exports.PaymentState = { + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED_TIMEOUT: 'FAILED_TIMEOUT', + FAILED_NO_ROUTE: 'FAILED_NO_ROUTE', + FAILED_ERROR: 'FAILED_ERROR', + FAILED_INCORRECT_PAYMENT_DETAILS: 'FAILED_INCORRECT_PAYMENT_DETAILS', + FAILED_INSUFFICIENT_BALANCE: 'FAILED_INSUFFICIENT_BALANCE', +}; +//# sourceMappingURL=PaymentState.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/PaymentState.js.map b/dist/src/grpc/types/routerrpc/PaymentState.js.map new file mode 100644 index 000000000..3f1b23b89 --- /dev/null +++ b/dist/src/grpc/types/routerrpc/PaymentState.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentState.js","sourceRoot":"","sources":["../../../../../src/grpc/types/routerrpc/PaymentState.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEvB,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,gCAAgC,EAAE,kCAAkC;IACpE,2BAA2B,EAAE,6BAA6B;CAClD,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js b/dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js new file mode 100644 index 000000000..8ac98174b --- /dev/null +++ b/dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js @@ -0,0 +1,10 @@ +"use strict"; +// Original file: proto/router.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResolveHoldForwardAction = void 0; +exports.ResolveHoldForwardAction = { + SETTLE: 'SETTLE', + FAIL: 'FAIL', + RESUME: 'RESUME', +}; +//# sourceMappingURL=ResolveHoldForwardAction.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js.map b/dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js.map new file mode 100644 index 000000000..9c48d7aef --- /dev/null +++ b/dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ResolveHoldForwardAction.js","sourceRoot":"","sources":["../../../../../src/grpc/types/routerrpc/ResolveHoldForwardAction.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEvB,QAAA,wBAAwB,GAAG;IACtC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/scheduler/ChallengeScope.js b/dist/src/grpc/types/scheduler/ChallengeScope.js new file mode 100644 index 000000000..3dd54523f --- /dev/null +++ b/dist/src/grpc/types/scheduler/ChallengeScope.js @@ -0,0 +1,9 @@ +"use strict"; +// Original file: proto/scheduler.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChallengeScope = void 0; +exports.ChallengeScope = { + REGISTER: 'REGISTER', + RECOVER: 'RECOVER', +}; +//# sourceMappingURL=ChallengeScope.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/scheduler/ChallengeScope.js.map b/dist/src/grpc/types/scheduler/ChallengeScope.js.map new file mode 100644 index 000000000..72c4e917f --- /dev/null +++ b/dist/src/grpc/types/scheduler/ChallengeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChallengeScope.js","sourceRoot":"","sources":["../../../../../src/grpc/types/scheduler/ChallengeScope.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/signrpc/SignMethod.js b/dist/src/grpc/types/signrpc/SignMethod.js new file mode 100644 index 000000000..a1da5513b --- /dev/null +++ b/dist/src/grpc/types/signrpc/SignMethod.js @@ -0,0 +1,11 @@ +"use strict"; +// Original file: proto/signer.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SignMethod = void 0; +exports.SignMethod = { + SIGN_METHOD_WITNESS_V0: 'SIGN_METHOD_WITNESS_V0', + SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086: 'SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086', + SIGN_METHOD_TAPROOT_KEY_SPEND: 'SIGN_METHOD_TAPROOT_KEY_SPEND', + SIGN_METHOD_TAPROOT_SCRIPT_SPEND: 'SIGN_METHOD_TAPROOT_SCRIPT_SPEND', +}; +//# sourceMappingURL=SignMethod.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/signrpc/SignMethod.js.map b/dist/src/grpc/types/signrpc/SignMethod.js.map new file mode 100644 index 000000000..0dbde3570 --- /dev/null +++ b/dist/src/grpc/types/signrpc/SignMethod.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SignMethod.js","sourceRoot":"","sources":["../../../../../src/grpc/types/signrpc/SignMethod.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEvB,QAAA,UAAU,GAAG;IACxB,sBAAsB,EAAE,wBAAwB;IAChD,qCAAqC,EACnC,uCAAuC;IACzC,6BAA6B,EAAE,+BAA+B;IAC9D,gCAAgC,EAAE,kCAAkC;CAC5D,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/walletrpc/AddressType.js b/dist/src/grpc/types/walletrpc/AddressType.js new file mode 100644 index 000000000..fbadf56a4 --- /dev/null +++ b/dist/src/grpc/types/walletrpc/AddressType.js @@ -0,0 +1,12 @@ +"use strict"; +// Original file: proto/walletkit.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressType = void 0; +exports.AddressType = { + UNKNOWN: 'UNKNOWN', + WITNESS_PUBKEY_HASH: 'WITNESS_PUBKEY_HASH', + NESTED_WITNESS_PUBKEY_HASH: 'NESTED_WITNESS_PUBKEY_HASH', + HYBRID_NESTED_WITNESS_PUBKEY_HASH: 'HYBRID_NESTED_WITNESS_PUBKEY_HASH', + TAPROOT_PUBKEY: 'TAPROOT_PUBKEY', +}; +//# sourceMappingURL=AddressType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/walletrpc/AddressType.js.map b/dist/src/grpc/types/walletrpc/AddressType.js.map new file mode 100644 index 000000000..a91758f3a --- /dev/null +++ b/dist/src/grpc/types/walletrpc/AddressType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/walletrpc/AddressType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,mBAAmB,EAAE,qBAAqB;IAC1C,0BAA0B,EAAE,4BAA4B;IACxD,iCAAiC,EAAE,mCAAmC;IACtE,cAAc,EAAE,gBAAgB;CACxB,CAAA"} \ No newline at end of file diff --git a/dist/src/grpc/types/walletrpc/WitnessType.js b/dist/src/grpc/types/walletrpc/WitnessType.js new file mode 100644 index 000000000..b92beb52f --- /dev/null +++ b/dist/src/grpc/types/walletrpc/WitnessType.js @@ -0,0 +1,21 @@ +"use strict"; +// Original file: proto/walletkit.proto +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WitnessType = void 0; +exports.WitnessType = { + UNKNOWN_WITNESS: 'UNKNOWN_WITNESS', + COMMITMENT_TIME_LOCK: 'COMMITMENT_TIME_LOCK', + COMMITMENT_NO_DELAY: 'COMMITMENT_NO_DELAY', + COMMITMENT_REVOKE: 'COMMITMENT_REVOKE', + HTLC_OFFERED_REVOKE: 'HTLC_OFFERED_REVOKE', + HTLC_ACCEPTED_REVOKE: 'HTLC_ACCEPTED_REVOKE', + HTLC_OFFERED_TIMEOUT_SECOND_LEVEL: 'HTLC_OFFERED_TIMEOUT_SECOND_LEVEL', + HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL: 'HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL', + HTLC_OFFERED_REMOTE_TIMEOUT: 'HTLC_OFFERED_REMOTE_TIMEOUT', + HTLC_ACCEPTED_REMOTE_SUCCESS: 'HTLC_ACCEPTED_REMOTE_SUCCESS', + HTLC_SECOND_LEVEL_REVOKE: 'HTLC_SECOND_LEVEL_REVOKE', + WITNESS_KEY_HASH: 'WITNESS_KEY_HASH', + NESTED_WITNESS_KEY_HASH: 'NESTED_WITNESS_KEY_HASH', + COMMITMENT_ANCHOR: 'COMMITMENT_ANCHOR', +}; +//# sourceMappingURL=WitnessType.js.map \ No newline at end of file diff --git a/dist/src/grpc/types/walletrpc/WitnessType.js.map b/dist/src/grpc/types/walletrpc/WitnessType.js.map new file mode 100644 index 000000000..0f171e43c --- /dev/null +++ b/dist/src/grpc/types/walletrpc/WitnessType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WitnessType.js","sourceRoot":"","sources":["../../../../../src/grpc/types/walletrpc/WitnessType.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,WAAW,GAAG;IACzB,eAAe,EAAE,iBAAiB;IAClC,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,oBAAoB,EAAE,sBAAsB;IAC5C,iCAAiC,EAAE,mCAAmC;IACtE,kCAAkC,EAAE,oCAAoC;IACxE,2BAA2B,EAAE,6BAA6B;IAC1D,4BAA4B,EAAE,8BAA8B;IAC5D,wBAAwB,EAAE,0BAA0B;IACpD,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,iBAAiB,EAAE,mBAAmB;CAC9B,CAAA"} \ No newline at end of file diff --git a/dist/src/utils/proxy.js b/dist/src/utils/proxy.js index cea52413e..c8adb3206 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 @@ -194,10 +195,9 @@ 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; + return new lnrpc.Lightning(PROXY_LND_IP + ':' + config.proxy_lnd_port, credentials); } catch (e) { logger_1.sphinxLogger.error(`ERROR in loadProxyLightning ${e}`); @@ -214,11 +214,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); } @@ -233,13 +233,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 112c8aea1..fbbd7ee0b 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,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;AAEjC,SAAgB,OAAO;IACrB,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,IA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K,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..e322a8fab 100644 --- a/dist/src/utils/signer.js +++ b/dist/src/utils/signer.js @@ -10,26 +10,24 @@ 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"); 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; + return (signerClient = new signer.Signer(LND_IP + ':' + config.lnd_port, credentials)); } catch (e) { //only throw here @@ -37,56 +35,54 @@ 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)(); + const signer = loadSigner(); + return new Promise((resolve, reject) => { 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); - resolve(buf.toBase64()); + resolve(sig.signature.toString('base64')); } }); } 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)(); + const signer = loadSigner(); + return new Promise((resolve, reject) => { 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); - resolve(buf.toBase64()); + resolve(sig.signature.toString('base64')); } }); } 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)(); + const signer = loadSigner(); + return new Promise((resolve, reject) => { if (msg.length === 0) { return reject('invalid msg'); } @@ -98,12 +94,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 +110,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..ee4f58edf 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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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,GAAG,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;YAC1D,MAAM,SAAS,GAAQ,eAAe,CAAC,SAAS,CAAA;YAChD,YAAY,GAAG,IAAI,SAAS,CAAC,SAAS,CACpC,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,QAAQ,EAC9B,WAAW,CACZ,CAAA;YACD,OAAO,YAAY,CAAA;SACpB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAA;YAC/C,MAAM,CAAC,CAAA;SACR;KACF;AACH,CAAC,CAAA;AAlBY,QAAA,aAAa,iBAkBzB;AAaD,SAAsB,WAAW;;QAC/B,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAE,MA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WAAW,CACZ,CAAA;YACD,OAAO,YAAY,CAAA;SACpB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAA;YAC/C,MAAM,CAAC,CAAA;SACR;KACF;AACH,CAAC;AAlBD,sCAkBC;AAED,IAAK,WAOJ;AAPD,WAAK,WAAW;IACd,2EAAuB,CAAA;IACvB,yEAAsB,CAAA;IACtB,yFAA8B,CAAA;IAC9B,uFAA6B,CAAA;IAC7B,iEAAkB,CAAA;IAClB,+EAAyB,CAAA;AAC3B,CAAC,EAPI,WAAW,KAAX,WAAW,QAOf;AAiBD,SAAsB,WAAW;;QAC/B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,SAAS,GAAG,aAAa,EAAE,CAAA;YACjC,IAAI;gBACF,MAAM,IAAI,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;gBAC/C,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,EAAE,GAAG;oBAC5C,IAAI,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE;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..6bfd1ea80 --- /dev/null +++ b/grpc_gen_types.sh @@ -0,0 +1,73 @@ +#!/bin/bash + +# enable recursive globbing with ** +shopt -s globstar + +# 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 src/grpc/types + +# https://github.com/protobufjs/protobuf.js/issues/1799 +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=src/grpc/types \ + proto/*.proto || exit 1 + +# undo `sed` on the proto dir +git restore proto + +cd src/grpc/types + +# for every just generated ts file, +# change the extension to .d.ts to not flood dist with empty files +# however, if there is an enum in the file it should be compiled +ls **/*.ts | while read f +do + if ! grep const "$f" > /dev/null; then + mv "$f" "$(echo "$f" | sed 's/ts$/d.ts/')" + fi +done + +# type fixes for eslint: +# replace empty interfaces with { [k: string]: never } +# replace any with unknown in some generated type +sed -zi 's/{\n}/{ [k: string]: never }/g;s/Constructor extends new (...args: any) => any/Constructor extends new (...args: unknown[]) => unknown/g' **/*.ts + +# array of names of the .ts files without their extension +protos=$(ls *.ts | sed 's/\..*$//') + +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 331b15f1d..a0fb3063e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,10 +7,12 @@ "": { "name": "nodeapp", "version": "1.0.0", + "hasInstallScript": true, "license": "ISC", "dependencies": { "@boltz/bolt11": "^1.2.7", - "@grpc/proto-loader": "^0.5.3", + "@grpc/grpc-js": "^1.8.7", + "@grpc/proto-loader": "^0.7.4", "@octokit/webhooks-types": "^5.2.0", "@scout_apm/scout-apm": "^0.1.10", "async": "^2.6.4", @@ -20,7 +22,6 @@ "bitcoin-address-validation": "^1.0.2", "blgr": "^0.2.0", "bolt11": "^1.3.1", - "bytebuffer": "^5.0.1", "change-case": "^4.1.1", "cookie-parser": "^1.4.4", "cors": "^2.8.5", @@ -34,7 +35,6 @@ "express-winston": "^4.0.2", "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", @@ -745,19 +745,41 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "optional": true }, + "node_modules/@grpc/grpc-js": { + "version": "1.8.7", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.7.tgz", + "integrity": "sha512-dRAWjRFN1Zy9mzPNLkFFIWT8T6C9euwluzCHZUKuhC+Bk3MayNPcpgDRyG+sg+n2sitEUySKxUynirVpu9ItKw==", + "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==", - "license": "Apache-2.0", + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.4.tgz", + "integrity": "sha512-MnWjkGwqQ3W8fx94/c1CwqLsNmHHv2t0CFn+9++6+cDphC1lolpg9M2OU0iebIjK//pBNX9e94ho+gjx6vz39w==", "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", @@ -2013,32 +2035,27 @@ "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", - "license": "BSD-3-Clause" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" }, "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "license": "BSD-3-Clause" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "license": "BSD-3-Clause" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", - "license": "BSD-3-Clause" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", - "license": "BSD-3-Clause", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -2047,32 +2064,27 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", - "license": "BSD-3-Clause" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", - "license": "BSD-3-Clause" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", - "license": "BSD-3-Clause" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", - "license": "BSD-3-Clause" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", - "license": "BSD-3-Clause" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, "node_modules/@scout_apm/scout-apm": { "version": "0.1.12", @@ -2277,16 +2289,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.42", - "resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.42.tgz", - "integrity": "sha512-lEgKojWUAc/MG2t649oZS5AfYFP2xRNPoDuwDBlBMjHXd8MaGPgFgtCXUK7inZdBOygmVf10qxc1Us8GXC96aw==", - "license": "MIT", - "dependencies": { - "@types/long": "*", - "@types/node": "*" - } - }, "node_modules/@types/component-emitter": { "version": "1.2.11", "resolved": "https://registry.npmjs.org/@types/component-emitter/-/component-emitter-1.2.11.tgz", @@ -2492,10 +2494,9 @@ "license": "MIT" }, "node_modules/@types/long": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", - "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==", - "license": "MIT" + "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", @@ -3309,16 +3310,6 @@ "node": ">=8" } }, - "node_modules/ascli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", - "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", - "license": "Apache-2.0", - "dependencies": { - "colour": "~0.7.1", - "optjs": "~3.2.2" - } - }, "node_modules/asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", @@ -3576,18 +3567,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/ava/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, "node_modules/ava/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3608,13 +3587,6 @@ "dev": true, "license": "MIT" }, - "node_modules/ava/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, "node_modules/ava/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -3625,16 +3597,6 @@ "node": ">=8" } }, - "node_modules/ava/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/ava/node_modules/is-promise": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", @@ -3678,21 +3640,6 @@ "node": ">=8" } }, - "node_modules/ava/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/ava/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -3719,79 +3666,6 @@ "node": ">=8" } }, - "node_modules/ava/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/ava/node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/ava/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/ava/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ava/node_modules/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, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -4544,24 +4418,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -4878,18 +4734,6 @@ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", "license": "MIT" }, - "node_modules/bytebuffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", - "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", - "license": "Apache-2.0", - "dependencies": { - "long": "~3" - }, - "engines": { - "node": ">=0.8" - } - }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -4989,15 +4833,6 @@ "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "license": "0BSD" }, - "node_modules/camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/camelize": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", @@ -5334,14 +5169,50 @@ } }, "node_modules/cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "license": "ISC", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, "node_modules/clone": { @@ -5495,15 +5366,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": "sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g=", - "license": "MIT", - "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", @@ -8434,43 +8296,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, - "license": "Apache-2.0", - "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/protobufjs": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", - "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", - "license": "Apache-2.0", - "dependencies": { - "ascli": "~1", - "bytebuffer": "~5", - "glob": "^7.0.5", - "yargs": "^3.10.0" - }, - "bin": { - "pbjs": "bin/pbjs" - }, - "engines": { - "node": ">=0.8" - } - }, "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -9050,15 +8875,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": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", @@ -9870,16 +9686,6 @@ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.2.tgz", "integrity": "sha512-xmDt/QIAdeZ9+nfdPsaBCpMvHNLFiLdjj59qjqn+6iPe6YmHGQ35sBnQ8uslRBXFmXkiZQOJRjvQeoGppoTjjg==" }, - "node_modules/jest-cli/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, "node_modules/jest-cli/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -10068,30 +9874,6 @@ } } }, - "node_modules/jest-cli/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, "node_modules/jest-cli/node_modules/yargs": { "version": "17.5.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", @@ -11676,18 +11458,6 @@ "node": ">=8" } }, - "node_modules/lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "license": "MIT", - "dependencies": { - "invert-kv": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/leven": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", @@ -11771,14 +11541,7 @@ "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", - "license": "MIT" - }, - "node_modules/lodash.clone": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=", - "license": "MIT" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" }, "node_modules/lodash.clonedeep": { "version": "4.5.0", @@ -13170,12 +12933,6 @@ "node": ">= 0.8.0" } }, - "node_modules/optjs": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", - "integrity": "sha1-aabOicRCpEQDFBrS+bNwvVu29O4=", - "license": "MIT" - }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -13301,18 +13058,6 @@ "node": ">=8" } }, - "node_modules/os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "license": "MIT", - "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", @@ -14355,9 +14100,9 @@ "license": "ISC" }, "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.2.1", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.1.tgz", + "integrity": "sha512-L3pCItypTnPK27+CS8nuhZMYtsY+i8dqdq2vZsYHlG17CnWp1DWPQ/sos0vOKrj1fHEAzo3GBqSHLaeZyKUCDA==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -14370,20 +14115,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/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", - "license": "Apache-2.0" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", + "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" }, "node_modules/proxy-addr": { "version": "2.0.7", @@ -17839,18 +17581,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": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=", - "license": "MIT", - "bin": { - "window-size": "cli.js" - }, - "engines": { - "node": ">= 0.10.0" - } - }, "node_modules/winston": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz", @@ -17951,16 +17681,86 @@ } }, "node_modules/wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "license": "MIT", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, "node_modules/wrappy": { @@ -18062,10 +17862,12 @@ } }, "node_modules/y18n": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", - "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==", - "license": "ISC" + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } }, "node_modules/yallist": { "version": "4.0.0", @@ -18074,18 +17876,20 @@ "license": "ISC" }, "node_modules/yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", - "license": "MIT", + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "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" + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" } }, "node_modules/yargs-parser": { @@ -18116,13 +17920,49 @@ "node": ">=0.10.0" } }, - "node_modules/yargs/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "license": "MIT", + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "engines": { - "node": ">=0.10.0" + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/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==", + "engines": { + "node": ">=10" } }, "node_modules/yauzl": { @@ -18656,13 +18496,32 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "optional": true }, + "@grpc/grpc-js": { + "version": "1.8.7", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.7.tgz", + "integrity": "sha512-dRAWjRFN1Zy9mzPNLkFFIWT8T6C9euwluzCHZUKuhC+Bk3MayNPcpgDRyG+sg+n2sitEUySKxUynirVpu9ItKw==", + "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.4", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.4.tgz", + "integrity": "sha512-MnWjkGwqQ3W8fx94/c1CwqLsNmHHv2t0CFn+9++6+cDphC1lolpg9M2OU0iebIjK//pBNX9e94ho+gjx6vz39w==", "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": { @@ -19637,7 +19496,7 @@ "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" }, "@protobufjs/base64": { "version": "1.1.2", @@ -19652,12 +19511,12 @@ "@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" }, "@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", "requires": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -19666,27 +19525,27 @@ "@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" }, "@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" }, "@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" }, "@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" }, "@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, "@scout_apm/scout-apm": { "version": "0.1.12", @@ -19873,15 +19732,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.42", - "resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.42.tgz", - "integrity": "sha512-lEgKojWUAc/MG2t649oZS5AfYFP2xRNPoDuwDBlBMjHXd8MaGPgFgtCXUK7inZdBOygmVf10qxc1Us8GXC96aw==", - "requires": { - "@types/long": "*", - "@types/node": "*" - } - }, "@types/component-emitter": { "version": "1.2.11", "resolved": "https://registry.npmjs.org/@types/component-emitter/-/component-emitter-1.2.11.tgz", @@ -20073,9 +19923,9 @@ "integrity": "sha512-XmdEOrKQ8a1Y/yxQFOMbC47G/V2VDO1GvMRnl4O75M4GW/abC5tnfzadQYkqEveqRM1dEJGFFegfPNA2vvx2iw==" }, "@types/long": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", - "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + "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", @@ -20675,15 +20525,6 @@ "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", "dev": true }, - "ascli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", - "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", - "requires": { - "colour": "~0.7.1", - "optjs": "~3.2.2" - } - }, "asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", @@ -20853,17 +20694,6 @@ } } }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -20874,15 +20704,9 @@ } }, "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { @@ -20891,12 +20715,6 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "is-promise": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", @@ -20927,17 +20745,6 @@ "p-finally": "^1.0.0" } }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -20955,55 +20762,6 @@ "requires": { "has-flag": "^4.0.0" } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - } - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yargs": { - "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", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "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 } } }, @@ -21612,17 +21370,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } } } }, @@ -21871,14 +21618,6 @@ } } }, - "bytebuffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", - "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", - "requires": { - "long": "~3" - } - }, "bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -21961,11 +21700,6 @@ } } }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" - }, "camelize": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", @@ -22214,13 +21948,43 @@ } }, "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + } } }, "clone": { @@ -22338,11 +22102,6 @@ "text-hex": "1.0.x" } }, - "colour": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", - "integrity": "sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g=" - }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -24486,32 +24245,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": { - "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" - } - } - } - }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -24918,11 +24651,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": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" - }, "ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", @@ -25468,16 +25196,6 @@ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.2.tgz", "integrity": "sha512-xmDt/QIAdeZ9+nfdPsaBCpMvHNLFiLdjj59qjqn+6iPe6YmHGQ35sBnQ8uslRBXFmXkiZQOJRjvQeoGppoTjjg==" }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -25599,21 +25317,6 @@ "yn": "3.1.1" } }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - }, "yargs": { "version": "17.5.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", @@ -26769,14 +26472,6 @@ "package-json": "^6.3.0" } }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "requires": { - "invert-kv": "^1.0.0" - } - }, "leven": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", @@ -26839,12 +26534,7 @@ "lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" - }, - "lodash.clone": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" }, "lodash.clonedeep": { "version": "4.5.0", @@ -27906,11 +27596,6 @@ "word-wrap": "~1.2.3" } }, - "optjs": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", - "integrity": "sha1-aabOicRCpEQDFBrS+bNwvVu29O4=" - }, "ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -27999,14 +27684,6 @@ } } }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "requires": { - "lcid": "^1.0.0" - } - }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", @@ -28725,9 +28402,9 @@ "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=" }, "protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.1.tgz", + "integrity": "sha512-L3pCItypTnPK27+CS8nuhZMYtsY+i8dqdq2vZsYHlG17CnWp1DWPQ/sos0vOKrj1fHEAzo3GBqSHLaeZyKUCDA==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -28739,15 +28416,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": { "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", + "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" } } }, @@ -31280,11 +30956,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": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" - }, "winston": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz", @@ -31365,12 +31036,64 @@ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" }, "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + } } }, "wrappy": { @@ -31437,9 +31160,9 @@ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" }, "y18n": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", - "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==" + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" }, "yallist": { "version": "4.0.0", @@ -31447,23 +31170,51 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", - "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" + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" }, "dependencies": { - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "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==" } } }, diff --git a/package.json b/package.json index 3d00600fb..488e2383f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "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 --fix --max-warnings 457" + "lint": "eslint src --fix --max-warnings 457", + "postinstall": "git apply protobuf_long.patch" }, "keywords": [], "author": "", @@ -37,7 +38,8 @@ }, "dependencies": { "@boltz/bolt11": "^1.2.7", - "@grpc/proto-loader": "^0.5.3", + "@grpc/grpc-js": "^1.8.7", + "@grpc/proto-loader": "^0.7.4", "@octokit/webhooks-types": "^5.2.0", "@scout_apm/scout-apm": "^0.1.10", "async": "^2.6.4", @@ -47,7 +49,6 @@ "bitcoin-address-validation": "^1.0.2", "blgr": "^0.2.0", "bolt11": "^1.3.1", - "bytebuffer": "^5.0.1", "change-case": "^4.1.1", "cookie-parser": "^1.4.4", "cors": "^2.8.5", @@ -61,7 +62,6 @@ "express-winston": "^4.0.2", "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", diff --git a/protobuf_long.patch b/protobuf_long.patch new file mode 100644 index 000000000..c1e51f83a --- /dev/null +++ b/protobuf_long.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/protobufjs/src/decoder.js b/node_modules/protobufjs/src/decoder.js +index 491dd30..cfaa927 100644 +--- a/node_modules/protobufjs/src/decoder.js ++++ b/node_modules/protobufjs/src/decoder.js +@@ -72,7 +72,7 @@ function decoder(mtype) { + ("}"); + + if (types.long[field.keyType] !== undefined) gen +- ("%s[typeof k===\"object\"?util.longToHash(k):k]=value", ref); ++ ("%s[util.Long.isLong(k)?k.toString():typeof k===\"object\"?util.longToHash(k):k]=value", ref); + else gen + ("%s[k]=value", ref); + diff --git a/src/controllers/invoices.ts b/src/controllers/invoices.ts index 42aa58d48..b1d5a7984 100644 --- a/src/controllers/invoices.ts +++ b/src/controllers/invoices.ts @@ -229,7 +229,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/grpc/greenlight.ts b/src/grpc/greenlight.ts index 70b19a939..f4bbc430b 100644 --- a/src/grpc/greenlight.ts +++ b/src/grpc/greenlight.ts @@ -1,8 +1,10 @@ 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' import * as crypto from 'crypto' import * as interfaces from './interfaces' import { loadLightning } from './lightning' @@ -27,7 +29,7 @@ export function keepalive(): void { }, 59000) } -let schedulerClient = null +// let schedulerClient: SchedulerClient | undefined const loadSchedulerCredentials = () => { const glCert = fs.readFileSync(config.scheduler_tls_location) @@ -36,19 +38,18 @@ 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', } - schedulerClient = new scheduler.Scheduler( + return new scheduler.Scheduler( '35.236.110.178:2601', loadSchedulerCredentials(), options ) - return schedulerClient } let GREENLIGHT_GRPC_URI = '' @@ -109,16 +110,16 @@ 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( { - node_id: ByteBuffer.fromHex(pubkey), + node_id: Buffer.from(pubkey, 'hex'), }, (err, response) => { // console.log('=> schedule', err, response); - if (!err) { + if (!err && response) { GREENLIGHT_GRPC_URI = response.grpc_uri resolve(response) } else { @@ -185,16 +186,16 @@ 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( { - node_id: ByteBuffer.fromHex(node_id), + node_id: Buffer.from(node_id, 'hex'), scope: 'REGISTER', }, (err, response) => { - if (!err) { + if (!err && response) { resolve(Buffer.from(response.challenge).toString('hex')) } else { reject(err) @@ -227,20 +228,20 @@ 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( { - node_id: ByteBuffer.fromHex(pubkey), - bip32_key: ByteBuffer.fromHex(bip32_key), + node_id: Buffer.from(pubkey, 'hex'), + bip32_key: Buffer.from(bip32_key, 'hex'), network: 'bitcoin', - challenge: ByteBuffer.fromHex(challenge), - signature: ByteBuffer.fromHex(signature), + challenge: Buffer.from(challenge, 'hex'), + signature: Buffer.from(signature, 'hex'), }, (err, response) => { sphinxLogger.info(`${err} ${response}`) - if (!err) { + if (!err && response) { resolve(response) } else { reject(err) @@ -258,18 +259,18 @@ 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( { - node_id: ByteBuffer.fromHex(pubkey), - challenge: ByteBuffer.fromHex(challenge), - signature: ByteBuffer.fromHex(signature), + node_id: Buffer.from(pubkey, 'hex'), + challenge: Buffer.from(challenge, 'hex'), + signature: Buffer.from(signature, 'hex'), }, (err, response) => { sphinxLogger.info(`${err} ${response}`) - if (!err) { + if (!err && response) { resolve(response) } else { reject(err) @@ -292,15 +293,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,10 +322,10 @@ export async function streamHsmRequests(): Promise { response.raw.toString('hex') ) } - lightning.respondHsmRequest( - { + ;(lightning).respondHsmRequest( + { request_id: response.request_id, - raw: ByteBuffer.fromHex(sig), + raw: Buffer.from(sig, 'hex'), }, (err, response) => { if (err) sphinxLogger.error(`[HSMD] error ${err}`) @@ -342,7 +340,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..10bd46e82 100644 --- a/src/grpc/interfaces.ts +++ b/src/grpc/interfaces.ts @@ -1,8 +1,8 @@ import { loadConfig } from '../utils/config' -import * as ByteBuffer from 'bytebuffer' import * as crypto from 'crypto' import { LND_KEYSEND_KEY } from './lightning' import * as long from 'long' +import type { SendRequest } from './types/lnrpc_proxy/SendRequest' const config = loadConfig() @@ -40,7 +40,7 @@ export interface GetInfoResponse { testnet: boolean } interface GreenlightAddress { - type: number + type: string addr: string port: number } @@ -173,16 +173,16 @@ 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 { incoming: boolean amount: string - hash_lock: Buf + hash_lock: Buffer expiration_height: number htlc_index: string forwarding_channel: string @@ -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 @@ -299,7 +299,7 @@ export function listChannelsRequest(args?: ListChannelsArgs): { } { const opts: { [k: string]: any } = args || {} if (args && args.peer) { - if (IS_LND) opts.peer = ByteBuffer.fromHex(args.peer) + if (IS_LND) opts.peer = Buffer.from(args.peer, 'hex') if (IS_GREENLIGHT) opts.node_id = args.peer } return opts @@ -313,7 +313,7 @@ export function listPeersRequest(args?: ListPeersArgs): { } { const opts: { [k: string]: any } = args || {} if (IS_GREENLIGHT && args && args.node_id) { - opts.node_id = ByteBuffer.fromHex(args.node_id) + opts.node_id = Buffer.from(args.node_id, 'hex') } return opts } @@ -350,22 +350,21 @@ export function listPeersResponse( return {} } -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 - dest_features: number[] + payment_hash: Buffer + dest_features: SendRequest['dest_features'] route_hints?: RouteHint[] fee_limit?: { [k: string]: number } fee_limit_sat?: number timeout_seconds?: number } interface GreenlightHop { - node_id: Buf + node_id: Buffer short_channel_id: string fee_base?: string fee_prop?: number @@ -374,10 +373,10 @@ interface GreenlightHop { type GreenlightRoutehint = GreenlightHop[] interface GreenlightTLV { type: string - value: Buf + value: Buffer } -interface GreenlightKeysendRequest { - node_id: Buf +export interface GreenlightKeysendRequest { + node_id: Buffer amount: GreenlightAmount label: string routehints?: GreenlightRoutehint[] @@ -397,7 +396,7 @@ export function keysendRequest( r.routehints = req.route_hints.map((rh) => { const hops: GreenlightHop[] = rh.hop_hints.map((hh) => { return { - node_id: ByteBuffer.fromHex(hh.node_id), + node_id: Buffer.from(hh.node_id, 'hex'), short_channel_id: shortChanIDfromInt64(hh.chan_id), fee_base: '1000', fee_prop: 1, @@ -440,9 +439,9 @@ export interface Route { } export interface SendPaymentResponse { payment_error: string - payment_preimage: Buf - payment_route: Route - payment_hash: Buf + payment_preimage: Buffer + payment_route: Route | null + payment_hash: Buffer } enum GreenlightPaymentStatus { PENDING = 0, @@ -450,9 +449,9 @@ enum GreenlightPaymentStatus { FAILED = 2, } export interface GreenlightPayment { - destination: Buf - payment_hash: Buf - payment_preimage: Buf + destination: Buffer + payment_hash: Buffer + payment_preimage: Buffer status: GreenlightPaymentStatus amount: GreenlightAmount amount_sent: GreenlightAmount @@ -496,26 +495,26 @@ 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 { memo: string - r_preimage: Buf - r_hash: Buf + r_preimage: Buffer + r_hash: Buffer value: string value_msat: string settled: boolean creation_date: string settle_date: string payment_request: string - description_hash: Buf + description_hash: Buffer expiry: string fallback_addr: string cltv_expiry: string @@ -526,7 +525,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 @@ -537,10 +536,10 @@ export interface Payment { } interface GreenlightOffchainPayment { label: string - preimage: Buf + preimage: Buffer amount: GreenlightAmount extratlvs: GreenlightTLV[] - payment_hash: Buf + payment_hash: Buffer bolt11: string } interface GreenlightIncomingPayment { @@ -590,7 +589,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 a11915b90..adb405852 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 { @@ -59,15 +80,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 @@ -75,60 +110,57 @@ 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 - walletUnlocker = new lnrpc.WalletUnlocker( + const lnrpcDescriptor = loadProto('walletunlocker') + const lnrpc = lnrpcDescriptor.lnrpc + return (walletUnlocker = new lnrpc.WalletUnlocker( LND_IP + ':' + config.lnd_port, credentials - ) - 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() + }) }) } @@ -165,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) => { // need to manually add 3 block padding // which is done behind the scenes in SendPayment @@ -193,7 +225,8 @@ export async function queryRoute( }, ] } - lightning.queryRoutes(options, (err, response) => { + // TODO remove any + ;(lightning).queryRoutes(options, (err, response) => { if (err) { reject(err) return @@ -213,7 +246,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 @@ -235,13 +269,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) { @@ -252,22 +286,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) @@ -301,27 +336,29 @@ export function keysend( return reject('keysend: invalid pubkey') } 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') }) } + if (opts.data) { + dest_custom_records[`${SPHINX_CUSTOM_RECORD_KEY}`] = Buffer.from( + opts.data, + 'utf-8' + ) + } const options: interfaces.KeysendRequest = { amt: Math.max(opts.amt, constants.min_sat_amount || 3), final_cltv_delta: constants.final_cltv_delta, - 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) - } // add in route hints if (opts.route_hint && opts.route_hint.includes(':')) { const arr = opts.route_hint.split(':') @@ -334,12 +371,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) { @@ -350,13 +387,27 @@ 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)) + // Type 'GreenlightRoutehint[]' is not assignable to type 'Routehint[]' + // from generated types: + // export interface Routehint { + // hops?: { + // node_id?: Buffer | Uint8Array | string + // short_channel_id?: string + // fee_base?: number | string | Long + // fee_prop?: number + // cltv_expiry_delta?: number + // }[] + //} + lightning.keysend(req, function (err, response) { + if (err == null && response) { + // TODO greenlight type + resolve(interfaces.keysendResponse(response)) } else { reject(err) } @@ -366,7 +417,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 @@ -396,18 +447,17 @@ 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 - routerClient = new router.Router( + const descriptor = loadProto('router') + const router = descriptor.routerrpc + return (routerClient = new router.Router( LND_IP + ':' + config.lnd_port, credentials - ) - return routerClient + )) } } @@ -479,7 +529,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, @@ -522,7 +573,7 @@ function listInvoicesPaginated( ): 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, @@ -566,7 +617,7 @@ export function listPaymentsPaginated( ): 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, @@ -580,13 +631,11 @@ export function listPaymentsPaginated( }) } -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 { @@ -608,6 +657,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) @@ -620,11 +670,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) @@ -658,6 +707,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) @@ -689,20 +739,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) @@ -725,12 +777,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 { @@ -770,8 +824,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) @@ -787,27 +841,54 @@ 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) @@ -816,42 +897,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) } @@ -899,21 +1011,38 @@ export async function complexBalances( 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) @@ -922,19 +1051,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..b8f07f236 --- /dev/null +++ b/src/grpc/types/greenlight.d.ts @@ -0,0 +1,92 @@ +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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + } +} diff --git a/src/grpc/types/greenlight/Address.d.ts b/src/grpc/types/greenlight/Address.d.ts new file mode 100644 index 000000000..6495bfd18 --- /dev/null +++ b/src/grpc/types/greenlight/Address.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/greenlight.proto + +import type { + NetAddressType as _greenlight_NetAddressType, + NetAddressType__Output as _greenlight_NetAddressType__Output, +} from '../greenlight/NetAddressType' + +export interface Address { + type?: _greenlight_NetAddressType + addr?: string + port?: number +} + +export interface Address__Output { + type: _greenlight_NetAddressType__Output + 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..e5a13ef15 --- /dev/null +++ b/src/grpc/types/greenlight/Amount.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/greenlight.proto + +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..7430c7dd7 --- /dev/null +++ b/src/grpc/types/greenlight/BitcoinAddress.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface BitcoinAddress { + address?: string +} + +export interface BitcoinAddress__Output { + address: string +} diff --git a/src/grpc/types/greenlight/BtcAddressType.ts b/src/grpc/types/greenlight/BtcAddressType.ts new file mode 100644 index 000000000..47579d958 --- /dev/null +++ b/src/grpc/types/greenlight/BtcAddressType.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +export const BtcAddressType = { + BECH32: 'BECH32', + P2SH_SEGWIT: 'P2SH_SEGWIT', +} as const + +export type BtcAddressType = 'BECH32' | 0 | 'P2SH_SEGWIT' | 1 + +export type BtcAddressType__Output = + typeof BtcAddressType[keyof typeof BtcAddressType] diff --git a/src/grpc/types/greenlight/Channel.d.ts b/src/grpc/types/greenlight/Channel.d.ts new file mode 100644 index 000000000..0663a99e2 --- /dev/null +++ b/src/grpc/types/greenlight/Channel.d.ts @@ -0,0 +1,46 @@ +// Original file: proto/greenlight.proto + +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..1db411d28 --- /dev/null +++ b/src/grpc/types/greenlight/CloseChannelRequest.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/greenlight.proto + +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..0917efc9c --- /dev/null +++ b/src/grpc/types/greenlight/CloseChannelResponse.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/greenlight.proto + +import type { + CloseChannelType as _greenlight_CloseChannelType, + CloseChannelType__Output as _greenlight_CloseChannelType__Output, +} from '../greenlight/CloseChannelType' + +export interface CloseChannelResponse { + close_type?: _greenlight_CloseChannelType + tx?: Buffer | Uint8Array | string + txid?: Buffer | Uint8Array | string +} + +export interface CloseChannelResponse__Output { + close_type: _greenlight_CloseChannelType__Output + tx: Buffer + txid: Buffer +} diff --git a/src/grpc/types/greenlight/CloseChannelType.ts b/src/grpc/types/greenlight/CloseChannelType.ts new file mode 100644 index 000000000..d31b1d496 --- /dev/null +++ b/src/grpc/types/greenlight/CloseChannelType.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +export const CloseChannelType = { + MUTUAL: 'MUTUAL', + UNILATERAL: 'UNILATERAL', +} as const + +export type CloseChannelType = 'MUTUAL' | 0 | 'UNILATERAL' | 1 + +export type CloseChannelType__Output = + typeof CloseChannelType[keyof typeof CloseChannelType] diff --git a/src/grpc/types/greenlight/Confirmation.d.ts b/src/grpc/types/greenlight/Confirmation.d.ts new file mode 100644 index 000000000..ea873cb2e --- /dev/null +++ b/src/grpc/types/greenlight/Confirmation.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +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..45aeeadea --- /dev/null +++ b/src/grpc/types/greenlight/ConnectRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +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..f6e1d394b --- /dev/null +++ b/src/grpc/types/greenlight/ConnectResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +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..20ad19fc6 --- /dev/null +++ b/src/grpc/types/greenlight/DisconnectRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +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..a5ed3ba80 --- /dev/null +++ b/src/grpc/types/greenlight/DisconnectResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface DisconnectResponse { + [k: string]: never +} + +export interface DisconnectResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/greenlight/Empty.d.ts b/src/grpc/types/greenlight/Empty.d.ts new file mode 100644 index 000000000..f8549d071 --- /dev/null +++ b/src/grpc/types/greenlight/Empty.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface Empty { + [k: string]: never +} + +export interface Empty__Output { + [k: string]: never +} diff --git a/src/grpc/types/greenlight/Feerate.d.ts b/src/grpc/types/greenlight/Feerate.d.ts new file mode 100644 index 000000000..d8d0adcd4 --- /dev/null +++ b/src/grpc/types/greenlight/Feerate.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/greenlight.proto + +import type { + FeeratePreset as _greenlight_FeeratePreset, + FeeratePreset__Output as _greenlight_FeeratePreset__Output, +} from '../greenlight/FeeratePreset' +import type { Long } from '@grpc/proto-loader' + +export interface Feerate { + preset?: _greenlight_FeeratePreset + perkw?: number | string | Long + perkb?: number | string | Long + value?: 'preset' | 'perkw' | 'perkb' +} + +export interface Feerate__Output { + preset?: _greenlight_FeeratePreset__Output + perkw?: string + perkb?: string + value: 'preset' | 'perkw' | 'perkb' +} diff --git a/src/grpc/types/greenlight/FeeratePreset.ts b/src/grpc/types/greenlight/FeeratePreset.ts new file mode 100644 index 000000000..988400a5d --- /dev/null +++ b/src/grpc/types/greenlight/FeeratePreset.ts @@ -0,0 +1,12 @@ +// Original file: proto/greenlight.proto + +export const FeeratePreset = { + NORMAL: 'NORMAL', + SLOW: 'SLOW', + URGENT: 'URGENT', +} as const + +export type FeeratePreset = 'NORMAL' | 0 | 'SLOW' | 1 | 'URGENT' | 2 + +export type FeeratePreset__Output = + typeof FeeratePreset[keyof typeof FeeratePreset] diff --git a/src/grpc/types/greenlight/FundChannelRequest.d.ts b/src/grpc/types/greenlight/FundChannelRequest.d.ts new file mode 100644 index 000000000..0b9557280 --- /dev/null +++ b/src/grpc/types/greenlight/FundChannelRequest.d.ts @@ -0,0 +1,32 @@ +// Original file: proto/greenlight.proto + +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..6c6b3ca65 --- /dev/null +++ b/src/grpc/types/greenlight/FundChannelResponse.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/greenlight.proto + +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..d8a55040c --- /dev/null +++ b/src/grpc/types/greenlight/GetInfoRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface GetInfoRequest { + [k: string]: never +} + +export interface GetInfoRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/greenlight/GetInfoResponse.d.ts b/src/grpc/types/greenlight/GetInfoResponse.d.ts new file mode 100644 index 000000000..cf2f6fa65 --- /dev/null +++ b/src/grpc/types/greenlight/GetInfoResponse.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/greenlight.proto + +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..d4b392c14 --- /dev/null +++ b/src/grpc/types/greenlight/Hsm.d.ts @@ -0,0 +1,124 @@ +// Original file: proto/greenlight.proto + +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..49dda99b6 --- /dev/null +++ b/src/grpc/types/greenlight/HsmRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/greenlight.proto + +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..42a3578db --- /dev/null +++ b/src/grpc/types/greenlight/HsmRequestContext.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/greenlight.proto + +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..500e8ed58 --- /dev/null +++ b/src/grpc/types/greenlight/HsmResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +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..843526d71 --- /dev/null +++ b/src/grpc/types/greenlight/Htlc.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/greenlight.proto + +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..104002164 --- /dev/null +++ b/src/grpc/types/greenlight/IncomingPayment.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/greenlight.proto + +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..0362a7ecc --- /dev/null +++ b/src/grpc/types/greenlight/Invoice.d.ts @@ -0,0 +1,36 @@ +// Original file: proto/greenlight.proto + +import type { + Amount as _greenlight_Amount, + Amount__Output as _greenlight_Amount__Output, +} from '../greenlight/Amount' +import type { + InvoiceStatus as _greenlight_InvoiceStatus, + InvoiceStatus__Output as _greenlight_InvoiceStatus__Output, +} from '../greenlight/InvoiceStatus' + +export interface Invoice { + label?: string + description?: string + amount?: _greenlight_Amount | null + received?: _greenlight_Amount | null + status?: _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: _greenlight_InvoiceStatus__Output + 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..3b9d18601 --- /dev/null +++ b/src/grpc/types/greenlight/InvoiceIdentifier.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/greenlight.proto + +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..d5145c07f --- /dev/null +++ b/src/grpc/types/greenlight/InvoiceRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/greenlight.proto + +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.ts b/src/grpc/types/greenlight/InvoiceStatus.ts new file mode 100644 index 000000000..960a8ac8b --- /dev/null +++ b/src/grpc/types/greenlight/InvoiceStatus.ts @@ -0,0 +1,12 @@ +// Original file: proto/greenlight.proto + +export const InvoiceStatus = { + UNPAID: 'UNPAID', + PAID: 'PAID', + EXPIRED: 'EXPIRED', +} as const + +export type InvoiceStatus = 'UNPAID' | 0 | 'PAID' | 1 | 'EXPIRED' | 2 + +export type InvoiceStatus__Output = + typeof InvoiceStatus[keyof typeof InvoiceStatus] diff --git a/src/grpc/types/greenlight/KeysendRequest.d.ts b/src/grpc/types/greenlight/KeysendRequest.d.ts new file mode 100644 index 000000000..53856a970 --- /dev/null +++ b/src/grpc/types/greenlight/KeysendRequest.d.ts @@ -0,0 +1,30 @@ +// Original file: proto/greenlight.proto + +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..8c8cbe1a6 --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsChannel.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/greenlight.proto + +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..c7d8eb74a --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsOutput.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/greenlight.proto + +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, + OutputStatus__Output as _greenlight_OutputStatus__Output, +} from '../greenlight/OutputStatus' + +export interface ListFundsOutput { + output?: _greenlight_Outpoint | null + amount?: _greenlight_Amount | null + address?: string + status?: _greenlight_OutputStatus +} + +export interface ListFundsOutput__Output { + output: _greenlight_Outpoint__Output | null + amount: _greenlight_Amount__Output | null + address: string + status: _greenlight_OutputStatus__Output +} diff --git a/src/grpc/types/greenlight/ListFundsRequest.d.ts b/src/grpc/types/greenlight/ListFundsRequest.d.ts new file mode 100644 index 000000000..edeb5186b --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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..d286694cb --- /dev/null +++ b/src/grpc/types/greenlight/ListFundsResponse.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/greenlight.proto + +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..0221f8d61 --- /dev/null +++ b/src/grpc/types/greenlight/ListInvoicesRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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..b7d9ffe57 --- /dev/null +++ b/src/grpc/types/greenlight/ListInvoicesResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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..33a427cea --- /dev/null +++ b/src/grpc/types/greenlight/ListPaymentsRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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..e07c84918 --- /dev/null +++ b/src/grpc/types/greenlight/ListPaymentsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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..3c56ef2ea --- /dev/null +++ b/src/grpc/types/greenlight/ListPeersRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +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..e9ffb40c8 --- /dev/null +++ b/src/grpc/types/greenlight/ListPeersResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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.ts b/src/grpc/types/greenlight/NetAddressType.ts new file mode 100644 index 000000000..988a4b07b --- /dev/null +++ b/src/grpc/types/greenlight/NetAddressType.ts @@ -0,0 +1,13 @@ +// Original file: proto/greenlight.proto + +export const NetAddressType = { + Ipv4: 'Ipv4', + Ipv6: 'Ipv6', + TorV2: 'TorV2', + TorV3: 'TorV3', +} as const + +export type NetAddressType = 'Ipv4' | 0 | 'Ipv6' | 1 | 'TorV2' | 2 | 'TorV3' | 3 + +export type NetAddressType__Output = + typeof NetAddressType[keyof typeof NetAddressType] diff --git a/src/grpc/types/greenlight/NewAddrRequest.d.ts b/src/grpc/types/greenlight/NewAddrRequest.d.ts new file mode 100644 index 000000000..1896f92e2 --- /dev/null +++ b/src/grpc/types/greenlight/NewAddrRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +import type { + BtcAddressType as _greenlight_BtcAddressType, + BtcAddressType__Output as _greenlight_BtcAddressType__Output, +} from '../greenlight/BtcAddressType' + +export interface NewAddrRequest { + address_type?: _greenlight_BtcAddressType +} + +export interface NewAddrRequest__Output { + address_type: _greenlight_BtcAddressType__Output +} diff --git a/src/grpc/types/greenlight/NewAddrResponse.d.ts b/src/grpc/types/greenlight/NewAddrResponse.d.ts new file mode 100644 index 000000000..03fa2dd94 --- /dev/null +++ b/src/grpc/types/greenlight/NewAddrResponse.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/greenlight.proto + +import type { + BtcAddressType as _greenlight_BtcAddressType, + BtcAddressType__Output as _greenlight_BtcAddressType__Output, +} from '../greenlight/BtcAddressType' + +export interface NewAddrResponse { + address_type?: _greenlight_BtcAddressType + address?: string +} + +export interface NewAddrResponse__Output { + address_type: _greenlight_BtcAddressType__Output + 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..f509d8bf3 --- /dev/null +++ b/src/grpc/types/greenlight/Node.d.ts @@ -0,0 +1,1036 @@ +// Original file: proto/greenlight.proto + +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..d1f84b25e --- /dev/null +++ b/src/grpc/types/greenlight/OffChainPayment.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/greenlight.proto + +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..45b15a1e3 --- /dev/null +++ b/src/grpc/types/greenlight/Outpoint.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +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.ts b/src/grpc/types/greenlight/OutputStatus.ts new file mode 100644 index 000000000..0d1c8ae25 --- /dev/null +++ b/src/grpc/types/greenlight/OutputStatus.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +export const OutputStatus = { + CONFIRMED: 'CONFIRMED', + UNCONFIRMED: 'UNCONFIRMED', +} as const + +export type OutputStatus = 'CONFIRMED' | 0 | 'UNCONFIRMED' | 1 + +export type OutputStatus__Output = + typeof OutputStatus[keyof typeof OutputStatus] diff --git a/src/grpc/types/greenlight/PayRequest.d.ts b/src/grpc/types/greenlight/PayRequest.d.ts new file mode 100644 index 000000000..df8f70c60 --- /dev/null +++ b/src/grpc/types/greenlight/PayRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/greenlight.proto + +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.ts b/src/grpc/types/greenlight/PayStatus.ts new file mode 100644 index 000000000..d6664fdda --- /dev/null +++ b/src/grpc/types/greenlight/PayStatus.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +export const PayStatus = { + PENDING: 'PENDING', + COMPLETE: 'COMPLETE', + FAILED: 'FAILED', +} as const + +export type PayStatus = 'PENDING' | 0 | 'COMPLETE' | 1 | 'FAILED' | 2 + +export type PayStatus__Output = typeof PayStatus[keyof typeof PayStatus] diff --git a/src/grpc/types/greenlight/Payment.d.ts b/src/grpc/types/greenlight/Payment.d.ts new file mode 100644 index 000000000..b84bc24d0 --- /dev/null +++ b/src/grpc/types/greenlight/Payment.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/greenlight.proto + +import type { + PayStatus as _greenlight_PayStatus, + PayStatus__Output as _greenlight_PayStatus__Output, +} 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 + amount?: _greenlight_Amount | null + amount_sent?: _greenlight_Amount | null +} + +export interface Payment__Output { + destination: Buffer + payment_hash: Buffer + payment_preimage: Buffer + status: _greenlight_PayStatus__Output + 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..8fefcf35e --- /dev/null +++ b/src/grpc/types/greenlight/PaymentIdentifier.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/greenlight.proto + +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..cd9895b39 --- /dev/null +++ b/src/grpc/types/greenlight/Peer.d.ts @@ -0,0 +1,26 @@ +// Original file: proto/greenlight.proto + +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..5f5dfe310 --- /dev/null +++ b/src/grpc/types/greenlight/Routehint.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/greenlight.proto + +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..0b0d703fb --- /dev/null +++ b/src/grpc/types/greenlight/RoutehintHop.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/greenlight.proto + +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..7eebc5b09 --- /dev/null +++ b/src/grpc/types/greenlight/StopRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface StopRequest { + [k: string]: never +} + +export interface StopRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/greenlight/StopResponse.d.ts b/src/grpc/types/greenlight/StopResponse.d.ts new file mode 100644 index 000000000..a7f566356 --- /dev/null +++ b/src/grpc/types/greenlight/StopResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface StopResponse { + [k: string]: never +} + +export interface StopResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/greenlight/StreamIncomingFilter.d.ts b/src/grpc/types/greenlight/StreamIncomingFilter.d.ts new file mode 100644 index 000000000..e63abc6e6 --- /dev/null +++ b/src/grpc/types/greenlight/StreamIncomingFilter.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +export interface StreamIncomingFilter { + [k: string]: never +} + +export interface StreamIncomingFilter__Output { + [k: string]: never +} diff --git a/src/grpc/types/greenlight/Timeout.d.ts b/src/grpc/types/greenlight/Timeout.d.ts new file mode 100644 index 000000000..90cd08225 --- /dev/null +++ b/src/grpc/types/greenlight/Timeout.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/greenlight.proto + +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..6a132a3bf --- /dev/null +++ b/src/grpc/types/greenlight/TlvField.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/greenlight.proto + +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..9ccbd8846 --- /dev/null +++ b/src/grpc/types/greenlight/WithdrawRequest.d.ts @@ -0,0 +1,34 @@ +// Original file: proto/greenlight.proto + +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..9b091fe01 --- /dev/null +++ b/src/grpc/types/greenlight/WithdrawResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/greenlight.proto + +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..20568579f --- /dev/null +++ b/src/grpc/types/lightning.d.ts @@ -0,0 +1,229 @@ +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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + LookupHtlcRequest: MessageTypeDefinition + LookupHtlcResponse: 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 + } +} diff --git a/src/grpc/types/lnrpc/AMP.d.ts b/src/grpc/types/lnrpc/AMP.d.ts new file mode 100644 index 000000000..a58dc2505 --- /dev/null +++ b/src/grpc/types/lnrpc/AMP.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/lightning.proto + +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..5b0e74927 --- /dev/null +++ b/src/grpc/types/lnrpc/AMPInvoiceState.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +import type { + InvoiceHTLCState as _lnrpc_InvoiceHTLCState, + InvoiceHTLCState__Output as _lnrpc_InvoiceHTLCState__Output, +} from '../lnrpc/InvoiceHTLCState' +import type { Long } from '@grpc/proto-loader' + +export interface AMPInvoiceState { + state?: _lnrpc_InvoiceHTLCState + settle_index?: number | string | Long + settle_time?: number | string | Long + amt_paid_msat?: number | string | Long +} + +export interface AMPInvoiceState__Output { + state: _lnrpc_InvoiceHTLCState__Output + 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..ec808abd8 --- /dev/null +++ b/src/grpc/types/lnrpc/AMPRecord.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..d91edafd7 --- /dev/null +++ b/src/grpc/types/lnrpc/AbandonChannelRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/lightning.proto + +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..533c3d66b --- /dev/null +++ b/src/grpc/types/lnrpc/AbandonChannelResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface AbandonChannelResponse { + [k: string]: never +} + +export interface AbandonChannelResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/AddInvoiceResponse.d.ts b/src/grpc/types/lnrpc/AddInvoiceResponse.d.ts new file mode 100644 index 000000000..7d350faa4 --- /dev/null +++ b/src/grpc/types/lnrpc/AddInvoiceResponse.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/AddressType.ts new file mode 100644 index 000000000..86e49b1f7 --- /dev/null +++ b/src/grpc/types/lnrpc/AddressType.ts @@ -0,0 +1,26 @@ +// Original file: proto/lightning.proto + +export const AddressType = { + WITNESS_PUBKEY_HASH: 'WITNESS_PUBKEY_HASH', + NESTED_PUBKEY_HASH: 'NESTED_PUBKEY_HASH', + UNUSED_WITNESS_PUBKEY_HASH: 'UNUSED_WITNESS_PUBKEY_HASH', + UNUSED_NESTED_PUBKEY_HASH: 'UNUSED_NESTED_PUBKEY_HASH', + TAPROOT_PUBKEY: 'TAPROOT_PUBKEY', + UNUSED_TAPROOT_PUBKEY: 'UNUSED_TAPROOT_PUBKEY', +} as const + +export type 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 + +export type AddressType__Output = typeof AddressType[keyof typeof AddressType] diff --git a/src/grpc/types/lnrpc/AliasMap.d.ts b/src/grpc/types/lnrpc/AliasMap.d.ts new file mode 100644 index 000000000..6a5cf393d --- /dev/null +++ b/src/grpc/types/lnrpc/AliasMap.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..39b572924 --- /dev/null +++ b/src/grpc/types/lnrpc/Amount.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..1e2e873eb --- /dev/null +++ b/src/grpc/types/lnrpc/BakeMacaroonRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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..bc896f125 --- /dev/null +++ b/src/grpc/types/lnrpc/BakeMacaroonResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..f8c6d9b4f --- /dev/null +++ b/src/grpc/types/lnrpc/BatchOpenChannel.d.ts @@ -0,0 +1,31 @@ +// Original file: proto/lightning.proto + +import type { + CommitmentType as _lnrpc_CommitmentType, + CommitmentType__Output as _lnrpc_CommitmentType__Output, +} 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 +} + +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: _lnrpc_CommitmentType__Output +} diff --git a/src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts b/src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts new file mode 100644 index 000000000..0f9e9da0d --- /dev/null +++ b/src/grpc/types/lnrpc/BatchOpenChannelRequest.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +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..ebab35524 --- /dev/null +++ b/src/grpc/types/lnrpc/BatchOpenChannelResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..492f6a74b --- /dev/null +++ b/src/grpc/types/lnrpc/Chain.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..5668766af --- /dev/null +++ b/src/grpc/types/lnrpc/ChanBackupExportRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ChanBackupExportRequest { + [k: string]: never +} + +export interface ChanBackupExportRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts b/src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts new file mode 100644 index 000000000..7d3307d51 --- /dev/null +++ b/src/grpc/types/lnrpc/ChanBackupSnapshot.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/lightning.proto + +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..ef4c74c59 --- /dev/null +++ b/src/grpc/types/lnrpc/ChanInfoRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..dd085b3a1 --- /dev/null +++ b/src/grpc/types/lnrpc/ChanPointShim.d.ts @@ -0,0 +1,29 @@ +// Original file: proto/lightning.proto + +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..448b0f628 --- /dev/null +++ b/src/grpc/types/lnrpc/ChangePasswordRequest.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/walletunlocker.proto + +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..96495963d --- /dev/null +++ b/src/grpc/types/lnrpc/ChangePasswordResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletunlocker.proto + +export interface ChangePasswordResponse { + admin_macaroon?: Buffer | Uint8Array | string +} + +export interface ChangePasswordResponse__Output { + admin_macaroon: Buffer +} diff --git a/src/grpc/types/lnrpc/Channel.ts b/src/grpc/types/lnrpc/Channel.ts new file mode 100644 index 000000000..e05aee4b2 --- /dev/null +++ b/src/grpc/types/lnrpc/Channel.ts @@ -0,0 +1,87 @@ +// Original file: proto/lightning.proto + +import type { + HTLC as _lnrpc_HTLC, + HTLC__Output as _lnrpc_HTLC__Output, +} from '../lnrpc/HTLC' +import type { + CommitmentType as _lnrpc_CommitmentType, + CommitmentType__Output as _lnrpc_CommitmentType__Output, +} 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 + 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: _lnrpc_CommitmentType__Output + 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..f70c677ff --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelAcceptRequest.d.ts @@ -0,0 +1,45 @@ +// Original file: proto/lightning.proto + +import type { + CommitmentType as _lnrpc_CommitmentType, + CommitmentType__Output as _lnrpc_CommitmentType__Output, +} 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 + 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: _lnrpc_CommitmentType__Output + 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..f5bbb1006 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelAcceptResponse.d.ts @@ -0,0 +1,31 @@ +// Original file: proto/lightning.proto + +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..a61f6acc9 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBackup.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/lightning.proto + +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..7d0128e80 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBackupSubscription.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ChannelBackupSubscription { + [k: string]: never +} + +export interface ChannelBackupSubscription__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ChannelBackups.d.ts b/src/grpc/types/lnrpc/ChannelBackups.d.ts new file mode 100644 index 000000000..87a780572 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBackups.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..b5c3ba524 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBalanceRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ChannelBalanceRequest { + [k: string]: never +} + +export interface ChannelBalanceRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts b/src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts new file mode 100644 index 000000000..a35eec22e --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelBalanceResponse.d.ts @@ -0,0 +1,29 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/ChannelCloseSummary.ts new file mode 100644 index 000000000..af729f46d --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelCloseSummary.ts @@ -0,0 +1,75 @@ +// Original file: proto/lightning.proto + +import type { + Initiator as _lnrpc_Initiator, + Initiator__Output as _lnrpc_Initiator__Output, +} 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' + +// Original file: proto/lightning.proto + +export const _lnrpc_ChannelCloseSummary_ClosureType = { + COOPERATIVE_CLOSE: 'COOPERATIVE_CLOSE', + LOCAL_FORCE_CLOSE: 'LOCAL_FORCE_CLOSE', + REMOTE_FORCE_CLOSE: 'REMOTE_FORCE_CLOSE', + BREACH_CLOSE: 'BREACH_CLOSE', + FUNDING_CANCELED: 'FUNDING_CANCELED', + ABANDONED: 'ABANDONED', +} as const + +export type _lnrpc_ChannelCloseSummary_ClosureType = + | 'COOPERATIVE_CLOSE' + | 0 + | 'LOCAL_FORCE_CLOSE' + | 1 + | 'REMOTE_FORCE_CLOSE' + | 2 + | 'BREACH_CLOSE' + | 3 + | 'FUNDING_CANCELED' + | 4 + | 'ABANDONED' + | 5 + +export type _lnrpc_ChannelCloseSummary_ClosureType__Output = + typeof _lnrpc_ChannelCloseSummary_ClosureType[keyof typeof _lnrpc_ChannelCloseSummary_ClosureType] + +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 + open_initiator?: _lnrpc_Initiator + close_initiator?: _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: _lnrpc_ChannelCloseSummary_ClosureType__Output + open_initiator: _lnrpc_Initiator__Output + close_initiator: _lnrpc_Initiator__Output + 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..3d50d74fb --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..29f15e08d --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelConstraints.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +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..d9a96a08c --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEdge.d.ts @@ -0,0 +1,31 @@ +// Original file: proto/lightning.proto + +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 + custom_records?: { [key: number]: Buffer | Uint8Array | string } +} + +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 + custom_records: { [key: number]: Buffer } +} diff --git a/src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts b/src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts new file mode 100644 index 000000000..c4407c23d --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEdgeUpdate.d.ts @@ -0,0 +1,29 @@ +// Original file: proto/lightning.proto + +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..a33612adb --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEventSubscription.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ChannelEventSubscription { + [k: string]: never +} + +export interface ChannelEventSubscription__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ChannelEventUpdate.ts b/src/grpc/types/lnrpc/ChannelEventUpdate.ts new file mode 100644 index 000000000..9854f33c7 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelEventUpdate.ts @@ -0,0 +1,80 @@ +// Original file: proto/lightning.proto + +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' + +// Original file: proto/lightning.proto + +export const _lnrpc_ChannelEventUpdate_UpdateType = { + OPEN_CHANNEL: 'OPEN_CHANNEL', + CLOSED_CHANNEL: 'CLOSED_CHANNEL', + ACTIVE_CHANNEL: 'ACTIVE_CHANNEL', + INACTIVE_CHANNEL: 'INACTIVE_CHANNEL', + PENDING_OPEN_CHANNEL: 'PENDING_OPEN_CHANNEL', + FULLY_RESOLVED_CHANNEL: 'FULLY_RESOLVED_CHANNEL', +} as const + +export type _lnrpc_ChannelEventUpdate_UpdateType = + | 'OPEN_CHANNEL' + | 0 + | 'CLOSED_CHANNEL' + | 1 + | 'ACTIVE_CHANNEL' + | 2 + | 'INACTIVE_CHANNEL' + | 3 + | 'PENDING_OPEN_CHANNEL' + | 4 + | 'FULLY_RESOLVED_CHANNEL' + | 5 + +export type _lnrpc_ChannelEventUpdate_UpdateType__Output = + typeof _lnrpc_ChannelEventUpdate_UpdateType[keyof typeof _lnrpc_ChannelEventUpdate_UpdateType] + +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 + 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: _lnrpc_ChannelEventUpdate_UpdateType__Output + 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..cdfad78e3 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelFeeReport.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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..a92b47d82 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelGraph.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/lightning.proto + +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..314d202f3 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelGraphRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..b936a5d7c --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelOpenUpdate.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..f17411ef2 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelPoint.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/lightning.proto + +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..26d0f90b8 --- /dev/null +++ b/src/grpc/types/lnrpc/ChannelUpdate.d.ts @@ -0,0 +1,33 @@ +// Original file: proto/lightning.proto + +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..99810379d --- /dev/null +++ b/src/grpc/types/lnrpc/CheckMacPermRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/lightning.proto + +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..7a3fa2ed0 --- /dev/null +++ b/src/grpc/types/lnrpc/CheckMacPermResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..4acb70617 --- /dev/null +++ b/src/grpc/types/lnrpc/CloseChannelRequest.d.ts @@ -0,0 +1,27 @@ +// Original file: proto/lightning.proto + +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..e60d44d63 --- /dev/null +++ b/src/grpc/types/lnrpc/CloseStatusUpdate.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/lightning.proto + +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..ba54545ba --- /dev/null +++ b/src/grpc/types/lnrpc/ClosedChannelUpdate.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +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..4a201c13d --- /dev/null +++ b/src/grpc/types/lnrpc/ClosedChannelsRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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..591410a91 --- /dev/null +++ b/src/grpc/types/lnrpc/ClosedChannelsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/CommitmentType.ts new file mode 100644 index 000000000..63e48174d --- /dev/null +++ b/src/grpc/types/lnrpc/CommitmentType.ts @@ -0,0 +1,24 @@ +// Original file: proto/lightning.proto + +export const CommitmentType = { + UNKNOWN_COMMITMENT_TYPE: 'UNKNOWN_COMMITMENT_TYPE', + LEGACY: 'LEGACY', + STATIC_REMOTE_KEY: 'STATIC_REMOTE_KEY', + ANCHORS: 'ANCHORS', + SCRIPT_ENFORCED_LEASE: 'SCRIPT_ENFORCED_LEASE', +} as const + +export type CommitmentType = + | 'UNKNOWN_COMMITMENT_TYPE' + | 0 + | 'LEGACY' + | 1 + | 'STATIC_REMOTE_KEY' + | 2 + | 'ANCHORS' + | 3 + | 'SCRIPT_ENFORCED_LEASE' + | 4 + +export type CommitmentType__Output = + typeof CommitmentType[keyof typeof CommitmentType] diff --git a/src/grpc/types/lnrpc/ConfirmationUpdate.d.ts b/src/grpc/types/lnrpc/ConfirmationUpdate.d.ts new file mode 100644 index 000000000..79242b94c --- /dev/null +++ b/src/grpc/types/lnrpc/ConfirmationUpdate.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..7e6cba0f0 --- /dev/null +++ b/src/grpc/types/lnrpc/ConnectPeerRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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..c2b39a3a6 --- /dev/null +++ b/src/grpc/types/lnrpc/ConnectPeerResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ConnectPeerResponse { + [k: string]: never +} + +export interface ConnectPeerResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/CustomMessage.d.ts b/src/grpc/types/lnrpc/CustomMessage.d.ts new file mode 100644 index 000000000..e88e73ff3 --- /dev/null +++ b/src/grpc/types/lnrpc/CustomMessage.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..63dbb3140 --- /dev/null +++ b/src/grpc/types/lnrpc/DebugLevelRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..b9cfc28ad --- /dev/null +++ b/src/grpc/types/lnrpc/DebugLevelResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..56c757a95 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteAllPaymentsRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..a39986cab --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteAllPaymentsResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface DeleteAllPaymentsResponse { + [k: string]: never +} + +export interface DeleteAllPaymentsResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts b/src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts new file mode 100644 index 000000000..a8fd393d3 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..b0b406929 --- /dev/null +++ b/src/grpc/types/lnrpc/DeleteMacaroonIDResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..222dc8245 --- /dev/null +++ b/src/grpc/types/lnrpc/DeletePaymentRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..85434d4e4 --- /dev/null +++ b/src/grpc/types/lnrpc/DeletePaymentResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface DeletePaymentResponse { + [k: string]: never +} + +export interface DeletePaymentResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts b/src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts new file mode 100644 index 000000000..9bea0cfb7 --- /dev/null +++ b/src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..6d7797339 --- /dev/null +++ b/src/grpc/types/lnrpc/DisconnectPeerResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface DisconnectPeerResponse { + [k: string]: never +} + +export interface DisconnectPeerResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/EdgeLocator.d.ts b/src/grpc/types/lnrpc/EdgeLocator.d.ts new file mode 100644 index 000000000..27777dfee --- /dev/null +++ b/src/grpc/types/lnrpc/EdgeLocator.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..1260b7e59 --- /dev/null +++ b/src/grpc/types/lnrpc/EstimateFeeRequest.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/lightning.proto + +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..db7aa6266 --- /dev/null +++ b/src/grpc/types/lnrpc/EstimateFeeResponse.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/lightning.proto + +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..5ecf97480 --- /dev/null +++ b/src/grpc/types/lnrpc/ExportChannelBackupRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..5ab74684d --- /dev/null +++ b/src/grpc/types/lnrpc/FailedUpdate.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/lightning.proto + +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { + UpdateFailure as _lnrpc_UpdateFailure, + UpdateFailure__Output as _lnrpc_UpdateFailure__Output, +} from '../lnrpc/UpdateFailure' + +export interface FailedUpdate { + outpoint?: _lnrpc_OutPoint | null + reason?: _lnrpc_UpdateFailure + update_error?: string +} + +export interface FailedUpdate__Output { + outpoint: _lnrpc_OutPoint__Output | null + reason: _lnrpc_UpdateFailure__Output + update_error: string +} diff --git a/src/grpc/types/lnrpc/Failure.ts b/src/grpc/types/lnrpc/Failure.ts new file mode 100644 index 000000000..b719111a7 --- /dev/null +++ b/src/grpc/types/lnrpc/Failure.ts @@ -0,0 +1,123 @@ +// Original file: proto/lightning.proto + +import type { + ChannelUpdate as _lnrpc_ChannelUpdate, + ChannelUpdate__Output as _lnrpc_ChannelUpdate__Output, +} from '../lnrpc/ChannelUpdate' +import type { Long } from '@grpc/proto-loader' + +// Original file: proto/lightning.proto + +export const _lnrpc_Failure_FailureCode = { + RESERVED: 'RESERVED', + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS: 'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS', + INCORRECT_PAYMENT_AMOUNT: 'INCORRECT_PAYMENT_AMOUNT', + FINAL_INCORRECT_CLTV_EXPIRY: 'FINAL_INCORRECT_CLTV_EXPIRY', + FINAL_INCORRECT_HTLC_AMOUNT: 'FINAL_INCORRECT_HTLC_AMOUNT', + FINAL_EXPIRY_TOO_SOON: 'FINAL_EXPIRY_TOO_SOON', + INVALID_REALM: 'INVALID_REALM', + EXPIRY_TOO_SOON: 'EXPIRY_TOO_SOON', + INVALID_ONION_VERSION: 'INVALID_ONION_VERSION', + INVALID_ONION_HMAC: 'INVALID_ONION_HMAC', + INVALID_ONION_KEY: 'INVALID_ONION_KEY', + AMOUNT_BELOW_MINIMUM: 'AMOUNT_BELOW_MINIMUM', + FEE_INSUFFICIENT: 'FEE_INSUFFICIENT', + INCORRECT_CLTV_EXPIRY: 'INCORRECT_CLTV_EXPIRY', + CHANNEL_DISABLED: 'CHANNEL_DISABLED', + TEMPORARY_CHANNEL_FAILURE: 'TEMPORARY_CHANNEL_FAILURE', + REQUIRED_NODE_FEATURE_MISSING: 'REQUIRED_NODE_FEATURE_MISSING', + REQUIRED_CHANNEL_FEATURE_MISSING: 'REQUIRED_CHANNEL_FEATURE_MISSING', + UNKNOWN_NEXT_PEER: 'UNKNOWN_NEXT_PEER', + TEMPORARY_NODE_FAILURE: 'TEMPORARY_NODE_FAILURE', + PERMANENT_NODE_FAILURE: 'PERMANENT_NODE_FAILURE', + PERMANENT_CHANNEL_FAILURE: 'PERMANENT_CHANNEL_FAILURE', + EXPIRY_TOO_FAR: 'EXPIRY_TOO_FAR', + MPP_TIMEOUT: 'MPP_TIMEOUT', + INVALID_ONION_PAYLOAD: 'INVALID_ONION_PAYLOAD', + INTERNAL_FAILURE: 'INTERNAL_FAILURE', + UNKNOWN_FAILURE: 'UNKNOWN_FAILURE', + UNREADABLE_FAILURE: 'UNREADABLE_FAILURE', +} as const + +export type _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 type _lnrpc_Failure_FailureCode__Output = + typeof _lnrpc_Failure_FailureCode[keyof typeof _lnrpc_Failure_FailureCode] + +export interface Failure { + code?: _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: _lnrpc_Failure_FailureCode__Output + 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..a0d6c0f94 --- /dev/null +++ b/src/grpc/types/lnrpc/Feature.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/FeatureBit.ts new file mode 100644 index 000000000..d0d67621d --- /dev/null +++ b/src/grpc/types/lnrpc/FeatureBit.ts @@ -0,0 +1,83 @@ +// Original file: proto/lightning.proto + +export const FeatureBit = { + DATALOSS_PROTECT_REQ: 'DATALOSS_PROTECT_REQ', + DATALOSS_PROTECT_OPT: 'DATALOSS_PROTECT_OPT', + INITIAL_ROUING_SYNC: 'INITIAL_ROUING_SYNC', + UPFRONT_SHUTDOWN_SCRIPT_REQ: 'UPFRONT_SHUTDOWN_SCRIPT_REQ', + UPFRONT_SHUTDOWN_SCRIPT_OPT: 'UPFRONT_SHUTDOWN_SCRIPT_OPT', + GOSSIP_QUERIES_REQ: 'GOSSIP_QUERIES_REQ', + GOSSIP_QUERIES_OPT: 'GOSSIP_QUERIES_OPT', + TLV_ONION_REQ: 'TLV_ONION_REQ', + TLV_ONION_OPT: 'TLV_ONION_OPT', + EXT_GOSSIP_QUERIES_REQ: 'EXT_GOSSIP_QUERIES_REQ', + EXT_GOSSIP_QUERIES_OPT: 'EXT_GOSSIP_QUERIES_OPT', + STATIC_REMOTE_KEY_REQ: 'STATIC_REMOTE_KEY_REQ', + STATIC_REMOTE_KEY_OPT: 'STATIC_REMOTE_KEY_OPT', + PAYMENT_ADDR_REQ: 'PAYMENT_ADDR_REQ', + PAYMENT_ADDR_OPT: 'PAYMENT_ADDR_OPT', + MPP_REQ: 'MPP_REQ', + MPP_OPT: 'MPP_OPT', + WUMBO_CHANNELS_REQ: 'WUMBO_CHANNELS_REQ', + WUMBO_CHANNELS_OPT: 'WUMBO_CHANNELS_OPT', + ANCHORS_REQ: 'ANCHORS_REQ', + ANCHORS_OPT: 'ANCHORS_OPT', + ANCHORS_ZERO_FEE_HTLC_REQ: 'ANCHORS_ZERO_FEE_HTLC_REQ', + ANCHORS_ZERO_FEE_HTLC_OPT: 'ANCHORS_ZERO_FEE_HTLC_OPT', + AMP_REQ: 'AMP_REQ', + AMP_OPT: 'AMP_OPT', +} as const + +export type 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 + +export type FeatureBit__Output = typeof FeatureBit[keyof typeof FeatureBit] diff --git a/src/grpc/types/lnrpc/FeeLimit.d.ts b/src/grpc/types/lnrpc/FeeLimit.d.ts new file mode 100644 index 000000000..8a5f02565 --- /dev/null +++ b/src/grpc/types/lnrpc/FeeLimit.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/lightning.proto + +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..959b4e967 --- /dev/null +++ b/src/grpc/types/lnrpc/FeeReportRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface FeeReportRequest { + [k: string]: never +} + +export interface FeeReportRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/FeeReportResponse.d.ts b/src/grpc/types/lnrpc/FeeReportResponse.d.ts new file mode 100644 index 000000000..e02f69e4b --- /dev/null +++ b/src/grpc/types/lnrpc/FeeReportResponse.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +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..a007c2797 --- /dev/null +++ b/src/grpc/types/lnrpc/FloatMetric.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..dc329055a --- /dev/null +++ b/src/grpc/types/lnrpc/ForwardingEvent.d.ts @@ -0,0 +1,33 @@ +// Original file: proto/lightning.proto + +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 + peer_alias_in?: string + peer_alias_out?: string +} + +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 + peer_alias_in: string + peer_alias_out: 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..6b8a72777 --- /dev/null +++ b/src/grpc/types/lnrpc/ForwardingHistoryRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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 + peer_alias_lookup?: boolean +} + +export interface ForwardingHistoryRequest__Output { + start_time: string + end_time: string + index_offset: number + num_max_events: number + peer_alias_lookup: boolean +} diff --git a/src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts b/src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts new file mode 100644 index 000000000..fb6244ed3 --- /dev/null +++ b/src/grpc/types/lnrpc/ForwardingHistoryResponse.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/lightning.proto + +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..c4f8f8cb8 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..772ab7704 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingPsbtVerify.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..d33834752 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingShim.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/lightning.proto + +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..b00b15ff9 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingShimCancel.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..ef48179d3 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingStateStepResp.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface FundingStateStepResp { + [k: string]: never +} + +export interface FundingStateStepResp__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/FundingTransitionMsg.d.ts b/src/grpc/types/lnrpc/FundingTransitionMsg.d.ts new file mode 100644 index 000000000..ece4befe6 --- /dev/null +++ b/src/grpc/types/lnrpc/FundingTransitionMsg.d.ts @@ -0,0 +1,34 @@ +// Original file: proto/lightning.proto + +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..6e38ee1c7 --- /dev/null +++ b/src/grpc/types/lnrpc/GenSeedRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletunlocker.proto + +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..92ba76edb --- /dev/null +++ b/src/grpc/types/lnrpc/GenSeedResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletunlocker.proto + +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..93ffa72fd --- /dev/null +++ b/src/grpc/types/lnrpc/GetInfoRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface GetInfoRequest { + [k: string]: never +} + +export interface GetInfoRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/GetInfoResponse.d.ts b/src/grpc/types/lnrpc/GetInfoResponse.d.ts new file mode 100644 index 000000000..ffdfab42a --- /dev/null +++ b/src/grpc/types/lnrpc/GetInfoResponse.d.ts @@ -0,0 +1,55 @@ +// Original file: proto/lightning.proto + +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..4665e1735 --- /dev/null +++ b/src/grpc/types/lnrpc/GetRecoveryInfoRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface GetRecoveryInfoRequest { + [k: string]: never +} + +export interface GetRecoveryInfoRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts b/src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts new file mode 100644 index 000000000..6966f69e6 --- /dev/null +++ b/src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..649e5eafe --- /dev/null +++ b/src/grpc/types/lnrpc/GetTransactionsRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..2f755b695 --- /dev/null +++ b/src/grpc/types/lnrpc/GraphTopologySubscription.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface GraphTopologySubscription { + [k: string]: never +} + +export interface GraphTopologySubscription__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts b/src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts new file mode 100644 index 000000000..eba3e8ce3 --- /dev/null +++ b/src/grpc/types/lnrpc/GraphTopologyUpdate.d.ts @@ -0,0 +1,26 @@ +// Original file: proto/lightning.proto + +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..2069ca94d --- /dev/null +++ b/src/grpc/types/lnrpc/HTLC.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/HTLCAttempt.ts new file mode 100644 index 000000000..d162970e4 --- /dev/null +++ b/src/grpc/types/lnrpc/HTLCAttempt.ts @@ -0,0 +1,50 @@ +// Original file: proto/lightning.proto + +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' + +// Original file: proto/lightning.proto + +export const _lnrpc_HTLCAttempt_HTLCStatus = { + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +} as const + +export type _lnrpc_HTLCAttempt_HTLCStatus = + | 'IN_FLIGHT' + | 0 + | 'SUCCEEDED' + | 1 + | 'FAILED' + | 2 + +export type _lnrpc_HTLCAttempt_HTLCStatus__Output = + typeof _lnrpc_HTLCAttempt_HTLCStatus[keyof typeof _lnrpc_HTLCAttempt_HTLCStatus] + +export interface HTLCAttempt { + status?: _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: _lnrpc_HTLCAttempt_HTLCStatus__Output + 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..0e70752ef --- /dev/null +++ b/src/grpc/types/lnrpc/Hop.d.ts @@ -0,0 +1,43 @@ +// Original file: proto/lightning.proto + +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..f43499b38 --- /dev/null +++ b/src/grpc/types/lnrpc/HopHint.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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..09379e76d --- /dev/null +++ b/src/grpc/types/lnrpc/InitWalletRequest.d.ts @@ -0,0 +1,37 @@ +// Original file: proto/walletunlocker.proto + +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..fd5a3d8d0 --- /dev/null +++ b/src/grpc/types/lnrpc/InitWalletResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletunlocker.proto + +export interface InitWalletResponse { + admin_macaroon?: Buffer | Uint8Array | string +} + +export interface InitWalletResponse__Output { + admin_macaroon: Buffer +} diff --git a/src/grpc/types/lnrpc/Initiator.ts b/src/grpc/types/lnrpc/Initiator.ts new file mode 100644 index 000000000..3101e300e --- /dev/null +++ b/src/grpc/types/lnrpc/Initiator.ts @@ -0,0 +1,20 @@ +// Original file: proto/lightning.proto + +export const Initiator = { + INITIATOR_UNKNOWN: 'INITIATOR_UNKNOWN', + INITIATOR_LOCAL: 'INITIATOR_LOCAL', + INITIATOR_REMOTE: 'INITIATOR_REMOTE', + INITIATOR_BOTH: 'INITIATOR_BOTH', +} as const + +export type Initiator = + | 'INITIATOR_UNKNOWN' + | 0 + | 'INITIATOR_LOCAL' + | 1 + | 'INITIATOR_REMOTE' + | 2 + | 'INITIATOR_BOTH' + | 3 + +export type Initiator__Output = typeof Initiator[keyof typeof Initiator] diff --git a/src/grpc/types/lnrpc/InterceptFeedback.d.ts b/src/grpc/types/lnrpc/InterceptFeedback.d.ts new file mode 100644 index 000000000..c096d657b --- /dev/null +++ b/src/grpc/types/lnrpc/InterceptFeedback.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/Invoice.ts new file mode 100644 index 000000000..185ce4fa1 --- /dev/null +++ b/src/grpc/types/lnrpc/Invoice.ts @@ -0,0 +1,101 @@ +// Original file: proto/lightning.proto + +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' + +// Original file: proto/lightning.proto + +export const _lnrpc_Invoice_InvoiceState = { + OPEN: 'OPEN', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', + ACCEPTED: 'ACCEPTED', +} as const + +export type _lnrpc_Invoice_InvoiceState = + | 'OPEN' + | 0 + | 'SETTLED' + | 1 + | 'CANCELED' + | 2 + | 'ACCEPTED' + | 3 + +export type _lnrpc_Invoice_InvoiceState__Output = + typeof _lnrpc_Invoice_InvoiceState[keyof typeof _lnrpc_Invoice_InvoiceState] + +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 + 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: _lnrpc_Invoice_InvoiceState__Output + 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..5bd9c77f3 --- /dev/null +++ b/src/grpc/types/lnrpc/InvoiceHTLC.d.ts @@ -0,0 +1,39 @@ +// Original file: proto/lightning.proto + +import type { + InvoiceHTLCState as _lnrpc_InvoiceHTLCState, + InvoiceHTLCState__Output as _lnrpc_InvoiceHTLCState__Output, +} 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 + 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: _lnrpc_InvoiceHTLCState__Output + custom_records: { [key: number]: Buffer } + mpp_total_amt_msat: string + amp: _lnrpc_AMP__Output | null +} diff --git a/src/grpc/types/lnrpc/InvoiceHTLCState.ts b/src/grpc/types/lnrpc/InvoiceHTLCState.ts new file mode 100644 index 000000000..12d4f65de --- /dev/null +++ b/src/grpc/types/lnrpc/InvoiceHTLCState.ts @@ -0,0 +1,12 @@ +// Original file: proto/lightning.proto + +export const InvoiceHTLCState = { + ACCEPTED: 'ACCEPTED', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', +} as const + +export type InvoiceHTLCState = 'ACCEPTED' | 0 | 'SETTLED' | 1 | 'CANCELED' | 2 + +export type InvoiceHTLCState__Output = + typeof InvoiceHTLCState[keyof typeof InvoiceHTLCState] diff --git a/src/grpc/types/lnrpc/InvoiceSubscription.d.ts b/src/grpc/types/lnrpc/InvoiceSubscription.d.ts new file mode 100644 index 000000000..3aa9960a2 --- /dev/null +++ b/src/grpc/types/lnrpc/InvoiceSubscription.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..3e7d1082a --- /dev/null +++ b/src/grpc/types/lnrpc/KeyDescriptor.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/lightning.proto + +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..cb4e4efdf --- /dev/null +++ b/src/grpc/types/lnrpc/KeyLocator.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..ee2bd0c87 --- /dev/null +++ b/src/grpc/types/lnrpc/Lightning.d.ts @@ -0,0 +1,3718 @@ +// Original file: proto/lightning.proto + +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 { + LookupHtlcRequest as _lnrpc_LookupHtlcRequest, + LookupHtlcRequest__Output as _lnrpc_LookupHtlcRequest__Output, +} from '../lnrpc/LookupHtlcRequest' +import type { + LookupHtlcResponse as _lnrpc_LookupHtlcResponse, + LookupHtlcResponse__Output as _lnrpc_LookupHtlcResponse__Output, +} from '../lnrpc/LookupHtlcResponse' +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 + + LookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + LookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + LookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + LookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + lookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + lookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + lookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__Output> + ): grpc.ClientUnaryCall + lookupHtlc( + argument: _lnrpc_LookupHtlcRequest, + callback: grpc.requestCallback<_lnrpc_LookupHtlcResponse__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 + > + + LookupHtlc: grpc.handleUnaryCall< + _lnrpc_LookupHtlcRequest__Output, + _lnrpc_LookupHtlcResponse + > + + 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 + > + LookupHtlc: MethodDefinition< + _lnrpc_LookupHtlcRequest, + _lnrpc_LookupHtlcResponse, + _lnrpc_LookupHtlcRequest__Output, + _lnrpc_LookupHtlcResponse__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..bbd4c80d5 --- /dev/null +++ b/src/grpc/types/lnrpc/LightningAddress.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..a84bd9cc7 --- /dev/null +++ b/src/grpc/types/lnrpc/LightningNode.d.ts @@ -0,0 +1,30 @@ +// Original file: proto/lightning.proto + +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 } + custom_records?: { [key: number]: Buffer | Uint8Array | string } +} + +export interface LightningNode__Output { + last_update: number + pub_key: string + alias: string + addresses: _lnrpc_NodeAddress__Output[] + color: string + features: { [key: number]: _lnrpc_Feature__Output } + custom_records: { [key: number]: Buffer } +} diff --git a/src/grpc/types/lnrpc/ListAliasesRequest.d.ts b/src/grpc/types/lnrpc/ListAliasesRequest.d.ts new file mode 100644 index 000000000..a31d01553 --- /dev/null +++ b/src/grpc/types/lnrpc/ListAliasesRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ListAliasesRequest { + [k: string]: never +} + +export interface ListAliasesRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ListAliasesResponse.d.ts b/src/grpc/types/lnrpc/ListAliasesResponse.d.ts new file mode 100644 index 000000000..7a4df00e0 --- /dev/null +++ b/src/grpc/types/lnrpc/ListAliasesResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..c04d39a47 --- /dev/null +++ b/src/grpc/types/lnrpc/ListChannelsRequest.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/lightning.proto + +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..d1f9f2f22 --- /dev/null +++ b/src/grpc/types/lnrpc/ListChannelsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..2b6287fa5 --- /dev/null +++ b/src/grpc/types/lnrpc/ListInvoiceRequest.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +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 + creation_date_start?: number | string | Long + creation_date_end?: number | string | Long +} + +export interface ListInvoiceRequest__Output { + pending_only: boolean + index_offset: string + num_max_invoices: string + reversed: boolean + creation_date_start: string + creation_date_end: string +} diff --git a/src/grpc/types/lnrpc/ListInvoiceResponse.d.ts b/src/grpc/types/lnrpc/ListInvoiceResponse.d.ts new file mode 100644 index 000000000..d5ce5f614 --- /dev/null +++ b/src/grpc/types/lnrpc/ListInvoiceResponse.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/lightning.proto + +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..b21b13981 --- /dev/null +++ b/src/grpc/types/lnrpc/ListMacaroonIDsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ListMacaroonIDsRequest { + [k: string]: never +} + +export interface ListMacaroonIDsRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts b/src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts new file mode 100644 index 000000000..57c182e05 --- /dev/null +++ b/src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..24af3743d --- /dev/null +++ b/src/grpc/types/lnrpc/ListPaymentsRequest.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/lightning.proto + +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 + creation_date_start?: number | string | Long + creation_date_end?: number | string | Long +} + +export interface ListPaymentsRequest__Output { + include_incomplete: boolean + index_offset: string + max_payments: string + reversed: boolean + count_total_payments: boolean + creation_date_start: string + creation_date_end: string +} diff --git a/src/grpc/types/lnrpc/ListPaymentsResponse.d.ts b/src/grpc/types/lnrpc/ListPaymentsResponse.d.ts new file mode 100644 index 000000000..2317081db --- /dev/null +++ b/src/grpc/types/lnrpc/ListPaymentsResponse.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +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..ff9e026b2 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPeersRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..1517394d4 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPeersResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..b83767594 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPermissionsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface ListPermissionsRequest { + [k: string]: never +} + +export interface ListPermissionsRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/ListPermissionsResponse.d.ts b/src/grpc/types/lnrpc/ListPermissionsResponse.d.ts new file mode 100644 index 000000000..9d287a097 --- /dev/null +++ b/src/grpc/types/lnrpc/ListPermissionsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..20e753615 --- /dev/null +++ b/src/grpc/types/lnrpc/ListUnspentRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..91fd2845c --- /dev/null +++ b/src/grpc/types/lnrpc/ListUnspentResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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/LookupHtlcRequest.d.ts b/src/grpc/types/lnrpc/LookupHtlcRequest.d.ts new file mode 100644 index 000000000..88494d7f7 --- /dev/null +++ b/src/grpc/types/lnrpc/LookupHtlcRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +import type { Long } from '@grpc/proto-loader' + +export interface LookupHtlcRequest { + chan_id?: number | string | Long + htlc_index?: number | string | Long +} + +export interface LookupHtlcRequest__Output { + chan_id: string + htlc_index: string +} diff --git a/src/grpc/types/lnrpc/LookupHtlcResponse.d.ts b/src/grpc/types/lnrpc/LookupHtlcResponse.d.ts new file mode 100644 index 000000000..6a8cc223b --- /dev/null +++ b/src/grpc/types/lnrpc/LookupHtlcResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +export interface LookupHtlcResponse { + settled?: boolean + offchain?: boolean +} + +export interface LookupHtlcResponse__Output { + settled: boolean + offchain: boolean +} diff --git a/src/grpc/types/lnrpc/MPPRecord.d.ts b/src/grpc/types/lnrpc/MPPRecord.d.ts new file mode 100644 index 000000000..8d5692f1c --- /dev/null +++ b/src/grpc/types/lnrpc/MPPRecord.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..01e9d0193 --- /dev/null +++ b/src/grpc/types/lnrpc/MacaroonId.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/lightning.proto + +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..36379f649 --- /dev/null +++ b/src/grpc/types/lnrpc/MacaroonPermission.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..1770f3fef --- /dev/null +++ b/src/grpc/types/lnrpc/MacaroonPermissionList.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..659148483 --- /dev/null +++ b/src/grpc/types/lnrpc/MiddlewareRegistration.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..f59af1c73 --- /dev/null +++ b/src/grpc/types/lnrpc/MultiChanBackup.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/lightning.proto + +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..0dfa4dd85 --- /dev/null +++ b/src/grpc/types/lnrpc/NetworkInfo.d.ts @@ -0,0 +1,31 @@ +// Original file: proto/lightning.proto + +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..6bdf6b4ba --- /dev/null +++ b/src/grpc/types/lnrpc/NetworkInfoRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface NetworkInfoRequest { + [k: string]: never +} + +export interface NetworkInfoRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/NewAddressRequest.d.ts b/src/grpc/types/lnrpc/NewAddressRequest.d.ts new file mode 100644 index 000000000..844067642 --- /dev/null +++ b/src/grpc/types/lnrpc/NewAddressRequest.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/lightning.proto + +import type { + AddressType as _lnrpc_AddressType, + AddressType__Output as _lnrpc_AddressType__Output, +} from '../lnrpc/AddressType' + +export interface NewAddressRequest { + type?: _lnrpc_AddressType + account?: string +} + +export interface NewAddressRequest__Output { + type: _lnrpc_AddressType__Output + 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..bdea46349 --- /dev/null +++ b/src/grpc/types/lnrpc/NewAddressResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..da294d510 --- /dev/null +++ b/src/grpc/types/lnrpc/NodeAddress.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..1251f6aa1 --- /dev/null +++ b/src/grpc/types/lnrpc/NodeInfo.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +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..478c7f57e --- /dev/null +++ b/src/grpc/types/lnrpc/NodeInfoRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/NodeMetricType.ts new file mode 100644 index 000000000..7e4e4e3ca --- /dev/null +++ b/src/grpc/types/lnrpc/NodeMetricType.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +export const NodeMetricType = { + UNKNOWN: 'UNKNOWN', + BETWEENNESS_CENTRALITY: 'BETWEENNESS_CENTRALITY', +} as const + +export type NodeMetricType = 'UNKNOWN' | 0 | 'BETWEENNESS_CENTRALITY' | 1 + +export type NodeMetricType__Output = + typeof NodeMetricType[keyof typeof NodeMetricType] diff --git a/src/grpc/types/lnrpc/NodeMetricsRequest.d.ts b/src/grpc/types/lnrpc/NodeMetricsRequest.d.ts new file mode 100644 index 000000000..9d815f8a8 --- /dev/null +++ b/src/grpc/types/lnrpc/NodeMetricsRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +import type { + NodeMetricType as _lnrpc_NodeMetricType, + NodeMetricType__Output as _lnrpc_NodeMetricType__Output, +} from '../lnrpc/NodeMetricType' + +export interface NodeMetricsRequest { + types?: _lnrpc_NodeMetricType[] +} + +export interface NodeMetricsRequest__Output { + types: _lnrpc_NodeMetricType__Output[] +} diff --git a/src/grpc/types/lnrpc/NodeMetricsResponse.d.ts b/src/grpc/types/lnrpc/NodeMetricsResponse.d.ts new file mode 100644 index 000000000..ea1d655d4 --- /dev/null +++ b/src/grpc/types/lnrpc/NodeMetricsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..2c38cac8d --- /dev/null +++ b/src/grpc/types/lnrpc/NodePair.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..baa039d8d --- /dev/null +++ b/src/grpc/types/lnrpc/NodeUpdate.d.ts @@ -0,0 +1,30 @@ +// Original file: proto/lightning.proto + +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..68c3a5af4 --- /dev/null +++ b/src/grpc/types/lnrpc/Op.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..12a2a0720 --- /dev/null +++ b/src/grpc/types/lnrpc/OpenChannelRequest.d.ts @@ -0,0 +1,67 @@ +// Original file: proto/lightning.proto + +import type { + FundingShim as _lnrpc_FundingShim, + FundingShim__Output as _lnrpc_FundingShim__Output, +} from '../lnrpc/FundingShim' +import type { + CommitmentType as _lnrpc_CommitmentType, + CommitmentType__Output as _lnrpc_CommitmentType__Output, +} 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 + zero_conf?: boolean + scid_alias?: boolean + base_fee?: number | string | Long + fee_rate?: number | string | Long + use_base_fee?: boolean + use_fee_rate?: boolean + remote_chan_reserve_sat?: number | string | Long +} + +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: _lnrpc_CommitmentType__Output + zero_conf: boolean + scid_alias: boolean + base_fee: string + fee_rate: string + use_base_fee: boolean + use_fee_rate: boolean + remote_chan_reserve_sat: string +} diff --git a/src/grpc/types/lnrpc/OpenStatusUpdate.d.ts b/src/grpc/types/lnrpc/OpenStatusUpdate.d.ts new file mode 100644 index 000000000..75a5a1d4b --- /dev/null +++ b/src/grpc/types/lnrpc/OpenStatusUpdate.d.ts @@ -0,0 +1,30 @@ +// Original file: proto/lightning.proto + +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..c05201d79 --- /dev/null +++ b/src/grpc/types/lnrpc/OutPoint.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..f97773238 --- /dev/null +++ b/src/grpc/types/lnrpc/OutputDetail.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +import type { + OutputScriptType as _lnrpc_OutputScriptType, + OutputScriptType__Output as _lnrpc_OutputScriptType__Output, +} from '../lnrpc/OutputScriptType' +import type { Long } from '@grpc/proto-loader' + +export interface OutputDetail { + output_type?: _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: _lnrpc_OutputScriptType__Output + address: string + pk_script: string + output_index: string + amount: string + is_our_address: boolean +} diff --git a/src/grpc/types/lnrpc/OutputScriptType.ts b/src/grpc/types/lnrpc/OutputScriptType.ts new file mode 100644 index 000000000..1b61f4dbf --- /dev/null +++ b/src/grpc/types/lnrpc/OutputScriptType.ts @@ -0,0 +1,39 @@ +// Original file: proto/lightning.proto + +export const OutputScriptType = { + SCRIPT_TYPE_PUBKEY_HASH: 'SCRIPT_TYPE_PUBKEY_HASH', + SCRIPT_TYPE_SCRIPT_HASH: 'SCRIPT_TYPE_SCRIPT_HASH', + SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH: 'SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH', + SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH: 'SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH', + SCRIPT_TYPE_PUBKEY: 'SCRIPT_TYPE_PUBKEY', + SCRIPT_TYPE_MULTISIG: 'SCRIPT_TYPE_MULTISIG', + SCRIPT_TYPE_NULLDATA: 'SCRIPT_TYPE_NULLDATA', + SCRIPT_TYPE_NON_STANDARD: 'SCRIPT_TYPE_NON_STANDARD', + SCRIPT_TYPE_WITNESS_UNKNOWN: 'SCRIPT_TYPE_WITNESS_UNKNOWN', + SCRIPT_TYPE_WITNESS_V1_TAPROOT: 'SCRIPT_TYPE_WITNESS_V1_TAPROOT', +} as const + +export type 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 + +export type OutputScriptType__Output = + typeof OutputScriptType[keyof typeof OutputScriptType] diff --git a/src/grpc/types/lnrpc/PayReq.d.ts b/src/grpc/types/lnrpc/PayReq.d.ts new file mode 100644 index 000000000..864bedf0d --- /dev/null +++ b/src/grpc/types/lnrpc/PayReq.d.ts @@ -0,0 +1,43 @@ +// Original file: proto/lightning.proto + +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..1effaf972 --- /dev/null +++ b/src/grpc/types/lnrpc/PayReqString.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface PayReqString { + pay_req?: string +} + +export interface PayReqString__Output { + pay_req: string +} diff --git a/src/grpc/types/lnrpc/Payment.ts b/src/grpc/types/lnrpc/Payment.ts new file mode 100644 index 000000000..5d66774a4 --- /dev/null +++ b/src/grpc/types/lnrpc/Payment.ts @@ -0,0 +1,69 @@ +// Original file: proto/lightning.proto + +import type { + HTLCAttempt as _lnrpc_HTLCAttempt, + HTLCAttempt__Output as _lnrpc_HTLCAttempt__Output, +} from '../lnrpc/HTLCAttempt' +import type { + PaymentFailureReason as _lnrpc_PaymentFailureReason, + PaymentFailureReason__Output as _lnrpc_PaymentFailureReason__Output, +} from '../lnrpc/PaymentFailureReason' +import type { Long } from '@grpc/proto-loader' + +// Original file: proto/lightning.proto + +export const _lnrpc_Payment_PaymentStatus = { + UNKNOWN: 'UNKNOWN', + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +} as const + +export type _lnrpc_Payment_PaymentStatus = + | 'UNKNOWN' + | 0 + | 'IN_FLIGHT' + | 1 + | 'SUCCEEDED' + | 2 + | 'FAILED' + | 3 + +export type _lnrpc_Payment_PaymentStatus__Output = + typeof _lnrpc_Payment_PaymentStatus[keyof typeof _lnrpc_Payment_PaymentStatus] + +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 + 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 +} + +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: _lnrpc_Payment_PaymentStatus__Output + fee_sat: string + fee_msat: string + creation_time_ns: string + htlcs: _lnrpc_HTLCAttempt__Output[] + payment_index: string + failure_reason: _lnrpc_PaymentFailureReason__Output +} diff --git a/src/grpc/types/lnrpc/PaymentFailureReason.ts b/src/grpc/types/lnrpc/PaymentFailureReason.ts new file mode 100644 index 000000000..c1a0fa04d --- /dev/null +++ b/src/grpc/types/lnrpc/PaymentFailureReason.ts @@ -0,0 +1,28 @@ +// Original file: proto/lightning.proto + +export const PaymentFailureReason = { + FAILURE_REASON_NONE: 'FAILURE_REASON_NONE', + FAILURE_REASON_TIMEOUT: 'FAILURE_REASON_TIMEOUT', + FAILURE_REASON_NO_ROUTE: 'FAILURE_REASON_NO_ROUTE', + FAILURE_REASON_ERROR: 'FAILURE_REASON_ERROR', + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: + 'FAILURE_REASON_INCORRECT_PAYMENT_DETAILS', + FAILURE_REASON_INSUFFICIENT_BALANCE: 'FAILURE_REASON_INSUFFICIENT_BALANCE', +} as const + +export type 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 + +export type PaymentFailureReason__Output = + typeof PaymentFailureReason[keyof typeof PaymentFailureReason] diff --git a/src/grpc/types/lnrpc/PaymentHash.d.ts b/src/grpc/types/lnrpc/PaymentHash.d.ts new file mode 100644 index 000000000..282873fec --- /dev/null +++ b/src/grpc/types/lnrpc/PaymentHash.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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.ts b/src/grpc/types/lnrpc/Peer.ts new file mode 100644 index 000000000..09049fd9b --- /dev/null +++ b/src/grpc/types/lnrpc/Peer.ts @@ -0,0 +1,67 @@ +// Original file: proto/lightning.proto + +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' + +// Original file: proto/lightning.proto + +export const _lnrpc_Peer_SyncType = { + UNKNOWN_SYNC: 'UNKNOWN_SYNC', + ACTIVE_SYNC: 'ACTIVE_SYNC', + PASSIVE_SYNC: 'PASSIVE_SYNC', + PINNED_SYNC: 'PINNED_SYNC', +} as const + +export type _lnrpc_Peer_SyncType = + | 'UNKNOWN_SYNC' + | 0 + | 'ACTIVE_SYNC' + | 1 + | 'PASSIVE_SYNC' + | 2 + | 'PINNED_SYNC' + | 3 + +export type _lnrpc_Peer_SyncType__Output = + typeof _lnrpc_Peer_SyncType[keyof typeof _lnrpc_Peer_SyncType] + +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 + 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: _lnrpc_Peer_SyncType__Output + 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.ts b/src/grpc/types/lnrpc/PeerEvent.ts new file mode 100644 index 000000000..a02fc2a56 --- /dev/null +++ b/src/grpc/types/lnrpc/PeerEvent.ts @@ -0,0 +1,23 @@ +// Original file: proto/lightning.proto + +// Original file: proto/lightning.proto + +export const _lnrpc_PeerEvent_EventType = { + PEER_ONLINE: 'PEER_ONLINE', + PEER_OFFLINE: 'PEER_OFFLINE', +} as const + +export type _lnrpc_PeerEvent_EventType = 'PEER_ONLINE' | 0 | 'PEER_OFFLINE' | 1 + +export type _lnrpc_PeerEvent_EventType__Output = + typeof _lnrpc_PeerEvent_EventType[keyof typeof _lnrpc_PeerEvent_EventType] + +export interface PeerEvent { + pub_key?: string + type?: _lnrpc_PeerEvent_EventType +} + +export interface PeerEvent__Output { + pub_key: string + type: _lnrpc_PeerEvent_EventType__Output +} diff --git a/src/grpc/types/lnrpc/PeerEventSubscription.d.ts b/src/grpc/types/lnrpc/PeerEventSubscription.d.ts new file mode 100644 index 000000000..a633f20c4 --- /dev/null +++ b/src/grpc/types/lnrpc/PeerEventSubscription.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface PeerEventSubscription { + [k: string]: never +} + +export interface PeerEventSubscription__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/PendingChannelsRequest.d.ts b/src/grpc/types/lnrpc/PendingChannelsRequest.d.ts new file mode 100644 index 000000000..f8422f787 --- /dev/null +++ b/src/grpc/types/lnrpc/PendingChannelsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface PendingChannelsRequest { + [k: string]: never +} + +export interface PendingChannelsRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/PendingChannelsResponse.ts b/src/grpc/types/lnrpc/PendingChannelsResponse.ts new file mode 100644 index 000000000..51d674c2e --- /dev/null +++ b/src/grpc/types/lnrpc/PendingChannelsResponse.ts @@ -0,0 +1,158 @@ +// Original file: proto/lightning.proto + +import type { + Initiator as _lnrpc_Initiator, + Initiator__Output as _lnrpc_Initiator__Output, +} from '../lnrpc/Initiator' +import type { + CommitmentType as _lnrpc_CommitmentType, + CommitmentType__Output as _lnrpc_CommitmentType__Output, +} 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' + +// Original file: proto/lightning.proto + +export const _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState = { + LIMBO: 'LIMBO', + RECOVERED: 'RECOVERED', + LOST: 'LOST', +} as const + +export type _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState = + | 'LIMBO' + | 0 + | 'RECOVERED' + | 1 + | 'LOST' + | 2 + +export type _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState__Output = + typeof _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState[keyof typeof _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState] + +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 +} + +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: _lnrpc_PendingChannelsResponse_ForceClosedChannel_AnchorState__Output +} + +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 + commitment_type?: _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: _lnrpc_Initiator__Output + commitment_type: _lnrpc_CommitmentType__Output + 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..8c1c1b3fc --- /dev/null +++ b/src/grpc/types/lnrpc/PendingHTLC.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/lightning.proto + +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..e63ea3cb4 --- /dev/null +++ b/src/grpc/types/lnrpc/PendingUpdate.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..3c8da411d --- /dev/null +++ b/src/grpc/types/lnrpc/PolicyUpdateRequest.d.ts @@ -0,0 +1,33 @@ +// Original file: proto/lightning.proto + +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..bdb847573 --- /dev/null +++ b/src/grpc/types/lnrpc/PolicyUpdateResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..eebf5e421 --- /dev/null +++ b/src/grpc/types/lnrpc/PreviousOutPoint.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..f56d376e8 --- /dev/null +++ b/src/grpc/types/lnrpc/PsbtShim.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..3a92f24ae --- /dev/null +++ b/src/grpc/types/lnrpc/QueryRoutesRequest.d.ts @@ -0,0 +1,63 @@ +// Original file: proto/lightning.proto + +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, + FeatureBit__Output as _lnrpc_FeatureBit__Output, +} 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[] + 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: _lnrpc_FeatureBit__Output[] + 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..73a0e452e --- /dev/null +++ b/src/grpc/types/lnrpc/QueryRoutesResponse.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/lightning.proto + +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..41f45198a --- /dev/null +++ b/src/grpc/types/lnrpc/RPCMessage.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/lightning.proto + +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..2b1840389 --- /dev/null +++ b/src/grpc/types/lnrpc/RPCMiddlewareRequest.d.ts @@ -0,0 +1,35 @@ +// Original file: proto/lightning.proto + +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..6ef263be1 --- /dev/null +++ b/src/grpc/types/lnrpc/RPCMiddlewareResponse.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +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..bf30e37f5 --- /dev/null +++ b/src/grpc/types/lnrpc/ReadyForPsbtFunding.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/lightning.proto + +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..c5d6f1ae2 --- /dev/null +++ b/src/grpc/types/lnrpc/Resolution.d.ts @@ -0,0 +1,31 @@ +// Original file: proto/lightning.proto + +import type { + ResolutionType as _lnrpc_ResolutionType, + ResolutionType__Output as _lnrpc_ResolutionType__Output, +} from '../lnrpc/ResolutionType' +import type { + ResolutionOutcome as _lnrpc_ResolutionOutcome, + ResolutionOutcome__Output as _lnrpc_ResolutionOutcome__Output, +} 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 + outcome?: _lnrpc_ResolutionOutcome + outpoint?: _lnrpc_OutPoint | null + amount_sat?: number | string | Long + sweep_txid?: string +} + +export interface Resolution__Output { + resolution_type: _lnrpc_ResolutionType__Output + outcome: _lnrpc_ResolutionOutcome__Output + outpoint: _lnrpc_OutPoint__Output | null + amount_sat: string + sweep_txid: string +} diff --git a/src/grpc/types/lnrpc/ResolutionOutcome.ts b/src/grpc/types/lnrpc/ResolutionOutcome.ts new file mode 100644 index 000000000..59a0d19d6 --- /dev/null +++ b/src/grpc/types/lnrpc/ResolutionOutcome.ts @@ -0,0 +1,27 @@ +// Original file: proto/lightning.proto + +export const ResolutionOutcome = { + OUTCOME_UNKNOWN: 'OUTCOME_UNKNOWN', + CLAIMED: 'CLAIMED', + UNCLAIMED: 'UNCLAIMED', + ABANDONED: 'ABANDONED', + FIRST_STAGE: 'FIRST_STAGE', + TIMEOUT: 'TIMEOUT', +} as const + +export type ResolutionOutcome = + | 'OUTCOME_UNKNOWN' + | 0 + | 'CLAIMED' + | 1 + | 'UNCLAIMED' + | 2 + | 'ABANDONED' + | 3 + | 'FIRST_STAGE' + | 4 + | 'TIMEOUT' + | 5 + +export type ResolutionOutcome__Output = + typeof ResolutionOutcome[keyof typeof ResolutionOutcome] diff --git a/src/grpc/types/lnrpc/ResolutionType.ts b/src/grpc/types/lnrpc/ResolutionType.ts new file mode 100644 index 000000000..4314a930a --- /dev/null +++ b/src/grpc/types/lnrpc/ResolutionType.ts @@ -0,0 +1,24 @@ +// Original file: proto/lightning.proto + +export const ResolutionType = { + TYPE_UNKNOWN: 'TYPE_UNKNOWN', + ANCHOR: 'ANCHOR', + INCOMING_HTLC: 'INCOMING_HTLC', + OUTGOING_HTLC: 'OUTGOING_HTLC', + COMMIT: 'COMMIT', +} as const + +export type ResolutionType = + | 'TYPE_UNKNOWN' + | 0 + | 'ANCHOR' + | 1 + | 'INCOMING_HTLC' + | 2 + | 'OUTGOING_HTLC' + | 3 + | 'COMMIT' + | 4 + +export type ResolutionType__Output = + typeof ResolutionType[keyof typeof ResolutionType] diff --git a/src/grpc/types/lnrpc/RestoreBackupResponse.d.ts b/src/grpc/types/lnrpc/RestoreBackupResponse.d.ts new file mode 100644 index 000000000..245faead0 --- /dev/null +++ b/src/grpc/types/lnrpc/RestoreBackupResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface RestoreBackupResponse { + [k: string]: never +} + +export interface RestoreBackupResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts b/src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts new file mode 100644 index 000000000..198391e5c --- /dev/null +++ b/src/grpc/types/lnrpc/RestoreChanBackupRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/lightning.proto + +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..4a1aab0d6 --- /dev/null +++ b/src/grpc/types/lnrpc/Route.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +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..bf53a6993 --- /dev/null +++ b/src/grpc/types/lnrpc/RouteHint.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..da516b590 --- /dev/null +++ b/src/grpc/types/lnrpc/RoutingPolicy.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +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 + custom_records?: { [key: number]: Buffer | Uint8Array | string } +} + +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 + custom_records: { [key: number]: Buffer } +} diff --git a/src/grpc/types/lnrpc/SendCoinsRequest.d.ts b/src/grpc/types/lnrpc/SendCoinsRequest.d.ts new file mode 100644 index 000000000..522cee1e4 --- /dev/null +++ b/src/grpc/types/lnrpc/SendCoinsRequest.d.ts @@ -0,0 +1,27 @@ +// Original file: proto/lightning.proto + +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..473fc6e00 --- /dev/null +++ b/src/grpc/types/lnrpc/SendCoinsResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..2016e6e4c --- /dev/null +++ b/src/grpc/types/lnrpc/SendCustomMessageRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..78ad19d2f --- /dev/null +++ b/src/grpc/types/lnrpc/SendCustomMessageResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface SendCustomMessageResponse { + [k: string]: never +} + +export interface SendCustomMessageResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/SendManyRequest.d.ts b/src/grpc/types/lnrpc/SendManyRequest.d.ts new file mode 100644 index 000000000..913914b51 --- /dev/null +++ b/src/grpc/types/lnrpc/SendManyRequest.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/lightning.proto + +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..37f966484 --- /dev/null +++ b/src/grpc/types/lnrpc/SendManyResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..efd6a516a --- /dev/null +++ b/src/grpc/types/lnrpc/SendRequest.d.ts @@ -0,0 +1,49 @@ +// Original file: proto/lightning.proto + +import type { + FeeLimit as _lnrpc_FeeLimit, + FeeLimit__Output as _lnrpc_FeeLimit__Output, +} from '../lnrpc/FeeLimit' +import type { + FeatureBit as _lnrpc_FeatureBit, + FeatureBit__Output as _lnrpc_FeatureBit__Output, +} 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[] + 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: _lnrpc_FeatureBit__Output[] + 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..5be1eadc6 --- /dev/null +++ b/src/grpc/types/lnrpc/SendResponse.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/lightning.proto + +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..d579f5d58 --- /dev/null +++ b/src/grpc/types/lnrpc/SendToRouteRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/lightning.proto + +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..a59b4e63e --- /dev/null +++ b/src/grpc/types/lnrpc/SetID.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..9681e61ff --- /dev/null +++ b/src/grpc/types/lnrpc/SignMessageRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..8c2177978 --- /dev/null +++ b/src/grpc/types/lnrpc/SignMessageResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..f4a10ce82 --- /dev/null +++ b/src/grpc/types/lnrpc/StopRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface StopRequest { + [k: string]: never +} + +export interface StopRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/StopResponse.d.ts b/src/grpc/types/lnrpc/StopResponse.d.ts new file mode 100644 index 000000000..963569c70 --- /dev/null +++ b/src/grpc/types/lnrpc/StopResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface StopResponse { + [k: string]: never +} + +export interface StopResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/StreamAuth.d.ts b/src/grpc/types/lnrpc/StreamAuth.d.ts new file mode 100644 index 000000000..43fd54929 --- /dev/null +++ b/src/grpc/types/lnrpc/StreamAuth.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +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..67ebedde2 --- /dev/null +++ b/src/grpc/types/lnrpc/SubscribeCustomMessagesRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface SubscribeCustomMessagesRequest { + [k: string]: never +} + +export interface SubscribeCustomMessagesRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/TimestampedError.d.ts b/src/grpc/types/lnrpc/TimestampedError.d.ts new file mode 100644 index 000000000..fb63c9244 --- /dev/null +++ b/src/grpc/types/lnrpc/TimestampedError.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..b91d9efd1 --- /dev/null +++ b/src/grpc/types/lnrpc/Transaction.d.ts @@ -0,0 +1,41 @@ +// Original file: proto/lightning.proto + +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..e6237f4cb --- /dev/null +++ b/src/grpc/types/lnrpc/TransactionDetails.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/lightning.proto + +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..88c9762ea --- /dev/null +++ b/src/grpc/types/lnrpc/UnlockWalletRequest.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/walletunlocker.proto + +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..3f31f1836 --- /dev/null +++ b/src/grpc/types/lnrpc/UnlockWalletResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletunlocker.proto + +export interface UnlockWalletResponse { + [k: string]: never +} + +export interface UnlockWalletResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/UpdateFailure.ts b/src/grpc/types/lnrpc/UpdateFailure.ts new file mode 100644 index 000000000..e2dc2b6b0 --- /dev/null +++ b/src/grpc/types/lnrpc/UpdateFailure.ts @@ -0,0 +1,24 @@ +// Original file: proto/lightning.proto + +export const UpdateFailure = { + UPDATE_FAILURE_UNKNOWN: 'UPDATE_FAILURE_UNKNOWN', + UPDATE_FAILURE_PENDING: 'UPDATE_FAILURE_PENDING', + UPDATE_FAILURE_NOT_FOUND: 'UPDATE_FAILURE_NOT_FOUND', + UPDATE_FAILURE_INTERNAL_ERR: 'UPDATE_FAILURE_INTERNAL_ERR', + UPDATE_FAILURE_INVALID_PARAMETER: 'UPDATE_FAILURE_INVALID_PARAMETER', +} as const + +export type UpdateFailure = + | 'UPDATE_FAILURE_UNKNOWN' + | 0 + | 'UPDATE_FAILURE_PENDING' + | 1 + | 'UPDATE_FAILURE_NOT_FOUND' + | 2 + | 'UPDATE_FAILURE_INTERNAL_ERR' + | 3 + | 'UPDATE_FAILURE_INVALID_PARAMETER' + | 4 + +export type UpdateFailure__Output = + typeof UpdateFailure[keyof typeof UpdateFailure] diff --git a/src/grpc/types/lnrpc/Utxo.d.ts b/src/grpc/types/lnrpc/Utxo.d.ts new file mode 100644 index 000000000..a1b40c400 --- /dev/null +++ b/src/grpc/types/lnrpc/Utxo.d.ts @@ -0,0 +1,29 @@ +// Original file: proto/lightning.proto + +import type { + AddressType as _lnrpc_AddressType, + AddressType__Output as _lnrpc_AddressType__Output, +} 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 + address?: string + amount_sat?: number | string | Long + pk_script?: string + outpoint?: _lnrpc_OutPoint | null + confirmations?: number | string | Long +} + +export interface Utxo__Output { + address_type: _lnrpc_AddressType__Output + 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..a7e9497d3 --- /dev/null +++ b/src/grpc/types/lnrpc/VerifyChanBackupResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface VerifyChanBackupResponse { + [k: string]: never +} + +export interface VerifyChanBackupResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/VerifyMessageRequest.d.ts b/src/grpc/types/lnrpc/VerifyMessageRequest.d.ts new file mode 100644 index 000000000..f79622dd5 --- /dev/null +++ b/src/grpc/types/lnrpc/VerifyMessageRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..242a3cb66 --- /dev/null +++ b/src/grpc/types/lnrpc/VerifyMessageResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/lightning.proto + +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..706024342 --- /dev/null +++ b/src/grpc/types/lnrpc/WalletAccountBalance.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/lightning.proto + +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..ba0fe3e9c --- /dev/null +++ b/src/grpc/types/lnrpc/WalletBalanceRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/lightning.proto + +export interface WalletBalanceRequest { + [k: string]: never +} + +export interface WalletBalanceRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/lnrpc/WalletBalanceResponse.d.ts b/src/grpc/types/lnrpc/WalletBalanceResponse.d.ts new file mode 100644 index 000000000..9f0f4eaff --- /dev/null +++ b/src/grpc/types/lnrpc/WalletBalanceResponse.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/lightning.proto + +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..690a105b3 --- /dev/null +++ b/src/grpc/types/lnrpc/WalletUnlocker.d.ts @@ -0,0 +1,252 @@ +// Original file: proto/walletunlocker.proto + +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..9d396c65b --- /dev/null +++ b/src/grpc/types/lnrpc/WatchOnly.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/walletunlocker.proto + +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..cb0482751 --- /dev/null +++ b/src/grpc/types/lnrpc/WatchOnlyAccount.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/walletunlocker.proto + +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..61533dab9 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/AddInvoiceResponse.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/rpc_proxy.proto + +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..f8415a142 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Amount.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/rpc_proxy.proto + +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..bd45518ec --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Chain.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..975adb93f --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChanInfoRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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.ts b/src/grpc/types/lnrpc_proxy/Channel.ts new file mode 100644 index 000000000..efe7877d3 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Channel.ts @@ -0,0 +1,81 @@ +// Original file: proto/rpc_proxy.proto + +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, + CommitmentType__Output as _lnrpc_proxy_CommitmentType__Output, +} 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 + 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: _lnrpc_proxy_CommitmentType__Output + 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..36751dd23 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelBalanceRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/rpc_proxy.proto + +export interface ChannelBalanceRequest { + [k: string]: never +} + +export interface ChannelBalanceRequest__Output { + [k: string]: never +} 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..84182c954 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelBalanceResponse.d.ts @@ -0,0 +1,29 @@ +// Original file: proto/rpc_proxy.proto + +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..faede5fec --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelConstraints.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/rpc_proxy.proto + +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..76f72dfe7 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelEdge.d.ts @@ -0,0 +1,29 @@ +// Original file: proto/rpc_proxy.proto + +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..253123972 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ChannelUpdate.d.ts @@ -0,0 +1,33 @@ +// Original file: proto/rpc_proxy.proto + +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.ts b/src/grpc/types/lnrpc_proxy/CommitmentType.ts new file mode 100644 index 000000000..9bdfd3000 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/CommitmentType.ts @@ -0,0 +1,21 @@ +// Original file: proto/rpc_proxy.proto + +export const CommitmentType = { + LEGACY: 'LEGACY', + STATIC_REMOTE_KEY: 'STATIC_REMOTE_KEY', + ANCHORS: 'ANCHORS', + UNKNOWN_COMMITMENT_TYPE: 'UNKNOWN_COMMITMENT_TYPE', +} as const + +export type CommitmentType = + | 'LEGACY' + | 0 + | 'STATIC_REMOTE_KEY' + | 1 + | 'ANCHORS' + | 2 + | 'UNKNOWN_COMMITMENT_TYPE' + | 999 + +export type CommitmentType__Output = + typeof CommitmentType[keyof typeof CommitmentType] 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..a25bea3ff --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/rpc_proxy.proto + +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.ts b/src/grpc/types/lnrpc_proxy/Failure.ts new file mode 100644 index 000000000..25162d7dc --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Failure.ts @@ -0,0 +1,120 @@ +// Original file: proto/rpc_proxy.proto + +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' + +// Original file: proto/rpc_proxy.proto + +export const _lnrpc_proxy_Failure_FailureCode = { + RESERVED: 'RESERVED', + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS: 'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS', + INCORRECT_PAYMENT_AMOUNT: 'INCORRECT_PAYMENT_AMOUNT', + FINAL_INCORRECT_CLTV_EXPIRY: 'FINAL_INCORRECT_CLTV_EXPIRY', + FINAL_INCORRECT_HTLC_AMOUNT: 'FINAL_INCORRECT_HTLC_AMOUNT', + FINAL_EXPIRY_TOO_SOON: 'FINAL_EXPIRY_TOO_SOON', + INVALID_REALM: 'INVALID_REALM', + EXPIRY_TOO_SOON: 'EXPIRY_TOO_SOON', + INVALID_ONION_VERSION: 'INVALID_ONION_VERSION', + INVALID_ONION_HMAC: 'INVALID_ONION_HMAC', + INVALID_ONION_KEY: 'INVALID_ONION_KEY', + AMOUNT_BELOW_MINIMUM: 'AMOUNT_BELOW_MINIMUM', + FEE_INSUFFICIENT: 'FEE_INSUFFICIENT', + INCORRECT_CLTV_EXPIRY: 'INCORRECT_CLTV_EXPIRY', + CHANNEL_DISABLED: 'CHANNEL_DISABLED', + TEMPORARY_CHANNEL_FAILURE: 'TEMPORARY_CHANNEL_FAILURE', + REQUIRED_NODE_FEATURE_MISSING: 'REQUIRED_NODE_FEATURE_MISSING', + REQUIRED_CHANNEL_FEATURE_MISSING: 'REQUIRED_CHANNEL_FEATURE_MISSING', + UNKNOWN_NEXT_PEER: 'UNKNOWN_NEXT_PEER', + TEMPORARY_NODE_FAILURE: 'TEMPORARY_NODE_FAILURE', + PERMANENT_NODE_FAILURE: 'PERMANENT_NODE_FAILURE', + PERMANENT_CHANNEL_FAILURE: 'PERMANENT_CHANNEL_FAILURE', + EXPIRY_TOO_FAR: 'EXPIRY_TOO_FAR', + MPP_TIMEOUT: 'MPP_TIMEOUT', + INTERNAL_FAILURE: 'INTERNAL_FAILURE', + UNKNOWN_FAILURE: 'UNKNOWN_FAILURE', + UNREADABLE_FAILURE: 'UNREADABLE_FAILURE', +} as const + +export type _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 type _lnrpc_proxy_Failure_FailureCode__Output = + typeof _lnrpc_proxy_Failure_FailureCode[keyof typeof _lnrpc_proxy_Failure_FailureCode] + +export interface Failure { + code?: _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: _lnrpc_proxy_Failure_FailureCode__Output + 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..cc97570e2 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Feature.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/rpc_proxy.proto + +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.ts b/src/grpc/types/lnrpc_proxy/FeatureBit.ts new file mode 100644 index 000000000..1a45e6e52 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/FeatureBit.ts @@ -0,0 +1,59 @@ +// Original file: proto/rpc_proxy.proto + +export const FeatureBit = { + DATALOSS_PROTECT_REQ: 'DATALOSS_PROTECT_REQ', + DATALOSS_PROTECT_OPT: 'DATALOSS_PROTECT_OPT', + INITIAL_ROUING_SYNC: 'INITIAL_ROUING_SYNC', + UPFRONT_SHUTDOWN_SCRIPT_REQ: 'UPFRONT_SHUTDOWN_SCRIPT_REQ', + UPFRONT_SHUTDOWN_SCRIPT_OPT: 'UPFRONT_SHUTDOWN_SCRIPT_OPT', + GOSSIP_QUERIES_REQ: 'GOSSIP_QUERIES_REQ', + GOSSIP_QUERIES_OPT: 'GOSSIP_QUERIES_OPT', + TLV_ONION_REQ: 'TLV_ONION_REQ', + TLV_ONION_OPT: 'TLV_ONION_OPT', + EXT_GOSSIP_QUERIES_REQ: 'EXT_GOSSIP_QUERIES_REQ', + EXT_GOSSIP_QUERIES_OPT: 'EXT_GOSSIP_QUERIES_OPT', + STATIC_REMOTE_KEY_REQ: 'STATIC_REMOTE_KEY_REQ', + STATIC_REMOTE_KEY_OPT: 'STATIC_REMOTE_KEY_OPT', + PAYMENT_ADDR_REQ: 'PAYMENT_ADDR_REQ', + PAYMENT_ADDR_OPT: 'PAYMENT_ADDR_OPT', + MPP_REQ: 'MPP_REQ', + MPP_OPT: 'MPP_OPT', +} as const + +export type 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 + +export type FeatureBit__Output = typeof FeatureBit[keyof typeof FeatureBit] 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..f870ae99f --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/FeeLimit.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/rpc_proxy.proto + +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..3e8463d69 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/GetInfoRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/rpc_proxy.proto + +export interface GetInfoRequest { + [k: string]: never +} + +export interface GetInfoRequest__Output { + [k: string]: never +} 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..97aed7489 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/GetInfoResponse.d.ts @@ -0,0 +1,53 @@ +// Original file: proto/rpc_proxy.proto + +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..38b87640c --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/HTLC.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/rpc_proxy.proto + +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.ts b/src/grpc/types/lnrpc_proxy/HTLCAttempt.ts new file mode 100644 index 000000000..4e5fdbd6a --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/HTLCAttempt.ts @@ -0,0 +1,48 @@ +// Original file: proto/rpc_proxy.proto + +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' + +// Original file: proto/rpc_proxy.proto + +export const _lnrpc_proxy_HTLCAttempt_HTLCStatus = { + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +} as const + +export type _lnrpc_proxy_HTLCAttempt_HTLCStatus = + | 'IN_FLIGHT' + | 0 + | 'SUCCEEDED' + | 1 + | 'FAILED' + | 2 + +export type _lnrpc_proxy_HTLCAttempt_HTLCStatus__Output = + typeof _lnrpc_proxy_HTLCAttempt_HTLCStatus[keyof typeof _lnrpc_proxy_HTLCAttempt_HTLCStatus] + +export interface HTLCAttempt { + status?: _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: _lnrpc_proxy_HTLCAttempt_HTLCStatus__Output + 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..af9ebc8fd --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Hop.d.ts @@ -0,0 +1,35 @@ +// Original file: proto/rpc_proxy.proto + +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..1a3cd03f7 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/HopHint.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/rpc_proxy.proto + +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.ts b/src/grpc/types/lnrpc_proxy/Invoice.ts new file mode 100644 index 000000000..bd7a5133c --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Invoice.ts @@ -0,0 +1,93 @@ +// Original file: proto/rpc_proxy.proto + +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' + +// Original file: proto/rpc_proxy.proto + +export const _lnrpc_proxy_Invoice_InvoiceState = { + OPEN: 'OPEN', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', + ACCEPTED: 'ACCEPTED', +} as const + +export type _lnrpc_proxy_Invoice_InvoiceState = + | 'OPEN' + | 0 + | 'SETTLED' + | 1 + | 'CANCELED' + | 2 + | 'ACCEPTED' + | 3 + +export type _lnrpc_proxy_Invoice_InvoiceState__Output = + typeof _lnrpc_proxy_Invoice_InvoiceState[keyof typeof _lnrpc_proxy_Invoice_InvoiceState] + +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 + 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: _lnrpc_proxy_Invoice_InvoiceState__Output + 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..c2d385786 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/InvoiceHTLC.d.ts @@ -0,0 +1,33 @@ +// Original file: proto/rpc_proxy.proto + +import type { + InvoiceHTLCState as _lnrpc_proxy_InvoiceHTLCState, + InvoiceHTLCState__Output as _lnrpc_proxy_InvoiceHTLCState__Output, +} 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 + 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: _lnrpc_proxy_InvoiceHTLCState__Output + custom_records: { [key: number]: Buffer } + mpp_total_amt_msat: string +} diff --git a/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.ts b/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.ts new file mode 100644 index 000000000..b0696edbd --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.ts @@ -0,0 +1,12 @@ +// Original file: proto/rpc_proxy.proto + +export const InvoiceHTLCState = { + ACCEPTED: 'ACCEPTED', + SETTLED: 'SETTLED', + CANCELED: 'CANCELED', +} as const + +export type InvoiceHTLCState = 'ACCEPTED' | 0 | 'SETTLED' | 1 | 'CANCELED' | 2 + +export type InvoiceHTLCState__Output = + typeof InvoiceHTLCState[keyof typeof InvoiceHTLCState] 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..6b05cdf16 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/InvoiceSubscription.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/rpc_proxy.proto + +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..f12f9e99a --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Lightning.d.ts @@ -0,0 +1,585 @@ +// Original file: proto/rpc_proxy.proto + +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..a1d5b28f6 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/LightningAddress.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..79731820c --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ListChannelsRequest.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/rpc_proxy.proto + +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..1caffbe9a --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/ListChannelsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/rpc_proxy.proto + +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..ddbe379f5 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/MPPRecord.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/rpc_proxy.proto + +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..38a77c89d --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/NodePair.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..6b35f606e --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PayReq.d.ts @@ -0,0 +1,43 @@ +// Original file: proto/rpc_proxy.proto + +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..d5f6c3fca --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PayReqString.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/rpc_proxy.proto + +export interface PayReqString { + pay_req?: string +} + +export interface PayReqString__Output { + pay_req: string +} diff --git a/src/grpc/types/lnrpc_proxy/Payment.ts b/src/grpc/types/lnrpc_proxy/Payment.ts new file mode 100644 index 000000000..4ea932c5a --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Payment.ts @@ -0,0 +1,69 @@ +// Original file: proto/rpc_proxy.proto + +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, + PaymentFailureReason__Output as _lnrpc_proxy_PaymentFailureReason__Output, +} from '../lnrpc_proxy/PaymentFailureReason' +import type { Long } from '@grpc/proto-loader' + +// Original file: proto/rpc_proxy.proto + +export const _lnrpc_proxy_Payment_PaymentStatus = { + UNKNOWN: 'UNKNOWN', + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED: 'FAILED', +} as const + +export type _lnrpc_proxy_Payment_PaymentStatus = + | 'UNKNOWN' + | 0 + | 'IN_FLIGHT' + | 1 + | 'SUCCEEDED' + | 2 + | 'FAILED' + | 3 + +export type _lnrpc_proxy_Payment_PaymentStatus__Output = + typeof _lnrpc_proxy_Payment_PaymentStatus[keyof typeof _lnrpc_proxy_Payment_PaymentStatus] + +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 + 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 +} + +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: _lnrpc_proxy_Payment_PaymentStatus__Output + fee_sat: string + fee_msat: string + creation_time_ns: string + htlcs: _lnrpc_proxy_HTLCAttempt__Output[] + payment_index: string + failure_reason: _lnrpc_proxy_PaymentFailureReason__Output +} diff --git a/src/grpc/types/lnrpc_proxy/PaymentFailureReason.ts b/src/grpc/types/lnrpc_proxy/PaymentFailureReason.ts new file mode 100644 index 000000000..63b90a391 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PaymentFailureReason.ts @@ -0,0 +1,28 @@ +// Original file: proto/rpc_proxy.proto + +export const PaymentFailureReason = { + FAILURE_REASON_NONE: 'FAILURE_REASON_NONE', + FAILURE_REASON_TIMEOUT: 'FAILURE_REASON_TIMEOUT', + FAILURE_REASON_NO_ROUTE: 'FAILURE_REASON_NO_ROUTE', + FAILURE_REASON_ERROR: 'FAILURE_REASON_ERROR', + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: + 'FAILURE_REASON_INCORRECT_PAYMENT_DETAILS', + FAILURE_REASON_INSUFFICIENT_BALANCE: 'FAILURE_REASON_INSUFFICIENT_BALANCE', +} as const + +export type 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 + +export type PaymentFailureReason__Output = + typeof PaymentFailureReason[keyof typeof PaymentFailureReason] 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..747d6628f --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/PaymentHash.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..cb1ae5c46 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/QueryRoutesRequest.d.ts @@ -0,0 +1,61 @@ +// Original file: proto/rpc_proxy.proto + +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, + FeatureBit__Output as _lnrpc_proxy_FeatureBit__Output, +} 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[] +} + +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: _lnrpc_proxy_FeatureBit__Output[] +} 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..af0413aee --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/QueryRoutesResponse.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/rpc_proxy.proto + +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..b807d3e3e --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/Route.d.ts @@ -0,0 +1,25 @@ +// Original file: proto/rpc_proxy.proto + +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..cd4855392 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/RouteHint.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/rpc_proxy.proto + +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..b2cc078ef --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/RoutingPolicy.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/rpc_proxy.proto + +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..692207dce --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SendRequest.d.ts @@ -0,0 +1,53 @@ +// Original file: proto/rpc_proxy.proto + +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, + FeatureBit__Output as _lnrpc_proxy_FeatureBit__Output, +} 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[] + 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: _lnrpc_proxy_FeatureBit__Output[] + 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..0a25be414 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SendResponse.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/rpc_proxy.proto + +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..ef5b81dc5 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SignMessageRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/rpc_proxy.proto + +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..adb7e53fd --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/SignMessageResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..5b7531a2e --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/VerifyMessageRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..bc31aa9e8 --- /dev/null +++ b/src/grpc/types/lnrpc_proxy/VerifyMessageResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/rpc_proxy.proto + +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..ad2f1e782 --- /dev/null +++ b/src/grpc/types/router.d.ts @@ -0,0 +1,281 @@ +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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + LookupHtlcRequest: MessageTypeDefinition + LookupHtlcResponse: 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 + FinalHtlcEvent: MessageTypeDefinition + 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 + SubscribedEvent: MessageTypeDefinition + TrackPaymentRequest: MessageTypeDefinition + TrackPaymentsRequest: MessageTypeDefinition + UpdateChanStatusRequest: MessageTypeDefinition + UpdateChanStatusResponse: MessageTypeDefinition + XImportMissionControlRequest: MessageTypeDefinition + XImportMissionControlResponse: MessageTypeDefinition + } +} diff --git a/src/grpc/types/routerrpc/BuildRouteRequest.d.ts b/src/grpc/types/routerrpc/BuildRouteRequest.d.ts new file mode 100644 index 000000000..69b066ca1 --- /dev/null +++ b/src/grpc/types/routerrpc/BuildRouteRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/router.proto + +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..c54d5d8ac --- /dev/null +++ b/src/grpc/types/routerrpc/BuildRouteResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/router.proto + +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.ts b/src/grpc/types/routerrpc/ChanStatusAction.ts new file mode 100644 index 000000000..7081320fd --- /dev/null +++ b/src/grpc/types/routerrpc/ChanStatusAction.ts @@ -0,0 +1,12 @@ +// Original file: proto/router.proto + +export const ChanStatusAction = { + ENABLE: 'ENABLE', + DISABLE: 'DISABLE', + AUTO: 'AUTO', +} as const + +export type ChanStatusAction = 'ENABLE' | 0 | 'DISABLE' | 1 | 'AUTO' | 2 + +export type ChanStatusAction__Output = + typeof ChanStatusAction[keyof typeof ChanStatusAction] diff --git a/src/grpc/types/routerrpc/CircuitKey.d.ts b/src/grpc/types/routerrpc/CircuitKey.d.ts new file mode 100644 index 000000000..068b59fef --- /dev/null +++ b/src/grpc/types/routerrpc/CircuitKey.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/router.proto + +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.ts b/src/grpc/types/routerrpc/FailureDetail.ts new file mode 100644 index 000000000..d29b657e2 --- /dev/null +++ b/src/grpc/types/routerrpc/FailureDetail.ts @@ -0,0 +1,78 @@ +// Original file: proto/router.proto + +export const FailureDetail = { + UNKNOWN: 'UNKNOWN', + NO_DETAIL: 'NO_DETAIL', + ONION_DECODE: 'ONION_DECODE', + LINK_NOT_ELIGIBLE: 'LINK_NOT_ELIGIBLE', + ON_CHAIN_TIMEOUT: 'ON_CHAIN_TIMEOUT', + HTLC_EXCEEDS_MAX: 'HTLC_EXCEEDS_MAX', + INSUFFICIENT_BALANCE: 'INSUFFICIENT_BALANCE', + INCOMPLETE_FORWARD: 'INCOMPLETE_FORWARD', + HTLC_ADD_FAILED: 'HTLC_ADD_FAILED', + FORWARDS_DISABLED: 'FORWARDS_DISABLED', + INVOICE_CANCELED: 'INVOICE_CANCELED', + INVOICE_UNDERPAID: 'INVOICE_UNDERPAID', + INVOICE_EXPIRY_TOO_SOON: 'INVOICE_EXPIRY_TOO_SOON', + INVOICE_NOT_OPEN: 'INVOICE_NOT_OPEN', + MPP_INVOICE_TIMEOUT: 'MPP_INVOICE_TIMEOUT', + ADDRESS_MISMATCH: 'ADDRESS_MISMATCH', + SET_TOTAL_MISMATCH: 'SET_TOTAL_MISMATCH', + SET_TOTAL_TOO_LOW: 'SET_TOTAL_TOO_LOW', + SET_OVERPAID: 'SET_OVERPAID', + UNKNOWN_INVOICE: 'UNKNOWN_INVOICE', + INVALID_KEYSEND: 'INVALID_KEYSEND', + MPP_IN_PROGRESS: 'MPP_IN_PROGRESS', + CIRCULAR_ROUTE: 'CIRCULAR_ROUTE', +} as const + +export type 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 + +export type FailureDetail__Output = + typeof FailureDetail[keyof typeof FailureDetail] diff --git a/src/grpc/types/routerrpc/FinalHtlcEvent.d.ts b/src/grpc/types/routerrpc/FinalHtlcEvent.d.ts new file mode 100644 index 000000000..57fc7fef5 --- /dev/null +++ b/src/grpc/types/routerrpc/FinalHtlcEvent.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/router.proto + +export interface FinalHtlcEvent { + settled?: boolean + offchain?: boolean +} + +export interface FinalHtlcEvent__Output { + settled: boolean + offchain: boolean +} diff --git a/src/grpc/types/routerrpc/ForwardEvent.d.ts b/src/grpc/types/routerrpc/ForwardEvent.d.ts new file mode 100644 index 000000000..6a863d1e3 --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardEvent.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/router.proto + +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..46ab6cb75 --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardFailEvent.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface ForwardFailEvent { + [k: string]: never +} + +export interface ForwardFailEvent__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts b/src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts new file mode 100644 index 000000000..32904ab2a --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardHtlcInterceptRequest.d.ts @@ -0,0 +1,33 @@ +// Original file: proto/router.proto + +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 + auto_fail_height?: number +} + +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 + auto_fail_height: number +} diff --git a/src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts b/src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts new file mode 100644 index 000000000..fe4e932a4 --- /dev/null +++ b/src/grpc/types/routerrpc/ForwardHtlcInterceptResponse.d.ts @@ -0,0 +1,30 @@ +// Original file: proto/router.proto + +import type { + CircuitKey as _routerrpc_CircuitKey, + CircuitKey__Output as _routerrpc_CircuitKey__Output, +} from '../routerrpc/CircuitKey' +import type { + ResolveHoldForwardAction as _routerrpc_ResolveHoldForwardAction, + ResolveHoldForwardAction__Output as _routerrpc_ResolveHoldForwardAction__Output, +} from '../routerrpc/ResolveHoldForwardAction' +import type { + _lnrpc_Failure_FailureCode, + _lnrpc_Failure_FailureCode__Output, +} from '../lnrpc/Failure' + +export interface ForwardHtlcInterceptResponse { + incoming_circuit_key?: _routerrpc_CircuitKey | null + action?: _routerrpc_ResolveHoldForwardAction + preimage?: Buffer | Uint8Array | string + failure_message?: Buffer | Uint8Array | string + failure_code?: _lnrpc_Failure_FailureCode +} + +export interface ForwardHtlcInterceptResponse__Output { + incoming_circuit_key: _routerrpc_CircuitKey__Output | null + action: _routerrpc_ResolveHoldForwardAction__Output + preimage: Buffer + failure_message: Buffer + failure_code: _lnrpc_Failure_FailureCode__Output +} diff --git a/src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts b/src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts new file mode 100644 index 000000000..340ab9681 --- /dev/null +++ b/src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface GetMissionControlConfigRequest { + [k: string]: never +} + +export interface GetMissionControlConfigRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts b/src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts new file mode 100644 index 000000000..98e981b94 --- /dev/null +++ b/src/grpc/types/routerrpc/GetMissionControlConfigResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/router.proto + +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.ts b/src/grpc/types/routerrpc/HtlcEvent.ts new file mode 100644 index 000000000..26749ed6b --- /dev/null +++ b/src/grpc/types/routerrpc/HtlcEvent.ts @@ -0,0 +1,93 @@ +// Original file: proto/router.proto + +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 { + SubscribedEvent as _routerrpc_SubscribedEvent, + SubscribedEvent__Output as _routerrpc_SubscribedEvent__Output, +} from '../routerrpc/SubscribedEvent' +import type { + FinalHtlcEvent as _routerrpc_FinalHtlcEvent, + FinalHtlcEvent__Output as _routerrpc_FinalHtlcEvent__Output, +} from '../routerrpc/FinalHtlcEvent' +import type { Long } from '@grpc/proto-loader' + +// Original file: proto/router.proto + +export const _routerrpc_HtlcEvent_EventType = { + UNKNOWN: 'UNKNOWN', + SEND: 'SEND', + RECEIVE: 'RECEIVE', + FORWARD: 'FORWARD', +} as const + +export type _routerrpc_HtlcEvent_EventType = + | 'UNKNOWN' + | 0 + | 'SEND' + | 1 + | 'RECEIVE' + | 2 + | 'FORWARD' + | 3 + +export type _routerrpc_HtlcEvent_EventType__Output = + typeof _routerrpc_HtlcEvent_EventType[keyof typeof _routerrpc_HtlcEvent_EventType] + +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 + forward_event?: _routerrpc_ForwardEvent | null + forward_fail_event?: _routerrpc_ForwardFailEvent | null + settle_event?: _routerrpc_SettleEvent | null + link_fail_event?: _routerrpc_LinkFailEvent | null + subscribed_event?: _routerrpc_SubscribedEvent | null + final_htlc_event?: _routerrpc_FinalHtlcEvent | null + event?: + | 'forward_event' + | 'forward_fail_event' + | 'settle_event' + | 'link_fail_event' + | 'subscribed_event' + | 'final_htlc_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: _routerrpc_HtlcEvent_EventType__Output + 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 + subscribed_event?: _routerrpc_SubscribedEvent__Output | null + final_htlc_event?: _routerrpc_FinalHtlcEvent__Output | null + event: + | 'forward_event' + | 'forward_fail_event' + | 'settle_event' + | 'link_fail_event' + | 'subscribed_event' + | 'final_htlc_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..5d6273c08 --- /dev/null +++ b/src/grpc/types/routerrpc/HtlcInfo.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/router.proto + +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..9db38a0a3 --- /dev/null +++ b/src/grpc/types/routerrpc/LinkFailEvent.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/router.proto + +import type { + HtlcInfo as _routerrpc_HtlcInfo, + HtlcInfo__Output as _routerrpc_HtlcInfo__Output, +} from '../routerrpc/HtlcInfo' +import type { + _lnrpc_Failure_FailureCode, + _lnrpc_Failure_FailureCode__Output, +} from '../lnrpc/Failure' +import type { + FailureDetail as _routerrpc_FailureDetail, + FailureDetail__Output as _routerrpc_FailureDetail__Output, +} from '../routerrpc/FailureDetail' + +export interface LinkFailEvent { + info?: _routerrpc_HtlcInfo | null + wire_failure?: _lnrpc_Failure_FailureCode + failure_detail?: _routerrpc_FailureDetail + failure_string?: string +} + +export interface LinkFailEvent__Output { + info: _routerrpc_HtlcInfo__Output | null + wire_failure: _lnrpc_Failure_FailureCode__Output + failure_detail: _routerrpc_FailureDetail__Output + 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..d2fe38dbd --- /dev/null +++ b/src/grpc/types/routerrpc/MissionControlConfig.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/router.proto + +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..8ef894a92 --- /dev/null +++ b/src/grpc/types/routerrpc/PairData.d.ts @@ -0,0 +1,21 @@ +// Original file: proto/router.proto + +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..b99bc5cfa --- /dev/null +++ b/src/grpc/types/routerrpc/PairHistory.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/router.proto + +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.ts b/src/grpc/types/routerrpc/PaymentState.ts new file mode 100644 index 000000000..22a3dbb92 --- /dev/null +++ b/src/grpc/types/routerrpc/PaymentState.ts @@ -0,0 +1,30 @@ +// Original file: proto/router.proto + +export const PaymentState = { + IN_FLIGHT: 'IN_FLIGHT', + SUCCEEDED: 'SUCCEEDED', + FAILED_TIMEOUT: 'FAILED_TIMEOUT', + FAILED_NO_ROUTE: 'FAILED_NO_ROUTE', + FAILED_ERROR: 'FAILED_ERROR', + FAILED_INCORRECT_PAYMENT_DETAILS: 'FAILED_INCORRECT_PAYMENT_DETAILS', + FAILED_INSUFFICIENT_BALANCE: 'FAILED_INSUFFICIENT_BALANCE', +} as const + +export type 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 + +export type PaymentState__Output = + typeof PaymentState[keyof typeof PaymentState] diff --git a/src/grpc/types/routerrpc/PaymentStatus.d.ts b/src/grpc/types/routerrpc/PaymentStatus.d.ts new file mode 100644 index 000000000..5cbcd20d7 --- /dev/null +++ b/src/grpc/types/routerrpc/PaymentStatus.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/router.proto + +import type { + PaymentState as _routerrpc_PaymentState, + PaymentState__Output as _routerrpc_PaymentState__Output, +} from '../routerrpc/PaymentState' +import type { + HTLCAttempt as _lnrpc_HTLCAttempt, + HTLCAttempt__Output as _lnrpc_HTLCAttempt__Output, +} from '../lnrpc/HTLCAttempt' + +export interface PaymentStatus { + state?: _routerrpc_PaymentState + preimage?: Buffer | Uint8Array | string + htlcs?: _lnrpc_HTLCAttempt[] +} + +export interface PaymentStatus__Output { + state: _routerrpc_PaymentState__Output + 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..c133771e9 --- /dev/null +++ b/src/grpc/types/routerrpc/QueryMissionControlRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface QueryMissionControlRequest { + [k: string]: never +} + +export interface QueryMissionControlRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts b/src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts new file mode 100644 index 000000000..30d974f9d --- /dev/null +++ b/src/grpc/types/routerrpc/QueryMissionControlResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/router.proto + +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..39b053556 --- /dev/null +++ b/src/grpc/types/routerrpc/QueryProbabilityRequest.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/router.proto + +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..1753ead10 --- /dev/null +++ b/src/grpc/types/routerrpc/QueryProbabilityResponse.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/router.proto + +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..26f084ce5 --- /dev/null +++ b/src/grpc/types/routerrpc/ResetMissionControlRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface ResetMissionControlRequest { + [k: string]: never +} + +export interface ResetMissionControlRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts b/src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts new file mode 100644 index 000000000..60bc207c1 --- /dev/null +++ b/src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface ResetMissionControlResponse { + [k: string]: never +} + +export interface ResetMissionControlResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/ResolveHoldForwardAction.ts b/src/grpc/types/routerrpc/ResolveHoldForwardAction.ts new file mode 100644 index 000000000..f169fb93a --- /dev/null +++ b/src/grpc/types/routerrpc/ResolveHoldForwardAction.ts @@ -0,0 +1,12 @@ +// Original file: proto/router.proto + +export const ResolveHoldForwardAction = { + SETTLE: 'SETTLE', + FAIL: 'FAIL', + RESUME: 'RESUME', +} as const + +export type ResolveHoldForwardAction = 'SETTLE' | 0 | 'FAIL' | 1 | 'RESUME' | 2 + +export type ResolveHoldForwardAction__Output = + typeof ResolveHoldForwardAction[keyof typeof ResolveHoldForwardAction] diff --git a/src/grpc/types/routerrpc/RouteFeeRequest.d.ts b/src/grpc/types/routerrpc/RouteFeeRequest.d.ts new file mode 100644 index 000000000..b73f9fba7 --- /dev/null +++ b/src/grpc/types/routerrpc/RouteFeeRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/router.proto + +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..02cb451eb --- /dev/null +++ b/src/grpc/types/routerrpc/RouteFeeResponse.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/router.proto + +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..8005e8b94 --- /dev/null +++ b/src/grpc/types/routerrpc/Router.d.ts @@ -0,0 +1,921 @@ +// Original file: proto/router.proto + +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 { + TrackPaymentsRequest as _routerrpc_TrackPaymentsRequest, + TrackPaymentsRequest__Output as _routerrpc_TrackPaymentsRequest__Output, +} from '../routerrpc/TrackPaymentsRequest' +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> + + TrackPayments( + argument: _routerrpc_TrackPaymentsRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + TrackPayments( + argument: _routerrpc_TrackPaymentsRequest, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + trackPayments( + argument: _routerrpc_TrackPaymentsRequest, + metadata: grpc.Metadata, + options?: grpc.CallOptions + ): grpc.ClientReadableStream<_lnrpc_Payment__Output> + trackPayments( + argument: _routerrpc_TrackPaymentsRequest, + 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 + > + + TrackPayments: grpc.handleServerStreamingCall< + _routerrpc_TrackPaymentsRequest__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 + > + TrackPayments: MethodDefinition< + _routerrpc_TrackPaymentsRequest, + _lnrpc_Payment, + _routerrpc_TrackPaymentsRequest__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..d9f825b88 --- /dev/null +++ b/src/grpc/types/routerrpc/SendPaymentRequest.d.ts @@ -0,0 +1,63 @@ +// Original file: proto/router.proto + +import type { + RouteHint as _lnrpc_RouteHint, + RouteHint__Output as _lnrpc_RouteHint__Output, +} from '../lnrpc/RouteHint' +import type { + FeatureBit as _lnrpc_FeatureBit, + FeatureBit__Output as _lnrpc_FeatureBit__Output, +} 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[] + 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: _lnrpc_FeatureBit__Output[] + 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..b4c9215e0 --- /dev/null +++ b/src/grpc/types/routerrpc/SendToRouteRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/router.proto + +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..8cb09a3b9 --- /dev/null +++ b/src/grpc/types/routerrpc/SendToRouteResponse.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/router.proto + +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..0b6133e7f --- /dev/null +++ b/src/grpc/types/routerrpc/SetMissionControlConfigRequest.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/router.proto + +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..3cc53b5ca --- /dev/null +++ b/src/grpc/types/routerrpc/SetMissionControlConfigResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface SetMissionControlConfigResponse { + [k: string]: never +} + +export interface SetMissionControlConfigResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/SettleEvent.d.ts b/src/grpc/types/routerrpc/SettleEvent.d.ts new file mode 100644 index 000000000..c14a82860 --- /dev/null +++ b/src/grpc/types/routerrpc/SettleEvent.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +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..d8a761e81 --- /dev/null +++ b/src/grpc/types/routerrpc/SubscribeHtlcEventsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface SubscribeHtlcEventsRequest { + [k: string]: never +} + +export interface SubscribeHtlcEventsRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/SubscribedEvent.d.ts b/src/grpc/types/routerrpc/SubscribedEvent.d.ts new file mode 100644 index 000000000..040e6c6a9 --- /dev/null +++ b/src/grpc/types/routerrpc/SubscribedEvent.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface SubscribedEvent { + [k: string]: never +} + +export interface SubscribedEvent__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/TrackPaymentRequest.d.ts b/src/grpc/types/routerrpc/TrackPaymentRequest.d.ts new file mode 100644 index 000000000..316775eed --- /dev/null +++ b/src/grpc/types/routerrpc/TrackPaymentRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/router.proto + +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/TrackPaymentsRequest.d.ts b/src/grpc/types/routerrpc/TrackPaymentsRequest.d.ts new file mode 100644 index 000000000..2752a357b --- /dev/null +++ b/src/grpc/types/routerrpc/TrackPaymentsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface TrackPaymentsRequest { + no_inflight_updates?: boolean +} + +export interface TrackPaymentsRequest__Output { + 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..c586212b9 --- /dev/null +++ b/src/grpc/types/routerrpc/UpdateChanStatusRequest.d.ts @@ -0,0 +1,20 @@ +// Original file: proto/router.proto + +import type { + ChannelPoint as _lnrpc_ChannelPoint, + ChannelPoint__Output as _lnrpc_ChannelPoint__Output, +} from '../lnrpc/ChannelPoint' +import type { + ChanStatusAction as _routerrpc_ChanStatusAction, + ChanStatusAction__Output as _routerrpc_ChanStatusAction__Output, +} from '../routerrpc/ChanStatusAction' + +export interface UpdateChanStatusRequest { + chan_point?: _lnrpc_ChannelPoint | null + action?: _routerrpc_ChanStatusAction +} + +export interface UpdateChanStatusRequest__Output { + chan_point: _lnrpc_ChannelPoint__Output | null + action: _routerrpc_ChanStatusAction__Output +} diff --git a/src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts b/src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts new file mode 100644 index 000000000..e040df71b --- /dev/null +++ b/src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface UpdateChanStatusResponse { + [k: string]: never +} + +export interface UpdateChanStatusResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts b/src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts new file mode 100644 index 000000000..4f10f7db2 --- /dev/null +++ b/src/grpc/types/routerrpc/XImportMissionControlRequest.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/router.proto + +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..a7d499174 --- /dev/null +++ b/src/grpc/types/routerrpc/XImportMissionControlResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/router.proto + +export interface XImportMissionControlResponse { + [k: string]: never +} + +export interface XImportMissionControlResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/rpc_proxy.d.ts b/src/grpc/types/rpc_proxy.d.ts new file mode 100644 index 000000000..3999716cd --- /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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + } +} diff --git a/src/grpc/types/scheduler.d.ts b/src/grpc/types/scheduler.d.ts new file mode 100644 index 000000000..a79b33b4e --- /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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 } + } +} diff --git a/src/grpc/types/scheduler/ChallengeRequest.d.ts b/src/grpc/types/scheduler/ChallengeRequest.d.ts new file mode 100644 index 000000000..0c75b6991 --- /dev/null +++ b/src/grpc/types/scheduler/ChallengeRequest.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/scheduler.proto + +import type { + ChallengeScope as _scheduler_ChallengeScope, + ChallengeScope__Output as _scheduler_ChallengeScope__Output, +} from '../scheduler/ChallengeScope' + +export interface ChallengeRequest { + scope?: _scheduler_ChallengeScope + node_id?: Buffer | Uint8Array | string +} + +export interface ChallengeRequest__Output { + scope: _scheduler_ChallengeScope__Output + 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..0a9d3d114 --- /dev/null +++ b/src/grpc/types/scheduler/ChallengeResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/scheduler.proto + +export interface ChallengeResponse { + challenge?: Buffer | Uint8Array | string +} + +export interface ChallengeResponse__Output { + challenge: Buffer +} diff --git a/src/grpc/types/scheduler/ChallengeScope.ts b/src/grpc/types/scheduler/ChallengeScope.ts new file mode 100644 index 000000000..63f1c499c --- /dev/null +++ b/src/grpc/types/scheduler/ChallengeScope.ts @@ -0,0 +1,11 @@ +// Original file: proto/scheduler.proto + +export const ChallengeScope = { + REGISTER: 'REGISTER', + RECOVER: 'RECOVER', +} as const + +export type ChallengeScope = 'REGISTER' | 0 | 'RECOVER' | 1 + +export type ChallengeScope__Output = + typeof ChallengeScope[keyof typeof ChallengeScope] diff --git a/src/grpc/types/scheduler/NodeInfoRequest.d.ts b/src/grpc/types/scheduler/NodeInfoRequest.d.ts new file mode 100644 index 000000000..03d0cdf63 --- /dev/null +++ b/src/grpc/types/scheduler/NodeInfoRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/scheduler.proto + +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..8a55a4342 --- /dev/null +++ b/src/grpc/types/scheduler/NodeInfoResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/scheduler.proto + +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..3c1ba30df --- /dev/null +++ b/src/grpc/types/scheduler/RecoveryRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/scheduler.proto + +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..37646e218 --- /dev/null +++ b/src/grpc/types/scheduler/RecoveryResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/scheduler.proto + +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..ec6d14b9d --- /dev/null +++ b/src/grpc/types/scheduler/RegistrationRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/scheduler.proto + +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..d731df682 --- /dev/null +++ b/src/grpc/types/scheduler/RegistrationResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/scheduler.proto + +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..171eeff9c --- /dev/null +++ b/src/grpc/types/scheduler/ScheduleRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/scheduler.proto + +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..483e9928e --- /dev/null +++ b/src/grpc/types/scheduler/Scheduler.d.ts @@ -0,0 +1,307 @@ +// Original file: proto/scheduler.proto + +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..8758cfa2c --- /dev/null +++ b/src/grpc/types/signer.d.ts @@ -0,0 +1,54 @@ +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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + } +} diff --git a/src/grpc/types/signrpc/InputScript.d.ts b/src/grpc/types/signrpc/InputScript.d.ts new file mode 100644 index 000000000..a250f8742 --- /dev/null +++ b/src/grpc/types/signrpc/InputScript.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..2fdc5f78a --- /dev/null +++ b/src/grpc/types/signrpc/InputScriptResp.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/signer.proto + +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..9fb4e6300 --- /dev/null +++ b/src/grpc/types/signrpc/KeyDescriptor.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/signer.proto + +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..85bb9a66a --- /dev/null +++ b/src/grpc/types/signrpc/KeyLocator.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..b1b4dbe89 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CleanupRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +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..58e3285d9 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CleanupResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +export interface MuSig2CleanupResponse { + [k: string]: never +} + +export interface MuSig2CleanupResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts b/src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts new file mode 100644 index 000000000..40cf3d743 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineKeysRequest.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/signer.proto + +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..c699a9a77 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineKeysResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..6ecc2debf --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineSigRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..8f0b1389b --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2CombineSigResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..c1fdac58a --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2RegisterNoncesRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..62d728dd0 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2RegisterNoncesResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +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..9155e993d --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SessionRequest.d.ts @@ -0,0 +1,30 @@ +// Original file: proto/signer.proto + +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..dc7f3b608 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SessionResponse.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/signer.proto + +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..d037713e8 --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SignRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/signer.proto + +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..29661aa9a --- /dev/null +++ b/src/grpc/types/signrpc/MuSig2SignResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +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..5455fd85b --- /dev/null +++ b/src/grpc/types/signrpc/SharedKeyRequest.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/signer.proto + +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..820fd431c --- /dev/null +++ b/src/grpc/types/signrpc/SharedKeyResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +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..8dabbf8a6 --- /dev/null +++ b/src/grpc/types/signrpc/SignDescriptor.d.ts @@ -0,0 +1,38 @@ +// Original file: proto/signer.proto + +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, + SignMethod__Output as _signrpc_SignMethod__Output, +} 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 + 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: _signrpc_SignMethod__Output + 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..9fab604ae --- /dev/null +++ b/src/grpc/types/signrpc/SignMessageReq.d.ts @@ -0,0 +1,24 @@ +// Original file: proto/signer.proto + +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..3c8814439 --- /dev/null +++ b/src/grpc/types/signrpc/SignMessageResp.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +export interface SignMessageResp { + signature?: Buffer | Uint8Array | string +} + +export interface SignMessageResp__Output { + signature: Buffer +} diff --git a/src/grpc/types/signrpc/SignMethod.ts b/src/grpc/types/signrpc/SignMethod.ts new file mode 100644 index 000000000..c22c1fcb6 --- /dev/null +++ b/src/grpc/types/signrpc/SignMethod.ts @@ -0,0 +1,21 @@ +// Original file: proto/signer.proto + +export const SignMethod = { + SIGN_METHOD_WITNESS_V0: 'SIGN_METHOD_WITNESS_V0', + SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086: + 'SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086', + SIGN_METHOD_TAPROOT_KEY_SPEND: 'SIGN_METHOD_TAPROOT_KEY_SPEND', + SIGN_METHOD_TAPROOT_SCRIPT_SPEND: 'SIGN_METHOD_TAPROOT_SCRIPT_SPEND', +} as const + +export type 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 + +export type SignMethod__Output = typeof SignMethod[keyof typeof SignMethod] diff --git a/src/grpc/types/signrpc/SignReq.d.ts b/src/grpc/types/signrpc/SignReq.d.ts new file mode 100644 index 000000000..5adda2806 --- /dev/null +++ b/src/grpc/types/signrpc/SignReq.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/signer.proto + +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..d248070f0 --- /dev/null +++ b/src/grpc/types/signrpc/SignResp.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +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..0b0f17467 --- /dev/null +++ b/src/grpc/types/signrpc/Signer.d.ts @@ -0,0 +1,667 @@ +// Original file: proto/signer.proto + +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..9086fc01d --- /dev/null +++ b/src/grpc/types/signrpc/TaprootTweakDesc.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..e5881c682 --- /dev/null +++ b/src/grpc/types/signrpc/TweakDesc.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/signer.proto + +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..318073dff --- /dev/null +++ b/src/grpc/types/signrpc/TxOut.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/signer.proto + +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..e2a061da2 --- /dev/null +++ b/src/grpc/types/signrpc/VerifyMessageReq.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/signer.proto + +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..8ce7d113d --- /dev/null +++ b/src/grpc/types/signrpc/VerifyMessageResp.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/signer.proto + +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..5406801a3 --- /dev/null +++ b/src/grpc/types/walletkit.d.ts @@ -0,0 +1,335 @@ +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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + LookupHtlcRequest: MessageTypeDefinition + LookupHtlcResponse: 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 + SignMessageWithAddrRequest: MessageTypeDefinition + SignMessageWithAddrResponse: MessageTypeDefinition + SignPsbtRequest: MessageTypeDefinition + SignPsbtResponse: MessageTypeDefinition + TapLeaf: MessageTypeDefinition + TapscriptFullTree: MessageTypeDefinition + TapscriptPartialReveal: MessageTypeDefinition + Transaction: MessageTypeDefinition + TxTemplate: MessageTypeDefinition + UtxoLease: MessageTypeDefinition + VerifyMessageWithAddrRequest: MessageTypeDefinition + VerifyMessageWithAddrResponse: MessageTypeDefinition + WalletKit: SubtypeConstructor< + typeof grpc.Client, + _walletrpc_WalletKitClient + > & { service: _walletrpc_WalletKitDefinition } + WitnessType: EnumTypeDefinition + } +} diff --git a/src/grpc/types/walletrpc/Account.d.ts b/src/grpc/types/walletrpc/Account.d.ts new file mode 100644 index 000000000..836a38b13 --- /dev/null +++ b/src/grpc/types/walletrpc/Account.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/walletkit.proto + +import type { + AddressType as _walletrpc_AddressType, + AddressType__Output as _walletrpc_AddressType__Output, +} from '../walletrpc/AddressType' + +export interface Account { + name?: string + address_type?: _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: _walletrpc_AddressType__Output + 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..ad51f0bc8 --- /dev/null +++ b/src/grpc/types/walletrpc/AccountWithAddresses.d.ts @@ -0,0 +1,24 @@ +// Original file: proto/walletkit.proto + +import type { + AddressType as _walletrpc_AddressType, + AddressType__Output as _walletrpc_AddressType__Output, +} 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 + derivation_path?: string + addresses?: _walletrpc_AddressProperty[] +} + +export interface AccountWithAddresses__Output { + name: string + address_type: _walletrpc_AddressType__Output + 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..e7818fcad --- /dev/null +++ b/src/grpc/types/walletrpc/AddrRequest.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/walletkit.proto + +import type { + AddressType as _walletrpc_AddressType, + AddressType__Output as _walletrpc_AddressType__Output, +} from '../walletrpc/AddressType' + +export interface AddrRequest { + account?: string + type?: _walletrpc_AddressType + change?: boolean +} + +export interface AddrRequest__Output { + account: string + type: _walletrpc_AddressType__Output + 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..82e1d5663 --- /dev/null +++ b/src/grpc/types/walletrpc/AddrResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..5a6b1e1bf --- /dev/null +++ b/src/grpc/types/walletrpc/AddressProperty.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/walletkit.proto + +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.ts b/src/grpc/types/walletrpc/AddressType.ts new file mode 100644 index 000000000..5e209ae7a --- /dev/null +++ b/src/grpc/types/walletrpc/AddressType.ts @@ -0,0 +1,23 @@ +// Original file: proto/walletkit.proto + +export const AddressType = { + UNKNOWN: 'UNKNOWN', + WITNESS_PUBKEY_HASH: 'WITNESS_PUBKEY_HASH', + NESTED_WITNESS_PUBKEY_HASH: 'NESTED_WITNESS_PUBKEY_HASH', + HYBRID_NESTED_WITNESS_PUBKEY_HASH: 'HYBRID_NESTED_WITNESS_PUBKEY_HASH', + TAPROOT_PUBKEY: 'TAPROOT_PUBKEY', +} as const + +export type AddressType = + | 'UNKNOWN' + | 0 + | 'WITNESS_PUBKEY_HASH' + | 1 + | 'NESTED_WITNESS_PUBKEY_HASH' + | 2 + | 'HYBRID_NESTED_WITNESS_PUBKEY_HASH' + | 3 + | 'TAPROOT_PUBKEY' + | 4 + +export type AddressType__Output = typeof AddressType[keyof typeof AddressType] diff --git a/src/grpc/types/walletrpc/BumpFeeRequest.d.ts b/src/grpc/types/walletrpc/BumpFeeRequest.d.ts new file mode 100644 index 000000000..318766f41 --- /dev/null +++ b/src/grpc/types/walletrpc/BumpFeeRequest.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/walletkit.proto + +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..e646de242 --- /dev/null +++ b/src/grpc/types/walletrpc/BumpFeeResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface BumpFeeResponse { + [k: string]: never +} + +export interface BumpFeeResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/walletrpc/EstimateFeeRequest.d.ts b/src/grpc/types/walletrpc/EstimateFeeRequest.d.ts new file mode 100644 index 000000000..e63678520 --- /dev/null +++ b/src/grpc/types/walletrpc/EstimateFeeRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..7060a63e8 --- /dev/null +++ b/src/grpc/types/walletrpc/EstimateFeeResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..48cf5a02a --- /dev/null +++ b/src/grpc/types/walletrpc/FinalizePsbtRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..c1ae16f8b --- /dev/null +++ b/src/grpc/types/walletrpc/FinalizePsbtResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..ac9753594 --- /dev/null +++ b/src/grpc/types/walletrpc/FundPsbtRequest.d.ts @@ -0,0 +1,31 @@ +// Original file: proto/walletkit.proto + +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..46947d671 --- /dev/null +++ b/src/grpc/types/walletrpc/FundPsbtResponse.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/walletkit.proto + +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..bfd0145b0 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportAccountRequest.d.ts @@ -0,0 +1,22 @@ +// Original file: proto/walletkit.proto + +import type { + AddressType as _walletrpc_AddressType, + AddressType__Output as _walletrpc_AddressType__Output, +} from '../walletrpc/AddressType' + +export interface ImportAccountRequest { + name?: string + extended_public_key?: string + master_key_fingerprint?: Buffer | Uint8Array | string + address_type?: _walletrpc_AddressType + dry_run?: boolean +} + +export interface ImportAccountRequest__Output { + name: string + extended_public_key: string + master_key_fingerprint: Buffer + address_type: _walletrpc_AddressType__Output + 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..d69a754bd --- /dev/null +++ b/src/grpc/types/walletrpc/ImportAccountResponse.d.ts @@ -0,0 +1,18 @@ +// Original file: proto/walletkit.proto + +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..3562afde3 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportPublicKeyRequest.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/walletkit.proto + +import type { + AddressType as _walletrpc_AddressType, + AddressType__Output as _walletrpc_AddressType__Output, +} from '../walletrpc/AddressType' + +export interface ImportPublicKeyRequest { + public_key?: Buffer | Uint8Array | string + address_type?: _walletrpc_AddressType +} + +export interface ImportPublicKeyRequest__Output { + public_key: Buffer + address_type: _walletrpc_AddressType__Output +} diff --git a/src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts b/src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts new file mode 100644 index 000000000..c1e183765 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface ImportPublicKeyResponse { + [k: string]: never +} + +export interface ImportPublicKeyResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts b/src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts new file mode 100644 index 000000000..10e966750 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportTapscriptRequest.d.ts @@ -0,0 +1,28 @@ +// Original file: proto/walletkit.proto + +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..88974cff5 --- /dev/null +++ b/src/grpc/types/walletrpc/ImportTapscriptResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..724544ef5 --- /dev/null +++ b/src/grpc/types/walletrpc/KeyReq.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..b2b8cb2a0 --- /dev/null +++ b/src/grpc/types/walletrpc/LabelTransactionRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/walletkit.proto + +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..2c3a73cc2 --- /dev/null +++ b/src/grpc/types/walletrpc/LabelTransactionResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface LabelTransactionResponse { + [k: string]: never +} + +export interface LabelTransactionResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/walletrpc/LeaseOutputRequest.d.ts b/src/grpc/types/walletrpc/LeaseOutputRequest.d.ts new file mode 100644 index 000000000..170a7c38c --- /dev/null +++ b/src/grpc/types/walletrpc/LeaseOutputRequest.d.ts @@ -0,0 +1,19 @@ +// Original file: proto/walletkit.proto + +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..b7df816c2 --- /dev/null +++ b/src/grpc/types/walletrpc/LeaseOutputResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..31126ec0a --- /dev/null +++ b/src/grpc/types/walletrpc/ListAccountsRequest.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/walletkit.proto + +import type { + AddressType as _walletrpc_AddressType, + AddressType__Output as _walletrpc_AddressType__Output, +} from '../walletrpc/AddressType' + +export interface ListAccountsRequest { + name?: string + address_type?: _walletrpc_AddressType +} + +export interface ListAccountsRequest__Output { + name: string + address_type: _walletrpc_AddressType__Output +} diff --git a/src/grpc/types/walletrpc/ListAccountsResponse.d.ts b/src/grpc/types/walletrpc/ListAccountsResponse.d.ts new file mode 100644 index 000000000..dd6a12f04 --- /dev/null +++ b/src/grpc/types/walletrpc/ListAccountsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/walletkit.proto + +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..2d592dee5 --- /dev/null +++ b/src/grpc/types/walletrpc/ListAddressesRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..78eeaf70f --- /dev/null +++ b/src/grpc/types/walletrpc/ListAddressesResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/walletkit.proto + +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..ce9142fbb --- /dev/null +++ b/src/grpc/types/walletrpc/ListLeasesRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface ListLeasesRequest { + [k: string]: never +} + +export interface ListLeasesRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/walletrpc/ListLeasesResponse.d.ts b/src/grpc/types/walletrpc/ListLeasesResponse.d.ts new file mode 100644 index 000000000..792c58fcf --- /dev/null +++ b/src/grpc/types/walletrpc/ListLeasesResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/walletkit.proto + +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..2c0d945fd --- /dev/null +++ b/src/grpc/types/walletrpc/ListSweepsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..450a7ef48 --- /dev/null +++ b/src/grpc/types/walletrpc/ListSweepsResponse.d.ts @@ -0,0 +1,26 @@ +// Original file: proto/walletkit.proto + +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..c936a850b --- /dev/null +++ b/src/grpc/types/walletrpc/ListUnspentRequest.d.ts @@ -0,0 +1,15 @@ +// Original file: proto/walletkit.proto + +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..c1c4b93f3 --- /dev/null +++ b/src/grpc/types/walletrpc/ListUnspentResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/walletkit.proto + +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..fa88a5e7b --- /dev/null +++ b/src/grpc/types/walletrpc/PendingSweep.d.ts @@ -0,0 +1,39 @@ +// Original file: proto/walletkit.proto + +import type { + OutPoint as _lnrpc_OutPoint, + OutPoint__Output as _lnrpc_OutPoint__Output, +} from '../lnrpc/OutPoint' +import type { + WitnessType as _walletrpc_WitnessType, + WitnessType__Output as _walletrpc_WitnessType__Output, +} from '../walletrpc/WitnessType' +import type { Long } from '@grpc/proto-loader' + +export interface PendingSweep { + outpoint?: _lnrpc_OutPoint | null + witness_type?: _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: _walletrpc_WitnessType__Output + 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..48317ffcd --- /dev/null +++ b/src/grpc/types/walletrpc/PendingSweepsRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface PendingSweepsRequest { + [k: string]: never +} + +export interface PendingSweepsRequest__Output { + [k: string]: never +} diff --git a/src/grpc/types/walletrpc/PendingSweepsResponse.d.ts b/src/grpc/types/walletrpc/PendingSweepsResponse.d.ts new file mode 100644 index 000000000..f62c23878 --- /dev/null +++ b/src/grpc/types/walletrpc/PendingSweepsResponse.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/walletkit.proto + +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..c80cdd76e --- /dev/null +++ b/src/grpc/types/walletrpc/PublishResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..764db3b73 --- /dev/null +++ b/src/grpc/types/walletrpc/ReleaseOutputRequest.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/walletkit.proto + +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..787f7b11c --- /dev/null +++ b/src/grpc/types/walletrpc/ReleaseOutputResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface ReleaseOutputResponse { + [k: string]: never +} + +export interface ReleaseOutputResponse__Output { + [k: string]: never +} diff --git a/src/grpc/types/walletrpc/RequiredReserveRequest.d.ts b/src/grpc/types/walletrpc/RequiredReserveRequest.d.ts new file mode 100644 index 000000000..c75489690 --- /dev/null +++ b/src/grpc/types/walletrpc/RequiredReserveRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..76b5e4b4c --- /dev/null +++ b/src/grpc/types/walletrpc/RequiredReserveResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..661c5259f --- /dev/null +++ b/src/grpc/types/walletrpc/SendOutputsRequest.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/walletkit.proto + +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..87746799e --- /dev/null +++ b/src/grpc/types/walletrpc/SendOutputsResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface SendOutputsResponse { + raw_tx?: Buffer | Uint8Array | string +} + +export interface SendOutputsResponse__Output { + raw_tx: Buffer +} diff --git a/src/grpc/types/walletrpc/SignMessageWithAddrRequest.d.ts b/src/grpc/types/walletrpc/SignMessageWithAddrRequest.d.ts new file mode 100644 index 000000000..36c1ede25 --- /dev/null +++ b/src/grpc/types/walletrpc/SignMessageWithAddrRequest.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +export interface SignMessageWithAddrRequest { + msg?: Buffer | Uint8Array | string + addr?: string +} + +export interface SignMessageWithAddrRequest__Output { + msg: Buffer + addr: string +} diff --git a/src/grpc/types/walletrpc/SignMessageWithAddrResponse.d.ts b/src/grpc/types/walletrpc/SignMessageWithAddrResponse.d.ts new file mode 100644 index 000000000..b70a3e1d2 --- /dev/null +++ b/src/grpc/types/walletrpc/SignMessageWithAddrResponse.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +export interface SignMessageWithAddrResponse { + signature?: string +} + +export interface SignMessageWithAddrResponse__Output { + signature: string +} diff --git a/src/grpc/types/walletrpc/SignPsbtRequest.d.ts b/src/grpc/types/walletrpc/SignPsbtRequest.d.ts new file mode 100644 index 000000000..a2a0f591d --- /dev/null +++ b/src/grpc/types/walletrpc/SignPsbtRequest.d.ts @@ -0,0 +1,9 @@ +// Original file: proto/walletkit.proto + +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..ecbdcddeb --- /dev/null +++ b/src/grpc/types/walletrpc/SignPsbtResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..1f3e5893a --- /dev/null +++ b/src/grpc/types/walletrpc/TapLeaf.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..660924d67 --- /dev/null +++ b/src/grpc/types/walletrpc/TapscriptFullTree.d.ts @@ -0,0 +1,14 @@ +// Original file: proto/walletkit.proto + +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..6c41a800e --- /dev/null +++ b/src/grpc/types/walletrpc/TapscriptPartialReveal.d.ts @@ -0,0 +1,16 @@ +// Original file: proto/walletkit.proto + +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..cf7923052 --- /dev/null +++ b/src/grpc/types/walletrpc/Transaction.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +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..f7c09fd59 --- /dev/null +++ b/src/grpc/types/walletrpc/TxTemplate.d.ts @@ -0,0 +1,17 @@ +// Original file: proto/walletkit.proto + +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..4365f43e6 --- /dev/null +++ b/src/grpc/types/walletrpc/UtxoLease.d.ts @@ -0,0 +1,23 @@ +// Original file: proto/walletkit.proto + +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/VerifyMessageWithAddrRequest.d.ts b/src/grpc/types/walletrpc/VerifyMessageWithAddrRequest.d.ts new file mode 100644 index 000000000..8c86e44a9 --- /dev/null +++ b/src/grpc/types/walletrpc/VerifyMessageWithAddrRequest.d.ts @@ -0,0 +1,13 @@ +// Original file: proto/walletkit.proto + +export interface VerifyMessageWithAddrRequest { + msg?: Buffer | Uint8Array | string + signature?: string + addr?: string +} + +export interface VerifyMessageWithAddrRequest__Output { + msg: Buffer + signature: string + addr: string +} diff --git a/src/grpc/types/walletrpc/VerifyMessageWithAddrResponse.d.ts b/src/grpc/types/walletrpc/VerifyMessageWithAddrResponse.d.ts new file mode 100644 index 000000000..566a66965 --- /dev/null +++ b/src/grpc/types/walletrpc/VerifyMessageWithAddrResponse.d.ts @@ -0,0 +1,11 @@ +// Original file: proto/walletkit.proto + +export interface VerifyMessageWithAddrResponse { + valid?: boolean + pubkey?: Buffer | Uint8Array | string +} + +export interface VerifyMessageWithAddrResponse__Output { + valid: boolean + pubkey: Buffer +} diff --git a/src/grpc/types/walletrpc/WalletKit.d.ts b/src/grpc/types/walletrpc/WalletKit.d.ts new file mode 100644 index 000000000..506be88c9 --- /dev/null +++ b/src/grpc/types/walletrpc/WalletKit.d.ts @@ -0,0 +1,1507 @@ +// Original file: proto/walletkit.proto + +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 { + SignMessageWithAddrRequest as _walletrpc_SignMessageWithAddrRequest, + SignMessageWithAddrRequest__Output as _walletrpc_SignMessageWithAddrRequest__Output, +} from '../walletrpc/SignMessageWithAddrRequest' +import type { + SignMessageWithAddrResponse as _walletrpc_SignMessageWithAddrResponse, + SignMessageWithAddrResponse__Output as _walletrpc_SignMessageWithAddrResponse__Output, +} from '../walletrpc/SignMessageWithAddrResponse' +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' +import type { + VerifyMessageWithAddrRequest as _walletrpc_VerifyMessageWithAddrRequest, + VerifyMessageWithAddrRequest__Output as _walletrpc_VerifyMessageWithAddrRequest__Output, +} from '../walletrpc/VerifyMessageWithAddrRequest' +import type { + VerifyMessageWithAddrResponse as _walletrpc_VerifyMessageWithAddrResponse, + VerifyMessageWithAddrResponse__Output as _walletrpc_VerifyMessageWithAddrResponse__Output, +} from '../walletrpc/VerifyMessageWithAddrResponse' + +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 + + SignMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + SignMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + SignMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + SignMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + signMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + signMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + signMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + signMessageWithAddr( + argument: _walletrpc_SignMessageWithAddrRequest, + callback: grpc.requestCallback<_walletrpc_SignMessageWithAddrResponse__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 + + VerifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + VerifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + verifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + metadata: grpc.Metadata, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + verifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + metadata: grpc.Metadata, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + verifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + options: grpc.CallOptions, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__Output> + ): grpc.ClientUnaryCall + verifyMessageWithAddr( + argument: _walletrpc_VerifyMessageWithAddrRequest, + callback: grpc.requestCallback<_walletrpc_VerifyMessageWithAddrResponse__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 + > + + SignMessageWithAddr: grpc.handleUnaryCall< + _walletrpc_SignMessageWithAddrRequest__Output, + _walletrpc_SignMessageWithAddrResponse + > + + SignPsbt: grpc.handleUnaryCall< + _walletrpc_SignPsbtRequest__Output, + _walletrpc_SignPsbtResponse + > + + VerifyMessageWithAddr: grpc.handleUnaryCall< + _walletrpc_VerifyMessageWithAddrRequest__Output, + _walletrpc_VerifyMessageWithAddrResponse + > +} + +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 + > + SignMessageWithAddr: MethodDefinition< + _walletrpc_SignMessageWithAddrRequest, + _walletrpc_SignMessageWithAddrResponse, + _walletrpc_SignMessageWithAddrRequest__Output, + _walletrpc_SignMessageWithAddrResponse__Output + > + SignPsbt: MethodDefinition< + _walletrpc_SignPsbtRequest, + _walletrpc_SignPsbtResponse, + _walletrpc_SignPsbtRequest__Output, + _walletrpc_SignPsbtResponse__Output + > + VerifyMessageWithAddr: MethodDefinition< + _walletrpc_VerifyMessageWithAddrRequest, + _walletrpc_VerifyMessageWithAddrResponse, + _walletrpc_VerifyMessageWithAddrRequest__Output, + _walletrpc_VerifyMessageWithAddrResponse__Output + > +} diff --git a/src/grpc/types/walletrpc/WitnessType.ts b/src/grpc/types/walletrpc/WitnessType.ts new file mode 100644 index 000000000..095bf09ab --- /dev/null +++ b/src/grpc/types/walletrpc/WitnessType.ts @@ -0,0 +1,50 @@ +// Original file: proto/walletkit.proto + +export const WitnessType = { + UNKNOWN_WITNESS: 'UNKNOWN_WITNESS', + COMMITMENT_TIME_LOCK: 'COMMITMENT_TIME_LOCK', + COMMITMENT_NO_DELAY: 'COMMITMENT_NO_DELAY', + COMMITMENT_REVOKE: 'COMMITMENT_REVOKE', + HTLC_OFFERED_REVOKE: 'HTLC_OFFERED_REVOKE', + HTLC_ACCEPTED_REVOKE: 'HTLC_ACCEPTED_REVOKE', + HTLC_OFFERED_TIMEOUT_SECOND_LEVEL: 'HTLC_OFFERED_TIMEOUT_SECOND_LEVEL', + HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL: 'HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL', + HTLC_OFFERED_REMOTE_TIMEOUT: 'HTLC_OFFERED_REMOTE_TIMEOUT', + HTLC_ACCEPTED_REMOTE_SUCCESS: 'HTLC_ACCEPTED_REMOTE_SUCCESS', + HTLC_SECOND_LEVEL_REVOKE: 'HTLC_SECOND_LEVEL_REVOKE', + WITNESS_KEY_HASH: 'WITNESS_KEY_HASH', + NESTED_WITNESS_KEY_HASH: 'NESTED_WITNESS_KEY_HASH', + COMMITMENT_ANCHOR: 'COMMITMENT_ANCHOR', +} as const + +export type 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 + +export type WitnessType__Output = typeof WitnessType[keyof typeof WitnessType] diff --git a/src/grpc/types/walletunlocker.d.ts b/src/grpc/types/walletunlocker.d.ts new file mode 100644 index 000000000..b614a76d3 --- /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' + +type SubtypeConstructor< + Constructor extends new (...args: unknown[]) => unknown, + 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 + LookupHtlcRequest: MessageTypeDefinition + LookupHtlcResponse: 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 + } +} diff --git a/src/utils/proxy.ts b/src/utils/proxy.ts index 0b87723ab..c5ba537f5 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 @@ -168,7 +172,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) { @@ -181,13 +187,12 @@ 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 the = new lnrpc.Lightning( + const lnrpcDescriptor = loadProto('rpc_proxy') + const lnrpc = lnrpcDescriptor.lnrpc_proxy + return new lnrpc.Lightning( PROXY_LND_IP + ':' + config.proxy_lnd_port, credentials ) - return the } catch (e) { sphinxLogger.error(`ERROR in loadProxyLightning ${e}`) } @@ -203,11 +208,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 { @@ -221,13 +226,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..393989819 100644 --- a/src/utils/signer.ts +++ b/src/utils/signer.ts @@ -1,6 +1,6 @@ -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' import { sphinxLogger } from './logger' @@ -8,21 +8,20 @@ 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 - signerClient = new signer.Signer( + const lnrpcDescriptor = loadProto('signer') + const signer = lnrpcDescriptor.signrpc + return (signerClient = new signer.Signer( LND_IP + ':' + config.lnd_port, credentials - ) - return signerClient + )) } catch (e) { //only throw here sphinxLogger.warning('loadSigner has failed') @@ -32,19 +31,18 @@ export const loadSigner = () => { } export const signMessage = (msg) => { - return new Promise(async (resolve, reject) => { - const signer = await loadSigner() + const signer = loadSigner() + return new Promise((resolve, reject) => { 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) - resolve(buf.toBase64()) + resolve(sig.signature.toString('base64')) } }) } catch (e) { @@ -54,16 +52,15 @@ export const signMessage = (msg) => { } export const signBuffer = (msg) => { - return new Promise(async (resolve, reject) => { - const signer = await loadSigner() + const signer = loadSigner() + return new Promise((resolve, reject) => { 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) - resolve(buf.toBase64()) + resolve(sig.signature.toString('base64')) } }) } catch (e) { @@ -73,8 +70,8 @@ export const signBuffer = (msg) => { } function verifyMessage(msg, sig, pubkey): Promise<{ [k: string]: any }> { - return new Promise(async (resolve, reject) => { - const signer = await loadSigner() + const signer = loadSigner() + return new Promise((resolve, reject) => { if (msg.length === 0) { return reject('invalid msg') } @@ -86,12 +83,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) {