├── creds ├── .gitkeep └── scheduler_creds │ └── device-key.pem ├── public ├── uploads │ └── .gitkeep ├── favicon.ico ├── relay.jpg └── sphinx-logo.png ├── src ├── controllers │ └── api │ │ └── index.ts ├── models │ └── ts │ │ ├── sequelize.ts │ │ └── index.ts ├── utils │ ├── lock.ts │ ├── password.ts │ └── tables.sql ├── tests │ ├── utils │ │ ├── invoices │ │ │ ├── index.ts │ │ │ ├── payInvoice.ts │ │ │ └── getInvoice.ts │ │ ├── index.ts │ │ ├── msg │ │ │ ├── decryptMsg.ts │ │ │ ├── getSpecifiMessage.ts │ │ │ ├── getAllMessages.ts │ │ │ ├── readMessages.ts │ │ │ └── markUnread.ts │ │ ├── bots │ │ │ ├── index.ts │ │ │ └── createBot.ts │ │ ├── del │ │ │ └── index.ts │ │ └── get │ │ │ └── getTribeByUuid.ts │ ├── nodes.ts │ └── config.ts └── grpc │ └── types │ ├── greenlight │ ├── Empty.d.ts │ ├── Timeout.d.ts │ ├── Confirmation.d.ts │ ├── StopRequest.d.ts │ ├── BitcoinAddress.d.ts │ ├── StopResponse.d.ts │ ├── GetInfoRequest.d.ts │ ├── ListPeersRequest.d.ts │ ├── DisconnectResponse.d.ts │ ├── StreamIncomingFilter.d.ts │ ├── ConnectRequest.d.ts │ ├── Outpoint.d.ts │ ├── ConnectResponse.d.ts │ ├── DisconnectRequest.d.ts │ ├── HsmResponse.d.ts │ ├── WithdrawResponse.d.ts │ ├── TlvField.d.ts │ ├── OutputStatus.ts │ ├── PayStatus.ts │ ├── BtcAddressType.ts │ ├── CloseChannelType.ts │ ├── FeeratePreset.ts │ ├── InvoiceStatus.ts │ ├── PaymentIdentifier.d.ts │ ├── ListPeersResponse.d.ts │ ├── NetAddressType.ts │ ├── Routehint.d.ts │ ├── ListInvoicesResponse.d.ts │ ├── ListPaymentsResponse.d.ts │ └── HsmRequestContext.d.ts │ ├── cln │ └── cln │ │ ├── PingResponse.d.ts │ │ ├── StopRequest.d.ts │ │ ├── StopResponse.d.ts │ │ ├── GetinfoRequest.d.ts │ │ ├── SignmessageRequest.d.ts │ │ ├── WaitinvoiceRequest.d.ts │ │ ├── AddgossipResponse.d.ts │ │ ├── DisconnectResponse.d.ts │ │ ├── ListdatastoreRequest.d.ts │ │ ├── SigninvoiceRequest.d.ts │ │ ├── SigninvoiceResponse.d.ts │ │ ├── SignpsbtResponse.d.ts │ │ ├── TxsendRequest.d.ts │ │ ├── SendcustommsgResponse.d.ts │ │ ├── TxdiscardRequest.d.ts │ │ ├── AddgossipRequest.d.ts │ │ ├── ListtransactionsRequest.d.ts │ │ ├── ChannelStateChangeCause.d.ts │ │ ├── DelexpiredinvoiceResponse.d.ts │ │ ├── Amount.d.ts │ │ ├── ListfundsRequest.d.ts │ │ ├── Outpoint.d.ts │ │ ├── SignpsbtRequest.d.ts │ │ ├── ListnodesRequest.d.ts │ │ ├── SendpsbtResponse.d.ts │ │ ├── ChannelSide.ts │ │ ├── ListpeersPeersChannelsFeerate.d.ts │ │ ├── CheckmessageResponse.d.ts │ │ ├── CreateonionHops.d.ts │ │ ├── SendcustommsgRequest.d.ts │ │ ├── SendpsbtRequest.d.ts │ │ ├── TxdiscardResponse.d.ts │ │ ├── DisconnectRequest.d.ts │ │ ├── TxsendResponse.d.ts │ │ ├── CreateonionResponse.d.ts │ │ ├── TlvEntry.d.ts │ │ ├── WithdrawResponse.d.ts │ │ ├── CreateinvoiceRequest.d.ts │ │ ├── ListpeersRequest.d.ts │ │ ├── TxprepareResponse.d.ts │ │ ├── Routehint.d.ts │ │ ├── SignmessageResponse.d.ts │ │ ├── TlvStream.d.ts │ │ ├── ConnectRequest.d.ts │ │ ├── RoutehintList.d.ts │ │ ├── CheckmessageRequest.d.ts │ │ ├── ListpeersPeersChannelsAlias.d.ts │ │ ├── NewaddrResponse.d.ts │ │ ├── DelexpiredinvoiceRequest.d.ts │ │ ├── ListpaysResponse.d.ts │ │ ├── PingRequest.d.ts │ │ ├── GetrouteResponse.d.ts │ │ ├── OutputDesc.d.ts │ │ ├── DeldatastoreRequest.d.ts │ │ ├── ListnodesResponse.d.ts │ │ └── ListpeersResponse.d.ts │ ├── lnrpc │ ├── SetID.d.ts │ ├── PayReqString.d.ts │ ├── StopRequest.d.ts │ ├── SendCoinsResponse.d.ts │ ├── SendManyResponse.d.ts │ ├── StopResponse.d.ts │ ├── GetInfoRequest.d.ts │ ├── StreamAuth.d.ts │ ├── FeeReportRequest.d.ts │ ├── NewAddressResponse.d.ts │ ├── Op.d.ts │ ├── Chain.d.ts │ ├── CheckMacPermResponse.d.ts │ ├── ListAliasesRequest.d.ts │ ├── ListPeersRequest.d.ts │ ├── NetworkInfoRequest.d.ts │ ├── BakeMacaroonResponse.d.ts │ ├── ConnectPeerResponse.d.ts │ ├── DebugLevelResponse.d.ts │ ├── DisconnectPeerRequest.d.ts │ ├── FundingStateStepResp.d.ts │ ├── SignMessageResponse.d.ts │ ├── WalletBalanceRequest.d.ts │ ├── ChannelBalanceRequest.d.ts │ ├── DeletePaymentResponse.d.ts │ ├── PeerEventSubscription.d.ts │ ├── RestoreBackupResponse.d.ts │ ├── UnlockWalletResponse.d.ts │ ├── AbandonChannelResponse.d.ts │ ├── ChanBackupExportRequest.d.ts │ ├── DeleteMacaroonIDResponse.d.ts │ ├── DisconnectPeerResponse.d.ts │ ├── GetRecoveryInfoRequest.d.ts │ ├── ListMacaroonIDsRequest.d.ts │ ├── ListPermissionsRequest.d.ts │ ├── NodeAddress.d.ts │ ├── PendingChannelsRequest.d.ts │ ├── ChannelBackupSubscription.d.ts │ ├── ChannelEventSubscription.d.ts │ ├── DeleteAllPaymentsResponse.d.ts │ ├── GraphTopologySubscription.d.ts │ ├── SendCustomMessageResponse.d.ts │ ├── VerifyChanBackupResponse.d.ts │ ├── ChannelGraphRequest.d.ts │ ├── FundingShimCancel.d.ts │ ├── KeyLocator.d.ts │ ├── LightningAddress.d.ts │ ├── InitWalletResponse.d.ts │ ├── SubscribeCustomMessagesRequest.d.ts │ ├── DebugLevelRequest.d.ts │ ├── MacaroonPermission.d.ts │ ├── NodePair.d.ts │ ├── ChangePasswordResponse.d.ts │ ├── LookupHtlcResponse.d.ts │ ├── PaymentHash.d.ts │ ├── VerifyMessageResponse.d.ts │ ├── FloatMetric.d.ts │ ├── NodeInfoRequest.d.ts │ ├── PendingUpdate.d.ts │ ├── PreviousOutPoint.d.ts │ ├── ChanInfoRequest.d.ts │ ├── Feature.d.ts │ ├── SignMessageRequest.d.ts │ ├── VerifyMessageRequest.d.ts │ ├── ChannelCloseUpdate.d.ts │ ├── Amount.d.ts │ ├── DeleteMacaroonIDRequest.d.ts │ ├── CustomMessage.d.ts │ ├── ListMacaroonIDsResponse.d.ts │ ├── ListUnspentRequest.d.ts │ ├── OutPoint.d.ts │ ├── DeletePaymentRequest.d.ts │ ├── GenSeedResponse.d.ts │ ├── DeleteAllPaymentsRequest.d.ts │ ├── GenSeedRequest.d.ts │ ├── TimestampedError.d.ts │ ├── AliasMap.d.ts │ ├── AMPRecord.d.ts │ ├── GetTransactionsRequest.d.ts │ ├── EdgeLocator.d.ts │ ├── PsbtShim.d.ts │ ├── ListPeersResponse.d.ts │ ├── LookupHtlcRequest.d.ts │ ├── MPPRecord.d.ts │ ├── SendCustomMessageRequest.d.ts │ ├── WatchOnlyAccount.d.ts │ ├── ConfirmationUpdate.d.ts │ ├── ListUnspentResponse.d.ts │ ├── RouteHint.d.ts │ ├── GetRecoveryInfoResponse.d.ts │ ├── InvoiceSubscription.d.ts │ ├── InterceptFeedback.d.ts │ ├── NodeMetricType.ts │ ├── FundingPsbtVerify.d.ts │ ├── ListChannelsResponse.d.ts │ ├── InvoiceHTLCState.ts │ ├── MiddlewareRegistration.d.ts │ ├── ListAliasesResponse.d.ts │ ├── WalletAccountBalance.d.ts │ ├── FundingPsbtFinalize.d.ts │ ├── TransactionDetails.d.ts │ ├── ChannelBackups.d.ts │ └── NodeMetricsRequest.d.ts │ ├── walletrpc │ ├── AddrResponse.d.ts │ ├── BumpFeeResponse.d.ts │ ├── ListLeasesRequest.d.ts │ ├── ListSweepsRequest.d.ts │ ├── PublishResponse.d.ts │ ├── EstimateFeeRequest.d.ts │ ├── PendingSweepsRequest.d.ts │ ├── ReleaseOutputResponse.d.ts │ ├── ImportPublicKeyResponse.d.ts │ ├── SignPsbtRequest.d.ts │ ├── ImportTapscriptResponse.d.ts │ ├── LabelTransactionResponse.d.ts │ ├── SendOutputsResponse.d.ts │ ├── SignMessageWithAddrResponse.d.ts │ ├── KeyReq.d.ts │ ├── Transaction.d.ts │ ├── TapLeaf.d.ts │ ├── RequiredReserveRequest.d.ts │ ├── FinalizePsbtRequest.d.ts │ ├── SignMessageWithAddrRequest.d.ts │ ├── EstimateFeeResponse.d.ts │ ├── LeaseOutputResponse.d.ts │ ├── SignPsbtResponse.d.ts │ ├── ListAddressesRequest.d.ts │ ├── VerifyMessageWithAddrResponse.d.ts │ ├── RequiredReserveResponse.d.ts │ ├── FinalizePsbtResponse.d.ts │ ├── LabelTransactionRequest.d.ts │ ├── VerifyMessageWithAddrRequest.d.ts │ ├── ListUnspentResponse.d.ts │ ├── AddressProperty.d.ts │ ├── ListUnspentRequest.d.ts │ ├── TapscriptFullTree.d.ts │ └── ListAccountsResponse.d.ts │ ├── lnrpc_proxy │ ├── PayReqString.d.ts │ ├── GetInfoRequest.d.ts │ ├── Chain.d.ts │ ├── ChannelBalanceRequest.d.ts │ ├── SignMessageRequest.d.ts │ ├── LightningAddress.d.ts │ ├── NodePair.d.ts │ ├── PaymentHash.d.ts │ ├── VerifyMessageResponse.d.ts │ ├── ChanInfoRequest.d.ts │ ├── Feature.d.ts │ ├── SignMessageResponse.d.ts │ ├── VerifyMessageRequest.d.ts │ ├── Amount.d.ts │ ├── EdgeLocator.d.ts │ ├── MPPRecord.d.ts │ ├── InvoiceSubscription.d.ts │ ├── RouteHint.d.ts │ └── InvoiceHTLCState.ts │ ├── signrpc │ ├── VerifyMessageResp.d.ts │ ├── SignResp.d.ts │ ├── MuSig2CleanupResponse.d.ts │ ├── SignMessageResp.d.ts │ ├── SharedKeyResponse.d.ts │ ├── KeyLocator.d.ts │ ├── MuSig2CleanupRequest.d.ts │ ├── TweakDesc.d.ts │ ├── MuSig2RegisterNoncesResponse.d.ts │ ├── MuSig2SignResponse.d.ts │ ├── InputScript.d.ts │ ├── TaprootTweakDesc.d.ts │ ├── TxOut.d.ts │ ├── MuSig2CombineSigResponse.d.ts │ ├── MuSig2CombineKeysResponse.d.ts │ ├── MuSig2CombineSigRequest.d.ts │ ├── MuSig2SignRequest.d.ts │ ├── MuSig2RegisterNoncesRequest.d.ts │ ├── InputScriptResp.d.ts │ └── VerifyMessageReq.d.ts │ ├── routerrpc │ ├── ForwardFailEvent.d.ts │ ├── SubscribedEvent.d.ts │ ├── SettleEvent.d.ts │ ├── UpdateChanStatusResponse.d.ts │ ├── QueryMissionControlRequest.d.ts │ ├── ResetMissionControlRequest.d.ts │ ├── SubscribeHtlcEventsRequest.d.ts │ ├── ResetMissionControlResponse.d.ts │ ├── TrackPaymentsRequest.d.ts │ ├── XImportMissionControlResponse.d.ts │ ├── FinalHtlcEvent.d.ts │ ├── GetMissionControlConfigRequest.d.ts │ ├── SetMissionControlConfigResponse.d.ts │ ├── TrackPaymentRequest.d.ts │ ├── CircuitKey.d.ts │ ├── RouteFeeRequest.d.ts │ ├── BuildRouteResponse.d.ts │ ├── ChanStatusAction.ts │ ├── RouteFeeResponse.d.ts │ ├── ForwardEvent.d.ts │ └── ResolveHoldForwardAction.ts │ └── scheduler │ ├── ScheduleRequest.d.ts │ ├── ChallengeResponse.d.ts │ ├── NodeInfoRequest.d.ts │ ├── RecoveryResponse.d.ts │ ├── NodeInfoResponse.d.ts │ ├── RegistrationResponse.d.ts │ ├── ChallengeScope.ts │ └── RecoveryRequest.d.ts ├── testing ├── console │ ├── README.md │ ├── .gitignore │ ├── public │ │ └── favicon.png │ ├── src │ │ └── main.ts │ └── tsconfig.json ├── cln │ ├── .gitignore │ ├── alice-db.json │ └── readme.md ├── Sphinx-Test-2.polar.zip ├── cluster │ ├── bob-db.json │ ├── alice-db.json │ ├── carol-db.json │ └── dave-db.json ├── configs │ ├── bob-db.json │ ├── alice-db.json │ ├── casey-db.json │ └── proxy-db.json ├── greenlight │ ├── bob-db.json │ ├── alice-db.json │ ├── orange-db.json │ ├── charlie-db.json │ ├── new-db.json │ └── new_creds │ │ └── device-key.pem ├── package.json ├── stack │ ├── bob-db.json │ ├── alice-db.json │ ├── carol-db.json │ ├── dave-db.json │ └── README.md └── .gitignore ├── .dockerignore ├── .prettierignore ├── dist └── src │ ├── controllers │ └── api │ │ ├── index.js │ │ └── index.js.map │ ├── types.js.map │ ├── types.js │ ├── models │ └── ts │ │ ├── chat.js │ │ ├── index.js │ │ ├── tribe.js │ │ ├── chat.js.map │ │ ├── contact.js │ │ ├── index.js.map │ │ ├── message.js │ │ ├── sequelize.js │ │ ├── tribe.js.map │ │ ├── contact.js.map │ │ ├── message.js.map │ │ └── sequelize.js.map │ ├── network │ ├── interfaces.js │ ├── interfaces.js.map │ └── index.js.map │ ├── tests │ ├── types │ │ ├── jsonModels.js │ │ ├── jsonModels.js.map │ │ └── index.js.map │ ├── utils │ │ ├── index.js.map │ │ ├── invoices │ │ │ └── index.js.map │ │ ├── base64images.js.map │ │ ├── msg │ │ │ ├── decryptMsg.js.map │ │ │ ├── getAllMessages.js.map │ │ │ ├── getSpecifiMessage.js.map │ │ │ ├── decryptMsg.js │ │ │ └── readMessages.js.map │ │ ├── bots │ │ │ └── index.js.map │ │ └── del │ │ │ └── index.js.map │ ├── nodes.js │ ├── nodes.js.map │ └── config.js.map │ ├── grpc │ └── types │ │ ├── lnrpc │ │ ├── Channel.js.map │ │ ├── Channel.js │ │ ├── NodeMetricType.js.map │ │ ├── PeerEvent.js.map │ │ ├── HTLCAttempt.js.map │ │ ├── InvoiceHTLCState.js.map │ │ ├── Peer.js.map │ │ ├── Initiator.js.map │ │ ├── Invoice.js.map │ │ ├── Payment.js.map │ │ ├── PendingChannelsResponse.js.map │ │ ├── ResolutionType.js.map │ │ ├── CommitmentType.js.map │ │ ├── UpdateFailure.js.map │ │ ├── NodeMetricType.js │ │ ├── AddressType.js.map │ │ ├── ResolutionOutcome.js.map │ │ ├── InvoiceHTLCState.js │ │ ├── ChannelCloseSummary.js.map │ │ ├── ChannelEventUpdate.js.map │ │ ├── PaymentFailureReason.js.map │ │ ├── PeerEvent.js │ │ ├── HTLCAttempt.js │ │ ├── Initiator.js │ │ ├── Invoice.js │ │ └── ResolutionType.js │ │ ├── lnrpc_proxy │ │ ├── Channel.js.map │ │ ├── Channel.js │ │ ├── HTLCAttempt.js.map │ │ ├── InvoiceHTLCState.js.map │ │ ├── Invoice.js.map │ │ ├── Payment.js.map │ │ ├── CommitmentType.js.map │ │ ├── InvoiceHTLCState.js │ │ ├── PaymentFailureReason.js.map │ │ └── CommitmentType.js │ │ ├── cln │ │ └── cln │ │ │ ├── ChannelSide.js.map │ │ │ ├── GetrouteRoute.js.map │ │ │ ├── KeysendResponse.js.map │ │ │ ├── WaitsendpayResponse.js.map │ │ │ ├── ConnectResponse.js.map │ │ │ ├── FeeratesRequest.js.map │ │ │ ├── NewaddrRequest.js.map │ │ │ ├── SendpayResponse.js.map │ │ │ ├── PayResponse.js.map │ │ │ ├── SendonionResponse.js.map │ │ │ ├── ChannelSide.js │ │ │ ├── CloseResponse.js.map │ │ │ ├── ListpaysPays.js.map │ │ │ ├── WaitinvoiceResponse.js.map │ │ │ ├── WaitanyinvoiceResponse.js.map │ │ │ ├── ListpaysRequest.js.map │ │ │ ├── DelinvoiceRequest.js.map │ │ │ ├── DelinvoiceResponse.js.map │ │ │ ├── ListinvoicesInvoices.js.map │ │ │ ├── ListpeersPeersChannelsHtlcs.js.map │ │ │ ├── ListsendpaysRequest.js.map │ │ │ ├── CreateinvoiceResponse.js.map │ │ │ ├── ListsendpaysPayments.js.map │ │ │ ├── ListfundsOutputs.js.map │ │ │ ├── ListforwardsRequest.js.map │ │ │ ├── ConnectAddress.js.map │ │ │ ├── GetinfoBinding.js.map │ │ │ ├── DatastoreRequest.js.map │ │ │ ├── GetinfoAddress.js.map │ │ │ ├── GetrouteRoute.js │ │ │ ├── KeysendResponse.js │ │ │ ├── ListnodesNodesAddresses.js.map │ │ │ ├── ListpeersPeersLog.js.map │ │ │ ├── ConnectResponse.js │ │ │ ├── FeeratesRequest.js │ │ │ ├── WaitsendpayResponse.js │ │ │ ├── NewaddrRequest.js │ │ │ ├── SendpayResponse.js │ │ │ ├── PayResponse.js │ │ │ ├── ListforwardsForwards.js.map │ │ │ ├── SendonionResponse.js │ │ │ ├── CloseResponse.js │ │ │ ├── WaitinvoiceResponse.js │ │ │ ├── ListpaysPays.js │ │ │ └── ListpaysRequest.js │ │ ├── greenlight │ │ ├── OutputStatus.js.map │ │ ├── BtcAddressType.js.map │ │ ├── CloseChannelType.js.map │ │ ├── PayStatus.js.map │ │ ├── FeeratePreset.js.map │ │ ├── InvoiceStatus.js.map │ │ ├── NetAddressType.js.map │ │ ├── BtcAddressType.js │ │ ├── OutputStatus.js │ │ ├── CloseChannelType.js │ │ ├── PayStatus.js │ │ ├── FeeratePreset.js │ │ ├── InvoiceStatus.js │ │ └── NetAddressType.js │ │ ├── scheduler │ │ ├── ChallengeScope.js.map │ │ └── ChallengeScope.js │ │ ├── routerrpc │ │ ├── ChanStatusAction.js.map │ │ ├── HtlcEvent.js.map │ │ ├── ResolveHoldForwardAction.js.map │ │ ├── ChanStatusAction.js │ │ ├── PaymentState.js.map │ │ ├── ResolveHoldForwardAction.js │ │ └── HtlcEvent.js │ │ ├── signrpc │ │ └── SignMethod.js.map │ │ └── walletrpc │ │ └── AddressType.js.map │ └── utils │ ├── lock.js.map │ ├── lock.js │ ├── password.js.map │ └── password.js ├── .husky └── pre-commit ├── docker ├── instance_aliases.sh ├── aliases.sh ├── lnd.conf.sample ├── relay_supervisor.conf └── lnd_supervisor.conf ├── .prettierrc ├── docs └── deep │ ├── migrate_umbrel_to_embassy.md │ └── bots.md ├── .eslintignore ├── jest.config.js ├── .github └── workflows │ ├── lint_pr.yml │ └── unit_test.yml └── config └── config.json /creds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/uploads/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/controllers/api/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testing/console/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testing/cln/.gitignore: -------------------------------------------------------------------------------- 1 | alice.db -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist/* 2 | node_modules 3 | -------------------------------------------------------------------------------- /dist/src/controllers/api/index.js: -------------------------------------------------------------------------------- 1 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /testing/console/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-relay/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/relay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-relay/HEAD/public/relay.jpg -------------------------------------------------------------------------------- /src/models/ts/sequelize.ts: -------------------------------------------------------------------------------- 1 | export interface SequelizeFields { 2 | update?: Function 3 | } 4 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx pretty-quick --staged 5 | -------------------------------------------------------------------------------- /public/sphinx-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-relay/HEAD/public/sphinx-logo.png -------------------------------------------------------------------------------- /docker/instance_aliases.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | alias nodessh='_nodessh(){ docker exec -it "$1" /bin/bash;}; _nodessh' 4 | -------------------------------------------------------------------------------- /testing/Sphinx-Test-2.polar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-relay/HEAD/testing/Sphinx-Test-2.polar.zip -------------------------------------------------------------------------------- /dist/src/types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /src/utils/lock.ts: -------------------------------------------------------------------------------- 1 | import * as AsyncLock from 'async-lock' 2 | 3 | const lock = new AsyncLock() 4 | 5 | export default lock 6 | -------------------------------------------------------------------------------- /testing/console/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stakwork/sphinx-relay/HEAD/testing/console/public/favicon.png -------------------------------------------------------------------------------- /dist/src/types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=types.js.map -------------------------------------------------------------------------------- /dist/src/models/ts/chat.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=chat.js.map -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "es5", 3 | "tabWidth": 2, 4 | "semi": false, 5 | "singleQuote": true, 6 | "printWidth": 80 7 | } 8 | -------------------------------------------------------------------------------- /dist/src/models/ts/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /dist/src/models/ts/tribe.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=tribe.js.map -------------------------------------------------------------------------------- /testing/cluster/bob-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-bob.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/configs/bob-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-bob.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dist/src/models/ts/chat.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../src/models/ts/chat.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/src/models/ts/contact.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=contact.js.map -------------------------------------------------------------------------------- /dist/src/models/ts/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/ts/index.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/src/models/ts/message.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=message.js.map -------------------------------------------------------------------------------- /dist/src/models/ts/sequelize.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=sequelize.js.map -------------------------------------------------------------------------------- /dist/src/models/ts/tribe.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"tribe.js","sourceRoot":"","sources":["../../../../src/models/ts/tribe.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/src/network/interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=interfaces.js.map -------------------------------------------------------------------------------- /testing/cluster/alice-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-alice.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/cluster/carol-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-casey.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/configs/alice-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-alice.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/configs/casey-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-casey.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dist/src/models/ts/contact.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../../../src/models/ts/contact.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/src/models/ts/message.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"message.js","sourceRoot":"","sources":["../../../../src/models/ts/message.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/src/tests/types/jsonModels.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=jsonModels.js.map -------------------------------------------------------------------------------- /docker/aliases.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | alias lncli='command lncli --lnddir=/relay/.lnd/ "$@"' 4 | alias lnd='command lnd --lnddir=/relay/.lnd/ "$@"' 5 | 6 | -------------------------------------------------------------------------------- /src/utils/password.ts: -------------------------------------------------------------------------------- 1 | import * as crypto from 'crypto' 2 | 3 | const password = crypto.randomBytes(16).toString('hex') 4 | 5 | export default password 6 | -------------------------------------------------------------------------------- /testing/console/src/main.ts: -------------------------------------------------------------------------------- 1 | import App from './App.svelte' 2 | 3 | const app = new App({ 4 | target: document.body, 5 | }) 6 | 7 | export default app 8 | -------------------------------------------------------------------------------- /dist/src/network/interfaces.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/network/interfaces.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /testing/greenlight/bob-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-bob-greenlight.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dist/src/controllers/api/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/api/index.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /dist/src/models/ts/sequelize.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"sequelize.js","sourceRoot":"","sources":["../../../../src/models/ts/sequelize.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /testing/greenlight/alice-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-alice-greenlight.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/greenlight/orange-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-orange-greenlight.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dist/src/tests/types/jsonModels.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"jsonModels.js","sourceRoot":"","sources":["../../../../src/tests/types/jsonModels.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /docs/deep/migrate_umbrel_to_embassy.md: -------------------------------------------------------------------------------- 1 | Read this doc to migrate from umbrel to embassy (courtesy of Xiri) 2 | https://app.sigle.io/tempesta.id.stx/ZMw_HXPxH4lVJYIeVBNuQ 3 | -------------------------------------------------------------------------------- /testing/greenlight/charlie-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-charlie-greenlight.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/tests/utils/invoices/index.ts: -------------------------------------------------------------------------------- 1 | export { createInvoice } from './createInvoice' 2 | export { getInvoice } from './getInvoice' 3 | export { payInvoice } from './payInvoice' 4 | -------------------------------------------------------------------------------- /testing/greenlight/new-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-new-greenlight.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "chalk": "^4.1.1", 4 | "minimist": "^1.2.5", 5 | "node-fetch": "^2.6.1" 6 | }, 7 | "type": "module" 8 | } 9 | -------------------------------------------------------------------------------- /dist/src/tests/types/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Channel.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc/Channel.ts"],"names":[],"mappings":";AAAA,uCAAuC"} -------------------------------------------------------------------------------- /testing/cln/alice-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/evanfeenstra/code/sphinx/sphinx-relay/testing/cln/alice.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/console/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/svelte/tsconfig.json", 3 | 4 | "include": ["src/**/*"], 5 | "exclude": ["node_modules/*", "__sapper__/*", "public/*"] 6 | } 7 | -------------------------------------------------------------------------------- /testing/stack/bob-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/relay/db/bob.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/models/ts/index.ts: -------------------------------------------------------------------------------- 1 | import type { Contact } from './contact' 2 | import type { Chat } from './chat' 3 | import type { Message } from './message' 4 | 5 | export { Contact, Chat, Message } 6 | -------------------------------------------------------------------------------- /testing/stack/alice-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/relay/db/alice.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/stack/carol-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/relay/db/carol.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /testing/stack/dave-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/relay/db/dave.db" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Channel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | //# sourceMappingURL=Channel.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/Channel.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../../src/grpc/types/lnrpc_proxy/Channel.ts"],"names":[],"mappings":";AAAA,uCAAuC"} -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | src/tests 3 | src/* 4 | 5 | 6 | !src/utils 7 | src/utils/config.ts 8 | !src/controllers 9 | !src/network 10 | !src/utils/msg.ts 11 | !src/grpc 12 | 13 | *.js 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/Channel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/rpc_proxy.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | //# sourceMappingURL=Channel.js.map -------------------------------------------------------------------------------- /dist/src/utils/lock.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../src/utils/lock.ts"],"names":[],"mappings":";;AAAA,wCAAuC;AAEvC,MAAM,IAAI,GAAG,IAAI,SAAS,EAAE,CAAA;AAE5B,kBAAe,IAAI,CAAA"} -------------------------------------------------------------------------------- /dist/src/tests/utils/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/utils/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,sCAAmC;AACnC,wCAAqC;AACrC,gDAA6C;AAC7C,uCAAoC"} -------------------------------------------------------------------------------- /testing/stack/README.md: -------------------------------------------------------------------------------- 1 | **alice** 2 | node ./dist/app.js --config="/Users/evanfeenstra/code/sphinx/sphinx-relay/testing/stack/alice.json" --db="/Users/evanfeenstra/code/sphinx/sphinx-relay/testing/stack/alice-db.json" 3 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/Empty.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface Empty { 4 | [k: string]: never 5 | } 6 | 7 | export interface Empty__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/Timeout.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface Timeout { 4 | seconds?: number 5 | } 6 | 7 | export interface Timeout__Output { 8 | seconds: number 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/PingResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface PingResponse { 4 | totlen?: number 5 | } 6 | 7 | export interface PingResponse__Output { 8 | totlen: number 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SetID.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SetID { 4 | set_id?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SetID__Output { 8 | set_id: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/AddrResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface AddrResponse { 4 | addr?: string 5 | } 6 | 7 | export interface AddrResponse__Output { 8 | addr: string 9 | } 10 | -------------------------------------------------------------------------------- /src/tests/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * as helpers from './helpers' 2 | export * as getHelpers from './get' 3 | export * as saveHelpers from './save' 4 | export * as invoicesHelpers from './invoices' 5 | export * as keysend from './keysend' 6 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/StopRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface StopRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface StopRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/Confirmation.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface Confirmation { 4 | blocks?: number 5 | } 6 | 7 | export interface Confirmation__Output { 8 | blocks: number 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PayReqString.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PayReqString { 4 | pay_req?: string 5 | } 6 | 7 | export interface PayReqString__Output { 8 | pay_req: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/StopRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface StopRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface StopRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /dist/src/utils/lock.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const AsyncLock = require("async-lock"); 4 | const lock = new AsyncLock(); 5 | exports.default = lock; 6 | //# sourceMappingURL=lock.js.map -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/StopResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface StopResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface StopResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/StopRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface StopRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface StopRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SendCoinsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SendCoinsResponse { 4 | txid?: string 5 | } 6 | 7 | export interface SendCoinsResponse__Output { 8 | txid: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SendManyResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SendManyResponse { 4 | txid?: string 5 | } 6 | 7 | export interface SendManyResponse__Output { 8 | txid: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/StopResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface StopResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface StopResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/PayReqString.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface PayReqString { 4 | pay_req?: string 5 | } 6 | 7 | export interface PayReqString__Output { 8 | pay_req: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/GetinfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface GetinfoRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface GetinfoRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/BitcoinAddress.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface BitcoinAddress { 4 | address?: string 5 | } 6 | 7 | export interface BitcoinAddress__Output { 8 | address: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/StopResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface StopResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface StopResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GetInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface GetInfoRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface GetInfoRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/StreamAuth.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface StreamAuth { 4 | method_full_uri?: string 5 | } 6 | 7 | export interface StreamAuth__Output { 8 | method_full_uri: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/VerifyMessageResp.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface VerifyMessageResp { 4 | valid?: boolean 5 | } 6 | 7 | export interface VerifyMessageResp__Output { 8 | valid: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SignmessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SignmessageRequest { 4 | message?: string 5 | } 6 | 7 | export interface SignmessageRequest__Output { 8 | message: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/WaitinvoiceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface WaitinvoiceRequest { 4 | label?: string 5 | } 6 | 7 | export interface WaitinvoiceRequest__Output { 8 | label: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/GetInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface GetInfoRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface GetInfoRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/ListPeersRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface ListPeersRequest { 4 | node_id?: string 5 | } 6 | 7 | export interface ListPeersRequest__Output { 8 | node_id: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/FeeReportRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface FeeReportRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface FeeReportRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NewAddressResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface NewAddressResponse { 4 | address?: string 5 | } 6 | 7 | export interface NewAddressResponse__Output { 8 | address: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/Op.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface Op { 4 | entity?: string 5 | actions?: string[] 6 | } 7 | 8 | export interface Op__Output { 9 | entity: string 10 | actions: string[] 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/GetInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface GetInfoRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface GetInfoRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/ForwardFailEvent.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface ForwardFailEvent { 4 | [k: string]: never 5 | } 6 | 7 | export interface ForwardFailEvent__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/SubscribedEvent.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface SubscribedEvent { 4 | [k: string]: never 5 | } 6 | 7 | export interface SubscribedEvent__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/SignResp.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface SignResp { 4 | raw_sigs?: (Buffer | Uint8Array | string)[] 5 | } 6 | 7 | export interface SignResp__Output { 8 | raw_sigs: Buffer[] 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/BumpFeeResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface BumpFeeResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface BumpFeeResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | transform: { 5 | '^.+\\.ts?$': 'ts-jest', 6 | }, 7 | transformIgnorePatterns: ['/node_modules/'], 8 | collectCoverage: true, 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/AddgossipResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface AddgossipResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface AddgossipResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/DisconnectResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface DisconnectResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface DisconnectResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListdatastoreRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListdatastoreRequest { 4 | key?: string[] 5 | } 6 | 7 | export interface ListdatastoreRequest__Output { 8 | key: string[] 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SigninvoiceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SigninvoiceRequest { 4 | invstring?: string 5 | } 6 | 7 | export interface SigninvoiceRequest__Output { 8 | invstring: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SigninvoiceResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SigninvoiceResponse { 4 | bolt11?: string 5 | } 6 | 7 | export interface SigninvoiceResponse__Output { 8 | bolt11: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SignpsbtResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SignpsbtResponse { 4 | signed_psbt?: string 5 | } 6 | 7 | export interface SignpsbtResponse__Output { 8 | signed_psbt: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TxsendRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface TxsendRequest { 4 | txid?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface TxsendRequest__Output { 8 | txid: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/Chain.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface Chain { 4 | chain?: string 5 | network?: string 6 | } 7 | 8 | export interface Chain__Output { 9 | chain: string 10 | network: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/CheckMacPermResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface CheckMacPermResponse { 4 | valid?: boolean 5 | } 6 | 7 | export interface CheckMacPermResponse__Output { 8 | valid: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListAliasesRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ListAliasesRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ListAliasesRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListPeersRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ListPeersRequest { 4 | latest_error?: boolean 5 | } 6 | 7 | export interface ListPeersRequest__Output { 8 | latest_error: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NetworkInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface NetworkInfoRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface NetworkInfoRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/SettleEvent.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface SettleEvent { 4 | preimage?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SettleEvent__Output { 8 | preimage: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ListLeasesRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ListLeasesRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ListLeasesRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ListSweepsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ListSweepsRequest { 4 | verbose?: boolean 5 | } 6 | 7 | export interface ListSweepsRequest__Output { 8 | verbose: boolean 9 | } 10 | -------------------------------------------------------------------------------- /testing/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | nodes.json 4 | package-lock.json 5 | cluster_config.json 6 | greenlight/alice_creds 7 | greenlight/bob_creds 8 | greenlight/charlie_creds 9 | greenlight/new_creds 10 | greenlight/orange_creds 11 | stack2 -------------------------------------------------------------------------------- /dist/src/utils/password.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"password.js","sourceRoot":"","sources":["../../../src/utils/password.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAEhC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAEvD,kBAAe,QAAQ,CAAA"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SendcustommsgResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SendcustommsgResponse { 4 | status?: string 5 | } 6 | 7 | export interface SendcustommsgResponse__Output { 8 | status: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TxdiscardRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface TxdiscardRequest { 4 | txid?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface TxdiscardRequest__Output { 8 | txid: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/DisconnectResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface DisconnectResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface DisconnectResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/BakeMacaroonResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface BakeMacaroonResponse { 4 | macaroon?: string 5 | } 6 | 7 | export interface BakeMacaroonResponse__Output { 8 | macaroon: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ConnectPeerResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ConnectPeerResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface ConnectPeerResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DebugLevelResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DebugLevelResponse { 4 | sub_systems?: string 5 | } 6 | 7 | export interface DebugLevelResponse__Output { 8 | sub_systems: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DisconnectPeerRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DisconnectPeerRequest { 4 | pub_key?: string 5 | } 6 | 7 | export interface DisconnectPeerRequest__Output { 8 | pub_key: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/FundingStateStepResp.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface FundingStateStepResp { 4 | [k: string]: never 5 | } 6 | 7 | export interface FundingStateStepResp__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SignMessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SignMessageResponse { 4 | signature?: string 5 | } 6 | 7 | export interface SignMessageResponse__Output { 8 | signature: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/WalletBalanceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface WalletBalanceRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface WalletBalanceRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/Chain.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface Chain { 4 | chain?: string 5 | network?: string 6 | } 7 | 8 | export interface Chain__Output { 9 | chain: string 10 | network: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/PublishResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface PublishResponse { 4 | publish_error?: string 5 | } 6 | 7 | export interface PublishResponse__Output { 8 | publish_error: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChannelBalanceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ChannelBalanceRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ChannelBalanceRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DeletePaymentResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DeletePaymentResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface DeletePaymentResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PeerEventSubscription.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PeerEventSubscription { 4 | [k: string]: never 5 | } 6 | 7 | export interface PeerEventSubscription__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/RestoreBackupResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface RestoreBackupResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface RestoreBackupResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/UnlockWalletResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletunlocker.proto 2 | 3 | export interface UnlockWalletResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface UnlockWalletResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2CleanupResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2CleanupResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface MuSig2CleanupResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/SignMessageResp.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface SignMessageResp { 4 | signature?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SignMessageResp__Output { 8 | signature: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/EstimateFeeRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface EstimateFeeRequest { 4 | conf_target?: number 5 | } 6 | 7 | export interface EstimateFeeRequest__Output { 8 | conf_target: number 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/PendingSweepsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface PendingSweepsRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface PendingSweepsRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /dist/src/utils/password.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const crypto = require("crypto"); 4 | const password = crypto.randomBytes(16).toString('hex'); 5 | exports.default = password; 6 | //# sourceMappingURL=password.js.map -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/AddgossipRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface AddgossipRequest { 4 | message?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface AddgossipRequest__Output { 8 | message: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListtransactionsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListtransactionsRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ListtransactionsRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/StreamIncomingFilter.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface StreamIncomingFilter { 4 | [k: string]: never 5 | } 6 | 7 | export interface StreamIncomingFilter__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/AbandonChannelResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface AbandonChannelResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface AbandonChannelResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChanBackupExportRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ChanBackupExportRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ChanBackupExportRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DeleteMacaroonIDResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DeleteMacaroonIDResponse { 4 | deleted?: boolean 5 | } 6 | 7 | export interface DeleteMacaroonIDResponse__Output { 8 | deleted: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DisconnectPeerResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DisconnectPeerResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface DisconnectPeerResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GetRecoveryInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface GetRecoveryInfoRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface GetRecoveryInfoRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListMacaroonIDsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ListMacaroonIDsRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ListMacaroonIDsRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListPermissionsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ListPermissionsRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ListPermissionsRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NodeAddress.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface NodeAddress { 4 | network?: string 5 | addr?: string 6 | } 7 | 8 | export interface NodeAddress__Output { 9 | network: string 10 | addr: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PendingChannelsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PendingChannelsRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface PendingChannelsRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/ChannelBalanceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface ChannelBalanceRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ChannelBalanceRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/SignMessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface SignMessageRequest { 4 | msg?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SignMessageRequest__Output { 8 | msg: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/ScheduleRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface ScheduleRequest { 4 | node_id?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface ScheduleRequest__Output { 8 | node_id: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ReleaseOutputResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ReleaseOutputResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface ReleaseOutputResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ChannelSide.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ChannelSide.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ChannelSide.ts"],"names":[],"mappings":";AAAA,4CAA4C;;;AAE/B,QAAA,WAAW,GAAG;IACzB,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;CACF,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/GetrouteRoute.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"GetrouteRoute.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/GetrouteRoute.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAOtC,sCAAsC;AAEzB,QAAA,qCAAqC,GAAG;IACnD,GAAG,EAAE,KAAK;CACF,CAAA"} -------------------------------------------------------------------------------- /dist/src/tests/utils/invoices/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tests/utils/invoices/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"} -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChannelBackupSubscription.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ChannelBackupSubscription { 4 | [k: string]: never 5 | } 6 | 7 | export interface ChannelBackupSubscription__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChannelEventSubscription.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ChannelEventSubscription { 4 | [k: string]: never 5 | } 6 | 7 | export interface ChannelEventSubscription__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DeleteAllPaymentsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DeleteAllPaymentsResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface DeleteAllPaymentsResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GraphTopologySubscription.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface GraphTopologySubscription { 4 | [k: string]: never 5 | } 6 | 7 | export interface GraphTopologySubscription__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SendCustomMessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SendCustomMessageResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface SendCustomMessageResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/VerifyChanBackupResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface VerifyChanBackupResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface VerifyChanBackupResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/UpdateChanStatusResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface UpdateChanStatusResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface UpdateChanStatusResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/SharedKeyResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface SharedKeyResponse { 4 | shared_key?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SharedKeyResponse__Output { 8 | shared_key: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ImportPublicKeyResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ImportPublicKeyResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface ImportPublicKeyResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/SignPsbtRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface SignPsbtRequest { 4 | funded_psbt?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SignPsbtRequest__Output { 8 | funded_psbt: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/KeysendResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"KeysendResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/KeysendResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAOtC,sCAAsC;AAEzB,QAAA,kCAAkC,GAAG;IAChD,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/OutputStatus.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/NodeMetricType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/PeerEvent.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ChannelStateChangeCause.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | export interface ChannelStateChangeCause { 4 | [k: string]: never 5 | } 6 | 7 | export interface ChannelStateChangeCause__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/DelexpiredinvoiceResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface DelexpiredinvoiceResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface DelexpiredinvoiceResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChannelGraphRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ChannelGraphRequest { 4 | include_unannounced?: boolean 5 | } 6 | 7 | export interface ChannelGraphRequest__Output { 8 | include_unannounced: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/QueryMissionControlRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface QueryMissionControlRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface QueryMissionControlRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/ResetMissionControlRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface ResetMissionControlRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface ResetMissionControlRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/SubscribeHtlcEventsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface SubscribeHtlcEventsRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface SubscribeHtlcEventsRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/ChallengeResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface ChallengeResponse { 4 | challenge?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface ChallengeResponse__Output { 8 | challenge: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ImportTapscriptResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ImportTapscriptResponse { 4 | p2tr_address?: string 5 | } 6 | 7 | export interface ImportTapscriptResponse__Output { 8 | p2tr_address: string 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/LabelTransactionResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface LabelTransactionResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface LabelTransactionResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/SendOutputsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface SendOutputsResponse { 4 | raw_tx?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface SendOutputsResponse__Output { 8 | raw_tx: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /creds/scheduler_creds/device-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgmA2Srb58ZaDIW6sR 3 | B+1E6X8UnxMDeJPsnB4LVgpJyfuhRANCAASyjOUTUsZcvG19zwuN/t9CHZgGhOpC 4 | JgcYMvjjEsb17Lxhl9Ni6VgDqeXUaOFgUwkDewyarml2yY1oDv6CdrxV 5 | -----END PRIVATE KEY----- -------------------------------------------------------------------------------- /dist/src/grpc/types/scheduler/ChallengeScope.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/greenlight/ConnectRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface ConnectRequest { 4 | node_id?: string 5 | addr?: string 6 | } 7 | 8 | export interface ConnectRequest__Output { 9 | node_id: string 10 | addr: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/FundingShimCancel.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface FundingShimCancel { 4 | pending_chan_id?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface FundingShimCancel__Output { 8 | pending_chan_id: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/KeyLocator.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface KeyLocator { 4 | key_family?: number 5 | key_index?: number 6 | } 7 | 8 | export interface KeyLocator__Output { 9 | key_family: number 10 | key_index: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/LightningAddress.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface LightningAddress { 4 | pubkey?: string 5 | host?: string 6 | } 7 | 8 | export interface LightningAddress__Output { 9 | pubkey: string 10 | host: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/ResetMissionControlResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface ResetMissionControlResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface ResetMissionControlResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/TrackPaymentsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface TrackPaymentsRequest { 4 | no_inflight_updates?: boolean 5 | } 6 | 7 | export interface TrackPaymentsRequest__Output { 8 | no_inflight_updates: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/KeyLocator.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface KeyLocator { 4 | key_family?: number 5 | key_index?: number 6 | } 7 | 8 | export interface KeyLocator__Output { 9 | key_family: number 10 | key_index: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2CleanupRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2CleanupRequest { 4 | session_id?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface MuSig2CleanupRequest__Output { 8 | session_id: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/SignMessageWithAddrResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface SignMessageWithAddrResponse { 4 | signature?: string 5 | } 6 | 7 | export interface SignMessageWithAddrResponse__Output { 8 | signature: string 9 | } 10 | -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/BtcAddressType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/Amount.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface Amount { 6 | msat?: number | string | Long 7 | } 8 | 9 | export interface Amount__Output { 10 | msat: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListfundsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListfundsRequest { 4 | spent?: boolean 5 | _spent?: 'spent' 6 | } 7 | 8 | export interface ListfundsRequest__Output { 9 | spent?: boolean 10 | _spent: 'spent' 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/Outpoint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | export interface Outpoint { 4 | txid?: Buffer | Uint8Array | string 5 | outnum?: number 6 | } 7 | 8 | export interface Outpoint__Output { 9 | txid: Buffer 10 | outnum: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SignpsbtRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SignpsbtRequest { 4 | psbt?: string 5 | signonly?: number[] 6 | } 7 | 8 | export interface SignpsbtRequest__Output { 9 | psbt: string 10 | signonly: number[] 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/Outpoint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface Outpoint { 4 | txid?: Buffer | Uint8Array | string 5 | outnum?: number 6 | } 7 | 8 | export interface Outpoint__Output { 9 | txid: Buffer 10 | outnum: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/InitWalletResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletunlocker.proto 2 | 3 | export interface InitWalletResponse { 4 | admin_macaroon?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface InitWalletResponse__Output { 8 | admin_macaroon: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SubscribeCustomMessagesRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SubscribeCustomMessagesRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface SubscribeCustomMessagesRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/LightningAddress.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface LightningAddress { 4 | pubkey?: string 5 | host?: string 6 | } 7 | 8 | export interface LightningAddress__Output { 9 | pubkey: string 10 | host: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/XImportMissionControlResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface XImportMissionControlResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface XImportMissionControlResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/KeyReq.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface KeyReq { 4 | key_finger_print?: number 5 | key_family?: number 6 | } 7 | 8 | export interface KeyReq__Output { 9 | key_finger_print: number 10 | key_family: number 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/nodes.ts: -------------------------------------------------------------------------------- 1 | import { NodeConfig } from './types' 2 | 3 | const name = 'nodes' 4 | 5 | var nodes = require(`./configs/${name}.json`) 6 | 7 | const configs: NodeConfig[] = [] 8 | 9 | for (const n of nodes) { 10 | configs.push(n) 11 | } 12 | 13 | export default configs 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/WaitsendpayResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WaitsendpayResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/WaitsendpayResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,0CAA0C,GAAG;IACxD,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/CloseChannelType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/PayStatus.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListnodesRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListnodesRequest { 4 | id?: Buffer | Uint8Array | string 5 | _id?: 'id' 6 | } 7 | 8 | export interface ListnodesRequest__Output { 9 | id?: Buffer 10 | _id: 'id' 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/ConnectResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface ConnectResponse { 4 | node_id?: string 5 | features?: string 6 | } 7 | 8 | export interface ConnectResponse__Output { 9 | node_id: string 10 | features: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DebugLevelRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DebugLevelRequest { 4 | show?: boolean 5 | level_spec?: string 6 | } 7 | 8 | export interface DebugLevelRequest__Output { 9 | show: boolean 10 | level_spec: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/MacaroonPermission.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface MacaroonPermission { 4 | entity?: string 5 | action?: string 6 | } 7 | 8 | export interface MacaroonPermission__Output { 9 | entity: string 10 | action: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NodePair.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface NodePair { 4 | from?: Buffer | Uint8Array | string 5 | to?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface NodePair__Output { 9 | from: Buffer 10 | to: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/FinalHtlcEvent.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface FinalHtlcEvent { 4 | settled?: boolean 5 | offchain?: boolean 6 | } 7 | 8 | export interface FinalHtlcEvent__Output { 9 | settled: boolean 10 | offchain: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/GetMissionControlConfigRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface GetMissionControlConfigRequest { 4 | [k: string]: never 5 | } 6 | 7 | export interface GetMissionControlConfigRequest__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/SetMissionControlConfigResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface SetMissionControlConfigResponse { 4 | [k: string]: never 5 | } 6 | 7 | export interface SetMissionControlConfigResponse__Output { 8 | [k: string]: never 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/TweakDesc.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface TweakDesc { 4 | tweak?: Buffer | Uint8Array | string 5 | is_x_only?: boolean 6 | } 7 | 8 | export interface TweakDesc__Output { 9 | tweak: Buffer 10 | is_x_only: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/Transaction.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface Transaction { 4 | tx_hex?: Buffer | Uint8Array | string 5 | label?: string 6 | } 7 | 8 | export interface Transaction__Output { 9 | tx_hex: Buffer 10 | label: string 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ConnectResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ConnectResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ConnectResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAOtC,sCAAsC;AAEzB,QAAA,qCAAqC,GAAG;IACnD,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;CACF,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/FeeratesRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"FeeratesRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/FeeratesRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,kCAAkC,GAAG;IAChD,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/NewaddrRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"NewaddrRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/NewaddrRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,sCAAsC,GAAG;IACpD,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACF,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/SendpayResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"SendpayResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/SendpayResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,kCAAkC,GAAG;IAChD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /src/grpc/types/greenlight/DisconnectRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface DisconnectRequest { 4 | node_id?: string 5 | force?: boolean 6 | } 7 | 8 | export interface DisconnectRequest__Output { 9 | node_id: string 10 | force: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/NodePair.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface NodePair { 4 | from?: Buffer | Uint8Array | string 5 | to?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface NodePair__Output { 9 | from: Buffer 10 | to: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2RegisterNoncesResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2RegisterNoncesResponse { 4 | have_all_nonces?: boolean 5 | } 6 | 7 | export interface MuSig2RegisterNoncesResponse__Output { 8 | have_all_nonces: boolean 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/TapLeaf.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface TapLeaf { 4 | leaf_version?: number 5 | script?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface TapLeaf__Output { 9 | leaf_version: number 10 | script: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/utils/tables.sql: -------------------------------------------------------------------------------- 1 | 2 | 3 | CREATE TABLE sphinx_chat_members ( 4 | id INT, 5 | chat_id INT, 6 | contact_id INT, 7 | role INT, 8 | total_spent INT, 9 | total_messages INT, 10 | last_active DATETIME, 11 | status INT, 12 | created_at DATETIME, 13 | updated_at DATETIME 14 | ); -------------------------------------------------------------------------------- /testing/greenlight/new_creds/device-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgdltgCsoejH4HYBts 3 | lP/a8qTJypoM2W+1QZokq+nfhh6hRANCAAQ8/ngQyXD1KguzjUuLuV51dJfbUK+D 4 | GCx1E7dmIcToX5Rxg7O42E+WtyW6bnbPj6gLR8PVujiBR908SU8UYnqc 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/FeeratePreset.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/InvoiceStatus.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/HTLCAttempt.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/InvoiceHTLCState.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Peer.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/greenlight/HsmResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface HsmResponse { 4 | request_id?: number 5 | raw?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface HsmResponse__Output { 9 | request_id: number 10 | raw: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChangePasswordResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletunlocker.proto 2 | 3 | export interface ChangePasswordResponse { 4 | admin_macaroon?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface ChangePasswordResponse__Output { 8 | admin_macaroon: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/LookupHtlcResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface LookupHtlcResponse { 4 | settled?: boolean 5 | offchain?: boolean 6 | } 7 | 8 | export interface LookupHtlcResponse__Output { 9 | settled: boolean 10 | offchain: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PaymentHash.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PaymentHash { 4 | r_hash_str?: string 5 | r_hash?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface PaymentHash__Output { 9 | r_hash_str: string 10 | r_hash: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/VerifyMessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface VerifyMessageResponse { 4 | valid?: boolean 5 | pubkey?: string 6 | } 7 | 8 | export interface VerifyMessageResponse__Output { 9 | valid: boolean 10 | pubkey: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2SignResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2SignResponse { 4 | local_partial_signature?: Buffer | Uint8Array | string 5 | } 6 | 7 | export interface MuSig2SignResponse__Output { 8 | local_partial_signature: Buffer 9 | } 10 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/RequiredReserveRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface RequiredReserveRequest { 4 | additional_public_channels?: number 5 | } 6 | 7 | export interface RequiredReserveRequest__Output { 8 | additional_public_channels: number 9 | } 10 | -------------------------------------------------------------------------------- /src/tests/utils/msg/decryptMsg.ts: -------------------------------------------------------------------------------- 1 | import * as rsa from '../../../crypto/rsa' 2 | import { NodeConfig, Message } from '../../types' 3 | 4 | export function decryptMessage(node: NodeConfig, message: Message) { 5 | const decrypt = rsa.decrypt(node.privkey, message.message_content) 6 | return decrypt 7 | } 8 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/PayResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"PayResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/PayResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAOtC,sCAAsC;AAEzB,QAAA,0BAA0B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/SendonionResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"SendonionResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/SendonionResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,sCAAsC,GAAG;IACpD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/FloatMetric.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface FloatMetric { 4 | value?: number | string 5 | normalized_value?: number | string 6 | } 7 | 8 | export interface FloatMetric__Output { 9 | value: number 10 | normalized_value: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NodeInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface NodeInfoRequest { 4 | pub_key?: string 5 | include_channels?: boolean 6 | } 7 | 8 | export interface NodeInfoRequest__Output { 9 | pub_key: string 10 | include_channels: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PendingUpdate.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PendingUpdate { 4 | txid?: Buffer | Uint8Array | string 5 | output_index?: number 6 | } 7 | 8 | export interface PendingUpdate__Output { 9 | txid: Buffer 10 | output_index: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PreviousOutPoint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PreviousOutPoint { 4 | outpoint?: string 5 | is_our_output?: boolean 6 | } 7 | 8 | export interface PreviousOutPoint__Output { 9 | outpoint: string 10 | is_our_output: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/PaymentHash.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface PaymentHash { 4 | r_hash_str?: string 5 | r_hash?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface PaymentHash__Output { 9 | r_hash_str: string 10 | r_hash: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/VerifyMessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface VerifyMessageResponse { 4 | valid?: boolean 5 | pubkey?: string 6 | } 7 | 8 | export interface VerifyMessageResponse__Output { 9 | valid: boolean 10 | pubkey: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/NodeInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface NodeInfoRequest { 4 | node_id?: Buffer | Uint8Array | string 5 | wait?: boolean 6 | } 7 | 8 | export interface NodeInfoRequest__Output { 9 | node_id: Buffer 10 | wait: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/RecoveryResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface RecoveryResponse { 4 | device_cert?: string 5 | device_key?: string 6 | } 7 | 8 | export interface RecoveryResponse__Output { 9 | device_cert: string 10 | device_key: string 11 | } 12 | -------------------------------------------------------------------------------- /testing/configs/proxy-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx-proxy.db" 5 | }, 6 | "postgres": { 7 | "dialect": "postgres", 8 | "dialectOptions": { 9 | "connectionString": "postgres://localhost" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ChannelSide.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/primitives.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.ChannelSide = void 0; 5 | exports.ChannelSide = { 6 | IN: 'IN', 7 | OUT: 'OUT', 8 | }; 9 | //# sourceMappingURL=ChannelSide.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/CloseResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"CloseResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/CloseResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListpaysPays.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListpaysPays.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListpaysPays.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAItC,sCAAsC;AAEzB,QAAA,oCAAoC,GAAG;IAClD,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/WaitinvoiceResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WaitinvoiceResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/WaitinvoiceResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,0CAA0C,GAAG;IACxD,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACV,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Initiator.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Invoice.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Payment.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/HTLCAttempt.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/ChanStatusAction.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/tests/utils/base64images.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"base64images.js","sourceRoot":"","sources":["../../../../src/tests/utils/base64images.ts"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GACd,knHAAknH,CAAA;AAM3mH,gCAAU;AALnB,MAAM,WAAW,GACf,snHAAsnH,CAAA;AAInmH,kCAAW;AAHhC,MAAM,UAAU,GACd,knHAAknH,CAAA;AAEllH,gCAAU"} -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChanInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface ChanInfoRequest { 6 | chan_id?: number | string | Long 7 | } 8 | 9 | export interface ChanInfoRequest__Output { 10 | chan_id: string 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/WaitanyinvoiceResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"WaitanyinvoiceResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/WaitanyinvoiceResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,gDAAgD,GAAG;IAC9D,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACV,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SendpsbtResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SendpsbtResponse { 4 | tx?: Buffer | Uint8Array | string 5 | txid?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface SendpsbtResponse__Output { 9 | tx: Buffer 10 | txid: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/Feature.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface Feature { 4 | name?: string 5 | is_required?: boolean 6 | is_known?: boolean 7 | } 8 | 9 | export interface Feature__Output { 10 | name: string 11 | is_required: boolean 12 | is_known: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SignMessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SignMessageRequest { 4 | msg?: Buffer | Uint8Array | string 5 | single_hash?: boolean 6 | } 7 | 8 | export interface SignMessageRequest__Output { 9 | msg: Buffer 10 | single_hash: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/VerifyMessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface VerifyMessageRequest { 4 | msg?: Buffer | Uint8Array | string 5 | signature?: string 6 | } 7 | 8 | export interface VerifyMessageRequest__Output { 9 | msg: Buffer 10 | signature: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/ChanInfoRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface ChanInfoRequest { 6 | chan_id?: number | string | Long 7 | } 8 | 9 | export interface ChanInfoRequest__Output { 10 | chan_id: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/NodeInfoResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface NodeInfoResponse { 4 | node_id?: Buffer | Uint8Array | string 5 | grpc_uri?: string 6 | } 7 | 8 | export interface NodeInfoResponse__Output { 9 | node_id: Buffer 10 | grpc_uri: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/RegistrationResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface RegistrationResponse { 4 | device_cert?: string 5 | device_key?: string 6 | } 7 | 8 | export interface RegistrationResponse__Output { 9 | device_cert: string 10 | device_key: string 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListpaysRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListpaysRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListpaysRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,mCAAmC,GAAG;IACjD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/NetAddressType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/Invoice.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/Payment.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/HtlcEvent.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ChannelSide.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | export const ChannelSide = { 4 | IN: 'IN', 5 | OUT: 'OUT', 6 | } as const 7 | 8 | export type ChannelSide = 'IN' | 0 | 'OUT' | 1 9 | 10 | export type ChannelSide__Output = (typeof ChannelSide)[keyof typeof ChannelSide] 11 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListpeersPeersChannelsFeerate.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListpeersPeersChannelsFeerate { 4 | perkw?: number 5 | perkb?: number 6 | } 7 | 8 | export interface ListpeersPeersChannelsFeerate__Output { 9 | perkw: number 10 | perkb: number 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/WithdrawResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface WithdrawResponse { 4 | tx?: Buffer | Uint8Array | string 5 | txid?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface WithdrawResponse__Output { 9 | tx: Buffer 10 | txid: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/Feature.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface Feature { 4 | name?: string 5 | is_required?: boolean 6 | is_known?: boolean 7 | } 8 | 9 | export interface Feature__Output { 10 | name: string 11 | is_required: boolean 12 | is_known: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/SignMessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface SignMessageResponse { 4 | signature?: string 5 | signature_hex?: string 6 | } 7 | 8 | export interface SignMessageResponse__Output { 9 | signature: string 10 | signature_hex: string 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/utils/msg/getSpecifiMessage.ts: -------------------------------------------------------------------------------- 1 | import { MessageRecord } from '../../../models' 2 | 3 | export function getSpecificMsg(messages: MessageRecord[], uuid: string) { 4 | for (let i = 0; i < messages.length; i++) { 5 | if (messages[i].uuid === uuid) { 6 | return messages[i] 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/DelinvoiceRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DelinvoiceRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/DelinvoiceRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,uCAAuC,GAAG;IACrD,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/DelinvoiceResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DelinvoiceResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/DelinvoiceResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,wCAAwC,GAAG;IACtD,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/signrpc/SignMethod.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /docker/lnd.conf.sample: -------------------------------------------------------------------------------- 1 | listen=0.0.0.0:9735 2 | rpclisten=0.0.0.0:10009 3 | 4 | bitcoin.mainnet=1 5 | bitcoin.active=1 6 | bitcoin.node=neutrino 7 | accept-keysend=1 8 | 9 | ignore-historical-gossip-filters=true 10 | nobootstrap=true 11 | numgraphsyncpeers=1 12 | routing.assumechanvalid=1 13 | autopilot.active=false 14 | 15 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/CheckmessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface CheckmessageResponse { 4 | verified?: boolean 5 | pubkey?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface CheckmessageResponse__Output { 9 | verified: boolean 10 | pubkey: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/CreateonionHops.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface CreateonionHops { 4 | pubkey?: Buffer | Uint8Array | string 5 | payload?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface CreateonionHops__Output { 9 | pubkey: Buffer 10 | payload: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChannelCloseUpdate.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ChannelCloseUpdate { 4 | closing_txid?: Buffer | Uint8Array | string 5 | success?: boolean 6 | } 7 | 8 | export interface ChannelCloseUpdate__Output { 9 | closing_txid: Buffer 10 | success: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/VerifyMessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export interface VerifyMessageRequest { 4 | msg?: Buffer | Uint8Array | string 5 | signature?: string 6 | } 7 | 8 | export interface VerifyMessageRequest__Output { 9 | msg: Buffer 10 | signature: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/InputScript.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface InputScript { 4 | witness?: (Buffer | Uint8Array | string)[] 5 | sig_script?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface InputScript__Output { 9 | witness: Buffer[] 10 | sig_script: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListinvoicesInvoices.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListinvoicesInvoices.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListinvoicesInvoices.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,oDAAoD,GAAG;IAClE,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACV,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListpeersPeersChannelsHtlcs.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListpeersPeersChannelsHtlcs.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListpeersPeersChannelsHtlcs.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,qEAAqE,GAChF;IACE,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;CACF,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListsendpaysRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListsendpaysRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListsendpaysRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,2CAA2C,GAAG;IACzD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/tests/nodes.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const name = 'nodes'; 4 | var nodes = require(`./configs/${name}.json`); 5 | const configs = []; 6 | for (const n of nodes) { 7 | configs.push(n); 8 | } 9 | exports.default = configs; 10 | //# sourceMappingURL=nodes.js.map -------------------------------------------------------------------------------- /src/grpc/types/signrpc/TaprootTweakDesc.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface TaprootTweakDesc { 4 | script_root?: Buffer | Uint8Array | string 5 | key_spend_only?: boolean 6 | } 7 | 8 | export interface TaprootTweakDesc__Output { 9 | script_root: Buffer 10 | key_spend_only: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/FinalizePsbtRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface FinalizePsbtRequest { 4 | funded_psbt?: Buffer | Uint8Array | string 5 | account?: string 6 | } 7 | 8 | export interface FinalizePsbtRequest__Output { 9 | funded_psbt: Buffer 10 | account: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/SignMessageWithAddrRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface SignMessageWithAddrRequest { 4 | msg?: Buffer | Uint8Array | string 5 | addr?: string 6 | } 7 | 8 | export interface SignMessageWithAddrRequest__Output { 9 | msg: Buffer 10 | addr: string 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/CreateinvoiceResponse.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"CreateinvoiceResponse.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/CreateinvoiceResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,8CAA8C,GAAG;IAC5D,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListsendpaysPayments.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListsendpaysPayments.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListsendpaysPayments.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,oDAAoD,GAAG;IAClE,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/PendingChannelsResponse.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/ResolutionType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/CommitmentType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SendcustommsgRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SendcustommsgRequest { 4 | node_id?: Buffer | Uint8Array | string 5 | msg?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface SendcustommsgRequest__Output { 9 | node_id: Buffer 10 | msg: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SendpsbtRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SendpsbtRequest { 4 | psbt?: string 5 | reserve?: boolean 6 | _reserve?: 'reserve' 7 | } 8 | 9 | export interface SendpsbtRequest__Output { 10 | psbt: string 11 | reserve?: boolean 12 | _reserve: 'reserve' 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TxdiscardResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface TxdiscardResponse { 4 | unsigned_tx?: Buffer | Uint8Array | string 5 | txid?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface TxdiscardResponse__Output { 9 | unsigned_tx: Buffer 10 | txid: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/Amount.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface Amount { 6 | sat?: number | string | Long 7 | msat?: number | string | Long 8 | } 9 | 10 | export interface Amount__Output { 11 | sat: string 12 | msat: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/EstimateFeeResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface EstimateFeeResponse { 6 | sat_per_kw?: number | string | Long 7 | } 8 | 9 | export interface EstimateFeeResponse__Output { 10 | sat_per_kw: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/LeaseOutputResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface LeaseOutputResponse { 6 | expiration?: number | string | Long 7 | } 8 | 9 | export interface LeaseOutputResponse__Output { 10 | expiration: string 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/SignPsbtResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface SignPsbtResponse { 4 | signed_psbt?: Buffer | Uint8Array | string 5 | signed_inputs?: number[] 6 | } 7 | 8 | export interface SignPsbtResponse__Output { 9 | signed_psbt: Buffer 10 | signed_inputs: number[] 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListfundsOutputs.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListfundsOutputs.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListfundsOutputs.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAOtC,sCAAsC;AAEzB,QAAA,4CAA4C,GAAG;IAC1D,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/scheduler/ChallengeScope.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/scheduler.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.ChallengeScope = void 0; 5 | exports.ChallengeScope = { 6 | REGISTER: 'REGISTER', 7 | RECOVER: 'RECOVER', 8 | }; 9 | //# sourceMappingURL=ChallengeScope.js.map -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/Amount.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface Amount { 6 | sat?: number | string | Long 7 | msat?: number | string | Long 8 | } 9 | 10 | export interface Amount__Output { 11 | sat: string 12 | msat: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ListAddressesRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ListAddressesRequest { 4 | account_name?: string 5 | show_custom_accounts?: boolean 6 | } 7 | 8 | export interface ListAddressesRequest__Output { 9 | account_name: string 10 | show_custom_accounts: boolean 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/BtcAddressType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.BtcAddressType = void 0; 5 | exports.BtcAddressType = { 6 | BECH32: 'BECH32', 7 | P2SH_SEGWIT: 'P2SH_SEGWIT', 8 | }; 9 | //# sourceMappingURL=BtcAddressType.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/OutputStatus.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.OutputStatus = void 0; 5 | exports.OutputStatus = { 6 | CONFIRMED: 'CONFIRMED', 7 | UNCONFIRMED: 'UNCONFIRMED', 8 | }; 9 | //# sourceMappingURL=OutputStatus.js.map -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DeleteMacaroonIDRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface DeleteMacaroonIDRequest { 6 | root_key_id?: number | string | Long 7 | } 8 | 9 | export interface DeleteMacaroonIDRequest__Output { 10 | root_key_id: string 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/utils/msg/getAllMessages.ts: -------------------------------------------------------------------------------- 1 | import { NodeConfig } from '../../types' 2 | import { makeArgs } from '../helpers' 3 | import * as http from 'ava-http' 4 | 5 | export async function getAllMessages(node: NodeConfig) { 6 | const msg = await http.get(node.external_ip + '/allmessages', makeArgs(node)) 7 | return msg.response.new_messages 8 | } 9 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListforwardsRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListforwardsRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListforwardsRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,2CAA2C,GAAG;IACzD,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/CloseChannelType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.CloseChannelType = void 0; 5 | exports.CloseChannelType = { 6 | MUTUAL: 'MUTUAL', 7 | UNILATERAL: 'UNILATERAL', 8 | }; 9 | //# sourceMappingURL=CloseChannelType.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/CommitmentType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/walletrpc/AddressType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/DisconnectRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface DisconnectRequest { 4 | id?: Buffer | Uint8Array | string 5 | force?: boolean 6 | _force?: 'force' 7 | } 8 | 9 | export interface DisconnectRequest__Output { 10 | id: Buffer 11 | force?: boolean 12 | _force: 'force' 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TxsendResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface TxsendResponse { 4 | psbt?: string 5 | tx?: Buffer | Uint8Array | string 6 | txid?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface TxsendResponse__Output { 10 | psbt: string 11 | tx: Buffer 12 | txid: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/CustomMessage.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface CustomMessage { 4 | peer?: Buffer | Uint8Array | string 5 | type?: number 6 | data?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface CustomMessage__Output { 10 | peer: Buffer 11 | type: number 12 | data: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListMacaroonIDsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface ListMacaroonIDsResponse { 6 | root_key_ids?: (number | string | Long)[] 7 | } 8 | 9 | export interface ListMacaroonIDsResponse__Output { 10 | root_key_ids: string[] 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListUnspentRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ListUnspentRequest { 4 | min_confs?: number 5 | max_confs?: number 6 | account?: string 7 | } 8 | 9 | export interface ListUnspentRequest__Output { 10 | min_confs: number 11 | max_confs: number 12 | account: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/OutPoint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface OutPoint { 4 | txid_bytes?: Buffer | Uint8Array | string 5 | txid_str?: string 6 | output_index?: number 7 | } 8 | 9 | export interface OutPoint__Output { 10 | txid_bytes: Buffer 11 | txid_str: string 12 | output_index: number 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/TxOut.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface TxOut { 6 | value?: number | string | Long 7 | pk_script?: Buffer | Uint8Array | string 8 | } 9 | 10 | export interface TxOut__Output { 11 | value: string 12 | pk_script: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/VerifyMessageWithAddrResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface VerifyMessageWithAddrResponse { 4 | valid?: boolean 5 | pubkey?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface VerifyMessageWithAddrResponse__Output { 9 | valid: boolean 10 | pubkey: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/utils/bots/index.ts: -------------------------------------------------------------------------------- 1 | export { botDecrypt } from './botDecrypt' 2 | export { createBadge } from './createBadge' 3 | export { confirmBadge, confirmBadgeCreatedThroughMessage } from './confirmBadge' 4 | export { addTribeToBadge } from './addBadgeToTribe' 5 | export { createBot } from './createBot' 6 | export { sendBotMessage } from './sendBotMessage' 7 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ConnectAddress.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ConnectAddress.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ConnectAddress.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,sCAAsC,GAAG;IACpD,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/GetinfoBinding.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"GetinfoBinding.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/GetinfoBinding.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,sCAAsC,GAAG;IACpD,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/UpdateFailure.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/tests/nodes.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/tests/nodes.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAG,OAAO,CAAA;AAEpB,IAAI,KAAK,GAAG,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,CAAA;AAE7C,MAAM,OAAO,GAAiB,EAAE,CAAA;AAEhC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;IACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB;AAED,kBAAe,OAAO,CAAA"} -------------------------------------------------------------------------------- /dist/src/tests/utils/msg/decryptMsg.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"decryptMsg.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/decryptMsg.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAG1C,SAAgB,cAAc,CAAC,IAAgB,EAAE,OAAgB;IAC/D,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IAClE,OAAO,OAAO,CAAA;AAChB,CAAC;AAHD,wCAGC"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/CreateonionResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface CreateonionResponse { 4 | onion?: Buffer | Uint8Array | string 5 | shared_secrets?: (Buffer | Uint8Array | string)[] 6 | } 7 | 8 | export interface CreateonionResponse__Output { 9 | onion: Buffer 10 | shared_secrets: Buffer[] 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TlvEntry.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface TlvEntry { 6 | type?: number | string | Long 7 | value?: Buffer | Uint8Array | string 8 | } 9 | 10 | export interface TlvEntry__Output { 11 | type: string 12 | value: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/WithdrawResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface WithdrawResponse { 4 | tx?: Buffer | Uint8Array | string 5 | txid?: Buffer | Uint8Array | string 6 | psbt?: string 7 | } 8 | 9 | export interface WithdrawResponse__Output { 10 | tx: Buffer 11 | txid: Buffer 12 | psbt: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/TlvField.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface TlvField { 6 | type?: number | string | Long 7 | value?: Buffer | Uint8Array | string 8 | } 9 | 10 | export interface TlvField__Output { 11 | type: string 12 | value: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DeletePaymentRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DeletePaymentRequest { 4 | payment_hash?: Buffer | Uint8Array | string 5 | failed_htlcs_only?: boolean 6 | } 7 | 8 | export interface DeletePaymentRequest__Output { 9 | payment_hash: Buffer 10 | failed_htlcs_only: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GenSeedResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletunlocker.proto 2 | 3 | export interface GenSeedResponse { 4 | cipher_seed_mnemonic?: string[] 5 | enciphered_seed?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface GenSeedResponse__Output { 9 | cipher_seed_mnemonic: string[] 10 | enciphered_seed: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/TrackPaymentRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export interface TrackPaymentRequest { 4 | payment_hash?: Buffer | Uint8Array | string 5 | no_inflight_updates?: boolean 6 | } 7 | 8 | export interface TrackPaymentRequest__Output { 9 | payment_hash: Buffer 10 | no_inflight_updates: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/RequiredReserveResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface RequiredReserveResponse { 6 | required_reserve?: number | string | Long 7 | } 8 | 9 | export interface RequiredReserveResponse__Output { 10 | required_reserve: string 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/PayStatus.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.PayStatus = void 0; 5 | exports.PayStatus = { 6 | PENDING: 'PENDING', 7 | COMPLETE: 'COMPLETE', 8 | FAILED: 'FAILED', 9 | }; 10 | //# sourceMappingURL=PayStatus.js.map -------------------------------------------------------------------------------- /dist/src/tests/config.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tests/config.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAE7B,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,iBAAiB;IAC5B,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,CAAC;IACb,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,gBAAgB;IAC1B,gBAAgB,EAAE,kBAAkB;CACrC,CAAA"} -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/DeleteAllPaymentsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface DeleteAllPaymentsRequest { 4 | failed_payments_only?: boolean 5 | failed_htlcs_only?: boolean 6 | } 7 | 8 | export interface DeleteAllPaymentsRequest__Output { 9 | failed_payments_only: boolean 10 | failed_htlcs_only: boolean 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GenSeedRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletunlocker.proto 2 | 3 | export interface GenSeedRequest { 4 | aezeed_passphrase?: Buffer | Uint8Array | string 5 | seed_entropy?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface GenSeedRequest__Output { 9 | aezeed_passphrase: Buffer 10 | seed_entropy: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/TimestampedError.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface TimestampedError { 6 | timestamp?: number | string | Long 7 | error?: string 8 | } 9 | 10 | export interface TimestampedError__Output { 11 | timestamp: string 12 | error: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/CircuitKey.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface CircuitKey { 6 | chan_id?: number | string | Long 7 | htlc_id?: number | string | Long 8 | } 9 | 10 | export interface CircuitKey__Output { 11 | chan_id: string 12 | htlc_id: string 13 | } 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/FeeratePreset.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.FeeratePreset = void 0; 5 | exports.FeeratePreset = { 6 | NORMAL: 'NORMAL', 7 | SLOW: 'SLOW', 8 | URGENT: 'URGENT', 9 | }; 10 | //# sourceMappingURL=FeeratePreset.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/InvoiceStatus.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.InvoiceStatus = void 0; 5 | exports.InvoiceStatus = { 6 | UNPAID: 'UNPAID', 7 | PAID: 'PAID', 8 | EXPIRED: 'EXPIRED', 9 | }; 10 | //# sourceMappingURL=InvoiceStatus.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/NodeMetricType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.NodeMetricType = void 0; 5 | exports.NodeMetricType = { 6 | UNKNOWN: 'UNKNOWN', 7 | BETWEENNESS_CENTRALITY: 'BETWEENNESS_CENTRALITY', 8 | }; 9 | //# sourceMappingURL=NodeMetricType.js.map -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/AliasMap.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface AliasMap { 6 | base_scid?: number | string | Long 7 | aliases?: (number | string | Long)[] 8 | } 9 | 10 | export interface AliasMap__Output { 11 | base_scid: string 12 | aliases: string[] 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/FinalizePsbtResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface FinalizePsbtResponse { 4 | signed_psbt?: Buffer | Uint8Array | string 5 | raw_final_tx?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface FinalizePsbtResponse__Output { 9 | signed_psbt: Buffer 10 | raw_final_tx: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/config.ts: -------------------------------------------------------------------------------- 1 | // iterate: try all combinations of nodes! 2 | 3 | export const config = { 4 | iterate: true, 5 | memeHost: 'localhost:5555', 6 | tribeHost: 'localhost:13000', 7 | tribeHostInternal: 'tribes.sphinx:13000', 8 | allowedFee: 7, 9 | cache: false, 10 | authHost: 'localhost:9090', 11 | authHostInternal: `auth.sphinx:9090`, 12 | } 13 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/DatastoreRequest.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"DatastoreRequest.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/DatastoreRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAItC,sCAAsC;AAEzB,QAAA,mCAAmC,GAAG;IACjD,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;CAC5B,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/AddressType.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/ResolutionOutcome.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/CreateinvoiceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface CreateinvoiceRequest { 4 | invstring?: string 5 | label?: string 6 | preimage?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface CreateinvoiceRequest__Output { 10 | invstring: string 11 | label: string 12 | preimage: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/AMPRecord.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface AMPRecord { 4 | root_share?: Buffer | Uint8Array | string 5 | set_id?: Buffer | Uint8Array | string 6 | child_index?: number 7 | } 8 | 9 | export interface AMPRecord__Output { 10 | root_share: Buffer 11 | set_id: Buffer 12 | child_index: number 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GetTransactionsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface GetTransactionsRequest { 4 | start_height?: number 5 | end_height?: number 6 | account?: string 7 | } 8 | 9 | export interface GetTransactionsRequest__Output { 10 | start_height: number 11 | end_height: number 12 | account: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/ChallengeScope.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export const ChallengeScope = { 4 | REGISTER: 'REGISTER', 5 | RECOVER: 'RECOVER', 6 | } as const 7 | 8 | export type ChallengeScope = 'REGISTER' | 0 | 'RECOVER' | 1 9 | 10 | export type ChallengeScope__Output = 11 | (typeof ChallengeScope)[keyof typeof ChallengeScope] 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/GetinfoAddress.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"GetinfoAddress.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/GetinfoAddress.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,sCAAsC,GAAG;IACpD,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACd,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/ChanStatusAction.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/router.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.ChanStatusAction = void 0; 5 | exports.ChanStatusAction = { 6 | ENABLE: 'ENABLE', 7 | DISABLE: 'DISABLE', 8 | AUTO: 'AUTO', 9 | }; 10 | //# sourceMappingURL=ChanStatusAction.js.map -------------------------------------------------------------------------------- /src/grpc/types/greenlight/OutputStatus.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const OutputStatus = { 4 | CONFIRMED: 'CONFIRMED', 5 | UNCONFIRMED: 'UNCONFIRMED', 6 | } as const 7 | 8 | export type OutputStatus = 'CONFIRMED' | 0 | 'UNCONFIRMED' | 1 9 | 10 | export type OutputStatus__Output = 11 | (typeof OutputStatus)[keyof typeof OutputStatus] 12 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/PayStatus.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const PayStatus = { 4 | PENDING: 'PENDING', 5 | COMPLETE: 'COMPLETE', 6 | FAILED: 'FAILED', 7 | } as const 8 | 9 | export type PayStatus = 'PENDING' | 0 | 'COMPLETE' | 1 | 'FAILED' | 2 10 | 11 | export type PayStatus__Output = (typeof PayStatus)[keyof typeof PayStatus] 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/EdgeLocator.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface EdgeLocator { 6 | channel_id?: number | string | Long 7 | direction_reverse?: boolean 8 | } 9 | 10 | export interface EdgeLocator__Output { 11 | channel_id: string 12 | direction_reverse: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/RouteFeeRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface RouteFeeRequest { 6 | dest?: Buffer | Uint8Array | string 7 | amt_sat?: number | string | Long 8 | } 9 | 10 | export interface RouteFeeRequest__Output { 11 | dest: Buffer 12 | amt_sat: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2CombineSigResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2CombineSigResponse { 4 | have_all_signatures?: boolean 5 | final_signature?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface MuSig2CombineSigResponse__Output { 9 | have_all_signatures: boolean 10 | final_signature: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/LabelTransactionRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface LabelTransactionRequest { 4 | txid?: Buffer | Uint8Array | string 5 | label?: string 6 | overwrite?: boolean 7 | } 8 | 9 | export interface LabelTransactionRequest__Output { 10 | txid: Buffer 11 | label: string 12 | overwrite: boolean 13 | } 14 | -------------------------------------------------------------------------------- /docker/relay_supervisor.conf: -------------------------------------------------------------------------------- 1 | [program:relay] 2 | user=root 3 | command=sh -c 'npm run start-ecs --prefix /relay/' 4 | startretries=999999999999999999999999999 5 | autostart=false 6 | autorestart=true 7 | stdout_logfile=/var/log/supervisor/%(program_name)s.log 8 | stderr_logfile=/var/log/supervisor/%(program_name)s.log 9 | stdout_logfile_maxbytes=10MB 10 | stdout_logfile_backups=10 -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListpeersRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListpeersRequest { 4 | id?: Buffer | Uint8Array | string 5 | level?: string 6 | _id?: 'id' 7 | _level?: 'level' 8 | } 9 | 10 | export interface ListpeersRequest__Output { 11 | id?: Buffer 12 | level?: string 13 | _id: 'id' 14 | _level: 'level' 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TxprepareResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface TxprepareResponse { 4 | psbt?: string 5 | unsigned_tx?: Buffer | Uint8Array | string 6 | txid?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface TxprepareResponse__Output { 10 | psbt: string 11 | unsigned_tx: Buffer 12 | txid: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/BtcAddressType.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const BtcAddressType = { 4 | BECH32: 'BECH32', 5 | P2SH_SEGWIT: 'P2SH_SEGWIT', 6 | } as const 7 | 8 | export type BtcAddressType = 'BECH32' | 0 | 'P2SH_SEGWIT' | 1 9 | 10 | export type BtcAddressType__Output = 11 | (typeof BtcAddressType)[keyof typeof BtcAddressType] 12 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/PsbtShim.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface PsbtShim { 4 | pending_chan_id?: Buffer | Uint8Array | string 5 | base_psbt?: Buffer | Uint8Array | string 6 | no_publish?: boolean 7 | } 8 | 9 | export interface PsbtShim__Output { 10 | pending_chan_id: Buffer 11 | base_psbt: Buffer 12 | no_publish: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/EdgeLocator.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface EdgeLocator { 6 | channel_id?: number | string | Long 7 | direction_reverse?: boolean 8 | } 9 | 10 | export interface EdgeLocator__Output { 11 | channel_id: string 12 | direction_reverse: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/tests/utils/del/index.ts: -------------------------------------------------------------------------------- 1 | export { deleteContact } from './deleteContact' 2 | export { deleteChat } from './deleteChat' 3 | export { leaveTribe } from './leaveTribe' 4 | export { deleteTribe } from './deleteTribe' 5 | export { deleteMessages } from './deleteMessages' 6 | export { deleteMessage } from './deleteMessage' 7 | export { disappearingMessages } from './disappearingMessage' 8 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/GetrouteRoute.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_GetrouteRoute_GetrouteRouteStyle = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_GetrouteRoute_GetrouteRouteStyle = { 7 | TLV: 'TLV', 8 | }; 9 | //# sourceMappingURL=GetrouteRoute.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/greenlight/NetAddressType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/greenlight.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.NetAddressType = void 0; 5 | exports.NetAddressType = { 6 | Ipv4: 'Ipv4', 7 | Ipv6: 'Ipv6', 8 | TorV2: 'TorV2', 9 | TorV3: 'TorV3', 10 | }; 11 | //# sourceMappingURL=NetAddressType.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/InvoiceHTLCState.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.InvoiceHTLCState = void 0; 5 | exports.InvoiceHTLCState = { 6 | ACCEPTED: 'ACCEPTED', 7 | SETTLED: 'SETTLED', 8 | CANCELED: 'CANCELED', 9 | }; 10 | //# sourceMappingURL=InvoiceHTLCState.js.map -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/Routehint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | import type { 4 | RouteHop as _cln_RouteHop, 5 | RouteHop__Output as _cln_RouteHop__Output, 6 | } from '../cln/RouteHop' 7 | 8 | export interface Routehint { 9 | hops?: _cln_RouteHop[] 10 | } 11 | 12 | export interface Routehint__Output { 13 | hops: _cln_RouteHop__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/SignmessageResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface SignmessageResponse { 4 | signature?: Buffer | Uint8Array | string 5 | recid?: Buffer | Uint8Array | string 6 | zbase?: string 7 | } 8 | 9 | export interface SignmessageResponse__Output { 10 | signature: Buffer 11 | recid: Buffer 12 | zbase: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListPeersResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | Peer as _lnrpc_Peer, 5 | Peer__Output as _lnrpc_Peer__Output, 6 | } from '../lnrpc/Peer' 7 | 8 | export interface ListPeersResponse { 9 | peers?: _lnrpc_Peer[] 10 | } 11 | 12 | export interface ListPeersResponse__Output { 13 | peers: _lnrpc_Peer__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/LookupHtlcRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface LookupHtlcRequest { 6 | chan_id?: number | string | Long 7 | htlc_index?: number | string | Long 8 | } 9 | 10 | export interface LookupHtlcRequest__Output { 11 | chan_id: string 12 | htlc_index: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/MPPRecord.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface MPPRecord { 6 | total_amt_msat?: number | string | Long 7 | payment_addr?: Buffer | Uint8Array | string 8 | } 9 | 10 | export interface MPPRecord__Output { 11 | total_amt_msat: string 12 | payment_addr: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/SendCustomMessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface SendCustomMessageRequest { 4 | peer?: Buffer | Uint8Array | string 5 | type?: number 6 | data?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface SendCustomMessageRequest__Output { 10 | peer: Buffer 11 | type: number 12 | data: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/WatchOnlyAccount.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletunlocker.proto 2 | 3 | export interface WatchOnlyAccount { 4 | purpose?: number 5 | coin_type?: number 6 | account?: number 7 | xpub?: string 8 | } 9 | 10 | export interface WatchOnlyAccount__Output { 11 | purpose: number 12 | coin_type: number 13 | account: number 14 | xpub: string 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/VerifyMessageWithAddrRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface VerifyMessageWithAddrRequest { 4 | msg?: Buffer | Uint8Array | string 5 | signature?: string 6 | addr?: string 7 | } 8 | 9 | export interface VerifyMessageWithAddrRequest__Output { 10 | msg: Buffer 11 | signature: string 12 | addr: string 13 | } 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/InvoiceHTLCState.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/rpc_proxy.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.InvoiceHTLCState = void 0; 5 | exports.InvoiceHTLCState = { 6 | ACCEPTED: 'ACCEPTED', 7 | SETTLED: 'SETTLED', 8 | CANCELED: 'CANCELED', 9 | }; 10 | //# sourceMappingURL=InvoiceHTLCState.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/PaymentState.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/tests/utils/bots/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tests/utils/bots/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,+CAAgF;AAAvE,4GAAA,YAAY,OAAA;AAAE,iIAAA,iCAAiC,OAAA;AACxD,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,mDAAiD;AAAxC,gHAAA,cAAc,OAAA"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/TlvStream.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | import type { 4 | TlvEntry as _cln_TlvEntry, 5 | TlvEntry__Output as _cln_TlvEntry__Output, 6 | } from '../cln/TlvEntry' 7 | 8 | export interface TlvStream { 9 | entries?: _cln_TlvEntry[] 10 | } 11 | 12 | export interface TlvStream__Output { 13 | entries: _cln_TlvEntry__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/CloseChannelType.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const CloseChannelType = { 4 | MUTUAL: 'MUTUAL', 5 | UNILATERAL: 'UNILATERAL', 6 | } as const 7 | 8 | export type CloseChannelType = 'MUTUAL' | 0 | 'UNILATERAL' | 1 9 | 10 | export type CloseChannelType__Output = 11 | (typeof CloseChannelType)[keyof typeof CloseChannelType] 12 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/FeeratePreset.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const FeeratePreset = { 4 | NORMAL: 'NORMAL', 5 | SLOW: 'SLOW', 6 | URGENT: 'URGENT', 7 | } as const 8 | 9 | export type FeeratePreset = 'NORMAL' | 0 | 'SLOW' | 1 | 'URGENT' | 2 10 | 11 | export type FeeratePreset__Output = 12 | (typeof FeeratePreset)[keyof typeof FeeratePreset] 13 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ConfirmationUpdate.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface ConfirmationUpdate { 4 | block_sha?: Buffer | Uint8Array | string 5 | block_height?: number 6 | num_confs_left?: number 7 | } 8 | 9 | export interface ConfirmationUpdate__Output { 10 | block_sha: Buffer 11 | block_height: number 12 | num_confs_left: number 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListUnspentResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | Utxo as _lnrpc_Utxo, 5 | Utxo__Output as _lnrpc_Utxo__Output, 6 | } from '../lnrpc/Utxo' 7 | 8 | export interface ListUnspentResponse { 9 | utxos?: _lnrpc_Utxo[] 10 | } 11 | 12 | export interface ListUnspentResponse__Output { 13 | utxos: _lnrpc_Utxo__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/RouteHint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | HopHint as _lnrpc_HopHint, 5 | HopHint__Output as _lnrpc_HopHint__Output, 6 | } from '../lnrpc/HopHint' 7 | 8 | export interface RouteHint { 9 | hop_hints?: _lnrpc_HopHint[] 10 | } 11 | 12 | export interface RouteHint__Output { 13 | hop_hints: _lnrpc_HopHint__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/MPPRecord.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface MPPRecord { 6 | total_amt_msat?: number | string | Long 7 | payment_addr?: Buffer | Uint8Array | string 8 | } 9 | 10 | export interface MPPRecord__Output { 11 | total_amt_msat: string 12 | payment_addr: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/KeysendResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_KeysendResponse_KeysendStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_KeysendResponse_KeysendStatus = { 7 | COMPLETE: 'COMPLETE', 8 | }; 9 | //# sourceMappingURL=KeysendResponse.js.map -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ConnectRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ConnectRequest { 4 | id?: string 5 | host?: string 6 | port?: number 7 | _host?: 'host' 8 | _port?: 'port' 9 | } 10 | 11 | export interface ConnectRequest__Output { 12 | id: string 13 | host?: string 14 | port?: number 15 | _host: 'host' 16 | _port: 'port' 17 | } 18 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/InvoiceStatus.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const InvoiceStatus = { 4 | UNPAID: 'UNPAID', 5 | PAID: 'PAID', 6 | EXPIRED: 'EXPIRED', 7 | } as const 8 | 9 | export type InvoiceStatus = 'UNPAID' | 0 | 'PAID' | 1 | 'EXPIRED' | 2 10 | 11 | export type InvoiceStatus__Output = 12 | (typeof InvoiceStatus)[keyof typeof InvoiceStatus] 13 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2CombineKeysResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2CombineKeysResponse { 4 | combined_key?: Buffer | Uint8Array | string 5 | taproot_internal_key?: Buffer | Uint8Array | string 6 | } 7 | 8 | export interface MuSig2CombineKeysResponse__Output { 9 | combined_key: Buffer 10 | taproot_internal_key: Buffer 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2CombineSigRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2CombineSigRequest { 4 | session_id?: Buffer | Uint8Array | string 5 | other_partial_signatures?: (Buffer | Uint8Array | string)[] 6 | } 7 | 8 | export interface MuSig2CombineSigRequest__Output { 9 | session_id: Buffer 10 | other_partial_signatures: Buffer[] 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ListUnspentResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { 4 | Utxo as _lnrpc_Utxo, 5 | Utxo__Output as _lnrpc_Utxo__Output, 6 | } from '../lnrpc/Utxo' 7 | 8 | export interface ListUnspentResponse { 9 | utxos?: _lnrpc_Utxo[] 10 | } 11 | 12 | export interface ListUnspentResponse__Output { 13 | utxos: _lnrpc_Utxo__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /testing/cluster/dave-db.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "postgres", 4 | "host": "localhost", 5 | "username": "postgres", 6 | "password": "sphinx", 7 | "database": "postgres", 8 | "sslmode": "disable", 9 | "dialectOptions": { 10 | "connectionString": "postgres://postgres:sphinx@localhost:5432/postgres?sslmode=disable" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListnodesNodesAddresses.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListnodesNodesAddresses.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListnodesNodesAddresses.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,wDAAwD,GAAG;IACtE,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACd,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/ChannelCloseSummary.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/ChannelEventUpdate.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/PaymentFailureReason.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/GetRecoveryInfoResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface GetRecoveryInfoResponse { 4 | recovery_mode?: boolean 5 | recovery_finished?: boolean 6 | progress?: number | string 7 | } 8 | 9 | export interface GetRecoveryInfoResponse__Output { 10 | recovery_mode: boolean 11 | recovery_finished: boolean 12 | progress: number 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/InvoiceSubscription.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface InvoiceSubscription { 6 | add_index?: number | string | Long 7 | settle_index?: number | string | Long 8 | } 9 | 10 | export interface InvoiceSubscription__Output { 11 | add_index: string 12 | settle_index: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2SignRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2SignRequest { 4 | session_id?: Buffer | Uint8Array | string 5 | message_digest?: Buffer | Uint8Array | string 6 | cleanup?: boolean 7 | } 8 | 9 | export interface MuSig2SignRequest__Output { 10 | session_id: Buffer 11 | message_digest: Buffer 12 | cleanup: boolean 13 | } 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListpeersPeersLog.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListpeersPeersLog.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListpeersPeersLog.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,sCAAsC;AAEzB,QAAA,4CAA4C,GAAG;IAC1D,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAA"} -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/ResolveHoldForwardAction.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/router.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.ResolveHoldForwardAction = void 0; 5 | exports.ResolveHoldForwardAction = { 6 | SETTLE: 'SETTLE', 7 | FAIL: 'FAIL', 8 | RESUME: 'RESUME', 9 | }; 10 | //# sourceMappingURL=ResolveHoldForwardAction.js.map -------------------------------------------------------------------------------- /dist/src/tests/utils/del/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tests/utils/del/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,6DAA4D;AAAnD,2HAAA,oBAAoB,OAAA"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/RoutehintList.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | import type { 4 | Routehint as _cln_Routehint, 5 | Routehint__Output as _cln_Routehint__Output, 6 | } from '../cln/Routehint' 7 | 8 | export interface RoutehintList { 9 | hints?: _cln_Routehint[] 10 | } 11 | 12 | export interface RoutehintList__Output { 13 | hints: _cln_Routehint__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/PaymentIdentifier.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export interface PaymentIdentifier { 4 | bolt11?: string 5 | payment_hash?: Buffer | Uint8Array | string 6 | id?: 'bolt11' | 'payment_hash' 7 | } 8 | 9 | export interface PaymentIdentifier__Output { 10 | bolt11?: string 11 | payment_hash?: Buffer 12 | id: 'bolt11' | 'payment_hash' 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/InterceptFeedback.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface InterceptFeedback { 4 | error?: string 5 | replace_response?: boolean 6 | replacement_serialized?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface InterceptFeedback__Output { 10 | error: string 11 | replace_response: boolean 12 | replacement_serialized: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/InvoiceSubscription.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface InvoiceSubscription { 6 | add_index?: number | string | Long 7 | settle_index?: number | string | Long 8 | } 9 | 10 | export interface InvoiceSubscription__Output { 11 | add_index: string 12 | settle_index: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/BuildRouteResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | import type { 4 | Route as _lnrpc_Route, 5 | Route__Output as _lnrpc_Route__Output, 6 | } from '../lnrpc/Route' 7 | 8 | export interface BuildRouteResponse { 9 | route?: _lnrpc_Route | null 10 | } 11 | 12 | export interface BuildRouteResponse__Output { 13 | route: _lnrpc_Route__Output | null 14 | } 15 | -------------------------------------------------------------------------------- /src/tests/utils/invoices/payInvoice.ts: -------------------------------------------------------------------------------- 1 | import http = require('ava-http') 2 | import { makeArgs } from '../../utils/helpers' 3 | 4 | export async function payInvoice(t, node, payment_request) { 5 | const v = { payment_request } 6 | const r = await http.put(node.external_ip + '/invoices', makeArgs(node, v)) 7 | 8 | t.true(r.success, 'Put method should have succeeded') 9 | 10 | return r 11 | } 12 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/CheckmessageRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface CheckmessageRequest { 4 | message?: string 5 | zbase?: string 6 | pubkey?: Buffer | Uint8Array | string 7 | _pubkey?: 'pubkey' 8 | } 9 | 10 | export interface CheckmessageRequest__Output { 11 | message: string 12 | zbase: string 13 | pubkey?: Buffer 14 | _pubkey: 'pubkey' 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NodeMetricType.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export const NodeMetricType = { 4 | UNKNOWN: 'UNKNOWN', 5 | BETWEENNESS_CENTRALITY: 'BETWEENNESS_CENTRALITY', 6 | } as const 7 | 8 | export type NodeMetricType = 'UNKNOWN' | 0 | 'BETWEENNESS_CENTRALITY' | 1 9 | 10 | export type NodeMetricType__Output = 11 | (typeof NodeMetricType)[keyof typeof NodeMetricType] 12 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/ChanStatusAction.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export const ChanStatusAction = { 4 | ENABLE: 'ENABLE', 5 | DISABLE: 'DISABLE', 6 | AUTO: 'AUTO', 7 | } as const 8 | 9 | export type ChanStatusAction = 'ENABLE' | 0 | 'DISABLE' | 1 | 'AUTO' | 2 10 | 11 | export type ChanStatusAction__Output = 12 | (typeof ChanStatusAction)[keyof typeof ChanStatusAction] 13 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/RouteFeeResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface RouteFeeResponse { 6 | routing_fee_msat?: number | string | Long 7 | time_lock_delay?: number | string | Long 8 | } 9 | 10 | export interface RouteFeeResponse__Output { 11 | routing_fee_msat: string 12 | time_lock_delay: string 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/scheduler/RecoveryRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/scheduler.proto 2 | 3 | export interface RecoveryRequest { 4 | challenge?: Buffer | Uint8Array | string 5 | signature?: Buffer | Uint8Array | string 6 | node_id?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface RecoveryRequest__Output { 10 | challenge: Buffer 11 | signature: Buffer 12 | node_id: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/PaymentFailureReason.js.map: -------------------------------------------------------------------------------- 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"} -------------------------------------------------------------------------------- /dist/src/network/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/network/index.ts"],"names":[],"mappings":";;;AAAA,iCAA4E;AAiB1E,4FAjBO,kBAAW,OAiBP;AACX,4FAlBoB,kBAAW,OAkBpB;AACX,uFAnBiC,aAAM,OAmBjC;AAlBR,uCAQkB;AAWhB,sGAlBA,+BAAqB,OAkBA;AACrB,wGAlBA,iCAAuB,OAkBA;AACvB,oGAlBA,6BAAmB,OAkBA;AACnB,8FAlBA,uBAAa,OAkBA;AACb,+FAlBA,wBAAc,OAkBA;AACd,gHAlBA,yCAA+B,OAkBA;AAC/B,mGAlBA,4BAAkB,OAkBA"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListpeersPeersChannelsAlias.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface ListpeersPeersChannelsAlias { 4 | local?: string 5 | remote?: string 6 | _local?: 'local' 7 | _remote?: 'remote' 8 | } 9 | 10 | export interface ListpeersPeersChannelsAlias__Output { 11 | local?: string 12 | remote?: string 13 | _local: 'local' 14 | _remote: 'remote' 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/NewaddrResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface NewaddrResponse { 4 | bech32?: string 5 | p2sh_segwit?: string 6 | _bech32?: 'bech32' 7 | _p2sh_segwit?: 'p2sh_segwit' 8 | } 9 | 10 | export interface NewaddrResponse__Output { 11 | bech32?: string 12 | p2sh_segwit?: string 13 | _bech32: 'bech32' 14 | _p2sh_segwit: 'p2sh_segwit' 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/ListPeersResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | import type { 4 | Peer as _greenlight_Peer, 5 | Peer__Output as _greenlight_Peer__Output, 6 | } from '../greenlight/Peer' 7 | 8 | export interface ListPeersResponse { 9 | peers?: _greenlight_Peer[] 10 | } 11 | 12 | export interface ListPeersResponse__Output { 13 | peers: _greenlight_Peer__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/MuSig2RegisterNoncesRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface MuSig2RegisterNoncesRequest { 4 | session_id?: Buffer | Uint8Array | string 5 | other_signer_public_nonces?: (Buffer | Uint8Array | string)[] 6 | } 7 | 8 | export interface MuSig2RegisterNoncesRequest__Output { 9 | session_id: Buffer 10 | other_signer_public_nonces: Buffer[] 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/utils/msg/readMessages.ts: -------------------------------------------------------------------------------- 1 | import { NodeConfig, Chat } from '../../types' 2 | import { makeArgs } from '../helpers' 3 | import * as http from 'ava-http' 4 | 5 | export async function readMessages(node: NodeConfig, chat_id: Chat) { 6 | const msg = await http.post( 7 | node.external_ip + `/messages/${chat_id.id}/read`, 8 | makeArgs(node) 9 | ) 10 | return msg.response.new_messages 11 | } 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ConnectResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_ConnectResponse_ConnectDirection = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_ConnectResponse_ConnectDirection = { 7 | IN: 'IN', 8 | OUT: 'OUT', 9 | }; 10 | //# sourceMappingURL=ConnectResponse.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/FeeratesRequest.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_FeeratesRequest_FeeratesStyle = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_FeeratesRequest_FeeratesStyle = { 7 | PERKB: 'PERKB', 8 | PERKW: 'PERKW', 9 | }; 10 | //# sourceMappingURL=FeeratesRequest.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/WaitsendpayResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_WaitsendpayResponse_WaitsendpayStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_WaitsendpayResponse_WaitsendpayStatus = { 7 | COMPLETE: 'COMPLETE', 8 | }; 9 | //# sourceMappingURL=WaitsendpayResponse.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/PeerEvent.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._lnrpc_PeerEvent_EventType = void 0; 5 | // Original file: proto/lightning.proto 6 | exports._lnrpc_PeerEvent_EventType = { 7 | PEER_ONLINE: 'PEER_ONLINE', 8 | PEER_OFFLINE: 'PEER_OFFLINE', 9 | }; 10 | //# sourceMappingURL=PeerEvent.js.map -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/FundingPsbtVerify.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface FundingPsbtVerify { 4 | funded_psbt?: Buffer | Uint8Array | string 5 | pending_chan_id?: Buffer | Uint8Array | string 6 | skip_finalize?: boolean 7 | } 8 | 9 | export interface FundingPsbtVerify__Output { 10 | funded_psbt: Buffer 11 | pending_chan_id: Buffer 12 | skip_finalize: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListChannelsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | Channel as _lnrpc_Channel, 5 | Channel__Output as _lnrpc_Channel__Output, 6 | } from '../lnrpc/Channel' 7 | 8 | export interface ListChannelsResponse { 9 | channels?: _lnrpc_Channel[] 10 | } 11 | 12 | export interface ListChannelsResponse__Output { 13 | channels: _lnrpc_Channel__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/AddressProperty.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface AddressProperty { 6 | address?: string 7 | is_internal?: boolean 8 | balance?: number | string | Long 9 | } 10 | 11 | export interface AddressProperty__Output { 12 | address: string 13 | is_internal: boolean 14 | balance: string 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ListUnspentRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | export interface ListUnspentRequest { 4 | min_confs?: number 5 | max_confs?: number 6 | account?: string 7 | unconfirmed_only?: boolean 8 | } 9 | 10 | export interface ListUnspentRequest__Output { 11 | min_confs: number 12 | max_confs: number 13 | account: string 14 | unconfirmed_only: boolean 15 | } 16 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/NewaddrRequest.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_NewaddrRequest_NewaddrAddresstype = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_NewaddrRequest_NewaddrAddresstype = { 7 | BECH32: 'BECH32', 8 | ALL: 'ALL', 9 | }; 10 | //# sourceMappingURL=NewaddrRequest.js.map -------------------------------------------------------------------------------- /docs/deep/bots.md: -------------------------------------------------------------------------------- 1 | ### remote bot 2 | 3 | Alice makes a bot. Bob is tribe owner and installs it. Alice is member in the tribe. 4 | 5 | - Alice sends text msg (controllers/messages/sendMessage) 6 | - Bob onReceive (from keysend) 7 | - Bob forwardMessageToTribe (with owner) 8 | - Bob to forward to tribe (network/send/sendMessage: intercept.isBotMsg) 9 | - Bob emitMessageToBot (msg.sender.id is there) 10 | - keysendBotCmd 11 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/NetAddressType.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | export const NetAddressType = { 4 | Ipv4: 'Ipv4', 5 | Ipv6: 'Ipv6', 6 | TorV2: 'TorV2', 7 | TorV3: 'TorV3', 8 | } as const 9 | 10 | export type NetAddressType = 'Ipv4' | 0 | 'Ipv6' | 1 | 'TorV2' | 2 | 'TorV3' | 3 11 | 12 | export type NetAddressType__Output = 13 | (typeof NetAddressType)[keyof typeof NetAddressType] 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/InvoiceHTLCState.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export const InvoiceHTLCState = { 4 | ACCEPTED: 'ACCEPTED', 5 | SETTLED: 'SETTLED', 6 | CANCELED: 'CANCELED', 7 | } as const 8 | 9 | export type InvoiceHTLCState = 'ACCEPTED' | 0 | 'SETTLED' | 1 | 'CANCELED' | 2 10 | 11 | export type InvoiceHTLCState__Output = 12 | (typeof InvoiceHTLCState)[keyof typeof InvoiceHTLCState] 13 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/MiddlewareRegistration.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface MiddlewareRegistration { 4 | middleware_name?: string 5 | custom_macaroon_caveat_name?: string 6 | read_only_mode?: boolean 7 | } 8 | 9 | export interface MiddlewareRegistration__Output { 10 | middleware_name: string 11 | custom_macaroon_caveat_name: string 12 | read_only_mode: boolean 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/RouteHint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | import type { 4 | HopHint as _lnrpc_proxy_HopHint, 5 | HopHint__Output as _lnrpc_proxy_HopHint__Output, 6 | } from '../lnrpc_proxy/HopHint' 7 | 8 | export interface RouteHint { 9 | hop_hints?: _lnrpc_proxy_HopHint[] 10 | } 11 | 12 | export interface RouteHint__Output { 13 | hop_hints: _lnrpc_proxy_HopHint__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /testing/cln/readme.md: -------------------------------------------------------------------------------- 1 | **alice proxy CLN** 2 | 3 | in sphinx-swarm run `cargo run --bin cln` 4 | 5 | in sphinx-rs/vls-mqtt use local .env and `cargo run` 6 | 7 | in sphinx-proxy run `./cln/creds.sh` 8 | 9 | `./sphinx-proxy --mode cln` 10 | 11 | node ./dist/app.js --config="/Users/evanfeenstra/code/sphinx/sphinx-relay/testing/cln/alice.json" --db="/Users/evanfeenstra/code/sphinx/sphinx-relay/testing/cln/alice-db.json" 12 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/SendpayResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_SendpayResponse_SendpayStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_SendpayResponse_SendpayStatus = { 7 | PENDING: 'PENDING', 8 | COMPLETE: 'COMPLETE', 9 | }; 10 | //# sourceMappingURL=SendpayResponse.js.map -------------------------------------------------------------------------------- /dist/src/tests/utils/msg/getAllMessages.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"getAllMessages.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/getAllMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAqC;AACrC,iCAAgC;AAEhC,SAAsB,cAAc,CAAC,IAAgB;;QACnD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,GAAG,cAAc,EAAE,IAAA,kBAAQ,EAAC,IAAI,CAAC,CAAC,CAAA;QAC7E,OAAO,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAA;IAClC,CAAC;CAAA;AAHD,wCAGC"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/DelexpiredinvoiceRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface DelexpiredinvoiceRequest { 6 | maxexpirytime?: number | string | Long 7 | _maxexpirytime?: 'maxexpirytime' 8 | } 9 | 10 | export interface DelexpiredinvoiceRequest__Output { 11 | maxexpirytime?: string 12 | _maxexpirytime: 'maxexpirytime' 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListpaysResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | import type { 4 | ListpaysPays as _cln_ListpaysPays, 5 | ListpaysPays__Output as _cln_ListpaysPays__Output, 6 | } from '../cln/ListpaysPays' 7 | 8 | export interface ListpaysResponse { 9 | pays?: _cln_ListpaysPays[] 10 | } 11 | 12 | export interface ListpaysResponse__Output { 13 | pays: _cln_ListpaysPays__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/PingRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | export interface PingRequest { 4 | id?: Buffer | Uint8Array | string 5 | len?: number 6 | pongbytes?: number 7 | _len?: 'len' 8 | _pongbytes?: 'pongbytes' 9 | } 10 | 11 | export interface PingRequest__Output { 12 | id: Buffer 13 | len?: number 14 | pongbytes?: number 15 | _len: 'len' 16 | _pongbytes: 'pongbytes' 17 | } 18 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ListAliasesResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | AliasMap as _lnrpc_AliasMap, 5 | AliasMap__Output as _lnrpc_AliasMap__Output, 6 | } from '../lnrpc/AliasMap' 7 | 8 | export interface ListAliasesResponse { 9 | alias_maps?: _lnrpc_AliasMap[] 10 | } 11 | 12 | export interface ListAliasesResponse__Output { 13 | alias_maps: _lnrpc_AliasMap__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc_proxy/InvoiceHTLCState.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/rpc_proxy.proto 2 | 3 | export const InvoiceHTLCState = { 4 | ACCEPTED: 'ACCEPTED', 5 | SETTLED: 'SETTLED', 6 | CANCELED: 'CANCELED', 7 | } as const 8 | 9 | export type InvoiceHTLCState = 'ACCEPTED' | 0 | 'SETTLED' | 1 | 'CANCELED' | 2 10 | 11 | export type InvoiceHTLCState__Output = 12 | (typeof InvoiceHTLCState)[keyof typeof InvoiceHTLCState] 13 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/ForwardEvent.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | import type { 4 | HtlcInfo as _routerrpc_HtlcInfo, 5 | HtlcInfo__Output as _routerrpc_HtlcInfo__Output, 6 | } from '../routerrpc/HtlcInfo' 7 | 8 | export interface ForwardEvent { 9 | info?: _routerrpc_HtlcInfo | null 10 | } 11 | 12 | export interface ForwardEvent__Output { 13 | info: _routerrpc_HtlcInfo__Output | null 14 | } 15 | -------------------------------------------------------------------------------- /.github/workflows/lint_pr.yml: -------------------------------------------------------------------------------- 1 | name: Lint (Pull Request) 2 | on: 3 | pull_request: 4 | branches: 5 | - master 6 | 7 | jobs: 8 | lint: 9 | name: Lint (Pull Request) 10 | runs-on: 11 | - ubuntu-latest 12 | steps: 13 | - name: checkout 14 | uses: actions/checkout@v2 15 | - name: install npm dependencies 16 | run: npm i 17 | - name: lint 18 | run: npm run lint 19 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/PayResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_PayResponse_PayStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_PayResponse_PayStatus = { 7 | COMPLETE: 'COMPLETE', 8 | PENDING: 'PENDING', 9 | FAILED: 'FAILED', 10 | }; 11 | //# sourceMappingURL=PayResponse.js.map -------------------------------------------------------------------------------- /dist/src/tests/utils/msg/getSpecifiMessage.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"getSpecifiMessage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/getSpecifiMessage.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAAC,QAAyB,EAAE,IAAY;IACpE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE;YAC7B,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAA;SACnB;KACF;AACH,CAAC;AAND,wCAMC"} -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/GetrouteResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | import type { 4 | GetrouteRoute as _cln_GetrouteRoute, 5 | GetrouteRoute__Output as _cln_GetrouteRoute__Output, 6 | } from '../cln/GetrouteRoute' 7 | 8 | export interface GetrouteResponse { 9 | route?: _cln_GetrouteRoute[] 10 | } 11 | 12 | export interface GetrouteResponse__Output { 13 | route: _cln_GetrouteRoute__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/OutputDesc.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/primitives.proto 2 | 3 | import type { 4 | Amount as _cln_Amount, 5 | Amount__Output as _cln_Amount__Output, 6 | } from '../cln/Amount' 7 | 8 | export interface OutputDesc { 9 | address?: string 10 | amount?: _cln_Amount | null 11 | } 12 | 13 | export interface OutputDesc__Output { 14 | address: string 15 | amount: _cln_Amount__Output | null 16 | } 17 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/WalletAccountBalance.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface WalletAccountBalance { 6 | confirmed_balance?: number | string | Long 7 | unconfirmed_balance?: number | string | Long 8 | } 9 | 10 | export interface WalletAccountBalance__Output { 11 | confirmed_balance: string 12 | unconfirmed_balance: string 13 | } 14 | -------------------------------------------------------------------------------- /src/tests/utils/get/getTribeByUuid.ts: -------------------------------------------------------------------------------- 1 | import * as http from 'ava-http' 2 | 3 | import { config } from '../../config' 4 | 5 | export async function getTribeByUuid(t, tribe) { 6 | //GET TRIBE FROM TRIBES SERVER BY UUID 7 | 8 | const res = await http.get( 9 | 'http://' + config.tribeHost + `/tribes/${tribe.uuid}` 10 | ) 11 | t.truthy(res, 'should get tribe by UUID from tribe host server') 12 | 13 | return res 14 | } 15 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListforwardsForwards.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ListforwardsForwards.js","sourceRoot":"","sources":["../../../../../../src/grpc/types/cln/cln/ListforwardsForwards.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAQtC,sCAAsC;AAEzB,QAAA,oDAAoD,GAAG;IAClE,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;CACR,CAAA;AAeV,sCAAsC;AAEzB,QAAA,mDAAmD,GAAG;IACjE,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACF,CAAA"} -------------------------------------------------------------------------------- /dist/src/tests/utils/msg/decryptMsg.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.decryptMessage = void 0; 4 | const rsa = require("../../../crypto/rsa"); 5 | function decryptMessage(node, message) { 6 | const decrypt = rsa.decrypt(node.privkey, message.message_content); 7 | return decrypt; 8 | } 9 | exports.decryptMessage = decryptMessage; 10 | //# sourceMappingURL=decryptMsg.js.map -------------------------------------------------------------------------------- /docker/lnd_supervisor.conf: -------------------------------------------------------------------------------- 1 | [program:lnd] 2 | user=root 3 | command=sh -c 'lnd --lnddir=/relay/.lnd/ --alias=$HOSTNAME --tlsextradomain=$NODE_DOMAIN --externalip=$NODE_DOMAIN' 4 | startretries=999999999999999999999999999 5 | autostart=true 6 | autorestart=true 7 | stdout_logfile=/var/log/supervisor/%(program_name)s.log 8 | stderr_logfile=/var/log/supervisor/%(program_name)s.log 9 | stdout_logfile_maxbytes=10MB 10 | stdout_logfile_backups=10 -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/DeldatastoreRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface DeldatastoreRequest { 6 | generation?: number | string | Long 7 | key?: string[] 8 | _generation?: 'generation' 9 | } 10 | 11 | export interface DeldatastoreRequest__Output { 12 | generation?: string 13 | key: string[] 14 | _generation: 'generation' 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/TapscriptFullTree.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { 4 | TapLeaf as _walletrpc_TapLeaf, 5 | TapLeaf__Output as _walletrpc_TapLeaf__Output, 6 | } from '../walletrpc/TapLeaf' 7 | 8 | export interface TapscriptFullTree { 9 | all_leaves?: _walletrpc_TapLeaf[] 10 | } 11 | 12 | export interface TapscriptFullTree__Output { 13 | all_leaves: _walletrpc_TapLeaf__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /config/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "development": { 3 | "dialect": "sqlite", 4 | "storage": "/Users/Shared/sphinx.db" 5 | }, 6 | "docker_development": { 7 | "dialect": "sqlite", 8 | "storage": "./sphinx.db" 9 | }, 10 | "test": { 11 | "dialect": "sqlite", 12 | "storage": "/home/ubuntu/sphinx.db" 13 | }, 14 | "production": { 15 | "dialect": "sqlite", 16 | "storage": "/relay/.lnd/sphinx.db" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/SendonionResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_SendonionResponse_SendonionStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_SendonionResponse_SendonionStatus = { 7 | PENDING: 'PENDING', 8 | COMPLETE: 'COMPLETE', 9 | }; 10 | //# sourceMappingURL=SendonionResponse.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/HTLCAttempt.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._lnrpc_HTLCAttempt_HTLCStatus = void 0; 5 | // Original file: proto/lightning.proto 6 | exports._lnrpc_HTLCAttempt_HTLCStatus = { 7 | IN_FLIGHT: 'IN_FLIGHT', 8 | SUCCEEDED: 'SUCCEEDED', 9 | FAILED: 'FAILED', 10 | }; 11 | //# sourceMappingURL=HTLCAttempt.js.map -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListnodesResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | import type { 4 | ListnodesNodes as _cln_ListnodesNodes, 5 | ListnodesNodes__Output as _cln_ListnodesNodes__Output, 6 | } from '../cln/ListnodesNodes' 7 | 8 | export interface ListnodesResponse { 9 | nodes?: _cln_ListnodesNodes[] 10 | } 11 | 12 | export interface ListnodesResponse__Output { 13 | nodes: _cln_ListnodesNodes__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/cln/cln/ListpeersResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/cln/node.proto 2 | 3 | import type { 4 | ListpeersPeers as _cln_ListpeersPeers, 5 | ListpeersPeers__Output as _cln_ListpeersPeers__Output, 6 | } from '../cln/ListpeersPeers' 7 | 8 | export interface ListpeersResponse { 9 | peers?: _cln_ListpeersPeers[] 10 | } 11 | 12 | export interface ListpeersResponse__Output { 13 | peers: _cln_ListpeersPeers__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/Routehint.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | import type { 4 | RoutehintHop as _greenlight_RoutehintHop, 5 | RoutehintHop__Output as _greenlight_RoutehintHop__Output, 6 | } from '../greenlight/RoutehintHop' 7 | 8 | export interface Routehint { 9 | hops?: _greenlight_RoutehintHop[] 10 | } 11 | 12 | export interface Routehint__Output { 13 | hops: _greenlight_RoutehintHop__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/FundingPsbtFinalize.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | export interface FundingPsbtFinalize { 4 | signed_psbt?: Buffer | Uint8Array | string 5 | pending_chan_id?: Buffer | Uint8Array | string 6 | final_raw_tx?: Buffer | Uint8Array | string 7 | } 8 | 9 | export interface FundingPsbtFinalize__Output { 10 | signed_psbt: Buffer 11 | pending_chan_id: Buffer 12 | final_raw_tx: Buffer 13 | } 14 | -------------------------------------------------------------------------------- /src/grpc/types/walletrpc/ListAccountsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/walletkit.proto 2 | 3 | import type { 4 | Account as _walletrpc_Account, 5 | Account__Output as _walletrpc_Account__Output, 6 | } from '../walletrpc/Account' 7 | 8 | export interface ListAccountsResponse { 9 | accounts?: _walletrpc_Account[] 10 | } 11 | 12 | export interface ListAccountsResponse__Output { 13 | accounts: _walletrpc_Account__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/CloseResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_CloseResponse_CloseType = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_CloseResponse_CloseType = { 7 | MUTUAL: 'MUTUAL', 8 | UNILATERAL: 'UNILATERAL', 9 | UNOPENED: 'UNOPENED', 10 | }; 11 | //# sourceMappingURL=CloseResponse.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/WaitinvoiceResponse.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_WaitinvoiceResponse_WaitinvoiceStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_WaitinvoiceResponse_WaitinvoiceStatus = { 7 | PAID: 'PAID', 8 | EXPIRED: 'EXPIRED', 9 | }; 10 | //# sourceMappingURL=WaitinvoiceResponse.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Initiator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.Initiator = void 0; 5 | exports.Initiator = { 6 | INITIATOR_UNKNOWN: 'INITIATOR_UNKNOWN', 7 | INITIATOR_LOCAL: 'INITIATOR_LOCAL', 8 | INITIATOR_REMOTE: 'INITIATOR_REMOTE', 9 | INITIATOR_BOTH: 'INITIATOR_BOTH', 10 | }; 11 | //# sourceMappingURL=Initiator.js.map -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/TransactionDetails.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | Transaction as _lnrpc_Transaction, 5 | Transaction__Output as _lnrpc_Transaction__Output, 6 | } from '../lnrpc/Transaction' 7 | 8 | export interface TransactionDetails { 9 | transactions?: _lnrpc_Transaction[] 10 | } 11 | 12 | export interface TransactionDetails__Output { 13 | transactions: _lnrpc_Transaction__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/tests/utils/bots/createBot.ts: -------------------------------------------------------------------------------- 1 | import * as http from 'ava-http' 2 | import { makeArgs } from '../../utils/helpers' 3 | 4 | export async function createBot(t, node1, name) { 5 | const v = { 6 | name, 7 | } 8 | try { 9 | const r = await http.post(node1.external_ip + '/bot', makeArgs(node1, v)) 10 | 11 | t.true(r.success, 'Bot created.') 12 | return r 13 | } catch (error) { 14 | return error.error 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListpaysPays.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_ListpaysPays_ListpaysPaysStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_ListpaysPays_ListpaysPaysStatus = { 7 | PENDING: 'PENDING', 8 | FAILED: 'FAILED', 9 | COMPLETE: 'COMPLETE', 10 | }; 11 | //# sourceMappingURL=ListpaysPays.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/Invoice.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._lnrpc_Invoice_InvoiceState = void 0; 5 | // Original file: proto/lightning.proto 6 | exports._lnrpc_Invoice_InvoiceState = { 7 | OPEN: 'OPEN', 8 | SETTLED: 'SETTLED', 9 | CANCELED: 'CANCELED', 10 | ACCEPTED: 'ACCEPTED', 11 | }; 12 | //# sourceMappingURL=Invoice.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc_proxy/CommitmentType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/rpc_proxy.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.CommitmentType = void 0; 5 | exports.CommitmentType = { 6 | LEGACY: 'LEGACY', 7 | STATIC_REMOTE_KEY: 'STATIC_REMOTE_KEY', 8 | ANCHORS: 'ANCHORS', 9 | UNKNOWN_COMMITMENT_TYPE: 'UNKNOWN_COMMITMENT_TYPE', 10 | }; 11 | //# sourceMappingURL=CommitmentType.js.map -------------------------------------------------------------------------------- /dist/src/tests/utils/msg/readMessages.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"readMessages.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/readMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAqC;AACrC,iCAAgC;AAEhC,SAAsB,YAAY,CAAC,IAAgB,EAAE,OAAa;;QAChE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CACzB,IAAI,CAAC,WAAW,GAAG,aAAa,OAAO,CAAC,EAAE,OAAO,EACjD,IAAA,kBAAQ,EAAC,IAAI,CAAC,CACf,CAAA;QACD,OAAO,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAA;IAClC,CAAC;CAAA;AAND,oCAMC"} -------------------------------------------------------------------------------- /src/grpc/types/greenlight/ListInvoicesResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | import type { 4 | Invoice as _greenlight_Invoice, 5 | Invoice__Output as _greenlight_Invoice__Output, 6 | } from '../greenlight/Invoice' 7 | 8 | export interface ListInvoicesResponse { 9 | invoices?: _greenlight_Invoice[] 10 | } 11 | 12 | export interface ListInvoicesResponse__Output { 13 | invoices: _greenlight_Invoice__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/greenlight/ListPaymentsResponse.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | import type { 4 | Payment as _greenlight_Payment, 5 | Payment__Output as _greenlight_Payment__Output, 6 | } from '../greenlight/Payment' 7 | 8 | export interface ListPaymentsResponse { 9 | payments?: _greenlight_Payment[] 10 | } 11 | 12 | export interface ListPaymentsResponse__Output { 13 | payments: _greenlight_Payment__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/ChannelBackups.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | ChannelBackup as _lnrpc_ChannelBackup, 5 | ChannelBackup__Output as _lnrpc_ChannelBackup__Output, 6 | } from '../lnrpc/ChannelBackup' 7 | 8 | export interface ChannelBackups { 9 | chan_backups?: _lnrpc_ChannelBackup[] 10 | } 11 | 12 | export interface ChannelBackups__Output { 13 | chan_backups: _lnrpc_ChannelBackup__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/routerrpc/ResolveHoldForwardAction.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/router.proto 2 | 3 | export const ResolveHoldForwardAction = { 4 | SETTLE: 'SETTLE', 5 | FAIL: 'FAIL', 6 | RESUME: 'RESUME', 7 | } as const 8 | 9 | export type ResolveHoldForwardAction = 'SETTLE' | 0 | 'FAIL' | 1 | 'RESUME' | 2 10 | 11 | export type ResolveHoldForwardAction__Output = 12 | (typeof ResolveHoldForwardAction)[keyof typeof ResolveHoldForwardAction] 13 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/InputScriptResp.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | import type { 4 | InputScript as _signrpc_InputScript, 5 | InputScript__Output as _signrpc_InputScript__Output, 6 | } from '../signrpc/InputScript' 7 | 8 | export interface InputScriptResp { 9 | input_scripts?: _signrpc_InputScript[] 10 | } 11 | 12 | export interface InputScriptResp__Output { 13 | input_scripts: _signrpc_InputScript__Output[] 14 | } 15 | -------------------------------------------------------------------------------- /src/grpc/types/signrpc/VerifyMessageReq.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/signer.proto 2 | 3 | export interface VerifyMessageReq { 4 | msg?: Buffer | Uint8Array | string 5 | signature?: Buffer | Uint8Array | string 6 | pubkey?: Buffer | Uint8Array | string 7 | is_schnorr_sig?: boolean 8 | } 9 | 10 | export interface VerifyMessageReq__Output { 11 | msg: Buffer 12 | signature: Buffer 13 | pubkey: Buffer 14 | is_schnorr_sig: boolean 15 | } 16 | -------------------------------------------------------------------------------- /src/tests/utils/invoices/getInvoice.ts: -------------------------------------------------------------------------------- 1 | import http = require('ava-http') 2 | import { makeArgs } from '../../utils/helpers' 3 | 4 | export async function getInvoice(t, node1, payment_request) { 5 | //post payment from node1 to node2 6 | const r = await http.get( 7 | `${node1.external_ip}/invoice?payment_request=${payment_request}`, 8 | makeArgs(node1) 9 | ) 10 | t.true(r.success, 'invoice should exist') 11 | 12 | return r 13 | } 14 | -------------------------------------------------------------------------------- /src/tests/utils/msg/markUnread.ts: -------------------------------------------------------------------------------- 1 | import { NodeConfig, Chat } from '../../types' 2 | import { makeArgs } from '../helpers' 3 | import * as http from 'ava-http' 4 | 5 | export async function markUnread(node: NodeConfig, chat_id: Chat) { 6 | const msg = await http.post( 7 | node.external_ip + `/messages/${chat_id.id}/toggleChatReadUnread`, 8 | makeArgs(node, { shouldMarkAsUnread: true }) 9 | ) 10 | return msg.response.new_messages 11 | } 12 | -------------------------------------------------------------------------------- /.github/workflows/unit_test.yml: -------------------------------------------------------------------------------- 1 | name: unit-test (Pull Request) 2 | on: 3 | pull_request: 4 | branches: 5 | - master 6 | 7 | jobs: 8 | lint: 9 | name: Lint (Pull Request) 10 | runs-on: 11 | - ubuntu-latest 12 | steps: 13 | - name: checkout 14 | uses: actions/checkout@v2 15 | - name: install npm dependencies 16 | run: npm i 17 | - name: run tests 18 | run: npm run test-unit 19 | 20 | -------------------------------------------------------------------------------- /dist/src/grpc/types/cln/cln/ListpaysRequest.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/cln/node.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._cln_ListpaysRequest_ListpaysStatus = void 0; 5 | // Original file: proto/cln/node.proto 6 | exports._cln_ListpaysRequest_ListpaysStatus = { 7 | PENDING: 'PENDING', 8 | COMPLETE: 'COMPLETE', 9 | FAILED: 'FAILED', 10 | }; 11 | //# sourceMappingURL=ListpaysRequest.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/lnrpc/ResolutionType.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/lightning.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports.ResolutionType = void 0; 5 | exports.ResolutionType = { 6 | TYPE_UNKNOWN: 'TYPE_UNKNOWN', 7 | ANCHOR: 'ANCHOR', 8 | INCOMING_HTLC: 'INCOMING_HTLC', 9 | OUTGOING_HTLC: 'OUTGOING_HTLC', 10 | COMMIT: 'COMMIT', 11 | }; 12 | //# sourceMappingURL=ResolutionType.js.map -------------------------------------------------------------------------------- /dist/src/grpc/types/routerrpc/HtlcEvent.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Original file: proto/router.proto 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | exports._routerrpc_HtlcEvent_EventType = void 0; 5 | // Original file: proto/router.proto 6 | exports._routerrpc_HtlcEvent_EventType = { 7 | UNKNOWN: 'UNKNOWN', 8 | SEND: 'SEND', 9 | RECEIVE: 'RECEIVE', 10 | FORWARD: 'FORWARD', 11 | }; 12 | //# sourceMappingURL=HtlcEvent.js.map -------------------------------------------------------------------------------- /src/grpc/types/greenlight/HsmRequestContext.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/greenlight.proto 2 | 3 | import type { Long } from '@grpc/proto-loader' 4 | 5 | export interface HsmRequestContext { 6 | node_id?: Buffer | Uint8Array | string 7 | dbid?: number | string | Long 8 | capabilities?: number | string | Long 9 | } 10 | 11 | export interface HsmRequestContext__Output { 12 | node_id: Buffer 13 | dbid: string 14 | capabilities: string 15 | } 16 | -------------------------------------------------------------------------------- /src/grpc/types/lnrpc/NodeMetricsRequest.d.ts: -------------------------------------------------------------------------------- 1 | // Original file: proto/lightning.proto 2 | 3 | import type { 4 | NodeMetricType as _lnrpc_NodeMetricType, 5 | NodeMetricType__Output as _lnrpc_NodeMetricType__Output, 6 | } from '../lnrpc/NodeMetricType' 7 | 8 | export interface NodeMetricsRequest { 9 | types?: _lnrpc_NodeMetricType[] 10 | } 11 | 12 | export interface NodeMetricsRequest__Output { 13 | types: _lnrpc_NodeMetricType__Output[] 14 | } 15 | --------------------------------------------------------------------------------